1/*! For license information please see 43.0e853bda.chunk.js.LICENSE.txt */ 2(this["webpackJsonponline-banking-app"]=this["webpackJsonponline-banking-app"]||[]).push([[43],{1414:function(e,t,n){var r,o,i;i=function(){var e,t,n=document,r=n.getElementsByTagName("head")[0],o={},i={},a={},u={};function s(e,t){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return 1}function c(e,t){s(e,(function(e){return t(e),1}))}function l(t,n,r){t=t.push?t:[t];var p=n&&n.call,d=p?n:r,y=p?t.join(""):n,h=t.length;function m(e){return e.call?e():o[e]}function v(){if(!--h)for(var e in o[y]=1,d&&d(),a)s(e.split("|"),m)&&!c(a[e],m)&&(a[e]=[])}return setTimeout((function(){c(t,(function t(n,r){return null===n?v():(r||/^https?:\/\//.test(n)||!e||(n=-1===n.indexOf(".js")?e+n+".js":e+n),u[n]?(y&&(i[y]=1),2==u[n]?v():setTimeout((function(){t(n,!0)}),0)):(u[n]=1,y&&(i[y]=1),void f(n,v)))}))}),0),l}function f(e,o){var i,a=n.createElement("script");a.onload=a.onerror=a.onreadystatechange=function(){a.readyState&&!/^c|loade/.test(a.readyState)||i||(a.onload=a.onreadystatechange=null,i=1,u[e]=2,o())},a.async=1,a.src=t?e+(-1===e.indexOf("?")?"?":"&")+t:e,r.insertBefore(a,r.lastChild)}return l.get=f,l.order=function(e,t,n){!function r(o){o=e.shift(),e.length?l(o,r):l(o,t,n)}()},l.path=function(t){e=t},l.urlArgs=function(e){t=e},l.ready=function(e,t,n){e=e.push?e:[e];var r,i=[];return!c(e,(function(e){o[e]||i.push(e)}))&&s(e,(function(e){return o[e]}))?t():(r=e.join("|"),a[r]=a[r]||[],a[r].push(t),n&&n(i)),l},l.done=function(e){l([null],e)},l},e.exports?e.exports=i():void 0===(o="function"===typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},1528:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBiocatch=function(){var e=(0,r.useContext)(o.BiocatchReactContext);if(!e.client)throw new Error("[@dfh-digital-insight/biocatch-react-sdk] useBiocatch must be used inside <BiocatchProvider>.");return e};var r=n(0),o=n(1708)},1706:function(e,t,n){"use strict";var r=n(1527).default,o=n(1587).default,i=n(1876).default,a=n(1877).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BiocatchClient=void 0,t.isValidCsid=l;var u=n(1878),s=n(1707),c=function(){function e(){i(this,e),this.adapter=null,this.starting=null,this.started=!1,this.rawSdk=null,this.source=null,this.debug=!1,this.startConfig=null}return a(e,[{key:"isActive",value:function(){return this.started||null!=this.starting}},{key:"start",value:function(){var e=o(r().mark((function e(t){var n,i,a,c=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.started){e.next=3;break}return this.startConfig&&(0,s.startConfigDiffers)(this.startConfig,t)&&(0,s.warnStartConfigMismatch)(this.startConfig,t),e.abrupt("return");case 3:if(!this.starting){e.next=6;break}return this.startConfig&&(0,s.startConfigDiffers)(this.startConfig,t)&&(0,s.warnStartConfigMismatch)(this.startConfig,t),e.abrupt("return",this.starting);case 6:return this.startConfig=t,this.debug=!!t.debug,(0,s.isBioCatchPresentOnWindow)()&&(0,s.warnSdkAlreadyOnWindow)(this.debug),i=null!==(n=t.useMockInDev)&&void 0!==n?n:f(),a=o(r().mark((function e(){var n,o,a,s,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.loadSdk)(i);case 3:n=e.sent,o=n.adapter,a=n.source,s=n.raw,c.adapter=o,c.source=a,c.rawSdk=s,l={},t.logServerUrl&&(l.logServerURL=t.logServerUrl),t.collectionSettings&&(l.collectionSettings=t.collectionSettings),c.safe((function(){var e;return o.start(t.wupServerUrl,t.customerId,t.customerSessionId,l,null!==(e=t.wupServerVersion)&&void 0!==e?e:4)})),t.customerSessionId&&c.setCustomerSessionId(t.customerSessionId),t.customerBrand&&c.setCustomerBrand(t.customerBrand),c.started=!0,c.log("started (source=".concat(a,")")),e.next=24;break;case 20:throw e.prev=20,e.t0=e.catch(0),c.log("start failed: ".concat(e.t0.message)),e.t0;case 24:return e.prev=24,c.starting=null,e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[0,20,24,27]])})))(),this.starting=a,e.abrupt("return",a);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setCustomerSessionId",value:function(e){var t=this;l(e)||this.log("invalid CSID supplied (must be 10-100 chars, allowed: A-Za-z0-9,!@$%^&*.=+-_/\\~): ".concat(e)),this.safe((function(){var n;return null===(n=t.adapter)||void 0===n?void 0:n.setCustomerSessionId(e)})),this.log("setCustomerSessionId(".concat(e,")"))}},{key:"changeContext",value:function(e){var t=this;this.safe((function(){var n;return null===(n=t.adapter)||void 0===n?void 0:n.changeContext(e)}
2)),this.log("changeContext(".concat(e,")"))}},{key:"setCustomerBrand",value:function(e){var t=this;this.safe((function(){var n;return null===(n=t.adapter)||void 0===n?void 0:n.setCustomerBrand(e)})),this.log("setCustomerBrand(".concat(e,")"))}},{key:"flush",value:function(){var e=this;this.safe((function(){var t,n;return null===(n=null===(t=e.adapter)||void 0===t?void 0:t.flush)||void 0===n?void 0:n.call(t)})),this.log("flush()")}},{key:"pauseCollection",value:function(){var e=this;this.safe((function(){var t,n;return null===(n=null===(t=e.adapter)||void 0===t?void 0:t.pauseCollection)||void 0===n?void 0:n.call(t)})),this.log("pauseCollection()")}},{key:"isStarted",value:function(){return this.started}},{key:"getSource",value:function(){return this.source}},{key:"getRaw",value:function(){return this.rawSdk}},{key:"safe",value:function(e){try{e()}catch(t){this.log("SDK call threw, swallowed: ".concat(t.message))}}},{key:"log",value:function(e){this.debug&&console.log("[@dfh-digital-insight/biocatch-react-sdk] ".concat(e))}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}},{key:"reset",value:function(){e.instance=null,(0,s.resetBiocatchWarnings)()}}]),e}();function l(e){return"string"===typeof e&&(!(e.length<10||e.length>100)&&/^[A-Za-z0-9,!@$%^&*.=+\-_/\\~]+$/.test(e))}function f(){var e;try{var t=globalThis;return!!(null===(e=t.process)||void 0===e?void 0:e.env)&&"production"!==t.process.env.NODE_ENV}catch(n){return!0}}t.BiocatchClient=c,c.instance=null},1707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetBiocatchWarnings=function(){o.clear(),i=0},t.warnBiocatchOnce=a,t.onBiocatchProviderMount=function(e,t){((i+=1)>1||t)&&a("duplicate-provider","Multiple BiocatchProvider instances detected. Mount exactly one provider at the top-level app root; additional providers are ignored and may leave the wrong BioCatch configuration active.",{debug:e.debug,debugDetail:"providerMountCount=".concat(i,", clientAlreadyActive=").concat(t)});u()&&a("provider-not-top","BiocatchProvider is running inside an iframe, not the top window. The main BioCatch SDK should load only in the top frame; use BiocatchFrameBridge (cross-domain) or useTopFrameApi (same-domain) inside child iframes instead.",{debug:e.debug,debugDetail:"undefined"!==typeof window?"location=".concat(window.location.href):void 0})},t.warnSdkAlreadyOnWindow=function(e){a("sdk-already-on-window","BioCatch appears to be present on window (e.g. window.cdApi) before this wrapper initialised. Load the SDK only via BiocatchProvider, or remove duplicate script tags / direct @biocatch/js-sdk imports on the host page to avoid double initialisation.",{debug:e,debugDetail:c()})},t.warnStartConfigMismatch=function(e,t){var n;a("start-config-mismatch","BiocatchClient.start() was called again with different configuration after the SDK had already started or was starting. Only the first config is applied; remount a single BiocatchProvider to change wupServerUrl, customerId, or related settings.",{debug:null!==(n=t.debug)&&void 0!==n?n:e.debug,debugDetail:"previous=".concat(JSON.stringify(s(e))," next=").concat(JSON.stringify(s(t)))})},t.isEmbeddedFrame=u,t.isBioCatchPresentOnWindow=function(){if("undefined"===typeof window)return!1;var e=window.cdApi;return null!=e&&("function"===typeof e.start||"function"===typeof e.setCustomerSessionId)},t.normalizeStartConfig=s,t.startConfigDiffers=function(e,t){return JSON.stringify(s(e))!==JSON.stringify(s(t))};var r="[@dfh-digital-insight/biocatch-react-sdk]",o=new Set,i=0;function a(e,t,n){o.has(e)||(o.add(e),console.warn("".concat(r," ").concat(t)),(null===n||void 0===n?void 0:n.debug)&&n.debugDetail&&console.warn("".concat(r," ").concat(n.debugDetail)))}function u(){if("undefined"===typeof window)return!1;try{var e=window.top;return null!=e&&window!==e}catch(t){return!0}}function s(e){var t;return{wupServerUrl:e.wupServerUrl,customerId:e.customerId,customerSessionId:e.customerSessionId,customerBrand:e.customerBrand,wupServerVersion:null!==(t=e.wupServerVersion)&&void 0!==t?t:4,logServerUrl:e.logServerUrl,useMockInDev:e.useMockInDev,collectionSettings:e.collectionSettings}}function c(){if("undefined"!==typeof window)return window.cdApi?"window.cdApi is already defined":"window.cdApi is not set"}},1708:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.BiocatchReactContext=void 0;var r=n(0);t.BiocatchReactContext=(0,r.createContext)({client:null,ready:!1,source:null,error:null})},1709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BIOCATCH_FRAME_MESSAGE_TYPES=void 0,t.postBiocatchFrameMessage=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined"!==typeof window?window.parent:void 0;if(!t||"*"===t)throw new Error('[@dfh-digital-insight/biocatch-react-sdk] postBiocatchFrameMessage requires an explicit targetOrigin (no "*").');if("undefined"===typeof n)return;n.postMessage(e,t)},t.BIOCATCH_FRAME_MESSAGE_TYPES=["ContextChange","cdSetCsid","cdSetCustomerBrand","cdFlush","cdPauseCollection"]},1871:function(e,t,n){"use strict";var r=n(1355);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1356)),i=n(8);t.default=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help")},1872:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(274),o=n(480);function i(e){return Object(r.a)("MuiDivider",e)}var a=Object(o.a)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.a=a},1873:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(274),o=n(480);function i(e){return Object(r.a)("MuiListItemButton",e)}var a=Object(o.a)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.a=a},1874:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCsid=t.BiocatchClient=t.BIOCATCH_FRAME_MESSAGE_TYPES=t.postBiocatchFrameMessage=t.useTopFrameApi=t.useFrameBridgeApi=t.BiocatchFrameBridge=t.useHeartbeat=t.useCustomerBrand=t.useCustomerSessionId=t.useBiocatchContext=t.useBiocatch=t.BiocatchProvider=void 0;var r=n(1875);Object.defineProperty(t,"BiocatchProvider",{enumerable:!0,get:function(){return r.BiocatchProvider}});var o=n(1528);Object.defineProperty(t,"useBiocatch",{enumerable:!0,get:function(){return o.useBiocatch}});var i=n(1881);Object.defineProperty(t,"useBiocatchContext",{enumerable:!0,get:function(){return i.useBiocatchContext}});var a=n(1882);Object.defineProperty(t,"useCustomerSessionId",{enumerable:!0,get:function(){return a.useCustomerSessionId}});var u=n(1883);Object.defineProperty(t,"useCustomerBrand",{enumerable:!0,get:function(){return u.useCustomerBrand}});var s=n(1884);Object.defineProperty(t,"useHeartbeat",{enumerable:!0,get:function(){return s.useHeartbeat}});var c=n(1887);Object.defineProperty(t,"BiocatchFrameBridge",{enumerable:!0,get:function(){return c.BiocatchFrameBridge}}),Object.defineProperty(t,"useFrameBridgeApi",{enumerable:!0,get:function(){return c.useFrameBridgeApi}});var l=n(1888);Object.defineProperty(t,"useTopFrameApi",{enumerable:!0,get:function(){return l.useTopFrameApi}});var f=n(1709);Object.defineProperty(t,"postBiocatchFrameMessage",{enumerable:!0,get:function(){return f.postBiocatchFrameMessage}}),Object.defineProperty(t,"BIOCATCH_FRAME_MESSAGE_TYPES",{enumerable:!0,get:function(){return f.BIOCATCH_FRAME_MESSAGE_TYPES}});var p=n(1706);Object.defineProperty(t,"BiocatchClient",{enumerable:!0,get:function(){return p.BiocatchClient}}),Object.defineProperty(t,"isValidCsid",{enumerable:!0,get:function(){return p.isValidCsid}})},1875:function(e,t,n){"use strict";var r=n(726).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BiocatchProvider=function(e){var t=e.config,n=e.children,c=e.fallback,l=(0,i.useState)(!1),f=r(l,2),p=f[0],d=f[1],y=(0,i.useState)(null),h=r(y,2),m=h[0],v=h[1],b=(0,i.useState)(null),g=r(b,2),_=g[0],w=g[1],S=(0,i.useRef)(!1),k=(0,i.useMemo)((function(){return a.BiocatchClient.getInstance()}),[]);(0,i.useEffect)((function(){S.current||(S.current=!0,(0,u.onBiocatchProviderMount)(t,k.isActive()));var e=!1;return k.start(t).then((function(){e||(w(k.getSource()),d(!0))})).catch((function(t){e||v(t)})),function(){e=!0}}),[]);var E=(0,i.useMemo)((function(){return{client:k,ready:p,source:_,error:m}}),[k,p,_,m]);return(0,o.jsx)(s.BiocatchReactContext.Provider,{value:E,children:!p&&c?c:n})};var o=n(8),i=n(0),a=n(1706),u=n(1707),s=n(1708)},1876:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},1877:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},1878:function(e,t,n){"use strict";var r=n(1527).default,o=n(1587).default,i=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r=e(t),o=0;o<r.length;o++)"default"!==r[o]&&i(n,t,r[o]);return a(n,t),n}}();function s(){return(s=o(r().mark((function e(t){var o,i,a,s,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then((function(){return u(n(1879))}));case 3:if(o=e.sent,!(i=c(o))){e.next=7;break}return e.abrupt("return",{adapter:i,source:"real",raw:o});case 7:if(t){e.next=9;break}throw new Error("[@dfh-digital-insight/biocatch-react-sdk] @biocatch/js-sdk was resolved but did not expose a recognisable API surface.");case 9:e.next=15;break;case 11:if(e.prev=11,e.t0=e.catch(0),t){e.next=15;break}throw new Error("[@dfh-digital-insight/biocatch-react-sdk] Failed to load @biocatch/js-sdk. Ensure the package is installed (requires BioCatch JFrog access) "+"or enable `useMockInDev` on the provider. Original error: ".concat(e.t0.message));case 15:return e.next=17,Promise.resolve().then((function(){return u(n(1880))}));case 17:return a=e.sent,s=a.createMockSdk,l=s(),e.abrupt("return",{adapter:l,source:"mock",raw:l});case 21:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function c(e){var t,n;return(null===(t=null===e||void 0===e?void 0:e.default)||void 0===t?void 0:t.getInstance)?l(e.default.getInstance()):(null===(n=null===e||void 0===e?void 0:e.BioCatchSDK)||void 0===n?void 0:n.getInstance)?l(e.BioCatchSDK.getInstance()):(null===e||void 0===e?void 0:e.bcClient)&&"function"===typeof e.bcClient.start?l(e.bcClient):"undefined"!==typeof window&&window.cdApi?l(window.cdApi):null}function l(e){return{start:function(t,n,r,o,i){"function"===typeof e.start&&e.start(t,n,r,o,i)},setCustomerSessionId:function(t){var n;null===(n=e.setCustomerSessionId)||void 0===n||n.call(e,t)},changeContext:function(t){var n;null===(n=e.changeContext)||void 0===n||n.call(e,t)},setCustomerBrand:function(t){var n;null===(n=e.setCustomerBrand)||void 0===n||n.call(e,t)},flush:function(){var t;null===(t=e.flush)||void 0===t||t.call(e)},pauseCollection:function(){var t;null===(t=e.pauseCollection)||void 0===t||t.call(e)},stop:function(){var t;null===(t=e.stop)||void 0===t||t.call(e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.loadSdk=function(e){return s.apply(this,arguments)}},1879:function(e,t,n){var r;self,e.exports=function(){var n={837:function(e){e.exports={serif:["adobe jenson","adobe text","albertus","aldus","alexandria","alger
2ian","american typewriter","antiqua","arno","aster","aurora","baskerville","bell","bembo","bembo schoolbook","benguiat","berkeley old style","bernhard modern","bodoni","book antiqua","bookman","bordeaux roman","californian fb","calisto","capitals","cambria","cartier","caslon","caslon antique","catull","centaur","century old style","century schoolbook","new century schoolbook","chaparral","charis sil","cheltenham","clearface","cochin","colonna","computer modern","concrete roman","constantia","cooper black","corona","dejavu fonts","ecotype","elephant","espy serif","excelsior","fairfield","ff scala","footlight","freeserif","friz quadrata","garamond","gentium","georgia","gloucester","goudy old style","goudy schoolbook","goudy pro font","granjon","heather","hercules","high tower text","hiroshige","hoefler text","humana serif","imprint","ionic no. 5","janson","jenson","joanna","korinna","kursivschrift","legacy serif","lexicon","liberation fonts","linux libertine","literaturnaya","lucida","melior","memphis","miller","minion","didone","mona lisa","mrs eaves","ms serif","new york","nimbus roman","
2nps rawlinson roadway","ocr a extended","palatino","perpetua","plantin","plantin schoolbook","playbill","poor richard","rawlinson roadway","renault","requiem","roman","rotis serif","sabon","seagull","sistina","souvenir","stix","stone informal","stone serif","sylfaen","times new roman","times","trajan","trinit\xe9","trump mediaeval","utopia","vale type","bitstream vera","versailles","wanted","weiss","wide latin","windsor","xits","apex","archer","athens","city","cholla slab","clarendon","courier","egyptienne","guardian egyptian","lexia","museo slab","rockwell","nilland","skeleton antique","tower","allegro","amiri","athelas","belwe","bookerly","bulmer","caledonia","constructium","copperplate Gothic","dejaVu serif","didot","droid serif","emerson","galliard","iowan old style","itc lubalin graph","ibm plex","ibm plex serif","junicode","literata","lucida bright","rotis","serifa","source serif pro","theano","zilla slab","bitstream charter","roboto slab","university of california old style","berkeley old style","candida","doves","hightower","liberation sans","lucida grande","vera sans","vercetti regular","computer modern sans","rotis ii sans","sherbrooke","tilson","triplex"],"sans-serif":["abadi","agency fb","akzidenz grotesk","aptifer","arial","arial unicode ms","avant garde","avenir","bank gothic","barmeno","bauhaus","bell centennial","bell gothic","benguiat gothic","berlin sans","beteckna","brandon grotesque","cabin","cafeteria","calibri","century gothic","charcoal","chicago","clearface gothic","clearview","co headline","co text","compacta","corbel","ff dax","dotum","droid","dyslexie","ecofont","eras","espy sans","nu sans","eurocrat","eurostile","ff meta","flama","formata","freesans","franklin gothic","frutiger","futura","geneva","gill sans","gill sans schoolbook","gotham","handel gothic","denmark","haettenschweiler","hei","helvetica","helvetica neue","swiss 721","highway gothic","hiroshige sans","hobo","impact","industria","interstate","johnston","kabel","lato","legacy sans","lexia readable","meiryo","microgramma","motorway","ms sans serif","museo sans","myriad","neutraface","neuzeit s","news gothic","nimbus sans l","nina","optima","parisine","pricedown","prima sans","pt sans","rail alphabet","revue","roboto","rotis sans","ff scala sans","segoe","skia","souvenir gothic","stone sans","syntax","tahoma","template gothic","tiresias","trade gothic","transport alphabet","trebuchet ms","trump gothic","tw cen","twentieth century","ubuntu font family","univers","zurich","verdana","virtue","acumin","akzidenz-grotesk","amplitude","andal\xe9 sans","antique olive","archivo","austria","itc avant garde","itc avant garde gothic","averta","bahnschrift","barlow","bobcaygeon","breeze sans","cantarell","caract\xe8res","cera Pro","cisco sans","adobe clean","clear sans","comic neue","dejaVu sans","din 1451","dosis","drogowskaz","droid sans","dubai","e-ukraine","fira sans","folio","gerstner programm","grand slang","harmonyos sans","ibm plex sans","inter","ge inspira","karrik","klavika","libre franklin","linux biolinum","fs me","ff meta","montserrat","national trust","nokia pure","noto sans","nunito sans","open sans","overpass","oxygen","poppins","proxima nova","radis sans","raleway","Selawik","semplicit\xe0","seravek","oneplus","snv","source sans pro","sweden sans","thesis sans","transport","tratex","unica","universalis","vag rounded","whitney","aphont","ff clan","gilroy","greycliff","nobel"],monospace:["andale mono","anonymous","consolas","courierhp","courier new","courierps","fontcraft courier","everson mono","fedra mono","fixed","fixedsys","fixedsys excelsior","inconsolata","hyperfont","letter gothic","magnetic ink character recognition","menlo","miriam fixed","monaco","monofur","monospace","ms gothic","ms mincho","nimbus mono l","ocr-a","ocr-b","orator","ormaxx","pragmatapro","prestige elite","profont","proggy programming fonts","small fonts","sydnie","terminal","tex gyre cursor","um typewriter","william monospace","balloon","brush script","dragonwick","choc","dom casual","mistral","papyrus","tempus sans","amazone","ams euler","apple chancery","aristocrat","bickley script","civitype","codex","edwardian script","forte","french script","kuenstler script","monotype corsiva","old english text mt","palace script","park avenue","scriptina","shelley volante","vivaldi","vladimir script","zapf chancery","zapfino","andy","ashley script","chalkboard","comic sans","cezanne","fontoon","irregularis","jefferson","kristen","lucida handwriting","rage italic","rufscript","scribble","soupbone","tekton","alecko","cinderella","cupola","curlz","magnificat","script","american text","cloister black","fraktur","goudy text","old english text","wedding text","aegyptus","aharoni","aisha","am
2ienne","batak script","chandas","hanacaraka","japanese gothic typeface","jomolhari","kochi font","lontara script","maiola","minch\u014d","mona font","nassim","nastaliq navees","neacademia","perpetua greek","simsun","skolar","skolar devanagari","sundanese unicode","sutturah","tai le valentinium","tengwar","tibetan machine uni","tunga","wadalab","apple symbols","bookshelf symbol 7","braille","commercial pi","corel","erler dingbats","hm phonetic","mathematical pi","morse code","opensymbol","richstyle","symbol","symbolps","wingdings","wingdings 2","wingdings 3","webdings","zapf dingbats","abracadabra","ad lib","allegro","andreas","arnold b\xf6cklin","astur","balloon pop outlaw black","banco","beat","braggadocio","broadway","ellington","exablock","exocet","fig script","gigi","harlow solid","harrington","horizon","jim crow","jokerman","juice","lo-type","magneto","megadeth","neuland","peignot","ravie","san francisco","showcard gothic","snap","stencil","umbra","westminster","willow","bagel","lithos","aldhabi","andalus","angsana new","angsanaupc","aparajita","arabic typesetting","arial black","arial narrow","arial rounded mt bold","baskerville old face","batang","batangche","bauhaus 93","bell mt","berlin sans fb","berlin sans fb demi","bernard mt condensed","blackadder itc","bodoni mt","bodoni mt black","bodoni mt condensed","bodoni mt poster compressed","bookman old style","bradley hand itc","britannic bold","browallia new","browalliaupc","brush script mt","buxton sketch","calibri light","calisto mt","cambria math","candara","castellar","century","chiller","colonna mt","comic sans ms","copperplate gothic bold","copperplate gothic light","cordia new","cordiaupc","curlz mt","daunpenh","david","dfkai-sb","dilleniaupc","dokchampa","dotumche","ebrima","edwardian script itc","engravers mt","eras bold itc","eras demi itc","eras light itc","eras medium itc","estrangelo edessa","eucrosiaupc","euphemia","fangsong","felix titling","footlight mt light","franklin gothic book","franklin gothic demi","franklin gothic demi cond","franklin gothic heavy","franklin gothic medium","franklin gothic medium cond","frankruehl","freesiaupc","freestyle script","french script mt","gabriola","gadugi","gautami","gill sans mt","gill sans mt condensed","gill sans mt ext condensed bold","gill sans ultra bold","gill sans ultra bold condensed","gisha","gloucester mt extra condensed","goudy stout","gulim","gulimche","gungsuh","gungsuhche","harlow solid italic","imprint mt shadow","informal roman","irisupc","iskoola pota","jasmineupc","javanese text","juice itc","kaiti","kalinga","kartika","khmer ui","kodchiangupc","kokila","kristen itc","kunstler script","lao ui","latha","leelawadee","leelawadee ui","leelawadee ui semilight","levenim mt","lilyupc","lucida bright","lucida calligraphy","lucida console","lucida fax","lucida sans","lucida sans typewriter","lucida sans unicode","maiandra gd","malgun gothic","mangal","marlett","matura mt script capitals","meiryo ui","microsoft himalaya","microsoft jhenghei","microsoft jhenghei light","microsoft jhenghei ui","microsoft jhenghei ui light","microsoft new tai lue","microsoft phagspa","microsoft sans serif","microsoft tai le","microsoft uighur","microsoft yahei","microsoft yahei light","microsoft yahei ui","microsoft yahei ui light","microsoft yi baiti","mingliu","mingliu-extb","mingliu_hkscs","mingliu_hkscs-extb","miriam","modern","modern no. 20","mongolian baiti","moolboran","ms outlook","ms pgothic","ms pmincho","ms reference sans serif","ms reference specialty","ms ui gothic","mt extra","mv boli","myanmar text","narkisim","niagara engraved","niagara solid","nirmala ui","nirmala ui semilight","nsimsun","nyala","onyx","palace script mt","palatino linotype","parchment","perpetua titling mt","plantagenet cherokee","pmingliu","pmingliu-extb","pristina","raavi","rockwell condensed","rockwell extra bold","rod","sakkal majalla","script mt bold","segoe marker","segoe print","segoe script","segoe ui","segoe ui black","segoe ui emoji","segoe ui light","segoe ui semibold","segoe ui semilight","segoe ui symbol","shonar bangla","shruti","simhei","simplified arabic","simplified arabic fixed","simsun-extb","sitka banner","sitka dis
2play","sitka heading","sitka small","sitka subheading","sitka text","sketchflow print","snap itc","system","tempus sans itc","traditional arabic","tw cen mt","tw cen mt condensed","tw cen mt condensed extra bold","urdu typesetting","utsaah","vani","vijaya","viner hand itc","vrinda","yu gothic","yu gothic light","yu mincho","yu mincho demibold","yu mincho light","bitstream vera sans mono","cascadia code","century schoolbook monospace","comic mono","computer modern mono","typewriter","curier","cousine","dejavu sans mono","droid sans mono","envy code r","fantasque sans","fira code","fira mono","freemono","gnu freefont","go mono","hack","ibm monochrome display adapter","ibm mda","ibm plex mono","input","iosevka","jetbrains mono","juliamono","liberation mono","nk57 monospace","noto mono","operator mono","overpass mono","oxygen mono","pt mono","recursive mono","roboto mono","sf mono","source code pro","spleen","terminus","ubuntu mono","victor mono","wumpus mono"],rat_fonts:["Teamviewer11","Teamviewer12","Teamviewer13","Teamviewer14","Teamviewer15"]}},521:function(e){e.exports={unlabled:["adobe jenson","adobe text","albertus","aldus","alexandria","alger
2ian","american typewriter","antiqua","arno","aster","aurora","baskerville","bell","bembo","bembo schoolbook","benguiat","berkeley old style","bernhard modern","bodoni","book antiqua","bookman","bordeaux roman","californian fb","calisto","capitals","cambria","cartier","caslon","caslon antique","catull","centaur","century old style","century schoolbook","new century schoolbook","chaparral","charis sil","cheltenham","clearface","cochin","colonna","computer modern","concrete roman","constantia","cooper black","corona","dejavu fonts","ecotype","elephant","espy serif","excelsior","fairfield","ff scala","footlight","freeserif","friz quadrata","garamond","gentium","georgia","gloucester","goudy old style","goudy schoolbook","goudy pro font","granjon","heather","hercules","high tower text","hiroshige","hoefler text","humana serif","imprint","ionic no. 5","janson","jenson","joanna","korinna","kursivschrift","legacy serif","lexicon","liberation fonts","linux libertine","literaturnaya","lucida","melior","memphis","miller","minion","didone","mona lisa","mrs eaves","ms serif","new york","nimbus roman","
2nps rawlinson roadway","ocr a extended","palatino","perpetua","plantin","plantin schoolbook","playbill","poor richard","rawlinson roadway","renault","requiem","roman","rotis serif","sabon","seagull","sistina","souvenir","stix","stone informal","stone serif","sylfaen","times new roman","times","trajan","trinit\xe9","trump mediaeval","utopia","vale type","bitstream vera","versailles","wanted","weiss","wide latin","windsor","xits","apex","archer","athens","city","cholla slab","clarendon","courier","egyptienne","guardian egyptian","lexia","museo slab","rockwell","nilland","skeleton antique","tower","allegro","amiri","athelas","belwe","bookerly","bulmer","caledonia","constructium","copperplate Gothic","dejaVu serif","didot","droid serif","emerson","galliard","iowan old style","itc lubalin graph","ibm plex","ibm plex serif","junicode","literata","lucida bright","rotis","serifa","source serif pro","theano","zilla slab","bitstream charter","roboto slab","university of california old style","berkeley old style","candida","doves","hightower","liberation sans","lucida grande","vera sans","vercetti regular","computer modern sans","rotis ii sans","sherbrooke","tilson","triplex","abadi","agency fb","akzidenz grotesk","aptifer","arial","arial unicode ms","avant garde","avenir","bank gothic","barmeno","bauhaus","bell centennial","bell gothic","benguiat gothic","berlin sans","beteckna","brandon grotesque","cabin","cafeteria","calibri","century gothic","charcoal","chicago","clearface gothic","clearview","co headline","co text","compacta","corbel","ff dax","dotum","droid","dyslexie","ecofont","eras","espy sans","nu sans","eurocrat","eurostile","ff meta","flama","formata","freesans","franklin gothic","frutiger","futura","geneva","gill sans","gill sans schoolbook","gotham","handel gothic","denmark","haettenschweiler","hei","helvetica","helvetica neue","swiss 721","highway gothic","hiroshige sans","hobo","impact","industria","interstate","johnston","kabel","lato","legacy sans","lexia readable","meiryo","microgramma","motorway","ms sans serif","museo sans","myriad","neutraface","neuzeit s","news gothic","nimbus sans l","nina","optima","parisine","pricedown","prima sans","pt sans","rail alphabet","revue","roboto","rotis sans","ff scala sans","segoe","skia","souvenir gothic","stone sans","syntax","tahoma","template gothic","tiresias","trade gothic","transport alphabet","trebuchet ms","trump gothic","tw cen","twentieth century","ubuntu font family","univers","zurich","verdana","virtue","acumin","akzidenz-grotesk","amplitude","andal\xe9 sans","antique olive","archivo","austria","itc avant garde","itc avant garde gothic","averta","bahnschrift","barlow","bobcaygeon","breeze sans","cantarell","caract\xe8res","cera Pro","cisco sans","adobe clean","clear sans","comic neue","dejaVu sans","din 1451","dosis","drogowskaz","droid sans","dubai","e-ukraine","fira sans","folio","gerstner programm","grand slang","harmonyos sans","ibm plex sans","inter","ge inspira","karrik","klavika","libre franklin","linux biolinum","fs me","ff meta","montserrat","national trust","nokia pure","noto sans","nunito sans","open sans","overpass","oxygen","poppins","proxima nova","radis sans","raleway","Selawik","semplicit\xe0","seravek","oneplus","snv","source sans pro","sweden sans","thesis sans","transport","tratex","unica","universalis","vag rounded","whitney","aphont","ff clan","gilroy","greycliff","nobel","andale mono","anonymous","consolas","courierhp","courier new","courierps","fontcraft courier","everson mono","fedra mono","fixed","fixedsys","fixedsys excelsior","inconsolata","hyperfont","letter gothic","magnetic ink character recognition","menlo","miriam fixed","monaco","monofur","monospace","ms gothic","ms mincho","nimbus mono l","ocr-a","ocr-b","orator","ormaxx","pragmatapro","prestige elite","profont","proggy programming fonts","small fonts","sydnie","terminal","tex gyre cursor","um typewriter","william monospace","balloon","brush script","dragonwick","choc","dom casual","mistral","papyrus","tempus sans","amazone","ams euler","apple chancery","aristocrat","bickley script","civitype","codex","edwardian script","forte","french script","kuenstler script","monotype corsiva","old english text mt","palace script","park avenue","scriptina","shelley volante","vivaldi","vladimir script","zapf chancery","zapfino","andy","ashley script","chalkboard","comic sans","cezanne","fontoon","irregularis","jefferson","kristen","lucida handwriting","rage italic","rufscript","scribble","soupbone","tekton","alecko","cinderella","cupola","curlz","magnificat","script","american text","cloister black","fraktur","goudy text","old english text","wedding text","aegyptus","aharoni","aisha","am
2ienne","batak script","chandas","hanacaraka","japanese gothic typeface","jomolhari","kochi font","lontara script","maiola","minch\u014d","mona font","nassim","nastaliq navees","neacademia","perpetua greek","simsun","skolar","skolar devanagari","sundanese unicode","sutturah","tai le valentinium","tengwar","tibetan machine uni","tunga","wadalab","apple symbols","bookshelf symbol 7","braille","commercial pi","corel","erler dingbats","hm phonetic","mathematical pi","morse code","opensymbol","richstyle","symbol","symbolps","wingdings","webdings","zapf dingbats","abracadabra","ad lib","allegro","andreas","arnold b\xf6cklin","astur","balloon pop outlaw black","banco","beat","braggadocio","broadway","ellington","exablock","exocet","fig script","gigi","harlow solid","harrington","horizon","jim crow","jokerman","juice","lo-type","magneto","megadeth","neuland","peignot","ravie","san francisco","showcard gothic","snap","stencil","umbra","westminster","willow","bagel","lithos","aldhabi","andalus","angsana new","angsanaupc","aparajita","arabic typesetting","arial narrow","arial rounded mt bold","baskerville old face","batang","batangche","bell mt","berlin sans fb","berlin sans fb demi","bernard mt condensed","blackadder itc","bodoni mt","bodoni mt poster compressed","bookman old style","bradley hand itc","britannic bold","browallia new","browalliaupc","brush script mt","buxton sketch","calisto mt","cambria math","candara","castellar","century","chiller","colonna mt","comic sans ms","cordia new","cordiaupc","curlz mt","daunpenh","david","dfkai-sb","dilleniaupc","dokchampa","dotumche","ebrima","edwardian script itc","engravers mt","eras bold itc","eras demi itc","eras light itc","eras medium itc","estrangelo edessa","eucrosiaupc","euphemia","fangsong","felix titling","footlight mt light","franklin gothic demi","franklin gothic demi cond","franklin gothic medium cond","frankruehl","freesiaupc","freestyle script","french script mt","gabriola","gadugi","gautami","gill sans mt","gill sans mt ext condensed bold","gisha","gloucester mt extra condensed","goudy stout","gulim","gulimche","gungsuh","gungsuhche","imprint mt shadow","informal roman","irisupc","iskoola pota","jasmineupc","javanese text","juice itc","kaiti","kalinga","kartika","khmer ui","kodchiangupc","kokila","kristen itc","kunstler script","lao ui","latha","leelawadee","leelawadee ui","levenim mt","lilyupc","lucida bright","lucida calligraphy","lucida console","lucida fax","lucida sans","lucida sans typewriter","lucida sans unicode","maiandra gd","malgun gothic","mangal","marlett","matura mt script capitals","meiryo ui","microsoft himalaya","microsoft jhenghei","microsoft jhenghei ui","microsoft new tai lue","microsoft phagspa","microsoft sans serif","microsoft tai le","microsoft uighur","microsoft yahei","microsoft yahei ui","microsoft yi baiti","mingliu","mingliu-extb","mingliu_hkscs","mingliu_hkscs-extb","miriam","modern","modern no. 20","mongolian baiti","moolboran","ms outlook","ms pgothic","ms pmincho","ms reference sans serif","ms reference specialty","ms ui gothic","mt extra","mv boli","myanmar text","narkisim","niagara engraved","niagara solid","nirmala ui","nsimsun","nyala","onyx","palace script mt","palatino linotype","parchment","perpetua titling mt","plantagenet cherokee","pmingliu","pmingliu-extb","pristina","raavi","rockwell extra bold","rod","sakkal majalla","script mt bold","segoe marker","segoe print","segoe script","segoe ui","segoe ui emoji","segoe ui symbol","shonar bangla","shruti","simhei","simplified arabic","simplified arabic fixed","simsun-extb","sitka banner","sitka display","sitka heading","sitka small","sitka subheading","sitka text","sketchflow print","snap itc","system","tempus sans itc","traditional arabic","tw cen mt","tw cen mt condensed extra bold","urdu typesetting","utsaah","vani","vijaya","viner hand itc","vrinda","yu gothic","yu mincho","yu mincho demibold","bitstream vera sans mono","cascadia code","century schoolbook monospace","comic mono","computer modern mono","typewriter","curier","cousine","dejavu sans mono","droid sans mono","envy code r","fantasque sans","fira code","fira mono","freemono","gnu freefont","go mono","hack","ibm monochrome display adapter","ibm mda","ibm plex mono","input","iosevka","jetbrains mono","juliamono","liberation mono","nk57 monospace","noto mono","operator mono","overpass mono","oxygen mono","pt mono","re
2cursive mono","roboto mono","sf mono","source code pro","spleen","terminus","ubuntu mono","victor mono","wumpus mono","Teamviewer11","Teamviewer12","Teamviewer13","Teamviewer14","Teamviewer15","36p Kana Demibold","8Pin Matrix","A Sensible Armadillo","A bite","A.Lewis","ABIGAIL","ABSALOM","ABeeZee","ADMUI2Lg","ADMUI2Sm","ADMUI3Lg","ADMUI3Sm","AG","AGA Arabesque","AGA Arabesque Desktop","AIGDT","AL Cinderella","ALS Script","AMGDT","ANDROID ROBOT","AR BERKLEY","AR BLANCA","AR BONNIE","AR CARTER","AR CENA","AR CHRISTY","AR DARLING","AR DECODE","AR DELANEY","AR DESTINE","AR ESSENCE","AR HERMANN","AR JULIAN","AR Sans Serif","ARDS1","AS-TTDurga","AT*Fujiyama","AT*Fujiyama2","AV-Font-Ben1","AV-Font-Guj1","AV-Font-Hin1","AV-Font-Kan1","AV-Font-Mal1","AV-Font-Sin","AV-Font-Sin1","AV-Font-Symbol","AV-Font-Tam1","AV-Web-Hin1","AV-Web-Tam1","AV-Web-Tel1","AVGmdBU","AajaxSurrealFreak","Aardvark Cafe","AardvarkBold","Abduction2002","Abel","Aberration","Aboriginal Sans","Aboriginal Serif","Abril Fatface","Abscissa","Abstrakt","Abyssinica SIL","AcadEref","Academy Engraved LET Plain:1.0","Accanthis ADF Std","Accanthis ADF Std No2","Accanthis ADF Std No3","Accent SF","Accord Heavy SF","Accord Light SF","Accord SF","AcmeFont","Action Jackson","Adamsky SF","AddJazz","AdineKirnberg","AdineKirnberg-Script","Adler","Admisi Display SSi","Adobe Arabic","Adobe Caslon","Adobe Caslon Pro","Adobe Caslon Pro SmBd","Adobe Devanagari","Adobe Fan Heiti Std","Adobe Fan Heiti Std B","Adobe Fangsong Std","Adobe Fangsong Std R","Adobe Garamond","Adobe Garamond Pro","Adobe Gothic Std","Adobe Gothic Std B","Adobe Gurmukhi","Adobe Hebrew","Adobe Heiti Std","Adobe Heiti Std R","Adobe Kaiti Std","Adobe Kaiti Std R","Adobe Ming Std","Adobe Ming Std L","Adobe Myungjo Std","Adobe Myungjo Std M","Adobe Naskh","Adobe Pi Std","Adobe Song Std","Adobe Song Std L","Aerovias Brasil NF","African","Aftermath","Aftershock Debris","Ahnberg","Aileron","Air Conditioner","Airstream","Airstream NF","Akaash","Akhbar MT","Akshar Unicode","AksharUnicode","Al Bayan","Al Bayan Plain","Al Nile","Al Tarikh","Albany AMT","Alegreya Sans SC","AlekyaBold","AlekyaExtraBold","AlekyaMedium","AlekyaThin","Aleo","Alex Brush","Alexandra Script","Alfredo","Alfredo's Dance","Alibi","Alice and the Wicked Monster","Alien Encounters","All Caps","Alligator Puree","Allura","Almonte Snow","Alpha CLOWN","Alternate Gothic No2 D","AlternateGothic2 BT","Amadeus","Amatic","Amatic SC","Amazone BT","Ambages","AmdtSymbols","AmerType Md BT","Amerika","Amerika Alternates","Amerika Sans","Amethyst","Amethyst Zucchini","Amiri Quran","Amudham","Analgesics","AnandapatraCMJ","AnastasiaScript","Ancuu","Andale Mono IPA","Andale Sans for VST","Andong","Angelica","Angiang","Angioma AOE","Angleterre Book - DGL","Angostura","Angstrom","AnjaliOldLipi","Annabelle","Annie BTN","Anonymice Powerline","AntFarm GoneCamping","AnticFont","Antonio","Apple Boy BTN","Apple Braille","Apple Casual","Apple Color Emoji","Apple LiGothic","Apple LiSung","Apple SD Gothic Neo","AppleGothic","AppleMyungjo","Aquaduct Plain","Aquaduct Warp","Arabic Transparent","Archicoco","Architects Daughter","Archive","Arctic","Argos MF","ArhialkhanMJ","ArhialkhanOMJ","Arial (Arabic)","Arial AMU","Arial Baltic","Arial CE","Arial CYR","Arial Greek","Arial Hebrew","Arial Hebrew Scholar","Arial MT","Arial Nova","Arial Nova Cond","Arial Symbol","Arial TUR","Arial monospaced for SAP","Arimo","Arimo Bold Italic for Powerline","Arimo Bold for Powerline","Arimo Italic for Powerline","Arimo for Powerline","Ariston","Arkhip","Army","Arno Pro","Arno Pro Smbd","Arrobatherapy","Arrus BT","Arvo","Asana Math","Asenine","Ashwariya","Asimov","Atlas","AtraiMJ","AtraiOMJ","Atzur","Augusta","Aurora Cn BT","Autour One","Autumn","AvantGarde Bk BT","AvantGarde Md BT","Avanti","Avenir Next","Avenir Next W1G Demi","AvenirBlk_PFL","AvenirLt_PFL","AvenirMd_PFL","Averia","Averia Sans","Averia Serif","Avinor","Ayuthaya","B095","BATAVIA","BJCree Uni","BN Jinx","BN Machine","BN-TTDurga","BOUTON International Symbols","BPG Classic 99U","BPG Paata Khutsuri U","BRADDON","Baamini","Baby Kruffy","BacktalkSerif BTN","Baclieu","BadaBoom BB","Baghdad","Bahiana","Baiduan Number","BaluBold","BaluBrush","BaluScript","Bamini","Bangkok Cirilica","Bangla MN","Bangla Sangam MN","BankGothic Lt BT","BankGothic Md BT","Banmai Times","Baoli SC","Baron Neue","Barrio","Bastion","BauerBodni BT","Bazooka","Beatnik SF","Becky","Beirut","Belfast Heavy SF","Belfast Light SF","Belfast SF","Bellota","Belwe Bd BT","Belwe Cn BT","Belwe Lt BT","Benguiat Bk BT","Bentham","Berkshire Swash","Berling","BerlingRoman","BernhardFashion BT","BernhardMod BT","Bevan","BhagirathiMJ","BhagirathiOMJ","BhairabMJ","BhairabOMJ","Bhuma","BiauKai","Bickham Script One","Bickham Script Pro 3","Bickham Script Pro Semibold","Bickham Script Two","Bienhoa","Bifurk","Big Caslon","Biko","Binhdinh","Binhlong","BinnerD","Birch Std","Bitstream Vera S
2ans","Bitstream Vera Serif","BlackJackRegular","Blackletter686 BT","Blackmoor LET","Blackmoor LET Plain:2.0","Blackoak Std","Blackout","Blade Runner Movie Font","BlairMdITC TT","Blockbuster","Bobcat","Bodoni MT Poste...d","Bodoni Ornaments","Bold Italic Art","BolsterBold","BongshaiMJ","BongshaiOMJ","Boogaloo","Bookshelf Symbol 1","Bookshelf Symbol 2","Bookshelf Symbol 3","BorakMJ","BorakOMJ","Bordeaux Roman Bold LET","Bordeaux Roman Bold LET Plain","Bordeaux Roman Bold LET Plain:1.0","Borealis","BorhalMJ","Bowlby One SC","Bradley Hand","BrahmaputraMJ","Brandish","Bree Serif","BriLliant","Broadway BT","Broadway Copyist","Broadway Copyist Perc","Broadway Copyist Text Ext","Broken Planewing","Brush Script Std","Brussels","Bubblegum Sans","BuiltTitlingRg-Bold","BuiltTitlingRg-BoldItalic","BuiltTitlingRg-Regular","BurigangaKamalaOMJ","BurigangaMJ","BurigangaOMJ","BurigangaSushreeMJ","BurigangaSushreeOMJ","Burst My Bubble","C-Medium","C-MediumHWL","CAC Champagne","CAMPBELL","CASMIRA","CATIA Symbols","CDT Khmer","CHANL","CL","CLARENCE","CSD16","CSongGB18030C-Light","CSongGB18030C-LightHWL","CZEC","CabinSketch","Caflisch Script Pro","Cairo SF","Caladea","Calligraffitti","Calligraph","Calligraph421 BT","Calligraphic","Calvin","Camau","Camranh","Candles","Candy Round BTN","Candy Round BTN Cond","Canter Bold 3D","Canter Bold Strips","Cantho","Carbon Block","Carlito","Carolina","Carrois Gothic SC","Castro Script PERSONAL USE ONLY","Casual","Cataneo BT","Caviar Dreams","CentSchbook BT","Century Schoolbook L","Ceremonious Two","Chalkboard SE","Chalkduster","Chancery Cursive","ChandrabatiMJ","ChandrabatiMatraMJ","ChandrabatiMatraOMJ","ChandrabatiOMJ","ChandrabatiSushreeMJ","Chaparral Pro","Charcoal CY","Charis SIL Compact","Charlemagne Std","Charter","Chess Alpha","Chess Berlin","Chess Marroquin","Chess Maya","Chess Merida","Chewy","Chinyen","Chipotle","ChitraMJ","ChitraOMJ","ChitraSMJ","ChondanaMJ","ChondanaOMJ","Cinzel","Cir Arial","CityBlueprint","Clarendon BT","Clarendon Blk BT","Clarendon Cn BT","Clarendon Hv BT","Clarendon Lt BT","CloisterBlack BT","Clubland","Coda","Code2000","Code39AzaleaNarrow1","Code39AzaleaNarrow2","Code39AzaleaNarrow3","Code39AzaleaRegular1","Code39AzaleaRegular2","Code39AzaleaRegular3","Code39AzaleaWide1","Code39AzaleaWide2","Code39AzaleaWide3","Colbert","ColdSpaghetti BTN","Comfortaa","Comic Relief","CommercialPi BT","CommercialScript BT","Commons","Complete in Him","Complex","ConcursoItalian BTN","Cookie","Coolsville","Coolvetica","Cooper Std","Copperplate","CopprplGoth BT","Copyist","Corporate","Corsiva Hebrew","Cortoba","CountryBlueprint","Courier MM Screenwriter","Courier MM Screenwriter BoldIt","Courier New (Arabic)","Courier New Baltic","Courier New CE","Courier New CYR","Courier New Greek","Courier New TUR","Courier Std","Courier10 BT","Cousine Bold Italic for Powerline","Cousine Bold for Powerline","Cousine Italic for Powerline","Cousine for Powerline","Cracked","Cracked Johnnie","Creepygirl","Cronos Pro","Crystal","Cumberland AMT","Cut Me Out","Cuulong","DFKGothic-Md","DFMaruGothic-Md","DIN 1451 Mittelschrift","DIN Alternate","DIN-BlackAlternate","DIN-Bold","DIN-Light","DIN-LightAlternate","DIN-Medium","DIN-MediumAlternate","DIN-Regular","DIN-RegularAlternate","DINPro-Black","DINPro-Bold","DINPro-Light","DINPro-Medium","DINPro-Regular","DS Crystal","DV-TTYogesh","DV1-TTYogesh","DYMO Symbols","DYMObvba","Daclac","Damascus","Dancing Script","Dancing Script OT","Darlin BTN","David Transparent","Dayton","DecoType Naskh","DecoType Naskh Extensions","DecoType Naskh Special","DecoType Naskh Swashes","DecoType Naskh Variants","DecoType Thuluth","Decor","Deepa","Deepak","DejaVu Math TeX Gyre","DejaVu Sans Mono Bold Oblique for Powerline","DejaVu Sans Mono Bold for Powerline","DejaVu Sans Mono Oblique for Powerline","DejaVu Sans Mono for Powerline","Deneane","DengXian","Desdemona","Detente","Devanagari MT","Devanagari Sangam MN","DhakarchithiMJ","DhakarchithiOMJ","DhanshirhiMJ","DhanshirhiOMJ","DholeshwariMJ","DholeshwariOMJ","DhonooMJ","DhonooOMJ","DhorolaMJ","DhorolaOMJ","DigifaceWide","Digifit","Digital Readout Upright","Dingbats","Dirty Headline","Distant Galaxy","Divya","Diwan Kufi","Diwan Thuluth","Diwani Bent","Diwani Letter","Diwani Simple Outline 2","Dollar","Dominican","Dot","Dot-Matrix","Doulos SIL","Drivebye 1","Drivebye 2","Drivebye 3","Drivebye 4","Droid Arabic Naskh","Droid Naskh Shift","Droid Naskh Shift Alt","Droid Naskh System UI","Droid Naskh UI","Droid Sans Arabic","Droid Sans Armenian","Droid Sans Ethiopic","Droid Sans Fallback","Droid Sans Georgian","Droid Sans Hebrew","Droid Sans Japanese","Droid Sans Mono Dotted for Powerline","Droid Sans Mono Slashed for Powerline","Droid Sans Mono for Powerline","Droid Sans Thai","DroidSansFallback","Ducmy","Dutch801 Rm BT","Dutch801 X
2Bd BT","Dynalight","DynameBlackSSK","Dyuthi","ELANGO-TML-Panchali-Normal","ELEGANCE","ELLIS","ENGL","EQUIS","ESTO","EXCESS","Eccentric Std","Egyptian710 BT","Ekushey Punarbhaba","Ela Sans Light Caps","ElegantIcons","Embassy BT","Emily Austin","Emma Script Mvb","Emmett","English157 BT","EngraverFontExtras","EngraverFontSet","EngraverTextH","EngraverTextNCS","EngraverTextT","EngraverTime","Enliven","Ethiopia Jiret","Ethnocentric","Euclid","Euclid Extra","Euclid Fraktur","Euclid Math One","Euclid Math Two","Euclid Symbol","Euphemia UCAS","Euro Sign","EuroRoman","Ezra SIL","Ezra SIL SR","FELIZ","FFF Tusj","FML-Akhila","FML-Indulekha","FML-IndulekhaHeavy","FML-Karthika","FML-Leela","FML-LeelaHeavy","FML-Mohini","FML-Nanditha","FML-Padmanabha","FML-Revathi","FML-Sruthy","FML-TTAathira","FML-TTAmbili","FML-TTAnakha","FML-TTAnjali","FML-TTAparna","FML-TTAshtamudi","FML-TTAshtamudiExBold","FML-TTAswathi","FML-TTAtchu","FML-TTAyilyamBold","FML-TTBeckalBold","FML-TTBhavana","FML-TTChandrika","FML-TTChithira","FML-TTChithiraHeavy","FML-TTDevika","FML-TTGauri","FML-TTGauriHeavy","FML-TTGeethika","FML-TTGopika","FML-TTGuruvayur","FML-TTIndulekha","FML-TTIndulekhaHeavy","FML-TTJaya","FML-TTJyothy","FML-TTJyotsna","FML-TTKala","FML-TTKamini","FML-TTKanika","FML-TTKarthika","FML-TTKaumudi","FML-TTKeerthi","FML-TTLeela","FML-TTLeelaHeavy","FML-TTMadhaviExBold","FML-TTMalavika","FML-TTMangalaExBold","FML-TTMayoori","FML-TTNalini","FML-TTNandini","FML-TTNanditha","FML-TTNarmadaExBold","FML-TTNila","FML-TTOnam","FML-TTPeriyar","FML-TTPooram","FML-TTPoornima","FML-TTRavivarma","FML-TTRevathi","FML-TTRohini","FML-TTSabari","FML-TTSankara","FML-TTSarada","FML-TTSruthy","FML-TTSugatha","FML-TTSuparna","FML-TTSurya","FML-TTSwathyBold","FML-TTThakazhi","FML-TTTheyyam","FML-TTThiruvathira","FML-TTThunchan","FML-TTVaisali","FML-TTVarsha","FML-TTVeenaHeavy","FML-TTVinay","FML-TTVisakham","FML-TTVishu","FML-TTYashasri","FMLTTAathira","FREH","FTEasci1","FTEasci1-f","FTEasci2","FTEasci2-f","FTEbaudo","FTEbaudo-f","FTEebcd1","FTEebcd1-f","FTEebcd2","FTEebcd2-f","FTEspec","FTEspec-f","FZLanTingHeiS-UL-GB","Fabrica","Fanwood","Farah","Farisi","Fascinate","Fences","Ferro Rosso","Finale AlphaNotes","Finale Copyist Text Ext","Finale Mallets","Finale Numerics","Finale Percussion","Finger Paint","Fingerpop","Fira Mono Bold for Powerline","Fira Mono Medium for Powerline","Firenze SF","Fixed Miriam Trans
2parent","Flamenco","FlemishScript BT","Floraless","Flubber","Fluffy Slacks BTN","Folio XBd BT","FontAwesome","FordLineDraw","Formal436 BT","Francois One","Frankfurter Venetian TT","Fredericka the Great","Freebooter Script","Freehand","Freehand521 BT","Freehand575 BT","Fren","Futura Book BT","Futura Book Italic BT","Futura Light BT","Futura Light Condensed BT","Futura Light Italic BT","Futura Md BT","Futura Medium BT","GB18030 Bitmap","GDT","GENISO","GENUINE","GF Zemen Unicode","GFS Artemisia","GFS Baskerville","GFS BodoniClassic","GFS Complutum","GFS Didot","GFS Didot Classic","GFS Gazis","GFS Neohellenic","GFS Olga","GFS Porson","GFS Solomos","GFS Theokritos","GJ-TTAvantika","GLYPHICONS Halflings","GROBOLD","Galatia SIL","Galeforce BTN","GaneshBlack","GaneshBold","GaneshExtraBold","GaneshMedium","GaneshNarrow","GaneshThin","GangaMJ","GangaOMJ","GangaSagarMJ","Garamond Premier Pro","Garamond Premr Pro","Garamond Premr Pro Smbd","Garuda","Gauge","Gayathri","Gazzarelli","Geeza Pro","Gelfling SF","Gen W01","Gentium Basic","Gentium Book Basic","GentiumAlt","Georgia Pro","Georgia Pro Cond","Geotype TT","Germ","Germanica","GhorautraMJ","GhorautraOMJ","Giadinh","Giddyup Std","Gidole","Gill Sans Nova","Gill Sans Nova Cond","Gill Sans Nova Cond XBd","Gillius ADF","Gillius ADF Cd","Gillius ADF No2","Gillius ADF No2 Cd","Giolinh","GiovanniITCTT","Glegoo","Glockenspiel","Gocong","Good Times","GoomtiMJ","GoraiMJ","GoraiOMJ","Gotham Narrow Ultra","Gothic720 BT","Gothic720 Lt BT","GothicE","GothicG","GothicI","GothicNo13 BT","GoudyHandtooled BT","Grand Hotel","Gravity","Great Vibes","Greek Diner Inline TT","GreekC","GreekS","Gridnik","GrilledCheese BTN","GrilledCheese BTN Toasted","GrilledCheese BTN Wide Blk","Gujarati MT","Gujarati Sangam MN","GungSeo","Gunplay","Gurmukhi MN","Gurmukhi MT","Gurmukhi Sangam MN","Guttman Yad","HANA","HELTERSKELTER","HERMAN","HGHangle","HGHeiseiKakugothictaiW3","HGHeiseiKakugothictaiW5","HGHeiseiKakugothictaiW9","HGHeiseiMinchotaiW3","HGHeiseiMinchotaiW9","HGMinchoL","HGP-AGothic2-Latin1K","HGPHeiseiKakugothictaiW3","HGPHeiseiKakugothictaiW5","HGPHeiseiKakugothictaiW9","HGPHeiseiMinchotaiW3","HGPHeiseiMinchotaiW9","HGPMinchoL","HGSHeiseiKakugothictaiW3","HGSHeiseiKakugothictaiW5","HGSHeiseiKakugothictaiW9","HGSHeiseiMinchotaiW3","HGSHeiseiMinchotaiW9","HGSMinchoL","HKSCS","HKSCS-ExtB","HP PSG","HP Simplified","HUNTSON","HYSWLongFangSong","HYSerif","Hadong","HaldaMJ","HaldaOMJ","Halong","Hand Me Down S (BRK)","Handwriting - Dakota","Hannotate SC","Hannotate TC","Hansen","HanziPen SC","HanziPen TC","HariSree","Harry P","Harvest","HarvestItal","Haxton Logos TT","HeadLineA","Heather BTN","Heather Script One","Heavy","Heavy Heap","Hebar","HeiT","Heiti SC","Heiti TC","HelvLight","HelveticaNeue","HelveticaNeueLT Std","HelveticaNeueVN-Bold","Henny Penny","Herculanum","Highlight LET","Hiragino Kaku Gothic Pro","Hiragino Mincho Pro","Hiragino Sans","Hobo Std","Hoefler Text Ornaments","Hoian","Holiday Springs BTN","Holiday Springs BTN Quill","HolidayPi BT","Hollywood Hills","Hombre","HooglyMJ","HooglyOMJ","Hot Mustard BTN","Hot Mustard BTN Poster","HucklebuckJF","Hue","Humanist","Humanst521 BT","Humanst521 XBd BT","Huxley Titling","Hypatia Sans Pro","IBM3270","IDAutomationPDF417n2","IDAutomationPDF417n3","IDAutomationPDF417n4","IDAutomationPDF417n5","IM FELL DW Pica","IMG Baby","IMG Extreme","IMG Love","IMG Seasons","IMG Symbols","IMG Travel","INSPECTIONXPERT GDT FRAMES","INSPECTIONXPERT GDT NOFRMS","IPAGothic","IPAMincho","IPAPGothic","IPAPMincho","IPAexGothic","IPAexMincho","IRIS","ISABELLE","ISOCP","ISOCP2","ISOCP3","ISOCPEUR","ISOCT","ISOCT2","ISOCT3","ISOCTEUR","ITAN","ITF Devanagari","ITF Devanagari Demi","ITF Devanagari Marathi","ITF Devanagari Marathi Demi","Ice kingdom","IchamotiMJ","IchamotiOMJ","IguanaLover BTN","Impregnable Personal Use Only","InaiMathi","Incised901 BdCn BT","Incised901 Ct BT","Incised901 Nd BT","Incised901 NdIt BT","Inconsolata for Powerline","Inconsolata-dz for Powerline","Inconsolata-g for Powerline","Inder","Indie Flower","Induction","Industrial736 BT","Iowan Old Style Titling","Ital","Italianate","Italic","Italic Outline Art","ItalicC","ItalicT","JACKIE","JF Armenian Serif","JF Georgian Contrast","JLS Data GothicC NC","JLS Data GothicR NC","JLS Space GothicC NC","JLS Space GothicR NC","JUSTICE","JaJaDiMJ","JaJaDiOMJ","Jameel No
2ori Nastaleeq","Janaranjani","JaneAusten","Jayanthi","Jazz","Jazz LET","Jazz LET Plain:1.0","JazzCord","JazzPerc","JazzText","JazzTextExtended","Joan","John Handy LET","Jokerman Alts LET","Jokerman LET","JomunaMJ","Josefin Slab","Judson","JugantorMJ","Julius Sans One","JumunaOMJ","JuneBug","Just Another Hand","Jwala","KB Vibrocentric","KG Corner of the Sky","KG Fall For You","KG Neatly Printed","KG Part of Me","KG Primary Penmanship","KG Shake it Off Chunky","KN-TTUma","KacstArt","KacstBook","KacstDecorative","KacstDigital","KacstFarsi","KacstLetter","KacstNaskh","KacstOffice","KacstOne","KacstPen","KacstPoster","KacstQurn","KacstScreen","KacstTitle","KacstTitleL","KaiTi_GB2312","Kailasa","Kaiti SC","Kaiti TC","Kalakaumudi","KalegongaMJ","KalegongaOMJ","KalindiMJ","KalindiOMJ","KalindiSMJ","Kalpurush","Kalpurush ANSI","Kalyani","Kanalisirung","KanchanMJ","KanchanOMJ","Kannada Sangam MN","KarnaphuliMJ","KarnaphuliOMJ","KasseFLF","Kaushan Script","Kedage","Kefa","Kerala","Kh-SrokKhleang","Khalid Art bold","Khanhoa","Khmer MN","Khmer OS","Khmer OS Fasthand","Khmer OS Freehand","Khmer OS Metal Chrieng","Khmer OS Muol","Khmer OS System","Khmer Sangam MN","Kievit Offc Pro","KievitPro-Regular","Kingthings Versalis","Kinnari","Kino MT","Kiran","Klee","Klee Demibold","Kohinoor Bangla","Kohinoor Devanagari","Kohinoor Devanagari Demi","Kohinoor Telugu","Kokonor","Kozuka Gothic Pr6N","Kozuka Gothic Pr6N B","Kozuka Gothic Pr6N EL","Kozuka Gothic Pr6N H","Kozuka Gothic Pr6N L","Kozuka Gothic Pr6N M","Kozuka Gothic Pr6N R","Kozuka Gothic Pro","Kozuka Gothic Pro B","Kozuka Gothic Pro EL","Kozuka Gothic Pro H","Kozuka Gothic Pro L","Kozuka Gothic Pro M","Kozuka Gothic Pro R","Kozuka Mincho Pr6N","Kozuka Mincho Pr6N B","Kozuka Mincho Pr6N EL","Kozuka Mincho Pr6N H","Kozuka Mincho Pr6N L","Kozuka Mincho Pr6N M","Kozuka Mincho Pr6N R","Kozuka Mincho Pro","Kozuka Mincho Pro B","Kozuka Mincho Pro EL","Kozuka Mincho Pro H","Kozuka Mincho Pro L","Kozuka Mincho Pro M","Kozuka Mincho Pro R","Kristi","Krungthep","Kruti Astro","Ktav","KufiStandardGK","Kumudam","Kundli","Kundli English","LA Headlights BTN","LCD","LETT","LIVINGWELL","LKLUG","LT-ET-Ramya","LT-TM-Barani","LT-TM-Lakshman","LTHYSZK","La Bamba LET","Laksaman","Langdon","Lantinghei SC","Lantinghei SC Demibold","Lantinghei SC Extralight","Lantinghei TC","Lantinghei TC Demibold","Lantinghei TC Extralight","Lao MN","Lao Sangam MN","Lapidary333 Blk BT","Latienne Pro","Latin Modern Math","Latin Modern Mono","Latin Modern Mono Caps","Latin Modern Mono Light Cond","Latin Modern Mono Prop","Latin Modern Mono Slanted","Latin Modern Roman Caps","Latin Modern Roman Demi","Latin Modern Roman Dunhill","Latin Modern Roman Slanted","Latin Modern Roman Unslanted","Latin Modern Sans","Latin Modern Sans Demi Cond","Latin Modern Sans Quotation","Latino Elongated LET Plain:1.0","Lato Hairline","LaurenScript","Lavanderia","Learning Curve Dashed Pro","Learning Curve Pro","Led Italic Font","Leitura Display Swashes","Letter Gothic Std","Letter Gothic Std Bold Slanted","Letter Gothic Std Slanted","LetterOMatic!","LeviBrush","LiHei Pro","LiSong Pro","Libel Suit","Liberation Serfi","Liberation Serif","Libertinus Math","Libian SC","Light","LightSC","Likhan","Limousine","Linden Hill","Lingoes Unicode","Linowrite","Linux Biolinum G","Linux Biolinum Keyboard O","Linux Biolinum O","Linux Libertine Display G","Linux Libertine Display O","Linux Libertine G","Linux Libertine Initials O","Linux Libertine Mono O","Linux Libertine O","Literation Mono Powerline","Lithos Pro","LittleLordFontleroy","Lobster","Lobster Two","Logo3Mtt","Logo3Mv3tt","Lohit Bengali","Lohit Devanagari","Lohit Gujarati","Lohit Hindi","Lohit Punjabi","Lohit Tamil","Loma","Lucida Blackletter","Lucida Bright Demibold","Lucida Fax Demibold","Luminari","Luna Bar","LuzSans-Book","LuzSans-Light","MAC C Times","MANDELA","MARKETPRO","MATTEROFFACT","MAXIMO","ML-IndulekhaHeavy","ML-NILA01","ML-NILA02","ML-NILA03","ML-NILA04","ML-NILA05","ML-NILA06","ML-NILA07","ML-TTAathira","ML-TTAmbili","ML-TTAnakha","ML-TTAnjali","ML-TTAparna","ML-TTAshtamudi","ML-TTAshtamudiExBold","ML-TTAswathi","ML-TTAtchu","ML-TTAyilyamBold","ML-TTBeckalBold","ML-TTBhavana","ML-TTChandrika","ML-TTChithira","ML-TTChithiraHeavy","ML-TTDevika","ML-TTGauri","ML-TTGauriHeavy","ML-TTGeethika","ML-TTGopika","ML-TTGuruvayur","ML-TTIndulekha","ML-TTIndulekhaHeavy","ML-TTJaya","ML-TTJyothy","ML-TTJyotsna","ML-TTKala","ML-TTKamini","ML-TTKanika","ML-TTKarthika","ML-TTKaumudi","ML-TTKeerthi","ML-TTLeela","ML-TTLeelaHeavy","ML-TTMadhaviExBold","ML-TTMalavika","ML-TTMangalaExBold","ML-TTMayoori","ML-TTNalini","ML-TTNandini","ML-TTNanditha","ML-TTNarmadaExBold","ML-TTNila","ML-TTOnam","ML-TTPeriyar","ML-TTPooram","ML-TTPoornima","ML-TTRavivarma","ML-TTRevathi","ML-TTRohini","ML-TTSabari","ML-TTSankara","ML-TTSarada","ML-TTSruthy","ML-TTSugatha","ML-TTSuparna","ML-TTSurya","ML-TTSwathyBold","ML-TTThakazhi","ML-TTTheyyam","ML-TTThiruvathira","ML-TTThunchan","ML-TTVaisali","ML-TTVarsha","ML-TTVeenaHeavy","ML-TTVinay","ML-TTVisakham","ML-TTVishu","ML-TTYashasri","ML1-TTAmbili","ML1-TTAswathi","ML1-TTIndulekha","MLB-TTAmbili","MLB-TTAswathi","MLB-TTIndulekha","MLU-Panini","MLW-TTKarthika","MMArrow","MMBinary","MMCenturyNew","MMCenturyNewRD","MMCenturyOld","MMCenturyOldGreek","MMEtc","MMExtra","MMGreek","MMNegate","MMRelation","MMSchoolRD","MMTextBook","MMTextBookB","MMTimes","MMVariable","MMVariable2","MMVariableA","MMVariableB","MMVariableC","MMVariableD","MMVariableF","MMa Arrow","MMa Arrow S","MMa Arrow SS","MMa Binary","MMa Binary S","MMa Binary SS","MMa Century","MMa CenturyK","MMa CenturyKS","MMa CenturyKSS","MMa CenturyS","MMa CenturySS","MMa Etc","MMa Etc S","MMa Etc SS","MMa Extra","MMa Extra S","MMa Extra SS","MMa Fermat","MMa Fraktur","MMa Gauss","MMa Greek","MMa GreekS","MMa GreekSS","MMa Negate","MMa Negate S","MMa Negate SS","MMa Pascal","MMa Relation","MMa Relation S","MMa Relation SS","MMa TextBook","MMa Variable","MMa Variable S","MMa Variable SS","MMa Variable2","MMa Variable2 S","MMa Variable2 SS","MMa VariableA","MMa VariableA S","MMa VariableA SS","MMa VariableB","MMa VariableB S","MMa VariableB SS","MMa VariableC","MMa VariableC S","MMa VariableC SS","MMa VariableD","MMa VariableD S","MMa VariableD SS","MMa VariableF","MMa VariableF S","MS Dialog","MS Reference 1","MS Reference 2","MS Reference Serif","MS Song","MS SystemEx","MT Extra Tiger","MYRIAD PRO","MYingHei","Madre Script","Mael","Maestro","Maestro Percussion","MaestroTimes","Magic School One","Magic School Two","Maiden Orange","Malayalam MN","Malayalam Sangam MN","Mallige","Manorama","Manorly","Map Symbols","MapInfo Cartographic","Marion","Marker Felt","Marquisette BTN","Marquisette BTN Lined","Martina","Master Of Break","Math1","Math1Mono","Math2","Math2Mono","Math3","Math3Mono","Math4","Math4Mono","Math5","Math5Mono","Mathilde","Matisse ITC","Mayence Premium","Medlin","Meera","Mekanik LET","MelodBold","Merriweather UltraBold","Meslo LG L DZ Regular for Powerline","Meslo LG L Regular for Powerline","Meslo LG M DZ Regular for Powerline","Meslo LG M Regular for Powerline","Meslo LG S DZ Regular for Powerline","Meslo LG S Regular for Powerline","Mesquite Std","Metamorphous","Miama","Microdot","Microsoft MHei","Microsoft NeoGothic","Milano LET","Minerva","Ming(for ISO10646)","Minion Pro","Minion Pro Bold Cond","Minion Pro Cond","Minion Pro Med","Minion Pro SmBd","Minisystem","Miriam Trans
2parent","Mishafi","Mishafi Gold","MisterEarl BT","Mitra Mono","Ml","Modena printed","Modern Antiqua","Modern No","Mona Lisa Solid ITC TT","Monospac821 BT","Monoton","Monotxt","Monotype Koufi","Monotype Sorts","Monotype.com","Montserrat Hairline","Moon Flower","Moonbeam","MotoyaLCedar","MotoyaLMaru","MrsEavesRoman","Mshtakan","Mshtakan BoldOblique","Mudir MT","Muli","Muna","Myanmar MN","Myanmar Sangam MN","Mycalc","Myriad Arabic","Myriad CAD","Myriad Hebrew","Myriad Pro Black Cond","Myriad Pro Black SemiCond","Myriad Pro Black SemiCondensed","Myriad Pro Black SemiExt","Myriad Pro Black SemiExtended","Myriad Pro Bold SemiCondensed","Myriad Pro Bold SemiExtended","Myriad Pro Cond","Myriad Pro Cond It","Myriad Pro It","Myriad Pro Light Cond","Myriad Pro Light Sans Hebrew","Myriad Pro Light SemiCond","Myriad Pro Light SemiCondensed","Myriad Pro Light SemiExt","Myriad Pro Light SemiExtended","Myriad Pro Semi bold","Myriad Pro SemiCond","Myriad Pro SemiCondensed","Myriad Pro SemiExt","Myriad Pro SemiExtended","Myriad Pro Semibold It","Myriad Pro Semibold SemiCondensed","Myriad Pro Semibold SemiExtended","Myriad Web Pro","MyriadPro-Semibold","Mytho","NATURALBORN","NBP Informa FiveSix","NBP Informa FiveThree","NEOLITH","NORMAL","Nadeem","Nafees Web Naskh","Nanum Brush Script","Nanum Gothic","Nanum Myeongjo","Nanum Pen Script","NanumBarunGothic","Napa SF","Nasalization","Neon Lights","NeueHaasGroteskText Pro","New Athena Unicode","New Gulim","New Peninim MT","New Peninim MT Bold Inclined","New Peninim MT Inclined","New Renex Special Graphics","New Renex Terminal","NewRocker","News Cycle","News Gothic MT","News Gothic MT Alt 1","News Gothic MT Alt 2","News Gothic MT Alt 3","News Gothic MT Alt 4","News Gothic MT Alt 5","News Gothic MT Alt 6","News GothicMT","NewsGoth BT","Newton Phonetic ABBYY","Nexa XBold","Nightclub BTN","Nightclub BTN UltraCn","Nimbus Roman No 9 L","Nimbus Roman No9 L","Nixie One","NixieOneRegular","No Flash","Nobile","Nonfiction","Norasi","Note this","Noteworthy","Noto Color Emoji","Noto Emoji","Noto Naskh Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Bamum","Noto Sans Batak","Noto Sans Brahmi","Noto Sans Buhid","Noto Sans CJK JP","Noto Sans CJK KR","Noto Sans CJK SC","Noto Sans CJK TC","N
2oto Sans Carian","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Devanagari","Noto Sans Devanagari UI","Noto Sans Egyptian Hieroglyphs","Noto Sans Ethiopic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Gujarati","Noto Sans Gurmukhi","Noto Sans Hanunoo","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans KR","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Lao","Noto Sans Lao UI","Noto Sans Limbu","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Mongolian","Noto Sans Mono CJK JP","Noto Sans Mono CJK KR","Noto Sans Mono CJK SC","Noto Sans Mono CJK TC","Noto Sans NKo","Noto Sans New Tai Lue","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Persian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Osmanya","Noto Sans Phags Pa","Noto Sans Phoenician","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Shavian","Noto Sans Syloti Nagri","Noto Sans Syriac Eastern","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Viet","Noto Sans Tamil","Noto Sans Tamil UI","Noto Sans Thai","Noto Sans Thai UI","Noto Sans Tifinagh","Noto Sans UI","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Yi","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif CJK JP","Noto Serif CJK KR","Noto Serif CJK SC","Noto Serif CJK TC","Noto Serif Georgian","Noto Serif Lao","Noto Serif Thai","Notram","Nova Cut","Nova Flat","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","November","Nueva Std","Nueva Std Bold Cond","Nueva Std Cond","Nunito","OCR A Std","OCR B MT","OCR-A BT","OCR-A II","OCRA","OLF SimpleSansOC","OLIVEOIL","OPENCLASSIC","OR-TTSarala","Odessa LET","Old Antic Decorative","Old Century","Old English","One Stroke Script LET","Onyx BT","OpineHeavy","Optima ExtraBlack","Optima LT Std","Opus","Opus Chords","Opus Chords Sans","Opus Figured Bass","Opus Figured Bass Extras","Opus Function Symbols","Opus Japanese Chords","Opus Metronome","Opus Note Names","Opus Ornaments","Opus Percussion","Opus PlainChords","Opus Roman Chords","Opus Special","Opus Special Extra","Orator Std","Orator Std Slanted","Origin","Oriya MN","Oriya Sangam MN","OskiDakelh","Ostrich Sans","Ostrich Sans Dashed","Ostrich Sans Rounded","Oswald","Ouverture script","OzHandicraft BT","PAINTSTROKE","PCMyungjo","PFDaVinciScriptPro-Inked","PFDaVinciScriptPro-Regular","PFFuelPro-Regular","PN-TTAmar","POLI","PRETEXT","PT Bold Arch","PT Bold Broken","PT Bold Dusky","PT Bold Heading","PT Bold Mirror","PT Bold Stars","PT Separated Baloon","PT Serif","PT Simple Bold Ruled","PTBarnum BT","PUPPYLIKE","Pacifico","Padauk","Pamela want a Bike to Ride","Pamela wants to Ride","PanRoman","Parisian BT","ParkAvenue BT","Parry Hotter","Party LET","Party LET Plain:1.0","ParvathiBold","ParvathiMedium","ParvathiThin","Patrick Hand SC","Pegasus","Pegypta","Penultimate","PenultimateLight","PenultimateLightItal","Permanent Marker","Persia BT","Petrucci","Phatdiem","Phetsarath OT","PhnomPenh OT","Phosphate","Photoshop Large","Photoshop Small","PhrasticMedium","Pickwick","Pigiarniq","PilGi","PingFang HK","PingFang SC","PingFang TC","Piranesi It BT","Pirate","Playfair Display SC","Pleasantly Plump","PoetsenOne","Pointedly Mad","Poiret One","PondAllRounder","PondFreeBoss","PondFreeMe","PondFreeZoo","Poplar Std","PortagoITC TT","Poster","PosterBodoni BT","Pothana","Pothana2000","Power Clear","Power Green","Power Green Small","Power Red and Blue","Power Red and Blue Intl","Power Red and Green","Praveen","Praxis","Prema","Press Start 2P","Prestige Elite Std","Prestige Elite Std Bd","Pricedown Bl","PrimaSans BT","Princetown LET","Priori Serif OT","Prisoner SF","Proxima Nova Condensed Semibold","Proxima Nova Rg","Proxima Nova Soft Semibold","Proxy 1","Proxy 2","Proxy 3","Proxy 4","Proxy 5","Proxy 6","Proxy 7","Proxy 8","Proxy 9","Pujeeta","PujeetaItalic","PujeetaNarrow","PujeetaSpecial","Purisa","Pythagoras","Qaskin Black Personal Use","Qaskin White Personal Use","Quangngai","QuickType II","QuickType II Mono","QuickType II Pi","Quickpen","Quicksand","Quicksand Dash","Quincho Script PERSONAL USE","Quinhon","QuiverItal","Quixley LET","QumpellkaNo12","RADAGUND","RUMA","Raanana","Rachana","Rachana_w01","Rachgia","Racing Sans One","Radha","RadhaBold","Rage Ital
2ic LET","Raghindi","RaghuMalayalam","Raisin des Sables","Rakesly Bk","Rakesly El","Rakesly Lt","Rakesly Rg","Rakesly Ul","RamuBrush","RamuScript","RamuScriptMedium","Realvirtue","Redressed","Reginet","Rekha","Remachine Script Personal Use","Reswysokr","Ribbon131 Bd BT","Rock Salt","Rocket Arabic Fixed","Rockwell Nova","Rockwell Nova Cond","Rod Transparent","Roman Mono","RomanC","RomanD","RomanS","RomanT","Romantic","Rondalo","Rosewood Std","Rouge Script","RowdyHeavy","Ruach LET","Rumburak","Rundkursiv","Rupee Foradian","Russel Write TT","SAF","SAPDings","SAPGUI-Icons","SAPIcons","SAS Monospace","SC","SD-TTSurekh","SERB","SF Compact Rounded","SF Compact Rounded Ultralight","SF Distant Galaxy","SF Distant Galaxy AltOutline","SF Distant Galaxy Alternate","SF Movie Poster","SF Slapstick Comic","SHELMAN","SOLIDWORKS GDT","SPAN","STHupo","STIX Math","STIX Two Math","STIXGeneral","STIXIntegralsD","STIXIntegralsSm","STIXIntegralsUp","STIXIntegralsUpD","STIXIntegralsUpSm","STIXNonUnicode","STIXSizeFiveSym","STIXSizeFourSym","STIXSizeOneSym","STIXSizeThreeSym","STIXSizeTwoSym","STIXVariants","STLiti","STSong","STXingkai","STXinwei","STZhongsong","SWAstro","SWComp","SWED","SWGDT","SWGamekeys MT","SWGothe","SWGothg","SWGothi","SWGrekc","SWGreks","SWIsop1","SWIsop2","SWIsop3","SWIsot1","SWIsot2","SWIsot3","SWItal","SWItalc","SWItalt","SWLink","SWMacro","SWMap","SWMath","SWMeteo","SWMono","SWMusic","SWRomnc","SWRomnd","SWRomns","SWRomnt","SWScrpc","SWScrps","SWSimp","SWTOR Trajan","SWTxt","Saab","Sabrina","Sacred Geometry","SaiEmbed","SaiIndira","SaiMeera","SaiSai","SaiVrishin","Saint Andrew des Kiwis","Salilam","Salina","Samathwa","SamsungImagination","SamsungImaginationBold","Sana","Sanpya","Sans","SansSerif","Sanskrit","Sanskrit New","Santa Fe LET","Santa Fe LET Plain:1.0","Sasfont","Sathu","Sauce Code Powerline","Savoye LET","Savoye LET Plain","Savoye LET Plain CC","Savoye LET Plain CC.:1.0","Savoye LET Plain:1.0","Sawasdee","Sceptre","SchoolHouse Cursive B","SchoolHouse Printed A","ScriptC","ScriptKleio","ScriptS","Seagull APL","Segoe MDL2 Assets","Segoe UI Historic","Segoe WP","Selena","SemiBold","Serifa BT","Serifa Th BT","Seville","ShelleyVolante BT","Sherwood","Shree Devanagari 714","Shree-Kan-0853","Shree-Mal-0502","Shree-Tel-0900","Sigmar","SignPainter","SignPainter-HouseScript","Signboard","Silent Reaction","Silom","Simple Bold Jut Out","Simple Outline Pat","Simplex","Sinhala MN","Sinhala Sangam MN","Six Caps","Siyam Rupali","Siyam Rupali ANSI","Sketch Block","Sketch Match","Sketch Rockwell","Skinny","Skype UI Symbol","SmartGothic","Smarty Pants BTN","Smokum","Smooth","Smudger Alts LET","Smudger LET","Sneakerhead BTN","Snell Roundhand","Sniglet","Snowdrift","Socket","Sofia","Soho Gothic Pro ExtraBold It","Soho Gothic Pro Ultra","Songti SC","Songti TC","Sonic XBd BT","SonicCutThru Hv BT","Sorts Mill Goudy","Souvenir Lt BT","Space Age","Space Bd BT","Special Elite","Spicy Rice","Spirituality","Splash","Square721 BT","Staccato222 BT","Standard Symbols L","Starliner BTN","Steamer","Stencil Std","Stephen","Steppes TT","Stez Sans","Stone Sans ITC TT","Stone Sans Sem ITC TT","Storybook","Stylus BT","Subway","Sue Ellen Francisco","Sugarskin BTN","Sukhumvit Set","Sun-ExtA","Superclarendon","Supernatural Knight","Suruma","SutonnyMJ","SutonnyOMJ","Swis721 BT","Swis721 BdCnOul BT","Swis721 BdOul BT","Swis721 Blk BT","Swis721 BlkCn BT","Swis721 BlkEx BT","Swis721 BlkOul BT","Swis721 Cn BT","Swis721 Ex BT","Swis721 Hv BT","Swis721 Lt BT","Swis721 LtCn BT","Swis721 LtEx BT","Swiss 721 Bold BT","Swiss911 XCm BT","Swiss921 BT","Syastro","Symap","Symath","Symbol MT","Symbol Neu for Powerline","Symbol Tiger","Symbol Tiger Expert","SymbolMono BT","SymbolProp BT","Symbola","Symeteo","Symusic","Synchro LET","System Font Bold G1","TAB","TAC-Barathi","TAC-Kabilar","TAC-Kambar","TAC-Valluvar","TAM","TAM-Kavi","TAM-Shree800","TAMElango","TAMILFIX","TAMILNET","TAMLKamban","TAU-Barathi","TAU-Kabilar","TAU-Kambar","TAU-Kaveri","TAU-Valluvar","TG Pagella Math","TG Termes Math","TITUS Cyberbit Basic","TL-TTHemalatha","TLArabic","TLPashto","TLUrdu","TM-TTValluvar","TMBW-TTValluvar","TRIAL","TSCu","TURK","Tahoma Negreta","TakaoPGothic","Tall Boy 3D","Tall Boy West","Tamburo","Tamil MN","Tamil-Aiswarya","Tangerine","TanglewoodTales","Tarzan","TeX","TeX Gyre Adventor","TeX Gyre Bonum","TeX Gyre Bonum Math","TeX Gyre Chorus","TeX Gyre Heros","TeX Gyre Pagella","TeX Gyre Pagella Math","TeX Gyre Schola","TeX Gyre Termes","TeX Gyre Termes Math","TeamViewer10","TeamViewer7","TeamViewer8","TeamViewer9","Technic","TechnicBold","TechnicLite","Technical","Teen","Tekton Pro","Tele-Marines","Teletype","Telugu MN","Tera Special","Terminal Greek 737 (437G)","Terminal Greek 869","Terminator Real NFI","Terminator Two","TextilePiEF","Thanhoa","Theatre Antoine","Thonburi","ThoolikaUnicode","Thorndale AMT","Thorndale for VST","Throw My Hands Up in the Air","Tiger","Tiger Expert","TimeA1","Timeless","Times CE","Times CY","Times New Roman (Arabic)","Times New Roman Baltic","Times New Roman CE","Times New Roman CYR","Times New Roman Greek","Times New Roman PS","Times New Roman Symbol","Times New Roman TUR","Times New Roman Uni","TimesTen","Tinos for Powerline","Tiranti Solid LET","Titan One","Titillium","TitilliumText22L-Bold","Tlwg Mono","Tlwg Typewriter","Tlwg Typist","Tlwg Typo","TlwgMono","TlwgTypewriter","Toledo","Trade Gothic LT Std","Trajan Pro","Trattatello","Trebuchet_PFL","Tristan","Trocchi","True Lies","Tsukushi A Round Gothic","Tsukushi B Round Gothic","TtsNote","Tubular","Tuyenduc","Twemoji Mozilla","Txt","Type Embellishments One LET","Type Embellishments One LET Embellishments One LET Plain:1.0","TypoUpright BT","URW Antiqua T","URW Bookman L","URW Chancery L","URW Gothic L","URW Grotesk T","URW Palladio L","Ubuntu","Ubuntu Mono derivative Powerline","Ultra","Ume Gothic","Ume Mincho","Ume P Gothic","Ume P Mincho","Ume UI Gothic","Umpush","UnBatang","UnDinaru","UnDotum","UnGraphic","UnGungseo","UnPilgi","Uncial Antiqua","Unicorn","UnitedStates","UniversalMath1 BT","University Roman Alts LET","University Roman
2LET","Unknown Caller BTN SC","Untitled1","Uqammaq","Urdu Naskh Asiatype","Urvasi","Uttara","VAGRounded BT","VANAVIL-Avvaiyar","VISCII Sample Font","VL Gothic","VL PGothic","VN-NTime","VNI Aptima","VNI Cambodia","VNI Greece","VNI Helve","VNI Helve Condense","VNI Laos","VNI Russia","VNI Times","VNI-Algerian","VNI-Allegie","VNI-Aptima","VNI-Arial Rounded","VNI-Ariston","VNI-Auchon","VNI-Avo","VNI-Awchon","VNI-Aztek","VNI-Bandit","VNI-Bauhaus","VNI-Baybuom","VNI-Bazooka","VNI-Bodon","VNI-Bodon-Poster","VNI-Book","VNI-Bragga","VNI-Briquet","VNI-Broad","VNI-Brush","VNI-Butlong","VNI-Centur","VNI-Chaucer","VNI-Colonna","VNI-Commerce","VNI-Cooper","VNI-Coronet","VNI-Couri","VNI-DOS Sample Font","VNI-DesdemonaU","VNI-Disney","VNI-Diudang","VNI-Dom","VNI-Duff","VNI-Dur","VNI-Fato","VNI-Fillmore","VNI-Franko","VNI-Free","VNI-Garam","VNI-GlabXb","VNI-Goudy","VNI-HLThuphap","VNI-Harrington","VNI-Heather","VNI-Helve","VNI-Helve-Condense","VNI-Hobo","VNI-Internet Mail","VNI-Jamai","VNI-Juni","VNI-Korin","VNI-Kun","VNI-Linus","VNI-Lithos","VNI-Lydi","VNI-Maria","VNI-Matisse","VNI-Meli","VNI-Murray","VNI-Netbut","VNI-Nhatban","VNI-OngDoHL","VNI-Palatin","VNI-Park","VNI-Present","VNI-Revue","VNI-Scribble","VNI-Script","VNI-Shadow","VNI-ShellaL","VNI-Slogan","VNI-Souvir","VNI-StageCoach","VNI-Standout","VNI-StencilU","VNI-Stylus","VNI-Swiss-Condense","VNI-Tekon","VNI-Thanhcao","VNI-Thufap1","VNI-Thufap2","VNI-Thufap3","VNI-Thufapfan","VNI-Times","VNI-Top","VNI-Truck","VNI-Tubes","VNI-Univer","VNI-Vari","VNI-Viettay","VNI-Vivi","VNI-WIN Sample Font","VNI-Whimsy","VNI-Wide Latin","VNI-Yahoo","VNI-Zap","VNtimes new roman","Vagabond","Valerie Hand","Valken","Valluvan","Vanilla","Vemana2000","Ventilla Script","Verdana Pro","Verdana Pro Cond","Verona","Vikatan","Vineta BT","Vinhan","Violetta","Virtual DJ","Visitor TT1 BRK","Visitor TT2 BRK","Visual Geez Unicode","Visual Geez Unicode Agazian","Visual Geez Unicode Title","VnTimes","VnTimes2","Vodafone Rg","Vogue","Vonique 64","Voyager NBP","WP Arabic Sihafa","WP ArabicScript Sihafa","WP BoxDrawing","WP CyrillicA","WP CyrillicB","WP Greek Century","WP Greek Courier","WP Greek Helve","WP Hebrew David","WP IconicSymbolsA","WP IconicSymbolsB","WP Japanese","WP MathA","WP MathB","WP MathExtendedA","WP MathExtendedB","WP MultinationalA Courier","WP MultinationalA Helve","WP MultinationalB Courier","WP MultinationalB Helve","WP Phonetic","WP TypographicSymbols","WST","WST_Czec","WST_Engl","WST_Fren","WST_Germ","WST_Ital","WST_Span","WST_Swed","Walter","Waree","Warnock Pro","Warnock Pro SmBd","Warsaw","Waseem","Waverly","Wawati SC","Wawati TC","Web Serveroff","Webdunia","Weibei SC","Weibei TC","Wellfleet","WenQuanYi Micro Hei","WenQuanYi Micro Hei Mono","Western Bang Bang","Whimsy TT","Wolf in the City","Woodcut","X-Files","XITS Math","Xerox Malfunction BRK","Xingkai SC","Xirod","Xpress Heavy SF","Xpress SF","YD2002","Year supply of fairy cakes","Yellowtail","Yeseva One","Yu Gothic UI","YuCiril Helvetica","YuGothic","YuMincho","YuMincho Demibold","Yuanti SC","Yuanti TC","Yuppy SC","Yuppy TC","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","ZDingbats","ZWAdobeF","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","ZapfHumnst Ult BT","Zapfino Extra LT Four","Zapfino Extra LT Ligatures","Zapfino Extra LT One","Zapfino Extra LT Two","Zirkon","Zolano Sans BTN","Zolano Serif BTN","Zurich BlkEx BT","Zurich Ex BT","Zuzumbo","academy engraved let","ae","akaDora","amaze","at most sphere","athletic","balonez fantasia","balonez fantasia br","balthazar","bart","bimini","boot","cafeta","ceriph 05","ceriph 07","chs","cht","classic 10","cmb10","cmbsy10","cmbsy6","cmbsy7","cmbsy8","cmbsy9","cmbx10","cmbx12","cmbx5","cmbx6","cmbx7","cmbx8","cmbx9","cmbxsl10","cmbxti10","cmcsc10","cmcsc8","cmcsc9","cmdunh10","cmex10","cmex7","cmex8","cmex9","cmff10","cmfi10","cmfib8","cminch","cmitt10","cmmi10","cmmi12","cmmi5","cmmi6","cmmi7","cmmi8","cmmi9","cmmib10","cmmib6","cmmib7","cmmib8","cmmib9","cmr10","cmr12","cmr17","cmr5","cmr6","cmr7","cmr8","cmr9","cmsl10","cmsl12","cmsl8","cmsl9","cmsltt10","cmss10","cmss12","cmss17","cmss8","cmss9","cmssbx10","cmssdc10","cmssi10","cmssi12","cmssi17","cmssi8","cmssi9","cmssq8","cmssqi8","cmsy10","cmsy10orig","cmsy5","cmsy6","cmsy7","cmsy8","cmsy9","cmtcsc10","cmtex10","cmtex8","cmtex9","cmti10","cmti12","cmti7","cmti8","cmti9","cmtt10","cmtt12","cmtt8","cmtt9","cmu10","cmvtt10","cnefont","cnefonts","copy 08","copy 09","copy 10","croissant sandwich","cursive","dbldwrsw","euex10","euex7","euex8","euex9","eufb10","eufb5","eufb6","eufb7","eufb8","eufb9","eufm10","eufm5","eufm6","eufm7","eufm8","eufm9","eurb10","eurb5","eurb6","eurb7","eurb8","eurb9","eurm10","eurm5","eurm6","eurm7","eurm8","eurm9","eusb10","eusb5","eusb6","eusb7","eusb8","eusb9","eusm10","eusm5","eusm6","eusm7","eusm8","eusm9","fakefont2","fantasy","fox in the snow","future","gargi","header 08","header 17","hooge 04","hooge 05","hooge 06","iso 08","jpn","kawoszeh","kor","kroeger 04","kroeger 05","kroeger 06","kroeger 07","lcircle10","lcirclew10","lcmss8","lcmssb8","lcmssi8","lettau 06","line10","linew10","mixtapeMike","modstmary10","mono 07","mono 08","monoeger 05","monofur bold for Powerline","monofur for Powerline","monofur italic for Powerline","monooge 05","mry","mry_KacstQurn","msam10","msam5","msam6","msam7","msam8","msam9","msbm10","msbm5","msbm6","msbm7","msbm8","msbm9","olddreadfulno7 bt","orange let","ori1Uni","pump demi bold let","roland","sans-serif","saxMono","schoenecker 10","scruff let","serif","short hand","signs normal","simpson","smart watch","spinwerad","standard 07","standard 09","stmary10","superfrench","surfer","terk","trendy","type 07","uni 05","victorian let","vivian","w01","western","westwood let","Univers CE 5
25 Medium","Futura Bk BT","AcademyEngravedLetPlain","AlBayanPlain","AlTarikh","AppleSDGothicNeo-Regular","Athelas-Regular","AvenirNext-Regular","Avenir-Roman","BigCaslon-Medium","BradleyHandITCTT-Bold","BrushScriptMT","ChalkboardSE-Regular","Charter-Roman","DecotypeNaskh","DINAlternate-Bold","DiwanKufi","DiwanThuluth","Futura-Medium","GeezaPro","STHeitiSC-Medium","STHeitiTC-Medium","HiraKakuPro-W3","HiraMinPro-W3","HiraginoSans-W3","IowanOldStyle-Roman","ITFDevanagariMarathi","ITFDevanagari","Kefa-Regular","KohinoorDevanagari-Regular","Marion-Regular","MarkerFelt-Thin","Menlo-Regular","DiwanMishafiGold","DiwanMishafi","Noteworthy-Light","NotoSansGothic-Regular","NotoSansLinearB-Regular","NotoSerifAhom-Regular","Optima-Regular","PartyLetPlain","Phosphate-Regular","PingFangHK-Regular","PingFangSC-Regular","PingFangTC-Regular","SavoyeLetPlain","SignPainter-HouseScript","Skia-Regular","SongtiSC-Regular","SongtiTC-Regular","STIXGeneral-Regular","STIXIntegralsD-Regular","STIXIntegralsSM-Regular","STIXIntegralsUp-Regular","STIXIntegralsUpD-Regular","STIXIntegralsUpSM-Regular","STIXNonUnicode-Regular","STIXSizeFiveSym-Regular","STIXSizeFourSym-Regular","STIXSizeOneSym-Regular","STIXSizeThreeSym-Regular","STIXSizeTwoSym-Regular","STIXVariants-Regular","SukhumvitSet-Text","Superclarendon-Regular","Aptos","Bebas Neue","Bitter","Chivo","Crimson Pro","DM Sans","EB Garamond","Exo 2","Fraunces","Gabarito","Heebo","Josefin Sans","Karla","Lora","Manrope","Merriweather","Mulish","Playfair Display","Public Sans","Red Hat Display","Rubik","Space Grotesk","Spectral","Syne","Tinos","Varela Round","Work Sans","Cardo","Lexend","Sora","Nexa Rust","HoloLens MDL2 Assets","Ink Free","Lucid Sans","Neuropol","Sitka","Segoe Fluent Icons","Kohinoor Devanagari Medium","PingFang HK Light","American Typewriter Semibold","Futura Bold","SignPainter-HouseScript Semibold","InaiMathi Bold","Galvji","MuktaMahee Regular","Noto Sans Gunjala Gondi Regular","Noto Sans Masaram Gondi Regular","Noto Serif Yezidi Regular","Apple SD Gothic Neo ExtraBold","STIX Two Math Regular","STIX Two Text Regular","Noto Sans Canadian Aboriginal Regular","Akaya Kanadaka","Kannada MN","Adelle Sans Devanagari","Kohinoor Bangla","Baloo Bhaina 2","Katari","Chilanka","MONO"]}},512:function(e){"use strict";e.exports=function(e,t,n,r){var o=self||window;try{try{var i;try{i=new o.Blob([e])}catch(t){(i=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(e),i=i.getBlob()}var a=o.URL||o.webkitURL,u=a.createObjectURL(i),s=new o[t](u,n);return a.revokeObjectURL(u),s}catch(r){return new o[t]("data:application/javascript,".concat(encodeURIComponent(e)),n)}}catch(e){if(!r)throw Error("Inline worker is not supported");return new o[t](r,n)}}},753:function(e){"use strict";
2e.exports=JSON.parse('{"login":"0001","log in":"0001","sign in":"0001","username":"0001","password":"0001","email address":"0001","forgot password":"0001","remember me":"0001","secure login":"0001","payment":"0002","pay now":"0002","make payment":"0002","due amount":"0002","bill":"0002","invoice":"0002","payee":"0002","credit card":"0002","debit card":"0002","confirm payment":"0002","add payee":"0003","new payee":"0003","beneficiary name":"0003","bank account number":"0003","ifsc code":"0003","sort code":"0003","iban":"0003","routing number":"0003","save payee":"0003","otp":"0004","one-time password":"0004","verification code":"0004","enter code":"0004","sms code":"0004","email code":"0004","auth code":"0004","2fa":"0004","enroll":"0005","enrollment":"0005","sign up":"0005","register":"0005","create account":"0005","start enrollment":"0005","onboarding":"0005","set up account":"0005","loan":"0006","apply for loan":"0006","loan application":"0006","emi":"0006","installment":"0006","loan calculator":"0006","loan details":"0006","loan offer":"0006","cardless":"0007","withdraw cash":"0007","atm code":"0007","cash withdrawal":"0007","without card":"0007","generate code":"0007","atm access code":"0007","change phone":"0008","update phone number":"0008","new phone number":"0008","verify phone":"0008","mobile number change":"0008","change password":"0009","update password":"0009","new password":"0009","current password":"0009","reset password":"0009","confirm password":"0009","edit profile":"0010","update details":"0010","change information":"0010","modify details":"0010","update personal info":"0010","change user info":"0010","change email":"0011","update email":"0011","new email address":"0011","verify email":"0011","email confirmation":"0011","confirm email":"0011","change address":"0012","update address":"0012","new address":"0012","billing address":"0012","shipping address":"0012","address details":"0012"}')},727:function(e){"use strict";e.exports=JSON.parse('{"attributes":["class","name","id","type","data-bb","data-bc","label","placeholder","aria-label","data-label","aria-describedby","title","autocomplete","data-placeholder","data-hint","aria-placeholder","aria-labelledby","formcontrolname","role","data-type","data-field","data-name","inputmode","data-test-id","data-value","data-format"]}')},542:function(e){"use strict";e.exports=JSON.parse('{"username":"0001","user name":"0001","user-name":"0001","user_id":"0001","userid":"0001","user-id":"0001","login name":"0001","loginname":"0001","login_id":"0001","loginid":"0001","login-user":"0001","login_user":"0001","account name":"0001","accountname":"0001","account_name":"0001","account id":"0006","accountid":"0006","account_id":"0001","uname":"0001","member id":"0120","password":"0002","pass word":"0002","pass-word":"0002","passwd":"0002","pwd":"0002","p/w":"0002","pword":"0002","pass_code":"0002","passcode":"0002","password_input":"0002","pass input":"0002","password field":"0002","passwordfield":"0002","user password":"0002","userpassword":"0002","account password":"0002","accountpassword":"0002","login password":"0002","loginpassword":"0002","secret password":"0002","otp":"0003","one time password":"0003","one-time password":"0003","onetime password":"0003","one time pin":"0003","one-time pin":"0003","otp code":"0003","otpcode":"0003","verification code":"0128","verify code":"0003","verificationcode":"0003","auth code":"0003","authcode":"0003","authentication code":"0003","2fa code":"0003","two factor code":"0003","two-factor code":"0003","2fa":"0003","security code":"0128","pin code":"0003","amount":"0004","payment amount":"0004","transfer amount":"0004","total amount":"0004","money":"0004","value":"0004","sum":"0004","price":"0004","fee":"0004","charge":"0004","cost":"0004","amount due":"0004","balance":"0004","payable amount":"0004","bill amount":"0004","transaction amount":"0004","withdrawal amount":"0004","deposit amount":"0004","loan amount":"0004","subtotal":"0004","new payee":"0005","add payee":"0005","payee name":"0005","payee":"0005","recipient name":"0005","recipient":"0005","beneficiary":"0005","beneficiary name":"0005","payee account":"0005","payee_account":"0005","recipient account":"0005","recipient_account":"0005","payee id":"0005","payeeid":"0005","beneficiary id":"0005","beneficiaryid":"0005","new recipient":"0005","add beneficiary":"0005","payee details":"0005","recipient details":"0005","account number":"0006","acc number":"0006","acct number":"0006","account no":"0006","account #":"0006","account#":"0006","accountnum":"0006","accountnum#":"0006","bank account":"0006","bankaccount":"0006","bank account number":"0006","bankaccountnumber":"0006","accountnumbr":"0006","acct no":"0006","acct#":"0006","acctno":"0006","account identifier":"0006","account code":"0006","change password":"
20007","update password":"0007","reset password":"0007","new password":"0007","set password":"0007","create password":"0007","re-enter password":"0007","confirm password":"0007","modify password":"0007","password change":"0007","password reset":"0007","password update":"0007","change passcode":"0007","update passcode":"0007","reset passcode":"0007","change pwd":"0007","update pwd":"0007","reset pwd":"0007","change secret":"0007","update secret":"0007","change phone":"0008","update phone":"0008","new phone":"0008","phone update":"0008","change number":"0008","phone number change":"0008","update number":"0008","modify phone":"0008","modify number":"0008","phone change":"0008","phone edit":"0008","edit phone":"0008","replace phone":"0008","replace number":"0008","new phone number":"0008","add phone number":"0008","set phone number":"0008","set phone":"0008","phone update request":"0008","update mobile":"0008","change email":"0009","update email":"0009","new email":"0009","email update":"0009","change e-mail":"0009","e-mail update":"0009","email address change":"0009","update email address":"0009","change email address":"0009","modify email":"0009","modify e-mail":"0009","edit email":"0009","email change":"0009","replace email":"0009","new email address":"0009","set email":"0009","update mail":"0009","change mail":"0009","mail update":"0009","email modifications":"0009","change address":"0010","update address":"0010","new address":"0010","address update":"0010","edit address":"0010","modify address":"0010","replace address":"0010","address change":"0010","address edit":"0010","address modification":"0010","set address":"0010","update location":"0010","change location":"0010","new location":"0010","location update":"0010","shipping address change":"0010","billing address change":"0010","change street":"0010","update street":"0010","change home address":"0010","login":"0011","sign in":"0011","sign-in":"0011","signin":"0011","submit login":"0011","login button":"0011","log in":"0011","log-in":"0011","login submit":"0011","submit credentials":"0011","sign in button":"0011","sign in submit":"0011","connect":"0011","access account":"0011","enter":"0011","enter site":"0011","authenticate":"0011","proceed login":"0011","start session":"0011","begin session":"0011","first name":"0100","firstname":"0100","given name":"0100","your first name":"0100","first-name":"0100","forename":"0100","christian name":"0100","personal name":"0100","first":"0100","initial name":"0100","givenname":"0100","firstn":"0100","fname":"0100","first name field":"0100","customer first name":"0100","applicant first name":"0100","user first name":"0100","first name input":"0100","first name enter":"0100","first-name-entry":"0100","last name":"0101","lastname":"0101","surname":"0101","family name":"0101","last-name":"0101","l-name":"0101","lname":"0101","second name":"0102","lastn":"0101","last name field":"0101","customer last name":"0101","applicant last name":"0101","user last name":"0101","surname field":"0101","familyname":"0101","last name input":"0101","last name enter":"0101","surname input":"0101","surname enter":"0101","surname entry":"0101","middle name":"0102","middlename":"0102","middle-name":"0102","middle initial":"0102","middleinitial":"0102","m name":"0102","mname":"0102","middle":"0102","middle n.":"0102","middle name field":"0102","middle name input":"0102","middle name enter":"0102","middle name entry":"0102","mi":"0102","middle initial field":"0102","middleinitial field":"0102","middle initial input":"0102","middle initial entry":"0102","m.i.":"0102","email":"0103","email address":"0103","e-mail":"0103","mail address":"0103","your email":"0103","your e-mail":"0103","email id":"0103","emailid":"0103","email_id":"0103","mail id":"0103","mailid":"0103","mail_id":"0103","emailaddress":"0103","email addr":"0103","email field":"0103","email input":"0103","email enter":"0103","email entry":"0103","emailaccount":"0103","email account":"0103","ssn":"0104","social security number":"0104","social security #":"0104","ssn number":"0104","soc sec number":"0104","social-sec-number":"0104","social security no":"0104","ss no":"0104","ss#":"0104","ss number":"0104","socsec":"0104","social security id":"0104","social security identifier":"0104","social security code":"0104","ssnid":"0104","ssn id":"0104","ssn field":"0104","ssn input":"0104","ssn enter":"0104","ssn entry":"0104","phone number":"0105","phone":"0105","mobile number":"0105","mobile":"0105","telephone":"0105","cell number":"0105","cellphone":"0105","your phone":"0105","contact number":"0105","contact #":"0105","phone no":"0105","phone#":"0105","tel":"0105","tel number":"0105","telephone number":"0105","mobile phone":"0105","cell":"0105","cell phone":"0105","phone field":"0105","phone input":"0105","street address":"
20106","address":"0106","home address":"0106","residential address":"0106","mailing address":"0106","your address":"0106","street":"0106","street address line":"0106","streetaddr":"0106","address line":"0106","street address field":"0106","street address input":"0106","address field":"0106","address input":"0106","address enter":"0106","address entry":"0106","house address":"0106","road address":"0106","streetname":"0106","street line":"0106","dob":"0107","date of birth":"0107","birth date":"0107","full dob":"0107","your birthdate":"0107","birthdate":"0107","birth date full":"0107","full date of birth":"0107","dob full":"0107","dob field":"0107","dob input":"0107","dob enter":"0107","birthdate field":"0107","birthday":"0107","birthday full":"0107","birthday date":"0107","date-of-birth":"0107","birth date input":"0107","birth date entry":"0107","dob complete":"0107","dob day":"0108","birth day":"0108","day of birth":"0108","birth day of month":"0108","day of month":"0108","dob-day":"0108","birth day field":"0108","birth day input":"0108","day field":"0108","day input":"0108","dob day field":"0108","birth day entry":"0108","day birth":"0108","day dob":"0108","birth-day":"0108","dayofbirth":"0108","day-of-birth":"0108","date day":"0108","day value":"0108","dob d":"0108","dob month":"0109","birth month":"0109","month of birth":"0109","month born":"0109","dob-month":"0109","birth month field":"0109","month field":"0109","month input":"0109","month entry":"0109","dob mth":"0109","dob m":"0109","month dob":"0109","birth-month":"0109","monthofbirth":"0109","month-of-birth":"0109","month value":"0109","month dob field":"0109","month dob input":"0109","birth mth":"0109","dob month value":"0109","dob year":"0110","birth year":"0110","year of birth":"0110","year born":"0110","dob-year":"0110","birth year field":"0110","year field":"0110","year input":"0110","year entry":"0110","dob yr":"0110","birth-year":"0110","yearofbirth":"0110","year-of-birth":"0110","yr of birth":"0110","dob y":"0110","birthyear":"0110","year value":"0110","dob year field":"0110","year dob":"0110","dob yyyy":"0110","annual income":"0111","income":"0111","yearly income":"0111","salary":"0111","earnings":"0111","yearly salary":"0111","annual salary":"0111","monthly income":"0111","income per year":"0111","yearly earnings":"0111","income yearly":"0111","total income":"0111","gross income":"0111","net income":"0111","income amount":"0111","income field":"0111","income input":"0111","salary amount":"0111","salary field":"0111","salary input":"0111","zip code":"0112","postal code":"0112","zipcode":"0112","zip":"0112","post code":"0112","zip-code":"0112","zip number":"0112","zip no":"0112","postal":"0112","postal no":"0112","postal number":"0112","postalcode":"0112","post code number":"0112","zip field":"0112","zip input":"0112","zip entry":"0112","postcode field":"0112","postal code field":"0112","zip_digit":"0112","zipcode field":"0112","city":"0113","town":"0113","city name":"0113","town name":"0113","your city":"0113","municipality":"0113","city/town":"0113","citytown":"0113","city or town":"0113","locality":"0113","village":"0113","hometown":"0113","city field":"0113","city input":"0113","city entry":"0113","city value":"0113","town field":"0113","town input":"0113","cityname":"0113","city location":"0113","state":"0114","province":"0114","territory":"0114","region":"0114","your state":"0114","state/region":"0114","state name":"0114","province name":"0114","province/state":"0114","county":"0114","state field":"0114","state input":"0114","state entry":"0114","region field":"0114","region input":"0114","regional":"0114","state value":"0114","state id":"0114","statecode":"0114","statecode field":"0114","country":"0115","nation":"0115","country name":"0115","your country":"0115","country/region":"0115","nationality":"0115","nation name":"0115","country field":"0115","country input":"0115","country entry":"0115","country code":"0115","countrycode":"0115","country id":"0115","country identifier":"0115","country of residence":"0115","residing country":"0115","country value":"0115","countryname":"0115","home country":"0115","birth country":"0115","address line 1":"0116","street line 1":"0116","address1":"0116","street address 1":"0116","address first line":"0116","addr line 1":"0116","address line1":"0116","streetline1":"0116","addressl1":"0116","street addr 1":"0116","line1 address":"
20116","address primary":"0116","primary address":"0116","address_part1":"0116","address part 1":"0116","house number":"0116","house no":"0116","block":"0116","building number":"0116","building no":"0116","address line 2":"0117","street line 2":"0117","address2":"0117","street address 2":"0117","address second line":"0117","addr line 2":"0117","address line2":"0117","streetline2":"0117","addressl2":"0117","street addr 2":"0117","line2 address":"0117","secondary address":"0117","secondary addr":"0117","address_part2":"0117","address part 2":"0117","apartment":"0117","apt number":"0117","suite":"0117","unit":"0117","floor":"0117","submit application":"0118","application submit":"0118","apply button":"0118","submit form":"0118","send application":"0118","apply now":"0118","application button":"0118","submit app":"0118","apply":"0118","submit application button":"0118","application submit button":"0118","send form":"0118","submit request":"0118","send request":"0118","proceed":"0118","continue application":"0118","submit":"0118","continue":"0118","next":"0118","finish application":"0118","iban":"0119","international bank account number":"0119","iban number":"0119","iban no":"0119","bank iban":"0119","iban code":"0119","iban field":"0119","iban input":"0119","iban entry":"0119","iban#":"0119","account iban":"0119","account_iban":"0119","iban id":"0119","iban identifier":"0119","iban value":"0119","iban digits":"0119","iban account":"0119","iban acct":"0119","acct iban":"0119","iban code number":"0119","membership id":"0120","membership number":"0120","member number":"0120","membership no":"0120","member no":"0120","membership#":"0120","member#":"0120","membershipid":"0120","memberid":"0120","member identifier":"0120","membership identifier":"0120","membership code":"0120","membership code number":"0120","membership account":"0120","account membership":"0120","membership field":"0120","member field":"0120","membership input":"0120","member input":"0120","mother name":"0121","mother\'s name":"0121","mom name":"0121","mom\'s name":"0121","maternal name":"0121","mothername":"0121","momname":"0121","mother full name":"0121","mother fullname":"0121","mums name":"0121","mother field":"0121","mother input":"0121","mother entry":"0121","mom field":"0121","mom input":"0121","mother\'s full name":"0121","maternal fullname":"0121","mothername field":"0121","mother first name":"0121","mother last name":"0121","routing number":"0122","bank routing number":"0122","routing no":"0122","routing #":"0122","routing code":"0122","bank routing code":"0122","routingnum":"0122","routingnum#":"0122","routing number field":"0122","routing field":"0122","routing input":"0122","routing entry":"0122","aba number":"0122","aba routing":"0122","aba code":"0122","aba routing number":"0122","aba routing no":"0122","transit number":"0122","bank transit number":"0122","transit code":"0122","sort code":"0123","bank sort code":"0123","sortcode":"0123","sort-code":"0123","sort code number":"0123","bank sort code number":"0123","sort code field":"0123","sort code input":"0123","sort code entry":"0123","sort no":"0123","sort#":"0123","bank sort#":"0123","bank sort no":"0123","sort identifier":"0123","bank code":"0123","bank sort identifier":"0123","bank code number":"0123","bank sort":"0123","clearing code":"0123","sort digits":"0123","passport number":"0124","passport no":"0124","passport id":"0124","passport #":"0124","passportnum":"0124","passport#":"0124","passport identifier":"0124","passport code":"0124","passport field":"0124","passport input":"0124","passport entry":"0124","passport document number":"0124","passportdocument":"0124","passport doc no":"0124","passport doc#":"0124","passport serial":"0124","passport serial number":"0124","passport num field":"0124","travel document number":"0124","passport digits":"0124","driving licence number":"0125","driver\'s license number":"0125","driver licence number":"0125","dl number":"0125","drivers license":"0125","driving license":"0125","licence number":"0125","driver license no":"0125","driver license #":"0125","driverlicense":"0125","driving licence no":"0125","dl no":"0125","license number":"0125","driving licence id":"0125","driver id":"0125","driver\'s licence id":"0125","driving permit number":"0125","driving licence field":"0125","dl field":"0125","dl input":"0125","business name":"0126","company name":"0126","organization name":"0126","business":"0126","company":"0126","organization":"0126","enterprise name":"0126","enterprise":"0126","corporate name":"0126","corporate":"0126","businessname":"0126","companyname":"0126","company title":"0126","firm name":"0126","firm":"0126","business title":"0126","business field":"0126","company field":"0126","organization field":"0126","company input":"0126","card number":"0127","credit card number":"0127","debit card number":"0127","card no":"0127","card #":"0127","cardnum":"0127","card#":"0127","card digits":"0127","card id":"0127","card identifier":"0127","cc number":"0127","cc#":"0127","creditcard":"0127","debitcard":"0127","card number field":"0127","card input":"0127","card entry":"0127","payment card number":"0127","card account number":"0127","card acct number":"0127","cvv":"0128","cvc":"0128","card security code":"0128","card cvv":"0128","card cvc":"0128","cvv2":"0128","cvv code":"0128","cvc code":"0128","card code":"0128","card verification value":"0128","card verification code":"0128","card verification":"0128","security number":"0128","card security number":"0128","cvv field":"0128","cvv input":"0128","cvv entry":"0128","cvc2":"0128","card expiration":"0129","expiry date":"0129","expiration date":"0129","card expiry":"0129","expiration":"0129","exp date":"0129","exp":"0129","card exp":"0129","card expiration date":"0129","card expiry date":"0129","expiry":"0129","cardexp":"0129","card exp date":"0129","expdate":"0129","expiration field":"0129","expiry field":"0129","expiration input":"0129","expiry input":"0129","expiration entry":"0129","exp date field":"0129","employer name":"0130","company you work for":"0130","workplace":"0130","work name":"0130","employer":"0130","employername":"0130","company employer":"0130","work employer":"0130","organization employer":"0130","employer field":"0130","employer input":"0130","employer entry":"0130","job employer":"0130","employer company":"0130","employer organization":"0130","employer details":"0130","employer info":"
20130","employer id":"0130","employer title":"0130","employer company name":"0130","security question 1":"0131","security q1":"0131","security question one":"0131","security question first":"0131","first security question":"0131","securityquestion1":"0131","securityquestionone":"0131","sec q1":"0131","sec question 1":"0131","sq1":"0131","security qn1":"0131","sec ques 1":"0131","security question field 1":"0131","security question input 1":"0131","security question 1 field":"0131","question 1":"0131","security quest 1":"0131","personal question 1":"0131","secret question 1":"0131","challenge question 1":"0131","security question 2":"0132","security q2":"0132","security question two":"0132","security question second":"0132","second security question":"0132","securityquestion2":"0132","securityquestiontwo":"0132","sec q2":"0132","sec question 2":"0132","sq2":"0132","security qn2":"0132","sec ques 2":"0132","security question field 2":"0132","security question input 2":"0132","security question 2 field":"0132","question 2":"0132","security quest 2":"0132","personal question 2":"0132","secret question 2":"0132","challenge question 2":"0132","email_confirmation":"0133","email confirmation":"0133","confirm email":"0133","emailConfirm":"0133","confirm email input":"0133","inputConfirmEmail":"0133"}')},60:function(e){"use strict";e.exports=JSON.parse('{"selectors":["input","textarea","select","button"]}')}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.amdO={},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var a={};return function(){"use strict";function n(e){return(n="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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}i.d(a,{default:function(){return vW}});var s,c,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._client=t}return t=e,r=[{key:"getInstance",value:function(t){if(!e._instance){if(!t)throw new Error("clientApi is required for first initialization");e._instance=new e(t)}return e._instance}}],(n=[{key:"start",value:function(e,t,n,r,o){this._client.start(e,t,n,r,o)}},{key:"stop",value:function(){this._client.stop()}},{key:"pause",value:function(){this._client.pause()}},{key:"resume",value:function(){this._client.resume()}},{key:"updateCustomerSessionID",value:function(e){this._client.updateCustomerSessionID(e)}},{key:"changeContext",value:function(e){this._client.changeContext(e)}},{key:"startNewSession",value:function(e){this._client.startNewSession(e)}},{key:"setCoordinatesMasking",value:function(e){this._client.setCoordinatesMasking(e)}},{key:"setCustomerBrand",value:function(e){this._client.setCustomerBrand(e)}},{key:"flush",value:function(){this._client.flush()}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function f(e){return f="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},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}s=l,(c=u(c="_instance"))in s?Object.defineProperty(s,c,{value:null,enumerable:!0,configurable:!0,writable:!0}):s[c]=null;var y=function(e,t,n){return n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),0,[{key:"isSupported",value:function(){return!("undefined"==typeof WeakMap||!window.Worker||!window.MutationObserver)}}]);function h(e){return h="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},h(e)}function m(e){return m="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},m(e)}function v(){!function(n){var o=Date.now?Date.now():+new Date,a=n.performance||{},u=[],s={},c=function(e,t){for(var n=0,r=u.length,o=[];n<r;
2n++)u[n][e]==t&&o.push(u[n]);return o},l=function(e,t){for(var n,r=u.length;r--;)(n=u[r]).entryType!=e||void 0!==t&&n.name!=t||u.splice(r,1)};a.now||(a.now=a.webkitNow||a.mozNow||a.msNow||function(){return(Date.now?Date.now():+new Date)-o}),a.mark||(a.mark=a.webkitMark||function(e){var t={name:e,entryType:"mark",startTime:a.now(),duration:0};u.push(t),s[e]=t}),a.measure||(a.measure=a.webkitMeasure||function(e,t,n){var r,o;if(void 0!==n&&void 0===s[n])throw new SyntaxError("Failed to execute 'measure' on 'Performance': The mark '"+n+"' does not exist.");if(void 0!==t&&void 0===s[t])throw new SyntaxError("Failed to execute 'measure' on 'Performance': The mark '"+t+"' does not exist.");r=s[t]?s[t].startTime:0,o=s[n]?s[n].startTime:a.now(),u.push({name:e,entryType:"measure",startTime:r,duration:o-r})}),a.getEntriesByType||(a.getEntriesByType=a.webkitGetEntriesByType||function(e){return c("entryType",e)}),a.getEntriesByName||(a.getEntriesByName=a.webkitGetEntriesByName||function(e){return c("name",e)}),a.clearMarks||(a.clearMarks=a.webkitClearMarks||function(e){l("mark",e)}),a.clearMeasures||(a.clearMeasures=a.webkitClearMeasures||function(e){l("measure",e)}),n.performance=a,i.amdO&&(void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r))}(self),function(){if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}),!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var e=Object.defineProperty;Object.defineProperty=function(t,n,r){if(e)try{return e(t,n,r)}catch(e){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(t,n,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(t,n,r.set),"value"in r&&(t[n]=r.value),t}}var t,n,r,o;"function"!=typeof Object.defineProperties&&(Object.defineProperties=function(e,t){if(e!==Object(e))throw TypeError("Object.defineProperties called on non-object");var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n]);return e}),"function"!=typeof Object.create&&(Object.create=function(e,t){if("object"!==h(e))throw TypeError();function n(){}n.prototype=e;var r=new n;if(e&&(r.constructor=n),void 0!==t){if(t!==Object(t))throw TypeError();Object.defineProperties(r,t)}return r}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw TypeError("Object.keys called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r<i;){var a;r in o&&(a=o[r],e.call(n,a,r,o)),r++}}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw TypeError("Bind must be called on a function");var t=[].slice,n=t.call(arguments,1),r=this,o=function(){return r.apply(this.prototype&&this instanceof i?this:e,n.concat(t.call(arguments)))};function i(){}return i.prototype=r.prototype,o.prototype=new i,o}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.from||(Array.from=(t=Object.prototype.toString,n=function(e){return"function"==typeof e||"[object Function]"===t.call(e)},r=Math.pow(2,53)-1,o=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),r)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var a,u=o(t.length),s=n(this)?Object(new this(u)):new Array(u),c=0;c<u;)a=t[c],s[c]=i?void 0===r?i(a,c):i.call(r,a,c):a,c+=1;return s.length=u,s})),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var o=0|t,i=Math.max(o>=0?o:r-Math.abs(o),0);function a(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;i<r;){if(a(n[i],e))return!0;
2i++}return!1},configurable:!0,writable:!0}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e}),String.prototype.includes||(String.prototype.includes=function(e,t){if(e instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===t&&(t=0),-1!==this.indexOf(e,t)}),self.MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}(),function(e){!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n};e.WeakMap=function(){function e(e,n){if(!r(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+m(e))}function o(){return Math.random().toString().substring(2)}function i(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}return n(i.prototype,"delete",(function(t){if(e(this,"delete"),!r(t))return!1;var n=t[this._id];return!(!n||n[0]!==t||(delete t[this._id],0))})),n(i.prototype,"get",(function(t){if(e(this,"get"),r(t)){var n=t[this._id];return n&&n[0]===t?n[1]:void 0}})),n(i.prototype,"has",(function(t){if(e(this,"has"),!r(t))return!1;var n=t[this._id];return!(!n||n[0]!==t)})),n(i.prototype,"set",(function(t,o){if(e(this,"set"),!r(t))throw new TypeError("Invalid value used as weak map key");var i=t[this._id];return i&&i[0]===t?(i[1]=o,this):(n(t,this._id,[t,o]),this)})),n(i,"_polyfill",!0),i}()}function r(e){return Object(e)===e}}(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:this)}function b(e){return b="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},b(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function _(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}var w=function(e,t){return t&&g(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._client=t,this._dynamicCdApiLoader=n,this._configMapper=r,this._serverUrlResolver=o,this._remoteConfigurationLoadedCallback=i,v(),!y.isSupported())throw new Error("BioCatchApi: browser is not supported.")}),[{key:"start",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,i=this._serverUrlResolver.resolve(e,t,o),a=this._configMapper.mapStartupConfigurations(i,r),u=this._dynamicCdApiLoader.createCdApi(window);this._client.manualStart(a,i,this._remoteConfigurationLoadedCallback,u,n)}},{key:"stop",value:function(){this._client.stop()}},{key:"pause",value:function(){this._client.pause()}},{key:"resume",value:function(){this._client.resume()}},{key:"updateCustomerSessionID",value:function(e){this._client.updateCustomerSessionID(e)}},{key:"changeContext",value:function(e){this._client.changeContext(e)}},{key:"startNewSession",value:function(e){this._client.startNewSession(e)}},{key:"setCoordinatesMasking",value:function(e){this._client.setCoordinatesMasking(e)}},{key:"setCustomerBrand",value:function(e){this._client.setCustomerBrand(e)}},{key:"flush",value:function(){this._client.flush()}}]);function S(e){return S="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},S(e)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function E(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}var O=function(e,t){return t&&k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"attachCdApi",value:function(e){var t=this.createCdApi(e);e.cdApi=t,e.cdApi.listenToEvents()}},{key:"createCdApi",value:function(e){return{_eventListeners:{},onMessage:function(e){var t=this._eventListeners[e.data.type];if(t)for(var n=0;n<t.length;n++)t[n](e.data.event)},listenToEvents:function(){e.addEventListener?e.addEventListener("message",this.onMessage.bind(this),!0):e.attachEvent("onmessage",this.onMessage.bind(this))},registerSessionNumberChange:function(t){function n(e){var n=e.data;"SNumNotification"===n.type&&t(n.cdSNum)}e.addEventListener?e.addEventListener("message",n,!0):e.attachEvent("onmessage",n)},addEventListener:function(e,t){var n=this._eventListeners[e];n||(n=[],this._eventListeners[e]=n),n.push(t)},removeEventListener:function(e,t){var n=this._eventListeners[e];if(n)for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}},changeContext:function(t){e.postMessage({type:"ContextChange",context:t},e.location.href)},startNewSession:function(t){e.postMessage({type:"ResetSession",resetReason:"customerApi",csid:t},e.location.href)},pauseCollection:function(){e.postMessage({type:"cdChangeState",toState:"pause"},e.location.href)},resumeCollection:function(){e.postMessage({type:"cdChangeState",toState:"run"},e.location.href)},sendMetadata:function(t){e.postMessage({type:"cdCustomerMetadata",data:t},e.location.href)},setCustomerSessionId:function(t){e.postMessage({type:"cdSetCsid",csid:t},e.location.href)},setCustomerBrand:function(t){e.postMessage({type:"cdSetCustomerBrand",brand:t},e.location.href)}}}}]),P={resetSessionApiThreshold:"resetSessionApiThreshold",dataWupDispatchRateSettings:"dataWupDispatchRateSettings",logWupDispatchRateSettings:"logWupDispatchRateSettings",logServerURL:"logAddress",enableMinifiedLogUri:"enableMinifiedLogUri",forceDynamicDataWupDispatchSettings:"forceDynamicDataWupDispatchSettings",wupStatisticsLogIntervalMs:"wupStatisticsLogIntervalMs",serverCommunicationSettings:"serverCommunicationSettings",wupResponseTimeout:"wupResponseTimeout",wupMessageRequestTimeout:"wupMessageRequestTimeout",logMessageRequestTimeout:"logMessageRequestTimeout",collectKeyRegionValue:"collectKeyRegionValue",crossDomainsList:"crossDomainsList",crossDomainsTimeout:"crossDomainsTimeout",isMutationObserver:"isMutationObserver",isEnabled:"isEnabled",slaveChannelHandshakeTimeout:"slaveChannelHandshakeTimeout",slaveAliveMessageInterval:"slaveAliveMessageInterval",collectCustomElementAttribute:"collectCustomElementAttribute",customElementAttribute:"customElementAttribute",enableFramesProcessing:"enableFramesProcessing",enableSameSiteNoneAndSecureCookies:"enableSameSiteNoneAndSecureCookies",wupServerURL:"wupServerURL",recoveryServerURL:"recoveryServerURL",logAddress:"logAddress",isCaptureKeyEvents:"isCaptureKeyEvents",locationEventsTimeoutMsec:"locationEventsTimeoutMsec",heartBeatMessageInterval:"heartBeatMessageInterval",isMotionAroundTouchEnabled:"isMotionAroundTouchEnabled",motionPaddingAroun
2dTouchMSec:"motionPaddingAroundTouchMSec",isMotionOnSessionStart:"isMotionOnSessionStart",motionPaddingOnSessionStartMSec:"motionPaddingOnSessionStartMSec",isVMDetection:"isVMDetection",isScrollCollect:"isScrollCollect",isContextPropsFeature:"isContextPropsFeature",isCrossDomain:"isCrossdomain",gyroEventsThreshold:"gyroEventsThreshold",gyroEventsSamplePeriod:"gyroEventsSamplePeriod",dataQPassWorkerInterval:"dataQPassWorkerInterval",accelerometerEventsSamplePeriod:"accelerometerEventsSamplePeriod",orientationEventsThreshold:"orientationEventsThreshold",orientationEventsSamplePeriod:"orientationEventsSamplePeriod",isAudioDetection:"isAudioDetection",stateChangeEnabled:"stateChangeEnabled",logLevel:"logLevel",enableCustomElementsProcessing:"enableCustomElementsProcessing",enableIncrementalCustomElementMutationScan:"enableIncrementalCustomElementMutationScan",keyEventsMaskSpecialChars:"keyEventsMaskSpecialChars",collectSelectElementBlurAndFocusEvents:"collectSelectElementBlurAndFocusEvents",allowedUnmaskedValuesList:"allowedUnmaskedValuesList",enableUnmaskedValues:"enableUnmaskedValues",wupMessageNumToRetry:"wupMessageNumToRetry",wupRetryOnNetworkFailureOnly:"wupRetryOnNetworkFailureOnly",wupMessageRetryInterval:"wupMessageRetryInterval",wupIncrementalGrowthBetweenFailures:"wupIncrementalGrowthBetweenFailures",wupMaxIntervalBetweenFailures:"wupMaxIntervalBetweenFailures",logMessageNumToRetry:"logMessageNumToRetry",logRetryOnNetworkFailureOnly:"logRetryOnNetworkFailureOnly",logMessageRetryInterval:"logMessageRetryInterval",logIncrementalGrowthBetweenFailures:"logIncrementalGrowthBetweenFailures",logMaxIntervalBetweenFailures:"logMaxIntervalBetweenFailures",cdsNumExpirationTime:"cdsNumExpirationTime",enableCoordinatesMasking:"enableCoordinatesMasking",maskElementsAttributes:"maskElementsAttributes",enableAcknowledgeMessageEvents:"enableAcknowledgeMessageEvents",timeTillClearingElementsBufferQueueTimeout:"timeTillClearingElementsBufferQueueTimeout",acknowledgeDataDispatchingRate:"acknowledgeDataDispatchingRate",isChannelSupportsAckMessageLogic:"isChannelSupportsAckMessageLogic",parentElementSelector:"parentElementSelector",childElementWithCustomAttribute:"childElementWithCustomAttribute",elementDataAttribute:"elementDataAttribute",customButtons:"customButtons",enableElementHierarchy:"enableElementHierarchy",enableElementCategory:"enableElementCategory",agentType:"agentType",collectionMode:"collectionMode",enableWupMessagesHashing:"enableWupMessagesHashing",enableStartupCustomerSessionId:"enableStartupCustomerSessionId",offloadFontsCollectionEnabled:"offloadFontsCollectionEnabled",offloadFontsRemoveDuplicated:"offloadFontsRemoveDuplicated",mutationMaxChunkSize:"mutationMaxChunkSize",mutationChunkDelayMs:"mutationChunkDelayMs",passwordIdMaskingList:"passwordIdMaskingList",elementUniqueIDConfiguration:"elementUniqueIDConfiguration",fontCollection:"fontCollection",useLegacyZeroTimeout:"useLegacyZeroTimeout",useMessageChannelForSlaveComm:"useMessageChannelForSlaveComm",contextMappingStatus:"contextMappingStatus",contextCategories:"contextCategories",elementCategories:"elementCategories",elementAttributes:"elementAttributes",elementSelectors:"elementSelectors",externalWASMModules:"externalWASMModules",enableIncognitoDetection:"enableIncognitoDetection",enableMetricsFeature:"enableMetricsFeature",metricsMainToWorkerFlushIntervalSec:"metricsMainToWorkerFlushIntervalSec",metricsAddress:"metricsAddress",metricsMessageDispatchRateMsec:"metricsMessageDispatchRateMsec",metricsMessageNumToRetry:"metricsMessageNumToRetry",metricsMessageRetryAndTimeoutInterval:"metricsMessageRetryAndTimeoutInterval",isCollectorsV2:"isCollectorsV2",agenticBrowserFonts:"agenticBrowserFonts",agenticDomInjectionBlinkThresholdMs:"agenticDomInjectionBlinkThresholdMs",agenticDomInjectionBlinkTags:"agenticDomInjectionBlinkTags",agenticDomInjectionSuspiciousIds:"agenticDomInjectionSuspiciousIds",collectAgenticPasteSignal:"collectAgenticPasteSignal",enableRandomElementHash:"enableRandomElementHash",speechSynthesisTimeout:"speechSynthesisTimeout",permissionCheckIntervalMs:"permissionCheckIntervalMs",isCursorFeature:"isCursorFeature"};function T(e){return T="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},T(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function j(e){var t=function(e){if("object"!=T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}var M=function(e,t){return t&&C(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._customElementAttribute=t?t[P.customElementAttribute]:null,this._attributesToMask=t?t[P.maskElementsAttributes]:null,this._keyEventsMaskSpecialChars=t?t[P.keyEventsMaskSpecialChars]:null}),[{key:"getCustomElementAttribute",value:function(){return this._customElementAttribute}},{key:"getAttributesToMask",value:function(){return this._attributesToMask}},{key:"getKeyEventsMaskSpecialChars",value:function(){return this._keyEventsMaskSpecialChars}}]);function x(e){return x="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},x(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function A(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}var B=function(e,t){return t&&R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._parentElementSelector=t?t[P.parentElementSelector]:null,this._childElementWithCustomAttribute=t?t[P.childElementWithCustomAttribute]:null,this._elementDataAttribute=t?t[P.elementDataAttribute]:null,this._customButtons=t?t[P.customButtons]:null}),[{key:"getParentElementSelector",value:function(){return this._parentElementSelector}},{key:"getChildElementWithCustomAttribute",value:function(){return this._childElementWithCustomAttribute}},{key:"getElementDataAttribute",value:function(){return this._elementDataAttribute}},{key:"getCustomButtons",value:function(){return this._customButtons}}]),D="wupServerURL",I="enableMinifiedLogUri",L="serverURL",F="customerID",N="mode",U="enableMinifiedWupUri",G="enableMathDetect",W="enableBrowserDisplayDetect",Q="enableGraphCard",H="useLegacyZeroT
2imeout",V={PRIMARY:"primary",SECONDARY:"secondary"};Object.freeze(V);var z={FULL:"full",LEAN:"lean"};Object.freeze(z);var K="updateCsidCommand",q="sendMetricsCommand";function J(e){return J="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},J(e)}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function X(e){var t=function(e){if("object"!=J(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}var Z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){return n&&Y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"hasUserAgentData",value:function(t){return!!((t=void 0!==t?t:e._getNavigator())&&t.userAgentData&&t.userAgentData.brands&&t.userAgentData.brands.length>0)}},{key:"getBrands",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgentData&&t.userAgentData.brands||[]}},{key:"getPlatform",value:function(t){return(t=void 0!==t?t:e._getNavigator())?"platform"in t?t.platform:t.userAgentData&&t.userAgentData.platform?t.userAgentData.platform:null:null}},{key:"getUserAgentDataPlatform",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgentData&&t.userAgentData.platform||null}},{key:"getUserAgent",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgent||""}},{key:"getUserAgentData",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgentData||null}},{key:"_getNavigator",value:function(){return"undefined"!=typeof navigator?navigator:null}}])}();function $(e){return $="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 ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oe(r.key),r)}}function re(e,t,n){return(t=oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e){var t=function(e){if("object"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}Object.freeze({COUNTER:"counter",HISTOGRAM:"histogram",GAUGE:"gauge"});var ie=Object.freeze({HTTP_REQUEST_RESULT:"http_request_result",ERROR_TOTAL:"error_total",MAIN_THREAD_BLOCK:"main_thread_block"}),ae=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){return n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"setWorkerCommunicator",value:function(t){e._workerCommunicator=t}},{key:"configure",value:function(t){e._configurationRepository=t,e._enabled=!0===t.get(P.enableMetricsFeature);var n=t.get(P.metricsMainToWorkerFlushIntervalSec);"number"==typeof n&&n>0&&(e._timerInterval=1e3*n)}},{key:"initializeContext",value:function(t,n){e._storedCid=t,e._storedSdkVersion=n,e._context={cid:t,platform:"js",platformVersion:e._getBrowserInfo(),sdkVersion:n},e._enabled&&(e._workerCommunicator&&e._workerCommunicator.sendAsync(q,{metricsData:te(te({},e._context),{},{metrics:[]})}),e._startTimer())}},{key:"onConfigurationUpdated",value:function(t){if(t){e._enabled=!0===t.get(P.enableMetricsFeature);var n=t.get(P.metricsMainToWorkerFlushIntervalSec);"number"==typeof n&&n>0&&(e._timerInterval=1e3*n),e._enabled?(!e._context&&e._storedCid&&e._storedSdkVersion?e.initializeContext(e._storedCid,e._storedSdkVersion):e._startTimer(),e._sendToWorker()):e._stopTimer()}}},{key:"cleanup",value:function(){e._stopTimer(),e._context=null,e._reset()}},{key:"record",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e._createLabelKey(t,n);e._counters[r]=(e._counters[r]||0)+1}},{key:"setGauge",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e._createLabelKey(t,r);e._gauges[o]=n}},{key:"incrementGauge",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e._createLabelKey(t,r);e._gauges[o]=(e._gauges[o]||0)+n}},{key:"decrementGauge",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e._createLabelKey(t,r);e._gauges[o]=(e._gauges[o]||0)-n}},{key:"recordHistogram",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e._createLabelKey(t,r);
2e._histograms[o]||(e._histograms[o]=[]),e._histograms[o].push(n)}},{key:"recordError",value:function(){e.record(ie.ERROR_TOTAL)}},{key:"_startTimer",value:function(){e._stopTimer(),e._enabled&&(e._timer=setInterval((function(){return e._sendToWorker()}),e._timerInterval))}},{key:"_stopTimer",value:function(){e._timer&&(clearInterval(e._timer),e._timer=null)}},{key:"_sendToWorker",value:function(){if(e._enabled&&e._workerCommunicator&&e._context){var t=e._formatForBackend();t&&(e._workerCommunicator.sendAsync(q,{metricsData:t}),e._reset())}}},{key:"_formatForBackend",value:function(){for(var t=[],n=Object.keys(e._counters),r=0;r<n.length;r++){var o=n[r],i=e._parseLabelKey(o),a=i.name,u=i.labels,s={metricName:a,metricValue:e._counters[o]};u&&(s.extraLabels=u),t.push(s)}for(var c=Object.keys(e._gauges),l=0;l<c.length;l++){var f=c[l],p=e._parseLabelKey(f),d=p.name,y=p.labels,h={metricName:d,metricValue:e._gauges[f]};y&&(h.extraLabels=y),t.push(h)}for(var m=Object.keys(e._histograms),v=0;v<m.length;v++)for(var b=m[v],g=e._parseLabelKey(b),_=g.name,w=g.labels,S=e._histograms[b],k=0;k<S.length;k++){var E={metricName:_,metricValue:S[k]};w&&(E.extraLabels=w),t.push(E)}return 0===t.length?null:te(te({},e._context),{},{metrics:t})}},{key:"_reset",value:function(){e._counters=Object.create(null),e._gauges=Object.create(null),e._histograms=Object.create(null)}},{key:"_createLabelKey",value:function(e,t){var n=t&&0!==Object.keys(t).length?JSON.stringify(Object.entries(t).sort((function(e,t){return e[0].localeCompare(t[0])}))):"[]";return"".concat(e,"|").concat(n)}},{key:"_parseLabelKey",value:function(e){var t=e.indexOf("|"),n=e.substring(0,t),r=e.substring(t+1);return{name:n,labels:"[]"===r?null:Object.fromEntries(JSON.parse(r))}}},{key:"_getBrowserInfo",value:function(){var e=Z.getBrands();if(e.length>0)for(var t=0;t<e.length;t++){var n=e[t].brand,r=e[t].version;if("Google Chrome"===n)return"Chrome ".concat(r);if("Microsoft Edge"===n)return"Edge ".concat(r);if("Opera"===n)return"Opera ".concat(r);if("Firefox"===n)return"Firefox ".concat(r)}var o=Z.getUserAgent();if(!o)return"Unknown";if(o.indexOf("Firefox")>-1){var i=o.match(/Firefox\/(\d+\.\d+)/);return i?"Firefox ".concat(i[1]):"Firefox"}if(o.indexOf("Chrome")>-1&&-1===o.indexOf("Edg")){var a=o.match(/Chrome\/(\d+\.\d+)/);return a?"Chrome ".concat(a[1]):"Chrome"}if(o.indexOf("Safari")>-1&&-1===o.indexOf("Chrome")){var u=o.match(/Version\/(\d+\.\d+)/);return u?"Safari ".concat(u[1]):"Safari"}if(o.indexOf("Edg")>-1){var s=o.match(/Edg\/(\d+\.\d+)/);return s?"Edge ".concat(s[1]):"Edge"}return o.indexOf("MSIE")>-1||o.indexOf("Trident")>-1?"IE":"Unknown"}}])}();function ue(e){return ue="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},ue(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fe(r.key),r)}}function le(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fe(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}re(ae,"_counters",Object.create(null)),re(ae,"_gauges",Object.create(null)),re(ae,"_histograms",Object.create(null)),re(ae,"_workerCommunicator",null),re(ae,"_configurationRepository",null),re(ae,"_context",null),re(ae,"_timer",null),re(ae,"_enabled",!1),re(ae,"_storedCid",null),re(ae,"_storedSdkVersion",null),re(ae,"_timerInterval",1e4);var pe=le((function e(){se(this,e)}),null,[{key:"setLogger",value:function(e){this._logger=e}},{key:"attachSessionIdentifiers",value:function(e){if(this._logger)return this._logger.attachSessionIdentifiers(e)}},{key:"isDebug",value:function(){if(this._logger)return this._logger.isDebug()}},{key:"error",value:function(e,t){this._logger&&this._logger.error(e,t||null)}},{key:"warn",value:function(e,t){this._logger&&this._logger.warn(e,t||null)}},{key:"trace",value:function(e){this._logger&&this._logger.trace(e)}},{key:"debug",value:function(e){this._logger&&this._logger.debug(e)}},{key:"info",value:function(e){this._logger&&this._logger.info(e)}},{key:"shouldLogRetry",value:function(e,t){return 1===e||e>=t||e>0&&!(e&e-1)}},{key:"warnRetry",value:function(e,t,n,r){this.shouldLogRetry(t,n)&&this.warn(e,r)}},{key:"errorRetry",value:function(e,t,n,r){this.shouldLogRetry(t,n)&&this.error(e,r)}},{key:"infoRetry",value:function(e,t,n){this.shouldLogRetry(t,n)&&this.info(e)}}]),de=le((function e(t,n){se(this,e),this._logBridge=t,this._logLevel=n||20,this._sessionIdentifiers={}}),[{key:"attachSessionIdentifiers",value:function(e){Object.assign(this._sessionIdentifiers,e)}},{key:"trace",value:function(e){this._sendToLogBridge(e,10)}},{key:"debug",value:function(e){this._sendToLogBridge(e,10)}},{key:"info",value:function(e){this._sendToLogBridge(e,20)}},{key:"warn",value:function(e,t){this._sendToLogBridge(e,30,t)}},{key:"error",value:function(e,t){ae.recordError(),this._sendToLogBridge(e,40,t)}},{key:"isDebug",value:function(){return 10===this._logLevel}},{key:"updateLogConfig",value:function(e){this._logLevel=e.get(P.logLevel)||this._logLevel,this._logBridge.setLogLevel(this._logLevel),this._logBridge.clearLogEntriesByLogLevel(this._logLevel)}},{key:"_sendToLogBridge",value:function(e,t,n){t>=this._logLevel&&(n&&n.stack&&(e+=" ;stack: ".concat(n.stack)),this._logBridge.log(e,t,this._sessionIdentifiers))}}]);function ye(e){return ye="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},ye(e)}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,me(r.key),r)}}function me(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var ve=function(e,t){return t&&he(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._elementSettings=new M(null==t?void 0:t.elementSettings),this._customInputElementSettings=new B(null==t?void 0:t.customInputElementSettings),this._agentType=this._val
2idateAgentType(null==t||null===(n=t[N])||void 0===n?void 0:n.agentType),this._collectionMode=this._setAgentCollectionMode(null==t||null===(r=t[N])||void 0===r?void 0:r.collectionMode)}),[{key:"getElementSettings",value:function(){return this._elementSettings}},{key:"getCustomInputElementSettings",value:function(){return this._customInputElementSettings}},{key:"getAgentType",value:function(){return this._agentType}},{key:"getAgentMode",value:function(){return this._collectionMode}},{key:"_setAgentCollectionMode",value:function(e){return this._agentType===V.PRIMARY?z.FULL:this._validateAgentMode(e)}},{key:"_validateAgentType",value:function(e){if(Object.values(V).includes(e))return e;var t=V.PRIMARY;return void 0!==e&&pe.warn("Invalid agent type: ".concat(e,". Defaulting to ").concat(t," agent type.")),t}},{key:"_validateAgentMode",value:function(e){if(Object.values(z).includes(e))return e;var t=z.LEAN;return void 0!==e&&pe.warn("Invalid collection mode: ".concat(e,". Defaulting to ").concat(t," collection mode.")),t}}]);function be(e){return be="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},be(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_e(r.key),r)}}function _e(e){var t=function(e){if("object"!=be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==be(t)?t:t+""}var we=function(e,t){return t&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g,_,w,S,k,E,O,P,T,C,j,M,x,R,A,B,D,I){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupServerURL=t,this._logServerURL=n,this._enableFramesProcessing=r,this._enableCustomElementsProcessing=o,this._enableSameSiteNoneAndSecureCookies=i,this._useUrlWorker=a,this._workerUrl=u,this._isWupServerURLProxy=s,this._clientSettings=c,this._collectionSettings=l||new ve,this._enableStartupCustomerSessionId=f,this._mutationMaxChunkSize=p||0,this._mutationChunkDelayMs=d||100,this._passwordIdMaskingList=y,this._enableUnmaskedValues=h||!1,this._allowedUnmaskedValuesList=m||[],this._enableCoordinatesMasking=v||!1,this._isFlutterApp=b||!1,this._enableMinifiedWupUri=void 0===g||g,this._enableMinifiedLogUri=void 0!==_&&_,this._maxShadowDepth=w||0,this._iframeLoadingTimeout=S||5e3,this._elementCategories=k,this._elementAttributes=E,this._elementSelectors=x,this._recoveryServerURL=O||"",this._enableMathDetect=P,this._enableBrowserDisplayDetect=T,this._enableGraphCard=C,this._useLegacyZeroTimeout=j,this._externalWASMModules=M||[],this._restrictedCookieDomains=R||[],this._crossBrandSharedCookieDomain=A,this._enableRandomElementHash="boolean"==typeof B&&B,this._enableIncrementalCustomElementMutationScan=D||!1,this._trustedOrigins=I||[]}),[{key:"getWupServerURL",value:function(){return this._wupServerURL}},{key:"getRecoveryServerURL",value:function(){return this._recoveryServerURL}},{key:"getLogServerURL",value:function(){return this._logServerURL}},{key:"isMinifiedLogUriEnabled",value:function(){return this._enableMinifiedLogUri}},{key:"getEnableFramesProcessing",value:function(){return this._enableFramesProcessing}},{key:"getEnableCustomElementsProcessing",value:function(){return this._enableCustomElementsProcessing}},{key:"getEnableIncrementalCustomElementMutationScan",value:function(){return this._enableIncrementalCustomElementMutationScan}},{key:"getEnableSameSiteNoneAndSecureCookies",value:function(){return this._enableSameSiteNoneAndSecureCookies}},{key:"getUseUrlWorker",value:function(){return this._useUrlWorker}},{key:"getWorkerUrl",value:function(){return this._workerUrl}},{key:"getIsWupServerURLProxy",value:function(){return this._isWupServerURLProxy}},{key:"getClientSettings",value:function(){return this._clientSettings}},{key:"getCollectionSettings",value:function(){return this._collectionSettings}},{key:"getEnableStartupCustomerSessionId",value:function(){return this._enableStartupCustomerSessionId}},{key:"getMutationMaxChunkSize",value:function(){return this._mutationMaxChunkSize}},{key:"getMutationChunkDelayMs",value:function(){return this._mutationChunkDelayMs}},{key:"getPasswordIdMaskingList",value:function(){return this._passwordIdMaskingList}},{key:"isUnmaskedValuesEnabled",value:function(){return this._enableUnmaskedValues}},{key:"getAllowedUnmaskedValuesList",value:function(){return this._allowedUnmaskedValuesList}},{key:"isCoordinatesMaskingEnabled",value:function(){return this._enableCoordinatesMasking}},{key:"isFlutterApp",value:function(){return this._isFlutterApp}},{key:"isMinifiedWupUriEnabled",value:function(){return this._enableMinifiedWupUri}},{key:"getMaxShadowDepth",value:function(){return this._maxShadowDepth}},{key:"getIframeLoadingTimeout",value:function(){return this._iframeLoadingTimeout}},{key:"getElementCategories",value:function(){return this._elementCategories}},{key:"getElementAttributes",value:function(){return this._elementAttributes}},{key:"getElementSelectors",value:function(){return this._elementSelectors}},{key:"isMathDetectEnabled",value:function(){return this._enableMathDetect}},{key:"isBrowserDisplayDetectEnabled",value:function(){return this._enableBrowserDisplayDetect}},{key:"isGraphCardEnabled",value:function(){return this._enableGraphCard}}
2,{key:"getUseLegacyZeroTimeout",value:function(){return this._useLegacyZeroTimeout}},{key:"getExternalWASMModules",value:function(){return this._externalWASMModules}},{key:"getRestrictedCookieDomains",value:function(){return this._restrictedCookieDomains}},{key:"getCrossBrandSharedCookieDomain",value:function(){return this._crossBrandSharedCookieDomain}},{key:"isRandomElementHashEnabled",value:function(){return this._enableRandomElementHash}},{key:"getTrustedOrigins",value:function(){return this._trustedOrigins}}]);function Se(e){return Se="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},Se(e)}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e){if("object"!=Se(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Se(t)?t:t+""}var Oe=function(e,t){return t&&ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"mapStartupConfigurations",value:function(e,t){return new we(e,t.logServerURL,t.enableFramesProcessing,t.enableCustomElementsProcessing,t.enableSameSiteNoneAndSecureCookies,t.useUrlWorker||!1,t.workerUrl||"",t.isWupServerURLProxy||!1,t.clientSettings,new ve(t.collectionSettings),t.enableStartupCustomerSessionId,t.mutationMaxChunkSize||0,t.mutationChunkDelayMs||100,t[P.passwordIdMaskingList],t[P.enableUnmaskedValues]||!1,t[P.allowedUnmaskedValuesList]||[],t[P.enableCoordinatesMasking]||!1,t.isFlutterApp||!1,void 0===t[U]||t[U],void 0!==t[I]&&t[I],t.maxShadowDepth||0,t.iframeLoadingTimeout||5e3,t.elementCategories,t.elementAttributes,t.recoveryServerURL||"",void 0===t[G]||t[G],void 0===t[W]||t[W],void 0===t[Q]||t[Q],void 0!==t[H]&&t[H],t.externalWASMModules||[],t.elementSelectors,t.restrictedCookieDomains||[],t.crossBrandSharedCookieDomain,t.enableRandomElementHash,t.enableIncrementalCustomElementMutationScan,t.trustedOrigins)}}]),Pe="api/v4/wup",Te="client/v3.1/web/wup",Ce=[Pe,Te,"wup"];function je(e){return je="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},je(e)}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Re(r.key),r)}}function Re(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}var Ae=function(e,t){return t&&xe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"resolve",value:function(e,t,n){var r=new URL(e),o=r.pathname,i=Ce,a="";4===n?a="/".concat(Pe):3===n&&(a="/".concat(Te));var u,s=o,c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Me(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)?Me(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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}}}}(i);try{for(c.s();!(u=c.n()).done;){var l=u.value,f=o.indexOf("/"+l);
2if(-1!==f){s=o.substring(0,f);break}}}catch(e){c.e(e)}finally{c.f()}return r.pathname=s.replace(/\/+$/,"")+a,t?r.searchParams.set("cid",t):r.searchParams.has("cid")||console.warn("No cid found, and configuredCustomerID is undefined."),r.toString()}}]);function Be(e){return Be="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},Be(e)}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ie(r.key),r)}}function Ie(e){var t=function(e){if("object"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}var Le,Fe=function(e,t,n){return n&&De(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),0,[{key:"create",value:function(){if(self.XMLHttpRequest&&Object.prototype.hasOwnProperty.call(XMLHttpRequest.prototype,"withCredentials"))return new XMLHttpRequest;if(self.XDomainRequest)return new XDomainRequest;if(!self.XMLHttpRequest)throw new Error("There is no supported http request object");return new XMLHttpRequest}}]);function Ne(e){return Ne="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},Ne(e)}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,We(r.key),r)}}function Ge(e,t,n){return(t=We(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){var t=function(e){if("object"!=Ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ne(t)?t:t+""}var Qe,He,Ve,ze=(Qe=null,function(e,t,n){var r=function(){return t};if(t.toString().indexOf("[native code]")>-1)n(r());else{var o=0,i=function t(){if(Qe.contentWindow){for(var i=Qe.contentWindow,a=e.split("."),u=i,s=0;s<a.length;s++)u=u[a[s]];n(u)}else o<45?(setTimeout(t,o),o++):n(r())};Qe||((Qe=document.createElement("IFRAME")).setAttribute("sandbox","allow-same-origin"),Qe.style.display="none",document.documentElement.appendChild(Qe)),i()}}),Ke=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){return n&&Ue(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"isUndefinedNull",value:function(e){return null==e||void 0===e}},{key:"isBoolean",value:function(e){return"boolean"==typeof e}},{key:"isNumber",value:function(e){return"number"==typeof e}},{key:"addTrustedEventListener",value:function(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r;return o&&o.length>0&&(a=function(t){var n;e.isOriginTrusted(t.origin,o)?r(t):pe.error("origin ".concat(t.origin," for message type ").concat((null===(n=t.data)||void 0===n?void 0:n.type)||"unknown"," was blocked"))}),e.addEventListener(t,n,a,i),a}},{key:"isOriginTrusted",value:function(e,t){if(!e||!t||0===t.length)return!1;if(t.includes(e))return!0;var n;try{n=new URL(e).hostname}catch(e){return!1}return t.some((function(t){return!t.includes("://")&&!!e.startsWith("https://")&&(n===t||n.endsWith(".".concat(t)))}))}},{key:"addEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isPassiveSupported?e.addEventListener(t,n,{capture:r,passive:o,once:i}):e.addEventListener?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}},{key:"removeEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}},{key:"hasProtocol",value:function(e){return e.toLowerCase().startsWith("http://")||e.toLowerCase().startsWith("https://")}},{key:"clearTextFromNumbers",value:function(e){return e?e.replace(/(\d)/g,"*"):""}},{key:"getDropDownListValues",value:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e.options[r].text||e.options[r].value||"";n.push(t.maskText(o,e.id))}return n}},{key:"getDocUrl",value:function(){var t=window.location;return t.protocol+"//"+t.hostname+(t.port?":"+t.port:"")+e.clearTextFromNumbers(t.pathname)}},{key:"getHash",value:function(e){for(var t=0,n=0,r=e.length;n<r;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}},{key:"getRandomHash",value:function(){try{var t,n="undefined"!=typeof globalThis&&globalThis.crypto||null;if(n&&n.randomUUID)t=n.randomUUID();
2else if(n&&n.getRandomValues){var r=new Uint8Array(16);n.getRandomValues(r),r[6]=15&r[6]|64,r[8]=63&r[8]|128;var o=Array.from(r,(function(e){return e.toString(16).padStart(2,"0")})).join("");t="".concat(o.slice(0,8),"-").concat(o.slice(8,12),"-").concat(o.slice(12,16),"-").concat(o.slice(16,20),"-").concat(o.slice(20))}else e._hashCounter=(e._hashCounter||0)+1,t="".concat(Date.now(),"-").concat(e._hashCounter,"-").concat(Math.random());return e.getHash(t)}catch(e){return-1}}},{key:"getTruncatedHash",value:function(e,t){return e?this.murmurhash3(e).toString().substring(t):""}},{key:"getDigestMethod",value:function(e){return"SHA-256"===e&&window.crypto.subtle&&window.crypto.subtle.digest?window.crypto.subtle.digest.bind(crypto.subtle):null}},{key:"digest_sha256",value:function(t){var n=e.getDigestMethod("SHA-256"),r=(new TextEncoder).encode(t);return n?n("SHA-256",r).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")})).catch((function(){return""})):new Promise((function(e){e("")}))}},{key:"murmurhash3",value:function(e,t){var n,r,o,i,a=3&e.length,u=e.length-a;n=t;var s=3432918353,c=461845907;for(i=0;i<u;)o=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,n=27492+(65535&(r=5*(65535&(n=(n^=o=(65535&(o=(o=(65535&o)*s+(((o>>>16)*s&65535)<<16)&4294967295)<<15|o>>>17))*c+(((o>>>16)*c&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(o=0,a){case 3:o^=(255&e.charCodeAt(i+2))<<16;break;case 2:o^=(255&e.charCodeAt(i+1))<<8;break;case 1:n^=o=(65535&(o=(o=(65535&(o^=255&e.charCodeAt(i)))*s+(((o>>>16)*s&65535)<<16)&4294967295)<<15|o>>>17))*c+(((o>>>16)*c&65535)<<16)&4294967295}return n^=e.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0}},{key:"generateUUID",value:function(){var t=e.dateNow(),n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}));return n}},{key:"convertToArrayByMap",value:function(e,t){for(var n=[null],r=0,o=e.length;r<o;r++)n[r+1]=t[e[r]];return n}},{key:"getPostUrl",value:function(e,t,n,r,o,i,a){var u=Fe.create();u instanceof self.XMLHttpRequest?(u.open(t,e,!0),void 0!==a&&(u.timeout=a),u.withCredentials=!1!==i,"POST"===t&&u.setRequestHeader("Content-Type","application/json; charset=utf-8"),u.onreadystatechange=function(){if(4===u.readyState){if(204===u.status)return;200===u.status?r&&r(u.responseText):o&&o(u.responseText)}},u.ontimeout=function(){o&&o("timeout",n)},u.send(n)):(u.onload=function(){r&&r(u.responseText)},u.onerror=function(){o&&o()},u.onprogress=function(){},u.ontimeout=function(){},u.open(t,e,!0),setTimeout((function(){u.send(n)}),0))}},{key:"minutesToMilliseconds",value:function(e){return 60*e*1e3}},{key:"cutDecimalPointDigits",value:function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}}])}();Le=Ke,Ge(Ke,"scriptVersion","2.58.0.4831.631eeea"),Ge(Ke,"isPassiveSupported",function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}()),Ge(Ke,"dateNow",Date.now),Ge(Ke,"setZeroTimeout",(He=[],Ve="Window_"+Le.generateUUID(),Le.addEventListener(window,"message",(function(e){e.data===Ve&&(e.stopPropagation&&e.stopPropagation(),e.returnValue&&(e.returnValue=!1),e.cancelBubble&&(e.cancelBubble=!0),He.shift()())}),!0),function(e){He.push(e),window.postMessage(Ve,self.location.href)})),Ge(Ke,"asyncCall",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this;Le.setZeroTimeout((function(){o.apply(e||window,n)}))})),Ge(Ke,"asyncTimeoutCall",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this;setTimeout((function(){o.apply(e||window,n)}),0)})),Ge(Ke,"StorageUtils",{counter:0,getAndUpdateEventSequenceNumber:function(){return this.counter++},deserialize:function(e){if("string"!=typeof e)return null;try{return JSON.parse(e)}catch(o){return e||null}},getFromLocalStorage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;try{var n=this.deserialize(window.localStorage.getItem(e));return n?n.exp&&Le.dateNow()-n.time>n.exp?(this.removeFromLocalStorage(e),null):void 0===t||t?n.val:n:null}catch(e){return null}},saveToLocalStorage:function(e,t,n){var r={val:t};n&&(r.exp=n,r.time=Le.dateNow());try{window.localStorage.setItem(e,JSON.stringify(r))}catch(e){return null}return r},removeFromLocalStorage:function(e){try{window.localStorage.removeItem(e)}catch(e){return null}},setExpirationInLocalStorage:function(e,t){var n=this.getFromLocalStorage(e);return""===n||null===n?1:this.saveToLocalStorage(e,n,t)?0:-1},getFromSessionStorage:function(e){try{return this.deserialize(window.sessionStorage.getItem(e))||null}catch(e){return null}},saveToSessionStorage:function(e,t){try{return t?(window.sessionStorage.setItem(e,JSON.stringify(t)),t):window.sessionStorage.removeItem(e)}catch(e){return null}},removeFromSessionStorage:function(e){try{window.sessionStorage.removeItem(e)}catch(e){return null}},getCookie:function(e){var t=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie);return t?decodeURIComponent(t[1]):""},setCookie:function(e,t,n,r,o){var i="";if(n){var a=new Date;a.setTime(a.getTime()+n),i="; expires="+a.toUTCString()}for(var u=0,s=location.hostname,c=s.split("."),l="",f=!1;u<=c.length-1&&!f;)s=c.slice(-1-++u).join("."),null!=o&&o.some((function(e){return s===e||e.endsWith(".".concat(s))}))||("localhost"===s?l="":""!==s&&(l="; domain=."+s),f=this.setCookieWithAttributes(e,t,i,l,r));return f||(l="",f=this.setCookieWithAttributes(e,t,i,l,r)),f},setCookieWithAttributes:function(e,t,n,r,o){var i=encodeURIComponent(e)+"="+encodeURIComponent(t)+n+r+"; path=/;";return document.cookie=o?i+" ".concat("SameSite=None;"," ").concat("Secure"):i,this.getCookie(e)===t},setExpirationInCookie:function(e,t,n,r){var o=this.getCookie(e);return""===o||null===o?1:this.setCookie(e,o,t,n,r)?0:-1},removeCookie:function(e){try{document.cookie=e+"=; Max-Age=0"}catch(e){return null}},validateBcId:function(e){return/^([0-9]{13,}-)?[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)?e:null}}),Ge(Ke,"getNativeWindowFn",ze),Ge(Ke,"JQueryUtils",{isJQueryAvailable:function(){return void 0!==window.jQuery},addEventListener:function(e,t,n){jQuery(e).on(t,n)},removeEventListener:function(e,t,n){jQuery(e).off(t,n)}}),Date.now?ze("Date.now",Date.now,(function(e){Ke.dateNow=e})):Ke.dateNow=function(){return(new Date).getTime()};var qe={stopped:"stopped",starting:"starting",started:"started",paused:"paused",faulted:"faulted"},Je=i(512),Ye=i.n(Je);function Xe(){return Ye()('/*! For license information please see worker.js.LICENSE.txt */\n!function(){var e={273:function(e,t,r){var n,i,o,a;function s(e){return s="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},s(e)}a=function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var u=new Error("Cannot find module \'"+a+"\'");throw u.code="MODULE_NOT_FOUND",u}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){r.encode=e("./encode").encode,r.decode=e("./decode").decode,r.Encoder=e("./encoder").Encoder,r.Decoder=e("./decoder").Decoder,r.createCodec=e("./ext").createCodec,r.codec=e("./codec").codec},{"./codec":10,"./decode":12,"./decoder":13,"./encode":15,"./encoder":16,"./ext":20}],2:[function(e,t,r){(function(e){function r(e){return e&&e.isBuffer&&e}t.exports=r(void 0!==e&&e)||r(this.Buffer)||r("undefined"!=typeof window&&window.Buffer)||this.Buffer}).call(this,e("buffer").Buffer)},{buffer:29}],3:[function(e,t,r){r.copy=function(e,t,r,n){var i;r||(r=0),n||0===n||(n=this.length),t||(t=0);var o=n-r;if(e===this&&r<t&&t<n)for(i=o-1;i>=0;i--)e[i+t]=this[i+r];else for(i=0;i<o;i++)e[i+t]=this[i+r];return o},r.toString=function(e,t,r){var n=this,i=0|t;r||(r=n.length);for(var o="",a=0;i<r;)(a=n[i++])<128?o+=String.fromCharCode(a):(192==(224&a)?a=(31&a)<<6|63&n[i++]:224==(240&a)?a=(15&a)<<12|(63&n[i++])<<6|63&n[i++]:240==(248&a)&&(a=(7&a)<<18|(63&n[i++])<<12|(63&n[i++])<<6|63&n[i++]),a>=65536?(a-=65536,o+=String.fromCharCode((a>>>10)+55296,56320+(1023&a))):o+=String.fromCharCode(a));return o},r.write=function(e,t){for(var r=this,n=t||(t|=0),i=e.length,o=0,a=0;a<i;)(o=e.charCodeAt(a++))<128?r[n++]=o:o<2048?(r[n++]=192|o>>>6,r[n++]=128|63&o):o<55296||o>57343?(r[n++]=224|o>>>12,r[n++]=128|o>>>6&63,r[n++]=128|63&o):(o=65536+(o-55296<<10|e.charCodeAt(a++)-56320),r[n++]=240|o>>>18,r[n++]=128|o>>>12&63,r[n++]=128|o>>>6&63,r[n++]=128|63&o);return n-t}},{}],4:[function(e,t,r){function n(e){return new Array(e)}var i=e("./bufferish");(r=t.exports=n(0)).alloc=n,r.concat=i.concat,r.from=function(e){if(!i.isBuffer(e)&&i.isView(e))e=i.Uint8Array.from(e);else if(i.isArrayBuffer(e))e=new Uint8Array(e);else{if("string"==typeof e)return i.from.call(r,e);if("number"==typeof e)throw new TypeError(\'"value" argument must not be a number\')}return Array.prototype.slice.call(e)}},{"./bufferish":8}],5:[function(e,t,r){function n(e){return new o(e)}var i=e("./bufferish"),o=i.global;(r=t.exports=i.hasBuffer?n(0):[]).alloc=i.hasBuffer&&o.alloc||n,r.concat=i.concat,r.from=function(e){if(!i.isBuffer(e)&&i.isView(e))e=i.Uint8Array.from(e);else if(i.isArrayBuffer(e))e=new Uint8Array(e);else{if("string"==typeof e)return i.from.call(r,e);if("number"==typeof e)throw new TypeError(\'"value" argument must not be a number\')}return o.from&&1!==o.from.length?o.from(e):new o(e)}},{"./bufferish":8}],6:[function(e,t,r){function n(e,t,r,n){var s=a.isBuffer(this),u=a.isBuffer(e);if(s&&u)return this.copy(e,t,r,n);if(c||s||u||!a.isView(this)||!a.isView(e))return o.copy.call(this,e,t,r,n);var f=r||null!=n?i.call(this,r,n):this;return e.set(f,t),f.length}function i(e,t){var r=this.slice||!c&&this.subarray;if(r)return r.call(this,e,t);var i=a.alloc.call(this,t-e);return n.call(this,i,0,e,t),i}var o=e("./buffer-lite");r.copy=n,r.slice=i,r.toString=function(e,t,r){return(!u&&a.isBuffer(this)?this.toString:o.toString).apply(this,arguments)},r.write=function(e){return function(){return(this[e]||o[e]).apply(this,arguments)}}("write");var a=e("./bufferish"),s=a.global,u=a.hasBuffer&&"TYPED_ARRAY_SUPPORT"in s,c=u&&!s.TYPED_ARRAY_SUPPORT},{"./buffer-lite":3,"./bufferish":8}],7:[function(e,t,r){function n(e){return new Uint8Array(e)}var i=e("./bufferish");(r=t.exports=i.hasArrayBuffer?n(0):[]).alloc=n,r.concat=i.concat,r.from=function(e){if(i.isView(e)){var t=e.byteOffset,n=e.byteLength;(e=e.buffer).byteLength!==n&&(e.slice?e=e.slice(t,t+n):(e=new Uint8Array(e)).byteLength!==n&&(e=Array.prototype.slice.call(e,t,t+n)))}else{if("string"==typeof e)return i.from.call(r,e);if("number"==typeof e)throw new TypeError(\'"value" argument must not be a number\')}return new Uint8Array(e)}},{"./bufferish":8}],8:[function(e,t,r){function n(e){return o(this).alloc(e)}function i(e){var t=3*e.length,r=n.call(this,t),i=m.write.call(r,e);return t!==i&&(r=m.slice.call(r,0,i)),r}function o(e){return h(e)?y:d(e)?v:l(e)?p:c?y:f?v:p}function a(){return!1}function s(e,t){return e="[object "+e+"]",function(r){return null!=r&&{}.toString.call(t?r[t]:r)===e}}var u=r.global=e("./buffer-global"),c=r.hasBuffer=u&&!!u.isBuffer,f=r.hasArrayBuffer="undefined"!=typeof ArrayBuffer,l=r.isArray=e("isarray");r.isArrayBuffer=f?function(e){return e instanceof ArrayBuffer||b(e)}:a;var h=r.isBuffer=c?u.isBuffer:a,d=r.isView=f?ArrayBuffer.isView||s("ArrayBuffer","buffer"):a;r.alloc=n,r.concat=function(e,t){t||(t=0,Array.prototype.forEach.call(e,function(e){t+=e.length}));var i=this!==r&&this||e[0],o=n.call(i,t),a=0;return Array.prototype.forEach.call(e,function(e){a+=m.copy.call(e,o,a)}),o},r.from=function(e){return"string"==typeof e?i.call(this,e):o(this).from(e)};var p=r.Array=e("./bufferish-array"),y=r.Buffer=e("./bufferish-buffer"),v=r.Uint8Array=e("./bufferish-uint8array"),m=r.prototype=e("./bufferish-proto"),b=s("ArrayBuffer")},{"./buffer-global":2,"./bufferish-array":4,"./bufferish-buffer":5,"./bufferish-proto":6,"./bufferish-uint8array":7,isarray:34}],9:[function(e,t,r){function n(e){return this instanceof n?(this.options=e,void this.init()):new n(e)}function i(e,t){return e&&t?function(){return e.apply(this,arguments),t.apply(this,arguments)}:e||t}function o(e){return new n(e)}var a=e("isarray");r.createCodec=o,r.install=function(e){for(var t in e)n.prototype[t]=i(n.prototype[t],e[t])},r.filter=function(e){return a(e)?function(e){function t(e,t){return t(e)}return e=e.slice(),function(r){return e.reduce(t,r)}}(e):e};var s=e("./bufferish");n.prototype.init=function(){var e=this.options;return e&&e.uint8array&&(this.bufferish=s.Uint8Array),this},r.preset=o({preset:!0})},{"./bufferish":8,isarray:34}],10:[function(e,t,r){e("./read-core"),e("./write-core"),r.codec={preset:e("./codec-base").preset}},{"./codec-base":9,"./read-core":22,"./write-core":25}],11:[function(e,t,r){function n(e){if(!(this instanceof n))return new n(e);if(e&&(this.options=e,e.codec)){var t=this.codec=e.codec;t.bufferish&&(this.bufferish=t.bufferish)}}r.DecodeBuffer=n;var i=e("./read-core").preset;e("./flex-buffer").FlexDecoder.mixin(n.prototype),n.prototype.codec=i,n.prototype.fetch=function(){return this.co
2dec.decode(this)}},{"./flex-buffer":21,"./read-core":22}],12:[function(e,t,r){r.decode=function(e,t){var r=new n(t);return r.write(e),r.read()};var n=e("./decode-buffer").DecodeBuffer},{"./decode-buffer":11}],13:[function(e,t,r){function n(e){return this instanceof n?void o.call(this,e):new n(e)}r.Decoder=n;var i=e("event-lite"),o=e("./decode-buffer").DecodeBuffer;n.prototype=new o,i.mixin(n.prototype),n.prototype.decode=function(e){arguments.length&&this.write(e),this.flush()},n.prototype.push=function(e){this.emit("data",e)},n.prototype.end=function(e){this.decode(e),this.emit("end")}},{"./decode-buffer":11,"event-lite":31}],14:[function(e,t,r){function n(e){if(!(this instanceof n))return new n(e);if(e&&(this.options=e,e.codec)){var t=this.codec=e.codec;t.bufferish&&(this.bufferish=t.bufferish)}}r.EncodeBuffer=n;var i=e("./write-core").preset;e("./flex-buffer").FlexEncoder.mixin(n.prototype),n.prototype.codec=i,n.prototype.write=function(e){this.codec.encode(this,e)}},{"./flex-buffer":21,"./write-core":25}],15:[function(e,t,r){r.encode=function(e,t){var r=new n(t);return r.write(e),r.read()};var n=e("./encode-buffer").EncodeBuffer},{"./encode-buffer":14}],16:[function(e,t,r){function n(e){return this instanceof n?void o.call(this,e):new n(e)}r.Encoder=n;var i=e("event-lite"),o=e("./encode-buffer").EncodeBuffer;n.prototype=new o,i.mixin(n.prototype),n.prototype.encode=function(e){this.write(e),this.emit("data",this.read())},n.prototype.end=function(e){arguments.length&&this.encode(e),this.flush(),this.emit("end")}},{"./encode-buffer":14,"event-lite":31}],17:[function(e,t,r){r.ExtBuffer=function e(t,r){return this instanceof e?(this.buffer=n.from(t),void(this.type=r)):new e(t,r)};var n=e("./bufferish")},{"./bufferish":8}],18:[function(e,t,r){function n(t){return s||(s=e("./encode").encode),s(t)}function i(e){return e.valueOf()}function o(e){(e=RegExp.prototype.toString.call(e).split("/")).shift();var t=[e.pop()];return t.unshift(e.join("/")),t}function a(e){var t={};for(var r in l)t[r]=e[r];return t}r.setExtPackers=function(e){e.addExtPacker(14,Error,[a,n]),e.addExtPacker(1,EvalError,[a,n]),e.addExtPacker(2,RangeError,[a,n]),e.addExtPacker(3,ReferenceError,[a,n]),e.addExtPacker(4,SyntaxError,[a,n]),e.addExtPacker(5,TypeError,[a,n]),e.addExtPacker(6,URIError,[a,n]),e.addExtPacker(10,RegExp,[o,n]),e.addExtPacker(11,Boolean,[i,n]),e.addExtPacker(12,String,[i,n]),e.addExtPacker(13,Date,[Number,n]),e.addExtPacker(15,Number,[i,n]),"undefined"!=typeof Uint8Array&&(e.addExtPacker(17,Int8Array,f),e.addExtPacker(18,Uint8Array,f),e.addExtPacker(19,Int16Array,f),e.addExtPacker(20,Uint16Array,f),e.addExtPacker(21,Int32Array,f),e.addExtPacker(22,Uint32Array,f),e.addExtPacker(23,Float32Array,f),"undefined"!=typeof Float64Array&&e.addExtPacker(24,Float64Array,f),"undefined"!=typeof Uint8ClampedArray&&e.addExtPacker(25,Uint8ClampedArray,f),e.addExtPacker(26,ArrayBuffer,f),e.addExtPacker(29,DataView,f)),u.hasBuffer&&e.addExtPacker(27,c,u.from)};var s,u=e("./bufferish"),c=u.global,f=u.Uint8Array.from,l={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1}},{"./bufferish":8,"./encode":15}],19:[function(e,t,r){function n(t){return u||(u=e("./decode").decode),u(t)}function i(e){return RegExp.apply(null,e)}function o(e){return function(t){var r=new e;for(var n in l)r[n]=t[n];return r}}function a(e){return function(t){return new e(t)}}function s(e){return new Uint8Array(e).buffer}r.setExtUnpackers=function(e){e.addExtUnpacker(14,[n,o(Error)]),e.addExtUnpacker(1,[n,o(EvalError)]),e.addExtUnpacker(2,[n,o(RangeError)]),e.addExtUnpacker(3,[n,o(ReferenceError)]),e.addExtUnpacker(4,[n,o(SyntaxError)]),e.addExtUnpacker(5,[n,o(TypeError)]),e.addExtUnpacker(6,[n,o(URIError)]),e.addExtUnpacker(10,[n,i]),e.addExtUnpacker(11,[n,a(Boolean)]),e.addExtUnpacker(12,[n,a(String)]),e.addExtUnpacker(13,[n,a(Date)]),e.addExtUnpacker(15,[n,a(Number)]),"undefined"!=typeof Uint8Array&&(e.addExtUnpacker(17,a(Int8Array)),e.addExtUnpacker(18,a(Uint8Array)),e.addExtUnpacker(19,[s,a(Int16Array)]),e.addExtUnpacker(20,[s,a(Uint16Array)]),e.addExtUnpacker(21,[s,a(Int32Array)]),e.addExtUnpacker(22,[s,a(Uint32Array)]),e.addExtUnpacker(23,[s,a(Float32Array)]),"undefined"!=typeof Float64Array&&e.addExtUnpacker(24,[s,a(Float64Array)]),"undefined"!=typeof Uint8ClampedArray&&e.addExtUnpacker(25,a(Uint8ClampedArray)),e.addExtUnpacker(26,s),e.addExtUnpacker(29,[s,a(DataView)])),c.hasBuffer&&e.addExtUnpacker(27,a(f))};var u,c=e("./bufferish"),f=c.global,l={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1}},{"./bufferish":8,"./decode":12}],20:[function(e,t,r){e("./read-core"),e("./write-core"),r.createCodec=e("./codec-base").createCodec},{"./codec-base":9,"./read-core":22,"./write-core":25}],21:[function(e,t,r){function n(){if(!(this instanceof n))return new n}function i(){if(!(this instanceof i))return new i}function o(){return this.buffers&&this.buffers.length?(this.flush(),this.pull()):this.fetch()}function a(e){(this.buffers||(this.buffers=[])).push(e)}function s(e){return function(t){for(var r in e)t[r]=e[r];return t}}r.FlexDecoder=n,r.FlexEncoder=i;var u=e("./bufferish"),c="BUFFER_SHORTAGE";n.mixin=s({bufferish:u,write:function(e){var t=this.offset?u.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=t?e?this.bufferish.concat([t,e]):t:e,this.offset=0},fetch:function(){throw new Error("method not implemented: fetch()")},flush:function(){for(;this.offset<this.buffer.length;){var e,t=this.offset;try{e=this.fetch()}catch(e){if(e&&e.message!=c)throw e;this.offset=t;break}this.push(e)}},push:a,pull:function(){return(this.buffers||(this.buffers=[])).shift()},read:o,reserve:function(e){var t=this.offset,r=t+e;if(r>this.buffer.length)throw new Error(c);return this.offset=r,t},offset:0}),n.mixin(n.prototype),i.mixin=s({bufferish:u,write:function(){throw new Error("method not implemented: write()")},fetch:function(){var e=this.start;if(e<this.offset){var t=this.start=this.offset;return u.prototype.slice.call(this.buffer,e,t)}},flush:function(){for(;this.start<this.offset;){var e=this.fetch();e&&this.push(e)}},push:a,pull:function(){var e=this.buffers||(this.buffers=[]),t=e.length>1?this.bufferish.concat(e):e[0];return e.length=0,t},read:o,reserve:function(e){var t=0|e;if(this.buffer){var r=this.buffer.length,n=0|this.offset,i=n+t;if(i<r)return this.offset=i,n;this.flush(),e=Math.max(e,Math.min(2*r,this.maxBufferSize))}return e=Math.max(e,this.minBufferSize),this.buffer=this.bufferish.alloc(e),this.start=0,this.offset=t,0},send:function(e){var t=e.length;if(t>this.minBufferSize)this.flush(),this.push(e);else{var r=this.reserve(t);u.prototype.copy.call(e,this.buffer,r)}},maxBufferSize:65536,minBufferSize:2048,offset:0,start:0}),i.mixin(i.prototype)},{"./bufferish":8}],22:[function(e,t,r){function n(){var e=this.options;return this.decode=function(e){var t=s.getReadToken(e);return function(e){var r=a(e),n=t[r];
2if(!n)throw new Error("Invalid type: "+(r?"0x"+r.toString(16):r));return n(e)}}(e),e&&e.preset&&o.setExtUnpackers(this),this}var i=e("./ext-buffer").ExtBuffer,o=e("./ext-unpacker"),a=e("./read-format").readUint8,s=e("./read-token"),u=e("./codec-base");u.install({addExtUnpacker:function(e,t){(this.extUnpackers||(this.extUnpackers=[]))[e]=u.filter(t)},getExtUnpacker:function(e){return(this.extUnpackers||(this.extUnpackers=[]))[e]||function(t){return new i(t,e)}},init:n}),r.preset=n.call(u.preset)},{"./codec-base":9,"./ext-buffer":17,"./ext-unpacker":19,"./read-format":23,"./read-token":24}],23:[function(e,t,r){function n(e,t){var r,n={},i=new Array(t),o=new Array(t),a=e.codec.decode;for(r=0;r<t;r++)i[r]=a(e),o[r]=a(e);for(r=0;r<t;r++)n[i[r]]=o[r];return n}function i(e,t){var r,n=new Map,i=new Array(t),o=new Array(t),a=e.codec.decode;for(r=0;r<t;r++)i[r]=a(e),o[r]=a(e);for(r=0;r<t;r++)n.set(i[r],o[r]);return n}function o(e,t){for(var r=new Array(t),n=e.codec.decode,i=0;i<t;i++)r[i]=n(e);return r}function a(e,t){var r=e.reserve(t),n=r+t;return C.toString.call(e.buffer,"utf-8",r,n)}function s(e,t){var r=e.reserve(t),n=r+t,i=C.slice.call(e.buffer,r,n);return O.from(i)}function u(e,t){var r=e.reserve(t),n=r+t,i=C.slice.call(e.buffer,r,n);return O.Uint8Array.from(i).buffer}function c(e,t){var r=e.reserve(t+1),n=e.buffer[r++],i=r+t,o=e.codec.getExtUnpacker(n);if(!o)throw new Error("Invalid ext type: "+(n?"0x"+n.toString(16):n));return o(C.slice.call(e.buffer,r,i))}function f(e){var t=e.reserve(1);return e.buffer[t]}function l(e){var t=e.reserve(1),r=e.buffer[t];return 128&r?r-256:r}function h(e){var t=e.reserve(2),r=e.buffer;return r[t++]<<8|r[t]}function d(e){var t=e.reserve(2),r=e.buffer,n=r[t++]<<8|r[t];return 32768&n?n-65536:n}function p(e){var t=e.reserve(4),r=e.buffer;return 16777216*r[t++]+(r[t++]<<16)+(r[t++]<<8)+r[t]}function y(e){var t=e.reserve(4),r=e.buffer;return r[t++]<<24|r[t++]<<16|r[t++]<<8|r[t]}function v(e,t){return function(r){var n=r.reserve(e);return t.call(r.buffer,n,x)}}function m(e){return new P(this,e).toNumber()}function b(e){return new T(this,e).toNumber()}function g(e){return new P(this,e)}function _(e){return new T(this,e)}function w(e){return k.read(this,e,!1,23,4)}function S(e){return k.read(this,e,!1,52,8)}var k=e("ieee754"),E=e("int64-buffer"),P=E.Uint64BE,T=E.Int64BE;r.getReadFormat=function(e){var t=O.hasArrayBuffer&&e&&e.binarraybuffer,r=e&&e.int64;return{map:R&&e&&e.usemap?i:n,array:o,str:a,bin:t?u:s,ext:c,uint8:f,uint16:h,uint32:p,uint64:v(8,r?g:m),int8:l,int16:d,int32:y,int64:v(8,r?_:b),float32:v(4,w),float64:v(8,S)}},r.readUint8=f;var O=e("./bufferish"),C=e("./bufferish-proto"),R="undefined"!=typeof Map,x=!0},{"./bufferish":8,"./bufferish-proto":6,ieee754:32,"int64-buffer":33}],24:[function(e,t,r){function n(e){var t,r=new Array(256);for(t=0;t<=127;t++)r[t]=i(t);for(t=128;t<=143;t++)r[t]=a(t-128,e.map);for(t=144;t<=159;t++)r[t]=a(t-144,e.array);for(t=160;t<=191;t++)r[t]=a(t-160,e.str);for(r[192]=i(null),r[193]=null,r[194]=i(!1),r[195]=i(!0),r[196]=o(e.uint8,e.bin),r[197]=o(e.uint16,e.bin),r[198]=o(e.uint32,e.bin),r[199]=o(e.uint8,e.ext),r[200]=o(e.uint16,e.ext),r[201]=o(e.uint32,e.ext),r[202]=e.float32,r[203]=e.float64,r[204]=e.uint8,r[205]=e.uint16,r[206]=e.uint32,r[207]=e.uint64,r[208]=e.int8,r[209]=e.int16,r[210]=e.int32,r[211]=e.int64,r[212]=a(1,e.ext),r[213]=a(2,e.ext),r[214]=a(4,e.ext),r[215]=a(8,e.ext),r[216]=a(16,e.ext),r[217]=o(e.uint8,e.str),r[218]=o(e.uint16,e.str),r[219]=o(e.uint32,e.str),r[220]=o(e.uint16,e.array),r[221]=o(e.uint32,e.array),r[222]=o(e.uint16,e.map),r[223]=o(e.uint32,e.map),t=224;t<=255;t++)r[t]=i(t-256);return r}function i(e){return function(){return e}}function o(e,t){return function(r){var n=e(r);return t(r,n)}}function a(e,t){return function(r){return t(r,e)}}var s=e("./read-format");r.getReadToken=function(e){var t=s.getReadFormat(e);return e&&e.useraw?function(e){var t,r=n(e).slice();for(r[217]=r[196],r[218]=r[197],r[219]=r[198],t=160;t<=191;t++)r[t]=a(t-160,e.bin);return r}(t):n(t)}},{"./read-format":23}],25:[function(e,t,r){function n(){var e=this.options;return this.encode=function(e){var t=a.getWriteType(e);return function(e,r){var n=t[s(r)];if(!n)throw new Error(\'Unsupported type "\'+s(r)+\'": \'+r);n(e,r)}}(e),e&&e.preset&&o.setExtPackers(this),this}var i=e("./ext-buffer").ExtBuffer,o=e("./ext-packer"),a=e("./write-type"),u=e("./codec-base");u.install({addExtPacker:function(e,t,r){function n(t){return r&&(t=r(t)),new i(t,e)}r=u.filter(r);var o=t.name;o&&"Object"!==o?(this.extPackers||(this.extPackers={}))[o]=n:(this.extEncoderList||(this.extEncoderList=[])).unshift([t,n])},getExtPacker:function(e){var t=this.extPackers||(this.extPackers={}),r=e.constructor,n=r&&r.name&&t[r.name];if(n)return n;for(var i=this.extEncoderList||(this.extEncoderList=[]),o=i.length,a=0;a<o;a++){var s=i[a];if(r===s[0])return s[1]}},init:n}),r.preset=n.call(u.preset)},{"./codec-base":9,"./ext-buffer":17,"./ext-packer":18,"./write-type":27}],26:[function(e,t,r){function n(){var e=v.slice();return e[196]=i(196),e[197]=o(197),e[198]=a(198),e[199]=i(199),e[200]=o(200),e[201]=a(201),e[202]=s(202,4,_.writeFloatBE||f,!0),e[203]=s(203,8,_.writeDoubleBE||l,!0),e[204]=i(204),e[205]=o(205),e[206]=a(206),e[207]=s(207,8,u),e[208]=i(208),e[209]=o(209),e[210]=a(210),e[211]=s(211,8,c),e[217]=i(217),e[218]=o(218),e[219]=a(219),e[220]=o(220),e[221]=a(221),e[222]=o(222),e[223]=a(223),e}function i(e){return function(t,r){var n=t.reserve(2),i=t.buffer;i[n++]=e,i[n]=r}}function o(e){return function(t,r){var n=t.reserve(3),i=t.buffer;i[n++]=e,i[n++]=r>>>8,i[n]=r}}function a(e){return function(t,r){var n=t.reserve(5),i=t.buffer;i[n++]=e,i[n++]=r>>>24,i[n++]=r>>>16,i[n++]=r>>>8,i[n]=r}}function s(e,t,r,n){return function(i,o){var a=i.reserve(t+1);i.buffer[a++]=e,r.call(i.buffer,o,a,n)}}function u(e,t){new p(this,t,e)}function c(e,t){new y(this,t,e)}function f(e,t){h.write(this,e,t,!1,23,4)}function l(e,t){h.write(this,e,t,!1,52,8)}var h=e("ieee754"),d=e("int64-buffer"),p=d.Uint64BE,y=d.Int64BE,v=e("./write-uint8").uint8,m=e("./bufferish"),b=m.global,g=m.hasBuffer&&"TYPED_ARRAY_SUPPORT"in b&&!b.TYPED_ARRAY_SUPPORT,_=m.hasBuffer&&b.prototype||{};r.getWriteToken=function(e){return e&&e.uint8array?function(){var e=n();return e[202]=s(202,4,f),e[203]=s(203,8,l),e}():g||m.hasBuffer&&e&&e.safe?function(){var e=v.slice();return e[196]=s(196,1,b.prototype.writeUInt8),e[197]=s(197,2,b.prototype.writeUInt16BE),e[198]=s(198,4,b.prototype.writeUInt32BE),e[199]=s(199,1,b.prototype.writeUInt8),e[200]=s(200,2,b.prototype.writeUInt16BE),e[201]=s(201,4,b.prototype.writeUInt32BE),e[202]=s(202,4,b.prototype.writeFloatBE),e[203]=s(203,8,b.prototype.writeDoubleBE),e[204]=s(204,1,b.prototype.writeUInt8),e[205]=s(205,2,b.prototype.writeUInt16BE),e[206]=s(206,4,b.prototype.writeUInt32BE),e[207]=s(207,8,u),e[208]=s(208,1,b.prototype.writeInt8),e[209]=s(209,2,b.prototype.writeInt16BE),e[210]=s(210,4,b.prototype.writeInt32BE),e[211]=s(211,8,c),e[217]=s(217,1,b.prototype.writeUInt8),e[218]=s(218,2,b.prototype.writeUInt16BE),e[219]=s(219,4,b.prototype.writeUInt32BE),e[220]=s(220,2,b.prototype.writeUInt16BE),e[221]=s(221,4,b.prototype.writeUInt32BE),e[222]=s(222,2,b.prototype.writeUInt16BE),e[223]=s(223,4,b.prototype.writeUInt32BE),e}():n()}},{"./bufferish":8,"./write-uint8":28,ieee754:32,"int64-buffer":33}],27:[function(e,t,r){var n=e("isarray"),i=e("int64-buffer"),o=i.Uint64BE,a=i.Int64BE,s=e("./bufferish"),u=e("./bufferish-proto"),c=e("./write-token"),f=e("./write-uint8").uint8,l=e("./ext-buffer").ExtBuffer,h="undefined"!=typeof Uint8Array,d="undefined"!=typeof Map,p=[];p[1]=212,p[2]=213,p[4]=214,p[8]=215,p[16]=216,r.getWriteType=function(e){function t(e,t){if(null===t)return r(e,t);if(g(t))return _(e,t);if(n(t))return function(e,t){var r=t.length;v[r<16?144+r:r<=65535?220:221](e,r);for(var n=e.codec.encode,i=0;i<r;i++)n(e,t[i])}(e,t);if(o.isUint64BE(t))return function(e,t){v[207](e,t.toArray())}(e,t);if(a.isInt64BE(t))return function(e,t){v[211](e,t.toArray())}(e,t);var i=e.codec.getExtPacker(t);return i&&(t=i(t)),t instanceof l?function(e,t){var r=t.buffer,n=r.length,i=p[n]||(n<255?199:n<=65535?200:201);v[i](e,n),f[t.type](e),e.send(r)}(e,t):void w(e,t)}function r(e,t){v[192](e,t)}function i(e,t){var r=t.length;v[r<255?196:r<=65535?197:198](e,r),e.send(t)}function y(e,t){var r=Object.keys(t),n=r.length;v[n<16?128+n:n<=65535?222:223](e,n);var i=e.codec.encode;r.forEach(function(r){i(e,r),i(e,t[r])})}var v=c.getWriteToken(e),m=e&&e.useraw,b=h&&e&&e.binarraybuffer,g=b?s.isArrayBuffer:s.isBuffer,_=b?function(e,t){i(e,new Uint8Array(t))}:i,w=d&&e&&e.usemap?function(e,t){if(!(t instanceof Map))return y(e,t);var r=t.size;v[r<16?128+r:r<=65535?222:223](e,r);var n=e.codec.encode;
2t.forEach(function(t,r,i){n(e,r),n(e,t)})}:y,S={boolean:function(e,t){v[t?195:194](e,t)},function:r,number:function(e,t){var r=0|t;return t!==r?void v[203](e,t):void v[-32<=r&&r<=127?255&r:0<=r?r<=255?204:r<=65535?205:206:-128<=r?208:-32768<=r?209:210](e,r)},object:m?function(e,r){return g(r)?function(e,t){var r=t.length;v[r<32?160+r:r<=65535?218:219](e,r),e.send(t)}(e,r):void t(e,r)}:t,string:function(e){return function(t,r){var n=r.length,i=5+3*n;t.offset=t.reserve(i);var o=t.buffer,a=e(n),s=t.offset+a;n=u.write.call(o,r,s);var c=e(n);if(a!==c){var f=s+c-a,l=s+n;u.copy.call(o,o,f,s,l)}v[1===c?160+n:c<=3?215+c:219](t,n),t.offset+=n}}(m?function(e){return e<32?1:e<=65535?3:5}:function(e){return e<32?1:e<=255?2:e<=65535?3:5}),symbol:r,undefined:r};return S}},{"./bufferish":8,"./bufferish-proto":6,"./ext-buffer":17,"./write-token":26,"./write-uint8":28,"int64-buffer":33,isarray:34}],28:[function(e,t,r){function n(e){return function(t){var r=t.reserve(1);t.buffer[r]=e}}for(var i=r.uint8=new Array(256),o=0;o<=255;o++)i[o]=n(o)},{}],29:[function(e,t,n){(function(t){"use strict";function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=o.prototype:(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return a(this,e,t,r)}function a(e,t,r,n){if("number"==typeof t)throw new TypeError(\'"value" argument must not be a number\');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("\'offset\' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("\'length\' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),o.TYPED_ARRAY_SUPPORT?(e=t).__proto__=o.prototype:e=c(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError(\'"encoding" must be a valid string encoding\');var n=0|l(t,r),a=(e=i(e,n)).write(t,r);return a!==n&&(e=e.slice(0,a)),e}(e,t,r):function(e,t){if(o.isBuffer(t)){var r=0|f(t.length);return 0===(e=i(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?i(e,0):c(e,t);if("Buffer"===t.type&&z(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function s(e){if("number"!=typeof e)throw new TypeError(\'"size" argument must be a number\');if(e<0)throw new RangeError(\'"size" argument must not be negative\')}function u(e,t){if(s(t),e=i(e,t<0?0:0|f(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function c(e,t){var r=t.length<0?0:0|f(t.length);e=i(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function f(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function l(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(n)return D(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}
vendor: 16,684 bytes, line 2
2else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,u=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,u/=2,c/=2,r/=2}if(i){var f=-1;for(a=r;a<u;a++)if(o(e,a)===o(t,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===c)return f*s}else-1!==f&&(a-=a-f),f=-1}else for(r+c>u&&(r=u-c),a=r;a>=0;a--){for(var l=!0,h=0;h<c;h++)if(o(e,a+h)!==o(t,h)){l=!1;break}if(l)return a}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function m(e,t,r,n){return U(D(t,e.length-r),e,r,n)}function b(e,t,r,n){return U(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function g(e,t,r,n){return b(e,t,r,n)}function _(e,t,r,n){return U(L(t),e,r,n)}function w(e,t,r,n){return U(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?F.fromByteArray(e):F.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=q)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=q));return r}(n)}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=M(e[o]);return i}function O(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError(\'"buffer" argument must be a Buffer instance\');if(t>i||t<a)throw new RangeError(\'"value" argument is out of bounds\');if(r+n>e.length)throw new RangeError("Index out of range")}function x(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(e,t,r,n,i){return i||j(e,0,r,4),N.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return i||j(e,0,r,8),N.write(e,t,r,n,52,8),r+8}function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function L(e){return F.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,"")}(e).replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}var F=e("base64-js"),N=e("ieee754"),z=e("isarray");n.Buffer=o,n.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=r(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return function(e,t,r,n){return s(t),t<=0?i(e,t):void 0!==r?"string"==typeof n?i(e,t).fill(r,n):i(e,t).fill(r):i(e,t)}(null,e,t,r)},o.allocUnsafe=function(e){return u(null,e)},o.allocUnsafeSlow=function(e){return u(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!z(e))throw new TypeError(\'"list" argument must be an Array of Buffers\');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!o.isBuffer(a))throw new TypeError(\'"list" argument must be an Array of Buffers\');a.copy(n,i),i+=a.length}return n},o.byteLength=l,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):h.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),u=Math.min(a,s),c=this.slice(n,i),f=e.slice(t,r),l=0;l<u;++l)if(c[l]!==f[l]){a=c[l],s=f[l];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return m(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return g(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var q=4096;o.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),o.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=o.prototype;else{var i=t-e;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},o.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),N.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),N.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),N.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),N.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=o.isBuffer(e)?e:D(new o(e,n).toString()),u=s.length;for(a=0;a<r-t;++a)this[a+t]=s[a%u]}return this};var W=/[^+\\/0-9A-Za-z-_]/g}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":30,ieee754:32,isarray:34}],30:[function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(i(n));return o.join("")}r.byteLength=function(e){return 3*e.length/4-n(e)},r.toByteArray=function(e){var t,r,i,o,a,c,f=e.length;
2a=n(e),c=new u(3*f/4-a),i=a>0?f-4:f;var l=0;for(t=0,r=0;t<i;t+=4,r+=3)o=s[e.charCodeAt(t)]<<18|s[e.charCodeAt(t+1)]<<12|s[e.charCodeAt(t+2)]<<6|s[e.charCodeAt(t+3)],c[l++]=o>>16&255,c[l++]=o>>8&255,c[l++]=255&o;return 2===a?(o=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,c[l++]=255&o):1===a&&(o=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,c[l++]=o>>8&255,c[l++]=255&o),c},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=16383,c=0,f=r-n;c<f;c+=u)s.push(o(e,c,c+u>f?f:c+u));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)a[f]=c[f],s[c.charCodeAt(f)]=f;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],31:[function(e,t,r){!function(e){function r(e){for(var t in a)e[t]=a[t];return e}function n(e,t){var r,a=this;if(arguments.length){if(t){if(r=i(a,e,!0)){if(r=r.filter(function(e){return e!==t&&e.originalListener!==t}),!r.length)return n.call(a,e);a[o][e]=r}}else if((r=a[o])&&(delete r[e],!Object.keys(r).length))return n.call(a)}else delete a[o];return a}function i(e,t,r){if(!r||e[o]){var n=e[o]||(e[o]={});return n[t]||(n[t]=[])}}void 0!==t&&(t.exports=e);var o="listeners",a={on:function(e,t){return i(this,e).push(t),this},once:function(e,t){function r(){n.call(o,e,r),t.apply(this,arguments)}var o=this;return r.originalListener=t,i(o,e).push(r),o},off:n,emit:function(e,t){var r=this,n=i(r,e,!0);if(!n)return!1;var o=arguments.length;if(1===o)n.forEach(function(e){e.call(r)});else if(2===o)n.forEach(function(e){e.call(r,t)});else{var a=Array.prototype.slice.call(arguments,1);n.forEach(function(e){e.apply(r,a)})}return!!n.length}};r(e.prototype),e.mixin=r}(function e(){if(!(this instanceof e))return new e})},{}],32:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*y}},{}],33:[function(e,t,r){(function(e){!function(t){function r(e,r,_){function k(e,t,r,n){return this instanceof k?function(e,t,r,n,i){m&&b&&(t instanceof b&&(t=new m(t)),n instanceof b&&(n=new m(n))),t||r||n||p?(a(t,r)||(i=r,n=t,r=0,t=new(p||Array)(8)),e.buffer=t,e.offset=r|=0,y!==s(n)&&("string"==typeof n?function(e,t,r,n){var i=0,o=r.length,a=0,s=0;"-"===r[0]&&i++;for(var u=i;i<o;){var c=parseInt(r[i++],n);if(!(c>=0))break;s=s*n+c,a=a*n+Math.floor(s/w),s%=w}u&&(a=~a,s?s=w-s:a++),P(e,t+O,a),P(e,t+C,s)}(t,r,n,i||10):a(n,i)?u(t,r,n,i):"number"==typeof i?(P(t,r+O,n),P(t,r+C,i)):n>0?A(t,r,n):n<0?I(t,r,n):u(t,r,g,0))):e.buffer=c(g,0)}(this,e,t,r,n):new k(e,t,r,n)}function E(){var e=this.buffer,t=this.offset,r=T(e,t+O),n=T(e,t+C);return _||(r|=0),r?r*w+n:n}function P(e,t,r){e[t+j]=255&r,r>>=8,e[t+B]=255&r,r>>=8,e[t+x]=255&r,r>>=8,e[t+R]=255&r}function T(e,t){return e[t+R]*S+(e[t+x]<<16)+(e[t+B]<<8)+e[t+j]}var O=r?0:4,C=r?4:0,R=r?0:3,x=r?1:2,B=r?2:1,j=r?3:0,A=r?f:h,I=r?l:d,M=k.prototype,D="is"+e,L="_"+D;return M.buffer=void 0,M.offset=0,M[L]=!0,M.toNumber=E,M.toString=function(e){var t=this.buffer,r=this.offset,n=T(t,r+O),i=T(t,r+C),o="",a=!_&&2147483648&n;for(a&&(n=~n,i=w-i),e=e||10;;){var s=n%e*w+i;if(n=Math.floor(n/e),i=Math.floor(s/e),o=(s%e).toString(e)+o,!n&&!i)break}return a&&(o="-"+o),o},M.toJSON=E,M.toArray=n,v&&(M.toBuffer=i),m&&(M.toArrayBuffer=o),k[D]=function(e){return!(!e||!e[L])},t[e]=k,k}function n(e){var t=this.buffer,r=this.offset;return p=null,!1!==e&&0===r&&8===t.length&&_(t)?t:c(t,r)}function i(t){var r=this.buffer,n=this.offset;if(p=v,!1!==t&&0===n&&8===r.length&&e.isBuffer(r))return r;var i=new v(8);return u(i,0,r,n),i}function o(e){var t=this.buffer,r=this.offset,n=t.buffer;if(p=m,!1!==e&&0===r&&n instanceof b&&8===n.byteLength)return n;var i=new m(8);return u(i,0,t,r),i.buffer}function a(e,t){var r=e&&e.length;return t|=0,r&&t+8<=r&&"string"!=typeof e[t]}function u(e,t,r,n){t|=0,n|=0;for(var i=0;i<8;i++)e[t++]=255&r[n++]}function c(e,t){return Array.prototype.slice.call(e,t,t+8)}function f(e,t,r){for(var n=t+8;n>t;)e[--n]=255&r,r/=256}function l(e,t,r){var n=t+8;for(r++;n>t;)e[--n]=255&-r^255,r/=256}function h(e,t,r){for(var n=t+8;t<n;)e[t++]=255&r,r/=256}function d(e,t,r){var n=t+8;for(r++;t<n;)e[t++]=255&-r^255,r/=256}var p,y="undefined",v=y!==s(e)&&e,m=y!==("undefined"==typeof Uint8Array?"undefined":s(Uint8Array))&&Uint8Array,b=y!==("undefined"==typeof ArrayBuffer?"undefined":s(ArrayBuffer))&&ArrayBuffer,g=[0,0,0,0,0,0,0,0],_=Array.isArray||function(e){return!!e&&"[object Array]"==Object.prototype.toString.call(e)},w=4294967296,S=16777216;r("Uint64BE",!0,!0),r("Int64BE",!0,!1),r("Uint64LE",!1,!0),r("Int64LE",!1,!1)}("object"==s(r)&&"string"!=typeof r.nodeName?r:this||{})}).call(this,e("buffer").Buffer)},{buffer:29}],34:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}]},{},[1])(1)},"object"==s(t)?e.exports=a():(i=[],void 0===(o="function"==typeof(n=a)?n.apply(t,i):n)||(e.exports=o))},860:function(e,t){var r,n,i,o;function a(e){return a="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},a(e)}o=function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var u=new Error("Cannot find module \'"+a+"\'");throw u.code="MODULE_NOT_FOUND",u}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),u=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,f)))throw new Error(a[r]);this._dict_set=!0}}function f(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(e,t){var r,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===u.call(e)?s.input=new
vendor: 4,168 bytes, line 2
2Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(s.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=f,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),u=e("./zlib/zstream"),c=e("./zlib/gzheader"),f=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===f.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(e,t){var r=new l(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(e,t){var r,s,u,c,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,y=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(y=!0)}while((0<h.avail_in||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=l,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":3,"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t,r,n=Array.prototype.slice.call(arguments,1
vendor: 2,258 bytes, line 2
2);n.length;){var i=n.shift();if(i){if("object"!=a(i))throw new TypeError(i+"must be non-object");for(var o in i)t=i,r=o,Object.prototype.hasOwnProperty.call(t,r)&&(e[o]=i[o])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],4:[function(e,t,r){"use strict";var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function u(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,i,o,a,s=e.length,u=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),u+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(u),o=a=0;a<u;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return u(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,s=t||e.length,c=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)c[n++]=i;else if(4<(o=a[i]))c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<s;)i=i<<6|63&e[r++],o--;
vendor: 4,388 bytes, line 2
21<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":3}],5:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],6:[function(e,t,r){"use strict";t.exports={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_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}},{}],7:[function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],8:[function(e,t,r){"use strict";var n,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),u=e("./messages"),c=-2,f=258,l=262,h=113;function d(e,t){return e.msg=u[t],t}function p(e){return(e<<1)-(4<e?9:0)}function y(e){for(var t=e.length;0<=--t;)e[t]=0}function v(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function m(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function b(e,t){e.pending_buf[e.pending++]=t}function g(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-l?e.strstart-(e.w_size-l):0,c=e.window,h=e.w_mask,d=e.prev,p=e.strstart+f,y=c[o+a-1],v=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===v&&c[r+a-1]===y&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<p);if(n=f-(p-o),o=p-f,a<n){if(e.match_start=t,s<=(a=n))break;y=c[o+a-1],v=c[o+a]}}}while((t=d[t&h])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function w(e){var t,r,n,o,u,c,f,h,d,p,y=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=y+(y-l)){for(i.arraySet(e.window,e.window,y,y,0),e.match_start-=y,e.strstart-=y,e.block_start-=y,t=r=e.hash_size;n=e.head[--t],e.head[t]=y<=n?n-y:0,--r;);for(t=r=y;n=e.prev[--t],e.prev[t]=y<=n?n-y:0,--r;);o+=y}if(0===e.strm.avail_in)break;if(c=e.strm,f=e.window,h=e.strstart+e.lookahead,p=void 0,(d=o)<(p=c.avail_in)&&(p=d),r=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,h),1===c.state.wrap?c.adler=a(c.adler,f,p,h):2===c.state.wrap&&(c.adler=s(c.adler,f,p,h)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+3-1])&e.hash_mask,e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<l&&0!==e.strm.avail_in)}function S(e,t){for(var r,n;;){if(e.lookahead<l){if(w(e),e.lookahead<l&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-l&&(e.match_length=_(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 5,865 bytes, line 2
2else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}function k(e,t){for(var r,n,i;;){if(e.lookahead<l){if(w(e),e.lookahead<l&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-l&&(e.match_length=_(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(m(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&m(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}function E(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function P(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):d(e,c)}function O(e){var t,r=T(e);return 0===r&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function C(e,t,r,n,o,a){if(!e)return c;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||9<o||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return d(e,c);8===n&&(n=9);var u=new P;return(e.state=u).strm=e,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=r,O(e)}n=[new E(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,m(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-l&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(m(e,!1),e.strm.avail_out),1)}),new E(4,4,8,4,S),new E(4,5,16,8,S),new E(4,6,32,32,S),new E(4,4,16,16,k),new E(8,16,32,32,k),new E(8,16,128,128,k),new E(8,32,128,256,k),new E(32,128,258,1024,k),new E(32,258,258,4096,k)],r.deflateInit=function(e,t){return C(e,t,8,15,8,0)},r.deflateInit2=C,r.deflateReset=O,r.deflateResetKeep=T,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},r.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||5<t||t<0)return e?d(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return d(e,0===e.avail_out?-5:c);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,b(i,31),b(i,139),b(i,8),i.gzhead?(b(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)),b(i,255&i.gzhead.time),b(i,i.gzhead.time>>8&255),b(i,i.gzhead.time>>16&255),b(i,i.gzhead.time>>24&255),b(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),b(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(b(i,255&i.gzhead.extra.length),b(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gz
vendor: 4,909 bytes, line 2
2index=0,i.status=69):(b(i,0),b(i,0),b(i,0),b(i,0),b(i,0),b(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),b(i,3),i.status=h);else{var l=8+(i.w_bits-8<<4)<<8;l|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(l|=32),l+=31-l%31,i.status=h,g(i,l),0!==i.strstart&&(g(i,e.adler>>>16),g(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending!==i.pending_buf_size));)b(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}b(i,u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}b(i,u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&v(e),i.pending+2<=i.pending_buf_size&&(b(i,255&e.adler),b(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(v(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return d(e,-5);if(666===i.status&&0!==e.avail_in)return d(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var _=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=f){if(w(e),e.lookahead<=f&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+f;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=f-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==_&&4!==_||(i.status=666),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),v(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(b(i,255&e.adler),b(i,e.adler>>8&255),b(i,e.adler>>16&255),b(i,e.adler>>24&255),b(i,255&e.total_in),b(i,e.total_in>>8&255),b(i,e.total_in>>16&255),b(i,e.total_in>>24&255)):(g(i,e.adler>>>16),g(i,65535&e.adler)),v(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==h&&666!==t?d(e,c):(e.state=null,t===h?d(e,-3):0):c},r.deflateSetDictionary=function(e,t){var r,n,o,s,u,f,l,h,d=t.length;if(!e||!e.state)return c;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(y(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,d-r.w_size,r.w_size,0),t=h,d=r.w_size),u=e.avail_in,f=e.next_in,l=e.input,e.avail_in=d,e.next_in=0,e.input=t,w(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,w(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=f,e.input=l,e.avail_in=u,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"}
vendor: 21,646 bytes, line 2
2,{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],10:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,i,o,a,s,u,c,f,l,h,d,p,y,v,m,b,g,_,w,S,k,E,P,T;r=e.state,n=e.next_in,P=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=r.dmax,c=r.wsize,f=r.whave,l=r.wnext,h=r.window,d=r.hold,p=r.bits,y=r.lencode,v=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(d+=P[n++]<<p,p+=8,d+=P[n++]<<p,p+=8),g=y[d&m];t:for(;;){if(d>>>=_=g>>>24,p-=_,0==(_=g>>>16&255))T[o++]=65535&g;else{if(!(16&_)){if(!(64&_)){g=y[(65535&g)+(d&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&g,(_&=15)&&(p<_&&(d+=P[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=P[n++]<<p,p+=8,d+=P[n++]<<p,p+=8),g=v[d&b];r:for(;;){if(d>>>=_=g>>>24,p-=_,!(16&(_=g>>>16&255))){if(!(64&_)){g=v[(65535&g)+(d&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(S=65535&g,p<(_&=15)&&(d+=P[n++]<<p,(p+=8)<_&&(d+=P[n++]<<p,p+=8)),u<(S+=d&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=_,p-=_,(_=o-a)<S){if(f<(_=S-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=h,(k=0)===l){if(k+=c-_,_<w){for(w-=_;T[o++]=h[k++],--_;);k=o-S,E=T}}else if(l<_){if(k+=c+l-_,(_-=l)<w){for(w-=_;T[o++]=h[k++],--_;);if(k=0,l<w){for(w-=_=l;T[o++]=h[k++],--_;);k=o-S,E=T}}}else if(k+=l-_,_<w){for(w-=_;T[o++]=h[k++],--_;);k=o-S,E=T}for(;2<w;)T[o++]=E[k++],T[o++]=E[k++],T[o++]=E[k++],w-=3;w&&(T[o++]=E[k++],1<w&&(T[o++]=E[k++]))}else{for(k=o-S;T[o++]=T[k++],T[o++]=T[k++],T[o++]=T[k++],2<(w-=3););w&&(T[o++]=T[k++],1<w&&(T[o++]=T[k++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},{}],11:[function(e,t,r){"use strict";var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),u=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):u}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,l(e)):u}function d(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?u:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,h(e))):u}function p(e,t){var r,n;return e?(n=new f,(e.state=n).window=null,0!==(r=d(e,t))&&(e.state=null),r):u}var y,v,m=!0;function b(e){if(m){var t;for(y=new n.Buf32(512),v=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),m=!1}e.lencode=y,e.lenbits=9,e.distcode=v,e.distbits=5}function g(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}r.inflateReset=h,r.inflateReset2=d,r.inflateResetKeep=l,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,f,l,h,d,p,y,v,m,_,w,S,k,E,P,T,O,C,R,x,B,j,A,I,M=0,D=new n.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;12===(r=e.state).mode&&(r.mode=13),d=e.next_out,l=e.output,y=e.avail_out,h=e.next_in,f=e.input,p=e.avail_in,v=r.hold,m=r.bits,_=p,w=y,j=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;m<16;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(2&r.wrap&&35615===v){D[r.check=0]=255&v,D[1]=v>>>8&255,r.check=o(r.check,D,2,0),m=v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",r.mode=30;break}if(m-=4,B=8+(15&(v>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&v?10:12,m=v=0;break;case 2:for(;m<16;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(r.flags=v,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=v>>8&1),512&r.flags&&(D[0]=255&v,D[1]=v>>>8&255,r.check=o(r.check,D,2,0)),m=v=0,r.mode=3;case 3:for(;m<32;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}r.head&&(r.head.time=v),512&r.flags&&(D[0]=255&v,D[1]=v>>>8&255,D[2]=v>>>16&255,D[3]=v>>>24&255,r.check=o(r.check,D,4,0)),m=v=0,r.mode=4;case 4:for(;m<16;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(D[0]=255&v,D[1]=v>>>8&255,r.check=o(r.check,D,2,0)),m=v=0,r.mode=5;case 5:if(1024&r.flags){for(;m<16;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(D[0]=255&v,D[1]=v>>>8&255,r.check=o(r.check,D,2,0)),m=v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(S=r.length)&&(S=p),S&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,h,S,B)),512&r.flags&&(r.check=o(r.check,f,S,h)),p-=S,h+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(S=0;B=f[h+S++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&S<p;);if(512&r.flags&&(r.check=o(r.check,f,S,h)),p-=S,h+=S,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(S=0;B=f[h+S++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&S<p;);if(512&r.flags&&(r.check=o(r.check,f,S,h)),p-=S,h+=S,B)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;m<16;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(v!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}m=v=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;m<32;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}e.adler=r.check=c(v),m=v=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=d,e.avail_out=y,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=m,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){v>>>=7&m,m-=7&m,r.mode=27;break}for(;m<3;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}switch(r.last=1&v,m-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,6!==t)break;v>>>=2,m-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}v>>>=2,m-=2;break;case 14:for(v>>>=7&m,m-=7&m;m<32;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&v,m=v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(p<S&&(S=p),y<S&&(S=y),0===S)break e;n.arraySet(l,f,h,S,d),p-=S,h+=S,y-=S,d+=S,r.length-=S;break}r.mode=12;break;case 17:for(;m<14;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(r.nlen=257+(31&v),v>>>=5,m-=5,r.ndist=1+(31&v),v>>>=5,m-=5,r.ncode=4+(15&v),v>>>=4,m-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;m<3;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}r.lens[L[r.have++]]=7&v,v>>>=3,m-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},j=s(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,j){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(M=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,O=65535&M,!((P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(O<16)v>>>=P,m-=P,r.lens[r.have++]=O;else{if(16===O){for(I=P+2;m<I;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(v>>>=P,m-=P,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],S=3+(3&v),v>>>=2,m-=2}else if(17===O){for(I=P+3;m<I;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}m-=P,B=0,S=3+(7&(v>>>=P)),v>>>=3,m-=3}else{for(I=P+7;m<I;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}m-=P,B=0,S=11+(127&(v>>>=P)),v>>>=7,m-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,A={bits:r.lenbits},j=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,j){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},j=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,j){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=y){e.next_out=d,e.avail_out=y,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=m,a(e,w),d=e.next_out,l=e.output,y=e.avail_out,h=e.next_in,f=e.input,p=e.avail_in,v=r.hold,m=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;T=(M=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,O=65535&M,!((P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(T&&!(240&T)){for(C=P,R=T,x=O;T=(M=r.lencode[x+((v&(1<<C+R)-1)>>C)])>>>16&255,O=65535&M,!(C+(P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}v>>>=C,m-=C,r.back+=C}if(v>>>=P,m-=P,r.back+=P,r.length=O,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=12;break}if(64&T){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(I=r.extra;m<I;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(M=r.distcode[v&(1<<r.distbits)-1])>>>16&255,O=65535&M,!((P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(!(240&T)){for(C=P,R=T,x=O;T=(M=r.distcode[x+((v&(1<<C+R)-1)>>C)])>>>16&255,O=65535&M,!(C+(P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}v>>>=C,m-=C,r.back+=C}if(v>>>=P,m-=P,r.back+=P,64&T){e.msg="invalid distance code",r.mode=30;break}r.offset=O,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(I=r.extra;m<I;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break e;if(S=w-y,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S>r.wnext?(S-=r.wnext,k=r.wsize-S):k=r.wnext-S,S>r.length&&(S=r.length),E=r.window}else E=l,k=d-r.offset,S=r.length;for(y<S&&(S=y),y-=S,r.length-=S;l[d++]=E[k++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;l[d++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;m<32;){if(0===p)break e;p--,v|=f[h++]<<m,m+=8}if(w-=y,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?o(r.check,l,w,d-w):i(r.check,l,w,d-w)),w=y,(r.flags?v:c(v))!==r.check){e.msg="incorrect data check",r.mode=30;break}m=v=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;m<32;){if(0===p)break e;p--,v+=f[h++]<<m,m+=8}if(v!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}m=v=0}r.mode=29;case 29:j=1;break e;case 30:j=-3;break e;case 31:return-4;default:return u}return e.next_out=d,e.avail_out=y,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=m,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&g(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(_-=e.avail_in,w-=e.avail_out,e.total_in+=_,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?o(r.check,l,w,e.next_out-w):i(r.check,l,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===_&&0===w||4===t)&&0===j&&(j=-5),j)},r.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,0):u},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?u:11===r.mode&&i(1,t,n,0)!==r.check?-3:g(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):u},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(e,t,r){"use strict";var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,u,c,f,l,h){var d,p,y,v,m,b,g,_,w,S=h.bits,k=0,E=0,P=0,T=0,O=0,C=0,R=0,x=0,B=0,j=0,A=null,I=0,M=new n.Buf16(16),D=new n.Buf16(16),L=null,U=0;for(k=0;k<=15;k++)M[k]=0;for(E=0;E<u;E++)M[t[r+E]]++;for(O=S,T=15;1<=T&&0===M[T];T--);if(T<O&&(O=T),0===T)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(P=1;P<T&&0===M[P];P++);for(O<P&&(O=P),k=x=1;k<=15;k++)if(x<<=1,(x-=M[k])<0)return-1;if(0<x&&(0===e||1!==T))return-1;for(D[1]=0,k=1;k<15;k++)D[k+1]=D[k]+M[k];for(E=0;E<u;E++)0!==t[r+E]&&(l[D[t[r+E]]++]=E);if(0===e?(A=L=l,b=19):1===e?(A=i,I-=257,L=o,U-=257,b=256):(A=a,L=s,b=-1),k=P,m=f,R=E=j=0,y=-1,v=(B=1<<(C=O))-1,1===e&&852<B||2===e&&592<B)return 1;for(;;){for(g=k-R,l[E]<b?(_=0,w=l[E]):l[E]>b?(_=L[U+l[E]],w=A[I+l[E]]):(_=96,w=0),d=1<<k-R,P=p=1<<C;c[m+(j>>R)+(p-=d)]=g<<24|_<<16|w,0!==p;);for(d=1<<k-1;j&d;)d>>=1;if(0!==d?(j&=d-1,j+=d):j=0,E++,0==--M[k]){if(k===T)break;k=t[r+l[E]]}if(O<k&&(j&v)!==y){for(0===R&&(R=O),m+=P,x=1<<(C=k-R);C+R<T&&!((x-=M[C+R])<=0);)C++,x<<=1;if(B+=1<<C,1===e&&852<B||2===e&&592<B)return 1;c[y=j&v]=O<<24|C<<16|m-f}}return 0!==j&&(c[m+j]=k-R<<24|64<<16),h.bits=O,0}},{"../utils/common":3}],13:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],14:[function(e,t,r){"use strict";var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=[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],a=[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],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,y,v,m=new Array(30);function b(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function g(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _(e){return e<256?l[e]:l[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,w(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function k(e,t,r){S(e,r[2*t],r[2*t+1])}function E(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function P(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(o[s]++,s))}}function T(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?w(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function R(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&C(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!C(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function x(e,t,r){var n,i,s,u,c=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?k(e,i,t):(k(e,(s=h[i])+256+1,t),0!==(u=o[s])&&S(e,i-=d[s],u),k(e,s=_(--n),r),0!==(u=a[s])&&S(e,n-=m[s],u)),c<e.last_lit;);k(e,256,t)}function B(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)R(e,o,r);for(i=u;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,R(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,l=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,y=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)p<(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)&&(o=p,y++),u[2*n+1]=o,c<n||(e.bl_count[o]++,a=0,d<=n&&(a=h[n-d]),s=u[2*n],e.opt_len+=s*(o+a),l&&(e.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,y-=2}while(0<y);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)c<(i=e.heap[--r])||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),P(o,c,e.bl_count)}function j(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<u&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,(s=0)===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function A(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)for(;k(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),S(e,s-3,3)):(k(e,18,e.bl_tree),S(e,s-11,7));o=i,(s=0)===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(m);var I=!1;function M(e,t,r,i){var o,a,s;S(e,0+(i?1:0),3),a=t,s=r,O(o=e),w(o,s),w(o,~s),n.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}r._tr_init=function(e){I||(function(){var e,t,r,n,i,u=new Array(16);for(n=r=0;n<28;n++)for(d[n]=r,e=0;e<1<<o[n];e++)h[r++]=n;for(h[r-1]=n,n=i=0;n<16;n++)for(m[n]=i,e=0;e<1<<a[n];e++)l[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,e=0;e<1<<a[n]-7;e++)l[256+i++]=n;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,u[8]++;for(;e<=255;)c[2*e+1]=9,e++,u[9]++;for(;e<=279;)c[2*e+1]=7,e++,u[7]++;for(;e<=287;)c[2*e+1]=8,e++,u[8]++;for(P(c,287,u),e=0;e<30;e++)f[2*e+1]=5,f[2*e]=E(e,5);p=new b(c,o,257,286,15),y=new b(f,a,0,30,15),v=new b(new Array(0),s,0,19,7)}(),I=!0),e.l_desc=new g(e.dyn_ltree,p),e.d_desc=new g(e.dyn_dtree,y),e.bl_desc=new g(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,T(e)},r._tr_stored_block=M,r._tr_flush_block=function(e,t,r,n){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),B(e,e.l_desc),B(e,e.d_desc),a=function(e){var t;for(j(e,e.dyn_ltree,e.l_desc.max_code),j(e,e.dyn_dtree,e.d_desc.max_code),B(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?M(e,t,r,n):4===e.strategy||o===i?(S(e,2+(n?1:0),3),x(e,c,f)):(S(e,4+(n?1:0),3),function(e,t,r,n){var i;for(S(e,t-257,5),S(e,r-1,5),S(e,n-4,4),i=0;i<n;i++)S(e,e.bl_tree[2*u[i]+1],3);A(e,e.dyn_ltree,t-1),A(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),x(e,e.dyn_ltree,e.dyn_dtree)),T(e),n&&O(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(h[r]+256+1)]++,e.dyn_dtree[2*_(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;S(e,2,3),k(e,256,c),16===(t=e).bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":3}],15:[function(e,t,r){"use strict";
2t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/":[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")},"object"==a(t)?e.exports=o():(n=[],void 0===(i="function"==typeof(r=o)?r.apply(t,n):r)||(e.exports=i))},753:function(e){"use strict";e.exports=JSON.parse(\'{"login":"0001","log in":"0001","sign in":"0001","username":"0001","password":"0001","email address":"0001","forgot password":"0001","remember me":"0001","secure login":"0001","payment":"0002","pay now":"0002","make payment":"0002","due amount":"0002","bill":"0002","invoice":"0002","payee":"0002","credit card":"0002","debit card":"0002","confirm payment":"0002","add payee":"0003","new payee":"0003","beneficiary name":"0003","bank account number":"0003","ifsc code":"0003","sort code":"0003","iban":"0003","routing number":"0003","save payee":"0003","otp":"0004","one-time password":"0004","verification code":"0004","enter code":"0004","sms code":"0004","email code":"0004","auth code":"0004","2fa":"0004","enroll":"0005","enrollment":"0005","sign up":"0005","register":"0005","create account":"0005","start enrollment":"0005","onboarding":"0005","set up account":"0005","loan":"0006","apply for loan":"0006","loan application":"0006","emi":"0006","installment":"0006","loan calculator":"0006","loan details":"0006","loan offer":"0006","cardless":"0007","withdraw cash":"0007","atm code":"0007","cash withdrawal":"0007","without card":"0007","generate code":"0007","atm access code":"0007","change phone":"0008","update phone number":"0008","new phone number":"0008","verify phone":"0008","mobile number change":"0008","change password":"0009","update password":"0009","new password":"0009","current password":"0009","reset password":"0009","confirm password":"0009","edit profile":"0010","update details":"0010","change information":"0010","modify details":"0010","update personal info":"0010","change user info":"0010","change email":"0011","update email":"0011","new email address":"0011","verify email":"0011","email confirmation":"0011","confirm email":"0011","change address":"0012","update address":"0012","new address":"0012","billing address":"0012","shipping address":"0012","address details":"0012"}\')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){"use strict";function e(t){return e="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(t)}function t(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function n(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}var i=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._pairs=[],this.size=0},(r=[{key:"has",value:function(e){return this._indexOf(e)>-1}},{key:"get",value:function(e){var t=this._indexOf(e);if(t>-1)return this._pairs[t][1]}},{key:"set",value:function(e,t){var r=this._indexOf(e);r>-1?this._pairs[r][1]=t:(this._pairs.push([e,t]),this.size++)}},{key:"delete",value:function(e){var t=this._indexOf(e);return t>-1&&(this._pairs.splice(t,1),this.size--,!0)}},{key:"forEach",value:function(e){for(var t=0;t<this._pairs.length;t++)e(this._pairs[t][1],this._pairs[t][0])}},{key:"clear",value:function(){this._pairs=[]}},{key:"_indexOf",value:function(e){for(var t=0;t<this._pairs.length;t++)if(this._pairs[t][0]===e)return t;return-1}}])&&t(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}(),o=function(){return new(self.Map||i)};function a(e){return a="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},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}var c=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._set=[],this.size=0},(t=[{key:"add",value:function(e){return this._set.push(e),this.size++,this}},{key:"has",value:function(e){return this._set.indexOf(e)>-1}},{key:"delete",value:function(e){for(var t=0;t<this._set.length;t++)if(this._set[t]===e)return this._set.splice(t,1),this.size--,!0;return!1}}
2,{key:"forEach",value:function(e){for(var t=0;t<this._set.length;t++)e(this._set[t])}},{key:"clear",value:function(){this._set=[]}}])&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),f=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new(self.Set||c),r=0;r<e.length;r++)t.add(e[r]);return t};function l(e){return l="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},l(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}var p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._msgListeners=o()},t=[{key:"setMessagingPort",value:function(e){var t=this;this._messagePort=e,e.setonmessage(function(e){var r=e.data,n=[],i=t._msgListeners.get(r.msgType);i&&i.forEach(function(e){e.callback(r.data),e.isOneTime&&n.push(e)}),n.forEach(function(e){i.delete(e)})})}},{key:"sendAsync",value:function(e,t,r,n,i){n&&r&&this.addMessageListener(r,n,i),this._messagePort.postMessage({msgType:e,data:t})}},{key:"addMessageListener",value:function(e,t,r){var n=null;this._msgListeners.has(e)?n=this._msgListeners.get(e):(n=f(),this._msgListeners.set(e,n)),n.add({callback:t,isOneTime:r})}}],t&&h(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),y="dataWupDispatchRateSettings",v="logWupDispatchRateSettings",m="forceDynamicDataWupDispatchSettings",b="wupStatisticsLogIntervalMs",g="serverCommunicationSettings",_="wupMessageRequestTimeout",w="logMessageRequestTimeout",S="crossDomainsList",k="allowedUnmaskedValuesList",E="wupMessageNumToRetry",P="enableMetricsFeature",T="metricsMainToWorkerFlushIntervalSec",O="metricsAddress",C="metricsMessageDispatchRateMsec",R="metricsMessageNumToRetry",x="metricsMessageRetryAndTimeoutInterval",B="ServerStateUpdatedEvent",j="sendMetricsCommand";function A(e){return A="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},A(e)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M(n.key),n)}}function M(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}var D=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"hasUserAgentData",value:function(t){return!!((t=void 0!==t?t:e._getNavigator())&&t.userAgentData&&t.userAgentData.brands&&t.userAgentData.brands.length>0)}},{key:"getBrands",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgentData&&t.userAgentData.brands||[]}},{key:"getPlatform",value:function(t){return(t=void 0!==t?t:e._getNavigator())?"platform"in t?t.platform:t.userAgentData&&t.userAgentData.platform?t.userAgentData.platform:null:null}},{key:"getUserAgentDataPlatform",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgentData&&t.userAgentData.platform||null}},{key:"getUserAgent",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgent||""}},{key:"getUserAgentData",value:function(t){return(t=void 0!==t?t:e._getNavigator())&&t.userAgentData||null}},{key:"_getNavigator",value:function(){return"undefined"!=typeof navigator?navigator:null}}],null&&I(t.prototype,null),r&&I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function L(e){return L="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},L(e)}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?U(Object(r),!0).forEach(function(t){z(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q(n.key),n)}}function z(e,t,r){return(t=q(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}Object.freeze({COUNTER:"counter",HISTOGRAM:"histogram",GAUGE:"gauge"});var W=Object.freeze({HTTP_REQUEST_RESULT:"http_request_result",ERROR_TOTAL:"error_total",MAIN_THREAD_BLOCK:"main_thread_block"}),H=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"setWorkerCommunicator",value:function(t){e._workerCommunicator=t}},{key:"configure",value:function(t){e._configurationRepository=t,e._enabled=!0===t.get(P);var r=t.get(T);"number"==typeof r&&r>0&&(e._timerInterval=1e3*r)}},{key:"initializeContext",value:function(t,r){e._storedCid=t,e._storedSdkVersion=r,e._context={cid:t,platform:"js",platformVersion:e._getBrowserInfo(),sdkVersion:r},e._enabled&&(e._workerCommunicator&&e._workerCommunicator.sendAsync(j,{metricsData:F(F({},e._context),{},{metrics:[]})}),e._startTimer())}},{key:"onConfigurationUpdated",value:function(t){if(t){e._enabled=!0===t.get(P);var r=t.get(T);"number"==typeof r&&r>0&&(e._timerInterval=1e3*r),e._enabled?(!e._context&&e._storedCid&&e._storedSdkVersion?e.initializeContext(e._storedCid,e._storedSdkVersion):e._startTimer(),e._sendToWorker()):e._stopTimer()}}},{key:"cleanup",value:function(){e._stopTimer(),e._context=null,e._reset()}},{key:"record",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e._createLabelKey(t,r);e._counters[n]=(e._counters[n]||0)+1}},{key:"setGauge",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e._createLabelKey(t,n);e._gauges[i]=r}},{key:"incrementGauge",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e._createLabelKey(t,n);e._gauges[i]=(e._gauges[i]||0)+r}},{key:"decrementGauge",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e._createLabelKey(t,n);e._gauges[i]=(e._gauges[i]||0)-r}},{key:"recordHistogram",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e._createLabelKey(t,n);e._histograms[i]||(e._histograms[i]=[]),e._histograms[i].push(r)}},{key:"recordError",value:function(){e.record(W.ERROR_TOTAL)}},{key:"_startTimer",value:function(){e._stopTimer(),e._enabled&&(e._timer=setInterval(function(){return e._sendToWorker()},e._timerInterval))}},{key:"_stopTimer",value:function(){e._timer&&(clearInterval(e._timer),e._timer=null)}},{key:"_sendToWorker",value:function(){if(e._enabled&&e._workerCommunicator&&e._context){var t=e._formatForBackend();t&&(e._workerCommunicator.sendAsync(j,{metricsData:t}),e._reset())}}},{key:"_formatForBackend",value:function(){for(var t=[],r=Object.keys(e._counters),n=0;n<r.length;n++){var i=r[n],o=e._parseLabelKey(i),a=o.name,s=o.labels,u={metricName:a,metricValue:e._counters[i]};s&&(u.extraLabels=s),t.push(u)}for(var c=Object.keys(e._gauges),f=0;f<c.length;f++){var l=c[f],h=e._parseLabelKey(l),d=h.name,p=h.labels,y={metricName:d,metricValue:e._gauges[l]};p&&(y.extraLabels=p),t.push(y)}for(var v=Object.keys(e._histograms),m=0;m<v.length;m++)for(var b=v[m],g=e._parseLabelKey(b),_=g.name,w=g.labels,S=e._histograms[b],k=0;k<S.length;k++){var E={metricName:_,metricValue:S[k]};w&&(E.extraLabels=w),t.push(E)}return 0===t.length?null:F(F({},e._context),{},{metrics:t})}},{key:"_reset",value:function(){e._counters=Object.create(null),e._gauges=Object.create(null),e._histograms=Object.create(null)}},{key:"_createLabelKey",value:function(e,t){var r=t&&0!==Object.keys(t).length?JSON.stringify(Object.entries(t).sort(function(e,t){return e[0].localeCompare(t[0])})):"[]";return"".concat(e,"|").concat(r)}},{key:"_parseLabelKey",value:function(e){var t=e.indexOf("|"),r=e.substring(0,t),n=e.substring(t+1);return{name:r,labels:"[]"===n?null:Object.fromEntries(JSON.parse(n))}}},{key:"_getBrowserInfo",value:function(){var e=D.getBrands();if(e.length>0)for(var t=0;t<e.length;t++){var r=e[t].brand,n=e[t].version;if("Google Chrome"===r)return"Chrome ".concat(n);if("Microsoft Edge"===r)return"Edge ".concat(n);if("Opera"===r)return"Opera ".concat(n);if("Firefox"===r)return"Firefox ".concat(n)}var i=D.getUserAgent();if(!i)return"Unknown";if(i.indexOf("Firefox")>-1){var o=i.match(/Firefox\\/(\\d+\\.\\d+)/);return o?"Firefox ".concat(o[1]):"Firefox"}if(i.indexOf("Chrome")>-1&&-1===i.indexOf("Edg")){var a=i.match(/Chrome\\/(\\d+\\.\\d+)/);return a?"Chrome ".concat(a[1]):"Chrome"}if(i.indexOf("Safari")>-1&&-1===i.indexOf("Chrome")){var s=i.match(/Version\\/(\\d+\\.\\d+)/);return s?"Safari ".concat(s[1]):"Safari"}if(i.indexOf("Edg")>-1){var u=i.match(/Edg\\/(\\d+\\.\\d+)/);return u?"Edge ".concat(u[1]):"Edge"}return i.indexOf("MSIE")>-1||i.indexOf("Trident")>-1?"IE":"Unknown"}}],null&&N(t.prototype,null),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function G(e){return G="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},G(e)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function Z(e,t,r){return t&&V(e.prototype,t),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function K(e){var t=function(e){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G(t)?t:t+""}z(H,"_counters",Object.create(null)),z(H,"_gauges",Object.create(null)),z(H,"_histograms",Object.create(null)),z(H,"_workerCommunicator",null),z(H,"_configurationRepository",null),z(H,"_context",null),z(H,"_timer",null),z(H,"_enabled",!1),z(H,"_storedCid",null),z(H,"_storedSdkVersion",null),z(H,"_timerInterval",1e4);var Q=function(){return Z(function e(){Y(this,e)},null,[{key:"setLogger",value:function(e){this._logger=e}},{key:"attachSessionIdentifiers",value:function(e){if(this._logger)return this._logger.attachSessionIdentifiers(e)}},{key:"isDebug",value:function(){if(this._logger)return this._logger.isDebug()}},{key:"error",value:function(e,t){this._logger&&this._logger.error(e,t||null)}},{key:"warn",value:function(e,t){this._logger&&this._logger.warn(e,t||null)}},{key:"trace",value:function(e){this._logger&&this._logger.trace(e)}},{key:"debug",value:function(e){this._logger&&this._logger.debug(e)}},{key:"info",value:function(e){this._logger&&this._logger.info(e)}},{key:"shouldLogRetry",value:function(e,t){return 1===e||e>=t||e>0&&!(e&e-1)}},{key:"warnRetry",value:function(e,t,r,n){this.shouldLogRetry(t,r)&&this.warn(e,n
2)}},{key:"errorRetry",value:function(e,t,r,n){this.shouldLogRetry(t,r)&&this.error(e,n)}},{key:"infoRetry",value:function(e,t,r){this.shouldLogRetry(t,r)&&this.info(e)}}])}(),X=function(){return Z(function e(t,r){Y(this,e),this._logBridge=t,this._logLevel=r||20,this._sessionIdentifiers={}},[{key:"attachSessionIdentifiers",value:function(e){Object.assign(this._sessionIdentifiers,e)}},{key:"trace",value:function(e){this._sendToLogBridge(e,10)}},{key:"debug",value:function(e){this._sendToLogBridge(e,10)}},{key:"info",value:function(e){this._sendToLogBridge(e,20)}},{key:"warn",value:function(e,t){this._sendToLogBridge(e,30,t)}},{key:"error",value:function(e,t){H.recordError(),this._sendToLogBridge(e,40,t)}},{key:"isDebug",value:function(){return 10===this._logLevel}},{key:"updateLogConfig",value:function(e){this._logLevel=e.get("logLevel")||this._logLevel,this._logBridge.setLogLevel(this._logLevel),this._logBridge.clearLogEntriesByLogLevel(this._logLevel)}},{key:"_sendToLogBridge",value:function(e,t,r){t>=this._logLevel&&(r&&r.stack&&(e+=" ;stack: ".concat(r.stack)),this._logBridge.log(e,t,this._sessionIdentifiers))}}])}();function J(e){return J="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},J(e)}function $(e,t,r){return(t=function(e){var t=function(e){if("object"!=J(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ee={V1_ONLY:"0",DUAL_COLLECTION_V1_PRIORITY:"1",DUAL_COLLECTION_V2_PRIORITY:"2",V2_ONLY:"3",DUAL_COLLECTION_PARALLEL_WAIT_ALL:"5",DUAL_COLLECTION_PARALLEL_IMMEDIATE:"6",isValid:function(e){return Object.values(ee).includes(e)},getDescription:function(e){return $($($($($($({},ee.V1_ONLY,"Only V1 collector is active"),ee.DUAL_COLLECTION_V1_PRIORITY,"Both collectors active, V1 is primary"),ee.DUAL_COLLECTION_V2_PRIORITY,"Both collectors active, V2 is primary"),ee.V2_ONLY,"Only V2 collector is active"),ee.DUAL_COLLECTION_PARALLEL_WAIT_ALL,"Both collectors active, parallel, waits for both and sends combined"),ee.DUAL_COLLECTION_PARALLEL_IMMEDIATE,"Both collectors active, parallel, sends immediately as each completes")[e]||"Unknown stage"}},te=ee;Object.freeze({VERSION1:"VERSION1",VERSION2:"VERSION2"});var re={migrationMode:te.V1_ONLY,v1:{offloadFontsCollectionEnabled:!1,offloadFontsRemoveDuplicated:!0},v2:{detectorType:void 0,fontsPerBatch:100,delayBetweenBatchesMs:0,adaptiveBatchEnabled:!0,minFontsPerBatch:100,maxFontsPerBatch:1e3,frameBudgetMs:100,frameHistorySize:3,ignoreFonts:["STFangsong","STHeiti","STKaiti","STXihei","NanumGothic","NanumMyeongjo","Osaka","Osaka-Mono","YuppySC-Regular"]}};function ne(e){return ne="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},ne(e)}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oe(n.key),n)}}function oe(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}var ae={defaultDynamicWupDispatchRateConfiguration:{type:"dynamic"},defaultIncrementalWupDispatchRateConfiguration:{type:"incremental",initialRateValueMs:500,incrementStepMs:500,incrementStopMs:5e3,incrementStartWupSendCount:20}},se=["keyEventsMaskSpecialChars","passwordIdMaskingList","maskElementsAttributes",k,"enableUnmaskedValues","enableCoordinatesMasking"],ue=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._requireParseFields=o(),this._requireParseFields.set(y,y),this._requireParseFields.set(v,v),this._requireParseFields.set(S,S),this._requireParseFields.set(k,k),this._requireParseFields.set(g,g),this._configurationList={},this.configDefault={logLevel:20,isCrossdomain:!1,isGfxRendering:!1,isAudioDetectFeature:!1,enableEmuidFeature:!1,crossDomainsList:[],crossDomainsTimeout:5e3,orientationEventsSamplePeriod:300,orientationEventsThreshold:1,stateChangeEnabled:!1,accelerometerEventsSamplePeriod:0,dataQPassWorkerInterval:500,gyroEventsSamplePeriod:0,gyroEventsThreshold:.3,isContextPropsFeature:!0,isEnabled:!0,isResetEveryLoad:!1,isScrollCollect:!0,isVMDetection:!0,isAudioDetection:!1,wupStatisticsLogIntervalMs:3e4,heartBeatMessageInterval:5e3,resetSessionApiThreshold:2e4,wupMessageRequestTimeout:5e3,logMessageRequestTimeout:5e3,slaveChannelHandshakeTimeout:6e4,slaveAliveMessageInterval:100,forceDynamicDataWupDispatchSettings:!0,dataWupDispatchRateSettings:ae.defaultDynamicWupDispatchRateConfiguration,logWupDispatchRateSettings:{type:"constant",initialRateValueMs:2500},serverCommunicationSettings:{queueLoadThreshold:100},collectKeyRegionValue:!1,isMutationObserver:!0,collectCustomElementAttribute:!0,isCaptureKeyEvents:!1,locationEventsTimeoutMsec:1e4,isMotionAroundTouchEnabled:!0,motionPaddingAroun
2dTouchMSec:3e3,isMotionOnSessionStart:!0,motionPaddingOnSessionStartMSec:2e4,keyEventsMaskSpecialChars:!1,collectSelectElementBlurAndFocusEvents:!1,enableUnmaskedValues:!1,allowedUnmaskedValuesList:[],wupMessageNumToRetry:5,wupMessageRetryInterval:1e3,wupRetryOnNetworkFailureOnly:!1,wupIncrementalGrowthBetweenFailures:3500,wupMaxIntervalBetweenFailures:16e3,logMessageNumToRetry:5,logMessageRetryInterval:1e3,logRetryOnNetworkFailureOnly:!1,logIncrementalGrowthBetweenFailures:3500,logMaxIntervalBetweenFailures:16e3,cdsNumExpirationTime:60,enableCoordinatesMasking:!1,acknowledgeDataDispatchingRate:3e3,passwordIdMaskingList:[],isFontWidthFeature:!1,isFontMathFeature:!1,isFontEmojiFeature:!1,isStorageFeature:!1,isKeyboardLayoutFeature:!1,isScreenHighResFeature:!1,isBatteryStatusFeature:!1,isNavigatorFeature:!1,isWebglFeature:!1,isWebRTCFeature:!1,isSpeechVoicesFeature:!1,isDRMFeature:!1,isBrowserExtensionsFeature:!1,isAdblockerListsFeature:!1,isAudioDetectFeature2:!1,enableIncognitoDetection:!1,elementUniqueIDConfiguration:{componentsFormat:"{tagName}_{index}_{id}_{className}_{ariaLabel}_{containerInfo}_{hierarchyPath}",hierarchyFormat:"{tagName}_{index}",enabledTags:["input","textarea","button","select","div","span"]},offloadFontsCollectionEnabled:re.v1.offloadFontsCollectionEnabled,offloadFontsRemoveDuplicated:re.v1.offloadFontsRemoveDuplicated,fontCollection:JSON.stringify(re),enableElementHierarchy:!1,enableElementCategory:!0,enableRandomElementHash:!1,isCPUFeature:!1,contextMappingStatus:0,contextCategories:r(753),enableWupSendDataFields:!1,embedding_minimal_collectors:["grph_card","cores","os","fonts","main_lang","languages"],enableMetricsFeature:!1,metricsMainToWorkerFlushIntervalSec:5,metricsMessageDispatchRateMsec:1e4,metricsMessageNumToRetry:0,metricsMessageRetryAndTimeoutInterval:5e3,isCollectorsV2:!1,isAgenticBrowserDetectFeature:!1,agenticBrowserFonts:["FKGroteskNeue","Times"],isAgenticDomInjectionFeature:!1,agenticDomInjectionBlinkThresholdMs:100,agenticDomInjectionBlinkTags:["div","style"],agenticDomInjectionSuspiciousIds:["claude"],collectAgenticPasteSignal:!1,speechSynthesisTimeout:1e3,isPermissionChangeEvents:!1,permissionCheckIntervalMs:2e3},this.loadConfigurations(this.configDefault)},(t=[{key:"isConfigurationUpdatedFromServer",value:function(){return!this._isDefaultConfiguration}},{key:"loadConfigurations",value:function(e,t){var r=this;e&&(this._isDefaultConfiguration=e===this.configDefault,Object.keys(e).forEach(function(n){if(t||r._isDefaultConfiguration||!se.includes(n)){var i=e[n];if(r._requireParseFields.has(n)){var o=r._tryParseConfigurationValue(i);o&&(i=o)}r._configurationList[n]=i}}))}},{key:"get",value:function(e){return this._configurationList[e]}},{key:"set",value:function(e,t){this._configurationList[e]=t}},{key:"getAll",value:function(){return this._configurationList}},{key:"_tryParseConfigurationValue",value:function(e){if("string"!=typeof e)return null;try{return JSON.parse(e)}catch(e){}return null}}])&&ie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function ce(e){return ce="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},ce(e)}function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,le(n.key),n)}}function le(e){var t=function(e){if("object"!=ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ce(t)?t:t+""}var he=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listeners=[]},(t=[{key:"subscribe",value:function(e){this._listeners.push(e)}},{key:"publish",value:function(e){for(var t=0,r=this._listeners.length;t<r;t++)this._listeners[t](e)}},{key:"unsubscribe",value:function(e){for(var t=0,r=this._listeners.length;t<r;t++)if(e===this._listeners[t]){this._listeners.splice(t,1);break}}}])&&fe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function de(e){return de="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},de(e)}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ye(n.key),n)}}function ye(e){var t=function(e){if("object"!=de(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==de(t)?t:t+""}var ve=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onServerStateUpdated=new he,this.reset()},t=[{key:"getSts",value:function(){return this._sts}},{key:"getStd",value:function(){return this._std}},{key:"getSid",value:function(){return this._sid}},{key:"setCid",value:function(e){this._cid=e}},{key:"getCid",value:function(){return this._cid}},{key:"getCsid",value:function(){return this._csid}},{key:"getPsid",value:function(){return this._psid}},{key:"getMuid",value:function(){return this._muid}},{key:"getContextName",value:function(){return this._contextName}},{key:"getRequestId",value:function(){return this._requestId}},{key:"getWupDispatchRate",value:function(){return this._wupDispatchRate}},{key:"getBrand",value:function(){return this._brand}},{key:"setSts",value:function(e){this._sts=e}},{key:"setStd",value:function(e){this._std=e}},{key:"setSid",value:function(e){this._sid=e}},{key:"setCsid",value:function(e){this._csid=e}},{key:"setPsid",value:function(e){this._psid=e}},{key:"setMuid",value:function(e){this._muid=e||null}},{key:"setOtt",value:function(e){this._ott=e}},{key:"getOtt",value:function(){return this._ott}},{key:"setContextName",value:function(e){this._contextName=e}},{key:"setRequestId",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._requestId=e,t&&this._publish(),this._requestId}},{key:"setWupDispatchRate",value:function(e){e?this._wupDispatchRate=e:Q.warn("Wup dispatch rate of ".concat(e," is invali
2d. Ignoring update"))}},{key:"setBrand",value:function(e){this._brand=e}},{key:"setAgentType",value:function(e){this._agent_type=e}},{key:"getAgentType",value:function(){return this._agent_type}},{key:"setAgentId",value:function(e){this._agent_id=e}},{key:"getAgentId",value:function(){return this._agent_id}},{key:"markConfigurationRequested",value:function(){this._hasConfiguration?Q.warn("We already have configuration. Ignoring the attempt to mark a pending configuration request."):this._hasPendingConfigurationRequest=!0}},{key:"markConfigurationReceived",value:function(){this._hasConfiguration?Q.warn("Marking that we received configuration although we already received configuration from the server. We shouldn\'t have received it again."):this._hasPendingConfigurationRequest||Q.warn("Marking that we received configurations although we didn\'t have a pending request for configurations."),this._hasPendingConfigurationRequest=!1,this._hasConfiguration=!0}},{key:"getHasConfiguration",value:function(){return this._hasConfiguration}},{key:"getHasPendingConfigurationRequest",value:function(){return this._hasPendingConfigurationRequest}},{key:"incrementRequestId",value:function(){return this._requestId++,this._publish(),this._requestId}},{key:"resetRequestId",value:function(){this._requestId=0}},{key:"reset",value:function(){this._ott=null,this._sts=null,this._std=null,this._sid=null,this._cid=null,this._csid=null,this._muid=null,this._contextName=null,this._requestId=0,this._wupDispatchRate=5e3,this._hasConfiguration=!1,this._hasPendingConfigurationRequest=!1,this._brand=null,this._agent_type=null,this._agent_id=null,this._baseServerUrl=null,this._protocolType=null,this._shouldMinifyUri=!1}},{key:"setBaseServerUrl",value:function(e){this._baseServerUrl=e}},{key:"getBaseServerUrl",value:function(){return this._baseServerUrl}},{key:"setProtocolType",value:function(e){this._protocolType=e}},{key:"setShouldMinifyUri",value:function(e){this._shouldMinifyUri=e}},{key:"getShouldMinifyUri",value:function(){return this._shouldMinifyUri}},{key:"getProtocolType",value:function(){return this._protocolType}},{key:"_publish",value:function(){this.onServerStateUpdated.publish({requestId:this._requestId,sid:this._sid,sts:this._sts,std:this._std,ott:this._ott})}}],t&&pe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function me(e){return me="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},me(e)}function be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ge(n.key),n)}}function ge(e){var t=function(e){if("object"!=me(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}var _e=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"build",value:function(e){return e.getInternalMessage()}}])&&be(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function we(e){return we="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},we(e)}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ke(n.key),n)}}function ke(e){var t=function(e){if("object"!=we(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==we(t)?t:t+""}var Ee=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=[]},(t=[{key:"hasItems",value:function(){return this.length()>0}},{key:"length",value:function(){return this._buffer.length}},{key:"enqueue",value:function(e){this._buffer.push(e)}},{key:"enqueueToHead",value:function(e){this._buffer.unshift(e)}},{key:"dequeue",value:function(){return this._buffer.shift()}},{key:"getItem",value:function(e){return this._buffer[e]}}])&&Se(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Pe(e){return Pe="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},Pe(e)}function Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Oe(n.key),n)}}function Oe(e){var t=function(e){if("object"!=Pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pe(t)?t:t+""}var Ce,Re,xe,Be=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"addEventListener",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isPassiveSupported?e.addEventListener(t,r,{capture:n,passive:i,once:o}):e.addEventListener?e.addEventListener(t,r,n):e.attachEvent("on"+t,r)}},{key:"removeEventListener",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent("on"+t,r)}},{key:"outerHTML",value:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)}},{key:"onDocumentBody",value:function(e,t){e.document.body?t():window.addEventListener?window.addEventListener("DOMContentLoaded",t,!0):window.attachEvent("onload",t)}},{key:"onPageLoad",value:function(t,r){e.addEventListener(t,"load",r,!0),(t.contentWindow&&"complete"===t.contentWindow.document.readyState||t.document&&"complete"===t.document.readyState)&&r()}},{key:"awaitWindowDocumentReady",value:function(e){var t=this;return new Promise(function(r,n){try{t.onWindowDocumentReady(e,function(){r()})}catch(e){n(e)}})}},{key:"onWindowDocumentReady",value:function(t,r){var n=window.addEventListener?"DOMContentLoaded":"load";if("complete"===t.document.readyState||"interactive"===t.document.readyState)r();else{var i=function(){e.removeEventListener(t,n,i,!0),r()};e.addEventListener(t,n,i,!0)}}},{key:"isWindowDocumentReady",value:function(e){return e&&"complete"===e.document.readyState}},{key:"canAccessIFrame",value:function(e){if(!e.contentWindow)return!1;var t,r=window.location.origin;try{t=e.contentWindow.location.origin}catch(e){return!1}if(t===r||"null"===t)try{return!(!e.contentDocument||!e.contentDocument.body)}catch(e){return!1}return!1}},{key:"matches",value:function(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=this.document||this.ownerDocument;if(!t)return!1;for(var r=t.querySelectorAll(e),n=r.length;--n>=0&&(r.item?r.item(n):r[n])!==this;);return n>-1}).call(e,t)}},{key:"isWebWorkerFetchSupported",value:function(){var e="Request"in self,t="fetch"in self;if(!e)return!1;var r="keepalive"in Request.prototype;return t&&r}},{key:"isSubtleCryptoSupported",value:function(){return"object"===Pe(self.crypto)&&"object"===Pe(self.crypto.subtle)&&"function"==typeof self.crypto.subtle.digest}}],r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function je(e){return je="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},je(e)}function Ae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ie(n.key),n)}}function Ie(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Ce=Be,Re="isPassiveSupported",xe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),(Re=Oe(Re))in Ce?Object.defineProperty(Ce,Re,{value:xe,enumerable:!0,configurable:!0,writable:!0}):Ce[Re]=xe;var Me=function(){return function(e,t,r){return r&&Ae(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"hashSha256",value:function(e,t){if(Be.isSubtleCryptoSupported()){var r=(new TextEncoder).encode(e);crypto.subtle.digest("SHA-256",r).then(function(e){var r=Array.from(new Uint8Array(e)).map(function(e){return e.toString(16).padStart(2,"0")}).join("");t(null,r)}
2).catch(function(e){return t(e)})}else try{Q.info("HashService: SubtleCrypto is not supported using fallback hashing");var n=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e.charCodeAt(r);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(r++,i=65536+((1023&i)<<10|1023&e.charCodeAt(r)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}for(var o=[],a=0;a<t.length;a++)o[a>>2]|=t[a]<<(3-(3&a)<<3);var s=8*t.length;o[s>>5]|=128<<24-s%32,o[15+(s+64>>9<<4)]=s;for(var u=new Array(64),c=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=0;l<o.length;l+=16){for(var h=c[0],d=c[1],p=c[2],y=c[3],v=c[4],m=c[5],b=c[6],g=c[7],_=0;_<64;_++){if(_<16)u[_]=0|o[l+_];else{var w=(u[_-15]>>>7|u[_-15]<<25)^(u[_-15]>>>18|u[_-15]<<14)^u[_-15]>>>3,S=(u[_-2]>>>17|u[_-2]<<15)^(u[_-2]>>>19|u[_-2]<<13)^u[_-2]>>>10;u[_]=u[_-16]+w+u[_-7]+S|0}var k=g+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&b)+f[_]+u[_]|0,E=h&d^h&p^d&p;g=b,b=m,m=v,v=y+k|0,y=p,p=d,d=h,h=k+(((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+E|0)|0}c[0]=c[0]+h|0,c[1]=c[1]+d|0,c[2]=c[2]+p|0,c[3]=c[3]+y|0,c[4]=c[4]+v|0,c[5]=c[5]+m|0,c[6]=c[6]+b|0,c[7]=c[7]+g|0}for(var P="",T=0;T<c.length;T++)P+=("00000000"+(c[T]>>>0).toString(16)).slice(-8);return P}(e);t(null,n)}catch(e){t(e)}}}])}(),De="X-h",Le="x-requested-host",Ue="POST";function Fe(e){return Fe="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},Fe(e)}function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach(function(t){We(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function We(e,t,r){return(t=He(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function He(e){var t=function(e){if("object"!=Fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fe(t)?t:t+""}var Ge=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,r){return r&&qe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"record",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e._createLabelKey(r),i="worker|".concat(t,"|").concat(n),o=e._metrics[i];o?o.metricValue+=1:e._metrics[i]=ze({metricName:t,metricValue:1},"[]"!==n?{extraLabels:e._parseLabelKey(n)}:{})}},{key:"addMainThreadMetrics",value:function(t){if(t){t.cid&&(e._context={cid:t.cid,platform:t.platform,platformVersion:t.platformVersion,sdkVersion:t.sdkVersion});for(var r=Array.isArray(t.metrics)?t.metrics:[],n=0;n<r.length;n++){var i=r[n];if(i&&i.metricName){var o=e._createLabelKey(i.extraLabels),a="main|".concat(i.metricName,"|").concat(o),s=e._metrics[a];s?s.metricValue+=Number(i.metricValue)||0:e._metrics[a]=ze({metricName:i.metricName,metricValue:i.metricValue},i.extraLabels?{extraLabels:ze({},i.extraLabels)}:{})}}}}},{key:"getAll",value:function(){for(var t=Object.values(e._metrics),r=[],n=0;n<t.length;n++){var i=t[n];
2r.push(ze({metricName:i.metricName,metricValue:i.metricValue},i.extraLabels?{extraLabels:ze({},i.extraLabels)}:{}))}return r}},{key:"getPayload",value:function(){var t=e.getAll();return 0!==t.length&&e._context?ze(ze({},e._context),{},{metrics:t}):null}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e._metrics=Object.create(null),t||(e._context=null)}},{key:"hasMetrics",value:function(){return Object.keys(e._metrics).length>0}},{key:"getAndReset",value:function(){var t=e.getAll();return e.reset(),t}},{key:"_createLabelKey",value:function(e){return e&&0!==Object.keys(e).length?JSON.stringify(Object.entries(e).sort(function(e,t){return e[0].localeCompare(t[0])})):"[]"}},{key:"_parseLabelKey",value:function(e){if("[]"!==e)return Object.fromEntries(JSON.parse(e))}}])}();function Ye(e){return Ye="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},Ye(e)}function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ze(n.key),n)}}function Ze(e){var t=function(e){if("object"!=Ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ye(t)?t:t+""}We(Ge,"_metrics",Object.create(null)),We(Ge,"_context",null);var Ke=function(){return function(e,t,r){return r&&Ve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"create",value:function(){if(self.XMLHttpRequest&&Object.prototype.hasOwnProperty.call(XMLHttpRequest.prototype,"withCredentials"))return new XMLHttpRequest;if(self.XDomainRequest)return new XDomainRequest;if(!self.XMLHttpRequest)throw new Error("There is no supported http request object");return new XMLHttpRequest}}])}();function Qe(e){return Qe="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},Qe(e)}function Xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Je(n.key),n)}}function Je(e){var t=function(e){if("object"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}var $e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,r){return r&&Xe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"isUndefinedNull",value:function(e){return null==e||void 0===e}},{key:"getPostUrl",value:function(t,r,n,i,o,a,s,u,c,f){var l=Ke.create();try{l instanceof self.XMLHttpRequest?(l.open(r,t,!0),l.timeout=s||12e3,f&&l.setRequestHeader("Content-Type",f),u&&l.setRequestHeader(De,u),c&&l.setRequestHeader(Le,c),l.onload=function(){if(200===l.status||204===l.status&&a)i&&i(l.responseText);else{var t=l.status;e.isLikelyBlocked(l)&&(t=e.AD_BLOCK_STATUS_CODE),o&&o(l.responseText,t,l.statusText)}},l.onerror=function(){var t=l.status;e.isLikelyBlocked(l)&&(t=e.AD_BLOCK_STATUS_CODE),o&&o(l.responseText,t,l.statusText)},l.ontimeout=function(){o&&o("timeout")},l.onabort=function(){o&&o("abort")},l.send(n)):(l.onload=function(){if(200===l.status||204===l.status&&a)i&&i(l.responseText);else{var t=l.status;e.isLikelyBlocked(l)&&(t=e.AD_BLOCK_STATUS_CODE),o&&o(l.responseText,t,l.statusText)}},l.onerror=function(){var t=l.status;e.isLikelyBlocked(l)&&(t=e.AD_BLOCK_STATUS_CODE),o&&o(l.responseText,t,l.statusText)},l.onprogress=function(){},l.ontimeout=function(){o&&o("timeout")},l.open(r,t,!0),f&&l.setRequestHeader("Content-Type",f),u&&l.setRequestHeader(De,u),c&&l.setRequestHeader(Le,c),l.timeout=s||12e3,setTimeout(function(){l.
2send(n)},0))}catch(e){throw e}}},{key:"isLikelyBlocked",value:function(e){return!!navigator.onLine&&(0===e.status||null===e.responseText||""===e.responseText)}}])}();function et(e){return et="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},et(e)}function tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rt(n.key),n)}}function rt(e){var t=function(e){if("object"!=et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==et(t)?t:t+""}!function(e,t){(t=Je(t))in e?Object.defineProperty(e,t,{value:-243,enumerable:!0,configurable:!0,writable:!0}):e[t]=-243}($e,"AD_BLOCK_STATUS_CODE");var nt=function(){return function(e,t){return t&&tt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._requestBodyBuilder=t,this.updateSettings(r),this._workerUtils=n,this._acceptNoResponse=o,this._messageDescriptor=a,this.retryMessage=i,this._dataQueue=new Ee,this._awaitingServerResponse=!1,this._currentSentItem=null,this._sendRetryTimeoutId=null,this._shouldRetryToSendMessage=!1,this._messageIdentifier=0,this._enableRequestBodyHashing=!1,this._isPaused=!1,this._contentType=s,this._recordMetrics="metrics"!==a},[{key:"updateSettings",value:function(e){this._queueLoadThershold=e.queueLoadThreshold}},{key:"getRetryMessage",value:function(){return this.retryMessage}},{key:"updateEnableWupMessagesHashing",value:function(e){this._enableRequestBodyHashing=e}},{key:"sendMessage",value:function(e,t,r,n,i,o,a){var s=this,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this._enqueueMessage(e,t,r,n,function(e){s._onMessageSendSuccess(e,i)},function(e,t,r){s._onMessageSendFailure(e,t,r,o)},a,u)}},{key:"flush",value:function(){this._flushData()}},{key:"setIsPaused",value:function(e){this._isPaused=e}},{key:"isReadyToSendData",value:function(){return!this._isPaused}},{key:"_onMessageSendSuccess",value:function(e,t){this._awaitingServerResponse=!1,this._currentSentItem=null,this._shouldRetryToSendMessage=!1,this.retryMessage.restartMessageSettings(),t(e),this._processNextQueueItem()}},{key:"_onMessageSendFailure",value:function(e,t,r,n){if(!this._currentSentItem)return Q.debug("".concat(this._messageDescriptor," message send failure callback invoked but current item is null. ")+"This typically occurs when a delayed error callback fires after a flush operation. Moving to next queued item."),void this._processNextQueueItem();this._awaitingServerResponse=!1;var i=this.retryMessage.getNumberOfSendFailures()+1,o=this.retryMessage.getMessageNumToRetry(),a=this._buildFailureLog(e,t,r);Q.warnRetry("Failed sending ".concat(this._messageDescriptor," message #").concat(this._currentSentItem.identifier,". ")+"Attempt ".concat(i,"/").concat(o,". ").concat(a),i,o);var s=-1===this._currentSentItem.maxNumberOfSendAttempts;if(!this._isPaused&&this.retryMessage.shouldReMessage(s,t))this._shouldRetryToSendMessage=!0,Q.infoRetry("Trying to send ".concat(this._messageDescriptor," message #").concat(this._currentSentItem.identifier," again. Failure ").concat(i,"/").concat(o),i,o),n&&n(t,this._currentSentItem,this.retryMessage.getNumberOfSendFailures(),this._shouldRetryToSendMessage);else{this._shouldRetryToSendMessage=!1;var u=Boolean(t),c=this.retryMessage.reMessageSettings&&this.retryMessage.reMessageSettings.shouldRetryOnNetworkFailureOnly();u&&c&&!s?Q.debug("Discarding ".concat(this._messageDescriptor," message #").concat(this._currentSentItem.identifier," (server responded with status ").concat(t,", retryOnNetworkFailureOnly enabled).")):Q.warn("Discarding ".concat(this._messageDescriptor," message #").concat(this._currentSentItem.identifier," after ").concat(this.retryMessage.getNumberOfSendFailures()," failed send attempts.")),n&&n(t,this._currentSentItem,this.retryMessage.getNumberOfSendFailures(),this._shouldRetryToSendMessage),this._currentSentItem=null,this.retryMessage.restartMessageSettings(),this._processNextQueueItem()}}},{key:"_enqueueMessage",value:function(e,t,r,n,i,o,a,s){this._dataQueue.enqueue({identifier:this._messageIdentifier++,messageToSend:e,onSuccess:i,onError:o,timeout:t,maxNumberOfSendAttempts:r,serverUrl:a,realAPI:s}),this._shouldRetryToSendMessage||(this._clearRetryTimeout(),n&&this._flushData(),this._awaitingServerResponse||this._processNextQueueItem(n))}},{key:"_processNextQueueItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];
2if(this._dataQueue.hasItems()||!r){var n=null;r?(n=this._dataQueue.dequeue(),this._currentSentItem=n):n=this._currentSentItem;var i=this._requestBodyBuilder.build(n.messageToSend,t);this._enableRequestBodyHashing?Me.hashSha256(i,function(r,o){r?Q.error(r):e._sendProcessedQueueItem(i,n,t,o)}):this._sendProcessedQueueItem(i,n,t)}}},{key:"_sendProcessedQueueItem",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(Be.isWebWorkerFetchSupported()&&r){var i=new Headers;this._contentType&&i.append("Content-Type",this._contentType),n&&i.append(De,n),t.realAPI&&i.append(Le,t.realAPI);var o={method:Ue,headers:i,body:e,keepalive:!0};this._sendWithFetch(o,t.serverUrl)}else this._sendWithXMLHttpRequest(e,t,n);this._checkQueueLength()}},{key:"_sendWithFetch",value:function(e,t){var r=this;this._currentSentItem=null,self.fetch(t,e).then(function(){r._recordMetrics&&Ge.record(W.HTTP_REQUEST_RESULT,{result:"success",reason:"none",status_code:"200",source:r._messageDescriptor}),Q.info("Flush data was sent successfully by fetch")}).catch(function(e){r._recordMetrics&&Ge.record(W.HTTP_REQUEST_RESULT,{result:"failure",reason:"http_error",status_code:"-1",source:r._messageDescriptor}),Q.debug("Flush data fetch request failed (expected for fire-and-forget): ".concat(e))})}},{key:"_sendWithXMLHttpRequest",value:function(e,t,r){var n=this;this._awaitingServerResponse=!0;var i=this._recordMetrics?function(e){Ge.record(W.HTTP_REQUEST_RESULT,{result:"success",reason:"none",status_code:"200",source:n._messageDescriptor}),t.onSuccess(e)}:t.onSuccess,o=this._recordMetrics?function(e,r,i){var o=r===$e.AD_BLOCK_STATUS_CODE?"ad_blocker":"http_error";Ge.record(W.HTTP_REQUEST_RESULT,{result:"failure",reason:o,status_code:String(r||"-1"),source:n._messageDescriptor}),t.onError(e,r,i)}:t.onError;this._workerUtils.getPostUrl(t.serverUrl,Ue,e,i,o,this._acceptNoResponse,t.timeout,r,t.realAPI,this._contentType)}},{key:"_checkQueueLength",value:function(){this._dataQueue.length()>this._queueLoadThershold&&Q.warn("Data queue has ".concat(this._dataQueue.length()," items in queue. Might indicate slow\\\\unstable communication issues."))}},{key:"_flushData",value:function(){for(;this._dataQueue.hasItems();)this._processNextQueueItem(!0)}},{key:"prepareMessageForSendRetry",value:function(e){var t=this;this._clearRetryTimeout(),this.retryMessage.updateRetryInterval();var r=this.retryMessage.getNextInterval();this._sendRetryTimeoutId=setTimeout(function(){t._retryQueueItem(e)},r)}},{key:"_retryQueueItem",value:function(e){var t,r=this;t=e;var n=this._requestBodyBuilder.build(t.messageToSend,!1);this._enableRequestBodyHashing?Me.hashSha256(n,function(e,i){e?Q.error(e):r._sendProcessedQueueItem(n,t,!1,i)}):this._sendProcessedQueueItem(n,t,!1,null)}},{key:"_clearRetryTimeout",value:function(){this._sendRetryTimeoutId&&clearTimeout(this._sendRetryTimeoutId)}},{key:"_buildFailureLog",value:function(e,t,r){var n="";return e&&(n+="Response Text: ".concat(e,".")),t&&(n+="Status: ".concat(t,".")),r&&(n+="Status Text: ".concat(r,".")),n}}])}();function it(e){return it="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},it(e)}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,at(n.key),n)}}function at(e){var t=function(e){if("object"!=it(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}var st=function(){return function(e,t){return t&&ot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},[{key:"setData",value:function(e){this._data=e}},{key:"getInternalMessage",value:function(){return this._data}}])}();function ut(e){return ut="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},ut(e)}function ct(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ft(n.key),n)}}function ft(e){var t=function(e){if("object"!=ut(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ut(t)?t:t+""}var lt=function(){return function(e,t){return t&&ct(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dataPacker=t},[{key:"build",value:function(e){var t=new st;return t.setData(this._dataPacker.pack(e)),t}}])}(),ht=self.btoa?self.btoa.bind(self):function(e){for(var t,r,n=String(e),i="",o=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=";n.charAt(0|o)||(a="=",o%1);i+=a.charAt(63&t>>8-o%1*8)){if((r=n.charCodeAt(o+=3/4))>255)throw new Error("\'btoa\' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|r}return i};function dt(e){return dt="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},dt(e)}function pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yt(n.key),n)}}function yt(e){var t=function(e){if("object"!=dt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dt(t)?t:t+""}var vt=r(273),mt=r(860),bt=function(){return function(e,t){return t&&pt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._compressData=function(e){var t=vt.encode(e);return t=mt.deflateRaw(t,{to:"string"}),ht(t)}},[{key:"pack",value:function(e){return this._getCompressedData(e)}},{key:"_getCompressedData",value:function(e){return this._compressData(e)}}])}(),gt=1e3,_t=16e3,wt=3e5;function St(e){return St="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},St(e)}function kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Et(n.key),n)}}function Et(e){var t=function(e){if("object"!=St(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==St(t)?t:t+""}var Pt=function(){return function(e,t){return t&&kt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.messageNumToRetry=t,this.messageRetryInterval=r,this.incrementalGrowthBetweenFailures=n,this.maxIntervalBetweenFailures=i,this.retryOnNetworkFailureOnly=o,this.init()},[{key:"init",value:function(){this._validateReMessageSettings()}},{key:"getMessageNumToRetry",value:function(){return this.messageNumToRetry}},{key:"getMessageRetryInterval",value:function(){return this.messageRetryInterval}},{key:"getMaxIntervalBetweenFailures",value:function(){return this.maxIntervalBetweenFailures}},{key:"getIncrementalGrowthBetweenFailures",value:function(){return this.incrementalGrowthBetweenFailures}},{key:"shouldRetryOnNetworkFailureOnly",value:function(){return this.retryOnNetworkFailureOnly}},{key:"_validateReMessageSettings",value:function(){var e="The provided configuration is invalid, it must be ";isNaN(this.messageNumToRetry)?(Q.warn("".concat(e," a number. setting to default: ").concat(5)),this.messageNumToRetry=5):this.messageNumToRetry=parseInt(this.messageNumToRetry),(this.messageNumToRetry<1||this.messageNumToRetry>1e3)&&(Q.warn("messageNumToRetry - ".concat(e," in the following range: \\n ").concat(1," - ").concat(1e3," setting to default: ").concat(5)),this.messageNumToRetry=5),(this.messageRetryInterval<100||this.messageRetryInterval>1e4)&&(Q.warn("messageRetryInterval - ".concat(e," in the following range: \\n [").concat(100," - ").concat(1e4,"], \\n setting to default: ").concat(gt)),this.messageRetryInterval=gt),(this.incrementalGrowthBetweenFailures<0||this.incrementalGrowthBetweenFailures>1e4)&&(Q.warn("incrementalGrowthBetweenFailures - ".concat(e," in the following range: \\n [").concat(0," - ").concat(1e4,"],\\n setting to default: ").concat(3500)),this.incrementalGrowthBetweenFailures=3500),(this.maxIntervalBetweenFailures<100||this.maxIntervalBetweenFailures>wt)&&(Q.warn("maxIntervalBetweenFailures - ".concat(e," in the following range: \\n [").concat(100," - ").concat(wt,"]\\n setting to default: ").concat(_t)),this.maxIntervalBetweenFailures=_t),this.maxIntervalBetweenFailures<this.messageRetryInterval&&(Q.warn(" maxIntervalBetweenFailures - ".concat(e," greater than minimum interval: \\n [").concat(100,"], setting to defaults:\\n ").concat(_t)),this.maxIntervalBetweenFailures=_t,this.messageRetryInterval=gt)}}])}();function Tt(e){return Tt="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},Tt(e)}function Ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ct(n.key),n)}}function Ct(e){var t=function(e){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}var Rt=function(){return function(e,t,r){return r&&Ot(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"createReMessageSettings",value:function(e){return new Pt(e.get("logMessageNumToRetry"),e.get("logMessageRetryInterval"),e.get("logIncrementalGrowthBetweenFailures"),e.get("logMaxIntervalBetweenFailures"),e.get("logRetryOnNetworkFailureOnly"))}}])}();function xt(e){return xt="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},xt(e)}function Bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jt(n.key),n)}}
2function jt(e){var t=function(e){if("object"!=xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}var At=function(){return function(e,t){return t&&Bt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._serverCommunicator=t,this._logMessageBuilder=r,this._configurationRepository=n,this._serverUrl=null,this._MESSAGE_SEND_RETRIES=5,this._requestTimeout=this._configurationRepository.get(w)},[{key:"setServerUrl",value:function(e){this._serverUrl=e}},{key:"setIsPaused",value:function(e){this._serverCommunicator.setIsPaused(e)}},{key:"sendData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._serverUrl){var r=this._logMessageBuilder.build(e);this._serverCommunicator.sendMessage(r,this._requestTimeout,this._serverCommunicator.getRetryMessage().getMessageNumToRetry(),t,this._onSendDataSuccess.bind(this),this._onSendDataFailure.bind(this),this._serverUrl),t&&this._serverCommunicator.flush()}else Q.error("Cannot send log message: server URL is not set")}},{key:"isReady",value:function(){return this._serverCommunicator.isReadyToSendData()}},{key:"setRequestTimeout",value:function(e){this._requestTimeout=e}},{key:"setConfigurationLogMessage",value:function(){var e=Rt.createReMessageSettings(this._configurationRepository);this._serverCommunicator.getRetryMessage().updateSettings(e)}},{key:"_onSendDataSuccess",value:function(){}},{key:"_onSendDataFailure",value:function(e){Q.warn("Failed sending log message. Error: ".concat(e,"."))}}])}();function It(e){return It="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},It(e)}function Mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dt(n.key),n)}}function Dt(e){var t=function(e){if("object"!=It(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==It(t)?t:t+""}var Lt=function(){return function(e,t){return t&&Mt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._statisticsLogIntervalMs=t,this.resetCounters(),this._setPeriodicStatisticsLog()},[{key:"getSentWupsCount",value:function(){return this._sentWupsCount}},{key:"incrementSentWupCount",value:function(){this._sentWupsCount++,this._sentWupsInCurrentIntervalCount++}},{key:"updateSettings",value:function(e){this._statisticsLogIntervalMs=e,this._setPeriodicStatisticsLog()}},{key:"resetCounters",value:function(){this._sentWupsCount=0,this._sentWupsInCurrentIntervalCount=0}},{key:"stop",value:function(){this._stopPeriodicStatisticsLog()}},{key:"_writeStatisticsLog",value:function(){0!==this._sentWupsInCurrentIntervalCount&&(Q.debug("Sent ".concat(this._sentWupsInCurrentIntervalCount," wup in the last ").concat(this._statisticsLogIntervalMs," ms. Sent a total of ").concat(this._sentWupsCount," in the session")),this._sentWupsInCurrentIntervalCount=0)}},{key:"_stopPeriodicStatisticsLog",value:function(){this._periodicLogIntervalId&&clearInterval(this._periodicLogIntervalId)}},{key:"_setPeriodicStatisticsLog",value:function(){this._stopPeriodicStatisticsLog(),this._periodicLogIntervalId=setInterval(this._writeStatisticsLog.bind(this),this._statisticsLogIntervalMs)}}])}(),Ut="incremental",Ft="constant";function Nt(e){return Nt="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}
2,Nt(e)}function zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qt(n.key),n)}}function qt(e){var t=function(e){if("object"!=Nt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nt(t)?t:t+""}var Wt=function(){return function(e,t){return t&&zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.updateSettings(t)},[{key:"getRate",value:function(){return this._currentRate}},{key:"updateSettings",value:function(e){if(e.type!==Ft)throw new Error("Invalid settings provided to constant calculator");this._currentRate=e.initialRateValueMs}}])}();function Ht(e){return Ht="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},Ht(e)}function Gt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yt(n.key),n)}}function Yt(e){var t=function(e){if("object"!=Ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ht(t)?t:t+""}var Vt=function(){return function(e,t){return t&&Gt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupStatisticsService=r,this.updateSettings(t)},[{key:"getRate",value:function(){if(this._wupStatisticsService.getSentWupsCount()<this._incrementStartWupSendCount)return this._currentRate;var e=this._currentRate+this._incrementStepMs;return e<=this._incrementStopMs&&(this._currentRate=e),this._currentRate}},{key:"updateSettings",value:function(e){if(e.type!==Ut)throw new Error("Invalid settings provided to incremental calculator");this._currentRate=e.initialRateValueMs,this._incrementStepMs=e.incrementStepMs,this._incrementStopMs=e.incrementStopMs,this._incrementStartWupSendCount=e.incrementStartWupSendCount}}])}();function Zt(e){return Zt="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},Zt(e)}function Kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qt(n.key),n)}}function Qt(e){var t=function(e){if("object"!=Zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zt(t)?t:t+""}var Xt=function(){return function(e,t){return t&&Kt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupServerSessionState=t},[{key:"getRate",value:function(){return this._wupServerSessionState.getWupDispatchRate()}},{key:"updateSettings",value:function(){}}])}();function Jt(e){return Jt="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},Jt(e)}function $t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,er(n.key),n)}}function er(e){var t=function(e){if("object"!=Jt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jt(t)?t:t+""}var tr=function(){return function(e,t){return t&&$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupStatisticsService=t,this._wupServerSessionState=r},[{key:"create",value:function(e){if(e.type===Ft)return new Wt(e);if(e.type===Ut)return new Vt(e,this._wupStatisticsService);if("dynamic"===e.type)return new Xt(this._wupServerSessionState);throw new Error("Unsupported dispatch rate type ".concat(e.type))}}])}();function rr(e){return rr="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},rr(e)}function nr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ir(n.key),n)}}function ir(e){var t=function(e){if("object"!=rr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rr(t)?t:t+""}var or=function(){return function(e,t){return t&&nr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._serverClient=t,this._aggregator=r,this._wupDispatchRateCalculatorFactory=n,this._wupDispatchRateSettings=i,this._wupDispatchRateCalculator=this._wupDispatchRateCalculatorFactory.create(this._wupDispatchRateSettings),this._sendToServerInterval=this._wupDispatchRateCalculator.getRate(),this._setDispatchInterval(this._sendToServerInterval)},[{key:"add",value:function(e){this._aggregator.add(e)}},{key:"sendIfRequired",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0===this._sendToServerInterval||e)&&this._sendToServer(e)}},{key:"updateByConfig",value:function(e){e&&(e.type!==this._wupDispatchRateSettings.type?this._wupDispatchRateCalculator=this._wupDispatchRateCalculatorFactory.create(e):this._wupDispatchRateCalculator.updateSettings(e),this._sendToServerInterval=this._wupDispatchRateCalculator.getRate(),this._setDispatchInterval(this._sendToServerInterval),this._wupDispatchRateSettings=e)}},{key:"scheduleNextDispatching",value:function(){var e=this._wupDispatchRateCalculator.getRate();e!==this._sendToServerInterval&&(this._sendToServerInterval=e,this._setDispatchInterval(this._sendToServerInterval))}},{key:"_sendToServer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Q.debug("Sending a message to the server"),this._serverClient.isReady()?this._aggregator.isEmpty()||(this._serverClient.sendData(this._aggregator.take(),e),this.scheduleNextDispatching()):Q.info("".concat(this._serverClient.constructor.name," is not ready. Message will not be sent to server"))}},{key:"_setDispatchInterval",value:function(e){this._sendIntervalId&&(clearInterval(this._sendIntervalId),this._sendIntervalId=null),0!==e&&(this._sendIntervalId=setInterval(this._sendToServer.bind(this),e))}}])}();function ar(e){return ar="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},ar(e)}function sr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ur(n.key),n)}}function ur(e){var t=function(e){if("object"!=ar(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ar(t)?t:t+""}var cr=function(){return function(e,t){return t&&sr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset()},[{key:"setLogLevel",value:function(e){this._logLevel=e}},{key:"add",value:function(e){var t=e.data;if(!t)throw new Error("Unable to add log message. Missing data field");(!t.level||t.level>=this._logLevel)&&this._Q.push(t)}},{key:"take",value:function(){var e=this._Q;return this.reset(),e}},{key:"reset",value:function(){this._Q=[],this.setLogLevel(void 0===this._logLevel?20:this._logLevel)}},{key:"isEmpty",value:function(){return 0===this._Q.length}},{key:"filterOutByLogLevel",value:function(e){this._Q=this._Q.filter(function(t,r,n){return t.level>=e})}}])}();function fr(e){return fr="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},fr(e)}function lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hr(n.key),n)}}function hr(e){var t=function(e){if("object"!=fr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fr(t)?t:t+""}var dr=function(){return function(e,t){return t&&lr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dataDispatcher=t},[{key:"process",value:function(e){if(!e)throw new Error("Invalid message received for processing.");var t=!1;if(Array.isArray(e))for(var r=0,n=e.length;r<n;r++)t=this._processSingleMessage(e[r])||t;else t=this._processSingleMessage(e)||t;this._dataDispatcher.sendIfRequired(t)}},{key:"_processSingleMessage",value:function(e){if(this._isEmptyFlushMessage(e))return!0;var t=!1;if(e.shouldFlush&&(t=!0),!this._isDataValid(e)){var r="Received a message with invali
2d structure. Missing eventName or Data fields";throw Q.error(r),new Error(r)}return this._dataDispatcher.add(e),t}},{key:"_isEmptyFlushMessage",value:function(e){return"flushData"===e.eventName}},{key:"_isDataValid",value:function(e){return e.eventName&&e.data}}])}(),pr="js";function yr(e){return yr="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},yr(e)}function vr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mr(n.key),n)}}function mr(e){var t=function(e){if("object"!=yr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yr(t)?t:t+""}var br=function(){return function(e,t){return t&&vr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageStruct={ds:pr}},[{key:"getDataSource",value:function(){return this._messageStruct.ds}},{key:"getSid",value:function(){return this._messageStruct.cdsnum}},{key:"setSid",value:function(e){this._messageStruct.cdsnum=e}},{key:"getCsid",value:function(){return this._messageStruct.csid}},{key:"setCsid",value:function(e){this._messageStruct.csid=e}},{key:"getPsid",value:function(){return this._messageStruct.psid}},{key:"setPsid",value:function(e){this._messageStruct.psid=e}},{key:"getMuid",value:function(){return this._messageStruct.muid}},{key:"setMuid",value:function(e){this._messageStruct.muid=e}},{key:"getContextName",value:function(){return this._messageStruct.context_name}},{key:"setContextName",value:function(e){this._messageStruct.context_name=e}},{key:"getRequestId",value:function(){return this._messageStruct.requestId}},{key:"setRequestId",value:function(e){this._messageStruct.requestId=e}},{key:"getSts",value:function(){return this._messageStruct.sts}},{key:"setSts",value:function(e){this._messageStruct.sts=e}},{key:"getStd",value:function(){return this._messageStruct.std}},{key:"setStd",value:function(e){this._messageStruct.std=e}},{key:"setFlush",value:function(e){this._messageStruct.f=e}},{key:"getConfigurationName",value:function(){return this._messageStruct.c}},{key:"setConfigurationName",value:function(e){this._messageStruct.c=e}},{key:"getData",value:function(){return this._messageStruct.d}},{key:"setData",value:function(e){this._messageStruct.d=e}},{key:"getDataFields",value:function(){return this._messageStruct.sf}},{key:"setDataFields",value:function(e){this._messageStruct.sf=e}},{key:"getInternalMessage",value:function(){return this._messageStruct}},{key:"setOtt",value:function(e){this._messageStruct.ott=e}},{key:"getOtt",value:function(){return this._messageStruct.ott}},{key:"setAgentType",value:function(e){this._messageStruct.agent_type=e}},{key:"getAgentType",value:function(){return this._messageStruct.agent_type}},{key:"setAgentId",value:function(e){this._messageStruct.agent_id=e}},{key:"getAgentId",value:function(){return this._messageStruct.agent_id}}])}();function gr(e){return gr="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},gr(e)}function _r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sr(n.key),n)}}function Sr(e){var t=function(e){if("object"!=gr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gr(t)?t:t+""}var kr=function(){return function(e,t){return t&&wr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupServerSessionState=t,this._dataPacker=r,this._configurationRepository=n},[{key:"build",value:function(e,t){var r=new br;this._updateDataWithBrand(t),r.setSid(this._wupServerSessionState.getSid()),r.setCsid(this._wupServerSessionState.getCsid()),r.setPsid(this._wupServerSessionState.getPsid()),r.setMuid(this._wupServerSessionState.getMuid()),r.setContextName(this._wupServerSessionState.getContextName()),r.setRequestId(this._wupServerSessionState.getRequestId()),r.setAgentType(this._wupServerSessionState.getAgentType()),r.setAgentId(this._wupServerSessionState.getAgentId()),this._wupServerSessionState.getSts()&&this._wupServerSessionState.getStd()&&(r.setSts(this._wupServerSessionState.getSts()),r.setStd(this._wupServerSessionState.getStd()));var n=this._wupServerSessionState.getOtt();return n&&r.setOtt(n),e===pr?r.setConfigurationName(e):(r.setData([this._dataPacker.pack(t)]),this._configurationRepository.get("enableWupSendDataFields")&&r.setDataFields(this._getDataFieldIndices(t))),r}},{key:"_updateDataWithBrand",value:function(e){var t=this._wupServerSessionState.getBrand();t&&(e.static_fields||(e.static_fields=[]),e.static_fields.push(["brand",t]))}},{key:"_getDataFieldIndices",value:function(e){var t=this._configurationRepository.get("embedding_minimal_collectors");if("string"==typeof t)try{t=JSON.parse(t)}catch(e){return[]}if(!Array.isArray(t))return[];var r=new Set((Array.isArray(e.static_fields)?e.static_fields:[]).filter(function(e){return Array.isArray(e)&&e.length>=1}).map(function(e){return t.indexOf(e[0])}).filter(function(e){return-1!==e}));
2if(0===r.size)return[];var n=this._calculateChecksum(t),i=Array.from(r).sort(function(e,t){return e-t});return[n].concat(function(e){return function(e){if(Array.isArray(e))return _r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _r(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i))}},{key:"_calculateChecksum",value:function(e){for(var t=JSON.stringify(e),r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r&=r;return Math.abs(r)}}])}();function Er(e){return Er="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},Er(e)}function Pr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tr(n.key),n)}}function Tr(e){var t=function(e){if("object"!=Er(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Er(t)?t:t+""}var Or=function(){return function(e,t){return t&&Pr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupServerSessionState=t},[{key:"build",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.setSid(this._wupServerSessionState.getSid()),e.setSts(this._wupServerSessionState.getSts()),e.setStd(this._wupServerSessionState.getStd()),e.setOtt(this._wupServerSessionState.getOtt()),t&&e.setFlush(pr),JSON.stringify(e.getInternalMessage())}}])}(),Cr="ConfigurationLoadedEvent",Rr="NewSessionStartedEvent",xr="WupDispatchRateUpdatedEvent",Br="ServerStateUpdatedEvent",jr="ServerRestoredMuidEvent",Ar="ServerNewAgentIdEvent",Ir="WorkerSystemStatusEvent";function Mr(e){return Mr="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},Mr(e)}function Dr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lr(n.key),n)}}function Lr(e){var t=function(e){if("object"!=Mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mr(t)?t:t+""}var Ur=function(){return function(e,t){return t&&Dr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupServerSessionState=t,this._messageBus=r,this._configurationRepository=n},[{key:"process",value:function(e,t){var r=!1;t&&(this._wupServerSessionState.markConfigurationReceived(),this._configurationRepository.loadConfigurations(e),r=!0),e.sts&&this._wupServerSessionState.setSts(e.sts),e.std&&this._wupServerSessionState.setStd(e.std),e.ott&&this._wupServerSessionState.setOtt(e.ott),e.reset_session&&e.new_sid&&this._wupServerSessionState.setSid(e.new_sid),e.rmd&&(this._wupServerSessionState.setMuid(e.rmd),this._messageBus.publish(jr,e.rmd)),e.agent_id&&(this._wupServerSessionState.setAgentId(e.agent_id),this._messageBus.publish(Ar,e.agent_id)),this._messageBus.publish(Br,{requestId:this._wupServerSessionState.getRequestId(),sid:this._wupServerSessionState.getSid(),sts:this._wupServerSessionState.getSts(),std:this._wupServerSessionState.getStd(),ott:this._wupServerSessionState.getOtt()}),r&&this._messageBus.publish(Cr,this._configurationRepository),e.reset_session&&(e.new_sid?this._messageBus.publish(Rr,e.new_sid):Q.warn("Received a reset session flag from the server without a new sid. Ignoring reset.")),e.nextWupInterval?e.nextWupInterval!==this._wupServerSessionState.getWupDispatchRate()&&(this._wupServerSessionState.setWupDispatchRate(e.nextWupInterval),this._messageBus.publish(xr,this._wupServerSessionState.getWupDispatchRate())):Q.warn("Received an invali
2d nextWupInterval value of ".concat(e.nextWupInterval,". Ignoring value."))}}])}(),Fr="704";function Nr(e){return Nr="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},Nr(e)}function zr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wr(n.key),n)}}function qr(e,t,r){return t&&zr(e.prototype,t),r&&zr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wr(e){var t=function(e){if("object"!=Nr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nr(t)?t:t+""}var Hr="oK",Gr="Error",Yr=qr(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.category=t,this.status=r}),Vr={PRIMARY:"primary",SECONDARY:"secondary"};function Zr(e,t,r,n){var i;return n?(i=3===t?"v3.1":"v4",i+="/"+function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(11*Math.random())+10,r="",n=0;n<t;n++)r+=e[Math.floor(62*Math.random())];return r}()):(i=3===t?"client/v3.1/web/wup":"api/v4/wup",i+="?cid="+r),e+"/"+i}function Kr(e){return Kr="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},Kr(e)}function Qr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xr(n.key),n)}}function Xr(e){var t=function(e){if("object"!=Kr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kr(t)?t:t+""}Object.freeze(Vr);var Jr=function(){return function(e,t,r){return r&&Qr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"createReMessageSettings",value:function(e){return new Pt(e.get(E),e.get("wupMessageRetryInterval"),e.get("wupIncrementalGrowthBetweenFailures"),e.get("wupMaxIntervalBetweenFailures"),e.get("wupRetryOnNetworkFailureOnly"))}}])}();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},$r(e)}function en(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?en(Object(r),!0).forEach(function(t){rn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rn(e,t,r){return(t=on(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,on(n.key),n)}}function on(e){var t=function(e){if("object"!=$r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=$r(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$r(t)?t:t+""}var an=function(){return function(e,t){return t&&nn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,i,o,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._serverCommunicator=t,this._wupMessageBuilder=r,this._wupServerSessionState=n,this._wupStatisticsService=i,this._wupResponseProcessor=o,this._configurationRepository=a,this._msgBus=s,this._INFINITE_MESSAGE_SEND_RETRIES=-1,this._retryMessage=this._serverCommunicator.getRetryMessage(),this._MESSAGE_SEND_RETRIES=this._configurationRepository.get(E),this._requestTimeout=this._configurationRepository.get(_)},[{key:"startNewSession",value:function(e,t,r,n,i,o,a,s,u){this._val
2idateCommonSessionRelatedParameters(o,s),this._wupServerSessionState.setRequestId(0),this._wupServerSessionState.setBrand(null),this._serverAddress=s,this._recoveryServerURL=u,this.shouldAddRealAPI=!1,this._sendSessionMessage(null,e,t,r,n,i,o,a,s,null,this._wupServerSessionState.getRequestId())}},{key:"_sendSessionMessage",value:function(e,t,r,n,i,o,a,s,u,c,f){var l=this;this._initSession(e,t,r,n,i,o,a,s,u,c,f);var h=this._createStaticFieldsPart(),d=!this._wupServerSessionState.getHasConfiguration()&&!this._wupServerSessionState.getHasPendingConfigurationRequest();d&&this._wupServerSessionState.markConfigurationRequested();var p=this._wupMessageBuilder.build(d?pr:"0",h),y=Zr(u,r,t,n);this._serverCommunicator.sendMessage(p,this._requestTimeout,d?this._INFINITE_MESSAGE_SEND_RETRIES:this._MESSAGE_SEND_RETRIES,!1,function(e){l._onSendDataSuccess(e,d)},this._onSendDataFailure.bind(this),y)}},{key:"resumeSession",value:function(e,t,r,n,i,o,a,s,u,c,f){this._validateResumeSessionRelatedParameters(e,a,u);var l=c&&c.requestId?this._wupServerSessionState.setRequestId(c.requestId+1):this._wupServerSessionState.setRequestId(0);this._serverAddress=u,this._recoveryServerURL=f,this._sendSessionMessage(e,t,r,n,i,o,a,s,u,c,l)}},{key:"sendData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._wupServerSessionState.getOtt(),n=this._wupServerSessionState.getProtocolType(),i=4===n,o=3===n,a=this._wupServerSessionState.getSts()&&this._wupServerSessionState.getStd();if(r&&i||a&&o)this._sendMessage(e,t);else{var s=i?"ott":"sts or std";Q.error("Unable to send data. ".concat(s," is undefined"))}}},{key:"setRequestTimeout",value:function(e){this._requestTimeout=e}},{key:"setConfigurationWupMessage",value:function(){var e=Jr.createReMessageSettings(this._configurationRepository);this._retryMessage.updateSettings(e)}},{key:"_initSession",value:function(e,t,r,n,i,o,a,s,u,c,f){Q.debug("Initializing session. wupUrl:".concat(u,", sid:").concat(e)),this._wupServerSessionState.setBaseServerUrl(u),this._wupServerSessionState.setSid(e),this._wupServerSessionState.setCid(t),this._wupServerSessionState.setCsid(i),this._wupServerSessionState.setPsid(o),this._wupServerSessionState.setMuid(a),this._wupServerSessionState.setProtocolType(r),this._wupServerSessionState.setShouldMinifyUri(n),this._wupServerSessionState.setContextName(s||""),this._wupServerSessionState.setRequestId(f,!1),c?(this._wupServerSessionState.setSts(c.sts),this._wupServerSessionState.setStd(c.std),this._wupServerSessionState.setOtt(c.ott)):(Q.info("Resetting server state of server communicator. Deleting sts and std"),this._wupServerSessionState.setSts(null),this._wupServerSessionState.setStd(null),this._wupServerSessionState.setOtt(null),this._wupStatisticsService.resetCounters())}},{key:"_fallBackToRecoveryServerUrl",value:function(){this._recoveryServerURL&&(this._wupServerSessionState.setBaseServerUrl(this._recoveryServerURL),this.shouldAddRealAPI=!0)}},{key:"updateCsid",value:function(e){var t=this._wupServerSessionState.incrementRequestId()||0;this._wupServerSessionState.setCsid(e);var r={static_fields:[]};r.static_fields.push(["requestId",t],["contextId",this._wupServerSessionState.getContextName()],["sessionId",this._wupServerSessionState.getSid()],["customerSessionId",this._wupServerSessionState.getCsid()],["partnerSessionId",this._wupServerSessionState.getPsid()],["muid",this._wupServerSessionState.getMuid()]),this._sendMessage(r)}},{key:"updatePsid",value:function(e){var t=this._wupServerSessionState.incrementRequestId()||0;this._wupServerSessionState.setPsid(e);var r={static_fields:[]};r.static_fields.push(["requestId",t],["contextId",this._wupServerSessionState.getContextName()],["sessionId",this._wupServerSessionState.getSid()],["customerSessionId",this._wupServerSessionState.getCsid()],["partnerSessionId",this._wupServerSessionState.getPsid()],["muid",this._wupServerSessionState.getMuid()]),this._sendMessage(r)}},{key:"updateBrand",value:function(e){this._wupServerSessionState.setBrand(e)}},{key:"isReady",value:function(){var e=this._serverCommunicator.isReadyToSendData();if(4===this._wupServerSessionState.getProtocolType())return!(!e||!this._wupServerSessionState.getOtt());var t=this._wupServerSessionState.getStd()&&this._wupServerSessionState.getSts();return!(!e||!t)}},{key:"_validateResumeSessionRelatedParameters",value:function(e,t,r){if(!e)throw new Error("Invalid sid parameter ".concat(e,". Unable to start new session"));
2this._validateCommonSessionRelatedParameters(t,r)}},{key:"_validateCommonSessionRelatedParameters",value:function(e,t){if(!e&&this._wupServerSessionState.getAgentType()!==Vr.SECONDARY)throw new Error("Invalid muid parameter ".concat(e,". Unable to start new session"));if(!t)throw new Error("Invalid serverAddress parameter ".concat(t,". Unable to start new session"))}},{key:"_createStaticFieldsPart",value:function(){var e={static_fields:[]};return e.static_fields.push(["requestId",this._wupServerSessionState.getRequestId()],["contextId",this._wupServerSessionState.getContextName()],["sessionId",this._wupServerSessionState.getSid()],["customerSessionId",this._wupServerSessionState.getCsid()],["partnerSessionId",this._wupServerSessionState.getPsid()],["muid",this._wupServerSessionState.getMuid()]),e}},{key:"_sendMessage",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._wupMessageBuilder.build("0",e),i=Zr(this._wupServerSessionState.getBaseServerUrl(),this._wupServerSessionState.getProtocolType(),this._wupServerSessionState.getCid(),this._wupServerSessionState.getShouldMinifyUri());try{t=new URL(this._serverAddress).hostname}catch(e){t=null}this._serverCommunicator.sendMessage(n,this._requestTimeout,this._MESSAGE_SEND_RETRIES,r,this._onSendDataSuccess.bind(this),this._onSendDataFailure.bind(this),i,this.shouldAddRealAPI?t:null)}},{key:"_onSendDataSuccess",value:function(e,t){t=t||!1,this._publishWorkerSystemStatus(Fr,Hr),this._handleSuccessResponse(e,t),this._wupStatisticsService.incrementSentWupCount()}},{key:"_onSendDataFailure",value:function(e,t,r,n){if(r===this._MESSAGE_SEND_RETRIES?this._publishWorkerSystemStatus(Fr,Gr):this._publishWorkerSystemStatus(Fr,"RequestError"),e==$e.AD_BLOCK_STATUS_CODE&&this._recoveryServerURL){this._fallBackToRecoveryServerUrl();var i,o=Zr(this._wupServerSessionState.getBaseServerUrl(),this._wupServerSessionState.getProtocolType(),this._wupServerSessionState.getCid(),this._wupServerSessionState.getShouldMinifyUri());try{i=new URL(this._serverAddress).hostname}catch(e){i=null}var a=tn(tn({},t),{},{serverUrl:o,realAPI:i});this._serverCommunicator.prepareMessageForSendRetry(a)}else n&&this._serverCommunicator.prepareMessageForSendRetry(t)}},{key:"_handleSuccessResponse",value:function(e,t){var r=t?"702":"703";try{var n=JSON.parse(e);this._wupResponseProcessor.process(n,t),this._publishWorkerSystemStatus(r,Hr)}catch(e){this._publishWorkerSystemStatus(r,Gr);var i="Failed to parse message from server: ".concat(e.message);Q.error(i,e)}}},{key:"_publishWorkerSystemStatus",value:function(e,t){this._msgBus.publish(Ir,new Yr(e,t))}}])}();function sn(e){return sn="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},sn(e)}function un(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cn(n.key),n)}}function cn(e){var t=function(e){if("object"!=sn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sn(t)?t:t+""}var fn=function(){return function(e,t){return t&&un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._wupServerSessionState=t,this.reset()},[{key:"add",value:function(e){var t=e.eventName,r=e.data;if(!t)throw new Error("Unable to add data message. Missing eventName field");if(!r)throw new Error("Unable to add data message. Missing data field");this._isEmpty=!1,this._dataObj[t]=this._dataObj[t]||[],this._dataObj[t].push(r)}},{key:"take",value:function(){this._isEmpty||this._dataObj.static_fields.push(["requestId",this._wupServerSessionState.incrementRequestId()]);var e=this._dataObj;return this.reset(),e}},{key:"reset",value:function(){this._isEmpty=!0,this._dataObj=this.getFreshDataObj()}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"getFreshDataObj",value:function(){return{static_fields:[],key_events:[],mouse_events:[]}}}])}();function ln(e){return ln="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},ln(e)}function hn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dn(n.key),n)}}function dn(e){var t=function(e){if("object"!=ln(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ln(t)?t:t+""}var pn=function(){return function(e,t){return t&&hn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,i,o,a,s,u,c){var f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._wupStatisticsService=r,this._dataDispatcher=n,this._logDataDispatcher=i,this._serverCommunicator=o,this._wupServerClient=a,this._logServerClient=s,this._logger=u,this._mainCommunicator=c,this._metricsServerClient=f,this._messageBus.subscribe(Cr,this._handle.bind(this))},[{key:"_handle",value:function(e){this._wupStatisticsService.updateSettings(e.get(b));var t=e.get(m)?ae.defaultDynamicWupDispatchRateConfiguration:e.get(y);this._dataDispatcher.updateByConfig(t),this._logDataDispatcher.updateByConfig(e.get(v)),this._serverCommunicator.updateSettings(e.get(g)),this._logger.updateLogConfig(e),this._wupServerClient.setRequestTimeout(e.get(_)||e.get("wupResponseTimeout")),this._logServerClient.setRequestTimeout(e.get(w)),this._wupServerClient.setConfigurationWupMessage(),this._logServerClient.setConfigurationLogMessage(),this._updateMetricsConfiguration(e),this._mainCommunicator.sendAsync("ConfigurationLoadedEvent",e.getAll())}},{key:"_updateMetricsConfiguration",value:function(e){if(this._metricsServerClient){var t=e.get(x);t&&(this._metricsServerClient.retryAndTimeoutInterval=t);var r=e.get(R);if(r&&(this._metricsServerClient.maxRetries=r),e.get(P)){var n=e.get(O)||"https://sdkslogsender-regionalservices.bc2.customers.biocatch.com/api/v1/";this._metricsServerClient.updateServerUrl(n);var i=e.get(C);i&&(this._metricsServerClient.dispatchRate=i),"started"!==this._metricsServerClient.getState()&&this._metricsServerClient.start()}else"started"===this._metricsServerClient.getState()&&this._metricsServerClient.stop()}}}])}();function yn(e){return yn="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},yn(e)}function vn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mn(n.key),n)}}function mn(e){var t=function(e){if("object"!=yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:t+""}var bn=function(){return function(e,t){return t&&vn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._logger=r,this._mainCommunicator=n,this._messageBus.subscribe(Rr,this._handle.bind(this))},[{key:"_handle",value:function(e){this._logger.info("Worker received a new session id ".concat(e," from server.")),this._mainCommunicator.sendAsync("NewSessionStartedEvent",e)}}])}();function gn(e){return gn="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},gn(e)}function _n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wn(n.key),n)}}function wn(e){var t=function(e){if("object"!=gn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gn(t)?t:t+""}var Sn=function(){return function(e,t){return t&&_n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._logger=r,this._mainCommunicator=n,this._messageBus.subscribe(Br,this._handle.bind(this))},[{key:"_handle",value:function(e){this._logger.debug("Worker received an updated server state."),this._mainCommunicator.sendAsync(B,e)}}])}();function kn(e){return kn="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},kn(e)}function En(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pn(n.key),n)}}function Pn(e){var t=function(e){if("object"!=kn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kn(t)?t:t+""}var Tn=function(){return function(e,t){return t&&En(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._dataDispatcher=r,this._logger=n,this._messageBus.subscribe(xr,this._handle.bind(this))},[{key:"_handle",value:function(e){this._logger.info("Worker received a wup dispatch rate ".concat(e," from server.")),this._dataDispatcher.scheduleNextDispatching()}}])}(),On="fontDetectionResponse";function Cn(e){return Cn="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},Cn(e)}function Rn(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return xn(c,"_invoke",function(r,n,i){var o,s,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,u=e,h.n=r,a}};function d(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return a;throw l=!0,n}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),s=f,u=p;(t=s<2?e:u)||!l;){o||(s?s<3?(s>1&&(h.n=-1),d(s,u)):h.n=u:h.v=u);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a \'"+i+"\' method"),s=1);o=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==a)break}catch(t){o=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,o),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(xn(t={},n,function(){return this}),t),l=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xn(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,xn(l,"constructor",c),xn(c,"constructor",u),u.displayName="GeneratorFunction",xn(c,i,"GeneratorFunction"),xn(l),xn(l,i,"Generator"),xn(l,n,function(){return this}),xn(l,"toString",function(){return"[object Generator]"}),(Rn=function(){return{w:o,m:h}})()}function xn(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}xn=function(e,t,r,n){function o(t,r){xn(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},xn(e,t,r,n)}function Bn(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function jn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,An(n.key),n)}}function An(e){var t=function(e){if("object"!=Cn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cn(t)?t:t+""}var In=function(){return function(e,t){return t&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n,i,o,a,s,u,c){var f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mainCommunicator=t,this._wupServerClient=r,this._logServerClient=n,this._configurationRepository=i,this._messageProcessor=o,this._logMessageProcessor=a,this._wupServerSessionState=s,this._dataServerCommunicator=u,this._fontsScannerWorker=c,this._metricsServerClient=f},[{key:"start",value:function(){Q.debug("Starting Worker Service"),this._mainCommunicator.addMessageListener("startNewSessionCommand",this._onStartNewSessionCommand.bind(this)),this._mainCommunicator.addMessageListener("resumeSessionCommand",this._onResumeSessionCommand.bind(this)),this._mainCommunicator.addMessageListener("changeContextCommand",this._onChangeContextCommand.bind(this)),this._mainCommunicator.addMessageListener("updateCsidCommand",this._onUpdateCsidCommand.bind(this)),this._mainCommunicator.addMessageListener("updatePsidCommand",this._onUpdatePsidCommand.bind(this)),this._mainCommunicator.addMessageListener("updateLogUrl",this._onUpdateLogUrlCommand.bind(this)),this._mainCommunicator.addMessageListener("sendDataCommand",this._onSendDataCommand.bind(this)),this._mainCommunicator.addMessageListener("sendLogCommand",this._onSendLogCommand.bind(this)),this._mainCommunicator.addMessageListener("updateBrandCommand",this._onUpdateBrandCommand.bind(this)),this._mainCommunicator.addMessageListener("setAgentTypeCommand",this._setSessionAgentType.bind(this)),this._mainCommunicator.addMessageListener("updateAgentIdCommand",this._onUpdateAgentId.bind(this)),this._mainCommunicator.addMessageListener("enableWupMessagesHashingCommand",this._setWupMessagesHashing.bind(this)),this._mainCommunicator.addMessageListener("scanFontsCommand",this._onScanFontsCommand.bind(this)),this._mainCommunicator.addMessageListener(j,this._onSendMetricsCommand.bind(this))}},{key:"_onStartNewSessionCommand",value:function(e){this._wupServerClient.startNewSession(e.cid,e.protocolType,e.minifiedUri,e.csid,e.psid,e.muid,e.contextName,e.serverAddress,e.recoveryServerURL)}},{key:"_onResumeSessionCommand",value:function(e){this._wupServerClient.resumeSession(e.cdsnum,e.cid,e.protocolType,e.minifiedUri,e.csid,e.psid,e.muid,e.contextName,e.serverAddress,e.serverState,e.recoveryServerURL)}},{key:"_onChangeContextCommand",value:function(e){Q.debug("Worker received a ChangeContextCommand from main."),this._wupServerSessionState.setContextName(e.contextName)}},{key:"_onUpdateCsidCommand",value:function(e){Q.debug("Worker received an UpdateCsidCommand from main. CSID: ".concat(e.csid,".")),this._wupServerClient.updateCsid(e.csid)}},{key:"_onUpdatePsidCommand",value:function(e){Q.debug("Worker received an UpdatePsidCommand from main. PSID: ".concat(e.psid,".")),this._wupServerClient.updatePsid(e.psid)}},{key:"_onUpdateLogUrlCommand",value:function(e){Q.attachSessionIdentifiers(e.sessionIdentifiers),this._logServerClient.setServerUrl(e.logAddress)}},{key:"_onSendDataCommand",value:function(e){this._messageProcessor.process(e)}},{key:"_onSendLogCommand",value:function(e){this._logMessageProcessor.process(e)}},{key:"_onUpdateBrandCommand",value:function(e){this._wupServerClient.updateBrand(e.brand)}},{key:"_setSessionAgentType",value:function(e){this._wupServerSessionState.setAgentType(e.agentType)}},{key:"_onUpdateAgentId",value:function(e){this._wupServerSessionState.setAgentId(e.agentId)}},{key:"_setWupMessagesHashing",value:function(e){this._dataServerCommunicator.updateEnableWupMessagesHashing(e.enableWupMessagesHashing)}},{key:"_onSendMetricsCommand",value:function(e){this._metricsServerClient&&e&&e.metricsData&&this._metricsServerClient.addMetrics(e.metricsData)}},{key:"_onScanFontsCommand",value:(e=Rn().m(function e(t){var r,n,i;return Rn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(Q.debug("[WorkerService] Received font detection request for ".concat((null===(r=t.fontNames)||void 0===r?void 0:r.length)||0," fonts")),e.p=1,this._fontsScannerWorker){e.n=2;break}throw new Error("Font detection service not available");case 2:return e.n=3,this._fontsScannerWorker.scanFonts(t.fontNames,t.config);case 3:n=e.v,this._mainCommunicator.sendAsync(On,{requestId:t.requestId,detectedFonts:n,success:!0}),e.n=5;break;case 4:e.p=4,i=e.v,Q.error("[WorkerService] Font detection failed:",i),this._mainCommunicator.sendAsync(On,{requestId:t.requestId,detectedFonts:[],success:!1,error:i.message});case 5:return e.a(2)}},e,this,[[1,4]])}),t=function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){Bn(o,n,i,a,s,"next",e)}function s(e){Bn(o,n,i,a,s,"throw",e)}a(void 0)})},function(e){return t.apply(this,arguments)})}]);var e,t}();function Mn(e){return Mn="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},Mn(e)}function Dn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ln(n.key),n)}}function Ln(e){var t=function(e){if("object"!=Mn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mn(t)?t:t+""}var Un=function(){return function(e,t){return t&&Dn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mainCommunicator=t,this._messageBus=r,this._logger=n,this.errors={},this._messageBus.subscribe(Ir,this._handle.bind(this))},[{key:"_handle",value:function(e){this._logger.debug("Sending new HeartBeatStatusEvent - ".concat(e.category,", ").concat(e.status)),this._mainCommunicator.sendAsync("HeartBeatStatusEvent",e)}}])}();function Fn(e){return Fn="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},Fn(e)}function Nn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Nn(Object(r),!0).forEach(function(t){qn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function qn(e,t,r){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hn(n.key),n)}}function Hn(e){var t=function(e){if("object"!=Fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Fn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fn(t)?t:t+""}var Gn=function(){return function(e,t){return t&&Wn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sn=0,this.url=r,this.logAggregator=t,this.msgPrefix=n},[{key:"log",value:function(e,t,r){this.logAggregator.add({eventName:"log",data:zn(zn({msg:this.msgPrefix+e},r),{},{url:this.url,level:t,sn:this.sn++})})}},{key:"setLogLevel",value:function(e){this.logAggregator instanceof cr&&this.logAggregator.setLogLevel(e)}},{key:"clearLogEntriesByLogLevel",value:function(e){this.logAggregator.filterOutByLogLevel(e)}}])}();function Yn(e){return Yn="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},Yn(e)}function Vn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zn(n.key),n)}}function Zn(e){var t=function(e){if("object"!=Yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yn(t)?t:t+""}var Kn=function(){return function(e,t){return t&&Vn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentMessageNumberOfSendFailures=0,this.reMessageSettings=t,this.currentInterval=this.getMessageRetryInterval()},[{key:"restartMessageSettings",value:function(){this.currentMessageNumberOfSendFailures=0,this.currentInterval=this.getMessageRetryInterval()}},{key:"updateSettings",value:function(e){this.reMessageSettings=e}},{key:"updateAllSettings",value:function(e){e.init(),this.reMessageSettings=e}},{key:"getNumberOfSendFailures",value:function(){return this.currentMessageNumberOfSendFailures}},{key:"getNextInterval",value:function(){return this.currentInterval}},{key:"getMessageNumToRetry",value:function(){return this.reMessageSettings.getMessageNumToRetry()}},{key:"getMessageRetryInterval",value:function(){return this.reMessageSettings.getMessageRetryInterval()}},{key:"getMaxIntervalBetweenFailures",value:function(){return this.reMessageSettings.getMaxIntervalBetweenFailures()}},{key:"getIncrementalGrowthBetweenFailures",value:function(){return this.reMessageSettings.getIncrementalGrowthBetweenFailures()}},{key:"_incrementNumberOfSendFailures",value:function(){this.currentMessageNumberOfSendFailures++}},{key:"shouldReMessage",value:function(e,t){if(e)return!0;var r=this.reMessageSettings.shouldRetryOnNetworkFailureOnly();return(!Boolean(t)||!r)&&this.getNumberOfSendFailures()<this.getMessageNumToRetry()}},{key:"updateRetryInterval",value:function(){var e=this.currentInterval+this.currentMessageNumberOfSendFailures*this.getIncrementalGrowthBetweenFailures();e>this.getMaxIntervalBetweenFailures()?this.currentInterval=this.getMaxIntervalBetweenFailures():this.currentInterval=e,this._incrementNumberOfSendFailures()}}])}();function Qn(e){return Qn="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},Qn(e)}function Xn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jn(n.key),n)}}function Jn(e){var t=function(e){if("object"!=Qn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qn(t)?t:t+""}var $n=function(){return function(e,t){return t&&Xn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._mainCommunicator=r,this._messageBus.subscribe(jr,this._handler.bind(this),!0)},[{key:"_handler",value:function(e){this._mainCommunicator.sendAsync("ServerRestoredMuidEvent",e)}}])}();function ei(e){return ei="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},ei(e)}function ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ri(n.key),n)}}function ri(e){var t=function(e){if("object"!=ei(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ei(t)?t:t+""}var ni=function(){return function(e,t){return t&&ti(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mainCommunicator=t,this._wupServerSessionState=r,this._logServerClient=n,this._mainCommunicator.addMessageListener("stateUpdateFromStorage",this._handle.bind(this)),this._mainCommunicator.addMessageListener("updateSDKState",this._handleStateChanged.bind(this))},[{key:"_handle",value:function(e){null!=e&&e.requestId&&(null!=e&&e.ott||null!=e&&e.sts)&&(this._wupServerSessionState.setRequestId(e.requestId,!1),this._wupServerSessionState.setOtt(e.ott),this._wupServerSessionState.setSts(e.sts),this._wupServerSessionState.setStd(e.std))}},{key:"_handleStateChanged",value:function(e){this._logServerClient.setIsPaused(e.SDK_state)}}])}();function ii(e){return ii="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},ii(e)}function oi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ai(n.key),n)}}function ai(e){var t=function(e){if("object"!=ii(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ii(t)?t:t+""}var si=function(){return function(e,t){return t&&oi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._mainCommunicator=r,this._messageBus.subscribe(Ar,this._handle.bind(this))},[{key:"_handle",value:function(e){this._mainCommunicator.sendAsync("ServerNewAgentIdEvent",e)}}])}();function ui(e){return ui="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},ui(e)}function ci(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return fi(c,"_invoke",function(r,n,i){var o,s,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,u=e,h.n=r,a}};function d(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return a;throw l=!0,n}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),s=f,u=p;(t=s<2?e:u)||!l;){o||(s?s<3?(s>1&&(h.n=-1),d(s,u)):h.n=u:h.v=u);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");
vendor: 4,082 bytes, line 2
2if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a \'"+i+"\' method"),s=1);o=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==a)break}catch(t){o=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,o),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(fi(t={},n,function(){return this}),t),l=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,fi(l,"constructor",c),fi(c,"constructor",u),u.displayName="GeneratorFunction",fi(c,i,"GeneratorFunction"),fi(l),fi(l,i,"Generator"),fi(l,n,function(){return this}),fi(l,"toString",function(){return"[object Generator]"}),(ci=function(){return{w:o,m:h}})()}function fi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}fi=function(e,t,r,n){function o(t,r){fi(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},fi(e,t,r,n)}function li(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function hi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,di(n.key),n)}}function di(e){var t=function(e){if("object"!=ui(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ui(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ui(t)?t:t+""}var pi=function(){return function(e,t){return t&&hi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},[{key:"detect",value:(e=ci().m(function e(t,r){return ci().w(function(e){for(;;)switch(e.n){case 0:throw new Error(\'Method "checkFontList" must be implemented.\');case 1:return e.a(2)}},e)}),t=function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){li(o,n,i,a,s,"next",e)}function s(e){li(o,n,i,a,s,"throw",e)}a(void 0)})},function(e,r){return t.apply(this,arguments)})},{key:"release",value:function(){throw new Error(\'Method "release" must be implemented.\')}},{key:"isSupported",value:function(){throw new Error(\'Method "isSupported" must be implemented.\')}}]);var e,t}();function yi(e){return yi="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},yi(e)}function vi(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return mi(c,"_invoke",function(r,n,i){var o,s,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,u=e,h.n=r,a}};function d(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return a;throw l=!0,n}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),s=f,u=p;(t=s<2?e:u)||!l;){o||(s?s<3?(s>1&&(h.n=-1),d(s,u)):h.n=u:h.v=u);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a \'"+i+"\' method"),s=1);o=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==a)break}catch(t){o=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,o),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;
2var f=[][n]?t(t([][n]())):(mi(t={},n,function(){return this}),t),l=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,mi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,mi(l,"constructor",c),mi(c,"constructor",u),u.displayName="GeneratorFunction",mi(c,i,"GeneratorFunction"),mi(l),mi(l,i,"Generator"),mi(l,n,function(){return this}),mi(l,"toString",function(){return"[object Generator]"}),(vi=function(){return{w:o,m:h}})()}function mi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}mi=function(e,t,r,n){function o(t,r){mi(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},mi(e,t,r,n)}function bi(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function gi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_i(n.key),n)}}function _i(e){var t=function(e){if("object"!=yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=yi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yi(t)?t:t+""}function wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wi=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function ki(e,t){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ki(e,t)}var Ei=function(e){function t(){var e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(null===(e=self)||void 0===e?void 0:e.fonts)||null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,r){return t=Si(t),function(e,t){if(t&&("object"==yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,wi()?Reflect.construct(t,r||[],Si(e).constructor):t.apply(e,r))}(this,t),!n)throw new Error("fonts is required for NativeFontDetector.");return r.fonts=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(e,t)}(t,e),function(e,t){return t&&gi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:(r=vi().m(function e(t){var r,n;return vi().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=null,e.p=1,r=new FontFace(t,\'local("\'.concat(t,\'")\')),this.fonts.add(r),e.n=2,r.load();case 2:return n="loaded"===r.status,e.a(2,n);case 3:return e.p=3,e.v,e.a(2,!1);case 4:return e.p=4,r&&this.fonts.delete(r),e.f(4);case 5:return e.a(2)}},e,this,[[1,3,4,5]])}),n=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){bi(o,n,i,a,s,"next",e)}function s(e){bi(o,n,i,a,s,"throw",e)}a(void 0)})},function(e){return n.apply(this,arguments)})},{key:"isSupported",value:function(){try{return"undefined"!=typeof FontFace&&void 0!==this.fonts&&(new FontFace("test","url(test.woff)"),!0)}catch(e){return!1}}},{key:"release",value:function(){}}]);var r,n}(pi);function Pi(e){return Pi="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},Pi(e)}function Ti(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return Oi(c,"_invoke",function(r,n,i){var o,s,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,u=e,h.n=r,a}};function d(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return a;throw l=!0,n}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),s=f,u=p;(t=s<2?e:u)||!l;){o||(s?s<3?(s>1&&(h.n=-1),d(s,u)):h.n=u:h.v=u);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a \'"+i+"\' method"),s=1);o=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==a)break}catch(t){o=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,o),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(Oi(t={},n,function(){return this}),t),l=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Oi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,Oi(l,"constructor",c),Oi(c,"constructor",u),u.displayName="GeneratorFunction",Oi(c,i,"GeneratorFunction"),Oi(l),Oi(l,i,"Generator"),Oi(l,n,function(){return this}),Oi(l,"toString",function(){return"[object Generator]"}),(Ti=function(){return{w:o,m:h}})()}function Oi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Oi=function(e,t,r,n){function o(t,r){Oi(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},Oi(e,t,r,n)}function Ci(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Ri(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){Ci(o,n,i,a,s,"next",e)}function s(e){Ci(o,n,i,a,s,"throw",e)}a(void 0)})}}function xi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bi(n.key),n)}}function Bi(e){var t=function(e){if("object"!=Pi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pi(t)?t:t+""}function ji(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ji=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ai(e)}function Ii(e,t){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ii(e,t)}var Mi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Ai(t),function(e,t){if(t&&("object"==Pi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,ji()?Reflect.construct(t,r||[],Ai(e).constructor):t.apply(e,r))}(this,t))._testText="AaBb123!@# \u05d0\u05d1\u05d2\u05d3 \u05d0\u0628\u062a \u4f60\u597d\u4e16 \u3042\u30a2 \u0905\u0906\u090b\u0418\u0394 \u0e2a\u0e27\u0e31 \u0e2d\u0e32 \u10e0\u10e3\u10ea \u10d9\u0437\u0621\u03bb \u2d4d \ud800\udf04 \u0444\u063a\ud83d\ude00\u2714\uf021\u2665\u2111\u03a3\xc5\xd1",e._fontSize="48px",e._canvas=null,e._context=null,e._fallbackWidth=null,e._initialized=!1,e._hasReleased=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ii(e,t)}(t,e),function(e,t){return t&&xi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:(i=Ri(Ti().m(function e(t){var r;return Ti().w(function(e){for(;;)switch(e.n){case 0:if(!this._hasReleased){e.n=1;break}throw new Error("CanvasFontDetector has been released and is no longer usable. Please create a new instance to use the detector.");case 1:if(this._initialized){e.n=2;break}return e.n=2,this._initialize();case 2:return this._context.font="".concat(this._fontSize,\' "\').concat(t,\'", non-existed-fallback\'),r=this._context.measureText(this._testText).width,e.a(2,r!==this._fallbackWidth)}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"release",value:(n=Ri(Ti().m(function e(){return Ti().w(function(e){for(;;)switch(e.n){case 0:this._hasReleased=!0,this._canvas=null,this._context=null,this._fallbackWidth=null;case 1:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"isSupported",value:function(){try{if("undefined"!=typeof OffscreenCanvas){var e=new OffscreenCanvas(1,1);return Boolean(e.getContext&&e.getContext("2d"))}return!1}catch(e){return!1}}},{key:"_initialize",value:(r=Ri(Ti().m(function e(){return Ti().w(function(e){for(;;)switch(e.n){case 0:if("undefined"!=typeof OffscreenCanvas){e.n=1;break}throw new Error("OffscreenCanvas is not supported in this environment. CanvasFontDetector requires OffscreenCanvas to run in Web Workers.");case 1:this._canvas=new OffscreenCanvas(100,100),this._context=this._canvas.getContext("2d",{alpha:!1,desynchronized:!0}),this._context.textBaseline="alphabetic",this._context.direction="ltr",this._context.
2imageSmoothingEnabled=!1,this._context.font="".concat(this._fontSize,\' "non-existed-font", non-existed-fallback\'),this._fallbackWidth=this._context.measureText(this._testText).width,this._initialized=!0;case 2:return e.a(2)}},e,this)})),function(){return r.apply(this,arguments)})}]);var r,n,i}(pi);function Di(e){return Di="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},Di(e)}function Li(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ui(n.key),n)}}function Ui(e){var t=function(e){if("object"!=Di(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Di(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Di(t)?t:t+""}var Fi=function(){return function(e,t){return t&&Li(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._logsTag="[FONTS-COLLECTOR]"},[{key:"getDetectorByType",value:function(e){switch(e.toLowerCase()){case"native":return new Ei;case"canvas":return new Mi;default:throw new Error("Invalid detector type: \'".concat(e,"\'. Supported types: \'native\', \'canvas\'"))}}},{key:"getBestDetector",value:function(e){try{var t=new Ei;if(t.isSupported())return Q.info("".concat(this._logsTag," Using native detector")),t}catch(e){Q.error("".concat(this._logsTag," Native detector failed:"),e)}try{var r=new Mi;if(r.isSupported())return Q.info("".concat(this._logsTag," Using canvas detector")),r}catch(e){Q.error("".concat(this._logsTag," Canvas detector failed:"),e)}throw new Error("[FontDetectorProvider] No suitable font detection implementation is supported in this environment.")}}])}();function Ni(e){return Ni="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},Ni(e)}function zi(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return qi(c,"_invoke",function(r,n,i){var o,s,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,u=e,h.n=r,a}};function d(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return a;throw l=!0,n}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),s=f,u=p;(t=s<2?e:u)||!l;){o||(s?s<3?(s>1&&(h.n=-1),d(s,u)):h.n=u:h.v=u);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a \'"+i+"\' method"),s=1);o=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==a)break}catch(t){o=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,o),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(qi(t={},n,function(){return this}),t),l=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,qi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,qi(l,"constructor",c),qi(c,"constructor",u),u.displayName="GeneratorFunction",qi(c,i,"GeneratorFunction"),qi(l),qi(l,i,"Generator"),qi(l,n,function(){return this}),qi(l,"toString",function(){return"[object Generator]"}),(zi=function(){return{w:o,m:h}})()}function qi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}qi=function(e,t,r,n){function o(t,r){qi(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},qi(e,t,r,n)}function Wi(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Hi(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){Wi(o,n,i,a,s,"next",e)}function s(e){Wi(o,n,i,a,s,"throw",e)}a(void 0)})}}function Gi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yi(n.key),n)}}function Yi(e){var t=function(e){if("object"!=Ni(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ni(t)?t:t+""}var Vi=function(){return function(e,t){return t&&Gi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r=t.batchSize,n=t.timeoutGap,i=t.frameBudgetMs,o=void 0===i?8:i,a=t.minBatchSize,s=void 0===a?1:a,u=t.maxBatchSize,c=void 0===u?200:u,f=t.historySize,l=void 0===f?5:f,h=t.targetUtilization,d=void 0===h?.8:h,p=t.adaptiveEnabled,y=void 0===p||p;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==r)throw new Error("The \'batchSize\' parameter is required.");
2if(r<=0)throw new Error("The \'batchSize\' parameter must be greater than 0.");if(null==n)throw new Error("The \'timeoutGap\' parameter is required.");this.batchSize=r,this.timeoutGap=n,this.frameBudgetMs=o,this.adaptiveEnabled=y,this._minBatchSize=s,this._maxBatchSize=c,this._historySize=l,this._targetUtilization=d,this._currentBatchSize=this.batchSize,this._frameHistory=[],this._hasReleased=!1,this._logsTag="[BATCH-PROCESSOR]"},[{key:"release",value:(r=Hi(zi().m(function e(){return zi().w(function(e){for(;;)switch(e.n){case 0:this._hasReleased=!0;case 1:return e.a(2)}},e,this)})),function(){return r.apply(this,arguments)})},{key:"process",value:(t=Hi(zi().m(function e(t){var r,n,i,o,a,s,u;return zi().w(function(e){for(;;)switch(e.n){case 0:if(r=t.processItem,n=t.items,!this._hasReleased){e.n=1;break}throw new Error("BatchProcessor has been released and cannot be used.");case 1:if("function"==typeof r){e.n=2;break}throw new TypeError("The \'processItem\' parameter must be a function.");case 2:if(Array.isArray(n)){e.n=3;break}throw new TypeError("The \'items\' parameter must be an array.");case 3:if(0!==n.length){e.n=4;break}return e.a(2,[]);case 4:i=[],o=0;case 5:if(!(o<n.length)){e.n=9;break}if(!this._hasReleased){e.n=6;break}throw new Error("BatchProcessor was released during processing. Operation aborted.");case 6:return a=performance.now(),e.n=7,this._processFrame(r,n,o,i);case 7:if(s=e.v,o+=s,u=performance.now()-a,this.adaptiveEnabled&&this._adjustBatchSize(u,s),Q.trace("".concat(this._logsTag," Frame processed ").concat(s," items in ").concat(u.toFixed(2),"ms. Progress: ").concat(o,"/").concat(n.length)),!(o<n.length)){e.n=8;break}return e.n=8,this._yield();case 8:e.n=5;break;case 9:if(!this._hasReleased){e.n=10;break}throw new Error("BatchProcessor was released after processing. Operation aborted.");case 10:return e.a(2,i)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"_processFrame",value:(e=Hi(zi().m(function e(t,r,n,i){var o,a,s,u,c,f,l;return zi().w(function(e){for(;;)switch(e.p=e.n){case 0:o=0,a=performance.now(),s=Math.min(this._currentBatchSize,r.length-n),u=0;case 1:if(!(u<s)){e.n=8;break}if(!this._hasReleased){e.n=2;break}throw new Error("BatchProcessor was released during frame processing. Operation aborted.");case 2:return f=r[c=n+u],e.p=3,e.n=4,t(f);case 4:!0===e.v&&i.push(f),o++,e.n=6;break;case 5:e.p=5,l=e.v,Q.error("Error processing item at index ".concat(c,":"),l),o++;case 6:if(!(performance.now()-a>this.frameBudgetMs)){e.n=7;break}return e.a(3,8);case 7:u++,e.n=1;break;case 8:return e.a(2,o)}},e,this,[[3,5]])})),function(t,r,n,i){return e.apply(this,arguments)})},{key:"_yield",value:function(){return this._delay(this.timeoutGap)}},{key:"_delay",value:function(e){return new Promise(function(t){return setTimeout(t,e)})}},{key:"_adjustBatchSize",value:function(e,t){if(0!==t&&(this._frameHistory.push(e),this._frameHistory.length>this._historySize&&this._frameHistory.shift(),!(this._frameHistory.length<2))){var r=this._frameHistory.reduce(function(e,t){return e+t},0)/this._frameHistory.length,n=this.frameBudgetMs*this._targetUtilization,i=r/this.frameBudgetMs,o=this._currentBatchSize;i<.8*this._targetUtilization?o=Math.min(this._maxBatchSize,Math.ceil(1.5*this._currentBatchSize)):i>1.2*this._targetUtilization&&(o=Math.max(this._minBatchSize,Math.floor(.7*this._currentBatchSize))),o!==this._currentBatchSize&&(Q.trace("".concat(this._logsTag," Adjusting batch size from ").concat(this._currentBatchSize," to ").concat(o," (avg frame: ").concat(r.toFixed(2),"ms, target: ").concat(n.toFixed(2),"ms)")),this._currentBatchSize=o)}}}]);var e,t,r}();function Zi(e){return Zi="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},Zi(e)}function Ki(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return Qi(c,"_invoke",function(r,n,i){var o,s,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,u=e,h.n=r,a}};function d(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return a;throw l=!0,n}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),s=f,u=p;(t=s<2?e:u)||!l;){o||(s?s<3?(s>1&&(h.n=-1),d(s,u)):h.n=u:h.v=u);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a \'"+i+"\' method"),s=1);o=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==a)break}catch(t){o=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,o),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(Qi(t={},n,function(){return this}),t),l=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Qi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,Qi(l,"constructor",c),Qi(c,"constructor",u),u.displayName="GeneratorFunction",Qi(c,i,"GeneratorFunction"),Qi(l),Qi(l,i,"Generator"),Qi(l,n,function(){return this}),Qi(l,"toString",function(){return"[object Generator]"}),(Ki=function(){return{w:o,m:h}})()}function Qi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Qi=function(e,t,r,n){function o(t,r){Qi(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},Qi(e,t,r,n)}function Xi(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Ji(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){Xi(o,n,i,a,s,"next",e)}function s(e){Xi(o,n,i,a,s,"throw",e)}a(void 0)})}}function $i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eo(n.key),n)}}function eo(e){var t=function(e){if("object"!=Zi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Zi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zi(t)?t:t+""}var to=function(){return function(e,t){return t&&$i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._detectorProvider=t.detectorProvider,!this._detectorProvider)throw new Error("DetectorProvider is required for font scanning");this._logger=t.logger||Q,this._batchProcessorFactory=t.batchProcessorFactory||Vi},[{key:"scanFonts",value:(e=Ji(Ki().m(function e(t){var r,n,i,o=arguments;return Ki().w(function(e){for(;;)switch(e.n){case 0:if(!(null==(r=o.length>1&&void 0!==o[1]?o[1]:{}).fontsPerBatch||r.fontsPerBatch<=0)){e.n=1;break}throw new Error("The \'fontsPerBatch\' parameter is required and must be greater than 0.");case 1:if(!(null==r.delayBetweenBatchesMs||r.delayBetweenBatchesMs<0)){e.n=2;break}throw new Error("The \'delayBetweenBatchesMs\' parameter is required and must be greater than or equal to 0.");case 2:if(!(null==r.minFontsPerBatch||r.minFontsPerBatch<=0)){e.n=3;break}throw new Error("The \'minFontsPerBatch\' parameter is required and must be greater than 0.");case 3:if(!(null==r.maxFontsPerBatch||r.maxFontsPerBatch<=0)){e.n=4;break}throw new Error("The \'maxFontsPerBatch\' parameter is required and must be greater than 0.");case 4:if(!(null==r.frameBudgetMs||r.frameBudgetMs<=0)){e.n=5;break}throw new Error("The \'frameBudgetMs\' parameter is required and must be greater than 0.");case 5:if(!(null==r.frameHistorySize||r.frameHistorySize<=0)){e.n=6;break}throw new Error("The \'frameHistorySize\' parameter is required and must be greater than 0.");case 6:if(Array.isArray(t)&&0!==t.length){e.n=7;break}return e.a(2,[]);case 7:return this._logger.debug("[FontsScannerWorker] Detecting ".concat(t.length," fonts with config: fontsPerBatch=").concat(r.fontsPerBatch,", delayBetweenBatchesMs=").concat(r.delayBetweenBatchesMs)),n=new this._batchProcessorFactory({batchSize:r.fontsPerBatch,timeoutGap:r.delayBetweenBatchesMs,minBatchSize:r.minFontsPerBatch,maxBatchSize:r.maxFontsPerBatch,frameBudgetMs:r.frameBudgetMs,historySize:r.frameHistorySize,adaptiveEnabled:r.adaptiveBatchEnabled}),i=r.detectorType?this._detectorProvider.getDetectorByType(r.detectorType):this._detectorProvider.getBestDetector(),e.a(2,n.process({items:t,processItem:function(){var e=Ji(Ki().m(function e(t){var r;return Ki().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,i.detect(t);case 1:return r=e.v,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}()}))}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e}();function ro(e){return ro="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},ro(e)}function no(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,io(n.key),n)}}function io(e){var t=function(e){if("object"!=ro(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ro(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ro(t)?t:t+""}var oo=function(){return function(e,t){return t&&no(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._serverCommunicator=t,this._configurationRepository=r,this._dataPacker=new bt,this._workerMetrics=Ge,this._serverUrl=null,this._dispatchTimer=null,this._lastEncodedPayload=null,this._dispatchInterval=r.get(C)||5e3,this._retryAndTimeoutInterval=r.get(x)||100;var n=r.get(R);this._maxRetries=null!=n?n:0},[{key:"addMetrics",value:function(e){this._workerMetrics.addMainThreadMetrics(e)}},{key:"updateServerUrl",value:function(e){this._serverUrl=e}},{key:"isReady",value:function(){return!!this._serverUrl}},{key:"start",value:function(){var e=this;this._dispatchTimer||(this._dispatchTimer=setInterval(function(){return e._dispatch()},this._dispatchInterval))}},{key:"stop",value:function(){this._dispatchTimer&&(clearInterval(this._dispatchTimer),this._dispatchTimer=null)}},{key:"getState",value:function(){return this._dispatchTimer?"started":"stopped"}},{key:"dispatchRate",set:function(e){this._dispatchInterval=e,this._dispatchTimer&&(this.stop(),this.start())}},{key:"retryAndTimeoutInterval",set:function(e){this._retryAndTimeoutInterval=e}},{key:"maxRetries",set:function(e){this._maxRetries=e}},{key:"setIsPaused",value:function(e){this._serverCommunicator.setIsPaused(e)}},{key:"flush",value:function(){this._dispatch(),this._serverCommunicator.flush()}},{key:"_dispatch",value:function(){if(this.isReady()){var e=this._workerMetrics.getPayload();if(e)try{var t=this._dataPacker.pack(e);if(!t)return;if(t===this._lastEncodedPayload)return void Q.debug("[MetricsServerClient] Skipping dispatch \u2014 payload unchanged since last send");this._lastEncodedPayload=t,this._serverCommunicator.sendMessage({data:t},this._retryAndTimeoutInterval,this._maxRetries,!1,this._onSuccess.bind(this),this._onFailure.bind(this),this._serverUrl),this._workerMetrics.reset(!0)}catch(e){Q.error("[MetricsServerClient] Failed to encode metrics: ".concat(e.message))}}}},{key:"_onSuccess",value:function(){this._lastEncodedPayload=null,Q.debug("[MetricsServerClient] Metrics sent successfully")}},{key:"_onFailure",value:function(e,t,r,n){Q.warn("[MetricsServerClient] Failed sending metrics. Status: ".concat(e)),n&&this._serverCommunicator.prepareMessageForSendRetry(t)}}])}();function ao(e){return ao="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},ao(e)}function so(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uo(n.key),n)}}function uo(e){var t=function(e){if("object"!=ao(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ao(t)?t:t+""}var co=function(){return function(e,t){return t&&so(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mainCommunicator=t,this._msgBus=r,this._eventHandlers=[]},[{key:"loadSystem",value:function(){var e=this;this._configurationRepository=new ue,this._wupServerSessionState=new ve,this._logRequestBodyBuilder=new _e;var t=Rt.createReMessageSettings(this._configurationRepository);this._logRetryMessage=new Kn(t),this._logServerCommunicator=new nt(this._logRequestBodyBuilder,this._configurationRepository.get(g),$e,this._logRetryMessage,!0,"log"),this._logMessageBuilder=new lt(new bt),this._logServerClient=new At(this._logServerCommunicator,this._logMessageBuilder,this._configurationRepository),this._wupStatisticsService=new Lt(this._configurationRepository.get(b)),this._wupDispatchRateCalculatorFactory=new tr(this._wupStatisticsService,this._wupServerSessionState);var r=new cr;this._logDataDispatcher=new or(this._logServerClient,r,this._wupDispatchRateCalculatorFactory,this._configurationRepository.get(v));var n=new Gn(r,"worker");this._logMessageProcessor=new dr(this._logDataDispatcher);var i=new X(n);Q.setLogger(i),this._wupMessageBuilder=new kr(this._wupServerSessionState,new bt,this._configurationRepository),this._wupRequestBodyBuilder=new Or(this._wupServerSessionState);var o=Jr.createReMessageSettings(this._configurationRepository);this._wupRetryMessage=new Kn(o),this._dataServerCommunicator=new nt(this._wupRequestBodyBuilder,this._configurationRepository.get(g),$e,this._wupRetryMessage,!1,"wup"),this._wupResponseProcessor=new Ur(this._wupServerSessionState,this._msgBus,this._configurationRepository),this._wupServerClient=new an(this._dataServerCommunicator,this._wupMessageBuilder,this._wupServerSessionState,this._wupStatisticsService,this._wupResponseProcessor,this._configurationRepository,this._msgBus);var a=this._configurationRepository.get(m)?ae.defaultDynamicWupDispatchRateConfiguration:this._configurationRepository.get(y);this._dataDispatcher=new or(this._wupServerClient,new fn(this._wupServerSessionState),this._wupDispatchRateCalculatorFactory,a),this._messageProcessor=new dr(this._dataDispatcher),this._fontsScannerWorker=new to({detectorProvider:new Fi}
2);var s=this._configurationRepository.get(x),u=this._configurationRepository.get(R),c=new Pt(u,s,0,s),f=new Kn(c);if(this._metricsServerCommunicator=new nt({build:function(e){return e&&e.data?e.data:""}},this._configurationRepository.get(g),$e,f,!0,"metrics","text/plain"),this._metricsServerClient=new oo(this._metricsServerCommunicator,this._configurationRepository),this._configurationRepository.get(P)){var l=this._configurationRepository.get(O);l&&this._metricsServerClient.updateServerUrl(l),this._metricsServerClient.start()}this._eventHandlers.push(new pn(this._msgBus,this._wupStatisticsService,this._dataDispatcher,this._logDataDispatcher,this._dataServerCommunicator,this._wupServerClient,this._logServerClient,i,this._mainCommunicator,this._metricsServerClient)),this._eventHandlers.push(new bn(this._msgBus,i,this._mainCommunicator)),this._eventHandlers.push(new Sn(this._msgBus,i,this._mainCommunicator)),this._eventHandlers.push(new Tn(this._msgBus,this._dataDispatcher,i)),this._eventHandlers.push(new Un(this._mainCommunicator,this._msgBus,i)),this._eventHandlers.push(new $n(this._msgBus,this._mainCommunicator)),this._eventHandlers.push(new ni(this._mainCommunicator,this._wupServerSessionState,this._logServerClient)),this._eventHandlers.push(new si(this._msgBus,this._mainCommunicator)),this._wupServerSessionState.onServerStateUpdated.subscribe(function(t){e._mainCommunicator.sendAsync(B,t)}),this._workerService=new In(this._mainCommunicator,this._wupServerClient,this._logServerClient,this._configurationRepository,this._messageProcessor,this._logMessageProcessor,this._wupServerSessionState,this._dataServerCommunicator,this._fontsScannerWorker,this._metricsServerClient),this._workerService.start(),Q.info("Loaded worker")}}])}();function fo(e){return fo="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},fo(e)}function lo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ho(n.key),n)}}function ho(e){var t=function(e){if("object"!=fo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fo(t)?t:t+""}var po=function(){return function(e,t){return t&&lo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subscribers=o()},[{key:"subscribe",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1;this.subscribers.has(e)?(r=this.subscribers.get(e))&&r.forEach(function(e){t===e.handler&&(i=!0)}):(r=f(),this.subscribers.set(e,r)),i||r.add({handler:t,isOneTime:n})}},{key:"unsubscribe",value:function(e,t){if(e&&this.subscribers.has(e)){var r=this.subscribers.get(e);r&&r.forEach(function(e){t===e.handler&&r.delete(e)}),0===r.size&&this.subscribers.delete(e)}}},{key:"publish",value:function(e,t){if(!e)throw new Error("invalid argument messageType must be defined");this._notifySubscribers(e,t)}},{key:"_notifySubscribers",value:function(e,t){var r=this.subscribers.get(e);r&&r.forEach(function(e){e.handler(t),e.isOneTime&&r.delete(e)})}}])}(),yo=po;function vo(e){return vo="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},vo(e)}function mo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bo(n.key),n)}}function bo(e){var t=function(e){if("object"!=vo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vo(t)?t:t+""}var go=function(){return function(e,t){return t&&mo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._portNativeWorker=t},[{key:"postMessage",value:function(){this._portNativeWorker.postMessage.apply(this._portNativeWorker,arguments)}},{key:"close",value:function(){this._portNativeWorker.terminate()}},{key:"setonmessage",value:function(e){this._portNativeWorker.onmessage=e}}])}();function _o(e){return _o="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},_o(e)}function wo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,So(n.key),n)}}function So(e){var t=function(e){if("object"!=_o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=_o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_o(t)?t:t+""}var ko=function(){return function(e,t){return t&&wo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},[{key:"start",value:function(){var e=new p,t=new yo,r=new co(e,t);this._loadWorkerSystem(e,t,r,new go(self))}},{key:"_loadWorkerSystem",value:function(e,t,r,n){try{e.setMessagingPort(n),r.loadSystem(),t.publish(Ir,new Yr("701",Hr))}catch(e){t.publish(Ir,new Yr("701",Gr))}}}])}();function Eo(e){return Eo="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},Eo(e)}function Po(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,To(n.key),n)}}function To(e){var t=function(e){if("object"!=Eo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eo(t)?t:t+""}var Oo=function(){return function(e,t){return t&&Po(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=self,"undefined"==typeof TextEncoder&&(t.TextEncoder=function(){},TextEncoder.prototype.encode=function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)})},[{key:"start",value:function(){(new ko).start()}}])}();(new Oo).start()}()}();',"Worker",void 0,void 0)}function Ze(e){return Ze="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},Ze(e)}function $e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,et(r.key),r)}}function et(e){var t=function(e){if("object"!=Ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ze(t)?t:t+""}var tt=function(e,t){return t&&$e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._portNativeWorker=t}),[{key:"postMessage",value:function(){this._portNativeWorker.postMessage.apply(this._portNativeWorker,arguments)}},{key:"close",value:function(){this._portNativeWorker.terminate()}},{key:"setonmessage",value:function(e){this._portNativeWorker.onmessage=e}}]);function nt(e){return nt="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},nt(e)}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ot(r.key),r)}}function ot(e){var t=function(e){if("object"!=nt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nt(t)?t:t+""}var it=function(e,t){return t&&rt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._nativeWorker=t,this.port=new tt(this._nativeWorker)}),[{key:"close",value:function(){this.port.close()}}]);function at(e){return at="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},at(e)}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,st(r.key),r)}}function st(e){var t=function(e){if("object"!=at(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==at(t)?t:t+""}var ct=function(e,t){return t&&ut(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._useUrlWorker=t,this._workerUrl=n}),[{key:"create",value:function(){return this._useUrlWorker?this._createWorkerFromUrl():this._createInlineWorker()}},{key:"_createInlineWorker",value:function(){var e=new Xe;return pe.info("Created a dedicated worker."),new it(e)}},{key:"_createWorkerFromUrl",value:function(){try{var e=new Worker(this._workerUrl);return pe.info("Created worker from url - ".concat(this._workerUrl)),new it(e)}catch(e){throw pe.error("Failed to construct worker from url."),e}}}]);function lt(e){return lt="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},lt(e)}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pt(r.key),r)}}function pt(e){var t=function(e){if("object"!=lt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lt(t)?t:t+""}var dt=function(e,t){return t&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._pairs=[],this.size=0}),[{key:"has",value:function(e){return this._indexOf(e)>-1}},{key:"get",value:function(e){var t=this._indexOf(e);if(t>-1)return this._pairs[t][1]}},{key:"set",value:function(e,t){var n=this._indexOf(e);n>-1?this._pairs[n][1]=t:(this._pairs.push([e,t]),this.size++)}},{key:"delete",value:function(e){var t=this._indexOf(e);return t>-1&&(this._pairs.splice(t,1),this.size--,!0)}}
2,{key:"forEach",value:function(e){for(var t=0;t<this._pairs.length;t++)e(this._pairs[t][1],this._pairs[t][0])}},{key:"clear",value:function(){this._pairs=[]}},{key:"_indexOf",value:function(e){for(var t=0;t<this._pairs.length;t++)if(this._pairs[t][0]===e)return t;return-1}}]),yt=function(){return new(self.Map||dt)};function ht(e){return ht="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},ht(e)}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vt(r.key),r)}}function vt(e){var t=function(e){if("object"!=ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ht(t)?t:t+""}var bt=function(e,t){return t&&mt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._set=[],this.size=0}),[{key:"add",value:function(e){return this._set.push(e),this.size++,this}},{key:"has",value:function(e){return this._set.indexOf(e)>-1}},{key:"delete",value:function(e){for(var t=0;t<this._set.length;t++)if(this._set[t]===e)return this._set.splice(t,1),this.size--,!0;return!1}},{key:"forEach",value:function(e){for(var t=0;t<this._set.length;t++)e(this._set[t])}},{key:"clear",value:function(){this._set=[]}}]),gt=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new(self.Set||bt),n=0;n<e.length;n++)t.add(e[n]);return t};function _t(e){return _t="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},_t(e)}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,St(r.key),r)}}function St(e){var t=function(e){if("object"!=_t(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}var kt=function(e,t){return t&&wt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._msgListeners=yt()}),[{key:"setMessagingPort",value:function(e){var t=this;this._messagePort=e,e.setonmessage((function(e){var n=e.data,r=[],o=t._msgListeners.get(n.msgType);o&&o.forEach((function(e){e.callback(n.data),e.isOneTime&&r.push(e)})),r.forEach((function(e){o.delete(e)}))}))}},{key:"sendAsync",value:function(e,t,n,r,o){r&&n&&this.addMessageListener(n,r,o),this._messagePort.postMessage({msgType:e,data:t})}},{key:"addMessageListener",value:function(e,t,n){var r=null;this._msgListeners.has(e)?r=this._msgListeners.get(e):(r=gt(),this._msgListeners.set(e,r)),r.add({callback:t,isOneTime:n})}}]);function Et(e){return Et="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},Et(e)}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pt(r.key),r)}}function Pt(e){var t=function(e){if("object"!=Et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Et(t)?t:t+""}var Tt=function(e,t){return t&&Ot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a){var u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(t=Pt(t))in e?Object.defineProperty(e,t,{value:"BC",enumerable:!0,configurable:!0,writable:!0}):e[t]="BC"}(this,"_dataOrigin"),this._serverWorkerCommunicator=n,this._contextManager=r,this._passToWorkerInterval=a||0,this._intervalConfigKey=o,this._msgToWorker=i,this._Q=[],this._passToWorkerInterval&&(this._intervalId=setInterval(this._sendQToServerWorker.bind(this),this._passToWorkerInterval)),t.addEventListener(window,"beforeunload",(function(){u._onUnload()}),!0)}),[{key:"addToQueue",value:function(e,t,n,r){(n=!(null!=n&&!0!==n))&&t.pu
2sh&&(t[0]=this._contextManager.contextHash),0!==this._passToWorkerInterval?(this._Q.push({eventName:e,data:t,shouldFlush:r,origin:this._dataOrigin}),r&&this._sendQToServerWorker()):this._serverWorkerCommunicator.sendAsync(this._msgToWorker,{eventName:e,data:t,shouldFlush:r,origin:this._dataOrigin})}},{key:"updateWithConfig",value:function(e){var t=e.get(this._intervalConfigKey);void 0!==t&&t!==this._passToWorkerInterval&&(this._passToWorkerInterval=t,clearInterval(this._intervalId),this._intervalId=null,0!==this._passToWorkerInterval&&(this._intervalId=setInterval(this._sendQToServerWorker.bind(this),this._passToWorkerInterval)))}},{key:"flushAllMessages",value:function(){this._Q.push({eventName:"flushData"}),this._sendQToServerWorker()}},{key:"registerOnPreSendToWorker",value:function(e){this._onPreSendToWorker=e}},{key:"_sendQToServerWorker",value:function(){try{this._onPreSendToWorker&&this._onPreSendToWorker(),this._Q.length&&(this._serverWorkerCommunicator.sendAsync(this._msgToWorker,this._Q),this._Q=[])}catch(i){var e=(null==i?void 0:i.name)||"Error",t=(null==i?void 0:i.message)||(null==i?void 0:i.toString())||"Unknown error";pe.warn("Failed sending batch data to worker (".concat(e," - ").concat(t,"). Retrying with individual messages.")),this._sendQInSingleMessagesToServerWorker()}}},{key:"appendData",value:function(e,t){this._Q.push({eventName:e,data:t,shouldFlush:!1,origin:this._dataOrigin})}},{key:"_sendQInSingleMessagesToServerWorker",value:function(){for(var e=0;e<this._Q.length;e++)try{this._serverWorkerCommunicator.sendAsync(this._msgToWorker,this._Q[e])}catch(s){var t,n=(null===(t=this._Q[e])||void 0===t?void 0:t.eventName)||"unknown",r=(null==s?void 0:s.name)||"Error",o=(null==s?void 0:s.message)||(null==s?void 0:s.toString())||"Unknown error";pe.warn("Failed to send message to worker (eventName: ".concat(n,", error: ").concat(r," - ").concat(o,"). Message will be discarded."))}this._Q=[]}},{key:"_onUnload",value:function(){this.flushAllMessages()}},{key:"filterOut",value:function(e){this._Q=this._Q.filter(e)}}]);function Ct(e){return Ct="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},Ct(e)}function jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mt(r.key),r)}}function Mt(e){var t=function(e){if("object"!=Ct(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ct(t)?t:t+""}var xt=function(e,t){return t&&jt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._perfDataQ=t,this._now=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Ke.dateNow.bind(Date),this._monitors=yt()}),[{key:"startMonitor",value:function(e){pe.debug("PerfMonitor:startMonitor on ".concat(e)),this._monitors.set(e,this._now())}},{key:"stopMonitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this._monitors.has(e)){var n=this._now()-this._monitors.get(e);this._perfDataQ.addToQueue("perf",{orig:t,name:e,val:n}),pe.debug("PerfMonitor:stopMonitor on ".concat(e,": time = ").concat(n)),this._monitors.delete(e)}}},{key:"cancelMonitor",value:function(e){pe.debug("PerfMonitor:cancelMonitor on ".concat(e)),this._monitors.has(e)&&this._monitors.delete(e)}},{key:"reportMonitor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";pe.debug("PerfMonitor:reportMonitor on ".concat(e,", time: ").concat(t)),this._perfDataQ.addToQueue("perf",{orig:n,name:e,val:t})}}]);function Rt(e){return Rt="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},Rt(e)}function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bt(r.key),r)}}function Bt(e){var t=function(e){if("object"!=Rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rt(t)?t:t+""}var Dt=function(e,t){return t&&At(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:200;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mutationObserver=t,this._siteMapKey=o,this._keyUrl=o+"_isUrlNonMasked",this._stopOnFirstMappingMatch=a,this._siteMap=null,this._observers=[],this._utils=n,this._domUtils=r,this._onMatchCB=i,this._maxMappings=u,this._maxTriggers=10,this._loggedErrorSelectors={}}),[{key:"updateObserver",value:function(e){this._onMatchCB=e}},{key:"_observeChange",value:function(e,t){if(e)try{var n=window.document.querySelector(e);
2if(n){var r=new this._mutationObserver((function(e){e.length>0&&t()}));r.observe(n,{childList:!0,characterData:!0,attributes:!0,subtree:!0}),this._observers.push(r)}else pe.debug("Selector:".concat(JSON.stringify(e)," not found on page. Check ").concat(this._siteMapKey," configuration"))}catch(e){pe.error("SiteMapper._observeChange: ".concat(e.message),e)}}},{key:"initTracking",value:function(){var e=this,t=function(){if(e._siteMap&&e._siteMap.mappings)for(var t=0;t<e._siteMap.mappings.length;t++){var n=e._siteMap.mappings[t];try{if(!n.url||e._url.indexOf(n.url)>-1)if(n.selector){var r=window.document.querySelector(n.selector);if(r)if(n.byText){if((void 0!==r.innerText&&-1!==r.innerText.indexOf(n.byText)||r.value===n.byText||r.textContent===n.byText)&&(e._onMatchCB(n),e._stopOnFirstMappingMatch))return}else if(e._onMatchCB(n),e._stopOnFirstMappingMatch)return}else if(e._url.indexOf(n.url)>-1&&(e._onMatchCB(n),e._stopOnFirstMappingMatch))return}catch(r){var o=(null==n?void 0:n.selector)||"no-selector";e._loggedErrorSelectors[o]||(pe.warn("SiteMapper:testQuerySelector failed for mapping index ".concat(t,'. Selector: "').concat(o,'". ex: ').concat(r.message),r),e._loggedErrorSelectors[o]=!0)}}};if(!this._siteMap){var n=this._utils.StorageUtils.getFromSessionStorage(this._siteMapKey);n&&n.triggers.length<=this._maxTriggers&&n.mappings.length<=this._maxMappings&&(this._siteMap=n),this._isNonMaskedUrl=this._utils.StorageUtils.getFromSessionStorage(this._keyUrl)}this._siteMap&&(this._url=this._isNonMaskedUrl?window.document.location.href:this._utils.getDocUrl(),this._domUtils.onDocumentBody(window,(function(){e._siteMap&&(e._mutationObserver&&e._siteMap.triggers&&e._siteMap.triggers.forEach((function(n){(!n.url||e._url.indexOf(n.url)>-1)&&e._observeChange(n.selector,t)})),t())})))}},{key:"onConfigUpdate",value:function(e){try{var t=e.get(this._siteMapKey);if(!this._siteMap&&t){this.stopTracking();var n=null;"string"==typeof t?n=JSON.parse(t):"object"===Rt(t)&&null!==t&&(n=t),this._isNonMaskedUrl=e.get("useNonMaskedUrlInMappings"),n&&n.triggers&&n.mappings&&n.triggers.length<=this._maxTriggers&&n.mappings.length<=this._maxMappings?(this._siteMap=n,this._utils.StorageUtils.saveToSessionStorage(this._siteMapKey,this._siteMap),this._utils.StorageUtils.saveToSessionStorage(this._keyUrl,this._isNonMaskedUrl),this.initTracking()):n&&(n.triggers&&n.mappings?pe.warn("Configuration ".concat(this._siteMapKey," contains an illegal amount of triggers or mappings. ")+"Max Allowed Triggers: ".concat(this._maxTriggers," (found: ").concat(n.triggers.length,"), ")+"Max Allowed Mappings: ".concat(this._maxMappings," (found: ").concat(n.mappings.length,")")):pe.warn("Configuration ".concat(this._siteMapKey," is missing required fields. Expected: { triggers: [], mappings: [] }. ")+"Found: { triggers: ".concat(n.triggers?"present":"missing",", mappings: ").concat(n.mappings?"present":"missing"," }")))}}catch(e){pe.error("An error occurred while loading ".concat(this._siteMapKey," configuration. Make sure the configuration value is valid. ").concat(e.message),e)}}},{key:"stopTracking",value:function(){for(var e=0;e<this._observers.length;e++)this._observers[e].disconnect();this._observers=[],this._siteMap=null,this._loggedErrorSelectors={}}}]);function It(e){return It="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},It(e)}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ft(r.key),r)}}function Ft(e){var t=function(e){if("object"!=It(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==It(t)?t:t+""}var Nt=function(e,t){return t&&Lt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
2(this,e),this._wasmLoader=null,this._externalWASMModules=t,this._externalWASMModules.length>0&&"object"===It(window.WasmLoader)&&(this._wasmLoader=window.WasmLoader)}),[{key:"isWasmLoaderAvailable",value:function(){return!(!this._wasmLoader||"function"!=typeof this._wasmLoader.loadKotlinModule)||(pe.warn("WasmLoader is not available in the window scope or loadKotlinModule is not a function."),!1)}},{key:"loadExternalWASMModuleByName",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this._externalWASMModules||!Array.isArray(this._externalWASMModules))return pe.warn("Attempted to get external Wasm module, but externalWASMModules is not an array."),null;var r=this._externalWASMModules.find((function(e){return e.key===t}));return r?this.isWasmLoaderAvailable()?void this._wasmLoader.loadKotlinModule(r.url,r.key).then((function(){var o=e.getLoadedWasmModule(r.key);if(!o)return pe.warn('Failed to load external Wasm module "'.concat(t,'".')),null;pe.debug('Successfully loaded external Wasm module "'.concat(t,'".')),"function"==typeof n&&n(o)})).catch((function(e){return pe.warn('Failed to load external Wasm module "'.concat(t,'" from URL "').concat(r.url,'": ').concat(e.message)),null})):null:(pe.warn('No external Wasm module found with name "'.concat(t,'".')),null)}},{key:"getLoadedWasmModule",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!this._externalWASMModules.find((function(t){return t.key===e})))return pe.warn('Attempted to load a Wasm module with name "'.concat(e,'", \n but it is not available in externalWASMModules.')),null;if(this._wasmLoader){var t=this._wasmLoader.getModule(e);return t&&"object"===It(t)&&"object"===It(t.exports)?t.exports:void 0}pe.warn("Attempted to load a Wasm module, but no WasmLoader is available in the window scope or externalWASMModules is empty.")}}]);function Ut(e){return Ut="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},Ut(e)}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wt(r.key),r)}}function Wt(e){var t=function(e){if("object"!=Ut(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ut(t)?t:t+""}var Qt=function(e,t){return t&&Gt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listeners=[]}),[{key:"subscribe",value:function(e){this._listeners.push(e)}},{key:"publish",value:function(e){for(var t=0,n=this._listeners.length;t<n;t++)this._listeners[t](e)}},{key:"unsubscribe",value:function(e){for(var t=0,n=this._listeners.length;t<n;t++)if(e===this._listeners[t]){this._listeners.splice(t,1);break}}}]);function Ht(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(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)?Vt(e,t):void 0}}(e,t)||function(){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 Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zt(e){return zt="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},zt(e)}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qt(r.key),r)}}function qt(e){var t=function(e){if("object"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}var Jt=function(e,t){return t&&Kt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mode=0,this.onConfigUpdate(t)}),[{key:"onConfigUpdate",value:function(e){var t=e.get(P.contextMappingStatus);this._mode=1===t||2===t?t:0;var n,r=e.get(P.contextCategories);try{n="string"==typeof r?JSON.parse(r):r}catch(e){return pe.error("Failed to parse contextCategories JSON:",e),void(this.NORMALIZED_KEYWORDS={})}if("object"!==zt(n)||null===n||Array.isArray(n))return pe.error("contextCategories must be an object:",n),void(this.NORMALIZED_KEYWORDS={});this.NORMALIZED_KEYWORDS={};for(var o=0,i=Object.entries(n);o<i.length;o++){var a=Ht(i[o],2),u=a[0],s=a[1];if("string"==typeof s){var c=u.toLowerCase().trim();this.NORMALIZED_KEYWORDS[c]=s}else pe.warn('Expected string for category of "'.concat(u,'", got'),s)}}},{key:"getMode",value:function(){return this._mode}},{key:"isVisible",value:function(e){if(!e||"undefined"==typeof Node||e.nodeType!==Node.ELEMENT_NODE)return!0;
2if(null===e.offsetParent&&"BODY"!==e.tagName)return!1;var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"true"!==e.getAttribute("aria-hidden")}},{key:"extractVisibleText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="",o=0,i=this;return function(e){for(var a=[{node:e,depth:0}],u=function(){var e=a.pop(),u=e.node,s=e.depth;if(o>=t||s>n)return 0;if(u.nodeType===Node.TEXT_NODE){var c=u.textContent.trim();c.length>2&&(r+=c+" ")}if(u.nodeType===Node.ELEMENT_NODE&&!i.isVisible(u))return 0;o++,u.childNodes.forEach((function(e){return a.push({node:e,depth:s+1})})),u.shadowRoot&&a.push({node:u.shadowRoot,depth:s+1})};a.length>0;)u()}(e),r.toLowerCase()}},{key:"getMetaText",value:function(){try{var e,t;if("undefined"==typeof document)return"";var n=document.title||"",r=(null===(e=document.querySelector('meta[name="description"]'))||void 0===e?void 0:e.content)||"",o=(null===(t=document.querySelector('meta[property="og:title"]'))||void 0===t?void 0:t.content)||"";return"".concat(n," ").concat(r," ").concat(o).toLowerCase()}catch(e){return pe.error("ContextCategoryService.getMetaText failed: ".concat(e)),""}}},{key:"matchCategory",value:function(e){try{for(var t=String(e||"").toLowerCase().replace(/-/g," "),n={},r={},o=0,i=Object.entries(this.NORMALIZED_KEYWORDS||{});o<i.length;o++){var a=Ht(i[o],2),u=a[0],s=a[1];if(t.includes(u)&&(n[s]=(n[s]||0)+1,(r[s]||(r[s]=[])).push(u),n[s]>=3))break}var c=Object.entries(n).sort((function(e,t){return t[1]-e[1]}));return c.length>0?c[0][0]:"0"}catch(e){return pe.error("ContextCategoryService.matchCategory failed: ".concat(e)),"0"}}},{key:"_getLocation",value:function(){try{return"undefined"!=typeof window&&window.location?window.location:{href:""}}catch(n){return pe.error("ContextCategoryService._getLocation failed: ".concat(n)),{href:""}}}},{key:"getCategory",value:function(){return 0===this._mode?null:this._calculateCategory()}},{key:"_calculateCategory",value:function(){try{var e=this._getLocation(),t=String((null==e?void 0:e.href)||"").toLowerCase(),n=this.matchCategory(t);if("0"===n){var r=this.getMetaText();n=this.matchCategory(r)}return n}catch(e){return pe.error("ContextCategoryService._calculateCategory failed: ".concat(e)),"0"}}}]);function Yt(e){return Yt="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},Yt(e)}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zt(r.key),r)}}function Zt(e){var t=function(e){if("object"!=Yt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yt(t)?t:t+""}var $t=function(e,t){return t&&Xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._utils=t,this._storageUtilsWrapper=o,this._contextSiteMapper=n,this.contextName="",this.referrer="",this.historyLen=-1,this.onContextChange=new Qt,this._contextSiteMapper.updateObserver(this.onSiteMapperMatch.bind(this)),this._workerComm=r,this._contextIdKey="cdContextId",this.context_mapping=null,this.randomValue=
2Math.floor(1e6*Math.random()),this._contextCategoryService=i,this._navigationObserver=a,this._navigationObserver&&this._navigationObserver.setCallback(this._onAutoNavigation.bind(this))}),[{key:"contextData",value:function(){return{contextId:this.contextId,contextHash:this.contextHash,url:this.url,name:this.getContextName(),referrer:this.referrer,hLength:this.historyLen,timestamp:this.timestamp,context_mapping:this.context_mapping}}},{key:"getAutoContextMode",value:function(){return this._contextCategoryService.getMode()}},{key:"getContextName",value:function(){return 2===this.getAutoContextMode()?"cd_auto":this.contextName}},{key:"setContext",value:function(e){this.contextName=e.name,this._genContext(),this.url=e.url,this.referrer=e.referrer,this.historyLen=e.hLength,this.timestamp=e.timestamp,this._publishContext()}},{key:"changeContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getAutoContextMode();if(t&&2===n)pe.info("Context auto-category mode is ACTIVE. Manual context change to '".concat(e,"' is blocked. Context changes are handled automatically by the SDK."));else if(t||2===n)e?e!==this.contextName?(this.contextName=e,this._updateContext(),this._publishContext(),pe.info("Context changed to ".concat(e," (reported as '").concat(this.getContextName(),"'), mode=").concat(n,", context_mapping=").concat(this.context_mapping,", hash=").concat(this.contextHash))):pe.warn("Received context ".concat(e," but this is already the current context. Aborting operation.")):pe.error("Received an invalid context name ".concat(e,". Aborting context change operation"));else{var r=0===n?"OFF":"PASSIVE";pe.info("Context auto-category mode is ".concat(r,". Automatic context change to '").concat(e,"' is blocked."))}}},{key:"initialContext",value:function(e){e?e!==this.contextName?(this.contextName=e,this._updateContext(),this._publishContext()):pe.warn("Received context ".concat(e," but this is already the current context. Aborting operation.")):pe.error("Received an invalid context name ".concat(e,". Aborting context change operation"))}},{key:"onSiteMapperMatch",value:function(e){e.contextName!==this.contextName&&this.changeContext(e.contextName)}},{key:"_onAutoNavigation",value:function(e){var t;null!==(t=this._contextSiteMapper)&&void 0!==t&&t._siteMap||this.changeContext(e.contextName)}},{key:"_updateContext",value:function(){this._genContext(),this.url=this._utils.getDocUrl(),this.referrer=this._utils.clearTextFromNumbers(document.referrer),this.historyLen=window.history.length,this.timestamp=this._utils.dateNow(),this.context_mapping=this._contextCategoryService.getCategory()}},{key:"_genContext",value:function(){this.contextId=this._storageUtilsWrapper.getCookie(this._contextIdKey),this.contextId&&!isNaN(this.contextId)||(this.contextId=this._storageUtilsWrapper.getFromLocalStorage(this._contextIdKey),this.contextId&&!isNaN(this.contextId)||(this.contextId=0)),this.contextId=parseInt(this.contextId);var e=this.contextId+1;this._storageUtilsWrapper.saveToLocalStorage(this._contextIdKey,e)||pe.error("Failed saving contextId ".concat(this.contextId," to local storage.")),this._storageUtilsWrapper.setCookie(this._contextIdKey,e.toString())||pe.error("Failed saving contextId ".concat(this.contextId," to cookie.")),this.contextHash=this._toInt32Hash(this.contextId)}},{key:"_toInt32Hash",value:function(e){var t=e^=this.randomValue;return 4294967295&((t=73244475*((t=73244475*(t>>>16^t))>>>16^t))^t>>>16)}},{key:"_publishContext",value:function(){var e={contextName:this.getContextName()};this._workerComm.sendAsync("changeContextCommand",e),this.onContextChange.publish(this.contextData())}},{key:"initContextHandling",value:function(){this._contextSiteMapper.initTracking(),this._navigationObserver&&2===this._contextCategoryService.getMode()&&this._navigationObserver.startTracking()}},{key:"clearContextHandling",value:function(){this._contextSiteMapper.stopTracking(),this._navigationObserver&&this._navigationObserver.stopTracking()}},{key:"onConfigUpdate",value:function(e){var t=this._contextCategoryService.getMode();this._contextCategoryService.onConfigUpdate(e);var n=this._contextCategoryService.getMode();this._contextSiteMapper.onConfigUpdate(e),this._navigationObserver&&(2===n&&2!==t?this._navigationObserver.startTracking():2!==n&&2===t&&this._navigationObserver.stopTracking()),2!==n||2===t||this.contextName||this.changeContext("cd_auto")}},{key:"onSessionReset",value:function(){2!==this.getAutoContextMode()||this.contextName?this.contextName&&this._publishContext():this.changeContext("cd_auto")}}]);function en(e){return en="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},en(e)}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nn(r.key),r)}}function nn(e){var t=function(e){if("object"!=en(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==en(t)?t:t+""}var rn=function(e,t){return t&&tn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cdUtils=t,this._scriptName=n,this._cdUtils.addEventListener(window,"error",this._handleException.bind(this))}),[{key:"_handleException",value:function(e){if(this._scriptName&&this._scriptName===e.filename){var t=this._buildErrorMessage(e);e.error?pe.error("caught unhandled exception. ".concat(t)):pe.warn("caught unhandled exception. ".concat(t))}}},{key:"_buildErrorMessage",value:function(e){if(!e.error)return e.message;var t=e.error.toString(),n=e.error.stack?e.error.stack:"";return"".concat(t,", Line: ").concat(e.lineno,", Column: ").concat(e.colno,". Stacktrace: ").concat(n)}}]);function on(e){return on="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},on(e)}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,un(r.key),r)}}function un(e){var t=function(e){if("object"!=on(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==on(t)?t:t+""}var sn=function(e,t){return t&&an(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subscribers=yt()}),[{key:"subscribe",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1;
2this.subscribers.has(e)?(n=this.subscribers.get(e))&&n.forEach((function(e){t===e.handler&&(o=!0)})):(n=gt(),this.subscribers.set(e,n)),o||n.add({handler:t,isOneTime:r})}},{key:"unsubscribe",value:function(e,t){if(e&&this.subscribers.has(e)){var n=this.subscribers.get(e);n&&n.forEach((function(e){t===e.handler&&n.delete(e)})),0===n.size&&this.subscribers.delete(e)}}},{key:"publish",value:function(e,t){if(!e)throw new Error("invalid argument messageType must be defined");this._notifySubscribers(e,t)}},{key:"_notifySubscribers",value:function(e,t){var n=this.subscribers.get(e);n&&n.forEach((function(e){e.handler(t),e.isOneTime&&n.delete(e)}))}}]),cn=sn;function ln(e){return ln="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},ln(e)}function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pn(r.key),r)}}function pn(e){var t=function(e){if("object"!=ln(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ln(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ln(t)?t:t+""}var dn=function(e,t){return t&&fn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=new URL(t);if(this._cid=n.searchParams.get("cid"),!this._cid)throw new Error("cid was not found on provided url.")}),[{key:"get",value:function(){return this._cid}}]);function yn(e){return yn="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},yn(e)}function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}function mn(e){var t=function(e){if("object"!=yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:t+""}var vn=function(e,t){return t&&hn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._workerComm=t,this._utils=n,this._currState=null,this._agentIdService=r,t.addMessageListener("ServerStateUpdatedEvent",this._onStateUpdateFromWorker.bind(this)),t.addMessageListener("ServerNewAgentIdEvent",this._onNewAgentIdFromWorker.bind(this)),n.addEventListener(window,"storage",this._onStateUpdateFromStorage.bind(this),!0)}),[{key:"getServerState",value:function(e){if(this._utils.isUndefinedNull(e))throw new Error("Invalid sid param of ".concat(e));return this._currState=this._currState||this._utils.StorageUtils.getFromLocalStorage("cdSrvrState"),this._currState&&this._currState.sid!==e?null:this._currState}},{key:"onSessionIdChange",value:function(){this._utils.StorageUtils.removeFromLocalStorage("cdSrvrState"),this._currState=null}},{key:"_onStateUpdateFromWorker",value:function(e){this._updateServerState(e)}},{key:"_updateServerState",value:function(e){this._currState=e,this._utils.StorageUtils.saveToLocalStorage("cdSrvrState",e)}},{key:"_onStateUpdateFromStorage",value:function(e){if(e&&e.storageArea&&e.storageArea.cdSrvrState){var t=JSON.parse(e.storageArea.cdSrvrState);this._workerComm.sendAsync("stateUpdateFromStorage",{requestId:t.val.requestId,sts:t.val.sts,std:t.val.std,ott:t.val.ott})}}},{key:"_onNewAgentIdFromWorker",value:function(e){this._agentIdService.set(e)}}]);function bn(e){return bn="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},bn(e)}function gn(e,t,n){return(t=function(e){var t=function(e){if("object"!=bn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _n={V1_ONLY:"0",DUAL_COLLECTION_V1_PRIORITY:"1",DUAL_COLLECTION_V2_PRIORITY:"2",V2_ONLY:"3",DUAL_COLLECTION_PARALLEL_WAIT_ALL:"5",DUAL_COLLECTION_PARALLEL_IMMEDIATE:"6",isValid:function(e){return Object.values(_n).includes(e)},getDescription:function(e){return gn(gn(gn(gn(gn(gn({},_n.V1_ONLY,"Only V1 collector is active"),_n.DUAL_COLLECTION_V1_PRIORITY,"Both collectors active, V1 is primary"),_n.DUAL_COLLECTION_V2_PRIORITY,"Both collectors active, V2 is primary"),_n.V2_ONLY,"Only V2 collector is active"),_n.DUAL_COLLECTION_PARALLEL_WAIT_ALL,"Both collectors active, parallel, waits for both and sends combined"),_n.DUAL_COLLECTION_PARALLEL_IMMEDIATE,"Both collectors active, parallel, sends immediately as each completes")[e]||"Unknown stage"}},wn=_n,Sn=Object.freeze({VERSION1:"VERSION1",VERSION2:"VERSION2"});function kn(e){return kn="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},kn(e)}function En(e){return function(e){if(Array.isArray(e))return On(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return On(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)?On(e,t):void 0}}(e)||function(){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 On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tn(r.key),r)}}function Tn(e){var t=function(e){if("object"!=kn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kn(t)?t:t+""}var Cn={migrationMode:wn.V1_ONLY,v1:{offloadFontsCollectionEnabled:!1,offloadFontsRemoveDuplicated:!0}
2,v2:{detectorType:void 0,fontsPerBatch:100,delayBetweenBatchesMs:0,adaptiveBatchEnabled:!0,minFontsPerBatch:100,maxFontsPerBatch:1e3,frameBudgetMs:100,frameHistorySize:3,ignoreFonts:["STFangsong","STHeiti","STKaiti","STXihei","NanumGothic","NanumMyeongjo","Osaka","Osaka-Mono","YuppySC-Regular"]}},jn=function(e,t){return t&&Pn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t,this._logsTag="[FONTS-COLLECTOR][CONFIG-MANAGER]"}),[{key:"getV1ScannerConfig",value:function(){var e=this._configurationRepository.get(P.offloadFontsCollectionEnabled),t=this._configurationRepository.get(P.offloadFontsRemoveDuplicated);return{offloadFontsCollectionEnabled:null!=e?e:Cn.v1.offloadFontsCollectionEnabled,offloadFontsRemoveDuplicated:null!=t?t:Cn.v1.offloadFontsRemoveDuplicated}}},{key:"getV2ScannerConfig",value:function(){var e,t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m=this._getParsedFontCollectionConfig();return{detectorType:null!==(e=null==m||null===(t=m.v2)||void 0===t?void 0:t.detectorType)&&void 0!==e?e:Cn.v2.detectorType,fontsPerBatch:null!==(n=null==m||null===(r=m.v2)||void 0===r?void 0:r.fontsPerBatch)&&void 0!==n?n:Cn.v2.fontsPerBatch,delayBetweenBatchesMs:null!==(o=null==m||null===(i=m.v2)||void 0===i?void 0:i.delayBetweenBatchesMs)&&void 0!==o?o:Cn.v2.delayBetweenBatchesMs,adaptiveBatchEnabled:null!==(a=null==m||null===(u=m.v2)||void 0===u?void 0:u.adaptiveBatchEnabled)&&void 0!==a?a:Cn.v2.adaptiveBatchEnabled,minFontsPerBatch:null!==(s=null==m||null===(c=m.v2)||void 0===c?void 0:c.minFontsPerBatch)&&void 0!==s?s:Cn.v2.minFontsPerBatch,maxFontsPerBatch:null!==(l=null==m||null===(f=m.v2)||void 0===f?void 0:f.maxFontsPerBatch)&&void 0!==l?l:Cn.v2.maxFontsPerBatch,frameBudgetMs:null!==(p=null==m||null===(d=m.v2)||void 0===d?void 0:d.frameBudgetMs)&&void 0!==p?p:Cn.v2.frameBudgetMs,frameHistorySize:null!==(y=null==m||null===(h=m.v2)||void 0===h?void 0:h.frameHistorySize)&&void 0!==y?y:Cn.v2.frameHistorySize}}},{key:"getFontCollectionConfig",value:function(){return this._getParsedFontCollectionConfig()}},{key:"getMigrationMode",value:function(e){var t;return null!==(t=this._getParsedFontCollectionConfig().migrationMode)&&void 0!==t?t:e}},{key:"getDetectorType",value:function(){var e;return null===(e=this._getParsedFontCollectionConfig())||void 0===e||null===(e=e.v2)||void 0===e?void 0:e.detectorType}},{key:"getIgnoredFonts",value:function(){var e,t,n=this._getParsedFontCollectionConfig(),r=null!==(e=null==n||null===(t=n.v2)||void 0===t?void 0:t.ignoreFonts)&&void 0!==e?e:[],o=Cn.v2.ignoreFonts,i=new Set([].concat(En(r),En(o)));return Array.from(i)}},{key:"getConfigByVersion",value:function(e){return e===Sn.VERSION1?this.getV1ScannerConfig():e===Sn.VERSION2?this.getV2ScannerConfig():void 0}},{key:"_getParsedFontCollectionConfig",value:function(){try{return JSON.parse(this._configurationRepository.get(P.fontCollection)||"{}")}catch(n){return pe.error("".concat(this._logsTag," Failed to parse font collection config: ").concat(n.message)),{}}}}]);function Mn(e){return Mn="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},Mn(e)}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rn(r.key),r)}}function Rn(e){var t=function(e){if("object"!=Mn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mn(t)?t:t+""}var An={defaultDynamicWupDispatchRateConfiguration:{type:"dynamic"},defaultIncrementalWupDispatchRateConfiguration:{type:"incremental",initialRateValueMs:500,incrementStepMs:500,incrementStopMs:5e3,incrementStartWupSendCount:20}},Bn=[P.keyEventsMaskSpecialChars,P.passwordIdMaskingList,P.maskElementsAttributes,P.allowedUnmaskedValuesList,P.enableUnmaskedValues,P.enableCoordinatesMasking],Dn=function(e,t){return t&&xn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._requireParseFields=yt(),this._requireParseFields.set(P.dataWupDispatchRateSettings,P.dataWupDispatchRateSettings),this._requireParseFields.set(P.logWupDispatchRateSettings,P.logWupDispatchRateSettings),this._requireParseFields.set(P.crossDomainsList,P.crossDomainsList),this._requireParseFields.set(P.allowedUnmaskedValuesList,P.allowedUnmaskedValuesList),this._requireParseFields.set(P.serverCommunicationSettings,P.serverCommunicationSettings),this._configurationList={},this.configDefault={logLevel:20,isCrossdomain:!1,isGfxRendering:!1,isAudioDetectFeature:!1,enableEmuidFeature:!1,crossDomainsList:[],crossDomainsTimeout:5e3,orientationEventsSamplePeriod:300,orientationEventsThreshold:1,stateChangeEnabled:!1,accelerometerEventsSamplePeriod:0,dataQPassWorkerInterval:500,gyroEventsSamplePeriod:0,gyroEventsThreshold:.3,isContextPropsFeature:!0,isEnabled:!0,isResetEveryLoad:!1,isScrollCollect:!0,isVMDetection:!0,isAudioDetection:!1,wupStatisticsLogIntervalMs:3e4,heartBeatMessageInterval:5e3,resetSessionApiThreshold:2e4,wupMessageRequestTimeout:5e3,logMessageRequestTimeout:5e3,slaveChannelHandshakeTimeout:6e4,slaveAliveMessageInterval:100,forceDynamicDataWupDispatchSettings:!0,dataWupDispatchRateSettings:An.defaultDynamicWupDispatchRateConfiguration,logWupDispatchRateSettings:{type:"constant",initialRateValueMs:2500},serverCommunicationSettings:{queueLoadThreshold:100},collectKeyRegionValue:!1,isMutationObserver:!0,collectCustomElementAttribute:!0,isCaptureKeyEvents:!1,locationEventsTimeoutMsec:1e4,isMotionAroundTouchEnabled:!0,motionPaddingAroun
2dTouchMSec:3e3,isMotionOnSessionStart:!0,motionPaddingOnSessionStartMSec:2e4,keyEventsMaskSpecialChars:!1,collectSelectElementBlurAndFocusEvents:!1,enableUnmaskedValues:!1,allowedUnmaskedValuesList:[],wupMessageNumToRetry:5,wupMessageRetryInterval:1e3,wupRetryOnNetworkFailureOnly:!1,wupIncrementalGrowthBetweenFailures:3500,wupMaxIntervalBetweenFailures:16e3,logMessageNumToRetry:5,logMessageRetryInterval:1e3,logRetryOnNetworkFailureOnly:!1,logIncrementalGrowthBetweenFailures:3500,logMaxIntervalBetweenFailures:16e3,cdsNumExpirationTime:60,enableCoordinatesMasking:!1,acknowledgeDataDispatchingRate:3e3,passwordIdMaskingList:[],isFontWidthFeature:!1,isFontMathFeature:!1,isFontEmojiFeature:!1,isStorageFeature:!1,isKeyboardLayoutFeature:!1,isScreenHighResFeature:!1,isBatteryStatusFeature:!1,isNavigatorFeature:!1,isWebglFeature:!1,isWebRTCFeature:!1,isSpeechVoicesFeature:!1,isDRMFeature:!1,isBrowserExtensionsFeature:!1,isAdblockerListsFeature:!1,isAudioDetectFeature2:!1,enableIncognitoDetection:!1,elementUniqueIDConfiguration:{componentsFormat:"{tagName}_{index}_{id}_{className}_{ariaLabel}_{containerInfo}_{hierarchyPath}",hierarchyFormat:"{tagName}_{index}",enabledTags:["input","textarea","button","select","div","span"]},offloadFontsCollectionEnabled:Cn.v1.offloadFontsCollectionEnabled,offloadFontsRemoveDuplicated:Cn.v1.offloadFontsRemoveDuplicated,fontCollection:JSON.stringify(Cn),enableElementHierarchy:!1,enableElementCategory:!0,enableRandomElementHash:!1,isCPUFeature:!1,contextMappingStatus:0,contextCategories:i(753),enableWupSendDataFields:!1,embedding_minimal_collectors:["grph_card","cores","os","fonts","main_lang","languages"],enableMetricsFeature:!1,metricsMainToWorkerFlushIntervalSec:5,metricsMessageDispatchRateMsec:1e4,metricsMessageNumToRetry:0,metricsMessageRetryAndTimeoutInterval:5e3,isCollectorsV2:!1,isAgenticBrowserDetectFeature:!1,agenticBrowserFonts:["FKGroteskNeue","Times"],isAgenticDomInjectionFeature:!1,agenticDomInjectionBlinkThresholdMs:100,agenticDomInjectionBlinkTags:["div","style"],agenticDomInjectionSuspiciousIds:["claude"],collectAgenticPasteSignal:!1,speechSynthesisTimeout:1e3,isPermissionChangeEvents:!1,permissionCheckIntervalMs:2e3},this.loadConfigurations(this.configDefault)}),[{key:"isConfigurationUpdatedFromServer",value:function(){return!this._isDefaultConfiguration}},{key:"loadConfigurations",value:function(e,t){var n=this;e&&(this._isDefaultConfiguration=e===this.configDefault,Object.keys(e).forEach((function(r){if(t||n._isDefaultConfiguration||!Bn.includes(r)){var o=e[r];if(n._requireParseFields.has(r)){var i=n._tryParseConfigurationValue(o);i&&(o=i)}n._configurationList[r]=o}})))}},{key:"get",value:function(e){return this._configurationList[e]}},{key:"set",value:function(e,t){this._configurationList[e]=t}},{key:"getAll",value:function(){return this._configurationList}},{key:"_tryParseConfigurationValue",value:function(e){if("string"!=typeof e)return null;try{return JSON.parse(e)}catch(e){}return null}}]),In="touchEvent",Ln="keyEvent",Fn="ConfigurationLoadedEvent",Nn="NewSessionStartedEvent",Un="ApiContextChangeEvent",Gn="ApiResetSessionEvent",Wn="ApiCustomerMetadataEvent",Qn="ApiChangeStateEvent",Hn="ApiSetCsidEvent",Vn="ApiSetPsidEvent",zn="ApiSetCustomerBrand",Kn="ServerRestoredMuidEvent",qn="StateChangedEvent",Jn="MutationSingleEvent",Yn="MutationAddedNodes",Xn="MutationRemovedNodes",Zn="StandardInputEvent",$n="StandardInputFocusEvent",er="StandardInputBlurEvent",tr="StandardOnClickEvent",nr="StandardOnSelectEvent",rr="ElementFocusEvent",or="ElementBlurEvent",ir="StandardOnFormSubmitEvent",ar="SyntheticInputMaskEvent",ur="CutEvent",sr="CopyEvent",cr="PasteEvent",lr="DeviceOrientationEvent",fr="BeforeInstallPromptEvent",pr="FocusEvent",dr="BlurEvent",yr="ResizeEvent",hr="DOMContentLoadedEvent",mr="VisibilityChangeEvent",vr="ScrollEvent",br="WindowMessageEvent",gr="CustomElementInaccessible",_r="CustomElementSubmitted",wr="CustomInputElement",Sr="BCTrackerElementsEvent",kr="BCTrackerElementEventsEvent",Er="BCTrackerKeyEvent",Or="BCTrackerTouchEvent",Pr="BCTrackerMouseEvent";function Tr(e){return Tr="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},Tr(e)}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jr(r.key),r)}}function jr(e){var t=function(e){if("object"!=Tr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tr(t)?t:t+""}var Mr=function(e,t){return t&&Cr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}
2((function e(t,n,r,o,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!r)throw new Error("messageBus param must be defined");this._configurationLoadedCallback=null,this._utils=t,this._configurationRepository=n,this._messageBus=r,this._cidCache=o,i&&i.addMessageListener("ConfigurationLoadedEvent",this._onConfigurationLoadedEvent.bind(this))}),[{key:"updateLogUrlToWorker",value:function(e,t,n){var r=this._configurationRepository.get(P.logAddress);if(this._isValidLogUrl(r)){if(this._configurationRepository.get(P.enableMinifiedLogUri)){var o=new URL(r);r=o.protocol+"//"+o.host}var i={cid:this._cidCache.get(),sid:e,csid:t,ds:"js",sdkVer:this._utils.scriptVersion};pe.attachSessionIdentifiers(i);var a={logAddress:r,sessionIdentifiers:i};n.sendAsync("updateLogUrl",a)}}},{key:"_isValidLogUrl",value:function(e){try{return new URL(e),!0}catch(e){return!1}}},{key:"setConfigurationLoadedCallback",value:function(e){this._configurationLoadedCallback=e}},{key:"_onConfigurationLoadedEvent",value:function(e){this._configurationRepository.loadConfigurations(e),this._configurationLoadedCallback&&this._configurationLoadedCallback(this._configurationRepository.get(P.isEnabled)),this._messageBus.publish(Fn,this._configurationRepository)}}]);function xr(e){return xr="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},xr(e)}function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ar(r.key),r)}}function Ar(e){var t=function(e){if("object"!=xr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xr(t)?t:t+""}var Br=function(e,t){return t&&Rr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"startFeature",value:function(){}},{key:"stopFeature",value:function(){}},{key:"updateFeatureConfig",value:function(){}},{key:"sendToQueue",value:function(){}},{key:"getEventTimestamp",value:function(){return Ke.dateNow()}},{key:"getTimestampFromEvent",value:function(e){return e.timeStamp?Ke.cutDecimalPointDigits(e.timeStamp,3):0}}]),Dr={false:0,true:1,undefined:2,null:2},Ir={Enter:13,ArrowUp:38,ArrowDown:40,ArrowLeft:37,ArrowRight:39,Escape:27," ":32,Control:17,Alt:18,Tab:9,Shift:16,CapsLock:20,Meta:91,Backspace:8,Home:36,End:35,Insert:45,Delete:46,PageUp:33,PageDown:34,PrintScreen:44,NumLock:144,Clear:144,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,10:121,F11:122,F12:123};function Lr(e){return Lr="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},Lr(e)}function Fr(e){return function(e){if(Array.isArray(e))return Nr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Nr(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)?Nr(e,t):void 0}}(e)||function(){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 Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gr(r.key),r)}}function Gr(e){var t=function(e){if("object"!=Lr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lr(t)?t:t+""}var Wr=-1e3,Qr=function(e,t){return t&&Ur(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t,this._attributesToMask=this._configurationRepository.get(P.maskElementsAttributes),this.maskedCodeMapping={original:function(e,t,n){return{code:e,charCode:t,key:n}},numpadKey:function(e){return{code:"Numpad",charCode:96,key:e}},letter:function(){return{code:"Key",charCode:65,key:"A"}},digit:function(){return{code:"Digit",charCode:49,key:"1"}},specialChar:function(){return{code:"SpecialChar",charCode:42,ke
2y:"*"}},other:function(){return{code:"Other",charCode:66,key:"B"}},masked:function(){return{code:"Masked",charCode:"a".charCodeAt(0),key:"a"}}},this.digitMaskValue="1",this.letterMaskValueLowerCase="a",this.unicodeMaskValue="B",this.specialCharMaskValue="*",this.customPasswordMaskValue="a",this.specialConfigurationChars=new Set([",","."," ","@",";",":","-","+","$"]),this.specialChars=new Set(["_","!","%","^","&","*","#","(",")","=","{","}","[","]","\u2019","\\","|","/","?",">","<","~",'"',"\xb1","\xa7","'"]),this.lettersSet=new Set(Fr(Array(26)).map((function(e,t){return String.fromCharCode(65+t)})).concat(Fr(Array(26)).map((function(e,t){return String.fromCharCode(97+t)}))).concat(Fr(Array(27)).map((function(e,t){return String.fromCharCode(1488+t)})))),this.digitsSet=new Set(Fr(Array(10)).map((function(e,t){return String(t)}))),this.cjkNumbersSet=new Set(["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u767e","\u5343","\u4e07","\u96f6","\u58f9","\u8cb3","\u8d30","\u53c3","\u53c1","\u8086","\u4f0d","\u9678","\u9646","\u67d2","\u634c","\u7396","\u62fe","\u4f70","\u4edf","\u842c","\u3021","\u3022","\u3023","\u3024","\u3025","\u3026","\u3027","\u3028","\u3029","\u3038","\u3039","\u303a"]),this.allowedUnmaskedChars=new Set([",",".","@",";",":","-","+","$"," "]),this.allowedMaskedChars=new Set(["a","1","*"])}),[{key:"maskKey",value:function(e,t,n){if(this._isPasswordMaskedElementId(n))return this.maskedCodeMapping.masked();if(Ir[e]){var r=Ir[e];return this.maskedCodeMapping.original(t,r,e)}return this._isANumberOrDigit(e)?t.includes("Numpad")?this.maskedCodeMapping.numpadKey("1"):this.maskedCodeMapping.digit():this._isALetter(e)?this.maskedCodeMapping.letter():!this._configurationRepository.get(P.keyEventsMaskSpecialChars)&&this.specialConfigurationChars.has(e)?this.maskedCodeMapping.original(t,e.charCodeAt(0),e):this.specialChars.has(e)||this.specialConfigurationChars.has(e)?t.includes("Numpad")?this.maskedCodeMapping.numpadKey("*"):this.maskedCodeMapping.specialChar():this.maskedCodeMapping.other()}},{key:"getKeyFromLegacyProperties",value:function(e){var t=e.keyCode||e.which;return 0===t||void 0===t?"":String.fromCharCode(t)}},{key:"_isALetter",value:function(e){return/^[a-zA-Z]$/.test(e)||this._isJapaneseOrChineseLetter(e)||this._isHebrewLetter(e)}},{key:"_isANumberOrDigit",value:function(e){return/[0-9]/.test(e)||this.cjkNumbersSet.has(e)}},{key:"_isJapaneseOrChineseLetter",value:function(e){return this._isCJKUnifiedIdeographs(e)||this._isCJKUnifiedIdeographsExtenA(e)||this._isCJKUnifiedIdeographsExtenB(e)||this._isSmallKatakanaLetter(e)}},{key:"_isCJKUnifiedIdeographsExtenB",value:function(e){return/[\u3041-\u309F]/.test(e)}},{key:"_isSmallKatakanaLetter",value:function(e){return/[\u30A1-\u30FF]/.test(e)}},{key:"_isCJKUnifiedIdeographsExtenA",value:function(e){return/[\u3400-\u4DB5]/.test(e)}},{key:"_isCJKUnifiedIdeographs",value:function(e){return/[\u4E00-\u9FCC]/.test(e)}},{key:"_isHebrewLetter",value:function(e){return/[\u05D0-\u05EA]/.test(e)}},{key:"_isPasswordMaskedElementId",value:function(e){var t=this._configurationRepository.get(P.passwordIdMaskingList);return void 0!==e&&Array.isArray(t)&&t.includes(e)}},{key:"getDropDownListValues",value:function(e){for(var t=[],n=0;n<e.length;n++){var r=e.options[n].text||e.options[n].value||"";t.push(this.maskText(r,e.id))}return t}},{key:"maskText",value:function(e,t){var n=this;if(!e)return"";var r=String(e);if(this._isPasswordMaskedElementId(t))return r.replace(/./g,this.customPasswordMaskValue);var o=Fr(r).map((function(e){return n.digitsSet.has(e)?n.digitMaskValue:n.lettersSet.has(e)?n.letterMaskValueLowerCase:n.cjkNumbersSet.has(e)?n.digitMaskValue:n.specialChars.has(e)?n.specialCharMaskValue:n.allowedUnmaskedChars.has(e)?e:n.unicodeMaskValue})).join("");return this._configurationRepository.get(P.keyEventsMaskSpecialChars)?o=Fr(o).map((function(e){return n.allowedUnmaskedChars.has(e)?n.specialCharMaskValue:e})).map((function(e){return n.allowedMaskedChars.has(e)?e:n.unicodeMaskValue})).join(""):o}},{key:"maskAbsoluteIfRequired",value:function(e,t){return""!==e&&this._shouldMask(e)?this.maskText(e,t):e}},{key:"shouldMaskCoordinates",value:function(){return this._configurationRepository.get(P.enableCoordinatesMasking)}},{key:"_shouldMask",value:function(e){var t=this;return void 0!==this._attributesToMask&&this._attributesToMask.some((function(n){return t._isConformsRegex(n.regexPattern,e)||n.name.toLowerCase()===(null==e?void 0:e.toLowerCase())}))}},{key:"_isConformsRegex",value:function(e,t){try{if(new RegExp(e).test(t))return pe.debug("The string ".concat(t," matches the pattern ").concat(e,".")),!0}catch(e){pe.error("Invalid regex pattern: ".concat(e))}return pe.debug("The string ".concat(t," does not match the pattern. ").concat(e,".")),!1}}]);function Hr(e){return Hr="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},Hr(e)}function Vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zr(r.key),r)}}function zr(e){var t=function(e){if("object"!=Hr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hr(t)?t:t+""}function Kr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kr=function(){return!!e})()}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qr(e)}function Jr(e,t){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jr(e,t)}var Yr={configKey:"isTouchEvents",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInSlave:!0,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},Xr={pointerdown:"touchstart",pointerup:"touchend",pointermove:"touchmove",MSPointerDown:"touchstart",MSPointerUp:"touchend",MSPointerMove:"touchmove"},Zr={touchstart:0,touchmove:1,touchend:2,touchcancel:3},$r=["eventSequence","timestamp","eventType","isTrusted","elementHash","clientX","clientY","touchIndex","touchSizeMajor","touchSizeMinor","pageX","pageY","screenX","screenY","relativeTime","touchPressure"],eo=function(e){function t(e,n,r,o,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(u=function(e,t,n){return t=qr(t),function(e,t){if(t&&("object"==Hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kr()?Reflect.construct(t,n||[],qr(e).constructor):t.apply(e,n))}(this,t))._utils=e,u._dataQ=r,u._elements=n,u._msgBus=o,u._onAllBrowsersTouchEventBinded=u._onAllBrowsersTouchEvent.bind(u),u._maskingService=i,u._maxShadowDepth=a.getMaxShadowDepth(),u._iframeLoadingTimeout=a.getIframeLoadingTimeout(),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jr(e,t)}(t,e),function(e,t,n){return t&&Vr(e.prototype,t),n&&Vr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){this._bind(e)}},{key:"stopFeature",value:function(e){this._unbind(e)}},{key:"_addToCommunicationQueue",value:function(e,t,n,r){e!==Zr.touchstart&&e!==Zr.touchend||this._msgBus.publish(In,{action:e});var o=this.getEventTimestamp(r),i=Dr[r.isTrusted],a=this._elements.getElementHashFromEvent(r),u=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._utils.isUndefinedNull(e)&&(e=-1),this._utils.isUndefinedNull(t)&&(t=-1);var s=this.getTimestampFromEvent(r);this._dataQ.addToQueue("touch_events",this._utils.convertToArrayByMap($r,{eventSequence:u,timestamp:o,eventType:e,isTrusted:i,elementHash:a,clientX:this._maskingService.shouldMaskCoordinates()?Wr:n.clientX?Math.round(n.clientX):0,clientY:this._maskingService.shouldMaskCoordinates()?Wr:n.clientY?Math.round(n.clientY):0,touchIndex:t,touchSizeMajor:n.radiusX?2*n.radiusX:0,touchSizeMinor:n.radiusY?2*n.radiusY:0,pageX:this._maskingService.shouldMaskCoordinates()?Wr:n.pageX||0,pageY:this._maskingService.shouldMaskCoordinates()?Wr:n.pageY||0,screenX:this._maskingService.shouldMaskCoordinates()?Wr:n.screenX||0,screenY:this._maskingService.shouldMaskCoordinates()?Wr:n.screenY||0,relativeTime:s,touchPressure:n.force||-1}))}},{key:"_bind",value:function(e){var t,n=this;window.TouchEvent?t=["touchstart","touchmove","touchend","touchcancel"]:window.PointerEvent&&(t=["pointerdown","pointermove","pointerup"]),this._listeningToEvents=t,this._listeningToEvents&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){for(var t=0;t<n._listeningToEvents.length;t++)n._utils.addEventListener(e,n._listeningToEvents[t],n._onAllBrowsersTouchEventBinded)}))}},{key:"_unbind",value:function(e){var t=this;this._listeningToEvents&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){for(var n=0;n<t._listeningToEvents.length;n++)t._utils.removeEventListener(e,t._listeningToEvents[n],t._onAllBrowsersTouchEventBinded)}))}},{key:"_onAllBrowsersTouchEvent",value:function(e){return this._onIeTouchEvent(e),this._onTouchEvent(e),!0}},{key:"_onTouchEvent",value:function(e){if((null===e.pointerType||void 0===e.pointerType)&&void 0!==e.changedTouches)for(var t=Zr[e.type],n=0;n<e.changedTouches.length;n++){var r=e.changedTouches[n],o=r.identifier%1e4;this._addToCommunicationQueue(t,o,r,e)}}},{key:"_onIeTouchEvent",value:function(e){if(null!=e.pointerType&&("touch"===e.pointerType||"pen"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_TOUCH||e.pointerType===e.MSPOINTER_TYPE_PEN)){var t=Xr[e.type]||"touchcancel",n=e.pointerId?e.pointerId%1e4:0,r=Zr[t];this._addToCommunicationQueue(r,n,e,e)}}}],[{key:"getDefaultSettings",value:function(){return Yr}}])}(Br);function to(e){return to="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},to(e)}function no(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ro(r.key),r)}}function ro(e){var t=function(e){if("object"!=to(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=to(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==to(t)?t:t+""}var oo={true:1,false:0,undefined:-1},io=function(e,t){return t&&no(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._elementList=new WeakMap}),[{key:"update",value:function(e,t){this._elementList.set(e,t)}},{key:"compare",value:function(e,t){return oo[t===this._elementList.get(e)]}}]),ao={IntlBackslash:"0",Digit1:"0",Digit2:"0",Digit3:"0",Digit4:"1",Digit5:"1",Digit6:"1",Digit7:"1",Digit8:"2",Digit9:"2",Digit0:"2",KeyQ:"3",KeyW:"3",KeyE:"3",KeyA:"3",KeyS:"3",KeyD:"3",KeyZ:"3",KeyX:"3",KeyC:"3",KeyR:"4",KeyT:"4",KeyF:"4",KeyG:"4",KeyV:"4",KeyB:"4",KeyY:"5",KeyU:"5",KeyH:"5",KeyJ:"5",KeyN:"5",KeyM:"5",KeyI:"6",KeyO:"6",KeyP:"6",KeyK:"6",KeyL:"6",Comma:"6",Period:"6",Semicolon:"7",Minus:"7",Equal:"7",Slash:"7",BracketLeft:"7",Backslash:"7",BracketRight:"7",Quote:"7",NumLock:"8",NumpadDivide:"8",NumpadMultiply:"8",NumpadSubtract:"8",NumpadAdd:"8",NumpadEnter:"8",NumpadDecimal:"8",Numpad0:"8",Numpad1:"8",Numpad2:"8",Numpad3:"8",Numpad4:"8",Numpad5:"8",Numpad6:"8",Numpad7:"8",Numpad8:"8",Numpad9:"8"};function uo(e){return uo="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},uo(e)}function so(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,co(r.key),r)}}function co(e){var t=function(e){if("object"!=uo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uo(t)?t:t+""}function lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lo=function(){return!!e})()}
2function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}function po(e,t){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},po(e,t)}var yo={configKey:"isKeyEvents",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInSlave:!0,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},ho={keyup:0,keydown:1,keypress:2},mo=["eventSequence","timestamp","eventType","isTrusted","elementHash","charCode","character","keyComboType","isCtrl","isShift","isAlt","isMetaKey","keyLocation","code","key","isRepeat","keyRegion","relativeTime","isSameKey"],vo=function(e){function t(e,n,r,o,i,a,u,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(c=function(e,t,n){return t=fo(t),function(e,t){if(t&&("object"==uo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lo()?Reflect.construct(t,n||[],fo(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,c._utils=n,c._elements=r,c._dataQueue=o,c._msgBus=i,c._sameCharService=a,c._maskingService=u,c._maxShadowDepth=s.getMaxShadowDepth(),c._iframeLoadingTimeout=s.getIframeLoadingTimeout(),c.comboCodes=["c","v","a","x","z","p","s"],c._onKeyEvent=c._onKeyEvent.bind(c),c._useCaptureEvents=c._configurationRepository.get(P.isCaptureKeyEvents),c._listeners=[],c._listenedDocuments=new WeakSet,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&po(e,t)}(t,e),function(e,t,n){return t&&so(e.prototype,t),n&&so(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){var t=this;try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._bind(e,t._onKeyEvent,t._useCaptureEvents)}))}catch(e){pe.error("KeyEvents:startFeature failed, msg: ".concat(e.message),e)}}},{key:"stopFeature",value:function(e){var t=this;try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._unbind(e)}))}catch(e){pe.error("KeyEvents:stopFeature failed, msg: ".concat(e.message),e)}}},{key:"updateFeatureConfig",value:function(e){try{if(this._configurationRepository.get(P.isCaptureKeyEvents)!==this._useCaptureEvents){var t=e.getDocument(),n=this._configurationRepository.get(P.isCaptureKeyEvents);this._unbind(t),this._bind(t,this._onKeyEvent,n),this._useCaptureEvents=n}}catch(e){pe.error("KeyEvents:startFeature failed, msg: ".concat(e.message),e)}}},{key:"_bind",value:function(e,t,n){this._listenedDocuments.has(e)||(this._listenedDocuments.add(e),this._addListener(e,"keyup",t,n),this._addListener(e,"keydown",t,n),this._addListener(e,"keypress",t,n))}},{key:"_unbind",value:function(e){this._listenedDocuments.delete(e),this._removeAllListeners(e,"keyup"),this._removeAllListeners(e,"keydown"),this._removeAllListeners(e,"keypress")}},{key:"_addListener",value:function(e,t,n,r){e.addEventListener(t,n,r),this._listeners.push({target:e,type:t,handler:n,options:r})}},{key:"_removeAllListeners",value:function(e,t){this._listeners.filter((function(n){return n.target===e&&n.type===t})).forEach((function(e){e.target.removeEventListener(e.type,e.handler,e.options)})),this._listeners=this._listeners.filter((function(n){return!(n.target===e&&n.type===t)}))}},{key:"_onKeyEvent",value:function(e){var t=ho[e.type];t!==ho.keydown&&t!==ho.keyup||this._msgBus.publish(Ln,{action:t}),this._handleKeyEvent(e,"key_events")}},{key:"_handleKeyEvent",value:function(e,t){var n=this._elements.getRealEventTarget(e).id,r=ho[e.type];this._utils.isUndefinedNull(r)&&(r=-1);var o=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=this.getEventTimestamp(e),a=e.key||this._maskingService.getKeyFromLegacyProperties(e),u=e.code||"",s=this._maskingService.maskKey(a,u,n),c=s.key.length>1?"":s.key,l=this._elements.getElementHashFromEvent(e),f=this._getComboType(e,a),p=Dr[e.isTrusted],d="Meta"===e.key||"OS"===e.key||"Win"===e.key||e.metaKey||91===e.keyCode||92===e.keyCode,y=this._configurationRepository.get(P.collectKeyRegionValue)?this._getKeyRegion(u):"-1",h=this.getTimestampFromEvent(e),m=oo.undefined;"keypress"===e.type&&(m=this._sameCharService.compare(e.target,e.key),this._sameCharService.update(e.target,e.key)),pe.isDebug()&&pe.trace("onKeyEvent: got event: ".concat(r,", at time:").concat(i,", key: ").concat(s.key,", code:").concat(s.code,", old charCode:").concat(s.charCode)),this._dataQueue.addToQueue(t,this._utils.convertToArrayByMap(mo,{eventType:r,eventSequence:o,timestamp:i,charCode:s.charCode,character:c,elementHash:l,keyComboType:f,isTrusted:p,isCtrl:e.ctrlKey||!1,isShift:e.shiftKey||!1,isAlt:e.altKey||!1,isMetaKey:d||!1,keyLocation:e.location||0,code:s.code||"",key:s.key||"",location:e.location||"",isRepeat:e.repeat||!1,keyRegion:y,relativeTime:h,isSameKey:m}))}},{key:"_getKeyRegion",value:function(e){return ao[e]?ao[e]:"-1"}},{key:"_getComboType",value:function(e,t){return(e.ctrlKey||e.metaKey)&&void 0!==t?this.comboCodes.indexOf(t):-1}}],[{key:"getDefaultSettings",value:function(){return yo}}])}(Br);function bo(e){return bo="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},bo(e)}function go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_o(r.key),r)}}function _o(e){var t=function(e){if("object"!=bo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bo(t)?t:t+""}var wo=function(e,t){return t&&go(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._historyBuffer=[],this._isTouchInProgress=!1,this._touchStartCount=0,this._isPostTouch=!1,this._touchEndTime=0,this._sensorGateKeeper=i,this._dataQueue=n,this._configurationRepository=t,this._msgBus=r,this._utils=o,this._msgBus.subscribe(In,this._onTouch.bind(this)),this._msgBus.subscribe(Ln,this._onTouch.bind(this)),this._isMotionAroundTouchEnabled=this._configurationRepository.get(P.isMotionAroundTouchEnabled),this._aroundTouchInterval=this._configurationRepository.get(P.motionPaddingAroun
2dTouchMSec)}),[{key:"addToQueue",value:function(e,t,n,r){var o=this._utils.dateNow();if(this._isPostTouch&&o-this._touchEndTime>this._aroundTouchInterval&&(pe.debug("SensorsDataQueue: stopped post touch events, time has passed (".concat(this._aroundTouchInterval," millisec)")),this._isPostTouch=!1),!this._isMotionAroundTouchEnabled||this._isTouchInProgress||this._isPostTouch||this._sensorGateKeeper.isOpen())this._dataQueue.addToQueue(e,t,n,r);else{this._historyBuffer.push({name:e,data:t,addCtxId:n,isImmediateWup:r,timestamp:o});for(var i=0,a=this._historyBuffer.length;i<a&&o-this._historyBuffer[0].timestamp>this._aroundTouchInterval;i++)this._historyBuffer.shift()}}},{key:"onConfigUpdate",value:function(){this._aroundTouchInterval=void 0!==this._configurationRepository.get(P.motionPaddingAroundTouchMSec)?this._configurationRepository.get(P.motionPaddingAroundTouchMSec):this._aroundTouchInterval,this._isMotionAroundTouchEnabled=void 0!==this._configurationRepository.get(P.isMotionAroundTouchEnabled)?this._configurationRepository.get(P.isMotionAroundTouchEnabled):this._isMotionAroundTouchEnabled}},{key:"_sendBuffer",value:function(){var e=this._utils.dateNow();pe.debug("sending history sensors buffer ts=".concat(e));for(var t=0,n=this._historyBuffer.length;t<n;t++)e-this._historyBuffer[t].timestamp<=this._aroundTouchInterval&&this._dataQueue.addToQueue(this._historyBuffer[t].name,this._historyBuffer[t].data,this._historyBuffer[t].addCtxId,this._historyBuffer[t].isImmediateWup);this._historyBuffer=[]}},{key:"_onTouch",value:function(e){return this._isMotionAroundTouchEnabled&&(this._isTouchInProgress||e.action!==Zr.touchstart&&e.action!==ho.keydown?e.action===Zr.touchend||e.action===ho.keyup?(this._touchStartCount--,this._touchStartCount<=0&&(this._isTouchInProgress=!1,this._isPostTouch=!0,this._touchEndTime=this._utils.dateNow(),pe.debug("stopped touch event in sensors data q ts=".concat(this._utils.dateNow())))):e.action!==Zr.touchstart&&e.action!==ho.keydown||this._touchStartCount++:(pe.debug("Started touch event in sensors data q ts=".concat(this._utils.dateNow())),this._isTouchInProgress=!0,this._touchStartCount=1,this._sendBuffer())),!1}}]);function So(e){return So="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},So(e)}function ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eo(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)?Eo(e,t):void 0}}(e,t)||function(){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 Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Po(r.key),r)}}function Po(e){var t=function(e){if("object"!=So(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=So(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==So(t)?t:t+""}var To=function(e,t){return t&&Oo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._weights={input:5,fieldset:4,form:3,textarea:3,label:2},this._interactiveElementsTag=["input","fieldset","textarea","label"],this._classlist=["container","wrapper","section","content","main-content","main_content"],this._containerTagName=["main","article","aside","div"]}),[{key:"isElementVisible",value:function(e){if(!(e instanceof HTMLElement))return!1;if(e.hasAttribute("hidden"))return!1;var t=window.getComputedStyle(e);
2if("none"===t.display||"hidden"===t.visibility||0===parseFloat(t.opacity))return!1;var n=e.offsetWidth>0||e.offsetHeight>0,r=e.getClientRects().length>0;if(!n&&!r)return!1;for(var o=e.parentElement;o;){var i=window.getComputedStyle(o);if("none"===i.display||"hidden"===i.visibility||o.hasAttribute("hidden"))return!1;o=o.parentElement}return!0}},{key:"isInExcludedArea",value:function(e){for(var t=e;t;){if(t.tagName){var n=t.tagName.toLowerCase();if("footer"===n||"header"===n||"nav"===n)return!0}t=t.parentElement}return!1}},{key:"isContainer",value:function(e){var t=this,n=e.tagName.toLowerCase(),r=e.className.split(" "),o=e.getAttribute("aria-label")?"_".concat(e.getAttribute("aria-label")):"",i=Array.from(e.attributes).filter((function(e){return e.name.startsWith("data-")})).map((function(e){return"_".concat(e.name)}));return!!this._containerTagName.includes(n)||r.some((function(e){return t._classlist.includes(e)}))||e.hasAttribute("role")&&"region"===e.getAttribute("role")||o.length>0||i.length>0}},{key:"isCustomElement",value:function(e){return"string"==typeof e.localName&&e.localName.indexOf("-")>0}},{key:"calculateScore",value:function(e){var t=this._weights,n=0;return e.id&&e.id.includes("username")?n=20:e.name&&e.name.includes("username")&&(n=10),t[e.tagName.toLowerCase()]+n+("text"===e.type?10:0)}},{key:"findInteractiveArea",value:function(e){var t=this,n=e.querySelectorAll(this._interactiveElementsTag),r={};return n.forEach((function(e){var n,o;if(t.isElementVisible(e)&&!t.isInExcludedArea(e)){var i=e.parentElement,a="".concat(i.tagName,".").concat((null===(n=i.className)||void 0===n?void 0:n.split(" ")[0])||"");r[a]||(r[a]={score:0,parent:i,types:new Set}),r[a].types.add(e.tagName.toLowerCase()),r[a].score+=t.calculateScore(e),r[a].score+=null!==(o=e.id)&&void 0!==o&&o.includes("maincontent")?20:0,r[a].score-=e.disabled?20:0}})),Object.values(r).reduce((function(e,t){return t.score+2*t.types.size>e.score?t:e}),{score:0}).parent}},{key:"findPotentialContainer",value:function(e){for(var t=e,n=null;t&&"body"!==t.tagName.toLowerCase();){if(this.isContainer(t)){var r;n=t;var o=null===(r=t)||void 0===r||null===(r=r.tagName)||void 0===r?void 0:r.toLowerCase(),i=t.className.split(" ");if("div"===o&&(i.includes("containerWrapper")||i.includes("container")))return t;if(this._containerTagName.includes(o)&&"div"!==o)return t}t=t.parentElement}return n}},{key:"interactiveContainer",value:function(){var e=this.findInteractiveArea(document);return e?this.findPotentialContainer(e)||void 0:pe.info("No significant interactive area.")}},{key:"getUniqueElementId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;if(!e||!t)return"";var r=t.componentsFormat,o=t.hierarchyFormat;if(!t.isTagEnabled(e.tagName))return"-1";for(var i=this.findInteractiveArea(document),a=i?this.findPotentialContainer(i):null,u=a?"".concat(a.tagName.toLowerCase(),"_").concat(a.className||""):"",s=this._buildFullHierarchyPath(e,o,n),c={"{tagName}":e.tagName.toLowerCase(),"{index}":"[".concat(this._getSiblingIndex(e),"]"),"{id}":e.id||"","{className}":e.className||"","{ariaLabel}":e.getAttribute("aria-label")||"","{hierarchyPath}":s,"{containerInfo}":u},l=r,f=0,p=Object.entries(c);f<p.length;f++){var d=ko(p[f],2),y=d[0],h=d[1];l=l.replace(y,h)}return l.replace(/\{[^}]+\}/g,"").replace(/[_:]+/g,"_").replace(/(^_|_$)/g,"")}},{key:"_getSiblingIndex",value:function(e){var t;return String(Array.from((null===(t=e.parentNode)||void 0===t?void 0:t.children)||[]).indexOf(e))}},{key:"_buildFullHierarchyPath",value:function(e,t,n){for(var r=[],o=e.parentNode,i=0;o&&"body"!==(null===(a=o.tagName)||void 0===a?void 0:a.toLowerCase())&&i<n;){var a,u,s=null===(u=o.tagName)||void 0===u?void 0:u.toLowerCase(),c=this._getSiblingIndex(o),l=t.replace("{tagName}",s||"").replace("{index}",c>=0?"[".concat(c,"]"):""),f=[];o.id&&f.push(o.id),o.name&&f.push(o.name),o.className&&f.push(o.className),f.length>0&&(l+="".concat(f.join(""))),r.unshift(l),o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentElement,i++}return r.join("")}},{key:"getUniqueElementXpath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(!e)return"";for(var n=[],r=0;e&&r<t;){var o=e.tagName?e.tagName.toLowerCase():e.nodeName.toLowerCase();if(e.id)n.unshift("".concat(o,"#").concat(e.id));else{for(var i=1,a=e;a.previousElementSibling;)a=a.previousElementSibling,i++;n.unshift("".concat(o,":").concat(i))}e=e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentElement,r++}return n.join("/")}}]),Co=Object.freeze(new To);function jo(e){return jo="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},jo(e)}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xo(r.key),r)}}function xo(e){var t=function(e){if("object"!=jo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jo(t)?t:t+""}var Ro=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.componentsFormat=t,this.hierarchyFormat=n,this.enabledTags=r}return function(e,t,n){return t&&Mo(e.prototype,t),n&&Mo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"isTagEnabled",value:function(e){return"string"==typeof e&&this.enabledTags.length>0&&this.enabledTags.includes(e.toLowerCase())}}],[{key:"cleanFormat",value:function(e){return e?(e.match(/{[^}]+}|[:_]/g)||[]).join(""):""}},{key:"parse",value:function(t){try{if("string"==typeof t&&(t=JSON.parse(t)),"object"!==jo(t)||null===t)throw new Error("Invalid configuration format");return new e(e.cleanFormat(t.componentsFormat),e.cleanFormat(t.hierarchyFormat),t.enabledTags)}catch(e){return pe.error("Failed to parse UniqueIDConfiguration:",e),null}}}])}();function Ao(e){return Ao="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},Ao(e)}function Bo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Do(r.key),r)}}function Do(e){var t=function(e){if("object"!=Ao(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ao(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ao(t)?t:t+""}function Io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Io=function(){return!!e})()}
2function Lo(e){return Lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lo(e)}function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fo(e,t)}var No=function(e){function t(e,n,r,o,i,a,u,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(c=function(e,t,n){return t=Lo(t),function(e,t){if(t&&("object"==Ao(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Io()?Reflect.construct(t,n||[],Lo(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,c._utils=n,c._dataQueue=r,c._contextMgr=o,c._maskingService=i,c._categoryService=a,c._isCollectorsV2=u,c._elementHashWMap=new WeakMap,c._collectPosition=!0,c._collectClassName=!0,c._collectTitle=!0,c._collectHref=!0,c._collectCustomElementAttribute=!0,c._customElementAttribute=c._configurationRepository.get(P.customElementAttribute),c._maxElemValLength=30,c._allowedUnmaskedValuesList=c._configurationRepository.get(P.allowedUnmaskedValuesList),c._enableUnmaskedValues=c._configurationRepository.get(P.enableUnmaskedValues),c._enableElementHierarchy=c._configurationRepository.get(P.enableElementHierarchy),c._enableElementCategory=c._configurationRepository.get(P.enableElementCategory),c._uniqueIDConfiguration=Ro.parse(c._configurationRepository.get(P.elementUniqueIDConfiguration)),c._enableRandomElementHash=s,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}(t,e),function(e,t){return t&&Bo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getElement",value:function(e){if(this._utils.isUndefinedNull(e)||e===document||e===document.body)return-1;var t=-1;if(this._elementHashWMap.has(e))t=this._elementHashWMap.get(e).hash;else{if(this._enableRandomElementHash)t=this._utils.getRandomHash();else{var n=Co.getUniqueElementXpath(e);t=n?this._utils.getHash(n):-1}this._elementHashWMap.set(e,{hash:t,contextList:[this._contextMgr.getContextName()]}),this._sendElementToServer(e,t)}return t}},{key:"getElementHashFromEvent",value:function(e){var t=this.getRealEventTarget(e);return this.getElement(t)}},{key:"getRealEventTarget",value:function(e){var t=e.composedPath?e.composedPath():null;return t&&t.length>0?t[0]:e.target}},{key:"resendElementPerContext",value:function(e){if(this._elementHashWMap.has(e)){var t=this._elementHashWMap.get(e),n=t.hash;t.contextList.indexOf(this._contextMgr.getContextName())<0&&(t.contextList.push(this._contextMgr.getContextName()),this._elementHashWMap.set(e,{hash:t.hash,contextList:t.contextList}),this._sendElementToServer(e,n))}else pe.error("received for resendElementPerContext bad element, not in hash map. id=".concat(e.id))}},{key:"isListed",value:function(e){return this._elementHashWMap.has(e)}},{key:"getElementData",value:function(e){return this._elementHashWMap.get(e)}},{key:"getElementContextList",value:function(e){return this._elementHashWMap.get(e).contextList}},{key:"_sendElementToServer",value:function(e,t){var n=this._collectPosition?e.getBoundingClientRect&&e.getBoundingClientRect():null,r=-1,o=-1,i=-1,a=-1;n&&(r=Math.round(n.left),o=Math.round(n.top),i=Math.round(n.right-n.left),a=Math.round(n.bottom-n.top));var u=this._maskingService.maskAbsoluteIfRequired(e.id,e.id),s=this._maskingService.maskAbsoluteIfRequired(e.name,e.id),c=this._collectClassName&&e.getAttribute&&this._verifyNoPrivateData(e.getAttribute("class"))||"",l=this._collectTitle&&this._verifyNoPrivateData(e.title)||"",f=this._verifyNoPrivateData(e.nodeName)||"",p=this._collectHref&&this._verifyNoPrivateData(e.href)||"";p.length>0&&(p=this._utils.clearTextFromNumbers(p));var d=this._collectCustomElementAttribute?this._getCustomElementAttributeValue(e):"",y=this._maskingService.maskAbsoluteIfRequired(d,e.id),h="";"SELECT"===e.nodeName&&(h=this._utils.getDropDownListValues(e,this._maskingService).join(";"));var m=e.value||e.textContent||e.innerHTML||"",v="";this._enableUnmaskedValues&&Array.isArray(this._allowedUnmaskedValuesList)&&this._allowedUnmaskedValuesList.length>0&&this._allowedUnmaskedValuesList.forEach((function(e){"string"!=typeof e?pe.error("Unsupported allowedUnmaksedValuesList value was provided: ".concat(e.toString())):e.toLowerCase()===m.trim().toLowerCase()&&(v=e)})),m=m.length>this._maxElemValLength?"":this._maskingService.maskText(m,e.id);var b=this._utils.isUndefinedNull(e.checked)?-1:e.checked?1:0,g=this.getEventTimestamp(),_=this._enableElementHierarchy?Co.getUniqueElementId(e,this._uniqueIDConfiguration):"",w=this._enableElementCategory?this._categoryService.categoryField(e):"",S=[this._contextMgr.contextHash,t,f||"",u||"",s||"",e.type||"",r||0,o||0,i||0,a||0,c||"",p||"",l||"",e.alt||"",h||"",m||"",b,g,y||d,v,_,w];this._isCollectorsV2?this._dataQueue.addToQueue("",["elements_v2",S,!1]):this._dataQueue.addToQueue("elements",S,!1),pe.isDebug()&&pe.debug("adding element id:"+u+", name:"+s+", type:"+e.type+", width:"+i+", height:"+a+", left:"+r+", top:"+o+", hash: "+t)}},{key:"_verifyNoPrivateData",value:function(e){return/\d\d\d/.test(e)?this._utils.clearTextFromNumbers(e):e}},{key:"_getCustomElementAttributeValue",value:function(e){if(!e||!e.getAttribute)return"";var t,n=this._customElementAttribute;if(!n)return"";if(Array.isArray(n))t=n;else{if("string"!=typeof n)return"";t=[n]}for(var r=0;r<t.length;r++){var o=t[r];if("string"==typeof o&&0!==o.length){var i=e.getAttribute(o);if(null!=i&&""!==i)return this._verifyNoPrivateData(i)||""}}return""}},{key:"updateFeatureConfig",value:function(){var e;this._collectPosition="boolean"==typeof this._configurationRepository.get("isElementsPosition")?this._configurationRepository.get("isElementsPosition"):this._collectPosition,this._collectClassName="boolean"==typeof this._configurationRepository.get("isElementsClassName")?this._configurationRepository.get("isElementsClassName"):this._collectClassName,this._collectTitle="boolean"==typeof this._configurationRepository.get("isElementsTitle")?this._configurationRepository.get("isElementsTitle"):this._collectTitle,this._collectHref="boolean"==typeof this._configurationRepository.get("isElementsHref")?this._configurationRepository.get("isElementsHref"):this._collectHref,this._collectCustomElementAttribute="boolean"==typeof this._configurationRepository.get(P.collectCustomElementAttribute)?this._configurationRepository.get(P.collectCustomElementAttribute):this._collectCustomElementAttribute;var t=this._configurationRepository.get(P.customElementAttribute);this._customElementAttribute=t||this._customElementAttribute,this._maxElemValLength=this._configurationRepository.get("maxElValLen")?this._configurationRepository.get("maxElValLen"):this._maxElemValLength,this._allowedUnmaskedValuesList=this._configurationRepository.get("allowedUnmaskedValuesList")?this._configurationRepository.get("allowedUnmaskedValuesList"):this._allowedUnmaskedValuesList,this._enableUnmaskedValues=this._configurationRepository.get("enableUnmaskedValues")?this._configurationRepository.get("enableUnmaskedValues"):this._enableUnmaskedValues,this._enableElementHierarchy="boolean"==typeof this._configurationRepository.get(P.enableElementHierarchy)?this._configurationRepository.get(P.enableElementHierarchy):this._enableElementHierarchy,this._enableElementCategory="boolean"==typeof this._configurationRepository.get(P.enableElementCategory)?this._configurationRepository.get(P.enableElementCategory):this._enableElementCategory,this._uniqueIDConfiguration="string"==typeof this._configurationRepository.get(P.elementUniqueIDConfiguration)?Ro.parse(this._configurationRepository.get(P.elementUniqueIDConfiguration)):this._uniqueIDConfiguration,null===(e=this._categoryService)||void 0===e||e.onConfigUpdate(this._configurationRepository)}}])}(Br),Uo="cd__fontDetectionFrame",Go="cd__frame__";function Wo(e){return Wo="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},Wo(e)}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ho(r.key),r)}}function Ho(e){var t=function(e){if("object"!=Wo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wo(t)?t:t+""}var Vo=function(e,t){return t&&Qo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._elementsMutationObserverFactory=t,this._configurationRepository=r,this._domUtils=n,this._windowMutationObservers=yt(),this._loadedFrames=yt(),this._framesToIgnore=gt(),this._frameSelector="frame, iframe",this._frameLoadedCallback=this._onFrameLoad.bind(this),this.frameAdded=new Qt,this.frameRemoved=new Qt,this.frameInaccessible=new Qt}),[{key:"frames",get:function(){var e=[];
2return this._loadedFrames.forEach((function(t,n){e.push(n)})),e}},{key:"start",value:function(e){var t=this;this._monitorWindow(e),this._findFrames(e.document).forEach((function(e){t._processNewFrame(e)}))}},{key:"stop",value:function(){this._windowMutationObservers.forEach((function(e){e.disconnect()})),this._windowMutationObservers.clear(),this._loadedFrames.clear(),this._framesToIgnore.clear()}},{key:"addToIgnoreList",value:function(e){this._framesToIgnore.add(e)}},{key:"_monitorWindow",value:function(e){if(!this._windowMutationObservers.has(e)){var t=this._elementsMutationObserverFactory.create(e,self.MutationObserver,this._configurationRepository);t.observe(e.document),t.nodeAdded.subscribe(this._processAddedNode.bind(this)),t.nodeRemoved.subscribe(this._processRemovedNode.bind(this)),this._windowMutationObservers.set(e,t)}}},{key:"_unMonitorWindow",value:function(e){var t=this._windowMutationObservers.get(e);t&&t.disconnect(),this._windowMutationObservers.delete(e)}},{key:"_processAddedNode",value:function(e){var t=this;if(this._domUtils.matches(e,this._frameSelector))this._processNewFrame(e);else{if(!e.hasChildNodes())return;this._findFrames(e).forEach((function(e){t._processNewFrame(e)}))}}},{key:"_processNewFrame",value:function(e){this._framesToIgnore.has(e.id)||e.id.startsWith(Go)||this._loadedFrames.has(e)||(this._domUtils.addEventListener(e,"load",this._frameLoadedCallback),this._domUtils.canAccessIFrame(e)?this._domUtils.isWindowDocumentReady(e.contentWindow)&&this._addFrame(e):this.frameInaccessible.publish(e))}},{key:"_addFrame",value:function(e){var t=this;this._monitorWindow(e.contentWindow),this._findFrames(e.contentWindow.document).forEach((function(e){t._processNewFrame(e)})),this._loadedFrames.set(e,e.contentDocument),this.frameAdded.publish(e)}},{key:"_processRemovedNode",value:function(e){var t=this;if(this._domUtils.matches(e,this._frameSelector))this._removeFrame(e);else{if(!e.hasChildNodes())return;this._findFrames(e).forEach((function(e){t._removeFrame(e)}))}}},{key:"_removeFrame",value:function(e){this._domUtils.canAccessIFrame(e)&&this._unMonitorWindow(e.contentWindow),this._domUtils.removeEventListener(e,"load",this._frameLoadedCallback),this._loadedFrames.delete(e)&&this.frameRemoved.publish(e)}},{key:"_onFrameLoad",value:function(e){var t=e.target;this._loadedFrames.has(t)&&this._removeFrame(t),this._processNewFrame(t)}},{key:"_findFrames",value:function(e){for(var t=[],n=[],r=e.querySelectorAll(this._frameSelector),o=0;o<r.length;o++)n.push(r[o]);for(var i=0;i<n.length;i++){var a,u=n[i];t.push(u),this._domUtils.canAccessIFrame(u)?(a=this._findFrames(u.contentWindow.document)).length>0&&(t=t.concat(a)):this.frameInaccessible.publish(u)}return t}}]);function zo(e){return zo="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},zo(e)}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qo(r.key),r)}}function qo(e){var t=function(e){if("object"!=zo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zo(t)?t:t+""}var Jo=function(e,t){return t&&Ko(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"startFeatures",value:function(){}},{key:"startFeature",value:function(){}},{key:"stopFeatures",value:function(){}},{key:"stopFeature",value:function(){}},{key:"updateFeatureConfig",value:function(){}}]);function Yo(e){return Yo="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},Yo(e)}function Xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zo(r.key),r)}}function Zo(e){var t=function(e){if("object"!=Yo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yo(t)?t:t+""}var $o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){return n&&Xo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"addEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isPassiveSupported?e.addEventListener(t,n,{capture:r,passive:o,once:i}):e.addEventListener?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}},{key:"removeEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}},{key:"outerHTML",value:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)}},{key:"onDocumentBody",value:function(e,t){e.document.body?t():window.addEventListener?window.addEventListener("DOMContentLoaded",t,!0):window.attachEvent("onload",t)}},{key:"onPageLoad",value:function(t,n){e.addEventListener(t,"load",n,!0),(t.contentWindow&&"complete"===t.contentWindow.document.readyState||t.document&&"complete"===t.document.readyState)&&n()}},{key:"awaitWindowDocumentReady",value:function(e){var t=this;return new Promise((function(n,r){try{t.onWindowDocumentReady(e,(function(){n()}))}catch(e){r(e)}}))}},{key:"onWindowDocumentReady",value:function(t,n){var r=window.addEventListener?"DOMContentLoaded":"load";if("complete"===t.document.readyState||"interactive"===t.document.readyState)n();else{var o=function o(){e.removeEventListener(t,r,o,!0),n()};e.addEventListener(t,r,o,!0)}}},{key:"isWindowDocumentReady",value:function(e){return e&&"complete"===e.document.readyState}},{key:"canAccessIFrame",value:function(e){if(!e.contentWindow)return!1;var t,n=window.location.origin;try{t=e.contentWindow.location.origin}catch(e){return!1}if(t===n||"null"===t)try{return!(!e.contentDocument||!e.contentDocument.body)}catch(e){return!1}return!1}},{key:"matches",value:function(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=this.document||this.ownerDocument;if(!t)return!1;for(var n=t.querySelectorAll(e),r=n.length;--r>=0&&(n.item?n.item(r):n[r])!==this;);return r>-1}).call(e,t)}},{key:"isWebWorkerFetchSupported",value:function(){var e="Request"in self,t="fetch"in self;if(!e)return!1;var n="keepalive"in Request.prototype;return t&&n}},{key:"isSubtleCryptoSupported",value:function(){return"object"===Yo(self.crypto)&&"object"===Yo(self.crypto.subtle)&&"function"==typeof self.crypto.subtle.digest}}])}();function ei(e){return ei="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},ei(e)}function ti(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ni(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)?ni(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ri(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return oi(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(oi(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,oi(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,oi(f,"constructor",c),oi(c,"constructor",s),s.displayName="GeneratorFunction",oi(c,o,"GeneratorFunction"),oi(f),oi(f,o,"Generator"),oi(f,r,(function(){return this})),oi(f,"toString",(function(){return"[object Generator]"})),(ri=function(){return{w:i,m:p}})()}function oi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}oi=function(e,t,n,r){function i(t,n){oi(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},oi(e,t,n,r)}function ii(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function ai(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ii(i,r,o,a,u,"next",e)}function u(e){ii(i,r,o,a,u,"throw",e)}a(void 0)}))}}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,si(r.key),r)}}function si(e){var t=function(e){if("object"!=ei(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ei(t)?t:t+""}!function(e,t,n){(t=Zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}($o,"isPassiveSupported",function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}());var ci=function(){return function(e,t){return t&&ui(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxShadowDepth=n,this.iframeLoadTimeout=r,this.domUtils=t,this.visitedIframes=new WeakSet,this.pendingIframes=[]}),[{key:"walkRoots",value:(r=ai(ri().m((function e(t,n){return ri().w((function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return pe.error("no root element found while try to traverse"),e.a(2);case 1:return this.callback=n,e.n=2,this._walkRootRecursive(t,0);case 2:return e.n=3,Promise.allSettled(this.pendingIframes);case 3:return e.a(2)}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"_walkRootRecursive",value:(n=ai(ri().m((function e(t,n){var r,o,i,a=this;return ri().w((function(e){for(;;)switch(e.n){case 0:if(this.callback(t),!(n>=this.maxShadowDepth)){e.n=1;break}return e.a(2);case 1:for(r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);r.nextNode();)(o=r.currentNode).shadowRoot&&this._walkRootRecursive(o.shadowRoot,n+1),"IFRAME"===o.tagName&&this.domUtils.canAccessIFrame(o)&&!this.visitedIframes.has(o)&&(this.visitedIframes.add(o),i=this._setOnLoad(o,(function(e){e&&a._walkRootRecursive(e,n+1)})),this.pendingIframes.push(i));case 2:return e.a(2)}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"walkElements",value:(t=ai(ri().m((function e(t,n,r){return ri().w((function(e){for(;;)switch(e.n){case 0:if(t&&"function"==typeof t.querySelectorAll){e.n=1;break}return pe.error("no root element found while try to traverse"),e.a(2);case 1:return this.elementSelectors=n,this.callback=r,e.n=2,this._walkElementsRecursive(t,0);case 2:return e.n=3,Promise.allSettled(this.pendingIframes);case 3:return e.a(2)}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"_walkElementsRecursive",value:(e=ai(ri().m((function e(t,n){var r,o,i,a,u,s,c,l,f,p=this;return ri().w((function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,r=t.querySelectorAll(this.elementSelectors),o=ti(r),e.p=1,o.s();case 2:if((i=o.n()).done){e.n=5;break}if("IFRAME"!==(a=i.value).tagName||this.domUtils.canAccessIFrame(a)){e.n=3;break}return e.a(3,4);case 3:this.callback(a);case 4:e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,l=e.v,o.e(l);case 7:return e.p=7,o.f(),e.f(7);case 8:e.n=10;break;case 9:e.p=9,f=e.v,pe.warn("Error selecting elements:",f.message);case 10:if(!(n>=this.maxShadowDepth)){e.n=11;break}return e.a(2);case 11:for(u=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);u.nextNode();)(s=u.currentNode).shadowRoot&&this._walkElementsRecursive(s.shadowRoot,n+1),"IFRAME"===s.tagName&&this.domUtils.canAccessIFrame(s)&&!this.visitedIframes.has(s)&&(this.visitedIframes.add(s),c=this._setOnLoad(s,(function(e){e&&p._walkElementsRecursive(e,n+1)})),this.pendingIframes.push(c));case 12:return e.a(2)}}),e,this,[[1,6,7,8],[0,9]])}))),function(t,n){return e.apply(this,arguments)})},{key:"_setOnLoad",value:function(e,t){return Promise.race([this._onIframeReady(e),this._onTimeOut(e.src,this.iframeLoadTimeout)]).then(t).cat
2ch((function(e){pe.error(e.message)}))}},{key:"_onTimeOut",value:function(e,t){return new Promise((function(n,r){return setTimeout((function(){return r(new Error("Iframe load timeout: ".concat(e)))}),t)}))}},{key:"_onIframeReady",value:function(e){return new Promise((function(t,n){try{var r=function(){e.removeEventListener("load",i),e.removeEventListener("error",a)},o=e.contentDocument;if(o&&("complete"===o.readyState||"interactive"===o.readyState))return t(o);var i=function(){r(),t(e.contentDocument)},a=function(){r(),n(new Error("Iframe failed to load"))};e.addEventListener("load",i,{once:!0}),e.addEventListener("error",a,{once:!0})}catch(e){n(e)}}))}}]);var e,t,n,r}();function li(e){return li="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},li(e)}function fi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return pi(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(pi(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,pi(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,pi(f,"constructor",c),pi(c,"constructor",s),s.displayName="GeneratorFunction",pi(c,o,"GeneratorFunction"),pi(f),pi(f,o,"Generator"),pi(f,r,(function(){return this})),pi(f,"toString",(function(){return"[object Generator]"})),(fi=function(){return{w:i,m:p}})()}function pi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}pi=function(e,t,n,r){function i(t,n){pi(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},pi(e,t,n,r)}function di(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function yi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){di(i,r,o,a,u,"next",e)}function u(e){di(i,r,o,a,u,"throw",e)}a(void 0)}))}}function hi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mi(r.key),r)}}function mi(e){var t=function(e){if("object"!=li(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=li(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==li(t)?t:t+""}var vi=function(){return function(e,t){return t&&hi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t||window.self,this.domUtils=n||$o}),[{key:"Context",get:function(){return this.context}},{key:"getDocument",value:function(){return this.context.document}},{key:"traverseElements",value:(t=yi(fi().m((function e(t,n,r,o){var i,a,u,s;return fi().w((function(e){for(;;)switch(e.p=e.n){case 0:return i=new ci(this.domUtils,n,r),e.p=1,u=(null===(a=this.getDocument)||void 0===a?void 0:a.call(this))||document,e.n=2,i.walkElements(u,t,o);case 2:e.n=4;break;case 3:e.p=3,s=e.v,pe.error("failed to traverse DOM, error: ",s);case 4:return e.a(2)}}),e,this,[[1,3]])}
2))),function(e,n,r,o){return t.apply(this,arguments)})},{key:"traverseRoots",value:(e=yi(fi().m((function e(t,n,r){var o,i,a,u;return fi().w((function(e){for(;;)switch(e.p=e.n){case 0:return o=new ci(this.domUtils,t,n),e.p=1,a=(null===(i=this.getDocument)||void 0===i?void 0:i.call(this))||document,e.n=2,o.walkRoots(a,r);case 2:e.n=4;break;case 3:e.p=3,u=e.v,pe.error("failed to traverse DOM, error: ",u);case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(t,n,r){return e.apply(this,arguments)})}]);var e,t}();function bi(e){return bi="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},bi(e)}function gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_i(r.key),r)}}function _i(e){var t=function(e){if("object"!=bi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bi(t)?t:t+""}function wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wi=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function ki(e,t){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ki(e,t)}var Ei=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Si(t),function(e,t){if(t&&("object"==bi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wi()?Reflect.construct(t,n||[],Si(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(e,t)}(t,e),function(e,t){return t&&gi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getDocument",value:function(){return this.context.document||this.context.contentDocument}}])}(vi);function Oi(e){return Oi="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},Oi(e)}function Pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ti(r.key),r)}}function Ti(e){var t=function(e){if("object"!=Oi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oi(t)?t:t+""}function Ci(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ci=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ji(e)}function Mi(e,t){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mi(e,t)}var xi=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,n){return t=ji(t),function(e,t){if(t&&("object"==Oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ci()?Reflect.construct(t,n||[],ji(e).constructor):t.apply(e,n))}(this,t))._framesCache=e,a._framesDetector=n,a._framesDetector.frameAdded.subscribe(a._onFrameAdded.bind(a)),a._framesDetector.frameRemoved.subscribe(a._onFrameRemoved.bind(a)),a._framesDetector.frameInaccessible.subscribe(a._onFrameInaccessible.bind(a)),a._featuresList=[],a._domUtils=r,a._utils=o,a._framesDetector.addToIgnoreList("cd__rtcframe"),a._framesDetector.addToIgnoreList(Uo),a.callMethod=i?a._utils.asyncCall:a._utils.asyncTimeoutCall,a._framesDetector.start(window.self),a._buildFramesCache(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mi(e,t)}(t,e),function(e,t){return t&&Pi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeatures",value:function(e){try{if(this._buildFeaturesMap(e),0===this._featuresList.length)return;pe.debug("startFeatures:Running features on ".concat(this._framesCache.count," frames")),this._startFeaturesOnFrames(this._framesCache.contexts,e)}catch(e){pe.debug("Failed to start features in FrameHandler.startFeatures: ".concat(e.message),e)}}},{key:"startFeature",value:function(e){try{this._featuresList.push(e),e.isRunning=!0,this._startFeaturesOnFrames(this._framesCache.contexts,[e])}catch(e){pe.debug("Failed to start feature in FrameHandler.startFeature: ".concat(e.message),e)}}},{key:"stopFeatures",value:function(e){try{this._stopFeaturesOnFrames(e,this._framesCache.contexts)}catch(e){pe.debug("Failed to stop features in FrameHandler.stopFeatures: ".concat(e.message),e)}}},{key:"stopFeature",value:function(e){try{e.isRunning=!1,this._stopFeaturesOnFrames([e],this._framesCache.contexts)}catch(e){pe.debug("Failed to stop feature in FrameHandler.stopFeature: ".concat(e.message),e)}}},{key:"updateFeatureConfig",value:function(e){e.instance.updateFeatureConfig&&this._updateFeaturesConfigOnFrames([e],this._framesCache.contexts)}},{key:"_onFrameAdded",value:function(e){try{pe.debug("Frame:".concat(e.name,", id:").concat(e.id,". was loaded.")),this._framesCache.exists(e)?this._framesCache.unRegisterContextFeatures(e,this._featuresList):this._framesCache.add(e),this._startFeaturesOnFrames([e],this._featuresList)}catch(t){pe.warn("Failed to start features on frame ".concat(e.id,": ").concat(t.message),t)}}},{key:"_onFrameRemoved",value:function(e){try{pe.debug("Frame:".concat(e.name,", id:").concat(e.id,". was removed.")),this._stopFeaturesOnFrames(this._featuresList,[e])}catch(t){pe.warn("Failed to stop features on frame ".concat(e.id,": ").concat(t.message),t)}}},{key:"_onFrameInaccessible",value:function(e){pe.debug("Frame:".concat(e.name,", id:").concat(e.id,". was detected as inaccessible."))}},{key:"_buildFeaturesMap",value:function(e){var t=this;this._featuresList=[],e.forEach((function(e){t._featuresList.push(e)}))}},{key:"_buildFramesCache",value:function(){var e=this;
2this._framesDetector.frames.forEach((function(t){e._framesCache.exists(t)||e._framesCache.add(t)}))}},{key:"_startFeaturesOnFrames",value:function(e,t){var n=this;e.forEach((function(e){try{if(!n._domUtils.canAccessIFrame(e))return;for(var r=0;r<t.length;r++){var o=t[r];o.shouldRun&&!n._framesCache.hasFeature(e,o)&&(n._framesCache.registerContextFeature(e,o),n._domUtils.isWindowDocumentReady(e.contentWindow)&&(pe.debug("_startFeaturesOnFrames: run feature on frame:".concat(e.name,", id:").concat(e.id,". feature:").concat(o.configKey)),n.callMethod.call(n._runFeatureOnFrame,n,e,o),o.isRunning=!0))}}catch(t){pe.error("An error has occurred while starting features on frame ".concat(e.name," with id: ").concat(e.id,". Error: ").concat(t.message),t)}}))}},{key:"_runFeatureOnFrame",value:function(e,t){try{this._domUtils.canAccessIFrame(e)?t.instance.startFeature(new Ei(e.contentWindow)):pe.debug("Not starting features on frame ".concat(e.name," with id: ").concat(e.id," as it is not accessible"))}catch(i){pe.error("An error has occurred while starting feature ".concat(t.configKey," on frame ").concat(e.name," with id: ").concat(e.id,". Error: ").concat(i.message),i)}}},{key:"_stopFeaturesOnFrames",value:function(e,t){var n=this;try{t.forEach((function(t){try{if(!n._domUtils.canAccessIFrame(t))return;if(t.contentWindow&&t.contentWindow.document)for(var r=0,o=e.length;r<o;r++)n._framesCache.hasFeature(t,e[r])&&n.callMethod.call(n._stopFeatureOnFrame,n,t,e[r]),e[r].isRunning=!1}catch(e){pe.error("An error has occurred while stopping features on frame ".concat(t.name," with id: ").concat(t.id,". Error: ").concat(e.message),e)}n._framesCache.exists(t)&&n._framesCache.unRegisterContextFeatures(t,e),n._framesCache.remove(t)}))}catch(e){pe.warn("Failed stopping features on frames ".concat(e.message),e)}}},{key:"_stopFeatureOnFrame",value:function(e,t){try{this._domUtils.canAccessIFrame(e)?t.instance.stopFeature(new Ei(e.contentWindow)):pe.debug("Not stopping feature ".concat(t.configKey," on frame ").concat(e.name," with id: ").concat(e.id," as it is not accessible"))}catch(i){pe.error("An error has occurred while stopping feature ".concat(t.configKey," ").concat(func," on frame ").concat(e.name," with id: ").concat(e.id,". Error: ").concat(i.message),i)}}},{key:"_updateFeaturesConfigOnFrames",value:function(e,t){var n=this;t.forEach((function(t){try{if(!n._domUtils.canAccessIFrame(t))return;for(var r=0,o=e.length;r<o;r++)n._framesCache.hasFeature(t,e[r])&&n.callMethod.call(n._updateFeatureConfigOnFrame,n,t,e[r])}catch(e){pe.error("An error has occurred while updating features configuration on frame ".concat(t.name," with id: ").concat(t.id,". Error: ").concat(e.message),e)}}))}},{key:"_updateFeatureConfigOnFrame",value:function(e,t){try{this._domUtils.canAccessIFrame(e)?t.instance.updateFeatureConfig(new Ei(e.contentWindow)):pe.debug("Not updating feature ".concat(t.configKey," config on frame ").concat(e.name," with id: ").concat(e.id," as it is not accessible"))}catch(i){pe.error("An error has occurred while updating feature ".concat(t.configKey," config on frame ").concat(e.name," with id: ").concat(e.id,". Error: ").concat(i.message),i)}}}])}(Jo);function Ri(e){return Ri="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},Ri(e)}function Ai(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ai=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(e)}function Di(e,t){return Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Di(e,t)}var Ii=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Bi(t),function(e,t){if(t&&("object"==Ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ai()?Reflect.construct(t,n||[],Bi(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Di(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(Jo);function Li(e){return Li="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},Li(e)}function Fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ni(r.key),r)}}function Ni(e){var t=function(e){if("object"!=Li(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Li(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Li(t)?t:t+""}var Ui=function(e,t){return t&&Fi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._contexts=yt()}
2),[{key:"contexts",get:function(){var e=[];return this._contexts.forEach((function(t,n){e.push(n)})),e}},{key:"browserContexts",get:function(){var e=[];return this._contexts.forEach((function(t){e.push(t.browserContext)})),e}},{key:"count",get:function(){return this._contexts.size}},{key:"add",value:function(e){this._contexts.set(e,{registered:!0,features:yt()})}},{key:"addBrowserContext",value:function(e){this._contexts.set(e.Context,{registered:!0,features:yt(),browserContext:e})}},{key:"remove",value:function(e){this.exists(e)&&0===this._contexts.get(e).features.size&&this._contexts.delete(e)}},{key:"get",value:function(e){return this._contexts.get(e)}},{key:"exists",value:function(e){return this._contexts.has(e)&&this._contexts.get(e).registered}},{key:"registerContextFeature",value:function(e,t){this.exists(e)&&this._contexts.get(e).features.set(t.configKey,!0)}},{key:"unRegisterContextFeature",value:function(e,t){this.exists(e,t)&&this._contexts.get(e).features.delete(t.configKey)}},{key:"unRegisterContextFeatures",value:function(e,t){for(var n=0;n<t.length;n++){var r=t[n];this.unRegisterContextFeature(e,r)}}},{key:"hasFeature",value:function(e,t){return this.exists(e)&&this._contexts.get(e).features.has(t.configKey)}}]);function Gi(e){return Gi="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},Gi(e)}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hi(r.key),r)}}function Qi(e,t,n){return t&&Wi(e.prototype,t),n&&Wi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hi(e){var t=function(e){if("object"!=Gi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gi(t)?t:t+""}var Vi=Qi((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.browserContext=t,this.removedNodes=n}));function zi(e){return zi="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},zi(e)}function Ki(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ji(r.key),r)}}function qi(e,t,n){return t&&Ki(e.prototype,t),n&&Ki(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ji(e){var t=function(e){if("object"!=zi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zi(t)?t:t+""}var Yi=qi((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.browserContext=t,this.addedNodes=n}));function Xi(e){return Xi="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},Xi(e)}function Zi(e){return function(e){if(Array.isArray(e))return $i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $i(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)?$i(e,t):void 0}}(e)||function(){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){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ta(r.key),r)}}function ta(e){var t=function(e){if("object"!=Xi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xi(t)?t:t+""}var na=function(e,t){return t&&ea(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"ignoreNodeTypes",gt([Node.COMMENT_NODE,Node.TEXT_NODE,Node.ATTRIBUTE_NODE,Node.CDATA_SECTION_NODE])),this._mutationObserver=new n(this._mutationObserved.bind(this,t)),this.nodesAdded=new Qt,this.nodesRemoved=new Qt,this.nodeAdded=new Qt,this.nodeRemoved=new Qt,this._configurationRepository=r,this.mutation
2Queue=[],this.processingQueue=!1}),[{key:"observe",value:function(e){this._mutationObserver.observe(e,{childList:!0,subtree:!0})}},{key:"disconnect",value:function(){this._mutationObserver.disconnect()}},{key:"_mutationObserved",value:function(e,t){var n,r,o,i=this,a=(null===(n=this._configurationRepository)||void 0===n?void 0:n.get(P.mutationMaxChunkSize))||0,u=(null===(r=this._configurationRepository)||void 0===r?void 0:r.get(P.mutationChunkDelayMs))||100,s=t.filter((function(e){return"childList"===e.type&&[].concat(Zi(e.addedNodes),Zi(e.removedNodes)).some((function(e){return i._isValidNodeType(e)}))}));if(a&&s.length>a)for(var c=function(){var t=s.slice(l,l+Math.min(a,s.length-l));setTimeout((function(){t.forEach((function(t){i._processMutation(e,t)}))}),u)},l=0;l<s.length;l+=a)c();else(o=this.mutationQueue).push.apply(o,Zi(s)),this.processingQueue||(this.processingQueue=!0,this.requestIdleCallbackSafe((function(){return i._processMutationQueue(e)})))}},{key:"_processMutationQueue",value:function(e){for(var t,n=this,r=(null===(t=this._configurationRepository)||void 0===t?void 0:t.get(P.mutationMaxChunkSize))||50;this.mutationQueue.length>0;)this.mutationQueue.splice(0,r).forEach((function(t){return n._processMutation(e,t)}));this.processingQueue=!1}},{key:"_processMutation",value:function(e,t){var n=this._processNodes(t.addedNodes,this.nodeAdded),r=this._processNodes(t.removedNodes,this.nodeRemoved);this._publishNodesMutationEvents(e,n,r)}},{key:"_publishNodesMutationEvents",value:function(e,t,n){var r=this;t.length>0&&this.requestIdleCallbackSafe((function(){return r.nodesAdded.publish(new Yi(e,t))})),n.length>0&&this.requestIdleCallbackSafe((function(){return r.nodesRemoved.publish(new Vi(e,n))}))}},{key:"_processNodes",value:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];this._isValidNodeType(o)&&(n.push(o),t.publish(o))}return n}},{key:"_isValidNodeType",value:function(e){return!this.ignoreNodeTypes.has(e.nodeType)}},{key:"requestIdleCallbackSafe",value:function(e){return(window.requestIdleCallback||function(e){return setTimeout((function(){e({timeRemaining:function(){return 0},didTimeout:!0})}),1)})(e)}}]);function ra(e){return ra="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},ra(e)}function oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ia(r.key),r)}}function ia(e){var t=function(e){if("object"!=ra(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ra(t)?t:t+""}var aa=function(e,t){return t&&oa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"create",value:function(e,t,n){return new na(e,t,n)}}]);function ua(e){return ua="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},ua(e)}function sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ca(r.key),r)}}function ca(e){var t=function(e){if("object"!=ua(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ua(t)?t:t+""}var la=function(e,t){return t&&sa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t,this._domUtils=n,this._utils=r}),[{key:"create",value:function(){var e=this._configurationRepository.get(P.enableFramesProcessing),t=this._configurationRepository.get(P.useLegacyZeroT
2imeout);if(e){var n=new Ui,r=new Vo(new aa,this._domUtils,this._configurationRepository);return new xi(n,r,this._domUtils,this._utils,t)}return new Ii}}]);function fa(e){return fa="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},fa(e)}function pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,da(r.key),r)}}function da(e){var t=function(e){if("object"!=fa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fa(t)?t:t+""}var ya=function(e,t){return t&&pa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._features=t,this._frameHandler=n,this._configurationRepository=r,this._domUtils=o,this._cdUtils=i,this._browserContextsCache=a,this.callMethod=this._configurationRepository.get(P.useLegacyZeroTimeout)?this._cdUtils.asyncCall:this._cdUtils.asyncTimeoutCall,this.buildFrameRelatedLists()}),[{key:"buildFrameRelatedLists",value:function(){this._frameRelatedDefaultFeatures=this._collectFrameRelated(this._features.getDefaultFeatures()),this._frameRelatedNonDefaultFeatures=this._collectFrameRelated(this._features.getNonDefaultFeatures())}},{key:"runDefault",value:function(){var e=this;pe.info("Running default features"),"complete"===document.readyState?this._runFeatures(this._features.getDefaultFeatures(),this._frameRelatedDefaultFeatures):window.addEventListener("load",(function(){e._runFeatures(e._features.getDefaultFeatures(),e._frameRelatedDefaultFeatures)}),{once:!0})}},{key:"stopDefault",value:function(){pe.info("Stopping default features"),this._stopFeatures(this._features.getDefaultFeatures(),this._frameRelatedDefaultFeatures)}},{key:"runPerSessionFeatures",value:function(){pe.info("Running per session features"),this._configurationRepository.isConfigurationUpdatedFromServer()?this._startFeatures(this._features.getPerSessionFeatures()):pe.info("We didn't receive configurations from the server yet. Skipping per session features start until configuration arrives.")}},{key:"stopPerSessionFeatures",value:function(){pe.info("Stopping per session features"),this._stopFeatures(this._features.getPerSessionFeatures())}},{key:"runNonDefault",value:function(){pe.info("Running non default features"),this._configurationRepository.isConfigurationUpdatedFromServer()?this._runFeatures(this._features.getNonDefaultFeatures(),this._frameRelatedNonDefaultFeatures):pe.info("We didn't receive configurations from the server yet. Skipping non default features start until configuration arrives.")}},{key:"stopNonDefault",value:function(){pe.info("Stopping non default features"),this._stopFeatures(this._features.getNonDefaultFeatures(),this._frameRelatedNonDefaultFeatures)}},{key:"runPerContextFeatures",value:function(e){pe.info("Running per context features"),this._configurationRepository.isConfigurationUpdatedFromServer()?(this._runFeatures(this._features.getPerContextFeatures()),"cd_auto"===e.name?pe.info("Skipping iframe scanning for per-context features: context name is cd_auto (auto context category mode or initial context)."):this._frameRelatedDefaultFeatures&&this._frameHandler.startFeatures(this._frameRelatedDefaultFeatures)):pe.info("We didn't receive configurations from the server yet. Skipping per context features start until configuration arrives.")}},{key:"stopPerContextFeatures",value:function(){pe.info("Stopping per context features"),this._stopFeatures(this._features.getPerContextFeatures())}},{key:"stopAllFeatures",value:function(){pe.info("Stopping all features"),this.stopDefault(),this.stopNonDefault(),this.stopPerSessionFeatures(),this.stopPerContextFeatures()}},{key:"updateRunByConfig",value:function(e){pe.info("Updating features configuration"),this._updateFeatures(this._features.getDefaultFeatures(),e),this._updateFeatures(this._features.getNonDefaultFeatures(),e),this._updateFeatures(this._features.getPerContextFeatures(),e)}},{key:"runFeaturesOnBrowserContext",value:function(e){var t=this,n=this._features.getDefaultFeatures();n&&(this._browserContextsCache.unRegisterContextFeatures(e.Context,n),Object.keys(n).forEac
2h((function(r){var o=n[r];o.shouldRun&&o.isFrameRelated&&(o.isRunning=!0,o.instance&&t.callMethod.call(o.instance.startFeature,o.instance,e))})))}},{key:"stopFeaturesOnBrowserContextRemove",value:function(e){var t=this,n=this._features.getDefaultFeatures();n&&(this._browserContextsCache.unRegisterContextFeatures(e.Context,n),Object.keys(n).forEach((function(r){var o=n[r];o.shouldRun&&o.isFrameRelated&&o.isRunning&&o.instance&&t.callMethod.call(o.instance.stopFeature,o.instance,e)})))}},{key:"_runFeatures",value:function(e,t){var n=this;e&&Object.keys(e).forEach((function(t){var r=e[t];r.shouldRun&&(n.callMethod.call(r.instance.startFeature,r.instance,new vi(window.self,n._domUtils)),r.isRunning=!0)})),t&&(this._frameHandler.startFeatures(t),this._domUtils.onPageLoad(window,(function(){n._frameHandler.startFeatures(t)})))}},{key:"_stopFeatures",value:function(e,t){var n=this;e&&Object.keys(e).forEach((function(t){var r=e[t];r.instance.stopFeature&&n.callMethod.call(r.instance.stopFeature,r.instance,new vi(window.self,n._domUtils)),r.isRunning=!1})),t&&this._frameHandler.stopFeatures(t)}},{key:"_actOnFeature",value:function(e,t){e.isFrameRelated&&this._frameHandler[t](e),e.instance[t]&&this.callMethod.call(e.instance[t],e.instance,new vi(window.self,this._domUtils))}},{key:"_startFeatures",value:function(e){var t=this;e&&Object.keys(e).forEach((function(n){var r=e[n],o=t._configurationRepository.get(r.configKey);"boolean"==typeof o&&(r.shouldRun=o),r.shouldRun&&(t._actOnFeature(r,"startFeature"),r.isRunning=!0)}))}},{key:"_startFeatureOnBrowserContexts",value:function(e){var t=this;e.isFrameRelated&&this._browserContextsCache.browserContexts.forEac
2h((function(n){e.shouldRun&&!t._browserContextsCache.hasFeature(n.Context,e)&&(t._browserContextsCache.registerContextFeature(n.Context,e),t.callMethod.call(e.instance.startFeature,e.instance,n),e.isRunning=!0)}))}},{key:"_stopFeatureOnBrowserContexts",value:function(e){var t=this;e.isFrameRelated&&this._browserContextsCache.browserContexts.forEach((function(n){t._browserContextsCache.hasFeature(n.Context,e)&&t.callMethod.call(e.instance.stopFeature,e.instance,n),e.isRunning=!1,t._browserContextsCache.exists(n.Context)&&t._browserContextsCache.unRegisterContextFeature(n.Context,e),t._browserContextsCache.remove(n.Context)}))}},{key:"_updateFeatureConfigOnBrowserContexts",value:function(e){var t=this;e.isFrameRelated&&this._browserContextsCache.browserContexts.forEach((function(n){t._browserContextsCache.hasFeature(n.Context,e)&&t.callMethod.call(e.instance.updateFeatureConfig,e.instance,n)}))}},{key:"_updateFeatures",value:function(e,t){var n=this;e&&Object.keys(e).forEach((function(r){var o=e[r],i=t.get(o.configKey);"boolean"==typeof i&&(o.shouldRun=i),o.isRunning&&!o.shouldRun?(n._actOnFeature(o,"stopFeature"),n._stopFeatureOnBrowserContexts(o),o.isRunning=!1):!o.isRunning&&o.shouldRun&&(n._actOnFeature(o,"startFeature"),n._startFeatureOnBrowserContexts(o),o.isRunning=!0),o.isRunning&&(n._actOnFeature(o,"updateFeatureConfig"),n._updateFeatureConfigOnBrowserContexts(o))}))}},{key:"_collectFrameRelated",value:function(e){var t=[];return e&&Object.keys(e).forEach((function(n){var r=e[n];r.isFrameRelated&&t.push(r)})),t}}]);function ha(e){return ha="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},ha(e)}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,va(r.key),r)}}function va(e){var t=function(e){if("object"!=ha(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ha(t)?t:t+""}var ba=function(e,t){return t&&ma(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._featureMgr=t,this._dataQ=r,this._configurationRepository=n,this._pauseResumeEnabled=n.get(P.stateChangeEnabled)||!1,this._sdkState=0,this._stateService=o,this._workerComm=i}),[{key:"onResume",value:function(){1===this._sdkState?(pe.info("Resuming JS SDK"),this._featureMgr.updateRunByConfig(this._configurationRepository),this._sdkState=0,this._stateService.updateState(qe.started)):pe.warn("PauseResumeManager:onResume - resume api called when SDK already running")}},{key:"onPause",value:function(){0===this._sdkState?(pe.info("Pausing JS SDK"),this._featureMgr.stopAllFeatures(),this._sdkState=1,this._stateService.updateState(qe.paused)):pe.warn("Pause api called when SDK already paused")}},{key:"onStateChange",value:function(e){e.toState&&this._verifyApiAllowed(e.toState)&&("pause"===e.toState?(this.onPause(),this.updateSDKStateToWorker(1)):"run"===e.toState?(this.onResume(),this.updateSDKStateToWorker(0)):pe.warn("stateChange api called with non valid toState: "+e.toState))}},{key:"updateSDKStateToWorker",value:function(e){var t={SDK_state:e};this._workerComm.sendAsync("updateSDKState",t)}},{key:"isCustomerApiEnabled",value:function(){return 0===this._sdkState}},{key:"_verifyApiAllowed",value:function(e){return!!this._pauseResumeEnabled||(this._dataQ.addToQueue("forbidden_api_call",[null,e]),!1)}},{key:"onConfigUpdate",value:function(){this._pauseResumeEnabled=this._configurationRepository.get(P.stateChangeEnabled)||!1,!1===this._configurationRepository.get("isEnabled")&&this.onPause()}}]),ga="cdChangeState";function _a(e){return _a="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},_a(e)}function wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sa(r.key),r)}}function Sa(e){var t=function(e){if("object"!=_a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_a(t)?t:t+""}var ka=function(e,t){return t&&wa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
2(this,e),this._pauseResumeMgr=t,this._messageBus=n,this._cdApiFacade=r,this._utils=o,this._trustedOrigins=i.getTrustedOrigins(),this._createCommandToBusMessageMapping()}),[{key:"enableApi",value:function(){pe.info("Enabling api calls"),this._apiMessageTrustedListener=this._utils.addTrustedEventListener(window,"message",this._onApiMessage.bind(this),this._trustedOrigins,!0)}},{key:"disableApi",value:function(){pe.info("Disabling api calls"),this._apiMessageTrustedListener&&this._utils.removeEventListener(window,"message",this._apiMessageTrustedListener,!0)}},{key:"getCustomerSessionID",value:function(e){this._cdApiFacade.getCustomerSessionID((function(t){e(t)}))}},{key:"getLogServerAddress",value:function(e){this._cdApiFacade.getLogServerAddress((function(t){e(t)}))}},{key:"getServerAddress",value:function(e){this._cdApiFacade.getServerAddress((function(t){e(t)}))}},{key:"getConfigurations",value:function(e){this._cdApiFacade.getConfigurations((function(t){e(t)}))}},{key:"notifySessionReset",value:function(e){this._pauseResumeMgr.isCustomerApiEnabled()&&window.postMessage({type:"SNumNotification",cdSNum:e},window.location.href)}},{key:"isApiAvailable",value:function(e){return this._cdApiFacade.isApiAvailable(e)}},{key:"_onApiMessage",value:function(e){var t=e.data,n=t.type;if(void 0===n)try{n=(t=JSON.parse(t)).type}catch(e){}(n===ga||this._pauseResumeMgr.isCustomerApiEnabled()&&this._apiCommandToBusMessageMapping[n])&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),this._messageBus.publish(this._apiCommandToBusMessageMapping[n],t))}},{key:"_createCommandToBusMessageMapping",value:function(){this._apiCommandToBusMessageMapping={},this._apiCommandToBusMessageMapping.ContextChange=Un,this._apiCommandToBusMessageMapping.ResetSession=Gn,this._apiCommandToBusMessageMapping.cdCustomerMetadata=Wn,this._apiCommandToBusMessageMapping[ga]=Qn,this._apiCommandToBusMessageMapping.cdSetCsid=Hn,this._apiCommandToBusMessageMapping.cdSetPsid=Vn,this._apiCommandToBusMessageMapping.cdSetCustomerBrand=zn}}]);function Ea(e){return Ea="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},Ea(e)}function Oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pa(r.key),r)}}function Pa(e){var t=function(e){if("object"!=Ea(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ea(t)?t:t+""}var Ta=function(e,t){return t&&Oa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.muid=null,this._utils=t,this._storageUtilsWrapper=r,this._dataQ=n,this._configurationRepository=o,this.EXPIRATION=t.minutesToMilliseconds(525600)}),[{key:"initMuid",value:function(){var e=this._storageUtilsWrapper.getCookie("bmuid"),t=this._storageUtilsWrapper.getFromLocalStorage("bmuid");this.muid=e||t,this.muid=this._utils.StorageUtils.validateBcId(this.muid),this.muid||(this.muid=this._utils.dateNow()+"-"+this._utils.generateUUID().toUpperCase(),pe.info("Generated a new muid: ".concat(this.muid))),this._saveAndSendMuid(),pe.info("Muid is: ".concat(this.muid))}},{key:"updateMuid",value:function(e){e?(this.muid=e,this.muid=this._utils.StorageUtils.validateBcId(this.muid),this.muid?(this._saveAndSendMuid(),pe.info("Restored MUID is: ".concat(this.muid))):pe.warn("Invalid format of restored MUID")):pe.warn("MUID is not defined")}},{key:"_saveAndSendMuid",value:function(){this._setStorageAndCookieKey(),this._addMuidToQueue()}},{key:"_setStorageAndCookieKey",value:function(){this._storageUtilsWrapper.setCrossBrandCookie("bmuid",this.muid,this.EXPIRATION),this._storageUtilsWrapper.saveToLocalStorage("bmuid",this.muid)}},{key:"_addMuidToQueue",value:function(){this._dataQ.addToQueue("static_fields",["muid",this.muid],!1)}}]);function Ca(e){return Ca="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},Ca(e)}function ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ma(r.key),r)}}function Ma(e){var t=function(e){if("object"!=Ca(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ca(t)?t:t+""}var xa=function(e,t){return t&&ja(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._psid=null}),[{key:"get",value:function(){return this._psid}},{key:"set",value:function(e){if(void 0===e)throw new Error("Invalid psid value of undefined");this._psid=e}}]);function Ra(e){return Ra="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},Ra(e)}function Aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ba(r.key),r)}}function Ba(e){var t=function(e){if("object"!=Ra(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ra(t)?t:t+""}var Da=function(e,t){return t&&Aa(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._psidCache=t,this._workerCommunicator=n}),[{key:"set",value:function(e){if(void 0===e)throw new Error("Invalid psid value of undefined");this._psidCache.set(e),this._workerCommunicator.sendAsync("updatePsidCommand",{psid:e})}}]);function Ia(e){return Ia="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},Ia(e)}function La(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fa(r.key),r)}}function Fa(e){var t=function(e){if("object"!=Ia(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ia(t)?t:t+""}var Na=function(e,t){return t&&La(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sidKey="cdSNum",this._utils=t,this._storageUtilsWrapper=n,this.COOKIE_EXPIRATION_IN_MILLISECONDS=this.getExpirationTime(r)}),[{key:"onConfigUpdate",value:function(e){var t=this.getExpirationTime(e);this._setExpirationTime(t)&&(this.COOKIE_EXPIRATION_IN_MILLISECONDS=t)}},{key:"getExpirationTime",value:function(e){var t=e.get(P.cdsNumExpirationTime);
2return this._utils.minutesToMilliseconds(this._validateCDSNumExpirationTime(t))}},{key:"_validateCDSNumExpirationTime",value:function(e){return e<1||e>44640?60:e}},{key:"_setExpirationTime",value:function(e){return-1===this._storageUtilsWrapper.setExpirationInCookie(this.sidKey,e)?(pe.warn("Failed set expiration time ".concat(e," in cookie.")),!1):-1!==this._storageUtilsWrapper.setExpirationInLocalStorage(this.sidKey,e)||(pe.warn("Failed set expiration time ".concat(e," in local storage.")),this._storageUtilsWrapper.setExpirationInCookie(this.sidKey,this._utils.minutesToMilliseconds(60)),!1)}},{key:"get",value:function(){var e=this._storageUtilsWrapper.getCookie(this.sidKey),t=this._validateSid(e);if(!t){pe.info("Sid was not found in cookie. Trying to get it from the local storage.");var n=this._storageUtilsWrapper.getFromLocalStorage(this.sidKey);if(!(t=this._validateSid(n)))return pe.info("Sid was not found in local storage."),null}return t}},{key:"set",value:function(e){var t=e;(t=this._validateSid(t))?(this._storageUtilsWrapper.saveToLocalStorage(this.sidKey,t,this.COOKIE_EXPIRATION_IN_MILLISECONDS)||pe.error("Failed saving sid ".concat(e," to local storage.")),this._storageUtilsWrapper.setCookie(this.sidKey,t,this.COOKIE_EXPIRATION_IN_MILLISECONDS)||pe.error("Failed saving sid ".concat(e," to cookie."))):pe.error("Sid ".concat(e," is invalid. Will not save it."))}},{key:"_validateSid",value:function(e){return e||null}}]);function Ua(e){return Ua="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},Ua(e)}function Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wa(r.key),r)}}function Wa(e){var t=function(e){if("object"!=Ua(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ua(t)?t:t+""}var Qa=function(e,t){return t&&Ga(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._csid=null}),[{key:"get",value:function(){return this._csid}},{key:"set",value:function(e){if(void 0===e)throw new Error("Invalid csid value of undefined");this._csid=e}}]);function Ha(e){return Ha="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},Ha(e)}function Va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,za(r.key),r)}}function za(e){var t=function(e){if("object"!=Ha(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ha(t)?t:t+""}var Ka=function(e,t){return t&&Va(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._customerApi=t,this._csidCache=n,this._workerCommunicator=r}),[{key:"set",value:function(e){if(void 0===e)throw new Error("Invalid csid value of undefined");this._csidCache.set(e),this._workerCommunicator.sendAsync(K,{csid:e})}},{key:"get",value:function(e){this._customerApi.isApiAvailable("getCustomerSessionID")?this._getCsidWithRetries(0,e):pe.debug("getCustomerSessionID API is unavailable. Hopefully this is because the setCustomerSessionId API is being used")}},{key:"_getCsidWithRetries",value:function(e,t){var n=this,r=20;if(e>r&&this._customerApi.getCustomerSessionID)pe.error("Failed to get csid after all ".concat(r," retries."));
2else try{this._customerApi.getCustomerSessionID((function(o){if(!o)return pe.warnRetry("Failed to get csid on attempt ".concat(e+1,"/").concat(r,". Retrying..."),e+1,r),void setTimeout(n._getCsidWithRetries.bind(n,e+1,t),200);pe.debug("Got csid after ".concat(e," retries. csid: ").concat(o)),n._csidCache.set(o),t()}))}catch(n){pe.warnRetry("Exception while getting csid on attempt ".concat(e+1,"/").concat(r,". Retrying..."),e+1,r,n),setTimeout(this._getCsidWithRetries.bind(this,e+1,t),200)}}}]),qa={none:"none",init:"init",configuration:"config",configurationFromSlave:"configFromSlave",customerApi:"customerApi",pageTimeout:"timeout",unknown:"unknown"};function Ja(e){return Ja="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},Ja(e)}function Ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xa(r.key),r)}}function Xa(e){var t=function(e){if("object"!=Ja(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ja(t)?t:t+""}var Za=function(e,t){return t&&Ya(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g,_,w){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._configurationService=n,this._configurationRepository=r,this._utils=o,this._domUtils=i,this._workerComm=a,this._contextMgr=u,this._muidService=s,this._serverStateMgr=c,this._resetSessionSiteMapper=l,this._sidRepository=f,this._csidService=m,this._csidCache=v,this._serverAddress=p.get(),this._cidCache=d,this._protocolType=y.get(),this._minifiedWupUriEnabled=h,this._psidCache=b,this._brandService=g,this._agentIdService=_,this._agentType=r.get(P.agentType),this._enableStartupCustomerSessionId=this._configurationRepository.get(P.enableStartupCustomerSessionId),this.lastExternalResetCallTime=null,this.sessionId=null,this._resetSessionSiteMapper.updateObserver(this._onSiteMapperMatch.bind(this)),this._recoveryServerURL=w,a.addMessageListener("NewSessionStartedEvent",this._onNewSessionStartedEvent.bind(this)),this._setSessionStartupData()}),[{key:"resumeOrStartSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._getSessionId();t?this._resumeSession(t):this._startNewSession(e)}},{key:"onConfigUpdate",value:function(e){this._resetSessionSiteMapper.onConfigUpdate(e),this._configurationRepository.get("logAddress")&&this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm)}},{key:"resetSession",value:function(e){this.onResetSession(e)}},{key:"onResetSession",value:function(e){var t=e.resetReason?e.resetReason:qa.unknown;qa.hasOwnProperty(t)||(t=qa.customerApi),pe.info("Received a Reset Session event, reason: ".concat(t)),this._utils.dateNow()-this.lastExternalResetCallTime>this._configurationRepository.get(P.resetSessionApiThreshold)?(this._startNewSession(null==e?void 0:e.csid),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm),this.lastExternalResetCallTime=this._utils.dateNow()):pe.info("Ignoring external reset session call since resetSessionApiThreshold hasn't passed")}},{key:"startNewSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._startNewSession(e)}},{key:"_startNewSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;pe.info("Starting a new session. Previous session was ".concat(this.sessionId)),this.sessionId=null,this._enableStartupCustomerSessionId?this._setOrFetchCsid(e):this._csidCache.set(e||null),this._psidCache.set(null),this._serverStateMgr.onSessionIdChange(),this._onStartedNewSession()}},{key:"_setOrFetchCsid",value:function(e){e?this._csidCache.set(e):this._csidService.get()}},{key:"_resumeSession",value:function(e){pe.info("Resuming an existing session with sid ".concat(e)),this.sessionId=e,this._saveSidToStorage(this.sessionId),this._handleBrandResume(),this._onResumedSession(),this._handleCsid()}},{key:"_getSessionId",value:function(){pe.info("Attempting to get sid from storage");var e=this._sidRepository.get();return e&&pe.info("Read sid ".concat(e," from storage")),e}},{key:"_saveSidToStorage",value:function(e){pe.info("Saving sid ".concat(e," to storage")),this._sidRepository.set(e)}},{key:"_onStartedNewSession",value:function(){var e;if(this._serverAddress){var t={serverAddress:this._serverAddress,csid:this._csidCache.get(),cid:this._cidCache.get(),protocolType:this._protocolType,minifiedUri:this._minifiedWupUriEnabled,psid:this._psidCache.get(),muid:null===(e=this._muidService)||void 0===e?void 0:e.muid,contextName:this._contextMgr.getContextName(),recoveryServerURL:this._recoveryServerURL}
2;this._workerComm.sendAsync("startNewSessionCommand",t),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm)}}},{key:"_onResumedSession",value:function(){var e;if(this._serverAddress){var t=this._serverStateMgr.getServerState(this.sessionId),n={serverAddress:this._serverAddress,csid:this._csidCache.get(),cid:this._cidCache.get(),protocolType:this._protocolType,minifiedUri:this._minifiedWupUriEnabled,psid:this._psidCache.get(),cdsnum:this.sessionId,muid:null===(e=this._muidService)||void 0===e?void 0:e.muid,contextName:this._contextMgr.getContextName(),serverState:t,recoveryServerURL:this._recoveryServerURL};this._workerComm.sendAsync("resumeSessionCommand",n),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm)}}},{key:"_handleCsid",value:function(){var e=this;this._domUtils.onDocumentBody(self,(function(){pe.debug("SessionService:_sessionIdRegeneration, onDocumentBody callback: cdSNum: ".concat(e.sessionId)),e._csidService.get((function(){pe.info("Received csid from client. csid: ".concat(e._csidCache.get(),", sid:").concat(null==e?void 0:e.sessionId)),e._sendCsidToServer()}))}))}},{key:"_sendCsidToServer",value:function(){this._serverAddress&&(pe.info("Sending csid to worker. csid: ".concat(this._csidCache.get(),", sid:").concat(this.sessionId)),this._workerComm.sendAsync(K,{csid:this._csidCache.get()}),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm))}},{key:"_handleBrandResume",value:function(){this._brandService.update()}},{key:"_onSiteMapperMatch",value:function(){this.onResetSession({resetReason:qa.configuration})}},{key:"_onNewSessionStartedEvent",value:function(e){this.sessionId=e,this._saveSidToStorage(this.sessionId),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm),this._notifyNewSessionStarted(),this._agentType!==V.SECONDARY&&this._handleCsid(),pe.info("A new session ".concat(e," has started"))}},{key:"_notifyNewSessionStarted",value:function(){this._messageBus.publish(Nn,this.sessionId)}},{key:"_setSessionStartupData",value:function(){this._workerComm.sendAsync("setAgentTypeCommand",{agentType:this._configurationRepository.get(P.agentType)}),this._agentIdService.updateAgentIdWithServer()}}]);function $a(e){return $a="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},$a(e)}function eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tu(r.key),r)}}function tu(e){var t=function(e){if("object"!=$a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$a(t)?t:t+""}var nu=function(e,t){return t&&eu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=tu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_dataQ",void 0),this._configurationRepository=t,this._dataQ=n,this._isEnabled=this._configurationRepository.get("isCustMetadata")}),[{key:"onCustomerMetadata",value:function(e){void 0!==this._isEnabled&&null!=this._isEnabled&&!0!==this._isEnabled||(pe.debug("HandleMetadata:onCustomerMetadata. data="+JSON.stringify(e.data)),e.data&&this._dataQ.addToQueue("customer_metadata",[null,e.data]))}},{key:"onConfigUpdate",value:function(){this._isEnabled=this._configurationRepository.get("isCustMetadata")}}]);function ru(e){return ru="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},ru(e)}function ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iu(r.key),r)}}function iu(e){var t=function(e){if("object"!=ru(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ru(t)?t:t+""}var au=function(e,t){return t&&ou(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._slaves=[],this._dataQ=t,this._configurationRepository=n,this._utils=r,this._logPerfDataQ=o,this._contextMgr=i,this.onResetSessionTrigger=new Qt,this.onMouseChallengeTrigger=new Qt,this._msgRouter={dataFromSlave:this._onDataFromSlave,registerSlave:this._onRegisterSlave,logPerfSlave:this._onLogPerfSlave,updateMasterContext:this._onUpdateMasterContext,resetSessionTriggerFromSlave:this._onResetSessionTriggerFromSlave,mouseChallengeTriggerFromSlave:this._onMouseChallengeTriggerFromSlave,updateSlaveConf:this.onConfigUpdate},this._trustedOrigins=a.getTrustedOrigins()}),[{key:"listen",value:function(){var e=this;pe.debug("SlaveListener:listen"),this._utils.addTrustedEventListener(window,"message",(function(t){var n=t.data.msgType;n&&e._msgRouter[n]&&e._msgRouter[n].call(e,t)}),this._trustedOrigins)}},{key:"sendToSlaves",value:function(e,t){pe.debug("SlaveListener:sendToSlaves"),this._slaves.forEac
2h((function(n){n.port?n.port.postMessage({msgType:e,data:t}):n.source.postMessage({msgType:e,data:t},n.origin)}))}},{key:"onConfigUpdate",value:function(){pe.debug("SlaveListener:onConfigUpdate, updating ".concat(this._slaves.length," slaves")),this.sendToSlaves("updateSlaveConf",this._configurationRepository.getAll())}},{key:"notifyStateChange",value:function(e){pe.info("SlaveListener:notifyStateChange, updating ".concat(this._slaves.length," slaves that the new state is ").concat(e.toState)),this.sendToSlaves("updateSlaveState",e)}},{key:"_onDataFromSlave",value:function(e){var t=e.data;"flushData"!==t.data.eventName&&(this._isScriptVersionMessage(t)?t.data.eventName&&this._dataQ.addToQueue(t.data.eventName,t.data.data,!1):t.data.eventName&&this._dataQ.addToQueue(t.data.eventName,t.data.data))}},{key:"_isScriptVersionMessage",value:function(e){return"static_fields"===e.data.eventName&&"dataFromSlave"===e.msgType&&e.data&&e.data.data&&("slave_version_client"===e.data.data[0]||"device_source"===e.data.data[0])}},{key:"_onRegisterSlave",value:function(e){var t=this;if(e.data.useMessageChannelForSlaveComm){var n=new MessageChannel;this._slaves.push({source:e.source,origin:e.origin,port:n.port1}),e.source.postMessage({msgType:"setupPort",isNative:!0},e.origin,[n.port2]),n.port1.onmessage=function(e){var n=e.data.msgType;n&&t._msgRouter[n]&&t._msgRouter[n].call(t,e)}}else this._slaves.push({source:e.source,origin:e.origin}),e.source.postMessage({msgType:"updateSlaveConf",isNative:!0,data:this._configurationRepository.getAll()},e.origin)}},{key:"_onLogPerfSlave",value:function(e){var t=e.data;"flushData"!==t.data.eventName&&t.data.eventName&&this._logPerfDataQ.addToQueue(t.data.eventName,t.data.data)}},{key:"_onUpdateMasterContext",value:function(e){pe.debug("SlaveListener:_onUpdateMasterContext");var t=e.data;this._contextMgr.setContext(t.data)}},{key:"_onResetSessionTriggerFromSlave",value:function(e){pe.debug("SlaveListener:_onResetSessionTriggerFromSlave");var t=e.data;this.onResetSessionTrigger.publish(t.data)}},{key:"_onMouseChallengeTriggerFromSlave",value:function(e){pe.debug("SlaveListener:_onMouseChallengeTriggerFromSlave");var t=e.data;this.onMouseChallengeTrigger.publish(t.data)}}]);function uu(e){return uu="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},uu(e)}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cu(r.key),r)}}function cu(e){var t=function(e){if("object"!=uu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uu(t)?t:t+""}var lu=function(e,t){return t&&su(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g,_,w,S,k,E,O,P){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._features=t,this._configurationRepository=n,this._utils=r,this._elements=o,this._mutationObserver=i,this._dataQ=a,this._devDebugDataQueue=u,this._sessionService=c,this._muidService=l,this._muidEncryptedService=f,this._perfMonitor=p,this._sensorDataQ=d,this._msgBus=y,this._cidCache=h,this._sameCharService=m,this._maskingService=v,this._categoryService=b,this._configurations=s,this._wasmModuleLoader=g,this._contextMgr=_,this._fontTimingService=w,this._fontDetectorProvider=S,this._agenticDomInjectionDetector=k,this._cursorCollectorBrowserEnvironment=E,this._cursorDetectionService=O,this._hitboxDetectionService=P}),[{key:"buildFeatures",value:function(){var e,t=this;(e=this._features.list)&&Object.keys(e).forEach((function(n){var r=e[n];try{r.init.apply(t)}catch(t){var o=r.name||n;pe.error('Failed to initialize feature "'.concat(o,'": ').concat(t.message,"\nStack: ").concat(t.stack)),delete e[n]}}))}}]);function fu(e){return fu="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},fu(e)}function pu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,du(r.key),r)}}function du(e){var t=function(e){if("object"!=fu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fu(t)?t:t+""}var yu=function(e,t){return t&&pu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._contextMgr=t,this._dataQ=n,this._contextMgr.onContextChange.subscribe(this.sendContextToServer.bind(this)),this._contextMgr.initialContext("cd_auto")}),[{key:"sendContextToServer",value:function(e){e&&this._dataQ.addToQueue("contextChange",[null,e.url,e.name,e.timestamp,e.referrer,e.hLength,e.context_mapping])}}]);function hu(e){return hu="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},hu(e)}function mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vu(r.key),r)}}function vu(e){var t=function(e){if("object"!=hu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hu(t)?t:t+""}yu.apiName="ContextChange";var bu=function(e,t){return t&&mu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._state=qe.stopped}),[{key:"getState",value:function(){return this._state}},{key:"updateState",value:function(e){var t=qe[e];if(!t)throw new Error("Unknown state ".concat(e));this._state=t,this._messageBus.publish(qn,{state:t})}}]),gu="cdHeartbeat";function _u(e){return _u="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},_u(e)}function wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Su(r.key),r)}}function Su(e){var t=function(e){if("object"!=_u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_u(t)?t:t+""}var ku=function(e,t){return t&&wu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}
2),[{key:"publishNewSessionStartedEvent",value:function(e){window.postMessage({type:"cdNewSessionStartedEvent",event:{sessionID:e}},window.location.href)}},{key:"publishStateChangedEvent",value:function(e){window.postMessage({type:"cdStateChangedEvent",event:{state:e}},window.location.href)}},{key:"publishRestoredMuidEvent",value:function(e){window.postMessage({type:"RestoredMuidEvent",event:{muid:e}},window.location.href)}}]);function Eu(e){return Eu="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},Eu(e)}function Ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pu(r.key),r)}}function Pu(e){var t=function(e){if("object"!=Eu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eu(t)?t:t+""}var Tu=function(e,t){return t&&Ou(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._contextMgr=n,this._messageBus.subscribe(Un,this._handle.bind(this))}),[{key:"_handle",value:function(e){this._contextMgr.changeContext(e.context||e.activityType,!0)}}]);function Cu(e){return Cu="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},Cu(e)}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mu(r.key),r)}}function Mu(e){var t=function(e){if("object"!=Cu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cu(t)?t:t+""}var xu=function(e,t){return t&&ju(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._sessionService=n,this._messageBus.subscribe(Gn,this._handle.bind(this))}),[{key:"_handle",value:function(e){this._sessionService.onResetSession(e)}}]);function Ru(e){return Ru="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},Ru(e)}function Au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bu(r.key),r)}}function Bu(e){var t=function(e){if("object"!=Ru(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ru(t)?t:t+""}var Du=function(e,t){return t&&Au(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._handleMetadata=n,this._messageBus.subscribe(Wn,this._handle.bind(this))}),[{key:"_handle",value:function(e){this._handleMetadata.onCustomerMetadata(e)}}]);function Iu(e){return Iu="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},Iu(e)}function Lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fu(r.key),r)}}function Fu(e){var t=function(e){if("object"!=Iu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Iu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Iu(t)?t:t+""}var Nu=function(e,t){return t&&Lu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._pauseResumeManager=n,this._slaveListener=r,this._messageBus.subscribe(Qn,this._handle.bind(this))}),[{key:"_handle",value:function(e){this._pauseResumeManager.onStateChange(e),this._slaveListener.notifyStateChange(e)}}]);function Uu(e){return Uu="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},Uu(e)}function Gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wu(r.key),r)}}function Wu(e){var t=function(e){if("object"!=Uu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uu(t)?t:t+""}var Qu=function(e,t){return t&&Gu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._csidService=n,this._messageBus.subscribe(Hn,this._handle.bind(this))}),[{key:"_handle",value:function(e){e.csid?this._csidService.set(e.csid):pe.warn("Received an invali
2d csid of ".concat(e.csid,". Ignoring api call"))}}]);function Hu(e){return Hu="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},Hu(e)}function Vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zu(r.key),r)}}function zu(e){var t=function(e){if("object"!=Hu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hu(t)?t:t+""}var Ku=function(e,t){return t&&Vu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._psidService=n,this._messageBus.subscribe(Vn,this._handle.bind(this))}),[{key:"_handle",value:function(e){e.psid?this._psidService.set(e.psid):pe.warn("Received an invalid psid of ".concat(e.psid,". Ignoring api call"))}}]);function qu(e){return qu="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},qu(e)}function Ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yu(r.key),r)}}function Yu(e){var t=function(e){if("object"!=qu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qu(t)?t:t+""}var Xu=function(e,t){return t&&Ju(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._featureService=n,this._customerApiBridge=r,this._contextMgr=o,this._clientEventService=i,this._sessionInfoService=a,this._messageBus.subscribe(Nn,this._handle.bind(this))}),[{key:"_handle",value:function(e){this._sessionInfoService.markStartTime(),this._featureService.runPerSessionFeatures(),this._customerApiBridge.notifySessionReset(e),this._contextMgr.onSessionReset(),this._clientEventService.publishNewSessionStartedEvent(e)}}]);function Zu(e){return Zu="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},Zu(e)}function $u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,es(r.key),r)}}function es(e){var t=function(e){if("object"!=Zu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zu(t)?t:t+""}var ts=function(e,t){return t&&$u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._featureService=n,this._dataQ=o,this._pauseResumeMgr=i,this._handleMetadata=a,this._logger=u,this._contextMgr=s,this._sessionService=c,this._sensorDataQ=l,this._slaveListener=f,this._stateService=p,this._performanceMonitor=d,this._heartBeatMessageService=y,this._sensorGateKeeper=h,this._sidRepository=m,this._featureServiceV2=r,this._coordinatesMaskingConfigurationUpdater=v,this._messageBus.subscribe(Fn,this._handle.bind(this))}),[{key:"_handle",value:function(e){pe.info("Configurations were loaded from the server."),this._performanceMonitor.stopMonitor("t.timeTillServerConfig"),this._featureService.updateRunByConfig(e),this._dataQ.updateWithConfig(e),this._pauseResumeMgr.onConfigUpdate(e),this._handleMetadata.onConfigUpdate(e),this._logger.updateLogConfig(e),this._contextMgr.onConfigUpdate(e),this._sessionService.onConfigUpdate(e),this._sensorDataQ.onConfigUpdate(e),this._slaveListener.onConfigUpdate(e),this._heartBeatMessageService.updateConfig(e),this._sensorGateKeeper.configure(),this._sidRepository.onConfigUpdate(e),this._coordinatesMaskingConfigurationUpdater.onConfigUpdate(e),ae.onConfigurationUpdated(e),this._stateService.updateState(qe.started),this._tryToRunCollectorsV2(e),pe.info("Successfully configured system")}},{key:"_tryToRunCollectorsV2",value:function(e){try{this._runCollectorsV2(e)}catch(e){pe.error("Could not start Feature Service V2, Error: ",e)}}},{key:"_runCollectorsV2",value:function(e){e&&"function"==typeof e.get&&e.get(P.isCollectorsV2)&&(pe.info("Starting Feature Service V2, Timestamp: ",Ke.dateNow()),this._featureServiceV2.runDefaultCollectors())}}]);function ns(e){return ns="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},ns(e)}function rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,os(r.key),r)}}function os(e){var t=function(e){if("object"!=ns(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ns(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ns(t)?t:t+""}var is=function(e,t){return t&&rs(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._clientEventService=n,this._messageBus.subscribe(qn,this._handle.bind(this))}),[{key:"_handle",value:function(e){pe.info("SDK state changed to ".concat(e.state)),this._clientEventService.publishStateChangedEvent(e.state)}}]);function as(e){return as="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},as(e)}function us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ss(r.key),r)}}function ss(e){var t=function(e){if("object"!=as(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=as(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==as(t)?t:t+""}var cs=function(e,t){return t&&us(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._brandService=n,this._messageBus.subscribe(zn,this._handle.bind(this))}),[{key:"_handle",value:function(e){e.brand?this._brandService.set(e.brand):pe.warn("Received an empty brand name. Ignoring the API call")}}]);function ls(e){return ls="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},ls(e)}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ps(r.key),r)}}function ps(e){var t=function(e){if("object"!=ls(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ls(t)?t:t+""}var ds=function(e,t){return t&&fs(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(t=ps(t))in e?Object.defineProperty(e,t,{value:"BC",enumerable:!0,configurable:!0,writable:!0}):e[t]="BC"}(this,"_dataOrigin"),this._heartBeatErrorsState=n,this._heartBeatPostMessageInterval=r,t.addMessageListener("HeartBeatStatusEvent",this._handle.bind(this))}),[{key:"start",value:function(){this._clear(),this._periodicPostMessageIntervalId=setInterval(this._postHeartBeatMessage.bind(this),this._heartBeatPostMessageInterval)}},{key:"stop",value:function(){this._clear()}},{key:"updateConfig",value:function(e){this._heartBeatPostMessageInterval=e.get(P.heartBeatMessageInterval),this.start()}},{key:"_clear",value:function(){this._periodicPostMessageIntervalId&&clearInterval(this._periodicPostMessageIntervalId)}},{key:"_handle",value:function(e){this._heartBeatErrorsState.updateState(e)}},{key:"_postHeartBeatMessage",value:function(){this._heartBeatErrorsState.hasErrors()?window.postMessage({type:gu,data:this._heartBeatErrorsState.getErrors(),origin:this._dataOrigin},window.location.href):window.postMessage({type:gu,data:"Ok",origin:this._dataOrigin},window.location.href)}}]);function ys(e){return ys="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},ys(e)}function hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ms(r.key),r)}}function ms(e){var t=function(e){if("object"!=ys(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ys(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ys(t)?t:t+""}var vs=function(e,t){return t&&hs(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._errors=[]}),[{key:"updateState",value:function(e){var t=e.category,n=e.status;if(0!==this._errors.length&&"oK"===n)pe.info("Received heart beat recovery event",e),this._errors=[];else if("oK"!==n){var r;pe.info("Received heart beat error event",e),r="Error"===n?"ERROR(".concat(t,")"):"REQUEST_ERROR(".concat(t,")"),this._errors.includes(r)||this._errors.push(r)}}},{key:"getErrors",value:function(){return this._errors}},{key:"hasErrors",value:function(){return 0!==this._errors.length}}]);function bs(e){return bs="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},bs(e)}function gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_s(r.key),r)}}function _s(e){var t=function(e){if("object"!=bs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bs(t)?t:t+""}var ws=function(e,t){return t&&gs(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.markStartTime()}),[{key:"markStartTime",value:function(){this.startTime=Ke.dateNow()}},{key:"getStartTime",value:function(){return this.startTime}}]);function Ss(e){return Ss="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},Ss(e)}function ks(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Es(r.key),r)}}function Es(e){var t=function(e){if("object"!=Ss(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ss(t)?t:t+""}var Os=function(e,t){return t&&ks(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.configurationRepository=n,this.sessionInfoService=t,this.isMotionOnSessionStart=this.configurationRepository.get(P.isMotionOnSessionStart),this.motionPaddingOnSessionStartMSec=this.configurationRepository.get(P.motionPaddingOnSessionStartMSec)}
2),[{key:"configure",value:function(){this.isMotionOnSessionStart=this.configurationRepository.get(P.isMotionOnSessionStart),this.motionPaddingOnSessionStartMSec=this.configurationRepository.get(P.motionPaddingOnSessionStartMSec),this.isMotionOnSessionStart&&pe.info("Motion on session start is enabled, collecting motion events for ".concat(this.motionPaddingOnSessionStartMSec/1e3," seconds."))}},{key:"isOpen",value:function(){return this.isMotionOnSessionStart&&Ke.dateNow()-this.motionPaddingOnSessionStartMSec<this.sessionInfoService.getStartTime()}}]);function Ps(e){return Ps="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},Ps(e)}function Ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cs(r.key),r)}}function Cs(e){var t=function(e){if("object"!=Ps(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ps(t)?t:t+""}function js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(js=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function xs(e,t){return xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xs(e,t)}var Rs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Ms(t),function(e,t){if(t&&("object"==Ps(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,js()?Reflect.construct(t,n||[],Ms(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xs(e,t)}(t,e),function(e,t){return t&&Ts(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getDocument",value:function(){return this.context.shadowRoot}}])}(vi);function As(e){return As="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},As(e)}function Bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ds(r.key),r)}}function Ds(e){var t=function(e){if("object"!=As(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=As(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==As(t)?t:t+""}function Is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Is=function(){return!!e})()}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ls(e)}function Fs(e,t){return Fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fs(e,t)}var Ns=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Ls(t),function(e,t){if(t&&("object"==As(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Is()?Reflect.construct(t,n||[],Ls(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fs(e,t)}(t,e),function(e,t){return t&&Bs(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getDocument",value:function(){return this.context}}])}(vi);function Us(e){return Us="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},Us(e)}function Gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ws(r.key),r)}}function Ws(e){var t=function(e){if("object"!=Us(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Us(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Us(t)?t:t+""}var Qs=function(e,t){return t&&Gs(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._windowMutationObservers=t,this._messageBus=n,this._configurationRepository=r,this._messageBus.subscribe("BrowserContextAdded",this._processNewContext.bind(this)),this._elementsMutationObserverFactory=new aa}),[{key:"_processNewContext",value:function(e){this.monitorWindow(e)}},{key:"monitorWindow",value:function(e){if(!this._windowMutationObservers.has(e)){var t=this._elementsMutationObserverFactory.create(e,self.MutationObserver,this._configurationRepository);t.observe(e.getDocument()),t.nodesAdded.subscribe(this._nodesAddedMutationObserved.bind(this)),t.nodesRemoved.subscribe(this._nodesRemovedMutationObserved.bind(this)),this._windowMutationObservers.set(e,t)}}},{key:"unMonitorWindow",value:function(e){var t=this._windowMutationObservers.get(e);t&&(t.nodesAdded.unsubscribe(this._nodesAddedMutationObserved.bind(this)),t.nodesRemoved.unsubscribe(this._nodesRemovedMutationObserved.bind(this)),t.disconnect()),this._windowMutationObservers.delete(e)}},{key:"_nodesAddedMutationObserved",value:function(e){this._messageBus.publish(Yn,e)}},{key:"_nodesRemovedMutationObserved",value:function(e){this._messageBus.publish(Xn,e)}}]);function Hs(e){return Hs="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},Hs(e)}function Vs(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return zs(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(zs(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,zs(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,zs(f,"constructor",c),zs(c,"constructor",s),s.displayName="GeneratorFunction",zs(c,o,"GeneratorFunction"),zs(f),zs(f,o,"Generator"),zs(f,r,(function(){return this})),zs(f,"toString",(function(){return"[object Generator]"})),(Vs=function(){return{w:i,m:p}})()}function zs(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zs=function(e,t,n,r){function i(t,n){zs(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},zs(e,t,n,r)}function Ks(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function qs(e){return function(e){if(Array.isArray(e))return Js(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Js(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)?Js(e,t):void 0}}(e)||function(){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 Js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xs(r.key),r)}}function Xs(e){var t=function(e){if("object"!=Hs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hs(t)?t:t+""}var Zs=function(){return function(e,t){return t&&Ys(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._domUtils=t,this._messageBus=n,this._configurationRepository=r,this._loadedCustomElements=yt(),this._windowMutationObservers=yt(),this._messageBus.subscribe(Yn,this._processAddedNodes.bind(this)),this._messageBus.subscribe(Xn,this._processRemovedNodes.bind(this)),this._messageBus.subscribe(_r,this._processSubmittedCustomElement.bind(this)),this._browserContextMutationObserver=new Qs(this._windowMutationObservers,this._messageBus,this._configurationRepository),this.customElementCache=new WeakMap}),[{key:"customElements",get:function(){var e=[];return this._loadedCustomElements.forEach((function(t,n){e.push(n)})),e}},{key:"hasCustomElement",value:function(e){return!!this._loadedCustomElements.has(e)}},{key:"addCustomElementToLoadedList",value:function(e,t){this._loadedCustomElements.set(e,t)}},{key:"start",value:function(e){var t=this;this._browserContextMutationObserver.monitorWindow(e),this._findCustomElementsInBrowserContext(e.getDocument(),(function(e){t._processNewElement(e)}))}},{key:"stop",value:function(){this.customElementCache=new WeakMap,this._windowMutationObservers.forEac
2h((function(e){e.disconnect()}))}},{key:"_processSubmittedCustomElement",value:function(e){this._loadedCustomElements.has(e)||this._addCustomElement(e,new Ns(e),"closed")}},{key:"_processNewElement",value:function(e){this._loadedCustomElements.has(e)||(null!=e.shadowRoot?this._addCustomElement(e,new Rs(e)):this._messageBus.publish(gr,e))}},{key:"_addCustomElement",value:function(e,t){"open"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"open")&&(this._browserContextMutationObserver.monitorWindow(t),this._messageBus.publish(Jn,{element:e,browserContext:t})),this.addCustomElementToLoadedList(e,t)}},{key:"_removeCustomElement",value:function(e){this._browserContextMutationObserver.unMonitorWindow(e.shadowRoot),this._loadedCustomElements.delete(e)}},{key:"_processAddedNodes",value:function(e){var t=this;(!0===this._configurationRepository.get(P.enableIncrementalCustomElementMutationScan)?Array.from(e.addedNodes):this._legacyUnionAddedNodesWithDocument(e)).forEach((function(e){t._isCustomElement(e)&&(t._processNewElement(e),e.shadowRoot?t._findCustomElementsInBrowserContext(e.shadowRoot,(function(e){t._processNewElement(e)})):t._messageBus.publish(gr,e))}))}},{key:"_legacyUnionAddedNodesWithDocument",value:function(e){if(!e.addedNodes.length)return[];var t=e.addedNodes[0].ownerDocument.querySelectorAll("*");return Array.from(new Set([].concat(qs(Array.from(e.addedNodes)),qs(Array.from(t))))).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}},{key:"_processRemovedNodes",value:function(e){for(var t=this,n=e.removedNodes,r=[],o=0;o<n.length;o++){var i=n[o];i.hasChildNodes()?this._findCustomElementsInBrowserContext(i,(function(e){t._removeCustomElement(e)})):this._isCustomElement(i)&&i.shadowRoot&&r.push(i)}0!==r.length&&r.forEach((function(e){t._removeCustomElement(e)}))}},{key:"_isCustomElement",value:function(e){if(!e||"string"!=typeof e.localName)return!1;if(this.customElementCache.has(e))return this.customElementCache.get(e);var t=e.localName.includes("-")||null!=e.shadowRoot;return this.customElementCache.set(e,t),t}},{key:"_findCustomElementsInBrowserContext",value:(e=Vs().m((function e(t,n){var r,o,i,a=this;return Vs().w((function(e){for(;;)switch(e.n){case 0:if(r=new Set,0!==(o=t.querySelectorAll("*")).length){e.n=1;break}return e.a(2,qs(r));case 1:return i=[],o.forEach((function(e){if(e.shadowRoot){var t=a._findCustomElementsInBrowserContext(e.shadowRoot,(function(e){n(e)}));i.push(t)}else a._messageBus.publish(gr,e);a._isCustomElement(e)&&n(e)})),e.n=2,Promise.all(i);case 2:return e.a(2)}}),e)})),t=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ks(i,r,o,a,u,"next",e)}function u(e){Ks(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e,n){return t.apply(this,arguments)})}]);var e,t}();function $s(e){return $s="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},$s(e)}function ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tc(r.key),r)}}function tc(e){var t=function(e){if("object"!=$s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$s(t)?t:t+""}var nc=function(e,t){return t&&ec(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t,this._startUpConfigurations=n}),[{key:"loadStartUpConfigurations",value:function(){var e,t;this._setConfigurationOrDefault(P.logAddress,this._startUpConfigurations.getLogServerURL(),null),this._setConfigurationOrDefault(P.enableMinifiedLogUri,this._startUpConfigurations.isMinifiedLogUriEnabled(),!1),this._setConfigurationOrDefault(P.enableFramesProcessing,this._startUpConfigurations.getEnableFramesProcessing(),!0),this._setConfigurationOrDefault(P.enableCustomElementsProcessing,this._startUpConfigurations.getEnableCustomElementsProcessing(),!1),this._setConfigurationOrDefault(P.enableIncrementalCustomElementMutationScan,this._startUpConfigurations.getEnableIncrementalCustomElementMutationScan(),!1),this._setConfigurationOrDefault(P.customElementAttribute,this._startUpConfigurations.getCollectionSettings().getElementSettings().getCustomElementAttribute(),"data-automation-id"),this._setConfigurationOrDefault(P.enableSameSiteNoneAndSecureCookies,this._startUpConfigurations.getEnableSameSiteNoneAndSecureCookies(),!0),this._setConfigurationOrDefault(P.maskElementsAttributes,this._startUpConfigurations.getCollectionSettings().getElementSettings().getAttributesToMask(),[]),this._setConfigurationOrDefault(P.parentElementSelector,this._startUpConfigurations.getCollectionSettings().getCustomInputElementSettings().getParentElementSelector(),""),this._setConfigurationOrDefault(P.childElementWithCustomAttribute,this._startUpConfigurations.getCollectionSettings().getCustomInputElementSettings().getChildElementWithCustomAttribute(),""),this._setConfigurationOrDefault(P.elementDataAttribute,this._startUpConfigurations.getCollectionSettings().getCustomInputElementSettings().getElementDataAttribute(),""),this._setConfigurationOrDefault(P.customButtons,this._startUpConfigurations.getCollectionSettings().getCustomInputElementSettings().getCustomButtons(),[]),this._setConfigurationOrDefault(P.agentType,this._startUpConfigurations.getCollectionSettings().getAgentType(),V.PRIMARY),this._setConfigurationOrDefault(P.collectionMode,this._startUpConfigurations.getCollectionSettings().getAgentMode(),z.FULL),this._setConfigurationOrDefault(P.keyEventsMaskSpecialChars,this._startUpConfigurations.getCollectionSettings().getElementSettings().getKeyEventsMaskSpecialChars(),!1),this._setConfigurationOrDefault(P.enableWupMessagesHashing,null===(e=this._startUpConfigurations.getClientSettings())||void 0===e?void 0:e.enableWupMessagesHashing,!1),this._setConfigurationOrDefault(P.enableCoordinatesMasking,null===(t=this._startUpConfigurations.getClientSettings())||void 0===t?void 0:t.enableCoordinatesMasking,!1),this._setConfigurationOrDefault(P.enableStartupCustomerSessionId,this._startUpConfigurations.getEnableStartupCustomerSessionId(),!1),this._setNumberConfigurationOrDefault(P.mutationMaxChunkSize,this._startUpConfigurations.getMutationMaxChunkSize(),0),this._setNumberConfigurationOrDefault(P.mutationChunkDelayMs,this._startUpConfigurations.getMutationChunkDelayMs(),100),this._setConfigurationOrDefault(P.passwordIdMaskingList,this._startUpConfigurations.getPasswordIdMaskingList(
2),[]),this._setConfigurationOrDefault(P.enableUnmaskedValues,this._startUpConfigurations.isUnmaskedValuesEnabled(),!1),this._setConfigurationOrDefault(P.allowedUnmaskedValuesList,this._startUpConfigurations.getAllowedUnmaskedValuesList(),[]),this._setConfigurationOrDefault(P.useLegacyZeroTimeout,this._startUpConfigurations.getUseLegacyZeroTimeout(),[]),this._setConfigurationOrDefault(P.externalWASMModules,this._startUpConfigurations.getExternalWASMModules(),[])}},{key:"_setConfigurationOrDefault",value:function(e,t,n){Ke.isUndefinedNull(t)?this._configurationRepository.set(e,n):this._configurationRepository.set(e,t)}},{key:"_setNumberConfigurationOrDefault",value:function(e,t,n){Ke.isNumber(t)?this._configurationRepository.set(e,t):this._configurationRepository.set(e,n)}}]);function rc(e){return rc="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},rc(e)}function oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ic(r.key),r)}}function ic(e){var t=function(e){if("object"!=rc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rc(t)?t:t+""}var ac=function(e,t){return t&&oc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset()}),[{key:"setLogLevel",value:function(e){this._logLevel=e}},{key:"add",value:function(e){var t=e.data;if(!t)throw new Error("Unable to add log message. Missing data field");(!t.level||t.level>=this._logLevel)&&this._Q.push(t)}},{key:"take",value:function(){var e=this._Q;return this.reset(),e}},{key:"reset",value:function(){this._Q=[],this.setLogLevel(void 0===this._logLevel?20:this._logLevel)}},{key:"isEmpty",value:function(){return 0===this._Q.length}},{key:"filterOutByLogLevel",value:function(e){this._Q=this._Q.filter((function(t,n,r){return t.level>=e}))}}]);function uc(e){return uc="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},uc(e)}function sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach((function(t){lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t,n){return(t=pc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pc(r.key),r)}}function pc(e){var t=function(e){if("object"!=uc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uc(t)?t:t+""}var dc=function(e,t){return t&&fc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sn=0,this.url=n,this.logAggregator=t,this.msgPrefix=r}),[{key:"log",value:function(e,t,n){this.logAggregator.add({eventName:"log",data:cc(cc({msg:this.msgPrefix+e},n),{},{url:this.url,level:t,sn:this.sn++})})}},{key:"setLogLevel",value:function(e){this.logAggregator instanceof ac&&this.logAggregator.setLogLevel(e)}},{key:"clearLogEntriesByLogLevel",value:function(e){this.logAggregator.filterOutByLogLevel(e)}}]);function yc(e){return yc="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},yc(e)}function hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mc(r.key),r)}}function mc(e){var t=function(e){if("object"!=yc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yc(t)?t:t+""}function vc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vc=function(){return!!e})()}
2function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bc(e)}function gc(e,t){return gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gc(e,t)}var _c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=bc(t),function(e,t){if(t&&("object"==yc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vc()?Reflect.construct(t,n||[],bc(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gc(e,t)}(t,e),function(e,t){return t&&hc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"add",value:function(e){this.addToQueue(e.eventName,e.data)}},{key:"filterOutByLogLevel",value:function(e){this.filterOut((function(t){return t.data.level>=e}))}}])}(Tt);function wc(e){return wc="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},wc(e)}function Sc(e){return function(e){if(Array.isArray(e))return kc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return kc(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)?kc(e,t):void 0}}(e)||function(){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 kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oc(r.key),r)}}function Oc(e){var t=function(e){if("object"!=wc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wc(t)?t:t+""}var Pc=function(e,t){return t&&Ec(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._isSecureSameSite=n.get(P.enableSameSiteNoneAndSecureCookies),this._restrictedCookieDomains=r.getRestrictedCookieDomains(),this._crossBrandSharedCookieDomain=r.getCrossBrandSharedCookieDomain(),this._utils=t}),[{key:"getCookie",value:function(e){return this._utils.StorageUtils.getCookie(e)}},{key:"setCrossBrandCookie",value:function(e,t,n){return this._utils.StorageUtils.setCo
2okie(e,t,n,this._isSecureSameSite,this._restrictedCookieDomains)}},{key:"setCookie",value:function(e,t,n){var r=this._getEffectiveRestrictedCookieDomains();return this._utils.StorageUtils.setCookie(e,t,n,this._isSecureSameSite,r)}},{key:"setExpirationInCookie",value:function(e,t){var n=this._getEffectiveRestrictedCookieDomains();return this._utils.StorageUtils.setExpirationInCookie(e,t,this._isSecureSameSite,n)}},{key:"_getEffectiveRestrictedCookieDomains",value:function(){return[].concat(Sc(this._restrictedCookieDomains||[]),Sc(this._crossBrandSharedCookieDomain?[this._crossBrandSharedCookieDomain]:[]))}},{key:"getFromLocalStorage",value:function(e){return this._utils.StorageUtils.getFromLocalStorage(e)}},{key:"saveToLocalStorage",value:function(e,t,n){return this._utils.StorageUtils.saveToLocalStorage(e,t,n)}},{key:"setExpirationInLocalStorage",value:function(e,t){return this._utils.StorageUtils.setExpirationInLocalStorage(e,t)}},{key:"removeFromLocalStorage",value:function(e){return this._utils.StorageUtils.removeFromLocalStorage(e)}},{key:"removeCookie",value:function(e){return this._utils.StorageUtils.removeCookie(e)}}]);function Tc(e){return Tc="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},Tc(e)}function Cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jc(r.key),r)}}function jc(e){var t=function(e){if("object"!=Tc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tc(t)?t:t+""}var Mc=function(e,t){return t&&Cc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._workerCommunicator=t,this._brandRepository=n}),[{key:"set",value:function(e){this._validateBrand(e)&&(this._brandRepository.set(e),this._workerCommunicator.sendAsync("updateBrandCommand",{brand:e}))}},{key:"update",value:function(){var e=this._brandRepository.get();e&&this.set(e)}},{key:"_validateBrand",value:function(e){return e.length>200?(pe.warn("The received brand name length is greater than 200. It is illegal. Ignoring the API call"),!1):!!/^[a-zA-Z0-9.\-,_ ]+$/.test(e)||(pe.warn("The received brand contains illegal characters. The legal characters are: A-Za-z0-9.-,_ and space. Ignoring the API call"),!1)}}]);function xc(e){return xc="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},xc(e)}function Rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Ac(e){var t=function(e){if("object"!=xc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xc(t)?t:t+""}var Bc=function(e,t){return t&&Rc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.brandKey="brand",this._utils=t,this._storageUtilsWrapper=n,this.COOKIE_EXPIRATION_IN_MILLISECONDS=this._utils.minutesToMilliseconds(525600)}),[{key:"get",value:function(){var e=this._storageUtilsWrapper.getCookie(this.brandKey),t=this._validateBrand(e);if(!t){pe.debug("Brand was not found in cookie. Trying to get it from the local storage.");var n=this._storageUtilsWrapper.getFromLocalStorage(this.brandKey);
2if(!(t=this._validateBrand(n)))return pe.debug("Brand was not found in local storage."),null}return t}},{key:"set",value:function(e){var t=this._validateBrand(e);t?(this._storageUtilsWrapper.saveToLocalStorage(this.brandKey,t)||pe.error("Failed saving brand ".concat(e," to local storage.")),this._storageUtilsWrapper.setCookie(this.brandKey,t,this.COOKIE_EXPIRATION_IN_MILLISECONDS)||pe.error("Failed saving brand ".concat(e," to cookie."))):pe.error("Brand ".concat(e," is invalid. Will not save it."))}},{key:"_validateBrand",value:function(e){return e||null}}]);function Dc(e){return Dc="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},Dc(e)}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lc(r.key),r)}}function Lc(e){var t=function(e){if("object"!=Dc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dc(t)?t:t+""}var Fc=function(e,t){return t&&Ic(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._messageBus=t,this._muidService=n,this._clientEventService=r,this._workerCommunicator=o,this._messageBus.subscribe(Kn,this._handler.bind(this),!0),this._workerCommunicator.addMessageListener("ServerRestoredMuidEvent",this._publish.bind(this),!0)}),[{key:"_handler",value:function(e){var t;null===(t=this._muidService)||void 0===t||t.updateMuid(e),this._clientEventService.publishRestoredMuidEvent(e)}},{key:"_publish",value:function(e){this._messageBus.publish(Kn,e)}}]);function Nc(e){return Nc="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},Nc(e)}function Uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gc(r.key),r)}}function Gc(e){var t=function(e){if("object"!=Nc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nc(t)?t:t+""}var Wc=function(e,t){return t&&Uc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t}),[{key:"onConfigUpdate",value:function(e){var t=e.get(P.enableCoordinatesMasking);this._setConfigurationKey(t)}},{key:"updateConfig",value:function(e){this._handleConfigurationUpdate(e)}},{key:"_handleConfigurationUpdate",value:function(e){Ke.isBoolean(e)?(pe.info("Set coordinates masking API was called, is enabled: ".concat(e)),this._setConfigurationKey(e)):pe.warn("Invalid argument type: ".concat(e))}},{key:"_setConfigurationKey",value:function(e){this._configurationRepository.set(P.enableCoordinatesMasking,e)}}]);function Qc(e){return Qc="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},Qc(e)}function Hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vc(r.key),r)}}function Vc(e){var t=function(e){if("object"!=Qc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qc(t)?t:t+""}var zc="cdAgentId",Kc=function(e,t){return t&&Hc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._storageUtilsWrapper=t,this._agentId=null,this._loadAgentIdFromStorage()}),[{key:"get",value:function(){return this._agentId}},{key:"set",value:function(e){if(!e||"string"!=typeof e)throw new Error("Invalid agentId value");this._agentId=e,this._saveAgentIdToStorage()}},{key:"_saveAgentIdToStorage",value:function(){this._storageUtilsWrapper.saveToLocalStorage(zc,this._agentId)}},{key:"_loadAgentIdFromStorage",value:function(){this._agentId=this._storageUtilsWrapper.getFromLocalStorage(zc)||null}}]);function qc(e){return qc="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},qc(e)}
2function Jc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yc(r.key),r)}}function Yc(e){var t=function(e){if("object"!=qc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qc(t)?t:t+""}var Xc=function(e,t){return t&&Jc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._agentIdCache=t,this._serverWorkerCommunicator=n}),[{key:"updateAgentIdWithServer",value:function(){var e=this._agentIdCache.get();this._serverWorkerCommunicator.sendAsync("updateAgentIdCommand",{agentId:e})}},{key:"set",value:function(e){if(!e)throw new Error("Invalid agentId value of undefined");this._agentIdCache.set(e)}}]);function Zc(e){return Zc="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},Zc(e)}function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sl(r.key),r)}}function rl(e,t,n){return t&&nl(e.prototype,t),n&&nl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ol(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ol=function(){return!!e})()}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},il(e)}function al(e,t){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},al(e,t)}function ul(e,t,n){return(t=sl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sl(e){var t=function(e){if("object"!=Zc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zc(t)?t:t+""}var cl={configKey:"isElementsEvent",isDefault:!0,shouldRunPerContext:!0,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},ll={input:0,initial:1,focus:2,blur:3,change:4,click:5,submit:6},fl=["eventSequence","timestamp","eventType","isTrusted","elementHash","length","elementValues","selected","hashedValue","relativeTime"],pl=function(e){function t(e){var n;return tl(this,t),ul(n=function(e,t,n){return t=il(t),function(e,t){if(t&&("object"==Zc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ol()?Reflect.construct(t,n||[],il(e).constructor):t.apply(e,n))}(this,t),"mutationMessageHandler",(function(e){var t,r;e.browserContext&&(n._inputEvents.addOnLoadInputData(e.browserContext,!0),n._inputEvents.bind(e.browserContext),n._clickEvents.addOnLoadInputData(e.browserContext,!0),n._clickEvents.bind(e.browserContext),n._selectElementEvents.bind(e.browserContext),n._formEvents.bind(e.browserContext),null===(t=n._customInputEvents)||void 0===t||t.addOnLoadInputData(e.browserContext,!0),null===(r=n._customInputEvents)||void 0===r||r.bind(e.browserContext))})),ul(n,"startFeature",(function(e){var t,r;n._inputEvents.addOnLoadInputData(e,!1),n._inputEvents.bind(e),n._clickEvents.addOnLoadInputData(e,!1),n._clickEvents.bind(e),n._selectElementEvents.bind(e),null===(t=n._customInputEvents)||void 0===t||t.addOnLoadInputData(e,!1),null===(r=n._customInputEvents)||void 0===r||r.bind(e),n._formEvents.bind(e),n._configurationRepository.get(P.isMutationObserver)&&n._mutationEmitter&&(n._mutationEmitter.startObserver(e),n._jQueryElementListenerSiteMapper.initTracking())})),ul(n,"_onSiteMapperMatch",(function(e){var t=e.selector;if(t)try{var r=window.document.querySelector(t);if(!r)return void pe.debug("ElementEvents._onSiteMapperMatch - selector:".concat(JSON.stringify(t)," not found on page"));n._domUtils.matches(r,n._inputSelectors)?n._jqueryEventHandler.bindInputEvents(r):n._domUtils.matches(r,n._onClickSelectors)?n._jqueryEventHandler.bindOnClickEvents(r):n._domUtils.matches(r,n._onSelectSelectors)?n._jqueryEventHandler.bindOnChangeEvents(r):n._domUtils.matches(r,n._onFormSelectors)?n._jqueryEventHandler.bindOnFormsEvents(r):pe.error("ElementEvents._onSiteMapperMatch - Unable to match the element with selector:\n ".concat(JSON.stringify(t)," to any selectors group. Aborting jQuery element listening process."))}catch(e){pe.error("ElementEvents._onSiteMapperMatch - ".concat(e.message),e)}else pe.warn("ElementEvents._onSiteMapperMatch - No selector defined for match. Aborting jQuery element listening process.")})),n._configurationRepository=e.configurationRepository,n._utils=e.utils,n._domUtils=e.domUtils,n._dataQ=e.dataQ,n._elements=e.elements,n._jQueryElementListenerSiteMapper=e.jQueryElementListenerSiteMapper,n._jQueryElementListenerSiteMapper.updateObserver(n._onSiteMapperMatch),n._messageBus=e.messageBus,n._mutationEmitter=e.mutationEmitter,n._messageBus.subscribe(Jn,n.mutationMessageHandler),n._StandardInputEventsEmitter=e.StandardInputEventsEmitter,n._SyntheticMaskInputEventsHandler=e.SyntheticMaskInputEventsHandler,n._SyntheticAutotabInputEventsHandler=e.SyntheticAutotabInputEventsHandler,n._maskingService=e.maskingService,n._categoryService=e.categoryService,n._inputEvents=new e.InputEvents(n._elements,n.sendToQueue.bind(n),n._utils,n._messageBus,n._StandardInputEventsEmitter,n._SyntheticMaskInputEventsHandler,n._SyntheticAutotabInputEventsHandler,n._maskingService,n._categoryService,e.maxShadowDepth,e.iframeLoadingTimeout),n._inputSelectors=e.inputSelectors,n._StandardOnClickEventsEmitter=e.StandardOnClickEventsEmitter,n._configurationRepository.get(P.parentElementSelector)&&n._configurationRepository.get(P.childElementWithCustomAttribute)&&n._configurationRepository.get(P.elementDataAttribute)&&(n._StandardCustomInputEmitter=e.StandardCustomInputEmitter,n._inputElementSettings={parentElementSelector:n._configurationRepository.get(P.parentElementSelector),childElementWithCustomAttribute:n._configurationRepository.get(P.childElementWithCustomAttribute),elementDataAttribute:n._configurationRepository.get(P.elementDataAttribute),customButtons:n._configurationRepository.get(P.customButtons)},n._customInputEvents=new e.CustomInputEvents(n._elements,n.sendToQueue.bind(n),n._utils,n._messageBus,n._StandardCustomInputEmitter,n._maskingService,n.inputElementSettings=n._inputElementSettings)),n._clickEvents=new e.ClickEvents(n.sendToQueue.bind(n),n._utils,n._messageBus,n._configurationRepository,n._StandardOnClickEventsEmitter,n._maskingService,n._elements,e.maxShadowDepth,e.iframeLoadingTimeout),n._onClickSelectors=e.onClickSelectors,n._StandardOnChangeEventsEmitter=e.StandardOnChangeEventsEmitter,n._elementFocusEventEmitter=e.ElementFocusEventsEmitter,n._elementBlurEventEmitter=e.ElementBlurEventsEmitter,n._selectElementEvents=new e.SelectElementEvents(n.sendToQueue.bind(n),n._utils,n._messageBus,n._StandardOnChangeEventsEmitter,n._elementFocusEventEmitter,n._elementBlurEventEmitter,n._configurationRepository,n._maskingService,e.maxShadowDepth,e.iframeLoadingTimeout),n._onSelectSelectors=e.onSelectSelectors,n._StandardOnFormEventsEmitter=e.StandardOnFormEventsEmitter,n._formEvents=new e.FormEvents(n.sendToQueue.bind(n),n._messageBus,n._StandardOnFormEventsEmitter,e.maxShadowDepth,e.iframeLoadingTimeout),n._onFormSelectors=e.onFormSelectors,n._jqueryEventHandler=e.JqueryElementsHandler,n._maxElemValLength=200,n._hashTruncationLength=n._configurationRepository.get("elementHashTruncationLength")||2,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&al(e,t)}(t,e),rl(t,[{key:"stopFeature",value:function(e){var t;this._inputEvents.unbind(e),this._clickEvents.unbind(e),this._selectElementEvents.unbind(e),null===(t=this._customInputEvents)||void 0===t||t.unbind(e),this._formEvents.unbind(e),this._jQueryElementListenerSiteMapper.stopTracking(),this._mutationEmitter.stopObserver(e)}},{key:"updateFeatureConfig",value:function(e){this._configurationRepository.get("isMutationObserver")&&this._mutationEmitter&&(this._mutationEmitter.startObserver(e),this._jQueryElementListenerSiteMapper.onConfigUpdate(this._configurationRepository)
2),this._hashTruncationLength=void 0!==this._configurationRepository.get("elementHashTruncationLength")?this._configurationRepository.get("elementHashTruncationLength"):this._hashTruncationLength,this._elements.updateFeatureConfig(),this._selectElementEvents.updateSettings(e)}},{key:"sendToQueue",value:function(e,t){var n=Dr[e.isTrusted],r=this.getEventTimestamp(e),o=this.getTimestampFromEvent(e),i=ll[e.type];this._utils.isUndefinedNull(i)&&(i=-1);var a=this._elements.getElementHashFromEvent(e),u=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();(t=t||{}).elementValues&&t.elementValues.length>this._maxElemValLength&&(t.elementValues="");var s=el(el({},t),{eventType:i,eventSequence:u,timestamp:r,elementHash:a,isTrusted:n,hashedValue:"",relativeTime:o});this._dataQ.addToQueue("element_events",this._utils.convertToArrayByMap(fl,s),!0)}}],[{key:"getDefaultSettings",value:function(){return cl}},{key:"Builder",get:function(){var e=rl((function e(t,n,r,o,i,a){tl(this,e),this.configurationRepository=t,this.utils=n,this.domUtils=r,this.elements=o,this.dataQ=i,this.maxShadowDepth=a.getMaxShadowDepth(),this.iframeLoadingTimeout=a.getIframeLoadingTimeout()}),[{key:"withMessageBus",value:function(e){return this.messageBus=e,this}},{key:"withMutationEmitter",value:function(e){return this.mutationEmitter=e,this}},{key:"withjQueryElementListenerSiteMapper",value:function(e){return this.jQueryElementListenerSiteMapper=e,this}},{key:"withjQueryElementsHandler",value:function(e){return this.JqueryElementsHandler=e,this}},{key:"withInputEvents",value:function(e,t,n,r){return this.InputEvents=e,this.inputSelectors=t,this.maskingService=n,this.categoryService=r,this}},{key:"withStandardInputEventsEmitter",value:function(e){return this.StandardInputEventsEmitter=e,this}},{key:"withSyntheticMaskInputEventsHandler",value:function(e){return this.SyntheticMaskInputEventsHandler=e,this}},{key:"withSyntheticAutotabInputEventsHandler",value:function(e){return this.SyntheticAutotabInputEventsHandler=e,this}},{key:"withClickEvents",value:function(e,t){return this.ClickEvents=e,this.onClickSelectors=t,this}},{key:"withStandardOnClickEventsEmitter",value:function(e){return this.StandardOnClickEventsEmitter=e,this}},{key:"withSelectElementEvents",value:function(e,t){return this.SelectElementEvents=e,this.onSelectSelectors=t,this}},{key:"withStandardOnChangeEventsEmitter",value:function(e){return this.StandardOnChangeEventsEmitter=e,this}},{key:"withElementFocusEventsEmitter",value:function(e){return this.ElementFocusEventsEmitter=e,this}},{key:"withElementBlurEventsEmitter",value:function(e){return this.ElementBlurEventsEmitter=e,this}},{key:"withFormEvents",value:function(e,t){return this.FormEvents=e,this.onFormSelectors=t,this}},{key:"withStandardOnFormEventsEmitter",value:function(e){return this.StandardOnFormEventsEmitter=e,this}},{key:"withCustomInputEventEmitter",value:function(e,t){return this.CustomInputEvents=e,this.StandardCustomInputEmitter=t,this}},{key:"build",value:function(){return new t(this)}}]);return e}}])}(Br),dl=pl;function yl(e){return yl="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},yl(e)}function hl(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return ml(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(ml(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ml(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ml(f,"constructor",c),ml(c,"constructor",s),s.displayName="GeneratorFunction",ml(c,o,"GeneratorFunction"),ml(f),ml(f,o,"Generator"),ml(f,r,(function(){return this})),ml(f,"toString",(function(){return"[object Generator]"})),(hl=function(){return{w:i,m:p}})()}function ml(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ml=function(e,t,n,r){function i(t,n){ml(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ml(e,t,n,r)}function vl(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pl(r.key),r)}}function wl(e,t,n){return t&&_l(e.prototype,t),n&&_l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sl=function(){return!!e})()}function kl(e){return kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kl(e)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},El(e,t)}function Ol(e,t,n){return(t=Pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e){var t=function(e){if("object"!=yl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yl(t)?t:t+""}var Tl={configKey:"isClipboardEvent",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},Cl={copy:0,paste:1,cut:2},jl=["eventSequence","timestamp","clipboardEventType","elementHash","copiedText","isAfterAsyncTextEmpty","isOSTextEmpty","isEventTextEqualsOS"],Ml=function(e){function t(e){var n;return gl(this,t),Ol(n=function(e,t,n){return t=kl(t),function(e,t){if(t&&("object"==yl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sl()?Reflect.construct(t,n||[],kl(e).constructor):t.apply(e,n))}(this,t),"startFeature",(function(e){try{e.traverseRoots(n._maxShadowDepth,n._iframeLoadingTimeout,(function(e){n._cutEventEmitter.start(e),n._copyEventEmitter.start(e),n._pasteEventEmitter.start(e)})),n._messageBus.subscribe(ur,n._handleClipboardEvent),n._messageBus.subscribe(sr,n._handleClipboardEvent),n._messageBus.subscribe(cr,n._handleClipboardEvent)}catch(e){pe.error("Failed starting the ClipboardEvents feature. msg: ".concat(e.message),e)}})),Ol(n,"_handleClipboardEvent",(function(e){n._sendToQueue(e)})),Ol(n,"_sendToQueue",(function(e){try{var t=n.getEventTimestamp(e),r=n._elements.getElementHashFromEvent(e),o=n._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=n._getClipboardTextFromEvent(e);i=i||"";var a=Cl[e.type];
2n._utils.isUndefinedNull(a)&&(a=-1);var u={textValue:i,eventSeq:o,time:t,element:r,type:a};"paste"===(null==e?void 0:e.type)&&n._collectAgenticPasteSignal?n._getPasteDataFromEvent(e,i).then((function(e){var t=e.features;return n._finalizeAndSend(u,t)})).catch((function(){return n._finalizeAndSend(u)})):n._finalizeAndSend(u)}catch(e){pe.error("Failed handling ClipboardEvent. msg: ".concat(e.message),e)}})),n._utils=e.utils,n._dataQueue=e.dataQueue,n._elements=e.elements,n._messageBus=e.messageBus,n._configurationRepository=e.configurationRepository,n._collectAgenticPasteSignal=e.collectAgenticPasteSignal,n._cutEventEmitter=e.cutEventEmitter,n._copyEventEmitter=e.copyEventEmitter,n._pasteEventEmitter=e.pasteEventEmitter,n._maxShadowDepth=e.maxShadowDepth,n._iframeLoadingTimeout=e.iframeLoadingTimeout,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}(t,e),wl(t,[{key:"stopFeature",value:function(e){var t=this;try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._cutEventEmitter.stop(e),t._copyEventEmitter.stop(e),t._pasteEventEmitter.stop(e)})),this._messageBus.unsubscribe(ur,this._handleClipboardEvent),this._messageBus.unsubscribe(sr,this._handleClipboardEvent),this._messageBus.unsubscribe(cr,this._handleClipboardEvent)}catch(e){pe.error("Failed stopping the ClipboardEvents feature. msg: ".concat(e.message),e)}}},{key:"_finalizeAndSend",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isAfterAsyncTextEmpty:null,isOSTextEmpty:null,isEventTextEqualsOS:null},n=e.textValue,r=e.eventSeq,o=e.time,i=e.element,a=e.type,u=n;""!==u&&(u=u.replace(/[\d]/g,"1").replace(/[a-zA-Z]/g,"a").replace(/[^a-zA-Z\d]/g,"*")),this._dataQueue.addToQueue("clipboard_events",this._utils.convertToArrayByMap(jl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach((function(t){Ol(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({eventSequence:r,timestamp:o,elementHash:i,copiedText:u,clipboardEventType:a},t)))}},{key:"_getClipboardTextFromEvent",value:function(e){return e.clipboardData?e.clipboardData.getData("text"):window.clipboardData?window.clipboardData.getData("text"):""}},{key:"_getPasteDataFromEvent",value:(n=hl().m((function e(t,n){var r,o,i,a,u,s,c;return hl().w((function(e){for(;;)switch(e.p=e.n){case 0:if(o=!(null===(r=navigator)||void 0===r||null===(r=r.clipboard)||void 0===r||!r.readText),i="",!o){e.n=4;break}return e.p=1,e.n=2,navigator.clipboard.readText();case 2:i=e.v,e.n=4;break;case 3:e.p=3,e.v,i="";case 4:return a=this._getClipboardTextFromEvent(t),u=String(n||"").trim(),s=String(a||"").trim(),c=String(i||"").trim(),e.a(2,{features:{isAfterAsyncTextEmpty:""===s,isOSTextEmpty:""===c,isEventTextEqualsOS:u===c}})}}),e,this,[[1,3]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){vl(i,r,o,a,u,"next",e)}function u(e){vl(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e,t){return r.apply(this,arguments)})},{key:"updateFeatureConfig",value:function(){this._collectAgenticPasteSignal=this._configurationRepository.get(P.collectAgenticPasteSignal)}}],[{key:"getDefaultSettings",value:function(){return Tl}},{key:"Builder",get:function(){return wl((function e(t,n,r,o,i){gl(this,e),this.utils=t,this.dataQueue=r,this.elements=n,this.maxShadowDepth=o.getMaxShadowDepth(),this.iframeLoadingTimeout=o.getIframeLoadingTimeout(),this.configurationRepository=i,this.collectAgenticPasteSignal=this.configurationRepository.get(P.collectAgenticPasteSignal)}),[{key:"withMessageBus",value:function(e){return this.messageBus=e,this}},{key:"withCutEventEmitter",value:function(e){return this.cutEventEmitter=e,this}},{key:"withCopyEventEmitter",value:function(e){return this.copyEventEmitter=e,this}},{key:"withPasteEventEmitter",value:function(e){return this.pasteEventEmitter=e,this}},{key:"build",value:function(){return new t(this)}}])}}]);var n,r}(Br),xl=Ml;function Rl(e){return Rl="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},Rl(e)}function Al(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ll(r.key),r)}}function Bl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bl=function(){return!!e})()}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(e)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Il(e,t)}function Ll(e){var t=function(e){if("object"!=Rl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rl(t)?t:t+""}var Fl={configKey:"isOrientationEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},Nl=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=Ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(a=function(e,t,n){return t=Dl(t),function(e,t){if(t&&("object"==Rl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bl()?Reflect.construct(t,n||[],Dl(e).constructor):t.apply(e,n))}(this,t),"_handleDeviceOrientationEvent",(function(e){var t=a._utils.dateNow();if(e&&t-a._lastTime>a._samplePeriod){var n=e.absolute||!1,r=a._utils.isUndefinedNull(e.alpha)?0:a._utils.cutDecimalPointDigits(e.alpha,4),o=a._utils.isUndefinedNull(e.beta)?0:a._utils.cutDecimalPointDigits(e.beta,4),i=a._utils.isUndefinedNull(e.gamma)?0:a._utils.cutDecimalPointDigits(e.gamma,4);if(r!==a._lastAlpha||o!==a._lastBeta||i!==a._lastGamma){pe.isDebug()&&pe.debug("OrientationEvents:_onOrientationEvent, sending data: timestamp: ".concat(t,"\n alpha,betta,gamma: ").concat(r,",").concat(o,",").concat(i,",prevTime:").concat(a._lastTime)),a._lastTime=t,a._lastAlpha=r,a._lastBeta=o,a._lastGamma=i;var u=a._utils.StorageUtils.getAndUpdateEventSequenceNumber();a._dataQ.addToQueue("orientation_events",[null,u,t,n,r,o,i])}}})),a._dataQ=r,a._configurationRepository=e,a._utils=n,a._samplePeriod=a._configurationRepository.get(P.orientationEventsSamplePeriod)||0,a._lastAlpha=0,a._lastBeta=0,a._lastGamma=0,a._lastTime=0,a._messageBus=o,a._deviceOrientationEventEmitter=i,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Il(e,t)}(t,e),function(e,t,n){return t&&Al(e.prototype,t),n&&Al(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){window.DeviceOrientationEvent&&(this._deviceOrientationEventEmitter.start(),this._messageBus.subscribe(lr,this._handleDeviceOrientationEvent))}},{key:"stopFeature",value:function(){window.DeviceOrientationEvent&&(this._deviceOrientationEventEmitter.stop(),this._messageBus.unsubscribe(lr,this._handleDeviceOrientationEvent))}},{key:"updateFeatureConfig",value:function(){var e=this._configurationRepository.get(P.orientationEventsSamplePeriod);this._samplePeriod=void 0!==e?e:this._samplePeriod}}],[{key:"getDefaultSettings",value:function(){return Fl}}])}(Br),Ul=Nl;function Gl(e){return Gl="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},Gl(e)}function Wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zl(r.key),r)}}function Ql(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ql=function(){return!!e})()}function Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hl(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}function zl(e){var t=function(e){if("object"!=Gl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gl(t)?t:t+""}var Kl={configKey:"isBeforeInstallPrompt",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},ql=["eventSequence","timestamp","platforms","relativeTime"],Jl=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=zl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i=function(e,t,n){return t=Hl(t),function(e,t){if(t&&("object"==Gl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ql()?Reflect.construct(t,n||[],Hl(e).constructor):t.apply(e,n))}(this,t),"_onBeforeInstallPrompt",(function(e){var t=i._utils.StorageUtils.getAndUpdateEventSequenceNumber(),n=i.getEventTimestamp(),r=i.getTimestampFromEvent(e),o=e.platforms?e.platforms.join(","):"";i._dataQueue.addToQueue("before_install_prompt",i._utils.convertToArrayByMap(ql,{eventSequence:t,timestamp:n,platforms:o,relativeTime:r}))})),i._messageBus=r,i._eventEmitter=o,i._dataQueue=e,i._utils=n,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}(t,e),function(e,t,n){return t&&Wl(e.prototype,t),n&&Wl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._eventEmitter.start(window),this._messageBus.subscribe(fr,this._onBeforeInstallPrompt)}},{key:"stopFeature",value:function(){this._eventEmitter.stop(window),this._messageBus.unsubscribe(fr,this._onBeforeInstallPrompt)}}],[{key:"getDefaultSettings",value:function(){return Kl}}])}(Br),Yl=Jl;function Xl(e){return Xl="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},Xl(e)}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,af(r.key),r)}}function ef(e,t,n){return t&&$l(e.prototype,t),n&&$l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tf=function(){return!!e})()}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nf(e)}function rf(e,t){return rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rf(e,t)}function of(e,t,n){return(t=af(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e){var t=function(e){if("object"!=Xl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xl(t)?t:t+""}var uf={configKey:"isWindowEvents",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},sf={DOMContentLoaded:0,scroll:1,resize:2,focus:3,blur:4,tabFocus:5,tabBlur:6},cf=["eventSequence","timestamp","eventType","isTrusted","screenWidth","screenHeight","clientWidth","clientHeight","documentWidth","documentHeight","scrollTop","scrollLeft","windowInnerWidth","windowInnerHeight","windowOuterWidth","windowOuterHeight"],lf=function(e){function t(e){var n;return Zl(this,t),of(n=function(e,t,n){return t=nf(t),function(e,t){if(t&&("object"==Xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tf()?Reflect.construct(t,n||[],nf(e).constructor):t.apply(e,n))}(this,t),"startFeature",(function(e){try{n._resizeEventEmitter.start(e.Context),n._messageBus.subscribe(yr,n._onWindowEvent),n._focusEventEmitter.start(e.Context),n._messageBus.subscribe(pr,n._onWindowEvent),n._blurEventEmitter.start(e.Context),n._messageBus.subscribe(dr,n._onWindowEvent),n._domContentLoadedEventEmitter.start(e.getDocument()),n._messageBus.subscribe(hr,n._onWindowEvent),n._visibilityChangeEventEmitter.start(e.getDocument()),n._messageBus.subscribe(mr,n._onWindowEvent),n._configurationRepository.get(P.isScrollCollect)&&(n._scrollEventEmitter.start(e.Context),n._messageBus.subscribe(vr,n._onWindowEvent))}catch(e){pe.error("Failed starting the WindowEventCollector. msg: ".concat(e.message),e)}})),of(n,"stopFeature",(function(e){try{n._resizeEventEmitter.stop(e.Context),n._messageBus.unsubscribe(yr,n._onWindowEvent),n._focusEventEmitter.stop(e.Context),n._messageBus.unsubscribe(pr,n._onWindowEvent),n._blurEventEmitter.stop(e.Context),n._messageBus.unsubscribe(dr,n._onWindowEvent),n._domContentLoadedEventEmitter.stop(e.getDocument()),n._messageBus.unsubscribe(hr,n._onWindowEvent),n._visibilityChangeEventEmitter.stop(e.getDocument()),n._messageBus.unsubscribe(mr,n._onWindowEvent),n._configurationRepository.get(P.isScrollCollect)&&(n._scrollEventEmitter.stop(e.Context),n._messageBus.unsubscribe(vr,n._onWindowEvent))}catch(e){pe.error("Failed stopping the ClipboardEvents feature. msg: ".concat(e.message),e)}})),of(n,"updateFeatureConfig",(function(e){n._configurationRepository.get(P.isScrollCollect)?n._configurationRepository.get(P.isScrollCollect)&&(n._scrollEventEmitter.start(e.Context),n._messageBus.subscribe(vr,n._onWindowEvent)):(n._scrollEventEmitter.stop(e.Context),n._messageBus.unsubscribe(vr,n._onWindowEvent))})),of(n,"_onWindowEvent",(function(e){try{n._sendToQueue(e)}catch(e){pe.error("An error has occurred while sending window event. ".concat(e.message),e)}})),of(n,"_sendToQueue",(function(e){if(!e)throw new Error("Invalid window event received.");var t,r=Dr[void 0];"DOMContentLoaded"===e.type?t=(new Date).getTime():(t=n.getEventTimestamp(e),r=Dr[e.isTrusted]
2),pe.isDebug()&&(pe.trace("got event "+e.type+" at time "+t),pe.trace("adding to queue - screen(width,height): "+screen.width+","+screen.height+" window(width,height): "+window.innerWidth+","+window.innerHeight));var o=n._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i="visibilitychange"!==e.type?e.type:"hidden"===document.visibilityState?"tabBlur":"tabFocus",a=sf[i];null!=a&&void 0!==a||(a=-1),n._dataQueue.addToQueue("window_events",n._utils.convertToArrayByMap(cf,{eventType:a,eventSequence:o,timestamp:t,screenWidth:screen.width?Math.round(screen.width):-1,screenHeight:screen.height?Math.round(screen.height):-1,clientWidth:window.innerWidth?Math.round(window.innerWidth):-1,clientHeight:window.innerHeight?Math.round(window.innerHeight):-1,documentWidth:document.body&&document.body.clientWidth?Math.round(document.body.clientWidth):-1,documentHeight:document.body&&document.body.clientHeight?Math.round(document.body.clientHeight):-1,scrollTop:document.body&&document.body.scrollTop?Math.round(document.body.scrollTop):0,scrollLeft:document.body&&document.body.scrollLeft?Math.round(document.body.scrollLeft):0,windowInnerWidth:window.innerWidth?Math.round(window.innerWidth):-1,windowInnerHeight:window.innerHeight?Math.round(window.innerHeight):-1,windowOuterWidth:window.outerWidth?Math.round(window.outerWidth):-1,windowOuterHeight:window.outerHeight?Math.round(window.outerHeight):-1,isTrusted:r}))})),n._configurationRepository=e.configurationRepository,n._utils=e.utils,n._dataQueue=e.dataQueue,n._messageBus=e.messageBus,n._focusEventEmitter=e.focusEventEmitter,n._blurEventEmitter=e.blurEventEmitter,n._resizeEventEmitter=e.resizeEventEmitter,n._domContentLoadedEventEmitter=e.domContentLoadedEventEmitter,n._visibilityChangeEventEmitter=e.visibilityChangeEventEmitter,n._scrollEventEmitter=e.scrollEventEmitter,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rf(e,t)}(t,e),ef(t,null,[{key:"getDefaultSettings",value:function(){return uf}},{key:"Builder",get:function(){return ef((function e(t,n,r){Zl(this,e),this.configurationRepository=t,this.utils=n,this.dataQueue=r}),[{key:"withMessageBus",value:function(e){return this.messageBus=e,this}},{key:"withFocusEventEmitter",value:function(e){return this.focusEventEmitter=e,this}},{key:"withBlurEventEmitter",value:function(e){return this.blurEventEmitter=e,this}},{key:"withResizeEventEmitter",value:function(e){return this.resizeEventEmitter=e,this}},{key:"withDOMContentLoadedEventEmitter",value:function(e){return this.domContentLoadedEventEmitter=e,this}},{key:"withVisibilityChangeEventEmitter",value:function(e){return this.visibilityChangeEventEmitter=e,this}},{key:"withScrollEventEmitter",value:function(e){return this.scrollEventEmitter=e,this}},{key:"build",value:function(){return new t(this)}}])}}])}(Br);function ff(e){return ff="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},ff(e)}function pf(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return df(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(df(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,df(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,df(f,"constructor",c),df(c,"constructor",s),s.displayName="GeneratorFunction",df(c,o,"GeneratorFunction"),df(f),df(f,o,"Generator"),df(f,r,(function(){return this})),df(f,"toString",(function(){return"[object Generator]"})),(pf=function(){return{w:i,m:p}})()}function df(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}df=function(e,t,n,r){function i(t,n){df(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},df(e,t,n,r)}function yf(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function hf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yf(i,r,o,a,u,"next",e)}function u(e){yf(i,r,o,a,u,"throw",e)}a(void 0)}))}}function mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vf(r.key),r)}}function vf(e){var t=function(e){if("object"!=ff(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ff(t)?t:t+""}function bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bf=function(){return!!e})()}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gf(e)}function _f(e,t){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_f(e,t)}var wf="granted",Sf={configKey:"isAccelerometerEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},kf=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.navigator,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=gf(t),function(e,t){if(t&&("object"==ff(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bf()?Reflect.construct(t,n||[],gf(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,o._utils=n,o._dataQueue=r,o._storageUtils=o._utils.StorageUtils,o._navigator=i,o._window=a,o._samplePeriod=o._configurationRepository.get(P.accelerometerEventsSamplePeriod)||0,o._samplePeriodGyro=o._configurationRepository.get(P.gyroEventsSamplePeriod)||0,o._lastAccelerometerData={x:0,y:0,z:0,time:0},o._lastGyroData={alpha:0,beta:0,gamma:0,time:0},o._hasAccelerometerPermission=!1,o._hasGyroscopePermission=!1,o._onAccelerometerventFunc=o._onAccelerometerEvent.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_f(e,t)}(t,e),function(e,t,n){return t&&mf(e.prototype,t),n&&mf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_checkPermissions",value:(r=hf(pf().m((function e(){var t,n,r,o,i;return pf().w((function(e){for(;;)switch(e.p=e.n){case 0:if(null!==(t=this._navigator.permissions)&&void 0!==t&&t.query){e.n=1;break}return this._hasAccelerometerPermission=!0,this._hasGyroscopePermission=!0,pe.debug("Permissions API not available, defaulting to allowed access"),e.a(2);case 1:return e.p=1,e.n=2,this._navigator.permissions.query({name:"accelerometer"});case 2:n=e.v,this._hasAccelerometerPermission=n.state===wf,e.n=4;break;case 3:e.p=3,o=e.v,pe.warn("Failed to check accelerometer permission:",o),this._hasAccelerometerPermission=!0;case 4:return e.p=4,e.n=5,this._navigator.permissions.query({name:"gyroscope"});case 5:r=e.v,this._hasGyroscopePermission=r.state===wf,e.n=7;break;case 6:e.p=6,i=e.v,pe.warn("Failed to check gyroscope permission:",i),this._hasGyroscopePermission=!0;case 7:this._hasAccelerometerPermission||this._hasGyroscopePermission||pe.warn("Both accelerometer and gyroscope permissions are denied");case 8:return e.a(2)}}),e,this,[[4,6],[1,3]])}
2))),function(){return r.apply(this,arguments)})},{key:"_processAccelerometerData",value:function(e,t){if(e&&!(t-this._lastAccelerometerData.time<=this._samplePeriod)){var n=this._utils.isUndefinedNull(e.x)?-1:this._utils.cutDecimalPointDigits(e.x,4),r=this._utils.isUndefinedNull(e.y)?-1:this._utils.cutDecimalPointDigits(e.y,4),o=this._utils.isUndefinedNull(e.z)?-1:this._utils.cutDecimalPointDigits(e.z,4);if(n!==this._lastAccelerometerData.x||r!==this._lastAccelerometerData.y||o!==this._lastAccelerometerData.z){var i=this._storageUtils.getAndUpdateEventSequenceNumber();this._lastAccelerometerData={x:n,y:r,z:o,time:t},this._dataQueue.addToQueue("accelerometer_events",[null,i,t,n,r,o]),pe.isDebug()&&pe.debug("Accelerometer data: timestamp:".concat(t," x,y,z:").concat(n,",").concat(r,",").concat(o))}}}},{key:"_processGyroData",value:function(e,t,n){if(e&&!(n-this._lastGyroData.time<=this._samplePeriodGyro)){var r=this._utils.isUndefinedNull(e.alpha)?0:this._utils.cutDecimalPointDigits(e.alpha,4),o=this._utils.isUndefinedNull(e.beta)?0:this._utils.cutDecimalPointDigits(e.beta,4),i=this._utils.isUndefinedNull(e.gamma)?0:this._utils.cutDecimalPointDigits(e.gamma,4);if(r!==this._lastGyroData.alpha||o!==this._lastGyroData.beta||i!==this._lastGyroData.gamma){var a=this._storageUtils.getAndUpdateEventSequenceNumber();this._lastGyroData={alpha:r,beta:o,gamma:i,time:n},this._dataQueue.addToQueue("gyro_events",[null,a,n,t,r,o,i]),pe.isDebug()&&pe.debug("Gyro data: timestamp:".concat(n," alpha,beta,gamma:").concat(r,",").concat(o,",").concat(i))}}}},{key:"_onAccelerometerEvent",value:function(e){if(!e)return!0;var t=this._utils.dateNow();return this._hasAccelerometerPermission&&e.accelerationIncludingGravity&&this._processAccelerometerData(e.accelerationIncludingGravity,t),this._hasGyroscopePermission&&e.rotationRate&&this._processGyroData(e.rotationRate,e.absolute||!1,t),!0}},{key:"startFeature",value:(n=hf(pf().m((function e(){return pf().w((function(e){for(;;)switch(e.n){case 0:if(this._window.DeviceMotionEvent){e.n=1;break}return pe.debug("DeviceMotionEvent not supported in this environment"),e.a(2);case 1:return e.n=2,this._checkPermissions();case 2:this._hasAccelerometerPermission||this._hasGyroscopePermission?(this._utils.addEventListener(this._window,"devicemotion",this._onAccelerometerventFunc),pe.debug("Device motion event listener added successfully")):pe.warn("Device motion event listener not added due to missing permissions");case 3:return e.a(2)}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"stopFeature",value:function(){this._window.DeviceMotionEvent&&(this._utils.removeEventListener(this._window,"devicemotion",this._onAccelerometerventFunc),pe.debug("Device motion event listener removed"))}},{key:"updateFeatureConfig",value:function(){var e=this._configurationRepository.get(P.accelerometerEventsSamplePeriod),t=this._configurationRepository.get(P.gyroEventsSamplePeriod);void 0!==e&&(this._samplePeriod=e),void 0!==t&&(this._samplePeriodGyro=t),pe.debug("Updated sample periods - Accelerometer: ".concat(this._samplePeriod,", Gyro: ").concat(this._samplePeriodGyro))}}],[{key:"getDefaultSettings",value:function(){return Sf}}]);var n,r}(Br);function Ef(e){return Ef="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},Ef(e)}function Of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pf(r.key),r)}}function Pf(e){var t=function(e){if("object"!=Ef(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ef(t)?t:t+""}function Tf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tf=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cf(e)}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jf(e,t)}var Mf=["clientX","clientY"],xf=["screenX","screenY"],Rf=function(e,t,n){function r(e,t){var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}return{getScale:function(){return r(e[0],e[1])/r(t[0],t[1])},getFocusPoint:function(){return t=e[1],r=e[0],{x:(t[n[0]]+r[n[0]])/2,y:(t[n[
21]]+r[n[1]])/2};var t,r}}},Af={pointerdown:0,pointermove:1,pointerup:2},Bf={configKey:"isPinchZoomEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInSlave:!0,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},Df=["eventSequence","timestamp","focusX","focusY","scaleFactor"],If=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,n){return t=Cf(t),function(e,t){if(t&&("object"==Ef(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tf()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}(this,t))._utils=e,a._dataQ=r,a._elements=n,a._msgBus=o,a._evGesturesCache=[],a._prevEventDiff=-1,a._prevEvGestureSet=[],a._prevTouchEvents=[],a._onAllBrowsersPinchZoomEventBinded=a._onAllBrowsersPinchZoomEvent.bind(a),a._maxShadowDepth=i.getMaxShadowDepth(),a._iframeLoadingTimeout=i.getIframeLoadingTimeout(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jf(e,t)}(t,e),function(e,t,n){return t&&Of(e.prototype,t),n&&Of(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){this._bind(e)}},{key:"stopFeature",value:function(e){this._unbind(e)}},{key:"_addToCommunicationQueue",value:function(e,t,n,r){e!==Af.pointerdown&&e!==Af.pointerup||this._msgBus.publish("pinchEvent",{action:e});var o=this.getEventTimestamp(r),i=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._dataQ.addToQueue("pinch_events",this._utils.convertToArrayByMap(Df,{eventSequence:i,timestamp:o,focusX:n.x,focusY:n.y,scaleFactor:t}))}},{key:"_bind",value:function(e){var t,n=this;window.PointerEvent?t=["pointerdown","pointermove","pointerup"]:window.TouchEvent&&(t=["touchstart","touchend","touchcancel","touchmove"]),this._listeningToEvents=t,this._listeningToEvents&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){for(var t=0;t<n._listeningToEvents.length;t++)n._utils.addEventListener(e,n._listeningToEvents[t],n._onAllBrowsersPinchZoomEventBinded,!1,!1)}))}},{key:"_unbind",value:function(e){var t=this;this._listeningToEvents&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){for(var n=0;n<t._listeningToEvents.length;n++)t._utils.removeEventListener(e,t._listeningToEvents[n],t._onAllBrowsersPinchZoomEventBinded)})),this._evGesturesCache=[],this._prevEventDiff=-1}},{key:"_onAllBrowsersPinchZoomEvent",value:function(e){switch(e.type){case"pointerdown":this._onPointerDownEvent(e);break;case"pointermove":this._onPointerMoveEvent(e);break;case"pointerup":this._onPointerUpEvent(e);break;case"touchstart":this._onTouchStartEvent(e);break;case"touchend":this._onTouchEndEvent();break;case"touchmove":this._onTouchMoveEvent(e)}return!0}},{key:"_onPointerDownEvent",value:function(e){this._evGesturesCache.push(e)}},{key:"_onPointerMoveEvent",value:function(e){for(var t=0;t<this._evGesturesCache.length;t++)if(e.pointerId===this._evGesturesCache[t].pointerId){this._evGesturesCache[t]=e;break}if(2===this._evGesturesCache.length&&this._evGesturesCache[0].pointerId!==this._evGesturesCache[1].pointerId){var n=Math.abs(this._evGesturesCache[0].clientX-this._evGesturesCache[1].clientX);if(this._prevEventDiff>0&&(this._prevEventDiff,this._prevEventDiff,2===this._prevEvGestureSet.length)){var r=Rf(this._evGesturesCache,this._prevEvGestureSet,Mf),o=r.getScale();this._addToCommunicationQueue(Af[e.type],o,r.getFocusPoint(),e)}this._prevEventDiff=n,this._prevEvGestureSet=this._evGesturesCache.slice(0)}else this._evGesturesCache.length>2&&(this._evGesturesCache=[],this._prevEvGestureSet=[])}},{key:"_onPointerUpEvent",value:function(e){for(var t=0;t<this._evGesturesCache.length;t++)if(this._evGesturesCache[t].pointerId===e.pointerId){this._evGesturesCache.splice(t,1);break}this._evGesturesCache.length<2&&(this._prevEventDiff=-1,this._prevEvGestureSet=[])}},{key:"_onTouchStartEvent",value:function(e){this._prevTouchEvents[0]=e.touches.item(0),this._prevTouchEvents[1]=e.touches.item(1)}},{key:"_onTouchEndEvent",value:function(){this._prevTouchEvents=[]}},{key:"_onTouchMoveEvent",value:function(e){if(2===e.touches.length){if(2===this._prevTouchEvents.length){var t=[e.touches.item(0),e.touches.item(1)],n=Rf(t,this._prevTouchEvents.splice(0),xf),r=n.getScale();this._addToCommunicationQueue(Af[e.type],r,n.getFocusPoint(),e)}this._prevTouchEvents[0]=e.touches.item(0),this._prevTouchEvents[1]=e.touches.item(1)}}}],[{key:"getDefaultSettings",value:function(){return Bf}}])}(Br);function Lf(e){return Lf="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},Lf(e)}function Ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nf(r.key),r)}}function Nf(e){var t=function(e){if("object"!=Lf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lf(t)?t:t+""}function Uf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uf=function(){return!!e})()}
2function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gf(e)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wf(e,t)}var Qf={load:0},Hf={configKey:"isScriptExecuteEve",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},Vf=["eventSequence","timestamp","eventType","scriptId","namespaceURI","outerHTML","scriptSource","scriptType"],zf=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Gf(t),function(e,t){if(t&&("object"==Lf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Uf()?Reflect.construct(t,n||[],Gf(e).constructor):t.apply(e,n))}(this,t))._onScriptExecuteEventFunc=r._onScriptExecuteEvent.bind(r),r._dataQueue=n,r._utils=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}(t,e),function(e,t,n){return t&&Ff(e.prototype,t),n&&Ff(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_onScriptExecuteEvent",value:function(e){if(e&&e.target&&("load"!==e.type||"script"===e.target.nodeName.toLowerCase()))try{var t=this.getEventTimestamp(e),n=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),r=Qf[e.type];this._utils.isUndefinedNull(r)&&(r=-1),pe.isDebug()&&pe.trace("got event "+e.type+", "+r+", scriptSrc: "+e.target.src+" at time "+t),this._dataQueue.addToQueue("script_events",this._utils.convertToArrayByMap(Vf,{eventSequence:n,timestamp:t,eventType:r,scriptId:e.target.id||"",namespaceURI:e.target.namespaceURI||"",outerHTML:e.target.outerHTML||"",scriptSource:e.target.src||"",scriptType:e.target.type||""}))}catch(e){pe.error("error on getScriptExecuteEvent ".concat(e.toString()))}}},{key:"startFeature",value:function(){this._utils.addEventListener(document,"load",this._onScriptExecuteEventFunc,!0)}},{key:"stopFeature",value:function(){this._utils.removeEventListener(document,"load",this._onScriptExecuteEventFunc,!0)}}],[{key:"getDefaultSettings",value:function(){return Hf}}])}(Br);function Kf(e){return Kf="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},Kf(e)}function qf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jf(r.key),r)}}function Jf(e){var t=function(e){if("object"!=Kf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kf(t)?t:t+""}function Yf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yf=function(){return!!e})()}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xf(e)}function Zf(e,t){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zf(e,t)}var $f={configKey:"isNetInfoEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},ep=["eventSequence","timestamp","connectionType","effectiveType","downlinkMax","downlink","rtt","isSaveData"],tp=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.connection||navigator.mozConnection||navigator.webkitConnection;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Xf(t),function(e,t){if(t&&("object"==Kf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yf()?Reflect.construct(t,n||[],Xf(e).constructor):t.apply(e,n))}(this,t))._dataQueue=n,r._utils=e,r._connection=o,r._boundOnChangeNetworkInfo=r.onChangeNetworkInfo.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zf(e,t)}(t,e),function(e,t,n){return t&&qf(e.prototype,t),n&&qf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"onChangeNetworkInfo",value:function(){pe.debug("NetInfoEvents:onChangeNetworkInfo");var e=this._utils.isUndefinedNull(this._connection.saveData)?"":this._connection.saveData.toString(),t=this.getEventTimestamp(),n=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._dataQueue.addToQueue("net_info_events",this._utils.convertToArrayByMap(ep,{eventSequence:n,timestamp:t,connectionType:this._connection.type?this._connection.type:"",effectiveType:this._connection.effectiveType?this._connection.effectiveType:"",downlinkMax:this._connection.downlinkMax?this._connection.downlinkMax.toString():"",downlink:this._connection.downlink?this._connection.downlink.toString():"",rtt:this._connection.rtt?this._connection.rtt.toString():"",isSaveData:e}))}},{key:"startFeature",value:function(){this._connection&&(this._connection.addEventListener("change",this._boundOnChangeNetworkInfo,!0),this.onChangeNetworkInfo())}},{key:"stopFeature",value:function(){this._connection&&this._connection.removeEventListener("change",this._boundOnChangeNetworkInfo,!0)}}],[{key:"getDefaultSettings",value:function(){return $f}}])}(Br);function np(e){return np="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},np(e)}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,op(r.key),r)}}function op(e){var t=function(e){if("object"!=np(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=np(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==np(t)?t:t+""}function ip(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ip=function(){return!!e})()}
2function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ap(e)}function up(e,t){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},up(e,t)}var sp={configKey:"isDeviceOrientationEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},cp={undefined:0,"portrait-primary":1,"landscape-primary":2,"portrait-secondary":3,"landscape-secondary":4},lp=["eventSequence","timestamp","orientation"],fp=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=ap(t),function(e,t){if(t&&("object"==np(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ip()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}(this,t))._dataQ=n,r._utils=e,r._onDeviceOrientationEventFunc=r._onDeviceOrientationEvent.bind(r),screen.mozOrientation&&screen.addEventListener?(r._eventTarget=screen,r._eventName="mozorientationchange"):screen.msOrientation&&screen.addEventListener?(r._eventTarget=screen,r._eventName="msorientationchange"):(r._eventTarget=window,r._eventName="orientationchange"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&up(e,t)}(t,e),function(e,t,n){return t&&rp(e.prototype,t),n&&rp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._utils.addEventListener(this._eventTarget,this._eventName,this._onDeviceOrientationEventFunc),this._handleDeviceOrientationEvent(screen)}},{key:"stopFeature",value:function(){this._utils.removeEventListener(this._eventTarget,this._eventName,this._onDeviceOrientationEventFunc)}},{key:"_onDeviceOrientationEvent",value:function(e){var t;t=e&&e.target?e.target.screen||e.target:screen,this._handleDeviceOrientationEvent(t)}},{key:"_handleDeviceOrientationEvent",value:function(e){var t=e.mozOrientation||e.msOrientation||e.orientation;if(void 0!==t){var n=t.type||t,r=cp[n];if(void 0!==r){if(this._lastDeviceOrientationType!==r){var o=this.getEventTimestamp(),i=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._lastDeviceOrientationType=r,pe.trace("onDeviceOrientationEvent: Orientation changed to ".concat(r," at time ").concat(o)),this._dataQ.addToQueue("screen_orientation",this._utils.convertToArrayByMap(lp,{eventSequence:i,timestamp:o,orientation:r}))}}else pe.error("onDeviceOrientationEvent: Unknown orientation ".concat(n," value."))}else pe.debug("onDeviceOrientationEvent: Unable to find orientation data.")}}],[{key:"getDefaultSettings",value:function(){return sp}}])}(Br);function pp(e){return pp="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},pp(e)}function dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yp(r.key),r)}}function yp(e){var t=function(e){if("object"!=pp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pp(t)?t:t+""}function hp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hp=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mp(e)}
2function vp(e,t){return vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vp(e,t)}var bp={configKey:"isTapEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInSlave:!0,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},gp=["eventSequence","timestamp","screenX","screenY","pageX","pageY","clientX","clientY","isTrusted","elementHash","touchIndex","touchSizeMajor","touchSizeMinor"],_p=["eventSequence","timestamp","screenX","screenY","pageX","pageY","clientX","clientY","isTrusted","elementHash","touchIndex","touchSizeMajor","touchSizeMinor"],wp=function(e){function t(e,n,r,o,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(u=function(e,t,n){return t=mp(t),function(e,t){if(t&&("object"==pp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hp()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,u._utils=n,u._dataQ=o,u._elements=r,u._activeTouchActions={},u._maskingService=i,u._tapMaxSlop=u._configurationRepository.get("tapEventsTapMaxSlop")||20,u._longPressTimeout=u._configurationRepository.get("tapEventsLongPressTimeout")||500,u._handleStartEventBind=u._handleStartEvent.bind(u),u._handleMoveEventBind=u._handleMoveEvent.bind(u),u._handleEndEventBind=u._handleEndEvent.bind(u),u._handleCancelEventBind=u._handleCancelEvent.bind(u),u._eventDefinitions=t.getSupportedTouchEvents(),u._maxShadowDepth=a.getMaxShadowDepth(),u._iframeLoadingTimeout=a.getIframeLoadingTimeout(),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vp(e,t)}(t,e),function(e,t,n){return t&&dp(e.prototype,t),n&&dp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){this._bind(e)}},{key:"stopFeature",value:function(e){this._unbind(e)}},{key:"updateFeatureConfig",value:function(){this._tapMaxSlop=void 0!==this._configurationRepository.get("tapEventsTapMaxSlop")?this._configurationRepository.get("tapEventsTapMaxSlop"):this._tapMaxSlop,this._longPressTimeout=void 0!==this._configurationRepository.get("tapEventsLongPressTimeout")?this._configurationRepository.get("tapEventsLongPressTimeout"):this._longPressTimeout}},{key:"_bind",value:function(e){var t=this;this._eventDefinitions?e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._addEventListeners(e)})):pe.debug("TapEvents:_bind - No event definitions. Might be a legacy browser. Aborting bind operation.")}},{key:"_addEventListeners",value:function(e){this._utils.addEventListener(e,this._eventDefinitions.startEvent,this._handleStartEventBind),this._utils.addEventListener(e,this._eventDefinitions.moveEvent,this._handleMoveEventBind),this._utils.addEventListener(e,this._eventDefinitions.endEvent,this._handleEndEventBind),this._utils.addEventListener(e,this._eventDefinitions.cancelEvent,this._handleCancelEventBind)}},{key:"_unbind",value:function(e){var t=this;this._eventDefinitions&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._removeEventListeners(e)}))}},{key:"_removeEventListeners",value:function(e){this._utils.removeEventListener(e,this._eventDefinitions.startEvent,this._handleStartEventBind),this._utils.removeEventListener(e,this._eventDefinitions.moveEvent,this._handleMoveEventBind),this._utils.removeEventListener(e,this._eventDefinitions.endEvent,this._handleEndEventBind),this._utils.removeEventListener(e,this._eventDefinitions.cancelEvent,this._handleCancelEventBind)}},{key:"_handleStartEvent",value:function(e){for(var t=this._getEventData(e),n=0;n<t.length;n++)this._activeTouchActions[t[n].identifier]={startTime:this.getEventTimestamp(),startX:t[n].touchData.pageX,startY:t[n].touchData.pageY,offsetX:0,offsetY:0}}},{key:"_handleMoveEvent",value:function(e){for(var t=this._getEventData(e),n=0;n<t.length;n++){var r=this._activeTouchActions[t[n].identifier];r&&(r.offsetX=Math.abs(t[n].touchData.pageX-r.startX),r.offsetY=Math.abs(t[n].touchData.pageY-r.startY))}}},{key:"_handleEndEvent",value:function(e){for(var t=this._getEventData(e),n=0;n<t.length;n++){var r=this._activeTouchActions[t[n].identifier];r&&(r.offsetX<this._tapMaxSlop&&r.offsetY<this._tapMaxSlop&&(this.getEventTimestamp()-r.startTime<this._longPressTimeout?this._sendEvent("tap_events",gp,t[n].identifier,t[n].touchData,t[n].eventArgs):this._sendEvent("longpress_events",_p,t[n].identifier,t[n].touchData,t[n].eventArgs)),delete this._activeTouchActions[t[n].identifier])}}},{key:"_handleCancelEvent",value:function(e){for(var t=this._getEventData(e),n=0;n<t.length;n++)delete this._activeTouchActions[t[n].identifier]}},{key:"_getEventData",value:function(e){if(void 0!==e.changedTouches){for(var t=[],n=0;n<e.changedTouches.length;n++){var r=e.changedTouches[n],o=r.identifier;t.push({identifier:o,touchData:r,eventArgs:e})}return t}return null==e.pointerType||"touch"!==e.pointerType&&"pen"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!==e.MSPOINTER_TYPE_PEN?[]:[{identifier:e.pointerId?e.pointerId:0,touchData:e,eventArgs:e}]}},{key:"_sendEvent",value:function(e,t,n,r,o){var i=this.getEventTimestamp(),a=Dr[o.isTrusted],u=this._elements.getElementHashFromEvent(o),s=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._utils.isUndefinedNull(n)&&(n=0),this._dataQ.addToQueue(e,this._utils.convertToArrayByMap(t,{eventSequence:s,timestamp:i,screenX:this._maskingService.shouldMaskCoordinates()?Wr:r.screenX?Math.round(r.
2screenX):0,screenY:this._maskingService.shouldMaskCoordinates()?Wr:r.screenY?Math.round(r.screenY):0,pageX:this._maskingService.shouldMaskCoordinates()?Wr:r.pageX||0,pageY:this._maskingService.shouldMaskCoordinates()?Wr:r.pageY||0,clientX:this._maskingService.shouldMaskCoordinates()?Wr:r.clientX||0,clientY:this._maskingService.shouldMaskCoordinates()?Wr:r.clientY||0,isTrusted:a,elementHash:u,touchIndex:n%1e4,touchSizeMajor:r.radiusX?2*r.radiusX:0,touchSizeMinor:r.radiusY?2*r.radiusY:0}))}}],[{key:"getDefaultSettings",value:function(){return bp}},{key:"getSupportedTouchEvents",value:function(){return window.TouchEvent?{startEvent:"touchstart",moveEvent:"touchmove",endEvent:"touchend",cancelEvent:"touchcancel"}:window.PointerEvent?{startEvent:"pointerdown",moveEvent:"pointermove",endEvent:"pointerup",cancelEvent:"pointercancel"}:void pe.debug("TapEvents:_createEventsToListenList - No touch support for browser.")}}])}(Br);function Sp(e){return Sp="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},Sp(e)}function kp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ep(r.key),r)}}function Ep(e){var t=function(e){if("object"!=Sp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sp(t)?t:t+""}function Op(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Op=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pp(e)}function Tp(e,t){return Tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tp(e,t)}var Cp={configKey:"isStorageEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},jp=["eventSequence","timestamp","keys","action","tabsOpened"],Mp=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=Pp(t),function(e,t){if(t&&("object"==Sp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Op()?Reflect.construct(t,n||[],Pp(e).constructor):t.apply(e,n))}(this,t))._utils=e,i._dataQ=r,i._elements=n,i._msgBus=o,i._onAllStorageEventBinded=i._onAllStorageEvent.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tp(e,t)}(t,e),function(e,t,n){return t&&kp(e.prototype,t),n&&kp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){this._bind(e)}},{key:"stopFeature",value:function(e){this._unbind(e)}},{key:"_addToCommunicationQueue",value:function(e,t,n,r,o){0===e&&this._msgBus.publish("storageEvent",{action:e});var i=this.getEventTimestamp(o),a=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._dataQ.addToQueue("storage_events",this._utils.convertToArrayByMap(jp,{eventSequence:a,timestamp:i,keys:t,action:n,tabsOpened:r}))}},{key:"_bind",value:function(e){var t,n=e.Context;if((n.localStorage||n.sessionStorage)&&(t=["storage"]),this._listeningToEvents=t,this._listeningToEvents.length>0)for(var r=0;r<this._listeningToEvents.length;r++)this._utils.addEventListener(n,this._listeningToEvents[r],this._onAllStorageEventBinded,!0)}},{key:"_unbind",value:function(e){if(this._listeningToEvents)for(var t=0;t<this._listeningToEvents.length;t++)this._utils.removeEventListener(e.Context,this._listeningToEvents[t],this._onAllStorageEventBinded,!0)}},{key:"_onAllStorageEvent",value:function(e){return"storage"===e.type&&this._onStorageEvent(e),!0}},{key:"_onStorageEvent",value:function(e){var t=!1,n=null,r=null;null===e.key&&(n=null),"string"==typeof e.key&&null===e.newValue?(n=e.key,r="delete"):(n=e.key,r="update");var o=this._utils.StorageUtils.getFromLocalStorage("cdTabList");o&&"object"===Sp(o[0])&&(t=!0),t=t?1:0,this._addToCommunicationQueue(e.type,n,r,t,e)}}],[{key:"getDefaultSettings",value:function(){return Cp}}])}(Br);function xp(e){return xp="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},xp(e)}function Rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ap(r.key),r)}}function Ap(e){var t=function(e){if("object"!=xp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xp(t)?t:t+""}function Bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bp=function(){return!!e})()}
2function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ip(e,t)}var Lp={configKey:"isPrintEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},Fp=["eventSequence","timestamp","printDialogState"],Np=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Dp(t),function(e,t){if(t&&("object"==xp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bp()?Reflect.construct(t,n||[],Dp(e).constructor):t.apply(e,n))}(this,t))._utils=e,r._dataQueue=n,r._addToEventQueueFunc=r._addToEventQueue.bind(r),r._myAfterPrintFunc=r._myAfterPrint.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ip(e,t)}(t,e),function(e,t,n){return t&&Rp(e.prototype,t),n&&Rp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_myAfterPrint",value:function(){this._addToEventQueueFunc(0),window.removeEventListener("focus",this._myAfterPrintFunc)}},{key:"_onBeforePrintEvent",value:function(){this._addToEventQueueFunc(1),this._utils.addEventListener(window,"focus",this._myAfterPrintFunc.bind(this))}},{key:"_addToEventQueue",value:function(e){var t=this.getEventTimestamp(),n=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._dataQueue.addToQueue("print_events",this._utils.convertToArrayByMap(Fp,{eventSequence:n,timestamp:t,printDialogState:e}))}},{key:"startFeature",value:function(){this._utils.addEventListener(window,"beforeprint",this._onBeforePrintEvent.bind(this))}},{key:"stopFeature",value:function(){this._utils.removeEventListener(window,"beforeprint",this._onBeforePrintEvent.bind(this),!0)}}],[{key:"getDefaultSettings",value:function(){return Lp}}])}(Br);function Up(e){return Up="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},Up(e)}function Gp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wp(r.key),r)}}function Wp(e){var t=function(e){if("object"!=Up(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Up(t)?t:t+""}function Qp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qp=function(){return!!e})()}function Hp(e){return Hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hp(e)}function Vp(e,t){return Vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vp(e,t)}var zp={configKey:"isLightSensor",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},Kp=["eventSequence","timestamp","illuminance"],qp=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=Hp(t),function(e,t){if(t&&("object"==Up(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qp()?Reflect.construct(t,n||[],Hp(e).constructor):t.apply(e,n))}
2(this,t))._dataQueue=e,o._utils=n,o._configurationRepository=r,o._eventThreshold=o._configurationRepository.get("lightSensorEventThreshold")||5e3,o._lastTime=0,o.onReadingSensorBoundble=o._onReadingSensor.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vp(e,t)}(t,e),function(e,t,n){return t&&Gp(e.prototype,t),n&&Gp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_onReadingSensor",value:function(){var e=this.getEventTimestamp();if(e-this._lastTime>this._eventThreshold){var t=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._lastTime=e,this._dataQueue.addToQueue("ambient_light_level",this._utils.convertToArrayByMap(Kp,{eventSequence:t,timestamp:e,illuminance:this._sensor.illuminance}))}}},{key:"startFeature",value:function(){window.AmbientLightSensor?(pe.info("AmbientLightSensor exists and collected"),this._sensor=new AmbientLightSensor,this._sensor.addEventListener("reading",this.onReadingSensorBoundble,!0),this._sensor.addEventListener("error",t._onSensorError,!0),this._sensor.start()):pe.debug("LightSensor does not exist, not collecting")}},{key:"stopFeature",value:function(){this._sensor&&(this._sensor.removeEventListener("reading",this.onReadingSensorBoundble,!0),this._sensor.removeEventListener("error",t._onSensorError,!0),this._sensor.stop(),this._sensor=null)}},{key:"updateFeatureConfig",value:function(){this._eventThreshold=this._configurationRepository.get("lightSensorEventThreshold")?this._configurationRepository.get("lightSensorEventThreshold"):this._eventThreshold}}],[{key:"getDefaultSettings",value:function(){return zp}},{key:"_onSensorError",value:function(e){pe.debug("Error connecting LightSensor ".concat(e.error))}}])}(Br);function Jp(e){return Jp="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},Jp(e)}function Yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,td(r.key),r)}}function Xp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xp=function(){return!!e})()}function Zp(e){return Zp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zp(e)}function $p(e,t){return $p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$p(e,t)}function ed(e,t,n){return(t=td(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e){var t=function(e){if("object"!=Jp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jp(t)?t:t+""}var nd={configKey:"isMouseEvents",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!0,runInSlave:!0,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},rd={mousemove:0,mousedown:1,mouseup:2,click:3,dblclick:4,mouseleave:5,mouseenter:6,wheel:7,mouseout:8,mouseover:9},od=["eventSequence","timestamp","eventType","isTrusted","elementHash","pageX","pageY","screenX","screenY","button","wheelDelta","clientX","clientY","eventDetail","buttonNew","relativeTime","pressure"],id=function(e){function t(e,n,r,o,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ed(u=function(e,t,n){return t=Zp(t),function(e,t){if(t&&("object"==Jp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xp()?Reflect.construct(t,n||[],Zp(e).constructor):t.apply(e,n))}(this,t),"_lastButton",void 0),ed(u,"_lastPointerDownPressure",-1),ed(u,"_getMouseEvent",(function(e){var t,n=e.which;"mouseup"===e.type?u._lastButton=n:"click"===e.type&&0===n&&(n=u._lastButton);var r=rd[e.type];u._utils.isUndefinedNull(r)&&(r=-1);var o=e.deltaY||e.deltaX||e.deltaZ||e.wheelDelta||0,i=u.getTimestampFromEvent(e),a=null!==(t=e.pressure)&&void 0!==t?t:-1;"pointerdown"!==e.type?("mousedown"===e.type&&(-1!==u._lastPointerDownPressure&&(a=u._lastPointerDownPressure),u._lastPointerDownPressure=-1),u._dataQueue.addToQueue("mouse_events",[null,u._utils.StorageUtils.getAndUpdateEventSequenceNumber(),u.getEventTimestamp(e),r,Dr[e.isTrusted],"mousemove"===e.type?0:u._elements.getElementHashFromEvent(e),u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.pageX),u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.pageY),u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.screenX),u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.screenY),null==n?-1:n,Math.round(o),u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.clientX),u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.clientY),e.detail||0,null===e.button||void 0===e.button?-1:e.button,i,a])):u._lastPointerDownPressure=a})),u._utils=e,u._domUtils=n,u._elements=r,u._dataQueue=o,u._maskingService=i,u._maxShadowDepth=a.getMaxShadowDepth(),u._iframeLoadingTimeout=a.getIframeLoadingTimeout(),u._listenedDocuments=new WeakSet,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$p(e,t)}(t,e),function(e,t,n){return t&&Yp(e.prototype,t),n&&Yp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){var t=this;try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(n){t._addEventListeners(e,n)}))}catch(e){pe.error("MouseEvents:startFeature failed. msg: ".concat(e.message),e)}}},{key:"stopFeature",value:function(e){var t=this;try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._removeEventListeners(e)}))}catch(e){pe.error("MouseEvents:stopFeature failed. msg: ".concat(e.message),e)}}},{key:"_addEventListeners",value:function(e,t){var n=this;this._listenedDocuments.has(t)||(this._listenedDocuments.add(t),this._domUtils.addEventListener(t,"mousemove",this._getMouseEvent,!0),this._domUtils.addEventListener(t,"mousedown",this._getMouseEvent,!0),this._domUtils.addEventListener(t,"mouseup",this._getMouseEvent,!0),this._domUtils.addEventListener(t,"click",this._getMouseEvent,!0),this._domUtils.addEventListener(t,"dblclick",this._getMouseEvent,!0),this._isIE=!!t.documentMode||/edge/.test(window.navigator.userAgent.toLowerCase()),this._isIE?this._domUtils.onDocumentBody(e.Context,(function(){n._domUtils.addEventListener(t.body,"mouseleave",n._getMouseEvent),n._domUtils.addEventListener(t.body,"mouseenter",n._getMouseEvent)})):(this._domUtils.addEventListener(t,"mouseleave",this._getMouseEvent),this._domUtils.addEventListener(t,"mouseenter",this._getMouseEvent)),this._domUtils.addEventListener(t,"wheel",this._getMouseEvent,!0),this._domUtils.addEventListener(t,"pointerdown",this._getMouseEvent,!0))}},{key:"_removeEventListeners",value:function(e){this._listenedDocuments.delete(e),this._domUtils.removeEventListener(e,"mousemove",this._getMouseEvent,!0),this._domUtils.removeEventListener(e,"mousedown",this._getMouseEvent,!0),this._domUtils.removeEventListener(e,"mouseup",this._getMouseEvent,!0),this._domUtils.removeEventListener(e,"click",this._getMouseEvent,!0),this._domUtils.removeEventListener(e,"dblclick",this._getMouseEvent,!0),this._isIE?(this._domUtils.removeEventListener(e.body,"mouseleave",this._getMouseEvent),this._domUtils.removeEventListener(e.body,"mouseenter",this._getMouseEvent)):(this._domUtils.removeEventListener(e,"mouseleave",this._getMouseEvent),this._domUtils.removeEventListener(e,"mouseenter",this._getMouseEvent)),this._domUtils.removeEventListener(e,"wheel",this._getMouseEvent,!0),this._domUtils.removeEventListener(e,"pointerdown",this._getMouseEvent,!0)}},{key:"_roundCoordinate",value:function(e){return e?Math.round(e):-1}}],[{key:"getDefaultSettings",value:function(){return nd}}])}(Br);function ad(e){return ad="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},ad(e)}function ud(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sd(r.key),r)}}function sd(e){var t=function(e){if("object"!=ad(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ad(t)?t:t+""}function cd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cd=function(){return!!e})()}
2function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ld(e)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fd(e,t)}var pd={configKey:"isTabsEvents",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},dd=["eventSequence","timestamp","type","id","href","referrer","currentTabsList"],yd=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=ld(t),function(e,t){if(t&&("object"==ad(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cd()?Reflect.construct(t,n||[],ld(e).constructor):t.apply(e,n))}(this,t))._utils=e,r._currState=null,r._dataQueue=n,r._tabData={id:"",openTabTS:0},r._onUnloadTabBinded=r._onUnloadTab.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fd(e,t)}(t,e),function(e,t,n){return t&&ud(e.prototype,t),n&&ud(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){pe.info("Starting tab events feature"),this._initTabInfo(),window.addEventListener("beforeunload",this._onUnloadTabBinded)}},{key:"stopFeature",value:function(){pe.info("Stopping tab events feature"),window.removeEventListener("beforeunload",this._onUnloadTabBinded)}},{key:"_initTabInfo",value:function(){var e=this._utils.StorageUtils.getFromLocalStorage("cdTabList");e||(e=[]);var t=0;this._tabData=this._utils.StorageUtils.getFromSessionStorage("cdTabData")||this._tabData.id,this._tabData||(this._updateTabData(),t=1);for(var n=-1,r=0,o=e.length;r<o;r++)if(e[r][0]===this._tabData.id){n=r;break}-1!==n&&n!==e.length||(e.push([this._tabData.id,this._tabData.openTabTS]),this._utils.StorageUtils.saveToLocalStorage("cdTabList",e),pe.debug("added tab to list. "+this._tabData.id+", tab index="+e.length));var i=this._utils.getDocUrl(),a=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),u=JSON.stringify(e);this._dataQueue.addToQueue("tab_events",this._utils.convertToArrayByMap(dd,{eventSequence:a,timestamp:this._tabData.openTabTS,type:t,id:this._tabData.id||"",href:i||"",referrer:this._utils.clearTextFromNumbers(document.referrer),currentTabsList:u||""}))}},{key:"_onUnloadTab",value:function(){var e=this._utils.StorageUtils.getFromLocalStorage("cdTabList");e||(e=[]);var t=this.getEventTimestamp(),n=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),r=this._utils.getDocUrl(),o=JSON.stringify(e);pe.debug("removing tab from list. id:".concat(this._tabData.id,", timestamp:").concat(t)),this._dataQueue.addToQueue("tab_events",this._utils.convertToArrayByMap(dd,{eventSequence:n,timestamp:t,type:2,id:this._tabData.id||"",href:r||"",referrer:this._utils.clearTextFromNumbers(document.referrer),currentTabsList:o||""}),!0,!0);for(var i=0,a=e.length;i<a;i++)if(e[i][0]===this._tabData.id){e.splice(i,1);break}this._utils.StorageUtils.saveToLocalStorage("cdTabList",e)}},{key:"_updateTabData",value:function(){this._tabData={},this._tabData={id:this._utils.generateUUID(),openTabTS:this.getEventTimestamp()},pe.debug("initialize tab data: id:".concat(this._tabData.id,", timestamp:").concat(this._tabData.openTabTS)),this._utils.StorageUtils.saveToSessionStorage("cdTabData",this._tabData)}}],[{key:"getDefaultSettings",value:function(){return pd}}])}(Br);function hd(e){return hd="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},hd(e)}function md(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wd(r.key),r)}}function vd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vd=function(){return!!e})()}
2function bd(e){return bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bd(e)}function gd(e,t){return gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gd(e,t)}function _d(e,t,n){return(t=wd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wd(e){var t=function(e){if("object"!=hd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hd(t)?t:t+""}var Sd={configKey:"isLocationEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},kd=["eventSequence","timestamp","longitude","latitude","accuracy","speed","provider"],Ed=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.navigator;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_d(o=function(e,t,n){return t=bd(t),function(e,t){if(t&&("object"==hd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vd()?Reflect.construct(t,n||[],bd(e).constructor):t.apply(e,n))}(this,t),"_subscribeForLocationEvents",(function(){o._unsubscribeFromLocationEvents(),o._watcherID=o._navigator.geolocation.watchPosition(o._onGeoLocationPositionEvent,o._onGeoLocationPositionError),o._clearLocationEventsTimeout(),o._locationEventsTimeoutID=setTimeout((function(){o._unsubscribeFromLocationEvents()}))})),_d(o,"_unsubscribeFromLocationEvents",(function(){o._clearLocationEventsTimeout(),o._watcherID&&(o._navigator.geolocation.clearWatch(o._watcherID),o._watcherID=null)})),_d(o,"_onGeoLocationPositionEvent",(function(e){o._sendData(e)})),_d(o,"_onGeoLocationPositionError",(function(e){pe.warn("Failed getting geolocation with code ".concat(e.code,". ").concat(e.message))})),o._configurationRepository=r,o._locationEventsTimeoutMsec=o._configurationRepository.get(P.locationEventsTimeoutMsec),o._utils=n,o._dataQ=e,o._navigator=i,o._watcherID=null,o._locationEventsTimeoutID=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gd(e,t)}(t,e),function(e,t,n){return t&&md(e.prototype,t),n&&md(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._subscribeForLocationIfPermissionGranted()}},{key:"stopFeature",value:function(){this._unsubscribeFromLocationEvents()}},{key:"updateFeatureConfig",value:function(){try{this._configurationRepository.get(P.locationEventsTimeoutMsec)!==this._locationEventsTimeoutMsec&&(this._locationEventsTimeoutMsec=this._configurationRepository.get(P.locationEventsTimeoutMsec))}catch(e){pe.error("LocationEvents: updateFeatureConfig failed, msg: ".concat(e.message),e)}}},{key:"_subscribeForLocationIfPermissionGranted",value:function(){var e=this;this._navigator.permissions&&this._navigator.permissions.query&&this._navigator.permissions.query({name:"geolocation"}).then((function(t){"granted"===t.state?e._subscribeForLocationEvents():pe.info("location permission is denied. Location data will not be collected")})).catch((function(e){pe.error("Failed querying for geolocation permission. ".concat(e.message))}))}},{key:"_clearLocationEventsTimeout",value:function(){this._locationEventsTimeoutID&&clearTimeout(this._locationEventsTimeoutID),this._locationEventsTimeoutID=null}},{key:"_sendData",value:function(e){var t=e.coords,n=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),r=this.getEventTimestamp();this._dataQ.addToQueue("location_events",this._utils.convertToArrayByMap(kd,{eventSequence:n,timestamp:r,longitude:t.longitude||-1,latitude:t.latitude||-1,accuracy:t.accuracy||-1,speed:t.speed||-1,provider:""}))}}],[{key:"getDefaultSettings",value:function(){return Sd}}])}(Br);function Od(e){return Od="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},Od(e)}function Pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rd(r.key),r)}}function Td(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Td=function(){return!!e})()}function Cd(e,t,n,r){var o=jd(Md(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}
2function jd(){return jd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Md(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},jd.apply(null,arguments)}function Md(e){return Md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Md(e)}function xd(e,t){return xd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xd(e,t)}function Rd(e){var t=function(e){if("object"!=Od(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Od(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Od(t)?t:t+""}var Ad="levenshtein",Bd="matchNameEmail",Dd={configKey:"isLevenshteinDistanceCollector",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},Id=["eventSequence","timestamp","similarity","score"],Ld=function(e){function t(e,n,r,o,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=Rd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(u=function(e,t,n){return t=Md(t),function(e,t){if(t&&("object"==Od(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Td()?Reflect.construct(t,n||[],Md(e).constructor):t.apply(e,n))}(this,t),"_handleLevenshteinDistanceEvent",(function(e){var t=e.target.value||"";if(""!==t){var n=u._categoryService.categoryField(e.target);if("0100"!==n&&"0101"!==n||(u.name=t),"0103"===n&&(u.email=t),u.name&&u.email){var r=u.getEventTimestamp(),o=u._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=u._levenshteinScoreFunction(u.name,u.email),a=u._levenshteinMatchEmailFunction(u.name,u.email);u._dataQ.addToQueue("similarity_score",u._utils.convertToArrayByMap(Id,{eventSequence:o,timestamp:r,similarity:a,score:i}))}}})),u._utils=e,u._configurationRepository=n,u._dataQ=r,u._messageBus=o,u._moduleLoader=i,u._categoryService=a,u._levenshteinScoreFunction=null,u._levenshteinMatchEmailFunction=null,u._boundHandleLevenshteinDistanceEvent=u._handleLevenshteinDistanceEvent.bind(u),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xd(e,t)}(t,e),function(e,t,n){return t&&Pd(e.prototype,t),n&&Pd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){Cd(t,"startFeature",this,3)([]),this._moduleLoader.loadExternalWASMModuleByName("cdld",this._loadWasmMethod.bind(this))}},{key:"stopFeature",value:function(){Cd(t,"stopFeature",this,3)([]),this._messageBus.unsubscribe(er,this._boundHandleLevenshteinDistanceEvent)}},{key:"_loadWasmMethod",value:function(e){e&&e[Ad]&&"function"==typeof e[Ad]&&"function"==typeof e[Bd]?(this._levenshteinScoreFunction=e[Ad],this._levenshteinMatchEmailFunction=e[Bd],this._messageBus.subscribe(er,this._boundHandleLevenshteinDistanceEvent)):pe.error("Failed to load Levenshtein distance function from wasm module")}}],[{key:"getDefaultSettings",value:function(){return Dd}}])}(Br);function Fd(e){return Fd="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},Fd(e)}function Nd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ud(r.key),r)}}function Ud(e){var t=function(e){if("object"!=Fd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fd(t)?t:t+""}var Gd=function(e,t){return t&&Nd(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._styles=new Map;var r=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"style");if(r)for(var o=r.split(";"),i=0;i<o.length;i++){var a=o[i].trim();if(a){var u=a.indexOf(":");if(u>0){var s=a.substring(0,u).trim().toLowerCase(),c=a.substring(u+1).trim().toLowerCase();s&&this._styles.set(s,c)}}}}),[{key:"get",value:function(e){return e&&this._styles.get(e.toLowerCase())||""}}]);function Wd(e){return Wd="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},Wd(e)}function Qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hd(r.key),r)}}function Hd(e){var t=function(e){if("object"!=Wd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wd(t)?t:t+""}var Vd=["div","style"],zd=["claude"],Kd=function(e,t){return t&&Qd(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t,this._allowedTags=this._getAllowedTags(),this._suspiciousIdSubstrings=this._getSuspiciousIdSubstrings()}),[{key:"onConfigUpdate",value:function(){this._allowedTags=this._getAllowedTags(),this._suspiciousIdSubstrings=this._getSuspiciousIdSubstrings()}},{key:"detect",value:function(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return-1;if(this.isSuspiciousId(e))return 2;var t,n=(e.tagName||"").toLowerCase();if(this._allowedTags.length>0&&!this._allowedTags.includes(n))return-1;if("div"===n){if(!e.hasAttribute("style"))return-1;var r=new Gd(e),o=r.get("position"),i=r.get("inset"),a=r.get("pointer-events"),u=r.get("opacity"),s=r.get("z-index"),c="fixed"===o,l="0px"===i||"0"===i||"0px 0px 0px 0px"===i,f="none"===a,p=(t=Number(u),Number.isFinite(t)&&t>0&&t<=.01),d=function(){if(!s)return!0;var e=Number(s);return Number.isFinite(e)&&e<=-1e6}();if(c&&l&&f&&p&&d)return 0}if("style"===n){var y=String(e.textContent||"").toLowerCase();if(y.includes("select:open")&&y.includes("@keyframes")&&y.includes("animation"))return 1}return-1}},{key:"isSuspiciousId",value:function(e){var t=null==e?void 0:e.id;if(!t||"string"!=typeof t)return!1;var n=this._suspiciousIdSubstrings;
2if(!n||0===n.length)return!1;for(var r=t.toLowerCase(),o=0;o<n.length;o++)if(r.includes(n[o]))return!0;return!1}},{key:"_getAllowedTags",value:function(){return this._getConfigArray(P.agenticDomInjectionBlinkTags,Vd)}},{key:"_getSuspiciousIdSubstrings",value:function(){return this._getConfigArray(P.agenticDomInjectionSuspiciousIds,zd)}},{key:"_getConfigArray",value:function(e,t){var n,r=null===(n=this._configurationRepository)||void 0===n?void 0:n.get(e);if("string"==typeof r)try{r=JSON.parse(r)}catch(e){r=null}return Array.isArray(r)?r:t}}]);function qd(e){return qd="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},qd(e)}function Jd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ey(r.key),r)}}function Yd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yd=function(){return!!e})()}
2function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xd(e)}function Zd(e,t){return Zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zd(e,t)}function $d(e,t,n){return(t=ey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ey(e){var t=function(e){if("object"!=qd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qd(t)?t:t+""}var ty={configKey:"isAgenticDomInjectionFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},ny=["eventSequence","timestamp","eventType","indicatorType","blinkDurationMs","id"],ry=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$d(a=function(e,t,n){return t=Xd(t),function(e,t){if(t&&("object"==qd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yd()?Reflect.construct(t,n||[],Xd(e).constructor):t.apply(e,n))}(this,t),"startFeature",(function(){try{a._messageBus.subscribe(Yn,a._onNodesAdded),a._messageBus.subscribe(Xn,a._onNodesRemoved)}catch(e){pe.error("Failed starting AgenticDomInjectionCollector. msg: ".concat(e.message),e)}})),$d(a,"stopFeature",(function(){try{a._messageBus.unsubscribe(Yn,a._onNodesAdded),a._messageBus.unsubscribe(Xn,a._onNodesRemoved)}catch(e){pe.error("Failed stopping AgenticDomInjectionCollector. msg: ".concat(e.message),e)}})),$d(a,"_onNodesAdded",(function(e){var t=performance.now(),n=null==e?void 0:e.addedNodes;if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r],i=a._detector.detect(o);-1!==i&&(2!==i?a._indicatorAddTimes.set(o,{t:t,indicatorType:i}):a._sendEvent(1,i,0,o.id))}})),$d(a,"_onNodesRemoved",(function(e){var t=performance.now(),n=null==e?void 0:e.removedNodes;if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r];if(a._detector.isSuspiciousId(o))a._sendEvent(2,2,0,o.id);else{var i=a._indicatorAddTimes.get(o);if(i){var u=t-i.t;a._indicatorAddTimes.delete(o),u>=0&&u<=a._blinkThresholdMs&&a._sendEvent(0,i.indicatorType,u)}}}})),a._dataQueue=e,a._messageBus=n,a._utils=r,a._configurationRepository=o,a._blinkThresholdMs=a._getBlinkThresholdMs(),a._detector=i,a._indicatorAddTimes=new WeakMap,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zd(e,t)}(t,e),function(e,t,n){return t&&Jd(e.prototype,t),n&&Jd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_sendEvent",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";try{var o=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=this.getEventTimestamp();this._dataQueue.addToQueue("agentic_dom_injection_events",this._utils.convertToArrayByMap(ny,{eventSequence:o,timestamp:i,eventType:e,indicatorType:t,blinkDurationMs:Math.round(n),id:r}))}catch(e){pe.error("Failed sending AgenticDomInjection event. msg: ".concat(e.message),e)}}},{key:"_getBlinkThresholdMs",value:function(){var e,t=null===(e=this._configurationRepository)||void 0===e?void 0:e.get(P.agenticDomInjectionBlinkThresholdMs);return"number"==typeof t&&t>0?t:100}},{key:"updateFeatureConfig",value:function(){var e,t;this._blinkThresholdMs=this._getBlinkThresholdMs(),null===(e=this._detector)||void 0===e||null===(t=e.onConfigUpdate)||void 0===t||t.call(e)}}],[{key:"getDefaultSettings",value:function(){return ty}}])}(Br);function oy(e){return oy="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},oy(e)}function iy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,py(r.key),r)}}function ay(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ay=function(){return!!e})()}function uy(e,t,n,r){var o=sy(cy(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function sy(){return sy="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=cy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},sy.apply(null,arguments)}
2function cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cy(e)}function ly(e,t){return ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ly(e,t)}function fy(e,t,n){return(t=py(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function py(e){var t=function(e){if("object"!=oy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oy(t)?t:t+""}var dy=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),fy(a=function(e,t,n){return t=cy(t),function(e,t){if(t&&("object"==oy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ay()?Reflect.construct(t,n||[],cy(e).constructor):t.apply(e,n))}(this,t),"_collectEventElement",(function(e){var t=a._utils.StorageUtils.getAndUpdateEventSequenceNumber(),n=a.getEventTimestamp(),r=a.getTimestampFromEvent(e),o=a._maskingService.maskText(e.elementValue,e.elementId),i=ll[e.eventType];o&&o.length>a._maxElemValLength&&(o=""),a._dataQueue.addToQueue("element_events",a._utils.convertToArrayByMap(fl,{eventSequence:t,timestamp:n,eventType:i,isTrusted:-1,elementHash:e.hashCode,length:o.length,elementValues:o,selected:-1,hashedValue:"",relativeTime:r}))})),fy(a,"_collectElement",(function(e){if(!a._utils.isUndefinedNull(e.hashCode)&&!a._elementWMap.has(e.hashCode)){a._elementWMap.add(e.hashCode);var t=a._maskingService.maskAbsoluteIfRequired(e.elementId,e.elementId);a._dataQueue.addToQueue("elements",[a._contextMgr.contextHash,e.hashCode,"",t||"","",e.widgetType||"",e.dxPosition||0,e.dyPosition||0,e.widthElement||0,e.heightElement||0,"","","","","","",0,e.timeStamp,"","",""])}})),a._msgBus=e,a._dataQueue=n,a._utils=r,a._contextMgr=o,a._maskingService=i,a._elementWMap=new Set,a._maxElemValLength=200,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ly(e,t)}(t,e),function(e,t){return t&&iy(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){uy(t,"startFeature",this,3)([]),this._msgBus.subscribe(kr,this._collectEventElement),this._msgBus.subscribe(Sr,this._collectElement)}},{key:"stopFeature",value:function(){this._msgBus.unsubscribe(kr,this._collectEventElement),this._msgBus.unsubscribe(Sr,this._collectElement),uy(t,"stopFeature",this,3)([])}}])}(Br);function yy(e){return yy="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},yy(e)}function hy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wy(r.key),r)}}function my(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(my=function(){return!!e})()}function vy(e,t,n,r){var o=by(gy(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function by(){return by="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=gy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},by.apply(null,arguments)}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gy(e)}
2function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_y(e,t)}function wy(e){var t=function(e){if("object"!=yy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yy(t)?t:t+""}var Sy=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=wy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i=function(e,t,n){return t=gy(t),function(e,t){if(t&&("object"==yy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,my()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}(this,t),"_onKeyEvent",(function(e){var t=i._utils.StorageUtils.getAndUpdateEventSequenceNumber(),n=i.getEventTimestamp(),r=e.char,o=i._maskingService.maskKey(r,"",e.elementId),a=o.key.length>1?"":o.key,u=i.getTimestampFromEvent(e);i._dataQueue.addToQueue("key_events",i._utils.convertToArrayByMap(mo,{eventSequence:t,timestamp:n,eventType:2,isTrusted:-1,elementHash:e.hashCode,charCode:o.charCode,character:a,keyComboType:-1,isCtrl:!1,isShift:!1,isAlt:!1,isMetaKey:!1,keyLocation:0,code:o.code||"",key:o.key||"",isRepeat:!1,keyRegion:"-1",relativeTime:u,isSameKey:-1}))})),i._msgBus=e,i._dataQueue=n,i._utils=r,i._maskingService=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}(t,e),function(e,t){return t&&hy(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){vy(t,"startFeature",this,3)([]),this._msgBus.subscribe(Er,this._onKeyEvent)}},{key:"stopFeature",value:function(){this._msgBus.unsubscribe(Er,this._onKeyEvent),vy(t,"stopFeature",this,3)([])}}])}(Br);function ky(e){return ky="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},ky(e)}function Ey(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,My(r.key),r)}}function Oy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oy=function(){return!!e})()}function Py(e,t,n,r){var o=Ty(Cy(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Ty(){return Ty="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Cy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ty.apply(null,arguments)}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cy(e)}function jy(e,t){return jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jy(e,t)}function My(e){var t=function(e){if("object"!=ky(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ky(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ky(t)?t:t+""}var xy={onTapDown:0,onTapUp:2},Ry=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=My(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i=function(e,t,n){return t=Cy(t),function(e,t){if(t&&("object"==ky(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oy()?Reflect.construct(t,n||[],Cy(e).constructor):t.apply(e,n))}(this,t),"_onTouchEvent",(function(e){var t=xy[e.touchState];t!==xy.onTapDown&&t!==xy.onTapUp||i._msgBus.publish(In,{action:t});var n=i.getEventTimestamp(),r=i._utils.StorageUtils.getAndUpdateEventSequenceNumber(),o=i.getTimestampFromEvent(e);i._utils.isUndefinedNull(t)&&(t=-1),i._dataQueue.addToQueue("touch_events",i._utils.convertToArrayByMap($r,{eventSequence:r,timestamp:n,eventType:t,isTrusted:-1,elementHash:e.hashCode,clientX:i._maskingService.shouldMaskCoordinates()?Wr:e.x?Math.round(e.x):0,clientY:i._maskingService.shouldMaskCoordinates()?Wr:e.y?Math.round(e.y):0,touchIndex:e.pointer,touchSizeMajor:e.radiu
2sMajor?2*e.radiusMajor:0,touchSizeMinor:e.radiusMinor?2*e.radiusMinor:0,pageX:0,pageY:0,screenX:0,screenY:0,relativeTime:o,touchPressure:e.pressure||-1}))})),i._msgBus=e,i._dataQueue=n,i._utils=r,i._maskingService=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jy(e,t)}(t,e),function(e,t){return t&&Ey(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){Py(t,"startFeature",this,3)([]),this._msgBus.subscribe(Or,this._onTouchEvent)}},{key:"stopFeature",value:function(){this._msgBus.unsubscribe(Or,this._onTouchEvent),Py(t,"stopFeature",this,3)([])}}])}(Br);function Ay(e){return Ay="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},Ay(e)}function By(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uy(r.key),r)}}function Dy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dy=function(){return!!e})()}function Iy(e,t,n,r){var o=Ly(Fy(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Ly(){return Ly="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Fy(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ly.apply(null,arguments)}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fy(e)}function Ny(e,t){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ny(e,t)}function Uy(e){var t=function(e){if("object"!=Ay(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ay(t)?t:t+""}var Gy={mousemove:0,onTapDown:1,onTapUp:2},Wy=function(e){function t(e,n,r,o,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=Uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(u=function(e,t,n){return t=Fy(t),function(e,t){if(t&&("object"==Ay(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dy()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}(this,t),"_onMouseEvent",(function(e){var t=Gy[e.type],n=u.getTimestampFromEvent(e);u._dataQueue.addToQueue("mouse_events",u._utils.convertToArrayByMap(od,{eventSequence:u._utils.StorageUtils.getAndUpdateEventSequenceNumber(),timestamp:u.getEventTimestamp(),eventType:t,isTrusted:"mousemove"===e.type?Dr[e.isTrusted]:-1,elementHash:"mousemove"===e.type?0:e.hashCode,pageX:u._resolveCoordinate(e.type,e.pageX),pageY:u._resolveCoordinate(e.type,e.pageY),screenX:u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.screenX),screenY:u._maskingService.shouldMaskCoordinates()?Wr:u._roundCoordinate(e.screenY),button:0,wheelDelta:0,clientX:u._resolveCoordinate(e.type,e.clientX),clientY:u._resolveCoordinate(e.type,e.clientY),eventDetail:"mousemove"===e.type&&e.detail||0,buttonNew:0,relativeTime:n,pressure:e.pressure||-1}))})),u._msgBus=e,u._dataQueue=n,u._utils=r,u._maskingService=o,u._domUtils=i,u._maxShadowDepth=a.getMaxShadowDepth(),u._iframeLoadingTimeout=a.getIframeLoadingTimeout(),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ny(e,t)}(t,e),function(e,t){return t&&By(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(e){var n=this;Iy(t,"startFeature",this,3)([]);try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){n._domUtils.addEventListener(e,"mousemove",n._onMouseEvent,!0)})),this._msgBus.subscribe(Pr,this._onMouseEvent)}catch(e){pe.error("MouseEvents:startFeature failed. msg: ".concat(e.message),e)}}},{key:"stopFeature",value:function(e){var n=this;try{e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){n._domUtils.removeEventListener(e,"mousemove",n._onMouseEvent,!0)})),this._msgBus.unsubscribe(Pr,this._onMouseEvent)}catch(e){pe.error("MouseEvents:stopFeature failed. msg: ".concat(e.message),e)}Iy(t,"stopFeature",this,3)([])}},{key:"_resolveCoordinate",value:function(e,t){return"mousemove"===e?this._maskingService.shouldMaskCoordinates()?Wr:this._roundCoordinate(t):0}},{key:"_roundCoordinate",value:function(e){return e?Math.round(e):-1}}])}(Br);function Qy(e){return Qy="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},Qy(e)}function Hy(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Vy(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Vy(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Vy(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Vy(f,"constructor",c),Vy(c,"constructor",s),s.displayName="GeneratorFunction",Vy(c,o,"GeneratorFunction"),Vy(f),Vy(f,o,"Generator"),Vy(f,r,(function(){return this})),Vy(f,"toString",(function(){return"[object Generator]"})),(Hy=function(){return{w:i,m:p}})()}function Vy(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vy=function(e,t,n,r){function i(t,n){Vy(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Vy(e,t,n,r)}function zy(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Ky(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){zy(i,r,o,a,u,"next",e)}function u(e){zy(i,r,o,a,u,"throw",e)}a(void 0)}))}}function qy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jy(r.key),r)}}function Jy(e){var t=function(e){if("object"!=Qy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qy(t)?t:t+""}function Yy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yy=function(){return!!e})()}function Xy(e){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xy(e)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zy(e,t)}var $y={configKey:"isBatteryStatusFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},eh=["eventSequence","timestamp","chargeLevel","isCharging","powerSource"],th=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.navigator;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Xy(t),function(e,t){if(t&&("object"==Qy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yy()?Reflect.construct(t,n||[],Xy(e).constructor):t.apply(e,n))}(this,t))._dataQueue=e,r._utils=n,r._storageUtils=n.StorageUtils,r._navigator=o,r._battery=null,r._onLevelChangeEventFunc=r._onLevelChangeEventFunc.bind(r),r._onChargingChangeEventFunc=r._onChargingChangeEventFunc.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}(t,e),function(e,t,n){return t&&qy(e.prototype,t),n&&qy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(r=Ky(Hy().m((function e(){var t;return Hy().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.getBatteryManager();case 1:return this._battery=e.v,this._setupEventListeners(),e.n=2,this._sendData();case 2:e.n=4;break;case 3:e.p=3,t=e.v,pe.error("Failed to start battery status collector: ".concat(t.message||t));case 4:return e.a(2)}}),e,this,[[0,3]])}
2))),function(){return r.apply(this,arguments)})},{key:"stopFeature",value:function(){this._cleanupEventListeners(),this._battery=null}},{key:"_setupEventListeners",value:function(){this._battery&&(this._battery.addEventListener("levelchange",this._onLevelChangeEventFunc),this._battery.addEventListener("chargingchange",this._onChargingChangeEventFunc))}},{key:"_cleanupEventListeners",value:function(){this._battery&&(this._battery.removeEventListener("levelchange",this._onLevelChangeEventFunc),this._battery.removeEventListener("chargingchange",this._onChargingChangeEventFunc))}},{key:"getBatteryManager",value:(n=Ky(Hy().m((function e(){var t;return Hy().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._navigator.getBattery();case 1:return e.a(2,e.v);case 2:throw e.p=2,t=e.v,new Error("Failed to get battery manager: ".concat(t.message||t));case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return n.apply(this,arguments)})},{key:"_onLevelChangeEventFunc",value:function(e){this._sendData(e.currentTarget)}},{key:"_onChargingChangeEventFunc",value:function(e){this._sendData(e.currentTarget)}},{key:"_sendData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._battery;if(e){var t=this._storageUtils.getAndUpdateEventSequenceNumber(),n=this._utils.dateNow();this._dataQueue.addToQueue("battery_status",this._utils.convertToArrayByMap(eh,{eventSequence:t,timestamp:n,chargeLevel:e.level,isCharging:e.charging,powerSource:0}))}}}],[{key:"getDefaultSettings",value:function(){return $y}}]);var n,r}(Br);function nh(e){return nh="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},nh(e)}function rh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oh(r.key),r)}}function oh(e){var t=function(e){if("object"!=nh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nh(t)?t:t+""}function ih(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ih=function(){return!!e})()}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ah(e)}function uh(e,t){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uh(e,t)}var sh={configKey:"isMainThreadBlocking",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},ch=["eventSequence","timestamp","eventType","blockingDuration","attribution"],lh=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=ah(t),function(e,t){if(t&&("object"==nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ih()?Reflect.construct(t,n||[],ah(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,o._utils=n,o._dataQueue=r,o._blockingThreshold=200,o._performanceObserver=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uh(e,t)}(t,e),function(e,t,n){return t&&rh(e.prototype,t),n&&rh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){var e=this;this._isPerformanceObserverSupported()?(this._performanceObserver=new PerformanceObserver((function(t){t.getEntries().forEac
2h((function(t){"longtask"===t.entryType&&t.duration>=e._blockingThreshold&&e._onBlocking(t)}))})),this._performanceObserver.observe({entryTypes:["longtask"]}),pe.trace("MainThreadBlocking: Feature started using PerformanceObserver")):pe.trace("MainThreadBlocking: PerformanceObserver not supported, feature disabled")}},{key:"stopFeature",value:function(){this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null),pe.trace("MainThreadBlocking: Feature stopped")}},{key:"updateFeatureConfig",value:function(){var e=this._configurationRepository.get(P.mainThreadBlockingThreshold)||200;e!==this._blockingThreshold&&(this._blockingThreshold=e,pe.trace("MainThreadBlocking: Threshold updated to ".concat(this._blockingThreshold,"ms")))}},{key:"_isPerformanceObserverSupported",value:function(){var e;return"PerformanceObserver"in window&&(null===(e=PerformanceObserver.supportedEntryTypes)||void 0===e?void 0:e.includes("longtask"))}},{key:"_extractAttribution",value:function(e){var t=null;if(e.attribution&&e.attribution.length>0){var n=e.attribution[0];n.scriptURL&&n.scriptLine?t="".concat(n.scriptURL,"/").concat(n.scriptLine):n.scriptURL&&(t=n.scriptURL)}return t}},{key:"_onBlocking",value:function(e){var t=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),n=this.getEventTimestamp({timeStamp:performance.now()}),r=this._extractAttribution(e);pe.debug("MainThreadBlocking: Blocking detected - ".concat(e.duration.toFixed(2),"ms, attribution: ").concat(r)),this._dataQueue.addToQueue("main_thread_blocking",this._utils.convertToArrayByMap(ch,{eventType:0,eventSequence:t,timestamp:n,blockingDuration:e.duration,attribution:r}))}}],[{key:"getDefaultSettings",value:function(){return sh}}])}(Br);function fh(e){return fh="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},fh(e)}function ph(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return dh(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(dh(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dh(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,dh(f,"constructor",c),dh(c,"constructor",s),s.displayName="GeneratorFunction",dh(c,o,"GeneratorFunction"),dh(f),dh(f,o,"Generator"),dh(f,r,(function(){return this})),dh(f,"toString",(function(){return"[object Generator]"})),(ph=function(){return{w:i,m:p}})()}function dh(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dh=function(e,t,n,r){function i(t,n){dh(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},dh(e,t,n,r)}function yh(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function hh(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yh(i,r,o,a,u,"next",e)}function u(e){yh(i,r,o,a,u,"throw",e)}a(void 0)}))}}function mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vh(r.key),r)}}function vh(e){var t=function(e){if("object"!=fh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fh(t)?t:t+""}function bh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bh=function(){return!!e})()}
2function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gh(e)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_h(e,t)}var wh={configKey:"isPermissionChangeEvents",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},Sh=["eventSequence","timestamp","permissionName","state"],kh=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"undefined"!=typeof navigator?navigator.permissions:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=gh(t),function(e,t){if(t&&("object"==fh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bh()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}(this,t))._permDefs={granted:1,prompt:2,denied:3,true:1,false:3},o._trackedPermissions=["geolocation","midi","notifications"],o._dataQueue=e,o._utils=n,o._configurationRepository=r,o._permissions=i,o._knownStates={},o._permissionCheckId=null,o._isChecking=!1,o._pollGeneration=0,o._permissionCheckInterval=t._clampInterval(o._configurationRepository.get(P.permissionCheckIntervalMs)),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}(t,e),function(e,t,n){return t&&mh(e.prototype,t),n&&mh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._permissions?(this._permissionCheckInterval=t._clampInterval(this._configurationRepository.get(P.permissionCheckIntervalMs)),this._stopPoll(),this._schedulePoll()):pe.debug("PermissionChangeCollector: Permissions API not available")}},{key:"stopFeature",value:function(){this._stopPoll(),this._knownStates={}}},{key:"_stopPoll",value:function(){this._pollGeneration++,null!==this._permissionCheckId&&(clearTimeout(this._permissionCheckId),this._permissionCheckId=null)}},{key:"_schedulePoll",value:function(){var e=this,t=this._pollGeneration;this._permissionCheckId=setTimeout(hh(ph().m((function n(){return ph().w((function(n){for(;;)switch(n.n){case 0:if(t===e._pollGeneration){n.n=1;break}return n.a(2);case 1:return n.n=2,e._checkPermissions();case 2:t===e._pollGeneration&&e._schedulePoll();case 3:return n.a(2)}}),n)}))),this._permissionCheckInterval)}},{key:"_checkPermissions",value:(n=hh(ph().m((function e(){var t=this;return ph().w((function(e){for(;;)switch(e.p=e.n){case 0:if(!this._isChecking){e.n=1;break}return e.a(2);case 1:return this._isChecking=!0,e.p=2,e.n=3,Promise.allSettled(this._trackedPermissions.map((function(e){return t._queryWithTimeout(e)})));case 3:e.v.forEach((function(e,n){var r=t._trackedPermissions[n];if("fulfilled"===e.status){var o,i=null!==(o=t._permDefs[e.value.state])&&void 0!==o?o:-1,a=t._knownStates[r];void 0===a?t._knownStates[r]=i:i!==a&&(pe.debug("PermissionChangeCollector: ".concat(r," ").concat(a," \u2192 ").concat(i)),t._knownStates[r]=i,t._sendData(r,i))}else{var u;pe.debug('PermissionChangeCollector: poll error for "'.concat(r,'": ').concat((null===(u=e.reason)||void 0===u?void 0:u.message)||e.reason))}}));case 4:return e.p=4,this._isChecking=!1,e.f(4);case 5:return e.a(2)}}),e,this,[[2,,4,5]])}))),function(){return n.apply(this,arguments)})},{key:"_queryWithTimeout",value:function(e){var t,n=new Promise((function(n,r){t=setTimeout((function(){return r(new Error('query timeout for "'.concat(e,'"')))}),3e3)}));return Promise.race([this._permissions.query({name:e}).finally((function(){return clearTimeout(t)})),n])}},{key:"_sendData",value:function(e,t){var n=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),r=this.getEventTimestamp();this._dataQueue.addToQueue("permission_change_events",this._utils.convertToArrayByMap(Sh,{eventSequence:n,timestamp:r,permissionName:e,state:t}))}}],[{key:"getDefaultSettings",value:function(){return wh}},{key:"_clampInterval",value:function(e){return!Number.isFinite(e)||e<=0?2e3:Math.min(Math.max(e,2e3),5e3)}}]);var n}(Br);function Eh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Oh(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)?Oh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Th(e,t,n){return(t=Bh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e){return Ch="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},Ch(e)}function jh(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Mh(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Mh(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Mh(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Mh(f,"constructor",c),Mh(c,"constructor",s),s.displayName="GeneratorFunction",Mh(c,o,"GeneratorFunction"),Mh(f),Mh(f,o,"Generator"),Mh(f,r,(function(){return this})),Mh(f,"toString",(function(){return"[object Generator]"})),(jh=function(){return{w:i,m:p}})()}function Mh(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mh=function(e,t,n,r){function i(t,n){Mh(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mh(e,t,n,r)}function xh(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Rh(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xh(i,r,o,a,u,"next",e)}function u(e){xh(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Ah(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bh(r.key),r)}}function Bh(e){var t=function(e){if("object"!=Ch(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ch(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ch(t)?t:t+""}var Dh={none:0,image:1,system:2},Ih={none:0,image:1,system:2},Lh=function(){return function(e,t){return t&&Ah(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._browserEnv=t.browserEnv,this._cursorType=Dh,this._cursorSizeSource=Ih,this._maxCursorSize=128,this._cursorDetailsCacheMaxEntries=256,this._imageCursorIntrinsicSizeCacheMaxEntries=256,this._maxCacheableDataUriLength=1024,this._cursorSvgFetchTimeoutMs=300,this._cursorImageLoadTimeoutMs=300,this._cursorDetailsByComputedCursorStringMap=yt(),this._imageCursorIntrinsicSizeCache=yt()}),[{key:"getCursorDetailsForElement",value:(i=Rh(jh().m((function e(t){var n,r,o,i,a;return jh().w((function(e){for(;;)switch(e.n){case 0:if(r=null!==(n=this._browserEnv.getComputedStyle(t))&&void 0!==n?n:{}
2,o="string"==typeof r.cursor?r.cursor:"",!this._cursorDetailsByComputedCursorStringMap.has(o)){e.n=1;break}return i=this._getCacheValueAndPromote(this._cursorDetailsByComputedCursorStringMap,o),e.a(2,this._cloneCursorDetails(i));case 1:return e.n=2,this._computeCursorDetailsForElement(t);case 2:return a=e.v,this._shouldCacheComputedCursor(o)&&this._setCacheValueWithEviction(this._cursorDetailsByComputedCursorStringMap,o,this._cloneCursorDetails(a),this._cursorDetailsCacheMaxEntries),e.a(2,a)}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"shortenBase64InCursorString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;return"string"!=typeof e?e:e.replace(/(url\(\s*['"]?data:[^,]+,)([^'")]*)(['"]?\s*\))/g,(function(e,n,r,o){return r?n+(r.length>t?r.slice(0,t)+"...":r)+o:n+o}))}},{key:"_cloneCursorDetails",value:function(e){if(!e||"object"!==Ch(e))return e;var t=this._browserEnv.win,n=null;if(null!=t&&t.structuredClone&&"function"==typeof t.structuredClone?n=t.structuredClone.bind(t):"function"==typeof structuredClone&&(n=structuredClone),n)return n(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return pe.warn("CursorDetectionService: JSON clone failed, using shallow copy: ".concat(t.message||t),t),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ph(Object(n),!0).forEach((function(t){Th(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}}},{key:"_getCacheValueAndPromote",value:function(e,t){if(e.has(t)){var n=e.get(t);return e.delete(t),e.set(t,n),n}}},{key:"_setCacheValueWithEviction",value:function(e,t,n,r){for(e.has(t)&&e.delete(t),e.set(t,n);e.size>r;){var o=e.keys().next().value;e.delete(o)}}},{key:"_isLargeDataUri",value:function(e){return"string"==typeof e&&e.startsWith("data:")&&e.length>this._maxCacheableDataUriLength}},{key:"_shouldCacheComputedCursor",value:function(e){return"string"==typeof e&&(!/url\(\s*['"]?data:/i.test(e)||e.length<=this._maxCacheableDataUriLength)}},{key:"_shouldCacheImageCursorIntrinsicSize",value:function(e){return"string"==typeof e&&!this._isLargeDataUri(e)}},{key:"_shouldAttemptSvgFetch",value:function(e){if("string"!=typeof e||!e.trim())return!1;var t=e.trim().toLowerCase();if(t.startsWith("data:image/svg+xml"))return!0;var n=t.split(/[#?]/)[0];return/\.svg$/i.test(n)}},{key:"_computeCursorDetailsForElement",value:(o=Rh(jh().m((function e(t){var n,r,o,i,a,u,s,c,l,f,p;return jh().w((function(e){for(;;)switch(e.n){case 0:if(r=null!==(n=this._browserEnv.getComputedStyle(t))&&void 0!==n?n:{},o="string"==typeof r.cursor?r.cursor:"",i=this._splitCursorList(o),a=this._getCursorType(o,i),u=this._allUrlDescriptors(i),s=this._normalizeKeyword(this._firstKeywordLayer(i)),c={width:null,height:null},l={x:null,y:null},f=this._cursorSizeSource.system,a.type!==this._cursorType.image){e.n=2;break}return e.n=1,this._findUsableImageCursor(u);case 1:p=e.v,f=this._isUsableImageCursorResult(p)?this._applyImageCursorResult(p,a,c,l):this._applySystemCursorFallback(s,a,c,l);case 2:return a.type===this._cursorType.none&&(f=this._applyNoneCursor(a,c)),e.a(2,{computedCursor:a.cursor,cursorType:null==(null==a?void 0:a.type)?this._cursorType.system:a.type,cursorStyle:o,cursorSize:c,cursorSizeSource:f,hotpointPosition:l})}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_findUsableImageCursor",value:(r=Rh(jh().m((function e(t){var n,r,o,i,a;return jh().w((function(e){for(;;)switch(e.p=e.n){case 0:n=null,r=Eh(t),e.p=1,r.s();case 2:if((o=r.n()).done){e.n=5;break}return i=o.value,e.n=3,this._measureImageCursor(i.url,i.hotspotFromCss);case 3:if(n=e.v,!this._isUsableImageCursorResult(n)){e.n=4;break}return e.a(3,5);case 4:e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,a=e.v,r.e(a);case 7:return e.p=7,r.f(),e.f(7);case 8:return e.a(2,n)}}),e,this,[[1,6,7,8]])}))),function(e){return r.apply(this,arguments)})},{key:"_isUsableImageCursorResult",value:function(e){return Boolean((null==e?void 0:e.ok)&&(null==e?void 0:e.width)<=this._maxCursorSize&&(null==e?void 0:e.he
2ight)<=this._maxCursorSize)}},{key:"_applyImageCursorResult",value:function(e,t,n,r){var o=this._cursorSizeSource.image;return null!=e&&e.timedOut||null!==e.width||null!==e.height||(o=this._cursorSizeSource.system),n.width=null==e.width?null:Math.round(e.width),n.height=null==e.height?null:Math.round(e.height),r.x=null==e.hotpointPositionX?null:Math.round(e.hotpointPositionX),r.y=null==e.hotpointPositionY?null:Math.round(e.hotpointPositionY),t.type=this._cursorType.image,o}},{key:"_applySystemCursorFallback",value:function(e,t,n,r){return"none"===e?this._applyNoneCursor(t,n,r):(n.width=null,n.height=null,r.x=null,r.y=null,t.type=this._cursorType.system,t.cursor=e,this._cursorSizeSource.system)}},{key:"_applyNoneCursor",value:function(e,t,n){return e.type=this._cursorType.none,e.cursor="none",t.width=0,t.height=0,n&&(n.x=null,n.y=null),this._cursorSizeSource.none}},{key:"_parseUrlLayer",value:function(e){var t=e.trim(),n=/^url\s*\(/i.exec(t);if(!n)return null;var r=n[0].length,o=t[r],i='"'===o||"'"===o?this._parseQuotedUrlLayer(t,r,o):this._parseUnquotedUrlLayer(t,r);if(i.error)return i;var a=this._skipWhitespace(t,i.nextIdx),u=this._parseCursorHotspotCoordinates(t.slice(a));return{url:i.url.trim(),hotspotFromCss:u}}},{key:"_parseQuotedUrlLayer",value:function(e,t,n){for(var r=t+1,o="";r<e.length;)if("\\"!==e[r]){if(e[r]===n){r+=1;break}o+=e[r],r+=1}else{var i;o+=null!==(i=e[r+1])&&void 0!==i?i:"",r+=2}return")"!==e[r=this._skipWhitespace(e,r)]?{error:"Malformed url() after quote"}:{url:o,nextIdx:r+1}}},{key:"_parseUnquotedUrlLayer",value:function(e,t){for(var n=t,r="";n<e.length&&")"!==e[n];)r+=e[n],n+=1;return n<e.length&&")"===e[n]&&(n+=1),{url:r,nextIdx:n}}},{key:"_skipWhitespace",value:function(e,t){for(var n=t;n<e.length&&/\s/.test(e[n]);)n+=1;return n}},{key:"_parseCursorHotspotCoordinates",value:function(e){var t=/^(-?\d+)\s+(-?\d+)\s*$/.exec(e.trim());return t?[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]:null}},{key:"_allUrlDescriptors",value:function(e){var t,n=[],r=Eh(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=this._parseUrlLayer(o);i&&!i.error&&i.url&&n.push({layer:o,url:i.url,hotspotFromCss:i.hotspotFromCss})}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"_firstKeywordLayer",value:function(e){var t,n=Eh(e);try{for(n.s();!(t=n.n()).done;){var r=t.value.trim().toLowerCase();if(!/^url\s*\(/i.test(r)&&r)return r}}catch(e){n.e(e)}finally{n.f()}return""}},{key:"_normalizeKeyword",value:function(e){return{"vertical-text":"verticaltext"}[e]||e}},{key:"_getCursorType",value:function(e,t){if("string"!=typeof e||!e.trim())return{type:this._cursorType.system,cursor:""};var n=Array.isArray(t)?t:this._splitCursorList(e);if(!n.length)return{type:this._cursorType.system,cursor:""};var r=this._parseUrlLayer(n[0]);if(r&&!r.error&&r.url)return{type:this._cursorType.image,value:r.url,cursor:"url"};var o=n[0].trim().toLowerCase(),i=this._normalizeKeyword(o);return"none"===i?{type:this._cursorType.none,cursor:"none"}:{type:this._cursorType.system,cursor:i}}},{key:"_buildImageCursorMeasurePayload",value:function(e,t,n,r,o){if(e){var i,a,u,s=t,c=n;r?(i=r[0],a=r[1],u="From CSS: url(...) x y coordinates"):(i=0,a=0,u="CSS default for custom cursor (0, 0) when x y omitted");
2var l="Image intrinsic size (naturalWidth \xd7 naturalHeight after decode). Standard cursor syntax has no width/height; SVG/bitmap intrinsic dimensions apply.";return{ok:!0,width:s,height:c,hotpointPositionX:i,hotpointPositionY:a,hotspotHow:u,sizeHow:o?"".concat(l," Size reused from in-memory cache (same URL was decoded earlier in this page)."):l,fromCache:o}}return{ok:!1,width:null,height:null,hotpointPositionX:r?r[0]:null,hotpointPositionY:r?r[1]:null,hotspotHow:r?"Specified in CSS (image failed to load; hotspot still reported)":"Unknown \u2014 image failed to load",sizeHow:"Could not load resource (CORS, bad URL, or network). Fallback cursor may be used at paint time.",fromCache:!1}}},{key:"_splitCursorList",value:function(e){if("string"!=typeof e||!e.length)return[];var t,n={parts:[],depth:0,inSingleQuote:!1,inDoubleQuote:!1,isEscaped:!1,cur:""},r=Eh(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;this._processCursorListChar(n,o)}}catch(e){r.e(e)}finally{r.f()}return this._pushCurrentCursorLayer(n),n.parts}},{key:"_processCursorListChar",value:function(e,t){if(e.isEscaped)return e.cur+=t,void(e.isEscaped=!1);if(this._isCursorEscapeStart(e,t))return e.cur+=t,void(e.isEscaped=!0);if(this._toggleCursorQuoteState(e,t))e.cur+=t;else{if(this._updateCursorLayerDepth(e,t),this._isCursorLayerDelimiter(e,t))return this._pushCurrentCursorLayer(e),void(e.cur="");e.cur+=t}}},{key:"_isCursorEscapeStart",value:function(e,t){return(e.inSingleQuote||e.inDoubleQuote)&&"\\"===t}},{key:"_toggleCursorQuoteState",value:function(e,t){return e.inDoubleQuote||"'"!==t?!e.inSingleQuote&&'"'===t&&(e.inDoubleQuote=!e.inDoubleQuote,!0):(e.inSingleQuote=!e.inSingleQuote,!0)}},{key:"_updateCursorLayerDepth",value:function(e,t){e.inSingleQuote||e.inDoubleQuote||("("!==t?")"===t&&e.depth>0&&(e.depth-=1):e.depth+=1)}},{key:"_isCursorLayerDelimiter",value:function(e,t){return","===t&&0===e.depth&&!e.inSingleQuote&&!e.inDoubleQuote}},{key:"_pushCurrentCursorLayer",value:function(e){var t=e.cur.trim();t&&e.parts.push(t)}},{key:"_getSvgAsDataUri",value:(n=Rh(jh().m((function e(t){var n,r,o,i,a,u,s,c,l;return jh().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,"string"==typeof t&&t.trim()){e.n=1;break}return e.a(2,!1);case 1:if(!t.trim().toLowerCase().startsWith("data:image/svg+xml")){e.n=2;break}return e.a(2,t);case 2:return e.n=3,this._fetchWithTimeout(t,this._cursorSvgFetchTimeoutMs);case 3:if((n=e.v).ok){e.n=4;break}return e.a(2,!1);case 4:if(r=(n.headers.get("Content-Type")||"").toLowerCase(),o=r.includes("image/svg+xml"),i=t.trim().split(/[#?]/)[0],a=/\.svg$/i.test(i),o||a){e.n=5;break}return e.a(2,!1);case 5:return e.n=6,n.text();case 6:if(u=e.v,o){e.n=7;break}
2if(s=u.trimStart(),/^(<\?xml|<svg)\b/i.test(s)){e.n=7;break}return e.a(2,!1);case 7:return c=this._browserEnv.encodeUtf8ToBase64(u),e.a(2,"data:image/svg+xml;base64,".concat(c));case 8:if(e.p=8,null==(l=e.v)||!l.isTimeout){e.n=9;break}return e.a(2,{timedOut:!0,stage:"fetch"});case 9:return pe.warn("CursorDetectionService: failed to get SVG as data URI: ".concat(l.message||l),l),e.a(2,!1)}}),e,this,[[0,8]])}))),function(e){return n.apply(this,arguments)})},{key:"_fetchWithTimeout",value:(t=Rh(jh().m((function e(t,n){var r,o,i,a,u,s,c;return jh().w((function(e){for(;;)switch(e.p=e.n){case 0:if(o=this._browserEnv.win,(i=null!==(r=null==o?void 0:o.AbortController)&&void 0!==r?r:"function"==typeof AbortController?AbortController:null)&&Number.isFinite(n)&&!(n<=0)){e.n=1;break}return e.a(2,this._browserEnv.fetch(t));case 1:return a=new i,u=setTimeout((function(){a.abort()}),n),e.p=2,e.n=3,this._browserEnv.fetch(t,{signal:a.signal});case 3:return e.a(2,e.v);case 4:if(e.p=4,c=e.v,!a.signal.aborted){e.n=5;break}throw(s=new Error("fetch timed out after ".concat(n,"ms"))).name="TimeoutError",s.isTimeout=!0,s;case 5:throw c;case 6:return e.p=6,clearTimeout(u),e.f(6);case 7:return e.a(2)}}),e,this,[[2,4,6,7]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_getSvgDimensions",value:function(e){if("string"!=typeof e||!e.trim())return null;try{var t=e;if(t.startsWith("data:image/svg+xml")){var n=t.indexOf("base64,");if(n>=0)t=this._browserEnv.atob(t.substring(n+7));else{var r=t.indexOf(",");if(r<0)return null;t=decodeURIComponent(t.slice(r+1))}}var o=(new this._browserEnv.DOMParser).parseFromString(t,"image/svg+xml").documentElement;if("svg"!==o.nodeName)return null;var i=null==o?void 0:o.getAttribute("width"),a=null==o?void 0:o.getAttribute("height");return{width:i?Number.parseFloat(i):null,height:a?Number.parseFloat(a):null}}catch(e){return pe.warn("CursorDetectionService: failed to parse SVG dimensions: ".concat((null==e?void 0:e.message)||e),e),null}}},{key:"_measureImageCursor",value:(e=Rh(jh().m((function e(t,n){var r,o,i,a,u,s,c=this;return jh().w((function(e){for(;;)switch(e.n){case 0:if(!this._imageCursorIntrinsicSizeCache.has(t)){e.n=1;break}return r=this._getCacheValueAndPromote(this._imageCursorIntrinsicSizeCache,t),e.a(2,this._buildImageCursorMeasurePayload(!0,null==r?void 0:r.width,null==r?void 0:r.height,n,!0));case 1:if(!this._shouldAttemptSvgFetch(t)){e.n=3;break}return e.n=2,this._getSvgAsDataUri(t);case 2:s=e.v,e.n=4;break;case 3:s=!1;case 4:if(null==(o=s)||!o.timedOut){e.n=5;break}return e.a(2,this._buildImageCursorTimeoutPayload(n,o.stage));case 5:return a=null,(i=!1!==o)&&(a=this._getSvgDimensions(o)),u=t,i&&(u=o),e.a(2,new Promise((function(e){var r=new c._browserEnv.Image,o=null,s=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!==o&&(clearTimeout(o),o=null),r.onload=null,r.onerror=null,n)try{r.src=""}catch(e){pe.warn("CursorDetectionService: failed to abort image load after timeout: ".concat(e.message||e),e)}e(t)};r.onload=function(){var e,o,u,l,f=null!==(e=null===(o=a)||void 0===o?void 0:o.width)&&void 0!==e?e:r.naturalWidth,p=null!==(u=null===(l=a)||void 0===l?void 0:l.height)&&void 0!==u?u:r.naturalHeight;i&&a&&null==a.width&&null==a.height&&(f=null,p=null),c._shouldCacheImageCursorIntrinsicSize(t)&&c._setCacheValueWithEviction(c._imageCursorIntrinsicSizeCache,t,{width:f,height:p},c._imageCursorIntrinsicSizeCacheMaxEntries),s(c._buildImageCursorMeasurePayload(!0,f,p,n,!1))},r.onerror=function(){s(c._buildImageCursorMeasurePayload(!1,null,null,n,!1))},o=setTimeout((function(){s(c._buildImageCursorTimeoutPayload(n,"image_load"),!0)}),c._cursorImageLoadTimeoutMs),r.decoding="async",r.src=u})))}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"_buildImageCursorTimeoutPayload",value:function(e,t){return{ok:!0,timedOut:!0,width:null,height:null,hotpointPositionX:e?e[0]:null,hotpointPositionY:e?e[1]:null,hotspotHow:e?"Specified in CSS (image lookup timed out; hotspot still reported)":"Unknown \u2014 image lookup timed out",sizeHow:"Image lookup timed out at stage: ".concat(t,". Cursor remains image type with unknown intrinsic size."),fromCache:!1}}}]);var e,t,n,r,o,i}();function Fh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
vendor: 4,600 bytes, line 2
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Nh(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)?Nh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 Nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uh(e){return Uh="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},Uh(e)}function Gh(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Wh(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Wh(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Wh(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Wh(f,"constructor",c),Wh(c,"constructor",s),s.displayName="GeneratorFunction",Wh(c,o,"GeneratorFunction"),Wh(f),Wh(f,o,"Generator"),Wh(f,r,(function(){return this})),Wh(f,"toString",(function(){return"[object Generator]"})),(Gh=function(){return{w:i,m:p}})()}function Wh(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wh=function(e,t,n,r){function i(t,n){Wh(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Wh(e,t,n,r)}function Qh(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Hh(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Qh(i,r,o,a,u,"next",e)}function u(e){Qh(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zh(r.key),r)}}function zh(e){var t=function(e){if("object"!=Uh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uh(t)?t:t+""}function Kh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kh=function(){return!!e})()}function qh(e,t,n,r){var o=Jh(Yh(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Jh(){return Jh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Yh(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Jh.apply(null,arguments)}
2function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yh(e)}function Xh(e,t){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xh(e,t)}var Zh={configKey:"isCursorFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInSlave:!1,runInLean:!1,runInUns:!1,isRunning:!1,instance:null},$h={mouse:0,pen:1,touch:2},em=["eventSequence","timestamp","eventType","elementHash","cursorSizeW","cursorSizeH","cursorSizeSource","cursorType","computedCursor","cursorRawStyleString","hotpointPositionX","hotpointPositionY","isVirtualizedPointer","isTransparentHitbox","X","Y","areCoordinatesRounded","persistentDeviceId","isTrusted","pointerType","pointerId","altitudeAngle","tangentialPressure","azimuthAngle","pointerWidth","pointerHeight","pointerPressure","pointerTiltX","pointerTiltY","pointerTwist","isPointerPrimary"],tm=function(e){function t(e,n,r,o,i,a,u,s){var c,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(c=function(e,t,n){return t=Yh(t),function(e,t){if(t&&("object"==Uh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kh()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}(this,t))._dataQueue=e,c._utils=n,c._elementsUtils=r,c._domUtils=o,c._configuration=i,c._storageUtils=n.StorageUtils,c._observedElementComputedCursorMap=yt(),c._onEventBinded=c._onEventBinded.bind(c),c._mutationObservers=yt(),c._rootListeners=yt(),c._maxShadowDepth=i.getMaxShadowDepth(),c._iframeLoadingTimeout=i.getIframeLoadingTimeout(),c._browserEnv=null!=l?l:t.createDefaultCursorCollectorBrowserEnvironment(),c._cursorDetectionService=a,c._hitboxDetectionService=u,c._maskingService=s,!c._cursorDetectionService||!c._hitboxDetectionService)throw new Error("CursorCollector requires externally-instantiated cursor and hitbox services");return c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xh(e,t)}(t,e),function(e,t,n){return t&&Vh(e.prototype,t),n&&Vh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(o=Hh(Gh().m((function e(n){return Gh().w((function(e){for(;;)switch(e.n){case 0:try{qh(t,"startFeature",this,3)([]),this._bind(n)}catch(e){pe.error("Failed to start cursor collector: ".concat(e.message||e),e)}case 1:return e.a(2)}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"stopFeature",value:(r=Hh(Gh().m((function e(n){return Gh().w((function(e){for(;;)switch(e.n){case 0:try{qh(t,"stopFeature",this,3)([]),this._unbind(n)}catch(e){pe.error("Failed to stop cursor collector: ".concat(e.message||e),e)}case 1:return e.a(2)}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_sendData",value:(n=Hh(Gh().m((function e(t,n,r){var o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g,_,w,S,k,E,O,P;return Gh().w((function(e){for(;;)switch(e.p=e.n){case 0:return o={cursorSize:{width:null,height:null},cursorSizeSource:Ih.system,cursorType:Dh.system,computedCursor:"",cursorStyle:"",hotpointPosition:{x:null,y:null}},e.p=1,d=this._storageUtils.getAndUpdateEventSequenceNumber(),y=this._utils.dateNow(),h=o,e.p=2,e.n=3,this._cursorDetectionService.getCursorDetailsForElement(t);case 3:(m=e.v)&&(h=m),e.n=5;break;case 4:e.p=4,O=e.v,pe.error("Failed resolving cursor details: ".concat(O.message||O),O);case 5:v=-1;try{v=this._elementsUtils.getElement(t)}catch(e){pe.error("Failed resolving element hash: ".concat(e.message||e),e)}b=this._maskingService.shouldMaskCoordinates(),g={eventSequence:d,timestamp:y,eventType:n,elementHash:v,cursorSizeW:null===(i=h)||void 0===i||null===(i=i.cursorSize)||void 0===i?void 0:i.width,cursorSizeH:null===(a=h)||void 0===a||null===(a=a.cursorSize)||void 0===a?void 0:a.height,cursorSizeSource:null===(u=h)||void 0===u?void 0:u.curs
2orSizeSource,cursorType:null===(s=h)||void 0===s?void 0:s.cursorType,computedCursor:null===(c=h)||void 0===c?void 0:c.computedCursor,cursorRawStyleString:this._cursorDetectionService.shortenBase64InCursorString(null===(l=h)||void 0===l?void 0:l.cursorStyle),hotpointPositionX:null===(f=h)||void 0===f||null===(f=f.hotpointPosition)||void 0===f?void 0:f.x,hotpointPositionY:null===(p=h)||void 0===p||null===(p=p.hotpointPosition)||void 0===p?void 0:p.y,isVirtualizedPointer:this._nonStandardPointerDetected(),isTransparentHitbox:null==r?void 0:r.isHitbox,X:b?Wr:null==r?void 0:r.X,Y:b?Wr:null==r?void 0:r.Y,areCoordinatesRounded:null==r?void 0:r.areCoordinatesRounded,persistentDeviceId:null==r?void 0:r.persistentDeviceId,isTrusted:null==r?void 0:r.isTrusted,pointerType:null==r?void 0:r.pointerType,pointerId:null==r?void 0:r.pointerId,altitudeAngle:null==r?void 0:r.altitudeAngle,tangentialPressure:null==r?void 0:r.tangentialPressure,azimuthAngle:null==r?void 0:r.azimuthAngle,pointerWidth:null==r?void 0:r.pointerWidth,pointerHeight:null==r?void 0:r.pointerHeight,pointerPressure:null==r?void 0:r.pointerPressure,pointerTiltX:null==r?void 0:r.pointerTiltX,pointerTiltY:null==r?void 0:r.pointerTiltY,pointerTwist:null==r?void 0:r.pointerTwist,isPointerPrimary:null==r?void 0:r.isPrimary},this._dataQueue.addToQueue("cursor_events",this._utils.convertToArrayByMap(em,g)),e.n=7;break;case 6:e.p=6,P=e.v,t&&t.nodeType===this._browserEnv.ELEMENT_NODE?(w=t.tagName||"?",S="",t.id&&(S="#".concat(t.id)),_="".concat(w).concat(S)):_="nodeType=".concat(null!==(k=null==t?void 0:t.nodeType)&&void 0!==k?k:"n/a"),E="object"===Uh(n)?JSON.stringify(n):String(n),pe.error("Failed to send cursor data (".concat(E,", ").concat(_,"): ").concat(P.message||P),P);case 7:return e.a(2)}}),e,this,[[2,4],[1,6]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_bind",value:function(e){var t,n=this._browserEnv.win;n.PointerEvent?t=["pointerdown"]:n.TouchEvent&&(t=["touchstart"]),this._listeningToEvents=t,this._listeningToEvents&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,this._traverseRoots.bind(this))}},{key:"_traverseRoots",value:function(e){try{var t=!this._rootListeners.has(e);if(t&&this._rootListeners.set(e,!0),t){var n,r=Fh(this._listeningToEvents);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._domUtils.addEventListener(e,o,this._onEventBinded)}}catch(e){r.e(e)}finally{r.f()}}var i=e.body,a=e.documentElement;if(!i||!a)return;if(t&&(this._syncObservedElementComputedCursor(i),this._syncObservedElementComputedCursor(a),this._sendData(i,0,{}).catch((function(e){pe.error("Failed to send cursor onload data: ".concat(e.message||e))})),this._sendData(a,0,{}).catch((function(e){pe.error("Failed to send cursor onload data: ".concat(e.message||e))}))),!this._isMutationObserverSupported())return;if(this._mutationObservers.has(e))return;var u=new this._browserEnv.MutationObserver(this._onCursorMutation.bind(this)),s={attributes:!0,attributeFilter:["style","class"],attributeOldValue:!0};this._mutationObservers.set(e,{instance:u}),u.observe(i,s),u.observe(a,s)}catch(e){pe.error("Failed to traverse roots: ".concat(e.message||e))}}},{key:"_unbind",value:function(e){this._listeningToEvents&&e.traverseRoots(this._maxShadowDepth,this._iframeLoadingTimeout,this._unbindRoot.bind(this)),this._mutationObservers.forEach((function(e){var t;null==e||null===(t=e.instance)||void 0===t||t.disconnect()})),this._mutationObservers.clear(),this._rootListeners.clear(),this._observedElementComputedCursorMap=yt()}},{key:"_unbindRoot",value:function(e){try{this._rootListeners.delete(e);var t,n=Fh(this._listeningToEvents);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._domUtils.removeEventListener(e,r,this._onEventBinded)}}catch(e){n.e(e)}finally{n.f()}}catch(e){pe.error("CursorCollector._unbindRoot failed. msg: ".concat(e.message),e)}}},{key:"_nonStandardPointerDetected",value:function(){var e,t,n=this._browserEnv.win;if("function"!=typeof n.matchMedia)return!1;var r=!(null===(e=n.matchMedia("(any-hover: hover)"))||void 0===e||!e.matches),o=!(null===(t=n.matchMedia("(pointer: coarse)"))||void 0===t||!t.matches);return!r&&!o}},{key:"_isMutationObserverSupported",value:function(){return"function"==typeof this._browserEnv.MutationObserver}},{key:"_onCursorMutation",value:function(e){var t=this;null==e||e.forEach((function(e){try{if("attributes"===e.type){var n=e.oldValue;if(e.target.getAttribute(e.attributeName)!==n&&("class"===e.attributeName||"style"===e.attributeName)&&t._didObservedElementComputedCursorChange(e.target)){var r=t._elementsUtils.getRealEventTarget(e)||e.target;t._sendData(r,3)}}}catch(e){pe.error("CursorCollector._onCursorMutation mutation failed. msg: ".concat(e.message),e)}}))}},{key:"_syncObservedElementComputedCursor",value:function(e){var t,n,r=null!==(t=null===(n=this._browserEnv.getComputedStyle(e))||void 0===n?void 0:n.cursor)&&void 0!==t?t:null;return this._observedElementComputedCursorMap.set(e,r),r}},{key:"_didObservedElementComputedCursorChange",value:function(e){var t,n,r=null!==(t=null===(n=this._browserEnv.getComputedStyle(e))||void 0===n?void 0:n.cursor)&&void 0!==t?t:null;if(!this._observedElementComputedCursorMap.has(e))return this._observedElementComputedCursorMap.set(e,r),!1;var o=this._observedElementComputedCursorMap.get(e);return this._observedElementComputedCursorMap.set(e,r),o!==r}},{key:"_onEventBinded",value:function(e){switch(e.type){case"pointerdown":this._onPointerDownEvent(e);break;case"touchstart":this._onTouchStartEvent(e)}return!0}},{key:"_onPointerDownEvent",value:function(e){try{return this._handlePointerLikeStartEvent(e,1),!0}catch(e){pe.error("CursorCollector._onPointerDownEvent failed. msg: ".concat(e.message),e)}}},{key:"_onTouchStartEvent",value:function(e){try{return this._handlePointerLikeStartEvent(e,2),!0}catch(e){pe.error("CursorCollector._onTouchStartEvent failed. msg: ".concat(e.message),e)}}},{key:"_handlePointerLikeStartEvent",value:function(e,t){var n=this._getEventData(e);this._sendData(e.target,t,n)}},{key:"_isFloat",value:function(e){var t=Number(e);return!Number.isNaN(t)&&Number.isFinite(t)&&!Number.isInteger(t)}},{key:"_getEventClientCoordinates",value:function(e){var t,n,r=null===(t=e.changedTouches)||void 0===t?void 0:t[0];if(r)return{x:r.clientX,y:r.clientY};var o=null===(n=e.touches)||void 0===n?void 0:n[0];return o?{x:o.clientX,y:o.clientY}:{x:e.x,y:e.y}}},{key:"_getEventData",value:function(e){try{var t,n,r=null!==(t=null===(n=this._hitbox
2DetectionService.isPotentialFraudHitbox(e.target))||void 0===n?void 0:n.potentialFraudHitbox)&&void 0!==t&&t,o=this._browserEnv.win,i=this._isTouchLikeEvent(e,o),a=this._getNormalizedEventCoordinates(e,i),u=Number.isFinite(a.x)&&Number.isFinite(a.y),s=!1;u&&(s=!this._isFloat(a.x)&&!this._isFloat(a.y));var c=this._getNormalizedPointerType(e,i);return{isHitbox:r,persistentDeviceId:e.persistentDeviceId,X:a.x,Y:a.y,areCoordinatesRounded:s,isTrusted:e.isTrusted,pointerType:c,pointerId:e.pointerId,altitudeAngle:e.altitudeAngle,azimuthAngle:e.azimuthAngle,pointerWidth:e.width,pointerHeight:e.height,tangentialPressure:e.tangentialPressure,pointerPressure:e.pressure,pointerTiltX:e.tiltX,pointerTiltY:e.tiltY,pointerTwist:e.twist,isPrimary:e.isPrimary}}catch(e){pe.error("CursorCollector._getEventData failed. msg: ".concat(e.message),e)}return{}}},{key:"_isTouchLikeEvent",value:function(e,t){return!!e&&("function"==typeof t.TouchEvent&&e instanceof t.TouchEvent||e.changedTouches&&e.changedTouches.length>0||e.touches&&e.touches.length>0)}},{key:"_getNormalizedEventCoordinates",value:function(e,t){return t?this._getEventClientCoordinates(e):{x:Number.isFinite(e.x)?e.x:e.clientX,y:Number.isFinite(e.y)?e.y:e.clientY}}},{key:"_getNormalizedPointerType",value:function(e,t){return t?$h.touch:$h[e.pointerType]}}],[{key:"getDefaultSettings",value:function(){return Zh}},{key:"defaultEncodeUtf8ToBase64",value:function(e){if("function"!=typeof btoa)return"";if("function"==typeof TextEncoder){for(var t=(new TextEncoder).encode(e),n="",r=0;r<t.length;r+=32768){var o=t.subarray(r,r+32768);n+=String.fromCodePoint.apply(null,o)}return btoa(n)}try{return btoa(unescape(encodeURIComponent(e)))}catch(e){return pe.warn("CursorCollector.defaultEncodeUtf8ToBase64 fallback encoding failed: ".concat(e.message||e),e),""}}},{key:"createDefaultCursorCollectorBrowserEnvironment",value:function(){var e,n="undefined"==typeof window?{}:window,r="undefined"==typeof document?{}:document;return e="function"==typeof globalThis.fetch?globalThis.fetch.bind(globalThis):"function"==typeof n.fetch?n.fetch.bind(n):function(){var e=Hh(Gh().m((function e(t,n){return Gh().w((function(e){for(;;)switch(e.n){case 0:throw new Error("fetch is not available");case 1:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{win:n,doc:r,getComputedStyle:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t,r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return"function"==typeof(null==r?void 0:r.getComputedStyle)?r.getComputedStyle(e):"function"==typeof n.getComputedStyle?n.getComputedStyle(e):"function"==typeof getComputedStyle?getComputedStyle(e):{}})),fetch:e,Image:n.Image,MutationObserver:n.MutationObserver,DOMParser:n.DOMParser,encodeUtf8ToBase64:t.defaultEncodeUtf8ToBase64,atob:"function"==typeof atob?function(e){return atob(e)}:function(){throw new Error("atob is not available")},ELEMENT_NODE:"undefined"==typeof Node?1:Node.ELEMENT_NODE}}}]);var n,r,o}(Br);function nm(e){return nm="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},nm(e)}function rm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,om(r.key),r)}}function om(e){var t=function(e){if("object"!=nm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nm(t)?t:t+""}var im=function(e,t){return t&&rm(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"validateParams",value:function(){throw new Error("_validateParams should be overridden")}},{key:"buildQueueMessage",value:function(){throw new Error("buildQueueMessage should be overridden")}},{key:"validateMessage",value:function(){throw new Error("_validateMessage should be overridden")}},{key:"getName",value:function(){throw new Error("_getName should be overridden")}}]);function am(e){return am="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},am(e)}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sm(r.key),r)}}function sm(e){var t=function(e){if("object"!=am(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=am(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==am(t)?t:t+""}function cm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cm=function(){return!!e})()}function lm(e){return lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lm(e)}function fm(e,t){return fm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fm(e,t)}var pm=function(e){function t(e,n,r,o,i,a,u){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,n){return t=lm(t),function(e,t){if(t&&("object"==am(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cm()?Reflect.construct(t,n||[],lm(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n,r,o,i,a,u),s.isChrome=e,s.isFirefox=n,s.isEdge=r,s.isIE=o,s.isSafari=i,s.isOpera=a,s.isBlink=u,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fm(e,t)}(t,e),function(e,t){return t&&um(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t,n,r,o,i,a){"boolean"==typeof e&&"boolean"==typeof t&&"boolean"==typeof n&&"boolean"==typeof r&&"boolean"==typeof o&&"boolean"==typeof i&&"boolean"==typeof a||pe.warn("wrong type in Per, BrowserDetectContract, parameters. isChrome : {expected: boolean, received: ".concat(am(e),"},\n isFirefox : {expected: boolean, received: ").concat(am(t),"},isEdge : {expected: boolean, received: ").concat(am(n),"},isIE : {expected: boolean, received: ").concat(am(r),"},\n isSafari : {expected: boolean, received: ").concat(am(o),"},isOpera : {expected: boolean, received: ").concat(am(i),"} ,isBlink : {expected: boolean, received: ").concat(am(a),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),[this.isChrome,this.isFirefox,this.isEdge,this.isIE,this.isSafari,this.isOpera,this.isBlink]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&7===e[1].length||pe.warn("BrowserDetect - Contract verification failed")}},{key:"getName",value:function(){return"browser_spoofing"}}])}(im);function dm(e){return dm="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},dm(e)}function ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hm(r.key),r)}}function hm(e){var t=function(e){if("object"!=dm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dm(t)?t:t+""}function mm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mm=function(){return!!e})()}function vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vm(e)}function bm(e,t){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bm(e,t)}var gm={configKey:"isBrowserDetect",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},_m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=vm(t),function(e,t){if(t&&("object"==dm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mm()?Reflect.construct(t,n||[],vm(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bm(e,t)}(t,e),function(e,t,n){return t&&ym(e.prototype,t),n&&ym(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){var e=!1,t=!1,n=!1,r=!1,o=!1,i=!1,a=!1;
2if(Z.hasUserAgentData()){Z.getBrands().forEach((function(r){"Google Chrome"===r.brand&&(e=!0),"Opera"===r.brand&&(t=!0),"Microsoft Edge"===r.brand&&(i=!0),"Firefox"===r.brand&&(n=!0)}));var u=Z.getUserAgentDataPlatform();u&&(r="macOS"===u&&!e&&!i&&!t&&/Safari/.test(Z.getUserAgent())),a=e||t}else{var s=Z.getUserAgent();t=/OPR|Opera/.test(s),n=/Firefox/.test(s),r=/Safari/.test(s)&&/Apple Computer/.test(navigator.vendor),o=/MSIE|Trident/.test(s),i=/Edg/.test(s),a=((e=/Chrome/.test(s)&&!i&&!t&&/Google Inc/.test(navigator.vendor))||t)&&!!window.CSS}var c=new pm(e,n,i,o,r,t,a).buildQueueMessage();this._dataQ.addToQueue("static_fields",c,!1)}}],[{key:"getDefaultSettings",value:function(){return gm}}])}(Br);function wm(e){return wm="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},wm(e)}function Sm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,km(r.key),r)}}function km(e){var t=function(e){if("object"!=wm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wm(t)?t:t+""}function Em(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Em=function(){return!!e})()}function Om(e){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Om(e)}function Pm(e,t){return Pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pm(e,t)}var Tm=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Om(t),function(e,t){if(t&&("object"==wm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Em()?Reflect.construct(t,n||[],Om(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.scriptVersion=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pm(e,t)}(t,e),function(e,t){return t&&Sm(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn(" wrong type in VersionClient, BrowserProps parameters. scriptVersion : {expected: string, received: ".concat(wm(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.scriptVersion];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("version_client, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"version_client"}}])}(im);function Cm(e){return Cm="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},Cm(e)}function jm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mm(r.key),r)}}function Mm(e){var t=function(e){if("object"!=Cm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cm(t)?t:t+""}function xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xm=function(){return!!e})()}function Rm(e){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rm(e)}function Am(e,t){return Am=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Am(e,t)}var Bm=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Rm(t),function(e,t){if(t&&("object"==Cm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xm()?Reflect.construct(t,n||[],Rm(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.source=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Am(e,t)}(t,e),function(e,t){return t&&jm(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn(" wrong type in DeviceSource, BrowserProps parameters. source : {expected: string, received: ".concat(Cm(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.source];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("device_source, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"device_source"}}])}(im);function Dm(e){return Dm="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},Dm(e)}function Im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lm(r.key),r)}}function Lm(e){var t=function(e){if("object"!=Dm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dm(t)?t:t+""}function Fm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fm=function(){return!!e})()}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nm(e)}function Um(e,t){return Um=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Um(e,t)}var Gm=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Nm(t),function(e,t){if(t&&("object"==Dm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fm()?Reflect.construct(t,n||[],Nm(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.platform=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Um(e,t)}(t,e),function(e,t){return t&&Im(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn(" wrong type in OS, BrowserProps parameters. platform : {expected: string, received: ".concat(Dm(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.platform];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("os, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"os"}}])}(im);function Wm(e){return Wm="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},Wm(e)}function Qm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hm(r.key),r)}}function Hm(e){var t=function(e){if("object"!=Wm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wm(t)?t:t+""}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vm=function(){return!!e})()}function zm(e){return zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zm(e)}function Km(e,t){return Km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Km(e,t)}var qm=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=zm(t),function(e,t){if(t&&("object"==Wm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vm()?Reflect.construct(t,n||[],zm(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.version=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Km(e,t)}(t,e),function(e,t){return t&&Qm(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"number"==typeof e||null===e||pe.warn(" wrong type in OSVersion, BrowserProps parameters. version : {expected: number, received: ".concat(Wm(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.version];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&("number"==typeof e[1]||null===e[1])||pe.warn("os_version, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"os_version"}}])}(im);function Jm(e){return Jm="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},Jm(e)}function Ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xm(r.key),r)}}function Xm(e){var t=function(e){if("object"!=Jm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jm(t)?t:t+""}function Zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zm=function(){return!!e})()}function $m(e){return $m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$m(e)}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ev(e,t)}var tv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=$m(t),function(e,t){if(t&&("object"==Jm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zm()?Reflect.construct(t,n||[],$m(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.osName=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ev(e,t)}(t,e),function(e,t){return t&&Ym(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn(" wrong type in OSFamily, BrowserProps parameters. osName : {expected: string, received: ".concat(Jm(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.osName];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("os_family, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"os_family"}}])}(im);function nv(e){return nv="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},nv(e)}function rv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ov(r.key),r)}}function ov(e){var t=function(e){if("object"!=nv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nv(t)?t:t+""}function iv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iv=function(){return!!e})()}function av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},av(e)}function uv(e,t){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uv(e,t)}var sv=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=av(t),function(e,t){if(t&&("object"==nv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,iv()?Reflect.construct(t,n||[],av(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n),r.pointer=e,r.hover=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uv(e,t)}(t,e),function(e,t){return t&&rv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t){!("number"!=typeof e||1!==e&&2!==e&&3!==e&&4!==e&&5!==e||"number"!=typeof t||1!==t&&2!==t&&3!==t&&4!==t&&5!==t)||pe.warn(" wrong type in InputMech, BrowserProps parameters. pointer : {expected: number, received: ".concat(nv(e),"}, hover : {expected: number, received: ").concat(nv(t),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),[this.pointer,this.hover]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&2===e[1].length||pe.warn("input_mech, BrowserPropsContract - Contract ve
2rification failed")}},{key:"getName",value:function(){return"input_mech"}}])}(im);function cv(e){return cv="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},cv(e)}function lv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fv(r.key),r)}}function fv(e){var t=function(e){if("object"!=cv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cv(t)?t:t+""}function pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pv=function(){return!!e})()}function dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dv(e)}function yv(e,t){return yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yv(e,t)}var hv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=dv(t),function(e,t){if(t&&("object"==cv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pv()?Reflect.construct(t,n||[],dv(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.hardwareConcurrency=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yv(e,t)}(t,e),function(e,t){return t&&lv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"number"==typeof e||pe.warn("wrong type in cores, BrowserProps parameters. hardwareConcurrency : {expected: number, received: ".concat(cv(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.hardwareConcurrency
2];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("cores,BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"cores"}}])}(im);function mv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vv(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)?vv(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bv(e){return bv="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},bv(e)}function gv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_v(r.key),r)}}function _v(e){var t=function(e){if("object"!=bv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bv(t)?t:t+""}function wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wv=function(){return!!e})()}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sv(e)}function kv(e,t){return kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kv(e,t)}var Ev=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Sv(t),function(e,t){if(t&&("object"==bv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wv()?Reflect.construct(t,n||[],Sv(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.plugins=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kv(e,t)}(t,e),function(e,t){return t&&gv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){Array.isArray(e)&&this._eachPluginIsValid(e)||pe.warn(" wrong type in plugins, BrowserProps parameters. plugins : {expected: [[...string]], received: ".concat(bv(e),"}"))}},{key:"_eachPluginIsValid",value:function(e){var t,n=!0,r=!0,o=!0,i=mv(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(Array.isArray(a)){4!==a.length&&(o=!1);var u,s=mv(a);try{for(s.s();!(u=s.n()).done;)"string"!=typeof u.value&&(r=!1)}catch(e){s.e(e)}finally{s.f()}}else n=!1}}catch(e){i.e(e)}finally{i.f()}return n&&o&&r}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.plugins];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])||pe.warn("plugins, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"plugins"}}])}(im);function Ov(e){return Ov="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},Ov(e)}function Pv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tv(r.key),r)}}function Tv(e){var t=function(e){if("object"!=Ov(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ov(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ov(t)?t:t+""}function Cv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cv=function(){return!!e})()}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jv(e)}function Mv(e,t){return Mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mv(e,t)}var xv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=jv(t),function(e,t){if(t&&("object"==Ov(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Cv()?Reflect.construct(t,n||[],jv(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.userAgent=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mv(e,t)}(t,e),function(e,t){return t&&Pv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn("wrong type in JsUa, BrowserProps parameters. userAgent : {expected: string, received: ".concat(Ov(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.userAgent];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("js_ua, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"js_ua"}}])}(im);function Rv(e){return Rv="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},Rv(e)}function Av(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bv(r.key),r)}}function Bv(e){var t=function(e){if("object"!=Rv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rv(t)?t:t+""}function Dv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dv=function(){return!!e})()}
2function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Iv(e)}function Lv(e,t){return Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lv(e,t)}var Fv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Iv(t),function(e,t){if(t&&("object"==Rv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dv()?Reflect.construct(t,n||[],Iv(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.tz=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lv(e,t)}(t,e),function(e,t){return t&&Av(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"number"==typeof e||pe.warn("wrong type in TimeZone, BrowserProps parameters. tz : {expected: string, received: ".concat(Rv(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.tz];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("time_zone, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"time_zone"}}])}(im);function Nv(e){return Nv="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},Nv(e)}function Uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gv(r.key),r)}}function Gv(e){var t=function(e){if("object"!=Nv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nv(t)?t:t+""}function Wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wv=function(){return!!e})()}function Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qv(e)}function Hv(e,t){return Hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hv(e,t)}var Vv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Qv(t),function(e,t){if(t&&("object"==Nv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wv()?Reflect.construct(t,n||[],Qv(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.isCookie=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hv(e,t)}(t,e),function(e,t){return t&&Uv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"boolean"==typeof e||pe.warn("wrong type in CookieEnabled, BrowserProps parameters. isCookie : {expected: boolean, received: ".concat(Nv(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.isCookie];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"boolean"==typeof e[1]||pe.warn("CookieEnabled,BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"cookie_enabled"}}])}(im);function zv(e){return zv="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},zv(e)}function Kv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qv(r.key),r)}}function qv(e){var t=function(e){if("object"!=zv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zv(t)?t:t+""}function Jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jv=function(){return!!e})()}function Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yv(e)}function Xv(e,t){return Xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xv(e,t)}var Zv=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Yv(t),function(e,t){if(t&&("object"==zv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jv()?Reflect.construct(t,n||[],Yv(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.memory=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xv(e,t)}(t,e),function(e,t){return t&&Kv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"number"==typeof e&&(.25===e||.5===e||1===e||2===e||4===e||8===e||0===e)||pe.warn("wrong type in DeviceMemoryBrowser, BrowserProps parameters. memory : {expected: number in {0.25, 0.5, 1, 2, 4, 8, 0} received: type:".concat(zv(e)," value:").concat(e,"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.memory];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("device_memory, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"device_memory"}}])}(im);function $v(e){return $v="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},$v(e)}function eb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tb(r.key),r)}}function tb(e){var t=function(e){if("object"!=$v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$v(t)?t:t+""}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nb=function(){return!!e})()}function rb(e){return rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rb(e)}function ob(e,t){return ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ob(e,t)}var ib=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=rb(t),function(e,t){if(t&&("object"==$v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nb()?Reflect.construct(t,n||[],rb(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.language=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ob(e,t)}(t,e),function(e,t){return t&&eb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn(" wrong type in Lang, BrowserProps parameters. language : {expected: string, received: ".concat($v(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.language];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("main_lang, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"main_lang"}}])}(im);function ab(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ub(e){return ub="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},ub(e)}
2function sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cb(r.key),r)}}function cb(e){var t=function(e){if("object"!=ub(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ub(t)?t:t+""}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lb=function(){return!!e})()}function fb(e){return fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fb(e)}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pb(e,t)}var db=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=fb(t),function(e,t){if(t&&("object"==ub(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lb()?Reflect.construct(t,n||[],fb(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.languagesList=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pb(e,t)}(t,e),function(e,t){return t&&sb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){Array.isArray(e)&&this._eachLangIsValid(e)||pe.warn(" wrong type in LanguagesList, BrowserProps parameters. languagesList : {expected: [...string], received: ".concat(ub(e),"}"))}},{key:"_eachLangIsValid",value:function(e){var t,n=!0,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ab(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)?ab(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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}}}}(e);try{for(r.s();!(t=r.n()).done;)"string"!=typeof t.value&&(n=!1)}catch(e){r.e(e)}finally{r.f()}return n}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.languagesList];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])||pe.warn("languages, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"languages"}}])}(im);function yb(e){return yb="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},yb(e)}function hb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mb(r.key),r)}}function mb(e){var t=function(e){if("object"!=yb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yb(t)?t:t+""}function vb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vb=function(){return!!e})()}function bb(e){return bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bb(e)}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gb(e,t)}var _b=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=bb(t),function(e,t){if(t&&("object"==yb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vb()?Reflect.construct(t,n||[],bb(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.buildID=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gb(e,t)}(t,e),function(e,t){return t&&hb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){void 0!==e&&"string"==typeof e||pe.warn("The buildID is either undefined or of a wrong type. Expected string, received: ".concat(yb(e)))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.buildID];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("navigator_build_id, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"navigator_build_id"}}])}(im);function wb(e){return wb="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},wb(e)}function Sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kb(r.key),r)}}function kb(e){var t=function(e){if("object"!=wb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wb(t)?t:t+""}function Eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eb=function(){return!!e})()}function Ob(e){return Ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ob(e)}function Pb(e,t){return Pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pb(e,t)}var Tb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ob(t),function(e,t){if(t&&("object"==wb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Eb()?Reflect.construct(t,n||[],Ob(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.maxTouchPoints=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pb(e,t)}(t,e),function(e,t){return t&&Sb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){void 0!==e&&"number"==typeof e||pe.warn("wrong type in MaxTouchPointsContract parameters. Expected: number, received: ".concat(wb(e)))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.maxTouchPoints];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("navigator_max_touch_points, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"navigator_max_touch_points"}}])}(im);function Cb(e){return Cb="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},Cb(e)}function jb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mb(r.key),r)}}function Mb(e){var t=function(e){if("object"!=Cb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cb(t)?t:t+""}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xb=function(){return!!e})()}function Rb(e){return Rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rb(e)}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ab(e,t)}var Bb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Rb(t),function(e,t){if(t&&("object"==Cb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xb()?Reflect.construct(t,n||[],Rb(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.math=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ab(e,t)}(t,e),function(e,t){return t&&jb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn("wrong type in MathDetect parameters. renderer: {expected: string, received: ".concat(Cb(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.math];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("MathDetect - Contract verification failed")}},{key:"getName",value:function(){return"math_detect"}}])}(im);function Db(e){return Db="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},Db(e)}function Ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lb(r.key),r)}}
2function Lb(e){var t=function(e){if("object"!=Db(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Db(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Db(t)?t:t+""}function Fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fb=function(){return!!e})()}function Nb(e){return Nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nb(e)}function Ub(e,t){return Ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ub(e,t)}var Gb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Nb(t),function(e,t){if(t&&("object"==Db(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fb()?Reflect.construct(t,n||[],Nb(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.browserDisplay=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ub(e,t)}(t,e),function(e,t){return t&&Ib(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn("wrong type in BrowserDisplay, BrowserProps parameters. BrowserDisplay : {expected: string, received: ".concat(Db(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.browserDisplay];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("TransparencyReduced, BrowserPropsContract - Contract verification failed")}},{key:"getName",value:function(){return"browser_display_detect"}}])}(im);function Wb(e){return Wb="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},Wb(e)}function Qb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hb(r.key),r)}}function Hb(e){var t=function(e){if("object"!=Wb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wb(t)?t:t+""}function Vb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vb=function(){return!!e})()}function zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zb(e)}function Kb(e,t){return Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kb(e,t)}var qb={configKey:"collectBrowserProps",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},Jb=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,n){return t=zb(t),function(e,t){if(t&&("object"==Wb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vb()?Reflect.construct(t,n||[],zb(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,a._pointerHoverDetector=n,a._utils=r,a._configurationRepository=o,a._configurations=i,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kb(e,t)}(t,e),function(e,t,n){return t&&Qb(e.prototype,t),n&&Qb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){var e=this;pe.info("Collecting Browser Props");var n=new Tm(this._utils.scriptVersion).buildQueueMessage();this._dataQ.addToQueue("static_fields",n,!1);var r=new Bm("js").buildQueueMessage();this._dataQ.addToQueue("static_fields",r,!1),pe.info("SDK Version is ".concat(this._utils.scriptVersion));var o=t.getLanguage();if(o){this._configurationRepository.get("browserPropsShouldHashLanguageField")&&(pe.debug("Hashing language field according to configuration"),o=this._utils.getHash(o).toString());var i=new ib(o).buildQueueMessage();this._dataQ.addToQueue("static_fields",i,!1)}var a=new Gm(t.getAvailablePlatform(window.navigator)).buildQueueMessage();this._dataQ.addToQueue("static_fields",a,!1);var u=t.getOperatingSystem(),s=new qm(u.version).buildQueueMessage();this._dataQ.addToQueue("static_fields",s,!1);
2var c=new tv(u.name).buildQueueMessage();this._dataQ.addToQueue("static_fields",c,!1);var l=this._pointerHoverDetector.getPointerHover(),f=new sv(l.pointer,l.hover).buildQueueMessage();this._dataQ.addToQueue("static_fields",f,!1);var p=new hv(window.navigator.hardwareConcurrency||0).buildQueueMessage();if(this._dataQ.addToQueue("static_fields",p,!1),navigator.languages){var d=navigator.languages;this._configurationRepository.get("browserPropsShouldHashLanguageField")&&(pe.debug("Hashing languages field according to configuration"),d=Array.from(d,(function(t){return e._utils.getHash(t).toString()})));var y=new db(d).buildQueueMessage();this._dataQ.addToQueue("static_fields",y,!1)}var h=t.getPlugins();if(h&&h.length>0){var m=new Ev(h).buildQueueMessage();this._dataQ.addToQueue("static_fields",m,!1)}var v=new xv(Z.getUserAgent()).buildQueueMessage();this._dataQ.addToQueue("static_fields",v,!1);var b=-1*(new Date).getTimezoneOffset(),g=new Fv(b).buildQueueMessage();this._dataQ.addToQueue("static_fields",g,!1);var _=t.checkCookie(),w=new Vv(_).buildQueueMessage();this._dataQ.addToQueue("static_fields",w,!1);var S=navigator.deviceMemory||0,k=new Zv(S).buildQueueMessage();this._dataQ.addToQueue("static_fields",k,!1);var E=navigator.buildID;if(E){var O=new _b(E).buildQueueMessage();this._dataQ.addToQueue("static_fields",O,!1)}var P=navigator.maxTouchPoints,T=new Tb(P).buildQueueMessage();if(this._dataQ.addToQueue("static_fields",T,!1),this._configurations.isBrowserDisplayDetectEnabled()){var C="".concat(t.isTransparencyReduced(),",\n ").concat(t.isMotionReduced(),",\n ").concat(t.getColorGamut(),",\n ").concat(t.areColorsForced(),",\n ").concat(t.areColorsInverted(),",\n ").concat(t.isHDR(),",\n ").concat(t.getMonochromeDepth()),j=new Gb(C).buildQueueMessage();this._dataQ.addToQueue("static_fields",j,!1)}if(this._configurations.isMathDetectEnabled()){var M=t.getMathFingerprint(),x=new Bb(M).buildQueueMessage();this._dataQ.addToQueue("static_fields",x,!1)}pe.info("Browser Props collected")}}],[{key:"getDefaultSettings",value:function(){return qb}},{key:"getLanguage",value:function(){if(navigator){if(navigator.language)return navigator.language;if(navigator.userLanguage)return navigator.userLanguage}}},{key:"getMonochromeDepth",value:function(){if(matchMedia("(min-monochrome: 0)").matches)for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e}},{key:"isHDR",value:function(){var e=function(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches};return e("high")?"high":e("standard")?"standard":"undefined"}},{key:"areColorsInverted",value:function(){var e=function(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches};return e("inverted")?"inverted":e("none")?"none":"undefined"}},{key:"areColorsForced",value:function(){var e=function(e){return matchMedia("(forced-colors: ".concat(e,")")).matches};return e("active")?"active":e("none")?"none":"undefined"}},{key:"getColorGamut",value:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}return"undefined"}},{key:"isMotionReduced",value:function(){var e=function(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches};return e("reduce")?"reduce":e("no-preference")?"no-preference":"undefined"}},{key:"isTransparencyReduced",value:function(){var e=function(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches};return e("reduce")?"reduce":e("no-preference")?"no-preference":"undefined"}},{key:"getMathFingerprint",value:function(){return[Math.acos(.12312423423423424),Math.acosh(1e308),Math.asin(.12312423423423424),Math.asinh(1),Math.atan(.5),Math.atanh(.5),Math.sin(-1e300),Math.sinh(1),Math.cos(10.000000000123),Math.cosh(1),Math.tan(-1e300),Math.tanh(1),Math.exp(1),Math.expm1(1),Math.log1p(10),Math.pow(Math.PI,-100)].join("|")}},{key:"getPlugins",value:function(){try{var e=[];if(window.navigator.plugins&&window.navigator.plugins.length>0)for(var n=0,r=window.navigator.plugins.length;n<r;n++)e.push([window.navigator.plugins[n].name,window.navigator.plugins[n].filename,window.navigator.plugins[n].description,window.navigator.plugins[n].version?window.navigator.plugins[n].version:""]);else if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length>0)for(var o=0;o<window.navigator.mimeTypes.length;
2o++)e.push([window.navigator.mimeTypes[o].type,"",window.navigator.mimeTypes[o].description,""]);var i=t.isActiveXAndFlashEnabled;return t.augmentWithFlashInIE(e,window.navigator.plugins,i),e}catch(e){pe.warn("getPlugins error: ".concat(e.message),e)}}},{key:"checkCookie",value:function(){var e=navigator.cookieEnabled;return e||(this._utils.StorageUtils.setCookie("testcookie","1",6e4),e=-1!==document.cookie.indexOf("testcookie")),e}},{key:"getOperatingSystem",value:function(){for(var e,n,r=[{name:"Windows Phone",value:"Windows Phone",version:"OS"},{name:"Windows",value:"Win",version:"NT"},{name:"iPhone",value:"iPhone",version:"OS"},{name:"iPad",value:"iPad",version:"OS"},{name:"Kindle",value:"Silk",version:"Silk"},{name:"Android",value:"Android",version:"Android"},{name:"PlayBook",value:"PlayBook",version:"OS"},{name:"BlackBerry",value:"BlackBerry",version:"/"},{name:"Macintosh",value:"Mac",version:"OS X"},{name:"Linux",value:"Linux",version:"rv"},{name:"Palm",value:"Palm",version:"PalmOS"}],o=[t.getAvailablePlatform(window.navigator),Z.getUserAgent()].join(" "),i="",a="Unknown",u=0;u<r.length;u++)if(new RegExp(r[u].value,"i").test(o)){if(e=new RegExp(r[u].version+"[- /:;]([\\d._]+)","i"),n=o.match(e)){n[1]&&(n=n[1]),n=n.split(/[._]+/);for(var s=0;s<n.length;s++)i+=0===s?n[s]+".":n[s]}a=r[u].name;break}return{version:parseFloat(i)||null,name:a}}},{key:"isActiveXAndFlashEnabled",value:function(){try{return Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(e){return!1}}},{key:"getAvailablePlatform",value:function(e){return Z.getPlatform(e)}},{key:"augmentWithFlashInIE",value:function(e,t,n){return"[object PluginArray]"===Object.prototype.toString.call(t)||n()&&e.push(["Flash32_32_0_0_238.ocx",2,"Shockwave Flash","32.0.0.238"]),e}}])}(Br);function Yb(e){return Yb="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},Yb(e)}function Xb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zb(r.key),r)}}function Zb(e){var t=function(e){if("object"!=Yb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yb(t)?t:t+""}function $b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($b=function(){return!!e})()}function eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eg(e)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tg(e,t)}var ng=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=eg(t),function(e,t){if(t&&("object"==Yb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$b()?Reflect.construct(t,n||[],eg(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.dnt=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}(t,e),function(e,t){return t&&Xb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"number"==typeof e&&(0===e||1===e||2===e)||pe.warn("wrong type in DoNotTrackContract parameters. dnt : {expected: number in {0,1,2}, received: type: ".concat(Yb(e),", value: ").concat(e))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.dnt];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("DoNotTrack - Contract verification failed")}},{key:"getName",value:function(){return"dnt"}}])}(im);function rg(e){return rg="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},rg(e)}function og(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ig(r.key),r)}}function ig(e){var t=function(e){if("object"!=rg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rg(t)?t:t+""}function ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ag=function(){return!!e})()}function ug(e){return ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ug(e)}function sg(e,t){return sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sg(e,t)}var cg={configKey:"isDoNotTrack",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},lg=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ug(t),function(e,t){if(t&&("object"==rg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2(e,ag()?Reflect.construct(t,n||[],ug(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sg(e,t)}(t,e),function(e,t,n){return t&&og(e.prototype,t),n&&og(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){var e=navigator.doNotTrack;void 0===e&&void 0===(e=window.doNotTrack)&&(e=navigator.msDoNotTrack);var t=new ng(e=null===e||"unspecified"===e||"0"===e?0:"1"===e?1:2).buildQueueMessage();this._dataQ.addToQueue("static_fields",t,!1)}}],[{key:"getDefaultSettings",value:function(){return cg}}])}(Br);function fg(e){return fg="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},fg(e)}function pg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dg(r.key),r)}}function dg(e){var t=function(e){if("object"!=fg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fg(t)?t:t+""}function yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yg=function(){return!!e})()}function hg(e){return hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hg(e)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mg(e,t)}var vg=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=hg(t),function(e,t){if(t&&("object"==fg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yg()?Reflect.construct(t,n||[],hg(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n,r,o),i.renderer=e,i.vendor=n,i.version=r,i.supportedExtensions=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mg(e,t)}(t,e),function(e,t){return t&&pg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t,n,r){"string"==typeof e&&"string"==typeof t&&"string"==typeof n&&"string"==typeof r||pe.warn("wrong type in GraphicDetectContract parameters. renderer: {expected: string, received: ".concat(fg(e),"}, vendor: {expected: string, received: ").concat(fg(t),"},\n version: {expected: string, received: ").concat(fg(n),"}, supportedExtensions: {expected: string, received: ").concat(fg(r),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),[this.renderer,this.vendor,this.version,this.supportedExtensions]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&4===e[1].length||pe.warn("GraphicDetect - Contract verification failed")}},{key:"getName",value:function(){return"grph_card"}}])}(im);function bg(e){return bg="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},bg(e)}function gg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_g(r.key),r)}}function _g(e){var t=function(e){if("object"!=bg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bg(t)?t:t+""}function wg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wg=function(){return!!e})()}function Sg(e){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sg(e)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kg(e,t)}var Eg={configKey:"isVMDetection",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},Og=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Sg(t),function(e,t){if(t&&("object"==bg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wg()?Reflect.construct(t,n||[],Sg(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,r._configurations=n,r.canvasId="cd_canvas",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}(t,e),function(e,t,n){return t&&gg(e.prototype,t),n&&gg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){try{this._configurations&&this._configurations.isGraphCardEnabled()&&this._getMappedRenderInfo()}catch(e){pe.error("Failed collecting Graphic Card information. ".concat(e))}}},{key:"_getMappedRenderInfo",value:function(){pe.info("Collecting Graphic Card props");
2var e={renderer:"unknown",vendor:"",version:"unknown",supportedExtensions:""};if(window.WebGLRenderingContext||window.WebGL2RenderingContext){var t=document.createElement("canvas");t.id=this.canvasId;var n=t.getContext("experimental-webgl");if(n){var r=n.getExtension("WEBGL_debug_renderer_info");if(null!=r&&(e.renderer=n.getParameter(r.UNMASKED_RENDERER_WEBGL),e.vendor=n.getParameter(r.UNMASKED_VENDOR_WEBGL),e.supportedExtensions=n.getSupportedExtensions().join(","),e.renderer.indexOf("Intel")>-1&&e.renderer.indexOf("HD Graphics")>-1)){var o=e.renderer.match(/\d+/g);if(o){var i=o[0];i>500&&i<599&&(e.version="SKL (6th gen core)"),i>5300&&i<6999&&(e.version="BDW (5th gen core)")}}}}var a=new vg(e.renderer,e.vendor,e.version,e.supportedExtensions).buildQueueMessage();this._dataQ.addToQueue("static_fields",a,!1),pe.info("Graphic Card props collected")}}],[{key:"getDefaultSettings",value:function(){return Eg}}])}(Br);function Pg(e){return Pg="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},Pg(e)}function Tg(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cg(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)?Cg(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 Cg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mg(r.key),r)}}function Mg(e){var t=function(e){if("object"!=Pg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pg(t)?t:t+""}function xg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xg=function(){return!!e})()}function Rg(e){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rg(e)}function Ag(e,t){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ag(e,t)}var Bg=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Rg(t),function(e,t){if(t&&("object"==Pg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xg()?Reflect.construct(t,n||[],Rg(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.mediaDevices=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ag(e,t)}(t,e),function(e,t){return t&&jg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){Array.isArray(e)&&this._eachDeviceIsValid(e)||pe.warn(" wrong type in MediaDevicesContract parameters. mediaDevices : {expected: [[...string]], received: ".concat(e,"}"))}},{key:"_eachDeviceIsValid",value:function(e){var t,n=!0,r=!0,o=!0,i=Tg(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(Array.isArray(a)){4!==a.length&&(o=!1);var u,s=Tg(a);try{for(s.s();!(u=s.n()).done;)"string"!=typeof u.value&&(r=!1)}catch(e){s.e(e)}finally{s.f()}}else n=!1}}catch(e){i.e(e)}finally{i.f()}return n&&o&&r}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.mediaDevices];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])||pe.warn("MediaDevices - Contract verification failed")}},{key:"getName",value:function(){return"media_devices"}}])}(im);function Dg(e){return Dg="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},Dg(e)}function Ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lg(r.key),r)}}function Lg(e){var t=function(e){if("object"!=Dg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dg(t)?t:t+""}function Fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fg=function(){return!!e})()}function Ng(e){return Ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ng(e)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ug(e,t)}var Gg={configKey:"isMediaDevices",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},Wg=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.navigator;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ng(t),function(e,t){if(t&&("object"==Dg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fg()?Reflect.construct(t,n||[],Ng(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._navigator=r,n._metric="MediaDevicesFeature",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}(t,e),function(e,t,n){return t&&Ig(e.prototype,t),n&&Ig(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){var e=this;this._navigator.mediaDevices&&this._navigator.mediaDevices.enumerateDevices&&this._navigator.mediaDevices.enumerateDevices().then((function(t){var n=[];t.forEach((function(e){var t=[e.kind||"",e.label||"",e.deviceId||"",e.groupId||""];n.push(t)}));var r=new Bg(n).buildQueueMessage();e._dataQ.addToQueue("static_fields",r,!1)})).catch((function(e){pe.error("MediaDevicesFeature:startFeature failed to enumerateDevices: ".concat(e.message))}))}}],[{key:"getDefaultSettings",value:function(){return Gg}}])}(Br);function Qg(e){return Qg="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},Qg(e)}function Hg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vg(r.key),r)}}function Vg(e){var t=function(e){if("object"!=Qg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qg(t)?t:t+""}function zg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zg=function(){return!!e})()}function Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kg(e)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qg(e,t)}var Jg=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Kg(t),function(e,t){if(t&&("object"==Qg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zg()?Reflect.construct(t,n||[],Kg(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n),r.per=e,r.state=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}(t,e),function(e,t){return t&&Hg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t){"string"==typeof e&&"number"==typeof t||pe.warn("wrong type in Per, UserPermissionContract, parameters. per : {expected: string, received: ".concat(Qg(e),"}, state : {expected: number, received: ").concat(Qg(t),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.state];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("per, UserPermissionContract - Contract verification failed")}},{key:"getName",value:function(){return"per_".concat(this.per)}}])}(im);function Yg(e){return Yg="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},Yg(e)}function Xg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zg(r.key),r)}}function Zg(e){var t=function(e){if("object"!=Yg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yg(t)?t:t+""}function $g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($g=function(){return!!e})()}function e_(e){return e_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e_(e)}function t_(e,t){return t_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t_(e,t)}var n_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=e_(t),function(e,t){if(t&&("object"==Yg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$g()?Reflect.construct(t,n||[],e_(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.persistent=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t_(e,t)}(t,e),function(e,t){return t&&Xg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"number"==typeof e||pe.warn("wrong type in PerStorage , UserPermissionContract, parameters. persistent : {expected: number, received: ".concat(Yg(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.persistent];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("per_storage, UserPermissionContract - Contract verification failed")}},{key:"getName",value:function(){return"per_storage"}}])}(im);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},r_(e)}function o_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i_(r.key),r)}}function i_(e){var t=function(e){if("object"!=r_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r_(t)?t:t+""}function a_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a_=function(){return!!e})()}function u_(e){return u_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u_(e)}function s_(e,t){return s_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s_(e,t)}var c_=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=u_(t),function(e,t){if(t&&("object"==r_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a_()?Reflect.construct(t,n||[],u_(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n),r.kind=e,r.perm=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s_(e,t)}(t,e),function(e,t){return t&&o_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t){"string"==typeof e&&"number"==typeof t||pe.warn("wrong type in PerKind , UserPermissionContract, parameters. kind : {expected: string, received: ".concat(r_(e),"}, perm : {expected: number, received: ").concat(r_(t),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.perm];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"number"==typeof e[1]||pe.warn("PerKind, UserPermissionContract - Contract verification failed")}},{key:"getName",value:function(){return"per_".concat(this.kind)}}])}(im);function l_(e){return l_="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},l_(e)}function f_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p_(r.key),r)}}function p_(e){var t=function(e){if("object"!=l_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l_(n))return n;throw new TypeError("@@toPr
2imitive must return a primitive value.")}return String(e)}(e);return"symbol"==l_(t)?t:t+""}function d_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d_=function(){return!!e})()}function y_(e){return y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y_(e)}function h_(e,t){return h_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h_(e,t)}var m_={configKey:"isUserPermissions",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},v_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.navigator;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=y_(t),function(e,t){if(t&&("object"==l_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d_()?Reflect.construct(t,n||[],y_(e).constructor):t.apply(e,n))}(this,t))._permDefs={granted:1,prompt:2,denied:3,true:1,false:3},n._permissions=["geolocation","midi","notifications","push"],n._dataQ=e,n._navigator=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h_(e,t)}(t,e),function(e,t,n){return t&&f_(e.prototype,t),n&&f_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._reportQueryPermissions(),this._reportStoragePermission(),this._reportMicCameraPermissions()}},{key:"_reportQueryPermissions",value:function(){var e=this;if(this._navigator.permissions&&this._navigator.permissions.query)for(var t=function(){var t=e._permissions[n];e._navigator.permissions.query({name:t}).then((function(n){var r=e._permDefs[n.state]||-1,o=new Jg(t,r).buildQueueMessage();e._dataQ.addToQueue("static_fields",o,!1)})).catch((function(e){pe.debug("Failed querying permission '".concat(t,"': ").concat(e.message))}))},n=0;n<this._permissions.length;n++)t()}},{key:"_reportStoragePermission",value:function(){var e=this;this._navigator.storage&&this._navigator.storage.persisted&&this._navigator.storage.persisted().then((function(t){var n=new n_(e._permDefs[t]||-1).buildQueueMessage();e._dataQ.addToQueue("static_fields",n,!1)})).catch((function(e){pe.debug("Failed to check storage persisted: ".concat(e.message))}))}},{key:"_reportMicCameraPermissions",value:function(){var e=this,t={audio:!1,video:!1};this._navigator.mediaDevices&&this._navigator.mediaDevices.enumerateDevices&&this._navigator.mediaDevices.enumerateDevices().then((function(n){n.forEach((function(n){if(!((a=n.kind).includes("audio")&&t.audio||a.includes("video")&&t.video)){var r=function(e){return e.includes("audio")?(t.audio=!0,"audio"):e.includes("video")?(t.video=!0,"video"):void 0}(n.kind),o=""!==n.label?e._permDefs.granted:e._permDefs.denied,i=new c_(r,o).buildQueueMessage();e._dataQ.addToQueue("static_fields",i,!1)}var a}))})).catch((function(e){pe.debug("UserPermissions:startFeature failed to enumerateDevices: ".concat(e.message))}))}}],[{key:"getDefaultSettings",value:function(){return m_}}])}(Br);function b_(e){return b_="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},b_(e)}function g_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,__(r.key),r)}}function __(e){var t=function(e){if("object"!=b_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b_(t)?t:t+""}function w_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w_=function(){return!!e})()}function S_(e){return S_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S_(e)}function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k_(e,t)}var E_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=S_(t),function(e,t){if(t&&("object"==b_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2(e,w_()?Reflect.construct(t,n||[],S_(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.isPrivate=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k_(e,t)}(t,e),function(e,t){return t&&g_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"boolean"==typeof e||pe.warn("wrong type in IsPrivateBrowsingContract parameters. isPrivate : {expected: boolean, received: ".concat(b_(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.isPrivate];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"boolean"==typeof e[1]||pe.warn("IsPrivateBrowsing - Contract verification failed")}},{key:"getName",value:function(){return"is_private_browsing"}}])}(im);function O_(e){return O_="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},O_(e)}function P_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T_(r.key),r)}}function T_(e){var t=function(e){if("object"!=O_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=O_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O_(t)?t:t+""}function C_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C_=function(){return!!e})()}function j_(e){return j_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j_(e)}function M_(e,t){return M_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M_(e,t)}var x_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=j_(t),function(e,t){if(t&&("object"==O_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C_()?Reflect.construct(t,n||[],j_(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.incognitoResults=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M_(e,t)}(t,e),function(e,t){return t&&P_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"object"===O_(e)&&null!==e&&!Array.isArray(e)&&Object.values(e).every((function(e){return"boolean"==typeof e||null===e}))||pe.warn("wrong type in IsIncognitoContract parameters. incognitoResults : {expected: Object<string, boolean|null>, received: "+O_(e)+"}")}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.incognitoResults];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"object"===O_(e[1])&&null!==e[1]&&!Array.isArray(e[1])&&Object.values(e[1]).every((function(e){return"boolean"==typeof e||null===e}))||pe.warn("IsIncognito - Contract verification failed")}},{key:"getName",value:function(){return"is_incognito"}}])}(im);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},R_(e)}function A_(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return B_(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(B_(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,B_(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,B_(f,"constructor",c),B_(c,"constructor",s),s.displayName="GeneratorFunction",B_(c,o,"GeneratorFunction"),B_(f),B_(f,o,"Generator"),B_(f,r,(function(){return this})),B_(f,"toString",(function(){return"[object Generator]"})),(A_=function(){return{w:i,m:p}})()}function B_(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}B_=function(e,t,n,r){function i(t,n){B_(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},B_(e,t,n,r)}function D_(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function I_(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){D_(i,r,o,a,u,"next",e)}function u(e){D_(i,r,o,a,u,"throw",e)}a(void 0)}))}}function L_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F_(r.key),r)}}function F_(e){var t=function(e){if("object"!=R_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=R_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R_(t)?t:t+""}function N_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N_=function(){return!!e})()}function U_(e){return U_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U_(e)}function G_(e,t){return G_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G_(e,t)}var W_={configKey:"isPrivateBrowsing",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},Q_=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,n){return t=U_(t),function(e,t){if(t&&("object"==R_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N_()?Reflect.construct(t,n||[],U_(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,a._devDebugDataQ=o,a._privateBrowsingDetector=n,a._incognitoDetector=r,a._configurationRepository=i,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G_(e,t)}(t,e),function(e,t,n){return t&&L_(e.prototype,t),n&&L_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(o=I_(A_().m((function e(){var t,n;return A_().w((function(e){for(;;)switch(e.n){case 0:return n=[this._detectOldPrivateBrowsing()],!0===(null===(t=this._configurationRepository)||void 0===t?void 0:t.get(P.enableIncognitoDetection))&&n.push(this._detectNewIncognito()),e.n=1,Promise.allSettled(n);case 1:return e.a(2)}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_detectOldPrivateBrowsing",value:(r=I_(A_().m((function e(){var t,n,r,o,i=this;return A_().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,new Promise((function(e){i._privateBrowsingDetector.detectPrivateMode((function(t){e(!0===t)}))}));case 1:t=e.v,pe.debug("[IsPrivateBrowsing] Private browsing detection result: ".concat(t)),n=new E_(t),r=n.buildQueueMessage(),this._dataQ.addToQueue("static_fields",r,!1),e.n=3;break;case 2:e.p=2,o=e.v,pe.debug("[IsPrivateBrowsing] Old private browsing detection failed: ".concat(o));case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return r.apply(this,arguments)})},{key:"_detectNewIncognito",value:(n=I_(A_().m((function e(){var t,n,r,o;return A_().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._incognitoDetector.detectIncognitoMode();case 1:t=e.v,pe.debug("[IsPrivateBrowsing] Incognito detection results: ".concat(JSON.stringify(t))),n=new x_(t),r=n.buildQueueMessage(),this._devDebugDataQ.addToQueue("static_fields",r,!1),e.n=3;break;case 2:e.p=2,o=e.v,pe.debug("[IsPrivateBrowsing] New incognito detection failed: ".concat(o));case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return n.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return W_}}]);var n,r,o}(Br);function H_(e){return H_="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},H_(e)}function V_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function z_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K_(r.key),r)}}function K_(e){var t=function(e){if("object"!=H_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=H_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H_(t)?t:t+""}function q_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q_=function(){return!!e})()}function J_(e){return J_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J_(e)}function Y_(e,t){return Y_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y_(e,t)}var X_=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=J_(t),function(e,t){if(t&&("object"==H_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,q_()?Reflect.construct(t,n||[],J_(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n),r.dataType=e,r.fontList=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y_(e,t)}(t,e),function(e,t){return t&&z_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t){if(!Array.isArray(t)||2!==t.length||!Object.values(Z_).includes(e))throw pe.w
2arn("Invalid parameters in FontsDetectionContract. \n dataType: {expected: ".concat(Object.keys(Z_).join(", "),", received: ").concat(e,"},\n fontList: {expected: tuple [string, array], received: ").concat(JSON.stringify(t),"}")),new Error("Invalid parameters provided to FontsDetectionContract.")}},{key:"buildQueueMessage",value:function(){var e;if(this.dataType===Z_.V1_ONLY)e=this.fontList[0].join(",");else if(this.dataType===Z_.V2_ONLY)e=this.fontList[1];else{if(this.dataType!==Z_.V1_AND_V2)throw new Error("Invalid dataType: ".concat(this.dataType));e=[this.fontList[0].join(","),this.fontList[1]]}var t=[this.getName(),[this.dataType,e]];return this.validateMessage(t),t}},{key:"validateMessage",value:function(e){var t="string"==typeof e[0],n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V_(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)?V_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e[1]||[],2),r=n[0],o=n[1],i=!1;if(r===Z_.V1_ONLY?i="string"==typeof o:r===Z_.V2_ONLY?i=Array.isArray(o)&&o.every((function(e){return"string"==typeof e})):r===Z_.V1_AND_V2&&(i=Array.isArray(o)&&2===o.length&&"string"==typeof o[0]&&Array.isArray(o[1])&&o[1].every((function(e){return"string"==typeof e}))),!t||!i)throw pe.warn("FontsDetectionContract - Queue message validation failed."),pe.debug("Invalid message: ".concat(JSON.stringify(e))),new Error("Invalid message structure.")}},{key:"getName",value:function(){return"fonts"}}])}(im),Z_=Object.freeze({V1_ONLY:"v1",V2_ONLY:"v2",V1_AND_V2:"v1+v2"});function $_(e){return $_="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 ew(e){return function(e){if(Array.isArray(e))return rw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nw(e)||function(){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 tw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||nw(e,t)||function(){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 nw(e,t){if(e){if("string"==typeof e)return rw(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)?rw(e,t):void 0}}function rw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ow(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return iw(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(iw(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,iw(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,iw(f,"constructor",c),iw(c,"constructor",s),s.displayName="GeneratorFunction",iw(c,o,"GeneratorFunction"),iw(f),iw(f,o,"Generator"),iw(f,r,(function(){return this})),iw(f,"toString",(function(){return"[object Generator]"})),(ow=function(){return{w:i,m:p}})()}function iw(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}iw=function(e,t,n,r){function i(t,n){iw(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},iw(e,t,n,r)}function aw(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function uw(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){aw(i,r,o,a,u,"next",e)}function u(e){aw(i,r,o,a,u,"throw",e)}a(void 0)}))}}function sw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cw(r.key),r)}}function cw(e){var t=function(e){if("object"!=$_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$_(t)?t:t+""}var lw=function(){return function(e,t){return t&&sw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=t.fontVersion,r=t.utils,o=t.fontConfig,i=t.fontScanner,a=t.fontsProvider,u=t.fontsCache,s=t.fontTimingService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!Object.values(Sn).includes(n))throw new Error("Invalid font version type. Use one of: ".concat(Object.keys(Sn).join(", ")));if(!r)throw new Error("CDUtils instance is required.");if(!o)throw new Error("FontConfiguration instance is required.");if(!i)throw new Error("FontScanner instance is required.");if(!a)throw new Error("FontsProvider instance is required.");if(!u)throw new Error("FontsCache instance is required.");this._fontVersion=n,this._utils=r,this._fontConfig=o,this._fontScanner=i,this._fontsProvider=a,this._fontCache=u,this._fontTimingService=s,this._collectorHasStopped=!1,this._fontCacheExpiration=864e5,this._logsTag="[FONTS-COLLECTOR][".concat(n,"]")}),[{key:"collectFonts",value:(t=uw(ow().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d,y;return ow().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("".concat(this._logsTag," Starting font collection.")+" | Font version: ".concat(this._fontVersion)),e.n=1,this._fontCache.getStoredFonts(this._fontVersion);case 1:if(r=e.v,o=null!==(t=null==r?void 0:r.installedFonts)&&void 0!==t?t:r,i=null!==(n=null==r?void 0:r.scannedAt)&&void 0!==n?n:-1,pe.debug("".concat(this._logsTag," Cached fonts retrieved: ").concat(JSON.stringify(o))),e.p=2,a=Date.now()-i>this._fontCacheExpiration,!o||a){e.n=3;break}return pe.info("".concat(this._logsTag," Font collection complete using valid cache.")),e.a(2,o);case 3:return e.n=4,this._scanForInstalledFonts();case 4:if(u=e.v,s=u.installedFonts,c=u.scannedAt,l=u.scanTime,f=u.totalFontsScanned,p=u.totalFontsFound,!this._collectorHasStopped){e.n=5;break}return e.a(2);case 5:return d=this._utils.getHash(JSON.stringify(s)),pe.debug("".concat(this._logsTag," Detected fonts: ").concat(JSON.stringify(s)," | Hash: ").concat(d," | Count: ").concat(p)),e.n=6,this._fontCache.saveFonts({installedFonts:s,scannedAt:c},this._fontVersion);case 6:return pe.debug("".concat(this._logsTag," Font cache updated with new fonts.")),pe.info("".concat(this._logsTag," Font collection complete. Scan time: ").concat(l,"ms. Total Fonts Scanned: ").concat(f," Total Installed Fonts: ").concat(s.length)),e.a(2,s);case 7:return e.p=7,y=e.v,pe.error("".concat(this._logsTag," Error during font collection:"),y),e.a(2,o||[])}}),e,this,[[2,7]])}))),function(){return t.apply(this,arguments)})},{key:"release",value:function(){this._collectorHasStopped=!0,this._fontScanner.release()}},{key:"_scanForInstalledFonts",value:(e=uw(ow().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d,y,h;return ow().w((function(e){for(;;)switch(e.n){case 0:pe.info("".concat(this._logsTag," Starting font scanning process.")),t=Date.now(),n=this._fontsProvi
2der.getFontsByVersion(this._fontVersion),r=this._fontConfig.getIgnoredFonts(),o=this._fontConfig.getConfigByVersion(this._fontVersion),i=[],a=0,u=Object.entries(n);case 1:if(!(a<u.length)){e.n=4;break}return s=tw(u[a],2),c=s[0],l=s[1],f=l.filter((function(e){return!r.includes(e)})),e.n=2,this._fontScanner.scan({fonts:f,fontsFamily:c,fontsConfig:o});case 2:p=e.v,i.push.apply(i,ew(p));case 3:a++,e.n=1;break;case 4:return d=Date.now(),y=d-t,h=Object.values(n).reduce((function(e,t){return e+t.length}),0),this._fontTimingService&&this._fontTimingService.recordFontScan({scanTime:y,totalFontsScanned:h,totalFontsFound:i.length,fontVersion:this._fontVersion,scannedAt:d}),e.a(2,{installedFonts:i,scanTime:y,scannedAt:d,totalFontsScanned:h,totalFontsFound:i.length})}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t}();function fw(e){return fw="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},fw(e)}function pw(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return dw(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(dw(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dw(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,dw(f,"constructor",c),dw(c,"constructor",s),s.displayName="GeneratorFunction",dw(c,o,"GeneratorFunction"),dw(f),dw(f,o,"Generator"),dw(f,r,(function(){return this})),dw(f,"toString",(function(){return"[object Generator]"})),(pw=function(){return{w:i,m:p}})()}function dw(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dw=function(e,t,n,r){function i(t,n){dw(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},dw(e,t,n,r)}function yw(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function hw(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yw(i,r,o,a,u,"next",e)}function u(e){yw(i,r,o,a,u,"throw",e)}a(void 0)}))}}
2function mw(e,t,n){return(t=bw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bw(r.key),r)}}function bw(e){var t=function(e){if("object"!=fw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fw(t)?t:t+""}var gw=function(){return function(e,t){return t&&vw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._storageUtils=t,this._versionKeys=mw(mw({},Sn.VERSION1,"detectedFonts_2.1.5"),Sn.VERSION2,"detectedFonts_3")}),[{key:"saveFonts",value:(t=hw(pw().m((function e(t,n){var r;return pw().w((function(e){for(;;)switch(e.n){case 0:return r=this._getKeyByVersion(n),pe.debug("[FONTS-COLLECTOR][".concat(n,"] Saving fonts to localStorage under key: ").concat(r)),e.n=1,this._storageUtils.saveToLocalStorage(r,t);case 1:return e.a(2)}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getStoredFonts",value:(e=hw(pw().m((function e(t){var n,r;return pw().w((function(e){for(;;)switch(e.n){case 0:return n=this._getKeyByVersion(t),e.n=1,this._storageUtils.getFromLocalStorage(n);case 1:return r=e.v,pe.debug("[FONTS-COLLECTOR][".concat(t,"] Retrieved fonts from localStorage under key ").concat(n,": ").concat(r)),e.a(2,r)}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"_getKeyByVersion",value:function(e){var t=this._versionKeys[e];if(!t)throw new Error("Unsupported font version type: ".concat(e));return t}}]);var e,t}(),_w=i(837),ww=i.n(_w),Sw=i(521),kw=i.n(Sw);function Ew(e){return Ew="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},Ew(e)}function Ow(e,t,n){return(t=Tw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tw(r.key),r)}}function Tw(e){var t=function(e){if("object"!=Ew(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ew(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ew(t)?t:t+""}var Cw=function(e,t){return t&&Pw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fontVersions=Ow(Ow({},Sn.VERSION1,ww()),Sn.VERSION2,kw())}),[{key:"getFontsByVersion",value:function(e){if(this.fontVersions[e])return this.fontVersions[e];throw new Error("Invalid version type. Use one of: ".concat(Object.keys(Sn).join(", ")))}}]),jw=Cw;function Mw(e){return Mw="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},Mw(e)}function xw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rw(r.key),r)}}function Rw(e){var t=function(e){if("object"!=Mw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mw(t)?t:t+""}var Aw="span",Bw=function(e,t){return t&&xw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._domUtils=t,this._baseFonts=["rat-fonts","monospace","sans-serif","serif"],this._testString="mmmmmmmmmmlli",this._testSize="72px",this._chunkSize=30,this._defaultWidth={},this._defaultHeight={},this._body=null,this._iframe=null,this._spanArray=null,this._allFontsDiffs=[]}),[{key:"release",value:function(){this._body&&this._iframe&&this._body.removeChild(this._iframe),this._iframe=null,this._spanArray=null,this._allFontsDiffs=[]}},{key:"init",value:function(){var e=this;return new Promise((function(t,n){try{e.initCallback(t)}catch(e){n(e)}}))}},{key:"initCallback",value:function(e){var t=this;if(this._body=document.body,!this._body)return"";this._iframe=document.createElement("iframe"),this._iframe.setAttribute("sandbox","allow-same-origin"),this._iframe.id=Uo,this._iframe.style.visibility="hidden",this._iframe.style.zIndex="-1",this._iframe.style.width=0,this._iframe.style.height=0,this._iframe.style.position="absolute",this._iframe.style.top="-9999px",this._iframe.style.left="-9999px",this._iframe.style.border="none",this._iframe.style.margin="0",this._iframe.style.padding="0",this._iframe.style.overflow="hidden",this._body.appendChild(this._iframe),this._iframe.contentDocument.body||(this._iframe.style.width=null,this._iframe.style.height=null,this._iframe.contentDocument.appendChild(document.createElement("body"))),this._domUtils.onWindowDocumentReady(this._iframe.contentWindow,(function(){t._createCalculationElements(e)}))}},{key:"_createCalculationElements",value:function(e){var t=document.createElement("span");t.style.fontSize=this._testSize,t.style.visibility="hidden",t.style.position="absolute",t.style.zIndex="-1",t.style.lineHeight="normal",t.innerHTML=this._testString;for(var n=0;n<this._baseFonts.length;
2n++)t.style.fontFamily=this._baseFonts[n],this._iframe.contentDocument.body.appendChild(t),this._defaultWidth[this._baseFonts[n]]=t.offsetWidth,this._defaultHeight[this._baseFonts[n]]=t.offsetHeight,this._iframe.contentDocument.body.removeChild(t);pe.debug("FontsScanner:init - base fonts width: \n ".concat(this._baseFonts[0],":").concat(this._defaultWidth[this._baseFonts[0]],";\n ").concat(this._baseFonts[1],":").concat(this._defaultWidth[this._baseFonts[1]],";\n ").concat(this._baseFonts[2],":").concat(this._defaultWidth[this._baseFonts[2]],";\n ").concat(this._baseFonts[3],":").concat(this._defaultWidth[this._baseFonts[3]])),pe.debug("FontsScanner:init - base fonts height: \n ".concat(this._baseFonts[0],":").concat(this._defaultHeight[this._baseFonts[0]],";\n ").concat(this._baseFonts[1],":").concat(this._defaultHeight[this._baseFonts[1]],";\n ").concat(this._baseFonts[2],":").concat(this._defaultHeight[this._baseFonts[2]],";\n ").concat(this._baseFonts[3],":").concat(this._defaultHeight[this._baseFonts[3]])),this._createSpanArray(),e()}},{key:"_createSpanArray",value:function(){var e=document.createElement("div");e.id="currentDiv",e.style.position="absolute",e.style.visibility="hidden";for(var t=0;t<this._chunkSize;t++){var n=document.createElement("span");n.style.lineHeight="normal",n.style.position="absolute",n.style.zIndex="-1",n.style.fontSize=this._testSize,n.innerHTML=this._testString,e.appendChild(n);var r=document.createElement("br");e.appendChild(r)}this._iframe.contentDocument.body.appendChild(e),this._spanArray=e}},{key:"getAllFontsDiffs",value:function(){return this._allFontsDiffs}}]);function Dw(e){return Dw="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},Dw(e)}function Iw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lw(r.key),r)}}function Lw(e){var t=function(e){if("object"!=Dw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dw(t)?t:t+""}function Fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fw=function(){return!!e})()}function Nw(e){return Nw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nw(e)}function Uw(e,t){return Uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uw(e,t)}var Gw=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Nw(t),function(e,t){if(t&&("object"==Dw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fw()?Reflect.construct(t,n||[],Nw(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uw(e,t)}(t,e),function(e,t){return t&&Iw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"scan",value:function(e){var t=this,n=e.fonts,r=e.fontsFamily;return e.fontsConfig,this.init().then((function(){return new Promise((function(e,o){try{t.detectCallback(n,r,e)}catch(e){o(e)}}))})).catch((function(e){return Promise.reject(e)}))}},{key:"detectCallback",value:function(e,t,n){var r=this,o=[],i=0,a=0;if(!this._spanArray)return n(o),o;
2var u=this._spanArray.getElementsByTagName(Aw),s=this._defaultWidth[t],c=this._defaultHeight[t],l=function(e){e.forEach((function(e){var t=Math.abs(e.offsetWidth-s),n=Math.abs(e.offsetHeight-c);r._allFontsDiffs.push([e.id,t,n]),(t>1||n>1)&&(o[i]=e.id,i++)}))};e.forEach((function(e){a>=r._chunkSize&&(a=0,l(Array.from(u))),u[a].style.fontFamily=e+","+t,u[a].id=e,a++})),a<this._chunkSize&&l(Array.from(u).slice(0,a)),n(o)}}])}(Bw);function Ww(e){return Ww="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},Ww(e)}function Qw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hw(r.key),r)}}function Hw(e){var t=function(e){if("object"!=Ww(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ww(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ww(t)?t:t+""}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vw=function(){return!!e})()}function zw(e){return zw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zw(e)}function Kw(e,t){return Kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kw(e,t)}var qw=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=zw(t),function(e,t){if(t&&("object"==Ww(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vw()?Reflect.construct(t,n||[],zw(e).constructor):t.apply(e,n))}(this,t,[e]))._getElementOffsetTask=r._getElementOffsetTask.bind(r),r._lastChunck=!0,r._removeDuplicatedFonts=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kw(e,t)}(t,e),function(e,t){return t&&Qw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"scan",value:function(e){var t=this,n=e.fonts,r=e.fontsFamily;return e.fontsConfig,this.init().then((function(){return new Promise((function(e,o){try{t.detectCallback(n,r,e)}catch(e){o(e)}}))})).catch((function(e){return Promise.reject(e)}))}},{key:"detectCallback",value:function(e,t,n){if(!this._spanArray)return n([]),[];var r,o,i,a,u,s,c,l,f=this._spanArray.getElementsByTagName(Aw),p=(r=Math.min(e.length,this._chunkSize),o=f,i=0,a=[],u=n,s=e,c=t,l=this._removeDuplicatedFonts,{next:function(){var e=null;return i<r?(e=o[i],i++,e):null},reset:function(){i=0},addFont:function(e){l&&a.includes(e)||a.push(e)},runCallback:function(){u(a)},getFontsArray:function(){return s},getFontFamily:function(){return c},getAvailableFonts:function(){return a}});this._lastChunck=!0,this._applyFontsToSpanElements(p,0)}},{key:"_applyFontsToSpanElements",value:function(e,t){var n=this;pe.trace("[FONTS-COLLECTOR][VERSION1] Checking font ".concat(t,"."));for(var r=e.next(),o=e.getFontsArray(),i=e.getFontFamily();null!==r&&t<o.length;)r.style.fontFamily=o[t]+", "+i,r.id=o[t],t++,r=e.next();if(e.reset(),t>=o.length){if(this._lastChunck)return this._lastChunck=!1,window.setTimeout((function(){n._getElementOffsetTask(e,t)}),0);e.runCallback()}else window.setTimeout((function(){n._getElementOffsetTask(e,t)}),0)}},{key:"_getElementOffsetTask",value:function(e,t){var n=this,r=e.getFontFamily(),o=this._defaultWidth[r],i=this._defaultHeight[r],a=e.next();if(a&&a.offsetWidth){var u=Math.abs(a.offsetWidth-o),s=Math.abs(a.offsetHeight-i);this._allFontsDiffs.push([a.id,u,s]),(u>1||s>1)&&e.addFont(a.id),window.setTimeout((function(){n._getElementOffsetTask(e,t)}),0)}else e.reset(),this._applyFontsToSpanElements(e,t)}},{key:"isSupported",value:function(){return!0}}])}(Bw);function Jw(e){return Jw="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},Jw(e)}function Yw(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Xw(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Xw(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Xw(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Xw(f,"constructor",c),Xw(c,"constructor",s),s.displayName="GeneratorFunction",Xw(c,o,"GeneratorFunction"),Xw(f),Xw(f,o,"Generator"),Xw(f,r,(function(){return this})),Xw(f,"toString",(function(){return"[object Generator]"})),(Yw=function(){return{w:i,m:p}})()}function Xw(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xw=function(e,t,n,r){function i(t,n){Xw(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Xw(e,t,n,r)}function Zw(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function $w(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Zw(i,r,o,a,u,"next",e)}function u(e){Zw(i,r,o,a,u,"throw",e)}a(void 0)}))}}function eS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tS(r.key),r)}}function tS(e){var t=function(e){if("object"!=Jw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jw(t)?t:t+""}var nS=function(){return function(e,t){return t&&eS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=t.workerCommunicator;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw new Error("WorkerCommunicator is required for font scanning");this._workerCommunicator=n,this._pendingRequests=new Map,this._requestId=0,this._released=!1,this._logsTag="[FONTS-COLLECTOR][WORKER-FONT-SCANNER]"}),[{key:"scan",value:(t=$w(Yw().m((function e(t){var n,r,o,i,a=this;return Yw().w((function(e){for(;;)switch(e.n){case 0:if(n=t.fonts,t.fontsFamily,r=t.fontsConfig,!this._released){e.n=1;break}throw new Error("FontsScanner has been released");case 1:if(Array.isArray(n)&&0!==n.length){e.n=2;break}return e.a(2,[]);case 2:return pe.trace("".concat(this._logsTag," Starting scan of ").concat(n.length," fonts using WUP worker.")),o=performance.now(),i=++this._requestId,e.a(2,new Promise((function(e,t){a._pendingRequests.set(i,{resolve:e,reject:t}),a._workerCommunicator.sendAsync("scanFontsCommand",{fontNames:n,requestId:i,config:{detectorType:r.detectorType,fontsPerBatch:r.fontsPerBatch,delayBetweenBatchesMs:r.delayBetweenBatchesMs,minFontsPerBatch:r.minFontsPerBatch,maxFontsPerBatch:r.maxFontsPerBatch,frameBudgetMs:r.frameBudgetMs,frameHistorySize:r.frameHistorySize,adaptiveBatchEnabled:r.adaptiveBatchEnabled}},"fontDetectionResponse",(function(e){return a._handleResponse(i,e,o)}),!0)})))}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_handleResponse",value:function(e,t,n){var r=this._pendingRequests.get(e);if(r){this._pendingRequests.delete(e);var o=r.resolve,i=r.reject;if(t.success){var a=performance.now()-n;pe.trace("".concat(this._logsTag," Worker scan completed in ").concat(a.toFixed(2),"ms. Detected ").concat(t.detectedFonts.length," fonts.")),o(t.detectedFonts)}else pe.error("".concat(this._logsTag," Worker scan failed:"),t.error),i(new Error(t.error||"Font scanning failed"))}}},{key:"release",value:(e=$w(Yw().m((function e(){return Yw().w((function(e){for(;;)switch(e.n){case 0:this._released=!0,this._pendingRequests.forEac
2h((function(e){return(0,e.reject)(new Error("Scanner released"))})),this._pendingRequests.clear();case 1:return e.a(2)}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t}();function rS(e){return rS="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},rS(e)}function oS(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return iS(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(iS(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,iS(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,iS(f,"constructor",c),iS(c,"constructor",s),s.displayName="GeneratorFunction",iS(c,o,"GeneratorFunction"),iS(f),iS(f,o,"Generator"),iS(f,r,(function(){return this})),iS(f,"toString",(function(){return"[object Generator]"})),(oS=function(){return{w:i,m:p}})()}function iS(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}iS=function(e,t,n,r){function i(t,n){iS(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},iS(e,t,n,r)}function aS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uS(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)?uS(e,t):void 0}}(e,t)||function(){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 uS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sS(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function cS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lS(r.key),r)}}function lS(e){var t=function(e){if("object"!=rS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rS(t)?t:t+""}function fS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fS=function(){return!!e})()}
2function pS(e){return pS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pS(e)}function dS(e,t){return dS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dS(e,t)}var yS={configKey:"isFonts",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},hS=function(e){function t(e){var n,r=e.utils,o=e.domUtils,i=e.dataQueue,a=e.fontConfig,u=e.v1Collector,s=void 0===u?null:u,c=e.v2Collector,l=void 0===c?null:c,f=e.fontTimingService,p=void 0===f?null:f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=pS(t),function(e,t){if(t&&("object"==rS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fS()?Reflect.construct(t,n||[],pS(e).constructor):t.apply(e,n))}(this,t))._logsTag="[FONTS-COLLECTOR][MAIN]",n._utils=r,n._domUtils=o,n._dataQueue=i,n._fontConfig=a,n._workerCommunicator=i._serverWorkerCommunicator,n._v1Collector=s,n._v2Collector=l,n._fontTimingService=p,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dS(e,t)}(t,e),function(e,t,n){return t&&cS(e.prototype,t),n&&cS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=oS().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d,y,h=this;return oS().w((function(e){for(;;)switch(e.n){case 0:if(pe.info("".concat(this._logsTag," Starting font feature.")),this._v1Collector||(this._v1Collector=this._createFontCollector(Sn.VERSION1)),this._v2Collector||(this._v2Collector=this._createFontCollector(Sn.VERSION2)),t=this._fontConfig.getFontCollectionConfig(),pe.info("".concat(this._logsTag," Font collection config: ").concat(JSON.stringify(t))),(n=this._fontConfig.getMigrationMode(wn.DUAL_COLLECTION_V1_PRIORITY))!==wn.V1_ONLY){e.n=2;break}return e.n=1,this._v1Collector.collectFonts();case 1:return r=e.v,this._enqueueFontData(Z_.V1_ONLY,[r,null]),e.a(2);case 2:if(n!==wn.DUAL_COLLECTION_V1_PRIORITY){e.n=5;break}return e.n=3,this._v1Collector.collectFonts();case 3:return o=e.v,this._enqueueFontData(Z_.V1_ONLY,[o,null]),e.n=4,this._v2Collector.collectFonts();case 4:i=e.v,this._enqueueFontData(Z_.V1_AND_V2,[o,i]);case 5:if(n!==wn.DUAL_COLLECTION_V2_PRIORITY){e.n=8;break}return e.n=6,this._v2Collector.collectFonts();case 6:return a=e.v,this._enqueueFontData(Z_.V2_ONLY,[null,a]),e.n=7,this._v1Collector.collectFonts();case 7:u=e.v,this._enqueueFontData(Z_.V1_AND_V2,[u,a]);case 8:if(n!==wn.V2_ONLY){e.n=10;break}return e.n=9,this._v2Collector.collectFonts();case 9:s=e.v,this._enqueueFontData(Z_.V2_ONLY,[null,s]);case 10:if(n!==wn.DUAL_COLLECTION_PARALLEL_WAIT_ALL){e.n=12;break}return e.n=11,Promise.all([this._v1Collector.collectFonts(),this._v2Collector.collectFonts()]);case 11:c=e.v,l=aS(c,2),f=l[0],p=l[1],this._enqueueFontData(Z_.V1_AND_V2,[f,p]);case 12:if(n!==wn.DUAL_COLLECTION_PARALLEL_IMMEDIATE){e.n=13;break}return d=this._v1Collector.collectFonts(),y=this._v2Collector.collectFonts(),d.then((function(e){h._enqueueFontData(Z_.V1_ONLY,[e,null])})).catch((function(e){pe.error("".concat(h._logsTag," Error collecting V1 fonts: ").concat(e))})),y.then((function(e){h._enqueueFontData(Z_.V2_ONLY,[null,e])})).catch((function(e){pe.error("".concat(h._logsTag," Error collecting V2 fonts: ").concat(e))})),e.n=13,Promise.allSettled([d,y]);case 13:return e.a(2)}}),e,this)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){sS(i,r,o,a,u,"next",e)}function u(e){sS(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})},{key:"stopFeature",value:function(){var e,t;pe.info("".concat(this._logsTag," Stopping font feature.")),this._collectorHasStopped=!0,null===(e=this._v1Collector)||void 0===e||e.release(),null===(t=this._v2Collector)||void 0===t||t.release(),this._v1Collector=null,this._v2Collector=null}},{key:"_enqueueFontData",value:function(e,t){if(!this._collectorHasStopped){if(!t)throw Error("IllegalState fonts undefined");var n=new X_(e,t).buildQueueMessage();this._dataQueue.addToQueue("static_fields",n,!1),pe.debug("".concat(this._logsTag," Fonts enqueued: Data type: ").concat(e))}}},{key:"_createFontCollector",value:function(e){var t=this._getFontsScanner({domUtils:this._domUtils,fontVersion:e,workerCommunicator:this._workerCommunicator}),n=new jw,r=new gw(this._utils.StorageUtils);return new lw({fontVersion:e,utils:this._utils,fontConfig:this._fontConfig,fontScanner:t,fontsProvi
2der:n,fontsCache:r,fontTimingService:this._fontTimingService})}},{key:"_getFontsScanner",value:function(e){var t=e.fontVersion,n=e.domUtils,r=e.workerCommunicator,o=this._fontConfig.getV1ScannerConfig();return t===Sn.VERSION1?o.offloadFontsCollectionEnabled?new qw(n,o.offloadFontsRemoveDuplicated):new Gw(n):(pe.info("".concat(this._logsTag," Using worker scanner")),new nS({workerCommunicator:r}))}}],[{key:"getDefaultSettings",value:function(){return yS}}]);var n,r}(Br);function mS(e){return mS="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},mS(e)}function vS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bS(r.key),r)}}function bS(e){var t=function(e){if("object"!=mS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mS(t)?t:t+""}function gS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gS=function(){return!!e})()}function _S(e){return _S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_S(e)}function wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wS(e,t)}var SS=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=_S(t),function(e,t){if(t&&("object"==mS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gS()?Reflect.construct(t,n||[],_S(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n,r),o.winding=e,o.text=n,o.geometry=r,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wS(e,t)}(t,e),function(e,t){return t&&vS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t,n){if("boolean"!=typeof e||"string"!=typeof t||"string"!=typeof n){var r="wrong type in GfxRenderingContract parameters. winding: {expected: boolean, received: ".concat(mS(e),"}, text: {expected: string, received: ").concat(mS(t),"},\n geometry: {expected: string, received: ").concat(mS(n),"}");pe.warn(r)}}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),[this.winding,this.text,this.geometry]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&3===e[1].length||pe.warn("GfxRendering - Contract verification failed")}},{key:"getName",value:function(){return"gfx"}}])}(im);function kS(e){return kS="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},kS(e)}function ES(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OS(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)?OS(e,t):void 0}}
2(e,t)||function(){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 OS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PS=function(){return!!e})()}function TS(e){return TS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TS(e)}function CS(e,t){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CS(e,t)}function jS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xS(r.key),r)}}function MS(e,t,n){return t&&jS(e.prototype,t),n&&jS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xS(e){var t=function(e){if("object"!=kS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kS(t)?t:t+""}function RS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var AS={configKey:"isGfxRendering",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},BS="0",DS=MS((function e(){RS(this,e),this.winding=!1,this.text="",this.geometry=""})),IS=function(e){function t(e,n){var r;return RS(this,t),(r=function(e,t,n){return t=TS(t),function(e,t){if(t&&("object"==kS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,PS()?Reflect.construct(t,n||[],TS(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,r._utils=n,r._metric="GFX",r.canvasElement=null,r.canvasContext=null,r._addToQueueAndCleanUp=r.addToQueueAndCleanUp.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CS(e,t)}(t,e),MS(t,[{key:"startFeature",value:function(){this.initCanvasAndContext(),this.isCanvas2DSupported(this.canvasElement,this.canvasContext)&&this.generateCanvasData()}},{key:"addToQueueAndCleanUp",value:function(e){var t=new SS(e.winding,e.text,e.geometry).buildQueueMessage();this._dataQ.addToQueue("static_fields",t,!1),this.cleanUp()}},{key:"initCanvasAndContext",value:function(){null!==this.canvasElement&&null!==this.canvasContext||(this.canvasElement=document.createElement("canvas"),this.canvasContext=this.buildCanvasContext(this.canvasElement))}},{key:"cleanUp",value:function(){this.canvasContext=null,this.canvasElement=null}},{key:"generateCanvasData",value:function(){var e=this,t=new DS;t.winding=this.hasWinding(this.canvasContext),this.renderTextImage(this.canvasElement,this.canvasContext);var n=this.canvasToText(this.canvasElement),r=this.canvasToText(this.canvasElement);0===n.length||0===r.length||n!==r?(t.text=BS,t.geometry=BS,this._addToQueueAndCleanUp(t)):this.hashCanvasText(n).then((function(n){return t.text=n||BS,e.renderGeometryImage(e.canvasElement,e.canvasContext),e.hashCanvasText(e.canvasToText(e.canvasElement))})).then((function(n){t.geometry=n||BS,e._addToQueueAndCleanUp(t)}))}},{key:"buildCanvasContext",value:function(e){return e.width=1,e.height=1,e.getContext("2d")}},{key:"isCanvas2DSupported",value:function(e,t){return!(!t||!e.toDataURL)}},{key:"renderTextImage",value:function(e,t){e.width=320,e.height=120;var n=t.createLinearGradient(0,0,320,120);n.addColorStop(0,"#f60"),n.addColorStop(1,"#069"),t.fillStyle=n,t.fillRect(0,0,320,120),t.textBaseline="alphabetic",t.fillStyle="#fff",t.font="11pt Times New Roman";var r="DHO YbmPx KTGUL CQrSfJ iNvZAEW ".concat(String.fromCharCode(55357,56835)," \ud83d\ude04 \ud83d\udca9 \u2693 \u2194");t.fillText(r,2,15),t.save(),t.translate(4,45),t.rotate(.1),t.font="18pt Arial",t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(r,0,0),t.restore(
2),t.font="14pt Georgia",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillStyle="#ff0",t.save(),t.transform(1,.1,0,1,0,0),t.fillText(r,2,75),t.restore(),t.shadowColor="transparent";var o=t.createPattern(this.createPatternCanvas(),"repeat");t.font="16pt Verdana",t.fillStyle=o,t.fillText(r,2,100)}},{key:"createPatternCanvas",value:function(){var e=document.createElement("canvas");e.width=20,e.height=20;var t=e.getContext("2d");return t.fillStyle="#f00",t.fillRect(0,0,10,10),t.fillStyle="#00f",t.fillRect(10,10,10,10),e}},{key:"renderGeometryImage",value:function(e,t){e.width=256,e.height=256;var n=t.createRadialGradient(128,128,0,128,128,128);n.addColorStop(0,"#f2f"),n.addColorStop(.5,"#2ff"),n.addColorStop(1,"#ff2"),t.fillStyle=n,t.fillRect(0,0,256,256),t.globalCompositeOperation="multiply";for(var r=0,o=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<o.length;r++){var i=ES(o[r],3),a=i[0],u=i[1],s=i[2];t.fillStyle=a,t.beginPath(),t.arc(u,s,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.globalCompositeOperation="screen",t.fillStyle="#f9c",t.beginPath(),t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd"),t.globalCompositeOperation="difference",t.beginPath(),t.moveTo(20,20),t.bezierCurveTo(40,40,60,40,80,20),t.strokeStyle="#0f0",t.lineWidth=3,t.stroke(),t.globalCompositeOperation="luminosity";for(var c=0;c<5;c++)t.beginPath(),t.moveTo(0,50*c),t.lineTo(256,50*c),t.strokeStyle="rgba(255, 255, 255, ".concat(.2+.1*c,")"),t.stroke()}},{key:"canvasToText",value:function(e){try{return e.toDataURL().split(",")[1]}catch(e){return pe.debug("Canvas toDataURL error:",e.name,e.message),""}}},{key:"hashCanvasText",value:function(e){return this._utils.digest_sha256(e).then((function(e){return e})).catch((function(){return""}))}},{key:"hasWinding",value:function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}}],[{key:"getDefaultSettings",value:function(){return AS}}])}(Br);function LS(e){return LS="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},LS(e)}function FS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NS(r.key),r)}}function NS(e){var t=function(e){if("object"!=LS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LS(t)?t:t+""}function US(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(US=function(){return!!e})()}
2function GS(e){return GS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GS(e)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WS(e,t)}var QS=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=GS(t),function(e,t){if(t&&("object"==LS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,US()?Reflect.construct(t,n||[],GS(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.acoustic=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WS(e,t)}(t,e),function(e,t){return t&&FS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn("wrong type in AudioDetect parameters. renderer: {expected: string, received: ".concat(LS(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.acoustic];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("AudioDetect - Contract verification failed")}},{key:"getName",value:function(){return"audio_detect"}}])}(im);function HS(e){return HS="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},HS(e)}function VS(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return zS(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(zS(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,zS(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,zS(f,"constructor",c),zS(c,"constructor",s),s.displayName="GeneratorFunction",zS(c,o,"GeneratorFunction"),zS(f),zS(f,o,"Generator"),zS(f,r,(function(){return this})),zS(f,"toString",(function(){return"[object Generator]"})),(VS=function(){return{w:i,m:p}})()}function zS(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zS=function(e,t,n,r){function i(t,n){zS(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},zS(e,t,n,r)}function KS(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function qS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JS(r.key),r)}}function JS(e){var t=function(e){if("object"!=HS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HS(t)?t:t+""}function YS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YS=function(){return!!e})()}
2function XS(e){return XS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XS(e)}function ZS(e,t){return ZS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZS(e,t)}var $S={configKey:"isAudioDetectFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},ek=-50,tk=40,nk=12,rk=0,ok=.25,ik=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=XS(t),function(e,t){if(t&&("object"==HS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,YS()?Reflect.construct(t,n||[],XS(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,r._utils=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZS(e,t)}(t,e),function(e,t,n){return t&&qS(e.prototype,t),n&&qS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){pe.info("Starting Audio Detection Feature");try{this._collectAudioFingerprintInfo()}catch(e){pe.error("Failed to collect audio information: ".concat(e))}}},{key:"_collectAudioFingerprintInfo",value:function(){var e=this;pe.info("Collecting audio properties"),this._getAudioFingerprint().then((function(t){return e._utils.digest_sha256(t)})).then((function(t){var n=new QS(t).buildQueueMessage();e._dataQ.addToQueue("static_fields",n,!1),pe.info("Audio properties collected successfully")})).catch((function(e){pe.error("Error collecting audio information: ".concat(e))}))}},{key:"_getAudioFingerprint",value:(n=VS().m((function e(){var t,n,r,o,i;return VS().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,t=window.OfflineAudioContext||window.webkitOfflineAudioContext){e.n=1;break}throw new Error("AudioContext is not supported");case 1:return n=new t(1,5e3,44100),r=n.createOscillator(),o=n.createDynamicsCompressor(),r.type="triangle",r.frequency.value=1e4,o.threshold.value=ek,o.knee.value=tk,o.ratio.value=nk,o.attack.value=rk,o.release.value=ok,r.connect(o),o.connect(n.destination),r.start(0),e.a(2,this._renderAudio(n).then((function(e){return e.getChannelData(0).subarray(4500).toString()})));case 2:throw e.p=2,i=e.v,pe.error("Error initializing audio fingerprint: ".concat(i)),i;case 3:return e.a(2)}}),e,this,[[0,2]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){KS(i,r,o,a,u,"next",e)}function u(e){KS(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})},{key:"_renderAudio",value:function(e){var t=0;return new Promise((function(n,r){var o=function o(){try{var i=e.startRendering();"running"===e.state?n(i):"suspended"!==e.state||document.hidden||(++t<3?setTimeout(o,500):r(new Error("Audio context suspended")))}catch(e){r(e)}};o()}))}}],[{key:"getDefaultSettings",value:function(){return $S}}]);var n,r}(Br);function ak(e){return ak="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},ak(e)}function uk(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return sk(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
vendor: 4,465 bytes, line 2
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(sk(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,sk(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,sk(f,"constructor",c),sk(c,"constructor",s),s.displayName="GeneratorFunction",sk(c,o,"GeneratorFunction"),sk(f),sk(f,o,"Generator"),sk(f,r,(function(){return this})),sk(f,"toString",(function(){return"[object Generator]"})),(uk=function(){return{w:i,m:p}})()}function sk(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}sk=function(e,t,n,r){function i(t,n){sk(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},sk(e,t,n,r)}function ck(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fk(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 lk(e){return function(e){if(Array.isArray(e))return pk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fk(e)||function(){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 fk(e,t){if(e){if("string"==typeof e)return pk(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)?pk(e,t):void 0}}function pk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dk(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function yk(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){dk(i,r,o,a,u,"next",e)}function u(e){dk(i,r,o,a,u,"throw",e)}a(void 0)}))}}function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hk(Object(n),!0).forEach((function(t){vk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vk(e,t,n){return(t=gk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gk(r.key),r)}}function gk(e){var t=function(e){if("object"!=ak(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ak(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ak(t)?t:t+""}function _k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_k=function(){return!!e})()}
2function wk(e){return wk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wk(e)}function Sk(e,t){return Sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sk(e,t)}var kk={sampleRate:44100,cloneCount:4e4,stabilizationPrecision:6.2,targetSampleIndex:3395,signals:[{type:"square",frequency:1e3,detune:0,phase:0,harmonics:[{frequency:2e3,amplitude:.3},{frequency:3e3,amplitude:.2}]},{type:"sine",frequency:2e3,detune:0,phase:0,modulation:{frequency:5,depth:.1}},{type:"triangle",frequency:3e3,detune:0,phase:0,formants:[{frequency:500,bandwidth:50},{frequency:1500,bandwidth:100}]},{type:"sawtooth",frequency:4e3,detune:0,phase:0,resonance:{frequency:6e3,Q:10}}],compressor:{threshold:-70,knee:40,ratio:12,attack:0,release:.25,makeupGain:0,bypass:!1},filters:[{type:"allpass",frequency:5.239622852977861,Q:.1,gain:0},{type:"highpass",frequency:20,Q:1,gain:0},{type:"lowpass",frequency:2e4,Q:1,gain:0}],analysis:{fftSize:2048,smoothingTimeConstant:.8,minDecibels:-100,maxDecibels:-30,spectralPeaks:10,phaseAnalysis:!0,harmonicDetection:!0},browserOptimizations:{safari:{loopStartOffset:1e-11,loopEndOffset:1e-11,retryAttempts:3},chrome:{useWorklet:!1,bufferSize:4096},firefox:{useSharedArrayBuffer:!1,audioWorkletSupport:!1}}},Ek={configKey:"isAudioDetectFeature2",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},Ok=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,n){return t=wk(t),function(e,t){if(t&&("object"==ak(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_k()?Reflect.construct(t,n||[],wk(e).constructor):t.apply(e,n))}(this,t),!e)throw new Error("DataQueue is required");if(!n)throw new Error("Utils is required");r._dataQ=e,r._utils=n;var i=o.audioContext||{};if(r._AudioContext=i.regular||window.AudioContext||window.webkitAudioContext,r._OfflineAudioContext=i.offline||window.OfflineAudioContext||window.webkitOfflineAudioContext,!r._AudioContext||!r._OfflineAudioContext)throw new Error("AudioContext constructors are required");if(r._performance=o.performance||window.performance,!r._performance)throw new Error("Performance API is required");return r._audioConfig=o.audioConfig||mk({},kk),r._featureSettings=o.featureSettings||mk({},Ek),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sk(e,t)}(t,e),function(e,t,n){return t&&bk(e.prototype,t),n&&bk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){pe.info("Starting Advanced Audio Detection Feature 2");try{this._collectAudioFingerprintInfo()}catch(e){pe.error("Failed to collect audio information: ".concat(e))}}},{key:"_collectAudioFingerprintInfo",value:function(){var e=this;pe.info("Collecting advanced audio properties (method 2)"),this._getAdvancedAudioFingerprint().then((function(t){return e._utils.digest_sha256(t.toString())})).then((function(t){e._dataQ.addToQueue("static_fields",["audio_detect2",t],!1),pe.info("Advanced audio properties collected successfully (method 2) "+t)})).catch((function(e){pe.error("Error collecting audio information: ".concat(e))}))}},{key:"_getAdvancedAudioFingerprint",value:(u=yk(uk().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d=this;return uk().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._getAudioContextInfo();case 1:return t=e.v,e.n=2,Promise.all([this._getBaseSignal(this._OfflineAudioContext)].concat(lk(this._audioConfig.signals.map((function(e){return d._getAdvancedSignal(e)})))));case 2:n=e.v,r=[],o=ck(n),e.p=3,o.s();case 4:if((i=o.n()).done){e.n=7;break}if(!(a=i.value)){e.n=6;break}return e.n=5,this._applyAdvancedProcessing(a);case 5:(u=e.v)&&u.buffer&&u.metrics&&r.push({buffer:u.buffer,metrics:u.metrics});case 6:e.n=4;break;case 7:e.n=9;break;case 8:e.p=8,f=e.v,o.e(f);case 9:return e.p=9,o.f(),e.f(9);case 10:if(0!==r.length){e.n=11;break}throw new Error("No valid processed signals");case 11:return e.n=12,this._combineSignalsAdvanced(r.map((function(e){return e.buffer})));case 12:return s=e.v,c=this._generateCompositeFingerprint(s,r.map((function(e){return e.metrics})),t),l=this._stabilizeAdvanced(c,t),e.a(2,this._stabilize(l,this._audioConfig.stabilizationPrecision));case 13:throw e.p=13,p=e.v,pe.error("Error in advanced audio fingerprinting: ".concat(p)),p;case 14:return e.a(2)}}),e,this,[[3,8,9,10],[0,13]])}))),function(){return u.apply(this,arguments)})},{key:"_getAudioContextInfo",value:(a=yk(uk().m((function e(){var t,n,r,o,i,a,u,s;return uk().w((function(e){for(;;)if(0===e.n){for(t=new this._AudioContext,n={sampleRate:t.sampleRate,baseLatency:t.baseLatency||0,maxChannelCount:t.destination.maxChannelCount,state:t.state,supp
2ortedSampleRates:[],supportedChannelCounts:[],browser:this._browserInfo},r=0,o=[8e3,11025,16e3,22050,24e3,32e3,44100,48e3,88200,96e3];r<o.length;r++){i=o[r];try{a=new this._AudioContext({sampleRate:i}),n.supportedSampleRates.push(i),"function"==typeof a.close&&a.close()}catch(e){}}for(u=1;u<=32;u*=2)try{(s=new this._AudioContext).createChannelMerger(u),n.supportedChannelCounts.push(u),"function"==typeof s.close&&s.close()}catch(e){}return"function"==typeof t.close&&t.close(),e.a(2,n)}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"_getBaseSignal",value:(i=yk(uk().m((function e(t){var n,r,o,i;return uk().w((function(e){for(;;)switch(e.n){case 0:return n=new t(1,this._audioConfig.targetSampleIndex+1,this._audioConfig.sampleRate),(r=n.createOscillator()).type="square",r.frequency.value=1e3,(o=n.createDynamicsCompressor()).threshold.value=-70,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,(i=n.createBiquadFilter()).type="allpass",i.frequency.value=5.239622852977861,i.Q.value=.1,r.connect(o),o.connect(i),i.connect(n.destination),r.start(0),e.n=1,this._renderAudio(n);case 1:return e.a(2,e.v)}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_getAdvancedSignal",value:(o=yk(uk().m((function e(t){var n,r,o,i,a,u,s,c,l;return uk().w((function(e){for(;;)switch(e.n){case 0:return n=new this._OfflineAudioContext(1,this._audioConfig.targetSampleIndex+1,this._audioConfig.sampleRate),(r=n.createOscillator()).type=t.type,r.frequency.value=t.frequency,0!==t.detune&&(r.detune.value=t.detune),o=this._createAdvancedCompressor(n),i=this._createFilterChain(n),(a=r).connect(o),a=o,i.forEach((function(e){a.connect(e),a=e})),t.harmonics&&(u=n.createGain(),a.connect(u),t.harmonics.forEach((function(e){var t=n.createOscillator();t.type="sine",t.frequency.value=e.frequency,t.connect(u,0,0),u.gain.value=e.amplitude,t.start(0)})),a=u),t.modulation&&((s=n.createOscillator()).type="sine",s.frequency.value=t.modulation.frequency,(c=n.createGain()).gain.value=t.modulation.depth,s.connect(c),c.connect(r.frequency),s.start(0)),t.formants&&t.formants.forEach((function(e){var t=n.createBiquadFilter();t.type="bandpass",t.frequency.value=e.frequency,t.Q.value=e.frequency/e.bandwidth,a.connect(t),a=t})),t.resonance&&((l=n.createBiquadFilter()).type="peaking",l.frequency.value=t.resonance.frequency,l.Q.value=t.resonance.Q,l.gain.value=6,a.connect(l),a=l),a.connect(n.destination),r.start(0),e.n=1,this._renderAudio(n);case 1:return e.a(2,e.v)}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_createAdvancedCompressor",value:function(e){var t=e.createDynamicsCompressor(),n=this._audioConfig.compressor;return t.threshold.value=n.threshold,t.knee.value=n.knee,t.ratio.value=n.ratio,t.attack.value=n.attack,t.release.value=n.release,t.makeupGain&&(t.makeupGain.value=n.makeupGain),t}},{key:"_createFilterChain",value:function(e){return this._audioConfig.filters.map((function(t){var n=e.createBiquadFilter();return n.type=t.type,n.frequency.value=t.frequency,n.Q.value=t.Q,n.gain.value=t.gain,n}))}},{key:"_applyAdvancedProcessing",value:(r=yk(uk().m((function e(t){var n,r,o,i,a,u;return uk().w((function(e){for(;;)switch(e.n){case 0:if(n=new this._AudioContext,t instanceof AudioBuffer){e.n=1;break}throw new Error("Invalid audio signal: expected AudioBuffer");case 1:return(r=n.createAnalyser()).fftSize=this._audioConfig.analysis.fftSize,r.smoothingTimeConstant=this._audioConfig.analysis.smoothingTimeConstant,r.minDecibels=this._audioConfig.analysis.minDecibels,r.maxDecibels=this._audioConfig.analysis.maxDecibels,(o=n.createBufferSource()).buffer=t,o.connect(r),r.connect(n.destination),o.start(0),i=new Float32Array(r.frequencyBinCount),a=new Float32Array(r.frequencyBinCount),r.getFloatFrequencyData(i),r.getFloatTimeDomainData(a),u={spectral:this._analyzeSpectralData(i),phase:this._analyzePhaseData(a),dynamic:this._analyzeDynamicRange(i),harmonic:this._analyzeHarmonicContent(i,a),temporal:this._analyzeTemporalCharacteristics(a)},e.a(2,{buffer:t,metrics:u})}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_analyzeSpectralData",value:function(e){var t={peaks:[],centroid:0,spread:0,skewness:0,kurtosis:0};if(!e||0===e.length)return t;for(var n=1;n<e.length-1;n++)e[n]>e[n-1]&&e[n]>e[n+1]&&t.peaks.push({index:n,magnitude:e[n]});t.peaks.sort((function(e,t){return t.magnitude-e.magnitude})),t.peaks=t.peaks.slice(0,this._audioConfig.analysis.spectralPeaks);for(var r=0,o=0,i=0;i<e.length;i++){var a=Math.pow(10,e[i]/20);r+=i*a,o+=a}if(o>0&&(t.centroid=r/o),o>0){for(var u=0,s=0;s<e.length;s++){var c=Math.pow(10,e[s]/20);u+=Math.pow(s-t.centroid,2)*c}t.spread=Math.sqrt(u/o)}return t}},{key:"_analyzePhaseData",value:function(e){var t={zeroCrossings:0,phaseVariance:0,phaseCoherence:0};if(!e||0===e.length)return t;for(var n=e[0],r=1;r<e.length;r++)(n<0&&e[r]>=0||n>=0&&e[r]<0)&&t.zeroCrossings++,n=e[r];var o=e.reduce((function(e,t){return e+t}),0)/e.length;if(t.phaseVariance=e.reduce((function(e,t){return e+Math.pow(t-o,2)}),0)/e.length,e.length>1){for(var i=0,a=1;a<e.length;a++){var u=Math.abs(e[a]-e[a-1]);i+=Math.cos(u)}t.phaseCoherence=i/(e.length-1)}return t}},{key:"_analyzeDynamicRange",value:function(e){var t={crestFactor:0,dynamicRange:0,compressionRatio:0};if(!e||0===e.length)return t;var n=e.map((function(e){return Math.pow(10,e/20)})).filter((function(e){return e>0}));if(0===n.length)return t;var r=Math.sqrt(n.reduce((function(e,t){return e+t*t}),0)/n.length),o=Math.max.apply(Math,lk(n));if(r>0){t.crestFactor=o/r;var i=Math.min.apply(Math,lk(n));t.dynamicRange=20*Math.log10(o/i)}return t}},{key:"_analyzeHarmonicContent",value:function(e,t){var n={totalHarmonicDistortion:0,harmonicSpectrum:0};if(!e||0===e.length)return n;var r=e.map((function(e){return Math.pow(10,e/20)})),o=Math.max.apply(Math,lk(r)),i=r.filter((function(e,t){return t>0&&e>.1*o})).reduce((function(e,t){return e+t*t}),0);return n.totalHarmonicDistortion=o>0?Math.sqrt(i)/o:0,n}},{key:"_analyzeTemporalCharacteristics",value:function(e){var t={attackTime:0,decayTime:0,sustainLevel:0};if(!e||0===e.length)return t;var n=this._calculateEnvelope(e);if(n.length>0){for(var r=.9*Math.max.apply(Math,lk(n)),o=0,i=0;i<n.length;i++)if(n[i]>=r){o=i;break}t.attackTime=o/this._audioConfig.sampleRate}return t}},{key:"_calculateEnvelope",value:function(e){for(var t=[],n=Math.max(1,Math.floor(.001*e.length)),r=0;r<e.length;r+=n){var o=e.slice(r,Math.min(r+n,e.length)),i=Math.sqrt(o.reduce((function(e,t){return e+t*t}),0)/o.length);t.push(i)}return t}},{key:"_combineSignalsAdvanced",value:(n=yk(uk().m((function e(t){var n,r,o,i,a,u,s,c,l,f;return uk().w((function(e){for(;;)switch(e.n){case 0:if(Array.isArray(t)&&0!==t.length){e.n=1;break}throw new Error("Invalid signals array");case 1:for(n=new this._OfflineAudioContext(1,this._audioConfig.targetSampleIndex+1,this._audioConfig.sampleRate),r=n.createBuffer(1,n.length,n.sampleRate),o=r.getChannelData(0),i=t.map((function(e,t){return 1-.1*t})),a=i.reduce((function(e,t){return e+t}),0),u=0;u<o.length;u++){for(s=0,c=0;c<t.length;c++)l=t[c],f=l.getChannelData(0),u<f.length&&(s+=f[u]*i[c]);o[u]=s/a}return e.a(2,r)}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_generateCompositeFingerprint",value:function(e,t,n){var r=this,o=this._hashSignal(e.getChannelData(0)),i=t.reduce((function(e,t,n){var o=1+.1*n,i=r._hashSpectralMetrics(t.spectral||{}),a=r._hashPhaseMetrics(t.phase||{}),u=r._hashDynamicMetrics(t.dynamic||{}),s=r._hashHarmonicMetrics(t.harmonic||{}),c=r._hashTemporalMetrics(t.temporal||{}),l=r._combineHashes([i,a,u,s,c]),f=Math.floor(l*o);return r._combineHashes([e,f])}),0),a=this._hashContextInfo(n);return this._combineHashes([o,i,a])}},{key:"_hashSignal",value:function(e){if(!e||!e.length)return 0;var t=0;
2return[1,10,50,100].forEach((function(n){for(var r=0;r<e.length;r+=n){var o=e[r]||0,i=1+r/e.length*.5;t=(t<<5)-t+o*i,t&=t}})),t}},{key:"_hashSpectralMetrics",value:function(e){var t=0;return Array.isArray(e.peaks)&&e.peaks.forEach((function(e){e&&"object"===ak(e)&&(t=((t=(t<<5)-t+(e.index||0))<<5)-t+(e.magnitude||0))})),(t=((t=((t=((t=(t<<5)-t+(e.centroid||0))<<5)-t+(e.spread||0))<<5)-t+(e.skewness||0))<<5)-t+(e.kurtosis||0))&t}},{key:"_hashPhaseMetrics",value:function(e){var t=0;return(t=((t=((t=(t<<5)-t+(e.zeroCrossings||0))<<5)-t+(e.phaseVariance||0))<<5)-t+(e.phaseCoherence||0))&t}},{key:"_hashDynamicMetrics",value:function(e){var t=0;return(t=((t=((t=(t<<5)-t+(e.crestFactor||0))<<5)-t+(e.dynamicRange||0))<<5)-t+(e.compressionRatio||0))&t}},{key:"_hashHarmonicMetrics",value:function(e){var t=0;return(t=((t=(t<<5)-t+(e.totalHarmonicDistortion||0))<<5)-t+(e.harmonicSpectrum||0))&t}},{key:"_hashTemporalMetrics",value:function(e){var t=0;return(t=((t=((t=(t<<5)-t+(e.attackTime||0))<<5)-t+(e.decayTime||0))<<5)-t+(e.sustainLevel||0))&t}},{key:"_hashContextInfo",value:function(e){var t=0;return t=((t=((t=((t=((t=(t<<5)-t+e.sampleRate)<<5)-t+e.baseLatency)<<5)-t+e.maxChannelCount)<<5)-t+this._hashString(e.state))<<5)-t+this._hashString(e.browser),e.supportedSampleRates.forEach((function(e){t=(t<<5)-t+e})),e.supportedChannelCounts.forEach((function(e){t=(t<<5)-t+e})),t&t}},{key:"_hashString",value:function(e){var t=0;"string"!=typeof e&&(e=String(e));for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}},{key:"_combineHashes",value:function(e){return e.reduce((function(e,t){return(e=(e<<5)-e+t)&e}),0)}},{key:"_stabilizeAdvanced",value:function(e,t){var n=e;return(n=((n=(n<<5)-n+this._hashContextInfo(t))<<5)-n+this._hashBrowserQuirks(t))&n}},{key:"_hashBrowserQuirks",value:function(e){var t=0;return(t=((t=((t=(t<<5)-t+this._hashString(e.browser))<<5)-t+e.baseLatency)<<5)-t+e.maxChannelCount)&t}},{key:"_stabilize",value:function(e,t){if(0===e)return e;var n=Math.floor(Math.log10(Math.abs(e)))-Math.floor(t)+1,r=Math.pow(10,-n)*(10*t%10||1);return Math.round(e*r)/r}},{key:"_renderAudio",value:function(e){var t=this;return new Promise((function(n,r){var o,i=0,a=(null===(o=t._audioConfig.browserOptimizations[t._browserInfo])||void 0===o?void 0:o.retryAttempts)||3,u=function t(){try{e.oncomplete=function(e){n(e.renderedBuffer)},e.onstatechange=function(){"suspended"===e.state&&e.resume()};var o=e.startRendering();if(o&&o instanceof Promise)return o.then((function(){n(o)})).catch(r)}catch(e){++i<a?setTimeout(t,100):r(e)}};u()}))}}],[{key:"getDefaultSettings",value:function(){return mk({},Ek)}}]);var n,r,o,i,a,u}(Br);function Pk(e){return Pk="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},Pk(e)}function Tk(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Ck(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Ck(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ck(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Ck(f,"constructor",c),Ck(c,"constructor",s),s.displayName="GeneratorFunction",Ck(c,o,"GeneratorFunction"),Ck(f),Ck(f,o,"Generator"),Ck(f,r,(function(){return this})),Ck(f,"toString",(function(){return"[object Generator]"})),(Tk=function(){return{w:i,m:p}})()}function Ck(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ck=function(e,t,n,r){function i(t,n){Ck(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ck(e,t,n,r)}function jk(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Mk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xk(r.key),r)}}function xk(e){var t=function(e){if("object"!=Pk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pk(t)?t:t+""}function Rk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rk=function(){return!!e})()}
2function Ak(e){return Ak=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ak(e)}function Bk(e,t){return Bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bk(e,t)}var Dk={configKey:"enableEmuidFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},Ik=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Ak(t),function(e,t){if(t&&("object"==Pk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rk()?Reflect.construct(t,n||[],Ak(e).constructor):t.apply(e,n))}(this,t))._encryptedMuidService=n,r._dataQ=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bk(e,t)}(t,e),function(e,t,n){return t&&Mk(e.prototype,t),n&&Mk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=Tk().m((function e(){var t;return Tk().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this._encryptedMuidService.getEncryptedMuid();case 1:(t=e.v)&&this._dataQ.addToQueue("static_fields",["emuid",t],!1);case 2:return e.a(2)}}),e,this)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){jk(i,r,o,a,u,"next",e)}function u(e){jk(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return Dk}}]);var n,r}(Br);function Lk(e){return Lk="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},Lk(e)}function Fk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nk(r.key),r)}}function Nk(e){var t=function(e){if("object"!=Lk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lk(t)?t:t+""}function Uk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uk=function(){return!!e})()}function Gk(e){return Gk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gk(e)}function Wk(e,t){return Wk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wk(e,t)}var Qk={configKey:"isNavigatorFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!1,isRunning:!1,instance:null},Hk=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.navigator;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Gk(t),function(e,t){if(t&&("object"==Lk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Uk()?Reflect.construct(t,n||[],Gk(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._navigator=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wk(e,t)}(t,e),function(e,t,n){return t&&Fk(e.prototype,t),n&&Fk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){try{var e={oscpu:this._navigator.oscpu||null,pdfViewerEnabled:this._navigator.pdfViewerEnabled||null,webdriver:this._navigator.webdriver||null,appVersion:this._navigator.appVersion||null,platform:this._navigator.platform||null,vendor:this._navigator.vendor||null,productSub:this._navigator.productSub||null,vendorSub:this._navigator.vendorSub||null,onLine:this._navigator.onLine||null,prototype:Object.getOwnPropertyNames(Object.getPrototypeOf(this._navigator))};pe.debug("NavigatorFeature: Collected navigator data"+JSON.stringify(e)),this._dataQ.addToQueue("static_fields",["navigator_oscpu",e.oscpu],!1),this._dataQ.addToQueue("static_fields",["navigator_pdfViewerEnabled",e.pdfViewerEnabled],!1),this._dataQ.addToQueue("static_fields",["navigator_webdriver",e.webdriver],!1),this._dataQ.addToQueue("static_fields",["navigator_appVersion",e.appVersion],!1),this._dataQ.addToQueue("static_fields",["navigator_platform",e.platform],!1),this._dataQ.addToQueue("static_fields",["navigator_vendor",e.vendor],!1),this._dataQ.addToQueue("static_fields",["navigator_productSub",e.productSub],!1),this._dataQ.addToQueue("static_fields",["navigator_vendorSub",e.vendorSub],!1),this._dataQ.addToQueue("static_fields",["navigator_onLine",e.onLine],!1),this._dataQ.addToQueue("static_fields",["navigator_prototype",e.prototype],!1)}
2catch(e){pe.error("NavigatorFeature: Error collecting navigator data",e)}}}],[{key:"getDefaultSettings",value:function(){return Qk}}])}(Br);function Vk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zk(e){return zk="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},zk(e)}function Kk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qk(r.key),r)}}function qk(e){var t=function(e){if("object"!=zk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zk(t)?t:t+""}function Jk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jk=function(){return!!e})()}function Yk(e){return Yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yk(e)}function Xk(e,t){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xk(e,t)}var Zk=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Yk(t),function(e,t){if(t&&("object"==zk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jk()?Reflect.construct(t,n||[],Yk(e).constructor):t.apply(e,n))}(this,t)).fieldName="client_hints_user_agent",n.value=e,n.validateParams(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xk(e,t)}(t,e),function(e,t){return t&&Kk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){var t=this;null===e||"object"!==zk(e)||Array.isArray(e)?pe.warn("ClientHintsContract: Invalid data object. Expected non-null object, received: ".concat(zk(e))):Object.entries(e).forEach((function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vk(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)?Vk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];t.validateField(r,o)}))}},{key:"validateField",value:function(e,t){if(void 0!==t){var n={brands:function(e){return Array.isArray(e)&&e.every((function(e){return"object"===zk(e)&&null!==e&&"string"==typeof e.brand&&"string"==typeof e.version}))},is_mobile:function(e){return"boolean"==typeof e},platform:function(e){return"string"==typeof e},architecture:function(e){return"string"==typeof e},bitness:function(e){return"string"==typeof e},model:function(e){return"string"==typeof e},platform_version:function(e){return"string"==typeof e},user_agent_full_version:function(e){return"string"==typeof e},full_version_list:function(e){return Array.isArray(e)&&e.every((function(e){return"object"===zk(e)&&null!==e&&"string"==typeof e.brand&&"string"==typeof e.ver
2sion}))},wow64:function(e){return"boolean"==typeof e}}[e];if(n){if(!n(t)){var r=this._getExpectedType(e);pe.warn("ClientHintsContract: wrong value type for ".concat(e,". {expected: ").concat(r,", received: ").concat(zk(t),", value: ").concat(JSON.stringify(t)))}}else pe.warn("ClientHintsContract: unknown field name: ".concat(e))}}},{key:"_getExpectedType",value:function(e){return{brands:"Array",is_mobile:"boolean",platform:"string",architecture:"string",bitness:"string",model:"string",platform_version:"string",user_agent_full_version:"string",full_version_list:"Array",wow64:"boolean"}[e]||"unknown"}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.value];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){var t="string"==typeof e[0]&&e[0]===this.fieldName,n="object"===zk(e[1])&&null!==e[1]&&!Array.isArray(e[1]);t&&n||pe.warn("ClientHintsContract - Contract verification failed. Expected field name: ".concat(this.fieldName,", received: ").concat(e[0],", value type: ").concat(zk(e[1])))}},{key:"getName",value:function(){return this.fieldName}}])}(im);function $k(e){return $k="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},$k(e)}function eE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return tE(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(tE(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,tE(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,tE(f,"constructor",c),tE(c,"constructor",s),s.displayName="GeneratorFunction",tE(c,o,"GeneratorFunction"),tE(f),tE(f,o,"Generator"),tE(f,r,(function(){return this})),tE(f,"toString",(function(){return"[object Generator]"})),(eE=function(){return{w:i,m:p}})()}function tE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tE=function(e,t,n,r){function i(t,n){tE(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},tE(e,t,n,r)}function nE(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function rE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oE(r.key),r)}}function oE(e){var t=function(e){if("object"!=$k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$k(t)?t:t+""}function iE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iE=function(){return!!e})()}
2function aE(e){return aE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aE(e)}function uE(e,t){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uE(e,t)}var sE={configKey:"isClientHintsFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!1,isRunning:!1,instance:null},cE=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.navigator;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=aE(t),function(e,t){if(t&&("object"==$k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,iE()?Reflect.construct(t,n||[],aE(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._navigator=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uE(e,t)}(t,e),function(e,t,n){return t&&rE(e.prototype,t),n&&rE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=eE().m((function e(){var t,n,r,o,i;return eE().w((function(e){for(;;)switch(e.p=e.n){case 0:if(t=Z.getUserAgentData(this._navigator)){e.n=1;break}return pe.debug("ClientHintsCollector: userAgentData not available"),e.a(2);case 1:return n={brands:t.brands,is_mobile:t.mobile,platform:t.platform},e.p=2,e.n=3,t.getHighEntropyValues(["architecture","model","platformVersion","uaFullVersion","fullVersionList","bitness","wow64"]);case 3:r=e.v,n.architecture=r.architecture,n.model=r.model,n.platform_version=r.platformVersion,n.user_agent_full_version=r.uaFullVersion,n.full_version_list=r.fullVersionList,n.bitness=r.bitness,n.wow64=r.wow64,e.n=5;break;case 4:e.p=4,i=e.v,pe.error("ClientHintsCollector: Error collecting client hints data",i);case 5:pe.debug("ClientHintsCollector: Sending client hints data: "+JSON.stringify(n)),o=new Zk(n),this._dataQ.addToQueue("static_fields",o.buildQueueMessage(),!1);case 6:return e.a(2)}}),e,this,[[2,4]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){nE(i,r,o,a,u,"next",e)}function u(e){nE(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return sE}}]);var n,r}(Br),lE={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'a[title="7naga poker" i]','[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",".i-said-no-thing-can-stop-me-warning.dark",".quangcao",'[href^="https://r88.vn/"]','[href^="https://zbet.vn/"]'],adBlockFinland:[".mainostila",".sponsorit",".ylamainos",'a[href*="/clickthrgh.asp?"]','a[href^="https://app.readpeak.com/ads"]'],adBlockPersian:["#navbar_notice_50",'a[href^="http://g1.v.fwmrm.net/ad/"]',".kadr",'TABLE[width="140px"]',"#divAgahi"],adBlockWarningRemoval:["#adblock_message",".adblockInfo",".deadblocker-header-bar",".no-ad-reminder","#AdBlockDialog"],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:["#ad-fullbanner2-billboard-outer",".stky-ad-footer",".BetterJsPopOverlay","#ad_300X250","#bannerfloat22"],adGuardChinese:['#piao_div_0[style*="width:140px;"]','a[href*=".ttz5.cn"]','a[href*=".yabovip2027.com/"]',".tm3all2h4b","#duilian_left"],adGuardFrench:["#anAdScGp300x25",'a[href*=".kfiopkln.com/"]','a[href^="https://jsecoin.com/o/?"]','a[href^="https://www.clickadu.com/?"]',".bandeauClosePub"],adGuardGerman:[".banneritemwerbung_head_1",".boxstartwerbung",".werbung3",'a[href^="http://www.eis.de/index.phtml?refid="]','a[href^="https://www.tipico.com/?affiliateId="]'],adGuardJapanese:["#kauli_yad_1",".adArticleSidetile",".ads_entrymore",'a[href^="http://ad2.trafficgate.net/"]','a[href^="http://www.rssad.jp/"]'],adGuardMobile:["amp-auto-ads","#mgid_iframe",".amp_ad","amp-sticky-ad",".plugin-blogroll"],adGuardRussian:['a[href^="https://ya-distrib.ru/r/"]','a[href^="https://ad.letmeads.com/"]',".reclama",'div[
2id^="smi2adblock"]','div[id^="AdFox_banner_"]'],adGuardSocial:['a[href^="//www.stumbleupon.com/submit?url="]','a[href^="//telegram.me/share/url?"]',".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",'[href^="http://ads.glispa.com/"]'],adGuardTrackingProtection:['amp-embed[type="taboola"]',"#qoo-counter",'a[href^="http://click.hotlog.ru/"]','a[href^="http://hitcounter.ru/top/stat.php"]','a[href^="http://top.mail.ru/jump"]'],adGuardTurkish:["#backkapat","#reklami",'a[href^="http://adserv.ontek.com.tr/"]','a[href^="http://izlenzi.com/campaign/"]','a[href^="http://www.installads.net/"]'],bulgarian:["td#freenet_table_ads","#newAd","#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:["#adlabelheader","#anAdScGame300x250","#adTakeOverLeft","#ad_LargeRec01","#adundergame"],easyListChina:['a[href*=".wensixuetang.com/"]','A[href*="/hth107.com/"]','.appguide-wrap[onclick*="bcebos.com"]',".frontpageAdvM","#taotaole"],easyListCookie:["#Button_Cookie","#CWCookie","#CookieCon","#DGPR","#PnlCookie"],easyListCzechSlovak:["#onlajny-stickers","#reklamni-box",".reklama-megaboard",".sklik",'[id^="sklikReklama"]'],easyListDutch:["#advertentie","#vipAdmarktBannerBlock",".adstekst",'a[href^="http://adserver.webads.nl/adclick/"]',"#semilo-lrectangle"],easyListGermany:["#nativendo-hometop",'a[href^="http://www.kontakt-vermittler.de/?wm="]',"#gwerbung",'a[href^="https://marketing.net.brillen.de/"]',".werbenbox"],easyListItaly:[".box_adv_annunci",".sb-box-pubbliredazionale",'a[href^="http://affiliazioniads.snai.it/"]','a[href^="https://adserver.html.it/"]','a[href^="https://affiliazioniads.snai.it/"]'],easyListLithuania:[".reklamos_tarpas",".reklamos_nuorodos",'img[alt="Reklaminis skydelis"]','img[alt="Dedikuoti.lt serveriai"]','img[alt="Hostingas Serveriai.lt"]'],estonian:['A[href*="http://pay4results24.eu"]'],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag",'div[style*="box-shadow: rgb(136, 136, 136) 0px 0px 12px; color: "]','div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:['a[href*="casinopro.se"][target="_blank"]','a[href*="doktor-se.onelink.me"]',"article.category-samarbete","div.holidAds","ul.adsmodern"],greekAdBlock:['A[href*="adman.otenet.gr/click?"]','A[href*="http://axiabanners.exodus.gr/"]','A[href*="http://interactive.forthnet.gr/click?"]',"DIV.agores300","TABLE.advright"],hungarian:['A[href*="ad.eval.hu"]','A[href*="ad.netmedia.hu"]','A[href*="daserver.ultraweb.hu"]',"#cemp_doboz",".optimonk-iframe-container"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:['A[href^="/framework/resources/forms/ads.aspx"]'],latvian:['a[href="http://www.salidzini.lv/"][style="display: block; width: 120px; height: 40px; overflow: hidden; position: relative;"]','a[href="http://www.salidzini.lv/"][style="display: block; width: 88px; height: 31px; overflow: hidden; position: relative;"]'],listKr:['a[href*="//kingtoon.slnk.kr"]','a[href*="//playdsb.com/kr"]',"div.logly-lift-adz",'div[data-widget_id="ml6EJ074"]',"ins.daum_ddn_area"],listeAr:[".geminiLB1Ad",".right-and-left-sponsers",'a[href*=".aflam.info"]','a[href*="booraq.org"]','a[href*="dubizzle.com/ar/?utm_source="]'],listeFr:['a[href^="http://promo.vador.com/"]',"#adcontainer_recherche",'a[href*="weborama.fr/fcgi-bin/"]',".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",'[href^="https://aff.sendhub.pl/"]','a[href^="http://advmanager.techfun.pl/redirect/"]','a[href^="http://www.trizer.pl/?utm_source"]',"div#skapiec_ad"],ro:['a[href^="//afftrk.altex.ro/Counter/Click"]','a[href^="/magazin/"]','a[href^="https://blackfri
2daysales.ro/trk/shop/"]','a[href^="https://event.2performant.com/events/click"]','a[href^="https://l.profitshare.ro/"]'],ruAd:['a[href*="//febrare.ru/"]','a[href*="//utimg.ru/"]','a[href*="://chikidiki.ru"]',"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]","#ads-google-middle_rectangle-group",".ads300s",".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",".ctpl-fullbanner",".zergnet-recommend",".yt.btn-link.btn-md.btn"]};function fE(e){return fE="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},fE(e)}function pE(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=hE(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 dE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||hE(e,t)||function(){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 yE(e){return function(e){if(Array.isArray(e))return mE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hE(e)||function(){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 hE(e,t){if(e){if("string"==typeof e)return mE(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)?mE(e,t):void 0}}function mE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return bE(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(bE(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,bE(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,bE(f,"constructor",c),bE(c,"constructor",s),s.displayName="GeneratorFunction",bE(c,o,"GeneratorFunction"),bE(f),bE(f,o,"Generator"),bE(f,r,(function(){return this})),bE(f,"toString",(function(){return"[object Generator]"})),(vE=function(){return{w:i,m:p}})()}function bE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}bE=function(e,t,n,r){function i(t,n){bE(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},bE(e,t,n,r)}function gE(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function _E(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){gE(i,r,o,a,u,"next",e)}function u(e){gE(i,r,o,a,u,"throw",e)}a(void 0)}))}}function wE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SE(r.key),r)}}function SE(e){var t=function(e){if("object"!=fE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fE(t)?t:t+""}function kE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kE=function(){return!!e})()}
2function EE(e){return EE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EE(e)}function OE(e,t){return OE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OE(e,t)}var PE={configKey:"isAdblockerListsFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},TE=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=EE(t),function(e,t){if(t&&("object"==fE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kE()?Reflect.construct(t,n||[],EE(e).constructor):t.apply(e,n))}(this,t))._dataQueue=e,n.debug=r.debug||!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OE(e,t)}(t,e),function(e,t,n){return t&&wE(e.prototype,t),n&&wE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(o=_E(vE().m((function e(){var t,n;return vE().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.debug("Starting ad blocker lists detection"),e.p=1,e.n=2,this.detectActiveAdblockLists();case 2:t=e.v,this._sendData([t]),e.n=4;break;case 3:e.p=3,n=e.v,pe.error("Error detecting ad blocker lists:",n);case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(){return o.apply(this,arguments)})},{key:"stopFeature",value:function(){}},{key:"canRunDetection",value:function(){return!0}},{key:"_sendData",value:function(e){this._dataQueue.addToQueue("static_fields",["adblock_lists",e],!1)}},{key:"detectActiveAdblockLists",value:(r=_E(vE().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d,y,h;return vE().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=(t=[]).concat.apply(t,yE(Object.values(lE))),e.n=1,this.getBlockedSelectors(n);case 1:for(r=e.v,o=[],i=0,a=Object.entries(lE);i<a.length;i++){u=dE(a[i],2),s=u[0],c=u[1],l=0,f=pE(c);try{for(f.s();!(p=f.n()).done;)d=p.value,r.has(d)?(l++,pe.trace('Selector "'.concat(d,'" is blocked for filter "').concat(s,'".'))):pe.trace('Selector "'.concat(d,'" is not blocked for filter "').concat(s,'".'))}catch(e){f.e(e)}finally{f.f()}l>=2&&(o.push(s),pe.trace('Filter "'.concat(s,'" is considered active.')))}return y=o.sort(),pe.debug("Active ad blocker lists: "+y),e.a(2,y);case 2:return e.p=2,h=e.v,pe.error("Error in detectActiveAdblockLists:",h),e.a(2,[])}}),e,this,[[0,2]])}))),function(){return r.apply(this,arguments)})},{key:"getBlockedSelectors",value:(n=_E(vE().m((function e(t){var n,r,o,i,a,u,s,c,l,f,p;return vE().w((function(e){for(;;)switch(e.p=e.n){case 0:for((n=document.createElement("iframe")).style.position="absolute",n.style.width="0",n.style.height="0",n.style.opacity="0",document.body.appendChild(n),e.p=1,(r=n.contentDocument||n.contentWindow.document).body||(o=r.createElement("body"),r.documentElement.appendChild(o)),i=r.createElement("div"),a=new Array(t.length),u=new Set,s=0;s<t.length;s++)c=this.selectorToElement(t[s],r),(l=r.createElement("div")).appendChild(c),i.appendChild(l),a[s]=c;return r.body.appendChild(i),e.n=2,new Promise((function(e){return setTimeout(e,200)}));case 2:for(f=0;f<t.length;f++)a[f].offsetParent||u.add(t[f]);return e.a(2,u);case 3:return e.p=3,p=e.v,pe.error("Error in getBlockedSelectors:",p),e.a(2,new Set);case 4:return e.p=4,n.parentNode&&n.parentNode.removeChild(n),e.f(4);case 5:return e.a(2)}}),e,this,[[1,3,4,5]])}))),function(e){return n.apply(this,arguments)})},{key:"selectorToElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=dE(this.parseSimpleCssSelector(e),2),r=n[0],o=n[1],i=t.createElement(r||"div");for(var a in o)o.hasOwnProperty(a)&&i.setAttribute(a,o[a].join(" "));return i}},{key:"parseSimpleCssSelector",value:function(e){var t=/^\s*([a-z-]*)(.*)$/i.exec(e);if(!t){var n="Unexpected syntax '".concat(e,"'");throw new Error(n)}for(var r,o=t[1]||void 0,i={},a=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){i[e]||(i[e]=[]),i[e].push(t)};null!==(r=a.exec(t[2]));){var s=r[0];switch(s[0]){case".":u("class",s.slice(1));break;case"#":u("id",s.slice(1));break;
2case"[":var c=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(s);if(!c)throw new Error(errorMessage);u(c[1],c[4]||c[5]||"");break;default:throw new Error(errorMessage)}}return[o,i]}}],[{key:"getDefaultSettings",value:function(){return PE}}]);var n,r,o}(Br);function CE(e,t){var n=e[0]>>>16,r=65535&e[0],o=e[1]>>>16,i=65535&e[1],a=t[0]>>>16,u=65535&t[0],s=t[1]>>>16,c=0,l=0,f=0,p=0;f+=(p+=i+(65535&t[1]))>>>16,p&=65535,l+=(f+=o+s)>>>16,f&=65535,c+=(l+=r+u)>>>16,l&=65535,c+=n+a,c&=65535,e[0]=c<<16|l,e[1]=f<<16|p}function jE(e,t){var n=e[0]>>>16,r=65535&e[0],o=e[1]>>>16,i=65535&e[1],a=t[0]>>>16,u=65535&t[0],s=t[1]>>>16,c=65535&t[1],l=0,f=0,p=0,d=0;p+=(d+=i*c)>>>16,d&=65535,f+=(p+=o*c)>>>16,p&=65535,f+=(p+=i*s)>>>16,p&=65535,l+=(f+=r*c)>>>16,f&=65535,l+=(f+=o*s)>>>16,f&=65535,l+=(f+=i*u)>>>16,f&=65535,l+=n*c+r*s+o*u+i*a,l&=65535,e[0]=l<<16|f,e[1]=p<<16|d}function ME(e,t){var n=e[0];32==(t%=64)?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function xE(e,t){0!=(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function RE(e,t){e[0]^=t[0],e[1]^=t[1]}var AE=[4283543511,3981806797],BE=[3301882366,444984403];function DE(e){var t=[0,e[0]>>>1];RE(e,t),jE(e,AE),t[1]=e[0]>>>1,RE(e,t),jE(e,BE),t[1]=e[0]>>>1,RE(e,t)}var IE=[2277735313,289559509],LE=[1291169091,658871167],FE=[0,5],NE=[0,1390208809],UE=[0,944331445];function GE(e,t){var n=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return(new TextEncoder).encode(e);t[n]=r}return t}(e);t=t||0;var r,o=[0,n.length],i=o[1]%16,a=o[1]-i,u=[0,t],s=[0,t],c=[0,0],l=[0,0];for(r=0;r<a;r+=16)c[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,c[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,jE(c,IE),ME(c,31),jE(c,LE),RE(u,c),ME(u,27),CE(u,s),jE(u,FE),CE(u,NE),jE(l,LE),ME(l,33),jE(l,IE),RE(s,l),ME(s,31),CE(s,u),jE(s,FE),CE(s,UE);c[0]=0,c[1]=0,l[0]=0,l[1]=0;var f=[0,0];switch(i){case 15:f[1]=n[r+14],xE(f,48),RE(l,f);case 14:f[1]=n[r+13],xE(f,40),RE(l,f);case 13:f[1]=n[r+12],xE(f,32),RE(l,f);case 12:f[1]=n[r+11],xE(f,24),RE(l,f);case 11:f[1]=n[r+10],xE(f,16),RE(l,f);case 10:f[1]=n[r+9],xE(f,8),RE(l,f);case 9:f[1]=n[r+8],RE(l,f),jE(l,LE),ME(l,33),jE(l,IE),RE(s,l);case 8:f[1]=n[r+7],xE(f,56),RE(c,f);case 7:f[1]=n[r+6],xE(f,48),RE(c,f);case 6:f[1]=n[r+5],xE(f,40),RE(c,f);case 5:f[1]=n[r+4],xE(f,32),RE(c,f);case 4:f[1]=n[r+3],xE(f,24),RE(c,f);case 3:f[1]=n[r+2],xE(f,16),RE(c,f);case 2:f[1]=n[r+1],xE(f,8),RE(c,f);case 1:f[1]=n[r],RE(c,f),jE(c,IE),ME(c,31),jE(c,LE),RE(u,c)}return RE(u,o),RE(s,o),CE(u,s),CE(s,u),DE(u),DE(s),CE(u,s),CE(s,u),("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function WE(e){return WE="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},WE(e)}function QE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return HE(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(HE(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,HE(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,HE(f,"constructor",c),HE(c,"constructor",s),s.displayName="GeneratorFunction",HE(c,o,"GeneratorFunction"),HE(f),HE(f,o,"Generator"),HE(f,r,(function(){return this})),HE(f,"toString",(function(){return"[object Generator]"})),(QE=function(){return{w:i,m:p}})()}function HE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}HE=function(e,t,n,r){function i(t,n){HE(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},HE(e,t,n,r)}function VE(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function zE(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){VE(i,r,o,a,u,"next",e)}function u(e){VE(i,r,o,a,u,"throw",e)}a(void 0)}))}}function KE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qE(r.key),r)}}function qE(e){var t=function(e){if("object"!=WE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WE(t)?t:t+""}var JE=function(){return function(e,t){return t&&KE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.contextNames=["webgl2","experimental-webgl2","webgl","experimental-webgl","moz-webgl","webkit-3d","webgl2-compute"],this.data={},this.availableContexts=[],this._hashCache={json:null,image:null},this._initialized=!1}),[{key:"start",value:(n=zE(QE().m((function e(){var t;return QE().w((function(e){for(;;)switch(e.p=e.n){case 0:if(!this._initialized){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,this._initializeContexts();case 2:this._computeHashes(),this._initialized=!0,e.n=4;break;case 3:throw e.p=3,t=e.v,pe.debug("Error during WebGL fingerprinting:",t),t;case 4:return e.a(2)}}),e,this,[[1,3]])}
2))),function(){return n.apply(this,arguments)})},{key:"_initializeContexts",value:(t=zE(QE().m((function e(){var t,n=this;return QE().w((function(e){for(;;)switch(e.n){case 0:return t=this.contextNames.map(function(){var e=zE(QE().m((function e(t){var r,o;return QE().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,n.getContextData(t);case 1:(r=e.v)&&(n.availableContexts.push(t),n.data[t]=r),e.n=3;break;case 2:e.p=2,o=e.v,pe.debug("Error retrieving context data for ".concat(t,":"),o);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(t){return e.apply(this,arguments)}}()),e.n=1,Promise.all(t);case 1:pe.debug("WebGL fingerprint data:",this.data);case 2:return e.a(2)}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_computeHashes",value:function(){this.jsonString=JSON.stringify(this.data),this._hashCache.json=GE(this.jsonString),this._hashCache.image=this.availableContexts.length>0?this.computeImageHash():null}},{key:"jsonHash",get:function(){return this._hashCache.json}},{key:"imageHash",get:function(){return this._hashCache.image}},{key:"getContextData",value:(e=zE(QE().m((function e(t){var n=this;return QE().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){try{var r,o=document.createElement("canvas");o.width=256,o.height=128,o.style=null!==(r=o.style)&&void 0!==r?r:{},o.style.backgroundColor="#555",o.style.borderRadius="4px";var i=o.getContext(t);if(!i)return void e(null);var a={},u=i.getContextAttributes();u&&Object.keys(u).length>0&&(a.contextAttributes=u),a.drawingBufferColorSpace=i.drawingBufferColorSpace,a.unpackColorSpace=i.unpackColorSpace;var s=i.getExtension("WEBGL_debug_renderer_info");
2s&&(a.UNMASKED_RENDERER_WEBGL=i.getParameter(s.UNMASKED_RENDERER_WEBGL),a.UNMASKED_VENDOR_WEBGL=i.getParameter(s.UNMASKED_VENDOR_WEBGL)),a.VERTEX_SHADER_PRECISION=n.getShaderPrecision(i,i.VERTEX_SHADER),a.FRAGMENT_SHADER_PRECISION=n.getShaderPrecision(i,i.FRAGMENT_SHADER);var c=i.getExtension("WEBGL_draw_buffers");a.MAX_DRAW_BUFFERS_WEBGL=c?i.getParameter(c.MAX_DRAW_BUFFERS_WEBGL):null;var l=i.getExtension("EXT_texture_filter_anisotropic")||i.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||i.getExtension("MOZ_EXT_texture_filter_anisotropic");a.MAX_TEXTURE_MAX_ANISOTROPY_EXT=l?i.getParameter(l.MAX_TEXTURE_MAX_ANISOTROPY_EXT):null,a.MAX_TEXTURE_IMAGE_UNITS=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),a.MAX_VERTEX_TEXTURE_IMAGE_UNITS=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),a.MAX_COMBINED_TEXTURE_IMAGE_UNITS=i.getParameter(i.MAX_COMBINED_TEXTURE_IMAGE_UNITS),a.ALIASED_LINE_WIDTH_RANGE=i.getParameter(i.ALIASED_LINE_WIDTH_RANGE),a.ALIASED_POINT_SIZE_RANGE=i.getParameter(i.ALIASED_POINT_SIZE_RANGE),a.SAMPLES=i.getParameter(i.SAMPLES),a.RENDERER=i.getParameter(i.RENDERER),a.VENDOR=i.getParameter(i.VENDOR),a.VERSION=i.getParameter(i.VERSION),a.SHADING_LANGUAGE_VERSION=i.getParameter(i.SHADING_LANGUAGE_VERSION),a.MAX_CUBE_MAP_TEXTURE_SIZE=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),a.MAX_TEXTURE_SIZE=i.getParameter(i.MAX_TEXTURE_SIZE),a.MAX_RENDERBUFFER_SIZE=i.getParameter(i.MAX_RENDERBUFFER_SIZE),a.DEPTH_BITS=i.getParameter(i.DEPTH_BITS),a.STENCIL_BITS=i.getParameter(i.STENCIL_BITS),a.MAX_VERTEX_ATTRIBS=i.getParameter(i.MAX_VERTEX_ATTRIBS),a.MAX_VIEWPORT_DIMS=i.getParameter(i.MAX_VIEWPORT_DIMS),a.MAX_FRAGMENT_UNIFORM_VECTORS=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),a.MAX_VERTEX_UNIFORM_VECTORS=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS);var f=i.getSupportedExtensions();a.extensions=f?f.sort():[],e(a)}catch(n){pe.debug("Error in getContextData for ".concat(t,":"),n),e(null)}})))}),e)}))),function(t){return e.apply(this,arguments)})},{key:"getShaderPrecision",value:function(e,t){try{var n=e.getShaderPrecisionFormat(t,e.HIGH_FLOAT),r=e.getShaderPrecisionFormat(t,e.MEDIUM_FLOAT),o=0!==n.precision?n:r;return{rangeMin:o.rangeMin,rangeMax:o.rangeMax,precision:o.precision}}catch(e){return null}}},{key:"computeImageHash",value:function(){if(0===this.availableContexts.length)return null;var e=this.availableContexts[0],t=document.createElement("canvas");t.width=512,t.height=256;var n=t.getContext(e);if(!n)return null;var r={program:null,vertexShader:null,fragmentShader:null,buffer:null};try{n.viewport(0,0,t.width,t.height);var o=function(e,t){var r=n.createShader(e);return n.shaderSource(r,t),n.compileShader(r),n.getShaderParameter(r,n.COMPILE_STATUS)||pe.debug((e===n.VERTEX_SHADER?"Vertex":"Fragment")+" shader error:",n.getShaderInfoLog(r)),r},i=n.createProgram();r.program=i;var a=o(n.VERTEX_SHADER,"\n attribute vec2 attrVertex;\n attribute vec4 attrColor;\n varying vec4 varyinColor;\n uniform mat4 transform;\n void main(){\n varyinColor = attrColor;\n gl_Position = transform * vec4(attrVertex, 0.0, 1.0);\n }\n ");r.vertexShader=a;var u=o(n.FRAGMENT_SHADER,"\n precision mediump float;\n varying vec4 varyinColor;\n void main(){\n gl_FragColor = varyinColor;\n }\n ");r.fragmentShader=u,n.attachShader(i,a),n.attachShader(i,u),n.linkProgram(i),n.getProgramParameter(i,n.LINK_STATUS)||pe.debug("Program link error:",n.getProgramInfoLog(i)),n.useProgram(i);var s=n.getAttribLocation(i,"attrVertex"),c=n.getAttribLocation(i,"attrColor"),l=n.getUniformLocation(i,"transform");n.enableVertexAttribArray(s),n.enableVertexAttribArray(c),n.uniformMatrix4fv(l,!1,new Float32Array([1.5,0,0,0,0,1.5,0,0,0,0,1,0,.5,0,0,1]));var f=[-.25,0],p=128,d=[];d.push(f[0],f[1],1,.7,0,1);for(var y=0;y<p;y++){var h=(45+y/p*270)/360*2*Math.PI,m=(45+(y+1)/p*270)/360*2*Math.PI;d.push(f[0]+.5*Math.cos(h),f[1]+.5*Math.sin(h),2,1-y/p,0,1),d.push(f[0]+.5*Math.cos(m),f[1]+.5*Math.sin(m),1,1-(y+1)/p,0,1)}var v=[.2,.2,.8,.2,.2,1,.8,.2,.2,.8,.8,1,.2,.8,.5,.5,.2,1,.8,.2,.2,.8,.8,1,.8,.8,.8,.8,.8,1,.2,.8,.5,.5,.2,1],b=new Float32Array([].concat(d,v)),g=n.createBuffer();r.buffer=g,n.bindBuffer(n.ARRAY_BUFFER,g),n.bufferData(n.ARRAY_BUFFER,b,n.STATIC_DRAW),n.vertexAttribPointer(s,2,n.FLOAT,!1,24,0),n.vertexAttribPointer(c,4,n.FLOAT,!1,24,8),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT);var _=d.length/6;n.drawArrays(n.LINE_STRIP,0,_);var w=v.length/6;n.drawArrays(n.TRIANGLES,_,w);var S=new Uint8Array(t.width*t.height*4);try{n.readPixels(0,0,t.width,t.height,n.RGBA,n.UNSIGNED_BYTE,S)}catch(e){return"gl.readPixels: "+e}var k=function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);return btoa(t)}(S.buffer);return GE(k+(n.getParameter(n.VENDOR)||"")+(n.getParameter(n.RENDERER)||"")+(n.getSupportedExtensions()||[]).join(","))}catch(e){return pe.debug("Error computing WebGL image hash:",e),null}finally{this._cleanupWebGLResources(n,r)}}},{key:"_cleanupWebGLResources",value:function(e,t){if(e)try{t.vertexShader&&e.deleteShader(t.vertexShader),t.fragmentShader&&e.deleteShader(t.fragmentShader),t.program&&e.deleteProgram(t.program),t.buffer&&e.deleteBuffer(t.buffer)}catch(e){pe.debug("Error cleaning up WebGL resources:",e)}}}]);var e,t,n}();function YE(e){return YE="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},YE(e)}function XE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return ZE(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(ZE(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ZE(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ZE(f,"constructor",c),ZE(c,"constructor",s),s.displayName="GeneratorFunction",ZE(c,o,"GeneratorFunction"),ZE(f),ZE(f,o,"Generator"),ZE(f,r,(function(){return this})),ZE(f,"toString",(function(){return"[object Generator]"})),(XE=function(){return{w:i,m:p}})()}function ZE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ZE=function(e,t,n,r){function i(t,n){ZE(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ZE(e,t,n,r)}function $E(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function eO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tO(r.key),r)}}function tO(e){var t=function(e){if("object"!=YE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=YE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==YE(t)?t:t+""}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nO=function(){return!!e})()}function rO(e){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rO(e)}function oO(e,t){return oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oO(e,t)}var iO={configKey:"isWebglFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!1,isRunning:!1,instance:null},aO=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=rO(t),function(e,t){if(t&&("object"==YE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nO()?Reflect.construct(t,n||[],rO(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oO(e,t)}(t,e),function(e,t,n){return t&&eO(e.prototype,t),n&&eO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=XE().m((function e(){var t,n;return XE().w((function(e){for(;;)switch(e.p=e.n){case 0:return t=new JE,e.p=1,e.n=2,t.start();case 2:pe.debug("WebGL JSON Hash:"+t.jsonHash),pe.debug("WebGL Image Hash:"+t.imageHash),this._dataQ.addToQueue("static_fields",["webgl",[t.jsonHash,t.imageHash]],!1),e.n=4;break;case 3:e.p=3,n=e.v,pe.debug("Error in WebGL fingerprinting:",n);case 4:return e.a(2)}}),e,this,[[1,3]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){$E(i,r,o,a,u,"next",e)}function u(e){$E(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return iO}}]);var n,r}(Br);function uO(e){return uO="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},uO(e)}function sO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 2,727 bytes, line 2
2t%2?sO(Object(n),!0).forEach((function(t){lO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lO(e,t,n){return(t=function(e){var t=function(e){if("object"!=uO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uO(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fO(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return pO(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(pO(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,pO(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,pO(f,"constructor",c),pO(c,"constructor",s),s.displayName="GeneratorFunction",pO(c,o,"GeneratorFunction"),pO(f),pO(f,o,"Generator"),pO(f,r,(function(){return this})),pO(f,"toString",(function(){return"[object Generator]"})),(fO=function(){return{w:i,m:p}})()}function pO(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}pO=function(e,t,n,r){function i(t,n){pO(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))}
2,pO(e,t,n,r)}function dO(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function yO(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){dO(i,r,o,a,u,"next",e)}function u(e){dO(i,r,o,a,u,"throw",e)}a(void 0)}))}}function hO(){return hO=yO(fO().m((function e(){var t,n,r,o,i,a,u,s,c,l,f=arguments;return fO().w((function(e){for(;;)switch(e.p=e.n){case 0:if(null!=(t=f.length>0&&void 0!==f[0]?f[0]:navigator)&&t.gpu){e.n=1;break}return e.a(2,{dataHash:null,identifierHash:null});case 1:return e.p=1,n={},e.n=2,t.gpu.requestAdapter({powerPreference:"high-performance"});case 2:if(r=e.v){e.n=3;break}return e.a(2,{dataHash:null,identifierHash:null});case 3:return e.n=4,mO(r,"high-performance");case 4:return(o=e.v)&&(n.adapter=o),e.n=5,t.gpu.requestAdapter({powerPreference:"low-power"});case 5:if(!(i=e.v)||i===r){e.n=7;break}return e.n=6,mO(i,"low-power");case 6:(a=e.v)&&(n.lowPowerAdapter=a);case 7:return u=GE(JSON.stringify(n)),s=null,n.adapter&&(c=JSON.stringify({vendor:n.adapter.vendor,architecture:n.adapter.architecture,device:n.adapter.device,description:n.adapter.description,isFallbackAdapter:n.adapter.isFallbackAdapter,subgroupMaxSize:n.adapter.subgroupMaxSize,subgroupMinSize:n.adapter.subgroupMinSize,powerPreference:n.adapter.powerPreference,features:n.adapter.features}),s=GE(c)),e.a(2,{dataHash:u,identifierHash:s});case 8:return e.p=8,l=e.v,pe.debug("Error collecting WebGPU adapter data:",l),e.a(2,{dataHash:null,identifierHash:null})}}),e,null,[[1,8]])}))),hO.apply(this,arguments)}function mO(e,t){return vO.apply(this,arguments)}function vO(){return(vO=yO(fO().m((function e(t,n){var r,o,i;return fO().w((function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,null);case 1:return e.p=1,r=cO(cO({powerPreference:n||null},bO(t)),{},{limits:gO(t.limits),features:wO(t.features)}),e.n=2,SO(t);case 2:return(o=e.v)&&(r.deviceAdapterInfo=o.adapterInfo,r.deviceLimits=o.limits,r.deviceFeatures=o.features),e.a(2,r);case 3:return e.p=3,i=e.v,pe.debug("Error collecting adapter data:",i),e.a(2,null)}}),e,null,[[1,3]])})))).apply(this,arguments)}function bO(e){var t,n,r;return e.info?{vendor:e.info.vendor||null,architecture:e.info.architecture||null,device:e.info.device||null,description:e.info.description||null,isFallbackAdapter:null!==(t=e.info.isFallbackAdapter)&&void 0!==t?t:null,subgroupMaxSize:null!==(n=e.info.subgroupMaxSize)&&void 0!==n?n:null,subgroupMinSize:null!==(r=e.info.subgroupMinSize)&&void 0!==r?r:null}:{}}function gO(e){return e?{maxTextureDimension1D:e.maxTextureDimension1D,maxTextureDimension2D:e.maxTextureDimension2D,maxTextureDimension3D:e.maxTextureDimension3D,maxTextureArrayLayers:e.maxTextureArrayLayers,maxBindGroups:e.maxBindGroups,maxBindGroupsPlusVertexBuffers:e.maxBindGroupsPlusVertexBuffers,maxBindingsPerBindGroup:e.maxBindingsPerBindGroup,maxDynamicUniformBuffersPerPipelineLayout:e.maxDynamicUniformBuffersPerPipelineLayout,maxDynamicStorageBuffersPerPipelineLayout:e.maxDynamicStorageBuffersPerPipelineLayout,maxSampledTexturesPerShaderStage:e.maxSampledTexturesPerShaderStage,maxSamplersPerShaderStage:e.maxSamplersPerShaderStage,maxStorageBuffersPerShaderStage:e.maxStorageBuffersPerShaderStage,maxStorageTexturesPerShaderStage:e.maxStorageTexturesPerShaderStage,maxUniformBuffersPerShaderStage:e.maxUniformBuffersPerShaderStage,maxUniformBufferBindingSize:e.maxUniformBufferBindingSize,maxStorageBufferBindingSize:e.maxStorageBufferBindingSize,minUniformBufferOffsetAlignment:e.minUniformBufferOffsetAlignment,minStorageBufferOffsetAlignment:e.minStorageBufferOffsetAlignment,maxVertexBuffers:e.maxVertexBuffers,maxBufferSize:e.maxBufferSize,maxVertexAttributes:e.maxVertexAttributes,maxVertexBufferArrayStride:e.maxVertexBufferArrayStride,maxInterStageShaderComponents:e.maxInterStageShaderComponents,maxInterStageShaderVariables:e.maxInterStageShaderVariables,maxColorAttachments:e.maxColorAttachments,maxColorAttachmentBytesPerSample:e.maxColorAttachmentBytesPerSample,maxComputeWorkgroupStorageSize:e.maxComputeWorkgroupStorageSize,maxComputeInvocationsPerWorkgroup:e.maxComputeInvocationsPerWorkgroup,maxComputeWorkgroupSizeX:e.maxComputeWorkgroupSizeX,maxComputeWorkgroupSizeY:e.maxComputeWorkgroupSizeY,maxComputeWorkgroupSizeZ:e.maxComputeWorkgroupSizeZ,maxComputeWorkgroupsPerDimension:e.maxComputeWorkgroupsPerDimension}:null}function _O(e,t){return e===t?0:e<t?-1:1}function wO(e){return e?Array.from(e).sort(_O):null}function SO(e){return kO.apply(this,arguments)}function kO(){return(kO=yO(fO().m((function e(t){var n,r,o;return fO().w((function(e){for(;;)switch(e.p=e.n){case 0:return n=null,e.p=1,e.n=2,t.requestDevice({requiredFeatures:[],requiredLimits:{}});case 2:if(n=e.v){e.n=3;break}return e.a(2,null);case 3:return r={adapterInfo:n.adapterInfo?bO({info:n.adapterInfo}):null,limits:gO(n.limits),features:wO(n.features)},n.lost&&n.lost.then((function(e){pe.debug("WebGPU device lost:",e)}
2)).catch((function(){})),e.a(2,r);case 4:return e.p=4,o=e.v,pe.debug("Error creating WebGPU device:",o),e.a(2,null);case 5:if(e.p=5,n)try{n.destroy()}catch(e){}return e.f(5);case 6:return e.a(2)}}),e,null,[[1,4,5,6]])})))).apply(this,arguments)}function EO(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return OO(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(OO(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,OO(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,OO(f,"constructor",c),OO(c,"constructor",s),s.displayName="GeneratorFunction",OO(c,o,"GeneratorFunction"),OO(f),OO(f,o,"Generator"),OO(f,r,(function(){return this})),OO(f,"toString",(function(){return"[object Generator]"})),(EO=function(){return{w:i,m:p}})()}function OO(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}OO=function(e,t,n,r){function i(t,n){OO(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},OO(e,t,n,r)}function PO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TO(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function CO(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){TO(i,r,o,a,u,"next",e)}function u(e){TO(i,r,o,a,u,"throw",e)}a(void 0)}))}}var jO="\n @fragment\n fn fs_main(@location(0) color: vec4<f32>, @builtin(position) pos: vec4<f32>) -> @location(0) vec4<f32> {\n // Compute UV from position to reveal GPU precision differences\n let uv = (pos.xy / vec2<f32>(512.0, 256.0));\n let dist = length(uv - vec2<f32>(0.5));\n // Use mathematical operations that may vary by GPU precision\n let pattern = sin(dist * 10.0) * 0.5 + 0.5;\n let gradient = fract(uv.x * 3.0 + uv.y * 2.0);\n return color * vec4<f32>(pattern, gradient, 1.0 - dist, 1.0);\n }\n";function MO(){return MO=CO(EO().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d,y=arguments;return EO().w((function(e){for(;;)switch(e.p=e.n){case 0:if(null!=(t=y.length>0&&void 0!==y[0]?y[0]:navigator)&&t.gpu){e.n=1;break}return pe.debug("WebGPU geometry hash: navigator.gpu not available"),e.a(2,null);case 1:return n=null,e.p=2,e.n=3,t.gpu.requestAdapter({powerPreference:"high-performance"});case 3:if(r=e.v){e.n=4;break}return pe.debug("WebGPU geometry hash: Failed to request adapter"),e.a(2,null);case 4:return e.n=5,xO(r);case 5:if(n=e.v){e.n=6;break}return pe.debug("WebGPU geometry hash: Failed to create device"),e.a(2,null);case 6:return n.lost.then((function(e){pe.debug("WebGPU device lost:",e.message,"reason:",e.reason)})),e.n=7,Promise.race([n.lost,new Promise((function(e){return setTimeout((function(){return e(null)}),0)}))]);case 7:if(!e.v){e.n=8;break}return pe.debug("WebGPU device already lost"),e.a(2,null);
2case 8:o=t.gpu.getPreferredCanvasFormat(),i=NO(n,r,t),a=[],u=0,s=[{shader:jO,name:"main"},{shader:"\n @fragment\n fn fs_main(@location(0) color: vec4<f32>) -> @location(0) vec4<f32> {\n return color;\n }\n",name:"solid"},{shader:"\n @fragment\n fn fs_main(@location(0) color: vec4<f32>, @builtin(position) pos: vec4<f32>) -> @location(0) vec4<f32> {\n let uv = (pos.xy / vec2<f32>(512.0, 256.0));\n let grad = uv.x * uv.y;\n return color * vec4<f32>(grad, 1.0 - grad, grad * 0.5, 1.0);\n }\n",name:"gradient"},{shader:"\n @fragment\n fn fs_main(@location(0) color: vec4<f32>, @builtin(position) pos: vec4<f32>) -> @location(0) vec4<f32> {\n let uv = (pos.xy / vec2<f32>(512.0, 256.0));\n let checker = floor(uv.x * 8.0) + floor(uv.y * 8.0);\n let pattern = select(0.0, 1.0, fract(checker * 0.5) > 0.5);\n return color * vec4<f32>(pattern, 1.0 - pattern, pattern * 0.5, 1.0);\n }\n",name:"pattern"}];case 9:if(!(u<s.length)){e.n=16;break}return c=s[u],e.n=10,Promise.race([n.lost,new Promise((function(e){return setTimeout((function(){return e(null)}),0)}))]);case 10:if(!e.v){e.n=11;break}return pe.debug("WebGPU render pass '".concat(c.name,"' skipped: device lost")),e.a(3,16);case 11:return e.p=11,e.n=12,AO(n,o,c.shader);case 12:(l=e.v)&&a.push(l),e.n=15;break;case 13:return e.p=13,p=e.v,pe.debug("WebGPU render pass '".concat(c.name,"' failed:"),p),e.n=14,Promise.race([n.lost,new Promise((function(e){return setTimeout((function(){return e(null)}),0)}))]);case 14:if(!e.v){e.n=15;break}return e.a(3,16);case 15:u++,e.n=9;break;case 16:if(0!==a.length){e.n=17;break}return pe.debug("WebGPU geometry hash: All render passes failed"),e.a(2,null);case 17:return f=GO(a,r,i),e.a(2,f);case 18:return e.p=18,d=e.v,pe.debug("Error rendering WebGPU geometry:",d),e.a(2,null);case 19:if(e.p=19,n)try{n.destroy()}catch(e){}return e.f(19);case 20:return e.a(2)}}),e,null,[[11,13],[2,18,19,20]])}))),MO.apply(this,arguments)}function xO(e){return RO.apply(this,arguments)}function RO(){return(RO=CO(EO().m((function e(t){var n;return EO().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,t.requestDevice({requiredFeatures:[],requiredLimits:{}});case 1:return e.a(2,e.v);case 2:return e.p=2,n=e.v,pe.debug("Error creating device:",n),e.a(2,null)}}),e,null,[[0,2]])})))).apply(this,arguments)}function AO(e,t,n){return BO.apply(this,arguments)}function BO(){return(BO=CO(EO().m((function e(t,n,r){var o,i,a,u,s,c,l;return EO().w((function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,o=t.createTexture({size:{width:512,height:256},format:n,usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC}),e.n=2;break;case 1:throw e.p=1,e.v;case 2:i=null,e.p=3,e.p=4,a=DO(t,n,r),e.n=6;break;case 5:throw e.p=5,e.v;case 6:e.p=6,i=IO(t),e.n=8;break;case 7:throw e.p=7,e.v;case 8:return u=t.createCommandEncoder(),(s=u.beginRenderPass({colorAttachments:[{view:o.createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:"clear",storeOp:"store"}]})).setPipeline(a),s.setVertexBuffer(0,i),c=i.size/24,s.draw(c,1,0,0),s.end(),t.queue.submit([u.finish()]),e.n=9,t.queue.onSubmittedWorkDone();case 9:return e.n=10,LO(t,o,512,256);case 10:return l=e.v,e.a(2,l);case 11:throw e.p=11,e.v;case 12:if(e.p=12,i)try{i.destroy()}catch(e){}if(o)try{o.destroy()}catch(e){}return e.f(12);case 13:return e.a(2)}}),e,null,[[6,7],[4,5],[3,11,12,13],[0,1]])})))).apply(this,arguments)}function DO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jO;return e.createRenderPipeline({layout:"auto",vertex:{module:e.createShaderModule({code:"\n struct VertexOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) color: vec4<f32>,\n }\n\n @vertex\n fn vs_main(@location(0) position: vec2<f32>, @location(1) color: vec4<f32>) -> VertexOutput {\n var output: VertexOutput;\n output.position = vec4<f32>(position, 0.0, 1.0);\n output.color = color;\n return output;\n }\n"}),entryPoint:"vs_main",buffers:[{arrayStride:24,attributes:[{shaderLocation:0,offset:0,format:"float32x2"},{shaderLocation:1,offset:8,format:"float32x4"}]}]},fragment:{module:e.createShaderModule({code:n}),entryPoint:"fs_main",targets:[{format:t}]}
2,primitive:{topology:"triangle-list"}})}function IO(e){var t=function(){var e=[],t=[-.25,0],n=128;e.push(t[0],t[1],1,.7,0,1);for(var r=0;r<n;r++){var o=(45+r/n*270)/360*2*Math.PI,i=(45+(r+1)/n*270)/360*2*Math.PI;e.push(t[0]+.5*Math.cos(o),t[1]+.5*Math.sin(o),2,1-r/n,0,1),e.push(t[0]+.5*Math.cos(i),t[1]+.5*Math.sin(i),1,1-(r+1)/n,0,1)}e.push.apply(e,[.2,.2,.8,.2,.2,1,.8,.2,.2,.8,.8,1,.2,.8,.5,.5,.2,1,.8,.2,.2,.8,.8,1,.8,.8,.8,.8,.8,1,.2,.8,.5,.5,.2,1]);var a=[.5,-.3],u=.3;e.push(a[0],a[1],.2,.8,.9,1);for(var s=0;s<64;s++){var c=s/64*2*Math.PI,l=(s+1)/64*2*Math.PI;e.push(a[0]+u*Math.cos(c),a[1]+u*Math.sin(c),.9,.3,.6,1),e.push(a[0]+u*Math.cos(l),a[1]+u*Math.sin(l),.7,.4,.8,1)}return new Float32Array(e).buffer}(),n=e.createBuffer({size:t.byteLength,usage:GPUBufferUsage.VERTEX,mappedAtCreation:!0});return new Float32Array(n.getMappedRange()).set(new Float32Array(t)),n.unmap(),n}function LO(e,t,n,r){return FO.apply(this,arguments)}function FO(){return(FO=CO(EO().m((function e(t,n,r,o){var i,a,u,s,c,l,f,p,d,y,h;return EO().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n){e.n=1;break}return e.a(2,null);case 1:i=4*r,a=256*Math.ceil(i/256),u=a*o,e.p=2,s=t.createBuffer({size:u,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),e.n=4;break;case 3:return e.p=3,e.v,e.a(2,null);case 4:return e.p=4,(c=t.createCommandEncoder()).copyTextureToBuffer({texture:n,mipLevel:0,origin:[0,0,0]},{buffer:s,bytesPerRow:a,rowsPerImage:o},{width:r,height:o,depthOrArrayLayers:1}),t.queue.submit([c.finish()]),e.n=5,t.queue.onSubmittedWorkDone();case 5:return e.n=6,s.mapAsync(GPUMapMode.READ);case 6:for(l=new Uint8Array(s.getMappedRange()),f=new Uint8Array(r*o*4),p=0;p<o;p++)d=p*a,y=p*i,f.set(l.subarray(d,d+i),y);return e.a(2,f);case 7:return e.p=7,h=e.v,pe.debug("Error reading pixels:",h),e.a(2,null);case 8:if(e.p=8,s)try{"mapped"===s.mapState&&s.unmap(),s.destroy()}catch(e){}return e.f(8);case 9:return e.a(2)}}),e,null,[[4,7,8,9],[2,3]])})))).apply(this,arguments)}function NO(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator,r=[],o=0,i=["rgba8unorm","bgra8unorm","rgba16float","rgba32float","r8unorm","rg8unorm","rgba8unorm-srgb","bgra8unorm-srgb"];o<i.length;o++){var a=i[o];try{var u=e.createTexture({size:{width:1,height:1},format:a,usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST});r.push(a),u.destroy()}catch(e){}}try{if(null!=n&&n.gpu){var s=n.gpu.getPreferredCanvasFormat();r.push("preferred:".concat(s))}}catch(e){}return r.join(",")}function UO(e,t){return e===t?0:e<t?-1:1}function GO(e,t,n){var r,o,i,a,u="",s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return PO(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)?PO(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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}}}}(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;c&&(u+=WO(c.buffer))}}catch(e){s.e(e)}finally{s.f()}return GE(u+((null===(r=t.info)||void 0===r?void 0:r.vendor)||"")+((null===(o=t.info)||void 0===o?void 0:o.architecture)||"")+((null===(i=t.info)||void 0===i?void 0:i.device)||"")+Array.from(t.features||[]).sort(UO).join(",")+n)}function WO(e){for(var t=new Uint8Array(e),n="",r=0;r<t.length;r+=8192){var o=t.subarray(r,Math.min(r+8192,t.length));n+=btoa(String.fromCharCode.apply(null,o))}return n}function QO(e){return QO="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},QO(e)}function HO(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return VO(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(VO(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,VO(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,VO(f,"constructor",c),VO(c,"constructor",s),s.displayName="GeneratorFunction",VO(c,o,"GeneratorFunction"),VO(f),VO(f,o,"Generator"),VO(f,r,(function(){return this})),VO(f,"toString",(function(){return"[object Generator]"})),(HO=function(){return{w:i,m:p}})()}function VO(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}VO=function(e,t,n,r){function i(t,n){VO(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},VO(e,t,n,r)}function zO(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function KO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qO(r.key),r)}}function qO(e){var t=function(e){if("object"!=QO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QO(t)?t:t+""}function JO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JO=function(){return!!e})()}function YO(e){return YO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YO(e)}function XO(e,t){return XO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XO(e,t)}var ZO={configKey:"isWebgpuFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!1,isRunning:!1,instance:null},$O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=YO(t),function(e,t){if(t&&("object"==QO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,JO()?Reflect.construct(t,n||[],YO(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._navigator=r.navigator||navigator,n._getAdapterDataHash=r.getAdapterDataHash||function(e){return function(){return hO.apply(this,arguments)}(e)},n._getGeometryHash=r.getGeometryHash||function(e){return function(){return MO.apply(this,arguments)}(e)},n._logger=r.logger||pe,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XO(e,t)}(t,e),function(e,t,n){return t&&KO(e.prototype,t),n&&KO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._runFingerprinting()}},{key:"_runFingerprinting",value:(n=HO().m((function e(){var t,n,r,o,i,a;return HO().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._getAdapterDataHash(this._navigator);case 1:return t=e.v,n=t.dataHash,r=t.identifierHash,e.n=2,this._getGeometryHash(this._navigator);case 2:o=e.v,this._logger.debug("WebGPU Data Hash:"+n),this._logger.debug("WebGPU Identifier Hash:"+r),this._logger.debug("WebGPU Geometry Hash:"+o),n&&(i={dataHash:n,identifierHash:r,geometryHash:o},this._dataQ.addToQueue("static_fields",["webgpu",i],!1)),e.n=4;break;case 3:e.p=3,a=e.v,this._logger.debug("Error in WebGPU fingerprinting:",a);case 4:return e.a(2)}}),e,this,[[0,3]])}
2)),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){zO(i,r,o,a,u,"next",e)}function u(e){zO(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return ZO}}]);var n,r}(Br);function eP(e){return eP="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},eP(e)}function tP(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return nP(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(nP(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,nP(f,"constructor",c),nP(c,"constructor",s),s.displayName="GeneratorFunction",nP(c,o,"GeneratorFunction"),nP(f),nP(f,o,"Generator"),nP(f,r,(function(){return this})),nP(f,"toString",(function(){return"[object Generator]"})),(tP=function(){return{w:i,m:p}})()}function nP(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nP=function(e,t,n,r){function i(t,n){nP(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},nP(e,t,n,r)}function rP(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function oP(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rP(i,r,o,a,u,"next",e)}function u(e){rP(i,r,o,a,u,"throw",e)}a(void 0)}))}}function iP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aP(r.key),r)}}function aP(e){var t=function(e){if("object"!=eP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eP(t)?t:t+""}function uP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uP=function(){return!!e})()}function sP(e){return sP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sP(e)}function cP(e,t){return cP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cP(e,t)}var lP=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=sP(t),function(e,t){if(t&&("object"==eP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uP()?Reflect.construct(t,n||[],sP(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n.peer=null,n.timeoutId=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cP(e,t)}(t,e),function(e,t,n){return t&&iP(e.prototype,t),n&&iP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(r=oP(tP().m((function e(){var t,n,r,o;return tP().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("Starting WebRTCDataCollector"),e.p=1,e.n=2,this.gatherIceCandidates();case 2:t=e.v,this.sendData(t),e.n=4;break;case 3:e.p=3,"NotSupportedError"===(o=e.v).name||"NotAllowedError"===o.name||null!==(n=o.message)&&void 0!==n&&n.includes("not supported")||null!==(r=o.message)&&void 0!==r&&r.includes("not allowed")?pe.debug("WebRTC not available:",o.name,o.message):pe.warn("WebRTC data collection failed:",o.name,o.message),this.sendData([]);case 4:return e.p=4,this.cleanup(),e.f(4);case 5:return e.a(2)}}),e,this,[[1,3,4,5]])}))),function(){return r.apply(this,arguments)})},{key:"gatherIceCandidates",value:(n=oP(tP().m((function e(){var t=this;return tP().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){var n=[],r=!1;t.peer=new RTCPeerConnection({iceServers:[{urls:"stun:stunserver.stunprotocol.org"},{urls:"stun:stun.l.google.com:19302"}]}),t.peer.onicecandidate=function(t){if(t.candidate){var o=t.candidate;n.push({address:String(o.address),port:String(o.port),tcpType:String(o.tcpType),type:String(o.type),protocol:String(o.protocol),url:String(o.url),relatedAddress:String(o.relatedAddress),relatedPort:String(o.relatedPort),candidate:String(o.candidate),sdpMid:String(o.sdpMid),sdpMLineIndex:String(o.sdpMLineIndex)}),pe.debug("ICE candidate found: ".concat(o.type," ").concat(o.protocol," ").concat(o.address,":").concat(o.port))}else pe.debug("ICE candidate gathering complete - no more candidates"),r=!0,e(n)},t.peer.onicecandidateerror=function(e){pe.warn("ICE candidate error:",e.errorText,e.errorCode)},t.peer.onicegatheringstatechange=function(){var o,i;pe.debug("ICE gathering state changed:",null===(o=t.peer)||void 0===o?void 0:o.iceGatheringState),"complete"===(null===(i=t.peer)||void 0===i?void 0:i.iceGatheringState)&&(r=!0,e(n))},t.timeoutId=setTimeout((function(){r||(pe.warn("ICE candidate gathering timed out after 900ms"),e(n))}
2),900),t.peer.createDataChannel("data"),t.peer.createOffer().then((function(e){return t.peer.setLocalDescription(e)})).catch((function(t){"NotSupportedError"===t.name||"NotAllowedError"===t.name||"InvalidStateError"===t.name?pe.debug("WebRTC offer creation not available:",t.name):pe.warn("Error creating WebRTC offer:",t.name,t.message),e(n)}))})))}),e)}))),function(){return n.apply(this,arguments)})},{key:"cleanup",value:function(){if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.peer){try{this.peer.close(),pe.debug("WebRTC peer connection closed")}catch(e){pe.warn("Error closing peer connection:",e)}this.peer=null}}},{key:"sendData",value:function(e){pe.info("Sending ".concat(e.length," ICE candidates")),this._dataQ.addToQueue("static_fields",["webrtc",e],!1)}}],[{key:"getDefaultSettings",value:function(){return{configKey:"isWebRTCFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!1,isRunning:!1,instance:null}}}]);var n,r}(Br),fP=lP;function pP(e){return pP="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},pP(e)}function dP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yP(r.key),r)}}function yP(e){var t=function(e){if("object"!=pP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pP(t)?t:t+""}function hP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hP=function(){return!!e})()}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function vP(e,t){return vP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vP(e,t)}var bP={configKey:"isSpeechVoicesFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!1,isRunning:!1,instance:null},gP=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=mP(t),function(e,t){if(t&&("object"==pP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hP()?Reflect.construct(t,n||[],mP(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vP(e,t)}(t,e),function(e,t,n){return t&&dP(e.prototype,t),n&&dP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){speechSynthesis.addEventListener("voiceschanged",this.processVoices.bind(this)),speechSynthesis.pending||this.processVoices()}},{key:"processVoices",value:function(){var e=speechSynthesis.getVoices().map((function(e){return{def:e.default,lang:e.lang,localService:e.localService,name:e.name,voiceURI:e.voiceURI}}));if(0!==e.length){var t=GE(JSON.stringify(e));pe.debug("SpeechVoices - Voice hash:"+t),this._dataQ.addToQueue("static_fields",["speech_voices",t],!1)}}}],[{key:"getDefaultSettings",value:function(){return bP}}])}(Br),_P=gP;function wP(e){return wP="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}
2,wP(e)}function SP(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return kP(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(kP(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,kP(f,"constructor",c),kP(c,"constructor",s),s.displayName="GeneratorFunction",kP(c,o,"GeneratorFunction"),kP(f),kP(f,o,"Generator"),kP(f,r,(function(){return this})),kP(f,"toString",(function(){return"[object Generator]"})),(SP=function(){return{w:i,m:p}})()}function kP(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}kP=function(e,t,n,r){function i(t,n){kP(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},kP(e,t,n,r)}function EP(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function OP(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){EP(i,r,o,a,u,"next",e)}function u(e){EP(i,r,o,a,u,"throw",e)}a(void 0)}))}}function PP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CP(r.key),r)}}function TP(e,t,n){return t&&PP(e.prototype,t),n&&PP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CP(e){var t=function(e){if("object"!=wP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wP(t)?t:t+""}function jP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var MP=TP((function e(t,n){jP(this,e),this.name=t,this.detection=n})),xP=function(){return TP((function e(t,n){jP(this,e),this._window=t,this._document=n,this.extensions=this._initializeExtensions(),this._detectionCache=new Map}),[{key:"_initializeExtensions",value:function(){return[new MP("Ad Blocker",this._detectAdBlocker.bind(this)),new MP("LastPass",this._detectLastPass.bind(this)),new MP("1Password",this._detect1Password.bind(this)),new MP("MetaMask",this._detectMetaMask.bind(this)),new MP("Coinbase Wallet",this._detectCoinbaseWallet.bind(this)),new MP("WalletConnect Wallet",this._detectWalletConnect.bind(this)),new MP("Trust Wallet",this._detectTrustWallet.bind(this)),new MP("Phantom Wallet",this._detectPhantomWallet.bind(this)),new MP("Binance Wallet",this._detectBinanceWallet.bind(this)),new MP("Brave Wallet",this._detectBraveWallet.bind(this)),new MP("Apple Pay",this._detectApplePay.bind(this)),new MP("Google Pay",this._detectGooglePay.bind(this)),new MP("React Developer Tools",this._detectReactDevTools.bind(this)),new MP("Vue.js DevTools",this._detectVueDevTools.bind(this)),new MP("Redux DevTools",this._detectReduxDevTools.bind(this)),new MP("Angular DevTools",this._detectAngularDevTools.bind(this)),new MP("Svelte DevTools",this._detectSvelteDevTools.bind(this)),new MP("Grammarly",this._detectGrammarly.bind(this)),new MP("Dark Reader",this._detectDarkReader.bind(this)),new MP("Super Dark Mode",this._detectSuperDarkMode.bind(this)),new MP("Adobe Acrobat",this._detectAdobeAcrobat.bind(this))]}},{key:"detectExtension",value:(k=OP(SP().m((function e(t){var n,r;return SP().w((function(e){for(;;)switch(e.p=e.n){case 0:if(!this._detectionCache.has(t.name)){e.n=1;break}return e.a(2,this._detectionCache.get(t.name));case 1:return e.p=1,e.n=2,t.detection();case 2:return n=e.v,this._detectionCache.set(t.name,n),e.a(2,n);case 3:return e.p=3,r=e.v,pe.debug("Error detecting ".concat(t.name,": ").concat(r.message)),e.a(2,!1)}}),e,this,[[1,3]])}
2))),function(e){return k.apply(this,arguments)})},{key:"scan",value:(S=OP(SP().m((function e(){var t,n,r=this;return SP().w((function(e){for(;;)switch(e.n){case 0:return t=this.extensions.map(function(){var e=OP(SP().m((function e(t){var n,o;return SP().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,r.detectExtension(t);case 1:return n=e.v,e.a(2,{name:t.name,detected:n});case 2:return e.p=2,o=e.v,pe.debug("Failed to detect ".concat(t.name,": ").concat(o.message)),e.a(2,{name:t.name,detected:!1})}}),e,null,[[0,2]])})));return function(t){return e.apply(this,arguments)}}()),e.n=1,Promise.all(t);case 1:return n=e.v,e.a(2,n.filter((function(e){return e.detected})).map((function(e){return e.name})))}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"_detectAdBlocker",value:(w=OP(SP().m((function e(){var t,n,r,o;return SP().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,(t=this._document.createElement("div")).className="pub_300x250 ad_unit adsbox",t.style.cssText="height:50px;width:50px;position:absolute;left:-9999px;top:-9999px;z-index:-1;opacity:0;display:block;",this._document.body.appendChild(t),n=this._window.getComputedStyle(t),r="none"===n.display||"hidden"===n.visibility||0===t.offsetHeight||0===t.offsetWidth,this._document.body.removeChild(t),e.a(2,r);case 1:return e.p=1,o=e.v,pe.debug("Ad blocker detection error: ".concat(o.message)),e.a(2,!1)}}),e,this,[[0,1]])}))),function(){return w.apply(this,arguments)})},{key:"_detectLastPass",value:(_=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,this._document.querySelectorAll("[data-lastpass-icon-root]").length>0)}),e,this)}))),function(){return _.apply(this,arguments)})},{key:"_detect1Password",value:(g=OP(SP().m((function e(){var t;return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,(null===(t=JSON.stringify(this._window._sentryDebugIds))||void 0===t?void 0:t.includes("aeblfdkhhhdcdjpifhhbdiojplfjncoa"))||!!this._document.querySelector(".onepassword-fill-button"))}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"_detectMetaMask",value:(b=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.ethereum&&this._window.ethereum.isMetaMask)}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"_detectCoinbaseWallet",value:(v=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.ethereum&&this._window.ethereum.isCoinbaseWallet)}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"_detectWalletConnect",value:(m=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.ethereum&&this._window.ethereum.isWalletConnect)}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"_detectTrustWallet",value:(h=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.ethereum&&this._window.ethereum.isTrust)}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_detectPhantomWallet",value:(y=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.solana&&this._window.solana.isPhantom)}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"_detectBinanceWallet",value:(d=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.BinanceChain&&!0===this._window.BinanceChain.isBinanceChain)}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"_detectBraveWallet",value:(p=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!(!this._window.navigator.brave||!this._window.navigator.brave.isBrave))}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"_detectApplePay",value:(f=OP(SP().m((function e(){var t;return SP().w((function(e){for(;;)switch(e.n){case 0:if(!(t=!!this._window.ApplePaySession&&"function"==typeof this._window.ApplePaySession.canMakePayments)){e.n=2;break}return e.n=1,this._window.ApplePaySession.canMakePayments();case 1:t=e.v;case 2:return e.a(2,t)}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"_detectGooglePay",value:(l=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!(this._window.google&&this._window.google.payments&&this._window.google.payments.api))}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"_detectReactDevTools",value:(c=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.__REACT_DEVTOOLS_GLOBAL_HOOK__)}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"_detectVueDevTools",value:(s=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.__VUE_DEVTOOLS_GLOBAL_HOOK__)}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"_detectReduxDevTools",value:(u=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.__REDUX_DEVTOOLS_EXTENSION__)}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"_detectAngularDevTools",value:(a=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.ng)}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"_detectSvelteDevTools",value:(i=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.__SVELTE_DEVTOOLS_GLOBAL_HOOK__)}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_detectGrammarly",value:(o=OP(SP().m((function e(){var t,n=this;return SP().w((function(e){for(;;)if(0===e.n)return t=["grammarly-extension","grammarly-desktop-integration","grammarly-mirror","grammarly-popups","grammarly-extension-vbars","grammarly-extension-vbar-cad","grammarly-extension-vbars-feedback-form"],e.a(2,t.some((function(e){return null!==n._document.querySelector(e)})))}),e)}))),function(){return o.apply(this,arguments)})},{key:"_detectDarkReader",value:(r=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,this._detectDarkModeExtension(50))}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_detectSuperDarkMode",value:(n=OP(SP().m((function e(){return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,this._detectDarkModeExtension(5))}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_detectDarkModeExtension",value:(t=OP(SP().m((function e(t){var n,r,o,i,a;return SP().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,(n=this._document.createElement("div")).style.cssText="background-color:#ffffff;width:100px;height:100px;position:absolute;top:-9999px;left:-9999px;z-index:-1;visibility:hidden;opacity:0;",this._document.body.appendChild(n),e.n=1,new Promise((function(e){return setTimeout(e,500)}));case 1:return r=this._window.getComputedStyle(n),o=r.backgroundColor,this._document.body.removeChild(n),i="rgb(0, 0, 0)"===o||function(){var e=o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return!!e&&(parseInt(e[1],10)+parseInt(e[2],10)+parseInt(e[3],10))/3<t}(),e.a(2,i);case 2:return e.p=2,a=e.v,pe.debug("Dark mode detection error: ".concat(a.message)),e.a(2,!1)}}),e,this,[[0,2]])}))),function(e){return t.apply(this,arguments)})},{key:"_detectAdobeAcrobat",value:(e=OP(SP().m((function e(){var t;return SP().w((function(e){for(;;)if(0===e.n)return e.a(2,"true"===(null===(t=this._window)||void 0===t||null===(t=t.sessionStorage)||void 0===t?void 0:t.getItem("adobeCleanFontAdded")))}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g,_,w,S,k}();function RP(e){return RP="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},RP(e)}function AP(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return BP(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(BP(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,BP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,BP(f,"constructor",c),BP(c,"constructor",s),s.displayName="GeneratorFunction",BP(c,o,"GeneratorFunction"),BP(f),BP(f,o,"Generator"),BP(f,r,(function(){return this})),BP(f,"toString",(function(){return"[object Generator]"})),(AP=function(){return{w:i,m:p}})()}function BP(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}BP=function(e,t,n,r){function i(t,n){BP(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},BP(e,t,n,r)}function DP(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function IP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LP(r.key),r)}}function LP(e){var t=function(e){if("object"!=RP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RP(t)?t:t+""}function FP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FP=function(){return!!e})()}function NP(e){return NP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NP(e)}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UP(e,t)}var GP={configKey:"isBrowserExtensionsFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},WP=function(e){function t(e,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=NP(t),function(e,t){if(t&&("object"==RP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,FP()?Reflect.construct(t,n||[],NP(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,i._domUtils=r,i._utils=n,i._dataQueue=o,i._regularExtensionsScanner=a||new xP(window,document),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UP(e,t)}(t,e),function(e,t,n){return t&&IP(e.prototype,t),n&&IP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=AP().m((function e(){var t,n;return AP().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._regularExtensionsScanner.scan();case 1:(t=e.v).length>0?(pe.info("[BrowserExtensionsDomCollector] Detected browser extensions: ".concat(t.join(", "))),this._sendData(t)):(pe.info("[BrowserExtensionsDomCollector] N
2o browser extensions detected"),this._sendData([])),e.n=3;break;case 2:e.p=2,n=e.v,pe.error("[BrowserExtensionsDomCollector] Failed to detect browser extensions: ".concat(n.message)),this._sendData([]);case 3:return e.a(2)}}),e,this,[[0,2]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){DP(i,r,o,a,u,"next",e)}function u(e){DP(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})},{key:"_sendData",value:function(e){this._dataQueue.addToQueue("static_fields",["browser_extensions",["v1",e]],!1)}}],[{key:"getDefaultSettings",value:function(){return GP}}]);var n,r}(Br),QP=["MShsNjIrMCExHSYnIC8nHSclIzJtKyopKi4tLiYgLCwuKywsLCEnLS8yKSctLSgsLC8gKiVtbXgsLSsxLCc2OidvJy8tMCoh","Li82KmwwJzUnKzRtKCMpLyYsKyQnLiEuJSEyKCMhMiArLCwsLyAsJisjJCdtbXgsLSsxLCc2OidvJy8tMCoh"];function HP(e){return HP="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},HP(e)}function VP(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return zP(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(zP(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,zP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,zP(f,"constructor",c),zP(c,"constructor",s),s.displayName="GeneratorFunction",zP(c,o,"GeneratorFunction"),zP(f),zP(f,o,"Generator"),zP(f,r,(function(){return this})),zP(f,"toString",(function(){return"[object Generator]"})),(VP=function(){return{w:i,m:p}})()}function zP(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zP=function(e,t,n,r){function i(t,n){zP(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},zP(e,t,n,r)}function KP(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function qP(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){KP(i,r,o,a,u,"next",e)}function u(e){KP(i,r,o,a,u,"throw",e)}a(void 0)}))}}function JP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YP(r.key),r)}}function YP(e){var t=function(e){if("object"!=HP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HP(t)?t:t+""}var XP=function(){return function(e,t){return t&&JP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._window=t,this.extensions=QP.map((function(e){return function(e){try{return atob(e).split("").map((function(e){return String.fromCharCode(66^e.charCodeAt(0))})).join("").split("").reverse().join("")}catch(e){return""}}(e)}))}),[{key:"_extractExtensionId",value:function(e){var t=e.match(/:\/\/([^\/]+)/);return t?t[1]:null}},{key:"detectExtension",value:(t=qP(VP().m((function e(t){var n,r,o,i,a,u,s,c,l;return VP().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n=this._extractExtensionId(t)){e.n=1;break}return pe.debug("[BrowserExtensionsUrlScanner] Invalid extension URL format: ".concat(t)),e.a(2,{detected:!1,id:null,timestamp:null});case 1:return e.p=1,e.n=2,fetch(t,{method:"HEAD"});case 2:return r=e.v,o=r.ok,i=r.headers.get("last-modified"),a=null,i&&(u=new Date(i),a=isNaN(u.getTime())?null:u.getTime()),s={detected:o,id:n,timestamp:a},e.a(2,s);case 3:return e.p=3,l=e.v,pe.debug("[BrowserExtensionsUrlScanner] Error detecting extension via URL ".concat(t,": ").concat(l.message)),c={detected:!1,id:n,timestamp:null},e.a(2,c)}}),e,this,[[1,3]])}
2))),function(e){return t.apply(this,arguments)})},{key:"scan",value:(e=qP(VP().m((function e(){var t,n,r=this;return VP().w((function(e){for(;;)switch(e.n){case 0:return t=this.extensions.map(function(){var e=qP(VP().m((function e(t){var n,o;return VP().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,r.detectExtension(t);case 1:return n=e.v,e.a(2,n);case 2:return e.p=2,o=e.v,pe.debug("[BrowserExtensionsUrlScanner] Failed to detect extension via URL ".concat(t,": ").concat(o.message)),e.a(2,{detected:!1,id:null,timestamp:null})}}),e,null,[[0,2]])})));return function(t){return e.apply(this,arguments)}}()),e.n=1,Promise.all(t);case 1:return n=e.v,e.a(2,n.filter((function(e){return e.detected&&null!==e.id})).map((function(e){return{id:e.id,timestamp:e.timestamp}})))}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t}();function ZP(e){return ZP="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},ZP(e)}function $P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tT(r.key),r)}}function tT(e){var t=function(e){if("object"!=ZP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZP(t)?t:t+""}function nT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nT=function(){return!!e})()}function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rT(e)}function oT(e,t){return oT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oT(e,t)}var iT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=rT(t),function(e,t){if(t&&("object"==ZP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nT()?Reflect.construct(t,n||[],rT(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.extensions=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oT(e,t)}(t,e),function(e,t){return t&&eT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){Array.isArray(e)&&this._eachExtensionIsValid(e)||pe.warn("wrong type in BrowserExtensionsUrlContract parameters. extensions : {expected: Array<{id: string, timestamp: number|null}>, received: ".concat(e,"}"))}},{key:"_eachExtensionIsValid",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $P(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)?$P(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("object"!==ZP(r)||null===r)return!1;if("string"!=typeof r.id)return!1;if(null!==r.timestamp&&"number"!=typeof r.timestamp)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),["v1",this.extensions]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&2===e[1].length&&"string"==typeof e[1][0]&&Array.isArray(e[1][1])||pe.warn("BrowserExtensionsUrl - Contract verification failed")}},{key:"getName",value:function(){return"browser_extensions_url"}}])}(im);function aT(e){return aT="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},aT(e)}function uT(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return sT(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(sT(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,sT(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,sT(f,"constructor",c),sT(c,"constructor",s),s.displayName="GeneratorFunction",sT(c,o,"GeneratorFunction"),sT(f),sT(f,o,"Generator"),sT(f,r,(function(){return this})),sT(f,"toString",(function(){return"[object Generator]"})),(uT=function(){return{w:i,m:p}})()}function sT(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}sT=function(e,t,n,r){function i(t,n){sT(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},sT(e,t,n,r)}function cT(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function lT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fT(r.key),r)}}function fT(e){var t=function(e){if("object"!=aT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=aT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==aT(t)?t:t+""}function pT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pT=function(){return!!e})()}function dT(e){return dT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dT(e)}function yT(e,t){return yT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yT(e,t)}var hT={configKey:"isBrowserExtensionsUrlFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},mT=function(e){function t(e,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=dT(t),function(e,t){if(t&&("object"==aT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pT()?Reflect.construct(t,n||[],dT(e).constructor):t.apply(e,n))}(this,t))._configurationRepository=e,i._domUtils=r,i._utils=n,i._devDebugDataQueue=o,i._urlExtensionsScanner=a||new XP(window),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yT(e,t)}(t,e),function(e,t,n){return t&&lT(e.prototype,t),n&&lT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=uT().m((function e(){var t,n;return uT().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._urlExtensionsScanner.scan();case 1:t=e.v,pe.debug("[BrowserExtensionsUrlCollector] Browser extensions URL scan result: ".concat(JSON.stringify(t))),this._sendData(t),e.n=3;break;case 2:e.p=2,n=e.v,pe.error("[BrowserExtensionsUrlCollector] Failed to detect browser extensions via URL: ".concat(n.message)),this._sendData([]);case 3:return e.a(2)}}),e,this,[[0,2]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){cT(i,r,o,a,u,"next",e)}function u(e){cT(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})},{key:"_sendData",value:function(e){var t=new iT(e).buildQueueMessage();this._devDebugDataQueue.addToQueue("static_fields",t,!1)}}],[{key:"getDefaultSettings",value:function(){return hT}}]);var n,r}(Br);function vT(e){return vT="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},vT(e)}function bT(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return gT(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(gT(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,gT(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,gT(f,"constructor",c),gT(c,"constructor",s),s.displayName="GeneratorFunction",gT(c,o,"GeneratorFunction"),gT(f),gT(f,o,"Generator"),gT(f,r,(function(){return this})),gT(f,"toString",(function(){return"[object Generator]"})),(bT=function(){return{w:i,m:p}})()}function gT(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}gT=function(e,t,n,r){function i(t,n){gT(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},gT(e,t,n,r)}function _T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wT(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)?wT(e,t):void 0}}(e,t)||function(){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 wT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ST(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function kT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ET(r.key),r)}}function ET(e){var t=function(e){if("object"!=vT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vT(t)?t:t+""}function OT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OT=function(){return!!e})()}function PT(e){return PT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PT(e)}function TT(e,t){return TT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TT(e,t)}var CT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=PT(t),function(e,t){if(t&&("object"==vT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,OT()?Reflect.construct(t,n||[],PT(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n.drmData={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TT(e,t)}(t,e),function(e,t,n){return t&&kT(e.prototype,t),n&&kT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"hashDRMData",value:function(e){return GE(JSON.stringify(e))}},{key:"startFeature",value:(n=bT().m((function e(){var t,n,r,o,i,a,u,s,c;return bT().w((function(e){for(;;)switch(e.p=e.n){case 0:t={widevine:"com.widevine.alpha",playready:"com.microsoft.playready",fairplay:"com.apple.fairplay",clearkey:"org.w3.clearkey"},n=[{initDataTypes:["cenc"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"'}]}],r=0,o=Object.entries(t);case 1:if(!(r<o.length)){e.n=6;break}return i=_T(o[r],2),a=i[0],u=i[1],e.p=2,e.n=3,navigator.requestMediaKeySystemAccess(u,n
2);case 3:s=e.v,this.drmData[a]={supported:!0,keySystem:u,sessionTypes:s.getConfiguration().sessionTypes,videoCapabilities:s.getConfiguration().videoCapabilities,audioCapabilities:s.getConfiguration().audioCapabilities},e.n=5;break;case 4:e.p=4,e.v,this.drmData[a]={supported:!1};case 5:r++,e.n=1;break;case 6:c=this.hashDRMData(this.drmData),this.sendData(this.drmData),pe.debug("DRMDataCollector - DRM Data"),pe.debug(this.drmData),pe.debug(c);case 7:return e.a(2)}}),e,this,[[2,4]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){ST(i,r,o,a,u,"next",e)}function u(e){ST(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})},{key:"sendData",value:function(e){this._dataQ.addToQueue("static_fields",["drm",e],!1)}}],[{key:"getDefaultSettings",value:function(){return{configKey:"isDRMFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null}}}]);var n,r}(Br),jT=CT;function MT(e){return MT="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},MT(e)}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RT(r.key),r)}}function RT(e){var t=function(e){if("object"!=MT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=MT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==MT(t)?t:t+""}function AT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AT=function(){return!!e})()}function BT(e){return BT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BT(e)}function DT(e,t){return DT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DT(e,t)}var IT=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=BT(t),function(e,t){if(t&&("object"==MT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,AT()?Reflect.construct(t,n||[],BT(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n),r.usage=e,r.quota=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DT(e,t)}(t,e),function(e,t){return t&&xT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t){"number"==typeof e&&"number"==typeof t||pe.warn("wrong type in StorageEstimate parameters. usage : {expected: number, received: ".concat(MT(e),"}, quota : {expected: number, received: ").concat(MT(t),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),[this.usage,this.quota]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&2===e[1].length||pe.warn("StorageEstimate - Contract verification failed")}},{key:"getName",value:function(){return"storage_estimate"}}])}(im);function LT(e){return LT="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},LT(e)}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NT(r.key),r)}}function NT(e){var t=function(e){if("object"!=LT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LT(t)?t:t+""}function UT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UT=function(){return!!e})()}function GT(e){return GT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GT(e)}function WT(e,t){return WT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WT(e,t)}var QT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=GT(t),function(e,t){if(t&&("object"==LT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,UT()?Reflect.construct(t,n||[],GT(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.directoryName=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WT(e,t)}(t,e),function(e,t){return t&&FT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn("wrong type in StorageDirectory parameters. directoryName : {expected: string, received: ".concat(LT(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.directoryName];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("StorageDirectory - Contract verification failed")}},{key:"getName",value:function(){return"storage_directory"}}])}(im);function HT(e){return HT="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},HT(e)}function VT(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return zT(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(zT(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,zT(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,zT(f,"constructor",c),zT(c,"constructor",s),s.displayName="GeneratorFunction",zT(c,o,"GeneratorFunction"),zT(f),zT(f,o,"Generator"),zT(f,r,(function(){return this})),zT(f,"toString",(function(){return"[object Generator]"})),(VT=function(){return{w:i,m:p}})()}function zT(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zT=function(e,t,n,r){function i(t,n){zT(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},zT(e,t,n,r)}function KT(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function qT(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){KT(i,r,o,a,u,"next",e)}function u(e){KT(i,r,o,a,u,"throw",e)}a(void 0)}))}}function JT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YT(r.key),r)}}function YT(e){var t=function(e){if("object"!=HT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HT(t)?t:t+""}function XT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XT=function(){return!!e})()}function ZT(e){return ZT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZT(e)}function $T(e,t){return $T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$T(e,t)}var eC={configKey:"isStorageFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},tC=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ZT(t),function(e,t){if(t&&("object"==HT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,XT()?Reflect.construct(t,n||[],ZT(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._storageManager=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$T(e,t)}(t,e),function(e,t,n){return t&&JT(e.prototype,t),n&&JT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(a=qT(VT().m((function e(){var t;return VT().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("Starting Storage Feature"),this._initializeStorageManager(),e.p=1,e.n=2,this._collectStorageEstimateInfo();case 2:return e.n=3,this._collectStorageDirectoryInfo();case 3:e.n=5;break;case 4:e.p=4,t=e.v,pe.error("Error in Storage Feature: ".concat(t.message||t));case 5:return e.a(2)}}),e,this,[[1,4]])}))),function(){return a.apply(this,arguments)})},{key:"_initializeStorageManager",value:function(){this._storageManager||(this._storageManager=this.getStorageManager())}},{key:"getStorageManager",value:function(){return"undefined"!=typeof navigator&&navigator.storage?navigator.storage:null}},{key:"_collectStorageEstimateInfo",value:(i=qT(VT().m((function e(){var t,n,r,o;return VT().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("Collecting storage estimate properties"),e.p=1,e.n=2,this._getStorageEstimateInfo();case 2:t=e.v,this._isValidStorageEstimate(t)?(n=new IT(t.usage,t.quota),r=n.buildQueueMessage(),this._dataQ.addToQueue("static_fields",r,!1)):pe.warn("Invalid storage estimate data received"),e.n=4;break;case 3:throw e.p=3,o=e.v,pe.error("Error collecting storage estimate information: ".concat(o.message||o)),o;case 4:return e.a(2)}}),e,this,[[1,3]])}
2))),function(){return i.apply(this,arguments)})},{key:"_isValidStorageEstimate",value:function(e){return e&&"number"==typeof e.usage&&"number"==typeof e.quota&&e.usage>=0&&e.quota>=0}},{key:"_getStorageEstimateInfo",value:(o=qT(VT().m((function e(){var t,n;return VT().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,this._storageManager){e.n=1;break}throw pe.error("StorageManager is not initialized or unavailable."),new Error("StorageManager is not initialized or unavailable.");case 1:return e.n=2,this._storageManager.estimate();case 2:return t=e.v,e.a(2,{quota:t.quota,usage:t.usage});case 3:throw e.p=3,n=e.v,pe.error("Failed to get storage estimate: ".concat(n.message||n)),n;case 4:return e.a(2)}}),e,this,[[0,3]])}))),function(){return o.apply(this,arguments)})},{key:"_collectStorageDirectoryInfo",value:(r=qT(VT().m((function e(){var t,n,r,o;return VT().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("Collecting storage directory properties"),e.p=1,e.n=2,this._getStorageDirectoryInfo();case 2:t=e.v,this._isValidDirectoryName(t)?(n=new QT(t),r=n.buildQueueMessage(),this._dataQ.addToQueue("static_fields",r,!1)):pe.warn("Invalid storage directory data received"),e.n=4;break;case 3:throw e.p=3,o=e.v,pe.error("Error collecting storage directory information: ".concat(o.message||o)),o;case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(){return r.apply(this,arguments)})},{key:"_isValidDirectoryName",value:function(e){return void 0!==e&&"string"==typeof e}},{key:"_getStorageDirectoryInfo",value:(n=qT(VT().m((function e(){var t,n;return VT().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,this._storageManager){e.n=1;break}throw pe.error("StorageManager is not initialized or unavailable."),new Error("StorageManager is not initialized or unavailable.");case 1:return e.n=2,this._storageManager.getDirectory();case 2:return t=e.v,e.a(2,t.name);case 3:throw e.p=3,n=e.v,pe.error("Failed to get storage directory: ".concat(n.message||n)),n;case 4:return e.a(2)}}),e,this,[[0,3]])}))),function(){return n.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return eC}}]);var n,r,o,i,a}(Br);function nC(e){return nC="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},nC(e)}function rC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oC(r.key),r)}}function oC(e){var t=function(e){if("object"!=nC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nC(t)?t:t+""}function iC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iC=function(){return!!e})()}function aC(e){return aC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aC(e)}function uC(e,t){return uC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uC(e,t)}var sC=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=aC(t),function(e,t){if(t&&("object"==nC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,iC()?Reflect.construct(t,n||[],aC(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.keyboardLayout=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uC(e,t)}(t,e),function(e,t){return t&&rC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"string"==typeof e||pe.warn("wrong type in KeyboardLayout parameters. keyboardLayout : {expected: string, received: ".concat(nC(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.keyboardLayout];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"string"==typeof e[1]||pe.warn("KeyboardLayout - Contract verification failed")}},{key:"getName",value:function(){return"keyboard_layout"}}])}(im);function cC(e){return cC="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},cC(e)}function lC(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return fC(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
vendor: 2,370 bytes, line 2
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(fC(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,fC(f,"constructor",c),fC(c,"constructor",s),s.displayName="GeneratorFunction",fC(c,o,"GeneratorFunction"),fC(f),fC(f,o,"Generator"),fC(f,r,(function(){return this})),fC(f,"toString",(function(){return"[object Generator]"})),(lC=function(){return{w:i,m:p}})()}function fC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fC=function(e,t,n,r){function i(t,n){fC(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fC(e,t,n,r)}function pC(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function dC(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pC(i,r,o,a,u,"next",e)}function u(e){pC(i,r,o,a,u,"throw",e)}a(void 0)}))}}function yC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hC(r.key),r)}}function hC(e){var t=function(e){if("object"!=cC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cC(t)?t:t+""}function mC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mC=function(){return!!e})()}
2function vC(e){return vC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vC(e)}function bC(e,t){return bC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bC(e,t)}var gC={configKey:"isKeyboardLayoutFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},_C=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=vC(t),function(e,t){if(t&&("object"==cC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mC()?Reflect.construct(t,n||[],vC(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bC(e,t)}(t,e),function(e,t,n){return t&&yC(e.prototype,t),n&&yC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(o=dC(lC().m((function e(){return lC().w((function(e){for(;;)switch(e.n){case 0:return pe.info("Starting Keyboard Layout Feature"),e.n=1,this._collectKeyboardLayoutInfo();case 1:return e.a(2)}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getKeyboard",value:function(){return"undefined"!=typeof navigator&&navigator.keyboard?navigator.keyboard:null}},{key:"_collectKeyboardLayoutInfo",value:(r=dC(lC().m((function e(){var t,n,r,o;return lC().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("Collecting keyboard layout properties"),e.p=1,e.n=2,this._getKeyboardLayoutInfo();case 2:t=e.v,n=new sC(t),r=n.buildQueueMessage(),this._dataQ.addToQueue("static_fields",r,!1),e.n=4;break;case 3:e.p=3,o=e.v,pe.error("Error collecting keyboard layout information: ".concat(o));case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(){return r.apply(this,arguments)})},{key:"_getKeyboardLayoutInfo",value:(n=dC(lC().m((function e(){var t,n,r;return lC().w((function(e){for(;;)switch(e.n){case 0:if(t=this.getKeyboard()){e.n=1;break}throw Error("Could not find keyboard layout");case 1:return e.n=2,t.getLayoutMap();case 2:return n=e.v,r=Array.from(n.values()).join(""),e.a(2,GE(r))}}),e,this)}))),function(){return n.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return gC}}]);var n,r,o}(Br);function wC(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return SC(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(SC(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,SC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,SC(f,"constructor",c),SC(c,"constructor",s),s.displayName="GeneratorFunction",SC(c,o,"GeneratorFunction"),SC(f),SC(f,o,"Generator"),SC(f,r,(function(){return this})),SC(f,"toString",(function(){return"[object Generator]"})),(wC=function(){return{w:i,m:p}})()}function SC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}SC=function(e,t,n,r){function i(t,n){SC(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},SC(e,t,n,r)}function kC(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function EC(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){kC(i,r,o,a,u,"next",e)}function u(e){kC(i,r,o,a,u,"throw",e)}a(void 0)}))}}function OC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cd__frame__tmp",n=e.createElement("iframe");n.id=t,n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.width="0",n.style.height="0",n.style.border="0",n.style.opacity="0",n.style.pointerEvents="none",n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1");try{n.setAttribute("inert","")}catch(e){pe.warn("TypographyFrameUtils: failed to set inert attribute on iframe",e)}return n.srcdoc='<!doctype html><meta charset="utf-8"><title>blank</title>',n}function PC(e){return TC.apply(this,arguments)}function TC(){return(TC=EC(wC().m((function e(t){var n;return wC().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!t.fonts||!t.fonts.ready||"function"!=typeof t.fonts.ready.then){e.n=1;break}return e.n=1,t.fonts.ready;case 1:e.n=3;break;case 2:e.p=2,n=e.v,pe.warn("TypographyFrameUtils: waiting for document.fonts.ready failed",n);case 3:return e.a(2)}}),e,null,[[0,2]])})))).apply(this,arguments)}function CC(e){return new Promise((function(t){return(e.requestAnimationFrame||e.setTimeout)(t,16)}))}function jC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.125,n=Number.isFinite(t)&&t>0,r=function(e){return"number"==typeof e&&n?Math.round(e/t)*t:e};
2return{x:r(e.x),y:r(e.y),left:r(e.left),top:r(e.top),right:r(e.right),bottom:r(e.bottom),width:r(e.width),height:r(e.height),font:e.font||""}}function MC(e){return xC.apply(this,arguments)}function xC(){return(xC=EC(wC().m((function e(t){var n,r;return wC().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,null===(n=t.fonts)||void 0===n||null===(n=n.ready)||void 0===n||!n.then){e.n=1;break}return e.n=1,t.fonts.ready;case 1:e.n=3;break;case 2:e.p=2,r=e.v,pe.warn("TypographyFrameUtils: waiting for hostDocument.fonts.ready failed",r);case 3:return e.a(2)}}),e,null,[[0,2]])})))).apply(this,arguments)}function RC(e,t){return AC.apply(this,arguments)}function AC(){return AC=EC(wC().m((function e(t,n){var r;return wC().w((function(e){for(;;)switch(e.n){case 0:return r=new Promise((function(e,t){var r=function(){try{n.onload=null,n.onerror=null}catch(e){pe.warn("TypographyFrameUtils: iframe cleanup failed",e)}};n.onload=function(){r(),e()},n.onerror=function(e){r(),t(e)}})),(t.body||t.documentElement).appendChild(n),e.n=1,r;case 1:return e.a(2)}}),e)}))),AC.apply(this,arguments)}function BC(e){return{w:e.contentWindow,d:e.contentDocument}}function DC(e,t,n){!function(e){if(!e.body){var t=e.createElement("body");e.documentElement.appendChild(t)}}(e);var r=n({doc:e,win:t});return e.body.appendChild(r),r}function IC(e){return Number.isFinite(e.width)&&e.width>0&&Number.isFinite(e.height)&&e.height>0}function LC(e,t,n,r){var o=Math.abs(e.width-t.width),i=Math.abs(e.height-t.height),a=Math.max(n,(e.width||0)*r),u=Math.max(n,(e.height||0)*r);return o<=a&&i<=u}function FC(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.width||0,r=e.height||0,o=e.left||0,i=e.top||0,a="right"in e?e.right:o+n,u="bottom"in e?e.bottom:i+r;return{x:"x"in e?e.x:o,y:"y"in e?e.y:i,left:o,top:i,right:a,bottom:u,width:n,height:r,font:t||""}}(e.getBoundingClientRect(),t.getComputedStyle(e,null).getPropertyValue("font-family")||"")}function NC(e,t,n){return UC.apply(this,arguments)}function UC(){return(UC=EC(wC().m((function e(t,n,r){var o,i,a,u,s,c,l,f,p,d,y;return wC().w((function(e){for(;;)switch(e.n){case 0:o=r.maxFrames,i=r.minSamples,a=r.stableHitsTarget,u=r.absTolPx,s=r.relTol,c=0,l=0,f=null,p=null,d=0;case 1:if(!(d<o)){e.n=5;break}return e.n=2,CC(n);case 2:if(!IC(y=FC(t,n))){e.n=3;break}
2if(c++,f&&LC(y,f,u,s)?l++:l=0,f=y,!(c>=i&&l>=a)){e.n=3;break}return e.a(2,y);case 3:p=y;case 4:d++,e.n=1;break;case 5:return e.a(2,f||p)}}),e)})))).apply(this,arguments)}function GC(e){try{e&&e.remove()}catch(e){pe.warn("TypographyFrameUtils: element.remove() failed",e)}}function WC(e){return QC.apply(this,arguments)}function QC(){return(QC=EC(wC().m((function e(t){var n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g,_,w,S;return wC().w((function(e){for(;;)switch(e.p=e.n){case 0:return t.hostWindow,n=t.hostDocument,r=t.frameId,o=t.buildNode,i=t.maxFrames,a=void 0===i?12:i,u=t.minSamples,s=void 0===u?3:u,c=t.stableHitsTarget,l=void 0===c?2:c,f=t.absTolPx,p=void 0===f?.25:f,d=t.relTol,y=void 0===d?5e-4:d,h=t.quantStep,m=void 0===h?.125:h,e.n=1,MC(n);case 1:return v=OC(n,r),e.p=2,e.n=3,RC(n,v);case 3:return _=BC(v),w=_.w,S=_.d,b=DC(S,w,o),e.n=4,PC(S);case 4:return e.n=5,NC(b,w,{maxFrames:a,minSamples:s,stableHitsTarget:l,absTolPx:p,relTol:y});case 5:return g=e.v,e.a(2,jC(g,m));case 6:return e.p=6,GC(b),GC(v),e.f(6);case 7:return e.a(2)}}),e,null,[[2,,6,7]])})))).apply(this,arguments)}function HC(e){return HC="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},HC(e)}function VC(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return zC(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(zC(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,zC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,zC(f,"constructor",c),zC(c,"constructor",s),s.displayName="GeneratorFunction",zC(c,o,"GeneratorFunction"),zC(f),zC(f,o,"Generator"),zC(f,r,(function(){return this})),zC(f,"toString",(function(){return"[object Generator]"})),(VC=function(){return{w:i,m:p}})()}function zC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zC=function(e,t,n,r){function i(t,n){zC(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},zC(e,t,n,r)}function KC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KC(Object(n),!0).forEach((function(t){JC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JC(e,t,n){return(t=ZC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YC(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function XC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZC(r.key),r)}}function ZC(e){var t=function(e){if("object"!=HC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HC(t)?t:t+""}function $C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($C=function(){return!!e})()}
2function ej(e){return ej=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ej(e)}function tj(e,t){return tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tj(e,t)}var nj={configKey:"isFontEmojiFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},rj=Object.freeze({whiteSpace:"nowrap",letterSpacing:"normal",lineHeight:"normal",textTransform:"none",fontVariant:"normal",fontFeatureSettings:"normal",fontKerning:"auto",direction:"ltr",writingMode:"horizontal-tb",fontSize:"16px"}),oj=Object.freeze({maxFrames:12,minSamples:3,stableHitsTarget:2,absTolPx:0,relTol:0,quantStep:0}),ij=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.g.window,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.g.document;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ej(t),function(e,t){if(t&&("object"==HC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$C()?Reflect.construct(t,n||[],ej(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._window=r,n._document=o,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tj(e,t)}(t,e),function(e,t,n){return t&&XC(e.prototype,t),n&&XC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_buildEmojiString",value:function(){return Array.from({length:80},(function(e,t){return String.fromCodePoint(128512+t)})).join("").normalize("NFC")}},{key:"_buildSpan",value:function(e,t,n){var r=e.createElement("span");try{r.style.all="initial"}catch(e){pe.warn("applying span.style.all failed",e)}return Object.assign(r.style,n),r.textContent=t,r}},{key:"startFeature",value:(n=VC().m((function e(){var t,n,r=this;return VC().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,WC(qC({hostWindow:this._window,hostDocument:this._document,frameId:"cd__frame__font_emoji",buildNode:function(e){var t=e.doc;return r._buildSpan(t,r._buildEmojiString(),rj)}},oj));case 1:(t=e.v)&&this._dataQ.addToQueue("static_fields",["font_emoji_info",t],!1),e.n=3;break;case 2:e.p=2,n=e.v,pe.error("Failed to collect emoji font information",n);case 3:return e.a(2)}}),e,this,[[0,2]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){YC(i,r,o,a,u,"next",e)}function u(e){YC(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return nj}}]);var n,r}(Br);function aj(e){return aj="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},aj(e)}function uj(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return sj(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(sj(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,sj(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,sj(f,"constructor",c),sj(c,"constructor",s),s.displayName="GeneratorFunction",sj(c,o,"GeneratorFunction"),sj(f),sj(f,o,"Generator"),sj(f,r,(function(){return this})),sj(f,"toString",(function(){return"[object Generator]"})),(uj=function(){return{w:i,m:p}})()}function sj(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}sj=function(e,t,n,r){function i(t,n){sj(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},sj(e,t,n,r)}function cj(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function lj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fj(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)?fj(e,t):void 0}}(e,t)||function(){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 fj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dj(r.key),r)}}function dj(e){var t=function(e){if("object"!=aj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=aj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==aj(t)?t:t+""}function yj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yj=function(){return!!e})()}function hj(e){return hj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hj(e)}function mj(e,t){return mj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mj(e,t)}var vj={configKey:"isFontMathFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},bj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.g.window,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.g.document;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=hj(t),function(e,t){if(t&&("object"==aj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yj()?Reflect.construct(t,n||[],hj(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._window=r,n._document=o,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mj(e,t)}(t,e),function(e,t,n){return t&&pj(e.prototype,t),n&&pj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_buildMathML",value:function(e){var t="http://www.w3.org/1998/Math/MathML",n=e.createElementNS(t,"math"),r=e.createElementNS(t,"mrow"),o=e.createElementNS(t,"munderover"),i=e.createElementNS(t,"mmultiscripts"),a=e.createElementNS(t,"mo");a.textContent="\u220f",i.appendChild(a),o.appendChild(i);for(var u=0,s=[["\ud835\udd08","\u03c5","\u03c4","\u03c1","\u03c3"],["\ud835\udd07","\u03c0","\u03bf","\u03bd","\u03be"],["\ud835\udd04","\u03b4","\u03b3","\u03b1","\u03b2"],["\ud835\udd05","\u03b8","\u03b7","\u03b5","\u03b6"],["\ud835\udd09","\u03c9","\u03c8","\u03d5","\u03c7"],["\u212d","\u03bc","\u03bb","\u03b9","\u03ba"]];u<s.length;u++){var c=lj(s[u],5),l=c[0],f=c[1],p=c[2],d=c[3],y=c[4],h=e.createElementNS(t,"mmultiscripts"),m=e.createElementNS(t,"mi");m.textContent=l;var v=e.createElementNS(t,"mi");v.textContent=f;var b=e.createElementNS(t,"mi");b.textContent=p;var g=e.createElementNS(t,"mprescripts"),_=e.createElementNS(t,"mi");_.textContent=d;var w=e.createElementNS(t,"mi");w.textContent=y,h.append(m,v,b,g,_,w),o.appendChild(h)}r.appendChild(o),n.appendChild(r);try{n.style.all="initial"}catch(e){pe.warn("FontMathFeature: applying math.style.all failed",e)}return n.style.whiteSpace="nowrap",n.style.display="inline-block",n.style.letterSpacing="normal",n.style.lineHeight="normal",n.style.textTransform="none",n.style.fontVariant="normal",n.style.fontFeatureSettings="normal",n.style.fontKerning="auto",n.style.direction="ltr",n.style.writingMode="horizontal-tb",n.style.fontSize="16px",n}},{key:"startFeature",value:(n=uj().m((function e(){var t,n,r=this;return uj().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,WC({hostWindow:this._window,hostDocument:this._document,frameId:"cd__frame__font_math",buildNode:function(e){var t=e.doc;return r._buildMathML(t)},maxFrames:12,minSamples:3,stableHitsTarget:2,absTolPx:0,relTol:0,quantStep:0});case 1:(t=e.v)&&this._dataQ.addToQueue("static_fields",["font_math_info",t],!1),e.n=3;break;case 2:e.p=2,n=e.v,pe.error("Failed to collect math font information",n);case 3:return e.a(2)}}),e,this,[[0,2]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){cj(i,r,o,a,u,"next",e)}function u(e){cj(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return vj}}]);var n,r}(Br);function gj(e){return gj="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},gj(e)}function _j(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return wj(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(wj(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,wj(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,wj(f,"constructor",c),wj(c,"constructor",s),s.displayName="GeneratorFunction",wj(c,o,"GeneratorFunction"),wj(f),wj(f,o,"Generator"),wj(f,r,(function(){return this})),wj(f,"toString",(function(){return"[object Generator]"})),(_j=function(){return{w:i,m:p}})()}function wj(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}wj=function(e,t,n,r){function i(t,n){wj(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},wj(e,t,n,r)}function Sj(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function kj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ej(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)?Ej(e,t):void 0}}(e,t)||function(){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 Ej(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pj(r.key),r)}}function Pj(e){var t=function(e){if("object"!=gj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gj(t)?t:t+""}function Tj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tj=function(){return!!e})()}function Cj(e){return Cj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cj(e)}function jj(e,t){return jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jj(e,t)}var Mj={configKey:"isFontWidthFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},xj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.devicePixelRatio;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Cj(t),function(e,t){if(t&&("object"==gj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tj()?Reflect.construct(t,n||[],Cj(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._document=r,n._devicePixelRatio=o,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jj(e,t)}(t,e),function(e,t,n){return t&&Oj(e.prototype,t),n&&Oj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_measureFontWidths",value:function(){var e=this,t={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function n(e,t,n){t.style.width="".concat(n,"px"),t.style.webkitTextSizeAdjust=t.
2style.textSizeAdjust="none",this._isZoomNeeded()?t.style.zoom="".concat(1/this._devicePixelRatio):this._isZoomResetNeeded()&&(t.style.zoom="reset");var r=e.createElement("div");r.textContent=Array.from({length:n/20|0},(function(){return"word"})).join(" "),t.appendChild(r)}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3,n=this._document.createElement("iframe");this._document.body.appendChild(n);var r=n.contentDocument;r.open(),r.write('<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1"></head><body></body></html>'),r.close();var o=e(r,r.body,t);return this._document.body.removeChild(n),o}.call(this,(function(r,o,i){return n.call(e,r,o,i),function(e,n){for(var r={},o={},i=function(){var t=kj(u[a],2),o=t[0],i=t[1][0]||{},s=e.createElement("span");s.textContent="mmMwWLliI0fiflO&1",s.style.whiteSpace="nowrap",Object.entries(i).forEach((function(e){var t=kj(e,2),n=t[0],r=t[1];void 0!==r&&(s.style[n]=r)})),r[o]=s,n.append(e.createElement("br"),s)},a=0,u=Object.entries(t);a<u.length;a++)i();return Object.keys(t).forEach((function(e){o[e]=r[e].getBoundingClientRect().width})),o}(r,o)}))}},{key:"_isZoomNeeded",value:function(){return!0}},{key:"_isZoomResetNeeded",value:function(){return!1}},{key:"startFeature",value:(n=_j().m((function e(){var t;return _j().w((function(e){for(;;)switch(e.n){case 0:try{t=this._measureFontWidths(),this._dataQ.addToQueue("static_fields",["font_width_info",t],!1)}catch(e){pe.error("Failed to collect font width information",e)}case 1:return e.a(2)}}),e,this)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){Sj(i,r,o,a,u,"next",e)}function u(e){Sj(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return Mj}}]);var n,r}(Br);function Rj(e){return Rj="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},Rj(e)}function Aj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bj(r.key),r)}}function Bj(e){var t=function(e){if("object"!=Rj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rj(t)?t:t+""}function Dj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dj=function(){return!!e})()}function Ij(e){return Ij=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ij(e)}function Lj(e,t){return Lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lj(e,t)}var Fj=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ij(t),function(e,t){if(t&&("object"==Rj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dj()?Reflect.construct(t,n||[],Ij(e).constructor):t.apply(e,n))}(this,t)).validateParams(e),n.isHighRes=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lj(e,t)}(t,e),function(e,t){return t&&Aj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e){"boolean"==typeof e||pe.warn("wrong type in ScreenHighRes parameters. isHighRes : {expected: boolean, received: ".concat(Rj(e),"}"))}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),this.isHighRes];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&"boolean"==typeof e[1]||pe.warn("ScreenHighRes - Contract verification failed")}},{key:"getName",value:function(){return"screen_high_res"}}])}(im);function Nj(e){return Nj="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},Nj(e)}function Uj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gj(r.key),r)}}function Gj(e){var t=function(e){if("object"!=Nj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nj(t)?t:t+""}function Wj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wj=function(){return!!e})()}
2function Qj(e){return Qj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qj(e)}function Hj(e,t){return Hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hj(e,t)}var Vj={configKey:"isScreenHighResFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!0,runInLean:!0,isRunning:!1,instance:null},zj=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Qj(t),function(e,t){if(t&&("object"==Nj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wj()?Reflect.construct(t,n||[],Qj(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hj(e,t)}(t,e),function(e,t,n){return t&&Uj(e.prototype,t),n&&Uj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){pe.info("Starting Screen High Resolution Feature");var e=t.getScreenHighResInfo(),n=new Fj(e).buildQueueMessage();this._dataQ.addToQueue("static_fields",n,!1)}}],[{key:"getDefaultSettings",value:function(){return Vj}},{key:"getScreenHighResInfo",value:function(){var e=t.getMediaQueryList("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return!!e&&e.matches}},{key:"getMediaQueryList",value:function(e){return"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia(e):null}}])}(Br);function Kj(e){return Kj="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},Kj(e)}function qj(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Jj(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Jj(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Jj(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Jj(f,"constructor",c),Jj(c,"constructor",s),s.displayName="GeneratorFunction",Jj(c,o,"GeneratorFunction"),Jj(f),Jj(f,o,"Generator"),Jj(f,r,(function(){return this})),Jj(f,"toString",(function(){return"[object Generator]"})),(qj=function(){return{w:i,m:p}})()}function Jj(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jj=function(e,t,n,r){function i(t,n){Jj(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Jj(e,t,n,r)}function Yj(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Xj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zj(r.key),r)}}function Zj(e){var t=function(e){if("object"!=Kj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kj(t)?t:t+""}function $j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($j=function(){return!!e})()}
2function eM(e){return eM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eM(e)}function tM(e,t){return tM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tM(e,t)}var nM={configKey:"isHeapFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},rM=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.performance,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=eM(t),function(e,t){if(t&&("object"==Kj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$j()?Reflect.construct(t,n||[],eM(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n._performance=r,n._logger=o,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tM(e,t)}(t,e),function(e,t,n){return t&&Xj(e.prototype,t),n&&Xj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
2(t,[{key:"collectHeapData",value:function(){var e={timestamp:Date.now()};try{if(this._performance&&this._performance.memory){var t=this._performance.memory,n=t.usedJSHeapSize,r=t.totalJSHeapSize,o=t.jsHeapSizeLimit;void 0!==n&&(e.usedJSHeapSize=n),void 0!==r&&(e.totalJSHeapSize=r),void 0!==o&&(e.jsHeapSizeLimit=o)}}catch(e){this._logger&&this._logger.debug("HeapCollector - Error collecting heap data:",e)}return e}},{key:"startFeature",value:(n=qj().m((function e(){var t;return qj().w((function(e){for(;;)switch(e.n){case 0:this._logger&&this._logger.info("HeapCollector - Starting heap data collection");try{t=this.collectHeapData(),this._logger&&this._logger.debug("HeapCollector - Heap Data collected: "+JSON.stringify(t)),this.sendData(t)}catch(e){this._logger&&this._logger.error("HeapCollector - Error during data collection:",e)}case 1:return e.a(2)}}),e,this)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){Yj(i,r,o,a,u,"next",e)}function u(e){Yj(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})},{key:"sendData",value:function(e){this._dataQ.addToQueue("static_fields",["heap",e],!1)}}],[{key:"getDefaultSettings",value:function(){return nM}}]);var n,r}(Br),oM=rM;function iM(e){return iM="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},iM(e)}function aM(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return uM(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(uM(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,uM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,uM(f,"constructor",c),uM(c,"constructor",s),s.displayName="GeneratorFunction",uM(c,o,"GeneratorFunction"),uM(f),uM(f,o,"Generator"),uM(f,r,(function(){return this})),uM(f,"toString",(function(){return"[object Generator]"})),(aM=function(){return{w:i,m:p}})()}function uM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}uM=function(e,t,n,r){function i(t,n){uM(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},uM(e,t,n,r)}function sM(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lM(r.key),r)}}function lM(e){var t=function(e){if("object"!=iM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=iM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iM(t)?t:t+""}var fM=function(){return function(e,t){return t&&cM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._logger=t,this._typedArrayFactory=n||{createFloat32Array:function(e){return new Float32Array(e)},createUint8Array:function(e){return new Uint8Array(e)},createUint32Array:function(e){return new Uint32Array(e)},createBigInt64Array:function(e){return new BigInt64Array(e)}}}),[{key:"_getNaNSignByte",value:function(){try{var e=this._typedArrayFactory.createFloat32Array(1),t=this._typedArrayFactory.createUint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],120===this._typedArrayFactory.createUint8Array(this._typedArrayFactory.createUint32Array([305419896]).buffer)[0]?t[3]:t[0]}catch(e){return void(this._logger&&this._logger.debug("ArchitectureDetectorService - Error getting NaN sign byte:",e))}}},{key:"_getPointerSize",value:function(){try{return this._typedArrayFactory.createBigInt64Array(1),64}catch(e){return 32}}},{key:"_getEndianness",value:function(){try{return 120===this._typedArrayFactory.createUint8Array(this._typedArrayFactory.createUint32Array([305419896]).buffer)[0]}catch(e){return void(this._logger&&this._logger.debug("ArchitectureDetectorService - Error detecting endianness:",e))}}},{key:"detectArchitecture",value:(e=aM().m((function e(){var t,n,r,o;return aM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=this._getNaNSignByte(),n=this._getPointerSize(),r=this._getEndianness(),e.a(2,{signByte:t,pointerSize:n,isLittleEndian:r});case 1:return e.p=1,o=e.v,this._logger&&this._logger.debug("ArchitectureDetectorService - Error detecting architecture:",o),e.a(2,{signByte:void 0,pointerSize:void 0,isLittleEndian:void 0,error:o.message})}}),e,this,[[0,1]])})),t=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sM(i,r,o,a,u,"next",e)}function u(e){sM(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return t.apply(this,arguments)})}]);var e,t}(),pM=fM;function dM(e){return dM="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},dM(e)}function yM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hM(r.key),r)}}function hM(e){var t=function(e){if("object"!=dM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dM(t)?t:t+""}var mM={1:63.66,2:9.925,3:5.841,4:4.604,5:4.032,6:3.707,7:3.499,8:3.355,9:3.25,10:3.169,11:3.106,12:3.055,13:3.012,14:2.977,15:2.947,16:2.921,17:2.898,18:2.878,19:2.861,20:2.845,21:2.831,22:2.819,23:2.807,24:2.797,25:2.787,26:2.779,27:2.771,28:2.763,29:2.756,30:2.75,32:2.738,34:2.728,36:2.719,38:2.712,40:2.704,42:2.698,44:2.692,46:2.687,48:2.682,50:2.678,55:2.668,60:2.66,65:2.654,70:2.648,80:2.639,100:2.626,150:2.609,200:2.601},vM=function(e,t){return t&&yM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.performance=window.performance||Date,this.performance.now||(this.performance.now=this.performance.webkitNow?this.performance.webkitNow:function(){return+new Date});try{var t=new Blob(['"use strict";self.onmessage=function(e){for(var n=e.data;n;)n--;self.postMessage(null)};'],{type:"application/javascript"});this.workloadUrl=URL.createObjectURL(t)}catch(e){pe.debug("CoreEstimatorService - Cannot create blob worker"),this.workloadUrl=""}}),[{key:"getCoreCount",value:function(){var e=this;return new Promise((function(t){try{if("undefined"==typeof Worker||!e.workloadUrl)return t(1);var n,r=[],o=[];e._iterate((function(t,i){e._measure(r,t,20,(function(r){if(1===t)Array.prototype.push.apply(o,r),n=e._analyse(o),i(!0);else{var a=e._analyse(r),u=a.uvariance/a.size,s=n.uvariance/n.size,c=(a.mean-n.mean)/Math.sqrt(u+s),l=Math.pow(u+s,2)/(Math.pow(a.uvariance,2)/(Math.pow(a.size,2)*(a.size-1))+Math.pow(n.uvariance,2)/(Math.pow(n.size,2)*(n.size-1))
2);i(e._accept(c,l))}}))}),(function(n){r.forEach((function(e){return e.terminate()})),URL.revokeObjectURL(e.workloadUrl),t(n)}))}catch(e){pe.debug("CoreEstimatorService - Error in getCoreCount:",e),t(1)}}))}},{key:"_measure",value:function(e,t,n,r){for(var o=this,i=[],a=e.length;a<t;a++)e.push(new Worker(this.workloadUrl));this._loop((function(a){for(var u,s=t,c=0;c<t;c++)e[c].onmessage=function(){--s||(n--,i.push(o.performance.now()-u),n?a():r(i))};for(var l=0;l<t;l++)e[l].postMessage(4194304);u=o.performance.now()}))}},{key:"_loop",value:function(e){!function t(){e(t)}()}},{key:"_iterate",value:function(e,t){var n=1,r=1/0,o=function o(a){e(1,(function(){e(a,(function(e){if(e)n=a,o(2*a);else{if(r=a,1===n)return t(n);i(3*n/2,n/4)}}))}))},i=function o(i,a){e(1,(function(){e(i,(function(e){return e?(n=i,i+=a):(r=i,i-=a),r-n===1?t(n):a?void o(i,a>>1):t(r-1)}))}))};o(2)}},{key:"_analyse",value:function(e){var t=e.length;if(!t)return null;for(var n=1/0,r=-1/0,o=0,i=0,a=0;a<t;a++){var u=e[a];u<n&&(n=u),u>r&&(r=u),o+=u,i+=Math.pow(u,2)}var s=o/t,c=Math.pow(s,2),l=0;return t>1&&(l=(i-t*c)/(t-1)),{size:t,mean:s,uvariance:l}}},{key:"_accept",value:function(e,t){var n=Object.keys(mM),r=n.reduce((function(e,n){return t<n?e:n})),o=n.reduce((function(e,n){return t>n?e:n})),i=o-r;return e<this._linear(mM[r],mM[o],(t-r)/i)}},{key:"_linear",value:function(e,t,n){return e+(t-e)*n}}]),bM=vM;function gM(e){return gM="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},gM(e)}function _M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wM(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)?wM(e,t):void 0}}(e,t)||function(){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 wM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function SM(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return kM(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(kM(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,kM(f,"constructor",c),kM(c,"constructor",s),s.displayName="GeneratorFunction",kM(c,o,"GeneratorFunction"),kM(f),kM(f,o,"Generator"),kM(f,r,(function(){return this})),kM(f,"toString",(function(){return"[object Generator]"})),(SM=function(){return{w:i,m:p}})()}function kM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}kM=function(e,t,n,r){function i(t,n){kM(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},kM(e,t,n,r)}function EM(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function OM(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){EM(i,r,o,a,u,"next",e)}function u(e){EM(i,r,o,a,u,"throw",e)}a(void 0)}))}}function PM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TM(r.key),r)}}function TM(e){var t=function(e){if("object"!=gM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gM(t)?t:t+""}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CM=function(){return!!e})()}
2function jM(e){return jM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jM(e)}function MM(e,t){return MM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MM(e,t)}var xM={configKey:"isCPUFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},RM=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=jM(t),function(e,t){if(t&&("object"==gM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,CM()?Reflect.construct(t,n||[],jM(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MM(e,t)}(t,e),function(e,t,n){return t&&PM(e.prototype,t),n&&PM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detectArchitecture",value:(o=OM(SM().m((function e(){var t,n;return SM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=new pM,e.n=1,t.detectArchitecture();case 1:return e.a(2,e.v);case 2:return e.p=2,n=e.v,pe.debug("CPUDataCollector - Error detecting architecture:",n),e.a(2,{signByte:void 0,pointerSize:void 0,isLittleEndian:void 0,error:n.message})}}),e,null,[[0,2]])}))),function(){return o.apply(this,arguments)})},{key:"detectAvailableCores",value:(r=OM(SM().m((function e(){var t,n;return SM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=new bM,e.n=1,t.getCoreCount();case 1:return e.a(2,e.v);case 2:return e.p=2,n=e.v,pe.debug("CPUDataCollector - Error detecting available cores:",n),e.a(2,1)}}),e,null,[[0,2]])}))),function(){return r.apply(this,arguments)})},{key:"startFeature",value:(n=OM(SM().m((function e(){var t,n,r,o,i,a;return SM().w((function(e){for(;;)switch(e.p=e.n){case 0:return pe.info("CPUDataCollector - Starting CPU data collection"),e.p=1,e.n=2,Promise.all([this.detectArchitecture(),this.detectAvailableCores()]);case 2:t=e.v,n=_M(t,2),r=n[0],o=n[1],i={architecture:r,availableCores:o},pe.debug("CPUDataCollector - CPU Data collected: "+JSON.stringify(i)),this.sendData(i),e.n=4;break;case 3:e.p=3,a=e.v,pe.error("CPUDataCollector - Error during data collection:",a);case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(){return n.apply(this,arguments)})},{key:"sendData",value:function(e){this._dataQ.addToQueue("static_fields",["cpu",e],!1)}}],[{key:"getDefaultSettings",value:function(){return xM}}]);var n,r,o}(Br),AM=RM;function BM(e){return BM="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},BM(e)}function DM(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return IM(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(IM(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,IM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,IM(f,"constructor",c),IM(c,"constructor",s),s.displayName="GeneratorFunction",IM(c,o,"GeneratorFunction"),IM(f),IM(f,o,"Generator"),IM(f,r,(function(){return this})),IM(f,"toString",(function(){return"[object Generator]"})),(DM=function(){return{w:i,m:p}})()}function IM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}IM=function(e,t,n,r){function i(t,n){IM(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},IM(e,t,n,r)}function LM(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function FM(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){LM(i,r,o,a,u,"next",e)}function u(e){LM(i,r,o,a,u,"throw",e)}a(void 0)}))}}function NM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UM(r.key),r)}}function UM(e){var t=function(e){if("object"!=BM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=BM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==BM(t)?t:t+""}var GM=function(){return function(e,t){return t&&NM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.log,r=t.document,o=t.performance,i=t.math;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._log=n||pe,this._document=r||window.document,this._performance=o||window.performance,this._math=i||Math,this.contextTypes=["webgl2"]}),[{key:"collectWebGLTiming",value:(t=FM(DM().m((function e(){var t,n,r,o;return DM().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,(t=this._document.createElement("canvas")).width=256,t.height=128,n=t.getContext("webgl2")){e.n=1;break}return e.a(2,{});case 1:return e.n=2,this.runUniformMatrixBenchmark(n);case 2:return r=e.v,e.a(2,r.results.totalTime);case 3:return e.p=3,o=e.v,this._log.debug("WebGLTimingService - Error collecting WebGL timing:",o),e.a(2,{})}}),e,this,[[0,3]])}))),function(){return t.apply(this,arguments)})},{key:"runUniformMatrixBenchmark",value:(e=FM(DM().m((function e(t){var n,r,o,i,a,u,s,c,l,f,p,d,y,h;return DM().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n={iterations:1e3,matrixCount:15,results:{}},e.p=1,r=this.createTestMatrices(n.matrixCount),o=this.createSimpleShaderProgram(t)){e.n=2;break}throw new Error("Failed to create shader program");case 2:for(t.useProgram(o),i=t.getUniformLocation(o,"u_matrix"),a=0;a<10;a++)for(u=0;u<r.length;u++)t.uniformMatrix4fv(i,!1,r[u]);for(s=this._performance.now(),c=0;c<n.iterations;c++)for(l=0;l<r.length;l++)t.uniformMatrix4fv(i,!1,r[l]);f=this._performance.now(),p=f-s,d=n.iterations*n.matrixCount,y=d/p*1e3,n.results={totalTime:p,operationsPerSecond:y},t.deleteProgram(o),e.n=4;break;case 3:e.p=3,h=e.v,this._log.debug("WebGLTimingService - Error running uniformMatrix benchmark:",h),n.results={error:h.message,totalTime:0,operationsPerSecond:0};case 4:return e.a(2,n)}}),e,this,[[1,3]])}))),function(t){return e.apply(this,arguments)})},{key:"createTestMatrices",value:function(e){for(var t=[],n=0;n<e;n++){var r=new Float32Array(16),o=n/e*this._math.PI*2,i=this._math.cos(o),a=this._math.sin(o);r[0]=i,r[1]=0,r[2]=a,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=-a,r[9]=0,r[10]=i,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,t.push(r)}return t}},{key:"createSimpleShaderProgram",value:function(e){try{var t=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(t,"\n attribute vec4 a_position;\n uniform mat4 u_matrix;\n void main() {\n gl_Position = u_matrix * a_position;\n }\n "),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))return this._log.debug("WebGLTimingService - Vertex shader compilation failed:",e.getShaderInfoLog(t)),e.deleteShader(t),null;var n=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(n,"\n precision mediump float;\n void main() {\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n }\n "),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))return this._log.debug("WebGLTimingService - Fragment shader compilation failed:",e.getShaderInfoLog(n)),e.deleteShader(t),e.deleteShader(n),null;var r=e.createProgram();return e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?(e.deleteShader(t),e.deleteShader(n),r):(this._log.debug("WebGLTimingService - Program linking failed:",e.getProgramInfoLog(r)),e.deleteShader(t),e.deleteShader(n),e.deleteProgram(r),null)}catch(e){return this._log.debug("WebGLTimingService - Error creating shader program:",e),null}}}]);var e,t}(),WM=GM;function QM(e){return QM="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},QM(e)}function HM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VM(r.key),r)}}
2function VM(e){var t=function(e){if("object"!=QM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QM(t)?t:t+""}var zM=function(e,t){return t&&HM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._performance=t||window.performance,this._log=n||pe}),[{key:"collectBrowserTiming",value:function(){try{var e=this.collectNavigationTiming(),t=this.collectResourceTiming(),n=this.collectPaintTiming(),r=this.collectPerformanceTiming(),o=this.collectBrowserCapabilities();return{domContentLoadedTime:e.domContentLoadedTime,loadCompleteTime:e.loadCompleteTime,firstPaintTime:n.firstPaintTime,firstContentfulPaintTime:n.firstContentfulPaintTime,averageResourceLoadTime:t.averageLoadTime,resourceCount:t.count,timeOrigin:r.timeOrigin,performanceNow:r.now,navigationStart:r.navigationStart,browserProcessingTime:o.processingTime,memoryUsage:o.memoryUsage}}catch(e){return this._log.debug("BrowserTimingService - Error collecting browser timing:",e),this.getFallbackResult()}}},{key:"collectNavigationTiming",value:function(){try{var e=0,t=0;if(this._performance.getEntriesByType){var n=this._performance.getEntriesByType("navigation");if(n.length>0){var r=n[0];e=r.domContentLoadedEventEnd-r.startTime,t=r.loadEventEnd-r.startTime}}else if(this._performance.timing){var o=this._performance.timing;e=o.domContentLoadedEventEnd-o.navigationStart,t=o.loadEventEnd-o.navigationStart}return{domContentLoadedTime:e||0,loadCompleteTime:t||0}}catch(e){return this._log.debug("BrowserTimingService - Error collecting navigation timing:",e),{domContentLoadedTime:0,loadCompleteTime:0}}}},{key:"collectResourceTiming",value:function(){try{var e=0,t=0;if(this._performance.getEntriesByType){var n=this._performance.getEntriesByType("resource");if(n.length>0){var r=n.reduce((function(e,t){return e+t.duration}),0);e=r/n.length,t=n.length}}return{averageLoadTime:e||0,count:t||0}}catch(e){return this._log.debug("BrowserTimingService - Error collecting resource timing:",e),{averageLoadTime:0,count:0}}}},{key:"collectPaintTiming",value:function(){try{var e=0,t=0;if(this._performance.getEntriesByType){var n=this._performance.getEntriesByType("paint");if(n.length>0){var r=n.find((function(e){return"first-paint"===e.name})),o=n.find((function(e){return"first-contentful-paint"===e.name}));r&&(e=r.startTime),o&&(t=o.startTime)}}return{firstPaintTime:e||0,firstContentfulPaintTime:t||0}}catch(e){return this._log.debug("BrowserTimingService - Error collecting paint timing:",e),{firstPaintTime:0,firstContentfulPaintTime:0}}}},{key:"collectPerformanceTiming",value:function(){try{return{timeOrigin:this._performance.timeOrigin||0,now:this._performance.now(),navigationStart:this._performance.timing?this._performance.timing.navigationStart:0}}catch(n){return this._log.debug("BrowserTimingService - Error collecting performance timing:",n),{timeOrigin:0,now:0,navigationStart:0}}}},{key:"collectBrowserCapabilities",value:function(){try{for(var e=this._performance.now(),t=0;t<1e5;t++)Math.sqrt(t);var n=this._performance.now()-e,r=0;return this._performance.memory&&(r=this._performance.memory.usedJSHeapSize/1024/1024),{processingTime:n,memoryUsage:r}}catch(e){return this._log.debug("BrowserTimingService - Error collecting browser capabilities:",e),{processingTime:0,memoryUsage:0}}}},{key:"getFallbackResult",value:function(){return{domContentLoadedTime:0,loadCompleteTime:0,firstPaintTime:0,firstContentfulPaintTime:0,averageResourceLoadTime:0,resourceCount:0,timeOrigin:0,performanceNow:0,navigationStart:0,browserProcessingTime:0,memoryUsage:0}}}]),KM=zM;function qM(e){return qM="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},qM(e)}function JM(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return YM(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(YM(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,YM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,YM(f,"constructor",c),YM(c,"constructor",s),s.displayName="GeneratorFunction",YM(c,o,"GeneratorFunction"),YM(f),YM(f,o,"Generator"),YM(f,r,(function(){return this})),YM(f,"toString",(function(){return"[object Generator]"})),(JM=function(){return{w:i,m:p}})()}function YM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}YM=function(e,t,n,r){function i(t,n){YM(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},YM(e,t,n,r)}function XM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ZM(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)?ZM(e,t):void 0}}(e,t)||function(){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 ZM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $M(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function ex(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$M(i,r,o,a,u,"next",e)}function u(e){$M(i,r,o,a,u,"throw",e)}a(void 0)}))}}function tx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nx(r.key),r)}}function nx(e){var t=function(e){if("object"!=qM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qM(t)?t:t+""}var rx=function(){return function(e,t){return t&&tx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.performance,r=t.log,o=t.worker,i=t.blob,a=t.url;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._performance=n||window.performance||Date,this._performance.now||(this._performance.now=this._performance.webkitNow?this._performance.webkitNow:function(){return+new Date}),this._log=r||pe,this._Worker=o||window.Worker,this._Blob=i||window.Blob,this._URL=a||window.URL}),[{key:"runBenchmarks",value:(a=ex(JM().m((function e(){var t,n,r,o,i,a,u,s;return JM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Promise.all([this.basicBenchmark(),this.integerBenchmark(),this.floatBenchmark(),this.memoryBenchmark(),this.cryptoBenchmark()]);case 1:return t=e.v,n=XM(t,5),r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],e.a(2,{basicOpsPerMs:r.opsPerMs,integerOpsPerMs:o.opsPerMs,floatOpsPerMs:i.opsPerMs,memoryOpsPerMs:a.opsPerMs,cryptoOpsPerMs:u.opsPerMs});case 2:return e.p=2,s=e.v,this._log.debug("CPUTimingService - Error running benchmarks:",s),e.a(2,this.getFallbackResult())}}),e,this,[[0,2]])}))),function(){return a.apply(this,arguments)})},{key:"basicBenchmark",value:(i=ex(JM().m((function e(){var t;return JM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.runWorkerBenchmark("\n self.onmessage = function(e) {\n try {\n const startTime = performance.now();\n let result = 0;\n for (let i = 0; i < 5000000;
2 i++) {\n result += Math.sqrt(i);\n }\n const executionTime = performance.now() - startTime;\n \n self.postMessage({ \n success: true, \n executionTime: executionTime,\n operations: 5000000,\n opsPerMs: Number((5000000 / executionTime).toPrecision(16))\n });\n } catch (error) {\n self.postMessage({ success: false, error: error.message });\n }\n };\n ");case 1:return e.a(2,e.v);case 2:return e.p=2,t=e.v,this._log.debug("CPUTimingService - Error in basic benchmark:",t),e.a(2,{executionTime:0,operations:0,opsPerMs:0})}}),e,this,[[0,2]])}))),function(){return i.apply(this,arguments)})},{key:"integerBenchmark",value:(o=ex(JM().m((function e(){var t;return JM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.runWorkerBenchmark("\n self.onmessage = function(e) {\n try {\n const startTime = performance.now();\n let result = 0;\n for (let i = 0; i < 10000000; i++) {\n result = (result + i) * 31 | 0;\n }\n const executionTime = performance.now() - startTime;\n \n self.postMessage({ \n success: true, \n executionTime: executionTime,\n operations: 10000000,\n opsPerMs: Number((10000000 / executionTime).toPrecision(16))\n });\n } catch (error) {\n self.postMessage({ success: false, error: error.message });\n }\n };\n ");case 1:return e.a(2,e.v);case 2:return e.p=2,t=e.v,this._log.debug("CPUTimingService - Error in integer benchmark:",t),e.a(2,{executionTime:0,operations:0,opsPerMs:0})}}),e,this,[[0,2]])}))),function(){return o.apply(this,arguments)})},{key:"floatBenchmark",value:(r=ex(JM().m((function e(){var t;return JM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.runWorkerBenchmark("\n self.onmessage = function(e) {\n try {\n const startTime = performance.now();\n let result = 0.1;\n for (let i = 0; i < 5000000; i++) {\n result += Math.sin(result) + Math.cos(i);\n }\n const executionTime = performance.now() - startTime;\n \n self.postMessage({ \n success: true, \n executionTime: executionTime,\n operations: 5000000,\n opsPerMs: Number((5000000 / executionTime).toPrecision(16))\n });\n } catch (error) {\n self.postMessage({ success: false, error: error.message });\n }\n };\n ");case 1:return e.a(2,e.v);case 2:return e.p=2,t=e.v,this._log.debug("CPUTimingService - Error in float benchmark:",t),e.a(2,{executionTime:0,operations:0,opsPerMs:0})}}),e,this,[[0,2]])}))),function(){return r.apply(this,arguments)})},{key:"memoryBenchmark",value:(n=ex(JM().m((function e(){var t;return JM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.runWorkerBenchmark("\n self.onmessage = function(e) {\n try {\n const startTime = performance.now();\n const arr = new Uint32Array(1000000);\n \n // Sequential write\n for (let i = 0; i < arr.length; i++) {\n arr[i] = i;\n }\n \n // Sequential read\n let sum = 0;\n for (let i = 0; i < arr.length; i++) {\n sum += arr[i];\n }\n \n const executionTime = performance.now() - startTime;\n \n self.postMessage({ \n success: true, \n executionTime: executionTime,\n operations: arr.length * 2, // write + read\n opsPerMs: Number(((arr.length * 2) / executionTime).toPrecision(16))\n });\n } catch (error) {\n self.postMessage({ success: false, error: error.message });\n }\n };\n ");case 1:return e.a(2,e.v);case 2:return e.p=2,t=e.v,this._log.debug("CPUTimingService - Error in memory benchmark:",t),e.a(2,{executionTime:0,operations:0,opsPerMs:0})}}),e,this,[[0,2]])}))),function(){return n.apply(this,arguments)})},{key:"cryptoBenchmark",value:(t=ex(JM().m((function e(){var t;return JM().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.runWorkerBenchmark("\n self.onmessage = function(e) {\n try {\n const startTime = performance.now();\n let result = 0;
2\n \n // Simple hash-like operations\n for (let i = 0; i < 1000000; i++) {\n let hash = i;\n hash = ((hash << 5) - hash) + i;\n hash = hash & hash; // Convert to 32-bit integer\n result += hash;\n }\n \n const executionTime = performance.now() - startTime;\n \n self.postMessage({ \n success: true, \n executionTime: executionTime,\n operations: 1000000,\n opsPerMs: Number((1000000 / executionTime).toPrecision(16))\n });\n } catch (error) {\n self.postMessage({ success: false, error: error.message });\n }\n };\n ");case 1:return e.a(2,e.v);case 2:return e.p=2,t=e.v,this._log.debug("CPUTimingService - Error in crypto benchmark:",t),e.a(2,{executionTime:0,operations:0,opsPerMs:0})}}),e,this,[[0,2]])}))),function(){return t.apply(this,arguments)})},{key:"runWorkerBenchmark",value:(e=ex(JM().m((function e(t){var n=this;return JM().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){try{var r=new n._Blob([t],{type:"application/javascript"}),o=n._URL.createObjectURL(r),i=new n._Worker(o);i.onmessage=function(t){i.terminate(),n._URL.revokeObjectURL(o),t.data.success?e({executionTime:t.data.executionTime,opsPerMs:t.data.opsPerMs}):(n._log.debug("CPUTimingService - Worker benchmark failed:",t.data.error),e({executionTime:0,operations:0,opsPerMs:0}))},i.onerror=function(t){i.terminate(),n._URL.revokeObjectURL(o),n._log.debug("CPUTimingService - Worker error:",t),e({executionTime:0,operations:0,opsPerMs:0})},i.postMessage("start")}catch(t){n._log.debug("CPUTimingService - Error creating worker:",t),e({executionTime:0,operations:0,opsPerMs:0})}})))}),e)}))),function(t){return e.apply(this,arguments)})},{key:"getFallbackResult",value:function(){return{basicOpsPerMs:0,integerOpsPerMs:0,floatOpsPerMs:0,memoryOpsPerMs:0,cryptoOpsPerMs:0}}}]);var e,t,n,r,o,i,a}(),ox=rx;function ix(e){return ix="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},ix(e)}function ax(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||ux(e,t)||function(){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 ux(e,t){if(e){if("string"==typeof e)return sx(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)?sx(e,t):void 0}}function sx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lx(r.key),r)}}function lx(e){var t=function(e){if("object"!=ix(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ix(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ix(t)?t:t+""}var fx=function(e,t){return t&&cx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.log,r=t.date;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._log=n||pe,this._Date=r||Date,this._fontScanTimes=new Map,this._onNewRecordAvailableCallback=null}),[{key:"setOnNewRecordAvailableCallback",value:function(e){this._onNewRecordAvailableCallback=e}},{key:"recordFontScan",value:function(e){try{var t=e.scanTime,n=e.totalFontsScanned,r=e.totalFontsFound,o=e.fontVersion,i=e.scannedAt;this._fontScanTimes.set(o||"default",{scanTime:t,totalFontsScanned:n,totalFontsFound:r,scannedAt:i||this._Date.now()}),this._log.debug("FontTimingService - Font scan recorded for ".concat(o,": ").concat(t,"ms, ").concat(r,"/").concat(n," fonts found")),this._onNewRecordAvailableCallback&&this._onNewRecordAvailableCallback()}catch(e){this._log.error("FontTimingService - Error recording font scan:",e)}}},{key:"collectFontTiming",value:function(){var e,t={},n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ux(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(this._fontScanTimes);try{for(n.s();!(e=n.n()).done;){var r=ax(e.value,2),o=r[0],i=r[1];t[o]=i}}catch(e){n.e(e)}finally{n.f()}return this._fontScanTimes.clear(),t}},{key:"hasFontTimingData",value:function(){return this._fontScanTimes.size>0}}]),px=fx;function dx(e){return dx="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},dx(e)}function yx(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return hx(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(hx(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,hx(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,hx(f,"constructor",c),hx(c,"constructor",s),s.displayName="GeneratorFunction",hx(c,o,"GeneratorFunction"),hx(f),hx(f,o,"Generator"),hx(f,r,(function(){return this})),hx(f,"toString",(function(){return"[object Generator]"})),(yx=function(){return{w:i,m:p}})()}function hx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}hx=function(e,t,n,r){function i(t,n){hx(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},hx(e,t,n,r)}function mx(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function vx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bx(r.key),r)}}function bx(e){var t=function(e){if("object"!=dx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dx(t)?t:t+""}var gx=function(){return function(e,t){return t&&vx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"getFPS",value:(e=yx().m((function e(){var t,n,r,o;return yx().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=performance.now(),n=0,r=0,e.a(2,new Promise((function(e){requestAnimationFrame((function o(i){n++;var a=i-t;if(a>=1e3)return r=n/a*1e3,pe.debug("AnimationTimingService - FPS calculated: ".concat(r.toFixed(4))),void e(Math.round(1e4*r)/1e4);requestAnimationFrame(o)}))})));case 1:return e.p=1,o=e.v,pe.debug("AnimationTimingService - Error collecting FPS:",o),e.a(2,0)}}),e,null,[[0,1]])})),t=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){mx(i,r,o,a,u,"next",e)}function u(e){mx(i,r,o,a,u,"throw",e)}a(void 0)}))},function(){return t.apply(this,arguments)})}]);var e,t}(),_x=gx;function wx(e){return wx="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},wx(e)}function Sx(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return kx(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(kx(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kx(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,kx(f,"constructor",c),kx(c,"constructor",s),s.displayName="GeneratorFunction",kx(c,o,"GeneratorFunction"),kx(f),kx(f,o,"Generator"),kx(f,r,(function(){return this})),kx(f,"toString",(function(){return"[object Generator]"})),(Sx=function(){return{w:i,m:p}})()}function kx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}kx=function(e,t,n,r){function i(t,n){kx(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},kx(e,t,n,r)}function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ox(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ex(Object(n),!0).forEach((function(t){Px(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Px(e,t,n){return(t=jx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tx(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Cx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jx(r.key),r)}}function jx(e){var t=function(e){if("object"!=wx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wx(t)?t:t+""}var Mx=function(){return function(e,t){return t&&Cx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._storageUtils=t,this._cacheKey="timingData",this._cacheExpiration=6048e5}),[{key:"saveTimingData",value:(e=Sx().m((function e(t){var n;return Sx().w((function(e){for(;;)switch(e.n){case 0:return n=Ox(Ox({},t),{},{cachedAt:Date.now()}),pe.debug("[TIMING-COLLECTOR] Saving timing data to localStorage under key: ".concat(this._cacheKey)),e.n=1,this._storageUtils.saveToLocalStorage(this._cacheKey,n);case 1:return e.a(2)}}),e,this)})),t=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Tx(i,r,o,a,u,"next",e)}function u(e){Tx(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e){return t.apply(this,arguments)})},{key:"getStoredTimingData",value:function(){var e=this._storageUtils.getFromLocalStorage(this._cacheKey);return e?Date.now()-e.cachedAt>this._cacheExpiration?(pe.debug("[TIMING-COLLECTOR] Cached timing data is expired"),null):e:(pe.debug("[TIMING-COLLECTOR] No cached timing data found"),null)}},{key:"clearCache",value:function(){this._storageUtils.removeFromLocalStorage(this._cacheKey),pe.debug("[TIMING-COLLECTOR] Cleared timing data cache")}}]);var e,t}();function xx(e){return xx="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},xx(e)}function Rx(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Ax(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Ax(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ax(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Ax(f,"constructor",c),Ax(c,"constructor",s),s.displayName="GeneratorFunction",Ax(c,o,"GeneratorFunction"),Ax(f),Ax(f,o,"Generator"),Ax(f,r,(function(){return this})),Ax(f,"toString",(function(){return"[object Generator]"})),(Rx=function(){return{w:i,m:p}})()}function Ax(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ax=function(e,t,n,r){function i(t,n){Ax(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ax(e,t,n,r)}function Bx(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Dx(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Bx(i,r,o,a,u,"next",e)}function u(e){Bx(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Ix(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lx(r.key),r)}}function Lx(e){var t=function(e){if("object"!=xx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xx(t)?t:t+""}var Fx=function(){return function(e,t){return t&&Ix(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.performance,r=t.log;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._performance=n||window.performance,this._log=r||pe}),[{key:"measureMemoryBandwidth",value:(i=Dx(Rx().m((function e(){var t,n,r,o,i,a;return Rx().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.measureSequentialReadBandwidth();case 1:return t=e.v,e.n=2,this.measureSequentialWriteBandwidth();case 2:return n=e.v,e.n=3,this.measureRandomAccessRate();case 3:return r=e.v,e.n=4,this.measureCacheThroughput();case 4:return o=e.v,e.n=5,this.measureMemoryLatency();case 5:return i=e.v,e.a(2,{sequentialReadBandwidth:Number(t.toPrecision(16)),sequentialWriteBandwidth:Number(n.toPrecision(16)),randomAccessRate:Number(r.toPrecision(16)),cacheThroughput:Number(o.toPrecision(16)),memoryLatency:Number((1e6*i).toPrecision(16))});case 6:return e.p=6,a=e.v,this._log.debug("MemoryTimingService - Error measuring memory bandwidth:",a),e.a(2,this.getFallbackResult())}}),e,this,[[0,6]])}))),function(){return i.apply(this,arguments)})},{key:"measureSequentialReadBandwidth",value:(o=Dx(Rx().m((function e(){var t,n,r,o,i,a,u,s;return Rx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t=16777216,n=new Uint8Array(t),r=0;r<n.length;r++)n[r]=255&r;for(o=this._performance.now(),i=0;i<n.length;i++)n[i];return a=this._performance.now(),u=a-o,e.a(2,t/(u/1e3)/1048576);case 1:return e.p=1,s=e.v,this._log.debug("MemoryTimingService - Error in sequential read:",s),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return o.apply(this,arguments)})},{key:"measureSequentialWriteBandwidth",value:(r=Dx(Rx().m((function e(){var t,n,r,o,i,a,u;return Rx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t=16777216,n=new Uint8Array(t),r=this._performance.now(),o=0;o<n.length;o++)n[o]=255&o;return i=this._performance.now(),a=i-r,e.a(2,t/(a/1e3)/1048576);case 1:return e.p=1,u=e.v,this._log.debug("MemoryTimingService - Error in sequential write:",u),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return r.apply(this,arguments)})},{key:"measureRandomAccessRate",value:(n=Dx(Rx().m((function e(){var t,n,r,o,i,a,u,s,c,l;return Rx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t=1048576,n=new Uint8Array(t),r=new Uint32Array(1e5),o=0;o<n.length;o++)n[o]=255&o;for(i=0;i<r.length;i++)r[i]=Math.floor(Math.random()*t);for(a=this._performance.now(),u=0;u<r.length;u++)n[r[u]];return s=this._performance.now(),c=s-a,e.a(2,r.length/c);case 1:return e.p=1,l=e.v,this._log.debug("MemoryTimingService - Error in random access:",l),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return n.apply(this,arguments)})}
2,{key:"measureCacheThroughput",value:(t=Dx(Rx().m((function e(){var t,n,r,o,i,a,u,s;return Rx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t=new Uint8Array(65536),n=0;n<t.length;n++)t[n]=255&n;for(r=this._performance.now(),o=0;o<10;o++)for(i=0;i<t.length;i++)t[i];return a=this._performance.now(),u=a-r,e.a(2,10*t.length/u);case 1:return e.p=1,s=e.v,this._log.debug("MemoryTimingService - Error in cache performance:",s),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return t.apply(this,arguments)})},{key:"measureMemoryLatency",value:(e=Dx(Rx().m((function e(){var t,n,r,o,i,a,u,s,c;return Rx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t=new Uint32Array(1048576),n=0;n<t.length-1;n++)t[n]=n+1;for(t[t.length-1]=0,r=this._performance.now(),o=0,i=0,a=0;a<1e5;a++)o=t[o],i++;return u=this._performance.now(),s=u-r,e.a(2,s/i);case 1:return e.p=1,c=e.v,this._log.debug("MemoryTimingService - Error in memory latency:",c),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return e.apply(this,arguments)})},{key:"getFallbackResult",value:function(){return{sequentialReadBandwidth:0,sequentialWriteBandwidth:0,randomAccessRate:0,cacheThroughput:0,memoryLatency:0}}}]);var e,t,n,r,o,i}(),Nx=Fx;function Ux(e){return Ux="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},Ux(e)}function Gx(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return Wx(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Wx(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Wx(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Wx(f,"constructor",c),Wx(c,"constructor",s),s.displayName="GeneratorFunction",Wx(c,o,"GeneratorFunction"),Wx(f),Wx(f,o,"Generator"),Wx(f,r,(function(){return this})),Wx(f,"toString",(function(){return"[object Generator]"})),(Gx=function(){return{w:i,m:p}})()}function Wx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wx=function(e,t,n,r){function i(t,n){Wx(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Wx(e,t,n,r)}function Qx(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function Hx(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Qx(i,r,o,a,u,"next",e)}function u(e){Qx(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Vx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zx(r.key),r)}}function zx(e){var t=function(e){if("object"!=Ux(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ux(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ux(t)?t:t+""}var Kx=function(){return function(e,t){return t&&Vx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.performance,r=t.log,o=t.localStorage,i=t.sessionStorage,a=t.indexedDB,u=t.math;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._performance=n||window.performance,this._log=r||pe,this._localStorage=o||window.localStorage,this._sessionStorage=i||window.sessionStorage,this._indexedDB=a||window.indexedDB,this._Math=u||Math}),[{key:"measureAll",value:(i=Hx(Gx().m((function e(){var t,n,r,o,i,a;return Gx().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.measureLocalStorageTime();case 1:return t=e.v,e.n=2,this.measureSessionStorageTime();case 2:return n=e.v,e.n=3,this.measureIndexedDBTime();case 3:return r=e.v,e.n=4,this.measureBulkLocalStorageTime();case 4:return o=e.v,e.n=5,this.measureStorageStressTest();case 5:return i=e.v,e.a(2,{localStorageTime:Number(t.toPrecision(16)),sessionStorageTime:Number(n.toPrecision(16)),indexedDBTime:Number(r.toPrecision(16)),bulkLocal
2StorageTime:Number(o.toPrecision(16)),storageStressTest:Number(i.toPrecision(16))});case 6:return e.p=6,a=e.v,this._log.debug("StorageTimingService - Error measuring storage:",a),e.a(2,this.getFallbackResult())}}),e,this,[[0,6]])}))),function(){return i.apply(this,arguments)})},{key:"measureLocalStorageTime",value:(o=Hx(Gx().m((function e(){var t,n,r,o,i,a;return Gx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t="storage_timing_test",n=this.generateTestData(1024),r=this._performance.now(),o=0;o<100;o++)this._localStorage.setItem(t+o,n),this._localStorage.getItem(t+o),this._localStorage.removeItem(t+o);return i=this._performance.now(),e.a(2,i-r);case 1:return e.p=1,a=e.v,this._log.debug("StorageTimingService - Error in localStorage:",a),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return o.apply(this,arguments)})},{key:"measureSessionStorageTime",value:(r=Hx(Gx().m((function e(){var t,n,r,o,i,a;return Gx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t="storage_timing_test",n=this.generateTestData(1024),r=this._performance.now(),o=0;o<100;o++)this._sessionStorage.setItem(t+o,n),this._sessionStorage.getItem(t+o),this._sessionStorage.removeItem(t+o);return i=this._performance.now(),e.a(2,i-r);case 1:return e.p=1,a=e.v,this._log.debug("StorageTimingService - Error in sessionStorage:",a),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return r.apply(this,arguments)})},{key:"measureIndexedDBTime",value:(n=Hx(Gx().m((function e(){var t,n=this;return Gx().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.a(2,new Promise((function(e){var t="storage_timing_test_db",r="testStore",o=n._indexedDB.open(t,1);o.onupgradeneeded=function(e){e.target.result.createObjectStore(r)},o.onsuccess=function(o){for(var i=o.target.result,a=i.transaction(r,"readwrite").objectStore(r),u="x".repeat(1024),s=n._performance.now(),c=0,l=function(r){a.add(u,"key"+r).onsuccess=function(){a.get("key"+r).onsuccess=function(){a.delete("key"+r).onsuccess=function(){if(50===++c){var r=n._performance.now();i.close(),n._indexedDB.deleteDatabase(t),e(r-s)}}}}},f=0;f<50;f++)l(f)},o.onerror=function(){e(0)}})));case 1:return e.p=1,t=e.v,this._log.debug("StorageTimingService - Error in IndexedDB:",t),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return n.apply(this,arguments)})},{key:"measureBulkLocalStorageTime",value:(t=Hx(Gx().m((function e(){var t,n,r,o,i,a,u,s,c,l,f;return Gx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t="bulk_storage_timing_test_",n=this.generateTestData(2048),r=200,o=this._performance.now(),i=0;i<r;i++)this._localStorage.setItem(t+i,n);for(a=0;a<r;a++)this._localStorage.getItem(t+a);for(u=0;u<r;u++)this._localStorage.setItem(t+u,n+"_updated");for(s=0;s<r;s++)this._localStorage.getItem(t+s);for(c=0;c<r;c++)this._localStorage.removeItem(t+c);return l=this._performance.now(),e.a(2,l-o);case 1:return e.p=1,f=e.v,this._log.debug("StorageTimingService - Error in bulk localStorage:",f),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return t.apply(this,arguments)})},{key:"measureStorageStressTest",value:(e=Hx(Gx().m((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,d,y;return Gx().w((function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t="stress_test_",n=this.generateTestData(64),r=this.generateTestData(1024),o=this.generateTestData(8192),i=this._performance.now(),a=0;a<500;a++)this._localStorage.setItem(t+"small_"+a,n);for(u=0;u<100;u++)this._localStorage.setItem(t+"medium_"+u,r);for(s=0;s<20;s++)this._localStorage.setItem(t+"large_"+s,o);for(c=0;c<200;c++)this._localStorage.getItem(t+"small_"+c%500),this._localStorage.getItem(t+"medium_"+c%100),this._localStorage.getItem(t+"large_"+c%20);for(l=0;l<500;l++)this._localStorage.removeItem(t+"small_"+l);for(f=0;f<100;f++)this._localStorage.removeItem(t+"medium_"+f);for(p=0;p<20;p++)this._localStorage.removeItem(t+"large_"+p);return d=this._performance.now(),e.a(2,d-i);case 1:return e.p=1,y=e.v,this._log.debug("StorageTimingService - Error in storage stress test:",y),e.a(2,0)}}),e,this,[[0,1]])}))),function(){return e.apply(this,arguments)})},{key:"generateTestData",value:function(e){for(var t="",n=0;n<e;n++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*this._Math.random()));return t}},{key:"getFallbackResult",value:function(){return{localStorageTime:0,sessionStorageTime:0,indexedDBTime:0,bulkLocal
vendor: 4,135 bytes, line 2
2StorageTime:0,storageStressTest:0}}}]);var e,t,n,r,o,i}(),qx=Kx;function Jx(e){return Jx="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},Jx(e)}function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yx(Object(n),!0).forEach((function(t){Zx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zx(e,t,n){return(t=oR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $x(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return eR(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(eR(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eR(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,eR(f,"constructor",c),eR(c,"constructor",s),s.displayName="GeneratorFunction",eR(c,o,"GeneratorFunction"),eR(f),eR(f,o,"Generator"),eR(f,r,(function(){return this})),eR(f,"toString",(function(){return"[object Generator]"})),($x=function(){return{w:i,m:p}})()}function eR(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}eR=function(e,t,n,r){function i(t,n){eR(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},eR(e,t,n,r)}function tR(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function nR(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tR(i,r,o,a,u,"next",e)}function u(e){tR(i,r,o,a,u,"throw",e)}a(void 0)}))}}function rR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oR(r.key),r)}}function oR(e){var t=function(e){if("object"!=Jx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jx(t)?t:t+""}function iR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iR=function(){return!!e})()}function aR(e){return aR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aR(e)}
2function uR(e,t){return uR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uR(e,t)}var sR={configKey:"isTimingFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},cR=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=aR(t),function(e,t){if(t&&("object"==Jx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,iR()?Reflect.construct(t,n||[],aR(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,r._fontTimingService=n,r._webglService=o.webglService||new WM,r._browserService=o.browserService||new KM,r._CPUTimingService=o.cpuTimingService||new ox,r._animationTimingService=o.animationTimingService||new _x,r._memoryBandwidthService=o.memoryTimingService||new Nx,r._storageTimingService=o.storageTimingService||new qx;var i=o.storageUtils||Ke.StorageUtils;return r._timingCache=o.timingCache||new Mx(i),r._logger=o.logger||pe,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uR(e,t)}(t,e),function(e,t,n){return t&&rR(e.prototype,t),n&&rR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(l=nR($x().m((function e(){var t,n=this;return $x().w((function(e){for(;;)switch(e.n){case 0:if(this._logger.info("[TimingCollector] Starting timing data collection"),!(t=this._timingCache.getStoredTimingData())){e.n=1;break}return this._logger.info("[TimingCollector] Using cached timing data"),this.sendData(t),e.a(2);case 1:this._fontTimingService.setOnNewRecordAvailableCallback((function(){n.collectFontTiming()})),this.collectWebGLTiming(),this.collectBrowserTiming(),this.collectCPUBenchmark(),this.collectAnimationFrameTiming(),this.collectMemoryBandwidthTiming(),this.collectStorageTiming();case 2:return e.a(2)}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"collectWebGLTiming",value:(c=nR($x().m((function e(){var t,n;return $x().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._webglService.collectWebGLTiming();case 1:t=e.v,this._logger.debug("[TimingCollector] WebGL Timing Data collected: "+JSON.stringify(t)),this.sendData({graphicTiming:t}),this._updateCache({graphicTiming:t}),e.n=3;break;case 2:e.p=2,n=e.v,this._logger.error("[TimingCollector] Error during WebGL timing collection:",n);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return c.apply(this,arguments)})},{key:"collectBrowserTiming",value:(s=nR($x().m((function e(){var t;return $x().w((function(e){for(;;)switch(e.n){case 0:try{t=this._browserService.collectBrowserTiming(),this._logger.debug("[TimingCollector] Browser Timing Data collected: "+JSON.stringify(t)),this.sendData({browserTiming:t}),this._updateCache({browserTiming:t})}catch(e){this._logger.error("[TimingCollector] Error during browser timing collection:",e)}case 1:return e.a(2)}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"collectCPUBenchmark",value:(u=nR($x().m((function e(){var t,n;return $x().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._CPUTimingService.runBenchmarks();case 1:t=e.v,this._logger.debug("[TimingCollector] CPU Benchmark Data collected: "+JSON.stringify(t)),this.sendData({cpuTiming:t}),this._updateCache({cpuTiming:t}),e.n=3;break;case 2:e.p=2,n=e.v,this._logger.error("[TimingCollector] Error during CPU benchmark collection:",n);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return u.apply(this,arguments)})},{key:"collectAnimationFrameTiming",value:(a=nR($x().m((function e(){var t,n,r;return $x().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._animationTimingService.getFPS();case 1:t=e.v,n={fps:t},this._logger.debug("[TimingCollector] FPS Data collected: "+JSON.stringify(n)),this.sendData({animationFrameTiming:n}),this._updateCache({animationFrameTiming:n}),e.n=3;break;case 2:e.p=2,r=e.v,this._logger.error("[TimingCollector] Error during FPS collection:",r);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return a.apply(this,arguments)})}
2,{key:"collectMemoryBandwidthTiming",value:(i=nR($x().m((function e(){var t,n;return $x().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._memoryBandwidthService.measureMemoryBandwidth();case 1:t=e.v,this._logger.debug("[TimingCollector] Memory Bandwidth Timing Data collected: "+JSON.stringify(t)),this.sendData({memoryBandwidthTiming:t}),this._updateCache({memoryBandwidthTiming:t}),e.n=3;break;case 2:e.p=2,n=e.v,this._logger.error("[TimingCollector] Error during memory bandwidth timing collection:",n);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return i.apply(this,arguments)})},{key:"collectStorageTiming",value:(o=nR($x().m((function e(){var t,n;return $x().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._storageTimingService.measureAll();case 1:t=e.v,this._logger.debug("[TimingCollector] Storage Timing Data collected: "+JSON.stringify(t)),this.sendData({storageTiming:t}),this._updateCache({storageTiming:t}),e.n=3;break;case 2:e.p=2,n=e.v,this._logger.error("[TimingCollector] Error during storage timing collection:",n);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(){return o.apply(this,arguments)})},{key:"collectFontTiming",value:(r=nR($x().m((function e(){var t;return $x().w((function(e){for(;;)switch(e.n){case 0:try{t=this._fontTimingService.collectFontTiming(),this._logger.debug("[TimingCollector] Font Timing Data collected: "+JSON.stringify(t)),this.sendData({fontTiming:t}),this._updateCache({fontTiming:t})}catch(e){this._logger.error("[TimingCollector] Error during font timing collection:",e)}case 1:return e.a(2)}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_updateCache",value:(n=nR($x().m((function e(t){var n,r,o;return $x().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=this._timingCache.getStoredTimingData()||{},r=Xx(Xx({},n),t),e.n=1,this._timingCache.saveTimingData(r);case 1:e.n=3;break;case 2:e.p=2,o=e.v,this._logger.error("[TimingCollector] Error updating cache:",o);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(e){return n.apply(this,arguments)})},{key:"stopFeature",value:function(){this._logger.info("[TimingCollector] Stopped timing data collection")}},{key:"sendData",value:function(e){this._dataQ.addToQueue("static_fields",["timing",e],!1)}}],[{key:"getDefaultSettings",value:function(){return sR}}]);var n,r,o,i,a,u,s,c,l}(Br),lR=cR;function fR(e){return fR="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},fR(e)}function pR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dR(r.key),r)}}function dR(e){var t=function(e){if("object"!=fR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fR(t)?t:t+""}function yR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yR=function(){return!!e})()}function hR(e){return hR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hR(e)}function mR(e,t){return mR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mR(e,t)}var vR=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=hR(t),function(e,t){if(t&&("object"==fR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yR()?Reflect.construct(t,n||[],hR(e).constructor):t.apply(e,n))}(this,t)).validateParams(e,n),r.detectedFonts=e,r.isContainGoogleVoices=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mR(e,t)}(t,e),function(e,t){return t&&pR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateParams",value:function(e,t){if("string"!=typeof e||"boolean"!=typeof t){var n="wrong type in AgenticBrowserDetect parameters. detectedFonts: {expected: string, received: ".concat(fR(e),"},\n isContainGoogleVoices: {expected: boolean, received: ").concat(fR(t),"}");pe.warn(n)}}},{key:"buildQueueMessage",value:function(){var e=[this.getName(),[this.detectedFonts,this.isContainGoogleVoices]];return this.validateMessage(e),e}},{key:"validateMessage",value:function(e){"string"==typeof e[0]&&Array.isArray(e[1])&&2===e[1].length||pe.warn("AgenticBrowserDetect - Contract verification failed")}},{key:"getName",value:function(){return"agentic_browser_detect"}}])}(im);function bR(e){return bR="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},bR(e)}function gR(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return _R(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(_R(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_R(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,_R(f,"constructor",c),_R(c,"constructor",s),s.displayName="GeneratorFunction",_R(c,o,"GeneratorFunction"),_R(f),_R(f,o,"Generator"),_R(f,r,(function(){return this})),_R(f,"toString",(function(){return"[object Generator]"})),(gR=function(){return{w:i,m:p}})()}function _R(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_R=function(e,t,n,r){function i(t,n){_R(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_R(e,t,n,r)}function wR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return SR(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)?SR(e,t):void 0}}(e,t)||function(){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 SR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kR(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function ER(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){kR(i,r,o,a,u,"next",e)}function u(e){kR(i,r,o,a,u,"throw",e)}a(void 0)}))}}function OR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PR(r.key),r)}}function PR(e){var t=function(e){if("object"!=bR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bR(t)?t:t+""}function TR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TR=function(){return!!e})()}function CR(e){return CR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CR(e)}function jR(e,t){return jR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jR(e,t)}var MR={configKey:"isAgenticBrowserDetectFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!1,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},xR=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=CR(t),function(e,t){if(t&&("object"==bR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,TR()?Reflect.construct(t,n||[],CR(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,o._detectorProvider=n,o._configurationRepository=r,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jR(e,t)}(t,e),function(e,t,n){return t&&OR(e.prototype,t),n&&OR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){pe.info("Starting Agentic Browser Detection Feature"),this._detect().catch((function(e){pe.error("Failed to collect Agentic Browser information: ".concat(e))}))}},{key:"_detect",value:(o=ER(gR().m((function e(){var t,n,r,o,i,a;return gR().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.all([this.getDetectedFonts(),this.isContainGoogleVoices()]);case 1:t=e.v,n=wR(t,2),r=n[0],o=n[1],i=new vR(r.join(","),o),a=i.buildQueueMessage(),this._dataQ.addToQueue("static_fields",a,!1);case 2:return e.a(2)}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"isContainGoogleVoices",value:function(){var e=this;return new Promise((function(t){var n=e._configurationRepository.get(P.speechSynthesisTimeout);if("undefined"!=typeof speechSynthesis){var r=function(){return speechSynthesis.getVoices().some((function(e){return e.name.toLowerCase().includes("google")}))};if(speechSynthesis.getVoices().length>
20)t(r());else{var o=!1,i=setTimeout((function(){o||(o=!0,t(r()))}),n);speechSynthesis.addEventListener("voiceschanged",(function(){o||(o=!0,i&&clearTimeout(i),t(r()))}),{once:!0})}}else t(!1)}))}},{key:"getDetectedFonts",value:(r=ER(gR().m((function e(){var t;return gR().w((function(e){for(;;)switch(e.n){case 0:return t=this.getFontFromConfig(),t=this.fontsToArray(t),e.n=1,this.arrayToFonts(t);case 1:return e.a(2,e.v)}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"arrayToFonts",value:(n=ER(gR().m((function e(t){var n,r;return gR().w((function(e){for(;;)switch(e.n){case 0:return n=this._detectorProvider.getBestDetector(),e.n=1,Promise.all(t.map(function(){var e=ER(gR().m((function e(t){var r,o;return gR().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,r=t,e.n=1,n.detect(t);case 1:return o=e.v,e.a(2,[r,o]);case 2:return e.p=2,e.v,e.a(2,[t,!1])}}),e,null,[[0,2]])})));return function(t){return e.apply(this,arguments)}}()));case 1:return r=e.v,e.a(2,r.filter((function(e){return wR(e,2)[1]})).map((function(e){return wR(e,1)[0]})))}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"fontsToArray",value:function(e){return Array.isArray(e)||(e="string"==typeof e&&e?[e]:[]),e}},{key:"getFontFromConfig",value:function(){var e=this._configurationRepository.get(P.agenticBrowserFonts);if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=[]}return e}}],[{key:"getDefaultSettings",value:function(){return MR}}]);var n,r,o}(Br);function RR(e){return RR="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},RR(e)}function AR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BR(r.key),r)}}function BR(e){var t=function(e){if("object"!=RR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RR(t)?t:t+""}function DR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DR=function(){return!!e})()}function IR(e){return IR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IR(e)}function LR(e,t){return LR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LR(e,t)}var FR={configKey:"isContextPropsFeature",isDefault:!1,shouldRunPerContext:!0,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},NR=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=IR(t),function(e,t){if(t&&("object"==RR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,DR()?Reflect.construct(t,n||[],IR(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,i._domUtils=n,i._perfMonitor=r,i._configurationRepository=o,i._observerCallback=i._observerCallback.bind(i),i.calcTime=i.calcTime.bind(i),i._getEntriesByType=i._getEntriesByType.bind(i),i.callMethod=i._configurationRepository.get(P.useLegacyZeroTimeout)?Ke.asyncCall:Ke.asyncTimeoutCall,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LR(e,t)}(t,e),function(e,t,n){return t&&AR(e.prototype,t),n&&AR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){if(self.screen){var e=window.devicePixelRatio?window.devicePixelRatio:-1,t=window.devicePixelRatio?window.devicePixelRatio:-1;this._shouldCollectStaticFields()&&this._dataQ.addToQueue("static_fields",["display",[screen.colorDepth,screen.width,screen.height,screen.availHeight||-1,screen.availWi
2dth||-1,e,t]],!1)}this.reportPageLoadTime()}},{key:"_shouldCollectStaticFields",value:function(){var e;return(null===(e=this._configurationRepository)||void 0===e?void 0:e.get(P.agentType))!==V.SECONDARY}},{key:"_observerCallback",value:function(e,t){var n=e.getEntries()[0];n.duration&&(this.calcTime(n),"disconnect"in t&&t.disconnect())}},{key:"_isEntrySupportedByBrowser",value:function(e){return!("supportedEntryTypes"in window.PerformanceObserver)||PerformanceObserver.supportedEntryTypes.includes(e)}},{key:"_getEntriesByType",value:function(){if(window.performance.timing&&window.performance.timing.loadEventEnd&&window.performance.timing.navigationStart){var e={duration:window.performance.timing.loadEventEnd-window.performance.timing.navigationStart};this.calcTime(e)}}},{key:"calcTime",value:function(e){Ke.isUndefinedNull(e)?pe.warn("Context Props Feature: no entries of navigation timing were captured"):Ke.isUndefinedNull(e)||!Ke.isUndefinedNull(e.duration)?this._perfMonitor.reportMonitor("t.timeTillPageLoad",Math.round(e.duration)):pe.warn("Context Props Feature: page duration loading was not calculated")}},{key:"reportPageLoadTime",value:function(){if(window.performance&&"PerformanceNavigationTiming"in window){var e="navigation";if(!("PerformanceObserver"in window)||!this._isEntrySupportedByBrowser(e))return void this.reportPageLoadTimeFallback();var t=new PerformanceObserver(this._observerCallback);try{t.observe({type:e,buffered:!0})}catch(e){this.reportPageLoadTimeFallback()}}else this.reportPageLoadTimeFallback()}},{key:"reportPageLoadTimeFallback",value:function(){var e=this;$o.isWindowDocumentReady(window)?this.callMethod.call(this._getEntriesByType):Ke.addEventListener(self,"load",(function(){e.callMethod.call(e._getEntriesByType)}))}}],[{key:"getDefaultSettings",value:function(){return FR}}])}(Br);function UR(e){return UR="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},UR(e)}function GR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WR(r.key),r)}}function WR(e){var t=function(e){if("object"!=UR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=UR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==UR(t)?t:t+""}function QR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QR=function(){return!!e})()}function HR(e){return HR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HR(e)}
2function VR(e,t){return VR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VR(e,t)}var zR={configKey:"isScriptsFeature",isDefault:!1,shouldRunPerContext:!0,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInUns:!0,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},KR=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=HR(t),function(e,t){if(t&&("object"==UR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QR()?Reflect.construct(t,n||[],HR(e).constructor):t.apply(e,n))}(this,t))._dataQ=e,r._timeoutValue=1e3,r._scriptsRepository=n,r._runDetectionLoopBinded=r._runDetectionLoop.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VR(e,t)}(t,e),function(e,t,n){return t&&GR(e.prototype,t),n&&GR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_checkScriptsData",value:function(){for(var e=document.scripts,t=0;t<e.length;t++){var n={src:e[t].src,text:e[t].text};this._scriptsRepository.exists(n)||(this._scriptsRepository.add(n),this._dataQ.addToQueue("scripts",[null,n.src,n.textHash]))}}},{key:"_runDetectionLoop",value:function(){this._checkScriptsData(),this._timer=setTimeout(this._runDetectionLoopBinded,this._timeoutValue),this._timeoutValue<536870911&&(this._timeoutValue*=4)}},{key:"startFeature",value:function(){this._runDetectionLoop()}},{key:"stopFeature",value:function(){this._timer&&clearTimeout(this._timer)}}],[{key:"getDefaultSettings",value:function(){return zR}}])}(Br);function qR(e){return qR="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},qR(e)}function JR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YR(r.key),r)}}function YR(e){var t=function(e){if("object"!=qR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qR(t)?t:t+""}function XR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XR=function(){return!!e})()}function ZR(e){return ZR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZR(e)}function $R(e,t){return $R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$R(e,t)}var eA={configKey:"isFilesFeature",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!0,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},tA=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,n){return t=ZR(t),function(e,t){if(t&&("object"==qR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,XR()?Reflect.construct(t,n||[],ZR(e).constructor):t.apply(e,n))}(this,t))._utils=n,a._configurationRepository=e,a._sessionService=r,a._muidService=o,a._cidCache=i,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$R(e,t)}(t,e),function(e,t,n){return t&&JR(e.prototype,t),n&&JR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getFiles",value:function(){if(this._customerId&&this._muid&&this._sid&&this._addrList&&this._addrList.length>0)for(var e,t=0;t<this._addrList.length;t++)e=this._addrList[t]+"?cid="+this._customerId+"&snum="+this._sid+"&muid="+this._muid,this._utils.getPostUrl(e,"GET",null,null,null),this._isSent=!0}},{key:"startFeature",value:function(){var e;this._isSent=!1;try{this._addrList=JSON.parse(this._configurationRepository.get("getAddrList"))}catch(e){this._addrList=""}this._customerId=this._cidCache.get()||"",this._muid=(null===(e=this._muidService)||void 0===e?void 0:e.muid)||"",this._sid=this._sessionService.sessionId||"",this.getFiles()}},{key:"updateFeatureConfig",value:function(){var e;try{this._addrList=JSON.parse(this._configurationRepository.get("getAddrList"))}catch(e){this._addrList=""}this._customerId=this._cidCache.get()||"",this._muid=(null===(e=this._muidService)||void 0===e?void 0:e.muid)||"",this._sid=this._sessionService.sessionId||"",this._isSent||this.getFiles()}}],[{key:"getDefaultSettings",value:function(){return eA}}])}(Br);function nA(e){return nA="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},nA(e)}function rA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oA(r.key),r)}}function oA(e){var t=function(e){if("object"!=nA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nA(t)?t:t+""}function iA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iA=function(){return!!e})()}function aA(e){return aA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aA(e)}function uA(e,t){return uA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uA(e,t)}var sA={configKey:"isMetadataCollect",isDefault:!0,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInSlave:!0,runInLean:!0,runInUns:!1,isRunning:!1,instance:null},cA=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=aA(t),function(e,t){if(t&&("object"==nA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,iA()?Reflect.construct(t,n||[],aA(e).constructor):t.apply(e,n))}
2(this,t))._configurationRepository=e,i._dataQ=n,i._metaDataSiteMapper=r,i._utils=o,i._metaDataSiteMapper.updateObserver(i.onSiteMapperMatch.bind(i)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uA(e,t)}(t,e),function(e,t,n){return t&&rA(e.prototype,t),n&&rA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._metaDataSiteMapper.initTracking()}},{key:"stopFeature",value:function(){this._metaDataSiteMapper.stopTracking()}},{key:"onSiteMapperMatch",value:function(e){pe.debug("Metadata Collector mapper match - ".concat(JSON.stringify(e))),e.metaVal&&this._dataQ.addToQueue("metadata_map",[null,e.metaVal,this._utils.dateNow()])}},{key:"updateFeatureConfig",value:function(){this._metaDataSiteMapper.onConfigUpdate(this._configurationRepository)}}],[{key:"getDefaultSettings",value:function(){return sA}}])}(Br),lA=null,fA=null,pA=null,dA=null;function yA(e){lA.removeElementEvents(e),lA.addElementEvents(e,!0)}function hA(e){fA.removeElementEvents(e),fA.addElementEvents(e,!0)}function mA(e){pA.removeElementEvents(e),pA.addElementEvents(e,!0)}function vA(e){dA.removeElementEvents(e),dA.addElementEvents(e,!0)}function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bA(Object(n),!0).forEach((function(t){TA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _A(e){return _A="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},_A(e)}function wA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CA(r.key),r)}}function kA(e,t,n){return t&&SA(e.prototype,t),n&&SA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EA=function(){return!!e})()}function OA(e){return OA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OA(e)}function PA(e,t){return PA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PA(e,t)}function TA(e,t,n){return(t=CA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CA(e){var t=function(e){if("object"!=_A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_A(t)?t:t+""}var jA={configKey:"isCrossdomain",isDefault:!1,shouldRunPerContext:!1,shouldRunPerSession:!1,shouldRun:!0,isFrameRelated:!1,runInUns:!1,runInSlave:!1,runInLean:!1,isRunning:!1,instance:null},MA={found:0,new:1},xA=/(?=(child\-src)|(frame\-src))([^;]+)/gi,RA=/http[s]?:\/\/([^\/]+)/gi,AA={resource:null,iframeElement:!1,blockedByCSP:!1,iframeLoaded:!1,ACKMessageSent:!1,ACKMessageRecieved:!1,unavailable:!1},BA=["eventSequence","timestamp","eventType","domainUrl","muid"],DA=function(e){function t(e){var n;return wA(this,t),TA(n=function(e,t,n){return t=OA(t),function(e,t){if(t&&("object"==_A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,EA()?Reflect.construct(t,n||[],OA(e).constructor):t.apply(e,n))}(this,t),"startFeature",(function(e){n._domainsResources=n._configurationRepository.get(P.crossDomainsList),n._crossDomainsTimeout=n._configurationRepository.get(P.crossDomainsTimeout),Array.isArray(n._domainsResources)&&n._domainsResources.length>0&&(n._windowMessageEmitter.startObserver(e),n._domainsResources.forEac
2h((function(e){var t=e.match(RA);if(null!==t&&"string"==typeof t[0]){var r=t[0];if("object"===_A(n._domainsStates[r]))return;n._domainsStates[r]=gA({},AA),n._domainsStates[r].resource=e,n._domains.push(r)}})),Array.isArray(n._domains)&&n._domains.length>0&&(n.isBlockedByCSP(e,n._domains),n._domUtils.onDocumentBody(e.Context,(function(){n.connectDomains(e)}))))})),TA(n,"stopFeature",(function(e){n._clearFeaturesObjects(e)})),TA(n,"_clearFeaturesObjects",(function(e){n._windowMessageEmitter.stopObserver(e),Array.isArray(n._domains)&&n._domains.length>0&&(n._domains.forEach((function(t){n.clearDomElements(e,t)})),n._domains=[],n._domainsStates={})})),TA(n,"connectDomains",(function(e){Array.isArray(n._domains)&&n._domains.length>0&&(n._domains.forEach((function(t){n._domainsStates[t].blockedByCSP||!1!==n._domainsStates[t].iframeElement||n.createIframe(e,t)})),n._domainsTimeoutFunc=setTimeout((function(){n._domains.forEach((function(t){"object"===_A(n._domainsStates[t])&&!1===n._domainsStates[t].ACKMessageRecieved&&!1===n._domainsStates[t].unavailable&&(pe.warn("Cross Domain feature - domain ".concat(t," is unavailable")),n._domainsStates[t].unavailable=!0,n.clearDomElements(e,t))}))}),n._crossDomainsTimeout))})),TA(n,"createIframe",(function(e,r){var o=e.getDocument().createElement("iframe");o.onload=function(){n.postNextMessage(r)},o.id=Go+t.generateRandomID(),o.src=n._domainsStates[r].resource,o.style.display="none",o.style.opacity="0",o.style.width="1px",o.style.height="1px",e.getDocument().body.appendChild(o),n._domainsStates[r].iframeElement=o})),TA(n,"clearDomElements",(function(e,t){var r=n._domainsStates[t].iframeElement;"object"===_A(r)&&null!==e.getDocument().getElementById(n._domainsStates[t].iframeElement.id)&&e.getDocument().body.removeChild(r)})),TA(n,"postNextMessage",(function(e){if(!n._domainsStates[e].ACKMessageRecieved&&n._domainsStates[e].iframeElement){var t={muid:n._generatedMUID};n._domainsStates[e].iframeElement.contentWindow.postMessage(JSON.stringify(t),e),n._domainsStates[e].ACKMessageSent=!0}})),TA(n,"isBlockedByCSP",(function(e,t){if(!Array.isArray(t)||t.length<1)throw new Error("Domains are expected for content security policy assertion");var r=!1;[].slice.call(e.getDocument().getElementsByTagName("meta")).forEach((function(e){if("Content-Security-Policy"===e.getAttribute("http-equiv")){r=!0;var o=e.getAttribute("content").match(xA);t.forEach((function(e){o&&-1===o[0].indexOf(e)&&"object"===_A(n._domainsStates[e])&&(n._domainsStates[e].blockedByCSP||pe.warn("Cross Domain feature - domain ".concat(e," is blocked by CSP")),n._domainsStates[e].blockedByCSP=!0)}))}if(r)return!1}))})),TA(n,"windowMessageHandler",(function(e){var t=e.message.origin;if(n._domainsStates.hasOwnProperty(t)){if(!0===n._domainsStates[t].ACKMessageRecieved)return;n._domainsStates[t].ACKMessageRecieved=!0,n.clearDomElements(new vi(e.message.currentTarget,n._domUtils),t);var r=e.message.data;n.sendToQueue(t,r)}})),TA(n,"sendToQueue",(function(e,t){var r=e.replace(/http[s]?:\/\//i,"");"object"===_A(t.found)&&Object.keys(t.found).forEach((function(e){var o=n._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=r,a=t.found[e].split("__"),u={eventType:n._eventType.found,eventSequence:o,domainUrl:i,muid:a[0],timestamp:a[1]};n._dataQ.addToQueue("crossmuid_event",n._utils.convertToArrayByMap(BA,u),!0)})),"object"===_A(t.new)&&Object.keys(t.new).forEach((function(e){var o=n._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=r,a=t.new[e].split("__"),u={eventType:n._eventType.new,eventSequence:o,domainUrl:i,muid:a[0],timestamp:a[1]};n._dataQ.addToQueue("crossmuid_event",n._utils.convertToArrayByMap(BA,u))})),"object"===_A(t.error_message)&&pe.warn("Cross Domain feature - domain ".concat(r," error. Error Message: \n ").concat(t.error_message," Code: ").concat(t.error_code))})),TA(n,"updateFeatureConfig",(function(e){n._domainsResources=n._configurationRepository.get(P.crossDomainsList),n._crossDomainsTimeout=n._configurationRepository.get(P.crossDomainsTimeout),clearTimeout(n._domainsTimeoutFunc),n._domainsTimeoutFunc=null,n.updateDomainStates(e)})),TA(n,"updateDomainStates",(function(e){Array.isArray(n._domainsResources)&&n._domainsResources.length>
20&&(n._domains=[],n._domainsResources.forEach((function(e){var t=e.match(RA);if(null!==t&&"string"==typeof t[0]){var r=t[0];"object"!==_A(n._domainsStates[r])&&(n._domainsStates[r]=gA({},AA),n._domainsStates[r].resource=e),n._domains.push(r)}})),Array.isArray(n._domains)&&n._domains.length>0&&(n.isBlockedByCSP(e,n._domains),n._domUtils.onDocumentBody(e.Context,(function(){n.connectDomains(e)}))))})),n._configurationRepository=e.configurationRepository,n._dataQ=e.dataQ,n._utils=e.utils,n._domUtils=e.domUtils,n._eventType=e.eventType,n._messageBus=e.messageBus,n._windowMessageEmitter=e.windowMessageEventEmitter,n._messageBus.subscribe(br,n.windowMessageHandler),n._generatedMUID=n._utils.dateNow()+"-"+n._utils.generateUUID().toUpperCase(),n._domainsStates={},n._domainsResources=[],n._domains=[],n._domainsTimeoutFunc=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PA(e,t)}(t,e),kA(t,null,[{key:"getDefaultSettings",value:function(){return jA}},{key:"Builder",get:function(){return kA((function e(t,n,r,o,i){wA(this,e),this.configurationRepository=t,this.dataQ=n,this.utils=r,this.domUtils=o,this.eventType=i}),[{key:"withMessageBus",value:function(e){return this.messageBus=e,this}},{key:"withWindowMessageEventEmitter",value:function(e){return this.windowMessageEventEmitter=e,this}},{key:"build",value:function(){return new t(this)}}])}},{key:"generateRandomID",value:function(){for(var e="",t=0;t<16;t++)e+="abcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(36*Math.random()));return e}}])}(Br),IA=DA;function LA(e){return LA="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},LA(e)}function FA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NA(r.key),r)}}function NA(e){var t=function(e){if("object"!=LA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LA(t)?t:t+""}var UA=function(e,t){return t&&FA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"getEventTimestamp",value:function(){return Ke.dateNow()}},{key:"getTimestampFromEvent",value:function(e){return e.timeStamp?Ke.cutDecimalPointDigits(e.timeStamp,3):0}},{key:"updateFeatureConfig",value:function(){}},{key:"processElements",value:function(e,t,n){var r=this;e.forEach((function(e){r.processElement(e,t,n)}))}},{key:"processElement",value:function(e,t,n){var r=n.isListed(e);r&&!t?n.resendElementPerContext(e):r||n.getElement(e)}}]);function GA(e){return GA="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},GA(e)}function WA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KA(r.key),r)}}function QA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QA=function(){return!!e})()}function HA(e){return HA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HA(e)}function VA(e,t){return VA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VA(e,t)}function zA(e,t,n){return(t=KA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KA(e){var t=function(e){if("object"!=GA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=GA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==GA(t)?t:t+""}var qA="input:not([type='color']):not([type='hidden']):not([type='file']):not([type='image']):not([type='button']):not([type='radio']):not([type='checkbox']), textarea",JA=function(e,t,n){return{applyAction:function(r,o,i){if
2(!["start","stop"].includes(o))return!1;r.traverseElements(qA,t,n,(function(t){e[o](t,r.Context,i)}))}}},YA=function(e){function t(e,n,r,o,i,a,u,s,c,l,f){var p;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zA(p=function(e,t,n){return t=HA(t),function(e,t){if(t&&("object"==GA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QA()?Reflect.construct(t,n||[],HA(e).constructor):t.apply(e,n))}(this,t),"handleInputEvents",(function(e){"InputEvent"===e.constructor.name&&p._inputEventsPerElement.set(e.target,{});var t=e.target.value||"";""!==t&&(t=p._maskingService.maskText(t,e.target.id)),p._sendToQueue(e,{length:t?t.length:0,elementValues:t,selected:-1})})),zA(p,"handleFocusBlurEvents",(function(e){p._sendToQueue(e,{length:0,selected:-1,elementValues:""})})),zA(p,"handleSyntheticInputEvents",(function(e){if(!p._inputEventsPerElement.has(e.target)||void 0!==e.jQueryMask&&("autotab"===e.jQueryMask||"prasleyValidator"===e.jQueryMask)){var t=e.target.value||"";""!==t&&(t=p._maskingService.maskText(t,e.target.id)),p._sendToQueue(e,{length:t?t.length:0,elementValues:t,selected:-1})}})),p._elements=e,p._sendToQueue=n,p._messageBus=o,p._CDUtils=r,p._StandardInputEventsEmitter=i,p._SyntheticMaskInputEventsHandler=a,p._SyntheticAutotabInputEventsHandler=u,p._maskingService=s,p._categoryService=c,p._inputEventsPerElement=new WeakMap,p._maxShadowDepth=l,p._iframeLoadingTimeout=f,p}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VA(e,t)}(t,e),function(e,t){return t&&WA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"bind",value:function(e){this._messageBus.subscribe(Zn,this.handleInputEvents),this._messageBus.subscribe($n,this.handleFocusBlurEvents),this._messageBus.subscribe(er,this.handleFocusBlurEvents),this._messageBus.subscribe(ar,this.handleSyntheticInputEvents),JA(this._StandardInputEventsEmitter,this._maxShadowDepth,this._iframeLoadingTimeout).applyAction(e,"start"),JA(this._SyntheticMaskInputEventsHandler,this._maxShadowDepth,this._iframeLoadingTimeout).applyAction(e,"start"),JA(this._SyntheticAutotabInputEventsHandler,this._maxShadowDepth,this._iframeLoadingTimeout).applyAction(e,"start")}},{key:"unbind",value:function(e){JA(this._StandardInputEventsEmitter,this._maxShadowDepth,this._iframeLoadingTimeout).applyAction(e,"stop"),JA(this._SyntheticMaskInputEventsHandler,this._maxShadowDepth,this._iframeLoadingTimeout).applyAction(e,"stop"),JA(this._SyntheticAutotabInputEventsHandler,this._maxShadowDepth,this._iframeLoadingTimeout).applyAction(e,"stop"),this._messageBus.unsubscribe(Zn,this.handleInputEvents),this._messageBus.unsubscribe($n,this.handleFocusBlurEvents),this._messageBus.unsubscribe(er,this.handleFocusBlurEvents),this._messageBus.unsubscribe(ar,this.handleSyntheticInputEvents)}},{key:"addOnLoadInputData",value:function(e,t){var n=this;e.traverseElements(qA,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){n.processElement(e,t,n._elements)}))}}])}(UA),XA=YA;function ZA(e){return ZA="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},ZA(e)}function $A(e){return function(e){if(Array.isArray(e))return eB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eB(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)?eB(e,t):void 0}}(e)||function(){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 eB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iB(r.key),r)}}function nB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nB=function(){return!!e})()}
2function rB(e){return rB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rB(e)}function oB(e,t){return oB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oB(e,t)}function iB(e){var t=function(e){if("object"!=ZA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZA(t)?t:t+""}var aB=function(e){function t(e,n,r,o,i,a,u,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=iB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(c=function(e,t,n){return t=rB(t),function(e,t){if(t&&("object"==ZA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nB()?Reflect.construct(t,n||[],rB(e).constructor):t.apply(e,n))}(this,t),"handleInputEvents",(function(e){var t,n,r,o,i,a,u="",s=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,null===(n=c._inputElementSettings)||void 0===n?void 0:n.elementDataAttribute);if(s)u=s;else if(null!=e&&null!==(r=e.target)&&void 0!==r&&r.ariaValueNow)u=e.target.ariaValueNow;else if(null!=e&&null!==(o=e.target)&&void 0!==o&&o.value){var l;u=null===(l=e.target)||void 0===l?void 0:l.value}else if(null!=e&&e[null===(i=c._inputElementSettings)||void 0===i?void 0:i.elementDataAttribute]){var f;u=e[null===(f=c._inputElementSettings)||void 0===f?void 0:f.elementDataAttribute]}""!==u&&(u=c._maskingService.maskText(u,e.id)),""!==u&&c._sendToQueue(e,{length:(null===(a=u)||void 0===a?void 0:a.length)||0,elementValues:u,selected:-1})})),c._elements=e,c._sendToQueue=n,c._CDUtils=r,c._messageBus=o,c._StandardCustomInputEmitter=i,c._maskingService=a,c._inputElementSettings=u,c._elementsFromDoc={mainElement:"",customButtons:[]},c._categoryService=s,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oB(e,t)}(t,e),function(e,t){return t&&tB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"bind",value:function(e){var t,n,r,o;if(null!==(t=this._inputElementSettings)&&void 0!==t&&t.parentElementSelector||null!==(n=this._inputElementSettings)&&void 0!==n&&n.childElementWithCustomAttribute){var i=e.getDocument();this._messageBus.subscribe(wr,this.handleInputEvents);var a=[null===(r=this._elementsFromDoc)||void 0===r?void 0:r.mainElement].concat($A(this._elementsFromDoc.customButtons));""===(null===(o=this._elementsFromDoc)||void 0===o?void 0:o.mainElement)&&this.getSelectElementsFromDoc(i),this.addListenersBySelector(a)}}},{key:"unbind",value:function(e){var t,n,r,o;if(null!==(t=this._inputElementSettings)&&void 0!==t&&t.parentElementSelector||null!==(n=this._inputElementSettings)&&void 0!==n&&n.childElementWithCustomAttribute){var i=e.getDocument();this._messageBus.subscribe(wr,this.handleInputEvents);var a=[null===(r=this._elementsFromDoc)||void 0===r?void 0:r.mainElement].concat($A(this._elementsFromDoc.customButtons));""===(null===(o=this._elementsFromDoc)||void 0===o?void 0:o.mainElement)&&this.getSelectElementsFromDoc(i),this.removeListenersBySelector(a)}}},{key:"getSelectElementsFromDoc",value:function(e){var t,n,r,o=this,i=e.querySelector("body"),a=e.querySelector(null===(t=this._inputElementSettings)||void 0===t?void 0:t.childElementWithCustomAttribute);return i&&(a&&(this._elementsFromDoc.mainElement=a),null!==(n=this._inputElementSettings)&&void 0!==n&&n.customButtons&&(null===(r=this._inputElementSettings)||void 0===r||r.customButtons.forEach((function(t){var n=e.querySelector(t);n&&o._elementsFromDoc.customButtons.push(n)})))),this._elementsFromDoc}},{key:"addListenersBySelector",value:function(e){var t;null!==(t=this._elementsFromDoc)&&void 0!==t&&t.mainElement&&e.length>=1&&this._StandardCustomInputEmitter.start(e)}},{key:"removeListenersBySelector",value:function(e){var t;null!==(t=this._elementsFromDoc)&&void 0!==t&&t.mainElement&&e.length>=1&&this._StandardCustomInputEmitter.stop(e),this._elementsFromDoc={mainElement:"",customButtons:[]}}},{key:"addOnLoadInputData",value:function(e,t){var n,r,o,i,a,u=this;if(null!==(n=this._inputElementSettings)&&void 0!==n&&n.parentElementSelector||null!==(r=this._inputElementSettings)&&void 0!==r&&r.childElementWithCustomAttribute){var s=e.getDocument(),c=[null===(o=this._elementsFromDoc)||void 0===o?void 0:o.mainElement].concat($A(this._elementsFromDoc.customButtons));""===(null===(i=this._elementsFromDoc)||void 0===i?void 0:i.mainElement)&&this.get
2SelectElementsFromDoc(s),null!==(a=this._elementsFromDoc)&&void 0!==a&&a.mainElement&&c.length>=1&&c.forEach((function(e){u._elements.isListed(e)?t||u._elements.resendElementPerContext(e):u._elements.getElement(e,!1)}))}}}])}(UA),uB=aB;function sB(e){return sB="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},sB(e)}function cB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dB(r.key),r)}}function lB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lB=function(){return!!e})()}function fB(e){return fB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fB(e)}function pB(e,t){return pB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pB(e,t)}function dB(e){var t=function(e){if("object"!=sB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sB(t)?t:t+""}var yB="input[type='button'], input[type='radio'], input[type='checkbox'], button",hB=function(e){function t(e,n,r,o,i,a,u,s,c){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=dB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(l=function(e,t,n){return t=fB(t),function(e,t){if(t&&("object"==sB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lB()?Reflect.construct(t,n||[],fB(e).constructor):t.apply(e,n))}(this,t),"handleOnClickEvents",(function(e){var t=e.target,n=t.value||t.innerHTML||"";n=l._maskingService.maskText(n,e.target.id),l._sendToQueue(e,{length:n.length,elementValues:n,selected:void 0===t.checked?-1:t.checked?1:0})})),l._elements=u,l._sendToQueue=e,l._CDUtils=n,l._messageBus=r,l._StandardOnClickEventsEmitter=i,l._configurationRepository=o,l._enableElementHierarchy=o.get(P.enableElementHierarchy),l._enableElementCategory=o.get(P.enableElementCategory),l._maskingService=a,l._maxShadowDepth=s,l._iframeLoadingTimeout=c,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pB(e,t)}(t,e),function(e,t){return t&&cB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"bind",value:function(e){var t=this;this._messageBus.subscribe(tr,this.handleOnClickEvents),e.traverseElements(yB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._StandardOnClickEventsEmitter.start(e)}))}},{key:"unbind",value:function(e){var t=this;this._messageBus.unsubscribe(tr,this.handleOnClickEvents),e.traverseElements(yB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._StandardOnClickEventsEmitter.stop(e)}))}},{key:"addOnLoadInputData",value:function(e,t){var n=this;(this._enableElementHierarchy||this._enableElementCategory)&&e.traverseElements(yB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){n.processElement(e,t,n._elements)}))}}])}(UA),mB=hB;function vB(e){return vB="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},vB(e)}function bB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kB(r.key),r)}}function gB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gB=function(){return!!e})()}
2function _B(e){return _B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_B(e)}function wB(e,t){return wB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wB(e,t)}function SB(e,t,n){return(t=kB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kB(e){var t=function(e){if("object"!=vB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vB(t)?t:t+""}var EB="select",OB=function(e){function t(e,n,r,o,i,a,u,s,c,l){var f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),SB(f=function(e,t,n){return t=_B(t),function(e,t){if(t&&("object"==vB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gB()?Reflect.construct(t,n||[],_B(e).constructor):t.apply(e,n))}(this,t),"handleOnChangeEvents",(function(e){var t=f._CDUtils.getDropDownListValues(e.target,f._maskingService).join(";");t=f._CDUtils.clearTextFromNumbers(t);var n=e.target.selectedIndex,r=e.target.value.length;f._sendToQueue(e,{length:r,selected:n,elementValues:t})})),SB(f,"handleBlurEvent",(function(e){f._sendToQueue(e,{length:0,selected:-1,elementValues:""})})),SB(f,"handleFocusEvent",(function(e){f._sendToQueue(e,{length:0,selected:-1,elementValues:""})})),f._sendToQueue=e,f._CDUtils=n,f._messageBus=r,f._StandardOnChangeEventsEmitter=o,f._elementFocusEventEmitter=i,f._elementBlurEventEmitter=a,f._configurationRepository=u,f._collectSelectElementBlurAndFocusEvents=f._configurationRepository.get(P.collectSelectElementBlurAndFocusEvents),f._maskingService=s,f._maxShadowDepth=c,f._iframeLoadingTimeout=l,f}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wB(e,t)}(t,e),function(e,t){return t&&bB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"bind",value:function(e){var t=this;this._messageBus.subscribe(nr,this.handleOnChangeEvents),this._messageBus.subscribe(rr,this.handleFocusEvent),this._messageBus.subscribe(or,this.handleBlurEvent),e.traverseElements(EB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._StandardOnChangeEventsEmitter.start(e),t._collectSelectElementBlurAndFocusEvents&&(t._elementFocusEventEmitter.start(e),t._elementBlurEventEmitter.start(e))}))}},{key:"unbind",value:function(e){var t=this;e.traverseElements(EB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._StandardOnChangeEventsEmitter.stop(e),t._elementFocusEventEmitter.stop(e),t._elementBlurEventEmitter.stop(e)})),this._messageBus.unsubscribe(nr,this.handleOnChangeEvents),this._messageBus.unsubscribe(rr,this.handleFocusEvent),this._messageBus.unsubscribe(or,this.handleBlurEvent)}},{key:"updateSettings",value:function(e){var t=this;this._collectSelectElementBlurAndFocusEvents=this._configurationRepository.get(P.collectSelectElementBlurAndFocusEvents),this._collectSelectElementBlurAndFocusEvents||e.traverseElements(EB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._elementFocusEventEmitter.stop(e),t._elementBlurEventEmitter.stop(e)}))}}])}(UA),PB=OB;function TB(e){return TB="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},TB(e)}function CB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RB(r.key),r)}}function jB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jB=function(){return!!e})()}
2function MB(e){return MB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MB(e)}function xB(e,t){return xB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xB(e,t)}function RB(e){var t=function(e){if("object"!=TB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=TB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==TB(t)?t:t+""}var AB="form",BB=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=RB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(a=function(e,t,n){return t=MB(t),function(e,t){if(t&&("object"==TB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jB()?Reflect.construct(t,n||[],MB(e).constructor):t.apply(e,n))}(this,t),"handleOnFormEvents",(function(e){pe.trace("ElementEvents:_onFormSubmitEvent"),a._sendToQueue(e,{length:0,selected:-1,elementValues:""})})),a._sendToQueue=e,a._messageBus=n,a._StandardOnFormEventsEmitter=r,a._maxShadowDepth=o,a._iframeLoadingTimeout=i,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xB(e,t)}(t,e),function(e,t){return t&&CB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"bind",value:function(e){var t=this;e.traverseElements(AB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._StandardOnFormEventsEmitter.start(e)})),this._messageBus.subscribe(ir,this.handleOnFormEvents)}},{key:"unbind",value:function(e){var t=this;e.traverseElements(AB,this._maxShadowDepth,this._iframeLoadingTimeout,(function(e){t._StandardOnFormEventsEmitter.stop(e)})),this._messageBus.unsubscribe(ir,this.handleOnFormEvents)}}])}(UA),DB=BB;function IB(e){return IB="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},IB(e)}function LB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FB(r.key),r)}}function FB(e){var t=function(e){if("object"!=IB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=IB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==IB(t)?t:t+""}var NB=function(e,t){return t&&LB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"detectPrivateMode",value:function(e){this._isWebkitBrowser()?this._detectPrivateBrowsingOnWebkit(e):this._isMozillaBrowser()?this._detectPrivateBrowsingOnMozilla(e):this._isIE10OrLater(globalThis.navigator.userAgent)?this._detectPrivateBrowsingOnIESinceVersion10(e):globalThis.localStorage&&/Safari/.test(globalThis.navigator.userAgent)?this._detectPrivateBrowsingOnSafari(e):e(null)}},{key:"_isWebkitBrowser",value:function(){return!!globalThis.webkitRequestFileSystem}},{key:"_isMozillaBrowser",value:function(){return"MozAppearance"in document.documentElement.style}},{key:"_isIE10OrLater",value:function(e){var t=e.toLowerCase();if(0===t.indexOf("msie")&&0===t.indexOf("trident"))return!1;var n=/(?:msie|rv:)\s?([\d.]+)/.exec(t);if(n&&Number.parseInt(n[1],10)>=10)return!0;if((n="documentElement"in document&&("filters"in document.documentElement||"documentMode"in document))&&document.documentMode&&Number.parseFloat((t.match(/.+(?:ie|rv)[/: ]([\d.]+)/)||[])[1])>=10)return!0;n=/edge/.test(t);var r=!!t.match(/trident\/7\./);return!!((n||r)&&Number.parseFloat((t.match(/.+(?:edge|rv)[/: ]([\d.]+)/)||[])[1])>=10)}},{key:"_detectPrivateBrowsingOnWebkit",value:function(e){void 0!==navigator.storage&&"function"==typeof navigator.storage.estimate?this._storageEstimateDetectionOnWebkit(e):this._fileSystemDetectionOnWebkit(e)}},{key:"_fileSystemDetectionOnWebkit",value:function(e){globalThis.webkitRequestFileSystem(globalThis.TEMPORARY,1,(function(){e(!1)}),(function(){e(!0)}))}},{key:"_storageEstimateDetectionOnWebkit",value:function(e){navigator.storage.estimate().then((function(t){var n=t.quota;e(n<12e7)})).catch((function(t){pe.warn("failed to detect private browsing",t),e(null)}))}},{key:"_detectPrivateBrowsingOnMozilla",value:function(e){try{var t=(indexedDB||globalThis.indexedDB).open("test");t.onerror=function(){e(!0)},t.onsuccess=function(){e(!1)}}catch(t){Error,e(!0)}}},{key:"_detectPrivateBrowsingOnIESinceVersion10",value:function(e){var t=!1;try{globalThis.indexedDB||(t=!0)}catch(e){Error,t=!0}e(t)}},{key:"_detectPrivateBrowsingOnSafari",value:function(e){var t;try{globalThis.openDatabase(null,null,null,null)}catch(e){Error,t=!0}try{globalThis.localStorage.setItem("test",1)}catch(e){Error,t=!0}t||(t=!1,globalThis.localStorage.removeItem("test")),e(t)}}]);function UB(e){return UB="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},UB(e)}function GB(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return WB(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(WB(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,WB(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,WB(f,"constructor",c),WB(c,"constructor",s),s.displayName="GeneratorFunction",WB(c,o,"GeneratorFunction"),WB(f),WB(f,o,"Generator"),WB(f,r,(function(){return this})),WB(f,"toString",(function(){return"[object Generator]"})),(GB=function(){return{w:i,m:p}})()}function WB(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}WB=function(e,t,n,r){function i(t,n){WB(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},WB(e,t,n,r)}function QB(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function HB(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){QB(i,r,o,a,u,"next",e)}function u(e){QB(i,r,o,a,u,"throw",e)}a(void 0)}))}}function VB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zB(r.key),r)}}function zB(e){var t=function(e){if("object"!=UB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=UB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==UB(t)?t:t+""}var KB=function(){return function(e,t){return t&&VB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._window=null!==(t=o.window)&&void 0!==t?t:globalThis,this._navigator=null!==(n=o.navigator)&&void 0!==n?n:navigator,this._document=null!==(r=o.document)&&void 0!==r?r:document}),[{key:"detectIncognitoMode",value:(y=HB(GB().m((function e(){return GB().w((function(e){for(;;)if(0===e.n)return e.a(2,this._detectIncognitoModePromise())}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"_detectIncognitoModePromise",value:(d=HB(GB().m((function e(){var t,n,r;return GB().w((function(e){for(;;)switch(e.n){case 0:return t=[{key:"navigatorLanguages",promise:this._checkNavigatorLanguagesLength()},{key:"performanceMemory",promise:this._checkPerformanceMemoryAvailability()},{key:"localStorage",promise:this._checkLocalStorageAccess()},{key:"screenResolution",promise:this._checkScreenWidthEquality()},{key:"webSQLDatabase",promise:this._checkWebSQLDatabaseAccess()},{key:"indexedDBExistence",promise:this._checkIndexedDBExistence()},{key:"fileSystemAPI",promise:this._checkFileSystemAPIAccess()},{key:"storageQuota",promise:this._checkStorageQuotaLimits()},{key:"indexedDBOperations",promise:this._checkIndexedDBOperations()},{key:"storageDirectory",promise:this._checkStorageDirectoryAccess()},{key:"indexedDBBlob",promise:this._checkIndexedDBBlobCreation()},{key:"webkitStorageQuota",promise:this._checkWebkitTemporaryStorage()},{key:"storageDirectoryOrIndexedDB",promise:this._checkStorageDirectoryOrIndexedDB()}],e.n=1,Promise.allSettled(t.map((function(e){return e.promise})));case 1:return n=e.v,r={},t.forEach((function(e,t){var o=n[t];r[e.key]="fulfilled"===o.status?o.value:null})),e.a(2,r)}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"_checkFileSystemAPIAccess",value:(p=HB(GB().m((function e(){var t=this;return GB().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){if(t._window.webkitRequestFileSystem)try{t._window.webkitRequestFileSystem(t._window.TEMPORARY,1,(function(){e(!1)}),(function(){e(!0)}))}catch(t){Error,e(!0)}else e(null)})))}),e)}))),function(){return p.apply(this,arguments)})},{key:"_checkStorageQuotaLimits",value:(f=HB(GB().m((function e(){var t,n,r,o;return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if(this._navigator.storage&&this._navigator.storage.estimate){e.n=1;break}return e.a(2,null);case 1:return e.p=1,e.n=2,this._navigator.storage.estimate();case 2:if(t=e.v,!(this._window.performance&&this._window.performance.memory&&this._window.performance.memory.jsHeapSizeLimit)){e.n=3;break}return n=this._window.performance.memory.jsHeapSizeLimit,r=t.quota<.8*n,e.a(2,r);case 3:return o=t.quota<12e7,e.a(2,o);case 4:return e.p=4,e.v,Error,e.a(2,null)}}),e,this,[[1,4]])}))),function(){return f.apply(this,arguments)})},{key:"_checkNavigatorLanguagesLength",value:(l=HB(GB().m((function e(){var t;return GB().w((function(e){for(;;)switch(e.n){case 0:if(this._navigator.languages&&Array.isArray(this._navigator.languages)
2){e.n=1;break}return e.a(2,null);case 1:return t=1===this._navigator.languages.length&&this._navigator.languages[0]===this._navigator.language,e.a(2,t)}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"_checkPerformanceMemoryAvailability",value:(c=HB(GB().m((function e(){var t;return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,this._window.performance){e.n=1;break}return e.a(2,null);case 1:if(t=this._window.performance.memory){e.n=2;break}return e.a(2,!0);case 2:return e.a(2,0===t.totalJSHeapSize);case 3:return e.p=3,e.v,Error,e.a(2,!0)}}),e,this,[[0,3]])}))),function(){return c.apply(this,arguments)})},{key:"_checkLocalStorageAccess",value:(s=HB(GB().m((function e(){var t;return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if(this._window.localStorage){e.n=1;break}return e.a(2,null);case 1:return e.p=1,t="__private_browsing_test__",this._window.localStorage.setItem(t,"1"),this._window.localStorage.removeItem(t),e.a(2,!1);case 2:return e.p=2,e.v,Error,e.a(2,!0)}}),e,this,[[1,2]])}))),function(){return s.apply(this,arguments)})},{key:"_checkScreenWidthEquality",value:(u=HB(GB().m((function e(){return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!this._window.screen||this._window.screen.width!==this._document.documentElement.clientWidth){e.n=1;break}return e.a(2,!0);case 1:e.n=3;break;case 2:return e.p=2,e.v,Error,e.a(2,!0);case 3:return e.a(2,null)}}),e,this,[[0,2]])}))),function(){return u.apply(this,arguments)})},{key:"_checkWebSQLDatabaseAccess",value:(a=HB(GB().m((function e(){return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if(this._window.openDatabase){e.n=1;break}return e.a(2,null);case 1:return e.p=1,this._window.openDatabase(null,null,null,null),e.a(2,!1);case 2:return e.p=2,e.v,Error,e.a(2,!0)}}),e,this,[[1,2]])}))),function(){return a.apply(this,arguments)})},{key:"_checkIndexedDBExistence",value:(i=HB(GB().m((function e(){return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,this._window.indexedDB){e.n=1;break}return e.a(2,!0);case 1:e.n=3;break;case 2:return e.p=2,e.v,Error,e.a(2,!0);case 3:return e.a(2,null)}}),e,this,[[0,2]])}))),function(){return i.apply(this,arguments)})},{key:"_checkIndexedDBOperations",value:(o=HB(GB().m((function e(){var t=this;return GB().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){if(t._window.indexedDB)try{var n=t._window.indexedDB,r=n.open("__private_browsing_test__");r.onerror=function(){e(!0)},r.onsuccess=function(){r.result&&r.result.close();var t=n.deleteDatabase("__private_browsing_test__");t.onsuccess=function(){e(!1)},t.onerror=function(){e(!0)}}}catch(t){Error,e(!0)}else e(null)})))}),e)}))),function(){return o.apply(this,arguments)})},{key:"_checkStorageDirectoryAccess",value:(r=HB(GB().m((function e(){var t,n,r,o;return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if("function"==typeof(null===(t=this._navigator.storage)||void 0===t?void 0:t.getDirectory)){e.n=1;break}return e.a(2,null);case 1:return e.p=1,e.n=2,this._navigator.storage.getDirectory();case 2:return e.a(2,!1);case 3:return e.p=3,o=e.v,n=o instanceof Error&&"string"==typeof o.message?o.message:String(o),r=n.includes("unknown transient reason"),e.a(2,r)}}),e,this,[[1,3]])}))),function(){return r.apply(this,arguments)})},{key:"_checkIndexedDBBlobCreation",value:(n=HB(GB().m((function e(){var t=this;return GB().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){if(t._window.indexedDB){var n=String(Math.random());try{var r=t._window.indexedDB.open(n,1);r.onupgradeneeded=function(r){var o=r.target.result,i=function(t){e(t)};try{o.createObjectStore("t",{autoIncrement:!0}).put(new Blob),i(!1)}catch(e){(e instanceof Error&&"string"==typeof e.message?e.message:String(e)).includes("are not yet supported")?i(!0):i(!1)}finally{o.close(),t._window.indexedDB.deleteDatabase(n)}},r.onerror=function(){return e(!1)}}catch(t){e(!1)}}else e(null)})))}),e)}))),function(){return n.apply(this,arguments)})},{key:"_getQuotaLimit",value:function(){var e,t,n=this._window;return null!==(e=null==n||null===(t=n.performance)||void 0===t||null===(t=t.memory)||void 0===t?void 0:t.jsHeapSizeLimit)&&void 0!==e?e:1073741824}},{key:"_checkWebkitTemporaryStorage",value:(t=HB(GB().m((function e(){var t=this;return GB().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){t._navigator.webkitTemporaryStorage&&"function"==typeof t._navigator.webkitTemporaryStorage.queryUsageAndQuota?t._navigator.webkitTemporaryStorage.queryUsageAndQuota((function(n,r){var o=Math.round(r/1048576),i=2*Math.round(t._getQuotaLimit()/1048576);e(o<i)}),(function(t){e(null)})):e(null)})))}),e)}))),function(){return t.apply(this,arguments)})},{key:"_checkStorageDirectoryOrIndexedDB",value:(e=HB(GB().m((function e(){var t,n,r,o,i=this;return GB().w((function(e){for(;;)switch(e.p=e.n){case 0:if("function"!=typeof(null===(t=this._navigator.storage)||void 0===t?void 0:t.getDirectory)){e.n=4;break}return e.p=1,e.n=2,this._navigator.storage.getDirectory();case 2:return e.a(2,!1);case 3:return e.p=3,o=e.v,n=o instanceof Error&&"string"==typeof o.message?o.message:String(o),r=n.includes("Security error"),e.a(2,r);case 4:return e.a(2,new Promise((function(e){if(i._window.indexedDB)try{var t=i._window.indexedDB.open("inPrivate");t.onerror=function(n){t.error&&"InvalidStateError"===t.error.name&&n.preventDefault(),e(!0)},t.onsuccess=function(){i._window.indexedDB.deleteDatabase("inPrivate"),e(!1)}}catch(t){Error,e(null)}else e(null)})))}}),e,this,[[1,3]])}
2))),function(){return e.apply(this,arguments)})}]);var e,t,n,r,o,i,a,u,s,c,l,f,p,d,y}();function qB(e){return qB="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},qB(e)}function JB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YB(r.key),r)}}function YB(e){var t=function(e){if("object"!=qB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qB(t)?t:t+""}var XB=function(e,t,n){return n&&JB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),0,[{key:"getPointerHover",value:function(){var e={pointer:5,hover:5};if(window.matchMedia){var t=window.matchMedia;t("( any-pointer: fine )").matches?e.pointer=1:t("( any-pointer: coarse )").matches?e.pointer=2:t("( any-pointer: none )").matches?e.pointer=3:t("( any-pointer )").matches&&(e.pointer=4),t("( any-hover: hover )").matches?e.hover=1:t("( any-hover: on-demand )").matches?e.hover=2:t("( any-hove: none )").matches?e.hover=3:window.matchMedia("( any-hover )").matches&&(e.hover=4)}return e}}]);function ZB(e){return ZB="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},ZB(e)}function $B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eD(r.key),r)}}function eD(e){var t=function(e){if("object"!=ZB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZB(t)?t:t+""}var tD=function(e,t){return t&&$B(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._utils=t,this._scriptList=[]}),[{key:"count",value:function(){return this._scriptList.length}},{key:"exists",value:function(e){/\d\d\d/.test(e.src)&&(e.src=this._utils.clearTextFromNumbers(e.src));for(var t=this._utils.getHash(e.text),n=0;n<this._scriptList.length;n++)if(e.src&&e.src===this._scriptList[n].src||t&&t===this._scriptList[n].textHash)return!0;return!1}},{key:"add",value:function(e){e.textHash=this._utils.getHash(e.text),/\d\d\d/.test(e.src)&&(e.src=this._utils.clearTextFromNumbers(e.src)),this._scriptList.push({src:e.src,textHash:e.textHash})}}]);function nD(e){return nD="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},nD(e)}function rD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oD(r.key),r)}}function oD(e){var t=function(e){if("object"!=nD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nD(t)?t:t+""}var iD=function(e,t){return t&&rD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=oD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleMutationEvent",(function(e,t){e&&t&&n._messageBus.publish(Jn,{mutation:e,browserContext:t})})),this._messageBus=t,"object"!==nD(this._messageBus))throw new Error("Bootstrap aborted! MessageBus missing for MutationEmitter");this._documentObservers=new WeakMap}),[{key:"startObserver",value:function(e){var t=this,n=e.getDocument();if(!this._documentObservers.has(n)){var r=new window.MutationObserver((function(n){try{for(var r=0;r<n.length;r++){var o=n[r];if(o.addedNodes.length>0){t.handleMutationEvent(o,e);break}}}catch(e){pe.error("An error has occurred: ".concat(e.message))}}));r.observe(n,{childList:!0,subtree:!0}),this._documentObservers.set(n,{instance:r})}}},{key:"stopObserver",value:function(e){var t,n=e.getDocument();this._documentObservers.has(n)&&(t=this._documentObservers.get(n))&&(t.instance&&t.instance.disconnect(),this._documentObservers.delete(n))}}]);function aD(e){return aD="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},aD(e)}function uD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cD(r.key),r)}}function sD(e,t,n){return(t=cD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cD(e){var t=function(e){if("object"!=aD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=aD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==aD(t)?t:t+""}var lD=function(e,t){return t&&uD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sD(this,"handleInputEvents",(function(e){o._messageBus.publish(Zn,e)})),sD(this,"handleFocusEvents",(function(e){o._messageBus.publish($n,e)})),sD(this,"handleBlurEvents",(function(e){o._messageBus.publish(er,e)})),this._messageBus=t,this._eventAggregator=n,this._elementBindingWMap=new WeakMap,this._utils=r,this.defaultInputEventListener=[{event:"input",handler:this.handleInputEvents},{event:"focus",handler:this.handleFocusEvents},{event:"blur",handler:this.handleBlurEvents}]}),[{key:"start",value:function(e,t,n){var r=this;if(!this._elementBindingWMap.has(e)){var o=[];void 0!==n?"function"==typeof n.func&&Array.isArray(n.allowedEvents)&&n.allowedEvents.length>0&&(n.func(t,e)?this.defaultInputEventListener.forEach((function(e){n.allowedEvents.includes(e.event)&&o.push(e)})):o=Array.from(this.defaultInputEventListener)):o=Array.from(this.defaultInputEventListener),o.forEach((function(t){r._eventAggregator.addEventListener(e,t.event,t.handler)})),this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleInputEvents,this.handleFocusEvents,this.handleBlurEvents],isUsingJQuery:!1})}}},{key:"stop",value:function(e){var t=this,n=this._elementBindingWMap.get(e);n&&n.isBinded&&(this.defaultInputEventListener.forEach((function(n){t._eventAggregator.removeEventListener(e,n.event,n.handler)})),this._elementBindingWMap.delete(e))}},{key:"addElementEvents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
2if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to add event listeners for element using jQuery because jQuery is not available");this.defaultInputEventListener.forEach((function(n){t._utils.JQueryUtils.addEventListener(e,n.event,n.handler)}))}else this.defaultInputEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)}));this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleInputEvents,this.handleFocusEvents,this.handleBlurEvents],isUsingJQuery:n})}}},{key:"removeElementEvents",value:function(e){var t=this,n=this._elementBindingWMap.get(e);if(n&&n.isBinded){if(n.isUsingJQuery){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to remove event listeners for element using jQuery because jQuery is not available");this.defaultInputEventListener.forEach((function(n){t._utils.JQueryUtils.removeEventListener(e,n.event,n.handler)}))}else this.defaultInputEventListener.forEach((function(e){t._eventAggregator.removeEventListener(elements,e.event,e.handler)}));this._elementBindingWMap.delete(e)}}}]);function fD(e){return fD="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},fD(e)}function pD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dD(r.key),r)}}function dD(e){var t=function(e){if("object"!=fD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fD(t)?t:t+""}var yD=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){yD=!0}});window.addEventListener("test",null,e)}catch(e){}}();var hD=function(e,t,n){return n&&pD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),0,[{key:"addEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];yD?e.addEventListener(t,n,{capture:r,passive:o,once:i}):e.addEventListener?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}},{key:"removeEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}}]);function mD(e){return mD="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},mD(e)}function vD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bD(r.key),r)}}function bD(e){var t=function(e){if("object"!=mD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mD(t)?t:t+""}var gD=function(e,t){return t&&vD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=bD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleOnClickEvents",(function(e){o._messageBus.publish(tr,e)})),this._messageBus=t,this._eventAggregator=n,this._elementBindingWMap=new WeakMap,this._utils=r,this.defaultOnClickEventListener=[{event:"click",handler:this.handleOnClickEvents}]}),[{key:"start",value:function(e){var t=this;this._elementBindingWMap.has(e)||(this.defaultOnClickEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)})),this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleOnClickEvents],isUsingJQuery:!1}))}},{key:"stop",value:function(e){var t=this,n=this._elementBindingWMap.get(e);n&&n.isBinded&&(this.defaultOnClickEventListener.forEach((function(n){t._eventAggregator.removeEventListener(e,n.event,n.handler)})),this._elementBindingWMap.delete(e))}},{key:"addElementEvents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
2if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to add event listeners for element using jQuery because jQuery is not available");this.defaultOnClickEventListener.forEach((function(n){t._utils.JQueryUtils.addEventListener(e,n.event,n.handler)}))}else this.defaultOnClickEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)}));this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleOnClickEvents],isUsingJQuery:n})}}},{key:"removeElementEvents",value:function(e){var t=this,n=this._elementBindingWMap.get(e);if(n&&n.isBinded){if(n.isUsingJQuery){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to remove event listeners for element using jQuery because jQuery is not available");this.defaultOnClickEventListener.forEach((function(n){t._utils.JQueryUtils.removeEventListener(e,n.event,n.handler)}))}else this.defaultOnClickEventListener.forEach((function(e){t._eventAggregator.removeEventListener(elements,e.event,e.handler)}));this._elementBindingWMap.delete(e)}}}]),_D=gD;function wD(e){return wD="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},wD(e)}function SD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kD(r.key),r)}}function kD(e){var t=function(e){if("object"!=wD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wD(t)?t:t+""}var ED=function(e,t){return t&&SD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=kD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleOnChangeEvents",(function(e){o._messageBus.publish(nr,e)})),this._messageBus=t,this._eventAggregator=n,this._elementBindingWMap=new WeakMap,this._utils=r,this.defaultOnChangeEventListener=[{event:"change",handler:this.handleOnChangeEvents}]}),[{key:"start",value:function(e){var t=this;this._elementBindingWMap.has(e)||(this.defaultOnChangeEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)})),this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleOnChangeEvents],isUsingJQuery:!1}))}},{key:"stop",value:function(e){var t=this,n=this._elementBindingWMap.get(e);n&&n.isBinded&&(this.defaultOnChangeEventListener.forEach((function(n){t._eventAggregator.removeEventListener(e,n.event,n.handler)})),this._elementBindingWMap.delete(e))}},{key:"addElementEvents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to add event listeners for element using jQuery because jQuery is not available");this.defaultOnChangeEventListener.forEach((function(n){t._utils.JQueryUtils.addEventListener(e,n.event,n.handler)}))}else this.defaultOnChangeEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)}));this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleOnChangeEvents],isUsingJQuery:n})}}},{key:"removeElementEvents",value:function(e){var t=this,n=this._elementBindingWMap.get(e);if(n&&n.isBinded){if(n.isUsingJQuery){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to remove event listeners for element using jQuery because jQuery is not available");this.defaultOnChangeEventListener.forEach((function(n){t._utils.JQueryUtils.removeEventListener(e,n.event,n.handler)}))}else this.defaultOnChangeEventListener.forEach((function(e){t._eventAggregator.removeEventListener(elements,e.event,e.handler)}));this._elementBindingWMap.delete(e)}}}]),OD=ED;function PD(e){return PD="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},PD(e)}function TD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CD(r.key),r)}}function CD(e){var t=function(e){if("object"!=PD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=PD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==PD(t)?t:t+""}var jD=function(e,t){return t&&TD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=CD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleOnFormSubmitEvents",(function(e){o._messageBus.publish(ir,e)})),this._messageBus=t,this._eventAggregator=n,this._elementBindingWMap=new WeakMap,this._utils=r,this.defaultOnFormEventListener=[{event:"submit",handler:this.handleOnFormSubmitEvents}]}),[{key:"start",value:function(e){var t=this;this._elementBindingWMap.has(e)||(this.defaultOnFormEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)})),this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleOnFormSubmitEvents],isUsingJQuery:!1}))}},{key:"stop",value:function(e){var t=this,n=this._elementBindingWMap.get(e);n&&n.isBinded&&(this.defaultOnFormEventListener.forEach((function(n){t._eventAggregator.removeEventListener(e,n.event,n.handler)})),this._elementBindingWMap.delete(e))}},{key:"addElementEvents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
2if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to add event listeners for element using jQuery because jQuery is not available");this.defaultOnFormEventListener.forEach((function(n){t._utils.JQueryUtils.addEventListener(e,n.event,n.handler)}))}else this.defaultOnFormEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)}));this._elementBindingWMap.set(e,{isBinded:!0,listeners:[this.handleOnFormSubmitEvents],isUsingJQuery:n})}}},{key:"removeElementEvents",value:function(e){var t=this,n=this._elementBindingWMap.get(e);if(n&&n.isBinded){if(n.isUsingJQuery){if(!this._utils.JQueryUtils.isJQueryAvailable())return void pe.error("Unable to remove event listeners for element using jQuery because jQuery is not available");this.defaultOnFormEventListener.forEach((function(n){t._utils.JQueryUtils.removeEventListener(e,n.event,n.handler)}))}else this.defaultOnFormEventListener.forEach((function(e){t._eventAggregator.removeEventListener(elements,e.event,e.handler)}));this._elementBindingWMap.delete(e)}}}]),MD=jD;function xD(e){return xD="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},xD(e)}function RD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AD(r.key),r)}}function AD(e){var t=function(e){if("object"!=xD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xD(t)?t:t+""}var BD=function(e,t){return t&&RD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=AD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"isJQueryDataSupported",(function(e){return!(!e.jQuery||!e.jQuery._data)})),this._messageBus=t,this._eventAggregator=n,this._elementBindingWMap=new WeakMap,this._utils=r,this.defaultEventListener=[{event:"keypress",handler:this.handleKeypressEvents.bind(this)}]}),[{key:"handleKeypressEvents",value:function(e,t){}},{key:"registerElement",value:function(e,t){var n=this;if(!this._elementBindingWMap.has(e)){var r={};this.defaultEventListener.forEach((function(o){var i=function(e){o.handler(e,t)};r[o.event]=i,n._eventAggregator.addEventListener(e,o.event,i)})),this._elementBindingWMap.set(e,{isBinded:!0,listeners:r})}}},{key:"unregisterElements",value:function(e){var t=this,n=this._elementBindingWMap.get(e);n&&n.isBinded&&(this.defaultEventListener.forEach((function(r){t._eventAggregator.removeEventListener(e,r.event,n.listeners[r.event])})),this._elementBindingWMap.delete(e))}},{key:"publishEvent",value:function(e,t,n,r){var o={bubbles:!0,cancelBubble:!1,cancelable:!1,composed:!0,currentTarget:null,data:r,dataTransfer:null,defaultPrevented:!1,detail:0,eventPhase:0,inputType:n,isComposing:!1,isTrusted:!0,jqueryMask:t,returnValue:!0,sourceCapabilities:null,
2srcElement:Object.assign(e.target||e.srcElement,{}),target:Object.assign(e.target,{}),timeStamp:e.timeStamp,type:"input",view:null,which:0};this._messageBus.publish(ar,o)}}]);function DD(e){return DD="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},DD(e)}function ID(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LD(r.key),r)}}function LD(e){var t=function(e){if("object"!=DD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=DD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==DD(t)?t:t+""}function FD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FD=function(){return!!e})()}function ND(e){return ND=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ND(e)}function UD(e,t){return UD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UD(e,t)}var GD=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ND(t),function(e,t){if(t&&("object"==DD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,FD()?Reflect.construct(t,n||[],ND(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UD(e,t)}(t,e),function(e,t){return t&&ID(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"start",value:function(e,t){t=t||window.self,this.isJQueryDataSupported(t)&&this.hasMaskEventSupported(e,t)&&this.registerElement(e,t)}},{key:"stop",value:function(e){this.unregisterElements(e)}},{key:"hasMaskEventSupported",value:function(e,t){var n=t.jQuery._data(e,"events");if(void 0===n)return!1;for(var r=Object.keys(n),o=0;o<r.length;o++)if("unmask"===r[o])return!0;return!1}},{key:"handleKeypressEvents",value:function(e,t){if(this.isJQueryDataSupported(t)&&this.hasMaskEventSupported(e.target,t)){var n=e.key;this.publishEvent(e,"maskedInput","insertText",n)}}}])}(BD);function WD(e){return WD="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},WD(e)}function QD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HD(r.key),r)}}function HD(e){var t=function(e){if("object"!=WD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WD(t)?t:t+""}function VD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VD=function(){return!!e})()}function zD(e){return zD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zD(e)}function KD(e,t){return KD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KD(e,t)}var qD=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=zD(t),function(e,t){if(t&&("object"==WD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,VD()?Reflect.construct(t,n||[],zD(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KD(e,t)}(t,e),function(e,t){return t&&QD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"start",value:function(e,t){this.isJQueryDataSupported(t)&&this.hasjQueryAutoTab(e,t)&&this.registerElement(e,t)}},{key:"stop",value:function(e){this.unregisterElements(e)}},{key:"hasjQueryAutoTab",value:function(e,t){if(void 0===t.jQuery._data(e,"events"))return!1;for(var n=Object.keys(t.jQuery._data(e,"events")),r=0;r<n.length;r++)if(-1!==n[r].indexOf("autotab"))return!0;return!1}},{key:"handleKeypressEvents",value:function(e,t){if(this.isJQueryDataSupported(t)&&this.hasjQueryAutoTab(e.target,t)){var n=e.key;8!==e.keyCode&&this.publishEvent(e,"autotab","insertText",n)}}}])}(BD);function JD(e){return JD="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},JD(e)}function YD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XD(r.key),r)}}function XD(e){var t=function(e){if("object"!=JD(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=JD(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==JD(t)?t:t+""}var ZD=function(e,t){return t&&YD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=XD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleFocusEvent",(function(e){r._messageBus.publish(pr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.addEventListener(e,"focus",this.handleFocusEvent,!1,!0)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.removeEventListener(e,"focus",this.handleFocusEvent)}}]),$D=ZD;function eI(e){return eI="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},eI(e)}function tI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nI(r.key),r)}}function nI(e){var t=function(e){if("object"!=eI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eI(t)?t:t+""}var rI=function(e,t){return t&&tI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=nI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleBlurEvent",(function(e){r._messageBus.publish(dr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.addEventListener(e,"blur",this.handleBlurEvent,!1,!0)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.removeEventListener(e,"blur",this.handleBlurEvent)}}]),oI=rI;function iI(e){return iI="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},iI(e)}function aI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uI(r.key),r)}}function uI(e){var t=function(e){if("object"!=iI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=iI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iI(t)?t:t+""}var sI=function(e,t){return t&&aI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=uI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleResizeEvent",(function(e){r._messageBus.publish(yr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.addEventListener(e,"resize",this.handleResizeEvent,!1,!0)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.removeEventListener(e,"resize",this.handleResizeEvent)}}]),cI=sI;function lI(e){return lI="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},lI(e)}function fI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pI(r.key),r)}}function pI(e){var t=function(e){if("object"!=lI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lI(t)?t:t+""}var dI=function(e,t){return t&&fI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=pI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleDOMContentLoadedEvent",(function(e){r._messageBus.publish(hr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.addEventListener(e,"DOMContentLoaded",this.handleDOMContentLoadedEvent)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.removeEventListener(e,"DOMContentLoaded",this.handleDOMContentLoadedEvent)}}]),yI=dI;function hI(e){return hI="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},hI(e)}function mI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vI(r.key),r)}}function vI(e){var t=function(e){if("object"!=hI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hI(t)?t:t+""}var bI=function(e,t){return t&&mI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=vI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleVisibilityChangeEvent",(function(e){r._messageBus.publish(mr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.addEventListener(e,"visibilitychange",this.handleVisibilityChangeEvent,!1,!0)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.removeEventListener(e,"visibilitychange",this.handleVisibilityChangeEvent)}}]),gI=bI;function _I(e){return _I="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},_I(e)}function wI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SI(r.key),r)}}function SI(e){var t=function(e){if("object"!=_I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_I(t)?t:t+""}var kI=function(e,t){return t&&wI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=SI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleScrollEvent",(function(e){r._messageBus.publish(vr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.addEventListener(e,"scroll",this.handleScrollEvent,!1,!0)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.removeEventListener(e,"scroll",this.handleScrollEvent)}}]),EI=kI;function OI(e){return OI="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},OI(e)}function PI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TI(r.key),r)}}function TI(e){var t=function(e){if("object"!=OI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=OI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==OI(t)?t:t+""}var CI=function(e,t){return t&&PI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=TI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleWindowMessage",(function(e){e&&r._messageBus.publish(br,{message:e})})),this._messageBus=t,this._EventAggregator=n,this._windowListeners=new WeakMap,this.defaultPostMessageEventListener=[{event:"message",handler:this.handleWindowMessage}]}),[{key:"startObserver",value:function(e){var t=this;this._windowListeners.has(e.Context)||(this.defaultPostMessageEventListener.forEach((function(n){t._EventAggregator.addEventListener(e.Context,n.event,n.handler)})),this._windowListeners.set(e.Context,{isBinded:!0,listeners:[this.handleWindowMessage]}))}},{key:"stopObserver",value:function(e){var t=this,n=this._windowListeners.get(e.Context);n&&n.isBinded&&(this.defaultPostMessageEventListener.forEach((function(n){t._EventAggregator.removeEventListener(e.Context,n.event,n.handler)})),this._windowListeners.delete(e.Context))}}]);function jI(e){return jI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&
2"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jI(e)}function MI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xI(r.key),r)}}function xI(e){var t=function(e){if("object"!=jI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jI(t)?t:t+""}var RI=function(e,t){return t&&MI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=xI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleDeviceOrientationEvent",(function(e){r._messageBus.publish(lr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(){this._eventAggregator.addEventListener(window,"deviceorientation",this.handleDeviceOrientationEvent)}},{key:"stop",value:function(){this._eventAggregator.removeEventListener(window,"deviceorientation",this.handleDeviceOrientationEvent)}}]),AI=RI;function BI(e){return BI="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},BI(e)}function DI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,II(r.key),r)}}function II(e){var t=function(e){if("object"!=BI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=BI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==BI(t)?t:t+""}var LI=function(e,t){return t&&DI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=II(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleBeforeInstallPrompt",(function(e){r._messageBus.publish(fr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.addEventListener(e,"beforeinstallprompt",this.handleBeforeInstallPrompt)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid window parameter");this._eventAggregator.removeEventListener(e,"beforeinstallprompt",this.handleBeforeInstallPrompt)}}]),FI=LI;function NI(e){return NI="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},NI(e)}function UI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GI(r.key),r)}}function GI(e){var t=function(e){if("object"!=NI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NI(t)?t:t+""}var WI=function(e,t){return t&&UI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=GI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleCutEvent",(function(e){r._messageBus.publish(ur,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.addEventListener(e,"cut",this.handleCutEvent)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.removeEventListener(e,"cut",this.handleCutEvent)}}]),QI=WI;function HI(e){return HI="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},HI(e)}function VI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zI(r.key),r)}}function zI(e){var t=function(e){if("object"!=HI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HI(t)?t:t+""}var KI=function(e,t){return t&&VI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=zI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleCopyEvent",(function(e){r._messageBus.publish(sr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.addEventListener(e,"copy",this.handleCopyEvent)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.removeEventListener(e,"copy",this.handleCopyEvent)}}]),qI=KI;function JI(e){return JI="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},JI(e)}function YI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XI(r.key),r)}}function XI(e){var t=function(e){if("object"!=JI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=JI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==JI(t)?t:t+""}var ZI=function(e,t){return t&&YI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=XI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handlePasteEvent",(function(e){r._messageBus.publish(cr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.addEventListener(e,"paste",this.handlePasteEvent)}},{key:"stop",value:function(e){if(!e)throw new Error("invalid document parameter");this._eventAggregator.removeEventListener(e,"paste",this.handlePasteEvent)}}]),$I=ZI;function eL(e){return eL="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},eL(e)}function tL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nL(r.key),r)}}function nL(e){var t=function(e){if("object"!=eL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eL(t)?t:t+""}var rL=function(e,t){return t&&tL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=nL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleElementFocusEvents",(function(e){r._messageBus.publish(rr,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){this._eventAggregator.addEventListener(e,"focus",this.handleElementFocusEvents)}},{key:"stop",value:function(e){this._eventAggregator.removeEventListener(e,"focus",this.handleElementFocusEvents)}}]),oL=rL;function iL(e){return iL="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},iL(e)}function aL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uL(r.key),r)}}function uL(e){var t=function(e){if("object"!=iL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=iL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iL(t)?t:t+""}var sL=function(e,t){return t&&aL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=uL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleElementBlurEvents",(function(e){r._messageBus.publish(or,e)})),this._messageBus=t,this._eventAggregator=n}),[{key:"start",value:function(e){this._eventAggregator.addEventListener(e,"blur",this.handleElementBlurEvents)}},{key:"stop",value:function(e){this._eventAggregator.removeEventListener(e,"blur",this.handleElementBlurEvents)}}]),cL=sL;function lL(e){return lL="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},lL(e)}function fL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dL(r.key),r)}}function pL(e,t,n){return(t=dL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dL(e){var t=function(e){if("object"!=lL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lL(t)?t:t+""}var yL=function(e,t){return t&&fL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pL(this,"mousemove",(function(e){o._messageBus.publish(wr,e)})),pL(this,"keydown",(function(e){o._messageBus.publish(wr,e)})),pL(this,"mouseleave",(function(e){o._eventAggregator.removeEventListener(e.target,"mousemove",o.mousemove),o._messageBus.publish(wr,e)})),pL(this,"mouseup",(function(e){o._eventAggregator.removeEventListener(e.target,"mousemove",o.mousemove),o._eventAggregator.removeEventListener(e.target,"mouseleave",o.mouseleave)})),pL(this,"mousedown",(function(e){o._eventAggregator.addEventListener(e.target,"mousemove",o.mousemove),o._eventAggregator.addEventListener(e.target,"mouseleave",o.mouseleave),o._eventAggregator.addEventListener(e.target,"mouseup",o.mouseup),o._eventAggregator.addEventListener(e.target,"keydown",o.keydown)})),pL(this,"handleFocus",(function(e){o._messageBus.publish(wr,e)})),pL(this,"handleMouseEnter",(function(e){o._eventAggregator.addEventListener(e.target,"mousedown",o.mousedown)})),pL(this,"handleOnClickEvents",(function(){o._messageBus.publish(wr,o._mainElm)})),this._messageBus=t,this._eventAggregator=n,this._utils=r,this._elementsBindingWMap=new WeakMap,this.customInputEventListener=[{event:"mou
2seenter",handler:this.handleMouseEnter},{event:"focus",handler:this.handleFocus}],this.defaultOnClickEventListener=[{event:"click",handler:this.handleOnClickEvents}],this._mainElm="",this._mainTagName=["SPAN","DIV"],this._btnTagName="BUTTON",this._btnInnerText=["+","-"]}),[{key:"start",value:function(e){var t=this;e&&e.forEach((function(e){t._elementsBindingWMap.has(e)||(null!=e&&e.tagName&&t._mainTagName.includes(e.tagName)&&(t._mainElm=e,t.customInputEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)})),t._elementsBindingWMap.set(e,{isBinded:!0,listeners:[t.handleMouseEnter,t.handleFocus],isUsingJQuery:!1})),(null!=e&&e.tagName&&e.tagName===t._btnTagName||null!=e&&e.innerText&&t._btnInnerText.includes(e.innerText))&&(t.defaultOnClickEventListener.forEach((function(n){t._eventAggregator.addEventListener(e,n.event,n.handler)})),t._elementsBindingWMap.set(e,{isBinded:!0,listeners:[t.handleOnClickEvents],isUsingJQuery:!1})))}))}},{key:"stop",value:function(e){var t=this;e.forEach((function(e){var n=t._elementsBindingWMap.get(e);null!=n&&n.isBinded&&(null!=e&&e.tagName&&t._mainTagName.includes(e.tagName)&&t.customInputEventListener.forEach((function(n){t._eventAggregator.removeEventListener(e,n.event,n.handler)})),(null!=e&&e.tagName&&e.tagName===t._btnTagName||null!=e&&e.innerText&&t._btnInnerText.includes(e.innerText))&&t.defaultOnClickEventListener.forEach((function(n){t._eventAggregator.removeEventListener(e,n.event,n.handler)})),t._elementsBindingWMap.delete(e))}))}}]),hL=yL;function mL(e){return mL="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},mL(e)}function vL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_L(r.key),r)}}function gL(e,t,n){return(t=_L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _L(e){var t=function(e){if("object"!=mL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mL(t)?t:t+""}var wL=[{name:"MouseEvents",className:id,init:function(){return function(){this._configurations.isFlutterApp()?this._features.list.MouseEvents.instance=new Wy(this._msgBus,this._dataQ,this._utils,this._maskingService,$o,this._configurations):this._features.list.MouseEvents.instance=new id(this._utils,$o,this._elements,this._dataQ,this._maskingService,this._configurations)}}},{name:"ElementEvents",className:dl,init:function(){return function(){if(this._configurations.isFlutterApp())this._features.list.ElementEvents.instance=new dy(this._msgBus,this._dataQ,this._utils,this._contextMgr,this._maskingService);else{var e=new lD(this._msgBus,hD,this._utils),t=new _D(this._msgBus,hD,this._utils),n=new OD(this._msgBus,hD,this._utils),r=new oL(this._msgBus,hD,this._utils),o=new cL(this._msgBus,hD,this._utils),i=new MD(this._msgBus,hD,this._utils),a=new hL(this._msgBus,hD,this._utils),u=new Dt(MutationObserver,this._utils,$o,"jQueryElementListenerConfig",null,!1),s=(lA=e,fA=t,pA=n,dA=i,{bindInputEvents:yA,bindOnClickEvents:hA,bindOnChangeEvents:mA,bindOnFormsEvents:vA}),c=new dl.Builder(this._configurationRepository,this._utils,$o,this._elements,this._dataQ,this._configurations),l=new iD(this._msgBus),f=new GD(this._msgBus,hD,this._utils),p=new qD(this._msgBus,hD,this._utils);c.withjQueryElementListenerSiteMapper(u),c.withMessageBus(this._msgBus),c.withMutationEmitter(l),c.withjQueryElementsHandler(s),c.withInputEvents(XA,qA,this._maskingService,this._categoryService),c.withStandardInputEventsEmitter(e),c.withSyntheticMaskInputEventsHandler(f),c.withSyntheticAutotabInputEventsHandler(p),c.withClickEvents(mB,yB),c.withStandardOnClickEventsEmitter(t),c.withSelectElementEvents(PB,EB),c.withElementFocusEventsEmitter(r),c.withElementBlurEventsEmitter(o),c.withStandardOnChangeEventsEmitter(n),c.withFormEvents(DB,AB),c.withStandardOnFormEventsEmitter(i),c.withCustomInputEventEmitter(uB,a),this._features.list.ElementEvents.instance=c.build()}}}},{name:"KeyEvents",className:vo,init:function(){return function(){this._configurations.isFlutterApp()?this._features.list.KeyEvents.instance=new Sy(this._msgBus,this._dataQ,this._utils,this._maskingService):this._features.list.KeyEvents.instance=new vo(this._configurationRepository,this._utils,this._elements,this._dataQ,this._msgBus,this._sameCharService,this._maskingService,this._configurations)}}},{name:"TouchEvents",className:eo,init:function(){return function(){this._configurations.isFlutterApp()?this._features.list.TouchEvents.instance=new Ry(this._msgBus,this._dataQ,this._utils,this._maskingService):this._features.list.TouchEvents.instance=new eo(this._utils,this._elements,this._dataQ,this._msgBus,this._maskingService,this._configurations)}}},{name:"ClipboardEvents",className:xl,init:function(){return function(){var e=new xl.Builder(this._utils,this._elements,this._dataQ,this._configurations,this._configurationRepository),t=new QI(this._msgBus,hD),n=new qI(this._msgBus,hD),r=new $I(this._msgBus,hD);e.withMessageBus(this._msgBus).withCutEventEmitter(t).withCopyEventEmitter(n).withPasteEventEmitter(r),this._features.list.ClipboardEvents.instance=e.build()}}},{name:"WindowEvents",className:lf,init:function(){return function(){var e=new lf.Builder(this._configurationRepository,Ke,this._dataQ),t=new $D(this._msgBus,hD),n=new oI(this._msgBus,hD),r=new cI(this._msgBus,hD),o=new yI(this._msgBus,hD),i=new gI(this._msgBus,hD),a=new EI(this._msgBus,hD);e.withMessageBus(this._msgBus),e.withFocusEventEmitter(t),e.withBlurEventEmitter(n),e.withResizeEventEmitter(r),e.withDOMContentLoadedEventEmitter(o),e.withVisibilityChangeEventEmitter(i),e.withScrollEventEmitter(a),this._features.list.WindowEvents.instance=e.build()}}},{name:"MetadataCollector",className:cA,init:function(){return function(){var e=new Dt(MutationObserver,this._utils,$o,"metadataConfig",null,!1);this._features.list.MetadataCollector.instance=new cA(this._configurationRepository,this._dataQ,e,this._utils)}}},{name:"TabsEvents",className:yd,init:function(){return function(){this._features.list.TabsEvents.instance=new yd(this._utils,this._dataQ)}}},{name:"DoNotTrack",className:lg,init:function(){return function(){this._features.list.DoNotTrack.instance=new lg(this._dataQ)}}},{name:"BrowserProps",className:Jb,init:function(){return function(){this._features.list.BrowserProps.instance=new Jb(this._dataQ,XB,this._utils,this._configurationRepository,this._configurations)}}},{name:"IsPrivateBrowsing",className:Q_,init:function(){return function(){var e=new NB,t=new KB;this._features.list.IsPrivateBrowsing.instance=new Q_(this._dataQ,e,t,this._devDebugDataQueue,this._configurationRepository)}}},{name:"FontsDetectionFeature",className:hS,init:function(){return function(){var e=new jn(this._configurationRepository);this._features.list.FontsDetectionFeature.instance=new hS({utils:this._utils,domUtils:$o,dataQueue:this._dataQ,fontConfig:e,v1Collector:null,v2Collector:null,fontTimingService:this._fontTimingService})}}},{name:"GraphicDetectFeature",className:Og,init:function(){return function(){this._features.list.GraphicDetectFeature.instance=new Og(this._dataQ,this._configurations)}}},{name:"BrowserDetect",className:_m,init:function(){return function(){this._features.list.BrowserDetect.instance=new _m(this._dataQ)}}},{name:"FilesFeature",className:tA,init:function(){return function(){this._features.list.FilesFeature.instance=new tA(this._configurationRepository,this._utils,this._sessionService,this._muidService,this._cidCache)}}},{name:"UserPermissions",className:v_,init:function(){return function(){this._features.list.UserPermissions.instance=new v_(this._dataQ)}}},{name:"MediaDevicesFeature",className:Wg,init:function(){return function(){this._features.list.MediaDevicesFeature.instance=new Wg(this._dataQ)}}},{name:"ContextPropsFeature",className:NR,init:function(){return function(){this._features.list.ContextPropsFeature.instance=new NR(this._dataQ,$o,this._perfMonitor,this._configurationRepository)}}},{name:"GfxRenderingFeature",className:IS,init:function(){return function(){this._features.list.GfxRenderingFeature.instance=new IS(this._dataQ,Ke)}}},{name:"AudioDetectFeature",className:ik,init:function(){return function(){this._features.list.AudioDetectFeature.instance=new ik(this._dataQ,Ke)}}},{name:"AudioDetectFeature2",className:Ok,init:function(){return function(){this._features.list.AudioDetectFeature2.instance=new Ok(this._devDebugDataQueue,Ke)}}},{name:"EncryptedMuidFeature",className:Ik,init:function(){return function(){this._features.list.EncryptedMuidFeature.instance=new Ik(this._devDebugDataQueue,this._muidEncryptedService)}}},{name:"ScriptsFeature",className:KR,init:function(){return function(){var e=new tD(this._utils);this._features.list.ScriptsFeature.instance=new KR(this._dataQ,e)}}},{name:"AccelerometerEvents",className:kf,init:function(){return function(){this._features.list.AccelerometerEvents.instance=new kf(this._configurationRepository,this._utils,this._sensorDataQ)}}},{name:"PinchZoomEvents",className:If,init:function(){return function(){this._features.list.PinchZoomEvents.instance=new If(this._utils,this._elements,this._dataQ,this._msgBus,this._configurations)}}},{name:"ScriptEvents",className:zf,init:function(){return function(){this._features.list.ScriptEvents.instance=new zf(this._utils,this._dataQ)}}},{name:"NetInfoEvents",className:tp,init:function(){return function(){this._features.list.NetInfoEvents.instance=new tp(this._utils,this._dataQ)}}},{name:"MainThreadBlockingEvents",className:lh,init:function(){return function(){this._features.list.MainThreadBlockingEvents.instance=new lh(this._configurationRepository,this._utils,this._dataQ)}}},{name:"CursorCollector",className:tm,init:function(){return function(){this._features.list.CursorCollector.instance=new tm(this._dataQ,this._utils,this._elements,$o,this._configurations,this._cursorDetectionService,this._hitbox
2DetectionService,this._maskingService,this._cursorCollectorBrowserEnvironment)}}},{name:"DeviceOrientationCollector",className:fp,init:function(){return function(){this._features.list.DeviceOrientationCollector.instance=new fp(this._utils,this._dataQ)}}},{name:"TapEvents",className:wp,init:function(){return function(){this._features.list.TapEvents.instance=new wp(this._configurationRepository,this._utils,this._elements,this._dataQ,this._maskingService,this._configurations)}}},{name:"LocationEvents",className:Ed,init:function(){return function(){this._features.list.LocationEvents.instance=new Ed(this._dataQ,this._utils,this._configurationRepository)}}},{name:"StorageEvents",className:Mp,init:function(){return function(){this._features.list.StorageEvents.instance=new Mp(this._utils,this._elements,this._dataQ,this._msgBus)}}},{name:"PrintEvents",className:Np,init:function(){return function(){this._features.list.PrintEvents.instance=new Np(this._utils,this._dataQ)}}},{name:"LightSensorEvents",className:qp,init:function(){return function(){this._features.list.LightSensorEvents.instance=new qp(this._dataQ,this._utils,this._configurationRepository)}}},{name:"CrossDomain",className:IA,init:function(){return function(){var e=new IA.Builder(this._configurationRepository,this._dataQ,this._utils,$o,MA),t=new CI(this._msgBus,hD);e.withMessageBus(this._msgBus),e.withWindowMessageEventEmitter(t),this._features.list.CrossDomain.instance=e.build()}}},{name:"OrientationEvents",className:Ul,init:function(){return function(){var e=new AI(this._msgBus,hD);this._features.list.OrientationEvents.instance=new Ul(this._configurationRepository,this._utils,this._sensorDataQ,this._msgBus,e)}}},{name:"BeforeInstallPromptEvents",className:Yl,init:function(){return function(){var e=new FI(this._msgBus,hD);this._features.list.BeforeInstallPromptEvents.instance=new Yl(this._dataQ,this._utils,this._msgBus,e)}}},{name:"LevenshteinDistanceEvents",className:Ld,init:function(){return function(){this._features.list.LevenshteinDistanceEvents.instance=new Ld(this._utils,this._configurationRepository,this._dataQ,this._msgBus,this._wasmModuleLoader,this._categoryService)}}},{name:"Navigator",className:Hk,init:function(){return function(){this._features.list.Navigator.instance=new Hk(this._devDebugDataQueue)}}},{name:"ClientHints",className:cE,init:function(){return function(){this._features.list.ClientHints.instance=new cE(this._dataQ)}}},{name:"KeyboardLayoutFeature",className:_C,init:function(){return function(){this._features.list.KeyboardLayoutFeature.instance=new _C(this._dataQ)}}},{name:"StorageFeature",className:tC,init:function(){return function(){this._features.list.StorageFeature.instance=new tC(this._dataQ)}}},{name:"BatteryStatusCollector",className:th,init:function(){return function(){this._features.list.BatteryStatusCollector.instance=new th(this._dataQ,this._utils)}}},{name:"FontEmojiFeature",className:ij,init:function(){return function(){this._features.list.FontEmojiFeature.instance=new ij(this._devDebugDataQueue)}}},{name:"FontMathFeature",className:bj,init:function(){return function(){this._features.list.FontMathFeature.instance=new bj(this._devDebugDataQueue)}}},{name:"FontWidthFeature",className:xj,init:function(){return function(){this._features.list.FontWidthFeature.instance=new xj(this._devDebugDataQueue)}}},{name:"ScreenHighResFeature",className:zj,init:function(){return function(){this._features.list.ScreenHighResFeature.instance=new zj(this._dataQ)}}},{name:"BrowserExtensionEvents",className:WP,init:function(){return function(){this._features.list.BrowserExtensionEvents.instance=new WP(this._configurationRepository,this._utils,$o,this._dataQ)}}},{name:"BrowserExtensionsUrlCollector",className:mT,init:function(){return function(){this._features.list.BrowserExtensionsUrlCollector.instance=new mT(this._configurationRepository,this._utils,$o,this._devDebugDataQueue)}}},{name:"AdblockerListsCollector",className:TE,init:function(){return function(){this._features.list.AdblockerListsCollector.instance=new TE(this._dataQ)}}},{name:"WebglCollector",className:aO,init:function(){return function(){this._features.list.WebglC
2ollector.instance=new aO(this._dataQ)}}},{name:"WebgpuCollector",className:$O,init:function(){return function(){this._features.list.WebgpuCollector.instance=new $O(this._devDebugDataQueue)}}},{name:"DRMDataCollector",className:jT,init:function(){return function(){this._features.list.DRMDataCollector.instance=new jT(this._devDebugDataQueue)}}},{name:"WebRTCDataCollector",className:fP,init:function(){return function(){this._features.list.WebRTCDataCollector.instance=new fP(this._dataQ)}}},{name:"SpeechVoiceCollector",className:_P,init:function(){return function(){this._features.list.SpeechVoiceCollector.instance=new _P(this._dataQ)}}},{name:"CPUDataCollector",className:AM,init:function(){return function(){this._features.list.CPUDataCollector.instance=new AM(this._devDebugDataQueue)}}},{name:"HeapCollector",className:oM,init:function(){return function(){this._features.list.HeapCollector.instance=new oM(this._devDebugDataQueue)}}},{name:"TimingCollector",className:lR,init:function(){return function(){this._features.list.TimingCollector.instance=new lR(this._devDebugDataQueue,this._fontTimingService)}}},{name:"AgenticBrowserDetectFeature",className:xR,init:function(){return function(){this._features.list.AgenticBrowserDetectFeature.instance=new xR(this._dataQ,this._fontDetectorProvider,this._configurationRepository)}}},{name:"AgenticDomInjectionCollector",className:ry,init:function(){return function(){this._features.list.AgenticDomInjectionCollector.instance=new ry(this._dataQ,this._msgBus,this._utils,this._configurationRepository,this._agenticDomInjectionDetector)}}},{name:"PermissionChangeCollector",className:kh,init:function(){return function(){this._features.list.PermissionChangeCollector.instance=new kh(this._dataQ,this._utils,this._configurationRepository)}}}],SL=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){return n&&bL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"register",value:function(){var t=this;e.list={},wL.forEach((function(e){t._addFeature(e)}))}},{key:"registerLeanFeatures",value:function(){var t=this;e.list={},wL.forEach((function(e){e.className.getDefaultSettings().runInLean&&t._addFeature(e)}))}},{key:"getDefaultFeatures",value:function(){return this.getFeaturesByCondition((function(e){return e.isDefault}))}},{key:"getPerContextFeatures",value:function(){return this.getFeaturesByCondition((function(e){return e.shouldRunPerContext}))}},{key:"getPerSessionFeatures",value:function(){return this.getFeaturesByCondition((function(e){return e.shouldRunPerSession}))}},{key:"getNonDefaultFeatures",value:function(){return this.getFeaturesByCondition((function(e){return!e.isDefault&&!e.shouldRunPerContext&&!e.shouldRunPerSession}))}},{key:"getFeaturesByCondition",value:function(t){var n={};return Object.keys(e.list).forEach((function(r){var o=e.list[r];t(o)&&(n[r]=o)})),n}},{key:"_addFeature",value:function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vL(Object(n),!0).forEach((function(t){gL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.className.getDefaultSettings()),r=t.name;n.init=t.init(),e.list[r]=n}}])}();function kL(e){return kL="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},kL(e)}function EL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OL(r.key),r)}}function OL(e){var t=function(e){if("object"!=kL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kL(t)?t:t+""}gL(SL,"list",void 0);var PL=function(e,t){return t&&EL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.messageBus=t}
2),[{key:"collectElement",value:function(e,t,n,r,o,i,a,u,s){this.messageBus.publish(Sr,{hashCode:e,elementId:t,widthElement:n,heightElement:r,dxPosition:o,dyPosition:i,widgetType:a,timeStamp:s})}},{key:"collectElementEvent",value:function(e,t,n,r,o){this.messageBus.publish(kr,{hashCode:e,elementId:t,eventType:n,elementValue:r,timeStamp:o})}},{key:"collectTouchEvent",value:function(e,t,n,r,o,i,a,u,s,c,l,f){this.messageBus.publish(Or,{hashCode:e,touchState:t,x:n,y:r,pointer:o,radiusMajor:u,radiusMinor:s,pressure:c,timeStamp:f})}},{key:"collectKeyEvent",value:function(e,t,n,r){this.messageBus.publish(Er,{hashCode:e,elementId:t,char:n,timeStamp:r})}},{key:"collectOnMouseEvent",value:function(e,t,n,r,o,i,a,u,s,c,l,f){this.messageBus.publish(Pr,{hashCode:e,type:t,screenX:n,screenY:r,pointer:o,radiusMajor:u,radiusMinor:s,pressure:c,timeStamp:f})}}]);function TL(e){return TL="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},TL(e)}function CL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jL(r.key),r)}}function jL(e){var t=function(e){if("object"!=TL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=TL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==TL(t)?t:t+""}var ML=function(e,t){return t&&CL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._protocolType=t.includes(Pe)?4:3}),[{key:"get",value:function(){return this._protocolType}}]);function xL(e){return xL="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},xL(e)}function RL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BL(r.key),r)}}function BL(e){var t=function(e){if("object"!=xL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xL(t)?t:t+""}var DL=function(e,t){return t&&AL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n,r=new URL(t),o=r.pathname,i=o,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return RL(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)?RL(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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}}}}(Ce);try{for(a.s();!(n=a.n()).done;){var u=n.value,s=o.indexOf("/"+u);if(-1!==s){i=o.substring(0,s);break}}}catch(e){a.e(e)}finally{a.f()}i=i.replace(/\/+$/,""),this._baseServerAddress=r.origin+i}),[{key:"get",value:function(){return this._baseServerAddress}}]);function IL(e){return IL="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},IL(e)}function LL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;
2!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return FL(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)?FL(e,t):void 0}}(e,t)||function(){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 FL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NL(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return UL(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(UL(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,UL(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,UL(f,"constructor",c),UL(c,"constructor",s),s.displayName="GeneratorFunction",UL(c,o,"GeneratorFunction"),UL(f),UL(f,o,"Generator"),UL(f,r,(function(){return this})),UL(f,"toString",(function(){return"[object Generator]"})),(NL=function(){return{w:i,m:p}})()}function UL(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}UL=function(e,t,n,r){function i(t,n){UL(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},UL(e,t,n,r)}function GL(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function WL(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){GL(i,r,o,a,u,"next",e)}function u(e){GL(i,r,o,a,u,"throw",e)}a(void 0)}))}}function QL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VL(r.key),r)}}function HL(e,t,n){return(t=VL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VL(e){var t=function(e){if("object"!=IL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=IL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==IL(t)?t:t+""}var zL=function(){function e(t){var n=t.storeName;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw new Error("Store name must be provided.");if(e.instances.has(n))return e.instances.get(n);
2if(!e.DB_CONFIG.STORE_SCHEMAS[n])throw new Error('Store "'.concat(n,'" is not defined in the schema.'));this.storeName=n,this.db=null,this.initialized=!1,e.instances.set(n,this)}return function(e,t){return t&&QL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"init",value:(u=WL(NL().m((function e(){return NL().w((function(e){for(;;)switch(e.n){case 0:if(!this.initialized){e.n=1;break}return e.a(2);case 1:return e.n=2,this._openDB();case 2:this.db=e.v,this.initialized=!0;case 3:return e.a(2)}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"_openDB",value:function(){return new Promise((function(t,n){var r=indexedDB.open(e.DB_CONFIG.NAME,e.DB_CONFIG.VERSION);r.onupgradeneeded=function(t){var n=t.target.result;pe.debug("Database upgrade: Version ".concat(t.oldVersion," -> ").concat(t.newVersion));for(var r=0,o=Object.entries(e.DB_CONFIG.STORE_SCHEMAS);r<o.length;r++){var i=LL(o[r],1)[0];n.objectStoreNames.contains(i)?pe.debug("Object store exists: ".concat(i)):(pe.debug("Creating object store: ".concat(i)),n.createObjectStore(i))}},r.onsuccess=function(n){pe.debug('Database "'.concat(e.DB_CONFIG.NAME,'" opened successfully.')),t(n.target.result)},r.onerror=function(t){pe.error('Error opening database "'.concat(e.DB_CONFIG.NAME,'":'),t.target.error),n(t.target.error)}}))}},{key:"_openObjectStore",value:function(e){if(!this.db)throw new Error("Database is not initialized. Call init() first.");return this.db.transaction([this.storeName],e).objectStore(this.storeName)}},{key:"addRecord",value:(a=WL(NL().m((function e(t,n){var r=this;return NL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,new Promise((function(e,o){var i=r._openObjectStore("readwrite").put(n,t);i.onsuccess=function(){return e("Record added successfully.")},i.onerror=function(e){return o("Add record error: ".concat(e.target.error))}})))}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getRecord",value:(i=WL(NL().m((function e(t){var n=this;return NL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,new Promise((function(e,r){var o=n._openObjectStore("readonly").get(t);o.onsuccess=function(t){return e(t.target.result||null)},o.onerror=function(e){return r("Get record error: ".concat(e.target.error))}})))}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateRecord",value:(o=WL(NL().m((function e(t,n){var r=this;return NL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,new Promise((function(e,o){var i=r._openObjectStore("readwrite").put(n,t);i.onsuccess=function(){return e("Record updated successfully.")},i.onerror=function(e){return o("Update record error: ".concat(e.target.error))}})))}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"deleteRecord",value:(r=WL(NL().m((function e(t){var n=this;return NL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,new Promise((function(e,r){var o=n._openObjectStore("readwrite").delete(t);o.onsuccess=function(){return e("Record deleted successfully.")},o.onerror=function(e){return r("Delete record error: ".concat(e.target.error))}})))}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAllRecords",value:(n=WL(NL().m((function e(){var t=this;return NL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,new Promise((function(e,n){var r=t._openObjectStore("readonly").getAll();r.onsuccess=function(t){return e(t.target.result)},r.onerror=function(e){return n("Get all records error: ".concat(e.target.error))}})))}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearStore",value:(t=WL(NL().m((function e(){var t=this;return NL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,new Promise((function(e,n){var r=t._openObjectStore("readwrite").clear();r.onsuccess=function(){return e("All records cleared successfully.")},r.onerror=function(e){return n("Clear store error: ".concat(e.target.error))}})))}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"release",value:function(){this.db&&(this.db.close(),this.db=null,this.initialized=!1,e.instances.delete(this.storeName),pe.debug('Database "'.concat(e.DB_CONFIG.NAME,'" connection for store "').concat(this.storeName,'" closed.')))}}]);var t,n,r,o,i,a,u}();function KL(e){return KL="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},KL(e)}function qL(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return JL(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(JL(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,JL(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,JL(f,"constructor",c),JL(c,"constructor",s),s.displayName="GeneratorFunction",JL(c,o,"GeneratorFunction"),JL(f),JL(f,o,"Generator"),JL(f,r,(function(){return this})),JL(f,"toString",(function(){return"[object Generator]"})),(qL=function(){return{w:i,m:p}})()}function JL(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}JL=function(e,t,n,r){function i(t,n){JL(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},JL(e,t,n,r)}function YL(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function XL(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){YL(i,r,o,a,u,"next",e)}function u(e){YL(i,r,o,a,u,"throw",e)}a(void 0)}))}}function ZL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$L(r.key),r)}}function $L(e){var t=function(e){if("object"!=KL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=KL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==KL(t)?t:t+""}HL(zL,"instances",new Map),HL(zL,"DB_CONFIG",{NAME:"bio",VERSION:1,STORE_SCHEMAS:{emuid:{},keystore:{}}});var eF=function(){return function(e,t){return t&&ZL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storage=null!=t?t:new zL({storeName:"keystore"})}),[{key:"init",value:(i=XL(qL().m((function e(){return qL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.storage.init();case 1:return e.a(2)}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getKey",value:(o=XL(qL().m((function e(t){var n,r,o;return qL().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.storage.getRecord(t);case 1:if(n=e.v){e.n=4;break}return e.n=2,this._generateKey();case 2:return r=e.v,e.n=3,this._saveKey(t,r);case 3:return e.a(2,r);case 4:return e.a(2,n);case 5:throw e.p=5,o=e.v,pe.error("Failed to import key:",o),new Error("Key retrieval failed.");case 6:return e.a(2)}}),e,this,[[0,5]])}))),function(e){return o.apply(this,arguments)})},{key:"deleteKey",value:(r=XL(qL().m((function e(t){return qL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.storage.deleteRecord(t);case 1:return e.a(2)}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_generateKey",value:(n=XL(qL().m((function e(){var t;return qL().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!1,["encrypt","decrypt"]);case 1:return e.a(2,e.v);case 2:throw e.p=2,t=e.v,pe.error("Failed to generate key:",t),new Error("Key generation failed.");case 3:return e.a(2)}}),e,null,[[0,2]])}))),function(){return n.apply(this,arguments)})},{key:"_saveKey",value:(t=XL(qL().m((function e(t,n){var r;return qL().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.storage.addRecord(t,n);case 1:e.n=3;break;case 2:throw e.p=2,r=e.v,pe.error("Failed to save key:",r),new Error("Ke
2y saving failed.");case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_clearKeys",value:(e=XL(qL().m((function e(){return qL().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.storage.clearStore();case 1:return e.a(2)}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"release",value:function(){this.storage.release()}}]);var e,t,n,r,o,i}();function tF(e){return tF="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},tF(e)}function nF(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return rF(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(rF(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,rF(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,rF(f,"constructor",c),rF(c,"constructor",s),s.displayName="GeneratorFunction",rF(c,o,"GeneratorFunction"),rF(f),rF(f,o,"Generator"),rF(f,r,(function(){return this})),rF(f,"toString",(function(){return"[object Generator]"})),(nF=function(){return{w:i,m:p}})()}function rF(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}rF=function(e,t,n,r){function i(t,n){rF(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},rF(e,t,n,r)}function oF(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function iF(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){oF(i,r,o,a,u,"next",e)}function u(e){oF(i,r,o,a,u,"throw",e)}a(void 0)}))}}function aF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uF(r.key),r)}}function uF(e){var t=function(e){if("object"!=tF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tF(t)?t:t+""}var sF=function(){return function(e,t){return t&&aF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("encryptionKeyName is required.");this.encryptionKeyName=t,this.keyStore=null!=n?n:new eF,this.isInitialized=!1}),[{key:"init",value:(n=iF(nF().m((function e(){return nF().w((function(e){for(;;)switch(e.n){case 0:if(this.isInitialized){e.n=2;break}return e.n=1,this.keyStore.init();case 1:this.isInitialized=!0;case 2:return e.a(2)}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"encrypt",value:(t=iF(nF().m((function e(t){var n,r,o,i,a,u;return nF().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,this.init();case 1:return e.p=1,e.n=2,this.keyStore.getKey(this.encryptionKeyName);case 2:return n=e.v,r=window.crypto.getRandomValues(new Uint8Array(12)),o=(new TextEncoder).encode(t),e.n=3,window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},n,o);case 3:return i=e.v,a=new Uint8Array(i),e.a(2,{encryptedData:Array.from(a),iv:Array.from(r)});case 4:throw e.p=4,u=e.v,pe.error("Encryption failed:",u),new Error("Encryption error occurred.");case 5:return e.a(2)}}),e,this,[[1,4]])}))),function(e){return t.apply(this,arguments)})},{key:"decrypt",value:(e=iF(nF().m((function e(t,n){var r,o,i,a,u,s;return nF().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,this.init();case 1:return e.p=1,e.n=2,this.keyStore.getKey(this.encryptionKeyName);case 2:return r=e.v,o=new Uint8Array(t).buffer,i=new Uint8Array(n),e.n=3,window.crypto.subtle.decrypt({
2name:"AES-GCM",iv:i},r,o);case 3:return a=e.v,u=(new TextDecoder).decode(a),e.a(2,u);case 4:throw e.p=4,s=e.v,pe.error("Decryption failed:",s),new Error("Decryption error occurred.");case 5:return e.a(2)}}),e,this,[[1,4]])}))),function(t,n){return e.apply(this,arguments)})}]);var e,t,n}();function cF(e){return cF="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},cF(e)}function lF(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return fF(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(fF(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fF(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,fF(f,"constructor",c),fF(c,"constructor",s),s.displayName="GeneratorFunction",fF(c,o,"GeneratorFunction"),fF(f),fF(f,o,"Generator"),fF(f,r,(function(){return this})),fF(f,"toString",(function(){return"[object Generator]"})),(lF=function(){return{w:i,m:p}})()}function fF(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fF=function(e,t,n,r){function i(t,n){fF(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fF(e,t,n,r)}function pF(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function dF(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pF(i,r,o,a,u,"next",e)}function u(e){pF(i,r,o,a,u,"throw",e)}a(void 0)}))}}function yF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hF(r.key),r)}}function hF(e){var t=function(e){if("object"!=cF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cF(t)?t:t+""}var mF=function(){return function(e,t){return t&&yF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=t.storeName,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexedDBStorage=new zL({storeName:n}),this.cryptoService=null!=r?r:new sF(n),this.initialized=!1}),[{key:"init",value:(s=dF(lF().m((function e(){return lF().w((function(e){for(;;)switch(e.n){case 0:if(!this.initialized){e.n=1;break}return e.a(2);case 1:return e.n=2,this.indexedDBStorage.init();case 2:return e.n=3,this.cryptoService.init();case 3:this.initialized=!0;case 4:return e.a(2)}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"release",value:function(){this.indexedDBStorage.release(),this.encryptionKeyStorage.release(),this.initialized=!1}},{key:"addRecord",value:(u=dF(lF().m((function e(t,n){var r;return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.n=2,this._encryptRecord(n);case 2:return r=e.v,e.a(2,this.indexedDBStorage.addRecord(t,r))}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"getRecord",value:(a=dF(lF().m((function e(t){var n;return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.n=2,this.indexedDBStorage.getRecord(t);case 2:if(n=e.v){e.n=3;break}return e.a(2,null);case 3:return e.a(2,this._decryptRecord(n))}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"updateRecord",value:(i=dF(lF().m((function e(t,n){var r;return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.n=2,this._encryptRecord(n);case 2:return r=e.v,e.a(2,this.indexedDBStorage.updateRecord(t,r))}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"deleteRecord",value:(o=dF(lF().m((function e(t){return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,this.indexedDBStorage.deleteRecord(t))}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"getAllRecords",value:(r=dF(lF().m((function e(){var t,n=this;return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.n=2,this.indexedDBStorage.getAllRecords();case 2:return t=e.v,e.a(2,Promise.all(t.map((function(e){return n._decryptRecord(e)}))))}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"clearStore",value:(n=dF(lF().m((function e(){return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.init();case 1:return e.a(2,this.indexedDBStorage.clearStore())}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_encryptRecord",value:(t=dF(lF().m((function e(t){var n,r,o;return lF().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.cryptoService.encrypt(JSON.stringify(t));case 1:return n=e.v,r=n.encryptedData,o=n.iv,e.a(2,{encryptedData:r,iv:o})}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_decryptRecord",value:(e=dF(lF().m((function e(t){var n,r,o;return lF().w((function(e){for(;;)switch(e.n){case 0:return n=t.encryptedData,r=t.iv,e.n=1,this.cryptoService.decrypt(n,r);case 1:return o=e.v,e.a(2,JSON.parse(o))}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,o,i,a,u,s}();function vF(e){return vF="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},vF(e)}function bF(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return gF(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(gF(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,gF(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,gF(f,"constructor",c),gF(c,"constructor",s),s.displayName="GeneratorFunction",gF(c,o,"GeneratorFunction"),gF(f),gF(f,o,"Generator"),gF(f,r,(function(){return this})),gF(f,"toString",(function(){return"[object Generator]"})),(bF=function(){return{w:i,m:p}})()}function gF(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}gF=function(e,t,n,r){function i(t,n){gF(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},gF(e,t,n,r)}function _F(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function wF(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){_F(i,r,o,a,u,"next",e)}function u(e){_F(i,r,o,a,u,"throw",e)}a(void 0)}))}}function SF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kF(r.key),r)}}function kF(e){var t=function(e){if("object"!=vF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vF(t)?t:t+""}var EF=function(){return function(e,t){return t&&SF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=t.domUtils,r=t.utils,o=t.configurationRepository,i=t.keys,a=void 0===i?{indexedDBKey:"emuid"}:i,u=t.encryptedIndexedDB,s=void 0===u?new mF({storeName:"emuid"}):u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._domUtils=n,this._utils=r,this._configurationRepository=o,this._encryptedStorage=s,this._keys=a}),[{key:"getEncryptedMuid",value:(n=wF(bF().m((function e(){var t,n;return bF().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,pe.debug("Fetching existing Encrypted MUID from storage..."),e.n=1,this._fetchMuidFromStorage();case 1:if(t=e.v,this._isValidMuid(t)){e.n=3;break}return pe.warn("No valid Encrypted MUID found. Generating a new one..."),e.n=2,this._generateNewMuid();case 2:return t=e.v,e.n=3,this._saveMuidToStorage(t);case 3:return e.a(2,t);case 4:return e.p=4,n=e.v,pe.error("Failed to initialize MUID:",n),e.a(2,null)}}),e,this,[[0,4]])}))),function(){return n.apply(this,arguments)})},{key:"_fetchMuidFromStorage",value:(t=wF(bF().m((function e(){var t,n;return bF().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._encryptedStorage.getRecord(this._keys.indexedDBKey);case 1:return t=e.v,pe.debug("Fetched Encrypted MUID from storage."),e.a(2,(null==t?void 0:t.emuid)||null);case 2:return e.p=2,n=e.v,pe.error("Error retrieving Encrypted MUID from storage:",n),e.a(2,null)}}),e,this,[[0,2]])}))),function(){return t.apply(this,arguments)})},{key:"_saveMuidToStorage",value:(e=wF(bF().m((function e(t){var n;return bF().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._encryptedStorage.updateRecord(this._keys.indexedDBKey,{emuid:t});case 1:pe.debug("Encrypted MUID saved to storage."),e.n=3;break;case 2:e.p=2,n=e.v,pe.error("Error saving Encrypted MUID to storage:",n);case 3:return e.a(2)}}),e,this,[[0,2]])}))),function(t){return e.apply(this,arguments)})},{key:"_generateNewMuid",value:function(){return this._utils.dateNow()+"-"+this._utils.generateUUID().toUpperCase()}},{key:"_isValidMuid",value:function(e){return!!e&&/^([0-9]{13,}-)?[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)}}]);var e,t,n}();function OF(e){return OF="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},OF(e)}function PF(e){return function(e){if(Array.isArray(e))return MF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jF(e)||function(){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 TF(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=jF(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=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 CF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||jF(e,t)||function(){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 jF(e,t){if(e){if("string"==typeof e)return MF(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)?MF(e,t):void 0}}function MF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RF(r.key),r)}}function RF(e){var t=function(e){if("object"!=OF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=OF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==OF(t)?t:t+""}var AF=function(e,t){return t&&xF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var s=i(542),c=i(727),l=i(60),f=r&&Object.keys(r).length?r:s;this.CATEGORY_RULES=Object.create(null);for(var p=0,d=Object.entries(f);p<d.length;p++){var y=CF(d[p],2),h=y[0],m=y[1];this.CATEGORY_RULES[h]=m}var v=null!=o&&null!==(t=o.attributes)&&void 0!==t&&t.length?o:c;this.ATTRIBUTE_NAMES=v.attributes;var b=null!=a&&null!==(n=a.selectors)&&void 0!==n&&n.length?a:l;this.ELEMENT_SELECTORS=b.selectors.join(","),this._scanAttributeNames=[],this._rebuildScanAttributeNames(u),this._cache=new WeakMap}),[{key:"_rebuildScanAttributeNames",value:function(e){try{var t=[];if(e&&"function"==typeof e.get){var n=e.get(P.customElementAttribute);if(n)if(Array.isArray(n)){var r,o=TF(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;"string"==typeof i&&i.length&&t.push(i)}}catch(e){o.e(e)}finally{o.f()}}else"string"==typeof n&&t.push(n)}var a=this.ATTRIBUTE_NAMES.concat(t);this._scanAttributeNames=PF(new Set(a))}catch(e){pe.error("CategoryService._rebuildScanAttributeNames failed: ".concat(e)),this._scanAttributeNames=this.ATTRIBUTE_NAMES.slice()}}},{key:"onConfigUpdate",value:function(e){var t,n,r=function(e){if(!e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch(e){return null}return"object"===OF(e)?e:null},o=r(e.get(P.elementCategories));if(o&&Object.keys(o).length){for(var i=Object.create(null),a=0,u=Object.entries(o);a<u.length;a++){var s=CF(u[a],2),c=s[0],l=s[1];i[c]=l}this.CATEGORY_RULES=i}var f=r(e.get(P.elementAttributes));null!=f&&null!==(t=f.attributes)&&void 0!==t&&t.length&&(this.ATTRIBUTE_NAMES=f.attributes);var p=r(e.get(P.elementSelectors));null!=p&&null!==(n=p.selectors)&&void 0!==n&&n.length&&(this.ELEMENT_SELECTORS=p.selectors.join(",")),this._rebuildScanAttributeNames(e)}},{key:"categoryField",value:function(e){try{if(!(e&&e instanceof HTMLElement))return"0";var t=this._cache.get(e);if(void 0!==t)return t;if("hidden"===e.type)return this._cache.set(e,"0"),"0";var n=this._resolveControlNode(e);if(!n)return this._cache.set(e,"0"),"0";
2var r=this._collectStrings(n);if(!r.length)return this._cache.set(e,"0"),"0";var o,i=Object.create(null),a="0",u=0,s=TF(r);try{e:for(s.s();!(o=s.n()).done;){var c=o.value,l=String(c).trim().toLowerCase(),f=this.CATEGORY_RULES[l];if(null!=f){var p=String(f);return this._cache.set(e,p),p}var d,y=TF(this._splitWords(c));try{for(y.s();!(d=y.n()).done;){var h=d.value,m=this.CATEGORY_RULES[h];if(null!=m){var v=(i[m]||0)+1;if(i[m]=v,v>u&&(a=String(m),(u=v)>=3))break e}}}catch(e){y.e(e)}finally{y.f()}}}catch(e){s.e(e)}finally{s.f()}return this._cache.set(e,a),a}catch(e){return pe.error("CategoryService.categoryField failed: ".concat(e)),"-1"}}},{key:"_resolveControlNode",value:function(e){if(e.matches(this.ELEMENT_SELECTORS))return e;if(e.shadowRoot){var t=e.shadowRoot.querySelector(this.ELEMENT_SELECTORS);if(t)return t}return null}},{key:"_collectStrings",value:function(e){var t=new Set,n=this._scanAttributeNames,r=function(e){var r,o=TF(n);try{for(o.s();!(r=o.n()).done;){var i,a=r.value,u=null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,a);if(u){var s=u.toLowerCase();t.has(s)||t.add(s)}}}catch(e){o.e(e)}finally{o.f()}};r(e),e.shadowRoot&&e.shadowRoot.querySelectorAll("*").forEach(r);var o=e.getRootNode();if(e.id){var i,a="undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(e.id):e.id,u=o.querySelector('label[for="'.concat(a,'"]'));if(u||o===document||(u=document.querySelector('label[for="'.concat(a,'"]'))),null!==(i=u)&&void 0!==i&&i.textContent){var s=u.textContent.toLowerCase().replace(/ /g,"");t.has(s)||t.add(s)}}return PF(t)}},{key:"_splitWords",value:function(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").split(/[^a-z0-9]+/i).filter(Boolean).map((function(e){return e.toLowerCase()}))}}]);function BF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var DF=function(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BF(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)?BF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),n=t[0],r=t[1];return[n,null==r?null:JSON.stringify(r)]})))};function IF(e){return IF="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},IF(e)}function LF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FF(r.key),r)}}function FF(e){var t=function(e){if("object"!=IF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=IF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==IF(t)?t:t+""}var NF=function(e,t){return t&&LF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._configurationRepository=t,this._dataQ=n,this._aggregatedDebugInfoData={},this._changeId=-1,this._flushId=-1,this._dataQ.registerOnPreSendToWorker(this._onPreSendToWorker.bind(this)),this._someNumberWtf=-1,this.defaultCollectionLevels={emuid:"debug",drm:"debug",cpu:"debug",font_emoji_info:"debug",font_math_info:"debug",font_width_info:"debug",navigator_pdfViewerEnabled:"debug",navigator_webdriver:"debug",navigator_userAgentData:"debug",navigator_appVersion:"debug",navigator_platform:"debug",navigator_vendor:"debug",navigator_productSub:"debug",navigator_vendorSub:"debug",navigator_onLine
2:"debug",navigator_prototype:"debug",heap:"debug",audio_detect_feature2:"debug",cpuTiming:"debug",graphicTiming:"debug",browserTiming:"debug",fontTiming:"debug",is_incognito:"debug",browser_extensions_url:"debug",webgpu:"debug"},this._fixedDebugFeatures=["emuid"]}),[{key:"addToQueue",value:function(e,t,n,r){var o,i=this._resolveDebugInfoCollectionLevels(),a=t[0];if("key_events_v2"===(o=a)||"mouse_events_v2"===o||"elements_events_v2"===o||"elements_v2"===o)this._dataQ.addToQueue("customer_metadata",function(e,t){var n={};n[e[0]]=e[1];var r=JSON.parse(JSON.stringify(n));return{some_number_wtf:t,data:DF(r)}}(t,this._someNumberWtf++));else{var u=this._fixedDebugFeatures.includes(a)?"debug":i[a];"debug"===u?(this._aggregatedDebugInfoData[a]=t[1],this._changeId++):"prod"===u?this._dataQ.addToQueue(e,t,n,r):pe.warn("Received collectionLevel = ".concat(u," for ").concat(a))}}},{key:"_onPreSendToWorker",value:function(){this._changeId!==this._flushId&&0!==Object.keys(this._aggregatedDebugInfoData).length&&(this._appendAggregatedDebugInfoDataToQueue(),this._flushId=this._changeId)}},{key:"_appendAggregatedDebugInfoDataToQueue",value:function(){var e=JSON.parse(JSON.stringify(this._aggregatedDebugInfoData));this._dataQ.appendData("static_fields",["client_debug_info",e])}},{key:"_resolveDebugInfoCollectionLevels",value:function(){var e=this._configurationRepository.get("debugInfoCollectionLevels");if(!e)return this.defaultCollectionLevels;try{return JSON.parse(e)}catch(e){return pe.error("Invalid debugInfoCollectionLevels config, falling back to defaults",e),this.defaultCollectionLevels}}}]);function UF(e){return UF="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},UF(e)}function GF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QF(r.key),r)}}function WF(e,t,n){return(t=QF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QF(e){var t=function(e){if("object"!=UF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=UF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==UF(t)?t:t+""}var HF=function(e,t){return t&&GF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),WF(this,"handleEvent",(function(e){}))}),[{key:"getEvents",value:function(){}},{key:"updateConfig",value:function(){}},{key:"getTimestampFromEvent",value:function(e){return e.timeStamp?Ke.cutDecimalPointDigits(e.timeStamp,3):0}}]);function VF(e){return VF="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},VF(e)}function zF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XF(r.key),r)}}function KF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KF=function(){return!!e})()}function qF(e){return qF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qF(e)}function JF(e,t){return JF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JF(e,t)}function YF(e,t,n){return(t=XF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XF(e){var t=function(e){if("object"!=VF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==VF(t)?t:t+""}WF(HF,"configKey","");var ZF,$F=function(e){function t(e,n,r,o,i,a,u){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),YF(s=function(e,t,n){return t=qF(t),function(e,t){if(t&&("object"==VF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,KF()?Reflect.construct(t,n||[],qF(e).constructor):t.apply(e,n))}(this,t),"handleEvent",(function(e){var t=ho[e.type];t!==ho.keydown&&t!==ho.keyup||s._msgBus.publish(Ln,{action:t});var n=s._elements.getRealEventTarget(e).id,r=ho[e.type];s._utils.isUndefinedNull(r)&&(r=-1);var o=s._utils.StorageUtils.getAndUpdateEventSequenceNumber(),i=Ke.dateNow(),a=e.key||s._maskingService.getKeyFromLegacyProperties(e),u=e.code||"",c=s._maskingService.maskKey(a,u,n),l=c.key.length>1?"":c.key,f=s._elements.getElementHashFromEvent(e),p=s._getComboType(e,a),d=Dr[e.isTrusted],y="Meta"===e.key||"OS"===e.key||"Win"===e.key||e.metaKey||91===e.keyCode||92===e.keyCode,h=s._configurationRepository.get(P.collectKeyRegionValue)?s._getKeyRegion(u):"-1",m=s.getTimestampFromEvent(e),v=oo.undefined;"keypress"===e.type&&(v=s._sameCharService.compare(e.target,e.key),s._sameCharService.update(e.target,e.key)),s._dataQueue.addToQueue("customer_metadata",["key_events_v2",s._utils.convertToArrayByMap(mo,{eventType:r,eventSequence:o,timestamp:i,charCode:c.charCode,character:l,elementHash:f,keyComboType:p,isTrusted:d,isCtrl:e.ctrlKey||!1,isShift:e.shiftKey||!1,isAlt:e.altKey||!1,isMetaKey:y||!1,keyLocation:e.location||0,code:c.code||"",key:c.key||"",location:e.location||"",isRepeat:e.repeat||!1,keyRegion:h,relativeTime:m,isSameKey:v})])})),s._configurationRepository=e,s._utils=n,s._elements=r,s._data
2Queue=o,s._msgBus=i,s._sameCharService=a,s._maskingService=u,s.comboCodes=["c","v","a","x","z","p","s"],s._useCaptureEvents=s._configurationRepository.get(P.isCaptureKeyEvents),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JF(e,t)}(t,e),function(e,t){return t&&zF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getEvents",value:function(){return["keydown","keyup","keypress"]}},{key:"_getKeyRegion",value:function(e){return ao[e]?ao[e]:"-1"}},{key:"_getComboType",value:function(e,t){return(e.ctrlKey||e.metaKey)&&void 0!==t?this.comboCodes.indexOf(t):-1}}])}(HF);function eN(e){return eN="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},eN(e)}function tN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nN(r.key),r)}}function nN(e){var t=function(e){if("object"!=eN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eN(t)?t:t+""}YF($F,"configKey","isKeyCollector");var rN=function(e,t){return t&&tN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ZF)throw new Error("you can only create one instance!");ZF=this}),[{key:"insert",value:function(e,t,n,r,o,i,a,u,s,c,l,f,p,d,y,h,m,v,b,g){Object.isFrozen(this)||(this._features=e,this._configurationRepository=t,this._utils=n,this._elements=r,this._dataQ=o,this._devDebugDataQueue=i,this._sessionService=u,this._muidService=s,this._muidEncryptedService=c,this._perfMonitor=l,this._sensorDataQ=f,this._msgBus=p,this._cidCache=d,this._sameCharService=y,this._maskingService=h,this._categoryService=m,this._configurations=a,this._wasmModuleLoader=v,this._contextMgr=b,this._fontTimingService=g,Object.freeze(this))}}]),oN=new rN;function iN(e){return iN="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},iN(e)}function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aN(Object(n),!0).forEach((function(t){pN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dN(r.key),r)}}function cN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cN=function(){return!!e})()}function lN(e){return lN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lN(e)}
2function fN(e,t){return fN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fN(e,t)}function pN(e,t,n){return(t=dN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dN(e){var t=function(e){if("object"!=iN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=iN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iN(t)?t:t+""}var yN=function(e){function t(e,n,r,o,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),pN(u=function(e,t,n){return t=lN(t),function(e,t){if(t&&("object"==iN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cN()?Reflect.construct(t,n||[],lN(e).constructor):t.apply(e,n))}(this,t),"handleEvent",(function(e){e.target.matches("input:not([type='color']):not([type='hidden']):not([type='file']):not([type='image']):not([type='button']):not([type='radio']):not([type='checkbox']), textarea")&&("input"===e.type?u._handleInputEvent(e):"focusout"!==e.type&&"focusin"!==e.type||u._handleFocusBlurEvent(e)),e.target.matches("input[type='button'], input[type='radio'], input[type='checkbox'], button")&&u._handleClickEvent(e),e.target.matches("select")&&("change"===e.type?u._handleSelectElementOnChangeEvent(e):u._collectSelectElementBlurAndFocusEvents&&("focusout"!==e.type&&"focusin"!==e.type||u._handleFocusBlurEvent(e)))})),u._maxElemValLength=200,u._inputEventsPerElement=new WeakMap,u._msgBus=e,u._utils=n,u._elements=r,u._maskingService=o,u._dataQ=i,u._configurationRepository=a,u._collectSelectElementBlurAndFocusEvents=u._configurationRepository.get(P.collectSelectElementBlurAndFocusEvents),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fN(e,t)}(t,e),function(e,t){return t&&sN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getEvents",value:function(){return["input","focusin","focusout","click","change"]}},{key:"updateConfig",value:function(){this._hashTruncationLength=void 0!==this._configurationRepository.get("elementHashTruncationLength")?this._configurationRepository.get("elementHashTruncationLength"):this._hashTruncationLength,this._elements.updateFeatureConfig()}},{key:"_handleInputEvent",value:function(e){"InputEvent"===e.constructor.name&&this._inputEventsPerElement.set(e.target,{});var t=e.target.value||"";""!==t&&(t=this._maskingService.maskText(t,e.target.id)),this._sendToQueue(e,{length:t?t.length:0,elementValues:t,selected:-1})}},{key:"_handleFocusBlurEvent",value:function(e){this._sendToQueue(e,{length:0,selected:-1,elementValues:""})}},{key:"_handleClickEvent",value:function(e){var t=e.target,n=t.value||t.innerHTML||"";n=this._maskingService.maskText(n,e.target.id),this._sendToQueue(e,{length:n.length,elementValues:n,selected:void 0===t.checked?-1:t.checked?1:0})}},{key:"_handleSelectElementOnChangeEvent",value:function(e){var t=Ke.getDropDownListValues(e.target,this._maskingService).join(";");t=Ke.clearTextFromNumbers(t);var n=e.target.selectedIndex,r=e.target.value.length;this._sendToQueue(e,{length:r,selected:n,elementValues:t})}},{key:"_handleSyntheticInputEvents",value:function(e){if(!this._inputEventsPerElement.has(e.target)||void 0!==e.jQueryMask&&("autotab"===e.jQueryMask||"prasleyValidator"===e.jQueryMask)){var t=e.target.value||"";""!==t&&(t=this._maskingService.maskText(t,e.target.id)),this._sendToQueue(e,{length:t?t.length:0,elementValues:t,selected:-1})}}},{key:"_sendToQueue",value:function(e,t){var n=Dr[e.isTrusted],r=Ke.dateNow(),o=this.getTimestampFromEvent(e),i=ll[e.type];this._utils.isUndefinedNull(i)&&(i=-1);var a=this._elements.getElementHashFromEvent(e),u=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();(t=t||{}).elementValues&&t.elementValues.length>this._maxElemValLength&&(t.elementValues="");var s=uN(uN({},t),{eventType:i,eventSequence:u,timestamp:r,elementHash:a,isTrusted:n,hashedValue:"",relativeTime:o});this._dataQ.addToQueue("customer_metadata",["elements_events_v2",this._utils.convertToArrayByMap(fl,s)],!0)}}])}(HF);function hN(e){return hN="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},hN(e)}function mN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wN(r.key),r)}}function vN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vN=function(){return!!e})()}
2function bN(e){return bN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bN(e)}function gN(e,t){return gN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gN(e,t)}function _N(e,t,n){return(t=wN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wN(e){var t=function(e){if("object"!=hN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hN(t)?t:t+""}pN(yN,"configKey","isElementsEvent");var SN={mousemove:0,mousedown:1,mouseup:2,click:3,dblclick:4,mouseleave:5,mouseenter:6,wheel:7,mouseout:8,mouseover:9},kN=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_N(i=function(e,t,n){return t=bN(t),function(e,t){if(t&&("object"==hN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vN()?Reflect.construct(t,n||[],bN(e).constructor):t.apply(e,n))}(this,t),"handleEvent",(function(e){var t=e.which;"mouseup"===e.type?i._lastButton=t:"click"===e.type&&0===t&&(t=i._lastButton);var n=SN[e.type];i._utils.isUndefinedNull(n)&&(n=-1);var r=e.deltaY||e.deltaX||e.deltaZ||e.wheelDelta||0,o=i.getTimestampFromEvent(e);i._dataQueue.addToQueue("customer_metadata",["mouse_events_v2",[null,i._utils.StorageUtils.getAndUpdateEventSequenceNumber(),Ke.dateNow(),n,Dr[e.isTrusted],"mousemove"===e.type?0:i._elements.getElementHashFromEvent(e),i._maskingService.shouldMaskCoordinates()?Wr:i._roundCoordinate(e.pageX),i._maskingService.shouldMaskCoordinates()?Wr:i._roundCoordinate(e.pageY),i._maskingService.shouldMaskCoordinates()?Wr:i._roundCoordinate(e.screenX),i._maskingService.shouldMaskCoordinates()?Wr:i._roundCoordinate(e.screenY),null==t?-1:t,Math.round(r),i._maskingService.shouldMaskCoordinates()?Wr:i._roundCoordinate(e.clientX),i._maskingService.shouldMaskCoordinates()?Wr:i._roundCoordinate(e.clientY),e.detail||0,null===e.button||void 0===e.button?-1:e.button,o]])})),i._utils=e,i._elements=n,i._dataQueue=r,i._maskingService=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gN(e,t)}(t,e),function(e,t){return t&&mN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getEvents",value:function(){return["mousemove","mousedown","mouseup","click","dblclick"]}},{key:"_roundCoordinate",value:function(e){return e?Math.round(e):-1}}])}(HF);_N(kN,"configKey","isMouseCollector");var EN={MouseEventCollectorV2:kN,ElementEventCollectorV2:yN,KeyEventCollectorV2:$F},ON={MouseEventCollectorV2:kN,ElementEventCollectorV2:yN,KeyEventCollectorV2:$F},PN={},TN={},CN={};function jN(e){return jN="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},jN(e)}function MN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xN(r.key),r)}}function xN(e){var t=function(e){if("object"!=jN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jN(t)?t:t+""}var RN=function(e,t){return t&&MN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.iframes=[]}),[{key:"enqueue",value:function(e){this.iframes.push(e)}},{key:"dequeue",value:function(){return this.isEmpty()?null:this.iframes.shift()}},{key:"peek",value:function(){return this.isEmpty()?"No elements in queue":this.iframes[0]}},{key:"isEmpty",value:function(){return 0===this.iframes.length}},{key:"size",value:function(){return this.iframes.length}}]);function AN(e){return AN="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},AN(e)}function BN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DN(r.key),r)}}function DN(e){var t=function(e){if("object"!=AN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=AN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AN(t)?t:t+""}var IN=function(e,t){return t&&BN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"detect",value:function(e,t){}}]);function LN(e){return LN="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},LN(e)}function FN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QN(r.key),r)}}function NN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NN=function(){return!!e})()}
2function UN(e){return UN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UN(e)}function GN(e,t){return GN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GN(e,t)}function WN(e,t,n){return(t=QN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e){var t=function(e){if("object"!=LN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LN(t)?t:t+""}var HN=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),WN(n=function(e,t,n){return t=UN(t),function(e,t){if(t&&("object"==LN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,NN()?Reflect.construct(t,n||[],UN(e).constructor):t.apply(e,n))}(this,t),"_iframesQueue",new RN),WN(n,"_allFrames",[]),WN(n,"_iframeRefs",[]),WN(n,"_processedFrames",new WeakSet),WN(n,"_processDone",!1),WN(n,"_processingStarted",!1),WN(n,"_pendingDocuments",0),WN(n,"_resolveDone",null),WN(n,"_donePromise",null),WN(n,"_drainingQueue",!1),n._enableFramesProcessing=e.get(P.enableFramesProcessing),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GN(e,t)}(t,e),function(e,t){return t&&FN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:function(e,t){var n=this;if(this._enableFramesProcessing)return this._processDone?(this._handleProcessedFrames(t),Promise.resolve(this._allFrames)):(this._processingStarted||(this._processingStarted=!0,this._donePromise=new Promise((function(e){n._resolveDone=e})),this._enqueueDocument(e,0),this._scheduleQueueDrain(t)),this._donePromise)}},{key:"addIframeToCache",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this._resolveIframeInput(e),r=n.doc,o=n.iframeElement;r&&!this._processedFrames.has(r)&&(this._processedFrames.add(r),this._allFrames.includes(r)||this._allFrames.push(r),o&&!this._iframeRefs.find((function(e){return e.iframe===o}))&&this._iframeRefs.push({iframe:o,depth:t}))}},{key:"removeIframeFromCache",value:function(e){var t=this._resolveIframeInput(e),n=t.doc,r=t.iframeElement;n&&(this._processedFrames.delete(n),this._allFrames=this._allFrames.filter((function(e){return e!==n})),this._iframeRefs=this._iframeRefs.filter((function(e){var t=e.iframe;if(r)return t!==r;try{var o;return((null==t?void 0:t.contentDocument)||(null==t||null===(o=t.contentWindow)||void 0===o?void 0:o.document))!==n}catch(e){return!0}})))}},{key:"_handleProcessedFrames",value:function(e){var t=this;this._allFrames.forEach((function(n){t._processedFrames.has(n)&&e(n)}))}},{key:"_enqueueDocument",value:function(e,t){e&&!this._processedFrames.has(e)&&(this._pendingDocuments+=1,this._iframesQueue.enqueue({doc:e,depth:t}))}},{key:"_scheduleQueueDrain",value:function(e){var t=this;if(!this._drainingQueue){this._drainingQueue=!0;var n=function n(){t._processNext(e),t._iframesQueue.isEmpty()?(t._drainingQueue=!1,t._tryFinalize()):setTimeout(n,0)};setTimeout(n,0)}}},{key:"_processNext",value:function(e){var t=this._iframesQueue.dequeue();if(t){var n=t.doc,r=t.depth;try{this._processDocument(n,e,r)}catch(e){pe.warn("Could not attach to document at depth ".concat(r,":"),e.message)}finally{this._markDocumentDone()}}}},{key:"_processDocument",value:function(e,t,n){var r=this;this._processedFrames.has(e)||(n>0&&(this._processedFrames.add(e),this._allFrames.push(e),t(e)),this._enableFramesProcessing&&e.querySelectorAll("iframe").forEach((function(e){r._iframeRefs.push({iframe:e,depth:n});var o=function(){try{var o,i=e.contentDocument||(null===(o=e.contentWindow)||void 0===o?void 0:o.document);if(!i)return void pe.warn("Cannot access iframe document at depth ".concat(n+1," - likely cross-origin"));r._enqueueDocument(i,n+1),r._scheduleQueueDrain(t)}catch(e){pe.warn("Could not access iframe at depth ".concat(n+1,":"),e.message)}};o(),e.addEventListener("load",(function(){return o()}))})))}},{key:"_markDocumentDone",value:function(){this._pendingDocuments=Math.max(0,this._pendingDocuments-1),this._tryFinalize()}}
2,{key:"_tryFinalize",value:function(){0===this._pendingDocuments&&this._iframesQueue.isEmpty()&&this._processingStarted&&!this._processDone&&(this._processDone=!0,this._resolveDone&&(this._resolveDone(this._allFrames),this._resolveDone=null))}},{key:"_resolveIframeInput",value:function(e){if(!e)return{doc:null,iframeElement:null};if("IFRAME"===e.tagName)try{var t;return{doc:e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document),iframeElement:e}}catch(t){return console.warn("Cannot access iframe while updating cache:",t.message),{doc:null,iframeElement:e}}return e.nodeType===Node.DOCUMENT_NODE?{doc:e,iframeElement:null}:{doc:null,iframeElement:null}}}])}(IN);function VN(e){return VN="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},VN(e)}function zN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XN(r.key),r)}}function KN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KN=function(){return!!e})()}function qN(e){return qN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qN(e)}function JN(e,t){return JN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JN(e,t)}function YN(e,t,n){return(t=XN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e){var t=function(e){if("object"!=VN(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==VN(t)?t:t+""}var ZN=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),YN(o=function(e,t,n){return t=qN(t),function(e,t){if(t&&("object"==VN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,KN()?Reflect.construct(t,n||[],qN(e).constructor):t.apply(e,n))}(this,t),"handleEvent",(function(e){if(pe.info("context props event: ",window.document),self.screen){var t=window.devicePixelRatio?window.devicePixelRatio:-1,n=window.devicePixelRatio?window.devicePixelRatio:-1;o._shouldCollectStaticFields()&&o._dataQ.addToQueue("static_fields",["display",[screen.colorDepth,screen.width,screen.height,screen.availHeight||-1,screen.availWidth||-1,t,n]],!1)}o.reportPageLoadTime()}
2)),o._domUtils=$o,o._dataQ=e,o._perfMonitor=n,o._configurationRepository=r,o._observerCallback=o._observerCallback.bind(o),o.calcTime=o.calcTime.bind(o),o._getEntriesByType=o._getEntriesByType.bind(o),o.callMethod=o._configurationRepository.get(P.useLegacyZeroTimeout)?Ke.asyncCall:Ke.asyncTimeoutCall,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JN(e,t)}(t,e),function(e,t){return t&&zN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getEvents",value:function(){return[]}},{key:"_shouldCollectStaticFields",value:function(){var e;return(null===(e=this._configurationRepository)||void 0===e?void 0:e.get(P.agentType))!==V.SECONDARY}},{key:"reportPageLoadTime",value:function(){if(window.performance&&"PerformanceNavigationTiming"in window){var e="navigation";if(!("PerformanceObserver"in window)||!this._isEntrySupportedByBrowser(e))return void this.reportPageLoadTimeFallback();var t=new PerformanceObserver(this._observerCallback);try{t.observe({type:e,buffered:!0})}catch(e){this.reportPageLoadTimeFallback()}}else this.reportPageLoadTimeFallback()}},{key:"reportPageLoadTimeFallback",value:function(){var e=this;$o.isWindowDocumentReady(window)?this.callMethod.call(this._getEntriesByType):Ke.addEventListener(self,"load",(function(){e.callMethod.call(e._getEntriesByType)}))}},{key:"_observerCallback",value:function(e,t){var n=e.getEntries()[0];n.duration&&(this.calcTime(n),"disconnect"in t&&t.disconnect())}},{key:"_isEntrySupportedByBrowser",value:function(e){return!("supportedEntryTypes"in window.PerformanceObserver)||PerformanceObserver.supportedEntryTypes.includes(e)}},{key:"_getEntriesByType",value:function(){if(window.performance.timing&&window.performance.timing.loadEventEnd&&window.performance.timing.navigationStart){var e={duration:window.performance.timing.loadEventEnd-window.performance.timing.navigationStart};this.calcTime(e)}}}
2,{key:"calcTime",value:function(e){Ke.isUndefinedNull(e)?pe.warn("Context Props Feature: no entries of navigation timing were captured"):Ke.isUndefinedNull(e)||!Ke.isUndefinedNull(e.duration)?this._perfMonitor.reportMonitor("t.timeTillPageLoad",Math.round(e.duration)):pe.warn("Context Props Feature: page duration loading was not calculated")}}])}(HF);function $N(e){return $N="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},$N(e)}function eU(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return tU(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(tU(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,tU(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,tU(f,"constructor",c),tU(c,"constructor",s),s.displayName="GeneratorFunction",tU(c,o,"GeneratorFunction"),tU(f),tU(f,o,"Generator"),tU(f,r,(function(){return this})),tU(f,"toString",(function(){return"[object Generator]"})),(eU=function(){return{w:i,m:p}})()}function tU(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tU=function(e,t,n,r){function i(t,n){tU(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},tU(e,t,n,r)}function nU(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function rU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sU(r.key),r)}}function oU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oU=function(){return!!e})()}function iU(e){return iU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iU(e)}function aU(e,t){return aU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aU(e,t)}function uU(e,t,n){return(t=sU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sU(e){var t=function(e){if("object"!=$N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$N(t)?t:t+""}YN(ZN,"configKey","isContextPropsFeature");var cU=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),uU(n=function(e,t,n){return t=iU(t),function(e,t){if(t&&("object"==$N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oU()?Reflect.construct(t,n||[],iU(e).constructor):t.apply(e,n))}(this,t),"handleEvent",function(){var e,t=(e=eU().m((function e(t){var r;return eU().w((function(e){for(;;)switch(e.n){case 0:pe.info("HeapCollector - Starting heap data collection");try{r=n.collectHeapData(),pe.info("HeapCollector - Heap Data collected: "+JSON.stringify(r)),n.sendData(r)}catch(e){pe.error("HeapCollector - Error during data collection:",e)}case 1:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){nU(i,r,o,a,u,"next",e)}function u(e){nU(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),n._dataQ=e,n._performance=window.performance,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aU(e,t)}(t,e),function(e,t){return t&&rU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"updateConfig",value:function(){}},{key:"getEvents",value:function(){return[]}},{key:"sendData",value:function(e){this._dataQ.addToQueue("static_fields",["heap",e],!1)}},{key:"collectHeapData",value:function(){var e={timestamp:Date.now()};try{if(this._performance&&this._performance.memory){var t=this._performance.memory,n=t.usedJSHeapSize,r=t.totalJSHeapSize,o=t.jsHeapSizeLimit;void 0!==n&&(e.usedJSHeapSize=n),void 0!==r&&(e.totalJSHeapSize=r),void 0!==o&&(e.jsHeapSizeLimit=o)}}
2catch(e){pe.info("HeapCollector - Error collecting heap data:",e)}return e}}])}(HF);function lU(e){return lU="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},lU(e)}function fU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mU(r.key),r)}}function pU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pU=function(){return!!e})()}function dU(e){return dU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dU(e)}function yU(e,t){return yU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yU(e,t)}function hU(e,t,n){return(t=mU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mU(e){var t=function(e){if("object"!=lU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lU(t)?t:t+""}uU(cU,"configKey","isHeapFeature");var vU=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hU(i=function(e,t,n){return t=dU(t),function(e,t){if(t&&("object"==lU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pU()?Reflect.construct(t,n||[],dU(e).constructor):t.apply(e,n))}(this,t),"handleEvent",(function(e){var t=!1,n=null,r=null;null===e.key&&(n=null),"string"==typeof e.key&&null===e.newValue?(n=e.key,r="delete"):(n=e.key,r="update");var o=i._utils.StorageUtils.getFromLocalStorage("cdTabList");o&&"object"===lU(o[0])&&(t=!0),t=t?1:0,i._addToCommunicationQueue(e.type,n,r,t,e)})),i._utils=e,i._dataQ=n,i._elements=r,i._msgBus=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yU(e,t)}(t,e),function(e,t){return t&&fU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getEvents",value:function(){return["storage"]}},{key:"_addToCommunicationQueue",value:function(e,t,n,r,o){0===e&&this._msgBus.publish("storageEvent",{action:e});var i=Ke.dateNow(),a=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._dataQ.addToQueue("storage_events",this._utils.convertToArrayByMap(EventStructure,{eventSequence:a,timestamp:i,keys:t,action:n,tabsOpened:r}))}}])}(HF);function bU(e){return bU="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},bU(e)}function gU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_U(r.key),r)}}function _U(e){var t=function(e){if("object"!=bU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bU(t)?t:t+""}hU(vU,"configKey","isStorageEvents");var wU=function(e,t){return t&&gU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"create",value:function(e){return"ElementEventCollectorV2"===e?new yN(oN._msgBus,oN._utils,oN._elements,oN._maskingService,oN._devDebugDataQueue,oN._configurationRepository):"MouseEventC
2ollectorV2"===e?new kN(oN._utils,oN._elements,oN._devDebugDataQueue,oN._maskingService):"KeyEventCollectorV2"===e?new $F(oN._configurationRepository,oN._utils,oN._elements,oN._devDebugDataQueue,oN._msgBus,oN._sameCharService,oN._maskingService):"ContextPropsFeatureV2"===e?new ZN(oN._devDebugDataQueue,oN._perfMonitor,oN._configurationRepository):"HeapCollectorV2"===e?new cU(oN._devDebugDataQueue):"StorageEventCollectorV2"===e?new vU(oN._utils,oN._devDebugDataQueue,oN._elements,oN._msgBus):void 0}},{key:"configKey",value:function(e){switch(e){case"ElementEventCollectorV2":return yN.configKey;case"MouseEventCollectorV2":return kN.configKey;case"KeyEventCollectorV2":return $F.configKey;case"ContextPropsFeatureV2":return ZN.configKey;case"HeapCollectorV2":return cU.configKey;case"StorageEventCollectorV2":return vU.configKey}}}]);function SU(e){return SU="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},SU(e)}function kU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EU(r.key),r)}}function EU(e){var t=function(e){if("object"!=SU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=SU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==SU(t)?t:t+""}function OU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OU=function(){return!!e})()}function PU(e){return PU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PU(e)}function TU(e,t){return TU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TU(e,t)}var CU=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=PU(t),function(e,t){if(t&&("object"==SU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,OU()?Reflect.construct(t,n||[],PU(e).constructor):t.apply(e,n))}(this,t))._elementsToDetect=[],e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TU(e,t)}(t,e),function(e,t){return t&&kU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:function(e,t){e.querySelectorAll("input:not([type='color']):not([type='hidden']):not([type='file']):not([type='image']):not([type='button']):not([type='radio']):not([type='checkbox']), textarea").forEach((function(e){t(e)})),e.querySelectorAll("input[type='button'], input[type='radio'], input[type='checkbox'], button").forEach((function(e){t(e)})),e.querySelectorAll("select").forEach((function(e){t(e)}))}}])}(IN);function jU(e){return jU="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},jU(e)}function MU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DU(r.key),r)}}function xU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xU=function(){return!!e})()}function RU(e){return RU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RU(e)}function AU(e,t){return AU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AU(e,t)}function BU(e,t,n){return(t=DU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DU(e){var t=function(e){if("object"!=jU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jU(t)?t:t+""}var IU=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BU(e=function(e,t,n){return t=RU(t),function(e,t){if(t&&("object"==jU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xU()?Reflect.construct(t,n||[],RU(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"_rootsQueue",[]),BU(e,"_allShadowRoots",[]),BU(e,"_processedRoots",new WeakSet),BU(e,"_processDone",!1),BU(e,"_processingStarted",!1),BU(e,"_pendingRoots",0),BU(e,"_resolveDone",null),BU(e,"_donePromise",null),BU(e,"_drainingQueue",!1),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AU(e,t)}(t,e),function(e,t){return t&&MU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:function(e,t){var n=this;return this._processDone?(this._handleProcessedRoots(t),Promise.resolve(this._allShadowRoots)):(this._processingStarted||(this._processingStarted=!0,this._donePromise=new Promise((function(e){n._resolveDone=e})),this._enqueueRoot(e,0),this._scheduleQueueDrain(t)),this._donePromise)}},{key:"_handleProcessedRoots",value:function(e){var t=this;
2this._allShadowRoots.forEach((function(n){t._processedRoots.has(n)&&e(n)}))}},{key:"_enqueueRoot",value:function(e,t){e&&!this._processedRoots.has(e)&&(this._pendingRoots+=1,this._rootsQueue.push({root:e,depth:t}))}},{key:"_scheduleQueueDrain",value:function(e){var t=this;if(!this._drainingQueue){this._drainingQueue=!0;var n=function n(){t._processNext(e),t._rootsQueue.length>0?setTimeout(n,0):(t._drainingQueue=!1,t._tryFinalize())};setTimeout(n,0)}}},{key:"_processNext",value:function(e){var t=this._rootsQueue.shift();if(t){var n=t.root,r=t.depth;try{this._processRoot(n,e,r)}catch(e){console.warn("Could not process shadow root at depth ".concat(r,":"),e.message)}finally{this._markRootDone()}}}},{key:"_processRoot",value:function(e,t,n){if(!this._processedRoots.has(e)){n>0&&(this._processedRoots.add(e),this._allShadowRoots.push(e),t(e));for(var r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT),o=r.currentNode;o;){var i=o.shadowRoot;i&&"open"===i.mode&&!this._processedRoots.has(i)&&(this._enqueueRoot(i,n+1),this._scheduleQueueDrain(t)),o=r.nextNode()}}}},{key:"_markRootDone",value:function(){this._pendingRoots=Math.max(0,this._pendingRoots-1),this._tryFinalize()}},{key:"_tryFinalize",value:function(){0===this._pendingRoots&&0===this._rootsQueue.length&&this._processingStarted&&!this._processDone&&(this._processDone=!0,this._resolveDone&&(this._resolveDone(this._allShadowRoots),this._resolveDone=null))}}])}(IN);function LU(e){return LU="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},LU(e)}function FU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NU(r.key),r)}}function NU(e){var t=function(e){if("object"!=LU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LU(t)?t:t+""}var UU=function(e,t){return t&&FU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=NU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_documentObservers",new WeakMap)}),[{key:"observe",value:function(e,t){var n=e.document;if(!this._documentObservers.has(n)){var r=new e.MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){t({type:"added",node:e})})),e.removedNodes.forEach((function(e){t({type:"removed",node:e})}))}))}));r.observe(n,{childList:!0,subtree:!0}),this._documentObservers.set(n,{instance:r}),pe.info("Observing document:",n.URL)}}},{key:"observeElement",value:function(e,t){if(!this._documentObservers.has(e)){var n=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){t({type:"added",node:e})})),e.removedNodes.forEach((function(e){t({type:"removed",node:e})}))}))}));n.observe(e,{childList:!0,subtree:!0}),this._documentObservers.set(e,{instance:n}),pe.info("Observing document:",e)}}},{key:"unobserve",value:function(e){var t=this._documentObservers.get(e);if(t){try{t.instance.disconnect()}catch(e){}this._documentObservers.delete(e),pe.info("Stopped observing:",e)}}}]);function GU(e){return GU="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},GU(e)}function WU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QU(r.key),r)}}function QU(e){var t=function(e){if("object"!=GU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=GU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==GU(t)?t:t+""}var HU=function(e,t){return t&&WU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=QU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_runningCollectorsPerDoc",new Map)}),[{key:"addCollector",value:function(e,t,n){var r=this._runningCollectorsPerDoc.get(e)||new Map;r.set(t,n),this._runningCollectorsPerDoc.set(e,r)}}
2,{key:"forEachDoc",value:function(e){this._runningCollectorsPerDoc.forEach((function(t,n){e(n)}))}},{key:"forEachSavedCollector",value:function(e){this._runningCollectorsPerDoc.forEach((function(t,n){t.forEach((function(t,r){e(n,r,t)}))}))}},{key:"getCollectorByName",value:function(e,t){var n=this._runningCollectorsPerDoc.get(e);if(n&&n.has(t))return n.get(t);throw new Error("Doc: ".concat(e.location,', didnt have collector named: "').concat(t,'"'))}},{key:"removeCollector",value:function(e){var t=this;this._runningCollectorsPerDoc.forEach((function(n,r){n.has(e)&&(n.delete(e),0===n.size&&t._runningCollectorsPerDoc.delete(r))}))}},{key:"collectorExistsInAnyDoc",value:function(e){var t=!1;return this._runningCollectorsPerDoc.forEach((function(n,r){n.has(e)&&(t=!0)})),t}},{key:"removeCollectorForDoc",value:function(e,t){var n=this._runningCollectorsPerDoc.get(e);n&&n.has(t)&&(n.delete(t),0===n.size?this._runningCollectorsPerDoc.delete(e):this._runningCollectorsPerDoc.set(e,n))}},{key:"forEachCollectorNameInDoc",value:function(e,t){var n=this._runningCollectorsPerDoc.get(e);n&&n.forEach((function(e,n){t(n)}))}},{key:"removeDoc",value:function(e){this._runningCollectorsPerDoc.delete(e)}}]);function VU(e){return VU="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},VU(e)}function zU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zU(Object(n),!0).forEach((function(t){JU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YU(r.key),r)}}function JU(e,t,n){return(t=YU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YU(e){var t=function(e){if("object"!=VU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==VU(t)?t:t+""}var XU=function(e,t){return t&&qU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),JU(this,"_elementsDetector",new CU),JU(this,"_shadowDOMsDetector",new IU),JU(this,"_dataCollectorsFactory",new wU),JU(this,"_mutationEmitter",new UU),JU(this,"_collectorsState",new HU),JU(this,"_onMutation",(function(e){var t=e&&e.node;t&&("added"===e.type?(o._isShadowRoot(t)&&o._scanElementsIn(t.shadowRoot,o._sendElementToServer),o._isIframe(t)&&(t.contentDocument?o._observeMutationsIn(t.contentDocument.body):t.addEventListener("load",(function(){o._observeMutationsIn(t.contentDocument.body)}),{once:!0}),o._runCollectorsAndScanElementsInIframe(t))):"removed"===e.type&&o._isIframe(t)&&o._cleanupIframe(t))})),JU(this,"_observeAndScanShadowDOM",(function(e){o._observeMutationsIn(e),o._scanElementsIn(e,o._sendElementToServer)})),JU(this,"_sendElementToServer",(function(e){o._elementsCollector.getElement(e)})),this._configurationRepository=t,this._iframesDetector=new HN(t),this._elementsCollector=n,this._msgBus=r}),[{key:"runDefaultCollectors",value:function(){var e=this;this._onWindowLoaded((function(){e._observeWindowMutations(),e._runCollectorsOn(document,EN),e._scanElementsIn(document,e._sendElementToServer),e._scanShadowRootsIn(document,e._observeAndScanShadowDOM),e._scanIframesIn(document,ON)}))}},{key:"updateRunByConfig",value:function(e){var t=KU(KU(KU({},EN),PN),CN);this._updateFeatures(t,e)}},{key:"runPerContextFeatures",value:function(e){this._configurationRepository.isConfigurationUpdatedFromServer()?(pe.info("running per context feature"),this._runCollectorsOn(document,PN),"cd_auto"!==e.name?this._scanIframesIn(document,KU(KU({},EN),ON)):pe.info("Skipping iframe scanning for per-context features: context name is cd_auto (auto context c
2ategory mode or initial context).")):pe.info("We didn't receive configurations from the server yet. Skipping per context features start until configuration arrives.")}},{key:"runPerSessionFeatures",value:function(){pe.info("Running per session features"),this._configurationRepository.isConfigurationUpdatedFromServer()?this._runCollectorsOn(document,TN):pe.info("We didn't receive configurations from the server yet. Skipping per session features start until configuration arrives.")}},{key:"stopAllFeatures",value:function(){pe.info("Stopping all features");var e=KU(KU(KU({},EN),PN),TN);this._stopCollectors(e)}},{key:"_runCollectorsOn",value:function(e,t){var n=this;Object.keys(t).forEach((function(t){n._runCollector(e,t)}))}},{key:"_runFeaturesWithConfig",value:function(e,t,n){var r=this;Object.keys(t).forEach((function(t){var o=r._dataCollectorsFactory.configKey(t);n.get(o)&&r._runCollector(e,t)}))}},{key:"_runCollector",value:function(e,t){var n=this._dataCollectorsFactory.create(t);this._collectorsState.addCollector(e,t,n),0===n.getEvents().length&&n.handleEvent(),n.getEvents().forEach((function(t){e.addEventListener(t,n.handleEvent)})),pe.info("Running Collector: ",t," On: ",e.URL)}},{key:"_stopCollector",value:function(e,t){try{var n=this._collectorsState.getCollectorByName(e,t);this._collectorsState.removeCollectorForDoc(e,t),n.getEvents().forEach((function(t){e.removeEventListener(t,n.handleEvent)}))}catch(e){}}},{key:"_stopCollectors",value:function(e){var t=this;Object.keys(e).forEach((function(e){t._collectorsState.forEachDoc((function(n){t._stopCollector(n,e)}))}))}},{key:"_updateFeatures",value:function(e,t){var n=this;Object.keys(e).forEach((function(e){var r=n._collectorShouldRun(e,t),o=n._collectorsState.collectorExistsInAnyDoc(e);o&&!r?n._collectorsState.forEachDoc((function(t){n._stopCollector(t,e)})):!o&&r?n._collectorsState.forEachDoc((function(t){n._runCollector(t,e)})):o&&n._collectorsState.forEachDoc((function(t){n._updateCollector(t,e)}))}))}},{key:"_collectorShouldRun",value:function(e,t){var n=this._dataCollectorsFactory.configKey(e),r=t.get(n),o=!0;return void 0===r?o=!0:"boolean"==typeof r&&(o=r),o}},{key:"_updateCollector",value:function(e,t){try{this._collectorsState.getCollectorByName(e,t).updateConfig()}catch(e){}}},{key:"_scanIframesIn",value:function(e,t){var n=this;this._iframesDetector.detect(e,(function(e){n._observeMutationsIn(e.body),n._runCollectorsOn(e,t),n._scanElementsIn(e,n._sendElementToServer)}))}},{key:"_isIframe",value:function(e){return e.nodeType===Node.ELEMENT_NODE&&"IFRAME"===e.nodeName}},{key:"_runCollectorsAndScanElementsInIframe",value:function(e){var t=this;e.addEventListener("load",(function(){var n,r=e.contentDocument||(null===(n=e.contentWindow)||void 0===n?void 0:n.document);t._iframesDetector.addIframeToCache(r),t._runCollectorsOn(r,ON),t._scanElementsIn(r,t._sendElementToServer)}),{once:!0})}},{key:"_isShadowRoot",value:function(e){var t=e.shadowRoot;return t&&"open"===t.mode}},{key:"_observeMutationsIn",value:function(e){e&&this._mutationEmitter.observeElement(e,this._onMutation)}},{key:"_observeWindowMutations",value:function(){this._configurationRepository.get(P.isMutationObserver)&&this._mutationEmitter.observe(window,this._onMutation)}},{key:"_scanElementsIn",value:function(e,t){this._elementsDetector.detect(e,t)}},{key:"_scanShadowRootsIn",value:function(e,t){this._shadowDOMsDetector.detect(e,t)}},{key:"_onWindowLoaded",value:function(e){"complete"!==document.readyState?window.addEventListener("load",(function(){e()}),{once:!0}):e()}},{key:"_cleanupIframe",value:function(e){try{var t,n=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document);if(!n)return;this._cleanupDocument(n)}catch(e){}}},{key:"_cleanupDocument",value:function(e){var t=this,n=[];this._collectorsState.forEachCollectorNameInDoc(e,(function(e){return n.push(e)})),n.forEach((function(n){return t._stopCollector(e,n)})),this._collectorsState.removeDoc(e);try{e&&e.body&&this._mutationEmitter.unobserve(e.body)}catch(e){}try{this._iframesDetector.removeIframeFromCache(e)}catch(e){}pe.info("Cleaned up document:",null==e?void 0:e.URL)}}]);function ZU(e){return ZU="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},ZU(e)}function $U(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return eG(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(eG(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eG(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,eG(f,"constructor",c),eG(c,"constructor",s),s.displayName="GeneratorFunction",eG(c,o,"GeneratorFunction"),eG(f),eG(f,o,"Generator"),eG(f,r,(function(){return this})),eG(f,"toString",(function(){return"[object Generator]"})),($U=function(){return{w:i,m:p}})()}function eG(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}eG=function(e,t,n,r){function i(t,n){eG(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},eG(e,t,n,r)}function tG(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function nG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rG(r.key),r)}}function rG(e){var t=function(e){if("object"!=ZU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZU(t)?t:t+""}var oG=function(){return function(e,t){return t&&nG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"detect",value:(e=$U().m((function e(t,n){return $U().w((function(e){for(;;)switch(e.n){case 0:throw new Error('Method "checkFontList" must be implemented.');case 1:return e.a(2)}}),e)})),t=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tG(i,r,o,a,u,"next",e)}function u(e){tG(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e,n){return t.apply(this,arguments)})},{key:"release",value:function(){throw new Error('Method "release" must be implemented.')}},{key:"isSupported",value:function(){throw new Error('Method "isSupported" must be implemented.')}}]);var e,t}();function iG(e){return iG="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},iG(e)}function aG(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return uG(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(uG(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,uG(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,uG(f,"constructor",c),uG(c,"constructor",s),s.displayName="GeneratorFunction",uG(c,o,"GeneratorFunction"),uG(f),uG(f,o,"Generator"),uG(f,r,(function(){return this})),uG(f,"toString",(function(){return"[object Generator]"})),(aG=function(){return{w:i,m:p}})()}function uG(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}uG=function(e,t,n,r){function i(t,n){uG(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},uG(e,t,n,r)}function sG(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function cG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lG(r.key),r)}}function lG(e){var t=function(e){if("object"!=iG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=iG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iG(t)?t:t+""}function fG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fG=function(){return!!e})()}function pG(e){return pG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pG(e)}function dG(e,t){return dG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dG(e,t)}var yG=function(e){function t(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(null===(e=self)||void 0===e?void 0:e.fonts)||null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=pG(t),function(e,t){if(t&&("object"==iG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fG()?Reflect.construct(t,n||[],pG(e).constructor):t.apply(e,n))}(this,t),!r)throw new Error("fonts is required for NativeFontDetector.");return n.fonts=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dG(e,t)}(t,e),function(e,t){return t&&cG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:(n=aG().m((function e(t){var n,r;return aG().w((function(e){for(;;)switch(e.p=e.n){case 0:return n=null,e.p=1,n=new FontFace(t,'local("'.concat(t,'")')),this.fonts.add(n),e.n=2,n.load();case 2:return r="loaded"===n.status,e.a(2,r);case 3:return e.p=3,e.v,e.a(2,!1);case 4:return e.p=4,n&&this.fonts.delete(n),e.f(4);case 5:return e.a(2)}}),e,this,[[1,3,4,5]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){sG(i,r,o,a,u,"next",e)}function u(e){sG(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)})},{key:"isSupported",value:function(){try{return"undefined"!=typeof FontFace&&void 0!==this.fonts&&(new FontFace("test","url(test.woff)"),!0)}catch(e){return!1}}},{key:"release",value:function(){}}]);var n,r}(oG);function hG(e){return hG="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},hG(e)}function mG(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return vG(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function d(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,y=i[2];n>3?(o=y===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,u=0))}if(o||n>1)return a;throw f=!0,r}
2return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,y),u=l,s=y;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(vG(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,vG(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,vG(f,"constructor",c),vG(c,"constructor",s),s.displayName="GeneratorFunction",vG(c,o,"GeneratorFunction"),vG(f),vG(f,o,"Generator"),vG(f,r,(function(){return this})),vG(f,"toString",(function(){return"[object Generator]"})),(mG=function(){return{w:i,m:p}})()}function vG(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}vG=function(e,t,n,r){function i(t,n){vG(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},vG(e,t,n,r)}function bG(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function gG(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){bG(i,r,o,a,u,"next",e)}function u(e){bG(i,r,o,a,u,"throw",e)}a(void 0)}))}}function _G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wG(r.key),r)}}function wG(e){var t=function(e){if("object"!=hG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hG(t)?t:t+""}function SG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SG=function(){return!!e})()}function kG(e){return kG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kG(e)}function EG(e,t){return EG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EG(e,t)}var OG=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=kG(t),function(e,t){if(t&&("object"==hG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,SG()?Reflect.construct(t,n||[],kG(e).constructor):t.apply(e,n))}(this,t))._testText="AaBb123!@# \u05d0\u05d1\u05d2\u05d3 \u05d0\u0628\u062a \u4f60\u597d\u4e16 \u3042\u30a2 \u0905\u0906\u090b\u0418\u0394 \u0e2a\u0e27\u0e31 \u0e2d\u0e32 \u10e0\u10e3\u10ea \u10d9\u0437\u0621\u03bb \u2d4d \ud800\udf04 \u0444\u063a\ud83d\ude00\u2714\uf021\u2665\u2111\u03a3\xc5\xd1",e._fontSize="48px",e._canvas=null,e._context=null,e._fallbackWidth=null,e._initialized=!1,e._hasReleased=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&EG(e,t)}(t,e),function(e,t){return t&&_G(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:(o=gG(mG().m((function e(t){var n;return mG().w((function(e){for(;;)switch(e.n){case 0:if(!this._hasReleased){e.n=1;break}throw new Error("CanvasFontDetector has been released and is no longer usable. Please create a new instance to use the detector.");case 1:if(this._initialized){e.n=2;break}return e.n=2,this._initialize();case 2:return this._context.font="".concat(this._fontSize,' "').concat(t,'", non-existed-fallback'),n=this._context.measureText(this._testText).width,e.a(2,n!==this._fallbackWidth)}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"release",value:(r=gG(mG().m((function e(){return mG().w((function(e){for(;;)switch(e.n){case 0:this._hasReleased=!0,this._canvas=null,this._context=null,this._fallbackWidth=null;case 1:return e.a(2)}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"isSupported",value:function(){try{if("undefined"!=typeof OffscreenCanvas){var e=new OffscreenCanvas(1,1);return Boolean(e.getContext&&e.getContext("2d"))}return!1}catch(e){return!1}}},{key:"_initialize",value:(n=gG(mG().m((function e(){return mG().w((function(e){for(;;)switch(e.n){case 0:if("undefined"!=typeof OffscreenCanvas){e.n=1;break}throw new Error("OffscreenCanvas is not supported in this environment. CanvasFontDetector requires OffscreenCanvas to run in Web Workers.");case 1:this._canvas=new OffscreenCanvas(100,100),this._context=this._canvas.getContext("2d",{alpha:!1,desynchronized:!0}),this._context.textBaseline="alphabetic",this._context.direction="ltr",this._context.
2imageSmoothingEnabled=!1,this._context.font="".concat(this._fontSize,' "non-existed-font", non-existed-fallback'),this._fallbackWidth=this._context.measureText(this._testText).width,this._initialized=!0;case 2:return e.a(2)}}),e,this)}))),function(){return n.apply(this,arguments)})}]);var n,r,o}(oG);function PG(e){return PG="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},PG(e)}function TG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CG(r.key),r)}}function CG(e){var t=function(e){if("object"!=PG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=PG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==PG(t)?t:t+""}var jG=function(e,t){return t&&TG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._logsTag="[FONTS-COLLECTOR]"}),[{key:"getDetectorByType",value:function(e){switch(e.toLowerCase()){case"native":return new yG;case"canvas":return new OG;default:throw new Error("Invalid detector type: '".concat(e,"'. Supported types: 'native', 'canvas'"))}}},{key:"getBestDetector",value:function(e){try{var t=new yG;if(t.isSupported())return pe.info("".concat(this._logsTag," Using native detector")),t}catch(e){pe.error("".concat(this._logsTag," Native detector failed:"),e)}try{var n=new OG;if(n.isSupported())return pe.info("".concat(this._logsTag," Using canvas detector")),n}catch(e){pe.error("".concat(this._logsTag," Canvas detector failed:"),e)}throw new Error("[FontDetectorProvider] No suitable font detection implementation is supported in this environment.")}}]);function MG(e){return MG="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},MG(e)}function xG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xG(Object(n),!0).forEach((function(t){AG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AG(e,t,n){return(t=DG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DG(r.key),r)}}function DG(e){var t=function(e){if("object"!=MG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=MG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==MG(t)?t:t+""}var IG=/^rgba?\(\s*[^,]+\s*,\s*[^,]+\s*,\s*[^,)]+(?:\s*,\s*([^)]+))?\s*\)$/i,LG=/^hsla?\(\s*[^,]+\s*,\s*[^,]+\s*,\s*[^,)]+(?:\s*,\s*([^)]+))?\s*\)$/i,FG=function(e,t){return t&&BG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._browserEnv=t.browserEnv}),[{key:"isPotentialFraudHitbox",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._emptyHitboxResult();try{var r=this._getHitboxThresholds(t);if(!this._isElementTarget(e))return n;var o=e,i=this._browserEnv.getComputedStyle(o);if(!this._isElementHittable(i))return RG(RG({},n),{},{reasons:["not_hittable"],metrics:{pointerEvents:i.pointerEvents}});var a=this._collectHitboxMetrics(o,i),u=this._scoreHitboxSignals(a,r);return{potentialFraudHitbox:u.score>=r.minScore,score:u.score,reasons:u.reasons,metrics:{position:a.position,opacity:a.opacity,backgroundColor:i.backgroundColor,backgroundAlpha:a.bgAlpha,zIndex:a.zRaw,viewportCover:Ke.cutDecimalPointDigits(a.vCover,4),offsetParentCover:Ke.cutDecimalPointDigits(a.pCover,4),width:a.width,height:a.height}}}catch(e){pe.error("HitboxDetectionService.isPotentialFraudHitbox failed. msg: ".concat(e.message),e)}return n}}
2,{key:"_parseBackgroundAlpha",value:function(e){if(null==e||""===String(e).trim())return null;if("transparent"===e)return 0;var t=IG.exec(e);if(t)return null==t[1]?1:this._parseCssAlphaValue(t[1]);var n=LG.exec(e);return n?null==n[1]?1:this._parseCssAlphaValue(n[1]):null}},{key:"_parseCssAlphaValue",value:function(e){var t=String(e).trim(),n=t.endsWith("%"),r=Number.parseFloat(t);return Number.isNaN(r)?1:this._clamp01(n?r/100:r)}},{key:"_getHitboxThresholds",value:function(){var e,t,n,r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacityThreshold:null!==(e=a.opacityThreshold)&&void 0!==e?e:.22,backgroundAlphaThreshold:null!==(t=a.backgroundAlphaThreshold)&&void 0!==t?t:.12,minViewportCover:null!==(n=a.minViewportCover)&&void 0!==n?n:.28,minOffsetParentCover:null!==(r=a.minOffsetParentCover)&&void 0!==r?r:.78,minZIndex:null!==(o=a.minZIndex)&&void 0!==o?o:80,minScore:null!==(i=a.minScore)&&void 0!==i?i:4}}},{key:"_emptyHitboxResult",value:function(){return{potentialFraudHitbox:!1,score:0,reasons:[],metrics:{}}}},{key:"_isElementTarget",value:function(e){return Boolean(e&&e.nodeType===this._browserEnv.ELEMENT_NODE)}},{key:"_isElementHittable",value:function(e){return"none"!==e.display&&"hidden"!==e.visibility&&"none"!==e.pointerEvents}},{key:"_collectHitboxMetrics",value:function(e,t){var n=e.getBoundingClientRect(),r=t.position,o=Number.parseFloat(t.opacity),i=Number.isFinite(o)?this._clamp01(o):null,a=this._parseBackgroundAlpha(t.backgroundColor),u=this._viewportCoverageRatio(n),s=this._offsetParentCoverageRatio(e),c=t.zIndex,l="auto"===c?null:Number.parseInt(c,10);return{position:r,opacity:i,bgAlpha:a,vCover:u,pCover:s,zRaw:c,zIndex:Number.isNaN(l)?null:l,width:Ke.cutDecimalPointDigits(n.width,2),height:Ke.cutDecimalPointDigits(n.height,2)}}},{key:"_scoreHitboxSignals",value:function(e,t){for(var n=[],r=0,o="fixed"===e.position||"sticky"===e.position,i="absolute"===e.position,a=o||i,u=0,s=[{condition:o,points:2,reason:"position_fixed_or_sticky"},{condition:!o&&i,points:1,reason:"position_absolute"},{condition:null!==e.opacity&&e.opacity<t.opacityThreshold,points:3,reason:"low_computed_opacity"},{condition:null!==e.bgAlpha&&e.bgAlpha<t.backgroundAlphaThreshold,points:2,reason:"mostly_transparent_background"},{condition:a&&e.vCover>=t.minViewportCover,points:3,reason:"large_viewport_overlay"},{condition:a&&e.pCover>=t.minOffsetParentCover,points:2,reason:"covers_most_of_offset_parent"},{condition:null!==e.zIndex&&e.zIndex>=t.minZIndex,points:1,reason:"high_z_index"},{condition:o&&null!==e.opacity&&e.opacity<.08&&e.vCover>.5,points:2,reason:"fullscreenish_low_opacity_fixed"}];u<s.length;u++){var c=s[u];c.condition&&(r+=c.points,n.push(c.reason))}return{score:r,reasons:n}}},{key:"_clamp01",value:function(e){return Number.isNaN(e)?0:Math.min(1,Math.max(0,e))}},{key:"_viewportCoverageRatio",value:function(e){var t=this._browserEnv.win,n=t.innerWidth,r=t.innerHeight;return Math.max(0,Math.min(e.right,n)-Math.max(e.left,0))*Math.max(0,Math.min(e.bottom,r)-Math.max(e.top,0))/M
2ath.max(1,n*r)}},{key:"_offsetParentCoverageRatio",value:function(e){var t,n=e.offsetParent,r=null;if(null!==(t=this._browserEnv.win)&&void 0!==t&&t.Element?r=this._browserEnv.win.Element:"undefined"!=typeof Element&&(r=Element),!(n&&r&&n instanceof r))return 0;var o=n.getBoundingClientRect(),i=e.getBoundingClientRect();return Math.max(0,Math.min(i.right,o.right)-Math.max(i.left,o.left))*Math.max(0,Math.min(i.bottom,o.bottom)-Math.max(i.top,o.top))/Math.max(1,o.width*o.height)}}]);function NG(e){return NG="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},NG(e)}function UG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GG(r.key),r)}}function GG(e){var t=function(e){if("object"!=NG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NG(t)?t:t+""}var WG=function(e,t){return t&&UG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._debounceMs=t,this._lastUrl=null,this._onNavigationCB=null,this._debounceTimer=null,this._cleanups=[],this._tracking=!1}),[{key:"setCallback",value:function(e){this._onNavigationCB=e}},{key:"startTracking",value:function(){var e=this;if(!this._tracking){this._tracking=!0,this._lastUrl=globalThis.location.href;var t=globalThis.history,n=t.pushState.bind(t),r=t.replaceState.bind(t);t.pushState=function(){n.apply(void 0,arguments),e._onPossibleNavigation("pushState")},t.replaceState=function(){r.apply(void 0,arguments),e._onPossibleNavigation("replaceState")},this._cleanups.push((function(){t.pushState=n,t.replaceState=r}));var o=function(){return e._onPossibleNavigation("popstate")};globalThis.addEventListener("popstate",o),this._cleanups.push((function(){return globalThis.removeEventListener("popstate",o)}));var i=function(){return e._onPossibleNavigation("hashchange")};globalThis.addEventListener("hashchange",i),this._cleanups.push((function(){return globalThis.removeEventListener("hashchange",i)})),pe.info("NavigationObserver: started tracking SPA navigation")}}},{key:"stopTracking",value:function(){this._tracking&&(clearTimeout(this._debounceTimer),this._cleanups.forEach((function(e){return e()})),this._cleanups=[],this._tracking=!1,pe.info("NavigationObserver: stopped tracking"))}},{key:"_onPossibleNavigation",value:function(e){var t=this;clearTimeout(this._debounceTimer),this._debounceTimer=setTimeout((function(){t._evaluateNavigation(e)}),this._debounceMs)}},{key:"_evaluateNavigation",value:function(e){var t=globalThis.location.href;if(t!==this._lastUrl){this._lastUrl=t;var n=this._deriveContextName(t);n&&this._onNavigationCB&&(pe.info("NavigationObserver: navigation detected (".concat(e,"), contextName=").concat(n)),this._onNavigationCB({contextName:n,source:e}))}}},{key:"_deriveContextName",value:function(e){try{var t=new URL(e);return t.hash&&"#"!==t.hash?t.hash.replace("#",""):t.pathname||"/"}catch(t){var n=t instanceof Error?t.message:String(t);return pe.warn("NavigationObserver: failed to parse URL: ".concat(e,". Error: ").concat(n)),null}}}]);function QG(e){return QG="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},QG(e)}function HG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VG(r.key),r)}}function VG(e){var t=function(e){if("object"!=QG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QG(t)?t:t+""}var zG=function(e,t){return t&&HG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._serverWorker=null,this._serverWorkerCommunicator=null,this._configurationService=null,this._featureBuilder=null,this._featureService=null,this._dataQ=null,this._frameHandler=null,this._eventHandlers=[],this._contextMgr=null,this._runWorker=function(e){return new ct(e.getUseUrlWorker(),e.getWorkerUrl()).create()}}),[{key:"start",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._loadSystem(e,t,n)}},{key:"stop",value:function(){this._serverWorker&&this._serverWorker.close(),this.heartBeatService&&this.heartBeatService.stop(),ae.cleanup()}},{key:"registerPostLoadEvents",value:function(){this._slaveListener.onResetSessionTrigger.subscribe(this._sessionService.resetSession.bind(this._sessionService))}},{key:"flushAllMessages",value:function(){this._dataQ.flushAllMessages()}},{key:"handleCoordinatesMaskingConfigurationUpdate",value:function(e){this._coordinatesMaskingConfigurationUpdater.updateConfig(e)}},{key:"getServerWorkerCommunicator",value:function(){return this._serverWorkerCommunicator}},{key:"getFeatureBuilder",value:function(){return this._featureBuilder}},{key:"getFeatureService",value:function(){return this._featureService}},{key:"getConfigurationService",value:function(){return this._configurationService}},{key:"getConfigurationRepository",value:function(){return this._configurationRepository}},{key:"getSessionService",value:function(){return this._sessionService}},{key:"getContextMgr",value:function(){return this._contextMgr}},{key:"getMuidService",value:function(){return this._muidService}},{key:"getEncryptedMuidService",value:function(){return this._muidEncryptedService}},{key:"getApiBridge",value:function(){return this._customerApiBridge}},{key:"getPerfMonitor",value:function(){return this._perfMonitor}},{key:"getServerStateMgr",value:function(){return this._serverStateMgr}},{key:"getMessageBus",value:function(){return this._msgBus}},{key:"getAgentIdService",value:function(){return this._agentIdService}},{key:"getExternalWasmModuleLoader",value:function(){return this._wasmModuleLoader}},{key:"getMetrics",value:function(){return ae}},{key:"_loadSystem",value:function(e,t,n){var r,o,i;this._runServerWorker(t),this._serverWorkerCommunicator=new kt,this._serverWorkerCommunicator.setMessagingPort(this._serverWorker.port);var a=new _c($o,this._serverWorkerCommunicator,null,"logPerfQPassWorkerInterval","sendLogCommand");this._perfMonitor=new xt(a),this._configurationRepository=new Dn,new nc(this._configurationRepository,t).loadStartUpConfigurations();var u=null===(r=this._configurationRepository)||void 0===r?void 0:r.get(P.enableWupMessagesHashing);this._shouldEnableWorkerWupMessagesHashing(u,this._serverWorkerCommunicator);var s=new Pc(Ke,this._configurationRepository,t),c=new Dt(self.MutationObserver,Ke,$o,"contextConfiguration",null,!0,400);this._contextCategoryService=new Jt(this._configurationRepository);var l=new WG;this._contextMgr=new $t(Ke,c,this._serverWorkerCommunicator,s,this._contextCategoryService,l);var f=new dc(a,this._contextMgr.url),p=new de(f);pe.setLogger(p);var d=null===(o=this._configurationRepository)||void 0===o?void 0:o.get(P.externalWASMModules);this._wasmModuleLoader=new Nt(d);var y=null===(i=this._configurationRepository)||void 0===i?void 0:i.get(P.collectionMode);this._registerFeatures(y),this._currScriptName=document.currentScript?document.currentScript.src:"",this._globalexceptionHandler=new rn(Ke,this._currScriptName),this._msgBus=new cn,this._dataQ=new Tt($o,this._serverWorkerCommunicator,this._contextMgr,"dataQPassWorkerInterval","sendDataCommand"),this._devDebugDataQueue=new NF(this._configurationRepository,this._dataQ),this._agentIdCache=new Kc(s),this._agentIdService=new Xc(this._agentIdCache,this._serverWorkerCommunicator),this._cidCache=new dn(t.getWupServerURL()),this._serverStateMgr=new vn(this._serverWorkerCommunicator,Ke,this._agentIdService),this._sessionInfoService=new ws,this._sensorGateKeeper=new Os(this._sessionInfoService,this._configurationRepository),this._configurationService=new Mr(Ke,this._configurationRepository,this._msgBus,this._cidCache,this._serverWorkerCommunicator),this._sensorDataQ=new wo(this._configurationRepository,this._dataQ,this._msgBus,Ke,this._sensorGateKeeper),ae.setWorkerCommunicator(this._serverWorkerCommunicator),ae.configure(this._configurationRepository),this._maskingService=new Qr(this._configurationRepository);var h=t.getElementCategories(),m=t.getElementAttributes(),v=t.getElementSelectors();this._categoryService=new AF(h,m,v,this._configurationRepository),this._elementsUtils=new No(this._configurationRepository,Ke,this._dataQ,this._contextMgr,this._maskingService,this._categoryService,!1,t.isRandomElementHashEnabled()),this._elementsUtilsV2=new No(this._configurationRepository,Ke,this._devDebugDataQueue,this._contextMgr,this._maskingService,this._categoryService,!0,t.isRandomElementHashEnabled());var b=new Ui,g=new la(this._configurationRepository,$o,Ke);this._frameHandler=g.create(),this._sameChar=new io,oN.insert(SL,this._configurationRepository,Ke,this._elementsUtilsV2,this._dataQ,this._devDebugDataQueue,t,this._sessionService,this._muidService,this._muidEncryptedService,this._perfMonitor,this._sensorDataQ,this._msgBus,this._cidCache,this._sameChar,this._maskingService,this._categoryService,this._wasmModuleLoader,this._contextMgr,this._fontTimingService),this._featureServiceV2=new XU(this._configurationRepository,this._elementsUtilsV2,this._msgBus),this._featureService=new ya(SL,this._frameHandler,this._configurationRepository,$o,Ke,b);var _=new Zs(Ke,this._msgBus,this._configurationRepository);
2this._stateService=new bu(this._msgBus),this._pauseResumeMgr=new ba(this._featureService,this._configurationRepository,this._dataQ,this._stateService,this._serverWorkerCommunicator),this._customerApiBridge=new ka(this._pauseResumeMgr,this._msgBus,e,Ke,t),this._configurationRepository.get(P.agentType)!==V.SECONDARY&&(this._muidService=new Ta(Ke,this._dataQ,s,this._configurationRepository),this._muidEncryptedService=new EF({domUtils:$o,utils:Ke,storage:s,configurationRepository:this._configurationRepository})),this._psidCache=new xa;var w=new Da(this._psidCache,this._serverWorkerCommunicator),S=new Dt(self.MutationObserver,Ke,$o,"resetSessionConfig"),k=new Na(Ke,s,this._configurationRepository);this._csidCache=new Qa,n&&this._csidCache.set(n);var E=new Ka(this._customerApiBridge,this._csidCache,this._serverWorkerCommunicator),O=new Bc(Ke,s);this._brandService=new Mc(this._serverWorkerCommunicator,O),this._coordinatesMaskingConfigurationUpdater=new Wc(this._configurationRepository);var T=new DL(t.getWupServerURL()),C=new ML(t.getWupServerURL()),j=t.isMinifiedWupUriEnabled();this._sessionService=new Za(this._msgBus,this._configurationService,this._configurationRepository,Ke,$o,this._serverWorkerCommunicator,this._contextMgr,this._muidService,this._serverStateMgr,S,k,T,this._cidCache,C,j,E,this._csidCache,this._psidCache,this._brandService,this._agentIdService,t.getRecoveryServerURL()),this._metadataService=new nu(this._configurationRepository,this._dataQ),this._slaveListener=new au(this._dataQ,this._configurationRepository,Ke,a,this._contextMgr,t),this._slaveListener.listen(),this._fontTimingService=new px,this._fontDetectorProvider=new jG,this._agenticDomInjectionDetector=new Kd(this._configurationRepository),this._cursorCollectorBrowserEnvironment=tm.createDefaultCursorCollectorBrowserEnvironment(),this._cursorDetectionService=new Lh({browserEnv:this._cursorCollectorBrowserEnvironment}),this._hitboxDetectionService=new FG({browserEnv:this._cursorCollectorBrowserEnvironment}),this._featureBuilder=new lu(SL,this._configurationRepository,Ke,this._elementsUtils,self.MutationObserver,this._dataQ,this._devDebugDataQueue,t,this._sessionService,this._muidService,this._muidEncryptedService,this._perfMonitor,this._sensorDataQ,this._msgBus,this._cidCache,this._sameChar,this._maskingService,this._categoryService,this._wasmModuleLoader,this._contextMgr,this._fontTimingService,this._fontDetectorProvider,this._agenticDomInjectionDetector,this._cursorCollectorBrowserEnvironment,this._cursorDetectionService,this._hitboxDetectionService),this._contextApiHandler=new yu(this._contextMgr,this._dataQ),this._contextMgr.onContextChange.subscribe(this._featureService.runPerContextFeatures.bind(this._featureService));var M=new ku;this.heartBeatService=new ds(this._serverWorkerCommunicator,new vs,this._configurationRepository.get(P.heartBeatMessageInterval)),this.heartBeatService.start(),this._eventHandlers.push(new Fc(this._msgBus,this._muidService,M,this._serverWorkerCommunicator)),this._eventHandlers.push(new Tu(this._msgBus,this._contextMgr)),this._eventHandlers.push(new xu(this._msgBus,this._sessionService)),this._eventHandlers.push(new Du(this._msgBus,this._metadataService)),this._eventHandlers.push(new Nu(this._msgBus,this._pauseResumeMgr,this._slaveListener)),this._eventHandlers.push(new Qu(this._msgBus,E)),this._eventHandlers.push(new Ku(this._msgBus,w)),this._eventHandlers.push(new cs(this._msgBus,this._brandService)),this._eventHandlers.push(new is(this._msgBus,M)),this._eventHandlers.push(new ts(this._msgBus,this._featureService,this._featureServiceV2,this._dataQ,this._pauseResumeMgr,this._metadataService,p,this._contextMgr,this._sessionService,this._sensorDataQ,this._slaveListener,this._stateService,this._perfMonitor,this.heartBeatService,this._sensorGateKeeper,k,this._coordinatesMaskingConfigurationUpdater)),this._eventHandlers.push(new Xu(this._msgBus,this._featureService,this._customerApiBridge,this._contextMgr,M,this._sessionInfoService)),this._configurationRepository.get(P.enableCustomElementsProcessing)&&_.start(new vi(window.self,$o)),t.getLogServerURL()&&this._configurationService.updateLogUrlToWorker(this._sessionService.sessionId,this._csidCache.get(),this._serverWorkerCommunicator),t.isFlutterApp()&&(window.bcClient?window.bcClient.flutterBridge=new PL(this._msgBus):pe.error("Cannot initiate FlutterSdkBridge: bcClient object not found.")),ae.initializeContext(this._cidCache.get(),Ke.scriptVersion),this._stateService.updateState(qe.starting)}},{key:"_runServerWorker",value:function(e){this._serverWorker=this._runWorker(e)}},{key:"_registerFeatures",value:function(e){if(e!==z.LEAN)return pe.info("Build features per collection mode: FULL"),void SL.register();pe.info("Build features per collection mode: LEAN"),SL.registerLeanFeatures()}},{key:"_shouldEnableWorkerWupMessagesHashing",value:function(e,t){e&&t.sendAsync("enableWupMessagesHashingCommand",{enableWupMessagesHashing:e})}}]),KG="getConfigurations";function qG(e){return qG="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},qG(e)}function JG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YG(r.key),r)}}function YG(e){var t=function(e){if("object"!=qG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qG(t)?t:t+""}var XG=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){return n&&JG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"extract",value:function(e){if(!e)throw new Error("Invalid wupServerURL. Parameter is empty");var t={};if(t.cid=this.getCID(e),t.serverURL=this.getServerURL(e),!t.serverURL)throw new Error("Invalid field. Failed extracting the address parameter: ".concat(e));if(!t.cid)throw new Error("Invalid field. Failed extracting the cid parameter: ".concat(e));return t}},{key:"getCID",value:function(t){return e.extractCid(t)||null}},{key:"extractCid",value:function(e){var t=e.indexOf("cid=");if(-1===t)return null;t+=4;var n=e.indexOf("&",t);return n=-1===n?void 0:n,e.substring(t,n)}},{key:"getServerURL",value:function(e){var t=e.indexOf("/client/v",e);return(t=-1===t?null:t)?e.substring(0,t):null}}])}();function ZG(e){return ZG="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},ZG(e)}function $G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eW(r.key),r)}}function eW(e){var t=function(e){if("object"!=ZG(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZG(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZG(t)?t:t+""}var tW=function(e,t,n){return n&&$G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),0,[{key:"build",value:function(e,t){var n="/client/v3.1/web/wup";if(!e)throw new Error("Invalid server URL. Parameter is empty");return Ke.hasProtocol(e)?e.toString().concat(n,"?cid=",t):"https".concat("://",e,n,"?cid=",t)}},{key:"buildCustomServerUrl",value:function(e){if(!e)throw new Error("Invalid server URL. Parameter is empty");return Ke.hasProtocol(e)?e:"https".concat("://",e)}}]);function nW(e){return nW="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},nW(e)}function rW(e){var t="function"==typeof Map?new Map:void 0;return rW=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(oW())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&iW(o,n.prototype),o}(e,arguments,aW(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),iW(n,e)},rW(e)}function oW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oW=function(){return!!e})()}function iW(e,t){return iW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iW(e,t)}function aW(e){return aW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aW(e)}var uW=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=aW(t),function(e,t){if(t&&("object"==nW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oW()?Reflect.construct(t,n||[],aW(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iW(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(rW(Error));function sW(e){return sW="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},sW(e)}function cW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lW(r.key),r)}}function lW(e){var t=function(e){if("object"!=sW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sW(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sW(t)?t:t+""}var fW=function(e,t){return t&&cW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cdApi=n,this._utils=t}),[{key:"cdApi",value:function(){return this._cdApi||window.cdApi}},{key:"getCustomerSessionID",value:function(e){this._getFromApiOrEmpty("getCustomerSessionID",(function(t){e(t)}))}},{key:"getLogServerAddress",value:function(e){this._getFromApiOrEmpty("getLogServerAddress",(function(t){e(t)}))}},{key:"getServerAddress",value:function(e){this._getFromApiOrEmpty("getCustomerConfigLocation",(function(t){e(t)}))}},{key:"getConfigurations",value:function(e){var t=this,n=null;this.isApiAvailable(KG)?this._getFromApiOrEmpty(KG,(function(t){var r=null;if(t){if(t.isWupServerURLProxy)n=t.wupServerURL;else if(t[D])n=tW.buildCustomServerUrl(t[D]);else{if(!t[F]||!t[L])throw new Error("Invalid serverURL or cid. Parameter is empty");n=tW.build(t[L],t[F])}r=(new Oe).mapStartupConfigurations(n,t)}e(r)})):this.getLogServerAddress((function(r){t.getServerAddress((function(t){var o=XG.extract(t);n=tW.build(o.serverURL,o.cid),e(new we(n,r,null,!1,"",null))}))}))}},{key:"createClientInterface",value:function(e,t){if(!this.isCDAPIAvailable())throw pe.error("Failed setting client facade. cdApi is unavailable."),new uW("Failed setting client facade. cdApi is unavailable.");var n={setCoordinatesMasking:function(t){e.setCoordinatesMasking(t)}};t&&t.enableRestart&&(n.restart=function(){e.restart()}),t&&t.enableFlush&&(n.flush=function(){e.flush()}),t&&t.enablePause&&(n.pause=function(){e.pause()}),t&&t.enableResume&&(n.resume=function(){e.resume()}),t&&t.enableStop&&(n.stop=function(){e.stop()}),t&&t.enableCustomElements&&(n.submitCustomElement=function(t){e.submitCustomElement(t)}),t&&t.enableChangeContext&&(n.changeContext=function(t){e.changeContext(t)}
2),t&&t.enableSetCustomerBrand&&(n.setCustomerBrand=function(t){e.setCustomerBrand(t)}),t&&t.enableUpdateCustomerSessionID&&(n.updateCustomerSessionID=function(t){e.updateCustomerSessionID(t)}),t&&t.enableStartNewSession&&(n.startNewSession=function(t){e.startNewSession(t)}),this.cdApi().client=n}},{key:"isCDAPIAvailable",value:function(){return!!this.cdApi()}},{key:"isApiAvailable",value:function(e){return!!this.cdApi()&&!!this.cdApi()[e]}},{key:"_getFromApiOrEmpty",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!this.cdApi())return n>=20?void pe.error("Failed getting cdApi after all ".concat(20," retries.")):(pe.warnRetry("cdApi not found on attempt ".concat(n+1,"/").concat(20,". Retrying..."),n+1,20),n++,void setTimeout(this._getFromApiOrEmpty.bind(this,e,t,n),100));if(!this.cdApi()[e])return pe.warn("User did not implement cdApi method: ".concat(e)),void t("");try{this.cdApi()[e](t)}catch(t){throw pe.error("An error has occurred while calling cdApi ".concat(e," function. Exception was thrown from client implementation."),t),t}}}]);function pW(e){return pW="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},pW(e)}function dW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yW(r.key),r)}}function yW(e){var t=function(e){if("object"!=pW(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pW(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pW(t)?t:t+""}var hW=function(e,t){return t&&dW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"autoStart",value:function(e){var t=this,n=new fW;n.getConfigurations((function(r){r?r.getWupServerURL()?r.getUseUrlWorker()&&""===r.getWorkerUrl()?pe.error("Failed starting the JS SDK. Received invalid WorkerUrl configuration"):t.start(n,r,e):pe.error("Missing server URL. Unable to start the library."):pe.error("Failed starting the JS SDK. Received invalid start configurations")}))}},{key:"manualStart",value:function(e,t,n,r,o){var i=new fW(void 0,r);this.start(i,e,n,o)}},{key:"start",value:function(e,t,n,r){var o;this._cdApiFacade=e,this._startupConfigurations=t,this._configurationLoadedCallback=n,this.systemBootstrapper=new zG,e.createClientInterface(this,t.getClientSettings()),this.systemBootstrapper.start(e,t,r),pe.info("Got server address: ".concat(t.getWupServerURL()));var i=this.systemBootstrapper.getPerfMonitor();i.startMonitor("t.timeTillServerConfig"),i.startMonitor("t.timeTillDataCollect"),this.configurationService=this.systemBootstrapper.getConfigurationService(),this.sessionService=this.systemBootstrapper.getSessionService(),this.configurationService.setConfigurationLoadedCallback(n),this.systemBootstrapper.getFeatureService().buildFrameRelatedLists(),this.systemBootstrapper.getFeatureBuilder().buildFeatures(),pe.info("Started default features collection"),this.systemBootstrapper.getFeatureService().runDefault(),this.systemBootstrapper.getApiBridge().enableApi(),this.systemBootstrapper.getContextMgr().initContextHandling(),this.systemBootstrapper.registerPostLoadEvents(),null===(o=this.systemBootstrapper.getMuidService())||void 0===o||o.initMuid(),this.systemBootstrapper.getConfigurationRepository().get(P.enableStartupCustomerSessionId)?this.sessionService.startNewSession(r):this.sessionService.resumeOrStartSession(r)}},{key:"stop",value:function(){this.systemBootstrapper.stop()}},{key:"pause",value:function(){this.systemBootstrapper.getApiBridge()._onApiMessage({data:{type:"cdChangeState",toState:"pause"}})}},{key:"resume",value:function(){this.systemBootstrapper.getApiBridge()._onApiMessage({data:{type:"cdChangeState",toState:"run"}})}},{key:"updateCustomerSessionID",value:function(e){this.systemBootstrapper.getApiBridge()._onApiMessage({data:{type:"cdSetCsid",csid:e}})}},{key:"changeContext",value:function(e){this.systemBootstrapper.getApiBridge()._onApiMessage({data:{type:"ContextChange",context:e}})}},{key:"startNewSession",value:function(e){this.systemBootstrapper.getApiBridge()._onApiMessage({data:{type:"ResetSession",resetReason:"customerApi",csid:e}})}},{key:"setCustomerBrand",value:function(e){this.systemBootstrapper.getApiBridge()._onApiMessage({data:{type:"cdSetCustomerBrand",brand:e}})}},{key:"restart",value:function(){this.stop(),this.start(this._cdApiFacade,this._startupConfigurations,this._configurationLoadedCallback)}},{key:"flush",value:function(){this.systemBootstrapper.flushAllMessages()}},{key:"setCoordinatesMasking",value:function(e){this.systemBootstrapper.handleCoordinatesMaskingConfigurationUpdate(e)}},{key:"submitCustomElement",value:function(e){this.systemBootstrapper.getMessageBus().publish(_r,e)}}]),mW=new w(new hW,new O,new Oe,new Ae);l.getInstance(mW);var vW=l}(),a.default}()},1880:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.createMockSdk=function(){var e=null,t=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,["[biocatch-mock] ".concat(e)].concat(r))};return{__mock:!0,start:function(n,r,o,i,a){t("start",{wupServerUrl:n,customerId:r,customerSessionId:o,configurations:i,wupServerVersion:a}),"undefined"===typeof window||e||(e=setInterval((function(){try{window.postMessage({type:"cdHeartbeat",data:"Ok"},window.location.href)}catch(e){}}),5e3))},setCustomerSessionId:function(e){t("setCustomerSessionId",e)},changeContext:function(e){t("changeContext",e)},setCustomerBrand:function(e){t("setCustomerBrand",e)},flush:function(){t("flush")},pauseCollection:function(){t("pauseCollection")},stop:function(){e&&(clearInterval(e),e=null),t("stop")}}}},1881:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBiocatchContext=function(e){var t=(0,o.useBiocatch)(),n=t.client,i=t.ready;(0,r.useEffect)((function(){i&&n&&n.changeContext(e)}),[n,i,e])};var r=n(0),o=n(1528)},1882:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCustomerSessionId=function(e){var t=(0,o.useBiocatch)(),n=t.client,i=t.ready;(0,r.useEffect)((function(){i&&n&&e&&n.setCustomerSessionId(e)}),[n,i,e])};var r=n(0),o=n(1528)},1883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCustomerBrand=function(e){var t=(0,o.useBiocatch)(),n=t.client,i=t.ready;(0,r.useEffect)((function(){i&&n&&e&&n.setCustomerBrand(e)}),[n,i,e])};var r=n(0),o=n(1528)},1884:function(e,t,n){"use strict";var r=n(1885).default,o=n(726).default;Object.defineProperty(t,"__esModule",{value:!0}),t.useHeartbeat=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.staleAfterMs,n=void 0===t?3e4:t,a=e.onError,u=e.onRecover,s=e.allowedOrigins,c=(0,i.useState)({status:"unknown",errors:[],lastSeenAt:null}),l=o(c,2),f=l[0],p=l[1],d=(0,i.useRef)("unknown");return(0,i.useEffect)((function(){if("undefined"!==typeof window){var e=new Set((null===s||void 0===s?void 0:s.length)?s:[window.location.origin]),t=function(t){var n=t.data;if(n&&"object"===typeof n&&"cdHeartbeat"===n.type&&e.has(t.origin)){var r=Date.now();if("Ok"===n.data)"Ok"!==d.current&&(null===u||void 0===u||u()),d.current="Ok",p({status:"Ok",errors:[],lastSeenAt:r});else if(Array.isArray(n.data)){var o=n.data.map((function(e){return String(e)}));d.current="error",p({status:"error",errors:o,lastSeenAt:r}),null===a||void 0===a||a(o)}}};window.addEventListener("message",t);var o=window.setInterval((function(){p((function(e){return e.lastSeenAt&&Date.now()-e.lastSeenAt>n?("unknown"!==d.current&&(d.current="unknown"),r(r({},e),{},{status:"unknown"})):e}))}),Math.min(n,5e3));return function(){window.removeEventListener("message",t),window.clearInterval(o)}}}),[n,a,u,s]),f};var i=n(0)},1885:function(e,t,n){var r=n(1886);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},1886:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1887:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BiocatchFrameBridge=function(e){var t=e.targetOrigin,n=e.frameScriptUrl,i=e.initialContext,a=e.initialCsid,u=e.initialBrand,s=e.onFrameReady,c=(0,r.useRef)(!1);return(0,r.useEffect)((function(){if(n&&"undefined"!==typeof document)if(document.querySelector('script[data-biocatch-frame="'.concat(n,'"]')))null===s||void 0===s||s();else{var e=document.createElement("script");e.src=n,e.async=!0,e.dataset.biocatchFrame=n,e.onload=function(){return null===s||void 0===s?void 0:s()},e.onerror=function(){console.warn("[@dfh-digital-insight/biocatch-react-sdk] Failed to load BioCatch frame JS:",n)},document.head.appendChild(e)}}),[n,s]),(0,r.useEffect)((function(){if(!c.current){c.current=!0;try{i&&(0,o.postBiocatchFrameMessage)({type:"ContextChange",context:i},t),a&&(0,o.postBiocatchFrameMessage)({type:"cdSetCsid",csid:a},t),u&&(0,o.postBiocatchFrameMessage)({type:"cdSetCustomerBrand",brand:u},t)}catch(e){console.warn("[@dfh-digital-insight/biocatch-react-sdk] frame bridge broadcast failed:",e)}}}),[t,i,a,u]),null},t.useFrameBridgeApi=function(e){return{changeContext:function(t){(0,o.postBiocatchFrameMessage)({type:"ContextChange",context:t},e)},setCustomerSessionId:function(t){(0,o.postBiocatchFrameMessage)({type:"cdSetCsid",csid:t},e)},setCustomerBrand:function(t){(0,o.postBiocatchFrameMessage)({type:"cdSetCustomerBrand",brand:t},e)},flush:function(){(0,o.postBiocatchFrameMessage)({type:"cdFlush"},e)},pauseCollection:function(){(0,o.postBiocatchFrameMessage)({type:"cdPauseCollection"},e)}}};var r=n(0),o=n(1709)},1888:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.useTopFrameApi=function(){return(0,r.useMemo)((function(){var e=function(){var e=function(){if("undefined"===typeof window)return null;try{var e=window.top;return e?(e.location.href,e):null}catch(t){return null}}();return null===e||void 0===e?void 0:e.cdApi},t=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null===e||void 0===e||e.apply(void 0,n)}catch(o){}};return{get available(){return Boolean(e())},changeContext:function(n){var r;t(null===(r=e())||void 0===r?void 0:r.changeContext,n)},setCustomerSessionId:function(n){var r;t(null===(r=e())||void 0===r?void 0:r.setCustomerSessionId,n)},setCustomerBrand:function(n){var r;t(null===(r=e())||void 0===r?void 0:r.setCustomerBrand,n)},flush:function(){var n;t(null===(n=e())||void 0===n?void 0:n.flush)},pauseCollection:function(){var n;t(null===(n=e())||void 0===n?void 0:n.pauseCollection)}}}),[])};var r=n(0)},2337:function(e,t,n){"use strict";var r=n(12),o=n(4),i=n(0),a=n(19),u=n(718),s=n(1307),c=n(21),l=n(33),f=n(1872),p=n(8),d=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],y=Object(c.a)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,n=e.ownerState;return Object(o.a)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):Object(s.a)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.theme,n=e.ownerState;return Object(o.a)({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),top:"50%",content:'""',transform:"translateY(50%)"}})}),(function(e){var t=e.theme,n=e.ownerState;return Object(o.a)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid ".concat((t.vars||t).palette.divider),transform:"translateX(0%)"}})}),(function(e){var t=e.ownerState;return Object(o.a)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),h=Object(c.a)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var n=e.ownerState;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,n=e.ownerState;return Object(o.a)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),m=i.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiDivider"}),i=n.absolute,s=void 0!==i&&i,c=n.children,m=n.className,v=n.component,b=void 0===v?c?"div":"hr":v,g=n.flexItem,_=void 0!==g&&g,w=n.light,S=void 0!==w&&w,k=n.orientation,E=void 0===k?"horizontal":k,O=n.role,P=void 0===O?"hr"!==b?"separator":void 0:O,T=n.textAlign,C=void 0===T?"center":T,j=n.variant,M=void 0===j?"fullWidth":j,x=Object(r.a)(n,d),R=Object(o.a)({},n,{absolute:s,component:b,flexItem:_,light:S,orientation:E,role:P,textAlign:C,variant:M}),A=function(e){var t=e.absolute,n=e.children,r=e.classes,o=e.flexItem,i=e.light,a=e.orientation,s=e.textAlign,c={root:["root",t&&"absolute",e.variant,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return Object(u.a)(c,f.b,r)}(R);return Object(p.jsx)(y,Object(o.a)({as:b,className:Object(a.default)(A.root,m),role:P,ref:t,ownerState:R},x,{children:c?Object(p.jsx)(h,{className:A.wrapper,ownerState:R,children:c}):null}))}));t.a=m},2404:function(e,t,n){"use strict";var r,o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=function(e){return"string"===typeof e&&a.test(e)},s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();
2if(!u(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)}},2412:function(e,t,n){"use strict";var r=n(10),o=n(12),i=n(4),a=n(0),u=n(19),s=n(718),c=n(918),l=n(1307),f=n(21),p=n(33),d=n(1323),y=n(470),h=n(227),m=n(51),v=n(725),b=n(274),g=n(480);function _(e){return Object(b.a)("MuiListItem",e)}var w=Object(g.a)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),S=n(1873);function k(e){return Object(b.a)("MuiListItemSecondaryAction",e)}Object(g.a)("MuiListItemSecondaryAction",["root","disableGutters"]);var E=n(8),O=["className"],P=Object(f.a)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return Object(i.a)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),T=a.forwardRef((function(e,t){var n=Object(p.a)({props:e,name:"MuiListItemSecondaryAction"}),r=n.className,c=Object(o.a)(n,O),l=a.useContext(v.a),f=Object(i.a)({},n,{disableGutters:l.disableGutters}),d=function(e){var t=e.disableGutters,n=e.classes,r={root:["root",t&&"disableGutters"]};return Object(s.a)(r,k,n)}(f);return Object(E.jsx)(P,Object(i.a)({className:Object(u.default)(d.root,r),ownerState:f,ref:t},c))}));T.muiName="ListItemSecondaryAction";var C=T,j=["className"],M=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],x=Object(f.a)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((function(e){var t,n=e.theme,o=e.ownerState;return Object(i.a)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!o.disablePadding&&Object(i.a)({paddingTop:8,paddingBottom:8},o.dense&&{paddingTop:4,paddingBottom:4},!o.disableGutters&&{paddingLeft:16,paddingRight:16},!!o.secondaryAction&&{paddingRight:48}),!!o.secondaryAction&&Object(r.a)({},"& > .".concat(S.a.root),{paddingRight:48}),(t={},Object(r.a)(t,"&.".concat(w.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),Object(r.a)(t,"&.".concat(w.selected),Object(r.a)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):Object(l.a)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(w.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):Object(l.a)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),Object(r.a)(t,"&.".concat(w.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),t),"flex-start"===o.alignItems&&{alignItems:"flex-start"},o.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},o.button&&Object(r.a)({transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(w.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):Object(l.a)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):Object(l.a)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),o.hasSecondaryAction&&{paddingRight:48})})),R=Object(f.a)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}}
2)({position:"relative"}),A=a.forwardRef((function(e,t){var n=Object(p.a)({props:e,name:"MuiListItem"}),r=n.alignItems,l=void 0===r?"center":r,f=n.autoFocus,b=void 0!==f&&f,g=n.button,S=void 0!==g&&g,k=n.children,O=n.className,P=n.component,T=n.components,A=void 0===T?{}:T,B=n.componentsProps,D=void 0===B?{}:B,I=n.ContainerComponent,L=void 0===I?"li":I,F=n.ContainerProps,N=(F=void 0===F?{}:F).className,U=n.dense,G=void 0!==U&&U,W=n.disabled,Q=void 0!==W&&W,H=n.disableGutters,V=void 0!==H&&H,z=n.disablePadding,K=void 0!==z&&z,q=n.divider,J=void 0!==q&&q,Y=n.focusVisibleClassName,X=n.secondaryAction,Z=n.selected,$=void 0!==Z&&Z,ee=Object(o.a)(n.ContainerProps,j),te=Object(o.a)(n,M),ne=a.useContext(v.a),re={dense:G||ne.dense||!1,alignItems:l,disableGutters:V},oe=a.useRef(null);Object(h.a)((function(){b&&oe.current&&oe.current.focus()}),[b]);var ie=a.Children.toArray(k),ae=ie.length&&Object(y.a)(ie[ie.length-1],["ListItemSecondaryAction"]),ue=Object(i.a)({},n,{alignItems:l,autoFocus:b,button:S,dense:re.dense,disabled:Q,disableGutters:V,disablePadding:K,divider:J,hasSecondaryAction:ae,selected:$}),se=function(e){var t=e.alignItems,n=e.button,r=e.classes,o=e.dense,i=e.disabled,a={root:["root",o&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return Object(s.a)(a,_,r)}(ue),ce=Object(m.a)(oe,t),le=A.Root||x,fe=D.root||{},pe=Object(i.a)({className:Object(u.default)(se.root,fe.className,O),disabled:Q},te),de=P||"li";return S&&(pe.component=P||"div",pe.focusVisibleClassName=Object(u.default)(w.focusVisible,Y),de=d.a),ae?(de=pe.component||P?de:"div","li"===L&&("li"===de?de="div":"li"===pe.component&&(pe.component="div")),Object(E.jsx)(v.a.Provider,{value:re,children:Object(E.jsxs)(R,Object(i.a)({as:L,className:Object(u.default)(se.container,N),ref:ce,ownerState:ue},ee,{children:[Object(E.jsx)(le,Object(i.a)({},fe,!Object(c.a)(le)&&{as:de,ownerState:Object(i.a)({},ue,fe.ownerState)},pe,{children:ie})),ie.pop()]}))})):Object(E.jsx)(v.a.Provider,{value:re,children:Object(E.jsxs)(le,Object(i.a)({},fe,{as:de,ref:ce,ownerState:ue},!Object(c.a)(le)&&{ownerState:Object(i.a)({},ue,fe.ownerState)},pe,{children:[ie,X&&Object(E.jsx)(C,{children:X})]}))})}));t.a=A}}]); 3//# sourceMappingURL=43.0e853bda.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.