@cloudcare/browser-rum 3.0.18 → 3.0.20
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.
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/boot/recorderApi.js +1 -1
- package/cjs/boot/rum.js +10 -2
- package/cjs/boot/rumPublicApi.js +17 -4
- package/cjs/domain/replay/record/serializationUtils.js +13 -1
- package/cjs/domain/replay/record/serialize.js +31 -2
- package/cjs/domain/rumSessionManager.js +7 -2
- package/cjs/domain/tracing/tracer.js +4 -3
- package/cjs/domain/tracing/w3cTraceParentTracer.js +12 -1
- package/cjs/transport/startRumEventBridge.js +16 -0
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/recorderApi.js +2 -2
- package/esm/boot/rum.js +11 -4
- package/esm/boot/rumPublicApi.js +18 -5
- package/esm/domain/replay/record/serializationUtils.js +11 -1
- package/esm/domain/replay/record/serialize.js +32 -3
- package/esm/domain/rumSessionManager.js +8 -3
- package/esm/domain/tracing/tracer.js +4 -3
- package/esm/domain/tracing/w3cTraceParentTracer.js +11 -1
- package/esm/transport/startRumEventBridge.js +8 -0
- package/package.json +3 -3
- package/src/boot/recorderApi.js +3 -2
- package/src/boot/rum.js +22 -10
- package/src/boot/rumPublicApi.js +16 -4
- package/src/domain/replay/record/serializationUtils.js +10 -1
- package/src/domain/replay/record/serialize.js +37 -5
- package/src/domain/rumSessionManager.js +9 -3
- package/src/domain/tracing/tracer.js +3 -3
- package/src/domain/tracing/w3cTraceParentTracer.js +9 -2
- package/src/transport/startRumEventBridge.js +17 -0
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=function e(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(t,n)||(n=t.log),e[n].apply(e,r)};function n(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}function r(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}function i(t,e){return n(r(),"setTimeout")(t,e)}function o(t){n(r(),"clearTimeout")(t)}function a(t,e){return n(window,"setInterval")(t,e)}function s(t){n(window,"clearInterval")(t)}e.debug=console.debug.bind(console),e.log=console.log.bind(console),e.info=console.info.bind(console),e.warn=console.warn.bind(console),e.error=console.error.bind(console);var u=Array.prototype,c=Function.prototype,d=Object.prototype,f=u.slice,l=d.toString,p=d.hasOwnProperty,h=(c.bind,u.forEach),v=(u.indexOf,Array.isArray),g=function(t,e,n){if(null===t)return!1;if(h&&t.forEach===h)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(p.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function m(t){return g(f.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function _(t){return m({},t)}var y=function(t){return g(f.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},b=function(t){return g(f.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(I(e[n])&&I(t[n])?y(t[n],e[n]):t[n]=e[n])})),t},w=v||function(t){return"[object Array]"===l.call(t)},S=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},E=function(t){return t?t.toArray?t.toArray():w(t)?f.call(t):(e=t)&&p.call(e,"callee")?f.call(t):x(t):[];var e},x=function(t){var e=[];return null===t||g(t,(function(t){e[e.length]=t})),e},T=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},k=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},C=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},O=function(t,n,r){return void 0===r&&(r=!1),C(t,(function(t){try{if("function"==typeof t)return t(n);if(t instanceof RegExp)return t.test(n);if("string"==typeof t)return r?Tt(n,t):t===n}catch(t){e.error(t)}}))},A=function(t){return 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}))},I=function(t){return null!==t&&"[object Object]"===l.call(t)},R=function(t){if(I(t)){for(var e in t)if(p.call(t,e))return!1;return!0}return!1},N=function(t){var e=[];return g(t,(function(t,n){e.push([n,t])})),e},L=function(t){return"[object String]"===l.call(t)},M=function(t){return"[object Boolean]"===l.call(t)},U=function(t){return"[object Number]"===l.call(t)&&/[\d\.]+/.test(String(t))},P=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},D=(Date.now,function(t,e,n){var r,a,s=!n||void 0===n.leading||n.leading,u=!n||void 0===n.trailing||n.trailing,c=!1,d=this;return{throttled:function(){c?r=arguments:(s?t.apply(d,arguments):r=arguments,c=!0,a=i((function(){u&&r&&t.apply(d,r),c=!1,r=void 0}),e))},cancel:function(){o(a),c=!1,r=void 0}}}),B=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="",d=[];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,d[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=d.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function z(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,z)}function $(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var F=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"!=typeof 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 H=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=V("?"+n)),e},V=function(t){for(var e=function(t){return P(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 j(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function q(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"!=typeof 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]=q(i[o],e[o],n);return i}i="object"===j(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=q(i[a],e[a],n));return i}}function W(t){return q(void 0,t)}function G(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function Z(){}var Q,X=1e3,K=6e4;function Y(t){return 0!==t&&100*Math.random()<=t}function J(t,e){return+t.toFixed(e)}function tt(t){return"number"!=typeof t?t:J(1e6*t,0)}function et(t){return U(t)?J(1e6*t,0):t}function nt(t){return t-pt()}function rt(t){return Math.round(pt()+t)}function it(){return performance.now()}function ot(){return{relative:it(),timeStamp:at()}}function at(){return st()}function st(){return(new Date).getTime()}function ut(t,e){return e-t}function ct(){return{relative:0,timeStamp:pt()}}function dt(t){return{relative:t,timeStamp:lt(t)}}function ft(t,e){return t+e}function lt(t){var e=st()-performance.now();return e>pt()?Math.round(e+t):rt(t)}function pt(){return void 0===Q&&(Q=performance.timing.navigationStart),Q}function ht(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&p.call(t,r)))return;t=t[r]}return t}function vt(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function gt(t){var e=j(t);return"string"===e||"function"===e||t instanceof RegExp}function mt(t,e){return-1!==t.indexOf(e)}function _t(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function yt(t){return U(t)&&t>=0&&t<=100}function bt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function wt(t){var e={};return g(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=St(t)})),e}function St(t){return w(t)?k(t,(function(t){return St(t)})):"object"==typeof t&&null!==t?wt(t):t}function Et(t,e){return null!=t?t:e}function xt(t,e){return C((r=[],null===(n=t)||g(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Tt(t,e){return t.slice(0,e.length)===e}function kt(t){var e=t.substr(1);return!!document.getElementById(e)}function Ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Ot=function(){this.buffer=[]};Ot.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){g(this.buffer,(function(t){t()})),this.buffer.length=0}};var At=Ot,It=1/0;function Rt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=a((function(){n.clearOldContexts()}),6e4)}Rt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:It,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},Rt.prototype.find=function(t){void 0===t&&(t=It);for(var e=0;e<this.entries.length;e++){var n=this.entries[e];if(n.startTime<=t){if(t<=n.endTime)return n.context;break}}},Rt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===It&&e.close(t)},Rt.prototype.findAll=function(t,e){void 0===e&&(e=0);var n=ft(t,e);void 0===t&&(t=It);var r=T(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return k(r,(function(t){return t.context}))},Rt.prototype.reset=function(){this.entries=[]},Rt.prototype.stop=function(){s(this.clearOldContextsInterval)},Rt.prototype.clearOldContexts=function(){for(var t=it()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Nt={navigator: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"]}},Lt={getMatchMap: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:function(t){var e=Nt.navigator.userAgent||{},n=Lt.getMatchMap(e);for(var r in Nt.infoMap)for(var i=0;i<Nt.infoMap[r].length;i++){var o=Nt.infoMap[r][i];n[o]&&(t[r]=o)}},getOS:function(){return Lt.matchInfoMap(this),this.os||"Unknown"},getOSVersion:function(){var t=this,e=Nt.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:function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"},getDeviceType:function(){var t=this;return t.device="PC",Lt.matchInfoMap(t),t.device},getNetwork: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:function(){var t;return this.language=((t=(Nt.navigator.browserLanguage||Nt.navigator.language).split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language},getBrowserInfo:function(){var t=this;Lt.matchInfoMap(t);var e=Nt.navigator.userAgent||{},n=function(t,e){var n=Nt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Lt.getMatchMap(e),i=!1;if(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")||Nt.navigator&&void 0===Nt.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:function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){e.warn(t)}))}},Mt={os:Lt.getOS(),osVersion:Lt.getOSVersion().version,osVersionMajor:Lt.getOSVersion().osMajor,browser:Lt.getBrowserInfo().browser,browserVersion:Lt.getBrowserInfo().browserVersion,browserVersionMajor:Lt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Lt.getNetwork(),divice:Lt.getDeviceType()},Ut="beforeunload",Pt="click",Dt="dblclick",Bt="keydown",zt="load",$t="popstate",Ft="scroll",Ht="touchstart",Vt="touchend",jt="touchmove",qt="visibilitychange",Wt="freeze",Gt="DOMContentLoaded",Zt="pointerdown",Qt="pointerup",Xt="pointercancel",Kt="hashchange",Yt="pagehide",Jt="mousedown",te="mousemove",ee="focus",ne="blur",re="contextmenu",ie="resize",oe="change",ae="input",se="play",ue="pause",ce="securitypolicyviolation",de="selectionchange",fe="document",le="xhr",pe="beacon",he="fetch",ve="css",ge="js",me="image",_e="font",ye="media",be="other",we="click",Se="custom",Ee="rage_click",xe="error_click",Te="dead_click",ke={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Ce="initial_load",Oe="route_change",Ae={FETCH:he,XHR:le},Ie="ddtrace",Re="zipkin",Ne="zipkin_single_header",Le="w3c_traceparent",Me="w3c_traceparent_64bit",Ue="skywalking_v3",Pe="jaeger",De="handled",Be="unhandled";function ze(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 $e(t,e,n){return ze(t,e,(function(t){return function(){var e;return n&&n.before&&n.before.apply(this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&n.after.apply(this,arguments),e}}))}function Fe(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:Z};var o=function(t,e){i((function(){n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a?Object.defineProperty(t,e,r):o=Z}}}function He(t,e,n){if("object"!=typeof 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,()=>{e.toJSON=n}):Z}var je="?";function qe(t){var e=[],n=Je(t,"stack");return n&&g(n.split("\n"),(function(t){var n=function(t){var e=Ge.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Ze.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]||je,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Qe.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:je,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Xe.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||je,line:+e[3],url:e[2]}}(t)||function(t){var e=Ke.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Ye.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]||je,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=je),e.push(n))})),{message:Je(t,"message"),name:Je(t,"name"),stack:e}}var We="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Ge=new RegExp("^\\s*at (.*?) ?\\("+We+"(?::(\\d+))?"+"(?::(\\d+))?\\)?\\s*$","i"),Ze=new RegExp("\\((\\S*)(?::(\\d+))(?::(\\d+))\\)");var Qe=new RegExp("^\\s*at ?"+We+"(?::(\\d+))?"+"(?::(\\d+))??\\s*$","i");var Xe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ke=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Ye=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Je(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function en(t){var e=function(t){return $e(window,"onerror",{before:function(e,n,r,i,o){var a;if(o)a=qe(o),t(a,o);else{var s,u={url:n,column:i,line:r},c=e;if("[object String]"==={}.toString.call(e)){var d=tn.exec(c);d&&(s=d[1],c=d[2])}t(a={name:s,message:"string"==typeof c?c:void 0,stack:[u]},e)}}})}(t),n=function(t){return $e(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=qe(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}var nn={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function rn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling;return e&&(void 0!==e.message||n instanceof Error)?{startClocks:i,source:a,handling:s,originalError:n,message:e.message||"Empty message",stack:an(e),handlingStack:r,type:e.name,causes:un(n,a)}:{startClocks:i,source:a,handling:s,originalError:n,message:o+" "+He(n),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}function on(){var t=new Error;if(!t.stack)try{throw t}catch(t){}var e=qe(t);return e.stack=e.stack.slice(2),an(e)}function an(t){var e=sn(t);return g(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 sn(t){return(t.name||"Error")+": "+t.message}function un(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=qe(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&an(i)}),n=n.cause}return r.length?r:void 0}var cn=/[^\u0000-\u007F]/;function dn(t){return cn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}var fn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};fn.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=T(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){g(this.observers,(function(e){e(t)}))}};var ln=fn;function pn(){var t=[].slice.call(arguments),e=new ln((function(){var n=k(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return g(n,(function(t){return t.unsubscribe()}))}}));return e}var hn={};function vn(t){var e=k(t,(function(t){return hn[t]||(hn[t]=function(t){var e=new ln((function(){var n=console[t];return console[t]=function(){var r=[].slice.call(arguments);n.apply(console,arguments);var i=on();e.notify(gn(r,t,i))},function(){console[t]=n}}));return e}(t)),hn[t]}));return pn.apply(this,e)}function gn(e,n,r){var i,o=k(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return sn(qe(t));return He(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=_t(e,(function(t){return t instanceof Error}));i=a?an(qe(a)):void 0,o="console error: "+o}return{api:n,message:o,stack:i,handlingStack:r}}function mn(t,e,n,r){return _n(t,[e],n,r)}function _n(t,e,r,i){var o=i&&i.once?function(t){s(),r(t)}:r;i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var a=n(t,"addEventListener");g(e,(function(e){a.call(t,e,o,i)}));var s=function(){var r=n(t,"removeEventListener");g(e,(function(e){r.call(t,e,o,i)}))};return{stop:s}}var yn="intervention",bn="csp_violation";function wn(t){var e,n=[];mt(t,bn)&&n.push(e=new ln((function(){return mn(document,ce,(function(t){e.notify(function(t){var e=bn,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:bn,subtype:t.effectiveDirective,message:e+": "+n,stack:Sn(t.effectiveDirective,n+' of the policy "'+vt(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(t))})).stop})));var r=T(t,(function(t){return t!==bn}));return r.length&&n.push(function(t){var e=new ln((function(){if(window.ReportingObserver){var n=function(t){g(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:Sn(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()}}}));return e}(r)),pn.apply(this,n)}function Sn(t,e,n,r,i){return n&&an({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}function En(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"!=typeof o)return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"==typeof 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 xn(t,n,r){e.warn("The data provided has been "+n+" as it is over the limit of "+t+" characters:",r)}var Tn=function(){this._events=[],this.pendingEvents=[]};Tn.prototype={emit:function(t){var e=[].slice.call(arguments,1);g(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 Tn;var kn,Cn="PERFORMANCE_ENTRIES_COLLECTED",On="AUTO_ACTION_COMPLETED",An="VIEW_CREATED",In="VIEW_UPDATED",Rn="VIEW_ENDED",Nn="SESSION_RENEWED",Ln="SESSION_EXPIRED",Mn="PAGE_EXITED",Un="REQUEST_STARTED",Pn="REQUEST_COMPLETED",Dn="RAW_RUM_EVENT_COLLECTED",Bn="RUM_EVENT_COLLECTED",zn="RAW_ERROR_COLLECTED";function $n(){this.callbacks={}}function Fn(t,e,n){var r=W(t),i=n(r);return g(N(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n=t;for(var r of e.split(".")){if(!jn(n,r))return;n=n[r]}return n}(r,n),a=j(o);a===i?Hn(t,n,function(t,e){void 0===e&&(e=225280);var n=Ve(Object.prototype),r=Ve(Array.prototype),i=[],o=new WeakMap,a=En(t,"$",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 d=0;d<u.source.length;d++){if(s+=void 0!==(f=En(u.source[d],u.path,d,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){xn(e,"truncated",t);break}u.target[d]=f}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var f;if(void 0!==(f=En(u.source[d],u.path,d,i,o))&&(s+=JSON.stringify(f).length+c+d.length+3,c=1),s>e){xn(e,"truncated",t);break}u.target[d]=f}}return n(),r(),a}xn(e,"discarded",t)}(o)):"object"!==i||"undefined"!==a&&"null"!==a||Hn(t,n,{})})),i}function Hn(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Vn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function Vn(t){return"object"===j(t)}function jn(t,e){return Vn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function qn(t,e,n){var r=0,o=!1;return{isLimitReached:function(){if(0===r&&i((function(){r=0}),K),(r+=1)<=e||o)return o=!1,!1;if(r===e+1){o=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:nn.AGENT,startClocks:ot()})}finally{o=!1}}return!0}}}function Wn(t){return Zn(t,bt(window.location)).href}function Gn(t){return bt(Zn(t))}function Zn(t,e){if(function(){if(void 0!==kn)return kn;try{var t=new URL("http://test/path");return kn="http://test/path"===t.href}catch(t){kn=!1}return kn}())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}$n.prototype={notify:function(t,e){var n=this.callbacks[t];n&&g(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]=T(n.callbacks[t],(function(t){return t!==e}))}}}};var Qn=navigator.userAgent.toLowerCase(),Xn=function(){return/iphone os/.test(Qn)};var Kn;function Yn(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 Jn(t){return function(t,e){var n=t.match("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n[1]:void 0}(document.cookie,t)}var tr=/^\s+|\s+$/g,er={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function nr(t,e){var n=er[e];return n?(0===t.indexOf("/")&&(t=location.origin+rr(t)),t.lastIndexOf("/")===t.length-1?rr(t)+"v1/write"+n:rr(t)+"/v1/write"+n):""}function rr(t){return t.replace(tr,"")}var ir,or,ar={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function sr(t){if(void 0===t.sampleRate||yt(t.sampleRate)){if(void 0===t.sessionSampleRate||yt(t.sessionSampleRate)){var n,r,i=t.sessionSampleRate||t.sampleRate;return m({beforeSend:t.beforeSend&&(n=t.beforeSend,r="beforeSend threw an error:",function(){var t=[].slice.call(arguments);try{return n.apply(this,t)}catch(t){e.error(r,t)}}),cookieOptions:ur(t),sessionSampleRate:Et(i,100),service:t.service,version:t.version,env:t.env,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&S(t.isIntakeUrl)&&M(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&S(t.isServerError)&&M(t.isServerError())&&(n=t.isServerError),{datakitUrl:nr(t.datakitUrl||t.datakitOrigin,"rum"),logsEndpoint:nr(t.datakitOrigin,"log"),sessionReplayEndPoint:nr(t.datakitOrigin,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}e.error("Sample Rate should be a number between 0 and 100")}else e.error("Sample Rate should be a number between 0 and 100")}function ur(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===Kn){for(var t="dd_site_test_".concat(z()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Jn(t);)n=e.pop()+"."+n,Yn(t,"test",X,{domain:n});Kn=n}return Kn}()),e}function cr(){var t;return ir||(t=new ln((function(){if(window.fetch){var e=ze(window,"fetch",(function(e){return function(n,r){var i,o=function(t,e,n){var r=n&&n.method||e instanceof Request&&e.method||"GET",i=e instanceof Request?e.url:Wn(String(e)),o=ot(),a={state:"start",init:n,input:e,method:r,startClocks:o,url:i};return t.notify(a),a}(t,n,r);return o?(i=e.call(this,o.input,o.init),function(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(r,r)}(t,i,o)):i=e.call(this,n,r),i}}));return e.stop}})),ir=t),ir}var dr={};function fr(){var t;return or||(t=new ln((function(){var e=$e(XMLHttpRequest.prototype,"open",{before:lr}),n=$e(XMLHttpRequest.prototype,"send",{before:function(){pr.call(this,t)}}),r=$e(XMLHttpRequest.prototype,"abort",{before:vr});return function(){e.stop(),n.stop(),r.stop()}})),or=t),or}function lr(t,e){var n=this._DATAFLUX_REQUEST_UUID||z();this._DATAFLUX_REQUEST_UUID=n,dr[n]={state:"open",method:t,url:Wn(String(e))}}function pr(t){var e=dr[this._DATAFLUX_REQUEST_UUID];if(e){var n=e;n.state="start",n.startTime=it(),n.startClocks=ot(),n.isAborted=!1,n.xhr=this;var r=!1,i=$e(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=ut(n.startClocks.timeStamp,at()),o.status=this.status,t.notify(_(o)),hr.call(this)}},a=mn(this,"loadend",o).stop;t.notify(n)}}function hr(){delete dr[this._DATAFLUX_REQUEST_UUID],delete this._DATAFLUX_REQUEST_UUID}function vr(){var t=dr[this._DATAFLUX_REQUEST_UUID];t&&(t.isAborted=!0)}var gr={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function mr(t){return mt(x(gr),t)}function _r(t){return t.nodeType===Node.ELEMENT_NODE}function yr(t){return _r(t)&&Boolean(t.shadowRoot)}function br(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&_r(e.host)}function wr(t){return br(t)?t.host:t.parentNode}function Sr(t,e){document.readyState===t||"complete"===document.readyState?e():mn(window,"complete"===t?zt:Gt,e,{once:!0})}var Er,xr={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",session_has_replay:"session.has_replay",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",view_url_query:"view.url_query"},Tr={action_id:"action.id",view_in_foreground:"view.in_foreground"},kr={view:{type:ke.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level"},fields:{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",cumulative_layout_shift:"view.cumulative_layout_shift",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_paint_time:"view.fpt",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",in_foreground_periods:"view.in_foreground_periods",frustration_count:"view.frustration.count"}},resource:{type:ke.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_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:ke.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:ke.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ke.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"}},browser_log:{type:ke.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"]}}},Cr=144e5,Or=9e5,Ar=/^([a-z]+)=([a-z0-9-]+)$/,Ir="&",Rr="_dataflux_s",Nr=[];function Lr(t,e){if(void 0===e&&(e=0),Er||(Er=t),t===Er)if(e>=100)Pr();else{var n,r=Br();if(Mr()){if(r.lock)return void Ur(t,e);if(n=z(),r.lock=n,Dr(r,t.options),(r=Br()).lock!==n)return void Ur(t,e)}var i=t.process(r);if(Mr()&&(r=Br()).lock!==n)Ur(t,e);else{if(i&&function(t,e){if(zr(t))return void function(t){Yn(Rr,"",0,t)}(e);t.expire=String(st()+Or),Dr(t,e)}(i,t.options),Mr()&&(!i||!zr(i))){if((r=Br()).lock!==n)return void Ur(t,e);delete r.lock,Dr(r,t.options),i=r}t.after&&t.after(i||r),Pr()}}else Nr.push(t)}function Mr(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function Ur(t,e){i((function(){Lr(t,e+1)}),10)}function Pr(){Er=void 0;var t=Nr.shift();t&&Lr(t)}function Dr(t,e){Yn(Rr,function(t){return k(N(t),(function(t){return t[0]+"="+t[1]})).join(Ir)}(t),Or,e)}function Br(){var t=Jn(Rr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(Ir)||Ar.test(t))}(t)&&g(t.split(Ir),(function(t){var n=Ar.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function zr(t){return R(t)}function $r(t,e,n){var r=new ln,i=new ln,o=a((function(){Lr({options:t,process:function(t){return f(t)?void 0:{}},after:c})}),1e3),u=function(){var t=Br();if(f(t))return t;return{}}();function c(t){return f(t)||(t={}),d()&&(!function(t){return u.id!==t.id||u[e]!==t[e]}(t)?u=t:(u={},i.notify())),t}function d(){return void 0!==u[e]}function f(t){return(void 0===t.created||st()-Number(t.created)<Cr)&&(void 0===t.expire||st()<Number(t.expire))}return{expandOrRenewSession:D((function(){var i;Lr({options:t,process:function(t){var r=c(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=z(),t.created=String(st()));return o}(r),r},after:function(t){i&&!d()&&function(t){u=t,r.notify()}(t),u=t}})}),1e3).throttled,expandSession:function(){Lr({options:t,process:function(t){return d()?c(t):void 0}})},getSession:function(){return u},renewObservable:r,expireObservable:i,expire:function(){deleteSessionCookie(t),c({})},stop:function(){s(o)}}}var Fr=[],Hr=function(t,e,n){var r=$r(t,e,n);Fr.push((function(){return r.stop()}));var i,o=new Rt(144e5);function u(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return Fr.push((function(){return o.stop()})),r.renewObservable.subscribe((function(){o.add(u(),it())})),r.expireObservable.subscribe((function(){o.closeActive(it())})),r.expandOrRenewSession(),o.add(u(),ct().relative),i=_n(window,[Pt,Ht,Bt,Ft],(function(){return r.expandOrRenewSession()}),{capture:!0,passive:!0}),Fr.push(i.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=mn(document,qt,e);Fr.push(n.stop);var r=a(e,6e4);Fr.push((function(){s(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(t){return o.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}};var Vr=3145728,jr=0,qr=1,Wr=2,Gr=0,Zr=1;function Qr(t,e,n,r){e.transportStatus===jr&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Kr(t,e,n,{onSuccess:function(){return Yr(Gr,e,n,r)},onFailure:function(){e.queuedPayloads.enqueue(t),Xr(e,n,r)}}):e.queuedPayloads.enqueue(t)}function Xr(t,e,n){t.transportStatus===Wr&&i((function(){Kr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,Yr(Zr,t,e,n)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),Xr(t,e,n)}})}),t.currentBackoffTime)}function Kr(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=jr,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?qr:Wr,e.lastFailureStatus=n.status,o())}))}function Yr(t,e,n,r){t===Gr&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(r({message:"Reached max events size queued for upload: 3MiB",source:nn.AGENT,startClocks:ot()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=Jr();i.size()>0;)Qr(i.dequeue(),e,n,r)}function Jr(){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>=Vr}}}function ti(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function ei(t,e,n){var r={transportStatus:jr,lastFailureStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Jr(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=ti(t);(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&o<e?fetch(a,{method:"POST",body:i,keepalive:!0,mode:"cors"}).then((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}),(function(){ni(a,i,r)})):ni(a,i,r)}(t,e,n,r)};return{send:function(t){Qr(t,r,i,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=ti(t);if(navigator.sendBeacon&&i<e)try{if(navigator.sendBeacon(o,r))return}catch(t){}ni(o,r)}(t,e,n)}}}function ni(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),mn(r,"loadend",(function(){"function"==typeof n&&n({status:r.status})}),{once:!0}),r.send(e)}function ri(t){if("object"==typeof t&&t)t=He(t);else if(!L(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function ii(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function oi(t){return"object"==typeof t&&t?ii(He(t)):L(t)?ii(t):t}var ai="custom_keys",si=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return g(kr,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=y({},xr,i.tags),u=["date","type",ai];g(s,(function(n,r){var i=ht(t,n);u.push(r),(i||U(i))&&(e.tags[r]=function(t){return L(t)?t:He(t)}(i),a.push(ri(r)+"="+ri(i)))}));var c=[],d=y({},Tr,i.fields);if(g(d,(function(n,r){if(w(n)&&2===n.length){var i=n[1],o=ht(t,i);u.push(r),null!=o&&(e.fields[r]=o,c.push(ri(r)+"="+oi(o)))}else if(L(n)){o=ht(t,n);u.push(r),null!=o&&(e.fields[r]=o,c.push(ri(r)+"="+oi(o)))}})),t.tags&&I(t.tags)&&!R(t.tags)){var f=[];g(t.tags,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=t,c.push(ri(n)+"="+oi(t))))})),f.length&&(e.fields.custom_keys=oi(f),c.push(ri(ai)+"="+oi(f)))}t.type===ke.LOGGER&&g(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=t,c.push(ri(n)+"="+oi(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=et(t.date)}})),{rowStr:n?r:"",rowData:n?e:void 0}},ui=function(t,e,n){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n;var r=this;this.flushController.flushObservable.subscribe((function(t){r.flush(t)}))};ui.prototype.add=function(t){this.addOrUpdate(t)},ui.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},ui.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(x(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};mr(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},ui.prototype.addOrUpdate=function(t,n){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?e.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(n)&&this.remove(n),this.push(i,o,n))},ui.prototype.process=function(t){var e=si(t).rowStr;return{processedMessage:e,messageBytesCount:dn(e)}},ui.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()},ui.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=dn(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},ui.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var ci=ui;function di(t){var{messagesLimit:e,bytesLimit:n,durationLimit:r,pageExitObservable:a,sessionExpireObservable:s}=t,u=new ln;a.subscribe((function(t){return l(t.reason)})),s.subscribe((function(){return l("session_expire")}));var c,d=0,f=0;function l(t){if(0!==f){var e=f,n=d;f=0,d=0,p(),u.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){o(c),c=void 0}return{flushObservable:u,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){d+t>=n&&l("bytes_limit"),f+=1,d+=t,void 0===c&&(c=i((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(){f>=e?l("messages_limit"):d>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){d-=t,0===(f-=1)&&p()}}}var fi="user",li="global context";function pi(t,n){void 0===n&&(n=dn);var r,i={},o=!1,a=D((function(i){r=n(He(i)),o||(o=function(t,n){return t>3072&&(e.warn("The "+n+"data is over 3 KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),200).throttled;return{getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,a(i)},remove:function(t){delete i[t],a(i)},set:function(t){a(i=t)},getContext:function(){return W(i)},setContext:function(t){i=W(t),a(i)},setContextProperty:function(t,e){i[t]=W(e),a(i)},removeContextProperty:function(t){delete i[t],a(i)},clearContext:function(){i={},r=0}}}function hi(t){var e=m({},t);return g(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}var vi=1,gi=2,mi="0",_i="1",yi="2";function bi(t,e){var n=Hr(t.cookieOptions,"rum",(function(e){return function(t,e){var n;n=function(t){return t===mi||t===_i||t===yi}(e)?e:Y(t.sessionSampleRate)?Y(t.sessionReplaySampleRate)?_i:yi:mi;return{trackingType:n,isTracked:wi(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Ln)})),n.renewObservable.subscribe((function(){e.notify(Nn)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&wi(e.trackingType)){var r=e.trackingType===_i?gi:vi;return{id:e.id,plan:r,sessionReplayAllowed:r===gi}}},expire:n.expire,expireObservable:n.expireObservable}}function wi(t){return t===yi||t===_i}var Si="_dataflulx_usr_id",Ei="initial_document",xi=[[fe,function(t){return Ei===t}],[le,function(t){return"xmlhttprequest"===t}],[he,function(t){return"fetch"===t}],[pe,function(t){return"beacon"===t}],[ve,function(t,e){return null!==e.match(/\.css$/i)}],[ge,function(t,e){return null!==e.match(/\.js$/i)}],[me,function(t,e){return mt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[_e,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[ye,function(t,e){return mt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ti(t){var e=t.name;if(!function(t){try{return!!Zn(t)}catch(t){return!1}}(e))return be;var n=function(t){var e=Zn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=be;return g(xi,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function ki(){for(var t=E(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var Ci=/[^\u0000-\u007F]/;function Oi(t,e){return n=t,(Ci.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Ai(t){var e=Ii(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,d=e.connectEnd,f=e.requestStart,l=e.responseStart,p=e.responseEnd,h={firstbyte:tt(l-a),trans:tt(p-l),downloadTime:Ni(n,l,p),firstByteTime:Ni(n,f,l)};return l>0&&l<=it()&&(h.ttfb=tt(l-f)),d!==r&&(h.tcp=tt(d-u),h.connectTime=Ni(n,u,d),ki(u,c,d)&&(h.ssl=tt(d-c),h.sslTime=Ni(n,c,d))),s!==r&&(h.dns=tt(s-a),h.dnsTime=Ni(n,a,s)),Ri(t)&&(h.redirect=tt(o-i),h.redirectTime=Ni(n,i,o)),h}}function Ii(t){if(ki(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Ri(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),ki(t.startTime,e,n,t.fetchStart))return y({},t,{redirectEnd:n,redirectStart:e})}}function Ri(t){return t.fetchStart!==t.startTime}function Ni(t,e,n){return{duration:tt(n-e),start:tt(e-t)}}function Li(t){if(t.startTime<t.responseStart)return t.decodedBodySize}function Mi(t,e){return e&&!function(t,e){var n=[e.datakitUrl];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),C(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function Ui(){return void 0!==window.performance&&"getEntries"in performance}function Pi(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&mt(PerformanceObserver.supportedEntryTypes,t)}function Di(t,e){var n;if(n=function(n){zi(t,e,[n])},Sr("interactive",(function(){var t,e={entryType:"resource",initiatorType:Ei,traceId:""};if(Pi("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=y(r.toJSON(),e)}else{var i=Bi();t=y(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),Ui()){var r=performance.getEntries();i((function(){zi(t,e,r)}))}if(window.PerformanceObserver){var o=function(n){zi(t,e,n.getEntries())},a=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift"];try{g(s,(function(t){new PerformanceObserver(o).observe({type:t,buffered:!0})}))}catch(t){g(s,(function(t){a.push(t)}))}new PerformanceObserver(o).observe({entryTypes:a}),Ui()&&"addEventListener"in performance&&mn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Pi("navigation")||function(t){function e(){t(y(Bi(),{entryType:"navigation"}))}Sr("complete",(function(){i(e)}))}((function(n){zi(t,e,[n])})),Pi("first-input")||function(t){var e=st(),n=!1,r=_n(window,[Pt,Jt,Bt,Ht,Zt],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:it(),startTime:t.timeStamp};t.type===Zt?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){_n(window,[Qt,Xt],(function(e){e.type===Qt&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<st()-e&&t(i)}}}((function(n){return zi(t,e,[n])}))}function Bi(){var t={},e=performance.timing;for(var n in e)U(e[n])&&(t[n]=0===e[n]?0:nt(e[n]));return t}function zi(t,e,n){var r=T(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})),i=T(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Mi(t,e.name)}(e,t)}));i.length&&t.notify(Cn,i)}function $i(){var t,e=window;if(e.Zone&&(t=n(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=n(new e.MutationObserver(Z),"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}function Fi(t){var e=_(t),n=new ln((function(){var t,e,n,i,o=(t=r,e=$e(history,"pushState",{after:t}),n=$e(history,"replaceState",{after:t}),i=mn(window,$t,t),{stop:function(){e.stop(),n.stop(),i.stop()}}),a=mn(window,Kt,r);return function(){o.stop(),a.stop()}}));function r(){if(e.href!==t.href){var r=_(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}function Hi(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=Z);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Bn,(function(t){if(t.type!==ke.VIEW&&n(t))switch(t.type){case ke.ERROR:i.errorCount+=1,r(i);break;case ke.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r(i);break;case ke.LONG_TASK:i.longTaskCount+=1,r(i);break;case ke.RESOURCE:i.resourceCount+=1,r(i)}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Vi=100;function ji(t,e,n,r,a){var s=function(t,e,n){var r=new ln((function(){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(Cn,(function(t){C(t,(function(t){return"resource"===t.entryType&&!qi(n,t.name)}))&&u()})),t.subscribe(Un,(function(t){qi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Pn,(function(t){qi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=$e(window,"open",{before:u}).stop;return function(){s(),g(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}));return r}(t,e,n);return function(t,e,n){var r,a=!1,s=i((function(){f({hadActivity:!1})}),100),u=void 0!==n?i((function(){return f({hadActivity:!0,end:at()})}),n):void 0,c=t.subscribe((function(t){var e=t.isBusy;o(s),o(r);var n=at();e||(r=i((function(){f({hadActivity:!0,end:n})}),100))})),d=function(){a=!0,o(s),o(r),o(u),c.unsubscribe()};function f(t){a||(d(),e(t))}return{stop:d}}(s,r,a)}function qi(t,e){return O(t.excludedActivityUrls,e)}var Wi=X,Gi=0,Zi=1,Qi=2;function Xi(t,e){var n,r=[],a=Gi;function s(t){t.stopObservable.subscribe(u),r.push(t),o(n),n=i(c,1e3)}function u(){a===Zi&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(a=Qi,e(r))}function c(){o(n),a===Gi&&(a=Zi,u())}return s(t),{tryAppend:function(t){return a===Gi&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(i=e,o=n,Math.sqrt(Math.pow(i.clientX-o.clientX,2)+Math.pow(i.clientY-o.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=Wi))?(c(),!1):(s(t),!0));var e,n,i,o},stop:function(){c()}}}var Ki="data-guance-action-name";function Yi(t,e){return Ji(t,Ki)||e&&Ji(t,e)||io(t,e,no)||io(t,e,ro)||""}function Ji(t,e){var n;if(function(){void 0===eo&&(eo="closest"in HTMLElement.prototype);return eo}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return ao(oo(n.getAttribute(e).trim()))}var to,eo,no=[function(t,e){if(function(){void 0===to&&(to="labels"in HTMLInputElement.prototype);return to}()){if("labels"in t&&t.labels&&t.labels.length>0)return so(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&_t(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&so(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 so(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=k(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=T(n,(function(t){return Boolean(t)})),(n=k(n,(function(t){return so(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 so(t.options[0],e)}],ro=[function(t,e){return so(t,e)}];function io(t,e,n){for(var r=t,i=0;i<=10&&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 ao(oo(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function oo(t){return t.replace(/\s+/g," ")}function ao(t){return t.length>100?vt(t,100)+" [...]":t}function so(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 Boolean(document.documentMode)&&r("script, style"),r("[data-guance-action-name]"),e&&r("["+e+"]"),n}return t.textContent}}var uo,co=[Ki,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],fo=[vo,function(t){if(t.id&&!ho(t.id))return"#"+A(t.id)}],lo=[vo,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(!ho(n))return t.tagName+"."+A(n)}},function(t){return t.tagName}];function po(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=mo(r,fo,_o,e,n);if(i)return i;n=mo(r,lo,yo,e,n)||bo(go(r),n),r=r.parentElement}return n}function ho(t){return/[0-9]/.test(t)}function vo(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<co.length;n++){var r;if(r=i(co[n]))return r}function i(e){if(t.hasAttribute(e))return t.tagName+"["+e+'="'+A(t.getAttribute(e))+'"]'}}function go(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return t.tagName+":nth-of-type("+n+")"}function mo(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=bo(a,i);if(n(t,s))return s}}}function _o(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function yo(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===uo)try{document.querySelector(":scope"),uo=!0}catch{uo=!1}return uo}()?bo(":scope",e):e).length}function bo(t,e){return e?t+">"+e:t}function wo(){var t=window.getSelection();return!t||t.isCollapsed}function So(t){return t.target instanceof Element&&!1!==t.isPrimary}function Eo(t,e){if(function(t){if(C(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=X)return!0;return!1}(t))return e.addFrustration(Ee),C(t,xo)&&e.addFrustration(Te),e.hasError()&&e.addFrustration(xe),{isRage:!0};var n=C(t,(function(t){return t.getUserActivity().selection}));return g(t,(function(t){t.hasError()&&t.addFrustration(xe),xo(t)&&!n&&t.addFrustration(Te)})),{isRage:!1}}function xo(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n='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] *',!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}function To(t,e,n){var r,i=new Rt(3e5),o=new ln;t.subscribe(Nn,(function(){i.reset()})),t.subscribe(Rn,p);var a,s,u,c,d,f=(a={onPointerDown:function(r){return function(t,e,n,r,i){if(t.trackFrustrations||!r.find()){var o,a,s,u=(o=i,a=t.actionNameAttribute,s=o.target.getBoundingClientRect(),{type:we,target:{width:Math.round(s.width),height:Math.round(s.height),selector:po(o.target,a)},position:{x:Math.round(o.clientX-s.left),y:Math.round(o.clientY-s.top)},name:Yi(o.target,a)});if(t.trackFrustrations||u.name){var c=!1;return ji(e,n,t,(function(t){c=t.hadActivity}),Vi),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}}}(n,t,e,i,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var d=Ao(e,r,u,a,s);t.trackFrustrations&&o(d);var f=ji(e,n,t,(function(e){e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():(e.hadActivity?d.stop(e.end):c()?d.stop(d.startClocks.timeStamp):d.stop(),t.trackFrustrations||(e.hadActivity?d.validate():d.discard()))}),1e4).stop,l=e.subscribe(Rn,(function(t){d.stop(t.endClocks.timeStamp)})),p=i.subscribe((function(){d.stop()}));d.stopObservable.subscribe((function(){l.unsubscribe(),f(),p.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},d=[mn(window,Zt,(function(t){So(t)&&(s=wo(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),mn(window,de,(function(){s&&wo()||(c.selection=!0)}),{capture:!0}),mn(window,Qt,(function(t){if(So(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),mn(window,ae,(function(){c.input=!0}),{capture:!0})],{stop:function(){g(d,(function(t){return t.stop()}))}}),l=f.stop;return{stop:function(){p(),o.notify(),l()},actionContexts:{findActionId:function(t){return i.find(t)}}};function p(){r&&r.stop()}function h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Xi(t,(function(t){!function(t,e){Eo(t,e).isRage?(g(t,(function(t){t.discard()})),e.stop(at()),e.validate(k(t,(function(t){return t.event})))):(e.discard(),g(t,(function(t){t.validate()})))}(t,e)}))}}}var ko=0,Co=1,Oo=2;function Ao(t,e,n,r,i){var o,a=z(),s=ot(),u=e.add(a,s.relative),c=Hi({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(w(t.action.id)?mt(t.action.id,a):t.action.id===a)}}),d=ko,f=[],l=new ln;function p(t){d===ko&&(d=Co,(o=t)?u.close(nt(o)):u.remove(),c.stop(),l.notify())}return{event:i,stop:p,stopObservable:l,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 d===Co||d===Oo},clone:function(){return Ao(t,e,n,r,i)},validate:function(e){if(p(),d===Co){var n=c.eventCounts,u=n.resourceCount,l=n.errorCount,h=n.longTaskCount,v=m({type:we,duration:o&&ut(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:l,longTaskCount:h},events:Et(e,[i]),event:i},r);t.notify(On,v),d=Oo}},discard:function(){p(),d=Oo}}}function Io(t,e){var n=Ro(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:et(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}},r=Ro(t)?void 0:t.context,i=b({action:{id:z(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ke.ACTION},n),o=e.isInForegroundAt(t.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:Ro(t)?{event:t.event,events:t.events}:{}}}function Ro(t){return t.type!==Se}function No(t,e,n,r,i){var o=function(t,e,n,r){var i=a(t.datakitUrl),o=i.batch;function a(i){var o=di({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new ci(ei(i,t.batchBytesLimit,e),o,t.messageBytesLimit),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,n,r,i);e.subscribe(Bn,(function(t){t.type===ke.VIEW?o.upsert(t,t.view.id):o.add(t)}))}var Lo="synthetics",Mo="user",Uo={"view.url":"string","view.referrer":"string"},Po={tags:"object","_gc.trace_id":"string","_gc.span_id":"string"},Do={};function Bo(t,n,r,i,o,a,s,u,c){Do[ke.VIEW]=Uo,Do[ke.ERROR]=m({"error.message":"string","error.stack":"string","error.resource.url":"string"},Po,Uo),Do[ke.RESOURCE]=m({"resource.url":"string"},Po,Uo),Do[ke.ACTION]=m({"action.target.name":"string"},Po,Uo),Do[ke.LONG_TASK]=m({},Po,Uo);var d={};d[ke.ERROR]=qn(ke.ERROR,t.eventRateLimiterThreshold,c),d[ke.ACTION]=qn(ke.ACTION,t.eventRateLimiterThreshold,c),n.subscribe(Dn,(function(c){var f,l=c.startTime,p=c.rawRumEvent,h=c.savedCommonContext,v=c.customerContext,g=c.domainContext,m=o.findView(l),_=a.findUrl(l),y=r.findTrackedSession(p.type!==ke.VIEW?l:void 0);if(y&&m&&_){var w=s.findActionId(l),S=h||u(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(st()-(pt()+performance.now()))},terminal:{type:"web"},application:{id:t.applicationId},device:Mt,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:at(),user:{id:i.getId(),is_signin:"F"},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Mo:Lo,id:y.id},view:{id:m.id,name:m.name,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,urlQuery:_.urlQuery},action:(f=p,-1!==[ke.ERROR,ke.RESOURCE,ke.LONG_TASK].indexOf(f.type)&&w?{id:w}:void 0)},x=wt(b(E,m,p)),T=b({},S.context,v);R(T)||(x.tags=T),"has_replay"in x.session||(x.session.has_replay=S.hasReplay),R(S.user)||(x.user=b({is_signin:"T"},S.user)),function(t,n,r,i){if(n){var o=Fn(t,Do[t.type],(function(t){return n(t,r)}));if(!1===o&&t.type!==ke.VIEW)return!1;!1===o&&e.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(x,t.beforeSend,g,d)&&(R(x.tags)&&delete x.tags,n.notify(Bn,x))}}))}var zo=[];function $o(){document.hasFocus()&&Fo();var t,e,n=(t=Fo,mn(window,ee,(function(e){e.isTrusted&&t()}))),r=(e=Ho,mn(window,ne,(function(t){t.isTrusted&&e()})));return{isInForegroundAt:Vo,selectInForegroundPeriodsFor:jo,stop:function(){zo=[],n.stop(),r.stop()}}}function Fo(){if(!(zo.length>2500)){var t=zo[zo.length-1],e=it();void 0!==t&&void 0===t.end||zo.push({start:e})}}function Ho(){if(0!==zo.length){var t=zo[zo.length-1],e=it();void 0===t.end&&(t.end=e)}}function Vo(t){for(var e=zo.length-1;e>=0;e--){var n=zo[e];if(void 0!==n.end&&t>n.end)break;if(t>n.start&&(void 0===n.end||t<n.end))return!0}return!1}function jo(t,e){for(var n=ft(t,e),r=[],i=Math.max(0,zo.length-500),o=zo.length-1;o>=i;o--){var a=zo[o];if(void 0!==a.end&&t>a.end)break;if(!(n<a.start)){var s=t>a.start?t:a.start,u=ut(t,s),c=ut(s,void 0===a.end||n<a.end?n:a.end);r.unshift({start:et(u),duration:et(c)})}}return r}var qo;function Wo(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function Go(e,n){var r=new ln;return function(e){var n=vn([t.error]).subscribe((function(t){e.notify({startClocks:ot(),message:t.message,stack:t.stack,source:nn.CONSOLE,handling:De,handlingStack:t.handlingStack})}))}(r),function(t){en((function(e,n){t.notify(rn({stackTrace:e,originalError:n,startClocks:ot(),nonErrorPrefix:"Uncaught",source:nn.SOURCE,handling:Be}))}))}(r),function(t){var e=wn([bn,yn]).subscribe((function(e){t.notify({startClocks:ot(),message:e.message,stack:e.stack,type:e.subtype,source:nn.REPORT,handling:Be})}))}(r),r.subscribe((function(t){e.notify(zn,{error:t})})),function(t,e){return t.subscribe(zn,(function(n){t.notify(Dn,m({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:z(),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:ke.ERROR},r=e.isInForegroundAt(t.startClocks.relative);r&&(n.view={in_foreground:r});return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=rn({stackTrace:r instanceof Error?qe(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:"Provided",source:nn.CUSTOM,handling:De});t.notify(zn,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,n)}function Zo(t){if(void 0===t&&(t=window),!qo)if("hidden"===document.visibilityState)qo={timeStamp:0};else{qo={timeStamp:1/0};var e=_n(t,[Yt,qt],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(qo.timeStamp=t.timeStamp,e())}),{capture:!0}).stop}return qo}var Qo=6e5;function Xo(t,e,n){var r={};function o(t){r=y(r,t),n()}var a=function(t,e){return{stop:t.subscribe(Cn,(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<=it()?r.responseStart:void 0})}})).unsubscribe}}(t,(function(t){e(t.loadEvent),o(t)})),s=a.stop,u=function(t,e){var n=Zo();return{stop:t.subscribe(Cn,(function(t){var r=_t(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<n.timeStamp&&t.startTime<Qo}));r&&e(r.startTime)})).unsubscribe}}(t,(function(t){o({firstContentfulPaint:t})})),c=u.stop,d=function(t,e,n){var r=Zo(),i=1/0,o=_n(e,[Zt,Bt],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=t.subscribe(Cn,(function(t){var e=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<i&&t.startTime<r.timeStamp&&t.startTime<Qo}));e&&n(e.startTime)})).unsubscribe;return{stop:function(){o(),a()}}}(t,window,(function(t){o({largestContentfulPaint:t})})),f=d.stop,l=function(t,e){var n=Zo();return{stop:t.subscribe(Cn,(function(t){var r=_t(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.timeStamp}));if(r){var i=ut(r.startTime,r.processingStart);e({firstInputDelay:i>=0?i:0,firstInputTime:r.startTime})}})).unsubscribe}}(t,(function(t){o({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})),p=l.stop;function h(){s(),c(),f(),p()}return{stop:h,timings:r,scheduleStop:function(){i(h,3e5)}}}function Ko(t,e,n,r,i,o){var a,s={},u=function(t,e,n,r,i,o){var a=r===Ce,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:ji(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(ut(i.timeStamp,t.end)),c())})).stop}}(t,e,n,i,o,(function(t){s.loadingTime=t,r()})),c=u.setLoadEvent,d=u.stop;if(Pi("layout-shift")){s.cumulativeLayoutShift=0;var f=function(t,e){var n=0,r=function(){var t,e,n=0;return{update:function(r){void 0===t||r.startTime-e>=X||r.startTime-t>=5e3?(t=e=r.startTime,n=r.value):(n+=r.value,e=r.startTime)},value:function(){return n}}}();return{stop:t.subscribe(Cn,(function(t){for(var i=0;i<t.length;i++){var o=t[i];"layout-shift"!==o.entryType||o.hadRecentInput||(r.update(o),r.value()>n&&(n=r.value(),e(J(n,4))))}})).unsubscribe}}(t,(function(t){s.cumulativeLayoutShift=t,r()}));a=f.stop}else a=Z;return{stop:function(){d(),a()},setLoadEvent:c,viewMetrics:s}}var Yo=3e5;function Jo(t,e,n,r,o,u,c){function d(o,u,c){return function(t,e,n,r,o,u,c){void 0===u&&(u=ot());var d,f,l,p,h=z(),v={},g=0,y=_(r),b=!0;c&&(f=c.name,l=c.service,p=c.version);t.notify(An,{id:h,name:f,startClocks:u,service:l,version:p});var w=D(U,3e3,{leading:!1}),S=w.throttled,E=w.cancel,x=Ko(t,e,n,S,o,u),T=x.setLoadEvent,k=x.stop,C=x.viewMetrics,O=o===Ce?Xo(t,T,S):{scheduleStop:Z,timings:{}},A=O.scheduleStop,I=O.timings,R=function(t,e,n){var r=Hi({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){i(r.stop,3e5)},eventCounts:r.eventCounts}}(t,h,S),N=R.scheduleStop,L=R.eventCounts,M=a(U,Yo);function U(){E(),g+=1;var e=void 0===d?at():d.timeStamp;t.notify(In,m({customTimings:v,documentVersion:g,id:h,name:f,service:l,version:p,loadingType:o,location:y,startClocks:u,timings:I,duration:ut(u.timeStamp,e),isActive:void 0===d,sessionIsActive:b,eventCounts:L},C))}return U(),{name:f,service:l,version:p,scheduleUpdate:S,end:function(e){d||(d=Et(e&&e.endClocks,ot()),b=Et(e&&e.sessionIsActive,!0),t.notify(Rn,{endClocks:d}),s(M),k(),A(),N(),U())},addTiming:function(t,e){if(!d){var n=function(t){return t<31536e6}(e)?e:ut(u.timeStamp,e);v[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,S()}}}}(e,n,r,t,o,u,c)}var f,l=d(Ce,ct(),c);return e.subscribe(Nn,(function(){d(Oe,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(Ln,(function(){l.end({sessionIsActive:!1})})),e.subscribe(Mn,(function(t){t.reason!==gr.UNLOADING&&t.reason!==gr.PAGEHIDE||l.end()})),u&&(f=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!kt(n.hash)&&Ct(n.hash)!==Ct(e.hash))return l.end(),void(l=d(Oe))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=at()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d(Oe,e,t)},stop:function(){f&&f.unsubscribe(),l.end()}}}function ta(t,e,n,r,i,o,a,s){return t.subscribe(In,(function(e){t.notify(Dn,function(t,e,n){var r=n.getReplayStats(t.id),i={_gc:{document_version:t.documentVersion,replay_stats:r},date:t.startClocks.timeStamp,type:ke.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:et(t.timings.firstByte),dom_complete:et(t.timings.domComplete),dom_content_loaded:et(t.timings.domContentLoaded),dom_interactive:et(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:et(t.timings.firstContentfulPaint),first_input_delay:et(t.timings.firstInputDelay),first_input_time:et(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:et(t.timings.largestContentfulPaint),load_event:et(t.timings.loadEvent),loading_time:na(et(t.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:et(t.duration),in_foreground_periods:e.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},session:{has_replay:!!r||void 0,is_active:!!t.sessionIsActive&&void 0}};R(t.customTimings)||(i.view.custom_timings=(o=t.customTimings,a=et,s={},g(o,(function(t,e){s[e]=a(t)})),s));var o,a,s;return{rawRumEvent:i=b(i,{view:ea(t.timings)}),startTime:t.startClocks.relative,domainContext:{location:t.location}}}(e,o,a))})),Jo(n,t,r,e,i,!e.trackViewsManually,s)}function ea(t){var e=Ii(t);if(e){var n=e.fetchStart,r=e.responseEnd,i=e.domInteractive,o=e.domContentLoaded,a=e.domComplete,s=e.loadEventEnd,u=e.loadEventStart,c=e.domContentLoadedEventEnd,d={};if(r!==n){d.fpt=et(r-n);var f=parseInt((r-n)/1e3);d.apdexLevel=f>9?9:f}return i!==n&&(d.tti=et(i-n)),o!==n&&(d.dom_ready=et(o-n)),s!==n&&(d.load=et(s-n)),u!==c&&(d.resource_load_time=et(u-c)),a!==i&&(d.dom=et(a-i)),d}}function na(t){return U(t)&&t<0?void 0:t}function ra(){this.buffer=new Uint8Array(8),ia().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function ia(){return window.crypto||window.msCrypto}function oa(t){this._spanId=new ra,this._traceId=new ra,this._traceSampled=t}function aa(){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 sa(t,e,n){this._spanId=aa(),this._traceId=aa(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=F(e).getParse(),this._traceSampled=n}function ua(t,e){this._traceId=new ra,this._spanId=new ra,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function ca(t,e){this._traceId=new ra,this._spanId=new ra,this._traceSampled=e}function da(t,e){this._traceId=new ra,this._spanId=new ra,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function fa(t,e){this._traceId=new ra,this._spanId=new ra,this._traceSampled=t,this.isHexTraceId=e}function la(t){0===t.status&&t.isAborted}function pa(t,e,n,r){if(n.findTrackedSession()){var i=_t(t.allowedTracingUrls,(function(t){return O([t.match],e.url,!0)}));if(i){var o,a=!U(t.tracingSampleRate)||Y(t.tracingSampleRate);switch(i.traceType){case Ie:o=new oa(a);break;case Ue:o=new sa(t,e.url,a);break;case Re:o=new da(t,a);break;case Pe:o=new ua(t,a);break;case Le:o=new fa(a);break;case Me:o=new fa(a,!0);break;case Ne:o=new ca(t,a)}o&&o.isTracingSupported()&&(e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a,r(o.makeTracingHeaders()))}}}ra.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]}},oa.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()}}},sa.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(B(this._traceId)),e=String(B(this._spanId)),n=String(B(this._applicationId+"_rum_"+this.env)),r=String(B(this._version)),i=String(B(window.location.href)),o=String(B(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},ua.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()}}},ca.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()}}},da.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"}}},fa.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():"0000000000000000"+this._traceId.toPaddedHexadecimalString()},getTraceParent:function(){return"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){return{traceparent:this.getTraceParent()}}};var ha=1;function va(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:la,traceFetch:function(n){return pa(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=_(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):w(n.init.headers)?g(n.init.headers,(function(t){e.push(t)})):n.init.headers&&g(n.init.headers,(function(t,n){e.push([n,t])}));var r={};g(e.concat(N(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),g(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return pa(t,n,e,(function(t){g(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=fr().subscribe((function(r){var i=r;if(Mi(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=ga(),t.notify(Un,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Pn,{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=cr().subscribe((function(r){var i=r;if(Mi(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=ga(),t.notify(Un,{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 a(){var t,a;if(r.cancel().catch(Z),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;g(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((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())}),(function(t){e(t)}))}()}(n.body,(function(){e(ut(t.startClocks.timeStamp,at()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(ut(t.startClocks.timeStamp,at()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Pn,{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 ga(){var t=ha;return ha+=1,t}function ma(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n,r=k(e,(function(t){return t.toJSON()}));return r=T(r,Ii),1===(r=T(r,(function(e){return n=e,r=t.startClocks.relative,i=_a({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&_a(n)<=i+o;var n,r,i,o}))).length?r[0]:2===r.length&&_a((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function _a(t){return t.startTime+t.duration}function ya(t,e){t.subscribe(Pn,(function(e){t.notify(Dn,function(t){var e=t.type===Ae.XHR?le:he,n=ma(t),r=n?dt(n.startTime):t.startClocks,i=n?wa(n):void 0,o=function(t){if(!(t.traceSampled&&t.traceId&&t.spanId))return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:z()}}}(t),a=F(t.url).getParse(),s=b({date:r.timeStamp,resource:{id:z,type:e,duration:tt(t.duration),method:t.method,status:t.status,statusGroup:G(t.status),url:t.url,urlHost:a.Host,urlPath:a.Path,urlPathGroup:$(a.Path),urlQuery:He(H(t.url))},type:ke.RESOURCE},o,i);return{startTime:r.relative,rawRumEvent:s,domainContext:{performanceEntry:n&&Sa(n),xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(e))})),t.subscribe(Cn,(function(n){for(var r=0;r<n.length;r++){var i=n[r];"resource"!==i.entryType||("xmlhttprequest"===(o=i).initiatorType||"fetch"===o.initiatorType)||Oi(i.name,e.resourceUrlLimit)||t.notify(Dn,ba(i))}var o}))}function ba(t){var e=Ti(t),n=wa(t),r=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),i=F(t.name).getParse(),o="";!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)&&(o=200):o=304;var a=dt(t.startTime),s=b({date:a.timeStamp,resource:{id:z(),type:e,url:t.name,urlHost:i.Host,urlPath:i.Path,urlPathGroup:$(i.Path),urlQuery:He(H(t.name)),method:"GET",status:o,statusGroup:G(o)},type:ke.RESOURCE},r,n);return{startTime:a.relative,rawRumEvent:s,domainContext:{performanceEntry:Sa(t)}}}function wa(t){return{resource:b({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?tt(e.responseEnd-e.startTime):tt(e.duration)),size:Li(t)},Ai(t))};var e}function Sa(t){return"function"==typeof PerformanceEntry&&t instanceof PerformanceEntry&&t.toJSON(),t}var Ea,xa={sdkVersion:"3.0.18",sdkName:"df_web_rum_sdk"};function Ta(t){if(t.applicationId){if(!t.datakitUrl&&!t.datakitOrigin)return e.error("datakitOrigin is not configured, no RUM data will be collected."),!1;if(void 0===t.sessionReplaySampleRate||yt(t.sessionReplaySampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&e.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!w(t.allowedTracingUrls))return void e.error("Allowed Tracing URLs should be an array");var n=[];return g(t.allowedTracingUrls,(function(r){var i;gt(r)?n.push({match:r,traceType:Et(t.traceType,Ie)}):"object"===j(i=r)&>(i.match)&&L(i.traceType)?n.push(r):e.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),n}if(void 0!==t.allowedTracingOrigins){if(!w(t.allowedTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedTracingOrigins,(function(e){var r=ka(e,Et(t.traceType,Ie));r&&n.push(r)})),n}if(void 0!==t.allowedDDTracingOrigins){if(!w(t.allowedDDTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedDDTracingOrigins,(function(e){var r=ka(e,Et(t.traceType,Ie));r&&n.push(r)})),n}return[]}(t);if(n)if(void 0===t.tracingSampleRate||yt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||w(t.excludedActivityUrls)){var r=sr(t);if(r){var i=!!Et(t.trackUserInteractions,t.trackInteractions),o=!!t.trackFrustrations;return m({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Et(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,excludedActivityUrls:Et(t.excludedActivityUrls,[]),trackUserInteractions:i||o,trackFrustrations:o,trackViewsManually:!!t.trackViewsManually,traceType:Et(t.traceType,Ie),traceId128Bit:!!t.traceId128Bit,isJsBirdge:!!t.isJsBirdge,defaultPrivacyLevel:xt(ar,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ar.MASK_USER_INPUT},r,xa)}}else e.error("Excluded Activity Urls should be an array");else e.error("Tracing Sample Rate should be a number between 0 and 100")}else e.error("Premium Sample Rate should be a number between 0 and 100")}else e.error("Application ID is not configured, no RUM data will be collected.")}function ka(t,n){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(Gn(e))}:"function"==typeof t&&(r=function(e){return t(Gn(e))}),void 0!==r)return{match:r,traceType:n};e.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function Ca(){var t;return Ea||(t=new ln((function(){var e=D((function(){t.notify(Oa())}),200).throttled;return mn(window,ie,e,{capture:!0,passive:!0}).stop})),Ea=t),Ea}function Oa(){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 Aa=2,Ia=3,Ra=4,Na=6,La=7,Ma=8,Ua=9,Pa=0,Da=1,Ba=2,za=3,$a=4,Fa=11,Ha=0,Va=1,ja=2,qa=3,Wa=4,Ga=5,Za=6,Qa=7,Xa=8,Ka=0,Ya=1,Ja=2,ts=3,es=4,ns=5,rs=6,is=7,os=9,as=0,ss=1,us={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ar.ALLOW,MASK:ar.MASK,MASK_USER_INPUT:ar.MASK_USER_INPUT},cs="data-gc-privacy",ds="hidden",fs="***",ls={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function ps(t,e){var n=wr(t),r=n?ps(n,e):e;return hs(vs(t),r)}function hs(t,e){switch(e){case us.HIDDEN:case us.IGNORE:return e}switch(t){case us.ALLOW:case us.MASK:case us.MASK_USER_INPUT:case us.HIDDEN:case us.IGNORE:return t;default:return e}}function vs(t){if(_r(t)){var e=t.getAttribute(cs);if("BASE"===t.tagName)return us.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return us.MASK;if("hidden"===n.type)return us.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return us.MASK}return e===ds||t.classList.contains("gc-privacy-hidden")?us.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?us.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?us.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?us.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)?us.IGNORE:void 0}}function gs(t,e){switch(e){case us.MASK:case us.HIDDEN:case us.IGNORE:return!0;case us.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?ms(t.parentNode):ms(t);default:return!1}}function ms(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!!ls[e.tagName]}function _s(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o="STYLE"===r||void 0;if("SCRIPT"===r)i=fs;else if(n===us.HIDDEN)i=fs;else if(gs(t,n)&&!o)if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?fs:i.replace(/\S/g,"x");return i}}var ys=new WeakMap;function bs(t){return ys.has(t)}function ws(t){return ys.get(t)}function Ss(t,e){var n=t.tagName,r=t.value;if(gs(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===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 Es=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,xs=/^[A-Za-z]+:|^\/\//,Ts=/^data:.*,/i;function ks(t,e){return t.replace(Es,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||xs.test(s)||Ts.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 Zn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Cs(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 Os(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var As=/^[^ \t\n\r\u000c]+/,Is=/^[, \t\n\r\u000c]+/;var Rs=0,Ns=1,Ls=2;function Ms(t,e,n){return Us(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Us(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Pa,childNodes:Ps(t,e),adoptedStyleSheets:Cs(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=[];t.childNodes.length&&(n=Ps(t,e));var r=br(t);r&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Fa,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?Cs(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:Da,name:(n=t).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=hs(vs(t),e.parentNodePrivacyLevel);var o;if(i===us.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Ba,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[cs]:ds},childNodes:[],isSVG:r}}if(i===us.IGNORE)return;var c=function(t,e,n){if(e===us.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=Ds(t,e,s,n.configuration);null!==u&&(r[s]=Vs(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Ss(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===us.ALLOW){var d=t;d.selected&&(r.selected=d.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(l=Fs(f))&&f&&(r._cssText=l)}if("style"===i&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var l;(l=Fs(t.sheet))&&(r._cssText=l)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===us.ALLOW?r.checked=!!v.checked:gs(v,e)&&delete r.checked);if("audio"===i||"video"===i){var g=t;r.rr_mediaState=g.paused?"paused":"played"}var m=n.serializationContext;switch(m.status){case Rs:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&m.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case Ns:m.elementsScrollPositions.has(t)&&({scrollTop:p,scrollLeft:h}=m.elementsScrollPositions.get(t))}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),d=[];if(t.childNodes.length){d=Ps(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:m({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}if(yr(t)){var f=Us(t.shadowRoot,e);null!==f&&d.push(f)}return{type:Ba,tagName:n,attributes:c,childNodes:d,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=t.parentElement&&t.parentElement.tagName,r=_s(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(!r)return;return{type:za,textContent:r,isStyle:"STYLE"===n||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:$a,textContent:""}}var n}(t,e);if(!n)return null;var r=ws(t)||Bs++,i=n;return i.id=r,function(t,e){ys.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Ps(t,e){var n=[];return t.childNodes.forEach((function(t){var r=Us(t,e);r&&n.push(r)})),n}function Ds(t,e,n,r){if(e===us.HIDDEN)return null;var i=t.getAttribute(n);if(e===us.MASK&&n!==cs&&!co.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return fs}if(!("IMG"!==o&&"SOURCE"!==o||"src"!==n&&"srcset"!==n))return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("A"===o&&"href"===n)return fs;if(i&&Tt(n,"data-"))return fs}return i&&"string"==typeof i&&i.length>1e5&&"data:"===i.slice(0,5)?"data:truncated":i}var Bs=1;var zs=/[^a-z1-6-_]/;function $s(t){var e=t.toLowerCase().trim();return zs.test(e)?"div":e}function Fs(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch{}return e?ks(Array.from(e,Hs).join(""),t.href):null}function Hs(t){return function(t){return"styleSheet"in t}(t)?Fs(t.styleSheet)||"":t.cssText}function Vs(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Os(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(Is),!(n>=e.length);){var o=r(As);if(","===o.slice(-1))o=Os(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Os(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?ks(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Os(t,r):r:Os(t,r):r;var i}function js(t){return Boolean(t.changedTouches)}function qs(t,e){return{data:m({source:t},e),type:Ia,timestamp:at()}}function Ws(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}}function Gs(t){var e=Z,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(t,e);return function(){return window.cancelIdleCallback(n)}}return n=window.requestAnimationFrame(t),function(){return window.cancelAnimationFrame(n)}}(r,{timeout:100})),n.push(...t)},flush:r,stop:function(){e()}}}function Zs(t,e,n,r){var i=$i();if(!i)return{stop:Z,flush:Z};var o=Gs((function(i){!function(t,e,n,r,i){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){Qs(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return i.contains(t.target)&&function(t){for(var e=t;e;){if(!bs(e)&&!br(e))return!1;e=wr(e)}return!0}(t.target)&&ps(t.target,n.defaultPrivacyLevel)!==us.HIDDEN})),a=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 d of a)if(!v(d)){var f=ps(d.parentNode,e.defaultPrivacyLevel);if(f!==us.HIDDEN&&f!==us.IGNORE){var l=Us(d,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:Ls,shadowRootsController:n},configuration:e});if(l){var p=wr(d);c.push({nextId:g(d),parentId:ws(p),node:l})}}}var h=[];return i.forEach((function(t,e){bs(e)&&h.push({parentId:ws(t),id:ws(e)})})),{adds:c,removes:h,serializedNodeIds:u,hasBeenSerialized:v};function v(t){return bs(t)&&u.has(ws(t))}function g(t){for(var e=t.nextSibling;e;){if(bs(e))return ws(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r),s=a.adds,u=a.removes,c=a.serializedNodeIds;function d(t){return bs(t)&&c.has(ws(t))}var f=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=ps(wr(o.target),e.defaultPrivacyLevel);a!==us.HIDDEN&&a!==us.IGNORE&&n.push({id:ws(o.target),value:Et(_s(o.target,!1,a))})}}return n}(o.filter((function(t){return"characterData"===t.type&&!d(t.target)})),n),l=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=ps(a.target,e.defaultPrivacyLevel),c=Ds(a.target,u,a.attributeName,e);if("value"===a.attributeName){var d=Ss(a.target,u);if(void 0===d)continue;s=d}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:ws(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(o.filter((function(t){return"attributes"===t.type&&!d(t.target)})),n);if(!(f.length||l.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:l})}(i.concat(a.takeRecords()),t,e,n,r)})),a=new i(o.addMutations);return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function Qs(t,e){var n;yr(t)&&e(t.shadowRoot),(n=t,yr(n)?n.shadowRoot.childNodes:n.childNodes).forEach((function(t){Qs(t,e)}))}var Xs=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},Ks=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}};function Ys(){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 Js(){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 tu=new WeakMap;let eu=1;function nu(t){return tu.has(t)||tu.set(t,eu++),tu.get(t)}function ru(t){var e,n,r,i,o,a,s,u,c=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Zs(e,n,r,document)),d=function(t){var e=D((function(e){var n=su(e);if(bs(n)){var r=ou(e);if(!r)return;var i={id:ws(n),timeOffset:0,x:r.x,y:r.y};t([i],js(e)?Za:Va)}}),50,{trailing:!1});return _n(document,[te,jt],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),f=function(t,e){var n=function(n){var r=su(n);if(ps(r,e)!==us.HIDDEN&&bs(r)){var i,o=ws(r),a=iu[n.type];if(a!==rs&&a!==ns){var s=ou(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=m({id:nu(n)},qs(ja,i));t(u)}};return _n(document,Object.keys(iu),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),l=function(t,e,n){var r=D((function(r){var i=su(r);if(i&&ps(i,e)!==us.HIDDEN&&bs(i)){var o=ws(i),a=i===document?{scrollTop:Js(),scrollLeft:Ys()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100);return mn(document,Ft,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),p=function(t){return Ca().subscribe(t).unsubscribe}(t.viewportResizeCb),h=au(t.inputCb,t.configuration.defaultPrivacyLevel),v=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,_n(document,[se,ue],(function(t){var e=su(t);e&&ps(e,o)!==us.HIDDEN&&bs(e)&&i({id:ws(e),type:t.type===se?as:ss})}),{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&bs(t.ownerNode)&&e(ws(t.ownerNode))}var n=[$e(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),$e(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($e(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=Ws(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),$e(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=Ws(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),_=(a=t.focusCb,_n(window,[ee,ne],(function(){a({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return Z;var e=D((function(){t(Ks())}),200,{trailing:!1}),n=_n(window.visualViewport,[ie,Ft],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),b=(s=t.lifeCycle,u=t.frustrationCb,s.subscribe(Dn,(function(t){t.rawRumEvent.type===ke.ACTION&&t.rawRumEvent.action.type===we&&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&&u({timestamp:t.rawRumEvent.date,type:Ua,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return nu(t)}))}})})).unsubscribe);return{flush:function(){c.flush()},stop:function(){c.stop(),d(),f(),l(),p(),h(),v(),g(),_(),y(),b()}}}var iu={[Qt]:Ka,[Jt]:Ya,[Pt]:Ja,[re]:ts,[Dt]:es,[ee]:ns,[ne]:rs,[Ht]:is,[Vt]:os};function ou(t){var e=js(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Xs(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function au(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=_n(n,o?[oe]:[ae,oe],(function(t){var e=su(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=Z;else{const t=[Fe(HTMLInputElement.prototype,"value",u),Fe(HTMLInputElement.prototype,"checked",u),Fe(HTMLSelectElement.prototype,"value",u),Fe(HTMLTextAreaElement.prototype,"value",u),Fe(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=ps(t,e);if(n===us.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(gs(t,n))return;i={isChecked:t.checked}}else{var o=Ss(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="${u}"]`),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(bs(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(m({id:ws(e)},n)))}}}function su(t){return!0===t.composed&&yr(t.target)?t.composedPath()[0]:t.target}function uu(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(qs(Ha,t))},o=function(t){e(qs(Ga,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){var a=Zs(n,t,o,e),s=a.flush,u=a.stop,c=au(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}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=at()),void 0===i&&(i={status:Rs,elementsScrollPositions:r,shadowRootsController:a});var o=Oa(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Ra,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Na,timestamp:n}),e({data:{node:Ms(document,t.configuration,i),initialOffset:{left:Ys(),top:Js()}},type:Aa,timestamp:n}),window.visualViewport&&e({data:Ks(),type:Ma,timestamp:n})};s();var u=ru({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(qs(Qa,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(qs(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(qs(qa,t))},styleSheetCb:function(t){e(qs(Xa,t))},viewportResizeCb:function(t){e(qs(Wa,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Na,timestamp:at()})},visualViewportResizeCb:function(t){e({data:t,type:Ma,timestamp:at()})},shadowRootsController:a}),c=u.stop,d=u.flush;function f(){a.flush(),d()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Ns,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function cu(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),du(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n.toString()),{data:r,bytesCount:t.byteLength}}function du(t,e,n){void 0===n&&(n=""),g(N(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?du(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var fu;function lu(t){return vu(t).segments_count}function pu(t){vu(t).records_count+=1}function hu(t){return fu&&fu.get(t)}function vu(t){var e;return fu||(fu=new Map),fu.has(t)?e=fu.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},fu.set(t,e),fu.size>10&&function(){if(!fu)return;if(fu.keys)fu.delete(fu.keys().next().value);else{var t=!0;fu.forEach((function(e,n){t&&(fu.delete(n),t=!1)}))}}()),e}var gu=0;function mu(t,e,n,r,i,o){this.worker=t,this.id=gu++;var a=e.view.id;this.metadata=m({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===Aa,index_in_view:lu(a),source:"browser"},e),function(t){vu(t).segments_count+=1}(a),pu(a);var s=this,u=function(e){var n=e.data;"errored"!==n.type&&"initialized"!==n.type&&(n.id===s.id?(!function(t,e){vu(t).segments_total_raw_size+=e}(a,n.additionalBytesCount),"flushed"===n.type?(o(n.result,n.rawBytesCount),t.removeEventListener("message",u)):i(n.compressedBytesCount)):n.id>s.id&&t.removeEventListener("message",u))};t.addEventListener("message",u),this.worker.postMessage({data:'{"records":['+JSON.stringify(r),id:this.id,action:"write"})}mu.prototype.addRecord=function(t){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,pu(this.metadata.view.id),this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===Aa),this.worker.postMessage({data:","+JSON.stringify(t),id:this.id,action:"write"})},mu.prototype.flush=function(t){this.worker.postMessage({data:"],"+JSON.stringify(this.metadata).slice(1)+"\n",id:this.id,action:"flush"}),this.flushReason=t};var _u=6e4;function yu(t,e,n,r,a,s){return function(t,e,n,r){var a={status:bu,nextSegmentCreationReason:"init"},s=t.subscribe(An,(function(){c("view_change")})).unsubscribe,u=t.subscribe(Mn,(function(t){c(t.reason)})).unsubscribe;function c(t){a.status===wu&&(a.segment.flush(t),o(a.expirationTimeoutId)),a="stop"!==t?{status:bu,nextSegmentCreationReason:t}:{status:Su}}function d(t,o){var s=e();if(s){var u=new mu(r,s,t,o,(function(t){!u.flushReason&&t>_u&&c("segment_bytes_limit")}),(function(t,e){var r=cu(t,u.metadata,e);mr(u.flushReason)?n.sendOnExit(r):n.send(r)}));a={status:wu,segment:u,expirationTimeoutId:i((function(){c("segment_duration_limit")}),3e4)}}}return{addRecord:function(t){switch(a.status){case bu:d(a.nextSegmentCreationReason,t);break;case wu:a.segment.addRecord(t)}},stop:function(){c("stop"),s(),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)}),a,s)}var bu=0,wu=1,Su=2;let Eu;function xu(){return Eu||(Eu=URL.createObjectURL(new Blob([`(${Tu})(self)`]))),new Worker(Eu)}function Tu(){function t(t){return function(){try{return t.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(e){self.postMessage({type:"errored",error:`${t}`})}}}}t((function(){var e=function(){var t=4,e=0,n=1,r=2;function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=0,a=1,s=2,u=3,c=258,d=29,f=256,l=f+1+d,p=30,h=19,v=2*l+1,g=15,m=16,_=7,y=256,b=16,w=17,S=18,E=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]),x=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]),T=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=512,O=new Array(2*(l+2));i(O);var A=new Array(2*p);i(A);var I=new Array(C);i(I);var R=new Array(c-u+1);i(R);var N=new Array(d);i(N);var L,M,U,P=new Array(p);function D(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function B(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}i(P);var z=function(t){return t<256?I[t]:I[256+(t>>>7)]},$=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},F=function(t,e,n){t.bi_valid>m-n?(t.bi_buf|=e<<t.bi_valid&65535,$(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=n-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},H=function(t,e,n){F(t,n[2*e],n[2*e+1])},V=function(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},j=function(t){16===t.bi_valid?($(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)},q=function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,d=e.stat_desc.static_tree,f=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<v;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>h&&(o=h,m++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=l[r-p]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(d[2*r+1]+a)));if(0!==m){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,m-=2}while(m>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},W=function(t,e,n){var r,i,o=new Array(g+1),a=0;for(r=1;r<=g;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=V(o[s]++,s))}},G=function(){var t,e,n,r,i,o=new Array(g+1);for(n=0,r=0;r<d-1;r++)for(N[r]=n,t=0;t<1<<E[r];t++)R[n++]=r;for(R[n-1]=r,i=0,r=0;r<16;r++)for(P[r]=i,t=0;t<1<<x[r];t++)I[i++]=r;for(i>>=7;r<p;r++)for(P[r]=i<<7,t=0;t<1<<x[r]-7;t++)I[256+i++]=r;for(e=0;e<=g;e++)o[e]=0;for(t=0;t<=143;)O[2*t+1]=8,t++,o[8]++;for(;t<=255;)O[2*t+1]=9,t++,o[9]++;for(;t<=279;)O[2*t+1]=7,t++,o[7]++;for(;t<=287;)O[2*t+1]=8,t++,o[8]++;for(W(O,l+1,o),t=0;t<p;t++)A[2*t+1]=5,A[2*t]=V(t,5);L=new D(O,E,f+1,l,g),M=new D(A,x,0,p,g),U=new D(new Array(0),T,0,h,_)},Z=function(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<p;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},Q=function(t){t.bi_valid>8?$(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},X=function(t,e,n,r){Q(t),r&&($(t,n),$(t,~n)),t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},K=function(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},Y=function(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&K(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!K(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},J=function(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?H(t,i,e):(o=R[i],H(t,o+f+1,e),0!==(a=E[o])&&(i-=N[o],F(t,i,a)),r--,o=z(r),H(t,o,n),0!==(a=x[o])&&(r-=P[o],F(t,r,a)))}while(s<t.last_lit);H(t,y,e)},tt=function(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=v,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Y(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Y(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Y(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],q(t,e),W(o,c,t.bl_count)},et=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*b]++):s<=10?t.bl_tree[2*w]++:t.bl_tree[2*S]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},nt=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{H(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(H(t,i,t.bl_tree),s--),H(t,b,t.bl_tree),F(t,s-3,2)):s<=10?(H(t,w,t.bl_tree),F(t,s-3,3)):(H(t,S,t.bl_tree),F(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},rt=function(t){var e;for(et(t,t.dyn_ltree,t.l_desc.max_code),et(t,t.dyn_dtree,t.d_desc.max_code),tt(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},it=function(t,e,n,r){var i;for(F(t,e-257,5),F(t,n-1,5),F(t,r-4,4),i=0;i<r;i++)F(t,t.bl_tree[2*k[i]+1],3);nt(t,t.dyn_ltree,e-1),nt(t,t.dyn_dtree,n-1)},ot=function(t){var r,i=4093624447;for(r=0;r<=31;r++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*r])return e;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return n;for(r=32;r<f;r++)if(0!==t.dyn_ltree[2*r])return n;return e},at=!1,st=function(t,e,n,r){F(t,(o<<1)+(r?1:0),3),X(t,e,n,!0)},ut=function(e,n,i,o){var u,c,d=0;e.level>0?(e.strm.data_type===r&&(e.strm.data_type=ot(e)),tt(e,e.l_desc),tt(e,e.d_desc),d=rt(e),u=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=u&&(u=c)):u=c=i+5,i+4<=u&&-1!==n?st(e,n,i,o):e.strategy===t||c===u?(F(e,(a<<1)+(o?1:0),3),J(e,O,A)):(F(e,(s<<1)+(o?1:0),3),it(e,e.l_desc.max_code+1,e.d_desc.max_code+1,d+1),J(e,e.dyn_ltree,e.dyn_dtree)),Z(e),o&&Q(e)},ct={_tr_init:function(t){at||(G(),at=!0),t.l_desc=new B(t.dyn_ltree,L),t.d_desc=new B(t.dyn_dtree,M),t.bl_desc=new B(t.bl_tree,U),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:st,_tr_flush_block:ut,_tr_tally:function(t,e,n){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&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(R[n]+f+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){F(t,a<<1,3),H(t,y,O),j(t)}},dt=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},ft=new Uint32Array(function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}()),lt=function(t,e,n,r){var i=ft,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},pt={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"},ht={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},vt=ct._tr_init,gt=ct._tr_stored_block,mt=ct._tr_flush_block,_t=ct._tr_tally,yt=ct._tr_align,bt=ht.Z_NO_FLUSH,wt=ht.Z_PARTIAL_FLUSH,St=ht.Z_FULL_FLUSH,Et=ht.Z_FINISH,xt=ht.Z_BLOCK,Tt=ht.Z_OK,kt=ht.Z_STREAM_END,Ct=ht.Z_STREAM_ERROR,Ot=ht.Z_DATA_ERROR,At=ht.Z_BUF_ERROR,It=ht.Z_DEFAULT_COMPRESSION,Rt=ht.Z_FILTERED,Nt=ht.Z_HUFFMAN_ONLY,Lt=ht.Z_RLE,Mt=ht.Z_FIXED,Ut=ht.Z_DEFAULT_STRATEGY,Pt=ht.Z_UNKNOWN,Dt=ht.Z_DEFLATED,Bt=9,zt=15,$t=8,Ft=286,Ht=30,Vt=19,jt=2*Ft+1,qt=15,Wt=3,Gt=258,Zt=Gt+Wt+1,Qt=32,Xt=42,Kt=69,Yt=73,Jt=91,te=103,ee=113,ne=666,re=1,ie=2,oe=3,ae=4,se=3,ue=function(t,e){return t.msg=pt[e],e},ce=function(t){return(t<<1)-(t>4?9:0)},de=function(t){for(var e=t.length;--e>=0;)t[e]=0},fe=function(t,e,n){return(e<<t.hash_shift^n)&t.hash_mask},le=function(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},pe=function(t,e){mt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,le(t.strm)},he=function(t,e){t.pending_buf[t.pending++]=e},ve=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ge=function(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=dt(t.adler,e,i,n):2===t.state.wrap&&(t.adler=lt(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},me=function(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Zt?t.strstart-(t.w_size-Zt):0,c=t.window,d=t.w_mask,f=t.prev,l=t.strstart+Gt,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<l);if(r=Gt-(l-o),o=l-Gt,r>a){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}}while((e=f[e&d])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},_e=function(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-Zt)){t.window.set(t.window.subarray(a,a+a),0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=ge(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=Wt)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=fe(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=fe(t,t.ins_h,t.window[o+Wt-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<Wt)););}while(t.lookahead<Zt&&0!==t.strm.avail_in)},ye=function(t,e){for(var n,r;;){if(t.lookahead<Zt){if(_e(t),t.lookahead<Zt&&e===bt)return re;if(0===t.lookahead)break}if(n=0,t.lookahead>=Wt&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-Zt&&(t.match_length=me(t,n)),t.match_length>=Wt)if(r=_t(t,t.strstart-t.match_start,t.match_length-Wt),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=Wt){t.match_length--;do{t.strstart++,t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=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=fe(t,t.ins_h,t.window[t.strstart+1]);else r=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=t.strstart<Wt-1?t.strstart:Wt-1,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},be=function(t,e){for(var n,r,i;;){if(t.lookahead<Zt){if(_e(t),t.lookahead<Zt&&e===bt)return re;if(0===t.lookahead)break}if(n=0,t.lookahead>=Wt&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=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=Wt-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Zt&&(t.match_length=me(t,n),t.match_length<=5&&(t.strategy===Rt||t.match_length===Wt&&t.strstart-t.match_start>4096)&&(t.match_length=Wt-1)),t.prev_length>=Wt&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-Wt,r=_t(t,t.strstart-1-t.prev_match,t.prev_length-Wt),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=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=Wt-1,t.strstart++,r&&(pe(t,!1),0===t.strm.avail_out))return re}else if(t.match_available){if((r=_t(t,0,t.window[t.strstart-1]))&&pe(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return re}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=_t(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<Wt-1?t.strstart:Wt-1,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},we=function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Gt){if(_e(t),t.lookahead<=Gt&&e===bt)return re;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=Wt&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Gt;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Gt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=Wt?(n=_t(t,1,t.match_length-Wt),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},Se=function(t,e){for(var n;;){if(0===t.lookahead&&(_e(t),0===t.lookahead)){if(e===bt)return re;break}if(t.match_length=0,n=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie};function Ee(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var xe=[new Ee(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_e(t),0===t.lookahead&&e===bt)return re;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,pe(t,!1),0===t.strm.avail_out))return re;if(t.strstart-t.block_start>=t.w_size-Zt&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):(t.strstart>t.block_start&&(pe(t,!1),t.strm.avail_out),re)})),new Ee(4,4,8,4,ye),new Ee(4,5,16,8,ye),new Ee(4,6,32,32,ye),new Ee(4,4,16,16,be),new Ee(8,16,32,32,be),new Ee(8,16,128,128,be),new Ee(8,32,128,256,be),new Ee(32,128,258,1024,be),new Ee(32,258,258,4096,be)],Te=function(t){t.window_size=2*t.w_size,de(t.head),t.max_lazy_match=xe[t.level].max_lazy,t.good_match=xe[t.level].good_length,t.nice_match=xe[t.level].nice_length,t.max_chain_length=xe[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Wt-1,t.match_available=0,t.ins_h=0};function ke(){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=Dt,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(2*jt),this.dyn_dtree=new Uint16Array(2*(2*Ht+1)),this.bl_tree=new Uint16Array(2*(2*Vt+1)),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(qt+1),this.heap=new Uint16Array(2*Ft+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ft+1),de(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 Ce=function(t){if(!t||!t.state)return ue(t,Ct);t.total_in=t.total_out=0,t.data_type=Pt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?Xt:ee,t.adler=2===e.wrap?0:1,e.last_flush=bt,vt(e),Tt},Oe=function(t){var e=Ce(t);return e===Tt&&Te(t.state),e},Ae=function(t,e,n,r,i,o){if(!t)return Ct;var a=1;if(e===It&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Bt||n!==Dt||r<8||r>15||e<0||e>9||o<0||o>Mt)return ue(t,Ct);8===r&&(r=9);var s=new ke;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Wt-1)/Wt),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,Oe(t)},Ie=function(t,e){var n=e.length;if(!t||!t.state)return Ct;var r=t.state,i=r.wrap;if(2===i||1===i&&r.status!==Xt||r.lookahead)return Ct;if(1===i&&(t.adler=dt(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(de(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(e.subarray(n-r.w_size,n),0),e=o,n=r.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,_e(r);r.lookahead>=Wt;){var c=r.strstart,d=r.lookahead-(Wt-1);do{r.ins_h=fe(r,r.ins_h,r.window[c+Wt-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++}while(--d);r.strstart=c,r.lookahead=Wt-1,_e(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Wt-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=i,Tt},Re={deflateInit:function(t,e){return Ae(t,e,Dt,zt,$t,Ut)},deflateInit2:Ae,deflateReset:Oe,deflateResetKeep:Ce,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?Ct:(t.state.gzhead=e,Tt):Ct},deflate:function(t,e){var n,r;if(!t||!t.state||e>xt||e<0)return t?ue(t,Ct):Ct;var i=t.state;if(!t.output||!t.input&&0!==t.avail_in||i.status===ne&&e!==Et)return ue(t,0===t.avail_out?At:Ct);i.strm=t;var o=i.last_flush;if(i.last_flush=e,i.status===Xt)if(2===i.wrap)t.adler=0,he(i,31),he(i,139),he(i,8),i.gzhead?(he(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),he(i,255&i.gzhead.time),he(i,i.gzhead.time>>8&255),he(i,i.gzhead.time>>16&255),he(i,i.gzhead.time>>24&255),he(i,9===i.level?2:i.strategy>=Nt||i.level<2?4:0),he(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(he(i,255&i.gzhead.extra.length),he(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=lt(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Kt):(he(i,0),he(i,0),he(i,0),he(i,0),he(i,0),he(i,9===i.level?2:i.strategy>=Nt||i.level<2?4:0),he(i,se),i.status=ee);else{var a=Dt+(i.w_bits-8<<4)<<8;a|=(i.strategy>=Nt||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=Qt),a+=31-a%31,i.status=ee,ve(i,a),0!==i.strstart&&(ve(i,t.adler>>>16),ve(i,65535&t.adler)),t.adler=1}if(i.status===Kt)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending!==i.pending_buf_size));)he(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Yt)}else i.status=Yt;if(i.status===Yt)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,he(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=Jt)}else i.status=Jt;if(i.status===Jt)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,he(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=te)}else i.status=te;if(i.status===te&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&le(t),i.pending+2<=i.pending_buf_size&&(he(i,255&t.adler),he(i,t.adler>>8&255),t.adler=0,i.status=ee)):i.status=ee),0!==i.pending){if(le(t),0===t.avail_out)return i.last_flush=-1,Tt}else if(0===t.avail_in&&ce(e)<=ce(o)&&e!==Et)return ue(t,At);if(i.status===ne&&0!==t.avail_in)return ue(t,At);if(0!==t.avail_in||0!==i.lookahead||e!==bt&&i.status!==ne){var s=i.strategy===Nt?Se(i,e):i.strategy===Lt?we(i,e):xe[i.level].func(i,e);if(s!==oe&&s!==ae||(i.status=ne),s===re||s===oe)return 0===t.avail_out&&(i.last_flush=-1),Tt;if(s===ie&&(e===wt?yt(i):e!==xt&&(gt(i,0,0,!1),e===St&&(de(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),le(t),0===t.avail_out))return i.last_flush=-1,Tt}return e!==Et?Tt:i.wrap<=0?kt:(2===i.wrap?(he(i,255&t.adler),he(i,t.adler>>8&255),he(i,t.adler>>16&255),he(i,t.adler>>24&255),he(i,255&t.total_in),he(i,t.total_in>>8&255),he(i,t.total_in>>16&255),he(i,t.total_in>>24&255)):(ve(i,t.adler>>>16),ve(i,65535&t.adler)),le(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Tt:kt)},deflateEnd:function(t){if(!t||!t.state)return Ct;var e=t.state.status;return e!==Xt&&e!==Kt&&e!==Yt&&e!==Jt&&e!==te&&e!==ee&&e!==ne?ue(t,Ct):(t.state=null,e===ee?ue(t,Ot):Tt)},deflateSetDictionary:Ie,deflateInfo:"pako deflate (from Nodeca project)"};function Ne(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i}for(var Le=new Uint8Array(256),Me=0;Me<256;Me++)Le[Me]=Me>=252?6:Me>=248?5:Me>=240?4:Me>=224?3:Me>=192?2:1;function Ue(){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}Le[254]=Le[254]=1;var Pe=Ue,De=Object.prototype.toString,Be=ht.Z_NO_FLUSH,ze=ht.Z_SYNC_FLUSH,$e=ht.Z_FULL_FLUSH,Fe=ht.Z_FINISH,He=ht.Z_OK,Ve=ht.Z_STREAM_END,je=ht.Z_DEFAULT_COMPRESSION,qe=ht.Z_DEFAULT_STRATEGY,We=ht.Z_DEFLATED;function Ge(){this.options={level:je,method:We,chunkSize:16384,windowBits:15,memLevel:8,strategy:qe};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 Pe,this.strm.avail_out=0;var e=Re.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==He)throw new Error(pt[e]);if(t.header&&Re.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="[object ArrayBuffer]"===De.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Re.deflateSetDictionary(this.strm,n))!==He)throw new Error(pt[e]);this._dict_set=!0}}function Ze(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}return Ge.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Fe:Be,"[object ArrayBuffer]"===De.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===ze||r===$e)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Re.deflate(i,r))===Ve)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Re.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===He;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Ge.prototype.onData=function(t){this.chunks.push(t)},Ge.prototype.onEnd=function(t){t===He&&(this.result=Ne(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},{Deflate:Ge,constants:ht,string2buf:Ze}}(),n=e.Deflate,r=e.constants,i=e.string2buf,o=new n,a=0;function s(t){var e=i(t);return o.push(e,r.Z_SYNC_FLUSH),a+=e.length,e.length}self.addEventListener("message",t((function(t){var e=t.data;switch(e.action){case"init":self.postMessage({type:"initialized"});break;case"write":var i=s(e.data);self.postMessage({type:"wrote",id:e.id,compressedBytesCount:o.chunks.reduce((function(t,e){return t+e.length}),0),additionalBytesCount:i});break;case"flush":i=e.data?s(e.data):0;o.push("",r.Z_FINISH),self.postMessage({type:"flushed",id:e.id,result:o.result,additionalBytesCount:i,rawBytesCount:a}),o=new n,a=0}})))}))()}var ku=0,Cu=1,Ou=2,Au=3,Iu={status:ku};function Ru(t,e){switch(void 0===e&&(e=xu),Iu.status){case ku:Iu={status:Cu,callbacks:[t]},function(t){void 0===t&&(t=xu);try{var e=t();mn(e,"error",Nu),mn(e,"message",(function(t){var n=t.data;"errored"===n.type?Nu(n.error):"initialized"===n.type&&function(t){Iu.status===Cu&&(g(Iu.callbacks,(function(e){e(t)})),Iu={status:Au,worker:t})}(e)})),e.postMessage({action:"init"})}catch(t){Nu(t)}}(e);break;case Cu:Iu.callbacks.push(t);break;case Ou:t();break;case Au:t(Iu.worker)}}function Nu(t){Iu.status===Cu&&(e.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),(t instanceof Event||t instanceof Error&&mt(t.message,"Content Security Policy"))&&e.error("Please make sure CSP is correctly configured !!!"),g(Iu.callbacks,(function(t){t()})),Iu={status:Ou})}var Lu=0,Mu=1,Uu=2,Pu=3;var Du,Bu,zu,$u,Fu=function(t,e){if(void 0===e&&(e=Ru),"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:Z,stop:Z,getReplayStats:function(){},onRumStart:Z,isRecording:function(){return!1}};var n={status:Lu},r=function(){n={status:Mu}},i=function(){n={status:Lu}};return{start:function(){r()},stop:function(){i()},getReplayStats:hu,onRumStart:function(o,a,s,u){o.subscribe(Ln,(function(){n.status!==Uu&&n.status!==Pu||(i(),n={status:Mu})})),o.subscribe(Nn,(function(){n.status===Mu&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?n.status!==Uu&&n.status!==Pu&&(n={status:Uu},Sr("interactive",(function(){n.status===Uu&&e((function(e){if(n.status===Uu)if(e){var r=t(o,a,s,u,e);n={status:Pu,stopRecording:r.stop}}else n={status:Lu}}))}))):n={status:Mu}},i=function(){n.status!==Lu&&(n.status===Pu&&n.stopRecording(),n={status:Lu})},n.status===Mu&&r()},isRecording:function(){return n.status===Pu}}}((function(t,e,n,r,i,o){var a=o||ei(e.sessionReplayEndPoint,_u,(function(e){t.notify(zn,{error:e})})),s=yu(t,e,n,r,a,i),u=s.addRecord,c=s.stop,d=uu({emit:u,configuration:e,lifeCycle:t}),f=d.stop,l=d.takeSubsequentFullSnapshot,p=d.flushMutations,h=t.subscribe(Rn,(function(){p(),u({timestamp:at(),type:La})})),v=t.subscribe(An,(function(t){l(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),Hu=function(t,n){var r,i=!1,o=pi(li),a=pi(fi),s=function(){},u=function(){},c=function(){},d=new At,f=function(t,e){void 0===e&&(e=at()),d.add((function(){return f(t,e)}))},l=function(t,e){void 0===e&&(e=ot()),d.add((function(){return l(t,e)}))},p=function(t,e){void 0===e&&(e=Wo(o,a,n)),d.add((function(){return p(t,e)}))},h=function(t,e){void 0===e&&(e=Wo(o,a,n)),d.add((function(){return h(t,e)}))};function v(e,r){var i=t(e,n,o,a,r);l=i.startView,p=i.addAction,h=i.addError,f=i.addTiming,s=i.getInternalContext,c=i.stopSession,d.drain(),n.onRumStart(i.lifeCycle,e,i.session,i.viewContexts)}return r={init:function(t){if(function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(z()),n="test";return Yn(e,n,X,t),Jn(e)===n}catch(t){return!1}}(ur(t))?"file:"!==window.location.protocol||(e.error("Execution is not allowed in the current context."),!1):(e.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!i||(t.silentMultipleInit||e.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var n=Ta(t);if(n){if(n.trackViewsManually){var r=d;d=new At,l=function(t){v(n,t)},r.drain()}else v(n);u=function(){return W(t)},i=!0}}},addRumGlobalContext:o.add,setGlobalContextProperty:o.setContextProperty,removeRumGlobalContext:o.remove,removeGlobalContextProperty:o.removeContextProperty,getRumGlobalContext:o.get,getGlobalContext:o.getContext,setRumGlobalContext:o.set,setGlobalContext:o.setContext,clearGlobalContext:o.clearContext,getInitConfiguration:function(){return u()},getInternalContext:function(t){return s(t)},addDebugSession:function(t){},clearDebugSession:function(){},getDebugSession:function(){},addAction:function(t,e){p({name:t,context:W(e),startClocks:ot(),type:Se})},addError:function(t,e){var n=on();h({error:t,handlingStack:n,context:W(e),startClocks:ot()})},addTiming:function(t,e){f(t,e)},setUser:function(t){(function(t){var n="object"===j(t);return n||e.error("Unsupported user:",t),n})(t)&&a.setContext(hi(t))},getUser:a.getContext,setUserProperty:function(t,e){var n={};n[t]=e;var r=hi(n)[t];a.setContextProperty(t,r)},removeUserProperty:a.removeContextProperty,removeUser:a.clearContext,clearUser:a.clearContext,startView:function(t){l("object"==typeof t?t:{name:t})},stopSession:function(){c()},startSessionReplayRecording:n.start,stopSessionReplayRecording:n.stop},y({},r,{onReady:function(t){t()}})}((function(t,e,n,r,i){var o,a=new $n,s=function(t){a.notify(zn,{error:t})},u=o=new ln((function(){var t=_n(document,[qt,Wt,Yt],(function(t){t.type===qt&&"hidden"===document.visibilityState?o.notify({reason:gr.HIDDEN}):t.type===Wt&&o.notify({reason:gr.FROZEN})}),{capture:!0}),e=mn(window,Ut,(function(){o.notify({reason:gr.UNLOADING})}));return function(){t.stop(),e.stop()}}));u.subscribe((function(t){a.notify(Mn,t)}));var c=bi(t,a),d=(No(t,a,s,u,c.expireObservable),function(t){var e=Jn(Si);return e||(e=z(),Yn(Si,e,5184e6,t.cookieOptions)),{getId:function(){return e}}}(t)),f=function(){var t=$i(),e=new ln((function(){if(t){var n=new t((function(){return e.notify()}));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return e}(),l=Fi(location),p=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Rt(144e5);return t.subscribe(An,(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(Rn,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(Nn,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),d=function(t,e,n){var r,i=new Rt(144e5);t.subscribe(Rn,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(An,(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=it();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&&!kt(n)&&(e="/"+Ct(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:$(e),urlQuery:He(H(t.location.href))}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=$o(),l=function(t,e,n,r){t.subscribe(On,(function(e){t.notify(Dn,Io(e,r))}));var i={findActionId:Z};return n.trackUserInteractions&&(i=To(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Dn,y({savedCommonContext:n},Io(e,r)))}}}(t,a,e,f),p=l.actionContexts,h=l.addAction;return Bo(e,t,r,i,c,d,p,s,u),{viewContexts:c,urlContexts:d,foregroundContexts:f,addAction:h,actionContexts:p,stop:function(){c.stop(),f.stop()}}}(a,t,location,c,d,l,f,(function(){return Wo(n,r,e)}),s),h=p.viewContexts,v=p.urlContexts,g=p.actionContexts,m=p.foregroundContexts,_=p.addAction;!function(t,e){t.subscribe(Cn,(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=dt(i.startTime),a={date:o.timeStamp,long_task:{id:z(),duration:et(i.duration)},type:ke.LONG_TASK};t.notify(Dn,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(a,c),ya(a,t);var b=ta(a,t,location,f,l,m,e,i),w=b.addTiming,S=b.startView,E=Go(a,m).addError;va(a,t,c),Di(a,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);return{application:{id:t},session:{id:u.id},userAction:c?{id:c}: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,c,h,g,v);return{addAction:_,addError:E,addTiming:w,configuration:t,lifeCycle:a,viewContexts:h,session:c,startView:S,stopSession:function(){c.expire()},getInternalContext:x.get}}),Fu);Du=r(),zu=Hu,$u=Du[Bu="DATAFLUX_RUM"],Du[Bu]=zu,$u&&$u.q&&g($u.q,(function(t){t()}))}();
|
|
1
|
+
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=function e(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(t,n)||(n=t.log),e[n].apply(e,r)};function n(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}function r(){if("object"==typeof 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"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}function i(t,e){return n(r(),"setTimeout")(t,e)}function o(t){n(r(),"clearTimeout")(t)}function a(t,e){return n(window,"setInterval")(t,e)}function s(t){n(window,"clearInterval")(t)}e.debug=console.debug.bind(console),e.log=console.log.bind(console),e.info=console.info.bind(console),e.warn=console.warn.bind(console),e.error=console.error.bind(console);var u=Array.prototype,c=Function.prototype,d=Object.prototype,f=u.slice,l=d.toString,p=d.hasOwnProperty,h=(c.bind,u.forEach),v=(u.indexOf,Array.isArray),g=function(t,e,n){if(null===t)return!1;if(h&&t.forEach===h)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(p.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function m(t){return g(f.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function _(t){return m({},t)}var b=function(t){return g(f.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},y=function(t){return g(f.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(A(e[n])&&A(t[n])?b(t[n],e[n]):t[n]=e[n])})),t},w=v||function(t){return"[object Array]"===l.call(t)},S=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},E=function(t){return t?t.toArray?t.toArray():w(t)?f.call(t):(e=t)&&p.call(e,"callee")?f.call(t):x(t):[];var e},x=function(t){var e=[];return null===t||g(t,(function(t){e[e.length]=t})),e},T=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},k=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},C=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},O=function(t,n,r){return void 0===r&&(r=!1),C(t,(function(t){try{if("function"==typeof t)return t(n);if(t instanceof RegExp)return t.test(n);if("string"==typeof t)return r?Tt(n,t):t===n}catch(t){e.error(t)}}))},I=function(t){return 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}))},A=function(t){return null!==t&&"[object Object]"===l.call(t)},R=function(t){if(A(t)){for(var e in t)if(p.call(t,e))return!1;return!0}return!1},N=function(t){var e=[];return g(t,(function(t,n){e.push([n,t])})),e},L=function(t){return"[object String]"===l.call(t)},M=function(t){return"[object Boolean]"===l.call(t)},U=function(t){return"[object Number]"===l.call(t)&&/[\d\.]+/.test(String(t))},P=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},D=(Date.now,function(t,e,n){var r,a,s=!n||void 0===n.leading||n.leading,u=!n||void 0===n.trailing||n.trailing,c=!1,d=this;return{throttled:function(){c?r=arguments:(s?t.apply(d,arguments):r=arguments,c=!0,a=i((function(){u&&r&&t.apply(d,r),c=!1,r=void 0}),e))},cancel:function(){o(a),c=!1,r=void 0}}}),B=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="",d=[];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,d[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=d.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function z(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,z)}function $(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var F=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"!=typeof 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 H=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=V("?"+n)),e},V=function(t){for(var e=function(t){return P(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 j(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function q(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"!=typeof 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]=q(i[o],e[o],n);return i}i="object"===j(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=q(i[a],e[a],n));return i}}function W(t){return q(void 0,t)}function G(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function Z(){}var Q,X=1e3,K=6e4;function Y(t){return 0!==t&&100*Math.random()<=t}function J(t,e){return+t.toFixed(e)}function tt(t){return"number"!=typeof t?t:J(1e6*t,0)}function et(t){return U(t)?J(1e6*t,0):t}function nt(t){return t-pt()}function rt(t){return Math.round(pt()+t)}function it(){return performance.now()}function ot(){return{relative:it(),timeStamp:at()}}function at(){return st()}function st(){return(new Date).getTime()}function ut(t,e){return e-t}function ct(){return{relative:0,timeStamp:pt()}}function dt(t){return{relative:t,timeStamp:lt(t)}}function ft(t,e){return t+e}function lt(t){var e=st()-performance.now();return e>pt()?Math.round(e+t):rt(t)}function pt(){return void 0===Q&&(Q=performance.timing.navigationStart),Q}function ht(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&p.call(t,r)))return;t=t[r]}return t}function vt(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function gt(t){var e=j(t);return"string"===e||"function"===e||t instanceof RegExp}function mt(t,e){return-1!==t.indexOf(e)}function _t(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function bt(t){return U(t)&&t>=0&&t<=100}function yt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function wt(t){var e={};return g(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=St(t)})),e}function St(t){return w(t)?k(t,(function(t){return St(t)})):"object"==typeof t&&null!==t?wt(t):t}function Et(t,e){return null!=t?t:e}function xt(t,e){return C((r=[],null===(n=t)||g(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Tt(t,e){return t.slice(0,e.length)===e}function kt(t){var e=t.substr(1);return!!document.getElementById(e)}function Ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Ot=function(){this.buffer=[]};Ot.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){g(this.buffer,(function(t){t()})),this.buffer.length=0}};var It=Ot,At=1/0;function Rt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=a((function(){n.clearOldContexts()}),6e4)}Rt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:At,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},Rt.prototype.find=function(t){void 0===t&&(t=At);for(var e=0;e<this.entries.length;e++){var n=this.entries[e];if(n.startTime<=t){if(t<=n.endTime)return n.context;break}}},Rt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===At&&e.close(t)},Rt.prototype.findAll=function(t,e){void 0===e&&(e=0);var n=ft(t,e);void 0===t&&(t=At);var r=T(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return k(r,(function(t){return t.context}))},Rt.prototype.reset=function(){this.entries=[]},Rt.prototype.stop=function(){s(this.clearOldContextsInterval)},Rt.prototype.clearOldContexts=function(){for(var t=it()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Nt={navigator: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"]}},Lt={getMatchMap: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:function(t){var e=Nt.navigator.userAgent||{},n=Lt.getMatchMap(e);for(var r in Nt.infoMap)for(var i=0;i<Nt.infoMap[r].length;i++){var o=Nt.infoMap[r][i];n[o]&&(t[r]=o)}},getOS:function(){return Lt.matchInfoMap(this),this.os||"Unknown"},getOSVersion:function(){var t=this,e=Nt.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:function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"},getDeviceType:function(){var t=this;return t.device="PC",Lt.matchInfoMap(t),t.device},getNetwork: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:function(){var t;return this.language=((t=(Nt.navigator.browserLanguage||Nt.navigator.language).split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language},getBrowserInfo:function(){var t=this;Lt.matchInfoMap(t);var e=Nt.navigator.userAgent||{},n=function(t,e){var n=Nt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Lt.getMatchMap(e),i=!1;if(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")||Nt.navigator&&void 0===Nt.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:function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){e.warn(t)}))}},Mt={os:Lt.getOS(),osVersion:Lt.getOSVersion().version,osVersionMajor:Lt.getOSVersion().osMajor,browser:Lt.getBrowserInfo().browser,browserVersion:Lt.getBrowserInfo().browserVersion,browserVersionMajor:Lt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Lt.getNetwork(),divice:Lt.getDeviceType()},Ut="beforeunload",Pt="click",Dt="dblclick",Bt="keydown",zt="load",$t="popstate",Ft="scroll",Ht="touchstart",Vt="touchend",jt="touchmove",qt="visibilitychange",Wt="freeze",Gt="DOMContentLoaded",Zt="pointerdown",Qt="pointerup",Xt="pointercancel",Kt="hashchange",Yt="pagehide",Jt="mousedown",te="mousemove",ee="focus",ne="blur",re="contextmenu",ie="resize",oe="change",ae="input",se="play",ue="pause",ce="securitypolicyviolation",de="selectionchange",fe="document",le="xhr",pe="beacon",he="fetch",ve="css",ge="js",me="image",_e="font",be="media",ye="other",we="click",Se="custom",Ee="rage_click",xe="error_click",Te="dead_click",ke={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Ce="initial_load",Oe="route_change",Ie={FETCH:he,XHR:le},Ae="ddtrace",Re="zipkin",Ne="zipkin_single_header",Le="w3c_traceparent",Me="w3c_traceparent_64bit",Ue="skywalking_v3",Pe="jaeger",De="handled",Be="unhandled";function ze(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 $e(t,e,n){return ze(t,e,(function(t){return function(){var e;return n&&n.before&&n.before.apply(this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&n.after.apply(this,arguments),e}}))}function Fe(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:Z};var o=function(t,e){i((function(){n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a?Object.defineProperty(t,e,r):o=Z}}}function He(t,e,n){if("object"!=typeof 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,()=>{e.toJSON=n}):Z}var je="?";function qe(t){var e=[],n=Je(t,"stack");return n&&g(n.split("\n"),(function(t){var n=function(t){var e=Ge.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Ze.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]||je,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Qe.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:je,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Xe.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||je,line:+e[3],url:e[2]}}(t)||function(t){var e=Ke.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Ye.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]||je,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=je),e.push(n))})),{message:Je(t,"message"),name:Je(t,"name"),stack:e}}var We="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Ge=new RegExp("^\\s*at (.*?) ?\\("+We+"(?::(\\d+))?"+"(?::(\\d+))?\\)?\\s*$","i"),Ze=new RegExp("\\((\\S*)(?::(\\d+))(?::(\\d+))\\)");var Qe=new RegExp("^\\s*at ?"+We+"(?::(\\d+))?"+"(?::(\\d+))??\\s*$","i");var Xe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ke=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Ye=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Je(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function en(t){var e=function(t){return $e(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=qe(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=tn.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,Et(o,e))}})}(t),n=function(t){return $e(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=qe(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}var nn={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function rn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling;return e&&(void 0!==e.message||n instanceof Error)?{startClocks:i,source:a,handling:s,originalError:n,message:e.message||"Empty message",stack:an(e),handlingStack:r,type:e.name,causes:un(n,a)}:{startClocks:i,source:a,handling:s,originalError:n,message:o+" "+He(n),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}function on(){var t=new Error;if(!t.stack)try{throw t}catch(t){}var e=qe(t);return e.stack=e.stack.slice(2),an(e)}function an(t){var e=sn(t);return g(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 sn(t){return(t.name||"Error")+": "+t.message}function un(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=qe(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&an(i)}),n=n.cause}return r.length?r:void 0}var cn=/[^\u0000-\u007F]/;function dn(t){return cn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}var fn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};fn.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=T(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){g(this.observers,(function(e){e(t)}))}};var ln=fn;function pn(){var t=[].slice.call(arguments),e=new ln((function(){var n=k(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return g(n,(function(t){return t.unsubscribe()}))}}));return e}var hn={};function vn(t){var e=k(t,(function(t){return hn[t]||(hn[t]=function(t){var e=new ln((function(){var n=console[t];return console[t]=function(){var r=[].slice.call(arguments);n.apply(console,arguments);var i=on();e.notify(gn(r,t,i))},function(){console[t]=n}}));return e}(t)),hn[t]}));return pn.apply(this,e)}function gn(e,n,r){var i,o=k(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return sn(qe(t));return He(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=_t(e,(function(t){return t instanceof Error}));i=a?an(qe(a)):void 0,o="console error: "+o}return{api:n,message:o,stack:i,handlingStack:r}}function mn(t,e,n,r){return _n(t,[e],n,r)}function _n(t,e,r,i){var o=i&&i.once?function(t){s(),r(t)}:r;i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var a=n(t,"addEventListener");g(e,(function(e){a.call(t,e,o,i)}));var s=function(){var r=n(t,"removeEventListener");g(e,(function(e){r.call(t,e,o,i)}))};return{stop:s}}var bn="intervention",yn="csp_violation";function wn(t){var e,n=[];mt(t,yn)&&n.push(e=new ln((function(){return mn(document,ce,(function(t){e.notify(function(t){var e=yn,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:yn,subtype:t.effectiveDirective,message:e+": "+n,stack:Sn(t.effectiveDirective,n+' of the policy "'+vt(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(t))})).stop})));var r=T(t,(function(t){return t!==yn}));return r.length&&n.push(function(t){var e=new ln((function(){if(window.ReportingObserver){var n=function(t){g(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:Sn(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()}}}));return e}(r)),pn.apply(this,n)}function Sn(t,e,n,r,i){return n&&an({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}function En(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"!=typeof o)return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"==typeof 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 xn(t,n,r){e.warn("The data provided has been "+n+" as it is over the limit of "+t+" characters:",r)}var Tn=function(){this._events=[],this.pendingEvents=[]};Tn.prototype={emit:function(t){var e=[].slice.call(arguments,1);g(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 Tn;var kn,Cn="PERFORMANCE_ENTRIES_COLLECTED",On="AUTO_ACTION_COMPLETED",In="VIEW_CREATED",An="VIEW_UPDATED",Rn="VIEW_ENDED",Nn="SESSION_RENEWED",Ln="SESSION_EXPIRED",Mn="PAGE_EXITED",Un="REQUEST_STARTED",Pn="REQUEST_COMPLETED",Dn="RAW_RUM_EVENT_COLLECTED",Bn="RUM_EVENT_COLLECTED",zn="RAW_ERROR_COLLECTED";function $n(){this.callbacks={}}function Fn(t,e,n){var r=W(t),i=n(r);return g(N(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n=t;for(var r of e.split(".")){if(!jn(n,r))return;n=n[r]}return n}(r,n),a=j(o);a===i?Hn(t,n,function(t,e){void 0===e&&(e=225280);var n=Ve(Object.prototype),r=Ve(Array.prototype),i=[],o=new WeakMap,a=En(t,"$",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 d=0;d<u.source.length;d++){if(s+=void 0!==(f=En(u.source[d],u.path,d,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){xn(e,"truncated",t);break}u.target[d]=f}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var f;if(void 0!==(f=En(u.source[d],u.path,d,i,o))&&(s+=JSON.stringify(f).length+c+d.length+3,c=1),s>e){xn(e,"truncated",t);break}u.target[d]=f}}return n(),r(),a}xn(e,"discarded",t)}(o)):"object"!==i||"undefined"!==a&&"null"!==a||Hn(t,n,{})})),i}function Hn(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Vn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function Vn(t){return"object"===j(t)}function jn(t,e){return Vn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function qn(t,e,n){var r=0,o=!1;return{isLimitReached:function(){if(0===r&&i((function(){r=0}),K),(r+=1)<=e||o)return o=!1,!1;if(r===e+1){o=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:nn.AGENT,startClocks:ot()})}finally{o=!1}}return!0}}}function Wn(t){return Zn(t,yt(window.location)).href}function Gn(t){return yt(Zn(t))}function Zn(t,e){if(function(){if(void 0!==kn)return kn;try{var t=new URL("http://test/path");return kn="http://test/path"===t.href}catch(t){kn=!1}return kn}())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}$n.prototype={notify:function(t,e){var n=this.callbacks[t];n&&g(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]=T(n.callbacks[t],(function(t){return t!==e}))}}}};var Qn=navigator.userAgent.toLowerCase(),Xn=function(){return/iphone os/.test(Qn)};var Kn;function Yn(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 Jn(t){return function(t,e){var n=t.match("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n[1]:void 0}(document.cookie,t)}var tr=/^\s+|\s+$/g,er={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function nr(t,e){var n=er[e];return n?(0===t.indexOf("/")&&(t=location.origin+rr(t)),t.lastIndexOf("/")===t.length-1?rr(t)+"v1/write"+n:rr(t)+"/v1/write"+n):""}function rr(t){return t.replace(tr,"")}var ir,or,ar={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function sr(t){if(void 0===t.sampleRate||bt(t.sampleRate)){if(void 0===t.sessionSampleRate||bt(t.sessionSampleRate)){var n,r,i=t.sessionSampleRate||t.sampleRate;return m({beforeSend:t.beforeSend&&(n=t.beforeSend,r="beforeSend threw an error:",function(){var t=[].slice.call(arguments);try{return n.apply(this,t)}catch(t){e.error(r,t)}}),cookieOptions:ur(t),sessionSampleRate:Et(i,100),service:t.service,version:t.version,env:t.env,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&S(t.isIntakeUrl)&&M(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&S(t.isServerError)&&M(t.isServerError())&&(n=t.isServerError),{datakitUrl:nr(t.datakitUrl||t.datakitOrigin,"rum"),logsEndpoint:nr(t.datakitOrigin,"log"),sessionReplayEndPoint:nr(t.datakitOrigin,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}e.error("Sample Rate should be a number between 0 and 100")}else e.error("Sample Rate should be a number between 0 and 100")}function ur(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===Kn){for(var t="dd_site_test_".concat(z()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Jn(t);)n=e.pop()+"."+n,Yn(t,"test",X,{domain:n});Kn=n}return Kn}()),e}function cr(){var t;return ir||(t=new ln((function(){if(window.fetch){var e=ze(window,"fetch",(function(e){return function(n,r){var i,o=function(t,e,n){var r=n&&n.method||e instanceof Request&&e.method||"GET",i=e instanceof Request?e.url:Wn(String(e)),o=ot(),a={state:"start",init:n,input:e,method:r,startClocks:o,url:i};return t.notify(a),a}(t,n,r);return o?(i=e.call(this,o.input,o.init),function(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(r,r)}(t,i,o)):i=e.call(this,n,r),i}}));return e.stop}})),ir=t),ir}var dr={};function fr(){var t;return or||(t=new ln((function(){var e=$e(XMLHttpRequest.prototype,"open",{before:lr}),n=$e(XMLHttpRequest.prototype,"send",{before:function(){pr.call(this,t)}}),r=$e(XMLHttpRequest.prototype,"abort",{before:vr});return function(){e.stop(),n.stop(),r.stop()}})),or=t),or}function lr(t,e){var n=this._DATAFLUX_REQUEST_UUID||z();this._DATAFLUX_REQUEST_UUID=n,dr[n]={state:"open",method:t,url:Wn(String(e))}}function pr(t){var e=dr[this._DATAFLUX_REQUEST_UUID];if(e){var n=e;n.state="start",n.startTime=it(),n.startClocks=ot(),n.isAborted=!1,n.xhr=this;var r=!1,i=$e(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=ut(n.startClocks.timeStamp,at()),o.status=this.status,t.notify(_(o)),hr.call(this)}},a=mn(this,"loadend",o).stop;t.notify(n)}}function hr(){delete dr[this._DATAFLUX_REQUEST_UUID],delete this._DATAFLUX_REQUEST_UUID}function vr(){var t=dr[this._DATAFLUX_REQUEST_UUID];t&&(t.isAborted=!0)}var gr={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function mr(t){return mt(x(gr),t)}function _r(t){return t.nodeType===Node.ELEMENT_NODE}function br(t){return _r(t)&&Boolean(t.shadowRoot)}function yr(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&_r(e.host)}function wr(t){return yr(t)?t.host:t.parentNode}function Sr(t,e){document.readyState===t||"complete"===document.readyState?e():mn(window,"complete"===t?zt:Gt,e,{once:!0})}var Er,xr={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",session_has_replay:"session.has_replay",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",view_url_query:"view.url_query"},Tr={action_id:"action.id",view_in_foreground:"view.in_foreground"},kr={view:{type:ke.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level"},fields:{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",cumulative_layout_shift:"view.cumulative_layout_shift",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_paint_time:"view.fpt",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",in_foreground_periods:"view.in_foreground_periods",frustration_count:"view.frustration.count"}},resource:{type:ke.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_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:ke.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:ke.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ke.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"}},browser_log:{type:ke.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"]}}},Cr=144e5,Or=9e5,Ir=/^([a-z]+)=([a-z0-9-]+)$/,Ar="&",Rr="_dataflux_s",Nr=[];function Lr(t,e){if(void 0===e&&(e=0),Er||(Er=t),t===Er)if(e>=100)Pr();else{var n,r=Br();if(Mr()){if(r.lock)return void Ur(t,e);if(n=z(),r.lock=n,Dr(r,t.options),(r=Br()).lock!==n)return void Ur(t,e)}var i=t.process(r);if(Mr()&&(r=Br()).lock!==n)Ur(t,e);else{if(i&&function(t,e){if(zr(t))return void function(t){Yn(Rr,"",0,t)}(e);t.expire=String(st()+Or),Dr(t,e)}(i,t.options),Mr()&&(!i||!zr(i))){if((r=Br()).lock!==n)return void Ur(t,e);delete r.lock,Dr(r,t.options),i=r}t.after&&t.after(i||r),Pr()}}else Nr.push(t)}function Mr(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function Ur(t,e){i((function(){Lr(t,e+1)}),10)}function Pr(){Er=void 0;var t=Nr.shift();t&&Lr(t)}function Dr(t,e){Yn(Rr,function(t){return k(N(t),(function(t){return t[0]+"="+t[1]})).join(Ar)}(t),Or,e)}function Br(){var t=Jn(Rr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(Ar)||Ir.test(t))}(t)&&g(t.split(Ar),(function(t){var n=Ir.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function zr(t){return R(t)}function $r(t,e,n){var r=new ln,i=new ln,o=a((function(){Lr({options:t,process:function(t){return f(t)?void 0:{}},after:c})}),1e3),u=function(){var t=Br();if(f(t))return t;return{}}();function c(t){return f(t)||(t={}),d()&&(!function(t){return u.id!==t.id||u[e]!==t[e]}(t)?u=t:(u={},i.notify())),t}function d(){return void 0!==u[e]}function f(t){return(void 0===t.created||st()-Number(t.created)<Cr)&&(void 0===t.expire||st()<Number(t.expire))}return{expandOrRenewSession:D((function(){var i;Lr({options:t,process:function(t){var r=c(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=z(),t.created=String(st()));return o}(r),r},after:function(t){i&&!d()&&function(t){u=t,r.notify()}(t),u=t}})}),1e3).throttled,expandSession:function(){Lr({options:t,process:function(t){return d()?c(t):void 0}})},getSession:function(){return u},renewObservable:r,expireObservable:i,expire:function(){deleteSessionCookie(t),c({})},stop:function(){s(o)}}}var Fr=[],Hr=function(t,e,n){var r=$r(t,e,n);Fr.push((function(){return r.stop()}));var i,o=new Rt(144e5);function u(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return Fr.push((function(){return o.stop()})),r.renewObservable.subscribe((function(){o.add(u(),it())})),r.expireObservable.subscribe((function(){o.closeActive(it())})),r.expandOrRenewSession(),o.add(u(),ct().relative),i=_n(window,[Pt,Ht,Bt,Ft],(function(){return r.expandOrRenewSession()}),{capture:!0,passive:!0}),Fr.push(i.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=mn(document,qt,e);Fr.push(n.stop);var r=a(e,6e4);Fr.push((function(){s(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(t){return o.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}};var Vr=3145728,jr=0,qr=1,Wr=2,Gr=0,Zr=1;function Qr(t,e,n,r){e.transportStatus===jr&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Kr(t,e,n,{onSuccess:function(){return Yr(Gr,e,n,r)},onFailure:function(){e.queuedPayloads.enqueue(t),Xr(e,n,r)}}):e.queuedPayloads.enqueue(t)}function Xr(t,e,n){t.transportStatus===Wr&&i((function(){Kr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,Yr(Zr,t,e,n)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),Xr(t,e,n)}})}),t.currentBackoffTime)}function Kr(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=jr,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?qr:Wr,e.lastFailureStatus=n.status,o())}))}function Yr(t,e,n,r){t===Gr&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(r({message:"Reached max events size queued for upload: 3MiB",source:nn.AGENT,startClocks:ot()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=Jr();i.size()>0;)Qr(i.dequeue(),e,n,r)}function Jr(){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>=Vr}}}function ti(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function ei(t,e,n){var r={transportStatus:jr,lastFailureStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Jr(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=ti(t);(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&o<e?fetch(a,{method:"POST",body:i,keepalive:!0,mode:"cors"}).then((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}),(function(){ni(a,i,r)})):ni(a,i,r)}(t,e,n,r)};return{send:function(t){Qr(t,r,i,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=ti(t);if(navigator.sendBeacon&&i<e)try{if(navigator.sendBeacon(o,r))return}catch(t){}ni(o,r)}(t,e,n)}}}function ni(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),mn(r,"loadend",(function(){"function"==typeof n&&n({status:r.status})}),{once:!0}),r.send(e)}function ri(t){if("object"==typeof t&&t)t=He(t);else if(!L(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function ii(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function oi(t){return"object"==typeof t&&t?ii(He(t)):L(t)?ii(t):t}var ai="custom_keys",si=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return g(kr,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=b({},xr,i.tags),u=["date","type",ai];g(s,(function(n,r){var i=ht(t,n);u.push(r),(i||U(i))&&(e.tags[r]=function(t){return L(t)?t:He(t)}(i),a.push(ri(r)+"="+ri(i)))}));var c=[],d=b({},Tr,i.fields);if(g(d,(function(n,r){if(w(n)&&2===n.length){var i=n[1],o=ht(t,i);u.push(r),null!=o&&(e.fields[r]=o,c.push(ri(r)+"="+oi(o)))}else if(L(n)){o=ht(t,n);u.push(r),null!=o&&(e.fields[r]=o,c.push(ri(r)+"="+oi(o)))}})),t.tags&&A(t.tags)&&!R(t.tags)){var f=[];g(t.tags,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=t,c.push(ri(n)+"="+oi(t))))})),f.length&&(e.fields.custom_keys=oi(f),c.push(ri(ai)+"="+oi(f)))}t.type===ke.LOGGER&&g(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=t,c.push(ri(n)+"="+oi(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=et(t.date)}})),{rowStr:n?r:"",rowData:n?e:void 0}},ui=function(t,e,n){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n;var r=this;this.flushController.flushObservable.subscribe((function(t){r.flush(t)}))};ui.prototype.add=function(t){this.addOrUpdate(t)},ui.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},ui.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(x(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};mr(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},ui.prototype.addOrUpdate=function(t,n){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?e.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(n)&&this.remove(n),this.push(i,o,n))},ui.prototype.process=function(t){var e=si(t).rowStr;return{processedMessage:e,messageBytesCount:dn(e)}},ui.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()},ui.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=dn(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},ui.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var ci=ui;function di(t){var{messagesLimit:e,bytesLimit:n,durationLimit:r,pageExitObservable:a,sessionExpireObservable:s}=t,u=new ln;a.subscribe((function(t){return l(t.reason)})),s.subscribe((function(){return l("session_expire")}));var c,d=0,f=0;function l(t){if(0!==f){var e=f,n=d;f=0,d=0,p(),u.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){o(c),c=void 0}return{flushObservable:u,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){d+t>=n&&l("bytes_limit"),f+=1,d+=t,void 0===c&&(c=i((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(){f>=e?l("messages_limit"):d>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){d-=t,0===(f-=1)&&p()}}}function fi(){var t=r().FTWebViewJavascriptBridge;if(t)return{send(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function li(){return!!fi()}var pi="user",hi="global context";function vi(t,n){void 0===n&&(n=dn);var r,i={},o=!1,a=D((function(i){r=n(He(i)),o||(o=function(t,n){return t>3072&&(e.warn("The "+n+"data is over 3 KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),200).throttled;return{getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,a(i)},remove:function(t){delete i[t],a(i)},set:function(t){a(i=t)},getContext:function(){return W(i)},setContext:function(t){i=W(t),a(i)},setContextProperty:function(t,e){i[t]=W(e),a(i)},removeContextProperty:function(t){delete i[t],a(i)},clearContext:function(){i={},r=0}}}function gi(t){var e=m({},t);return g(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}var mi=1,_i=2,bi="0",yi="1",wi="2";function Si(t,e){var n=Hr(t.cookieOptions,"rum",(function(e){return function(t,e){var n;n=function(t){return t===bi||t===yi||t===wi}(e)?e:Y(t.sessionSampleRate)?Y(t.sessionReplaySampleRate)?yi:wi:bi;return{trackingType:n,isTracked:Ei(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Ln)})),n.renewObservable.subscribe((function(){e.notify(Nn)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&Ei(e.trackingType)){var r=e.trackingType===yi?_i:mi;return{id:e.id,plan:r,sessionReplayAllowed:r===_i}}},expire:n.expire,expireObservable:n.expireObservable}}function Ei(t){return t===wi||t===yi}var xi="_dataflulx_usr_id",Ti="initial_document",ki=[[fe,function(t){return Ti===t}],[le,function(t){return"xmlhttprequest"===t}],[he,function(t){return"fetch"===t}],[pe,function(t){return"beacon"===t}],[ve,function(t,e){return null!==e.match(/\.css$/i)}],[ge,function(t,e){return null!==e.match(/\.js$/i)}],[me,function(t,e){return mt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[_e,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[be,function(t,e){return mt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ci(t){var e=t.name;if(!function(t){try{return!!Zn(t)}catch(t){return!1}}(e))return ye;var n=function(t){var e=Zn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=ye;return g(ki,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Oi(){for(var t=E(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var Ii=/[^\u0000-\u007F]/;function Ai(t,e){return n=t,(Ii.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function Ri(t){var e=Ni(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,d=e.connectEnd,f=e.requestStart,l=e.responseStart,p=e.responseEnd,h={firstbyte:tt(l-a),trans:tt(p-l),downloadTime:Mi(n,l,p),firstByteTime:Mi(n,f,l)};return l>0&&l<=it()&&(h.ttfb=tt(l-f)),d!==r&&(h.tcp=tt(d-u),h.connectTime=Mi(n,u,d),Oi(u,c,d)&&(h.ssl=tt(d-c),h.sslTime=Mi(n,c,d))),s!==r&&(h.dns=tt(s-a),h.dnsTime=Mi(n,a,s)),Li(t)&&(h.redirect=tt(o-i),h.redirectTime=Mi(n,i,o)),h}}function Ni(t){if(Oi(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Li(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),Oi(t.startTime,e,n,t.fetchStart))return b({},t,{redirectEnd:n,redirectStart:e})}}function Li(t){return t.fetchStart!==t.startTime}function Mi(t,e,n){return{duration:tt(n-e),start:tt(e-t)}}function Ui(t){if(t.startTime<t.responseStart)return t.decodedBodySize}function Pi(t,e){return e&&!function(t,e){var n=[e.datakitUrl];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),C(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function Di(){return void 0!==window.performance&&"getEntries"in performance}function Bi(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&mt(PerformanceObserver.supportedEntryTypes,t)}function zi(t,e){var n;if(n=function(n){Fi(t,e,[n])},Sr("interactive",(function(){var t,e={entryType:"resource",initiatorType:Ti,traceId:""};if(Bi("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=b(r.toJSON(),e)}else{var i=$i();t=b(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),Di()){var r=performance.getEntries();i((function(){Fi(t,e,r)}))}if(window.PerformanceObserver){var o=function(n){Fi(t,e,n.getEntries())},a=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift"];try{g(s,(function(t){new PerformanceObserver(o).observe({type:t,buffered:!0})}))}catch(t){g(s,(function(t){a.push(t)}))}new PerformanceObserver(o).observe({entryTypes:a}),Di()&&"addEventListener"in performance&&mn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Bi("navigation")||function(t){function e(){t(b($i(),{entryType:"navigation"}))}Sr("complete",(function(){i(e)}))}((function(n){Fi(t,e,[n])})),Bi("first-input")||function(t){var e=st(),n=!1,r=_n(window,[Pt,Jt,Bt,Ht,Zt],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:it(),startTime:t.timeStamp};t.type===Zt?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){_n(window,[Qt,Xt],(function(e){e.type===Qt&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<st()-e&&t(i)}}}((function(n){return Fi(t,e,[n])}))}function $i(){var t={},e=performance.timing;for(var n in e)U(e[n])&&(t[n]=0===e[n]?0:nt(e[n]));return t}function Fi(t,e,n){var r=T(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})),i=T(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Pi(t,e.name)}(e,t)}));i.length&&t.notify(Cn,i)}function Hi(){var t,e=window;if(e.Zone&&(t=n(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=n(new e.MutationObserver(Z),"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}function Vi(t){var e=_(t),n=new ln((function(){var t,e,n,i,o=(t=r,e=$e(history,"pushState",{after:t}),n=$e(history,"replaceState",{after:t}),i=mn(window,$t,t),{stop:function(){e.stop(),n.stop(),i.stop()}}),a=mn(window,Kt,r);return function(){o.stop(),a.stop()}}));function r(){if(e.href!==t.href){var r=_(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}function ji(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=Z);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Bn,(function(t){if(t.type!==ke.VIEW&&n(t))switch(t.type){case ke.ERROR:i.errorCount+=1,r(i);break;case ke.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r(i);break;case ke.LONG_TASK:i.longTaskCount+=1,r(i);break;case ke.RESOURCE:i.resourceCount+=1,r(i)}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var qi=100;function Wi(t,e,n,r,a){var s=function(t,e,n){var r=new ln((function(){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(Cn,(function(t){C(t,(function(t){return"resource"===t.entryType&&!Gi(n,t.name)}))&&u()})),t.subscribe(Un,(function(t){Gi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Pn,(function(t){Gi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=$e(window,"open",{before:u}).stop;return function(){s(),g(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}));return r}(t,e,n);return function(t,e,n){var r,a=!1,s=i((function(){f({hadActivity:!1})}),100),u=void 0!==n?i((function(){return f({hadActivity:!0,end:at()})}),n):void 0,c=t.subscribe((function(t){var e=t.isBusy;o(s),o(r);var n=at();e||(r=i((function(){f({hadActivity:!0,end:n})}),100))})),d=function(){a=!0,o(s),o(r),o(u),c.unsubscribe()};function f(t){a||(d(),e(t))}return{stop:d}}(s,r,a)}function Gi(t,e){return O(t.excludedActivityUrls,e)}var Zi=X,Qi=0,Xi=1,Ki=2;function Yi(t,e){var n,r=[],a=Qi;function s(t){t.stopObservable.subscribe(u),r.push(t),o(n),n=i(c,1e3)}function u(){a===Xi&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(p.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(a=Ki,e(r))}function c(){o(n),a===Qi&&(a=Xi,u())}return s(t),{tryAppend:function(t){return a===Qi&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(i=e,o=n,Math.sqrt(Math.pow(i.clientX-o.clientX,2)+Math.pow(i.clientY-o.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=Zi))?(c(),!1):(s(t),!0));var e,n,i,o},stop:function(){c()}}}var Ji="data-guance-action-name";function to(t,e){return eo(t,Ji)||e&&eo(t,e)||ao(t,e,io)||ao(t,e,oo)||""}function eo(t,e){var n;if(function(){void 0===ro&&(ro="closest"in HTMLElement.prototype);return ro}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return uo(so(n.getAttribute(e).trim()))}var no,ro,io=[function(t,e){if(function(){void 0===no&&(no="labels"in HTMLInputElement.prototype);return no}()){if("labels"in t&&t.labels&&t.labels.length>0)return co(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&_t(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&co(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 co(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=k(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=T(n,(function(t){return Boolean(t)})),(n=k(n,(function(t){return co(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 co(t.options[0],e)}],oo=[function(t,e){return co(t,e)}];function ao(t,e,n){for(var r=t,i=0;i<=10&&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 uo(so(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function so(t){return t.replace(/\s+/g," ")}function uo(t){return t.length>100?vt(t,100)+" [...]":t}function co(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 Boolean(document.documentMode)&&r("script, style"),r("[data-guance-action-name]"),e&&r("["+e+"]"),n}return t.textContent}}var fo,lo=[Ji,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],po=[mo,function(t){if(t.id&&!go(t.id))return"#"+I(t.id)}],ho=[mo,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(!go(n))return t.tagName+"."+I(n)}},function(t){return t.tagName}];function vo(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=bo(r,po,yo,e,n);if(i)return i;n=bo(r,ho,wo,e,n)||So(_o(r),n),r=r.parentElement}return n}function go(t){return/[0-9]/.test(t)}function mo(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<lo.length;n++){var r;if(r=i(lo[n]))return r}function i(e){if(t.hasAttribute(e))return t.tagName+"["+e+'="'+I(t.getAttribute(e))+'"]'}}function _o(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return t.tagName+":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=So(a,i);if(n(t,s))return s}}}function yo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function wo(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===fo)try{document.querySelector(":scope"),fo=!0}catch{fo=!1}return fo}()?So(":scope",e):e).length}function So(t,e){return e?t+">"+e:t}function Eo(){var t=window.getSelection();return!t||t.isCollapsed}function xo(t){return t.target instanceof Element&&!1!==t.isPrimary}function To(t,e){if(function(t){if(C(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=X)return!0;return!1}(t))return e.addFrustration(Ee),C(t,ko)&&e.addFrustration(Te),e.hasError()&&e.addFrustration(xe),{isRage:!0};var n=C(t,(function(t){return t.getUserActivity().selection}));return g(t,(function(t){t.hasError()&&t.addFrustration(xe),ko(t)&&!n&&t.addFrustration(Te)})),{isRage:!1}}function ko(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n='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] *',!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}function Co(t,e,n){var r,i=new Rt(3e5),o=new ln;t.subscribe(Nn,(function(){i.reset()})),t.subscribe(Rn,p);var a,s,u,c,d,f=(a={onPointerDown:function(r){return function(t,e,n,r,i){if(t.trackFrustrations||!r.find()){var o,a,s,u=(o=i,a=t.actionNameAttribute,s=o.target.getBoundingClientRect(),{type:we,target:{width:Math.round(s.width),height:Math.round(s.height),selector:vo(o.target,a)},position:{x:Math.round(o.clientX-s.left),y:Math.round(o.clientY-s.top)},name:to(o.target,a)});if(t.trackFrustrations||u.name){var c=!1;return Wi(e,n,t,(function(t){c=t.hadActivity}),qi),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}}}(n,t,e,i,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var d=Ro(e,r,u,a,s);t.trackFrustrations&&o(d);var f=Wi(e,n,t,(function(e){e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():(e.hadActivity?d.stop(e.end):c()?d.stop(d.startClocks.timeStamp):d.stop(),t.trackFrustrations||(e.hadActivity?d.validate():d.discard()))}),1e4).stop,l=e.subscribe(Rn,(function(t){d.stop(t.endClocks.timeStamp)})),p=i.subscribe((function(){d.stop()}));d.stopObservable.subscribe((function(){l.unsubscribe(),f(),p.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},d=[mn(window,Zt,(function(t){xo(t)&&(s=Eo(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),mn(window,de,(function(){s&&Eo()||(c.selection=!0)}),{capture:!0}),mn(window,Qt,(function(t){if(xo(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),mn(window,ae,(function(){c.input=!0}),{capture:!0})],{stop:function(){g(d,(function(t){return t.stop()}))}}),l=f.stop;return{stop:function(){p(),o.notify(),l()},actionContexts:{findActionId:function(t){return i.find(t)}}};function p(){r&&r.stop()}function h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Yi(t,(function(t){!function(t,e){To(t,e).isRage?(g(t,(function(t){t.discard()})),e.stop(at()),e.validate(k(t,(function(t){return t.event})))):(e.discard(),g(t,(function(t){t.validate()})))}(t,e)}))}}}var Oo=0,Io=1,Ao=2;function Ro(t,e,n,r,i){var o,a=z(),s=ot(),u=e.add(a,s.relative),c=ji({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(w(t.action.id)?mt(t.action.id,a):t.action.id===a)}}),d=Oo,f=[],l=new ln;function p(t){d===Oo&&(d=Io,(o=t)?u.close(nt(o)):u.remove(),c.stop(),l.notify())}return{event:i,stop:p,stopObservable:l,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 d===Io||d===Ao},clone:function(){return Ro(t,e,n,r,i)},validate:function(e){if(p(),d===Io){var n=c.eventCounts,u=n.resourceCount,l=n.errorCount,h=n.longTaskCount,v=m({type:we,duration:o&&ut(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:l,longTaskCount:h},events:Et(e,[i]),event:i},r);t.notify(On,v),d=Ao}},discard:function(){p(),d=Ao}}}function No(t,e){var n=Lo(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:et(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}},r=Lo(t)?void 0:t.context,i=y({action:{id:z(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ke.ACTION},n),o=e.isInForegroundAt(t.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:Lo(t)?{event:t.event,events:t.events}:{}}}function Lo(t){return t.type!==Se}function Mo(t,e,n,r,i){var o=function(t,e,n,r){var i=a(t.datakitUrl),o=i.batch;function a(i){var o=di({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new ci(ei(i,t.batchBytesLimit,e),o,t.messageBytesLimit),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,n,r,i);e.subscribe(Bn,(function(t){t.type===ke.VIEW?o.upsert(t,t.view.id):o.add(t)}))}var Uo="synthetics",Po="user",Do={"view.url":"string","view.referrer":"string"},Bo={tags:"object","_gc.trace_id":"string","_gc.span_id":"string"},zo={};function $o(t,n,r,i,o,a,s,u,c){zo[ke.VIEW]=Do,zo[ke.ERROR]=m({"error.message":"string","error.stack":"string","error.resource.url":"string"},Bo,Do),zo[ke.RESOURCE]=m({"resource.url":"string"},Bo,Do),zo[ke.ACTION]=m({"action.target.name":"string"},Bo,Do),zo[ke.LONG_TASK]=m({},Bo,Do);var d={};d[ke.ERROR]=qn(ke.ERROR,t.eventRateLimiterThreshold,c),d[ke.ACTION]=qn(ke.ACTION,t.eventRateLimiterThreshold,c),n.subscribe(Dn,(function(c){var f,l=c.startTime,p=c.rawRumEvent,h=c.savedCommonContext,v=c.customerContext,g=c.domainContext,m=o.findView(l),_=a.findUrl(l),b=r.findTrackedSession(p.type!==ke.VIEW?l:void 0);if(b&&m&&_){var w=s.findActionId(l),S=h||u(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(st()-(pt()+performance.now()))},terminal:{type:"web"},application:{id:t.applicationId},device:Mt,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:at(),user:{id:i.getId(),is_signin:"F"},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Po:Uo,id:b.id},view:{id:m.id,name:m.name,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,urlQuery:_.urlQuery},action:(f=p,-1!==[ke.ERROR,ke.RESOURCE,ke.LONG_TASK].indexOf(f.type)&&w?{id:w}:void 0)},x=wt(y(E,m,p)),T=y({},S.context,v);R(T)||(x.tags=T),"has_replay"in x.session||(x.session.has_replay=S.hasReplay),R(S.user)||(x.user=y({is_signin:"T"},S.user)),function(t,n,r,i){if(n){var o=Fn(t,zo[t.type],(function(t){return n(t,r)}));if(!1===o&&t.type!==ke.VIEW)return!1;!1===o&&e.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(x,t.beforeSend,g,d)&&(R(x.tags)&&delete x.tags,n.notify(Bn,x))}}))}var Fo=[];function Ho(){document.hasFocus()&&Vo();var t,e,n=(t=Vo,mn(window,ee,(function(e){e.isTrusted&&t()}))),r=(e=jo,mn(window,ne,(function(t){t.isTrusted&&e()})));return{isInForegroundAt:qo,selectInForegroundPeriodsFor:Wo,stop:function(){Fo=[],n.stop(),r.stop()}}}function Vo(){if(!(Fo.length>2500)){var t=Fo[Fo.length-1],e=it();void 0!==t&&void 0===t.end||Fo.push({start:e})}}function jo(){if(0!==Fo.length){var t=Fo[Fo.length-1],e=it();void 0===t.end&&(t.end=e)}}function qo(t){for(var e=Fo.length-1;e>=0;e--){var n=Fo[e];if(void 0!==n.end&&t>n.end)break;if(t>n.start&&(void 0===n.end||t<n.end))return!0}return!1}function Wo(t,e){for(var n=ft(t,e),r=[],i=Math.max(0,Fo.length-500),o=Fo.length-1;o>=i;o--){var a=Fo[o];if(void 0!==a.end&&t>a.end)break;if(!(n<a.start)){var s=t>a.start?t:a.start,u=ut(t,s),c=ut(s,void 0===a.end||n<a.end?n:a.end);r.unshift({start:et(u),duration:et(c)})}}return r}var Go;function Zo(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function Qo(e,n){var r=new ln;return function(e){var n=vn([t.error]).subscribe((function(t){e.notify({startClocks:ot(),message:t.message,stack:t.stack,source:nn.CONSOLE,handling:De,handlingStack:t.handlingStack})}))}(r),function(t){en((function(e,n){t.notify(rn({stackTrace:e,originalError:n,startClocks:ot(),nonErrorPrefix:"Uncaught",source:nn.SOURCE,handling:Be}))}))}(r),function(t){var e=wn([yn,bn]).subscribe((function(e){t.notify({startClocks:ot(),message:e.message,stack:e.stack,type:e.subtype,source:nn.REPORT,handling:Be})}))}(r),r.subscribe((function(t){e.notify(zn,{error:t})})),function(t,e){return t.subscribe(zn,(function(n){t.notify(Dn,m({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:z(),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:ke.ERROR},r=e.isInForegroundAt(t.startClocks.relative);r&&(n.view={in_foreground:r});return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=rn({stackTrace:r instanceof Error?qe(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:"Provided",source:nn.CUSTOM,handling:De});t.notify(zn,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,n)}function Xo(t){if(void 0===t&&(t=window),!Go)if("hidden"===document.visibilityState)Go={timeStamp:0};else{Go={timeStamp:1/0};var e=_n(t,[Yt,qt],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(Go.timeStamp=t.timeStamp,e())}),{capture:!0}).stop}return Go}var Ko=6e5;function Yo(t,e,n){var r={};function o(t){r=b(r,t),n()}var a=function(t,e){return{stop:t.subscribe(Cn,(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<=it()?r.responseStart:void 0})}})).unsubscribe}}(t,(function(t){e(t.loadEvent),o(t)})),s=a.stop,u=function(t,e){var n=Xo();return{stop:t.subscribe(Cn,(function(t){var r=_t(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<n.timeStamp&&t.startTime<Ko}));r&&e(r.startTime)})).unsubscribe}}(t,(function(t){o({firstContentfulPaint:t})})),c=u.stop,d=function(t,e,n){var r=Xo(),i=1/0,o=_n(e,[Zt,Bt],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=t.subscribe(Cn,(function(t){var e=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<i&&t.startTime<r.timeStamp&&t.startTime<Ko}));e&&n(e.startTime)})).unsubscribe;return{stop:function(){o(),a()}}}(t,window,(function(t){o({largestContentfulPaint:t})})),f=d.stop,l=function(t,e){var n=Xo();return{stop:t.subscribe(Cn,(function(t){var r=_t(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.timeStamp}));if(r){var i=ut(r.startTime,r.processingStart);e({firstInputDelay:i>=0?i:0,firstInputTime:r.startTime})}})).unsubscribe}}(t,(function(t){o({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})),p=l.stop;function h(){s(),c(),f(),p()}return{stop:h,timings:r,scheduleStop:function(){i(h,3e5)}}}function Jo(t,e,n,r,i,o){var a,s={},u=function(t,e,n,r,i,o){var a=r===Ce,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:Wi(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(ut(i.timeStamp,t.end)),c())})).stop}}(t,e,n,i,o,(function(t){s.loadingTime=t,r()})),c=u.setLoadEvent,d=u.stop;if(Bi("layout-shift")){s.cumulativeLayoutShift=0;var f=function(t,e){var n=0,r=function(){var t,e,n=0;return{update:function(r){void 0===t||r.startTime-e>=X||r.startTime-t>=5e3?(t=e=r.startTime,n=r.value):(n+=r.value,e=r.startTime)},value:function(){return n}}}();return{stop:t.subscribe(Cn,(function(t){for(var i=0;i<t.length;i++){var o=t[i];"layout-shift"!==o.entryType||o.hadRecentInput||(r.update(o),r.value()>n&&(n=r.value(),e(J(n,4))))}})).unsubscribe}}(t,(function(t){s.cumulativeLayoutShift=t,r()}));a=f.stop}else a=Z;return{stop:function(){d(),a()},setLoadEvent:c,viewMetrics:s}}var ta=3e5;function ea(t,e,n,r,o,u,c){function d(o,u,c){return function(t,e,n,r,o,u,c){void 0===u&&(u=ot());var d,f,l,p,h=z(),v={},g=0,b=_(r),y=!0;c&&(f=c.name,l=c.service,p=c.version);t.notify(In,{id:h,name:f,startClocks:u,service:l,version:p});var w=D(U,3e3,{leading:!1}),S=w.throttled,E=w.cancel,x=Jo(t,e,n,S,o,u),T=x.setLoadEvent,k=x.stop,C=x.viewMetrics,O=o===Ce?Yo(t,T,S):{scheduleStop:Z,timings:{}},I=O.scheduleStop,A=O.timings,R=function(t,e,n){var r=ji({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){i(r.stop,3e5)},eventCounts:r.eventCounts}}(t,h,S),N=R.scheduleStop,L=R.eventCounts,M=a(U,ta);function U(){E(),g+=1;var e=void 0===d?at():d.timeStamp;t.notify(An,m({customTimings:v,documentVersion:g,id:h,name:f,service:l,version:p,loadingType:o,location:b,startClocks:u,timings:A,duration:ut(u.timeStamp,e),isActive:void 0===d,sessionIsActive:y,eventCounts:L},C))}return U(),{name:f,service:l,version:p,scheduleUpdate:S,end:function(e){d||(d=Et(e&&e.endClocks,ot()),y=Et(e&&e.sessionIsActive,!0),t.notify(Rn,{endClocks:d}),s(M),k(),I(),N(),U())},addTiming:function(t,e){if(!d){var n=function(t){return t<31536e6}(e)?e:ut(u.timeStamp,e);v[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,S()}}}}(e,n,r,t,o,u,c)}var f,l=d(Ce,ct(),c);return e.subscribe(Nn,(function(){d(Oe,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(Ln,(function(){l.end({sessionIsActive:!1})})),e.subscribe(Mn,(function(t){t.reason!==gr.UNLOADING&&t.reason!==gr.PAGEHIDE||l.end()})),u&&(f=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!kt(n.hash)&&Ct(n.hash)!==Ct(e.hash))return l.end(),void(l=d(Oe))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=at()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d(Oe,e,t)},stop:function(){f&&f.unsubscribe(),l.end()}}}function na(t,e,n,r,i,o,a,s){return t.subscribe(An,(function(e){t.notify(Dn,function(t,e,n){var r=n.getReplayStats(t.id),i={_gc:{document_version:t.documentVersion,replay_stats:r},date:t.startClocks.timeStamp,type:ke.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:et(t.timings.firstByte),dom_complete:et(t.timings.domComplete),dom_content_loaded:et(t.timings.domContentLoaded),dom_interactive:et(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:et(t.timings.firstContentfulPaint),first_input_delay:et(t.timings.firstInputDelay),first_input_time:et(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:et(t.timings.largestContentfulPaint),load_event:et(t.timings.loadEvent),loading_time:ia(et(t.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:et(t.duration),in_foreground_periods:e.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},session:{has_replay:!!r||void 0,is_active:!!t.sessionIsActive&&void 0}};R(t.customTimings)||(i.view.custom_timings=(o=t.customTimings,a=et,s={},g(o,(function(t,e){s[e]=a(t)})),s));var o,a,s;return{rawRumEvent:i=y(i,{view:ra(t.timings)}),startTime:t.startClocks.relative,domainContext:{location:t.location}}}(e,o,a))})),ea(n,t,r,e,i,!e.trackViewsManually,s)}function ra(t){var e=Ni(t);if(e){var n=e.fetchStart,r=e.responseEnd,i=e.domInteractive,o=e.domContentLoaded,a=e.domComplete,s=e.loadEventEnd,u=e.loadEventStart,c=e.domContentLoadedEventEnd,d={};if(r!==n){d.fpt=et(r-n);var f=parseInt((r-n)/1e3);d.apdexLevel=f>9?9:f}return i!==n&&(d.tti=et(i-n)),o!==n&&(d.dom_ready=et(o-n)),s!==n&&(d.load=et(s-n)),u!==c&&(d.resource_load_time=et(u-c)),a!==i&&(d.dom=et(a-i)),d}}function ia(t){return U(t)&&t<0?void 0:t}function oa(){this.buffer=new Uint8Array(8),aa().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function aa(){return window.crypto||window.msCrypto}function sa(t){this._spanId=new oa,this._traceId=new oa,this._traceSampled=t}function ua(){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 ca(t,e,n){this._spanId=ua(),this._traceId=ua(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=F(e).getParse(),this._traceSampled=n}function da(t,e){this._traceId=new oa,this._spanId=new oa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function fa(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 pa(t,e){this._traceId=new oa,this._spanId=new oa,this._traceSampled=t,this.isHexTraceId=e}function ha(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function va(t,e,n,r){if(n.findTrackedSession()){var i=_t(t.allowedTracingUrls,(function(t){return O([t.match],e.url,!0)}));if(i){var o,a=!U(t.tracingSampleRate)||Y(t.tracingSampleRate);switch(i.traceType){case Ae:o=new sa(a);break;case Ue:o=new ca(t,e.url,a);break;case Re:o=new la(t,a);break;case Pe:o=new da(t,a);break;case Le:o=new pa(a);break;case Me:o=new pa(a,!0);break;case Ne:o=new fa(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]}},sa.prototype={isTracingSupported:function(){return void 0!==aa()},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()}}},ca.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(B(this._traceId)),e=String(B(this._spanId)),n=String(B(this._applicationId+"_rum_"+this.env)),r=String(B(this._version)),i=String(B(window.location.href)),o=String(B(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},da.prototype={isTracingSupported:function(){return void 0!==aa()},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()}}},fa.prototype={isTracingSupported:function(){return void 0!==aa()},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!==aa()},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"}}},pa.prototype={isTracingSupported:function(){return void 0!==aa()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.isHexTraceId?this._traceId.toDecimalString():"0000000000000000"+this._traceId.toPaddedHexadecimalString()},getTraceParent:function(){return"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?m(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var ga=1;function ma(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:ha,traceFetch:function(n){return va(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=_(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):w(n.init.headers)?g(n.init.headers,(function(t){e.push(t)})):n.init.headers&&g(n.init.headers,(function(t,n){e.push([n,t])}));var r={};g(e.concat(N(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),g(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return va(t,n,e,(function(t){g(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=fr().subscribe((function(r){var i=r;if(Pi(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=_a(),t.notify(Un,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Pn,{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:Ie.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=cr().subscribe((function(r){var i=r;if(Pi(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=_a(),t.notify(Un,{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 a(){var t,a;if(r.cancel().catch(Z),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;g(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((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())}),(function(t){e(t)}))}()}(n.body,(function(){e(ut(t.startClocks.timeStamp,at()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(ut(t.startClocks.timeStamp,at()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Pn,{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:Ie.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function _a(){var t=ga;return ga+=1,t}function ba(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n,r=k(e,(function(t){return t.toJSON()}));return r=T(r,Ni),1===(r=T(r,(function(e){return n=e,r=t.startClocks.relative,i=ya({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&ya(n)<=i+o;var n,r,i,o}))).length?r[0]:2===r.length&&ya((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function ya(t){return t.startTime+t.duration}function wa(t,e){t.subscribe(Pn,(function(e){t.notify(Dn,function(t){var e=t.type===Ie.XHR?le:he,n=ba(t),r=n?dt(n.startTime):t.startClocks,i=n?Ea(n):void 0,o=function(t){if(!(t.traceSampled&&t.traceId&&t.spanId))return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:z()}}}(t),a=F(t.url).getParse(),s=y({date:r.timeStamp,resource:{id:z,type:e,duration:tt(t.duration),method:t.method,status:t.status,statusGroup:G(t.status),url:t.url,urlHost:a.Host,urlPath:a.Path,urlPathGroup:$(a.Path),urlQuery:He(H(t.url))},type:ke.RESOURCE},o,i);return{startTime:r.relative,rawRumEvent:s,domainContext:{performanceEntry:n&&xa(n),xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(e))})),t.subscribe(Cn,(function(n){for(var r=0;r<n.length;r++){var i=n[r];"resource"!==i.entryType||("xmlhttprequest"===(o=i).initiatorType||"fetch"===o.initiatorType)||Ai(i.name,e.resourceUrlLimit)||t.notify(Dn,Sa(i))}var o}))}function Sa(t){var e=Ci(t),n=Ea(t),r=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),i=F(t.name).getParse(),o="";!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)&&(o=200):o=304;var a=dt(t.startTime),s=y({date:a.timeStamp,resource:{id:z(),type:e,url:t.name,urlHost:i.Host,urlPath:i.Path,urlPathGroup:$(i.Path),urlQuery:He(H(t.name)),method:"GET",status:o,statusGroup:G(o)},type:ke.RESOURCE},r,n);return{startTime:a.relative,rawRumEvent:s,domainContext:{performanceEntry:xa(t)}}}function Ea(t){return{resource:y({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?tt(e.responseEnd-e.startTime):tt(e.duration)),size:Ui(t)},Ri(t))};var e}function xa(t){return"function"==typeof PerformanceEntry&&t instanceof PerformanceEntry&&t.toJSON(),t}var Ta,ka={sdkVersion:"3.0.20",sdkName:"df_web_rum_sdk"};function Ca(t){if(t.applicationId){if(!t.datakitUrl&&!t.datakitOrigin)return e.error("datakitOrigin is not configured, no RUM data will be collected."),!1;if(void 0===t.sessionReplaySampleRate||bt(t.sessionReplaySampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&e.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!w(t.allowedTracingUrls))return void e.error("Allowed Tracing URLs should be an array");var n=[];return g(t.allowedTracingUrls,(function(r){var i;gt(r)?n.push({match:r,traceType:Et(t.traceType,Ae)}):"object"===j(i=r)&>(i.match)&&L(i.traceType)?n.push(r):e.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),n}if(void 0!==t.allowedTracingOrigins){if(!w(t.allowedTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedTracingOrigins,(function(e){var r=Oa(e,Et(t.traceType,Ae));r&&n.push(r)})),n}if(void 0!==t.allowedDDTracingOrigins){if(!w(t.allowedDDTracingOrigins))return void e.error("Allowed Tracing Origins should be an array");n=[];return g(t.allowedDDTracingOrigins,(function(e){var r=Oa(e,Et(t.traceType,Ae));r&&n.push(r)})),n}return[]}(t);if(n)if(void 0===t.tracingSampleRate||bt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||w(t.excludedActivityUrls)){var r=sr(t);if(r){var i=!!Et(t.trackUserInteractions,t.trackInteractions),o=!!t.trackFrustrations;return m({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Et(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,excludedActivityUrls:Et(t.excludedActivityUrls,[]),trackUserInteractions:i||o,trackFrustrations:o,trackViewsManually:!!t.trackViewsManually,traceType:Et(t.traceType,Ae),traceId128Bit:!!t.traceId128Bit,isJsBirdge:!!t.isJsBirdge,defaultPrivacyLevel:xt(ar,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ar.MASK_USER_INPUT},r,ka)}}else e.error("Excluded Activity Urls should be an array");else e.error("Tracing Sample Rate should be a number between 0 and 100")}else e.error("Premium Sample Rate should be a number between 0 and 100")}else e.error("Application ID is not configured, no RUM data will be collected.")}function Oa(t,n){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(Gn(e))}:"function"==typeof t&&(r=function(e){return t(Gn(e))}),void 0!==r)return{match:r,traceType:n};e.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function Ia(){var t;return Ta||(t=new ln((function(){var e=D((function(){t.notify(Aa())}),200).throttled;return mn(window,ie,e,{capture:!0,passive:!0}).stop})),Ta=t),Ta}function Aa(){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 Ra=2,Na=3,La=4,Ma=6,Ua=7,Pa=8,Da=9,Ba=0,za=1,$a=2,Fa=3,Ha=4,Va=11,ja=0,qa=1,Wa=2,Ga=3,Za=4,Qa=5,Xa=6,Ka=7,Ya=8,Ja=0,ts=1,es=2,ns=3,rs=4,is=5,os=6,as=7,ss=9,us=0,cs=1,ds={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ar.ALLOW,MASK:ar.MASK,MASK_USER_INPUT:ar.MASK_USER_INPUT},fs="data-gc-privacy",ls="hidden",ps="***",hs={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function vs(t,e){var n=wr(t),r=n?vs(n,e):e;return gs(ms(t),r)}function gs(t,e){switch(e){case ds.HIDDEN:case ds.IGNORE:return e}switch(t){case ds.ALLOW:case ds.MASK:case ds.MASK_USER_INPUT:case ds.HIDDEN:case ds.IGNORE:return t;default:return e}}function ms(t){if(_r(t)){var e=t.getAttribute(fs);if("BASE"===t.tagName)return ds.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return ds.MASK;if("hidden"===n.type)return ds.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return ds.MASK}return e===ls||t.classList.contains("gc-privacy-hidden")?ds.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?ds.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?ds.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?ds.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)?ds.IGNORE:void 0}}function _s(t,e){switch(e){case ds.MASK:case ds.HIDDEN:case ds.IGNORE:return!0;case ds.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?bs(t.parentNode):bs(t);default:return!1}}function bs(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!!hs[e.tagName]}function ys(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o="STYLE"===r||void 0;if("SCRIPT"===r)i=ps;else if(n===ds.HIDDEN)i=ps;else if(_s(t,n)&&!o)if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?ps:i.replace(/\S/g,"x");return i}}var ws=new WeakMap;function Ss(t){return ws.has(t)}function Es(t){return ws.get(t)}function xs(t,e){var n=t.tagName,r=t.value;if(_s(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return ps}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ts=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ks=/^[A-Za-z]+:|^\/\//,Cs=/^data:.*,/i;function Os(t,e){return t.replace(Ts,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||ks.test(s)||Cs.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 Zn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function Is(t){if(t.includes(":")){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}function As(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?Is(rule.cssText):""})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Rs(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Ns=/^[^ \t\n\r\u000c]+/,Ls=/^[, \t\n\r\u000c]+/;var Ms=0,Us=1,Ps=2;function Ds(t,e,n){return Bs(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Bs(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Ba,childNodes:zs(t,e),adoptedStyleSheets:As(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=[];t.childNodes.length&&(n=zs(t,e));var r=yr(t);r&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Va,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?As(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:za,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Vs(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=gs(ms(t),e.parentNodePrivacyLevel);var o;if(i===ds.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:$a,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[fs]:ls},childNodes:[],isSVG:r}}if(i===ds.IGNORE)return;var c=function(t,e,n){if(e===ds.HIDDEN)return{};for(var r={},i=Vs(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=$s(t,e,s,n.configuration);null!==u&&(r[s]=Ws(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=xs(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===ds.ALLOW){var d=t;d.selected&&(r.selected=d.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(l=js(f))&&f&&(r._cssText=l)}if("style"===i&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var l;(l=js(t.sheet))&&(r._cssText=l)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===ds.ALLOW?r.checked=!!v.checked:_s(v,e)&&delete r.checked);if("audio"===i||"video"===i){var g=t;r.rr_mediaState=g.paused?"paused":"played"}var m=n.serializationContext;switch(m.status){case Ms:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&m.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case Us:m.elementsScrollPositions.has(t)&&({scrollTop:p,scrollLeft:h}=m.elementsScrollPositions.get(t))}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),d=[];if(t.childNodes.length){d=zs(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:m({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}if(br(t)){var f=Bs(t.shadowRoot,e);null!==f&&d.push(f)}return{type:$a,tagName:n,attributes:c,childNodes:d,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=t.parentElement&&t.parentElement.tagName,r=ys(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(!r)return;return{type:Fa,textContent:r,isStyle:"STYLE"===n||void 0}}(t,e);case t.CDATA_SECTION_NODE:return{type:Ha,textContent:""}}var n}(t,e);if(!n)return null;var r=Es(t)||Fs++,i=n;return i.id=r,function(t,e){ws.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function zs(t,e){var n=[];return t.childNodes.forEach((function(t){var r=Bs(t,e);r&&n.push(r)})),n}function $s(t,e,n,r){if(e===ds.HIDDEN)return null;var i=t.getAttribute(n);if(e===ds.MASK&&n!==fs&&!lo.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return ps}if(!("IMG"!==o&&"SOURCE"!==o||"src"!==n&&"srcset"!==n))return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("A"===o&&"href"===n)return ps;if(i&&Tt(n,"data-"))return ps}return i&&"string"==typeof i&&i.length>1e5&&"data:"===i.slice(0,5)?"data:truncated":i}var Fs=1;var Hs=/[^a-z1-6-_]/;function Vs(t){var e=t.toLowerCase().trim();return Hs.test(e)?"div":e}function js(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Os(((n=Array.from(e,qs).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 qs(t){var e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=js(t.styleSheet)||e}catch{}return Is(e)}function Ws(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Rs(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(Ls),!(n>=e.length);){var o=r(Ns);if(","===o.slice(-1))o=Rs(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Rs(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?Os(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Rs(t,r):r:Rs(t,r):r;var i}function Gs(t){return Boolean(t.changedTouches)}function Zs(t,e){return{data:m({source:t},e),type:Na,timestamp:at()}}function Qs(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}}function Xs(t){var e=Z,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(t,e);return function(){return window.cancelIdleCallback(n)}}return n=window.requestAnimationFrame(t),function(){return window.cancelAnimationFrame(n)}}(r,{timeout:100})),n.push(...t)},flush:r,stop:function(){e()}}}function Ks(t,e,n,r){var i=Hi();if(!i)return{stop:Z,flush:Z};var o=Xs((function(i){!function(t,e,n,r,i){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){Ys(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return i.contains(t.target)&&function(t){for(var e=t;e;){if(!Ss(e)&&!yr(e))return!1;e=wr(e)}return!0}(t.target)&&vs(t.target,n.defaultPrivacyLevel)!==ds.HIDDEN})),a=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 d of a)if(!v(d)){var f=vs(d.parentNode,e.defaultPrivacyLevel);if(f!==ds.HIDDEN&&f!==ds.IGNORE){var l=Bs(d,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:Ps,shadowRootsController:n},configuration:e});if(l){var p=wr(d);c.push({nextId:g(d),parentId:Es(p),node:l})}}}var h=[];return i.forEach((function(t,e){Ss(e)&&h.push({parentId:Es(t),id:Es(e)})})),{adds:c,removes:h,serializedNodeIds:u,hasBeenSerialized:v};function v(t){return Ss(t)&&u.has(Es(t))}function g(t){for(var e=t.nextSibling;e;){if(Ss(e))return Es(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r),s=a.adds,u=a.removes,c=a.serializedNodeIds;function d(t){return Ss(t)&&c.has(Es(t))}var f=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(wr(o.target),e.defaultPrivacyLevel);a!==ds.HIDDEN&&a!==ds.IGNORE&&n.push({id:Es(o.target),value:Et(ys(o.target,!1,a))})}}return n}(o.filter((function(t){return"characterData"===t.type&&!d(t.target)})),n),l=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=$s(a.target,u,a.attributeName,e);if("value"===a.attributeName){var d=xs(a.target,u);if(void 0===d)continue;s=d}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:Es(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(o.filter((function(t){return"attributes"===t.type&&!d(t.target)})),n);if(!(f.length||l.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:l})}(i.concat(a.takeRecords()),t,e,n,r)})),a=new i(o.addMutations);return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function Ys(t,e){var n;br(t)&&e(t.shadowRoot),(n=t,br(n)?n.shadowRoot.childNodes:n.childNodes).forEach((function(t){Ys(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}};function eu(){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 nu(){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 ru=new WeakMap;let iu=1;function ou(t){return ru.has(t)||ru.set(t,iu++),ru.get(t)}function au(t){var e,n,r,i,o,a,s,u,c=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Ks(e,n,r,document)),d=function(t){var e=D((function(e){var n=du(e);if(Ss(n)){var r=uu(e);if(!r)return;var i={id:Es(n),timeOffset:0,x:r.x,y:r.y};t([i],Gs(e)?Xa:qa)}}),50,{trailing:!1});return _n(document,[te,jt],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),f=function(t,e){var n=function(n){var r=du(n);if(vs(r,e)!==ds.HIDDEN&&Ss(r)){var i,o=Es(r),a=su[n.type];if(a!==os&&a!==is){var s=uu(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=m({id:ou(n)},Zs(Wa,i));t(u)}};return _n(document,Object.keys(su),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),l=function(t,e,n){var r=D((function(r){var i=du(r);if(i&&vs(i,e)!==ds.HIDDEN&&Ss(i)){var o=Es(i),a=i===document?{scrollTop:nu(),scrollLeft:eu()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100);return mn(document,Ft,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),p=function(t){return Ia().subscribe(t).unsubscribe}(t.viewportResizeCb),h=cu(t.inputCb,t.configuration.defaultPrivacyLevel),v=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,_n(document,[se,ue],(function(t){var e=du(t);e&&vs(e,o)!==ds.HIDDEN&&Ss(e)&&i({id:Es(e),type:t.type===se?us:cs})}),{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&Ss(t.ownerNode)&&e(Es(t.ownerNode))}var n=[$e(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),$e(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($e(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=Qs(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),$e(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=Qs(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),_=(a=t.focusCb,_n(window,[ee,ne],(function(){a({has_focus:document.hasFocus()})})).stop),b=function(t){if(!window.visualViewport)return Z;var e=D((function(){t(tu())}),200,{trailing:!1}),n=_n(window.visualViewport,[ie,Ft],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),y=(s=t.lifeCycle,u=t.frustrationCb,s.subscribe(Dn,(function(t){t.rawRumEvent.type===ke.ACTION&&t.rawRumEvent.action.type===we&&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&&u({timestamp:t.rawRumEvent.date,type:Da,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return ou(t)}))}})})).unsubscribe);return{flush:function(){c.flush()},stop:function(){c.stop(),d(),f(),l(),p(),h(),v(),g(),_(),b(),y()}}}var su={[Qt]:Ja,[Jt]:ts,[Pt]:es,[re]:ns,[Dt]:rs,[ee]:is,[ne]:os,[Ht]:as,[Vt]:ss};function uu(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 cu(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=_n(n,o?[oe]:[ae,oe],(function(t){var e=du(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=Z;else{const t=[Fe(HTMLInputElement.prototype,"value",u),Fe(HTMLInputElement.prototype,"checked",u),Fe(HTMLSelectElement.prototype,"value",u),Fe(HTMLTextAreaElement.prototype,"value",u),Fe(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===ds.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(_s(t,n))return;i={isChecked:t.checked}}else{var o=xs(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="${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(m({id:Es(e)},n)))}}}function du(t){return!0===t.composed&&br(t.target)?t.composedPath()[0]:t.target}function fu(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(Zs(ja,t))},o=function(t){e(Zs(Qa,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){var a=Ks(n,t,o,e),s=a.flush,u=a.stop,c=cu(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}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=at()),void 0===i&&(i={status:Ms,elementsScrollPositions:r,shadowRootsController:a});var o=Aa(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:La,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Ma,timestamp:n}),e({data:{node:Ds(document,t.configuration,i),initialOffset:{left:eu(),top:nu()}},type:Ra,timestamp:n}),window.visualViewport&&e({data:tu(),type:Pa,timestamp:n})};s();var u=au({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Zs(Ka,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Zs(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Zs(Ga,t))},styleSheetCb:function(t){e(Zs(Ya,t))},viewportResizeCb:function(t){e(Zs(Za,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Ma,timestamp:at()})},visualViewportResizeCb:function(t){e({data:t,type:Pa,timestamp:at()})},shadowRootsController:a}),c=u.stop,d=u.flush;function f(){a.flush(),d()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Us,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function lu(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),pu(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n.toString()),{data:r,bytesCount:t.byteLength}}function pu(t,e,n){void 0===n&&(n=""),g(N(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?pu(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var hu;function vu(t){return _u(t).segments_count}function gu(t){_u(t).records_count+=1}function mu(t){return hu&&hu.get(t)}function _u(t){var e;return hu||(hu=new Map),hu.has(t)?e=hu.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},hu.set(t,e),hu.size>10&&function(){if(!hu)return;if(hu.keys)hu.delete(hu.keys().next().value);else{var t=!0;hu.forEach((function(e,n){t&&(hu.delete(n),t=!1)}))}}()),e}var bu=0;function yu(t,e,n,r,i,o){this.worker=t,this.id=bu++;var a=e.view.id;this.metadata=m({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===Ra,index_in_view:vu(a),source:"browser"},e),function(t){_u(t).segments_count+=1}(a),gu(a);var s=this,u=function(e){var n=e.data;"errored"!==n.type&&"initialized"!==n.type&&(n.id===s.id?(!function(t,e){_u(t).segments_total_raw_size+=e}(a,n.additionalBytesCount),"flushed"===n.type?(o(n.result,n.rawBytesCount),t.removeEventListener("message",u)):i(n.compressedBytesCount)):n.id>s.id&&t.removeEventListener("message",u))};t.addEventListener("message",u),this.worker.postMessage({data:'{"records":['+JSON.stringify(r),id:this.id,action:"write"})}yu.prototype.addRecord=function(t){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,gu(this.metadata.view.id),this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===Ra),this.worker.postMessage({data:","+JSON.stringify(t),id:this.id,action:"write"})},yu.prototype.flush=function(t){this.worker.postMessage({data:"],"+JSON.stringify(this.metadata).slice(1)+"\n",id:this.id,action:"flush"}),this.flushReason=t};var wu=6e4;function Su(t,e,n,r,a,s){return function(t,e,n,r){var a={status:Eu,nextSegmentCreationReason:"init"},s=t.subscribe(In,(function(){c("view_change")})).unsubscribe,u=t.subscribe(Mn,(function(t){c(t.reason)})).unsubscribe;function c(t){a.status===xu&&(a.segment.flush(t),o(a.expirationTimeoutId)),a="stop"!==t?{status:Eu,nextSegmentCreationReason:t}:{status:Tu}}function d(t,o){var s=e();if(s){var u=new yu(r,s,t,o,(function(t){!u.flushReason&&t>wu&&c("segment_bytes_limit")}),(function(t,e){var r=lu(t,u.metadata,e);mr(u.flushReason)?n.sendOnExit(r):n.send(r)}));a={status:xu,segment:u,expirationTimeoutId:i((function(){c("segment_duration_limit")}),3e4)}}}return{addRecord:function(t){switch(a.status){case Eu:d(a.nextSegmentCreationReason,t);break;case xu:a.segment.addRecord(t)}},stop:function(){c("stop"),s(),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)}),a,s)}var Eu=0,xu=1,Tu=2;let ku;function Cu(){return ku||(ku=URL.createObjectURL(new Blob([`(${Ou})(self)`]))),new Worker(ku)}function Ou(){function t(t){return function(){try{return t.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(e){self.postMessage({type:"errored",error:`${t}`})}}}}t((function(){var e=function(){var t=4,e=0,n=1,r=2;function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=0,a=1,s=2,u=3,c=258,d=29,f=256,l=f+1+d,p=30,h=19,v=2*l+1,g=15,m=16,_=7,b=256,y=16,w=17,S=18,E=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]),x=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]),T=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=512,O=new Array(2*(l+2));i(O);var I=new Array(2*p);i(I);var A=new Array(C);i(A);var R=new Array(c-u+1);i(R);var N=new Array(d);i(N);var L,M,U,P=new Array(p);function D(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function B(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}i(P);var z=function(t){return t<256?A[t]:A[256+(t>>>7)]},$=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},F=function(t,e,n){t.bi_valid>m-n?(t.bi_buf|=e<<t.bi_valid&65535,$(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=n-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},H=function(t,e,n){F(t,n[2*e],n[2*e+1])},V=function(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},j=function(t){16===t.bi_valid?($(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)},q=function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,d=e.stat_desc.static_tree,f=e.stat_desc.has_stree,l=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<v;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>h&&(o=h,m++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=l[r-p]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(d[2*r+1]+a)));if(0!==m){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,m-=2}while(m>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},W=function(t,e,n){var r,i,o=new Array(g+1),a=0;for(r=1;r<=g;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=V(o[s]++,s))}},G=function(){var t,e,n,r,i,o=new Array(g+1);for(n=0,r=0;r<d-1;r++)for(N[r]=n,t=0;t<1<<E[r];t++)R[n++]=r;for(R[n-1]=r,i=0,r=0;r<16;r++)for(P[r]=i,t=0;t<1<<x[r];t++)A[i++]=r;for(i>>=7;r<p;r++)for(P[r]=i<<7,t=0;t<1<<x[r]-7;t++)A[256+i++]=r;for(e=0;e<=g;e++)o[e]=0;for(t=0;t<=143;)O[2*t+1]=8,t++,o[8]++;for(;t<=255;)O[2*t+1]=9,t++,o[9]++;for(;t<=279;)O[2*t+1]=7,t++,o[7]++;for(;t<=287;)O[2*t+1]=8,t++,o[8]++;for(W(O,l+1,o),t=0;t<p;t++)I[2*t+1]=5,I[2*t]=V(t,5);L=new D(O,E,f+1,l,g),M=new D(I,x,0,p,g),U=new D(new Array(0),T,0,h,_)},Z=function(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<p;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},Q=function(t){t.bi_valid>8?$(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},X=function(t,e,n,r){Q(t),r&&($(t,n),$(t,~n)),t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},K=function(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},Y=function(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&K(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!K(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},J=function(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?H(t,i,e):(o=R[i],H(t,o+f+1,e),0!==(a=E[o])&&(i-=N[o],F(t,i,a)),r--,o=z(r),H(t,o,n),0!==(a=x[o])&&(r-=P[o],F(t,r,a)))}while(s<t.last_lit);H(t,b,e)},tt=function(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=v,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Y(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Y(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Y(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],q(t,e),W(o,c,t.bl_count)},et=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*w]++:t.bl_tree[2*S]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},nt=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{H(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(H(t,i,t.bl_tree),s--),H(t,y,t.bl_tree),F(t,s-3,2)):s<=10?(H(t,w,t.bl_tree),F(t,s-3,3)):(H(t,S,t.bl_tree),F(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},rt=function(t){var e;for(et(t,t.dyn_ltree,t.l_desc.max_code),et(t,t.dyn_dtree,t.d_desc.max_code),tt(t,t.bl_desc),e=h-1;e>=3&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},it=function(t,e,n,r){var i;for(F(t,e-257,5),F(t,n-1,5),F(t,r-4,4),i=0;i<r;i++)F(t,t.bl_tree[2*k[i]+1],3);nt(t,t.dyn_ltree,e-1),nt(t,t.dyn_dtree,n-1)},ot=function(t){var r,i=4093624447;for(r=0;r<=31;r++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*r])return e;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return n;for(r=32;r<f;r++)if(0!==t.dyn_ltree[2*r])return n;return e},at=!1,st=function(t,e,n,r){F(t,(o<<1)+(r?1:0),3),X(t,e,n,!0)},ut=function(e,n,i,o){var u,c,d=0;e.level>0?(e.strm.data_type===r&&(e.strm.data_type=ot(e)),tt(e,e.l_desc),tt(e,e.d_desc),d=rt(e),u=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=u&&(u=c)):u=c=i+5,i+4<=u&&-1!==n?st(e,n,i,o):e.strategy===t||c===u?(F(e,(a<<1)+(o?1:0),3),J(e,O,I)):(F(e,(s<<1)+(o?1:0),3),it(e,e.l_desc.max_code+1,e.d_desc.max_code+1,d+1),J(e,e.dyn_ltree,e.dyn_dtree)),Z(e),o&&Q(e)},ct={_tr_init:function(t){at||(G(),at=!0),t.l_desc=new B(t.dyn_ltree,L),t.d_desc=new B(t.dyn_dtree,M),t.bl_desc=new B(t.bl_tree,U),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:st,_tr_flush_block:ut,_tr_tally:function(t,e,n){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&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(R[n]+f+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){F(t,a<<1,3),H(t,b,O),j(t)}},dt=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},ft=new Uint32Array(function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}()),lt=function(t,e,n,r){var i=ft,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},pt={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"},ht={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},vt=ct._tr_init,gt=ct._tr_stored_block,mt=ct._tr_flush_block,_t=ct._tr_tally,bt=ct._tr_align,yt=ht.Z_NO_FLUSH,wt=ht.Z_PARTIAL_FLUSH,St=ht.Z_FULL_FLUSH,Et=ht.Z_FINISH,xt=ht.Z_BLOCK,Tt=ht.Z_OK,kt=ht.Z_STREAM_END,Ct=ht.Z_STREAM_ERROR,Ot=ht.Z_DATA_ERROR,It=ht.Z_BUF_ERROR,At=ht.Z_DEFAULT_COMPRESSION,Rt=ht.Z_FILTERED,Nt=ht.Z_HUFFMAN_ONLY,Lt=ht.Z_RLE,Mt=ht.Z_FIXED,Ut=ht.Z_DEFAULT_STRATEGY,Pt=ht.Z_UNKNOWN,Dt=ht.Z_DEFLATED,Bt=9,zt=15,$t=8,Ft=286,Ht=30,Vt=19,jt=2*Ft+1,qt=15,Wt=3,Gt=258,Zt=Gt+Wt+1,Qt=32,Xt=42,Kt=69,Yt=73,Jt=91,te=103,ee=113,ne=666,re=1,ie=2,oe=3,ae=4,se=3,ue=function(t,e){return t.msg=pt[e],e},ce=function(t){return(t<<1)-(t>4?9:0)},de=function(t){for(var e=t.length;--e>=0;)t[e]=0},fe=function(t,e,n){return(e<<t.hash_shift^n)&t.hash_mask},le=function(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},pe=function(t,e){mt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,le(t.strm)},he=function(t,e){t.pending_buf[t.pending++]=e},ve=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ge=function(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=dt(t.adler,e,i,n):2===t.state.wrap&&(t.adler=lt(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},me=function(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Zt?t.strstart-(t.w_size-Zt):0,c=t.window,d=t.w_mask,f=t.prev,l=t.strstart+Gt,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<l);if(r=Gt-(l-o),o=l-Gt,r>a){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}}while((e=f[e&d])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},_e=function(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-Zt)){t.window.set(t.window.subarray(a,a+a),0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=ge(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=Wt)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=fe(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=fe(t,t.ins_h,t.window[o+Wt-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<Wt)););}while(t.lookahead<Zt&&0!==t.strm.avail_in)},be=function(t,e){for(var n,r;;){if(t.lookahead<Zt){if(_e(t),t.lookahead<Zt&&e===yt)return re;if(0===t.lookahead)break}if(n=0,t.lookahead>=Wt&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-Zt&&(t.match_length=me(t,n)),t.match_length>=Wt)if(r=_t(t,t.strstart-t.match_start,t.match_length-Wt),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=Wt){t.match_length--;do{t.strstart++,t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=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=fe(t,t.ins_h,t.window[t.strstart+1]);else r=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=t.strstart<Wt-1?t.strstart:Wt-1,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},ye=function(t,e){for(var n,r,i;;){if(t.lookahead<Zt){if(_e(t),t.lookahead<Zt&&e===yt)return re;if(0===t.lookahead)break}if(n=0,t.lookahead>=Wt&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=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=Wt-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Zt&&(t.match_length=me(t,n),t.match_length<=5&&(t.strategy===Rt||t.match_length===Wt&&t.strstart-t.match_start>4096)&&(t.match_length=Wt-1)),t.prev_length>=Wt&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-Wt,r=_t(t,t.strstart-1-t.prev_match,t.prev_length-Wt),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=fe(t,t.ins_h,t.window[t.strstart+Wt-1]),n=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=Wt-1,t.strstart++,r&&(pe(t,!1),0===t.strm.avail_out))return re}else if(t.match_available){if((r=_t(t,0,t.window[t.strstart-1]))&&pe(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return re}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=_t(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<Wt-1?t.strstart:Wt-1,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},we=function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Gt){if(_e(t),t.lookahead<=Gt&&e===yt)return re;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=Wt&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Gt;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Gt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=Wt?(n=_t(t,1,t.match_length-Wt),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie},Se=function(t,e){for(var n;;){if(0===t.lookahead&&(_e(t),0===t.lookahead)){if(e===yt)return re;break}if(t.match_length=0,n=_t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):t.last_lit&&(pe(t,!1),0===t.strm.avail_out)?re:ie};function Ee(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var xe=[new Ee(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_e(t),0===t.lookahead&&e===yt)return re;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,pe(t,!1),0===t.strm.avail_out))return re;if(t.strstart-t.block_start>=t.w_size-Zt&&(pe(t,!1),0===t.strm.avail_out))return re}return t.insert=0,e===Et?(pe(t,!0),0===t.strm.avail_out?oe:ae):(t.strstart>t.block_start&&(pe(t,!1),t.strm.avail_out),re)})),new Ee(4,4,8,4,be),new Ee(4,5,16,8,be),new Ee(4,6,32,32,be),new Ee(4,4,16,16,ye),new Ee(8,16,32,32,ye),new Ee(8,16,128,128,ye),new Ee(8,32,128,256,ye),new Ee(32,128,258,1024,ye),new Ee(32,258,258,4096,ye)],Te=function(t){t.window_size=2*t.w_size,de(t.head),t.max_lazy_match=xe[t.level].max_lazy,t.good_match=xe[t.level].good_length,t.nice_match=xe[t.level].nice_length,t.max_chain_length=xe[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Wt-1,t.match_available=0,t.ins_h=0};function ke(){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=Dt,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(2*jt),this.dyn_dtree=new Uint16Array(2*(2*Ht+1)),this.bl_tree=new Uint16Array(2*(2*Vt+1)),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(qt+1),this.heap=new Uint16Array(2*Ft+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ft+1),de(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 Ce=function(t){if(!t||!t.state)return ue(t,Ct);t.total_in=t.total_out=0,t.data_type=Pt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?Xt:ee,t.adler=2===e.wrap?0:1,e.last_flush=yt,vt(e),Tt},Oe=function(t){var e=Ce(t);return e===Tt&&Te(t.state),e},Ie=function(t,e,n,r,i,o){if(!t)return Ct;var a=1;if(e===At&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Bt||n!==Dt||r<8||r>15||e<0||e>9||o<0||o>Mt)return ue(t,Ct);8===r&&(r=9);var s=new ke;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Wt-1)/Wt),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,Oe(t)},Ae=function(t,e){var n=e.length;if(!t||!t.state)return Ct;var r=t.state,i=r.wrap;if(2===i||1===i&&r.status!==Xt||r.lookahead)return Ct;if(1===i&&(t.adler=dt(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(de(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(e.subarray(n-r.w_size,n),0),e=o,n=r.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,_e(r);r.lookahead>=Wt;){var c=r.strstart,d=r.lookahead-(Wt-1);do{r.ins_h=fe(r,r.ins_h,r.window[c+Wt-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++}while(--d);r.strstart=c,r.lookahead=Wt-1,_e(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Wt-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=i,Tt},Re={deflateInit:function(t,e){return Ie(t,e,Dt,zt,$t,Ut)},deflateInit2:Ie,deflateReset:Oe,deflateResetKeep:Ce,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?Ct:(t.state.gzhead=e,Tt):Ct},deflate:function(t,e){var n,r;if(!t||!t.state||e>xt||e<0)return t?ue(t,Ct):Ct;var i=t.state;if(!t.output||!t.input&&0!==t.avail_in||i.status===ne&&e!==Et)return ue(t,0===t.avail_out?It:Ct);i.strm=t;var o=i.last_flush;if(i.last_flush=e,i.status===Xt)if(2===i.wrap)t.adler=0,he(i,31),he(i,139),he(i,8),i.gzhead?(he(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),he(i,255&i.gzhead.time),he(i,i.gzhead.time>>8&255),he(i,i.gzhead.time>>16&255),he(i,i.gzhead.time>>24&255),he(i,9===i.level?2:i.strategy>=Nt||i.level<2?4:0),he(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(he(i,255&i.gzhead.extra.length),he(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=lt(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Kt):(he(i,0),he(i,0),he(i,0),he(i,0),he(i,0),he(i,9===i.level?2:i.strategy>=Nt||i.level<2?4:0),he(i,se),i.status=ee);else{var a=Dt+(i.w_bits-8<<4)<<8;a|=(i.strategy>=Nt||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=Qt),a+=31-a%31,i.status=ee,ve(i,a),0!==i.strstart&&(ve(i,t.adler>>>16),ve(i,65535&t.adler)),t.adler=1}if(i.status===Kt)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending!==i.pending_buf_size));)he(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Yt)}else i.status=Yt;if(i.status===Yt)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,he(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=Jt)}else i.status=Jt;if(i.status===Jt)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),le(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,he(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=lt(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=te)}else i.status=te;if(i.status===te&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&le(t),i.pending+2<=i.pending_buf_size&&(he(i,255&t.adler),he(i,t.adler>>8&255),t.adler=0,i.status=ee)):i.status=ee),0!==i.pending){if(le(t),0===t.avail_out)return i.last_flush=-1,Tt}else if(0===t.avail_in&&ce(e)<=ce(o)&&e!==Et)return ue(t,It);if(i.status===ne&&0!==t.avail_in)return ue(t,It);if(0!==t.avail_in||0!==i.lookahead||e!==yt&&i.status!==ne){var s=i.strategy===Nt?Se(i,e):i.strategy===Lt?we(i,e):xe[i.level].func(i,e);if(s!==oe&&s!==ae||(i.status=ne),s===re||s===oe)return 0===t.avail_out&&(i.last_flush=-1),Tt;if(s===ie&&(e===wt?bt(i):e!==xt&&(gt(i,0,0,!1),e===St&&(de(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),le(t),0===t.avail_out))return i.last_flush=-1,Tt}return e!==Et?Tt:i.wrap<=0?kt:(2===i.wrap?(he(i,255&t.adler),he(i,t.adler>>8&255),he(i,t.adler>>16&255),he(i,t.adler>>24&255),he(i,255&t.total_in),he(i,t.total_in>>8&255),he(i,t.total_in>>16&255),he(i,t.total_in>>24&255)):(ve(i,t.adler>>>16),ve(i,65535&t.adler)),le(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Tt:kt)},deflateEnd:function(t){if(!t||!t.state)return Ct;var e=t.state.status;return e!==Xt&&e!==Kt&&e!==Yt&&e!==Jt&&e!==te&&e!==ee&&e!==ne?ue(t,Ct):(t.state=null,e===ee?ue(t,Ot):Tt)},deflateSetDictionary:Ae,deflateInfo:"pako deflate (from Nodeca project)"};function Ne(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i}for(var Le=new Uint8Array(256),Me=0;Me<256;Me++)Le[Me]=Me>=252?6:Me>=248?5:Me>=240?4:Me>=224?3:Me>=192?2:1;function Ue(){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}Le[254]=Le[254]=1;var Pe=Ue,De=Object.prototype.toString,Be=ht.Z_NO_FLUSH,ze=ht.Z_SYNC_FLUSH,$e=ht.Z_FULL_FLUSH,Fe=ht.Z_FINISH,He=ht.Z_OK,Ve=ht.Z_STREAM_END,je=ht.Z_DEFAULT_COMPRESSION,qe=ht.Z_DEFAULT_STRATEGY,We=ht.Z_DEFLATED;function Ge(){this.options={level:je,method:We,chunkSize:16384,windowBits:15,memLevel:8,strategy:qe};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 Pe,this.strm.avail_out=0;var e=Re.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==He)throw new Error(pt[e]);if(t.header&&Re.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="[object ArrayBuffer]"===De.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Re.deflateSetDictionary(this.strm,n))!==He)throw new Error(pt[e]);this._dict_set=!0}}function Ze(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)n=t.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=t.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}return Ge.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Fe:Be,"[object ArrayBuffer]"===De.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===ze||r===$e)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Re.deflate(i,r))===Ve)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Re.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===He;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Ge.prototype.onData=function(t){this.chunks.push(t)},Ge.prototype.onEnd=function(t){t===He&&(this.result=Ne(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},{Deflate:Ge,constants:ht,string2buf:Ze}}(),n=e.Deflate,r=e.constants,i=e.string2buf,o=new n,a=0;function s(t){var e=i(t);return o.push(e,r.Z_SYNC_FLUSH),a+=e.length,e.length}self.addEventListener("message",t((function(t){var e=t.data;switch(e.action){case"init":self.postMessage({type:"initialized"});break;case"write":var i=s(e.data);self.postMessage({type:"wrote",id:e.id,compressedBytesCount:o.chunks.reduce((function(t,e){return t+e.length}),0),additionalBytesCount:i});break;case"flush":i=e.data?s(e.data):0;o.push("",r.Z_FINISH),self.postMessage({type:"flushed",id:e.id,result:o.result,additionalBytesCount:i,rawBytesCount:a}),o=new n,a=0}})))}))()}var Iu=0,Au=1,Ru=2,Nu=3,Lu={status:Iu};function Mu(t,e){switch(void 0===e&&(e=Cu),Lu.status){case Iu:Lu={status:Au,callbacks:[t]},function(t){void 0===t&&(t=Cu);try{var e=t();mn(e,"error",Uu),mn(e,"message",(function(t){var n=t.data;"errored"===n.type?Uu(n.error):"initialized"===n.type&&function(t){Lu.status===Au&&(g(Lu.callbacks,(function(e){e(t)})),Lu={status:Nu,worker:t})}(e)})),e.postMessage({action:"init"})}catch(t){Uu(t)}}(e);break;case Au:Lu.callbacks.push(t);break;case Ru:t();break;case Nu:t(Lu.worker)}}function Uu(t){Lu.status===Au&&(e.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),(t instanceof Event||t instanceof Error&&mt(t.message,"Content Security Policy"))&&e.error("Please make sure CSP is correctly configured !!!"),g(Lu.callbacks,(function(t){t()})),Lu={status:Ru})}var Pu=0,Du=1,Bu=2,zu=3;var $u,Fu,Hu,Vu,ju=function(t,e){if(void 0===e&&(e=Mu),li()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:Z,stop:Z,getReplayStats:function(){},onRumStart:Z,isRecording:function(){return!1}};var n={status:Pu},r=function(){n={status:Du}},i=function(){n={status:Pu}};return{start:function(){r()},stop:function(){i()},getReplayStats:mu,onRumStart:function(o,a,s,u){o.subscribe(Ln,(function(){n.status!==Bu&&n.status!==zu||(i(),n={status:Du})})),o.subscribe(Nn,(function(){n.status===Du&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?n.status!==Bu&&n.status!==zu&&(n={status:Bu},Sr("interactive",(function(){n.status===Bu&&e((function(e){if(n.status===Bu)if(e){var r=t(o,a,s,u,e);n={status:zu,stopRecording:r.stop}}else n={status:Pu}}))}))):n={status:Du}},i=function(){n.status!==Pu&&(n.status===zu&&n.stopRecording(),n={status:Pu})},n.status===Du&&r()},isRecording:function(){return n.status===zu}}}((function(t,e,n,r,i,o){var a=o||ei(e.sessionReplayEndPoint,wu,(function(e){t.notify(zn,{error:e})})),s=Su(t,e,n,r,a,i),u=s.addRecord,c=s.stop,d=fu({emit:u,configuration:e,lifeCycle:t}),f=d.stop,l=d.takeSubsequentFullSnapshot,p=d.flushMutations,h=t.subscribe(Rn,(function(){p(),u({timestamp:at(),type:Ua})})),v=t.subscribe(In,(function(t){l(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),qu=function(t,n){var r,i=!1,o=vi(hi),a=vi(pi),s=function(){},u=function(){},c=function(){},d=new It,f=function(t,e){void 0===e&&(e=at()),d.add((function(){return f(t,e)}))},l=function(t,e){void 0===e&&(e=ot()),d.add((function(){return l(t,e)}))},p=function(t,e){void 0===e&&(e=Zo(o,a,n)),d.add((function(){return p(t,e)}))},h=function(t,e){void 0===e&&(e=Zo(o,a,n)),d.add((function(){return h(t,e)}))};function v(e,r){var i=t(e,n,o,a,r);l=i.startView,p=i.addAction,h=i.addError,f=i.addTiming,s=i.getInternalContext,c=i.stopSession,d.drain(),n.onRumStart(i.lifeCycle,e,i.session,i.viewContexts)}return r={init:function(t){if(u=function(){return W(t)},li()&&(t=function(t){return m({},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="dd_cookie_test_".concat(z()),n="test";return Yn(e,n,X,t),Jn(e)===n}catch(t){return!1}}(ur(t))?"file:"!==window.location.protocol||(e.error("Execution is not allowed in the current context."),!1):(e.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!i||(t.silentMultipleInit||e.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var n=Ca(t);if(n){if(n.trackViewsManually){var r=d;d=new It,l=function(t){v(n,t)},r.drain()}else v(n);i=!0}}},addRumGlobalContext:o.add,setGlobalContextProperty:o.setContextProperty,removeRumGlobalContext:o.remove,removeGlobalContextProperty:o.removeContextProperty,getRumGlobalContext:o.get,getGlobalContext:o.getContext,setRumGlobalContext:o.set,setGlobalContext:o.setContext,clearGlobalContext:o.clearContext,getInitConfiguration:function(){return u()},getInternalContext:function(t){return s(t)},addDebugSession:function(t){},clearDebugSession:function(){},getDebugSession:function(){},addAction:function(t,e){p({name:t,context:W(e),startClocks:ot(),type:Se})},addError:function(t,e){var n=on();h({error:t,handlingStack:n,context:W(e),startClocks:ot()})},addTiming:function(t,e){f(t,e)},setUser:function(t){(function(t){var n="object"===j(t);return n||e.error("Unsupported user:",t),n})(t)&&a.setContext(gi(t))},getUser:a.getContext,setUserProperty:function(t,e){var n={};n[t]=e;var r=gi(n)[t];a.setContextProperty(t,r)},removeUserProperty:a.removeContextProperty,removeUser:a.clearContext,clearUser:a.clearContext,startView:function(t){l("object"==typeof t?t:{name:t})},stopSession:function(){c()},startSessionReplayRecording:n.start,stopSessionReplayRecording:n.stop},b({},r,{onReady:function(t){t()}})}((function(t,e,n,r,i){var o,a=new $n,s=function(t){a.notify(zn,{error:t})},u=o=new ln((function(){var t=_n(document,[qt,Wt,Yt],(function(t){t.type===qt&&"hidden"===document.visibilityState?o.notify({reason:gr.HIDDEN}):t.type===Wt&&o.notify({reason:gr.FROZEN})}),{capture:!0}),e=mn(window,Ut,(function(){o.notify({reason:gr.UNLOADING})}));return function(){t.stop(),e.stop()}}));u.subscribe((function(t){a.notify(Mn,t)}));var c=li()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:mi,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:Z,expireObservable:new ln}}():Si(t,a);if(li())!function(t){var e=fi();t.subscribe(Bn,(function(t){var n=si(t).rowData;e.send("rum",n)}))}(a);else Mo(t,a,s,u,c.expireObservable);var d=function(t){var e=Jn(xi);return e||(e=z(),Yn(xi,e,5184e6,t.cookieOptions)),{getId:function(){return e}}}(t),f=function(){var t=Hi(),e=new ln((function(){if(t){var n=new t((function(){return e.notify()}));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return e}(),l=Vi(location),p=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new Rt(144e5);return t.subscribe(In,(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(Rn,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(Nn,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),d=function(t,e,n){var r,i=new Rt(144e5);t.subscribe(Rn,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(In,(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=it();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&&!kt(n)&&(e="/"+Ct(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:$(e),urlQuery:He(H(t.location.href))}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=Ho(),l=function(t,e,n,r){t.subscribe(On,(function(e){t.notify(Dn,No(e,r))}));var i={findActionId:Z};return n.trackUserInteractions&&(i=Co(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Dn,b({savedCommonContext:n},No(e,r)))}}}(t,a,e,f),p=l.actionContexts,h=l.addAction;return $o(e,t,r,i,c,d,p,s,u),{viewContexts:c,urlContexts:d,foregroundContexts:f,addAction:h,actionContexts:p,stop:function(){c.stop(),f.stop()}}}(a,t,location,c,d,l,f,(function(){return Zo(n,r,e)}),s),h=p.viewContexts,v=p.urlContexts,g=p.actionContexts,m=p.foregroundContexts,_=p.addAction;!function(t,e){t.subscribe(Cn,(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=dt(i.startTime),a={date:o.timeStamp,long_task:{id:z(),duration:et(i.duration)},type:ke.LONG_TASK};t.notify(Dn,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(a,c),wa(a,t);var y=na(a,t,location,f,l,m,e,i),w=y.addTiming,S=y.startView,E=Qo(a,m).addError;ma(a,t,c),zi(a,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);return{application:{id:t},session:{id:u.id},userAction:c?{id:c}: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,c,h,g,v);return{addAction:_,addError:E,addTiming:w,configuration:t,lifeCycle:a,viewContexts:h,session:c,startView:S,stopSession:function(){c.expire()},getInternalContext:x.get}}),ju);$u=r(),Hu=qu,Vu=$u[Fu="DATAFLUX_RUM"],$u[Fu]=Hu,Vu&&Vu.q&&g(Vu.q,(function(t){t()}))}();
|