!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.RumSDK=n():t.RumSDK=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./dist/",n(n.s=32)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.history=t.location=t.document=t.global=void 0,t.global=window,t.document=window.document,t.location=window.location,t.history=window.history,t.VERSION="cdn-0.1.2"},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function e(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Shell=t.Reporter=t.Context=t.Client=void 0;var i=n(9);t.Client=i.default;var a=n(11);t.Context=a.default;var u=n(36);t.Reporter=u.default;var c=n(38);t.Shell=c.default,o(n(39),t),o(n(10),t),o(n(40),t),o(n(41),t),o(n(42),t),o(n(7),t),o(n(43),t),o(n(44),t),o(n(14),t),o(n(15),t),o(n(2),t),o(n(45),t),o(n(16),t),o(n(46),t),o(n(12),t),o(n(13),t)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return r(e)===t}Object.defineProperty(t,"__esModule",{value:!0}),t.isZero=t.isObject=t.isNull=t.isNumber=t.isBoolean=t.isRegExp=t.isArray=t.isToString=t.isString=t.isFunction=t.isTypeof=void 0,t.isTypeof=o;var i=function e(t){return"function"==typeof t};function a(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function u(){for(var e=0;ee&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,o),!0),s}function t(){}function n(){}function r(){}function a(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,i(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(i(c={},f,(function(){return this})),c),d=r.prototype=t.prototype=Object.create(v);return n.prototype=r,i(d,"constructor",r),i(r,"constructor",n),n.displayName="GeneratorFunction",i(r,l,"GeneratorFunction"),i(d),i(d,l,"Generator"),i(d,f,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(o=function t(){return{w:e,m:a}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function e(t,n,r,a){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n,r=0;ru.length?void 0:"//".concat(u[0],"-sdk.rum.aliyuncs.com/config/").concat(a||"cn-hangzhou","/").concat(u[1],"?t=").concat(Date.now())}}},{key:"parseConfig",value:function e(t){try{return"v2"===this.version?S(JSON.parse(t.instanceConfigs[0].config)):t}catch(e){return t}}}])}(g.ConfigManager);function T(e,t){var n,r=!(2=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=n[0]&&ru&&(0e-1||arguments.length<=e-1?void 0:arguments[e-1])>(0>e||arguments.length<=e?void 0:arguments[e]))return!1;return!0}function h(e){var n=!!(1b||(0,f.isZero)(i)&&0=n[1])&&delete e[t]})),e}t.delBadMea=g;var O=["responseStart","requestStart","connectEnd","domainLookupEnd","fetchStart","workerStart","redirectEnd","startTime"],w=function(e){for(var t,n=1=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function e(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function t(){n=n.call(e)},n:function e(){var t=n.next();return u=t.done,t},e:function e(t){c=!0,a=t},f:function e(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&this.views.splice(n,1),this.views.push(t)}},{key:"removeView",value:function e(t){this.views=this.views.filter((function(e){return e.id!==t}))}},{key:"getRumEvent",value:function e(){return this.rumEvent}},{key:"setRumEvent",value:function e(t){this.rumEvent=t}}])}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyProperties=void 0;var r=n(2);function o(e){if((0,r.isObject)(e)){var t=Object.assign({},e);Object.keys(t).forEach((function(e){var n=t[e];if(e.length>50){var o=e.substring(0,50);t[o]=n,delete t[e],e=o}(0,r.isString)(n)||(0,r.isNumber)(n)?(0,r.isString)(n)&&n.length>2e3&&(t[e]=n.substring(0,2e3)):delete t[e]}));var n=Object.keys(t);if(n.length)return n.length>20&&n.forEach((function(e,n){n>19&&delete t[e]})),t}}t.verifyProperties=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrlParams=void 0;var r=function e(t){if(0===t.length)return"";try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t.replace(/\+/g," ").replace(/%20/g," ").replace(/%2F/g,"/").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/%3F/g,"?")}},o=function e(t){if(0===t.length)return"";var n=t.indexOf("#"),r=n>=0?t.slice(0,n):t,o=r.indexOf("?");return-1===o?"":r.slice(o+1)};function i(e){if("string"!=typeof e||!e.trim())return{};var t={},n=o(e);if(!n)return t;for(var i=n.split("&"),a=0;a3&&void 0!==arguments[3]&&arguments[3],i=e[t],a=function t(){for(var a=o?this:e,u=arguments.length,c=new Array(u),s=0;s0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n="",r=0;r2?n-2:0),i=2;i2&&"/"===e[0]&&"/"===e[e.length-1]?new RegExp(e.substr(1,e.length-2)):e}function y(e){if("string"!=typeof e)throw new TypeError("input must be a string");if(e.length>2&&"/"===e[0]){var t=e.lastIndexOf("/");if(t>0){var n=e.substring(1,t),r=e.substring(t+1);return new RegExp(n,r)}return new RegExp(e.substring(1,e.length-1))}return new RegExp(e)}t.interceptFunction=i,t.restoreFunction=a,t.generateGUID=u,t.generateTraceId=c,t.generateSpanId=s,t.generateEventId=f,t.debounce=l,t.delay=p,t.getType=v,t.transStrToReg=d,t.parseRegExpString=y},function(e,t,n){"use strict";function r(e,t){for(var n=0;n1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;return e.some((function(e){try{if("function"==typeof e)return e(t,r);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return n?(0,f.startsWith)(t,e):e===t}catch(e){}return!1}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];try{(0,s.isArray)(t)||(t=[t]);var n=[/^(https?:)?\/\/.*rum|retcode|log-global|log\.aliyuncs\.com/,/^(https?:)?\/\/.*\.mmstat\.com/,/^(https?:)?\/\/.*hm\.baidu\.com/,/^(https?:)?\/\/.*google-analytics\.com/,/data:(.+?)(;base64)?,(.+)$/].concat(r(t));return v(n,e)}catch(e){return!1}}function y(e){if(p(e))return e;var t;switch(e.match_exp){case"equals":t=function t(n){return n===e.match};break;case"not_equals":t=function t(n){return n!==e.match};break;case"regex":t=(0,l.parseRegExpString)(e.match);break;case"includes":t=function t(n){return n.includes(e.match)};break;case"starts_with":default:t=function t(n){return(0,f.startsWith)(n,e.match)}}return t}t.isMatchOption=p,t.matchList=v,t.urlMatch=d,t.parseRule2Match=y},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n,r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);ne&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,o),!0),s}function t(){}function n(){}function r(){}function a(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,i(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(i(c={},f,(function(){return this})),c),d=r.prototype=t.prototype=Object.create(v);return n.prototype=r,i(d,"constructor",r),i(r,"constructor",n),n.displayName="GeneratorFunction",i(r,l,"GeneratorFunction"),i(d),i(d,l,"Generator"),i(d,f,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(o=function t(){return{w:e,m:a}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function e(t,n,r,a){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function e(){};return{s:o,n:function t(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function e(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function t(){n=n.call(e)},n:function e(){var t=n.next();return a=t.done,t},e:function e(t){c=!0,i=t},f:function e(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,o),!0),s}function t(){}function n(){}function r(){}function a(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,i(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(i(c={},f,(function(){return this})),c),d=r.prototype=t.prototype=Object.create(v);return n.prototype=r,i(d,"constructor",r),i(r,"constructor",n),n.displayName="GeneratorFunction",i(r,l,"GeneratorFunction"),i(d),i(d,l,"Generator"),i(d,f,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(o=function t(){return{w:e,m:a}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function e(t,n,r,a){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function a(e){return f(e)||s(e)||c(e)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function f(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(e){return v(e)||p(e)||l(e)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function p(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function v(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t.REPORT_CONTINUOUS_FRAME_TIMESHOLD){var u=Object.assign({},t.loafSeqCache);t.loafTimer=setTimeout((function(){try{t.sendLongTask(u),t.loafTimer=null}catch(e){}}),200)}}))}},{key:"clearLoafTimer",value:function(){this.loafTimer&&(clearTimeout(this.loafTimer),this.loafTimer=null)}},{key:"ltHandler",value:function(e){var t=this;e.forEach((function(e){return t.ltPerfCache.push(e)}))}},{key:"initRafObserver",value:function(){var e,t=this,n=(0,w.getCurrentTime)(),r=function(){var o=(0,w.getCurrentTime)();if(o-n>=t.LONG_FRAME_THRESHOLD)e?(e.frameCount++,e.endTime=o):e={view:(0,S.getCurView)(t.ctx),source:"rAF",startTime:n,endTime:o,frameCount:1,attribution:[]};else if(e&&e.endTime-e.startTime>=t.LONG_FRAME_THRESHOLD){var i=Object.assign({},e),a=setTimeout((function(){try{t.mergeLtPerf(i),t.rafTimerMap.delete(n)}catch(e){}}),200);t.rafTimerMap.set(n,a),e=null}n=o,t.rafRequestId=j(r)};j(r)}},{key:"mergeLtPerf",value:function(e){var t,n=-1,r=c(this.ltPerfCache.entries());try{for(r.s();!(t=r.n()).done;){var i=o(t.value,2),a=i[0],u=i[1],f=u.startTime,l=u.attribution,p=void 0===l?[]:l,v=(0,w.getCurrentTime)(f);if(e.endTimel&&(p=o);var v=Object.assign(Object.assign(Object.assign({},f),n),{event_type:O.RumEventType.LONG_TASK,type:"fps",source:r,timestamp:p,duration:c,fps:s,snapshots:JSON.stringify(u)});this.sendEvent(v)}},{key:"loafSequenceFilter",value:function(e){var t=e.source,n=e.attribution;return"rAF"===t&&(n=n.filter((function(e){return"unknown"!==e.name}))),5<=n.length&&(n=n.sort((function(e,t){return t.duration-e.duration})).slice(0,5)),e.attribution=n,e}},{key:"clearLoafObserver",value:function(){this.loafPerfObserver&&(this.loafPerfObserver.disconnect(),this.loafPerfObserver=null),this.clearLoafTimer(),this.loafSeqCache=null}},{key:"clearLtObserver",value:function(){this.ltPerfObserver&&(this.ltPerfObserver.disconnect(),this.ltPerfObserver=null),this.ltPerfCache=null}},{key:"clearRafObserver",value:function(){this.rafRequestId&&(_(this.rafRequestId),this.rafRequestId=null),this.rafTimerMap.forEach((function(e){return clearTimeout(e)})),this.rafTimerMap.clear()}},{key:"destroy",value:function(){this.clearLoafObserver(),this.clearLtObserver(),this.clearRafObserver()}}])}();t.default=C},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n,r=0;re&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,o),!0),s}function t(){}function n(){}function r(){}function a(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,i(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(i(c={},f,(function(){return this})),c),d=r.prototype=t.prototype=Object.create(v);return n.prototype=r,i(d,"constructor",r),i(r,"constructor",n),n.displayName="GeneratorFunction",i(r,l,"GeneratorFunction"),i(d),i(d,l,"Generator"),i(d,f,(function(){return this})),i(d,"toString",(function(){return"[object Generator]"})),(o=function t(){return{w:e,m:a}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function e(t,n,r,a){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n,r=0;rnew Blob([u]).size,e.a(2,fetch(i.endpoint,{method:"POST",headers:{"Content-Type":"text/plain"},body:u,keepalive:c}))}}),e)})))}}])}(g.Reporter);t.default=w},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return s(e)||c(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt||1y.ONE_DAY)&&(n=y.ONE_DAY),(!(0,y.isNumber)(r)||r>y.ONE_HOUR||r<10*y.ONE_MINUTE)&&(r=30*y.ONE_MINUTE),i!==C&&i!==_&&i!==k&&(i=j),i===j&&(i=_),i!==_||E||(i=C),i!==C||T||(i=k),{sampleRate:t,maxDuration:n,overtime:r,storage:i,domain:a}}},{key:"getBaseEvent",value:function(){return{timestamp:(0,h.getCurrentTime)(),session_id:this.getSessionId(),event_id:this.getEventId(),view:this.ctx?(0,m.getCurView)(this.ctx):void 0,times:1}}},{key:"setItem",value:function(e,t){var n=2e&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,o),!0),s}function t(){}function n(){}function r(){}function o(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,a(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(a(c={},f,(function(){return this})),c),d=r.prototype=t.prototype=Object.create(v);return n.prototype=r,a(d,"constructor",r),a(r,"constructor",n),n.displayName="GeneratorFunction",a(r,l,"GeneratorFunction"),a(d),a(d,l,"Generator"),a(d,f,(function(){return this})),a(d,"toString",(function(){return"[object Generator]"})),(i=function t(){return{w:e,m:o}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(a=function e(t,n,r,i){function u(e,n){a(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n,r=0;r=arguments.length?void 0:arguments[0],1>=arguments.length?void 0:arguments[1])))}else t.setConfig(0>=arguments.length?void 0:arguments[0])}},{key:"getCollector",value:function e(t){return this.client.getCollectors().find((function(e){return e.name===t}))}}])}(O.Shell);t.ArmsRum=L,t.default=new L(I.global.__rum)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n1?o-1:0),a=1;a3?(o=d===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&vr||r>d)&&(i[4]=n,i[5]=r,p.n=d,a=0))}if(o||n>1)return c;throw l=!0,r}return function(o,f,d){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&v(f,d),a=f,u=d;(t=a<2?e:u)||!l;){i||(a?a<3?(a>1&&(p.n=-1),v(a,u)):p.n=u:p.v=u);try{if(s=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(l=p.n<0)?u:n.call(r,p))!==c)break}catch(t){i=e,a=1,u=t}finally{s=1}}return{value:t,done:l}}}(n,o,a),!0),f}var c={};function s(){}function f(){}function l(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(i(t={},r,(function(){return this})),t),v=l.prototype=s.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,i(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return f.prototype=l,i(v,"constructor",l),i(l,"constructor",f),f.displayName="GeneratorFunction",i(l,a,"GeneratorFunction"),i(v),i(v,a,"Generator"),i(v,r,(function(){return this})),i(v,"toString",(function(){return"[object Generator]"})),(o=function e(){return{w:u,m:d}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function e(t,n,r,a){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n1e4)&&(t.flushTime=3e3),(!t.maxEventCount||t.maxEventCount<1||t.maxEventCount>100)&&(t.maxEventCount=20),t}},{key:"report",value:function e(t){var n=this;this.ctx=t,this._init||(this.init(t),this._init=!0),clearTimeout(this.timer),this.pushToQueue();var r=this.getReportCfg();this.eventQueue.length>=r.maxEventCount?this.flushEventQueue():this.timer=setTimeout((function(){n.flushEventQueue()}),r.flushTime)}},{key:"pushToQueue",value:function e(){var t=this.ctx,n=this.eventQueue,r=t.getRumEvent();if(r.event_type===p.RumEventType.EXCEPTION){var o=r.message,i=r.stack,a=(0,v.getErrorID)({message:o,stack:i}),u=this.eventQueue.find((function(e){if(e.event_type===p.RumEventType.EXCEPTION){var t=e.message,n=e.stack;return(0,v.getErrorID)({message:t,stack:n})===a}}));if(u)return void u.times++}if(r.event_type===p.RumEventType.ACTION){var c=r.target_name,s=this.eventQueue.find((function(e){if(e.event_type===p.RumEventType.ACTION)return c===e.target_name}));if(s)return void s.times++}n.push(r)}},{key:"flushEventQueue",value:function e(){var t=this.ctx,n=this.eventQueue;if(n.length){var r=t.getViews(),o=r[r.length-1];r.forEach((function(e){var t;e.id===o.id&&n.filter((function(t){var n;return(null===(n=t.view)||void 0===n?void 0:n.id)===e.id})).forEach((function(e){delete e.view}))}));var i=t.session,a;(!i||i.getSampled())&&this.mergeEvent(t,n,o),this.eventQueue=[]}}},{key:"mergeEvent",value:function e(t,n,r){for(var o=t.getConfig(),i=t.session,a=i.getSessionId(),u=0;u1&&void 0!==arguments[1]?arguments[1]:0,r,i,a;return l(this,void 0,void 0,o().m((function e(){var u=this,c,s,f,l;return o().w((function(e){for(;;)switch(e.p=e.n){case 0:return c=null===(r=this.ctx.getConfig())||void 0===r?void 0:r.reportConfig,s=null!==(i=null==c?void 0:c.maxRetryCount)&&void 0!==i?i:0,f=null!==(a=null==c?void 0:c.retryDelay)&&void 0!==a?a:3e3,e.p=1,t._retry=n,e.n=2,this.request(this.ctx,t);case 2:e.n=4;break;case 3:e.p=3,l=e.v,n3?(o=d===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&vr||r>d)&&(i[4]=n,i[5]=r,p.n=d,a=0))}if(o||n>1)return c;throw l=!0,r}return function(o,f,d){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&v(f,d),a=f,u=d;(t=a<2?e:u)||!l;){i||(a?a<3?(a>1&&(p.n=-1),v(a,u)):p.n=u:p.v=u);try{if(s=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(l=p.n<0)?u:n.call(r,p))!==c)break}catch(t){i=e,a=1,u=t}finally{s=1}}return{value:t,done:l}}}(n,o,a),!0),f}var c={};function s(){}function f(){}function l(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(i(t={},r,(function(){return this})),t),v=l.prototype=s.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,i(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return f.prototype=l,i(v,"constructor",l),i(l,"constructor",f),f.displayName="GeneratorFunction",i(l,a,"GeneratorFunction"),i(v),i(v,a,"Generator"),i(v,r,(function(){return this})),i(v,"toString",(function(){return"[object Generator]"})),(o=function e(){return{w:u,m:d}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function e(t,n,r,a){function u(e,n){i(t,e,(function(t){return this._invoke(e,n,t)}))}n?o?o(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e)return e;var r=e.toString(),o=r.indexOf(".");r=-1!==o?r.substring(0,t+o+1):r.substring(0);var i=parseFloat(r);return i>=n?i:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=t.performDraw=t.ONE_DAY=t.ONE_HOUR=t.ONE_MINUTE=t.ONE_SECOND=void 0,t.ONE_SECOND=1e3,t.ONE_MINUTE=60*t.ONE_SECOND,t.ONE_HOUR=60*t.ONE_MINUTE,t.ONE_DAY=24*t.ONE_HOUR,t.performDraw=r,t.formatNumber=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTracingOptions=t.makeTracingHeaders=t.isTraceOption=void 0;var r=n(16),o=n(2);function i(e){return e&&(0,r.isMatchOption)(e.match)&&(0,o.isArray)(e.propagatorTypes)}function a(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a={},u=n?"1":"0";return r.includes("sw8")&&(r=["sw8"]),(0,o.isArray)(r)||(r=[r]),r.forEach((function(n){switch(n){case"jaeger":a["uber-trace-id"]="".concat(e,":").concat(t,":0:").concat(u);break;case"b3":a.b3="".concat(e,"-").concat(t,"-").concat(u);break;case"b3multi":a["X-B3-TraceId"]=e,a["X-B3-SpanId"]=t,a["X-B3-Sampled"]=u;break;case"sw8":if((0,o.isFunction)(btoa)){var r=btoa(e),c=btoa(t),s=btoa(i.appId),f=btoa(i.appVersion),l=btoa(i.viewName),p=btoa(i.host);a.sw8="".concat(u,"-").concat(r,"-").concat(c,"-",0,"-").concat(s,"-").concat(f,"-").concat(l,"-").concat(p)}break;case"tracecontext":default:a.traceparent="00-".concat(e,"-").concat(t,"-0").concat(u),i.tracestate&&(a.tracestate=i.tracestate)}})),i.baggage&&(a.baggage=i.baggage),a}function u(e){var t=["tracecontext"];if((0,o.isBoolean)(e)||!e)return{enable:!!e,sample:100,propagatorTypes:t,allowedUrls:[],tracestate:!0,baggage:!1};var n=e.enable,a=void 0===n||n,u=e.sample,c=void 0===u?100:u,s=e.propagatorTypes,f=void 0===s?t:s,l=e.allowedUrls,p=void 0===l?[]:l,v=e.tracestate,d=void 0===v||v,y=e.baggage,h=void 0!==y&&y,m=[];return(0,o.isArray)(p)&&p.length&&p.forEach((function(e){(0,r.isMatchOption)(e)?m.push({match:e,propagatorTypes:f}):i(e)&&m.push(e)})),{enable:!(0,o.isBoolean)(a)||a,sample:(0,o.isNumber)(c)?c:100,propagatorTypes:f,allowedUrls:m,tracestate:d,baggage:h}}t.isTraceOption=i,t.makeTracingHeaders=a,t.parseTracingOptions=u},function(e,t,n){"use strict";function r(e,t){return c(e)||u(e,t)||i(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,O=/\((\S*)(?::(\d+))(?::(\d+))\)/,w=function(e){var t=b.exec(e);if(t){var n=r(t,4),o=n[1],i=n[2],a=n[3];return C(o,_,+i,+a)}var u=g.exec(e);if(u){var c;if(u[2]&&0===u[2].indexOf("eval")){var s=O.exec(u[2]);s&&(u[2]=s[1],u[3]=s[2],u[4]=s[3])}var f,l=r(j(u[1]||_,u[2]),2),p=l[0],v=l[1];return C(v,p,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}return null},S=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,E=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,T=function(e){var t=S.exec(e);if(t){var n;if(t[3]&&-1 eval")){var o=E.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}var i=t[3],a=t[1]||_,u,c=r(j(a,i),2);return a=c[0],i=c[1],C(i,a,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}return null},j=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1===e.indexOf("@")?_:e.split("@")[0],n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},_="UNKNOWN_FUNCTION",C=function(e,t,n,r){var o={filename:e,function:""===t?_:t};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}},function(e,t,n){"use strict";function r(){function e(e,n,r,i){var a=n&&n.prototype instanceof t?n:t,s=Object.create(a.prototype);return o(s,"_invoke",function(e,t,n){function r(e,t){for(i=e,a=t,c=0;!l&&s&&!n&&ce&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,i),!0),s}function t(){}function n(){}function i(){}function a(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,o(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(o(c={},f,(function(){return this})),c),d=i.prototype=t.prototype=Object.create(v);return n.prototype=i,o(d,"constructor",i),o(i,"constructor",n),n.displayName="GeneratorFunction",o(i,l,"GeneratorFunction"),o(d),o(d,l,"Generator"),o(d,f,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(r=function t(){return{w:e,m:a}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(o=function e(t,n,r,a){function u(e,n){o(t,e,(function(t){return this._invoke(e,n,t)}))}n?i?i(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}var i=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,u)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.blankCheckWithSingleMethod=t.blankCheck=t.testerValidator=void 0;var u=n(49),c=n(51),s=function e(t){return"function"==typeof t||!("string"!=typeof t)&&["HAS_CONTENT","SCREENSHOT","SAMPLE"].includes(t)};t.testerValidator=s;var f=function e(n,o,a){return i(void 0,void 0,void 0,r().m((function e(){var i,u,c,s,f,l;return r().w((function(e){for(;;)switch(e.n){case 0:if("function"!=typeof n){e.n=2;break}return e.n=1,n(o);case 1:return i=e.v,u=i.hasContent,c=i.message,s=void 0===c?"":c,f=i.snapshot,l=void 0===f?{}:f,e.a(2,{hasContent:u,message:s,snapshot:Object.assign(Object.assign({},l),{method:"CUSTOM"})});case 2:if("string"!=typeof n){e.n=4;break}return e.n=3,(0,t.blankCheckWithSingleMethod)(n,o,a);case 3:return e.a(2,e.v);case 4:return e.a(2)}}),e)})))};t.blankCheck=f;var l=function e(t,n,o){return i(void 0,void 0,void 0,r().m((function e(){var i,s,f,l,v,d;return r().w((function(e){for(;;)switch(e.n){case 0:if("HAS_CONTENT"!==t){e.n=1;break}return e.a(2,{hasContent:null!=n&&n.textContent,snapshot:{method:t}});case 1:if("SCREENSHOT"!==t){e.n=3;break}return e.n=2,(0,u.performScreenshotCheck)(n,o);case 2:return i=e.v,s=i.result,f=a(i,["result"]),e.a(2,{hasContent:s,message:s?"":p(f),snapshot:Object.assign({method:t},f)});case 3:if("SAMPLE"!==t){e.n=4;break}return l=(0,c.performSampleCheck)(n,o),v=l.result,d=a(l,["result"]),e.a(2,{hasContent:v,message:v?"":p(d),snapshot:Object.assign({method:t},d)});case 4:return e.a(2)}}),e)})))};t.blankCheckWithSingleMethod=l;var p=function e(t){return"The white screen occurrence rate is ".concat(t.rate,", exceeding the threshold of ").concat(t.threshold,". A total of ").concat(t.checkPoints," detection points were set, and ").concat(t.whitePixels," of them were hit.")}},function(e,t,n){"use strict";function r(){function e(e,n,r,i){var a=n&&n.prototype instanceof t?n:t,s=Object.create(a.prototype);return o(s,"_invoke",function(e,t,n){function r(e,t){for(i=e,a=t,c=0;!l&&s&&!n&&ce&&oe||r[0]>t||t>d)&&(r[4]=e,r[5]=t,v.n=d,i=0))}if(n||1i?u:a)||!l;){o||(i?3>i?(1i&&(i=0)}else 1===i&&(c=o.return)&&c.call(o),2>i&&(a=TypeError("The iterator does not provide a '"+n+"' method"),i=1);o=u}else if((c=(l=0>v.n)?a:e.call(t,v))!==p)break}catch(e){o=u,i=1,a=e}finally{s=1}}return{value:c,done:l}}}(e,r,i),!0),s}function t(){}function n(){}function i(){}function a(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,o(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var u,c,s="function"==typeof Symbol?Symbol:{},f=s.iterator||"@@iterator",l=s.toStringTag||"@@toStringTag",p={};c=Object.getPrototypeOf;var v=[][f]?c(c([][f]())):(o(c={},f,(function(){return this})),c),d=i.prototype=t.prototype=Object.create(v);return n.prototype=i,o(d,"constructor",i),o(i,"constructor",n),n.displayName="GeneratorFunction",o(i,l,"GeneratorFunction"),o(d),o(d,l,"Generator"),o(d,f,(function(){return this})),o(d,"toString",(function(){return"[object Generator]"})),(r=function t(){return{w:e,m:a}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(o=function e(t,n,r,a){function u(e,n){o(t,e,(function(t){return this._invoke(e,n,t)}))}n?i?i(t,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):t[n]=r:(u("next",0),u("throw",1),u("return",2))})(e,t,n,r)}var i=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,u)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.performScreenshotCheck=void 0;var a=n(50),u=n(0),c=function e(t){var n=1e.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(n.globalAlpha=r)}},{key:"renderNodeBackgroundAndBorders",value:function(e){var t=e.bounds,n=e.styles,r=n.backgroundColor,o=n.backgroundImage,i=parseInt(n.borderWidth),a=E.getPoints(t);if("none"!==o){var u=this.options.fillColor;this.drawFillRect(a,u)}else"0"!==r.slice(5,-1).split(", ")[3]&&this.drawFillRect(a,r);if(i){var c=n.borderColor;this.drawBorderRect(a,i,c)}}},{key:"renderNodeContent",value:function(e){var t=this;("I"===e.element.tagName||e instanceof C||e instanceof I||e instanceof x||e instanceof R||e instanceof N)&&this.renderReplacedElement(e),e instanceof P&&this.renderText(new j(e.value,e),e.styles),e instanceof k&&this.renderInput(e),e.textNodes.length&&e.textNodes.map((function(n){return t.renderText(n,e.styles)}))}},{key:"renderText",value:function(e,t){var n=this.ctx2d;n.save(),n.font="".concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily),n.fillStyle=t.color;try{var r=n.measureText("M"),o=parseFloat(t.fontSize)||16,i=parseFloat(t.lineHeight)||1.2*o,a=e.bounds.height>1.5*i,u=["pre","pre-wrap","pre-line"].includes(t.whiteSpace),c=u?e.text:e.text.replace(/\n/g," ");if(a){var s=e.bounds.top+r.fontBoundingBoxAscent;if(u&&c.includes("\n")){var f;c.split("\n").forEach((function(t){n.fillText(t,e.bounds.left,s),s+=i}))}else{var l=n.measureText(c.trim()).width,p=Math.ceil(l/e.bounds.width);if(1>=p)n.fillText(c,e.bounds.left,s);else for(var v=Math.ceil(c.length/p),d=0;dt.bottom||0>t.right||t.left>=r||t.top>=n}catch(e){}},F=function(e){var t=1s||"none"!==u)&&(o.stackingFlag=!0),t.elements.push(o),e.shadowRoot?H(e.shadowRoot,o,n):"TEXTAREA"!==e.tagName&&"svg"!==e.tagName&&"SELECT"!==e.tagName&&H(e,o,n)}}))},D=function(e){return q(e)?new C(e):$(e)?new x(e):z(e)?new R(e):X(e)?new N(e):Z(e)?new P(e):J(e)?new k(e):K(e)?new I(e):new _(e)},B=function(e){var t=new T(e);return G(e,t),t},G=function(e,t){e.elements.map((function(e){if(e.stackingFlag){var n=new T(e),r=e.styles.position,o=+e.styles.zIndex;"static"!==r&&0o?t.negativeZIndex.push(n):t.zeroOrAutoZIndexOrTransformedOrOpacity.push(n),G(e,n)}else 0<=e.styles.display.indexOf("inline")?t.inlineLevel.push(e):t.nonInlineLevel.push(e),G(e,t)}))},V=function(e){return 3===e.nodeType},W=function(e){return 8===e.nodeType},q=function(e){return"IMG"===e.tagName},z=function(e){return"VIDEO"===e.tagName},$=function(e){return"CANVAS"===e.tagName},X=function(e){return"svg"===e.tagName},Z=function(e){return"SELECT"===e.tagName},J=function(e){return"INPUT"===e.tagName},K=function(e){return"IFRAME"===e.tagName}},function(e,t,n){"use strict";function r(e){return u(e)||a(e)||i(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?r="back-forward-cache":n&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},v=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},d=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},h=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},m=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},b=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},O=function(e){"hidden"===document.visibilityState&&b>-1&&(b="visibilitychange"===e.type?e.timeStamp:0,S())},w=function(){addEventListener("visibilitychange",O,!0),addEventListener("prerenderingchange",O,!0)},S=function(){removeEventListener("visibilitychange",O,!0),removeEventListener("prerenderingchange",O,!0)},E=function(){return b<0&&(b=g(),w(),s((function(){setTimeout((function(){b=g(),w()}),0)}))),{get firstHiddenTime(){return b}}},T=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},j=[1800,3e3],_=function(e,t){t=t||{},T((function(){var n,r=E(),o=p("FCP"),i=v("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTimer.value&&(r.value=o,r.entries=i,n())},u=v("layout-shift",a);u&&(n=d(e,r,C,t.reportAllChanges),h((function(){a(u.takeRecords()),n(!0)})),s((function(){o=0,r=p("CLS",0),n=d(e,r,C,t.reportAllChanges),y((function(){return n()}))})),setTimeout(n,0))})))},P={passive:!0,capture:!0},x=new Date,R=function(e,t){r||(r=t,o=e,i=new Date,A(removeEventListener),N())},N=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){R(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,P),removeEventListener("pointercancel",r,P)};addEventListener("pointerup",n,P),addEventListener("pointercancel",r,P)}(t,e):R(t,e)}},A=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,I,P)}))},M=[100,300],F=function(e,t){t=t||{},T((function(){var n,i=E(),u=p("FID"),c=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};$[r.id]=r,z.push(r)}z.sort((function(e,t){return t.latency-e.latency})),z.splice(10).forEach((function(e){delete $[e.id]}))}},Z=function(e,t){t=t||{},T((function(){var n;G();var r,o=p("INP"),i=function(e){e.forEach((function(e){e.interactionId&&X(e),"first-input"===e.entryType&&!z.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&X(e)}));var t,n=(t=Math.min(z.length-1,Math.floor(q()/50)),z[t]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())},a=v("event",i,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=d(e,o,V,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),h((function(){i(a.takeRecords()),o.value<0&&q()>0&&(o.value=0,o.entries=[]),r(!0)})),s((function(){z=[],W=B(),o=p("INP"),r=d(e,o,V,t.reportAllChanges)})))}))},J=[2500,4e3],K={},Q=function(e,t){t=t||{},T((function(){var n,r=E(),o=p("LCP"),i=function(e){var t=e[e.length-1];t&&t.startTimeperformance.now())return;n.value=Math.max(i-l(),0),n.entries=[o],r(!0),s((function(){n=p("TTFB",0),(r=d(e,n,Y,t.reportAllChanges))(!0)}))}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reviseApiAttr=t.ApiType=void 0;var r=n(1);function o(e){if((0,r.isObject)(e)){var t={};(0,r.isString)(e.name)&&(t.name=e.name.substring(0,1e3)),(0,r.isString)(e.message)&&(t.message=e.message.substring(0,1e3)),(0,r.isNumber)(e.success)&&-1<=e.success&&1>=e.success&&(t.success=e.success),(0,r.isNumber)(e.duration)&&0<=e.duration&&(t.duration=e.duration),(0,r.isString)(e.status_code)&&(t.status_code=e.status_code.substring(0,100)),(0,r.isNumber)(e.status_code)&&(t.status_code=e.status_code),(0,r.isString)(e.snapshots)&&(t.snapshots=e.snapshots.substring(0,5e3)),(0,r.isString)(e.trace_id)&&(t.trace_id=e.trace_id.substring(0,100));var n=(0,r.verifyProperties)(e.properties);return n&&(t.properties=n),t}}t.ApiType={XHR:"xmlhttprequest",FETCH:"fetch"},t.reviseApiAttr=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCookie=t.setCookie=void 0;var r=n(0);function o(e,t,n,o){var i="";if(n){var a=new Date;a.setTime(a.getTime()+n),i="; expires="+a.toUTCString()}o||(o=r.document.domain),r.document.cookie=e+"="+(t||"")+i+"; path=/; domain=".concat(o)}function i(e){var t,n="; ".concat(r.document.cookie).split("; ".concat(e,"="));return 2===n.length?decodeURIComponent(n.pop().split(";").shift()):null}t.setCookie=o,t.getCookie=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"==n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserReporter=t.SessionProcessor=t.DefaultProcessor=t.WebVitalsCollector=t.PerfCollector=t.PvCollector=t.StaticResourceCollector=t.ApiCollector=t.LongTaskCollector=t.WhiteScreenCollector=t.ExceptionCollector=t.ClickCollector=void 0;var i=n(25);Object.defineProperty(t,"ClickCollector",{enumerable:!0,get:function(){return i.default}});var a=n(18);Object.defineProperty(t,"ExceptionCollector",{enumerable:!0,get:function(){return a.default}});var u=n(19);Object.defineProperty(t,"WhiteScreenCollector",{enumerable:!0,get:function(){return u.default}});var c=n(27);Object.defineProperty(t,"LongTaskCollector",{enumerable:!0,get:function(){return c.default}});var s=n(23);Object.defineProperty(t,"ApiCollector",{enumerable:!0,get:function(){return s.default}});var f=n(24);Object.defineProperty(t,"StaticResourceCollector",{enumerable:!0,get:function(){return f.default}});var l=n(17);Object.defineProperty(t,"PvCollector",{enumerable:!0,get:function(){return l.default}});var p=n(21);Object.defineProperty(t,"PerfCollector",{enumerable:!0,get:function(){return p.default}});var v=n(22);Object.defineProperty(t,"WebVitalsCollector",{enumerable:!0,get:function(){return v.default}});var d=n(28);Object.defineProperty(t,"DefaultProcessor",{enumerable:!0,get:function(){return d.default}});var y=n(29);Object.defineProperty(t,"SessionProcessor",{enumerable:!0,get:function(){return y.default}});var h=n(30);Object.defineProperty(t,"BrowserReporter",{enumerable:!0,get:function(){return h.default}}),o(n(4),t),o(n(26),t),o(n(0),t),o(n(57),t),o(n(31),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}])}));