/* dd: 2026-06-16__18-13-12 */ !(function (e) { 'use strict'; self.cdApi = { _eventListeners: {}, configurationKeys: { serverURL: 'serverURL', customerID: 'customerID', logServerURL: 'logServerURL', enableCustomElementsProcessing: 'enableCustomElementsProcessing', collectionSettings: 'collectionSettings', }, getConfigurations: function (callback) { const configurations = {}; configurations[cdApi.configurationKeys.serverURL] ='https://wup-dab0bb57.us.v2.we-stats.com'; configurations[cdApi.configurationKeys.customerID] = 'iceman'; configurations[cdApi.configurationKeys.logServerURL] ='https://log-dab0bb57.us.v2.we-stats.com/api/v1/sendLogs'; configurations[cdApi.configurationKeys.enableCustomElementsProcessing] = true; configurations[cdApi.configurationKeys.collectionSettings] = { elementSettings: { customElementAttribute: 'data-bb' }, }; callback(configurations); }, // set the page context changeContext: function (contextName) { window.postMessage( { type: 'ContextChange', context: contextName }, window.location.href ); }, //set the customer session id - CSID setCustomerSessionId: function (csid) { window.postMessage( { type: 'cdSetCsid', csid: csid }, window.location.href ); }, //set the session brand setCustomerBrand: function (brand) { window.postMessage( { type: 'cdSetCustomerBrand', brand: brand }, window.location.href ); }, //Start a new session startNewSession: function () { window.postMessage( { type: 'ResetSession', resetReason: 'customerApi' }, window.location.href ); }, }; })(); /*! For license information please see main.bundle.js.LICENSE.txt */ var cdwpb;!function(){var e={837:function(e){e.exports={serif:["adobe jenson","adobe text","albertus","aldus","alexandria","algerian","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","nps 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é","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é sans","antique olive","archivo","austria","itc avant garde","itc avant garde gothic","averta","bahnschrift","barlow","bobcaygeon","breeze sans","cantarell","caractères","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à ","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","amienne","batak script","chandas","hanacaraka","japanese gothic typeface","jomolhari","kochi font","lontara script","maiola","minchō","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öcklin","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 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","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","algerian","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","nps 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é","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é sans","antique olive","archivo","austria","itc avant garde","itc avant garde gothic","averta","bahnschrift","barlow","bobcaygeon","breeze sans","cantarell","caractères","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à ","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","amienne","batak script","chandas","hanacaraka","japanese gothic typeface","jomolhari","kochi font","lontara script","maiola","minchō","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öcklin","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","recursive 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 Sans","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 XBd 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 Transparent","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 Noori 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 Transparent","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","Noto 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 Italic 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 LET","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","Z@R11F8.tmp","Z@R120A.tmp","Z@R123A.tmp","Z@R13D5.tmp","Z@R16EB.tmp","Z@R16FD.tmp","Z@R170E.tmp","Z@R1720.tmp","Z@R1751.tmp","Z@R1762.tmp","Z@R1774.tmp","Z@R1816.tmp","Z@R1828.tmp","Z@R183A.tmp","Z@R184B.tmp","Z@R185D.tmp","Z@R195D.tmp","Z@R277C.tmp","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 55 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";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"}')},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":"0007","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":"0106","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":"0116","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":"0130","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"]}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!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 n=0;n>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r0?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>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o>>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=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;r0)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}}function l(){!function(e){var t=Date.now?Date.now():+new Date,r=e.performance||{},o=[],i={},a=function(e,t){for(var n=0,r=o.length,i=[];n4&&void 0!==arguments[4]?arguments[4]:f,l=t.resolve(i,a,c),p=n.mapStartupConfigurations(l,s);r.attachCdApi(window),e.manualStart(p,l,o,void 0,u)},stop:function(){e.stop()},pause:function(){e.pause()},resume:function(){e.resume()},updateCustomerSessionID:function(t){e.updateCustomerSessionID(t)},changeContext:function(t){e.changeContext(t)},startNewSession:function(t){e.startNewSession(t)},setCoordinatesMasking:function(t){e.setCoordinatesMasking(t)},setCustomerBrand:function(t){e.setCustomerBrand(t)},flush:function(){e.flush()}}}}],t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 b(e,t){for(var n=0;n0)}},{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}}],(n=null)&&Ne(t.prototype,n),r&&Ne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Ue(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 Ge(e){for(var t=1;t0&&(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(Pe,{metricsData:Ge(Ge({},e._context),{},{metrics:[]})}),e._startTimer())}},{key:"onConfigurationUpdated",value:function(t){if(t){e._enabled=!0===t.get(w.enableMetricsFeature);var n=t.get(w.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);e._histograms[o]||(e._histograms[o]=[]),e._histograms[o].push(n)}},{key:"recordError",value:function(){e.record(Ve.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(Pe,{metricsData:t}),e._reset())}}},{key:"_formatForBackend",value:function(){for(var t=[],n=Object.keys(e._counters),r=0;r0)for(var t=0;t-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"}}],(n=null)&&We(t.prototype,n),r&&We(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n=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)}}])}(),$e=function(){return Ye(function e(t,n){qe(this,e),this._logBridge=t,this._logLevel=n||me,this._sessionIdentifiers={}},[{key:"attachSessionIdentifiers",value:function(e){Object.assign(this._sessionIdentifiers,e)}},{key:"trace",value:function(e){this._sendToLogBridge(e,he)}},{key:"debug",value:function(e){this._sendToLogBridge(e,he)}},{key:"info",value:function(e){this._sendToLogBridge(e,me)}},{key:"warn",value:function(e,t){this._sendToLogBridge(e,ve,t)}},{key:"error",value:function(e,t){ze.recordError(),this._sendToLogBridge(e,be,t)}},{key:"isDebug",value:function(){return this._logLevel===he}},{key:"updateLogConfig",value:function(e){this._logLevel=e.get(w.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 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 n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n-1)n(r());else{var o=0,i=function(){if(It.contentWindow){for(var t=It.contentWindow,a=e.split("."),u=t,s=0;s4&&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):Ze.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>>16)*s&65535)<<16)&4294967295)<<15|o>>>17))*c+(((o>>>16)*c&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+(((r>>>16)+58964&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();return"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)})}},{key:"convertToArrayByMap",value:function(e,t){for(var n=[null],r=0,o=e.length;r1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:void 0;try{var n=this.deserialize(window.localStorage.getItem(e));return n?n.exp&&Et.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=Et.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?Mt:this.saveToLocalStorage(e,n,t)?Rt:xt},getFromSessionStorage:function(e){try{var t=this.deserialize(window.sessionStorage.getItem(e));return t||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?Mt:this.setCookie(e,o,t,n,r)?Rt:xt},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}}),Bt(Gt,"getNativeWindowFn",Ut),Bt(Gt,"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?Ut("Date.now",Date.now,function(e){Gt.dateNow=e}):Gt.dateNow=function(){return(new Date).getTime()};var Wt={stopped:"stopped",starting:"starting",started:"started",paused:"paused",faulted:"faulted"},Qt=n(512),Ht=n.n(Qt);function Vt(){return Ht()('/*! 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){var r=t[a][1][e];return i(r||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a=0;i--)e[i+t]=this[i+r];else for(i=0;i=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>>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.codec.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(){throw new Error("method not implemented: write()")}function a(){throw new Error("method not implemented: fetch()")}function s(){return this.buffers&&this.buffers.length?(this.flush(),this.pull()):this.fetch()}function u(e){(this.buffers||(this.buffers=[])).push(e)}function c(){return(this.buffers||(this.buffers=[])).shift()}function f(e){return function(t){for(var r in e)t[r]=e[r];return t}}r.FlexDecoder=n,r.FlexEncoder=i;var l=e("./bufferish"),h=2048,d=65536,p="BUFFER_SHORTAGE";n.mixin=f({bufferish:l,write:function(e){var t=this.offset?l.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=t?e?this.bufferish.concat([t,e]):t:e,this.offset=0},fetch:a,flush:function(){for(;this.offsetthis.buffer.length)throw new Error(p);return this.offset=r,t},offset:0}),n.mixin(n.prototype),i.mixin=f({bufferish:l,write:o,fetch:function(){var e=this.start;if(e1?this.bufferish.concat(e):e[0];return e.length=0,t},read:s,reserve:function(e){var t=0|e;if(this.buffer){var r=this.buffer.length,n=0|this.offset,i=n+t;if(ithis.minBufferSize)this.flush(),this.push(e);else{var r=this.reserve(t);l.prototype.copy.call(e,this.buffer,r)}},maxBufferSize:d,minBufferSize:h,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];if(!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>>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,n=r<16?144+r:r<=65535?220:221;v[n](e,r);for(var i=e.codec.encode,o=0;o=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}else 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;au&&(r=u-c),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(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>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?N.fromByteArray(e):N.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?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;nn)&&(r=n);for(var i="",o=t;or)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||te.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>>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>>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),F.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return i||j(e,0,r,8),F.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;a55295&&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 N.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=t.length||i>=e.length);++i)t[i+r]=e[i];return i}var N=e("base64-js"),F=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);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(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;li)&&(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),t0&&(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=(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),F.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),F.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),F.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),F.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=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=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=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=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a0)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;a0?f-4:f;var l=0;for(t=0,r=0;t>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;cf?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<>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<>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<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=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>>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>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>>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>>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)-(4e.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]&&ou&&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<=3&&(e.ins_h=(e.ins_h<=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<=3&&(e.ins_h=(e.ins_h<=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.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>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.gzindex=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.gzindexa&&(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.gzindexa&&(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&&0e.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=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<>>=_=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<15&&(d+=P[n++]<>>=_=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-=_,(_=o-a)>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n>>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=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>>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<>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++]<>>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++]<>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++]<>>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>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++]<>>=7&m,m-=7&m,r.mode=27;break}for(;m<3;){if(0===p)break e;p--,v+=f[h++]<>>=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++]<>>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>>=5,m-=5,r.ndist=1+(31&v),v>>>=5,m-=5,r.ncode=4+(15&v),v>>>=4,m-=4,286>>=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>>16&255,O=65535&M,!((P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<>>=P,m-=P,r.lens[r.have++]=O;else{if(16===O){for(I=P+2;m>>=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>>=P)),v>>>=3,m-=3}else{for(I=P+7;m>>=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<>>16&255,O=65535&M,!((P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<>C)])>>>16&255,O=65535&M,!(C+(P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<>>=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>>=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<>>16&255,O=65535&M,!((P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<>C)])>>>16&255,O=65535&M,!(C+(P=M>>>24)<=m);){if(0===p)break e;p--,v+=f[h++]<>>=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>>=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(yb?(_=L[U+l[E]],w=A[I+l[E]]):(_=96,w=0),d=1<>R)+(p-=d)]=g<<24|_<<16|w,0!==p;);for(d=1<>=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>>7)]}function P(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function T(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function R(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=u;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]=C(o[s]++,s))}}function x(e){var t;for(t=0;t>1;1<=r;r--)A(e,o,r);for(i=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],A(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++,A(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,c=t.dyn_tree,f=t.max_code,l=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,y=t.stat_desc.max_length,v=0;for(o=0;o<=u;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)y<(o=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(o=y,v++),c[2*n+1]=o,f>=7;n>>=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>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?N(e,t,r,n):4===e.strategy||a===i?(T(e,2+(n?1:0),3),I(e,d,p)):(T(e,4+(n?1:0),3),function(e,t,r,n){var i;for(T(e,t-257,5),T(e,r-1,5),T(e,n-4,4),i=0;i>>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*(v[r]+o+1)]++,e.dyn_dtree[2*E(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;T(e,2,3),O(e,256,d),16===(t=e).bi_valid?(P(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";t.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-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-1}},{key:"delete",value:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:[],t=new(self.Set||c),r=0;r0)}},{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}}],(r=null)&&_e(t.prototype,r),n&&_e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function Ee(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 Pe(e){for(var t=1;t0&&(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(le,{metricsData:Pe(Pe({},e._context),{},{metrics:[]})}),e._startTimer())}},{key:"onConfigurationUpdated",value:function(t){if(t){e._enabled=!0===t.get(z);var r=t.get(q);"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(Re.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(le,{metricsData:t}),e._reset())}}},{key:"_formatForBackend",value:function(){for(var t=[],r=Object.keys(e._counters),n=0;n0)for(var t=0;t-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"}}],(r=null)&&Te(t.prototype,r),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();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 je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var r=0;r=t||e>0&&!(e&e-1)}},{key:"warnRetry",value:function(e,t,r,n){this.shouldLogRetry(t,r)&&this.warn(e,n)}},{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)}}])}(),Le=function(){return Ie(function e(t,r){je(this,e),this._logBridge=t,this._logLevel=r||ee,this._sessionIdentifiers={}},[{key:"attachSessionIdentifiers",value:function(e){Object.assign(this._sessionIdentifiers,e)}},{key:"trace",value:function(e){this._sendToLogBridge(e,$)}},{key:"debug",value:function(e){this._sendToLogBridge(e,$)}},{key:"info",value:function(e){this._sendToLogBridge(e,ee)}},{key:"warn",value:function(e,t){this._sendToLogBridge(e,te,t)}},{key:"error",value:function(e,t){xe.recordError(),this._sendToLogBridge(e,re,t)}},{key:"isDebug",value:function(){return this._logLevel===$}},{key:"updateLogConfig",value:function(e){this._logLevel=e.get(E)||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 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 Ne(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fe={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(Fe).includes(e)},getDescription:function(e){return Ne(Ne(Ne(Ne(Ne(Ne({},Fe.V1_ONLY,"Only V1 collector is active"),Fe.DUAL_COLLECTION_V1_PRIORITY,"Both collectors active, V1 is primary"),Fe.DUAL_COLLECTION_V2_PRIORITY,"Both collectors active, V2 is primary"),Fe.V2_ONLY,"Only V2 collector is active"),Fe.DUAL_COLLECTION_PARALLEL_WAIT_ALL,"Both collectors active, parallel, waits for both and sends combined"),Fe.DUAL_COLLECTION_PARALLEL_IMMEDIATE,"Both collectors active, parallel, sends immediately as each completes")[e]||"Unknown stage"}},ze=Fe;Object.freeze({VERSION1:"VERSION1",VERSION2:"VERSION2"});var qe={migrationMode:ze.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 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 He(e,t){for(var r=0;r1&&void 0!==arguments[1])||arguments[1];return this._requestId=e,t&&this._publish(),this._requestId}},{key:"setWupDispatchRate",value:function(e){e?this._wupDispatchRate=e:De.warn("Wup dispatch rate of ".concat(e," is invalid. 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?De.warn("We already have configuration. Ignoring the attempt to mark a pending configuration request."):this._hasPendingConfigurationRequest=!0}},{key:"markConfigurationReceived",value:function(){this._hasConfiguration?De.warn("Marking that we received configuration although we already received configuration from the server. We shouldn\'t have received it again."):this._hasPendingConfigurationRequest||De.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})}}])}();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 it(e,t){for(var r=0;r0}},{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]}}])}();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 ht(e,t){for(var r=0;r3&&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){var r=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;){if((r.item?r.item(n):r[n])===this)break}return n>-1};return r.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"===lt(self.crypto)&&"object"===lt(self.crypto.subtle)&&"function"==typeof self.crypto.subtle.digest}}])}();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 vt(e,t){for(var r=0;r>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>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>>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>>0).toString(16)).slice(-8);return P}(e);t(null,n)}catch(e){t(e)}}}])}();var gt="X-h",_t="x-requested-host",wt="api/v4/wup",St="client/v3.1/web/wup",kt="POST";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 Pt(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 Tt(e){for(var t=1;t1&&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]=Tt({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;n0&&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 Bt(e){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(e)}function jt(e,t){for(var r=0;r4&&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 ft,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 De.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);De.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,De.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?De.debug("Discarding ".concat(this._messageDescriptor," message #").concat(this._currentSentItem.identifier," (server responded with status ").concat(t,", retryOnNetworkFailureOnly enabled).")):De.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];if(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?bt.hashSha256(i,function(r,o){r?De.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(pt.isWebWorkerFetchSupported()&&r){var i=new Headers;this._contentType&&i.append("Content-Type",this._contentType),n&&i.append(gt,n),t.realAPI&&i.append(_t,t.realAPI);var o={method:kt,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&&xt.record(Re.HTTP_REQUEST_RESULT,{result:"success",reason:"none",status_code:"200",source:r._messageDescriptor}),De.info("Flush data was sent successfully by fetch")}).catch(function(e){r._recordMetrics&&xt.record(Re.HTTP_REQUEST_RESULT,{result:"failure",reason:"http_error",status_code:"-1",source:r._messageDescriptor}),De.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){xt.record(Re.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===Ut.AD_BLOCK_STATUS_CODE?"ad_blocker":"http_error";xt.record(Re.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,kt,e,i,o,this._acceptNoResponse,t.timeout,r,t.realAPI,this._contentType)}},{key:"_checkQueueLength",value:function(){this._dataQueue.length()>this._queueLoadThershold&&De.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?bt.hashSha256(n,function(e,i){e?De.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 Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function Ht(e,t){for(var r=0;r>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 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;rar)&&(De.warn("messageNumToRetry - ".concat(e," in the following range: \\n ").concat(or," - ").concat(ar," setting to default: ").concat(ir)),this.messageNumToRetry=ir),(this.messageRetryIntervalcr)&&(De.warn("messageRetryInterval - ".concat(e," in the following range: \\n [").concat(ur," - ").concat(cr,"], \\n setting to default: ").concat(sr)),this.messageRetryInterval=sr),(this.incrementalGrowthBetweenFailureshr)&&(De.warn("incrementalGrowthBetweenFailures - ".concat(e," in the following range: \\n [").concat(lr," - ").concat(hr,"],\\n setting to default: ").concat(fr)),this.incrementalGrowthBetweenFailures=fr),(this.maxIntervalBetweenFailuresyr)&&(De.warn("maxIntervalBetweenFailures - ".concat(e," in the following range: \\n [").concat(pr," - ").concat(yr,"]\\n setting to default: ").concat(dr)),this.maxIntervalBetweenFailures=dr),this.maxIntervalBetweenFailures1&&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 De.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=kr.createReMessageSettings(this._configurationRepository);this._serverCommunicator.getRetryMessage().updateSettings(e)}},{key:"_onSendDataSuccess",value:function(){}},{key:"_onSendDataFailure",value:function(e){De.warn("Failed sending log message. Error: ".concat(e,"."))}}])}();function Cr(e){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(e)}function Rr(e,t){for(var r=0;r0&&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];De.debug("Sending a message to the server"),this._serverClient.isReady()?this._aggregator.isEmpty()||(this._serverClient.sendData(this._aggregator.take(),e),this.scheduleNextDispatching()):De.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 tn(e){return tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(e)}function rn(e,t){for(var r=0;r=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?ee: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 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 sn(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r=1}).map(function(e){return t.indexOf(e[0])}).filter(function(e){return-1!==e}));if(0===r.size)return[];var n=this._calculateChecksum(t),i=Array.from(r).sort(function(e,t){return e-t});return[n].concat(vn(i))}},{key:"_calculateChecksum",value:function(e){for(var t=JSON.stringify(e),r=0,n=0;n1&&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(fn),JSON.stringify(e.getInternalMessage())}}])}(),Pn="ConfigurationLoadedEvent",Tn="NewSessionStartedEvent",On="WupDispatchRateUpdatedEvent",Cn="ServerStateUpdatedEvent",Rn="ServerRestoredMuidEvent",xn="ServerNewAgentIdEvent",Bn="WorkerSystemStatusEvent";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 An(e,t){for(var r=0;r1&&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";De.error("Unable to send data. ".concat(s," is undefined"))}}},{key:"setRequestTimeout",value:function(e){this._requestTimeout=e}},{key:"setConfigurationWupMessage",value:function(){var e=$n.createReMessageSettings(this._configurationRepository);this._retryMessage.updateSettings(e)}},{key:"_initSession",value:function(e,t,r,n,i,o,a,s,u,c,f){De.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)):(De.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"));this._validateCommonSessionRelatedParameters(t,r)}},{key:"_validateCommonSessionRelatedParameters",value:function(e,t){if(!e&&this._wupServerSessionState.getAgentType()!==Zn.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=Kn(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(Nn,Hn),this._handleSuccessResponse(e,t),this._wupStatisticsService.incrementSentWupCount()}},{key:"_onSendDataFailure",value:function(e,t,r,n){if(r===this._MESSAGE_SEND_RETRIES?this._publishWorkerSystemStatus(Nn,Gn):this._publishWorkerSystemStatus(Nn,Yn),e==Ut.AD_BLOCK_STATUS_CODE&&this._recoveryServerURL){this._fallBackToRecoveryServerUrl();var i,o=Kn(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=ri(ri({},t),{},{serverUrl:o,realAPI:i});this._serverCommunicator.prepareMessageForSendRetry(a)}else n&&this._serverCommunicator.prepareMessageForSendRetry(t)}},{key:"_handleSuccessResponse",value:function(e,t){var r=t?Ln:Un;try{var n=JSON.parse(e);this._wupResponseProcessor.process(n,t),this._publishWorkerSystemStatus(r,Hn)}catch(e){this._publishWorkerSystemStatus(r,Gn);var i="Failed to parse message from server: ".concat(e.message);De.error(i,e)}}},{key:"_publishWorkerSystemStatus",value:function(e,t){this._msgBus.publish(Bn,new Vn(e,t))}}])}();function si(e){return si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(e)}function ui(e,t){for(var r=0;r9&&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(Pn,this._handle.bind(this))},[{key:"_handle",value:function(e){this._wupStatisticsService.updateSettings(e.get(b));var t=e.get(m)?Ye.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(w)||e.get(_)),this._logServerClient.setRequestTimeout(e.get(S)),this._wupServerClient.setConfigurationWupMessage(),this._logServerClient.setConfigurationLogMessage(),this._updateMetricsConfiguration(e),this._mainCommunicator.sendAsync(Z,e.getAll())}},{key:"_updateMetricsConfiguration",value:function(e){if(this._metricsServerClient){var t=e.get(Y);t&&(this._metricsServerClient.retryAndTimeoutInterval=t);var r=e.get(G);if(r&&(this._metricsServerClient.maxRetries=r),e.get(z)){var n=e.get(W)||"https://sdkslogsender-regionalservices.bc2.customers.biocatch.com/api/v1/";this._metricsServerClient.updateServerUrl(n);var i=e.get(H);i&&(this._metricsServerClient.dispatchRate=i),"started"!==this._metricsServerClient.getState()&&this._metricsServerClient.start()}else"started"===this._metricsServerClient.getState()&&this._metricsServerClient.stop()}}}])}();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(e,t){for(var r=0;r3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&dn||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]())):(xi(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,xi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,xi(l,"constructor",c),xi(c,"constructor",u),u.displayName="GeneratorFunction",xi(c,i,"GeneratorFunction"),xi(l),xi(l,i,"Generator"),xi(l,n,function(){return this}),xi(l,"toString",function(){return"[object Generator]"}),(Ri=function(){return{w:o,m:h}})()}function xi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}xi=function(e,t,r,n){function o(t,r){xi(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))},xi(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 ji(e,t){for(var r=0;r9&&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(){De.debug("Starting Worker Service"),this._mainCommunicator.addMessageListener(ne,this._onStartNewSessionCommand.bind(this)),this._mainCommunicator.addMessageListener(ie,this._onResumeSessionCommand.bind(this)),this._mainCommunicator.addMessageListener(oe,this._onChangeContextCommand.bind(this)),this._mainCommunicator.addMessageListener(ae,this._onUpdateCsidCommand.bind(this)),this._mainCommunicator.addMessageListener(se,this._onUpdatePsidCommand.bind(this)),this._mainCommunicator.addMessageListener(ue,this._onUpdateLogUrlCommand.bind(this)),this._mainCommunicator.addMessageListener(ce,this._onSendDataCommand.bind(this)),this._mainCommunicator.addMessageListener(fe,this._onSendLogCommand.bind(this)),this._mainCommunicator.addMessageListener(he,this._onUpdateBrandCommand.bind(this)),this._mainCommunicator.addMessageListener(pe,this._setSessionAgentType.bind(this)),this._mainCommunicator.addMessageListener(ye,this._onUpdateAgentId.bind(this)),this._mainCommunicator.addMessageListener(ve,this._setWupMessagesHashing.bind(this)),this._mainCommunicator.addMessageListener(be,this._onScanFontsCommand.bind(this)),this._mainCommunicator.addMessageListener(le,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){De.debug("Worker received a ChangeContextCommand from main."),this._wupServerSessionState.setContextName(e.contextName)}},{key:"_onUpdateCsidCommand",value:function(e){De.debug("Worker received an UpdateCsidCommand from main. CSID: ".concat(e.csid,".")),this._wupServerClient.updateCsid(e.csid)}},{key:"_onUpdatePsidCommand",value:function(e){De.debug("Worker received an UpdatePsidCommand from main. PSID: ".concat(e.psid,".")),this._wupServerClient.updatePsid(e.psid)}},{key:"_onUpdateLogUrlCommand",value:function(e){De.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=Ri().m(function e(t){var r,n,i;return Ri().w(function(e){for(;;)switch(e.p=e.n){case 0:if(De.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(Oi,{requestId:t.requestId,detectedFonts:n,success:!0}),e.n=5;break;case 4:e.p=4,i=e.v,De.error("[WorkerService] Font detection failed:",i),this._mainCommunicator.sendAsync(Oi,{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){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 t.apply(this,arguments)})}]);var e,t}();function Mi(e){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(e)}function Di(e,t){for(var r=0;r2&&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:zi(zi({msg:this.msgPrefix+e},r),{},{url:this.url,level:t,sn:this.sn++})})}},{key:"setLogLevel",value:function(e){this.logAggregator instanceof on&&this.logAggregator.setLogLevel(e)}},{key:"clearLogEntriesByLogLevel",value:function(e){this.logAggregator.filterOutByLogLevel(e)}}])}();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(e,t){for(var r=0;rthis.getMaxIntervalBetweenFailures()?this.currentInterval=this.getMaxIntervalBetweenFailures():this.currentInterval=e,this._incrementNumberOfSendFailures()}}])}();function Qi(e){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(e)}function Xi(e,t){for(var r=0;r3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&dn||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]())):(fo(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,fo(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,fo(l,"constructor",c),fo(c,"constructor",u),u.displayName="GeneratorFunction",fo(c,i,"GeneratorFunction"),fo(l),fo(l,i,"Generator"),fo(l,n,function(){return this}),fo(l,"toString",function(){return"[object Generator]"}),(co=function(){return{w:o,m:h}})()}function fo(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}fo=function(e,t,r,n){function o(t,r){fo(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))},fo(e,t,r,n)}function lo(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 ho(e,t){for(var r=0;r3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&dn||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]())):(bo(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,bo(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,bo(l,"constructor",c),bo(c,"constructor",u),u.displayName="GeneratorFunction",bo(c,i,"GeneratorFunction"),bo(l),bo(l,i,"Generator"),bo(l,n,function(){return this}),bo(l,"toString",function(){return"[object Generator]"}),(mo=function(){return{w:o,m:h}})()}function bo(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}bo=function(e,t,r,n){function o(t,r){bo(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))},bo(e,t,r,n)}function go(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 _o(e,t){for(var r=0;r0&&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=So(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&&Po(e,t)}(t,e),function(e,t,r){return t&&_o(e.prototype,t),r&&_o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:(r=mo().m(function e(t){var r,n;return mo().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){go(o,n,i,a,s,"next",e)}function s(e){go(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}(yo);function Oo(e){return Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oo(e)}function Co(){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 Ro(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&&t3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&dn||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]())):(Ro(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,Ro(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,Ro(l,"constructor",c),Ro(c,"constructor",u),u.displayName="GeneratorFunction",Ro(c,i,"GeneratorFunction"),Ro(l),Ro(l,i,"Generator"),Ro(l,n,function(){return this}),Ro(l,"toString",function(){return"[object Generator]"}),(Co=function(){return{w:o,m:h}})()}function Ro(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ro=function(e,t,r,n){function o(t,r){Ro(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))},Ro(e,t,r,n)}function xo(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 Bo(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){xo(o,n,i,a,s,"next",e)}function s(e){xo(o,n,i,a,s,"throw",e)}a(void 0)})}}function jo(e,t){for(var r=0;r3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&dn||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]())):(Go(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,Go(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,Go(l,"constructor",c),Go(c,"constructor",u),u.displayName="GeneratorFunction",Go(c,i,"GeneratorFunction"),Go(l),Go(l,i,"Generator"),Go(l,n,function(){return this}),Go(l,"toString",function(){return"[object Generator]"}),(Ho=function(){return{w:o,m:h}})()}function Go(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Go=function(e,t,r,n){function o(t,r){Go(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))},Go(e,t,r,n)}function Yo(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 Vo(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){Yo(o,n,i,a,s,"next",e)}function s(e){Yo(o,n,i,a,s,"throw",e)}a(void 0)})}}function Zo(e,t){for(var r=0;rthis.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&&(De.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 Xo(e){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xo(e)}function Jo(){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 $o(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&&t3?(i=p===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&dn||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]())):($o(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,$o(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,$o(l,"constructor",c),$o(c,"constructor",u),u.displayName="GeneratorFunction",$o(c,i,"GeneratorFunction"),$o(l),$o(l,i,"Generator"),$o(l,n,function(){return this}),$o(l,"toString",function(){return"[object Generator]"}),(Jo=function(){return{w:o,m:h}})()}function $o(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}$o=function(e,t,r,n){function o(t,r){$o(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))},$o(e,t,r,n)}function ea(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 ta(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){ea(o,n,i,a,s,"next",e)}function s(e){ea(o,n,i,a,s,"throw",e)}a(void 0)})}}function ra(e,t){for(var r=0;r0&&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||De,this._batchProcessorFactory=t.batchProcessorFactory||Qo},[{key:"scanFonts",value:(e=ta(Jo().m(function e(t){var r,n,i,o=arguments;return Jo().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=ta(Jo().m(function e(t){var r;return Jo().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 oa(e){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(e)}function aa(e,t){for(var r=0;r2&&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)})}}])}(),ma=va;function ba(e){return ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ba(e)}function ga(e,t){for(var r=0;r>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 Pa).start()}}])}();(new Ra).start()}()}();',"Worker",void 0,void 0)}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-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)}},{key:"forEach",value:function(e){for(var t=0;t-1}},{key:"delete",value:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:[],t=new(self.Set||yn),n=0;n1&&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}),Ze.debug("PerfMonitor:stopMonitor on ".concat(e,": time = ").concat(n)),this._monitors.delete(e)}}},{key:"cancelMonitor",value:function(e){Ze.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";Ze.debug("PerfMonitor:reportMonitor on ".concat(e,", time: ").concat(t)),this._perfDataQ.addToQueue("perf",{orig:n,name:e,val:t})}}],t&&En(e.prototype,t),n&&En(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function Cn(e,t){for(var n=0;n5&&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={}},(t=[{key:"updateObserver",value:function(e){this._onMatchCB=e}},{key:"_observeChange",value:function(e,t){if(e)try{var n=window.document.querySelector(e);if(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 Ze.debug("Selector:".concat(JSON.stringify(e)," not found on page. Check ").concat(this._siteMapKey," configuration"))}catch(e){Ze.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-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]||(Ze.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"===Pn(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?Ze.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,")")):Ze.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){Ze.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;e0&&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._wasmLoader=null,this._externalWASMModules=t,this._externalWASMModules.length>0&&"object"===Rn(window.WasmLoader)&&(this._wasmLoader=window.WasmLoader)},t=[{key:"isWasmLoaderAvailable",value:function(){return!(!this._wasmLoader||"function"!=typeof this._wasmLoader.loadKotlinModule)||(Ze.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 Ze.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 Ze.warn('Failed to load external Wasm module "'.concat(t,'".')),null;Ze.debug('Successfully loaded external Wasm module "'.concat(t,'".')),"function"==typeof n&&n(o)}).catch(function(e){return Ze.warn('Failed to load external Wasm module "'.concat(t,'" from URL "').concat(r.url,'": ').concat(e.message)),null}):null:(Ze.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 Ze.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"===Rn(t)&&"object"===Rn(t.exports)?t.exports:void 0}Ze.warn("Attempted to load a Wasm module, but no WasmLoader is available in the window scope or externalWASMModules is empty.")}}],t&&xn(e.prototype,t),n&&xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 Nn(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&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 Ze.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=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 Ze.error("ContextCategoryService.matchCategory failed: ".concat(e)),"0"}}},{key:"_getLocation",value:function(){try{return"undefined"!=typeof window&&window.location?window.location:{href:""}}catch(e){return Ze.error("ContextCategoryService._getLocation failed: ".concat(e)),{href:""}}}},{key:"getCategory",value:function(){return this._mode===Hn?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 Ze.error("ContextCategoryService._calculateCategory failed: ".concat(e)),"0"}}}],t&&Wn(e.prototype,t),n&&Wn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 Jn(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.getAutoContextMode();if(t&&n===zn)Ze.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||n===zn)e?e!==this.contextName?(this.contextName=e,this._updateContext(),this._publishContext(),Ze.info("Context changed to ".concat(e," (reported as '").concat(this.getContextName(),"'), mode=").concat(n,", context_mapping=").concat(this.context_mapping,", hash=").concat(this.contextHash))):Ze.warn("Received context ".concat(e," but this is already the current context. Aborting operation.")):Ze.error("Received an invalid context name ".concat(e,". Aborting context change operation"));else{var r=n===Hn?"OFF":"PASSIVE";Ze.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()):Ze.warn("Received context ".concat(e," but this is already the current context. Aborting operation.")):Ze.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)||Ze.error("Failed saving contextId ".concat(this.contextId," to local storage.")),this._storageUtilsWrapper.setCookie(this._contextIdKey,e.toString())||Ze.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 t=73244475*((t=73244475*(t>>>16^t))>>>16^t),4294967295&(t^=t>>>16)}},{key:"_publishContext",value:function(){var e={contextName:this.getContextName()};this._workerComm.sendAsync(we,e),this.onContextChange.publish(this.contextData())}},{key:"initContextHandling",value:function(){this._contextSiteMapper.initTracking(),this._navigationObserver&&this._contextCategoryService.getMode()===zn&&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&&(n===zn&&t!==zn?this._navigationObserver.startTracking():n!==zn&&t===zn&&this._navigationObserver.stopTracking()),n!==zn||t===zn||this.contextName||this.changeContext("cd_auto")}},{key:"onSessionReset",value:function(){this.getAutoContextMode()!==zn||this.contextName?this.contextName&&this._publishContext():this.changeContext("cd_auto")}}],t&&Jn(e.prototype,t),n&&Jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function $n(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],o=!1;this.subscribers.has(e)?(n=this.subscribers.get(e))&&n.forEach(function(e){t===e.handler&&(o=!0)}):(n=dn(),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)})}}],t&&rr(e.prototype,t),n&&rr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),ar=ir;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 sr(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n","<","~",'"',"±","§","'"]),this.lettersSet=new Set(Fo(Array(26)).map(function(e,t){return String.fromCharCode(65+t)}).concat(Fo(Array(26)).map(function(e,t){return String.fromCharCode(97+t)})).concat(Fo(Array(27)).map(function(e,t){return String.fromCharCode(1488+t)}))),this.digitsSet=new Set(Fo(Array(10)).map(function(e,t){return String(t)})),this.cjkNumbersSet=new Set(["〇","一","二","三","四","五","六","七","八","九","十","百","千","万","零","壹","貳","贰","參","叁","肆","伍","陸","陆","柒","捌","玖","拾","佰","仟","萬","〡","〢","〣","〤","〥","〦","〧","〨","〩","〸","〹","〺"]),this.allowedUnmaskedChars=new Set([",",".","@",";",":","-","+","$"," "]),this.allowedMaskedChars=new Set(["a","1","*"])},t=[{key:"maskKey",value:function(e,t,n){if(this._isPasswordMaskedElementId(n))return this.maskedCodeMapping.masked();if(Io[e]){var r=Io[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(w.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(w.passwordIdMaskingList);return void 0!==e&&Array.isArray(t)&&t.includes(e)}},{key:"getDropDownListValues",value:function(e){for(var t=[],n=0;n1?"":s.key,l=this._elements.getElementHashFromEvent(e),f=this._getComboType(e,a),p=No[e.isTrusted],y="Meta"===e.key||"OS"===e.key||"Win"===e.key||e.metaKey||91===e.keyCode||92===e.keyCode,d=this._configurationRepository.get(w.collectKeyRegionValue)?this._getKeyRegion(u):"-1",h=this.getTimestampFromEvent(e),m=ai.undefined;"keypress"===e.type&&(m=this._sameCharService.compare(e.target,e.key),this._sameCharService.update(e.target,e.key)),Ze.isDebug()&&Ze.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(bi,{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:y||!1,keyLocation:e.location||0,code:s.code||"",key:s.key||"",location:e.location||"",isRepeat:e.repeat||!1,keyRegion:d,relativeTime:h,isSameKey:m}))}},{key:"_getKeyRegion",value:function(e){return si[e]?si[e]:"-1"}},{key:"_getComboType",value:function(e,t){return(e.ctrlKey||e.metaKey)&&void 0!==t?this.comboCodes.indexOf(t):-1}}],o=[{key:"getDefaultSettings",value:function(){return mi}}],r&&li(n.prototype,r),o&&li(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bo);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;nthis._aroundTouchInterval&&(Ze.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;ithis._aroundTouchInterval;i++)this._historyBuffer.shift()}}},{key:"onConfigUpdate",value:function(){this._aroundTouchInterval=void 0!==this._configurationRepository.get(w.motionPaddingAroundTouchMSec)?this._configurationRepository.get(w.motionPaddingAroundTouchMSec):this._aroundTouchInterval,this._isMotionAroundTouchEnabled=void 0!==this._configurationRepository.get(w.isMotionAroundTouchEnabled)?this._configurationRepository.get(w.isMotionAroundTouchEnabled):this._isMotionAroundTouchEnabled}},{key:"_sendBuffer",value:function(){var e=this._utils.dateNow();Ze.debug("sending history sensors buffer ts=".concat(e));for(var t=0,n=this._historyBuffer.length;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0||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);if(!e)return Ze.info("No significant interactive area.");var t=this.findPotentialContainer(e);return t||void 0}},{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=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&&r0&&this.enabledTags.includes(e.toLowerCase())}}])&&xi(t.prototype,n),r&&xi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Ni(e,t){for(var n=0;n0?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 Ze.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 y=this._collectCustomElementAttribute?this._getCustomElementAttributeValue(e):"",d=this._maskingService.maskAbsoluteIfRequired(y,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?Ze.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?Mi.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,d||y,v,_,w];this._isCollectorsV2?this._dataQueue.addToQueue("",["elements_v2",S,!1]):this._dataQueue.addToQueue("elements",S,!1),Ze.isDebug()&&Ze.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;r0&&(t=t.concat(a)):this.frameInaccessible.publish(u)}return t}}])&&Ki(e.prototype,t),n&&Ki(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 Xi(e,t){for(var n=0;n3&&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(){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){var n=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};return n.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"===ea(self.crypto)&&"object"===ea(self.crypto.subtle)&&"function"==typeof self.crypto.subtle.digest}}],(n=null)&&ta(t.prototype,n),r&&ta(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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){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 ca(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)?ca(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 ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(fa(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,fa(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,fa(f,"constructor",c),fa(c,"constructor",s),s.displayName="GeneratorFunction",fa(c,o,"GeneratorFunction"),fa(f),fa(f,o,"Generator"),fa(f,r,function(){return this}),fa(f,"toString",function(){return"[object Generator]"}),(la=function(){return{w:i,m:p}})()}function fa(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fa=function(e,t,n,r){function i(t,n){fa(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))},fa(e,t,n,r)}function pa(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 ya(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){pa(i,r,o,a,u,"next",e)}function u(e){pa(i,r,o,a,u,"throw",e)}a(void 0)})}}function da(e,t){for(var n=0;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=ya(la().m(function e(t,n,r){return la().w(function(e){for(;;)switch(e.n){case 0:if(t&&"function"==typeof t.querySelectorAll){e.n=1;break}return Ze.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=ya(la().m(function e(t,n){var r,o,i,a,u,s,c,l,f,p=this;return la().w(function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,r=t.querySelectorAll(this.elementSelectors),o=sa(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,Ze.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).catch(function(e){Ze.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 va(e){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(e)}function ba(){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 ga(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(ga(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,ga(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ga(f,"constructor",c),ga(c,"constructor",s),s.displayName="GeneratorFunction",ga(c,o,"GeneratorFunction"),ga(f),ga(f,o,"Generator"),ga(f,r,function(){return this}),ga(f,"toString",function(){return"[object Generator]"}),(ba=function(){return{w:i,m:p}})()}function ga(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ga=function(e,t,n,r){function i(t,n){ga(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))},ga(e,t,n,r)}function _a(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 wa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){_a(i,r,o,a,u,"next",e)}function u(e){_a(i,r,o,a,u,"throw",e)}a(void 0)})}}function Sa(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);na)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;l0;){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 su(e,t))}),n.length>0&&this.requestIdleCallbackSafe(function(){return r.nodesRemoved.publish(new ru(e,n))})}},{key:"_processNodes",value:function(e,t){for(var n=[],r=0;rjt?Pt:e}},{key:"_setExpirationTime",value:function(e){return this._storageUtilsWrapper.setExpirationInCookie(this.sidKey,e)===xt?(Ze.warn("Failed set expiration time ".concat(e," in cookie.")),!1):this._storageUtilsWrapper.setExpirationInLocalStorage(this.sidKey,e)!==xt||(Ze.warn("Failed set expiration time ".concat(e," in local storage.")),this._storageUtilsWrapper.setExpirationInCookie(this.sidKey,this._utils.minutesToMilliseconds(Pt)),!1)}},{key:"get",value:function(){var e=this._storageUtilsWrapper.getCookie(this.sidKey),t=this._validateSid(e);if(!t){Ze.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 Ze.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)||Ze.error("Failed saving sid ".concat(e," to local storage.")),this._storageUtilsWrapper.setCookie(this.sidKey,t,this.COOKIE_EXPIRATION_IN_MILLISECONDS)||Ze.error("Failed saving sid ".concat(e," to cookie."))):Ze.error("Sid ".concat(e," is invalid. Will not save it."))}},{key:"_validateSid",value:function(e){return e||null}}])}();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;nr&&this._customerApi.getCustomerSessionID)Ze.error("Failed to get csid after all ".concat(r," retries."));else try{this._customerApi.getCustomerSessionID(function(o){if(!o)return Ze.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);Ze.debug("Got csid after ".concat(e," retries. csid: ").concat(o)),n._csidCache.set(o),t()})}catch(n){Ze.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)}}}])}(),ds={none:"none",init:"init",configuration:"config",configurationFromSlave:"configFromSlave",customerApi:"customerApi",pageTimeout:"timeout",unknown:"unknown"};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 ms(e,t){for(var n=0;n0&&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:ds.unknown;ds.hasOwnProperty(t)||(t=ds.customerApi),Ze.info("Received a Reset Session event, reason: ".concat(t)),this._utils.dateNow()-this.lastExternalResetCallTime>this._configurationRepository.get(w.resetSessionApiThreshold)?(this._startNewSession(null==e?void 0:e.csid),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm),this.lastExternalResetCallTime=this._utils.dateNow()):Ze.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;Ze.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){Ze.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(){Ze.info("Attempting to get sid from storage");var e=this._sidRepository.get();return e&&Ze.info("Read sid ".concat(e," from storage")),e}},{key:"_saveSidToStorage",value:function(e){Ze.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};this._workerComm.sendAsync(ge,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(_e,n),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm)}}},{key:"_handleCsid",value:function(){var e=this;this._domUtils.onDocumentBody(self,function(){Ze.debug("SessionService:_sessionIdRegeneration, onDocumentBody callback: cdSNum: ".concat(e.sessionId)),e._csidService.get(function(){Ze.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&&(Ze.info("Sending csid to worker. csid: ".concat(this._csidCache.get(),", sid:").concat(this.sessionId)),this._workerComm.sendAsync(Se,{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:ds.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!==ye.SECONDARY&&this._handleCsid(),Ze.info("A new session ".concat(e," has started"))}},{key:"_notifyNewSessionStarted",value:function(){this._messageBus.publish(Wr,this.sessionId)}},{key:"_setSessionStartupData",value:function(){this._workerComm.sendAsync(Me,{agentType:this._configurationRepository.get(w.agentType)}),this._agentIdService.updateAgentIdWithServer()}}])}();function gs(e){return gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(e)}function _s(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Sl(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,Sl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Sl(f,"constructor",c),Sl(c,"constructor",s),s.displayName="GeneratorFunction",Sl(c,o,"GeneratorFunction"),Sl(f),Sl(f,o,"Generator"),Sl(f,r,function(){return this}),Sl(f,"toString",function(){return"[object Generator]"}),(wl=function(){return{w:i,m:p}})()}function Sl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Sl=function(e,t,n,r){function i(t,n){Sl(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))},Sl(e,t,n,r)}function kl(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 El(e){return function(e){if(Array.isArray(e))return Ol(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 Ol(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)?Ol(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 Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:"open")&&(this._browserContextMutationObserver.monitorWindow(t),this._messageBus.publish(Zr,{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(w.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(ko,e))})}},{key:"_legacyUnionAddedNodesWithDocument",value:function(e){if(!e.addedNodes.length)return[];var t=e.addedNodes[0].ownerDocument.querySelectorAll("*");return Array.from(new Set([].concat(El(Array.from(e.addedNodes)),El(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=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?me: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 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){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 Fl(e){for(var t=1;t2&&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:Fl(Fl({msg:this.msgPrefix+e},n),{},{url:this.url,level:t,sn:this.sn++})})}},{key:"setLogLevel",value:function(e){this.logAggregator instanceof Nl&&this.logAggregator.setLogLevel(e)}},{key:"clearLogEntriesByLogLevel",value:function(e){this.logAggregator.filterOutByLogLevel(e)}}])}();function Hl(e){return Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(e)}function Vl(e,t){for(var n=0;n=e})}}])}(Sn);function Zl(e){return Zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zl(e)}function $l(e){return function(e){if(Array.isArray(e))return ef(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 ef(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)?ef(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 ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n200?(Ze.warn("The received brand name length is greater than 200. It is illegal. Ignoring the API call"),!1):!!/^[a-zA-Z0-9.\-,_ ]+$/.test(e)||(Ze.warn("The received brand contains illegal characters. The legal characters are: A-Za-z0-9.-,_ and space. Ignoring the API call"),!1)}}])}();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(e,t){for(var n=0;nthis._maxElemValLength&&(t.elementValues="");var s=xf(xf({},t),{eventType:i,eventSequence:u,timestamp:r,elementHash:a,isTrusted:n,hashedValue:"",relativeTime:o});this._dataQ.addToQueue("element_events",this._utils.convertToArrayByMap(Hf,s),!0)}}],[{key:"getDefaultSettings",value:function(){return Wf}},{key:"Builder",get:function(){var e=function(){return Bf(function e(t,n,r,o,i,a){Af(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}}])}(Bo),zf=Vf;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(){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 Jf(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Jf(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,Jf(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Jf(f,"constructor",c),Jf(c,"constructor",s),s.displayName="GeneratorFunction",Jf(c,o,"GeneratorFunction"),Jf(f),Jf(f,o,"Generator"),Jf(f,r,function(){return this}),Jf(f,"toString",function(){return"[object Generator]"}),(qf=function(){return{w:i,m:p}})()}function Jf(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jf=function(e,t,n,r){function i(t,n){Jf(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))},Jf(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 Xf(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 Zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $f(e,t){for(var n=0;n1&&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(cp,function(e){for(var t=1;ta._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){Ze.isDebug()&&Ze.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(w.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&&vp(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(){window.DeviceOrientationEvent&&(this._deviceOrientationEventEmitter.start(),this._messageBus.subscribe(yo,this._handleDeviceOrientationEvent))}},{key:"stopFeature",value:function(){window.DeviceOrientationEvent&&(this._deviceOrientationEventEmitter.stop(),this._messageBus.unsubscribe(yo,this._handleDeviceOrientationEvent))}},{key:"updateFeatureConfig",value:function(){var e=this._configurationRepository.get(w.orientationEventsSamplePeriod);this._samplePeriod=void 0!==e?e:this._samplePeriod}}],[{key:"getDefaultSettings",value:function(){return gp}}])}(Bo),wp=_p;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;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Jp(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,Jp(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Jp(f,"constructor",c),Jp(c,"constructor",s),s.displayName="GeneratorFunction",Jp(c,o,"GeneratorFunction"),Jp(f),Jp(f,o,"Generator"),Jp(f,r,function(){return this}),Jp(f,"toString",function(){return"[object Generator]"}),(qp=function(){return{w:i,m:p}})()}function Jp(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jp=function(e,t,n,r){function i(t,n){Jp(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))},Jp(e,t,n,r)}function Yp(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 Xp(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Yp(i,r,o,a,u,"next",e)}function u(e){Yp(i,r,o,a,u,"throw",e)}a(void 0)})}}function Zp(e,t){for(var n=0;n3&&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=ey(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(w.accelerometerEventsSamplePeriod)||0,o._samplePeriodGyro=o._configurationRepository.get(w.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&&ry(e,t)}(t,e),function(e,t,n){return t&&Zp(e.prototype,t),n&&Zp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_checkPermissions",value:(r=Xp(qp().m(function e(){var t,n,r,o,i;return qp().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,Ze.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:iy});case 2:n=e.v,this._hasAccelerometerPermission=n.state===oy,e.n=4;break;case 3:e.p=3,o=e.v,Ze.warn("Failed to check accelerometer permission:",o),this._hasAccelerometerPermission=!0;case 4:return e.p=4,e.n=5,this._navigator.permissions.query({name:ay});case 5:r=e.v,this._hasGyroscopePermission=r.state===oy,e.n=7;break;case 6:e.p=6,i=e.v,Ze.warn("Failed to check gyroscope permission:",i),this._hasGyroscopePermission=!0;case 7:this._hasAccelerometerPermission||this._hasGyroscopePermission||Ze.warn("Both accelerometer and gyroscope permissions are denied");case 8:return e.a(2)}},e,this,[[4,6],[1,3]])})),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]),Ze.isDebug()&&Ze.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]),Ze.isDebug()&&Ze.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=Xp(qp().m(function e(){return qp().w(function(e){for(;;)switch(e.n){case 0:if(this._window.DeviceMotionEvent){e.n=1;break}return Ze.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),Ze.debug("Device motion event listener added successfully")):Ze.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),Ze.debug("Device motion event listener removed"))}},{key:"updateFeatureConfig",value:function(){var e=this._configurationRepository.get(w.accelerometerEventsSamplePeriod),t=this._configurationRepository.get(w.gyroEventsSamplePeriod);void 0!==e&&(this._samplePeriod=e),void 0!==t&&(this._samplePeriodGyro=t),Ze.debug("Updated sample periods - Accelerometer: ".concat(this._samplePeriod,", Gyro: ").concat(this._samplePeriodGyro))}}],[{key:"getDefaultSettings",value:function(){return uy}}]);var n,r}(Bo);function cy(e){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cy(e)}function ly(e,t){for(var n=0;n0&&(this._prevEventDiff,this._prevEventDiff,2===this._prevEvGestureSet.length)){var r=by(this._evGesturesCache,this._prevEvGestureSet,my),o=r.getScale();this._addToCommunicationQueue(gy[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;t2&&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=Iy(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&&Uy(e,t)}(t,e),function(e,t,n){return t&&By(e.prototype,t),n&&By(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"onChangeNetworkInfo",value:function(){Ze.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(Wy,{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 Gy}}])}(Bo);function Hy(e){return Hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hy(e)}function Vy(e,t){for(var n=0;n0)for(var r=0;rthis._eventThreshold){var t=this._utils.StorageUtils.getAndUpdateEventSequenceNumber();this._lastTime=e,this._dataQueue.addToQueue("ambient_light_level",this._utils.convertToArrayByMap(Qd,{eventSequence:t,timestamp:e,illuminance:this._sensor.illuminance}))}}},{key:"startFeature",value:function(){window.AmbientLightSensor?(Ze.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()):Ze.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 Wd}},{key:"_onSensorError",value:function(e){Ze.debug("Error connecting LightSensor ".concat(e.error))}}])}(Bo);function Vd(e){return Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vd(e)}function zd(e,t){for(var n=0;n3&&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),Sh(o=bh(this,t),"_subscribeForLocationEvents",function(){o._unsubscribeFromLocationEvents(),o._watcherID=o._navigator.geolocation.watchPosition(o._onGeoLocationPositionEvent,o._onGeoLocationPositionError),o._clearLocationEventsTimeout(),o._locationEventsTimeoutID=setTimeout(function(){o._unsubscribeFromLocationEvents()})}),Sh(o,"_unsubscribeFromLocationEvents",function(){o._clearLocationEventsTimeout(),o._watcherID&&(o._navigator.geolocation.clearWatch(o._watcherID),o._watcherID=null)}),Sh(o,"_onGeoLocationPositionEvent",function(e){o._sendData(e)}),Sh(o,"_onGeoLocationPositionError",function(e){Ze.warn("Failed getting geolocation with code ".concat(e.code,". ").concat(e.message))}),o._configurationRepository=r,o._locationEventsTimeoutMsec=o._configurationRepository.get(w.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&&wh(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:function(){this._subscribeForLocationIfPermissionGranted()}},{key:"stopFeature",value:function(){this._unsubscribeFromLocationEvents()}},{key:"updateFeatureConfig",value:function(){try{this._configurationRepository.get(w.locationEventsTimeoutMsec)!==this._locationEventsTimeoutMsec&&(this._locationEventsTimeoutMsec=this._configurationRepository.get(w.locationEventsTimeoutMsec))}catch(e){Ze.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():Ze.info("location permission is denied. Location data will not be collected")}).catch(function(e){Ze.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(Oh,{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 Eh}}])}(Bo);function Ph(e){return Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ph(e)}function Ch(e,t){for(var n=0;n0){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 Vh(e){return Vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vh(e)}function zh(e,t){for(var n=0;n0&&!this._allowedTags.includes(n))return Yh;if("div"===n){if(!e.hasAttribute("style"))return Yh;var r=new Hh(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),y=function(){if(!s)return!0;var e=Number(s);return Number.isFinite(e)&&e<=-1e6}();if(c&&l&&f&&p&&y)return Xh}if("style"===n){var d=String(e.textContent||"").toLowerCase();if(d.includes("select:open")&&d.includes("@keyframes")&&d.includes("animation"))return Zh}return Yh}},{key:"isSuspiciousId",value:function(e){var t=null==e?void 0:e.id;if(!t||"string"!=typeof t)return!1;var n=this._suspiciousIdSubstrings;if(!n||0===n.length)return!1;for(var r=t.toLowerCase(),o=0;o=0&&u<=a._blinkThresholdMs&&a._sendEvent(lm,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&&am(e,t)}(t,e),function(e,t,n){return t&&nm(e.prototype,t),n&&nm(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(ym,{eventSequence:o,timestamp:i,eventType:e,indicatorType:t,blinkDurationMs:Math.round(n),id:r}))}catch(e){Ze.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(w.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 cm}}])}(Bo);function hm(e){return hm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hm(e)}function mm(e,t){for(var n=0;na._maxElemValLength&&(o=""),a._dataQueue.addToQueue("element_events",a._utils.convertToArrayByMap(Hf,{eventSequence:t,timestamp:n,eventType:i,isTrusted:-1,elementHash:e.hashCode,length:o.length,elementValues:o,selected:-1,hashedValue:"",relativeTime:r}))}),km(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&&Sm(e,t)}(t,e),function(e,t,n){return t&&mm(e.prototype,t),n&&mm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){gm(t,"startFeature",this,3)([]),this._msgBus.subscribe(Po.ElementEventsEvent,this._collectEventElement),this._msgBus.subscribe(Po.ElementsEvent,this._collectElement)}},{key:"stopFeature",value:function(){this._msgBus.unsubscribe(Po.ElementEventsEvent,this._collectEventElement),this._msgBus.unsubscribe(Po.ElementsEvent,this._collectElement),gm(t,"stopFeature",this,3)([])}}])}(Bo);function Tm(e){return Tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tm(e)}function Pm(e,t){for(var n=0;n1?"":o.key,u=i.getTimestampFromEvent(e);i._dataQueue.addToQueue("key_events",i._utils.convertToArrayByMap(bi,{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&&Am(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:"startFeature",value:function(){Mm(t,"startFeature",this,3)([]),this._msgBus.subscribe(Po.KeyEvent,this._onKeyEvent)}},{key:"stopFeature",value:function(){this._msgBus.unsubscribe(Po.KeyEvent,this._onKeyEvent),Mm(t,"stopFeature",this,3)([])}}])}(Bo);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 Im(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(av(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,av(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,av(f,"constructor",c),av(c,"constructor",s),s.displayName="GeneratorFunction",av(c,o,"GeneratorFunction"),av(f),av(f,o,"Generator"),av(f,r,function(){return this}),av(f,"toString",function(){return"[object Generator]"}),(iv=function(){return{w:i,m:p}})()}function av(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}av=function(e,t,n,r){function i(t,n){av(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))},av(e,t,n,r)}function uv(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 sv(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){uv(i,r,o,a,u,"next",e)}function u(e){uv(i,r,o,a,u,"throw",e)}a(void 0)})}}function cv(e,t){for(var n=0;n2&&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=fv(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&&dv(e,t)}(t,e),function(e,t,n){return t&&cv(e.prototype,t),n&&cv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(r=sv(iv().m(function e(){var t;return iv().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,Ze.error("Failed to start battery status collector: ".concat(t.message||t));case 4:return e.a(2)}},e,this,[[0,3]])})),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=sv(iv().m(function e(){var t;return iv().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(mv,{eventSequence:t,timestamp:n,chargeLevel:e.level,isCharging:e.charging,powerSource:0}))}}}],[{key:"getDefaultSettings",value:function(){return hv}}]);var n,r}(Bo);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=e._blockingThreshold&&e._onBlocking(t)})}),this._performanceObserver.observe({entryTypes:["longtask"]}),Ze.trace("MainThreadBlocking: Feature started using PerformanceObserver")):Ze.trace("MainThreadBlocking: PerformanceObserver not supported, feature disabled")}},{key:"stopFeature",value:function(){this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null),Ze.trace("MainThreadBlocking: Feature stopped")}},{key:"updateFeatureConfig",value:function(){var e=this._configurationRepository.get(w.mainThreadBlockingThreshold)||200;e!==this._blockingThreshold&&(this._blockingThreshold=e,Ze.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);Ze.debug("MainThreadBlocking: Blocking detected - ".concat(e.duration.toFixed(2),"ms, attribution: ").concat(r)),this._dataQueue.addToQueue("main_thread_blocking",this._utils.convertToArrayByMap(Pv,{eventType:Tv,eventSequence:t,timestamp:n,blockingDuration:e.duration,attribution:r}))}}],[{key:"getDefaultSettings",value:function(){return Ov}}])}(Bo);function jv(e){return jv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jv(e)}function Mv(){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 Rv(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Rv(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,Rv(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Rv(f,"constructor",c),Rv(c,"constructor",s),s.displayName="GeneratorFunction",Rv(c,o,"GeneratorFunction"),Rv(f),Rv(f,o,"Generator"),Rv(f,r,function(){return this}),Rv(f,"toString",function(){return"[object Generator]"}),(Mv=function(){return{w:i,m:p}})()}function Rv(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Rv=function(e,t,n,r){function i(t,n){Rv(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))},Rv(e,t,n,r)}function xv(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 Av(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){xv(i,r,o,a,u,"next",e)}function u(e){xv(i,r,o,a,u,"throw",e)}a(void 0)})}}function Dv(e,t){for(var n=0;n3&&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=Nv(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(w.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&&Fv(e,t)}(t,e),function(e,t,n){return t&&Dv(e.prototype,t),n&&Dv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._permissions?(this._permissionCheckInterval=t._clampInterval(this._configurationRepository.get(w.permissionCheckIntervalMs)),this._stopPoll(),this._schedulePoll()):Ze.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(Av(Mv().m(function n(){return Mv().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=Av(Mv().m(function e(){var t=this;return Mv().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&&(Ze.debug("PermissionChangeCollector: ".concat(r," ").concat(a," → ").concat(i)),t._knownStates[r]=i,t._sendData(r,i))}else{var u;Ze.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(Gv,{eventSequence:n,timestamp:r,permissionName:e,state:t}))}}],[{key:"getDefaultSettings",value:function(){return Uv}},{key:"_clampInterval",value:function(e){return!Number.isFinite(e)||e<=0?2e3:Math.min(Math.max(e,2e3),5e3)}}]);var n}(Bo);function Qv(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 Hv(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)?Hv(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 Hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Jv(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,Jv(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Jv(f,"constructor",c),Jv(c,"constructor",s),s.displayName="GeneratorFunction",Jv(c,o,"GeneratorFunction"),Jv(f),Jv(f,o,"Generator"),Jv(f,r,function(){return this}),Jv(f,"toString",function(){return"[object Generator]"}),(qv=function(){return{w:i,m:p}})()}function Jv(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jv=function(e,t,n,r){function i(t,n){Jv(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))},Jv(e,t,n,r)}function Yv(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 Xv(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Yv(i,r,o,a,u,"next",e)}function u(e){Yv(i,r,o,a,u,"throw",e)}a(void 0)})}}function Zv(e,t){for(var n=0;n1&&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"!==Kv(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 Ze.warn("CursorDetectionService: JSON clone failed, using shallow copy: ".concat(t.message||t),t),function(e){for(var t=1;tr;){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=Xv(qv().m(function e(t){var n,r,o,i,a,u,s,c,l,f,p;return qv().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=Xv(qv().m(function e(t){var n,r,o,i,a;return qv().w(function(e){for(;;)switch(e.p=e.n){case 0:n=null,r=Qv(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.height)<=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="";r0&&(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=Xv(qv().m(function e(t){var n,r,o,i,a,u,s,c,l;return qv().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}if(s=u.trimStart(),/^(<\?xml|=0)t=this._browserEnv.atob(t.substring(r+7));else{var o=t.indexOf(",");if(o<0)return null;t=decodeURIComponent(t.slice(o+1))}}var i=(new this._browserEnv.DOMParser).parseFromString(t,"image/svg+xml").documentElement;if("svg"!==i.nodeName)return null;var a=null==i?void 0:i.getAttribute("width"),u=null==i?void 0:i.getAttribute("height");return{width:a?Number.parseFloat(a):null,height:u?Number.parseFloat(u):null}}catch(e){return Ze.warn("CursorDetectionService: failed to parse SVG dimensions: ".concat((null==e?void 0:e.message)||e),e),null}}},{key:"_measureImageCursor",value:(e=Xv(qv().m(function e(t,n){var r,o,i,a,u,s,c=this;return qv().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){Ze.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 — 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 rb(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 ob(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)?ob(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 ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(ub(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,ub(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ub(f,"constructor",c),ub(c,"constructor",s),s.displayName="GeneratorFunction",ub(c,o,"GeneratorFunction"),ub(f),ub(f,o,"Generator"),ub(f,r,function(){return this}),ub(f,"toString",function(){return"[object Generator]"}),(ab=function(){return{w:i,m:p}})()}function ub(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ub=function(e,t,n,r){function i(t,n){ub(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))},ub(e,t,n,r)}function sb(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 cb(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){sb(i,r,o,a,u,"next",e)}function u(e){sb(i,r,o,a,u,"throw",e)}a(void 0)})}}function lb(e,t){for(var n=0;n8&&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=pb(this,t))._dataQueue=e,c._utils=n,c._elementsUtils=r,c._domUtils=o,c._configuration=i,c._storageUtils=n.StorageUtils,c._observedElementComputedCursorMap=cn(),c._onEventBinded=c._onEventBinded.bind(c),c._mutationObservers=cn(),c._rootListeners=cn(),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&&vb(e,t)}(t,e),function(e,t,n){return t&&lb(e.prototype,t),n&&lb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(o=cb(ab().m(function e(n){return ab().w(function(e){for(;;)switch(e.n){case 0:try{db(t,"startFeature",this,3)([]),this._bind(n)}catch(e){Ze.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=cb(ab().m(function e(n){return ab().w(function(e){for(;;)switch(e.n){case 0:try{db(t,"stopFeature",this,3)([]),this._unbind(n)}catch(e){Ze.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=cb(ab().m(function e(t,n,r){var o,i,a,u,s,c,l,f,p,y,d,h,m,v,b,g,_,w,S,k,E,O,T;return ab().w(function(e){for(;;)switch(e.p=e.n){case 0:return o={cursorSize:{width:null,height:null},cursorSizeSource:tb.system,cursorType:eb.system,computedCursor:"",cursorStyle:"",hotpointPosition:{x:null,y:null}},e.p=1,y=this._storageUtils.getAndUpdateEventSequenceNumber(),d=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,Ze.error("Failed resolving cursor details: ".concat(O.message||O),O);case 5:v=-1;try{v=this._elementsUtils.getElement(t)}catch(e){Ze.error("Failed resolving element hash: ".concat(e.message||e),e)}b=this._maskingService.shouldMaskCoordinates(),g={eventSequence:y,timestamp:d,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.cursorSizeSource,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?Qo:null==r?void 0:r.X,Y:b?Qo: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(Eb,g)),e.n=7;break;case 6:e.p=6,T=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"===ib(n)?JSON.stringify(n):String(n),Ze.error("Failed to send cursor data (".concat(E,", ").concat(_,"): ").concat(T.message||T),T);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=rb(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,gb,{}).catch(function(e){Ze.error("Failed to send cursor onload data: ".concat(e.message||e))}),this._sendData(a,gb,{}).catch(function(e){Ze.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){Ze.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=cn()}},{key:"_unbindRoot",value:function(e){try{this._rootListeners.delete(e);var t,n=rb(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){Ze.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,Sb)}}}catch(e){Ze.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,_b),!0}catch(e){Ze.error("CursorCollector._onPointerDownEvent failed. msg: ".concat(e.message),e)}}},{key:"_onTouchStartEvent",value:function(e){try{return this._handlePointerLikeStartEvent(e,wb),!0}catch(e){Ze.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._hitboxDetectionService.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){Ze.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?kb.touch:kb[e.pointerType]}}],[{key:"getDefaultSettings",value:function(){return bb}},{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=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 Yg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function z_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var m=new o_(h).buildQueueMessage();this._dataQ.addToQueue("static_fields",m,!1)}var v=new p_(Le.getUserAgent()).buildQueueMessage();this._dataQ.addToQueue("static_fields",v,!1);var b=-1*(new Date).getTimezoneOffset(),g=new __(b).buildQueueMessage();this._dataQ.addToQueue("static_fields",g,!1);var _=t.checkCookie(),w=new C_(_).buildQueueMessage();this._dataQ.addToQueue("static_fields",w,!1);var S=navigator.deviceMemory||0,k=new N_(S).buildQueueMessage();this._dataQ.addToQueue("static_fields",k,!1);var E=navigator.buildID;if(E){var O=new sw(E).buildQueueMessage();this._dataQ.addToQueue("static_fields",O,!1)}var T=navigator.maxTouchPoints,P=new mw(T).buildQueueMessage();if(this._dataQ.addToQueue("static_fields",P,!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 xw(C).buildQueueMessage();this._dataQ.addToQueue("static_fields",j,!1)}if(this._configurations.isMathDetectEnabled()){var M=t.getMathFingerprint(),R=new Ew(M).buildQueueMessage();this._dataQ.addToQueue("static_fields",R,!1)}Ze.info("Browser Props collected")}}],[{key:"getDefaultSettings",value:function(){return Uw}},{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"];e0)for(var n=0,r=window.navigator.plugins.length;n0)for(var o=0;o-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 pS(e.renderer,e.vendor,e.version,e.supportedExtensions).buildQueueMessage();this._dataQ.addToQueue("static_fields",a,!1),Ze.info("Graphic Card props collected")}}],[{key:"getDefaultSettings",value:function(){return _S}}])}(Bo);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){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 ES(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)?ES(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 ES(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&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=BS(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&&LS(e,t)}(t,e),function(e,t,n){return t&&AS(e.prototype,t),n&&AS(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 RS(n).buildQueueMessage();e._dataQ.addToQueue("static_fields",r,!1)}).catch(function(e){Ze.error("MediaDevicesFeature:startFeature failed to enumerateDevices: ".concat(e.message))})}}],[{key:"getDefaultSettings",value:function(){return FS}}])}(Bo);function GS(e){return GS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GS(e)}function WS(e,t){for(var n=0;n1&&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=dk(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&&vk(e,t)}(t,e),function(e,t,n){return t&&pk(e.prototype,t),n&&pk(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 qS(t,r).buildQueueMessage();e._dataQ.addToQueue("static_fields",o,!1)}).catch(function(e){Ze.debug("Failed querying permission '".concat(t,"': ").concat(e.message))})},n=0;n, received: "+Ck(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"===Ck(e[1])&&null!==e[1]&&!Array.isArray(e[1])&&Object.values(e[1]).every(function(e){return"boolean"==typeof e||null===e})||Ze.warn("IsIncognito - Contract verification failed")}},{key:"getName",value:function(){return"is_incognito"}}])}(jb);function Nk(e){return Nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nk(e)}function Ik(){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 Lk(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Lk(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,Lk(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Lk(f,"constructor",c),Lk(c,"constructor",s),s.displayName="GeneratorFunction",Lk(c,o,"GeneratorFunction"),Lk(f),Lk(f,o,"Generator"),Lk(f,r,function(){return this}),Lk(f,"toString",function(){return"[object Generator]"}),(Ik=function(){return{w:i,m:p}})()}function Lk(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Lk=function(e,t,n,r){function i(t,n){Lk(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))},Lk(e,t,n,r)}function Fk(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 Uk(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Fk(i,r,o,a,u,"next",e)}function u(e){Fk(i,r,o,a,u,"throw",e)}a(void 0)})}}function Gk(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(pE(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,pE(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,pE(f,"constructor",c),pE(c,"constructor",s),s.displayName="GeneratorFunction",pE(c,o,"GeneratorFunction"),pE(f),pE(f,o,"Generator"),pE(f,r,function(){return this}),pE(f,"toString",function(){return"[object Generator]"}),(fE=function(){return{w:i,m:p}})()}function pE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}pE=function(e,t,n,r){function i(t,n){pE(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))},pE(e,t,n,r)}function yE(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 dE(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){yE(i,r,o,a,u,"next",e)}function u(e){yE(i,r,o,a,u,"throw",e)}a(void 0)})}}function hE(e,t){for(var n=0;nthis._fontCacheExpiration,!o||a){e.n=3;break}return Ze.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 y=this._utils.getHash(JSON.stringify(s)),Ze.debug("".concat(this._logsTag," Detected fonts: ").concat(JSON.stringify(s)," | Hash: ").concat(y," | Count: ").concat(p)),e.n=6,this._fontCache.saveFonts({installedFonts:s,scannedAt:c},this._fontVersion);case 6:return Ze.debug("".concat(this._logsTag," Font cache updated with new fonts.")),Ze.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,d=e.v,Ze.error("".concat(this._logsTag," Error during font collection:"),d),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=dE(fE().m(function e(){var t,n,r,o,i,a,u,s,c,l,f,p,y,d,h;return fE().w(function(e){for(;;)switch(e.n){case 0:Ze.info("".concat(this._logsTag," Starting font scanning process.")),t=Date.now(),n=this._fontsProvider.getFontsByVersion(this._fontVersion),r=this._fontConfig.getIgnoredFonts(),o=this._fontConfig.getConfigByVersion(this._fontVersion),i=[],a=0,u=Object.entries(n);case 1:if(!(a3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(_E(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,_E(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,_E(f,"constructor",c),_E(c,"constructor",s),s.displayName="GeneratorFunction",_E(c,o,"GeneratorFunction"),_E(f),_E(f,o,"Generator"),_E(f,r,function(){return this}),_E(f,"toString",function(){return"[object Generator]"}),(gE=function(){return{w:i,m:p}})()}function _E(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_E=function(e,t,n,r){function i(t,n){_E(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))},_E(e,t,n,r)}function wE(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 SE(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){wE(i,r,o,a,u,"next",e)}function u(e){wE(i,r,o,a,u,"throw",e)}a(void 0)})}}function kE(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 EE(e,t){for(var n=0;n1||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=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}}])}(GE),oO="fontDetectionResponse";function iO(e){return iO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iO(e)}function aO(){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 uO(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(uO(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,uO(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,uO(f,"constructor",c),uO(c,"constructor",s),s.displayName="GeneratorFunction",uO(c,o,"GeneratorFunction"),uO(f),uO(f,o,"Generator"),uO(f,r,function(){return this}),uO(f,"toString",function(){return"[object Generator]"}),(aO=function(){return{w:i,m:p}})()}function uO(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}uO=function(e,t,n,r){function i(t,n){uO(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))},uO(e,t,n,r)}function sO(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){sO(i,r,o,a,u,"next",e)}function u(e){sO(i,r,o,a,u,"throw",e)}a(void 0)})}}function lO(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(hO(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,hO(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,hO(f,"constructor",c),hO(c,"constructor",s),s.displayName="GeneratorFunction",hO(c,o,"GeneratorFunction"),hO(f),hO(f,o,"Generator"),hO(f,r,function(){return this}),hO(f,"toString",function(){return"[object Generator]"}),(dO=function(){return{w:i,m:p}})()}function hO(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}hO=function(e,t,n,r){function i(t,n){hO(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))},hO(e,t,n,r)}function mO(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 vO(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)?vO(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 vO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(jT(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,jT(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,jT(f,"constructor",c),jT(c,"constructor",s),s.displayName="GeneratorFunction",jT(c,o,"GeneratorFunction"),jT(f),jT(f,o,"Generator"),jT(f,r,function(){return this}),jT(f,"toString",function(){return"[object Generator]"}),(CT=function(){return{w:i,m:p}})()}function jT(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}jT=function(e,t,n,r){function i(t,n){jT(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))},jT(e,t,n,r)}function MT(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=xT(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 RT(e){return function(e){if(Array.isArray(e))return AT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xT(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 xT(e,t){if(e){if("string"==typeof e)return AT(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)?AT(e,t):void 0}}function AT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&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=GT(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||IT({},VT),r._featureSettings=o.featureSettings||IT({},zT),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&&HT(e,t)}(t,e),function(e,t,n){return t&&FT(e.prototype,t),n&&FT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){Ze.info("Starting Advanced Audio Detection Feature 2");try{this._collectAudioFingerprintInfo()}catch(e){Ze.error("Failed to collect audio information: ".concat(e))}}},{key:"_collectAudioFingerprintInfo",value:function(){var e=this;Ze.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),Ze.info("Advanced audio properties collected successfully (method 2) "+t)}).catch(function(e){Ze.error("Error collecting audio information: ".concat(e))})}},{key:"_getAdvancedAudioFingerprint",value:(u=BT(CT().m(function e(){var t,n,r,o,i,a,u,s,c,l,f,p,y=this;return CT().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(RT(this._audioConfig.signals.map(function(e){return y._getAdvancedSignal(e)}))));case 2:n=e.v,r=[],o=MT(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,Ze.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=BT(CT().m(function e(){var t,n,r,o,i,a,u,s;return CT().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,supportedSampleRates:[],supportedChannelCounts:[],browser:this._browserInfo},r=0,o=[8e3,11025,16e3,22050,24e3,32e3,44100,48e3,88200,96e3];re[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;i0&&(t.centroid=r/o),o>0){for(var u=0,s=0;s=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;a0});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,RT(n));if(r>0){t.crestFactor=o/r;var i=Math.min.apply(Math,RT(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,RT(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,RT(n)),o=0,i=0;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;r3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(YT(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,YT(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,YT(f,"constructor",c),YT(c,"constructor",s),s.displayName="GeneratorFunction",YT(c,o,"GeneratorFunction"),YT(f),YT(f,o,"Generator"),YT(f,r,function(){return this}),YT(f,"toString",function(){return"[object Generator]"}),(JT=function(){return{w:i,m:p}})()}function YT(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}YT=function(e,t,n,r){function i(t,n){YT(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))},YT(e,t,n,r)}function XT(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 ZT(e,t){for(var n=0;n1&&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=cP(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&&pP(e,t)}(t,e),function(e,t,n){return t&&uP(e.prototype,t),n&&uP(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))};Ze.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)}catch(e){Ze.error("NavigatorFeature: Error collecting navigator data",e)}}}],[{key:"getDefaultSettings",value:function(){return yP}}])}(Bo);function hP(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 mP(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)?mP(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 mP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(PP(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,PP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,PP(f,"constructor",c),PP(c,"constructor",s),s.displayName="GeneratorFunction",PP(c,o,"GeneratorFunction"),PP(f),PP(f,o,"Generator"),PP(f,r,function(){return this}),PP(f,"toString",function(){return"[object Generator]"}),(TP=function(){return{w:i,m:p}})()}function PP(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}PP=function(e,t,n,r){function i(t,n){PP(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))},PP(e,t,n,r)}function CP(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 jP(e,t){for(var n=0;n1&&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=RP(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&&DP(e,t)}(t,e),function(e,t,n){return t&&jP(e.prototype,t),n&&jP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=TP().m(function e(){var t,n,r,o,i;return TP().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=Le.getUserAgentData(this._navigator)){e.n=1;break}return Ze.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,Ze.error("ClientHintsCollector: Error collecting client hints data",i);case 5:Ze.debug("ClientHintsCollector: Sending client hints data: "+JSON.stringify(n)),o=new EP(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){CP(i,r,o,a,u,"next",e)}function u(e){CP(i,r,o,a,u,"throw",e)}a(void 0)})},function(){return r.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return BP}}]);var n,r}(Bo),IP={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[id^="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://blackfridaysales.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 LP(e){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LP(e)}function FP(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=WP(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 UP(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)||WP(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 GP(e){return function(e){if(Array.isArray(e))return QP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||WP(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 WP(e,t){if(e){if("string"==typeof e)return QP(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)?QP(e,t):void 0}}function QP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(VP(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,VP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,VP(f,"constructor",c),VP(c,"constructor",s),s.displayName="GeneratorFunction",VP(c,o,"GeneratorFunction"),VP(f),VP(f,o,"Generator"),VP(f,r,function(){return this}),VP(f,"toString",function(){return"[object Generator]"}),(HP=function(){return{w:i,m:p}})()}function VP(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}VP=function(e,t,n,r){function i(t,n){VP(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))},VP(e,t,n,r)}function zP(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 KP(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){zP(i,r,o,a,u,"next",e)}function u(e){zP(i,r,o,a,u,"throw",e)}a(void 0)})}}function qP(e,t){for(var n=0;n1&&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=YP(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&&$P(e,t)}(t,e),function(e,t,n){return t&&qP(e.prototype,t),n&&qP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(o=KP(HP().m(function e(){var t,n;return HP().w(function(e){for(;;)switch(e.p=e.n){case 0:return Ze.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,Ze.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=KP(HP().m(function e(){var t,n,r,o,i,a,u,s,c,l,f,p,y,d,h;return HP().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=(t=[]).concat.apply(t,GP(Object.values(IP))),e.n=1,this.getBlockedSelectors(n);case 1:for(r=e.v,o=[],i=0,a=Object.entries(IP);i=2&&(o.push(s),Ze.trace('Filter "'.concat(s,'" is considered active.')))}return d=o.sort(),Ze.debug("Active ad blocker lists: "+d),e.a(2,d);case 2:return e.p=2,h=e.v,Ze.error("Error in detectActiveAdblockLists:",h),e.a(2,[])}},e,this,[[0,2]])})),function(){return r.apply(this,arguments)})},{key:"getBlockedSelectors",value:(n=KP(HP().m(function e(t){var n,r,o,i,a,u,s,c,l,f,p;return HP().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;s1&&void 0!==arguments[1]?arguments[1]:document,n=UP(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;case"[":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 eC}}]);var n,r,o}(Bo);function nC(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 rC(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,y=0;p+=(y+=i*c)>>>16,y&=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|y}function oC(e,t){var n=e[0];32===(t%=64)?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function iC(e,t){0!==(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];aC(e,t),rC(e,uC),t[1]=e[0]>>>1,aC(e,t),rC(e,sC),t[1]=e[0]>>>1,aC(e,t)}var lC=[2277735313,289559509],fC=[1291169091,658871167],pC=[0,5],yC=[0,1390208809],dC=[0,944331445];function hC(e,t){var n=function(e){for(var t=new Uint8Array(e.length),n=0;n127)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>>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 mC(e){return mC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mC(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 bC(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(bC(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,bC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,bC(f,"constructor",c),bC(c,"constructor",s),s.displayName="GeneratorFunction",bC(c,o,"GeneratorFunction"),bC(f),bC(f,o,"Generator"),bC(f,r,function(){return this}),bC(f,"toString",function(){return"[object Generator]"}),(vC=function(){return{w:i,m:p}})()}function bC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}bC=function(e,t,n,r){function i(t,n){bC(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))},bC(e,t,n,r)}function gC(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 _C(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){gC(i,r,o,a,u,"next",e)}function u(e){gC(i,r,o,a,u,"throw",e)}a(void 0)})}}function wC(e,t){for(var n=0;n0?this.computeImageHash():null}},{key:"jsonHash",get:function(){return this._hashCache.json}},{key:"imageHash",get:function(){return this._hashCache.image}},{key:"getContextData",value:(e=_C(vC().m(function e(t){var n=this;return vC().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");s&&(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){Ze.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)||Ze.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)||Ze.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,y=[];y.push(f[0],f[1],1,.7,0,1);for(var d=0;d3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(TC(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,TC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,TC(f,"constructor",c),TC(c,"constructor",s),s.displayName="GeneratorFunction",TC(c,o,"GeneratorFunction"),TC(f),TC(f,o,"Generator"),TC(f,r,function(){return this}),TC(f,"toString",function(){return"[object Generator]"}),(OC=function(){return{w:i,m:p}})()}function TC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}TC=function(e,t,n,r){function i(t,n){TC(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))},TC(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 CC(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(GC(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,GC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,GC(f,"constructor",c),GC(c,"constructor",s),s.displayName="GeneratorFunction",GC(c,o,"GeneratorFunction"),GC(f),GC(f,o,"Generator"),GC(f,r,function(){return this}),GC(f,"toString",function(){return"[object Generator]"}),(UC=function(){return{w:i,m:p}})()}function GC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}GC=function(e,t,n,r){function i(t,n){GC(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))},GC(e,t,n,r)}function WC(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 QC(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){WC(i,r,o,a,u,"next",e)}function u(e){WC(i,r,o,a,u,"throw",e)}a(void 0)})}}function HC(){return HC=QC(UC().m(function e(){var t,n,r,o,i,a,u,s,c,l,f=arguments;return UC().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,VC(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,VC(i,"low-power");case 6:(a=e.v)&&(n.lowPowerAdapter=a);case 7:return u=hC(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=hC(c)),e.a(2,{dataHash:u,identifierHash:s});case 8:return e.p=8,l=e.v,Ze.debug("Error collecting WebGPU adapter data:",l),e.a(2,{dataHash:null,identifierHash:null})}},e,null,[[1,8]])})),HC.apply(this,arguments)}function VC(e,t){return zC.apply(this,arguments)}function zC(){return(zC=QC(UC().m(function e(t,n){var r,o,i;return UC().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=LC(LC({powerPreference:n||null},KC(t)),{},{limits:qC(t.limits),features:YC(t.features)}),e.n=2,XC(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,Ze.debug("Error collecting adapter data:",i),e.a(2,null)}},e,null,[[1,3]])}))).apply(this,arguments)}function KC(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 qC(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 JC(e,t){return e===t?0:e3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(ej(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,ej(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ej(f,"constructor",c),ej(c,"constructor",s),s.displayName="GeneratorFunction",ej(c,o,"GeneratorFunction"),ej(f),ej(f,o,"Generator"),ej(f,r,function(){return this}),ej(f,"toString",function(){return"[object Generator]"}),($C=function(){return{w:i,m:p}})()}function ej(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ej=function(e,t,n,r){function i(t,n){ej(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))},ej(e,t,n,r)}function tj(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 nj(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)?nj(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 nj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==d[0]?d[0]:navigator)&&t.gpu){e.n=1;break}return Ze.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 Ze.debug("WebGPU geometry hash: Failed to request adapter"),e.a(2,null);case 4:return e.n=5,uj(r);case 5:if(n=e.v){e.n=6;break}return Ze.debug("WebGPU geometry hash: Failed to create device"),e.a(2,null);case 6:return n.lost.then(function(e){Ze.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 Ze.debug("WebGPU device already lost"),e.a(2,null);case 8:o=t.gpu.getPreferredCanvasFormat(),i=hj(n,r,t),a=[],u=0,s=[{shader:ij,name:"main"},{shader:"\n @fragment\n fn fs_main(@location(0) color: vec4) -> @location(0) vec4 {\n return color;\n }\n",name:"solid"},{shader:"\n @fragment\n fn fs_main(@location(0) color: vec4, @builtin(position) pos: vec4) -> @location(0) vec4 {\n let uv = (pos.xy / vec2(512.0, 256.0));\n let grad = uv.x * uv.y;\n return color * vec4(grad, 1.0 - grad, grad * 0.5, 1.0);\n }\n",name:"gradient"},{shader:"\n @fragment\n fn fs_main(@location(0) color: vec4, @builtin(position) pos: vec4) -> @location(0) vec4 {\n let uv = (pos.xy / vec2(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(pattern, 1.0 - pattern, pattern * 0.5, 1.0);\n }\n",name:"pattern"}];case 9:if(!(u2&&void 0!==arguments[2]?arguments[2]:ij;return e.createRenderPipeline({layout:"auto",vertex:{module:e.createShaderModule({code:"\n struct VertexOutput {\n @builtin(position) position: vec4,\n @location(0) color: vec4,\n }\n\n @vertex\n fn vs_main(@location(0) position: vec2, @location(1) color: vec4) -> VertexOutput {\n var output: VertexOutput;\n output.position = vec4(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}]},primitive:{topology:"triangle-list"}})}function pj(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;r2&&void 0!==arguments[2]?arguments[2]:navigator,r=[],o=0,i=["rgba8unorm","bgra8unorm","rgba16float","rgba32float","r8unorm","rg8unorm","rgba8unorm-srgb","bgra8unorm-srgb"];o3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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){for(var n=0;n1&&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=Oj(this,t))._dataQ=e,n._navigator=r.navigator||navigator,n._getAdapterDataHash=r.getAdapterDataHash||function(e){return function(){return HC.apply(this,arguments)}(e)},n._getGeometryHash=r.getGeometryHash||function(e){return function(){return aj.apply(this,arguments)}(e)},n._logger=r.logger||Ze,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&&Cj(e,t)}(t,e),function(e,t,n){return t&&kj(e.prototype,t),n&&kj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:function(){this._runFingerprinting()}},{key:"_runFingerprinting",value:(n=_j().m(function e(){var t,n,r,o,i,a;return _j().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]])}),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 jj}}]);var n,r}(Bo);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 xj(){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 Aj(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Aj(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,Aj(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Aj(f,"constructor",c),Aj(c,"constructor",s),s.displayName="GeneratorFunction",Aj(c,o,"GeneratorFunction"),Aj(f),Aj(f,o,"Generator"),Aj(f,r,function(){return this}),Aj(f,"toString",function(){return"[object Generator]"}),(xj=function(){return{w:i,m:p}})()}function Aj(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Aj=function(e,t,n,r){function i(t,n){Aj(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))},Aj(e,t,n,r)}function Dj(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 Bj(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Dj(i,r,o,a,u,"next",e)}function u(e){Dj(i,r,o,a,u,"throw",e)}a(void 0)})}}function Nj(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(nM(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,nM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,nM(f,"constructor",c),nM(c,"constructor",s),s.displayName="GeneratorFunction",nM(c,o,"GeneratorFunction"),nM(f),nM(f,o,"Generator"),nM(f,r,function(){return this}),nM(f,"toString",function(){return"[object Generator]"}),(tM=function(){return{w:i,m:p}})()}function nM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nM=function(e,t,n,r){function i(t,n){nM(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))},nM(e,t,n,r)}function rM(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){rM(i,r,o,a,u,"next",e)}function u(e){rM(i,r,o,a,u,"throw",e)}a(void 0)})}}function iM(e,t){for(var n=0;n0)},e,this)})),function(){return _.apply(this,arguments)})},{key:"_detect1Password",value:(g=oM(tM().m(function e(){var t;return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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:(d=oM(tM().m(function e(){return tM().w(function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.solana&&this._window.solana.isPhantom)},e,this)})),function(){return d.apply(this,arguments)})},{key:"_detectBinanceWallet",value:(y=oM(tM().m(function e(){return tM().w(function(e){for(;;)if(0===e.n)return e.a(2,!!this._window.BinanceChain&&!0===this._window.BinanceChain.isBinanceChain)},e,this)})),function(){return y.apply(this,arguments)})},{key:"_detectBraveWallet",value:(p=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){var t;return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){var t,n=this;return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(){return tM().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=oM(tM().m(function e(t){var n,r,o,i,a;return tM().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))/33?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]"}),(pM=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 dM(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 hM(e,t){for(var n=0;n4&&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=vM(this,t))._configurationRepository=e,i._domUtils=r,i._utils=n,i._dataQueue=o,i._regularExtensionsScanner=a||new lM(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&&_M(e,t)}(t,e),function(e,t,n){return t&&hM(e.prototype,t),n&&hM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=pM().m(function e(){var t,n;return pM().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?(Ze.info("[BrowserExtensionsDomCollector] Detected browser extensions: ".concat(t.join(", "))),this._sendData(t)):(Ze.info("[BrowserExtensionsDomCollector] No browser extensions detected"),this._sendData([])),e.n=3;break;case 2:e.p=2,n=e.v,Ze.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){dM(i,r,o,a,u,"next",e)}function u(e){dM(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 wM}}]);var n,r}(Bo),kM="last-modified";var EM=["MShsNjIrMCExHSYnIC8nHSclIzJtKyopKi4tLiYgLCwuKywsLCEnLS8yKSctLSgsLC8gKiVtbXgsLSsxLCc2OidvJy8tMCoh","Li82KmwwJzUnKzRtKCMpLyYsKyQnLiEuJSEyKCMhMiArLCwsLyAsJisjJCdtbXgsLSsxLCc2OidvJy8tMCoh"];function OM(){return EM.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)})}function TM(e){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TM(e)}function PM(){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 CM(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(CM(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,CM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,CM(f,"constructor",c),CM(c,"constructor",s),s.displayName="GeneratorFunction",CM(c,o,"GeneratorFunction"),CM(f),CM(f,o,"Generator"),CM(f,r,function(){return this}),CM(f,"toString",function(){return"[object Generator]"}),(PM=function(){return{w:i,m:p}})()}function CM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}CM=function(e,t,n,r){function i(t,n){CM(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))},CM(e,t,n,r)}function jM(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 MM(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){jM(i,r,o,a,u,"next",e)}function u(e){jM(i,r,o,a,u,"throw",e)}a(void 0)})}}function RM(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function NM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n, received: ".concat(e,"}"))}},{key:"_eachExtensionIsValid",value:function(e){var t,n=BM(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("object"!==DM(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])||Ze.warn("BrowserExtensionsUrl - Contract verification failed")}},{key:"getName",value:function(){return"browser_extensions_url"}}])}(jb);function HM(e){return HM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HM(e)}function VM(){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 zM(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(zM(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,zM(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,zM(f,"constructor",c),zM(c,"constructor",s),s.displayName="GeneratorFunction",zM(c,o,"GeneratorFunction"),zM(f),zM(f,o,"Generator"),zM(f,r,function(){return this}),zM(f,"toString",function(){return"[object Generator]"}),(VM=function(){return{w:i,m:p}})()}function zM(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zM=function(e,t,n,r){function i(t,n){zM(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))},zM(e,t,n,r)}function KM(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 qM(e,t){for(var n=0;n4&&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=YM(this,t))._configurationRepository=e,i._domUtils=r,i._utils=n,i._devDebugDataQueue=o,i._urlExtensionsScanner=a||new AM(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&&$M(e,t)}(t,e),function(e,t,n){return t&&qM(e.prototype,t),n&&qM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(n=VM().m(function e(){var t,n;return VM().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,Ze.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,Ze.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){KM(i,r,o,a,u,"next",e)}function u(e){KM(i,r,o,a,u,"throw",e)}a(void 0)})},function(){return r.apply(this,arguments)})},{key:"_sendData",value:function(e){var t=new QM(e).buildQueueMessage();this._devDebugDataQueue.addToQueue("static_fields",t,!1)}}],[{key:"getDefaultSettings",value:function(){return eR}}]);var n,r}(Bo);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 rR(){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 oR(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(oR(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,oR(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,oR(f,"constructor",c),oR(c,"constructor",s),s.displayName="GeneratorFunction",oR(c,o,"GeneratorFunction"),oR(f),oR(f,o,"Generator"),oR(f,r,function(){return this}),oR(f,"toString",function(){return"[object Generator]"}),(rR=function(){return{w:i,m:p}})()}function oR(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}oR=function(e,t,n,r){function i(t,n){oR(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))},oR(e,t,n,r)}function iR(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 aR(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)?aR(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 aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(DR(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,DR(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,DR(f,"constructor",c),DR(c,"constructor",s),s.displayName="GeneratorFunction",DR(c,o,"GeneratorFunction"),DR(f),DR(f,o,"Generator"),DR(f,r,function(){return this}),DR(f,"toString",function(){return"[object Generator]"}),(AR=function(){return{w:i,m:p}})()}function DR(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}DR=function(e,t,n,r){function i(t,n){DR(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))},DR(e,t,n,r)}function BR(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){BR(i,r,o,a,u,"next",e)}function u(e){BR(i,r,o,a,u,"throw",e)}a(void 0)})}}function IR(e,t){for(var n=0;n=0&&e.quota>=0}},{key:"_getStorageEstimateInfo",value:(o=NR(AR().m(function e(){var t,n;return AR().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,this._storageManager){e.n=1;break}throw Ze.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,Ze.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=NR(AR().m(function e(){var t,n,r,o;return AR().w(function(e){for(;;)switch(e.p=e.n){case 0:return Ze.info("Collecting storage directory properties"),e.p=1,e.n=2,this._getStorageDirectoryInfo();case 2:t=e.v,this._isValidDirectoryName(t)?(n=new RR(t),r=n.buildQueueMessage(),this._dataQ.addToQueue("static_fields",r,!1)):Ze.warn("Invalid storage directory data received"),e.n=4;break;case 3:throw e.p=3,o=e.v,Ze.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=NR(AR().m(function e(){var t,n;return AR().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,this._storageManager){e.n=1;break}throw Ze.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,Ze.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 QR}}]);var n,r,o,i,a}(Bo);function VR(e){return VR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VR(e)}function zR(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(tx(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,tx(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,tx(f,"constructor",c),tx(c,"constructor",s),s.displayName="GeneratorFunction",tx(c,o,"GeneratorFunction"),tx(f),tx(f,o,"Generator"),tx(f,r,function(){return this}),tx(f,"toString",function(){return"[object Generator]"}),(ex=function(){return{w:i,m:p}})()}function tx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tx=function(e,t,n,r){function i(t,n){tx(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))},tx(e,t,n,r)}function nx(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 rx(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){nx(i,r,o,a,u,"next",e)}function u(e){nx(i,r,o,a,u,"throw",e)}a(void 0)})}}function ox(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(yx(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,yx(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,yx(f,"constructor",c),yx(c,"constructor",s),s.displayName="GeneratorFunction",yx(c,o,"GeneratorFunction"),yx(f),yx(f,o,"Generator"),yx(f,r,function(){return this}),yx(f,"toString",function(){return"[object Generator]"}),(px=function(){return{w:i,m:p}})()}function yx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yx=function(e,t,n,r){function i(t,n){yx(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))},yx(e,t,n,r)}function dx(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){dx(i,r,o,a,u,"next",e)}function u(e){dx(i,r,o,a,u,"throw",e)}a(void 0)})}}function mx(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){Ze.warn("TypographyFrameUtils: failed to set inert attribute on iframe",e)}return n.srcdoc='blank',n}function vx(e){return bx.apply(this,arguments)}function bx(){return(bx=hx(px().m(function e(t){var n;return px().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,Ze.warn("TypographyFrameUtils: waiting for document.fonts.ready failed",n);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function gx(e){return new Promise(function(t){return(e.requestAnimationFrame||e.setTimeout)(t,16)})}function _x(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};return{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 wx(e){return Sx.apply(this,arguments)}function Sx(){return(Sx=hx(px().m(function e(t){var n,r;return px().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,Ze.warn("TypographyFrameUtils: waiting for hostDocument.fonts.ready failed",r);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function kx(e,t){return Ex.apply(this,arguments)}function Ex(){return Ex=hx(px().m(function e(t,n){var r;return px().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){Ze.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)})),Ex.apply(this,arguments)}function Ox(e){return{w:e.contentWindow,d:e.contentDocument}}function Tx(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 Px(e){return Number.isFinite(e.width)&&e.width>0&&Number.isFinite(e.height)&&e.height>0}function Cx(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 jx(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 Mx(e,t,n){return Rx.apply(this,arguments)}function Rx(){return(Rx=hx(px().m(function e(t,n,r){var o,i,a,u,s,c,l,f,p,y,d;return px().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,y=0;case 1:if(!(y=i&&l>=a)){e.n=3;break}return e.a(2,d);case 3:p=d;case 4:y++,e.n=1;break;case 5:return e.a(2,f||p)}},e)}))).apply(this,arguments)}function xx(e){try{e&&e.remove()}catch(e){Ze.warn("TypographyFrameUtils: element.remove() failed",e)}}function Ax(e){return Dx.apply(this,arguments)}function Dx(){return(Dx=hx(px().m(function e(t){var n,r,o,i,a,u,s,c,l,f,p,y,d,h,m,v,b,g,_,w,S;return px().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,y=t.relTol,d=void 0===y?5e-4:y,h=t.quantStep,m=void 0===h?.125:h,e.n=1,wx(n);case 1:return v=mx(n,r),e.p=2,e.n=3,kx(n,v);case 3:return _=Ox(v),w=_.w,S=_.d,b=Tx(S,w,o),e.n=4,vx(S);case 4:return e.n=5,Mx(b,w,{maxFrames:a,minSamples:s,stableHitsTarget:l,absTolPx:p,relTol:d});case 5:return g=e.v,e.a(2,_x(g,m));case 6:return e.p=6,xx(b),xx(v),e.f(6);case 7:return e.a(2)}},e,null,[[2,,6,7]])}))).apply(this,arguments)}function Bx(e){return Bx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bx(e)}function Nx(){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 Ix(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(Ix(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,Ix(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Ix(f,"constructor",c),Ix(c,"constructor",s),s.displayName="GeneratorFunction",Ix(c,o,"GeneratorFunction"),Ix(f),Ix(f,o,"Generator"),Ix(f,r,function(){return this}),Ix(f,"toString",function(){return"[object Generator]"}),(Nx=function(){return{w:i,m:p}})()}function Ix(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ix=function(e,t,n,r){function i(t,n){Ix(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))},Ix(e,t,n,r)}function Lx(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 Fx(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:n.g.window,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.g.document;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Hx(this,t))._dataQ=e,r._window=o,r._document=i,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&&Kx(e,t)}(t,e),function(e,t,n){return t&&Wx(e.prototype,t),n&&Wx(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){Ze.warn("applying span.style.all failed",e)}return Object.assign(r.style,n),r.textContent=t,r}},{key:"startFeature",value:(r=Nx().m(function e(){var t,n,r=this;return Nx().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Ax(Fx({hostWindow:this._window,hostDocument:this._document,frameId:"cd__frame__font_emoji",buildNode:function(e){var t=e.doc;return r._buildSpan(t,r._buildEmojiString(),Jx)}},Yx));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,Ze.error("Failed to collect emoji font information",n);case 3:return e.a(2)}},e,this,[[0,2]])}),o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){Gx(i,n,o,a,u,"next",e)}function u(e){Gx(i,n,o,a,u,"throw",e)}a(void 0)})},function(){return o.apply(this,arguments)})}],[{key:"getDefaultSettings",value:function(){return qx}}]);var r,o}(Bo);function Zx(e){return Zx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zx(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 eA(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(eA(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,eA(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,eA(f,"constructor",c),eA(c,"constructor",s),s.displayName="GeneratorFunction",eA(c,o,"GeneratorFunction"),eA(f),eA(f,o,"Generator"),eA(f,r,function(){return this}),eA(f,"toString",function(){return"[object Generator]"}),($x=function(){return{w:i,m:p}})()}function eA(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}eA=function(e,t,n,r){function i(t,n){eA(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))},eA(e,t,n,r)}function tA(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 nA(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 rA(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)?rA(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 rA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:n.g.window,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.g.document;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=aA(this,t))._dataQ=e,r._window=o,r._document=i,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&&cA(e,t)}(t,e),function(e,t,n){return t&&oA(e.prototype,t),n&&oA(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="∏",i.appendChild(a),o.appendChild(i);for(var u=0,s=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];u3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(dA(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,dA(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,dA(f,"constructor",c),dA(c,"constructor",s),s.displayName="GeneratorFunction",dA(c,o,"GeneratorFunction"),dA(f),dA(f,o,"Generator"),dA(f,r,function(){return this}),dA(f,"toString",function(){return"[object Generator]"}),(yA=function(){return{w:i,m:p}})()}function dA(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dA=function(e,t,n,r){function i(t,n){dA(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))},dA(e,t,n,r)}function hA(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 mA(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 vA(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)?vA(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 vA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&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=_A(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&&kA(e,t)}(t,e),function(e,t,n){return t&&bA(e.prototype,t),n&&bA(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.style.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(''),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=mA(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=mA(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);a3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(VA(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,VA(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,VA(f,"constructor",c),VA(c,"constructor",s),s.displayName="GeneratorFunction",VA(c,o,"GeneratorFunction"),VA(f),VA(f,o,"Generator"),VA(f,r,function(){return this}),VA(f,"toString",function(){return"[object Generator]"}),(HA=function(){return{w:i,m:p}})()}function VA(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}VA=function(e,t,n,r){function i(t,n){VA(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))},VA(e,t,n,r)}function zA(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 KA(e,t){for(var n=0;n1&&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=JA(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&&ZA(e,t)}(t,e),function(e,t,n){return t&&KA(e.prototype,t),n&&KA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(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=HA().m(function e(){var t;return HA().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){zA(i,r,o,a,u,"next",e)}function u(e){zA(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 $A}}]);var n,r}(Bo),tD=eD;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(){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 oD(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(oD(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,oD(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,oD(f,"constructor",c),oD(c,"constructor",s),s.displayName="GeneratorFunction",oD(c,o,"GeneratorFunction"),oD(f),oD(f,o,"Generator"),oD(f,r,function(){return this}),oD(f,"toString",function(){return"[object Generator]"}),(rD=function(){return{w:i,m:p}})()}function oD(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}oD=function(e,t,n,r){function i(t,n){oD(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))},oD(e,t,n,r)}function iD(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 aD(e,t){for(var n=0;n0&&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=rD().m(function e(){var t,n,r,o;return rD().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){iD(i,r,o,a,u,"next",e)}function u(e){iD(i,r,o,a,u,"throw",e)}a(void 0)})},function(){return t.apply(this,arguments)})}]);var e,t}(),cD=sD;function lD(e){return lD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lD(e)}function fD(e,t){for(var n=0;n>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;ar&&(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(yD),r=n.reduce(function(e,n){return tn?e:n}),i=o-r;return ee.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(_D(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,_D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,_D(f,"constructor",c),_D(c,"constructor",s),s.displayName="GeneratorFunction",_D(c,o,"GeneratorFunction"),_D(f),_D(f,o,"Generator"),_D(f,r,function(){return this}),_D(f,"toString",function(){return"[object Generator]"}),(gD=function(){return{w:i,m:p}})()}function _D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_D=function(e,t,n,r){function i(t,n){_D(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))},_D(e,t,n,r)}function wD(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 SD(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){wD(i,r,o,a,u,"next",e)}function u(e){wD(i,r,o,a,u,"throw",e)}a(void 0)})}}function kD(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(DD(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,DD(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,DD(f,"constructor",c),DD(c,"constructor",s),s.displayName="GeneratorFunction",DD(c,o,"GeneratorFunction"),DD(f),DD(f,o,"Generator"),DD(f,r,function(){return this}),DD(f,"toString",function(){return"[object Generator]"}),(AD=function(){return{w:i,m:p}})()}function DD(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}DD=function(e,t,n,r){function i(t,n){DD(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))},DD(e,t,n,r)}function BD(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 ND(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){BD(i,r,o,a,u,"next",e)}function u(e){BD(i,r,o,a,u,"throw",e)}a(void 0)})}}function ID(e,t){for(var n=0;n0&&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||Ze,this._document=r||window.document,this._performance=o||window.performance,this._math=i||Math,this.contextTypes=["webgl2"]},[{key:"collectWebGLTiming",value:(t=ND(AD().m(function e(){var t,n,r,o;return AD().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=ND(AD().m(function e(t){var n,r,o,i,a,u,s,c,l,f,p,y,d,h;return AD().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;u0){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)e=n.reduce(function(e,t){return e+t.duration},0)/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(e){return this._log.debug("BrowserTimingService - Error collecting performance timing:",e),{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}}}])}(),VD=HD;function zD(e){return zD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zD(e)}function KD(){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 qD(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(qD(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,qD(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,qD(f,"constructor",c),qD(c,"constructor",s),s.displayName="GeneratorFunction",qD(c,o,"GeneratorFunction"),qD(f),qD(f,o,"Generator"),qD(f,r,function(){return this}),qD(f,"toString",function(){return"[object Generator]"}),(KD=function(){return{w:i,m:p}})()}function qD(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qD=function(e,t,n,r){function i(t,n){qD(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))},qD(e,t,n,r)}function JD(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 YD(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)?YD(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 YD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&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||Ze,this._Worker=o||window.Worker,this._Blob=i||window.Blob,this._URL=a||window.URL},[{key:"runBenchmarks",value:(a=ZD(KD().m(function e(){var t,n,r,o,i,a,u,s;return KD().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=JD(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=ZD(KD().m(function e(){var t;return KD().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; 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=ZD(KD().m(function e(){var t;return KD().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=ZD(KD().m(function e(){var t;return KD().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=ZD(KD().m(function e(){var t;return KD().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=ZD(KD().m(function e(){var t;return KD().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 \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=ZD(KD().m(function e(t){var n=this;return KD().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}(),nB=tB;function rB(e){return rB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rB(e)}function oB(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)||iB(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 iB(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}}function aB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&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||Ze,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,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=iB(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}}}}(this._fontScanTimes);try{for(n.s();!(e=n.n()).done;){var r=oB(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}}])}(),lB=cB;function fB(e){return fB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fB(e)}function pB(){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 yB(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(yB(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,yB(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,yB(f,"constructor",c),yB(c,"constructor",s),s.displayName="GeneratorFunction",yB(c,o,"GeneratorFunction"),yB(f),yB(f,o,"Generator"),yB(f,r,function(){return this}),yB(f,"toString",function(){return"[object Generator]"}),(pB=function(){return{w:i,m:p}})()}function yB(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yB=function(e,t,n,r){function i(t,n){yB(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))},yB(e,t,n,r)}function dB(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,t){for(var n=0;n=1e3)return r=n/a*1e3,Ze.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,Ze.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){dB(i,r,o,a,u,"next",e)}function u(e){dB(i,r,o,a,u,"throw",e)}a(void 0)})},function(){return t.apply(this,arguments)})}]);var e,t}(),bB=vB;function gB(e){return gB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gB(e)}function _B(){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:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]"}),(_B=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 SB(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 kB(e){for(var t=1;tthis._cacheExpiration?(Ze.debug("[TIMING-COLLECTOR] Cached timing data is expired"),null):e:(Ze.debug("[TIMING-COLLECTOR] No cached timing data found"),null)}},{key:"clearCache",value:function(){this._storageUtils.removeFromLocalStorage(this._cacheKey),Ze.debug("[TIMING-COLLECTOR] Cleared timing data cache")}}]);var e,t}();function jB(e){return jB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jB(e)}function MB(){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 RB(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(RB(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,RB(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,RB(f,"constructor",c),RB(c,"constructor",s),s.displayName="GeneratorFunction",RB(c,o,"GeneratorFunction"),RB(f),RB(f,o,"Generator"),RB(f,r,function(){return this}),RB(f,"toString",function(){return"[object Generator]"}),(MB=function(){return{w:i,m:p}})()}function RB(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}RB=function(e,t,n,r){function i(t,n){RB(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))},RB(e,t,n,r)}function xB(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 AB(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){xB(i,r,o,a,u,"next",e)}function u(e){xB(i,r,o,a,u,"throw",e)}a(void 0)})}}function DB(e,t){for(var n=0;n0&&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||Ze},[{key:"measureMemoryBandwidth",value:(i=AB(MB().m(function e(){var t,n,r,o,i,a;return MB().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=AB(MB().m(function e(){var t,n,r,o,i,a,u,s;return MB().w(function(e){for(;;)switch(e.p=e.n){case 0:for(e.p=0,t=16777216,n=new Uint8Array(t),r=0;r3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(UB(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,UB(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,UB(f,"constructor",c),UB(c,"constructor",s),s.displayName="GeneratorFunction",UB(c,o,"GeneratorFunction"),UB(f),UB(f,o,"Generator"),UB(f,r,function(){return this}),UB(f,"toString",function(){return"[object Generator]"}),(FB=function(){return{w:i,m:p}})()}function UB(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}UB=function(e,t,n,r){function i(t,n){UB(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))},UB(e,t,n,r)}function GB(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 WB(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){GB(i,r,o,a,u,"next",e)}function u(e){GB(i,r,o,a,u,"throw",e)}a(void 0)})}}function QB(e,t){for(var n=0;n0&&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||Ze,this._localStorage=o||window.localStorage,this._sessionStorage=i||window.sessionStorage,this._indexedDB=a||window.indexedDB,this._Math=u||Math},[{key:"measureAll",value:(i=WB(FB().m(function e(){var t,n,r,o,i,a;return FB().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)),bulkLocalStorageTime: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=WB(FB().m(function e(){var t,n,r,o,i,a;return FB().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=WB(FB().m(function e(){var t,n,r,o,i,a;return FB().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=WB(FB().m(function e(){var t,n=this;return FB().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=WB(FB().m(function e(){var t,n,r,o,i,a,u,s,c,l,f;return FB().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;i3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(ZB(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,ZB(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ZB(f,"constructor",c),ZB(c,"constructor",s),s.displayName="GeneratorFunction",ZB(c,o,"GeneratorFunction"),ZB(f),ZB(f,o,"Generator"),ZB(f,r,function(){return this}),ZB(f,"toString",function(){return"[object Generator]"}),(XB=function(){return{w:i,m:p}})()}function ZB(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ZB=function(e,t,n,r){function i(t,n){ZB(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))},ZB(e,t,n,r)}function $B(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 eN(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){$B(i,r,o,a,u,"next",e)}function u(e){$B(i,r,o,a,u,"throw",e)}a(void 0)})}}function tN(e,t){for(var n=0;n2&&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=rN(this,t))._dataQ=e,r._fontTimingService=n,r._webglService=o.webglService||new UD,r._browserService=o.browserService||new VD,r._CPUTimingService=o.cpuTimingService||new nB,r._animationTimingService=o.animationTimingService||new bB,r._memoryBandwidthService=o.memoryTimingService||new IB,r._storageTimingService=o.storageTimingService||new zB;var i=o.storageUtils||Gt.StorageUtils;return r._timingCache=o.timingCache||new CB(i),r._logger=o.logger||Ze,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&&aN(e,t)}(t,e),function(e,t,n){return t&&tN(e.prototype,t),n&&tN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"startFeature",value:(l=eN(XB().m(function e(){var t,n=this;return XB().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=eN(XB().m(function e(){var t,n;return XB().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=eN(XB().m(function e(){var t;return XB().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=eN(XB().m(function e(){var t,n;return XB().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=eN(XB().m(function e(){var t,n,r;return XB().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)})},{key:"collectMemoryBandwidthTiming",value:(i=eN(XB().m(function e(){var t,n;return XB().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=eN(XB().m(function e(){var t,n;return XB().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=eN(XB().m(function e(){var t;return XB().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=eN(XB().m(function e(t){var n,r,o;return XB().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=this._timingCache.getStoredTimingData()||{},r=JB(JB({},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 uN}}]);var n,r,o,i,a,u,s,c,l}(Bo),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;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(_N(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,_N(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,_N(f,"constructor",c),_N(c,"constructor",s),s.displayName="GeneratorFunction",_N(c,o,"GeneratorFunction"),_N(f),_N(f,o,"Generator"),_N(f,r,function(){return this}),_N(f,"toString",function(){return"[object Generator]"}),(gN=function(){return{w:i,m:p}})()}function _N(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_N=function(e,t,n,r){function i(t,n){_N(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))},_N(e,t,n,r)}function wN(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 SN(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)?SN(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 SN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)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=EN(gN().m(function e(){var t;return gN().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=EN(gN().m(function e(t){var n,r;return gN().w(function(e){for(;;)switch(e.n){case 0:return n=this._detectorProvider.getBestDetector(),e.n=1,Promise.all(t.map(function(){var e=EN(gN().m(function e(t){var r,o;return gN().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 wN(e,2)[1]}).map(function(e){return wN(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(w.agenticBrowserFonts);if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=[]}return e}}],[{key:"getDefaultSettings",value:function(){return RN}}]);var n,r,o}(Bo);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 DN(e,t){for(var n=0;n0)for(var e,t=0;t0&&(n._windowMessageEmitter.startObserver(e),n._domainsResources.forEach(function(e){var t=e.match(LI);if(null!==t&&"string"==typeof t[0]){var r=t[0];if("object"===OI(n._domainsStates[r]))return;n._domainsStates[r]=EI({},FI),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)})))}),AI(n,"stopFeature",function(e){n._clearFeaturesObjects(e)}),AI(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={})}),AI(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"===OI(n._domainsStates[t])&&!1===n._domainsStates[t].ACKMessageRecieved&&!1===n._domainsStates[t].unavailable&&(Ze.warn("Cross Domain feature - domain ".concat(t," is unavailable")),n._domainsStates[t].unavailable=!0,n.clearDomElements(e,t))})},n._crossDomainsTimeout))}),AI(n,"createIframe",function(e,r){var o=e.getDocument().createElement("iframe");o.onload=function(){n.postNextMessage(r)},o.id=Vi+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}),AI(n,"clearDomElements",function(e,t){var r=n._domainsStates[t].iframeElement;"object"===OI(r)&&(null!==e.getDocument().getElementById(n._domainsStates[t].iframeElement.id)&&e.getDocument().body.removeChild(r))}),AI(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}}),AI(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(II);t.forEach(function(e){o&&-1===o[0].indexOf(e)&&"object"===OI(n._domainsStates[e])&&(n._domainsStates[e].blockedByCSP||Ze.warn("Cross Domain feature - domain ".concat(e," is blocked by CSP")),n._domainsStates[e].blockedByCSP=!0)})}if(r)return!1})}),AI(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 Ea(e.message.currentTarget,n._domUtils),t);var r=e.message.data;n.sendToQueue(t,r)}}),AI(n,"sendToQueue",function(e,t){var r=e.replace(/http[s]?:\/\//i,"");"object"===OI(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(UI,u),!0)}),"object"===OI(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(UI,u))}),"object"===OI(t.error_message)&&Ze.warn("Cross Domain feature - domain ".concat(r," error. Error Message: \n ").concat(t.error_message," Code: ").concat(t.error_code))}),AI(n,"updateFeatureConfig",function(e){n._domainsResources=n._configurationRepository.get(w.crossDomainsList),n._crossDomainsTimeout=n._configurationRepository.get(w.crossDomainsTimeout),clearTimeout(n._domainsTimeoutFunc),n._domainsTimeoutFunc=null,n.updateDomainStates(e)}),AI(n,"updateDomainStates",function(e){Array.isArray(n._domainsResources)&&n._domainsResources.length>0&&(n._domains=[],n._domainsResources.forEach(function(e){var t=e.match(LI);if(null!==t&&"string"==typeof t[0]){var r=t[0];"object"!==OI(n._domainsStates[r])&&(n._domainsStates[r]=EI({},FI),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(So,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&&xI(e,t)}(t,e),CI(t,null,[{key:"getDefaultSettings",value:function(){return BI}},{key:"Builder",get:function(){return function(){return CI(function e(t,n,r,o,i){TI(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="abcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<16;n++)t+=e.charAt(Math.floor(36*Math.random()));return t}}])}(Bo),WI=GI;function QI(e){return QI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QI(e)}function HI(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=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(aL(this._elementsFromDoc.customButtons));""===(null===(i=this._elementsFromDoc)||void 0===i?void 0:i.mainElement)&&this.getSelectElementsFromDoc(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)})}}}])}(zI),hL=dL;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){for(var n=0;n=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\./);if((n||r)&&Number.parseFloat((t.match(/.+(?:edge|rv)[/: ]([\d.]+)/)||[])[1])>=10)return!0;return!1}},{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){Ze.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 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(){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 $L(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):($L(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,$L(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,$L(f,"constructor",c),$L(c,"constructor",s),s.displayName="GeneratorFunction",$L(c,o,"GeneratorFunction"),$L(f),$L(f,o,"Generator"),$L(f,r,function(){return this}),$L(f,"toString",function(){return"[object Generator]"}),(ZL=function(){return{w:i,m:p}})()}function $L(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$L=function(e,t,n,r){function i(t,n){$L(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))},$L(e,t,n,r)}function eF(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 tF(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){eF(i,r,o,a,u,"next",e)}function u(e){eF(i,r,o,a,u,"throw",e)}a(void 0)})}}function nF(e,t){for(var n=0;n0&&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:(d=tF(ZL().m(function e(){return ZL().w(function(e){for(;;)if(0===e.n)return e.a(2,this._detectIncognitoModePromise())},e,this)})),function(){return d.apply(this,arguments)})},{key:"_detectIncognitoModePromise",value:(y=tF(ZL().m(function e(){var t,n,r;return ZL().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 y.apply(this,arguments)})},{key:"_checkFileSystemAPIAccess",value:(p=tF(ZL().m(function e(){var t=this;return ZL().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=tF(ZL().m(function e(){var t,n,r,o;return ZL().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=tF(ZL().m(function e(){var t;return ZL().w(function(e){for(;;)switch(e.n){case 0:if(this._navigator.languages&&Array.isArray(this._navigator.languages)){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=tF(ZL().m(function e(){var t;return ZL().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=tF(ZL().m(function e(){var t;return ZL().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=tF(ZL().m(function e(){return ZL().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=tF(ZL().m(function e(){return ZL().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=tF(ZL().m(function e(){return ZL().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=tF(ZL().m(function e(){var t=this;return ZL().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=tF(ZL().m(function e(){var t,n,r,o;return ZL().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=tF(ZL().m(function e(){var t=this;return ZL().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=tF(ZL().m(function e(){var t=this;return ZL().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(o0){t.handleMutationEvent(o,e);break}}}catch(e){Ze.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 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 PF(e,t){for(var n=0;n0&&(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];if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void Ze.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 Ze.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 RF(e){return RF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RF(e)}function xF(e,t){for(var n=0;n3&&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];DF?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 NF(e){return NF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NF(e)}function IF(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void Ze.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 Ze.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)}}}])}(),UF=FF;function GF(e){return GF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GF(e)}function WF(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void Ze.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 Ze.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)}}}])}(),VF=HF;function zF(e){return zF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zF(e)}function KF(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(!this._elementBindingWMap.has(e)){if(n){if(!this._utils.JQueryUtils.isJQueryAvailable())return void Ze.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 Ze.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)}}}])}(),YF=JF;function XF(e){return XF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XF(e)}function ZF(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function tW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(cW(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,cW(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,cW(f,"constructor",c),cW(c,"constructor",s),s.displayName="GeneratorFunction",cW(c,o,"GeneratorFunction"),cW(f),cW(f,o,"Generator"),cW(f,r,function(){return this}),cW(f,"toString",function(){return"[object Generator]"}),(sW=function(){return{w:i,m:p}})()}function cW(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}cW=function(e,t,n,r){function i(t,n){cW(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))},cW(e,t,n,r)}function lW(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 fW(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){lW(i,r,o,a,u,"next",e)}function u(e){lW(i,r,o,a,u,"throw",e)}a(void 0)})}}function pW(e,t){for(var n=0;n ").concat(t.newVersion));for(var r=0,o=Object.entries(e.DB_CONFIG.STORE_SCHEMAS);r3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(bW(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,bW(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,bW(f,"constructor",c),bW(c,"constructor",s),s.displayName="GeneratorFunction",bW(c,o,"GeneratorFunction"),bW(f),bW(f,o,"Generator"),bW(f,r,function(){return this}),bW(f,"toString",function(){return"[object Generator]"}),(vW=function(){return{w:i,m:p}})()}function bW(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}bW=function(e,t,n,r){function i(t,n){bW(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))},bW(e,t,n,r)}function gW(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){gW(i,r,o,a,u,"next",e)}function u(e){gW(i,r,o,a,u,"throw",e)}a(void 0)})}}function wW(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(TW(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,TW(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,TW(f,"constructor",c),TW(c,"constructor",s),s.displayName="GeneratorFunction",TW(c,o,"GeneratorFunction"),TW(f),TW(f,o,"Generator"),TW(f,r,function(){return this}),TW(f,"toString",function(){return"[object Generator]"}),(OW=function(){return{w:i,m:p}})()}function TW(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}TW=function(e,t,n,r){function i(t,n){TW(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))},TW(e,t,n,r)}function PW(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 CW(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){PW(i,r,o,a,u,"next",e)}function u(e){PW(i,r,o,a,u,"throw",e)}a(void 0)})}}function jW(e,t){for(var n=0;n1&&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 kW,this.isInitialized=!1},[{key:"init",value:(n=CW(OW().m(function e(){return OW().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=CW(OW().m(function e(t){var n,r,o,i,a,u;return OW().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,Ze.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=CW(OW().m(function e(t,n){var r,o,i,a,u,s;return OW().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({name:"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,Ze.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 xW(e){return xW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xW(e)}function AW(){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:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]"}),(AW=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 BW(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 NW(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){BW(i,r,o,a,u,"next",e)}function u(e){BW(i,r,o,a,u,"throw",e)}a(void 0)})}}function IW(e,t){for(var n=0;n1&&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 hW({storeName:n}),this.cryptoService=null!=r?r:new RW(n),this.initialized=!1},[{key:"init",value:(s=NW(AW().m(function e(){return AW().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=NW(AW().m(function e(t,n){var r;return AW().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=NW(AW().m(function e(t){var n;return AW().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=NW(AW().m(function e(t,n){var r;return AW().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=NW(AW().m(function e(t){return AW().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=NW(AW().m(function e(){var t,n=this;return AW().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=NW(AW().m(function e(){return AW().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=NW(AW().m(function e(t){var n,r,o;return AW().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=NW(AW().m(function e(t){var n,r,o;return AW().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 UW(e){return UW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UW(e)}function GW(){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 WW(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(WW(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,WW(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,WW(f,"constructor",c),WW(c,"constructor",s),s.displayName="GeneratorFunction",WW(c,o,"GeneratorFunction"),WW(f),WW(f,o,"Generator"),WW(f,r,function(){return this}),WW(f,"toString",function(){return"[object Generator]"}),(GW=function(){return{w:i,m:p}})()}function WW(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}WW=function(e,t,n,r){function i(t,n){WW(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))},WW(e,t,n,r)}function QW(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){QW(i,r,o,a,u,"next",e)}function u(e){QW(i,r,o,a,u,"throw",e)}a(void 0)})}}function VW(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function XW(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)||ZW(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 ZW(e,t){if(e){if("string"==typeof e)return $W(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)?$W(e,t):void 0}}function $W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,i=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=n(542),c=n(727),l=n(60),f=o&&Object.keys(o).length?o:s;this.CATEGORY_RULES=Object.create(null);for(var p=0,y=Object.entries(f);pu&&(a=String(m),(u=v)>=3))break e}}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}return this._cache.set(e,a),a}catch(e){return Ze.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=YW(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 JW(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 rQ(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 oQ(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)?oQ(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 oQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?"":c.key,f=s._elements.getElementHashFromEvent(e),p=s._getComboType(e,a),y=No[e.isTrusted],d="Meta"===e.key||"OS"===e.key||"Win"===e.key||e.metaKey||91===e.keyCode||92===e.keyCode,h=s._configurationRepository.get(w.collectKeyRegionValue)?s._getKeyRegion(u):"-1",m=s.getTimestampFromEvent(e),v=ai.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(bi,{eventType:r,eventSequence:o,timestamp:i,charCode:c.charCode,character:l,elementHash:f,keyComboType:p,isTrusted:y,isCtrl:e.ctrlKey||!1,isShift:e.shiftKey||!1,isAlt:e.altKey||!1,isMetaKey:d||!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._dataQueue=o,s._msgBus=i,s._sameCharService=a,s._maskingService=u,s.comboCodes=["c","v","a","x","z","p","s"],s._useCaptureEvents=s._configurationRepository.get(w.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&&_Q(e,t)}(t,e),function(e,t,n){return t&&mQ(e.prototype,t),n&&mQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"getEvents",value:function(){return["keydown","keyup","keypress"]}},{key:"_getKeyRegion",value:function(e){return si[e]?si[e]:"-1"}},{key:"_getComboType",value:function(e,t){return(e.ctrlKey||e.metaKey)&&void 0!==t?this.comboCodes.indexOf(t):-1}}])}(dQ);function OQ(e){return OQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OQ(e)}function TQ(e,t){for(var n=0;nthis._maxElemValLength&&(t.elementValues="");var s=xQ(xQ({},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(Hf,s)],!0)}}])}(dQ);function GQ(e){return GQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GQ(e)}function WQ(e,t){for(var n=0;n1&&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(){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){Ze.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 Ze.warn("Cannot access iframe document at depth ".concat(n+1," - likely cross-origin"));r._enqueueDocument(i,n+1),r._scheduleQueueDrain(t)}catch(e){Ze.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()}},{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{doc:null,iframeElement:e}}return e.nodeType===Node.DOCUMENT_NODE?{doc:e,iframeElement:null}:{doc:null,iframeElement:null}}}])}(cH);function gH(e){return gH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gH(e)}function _H(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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 RH(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 xH(e,t){for(var n=0;n0?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){}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))}}])}(cH);function vV(e){return vV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vV(e)}function bV(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(DV(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,DV(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,DV(f,"constructor",c),DV(c,"constructor",s),s.displayName="GeneratorFunction",DV(c,o,"GeneratorFunction"),DV(f),DV(f,o,"Generator"),DV(f,r,function(){return this}),DV(f,"toString",function(){return"[object Generator]"}),(AV=function(){return{w:i,m:p}})()}function DV(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}DV=function(e,t,n,r){function i(t,n){DV(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))},DV(e,t,n,r)}function BV(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 NV(e,t){for(var n=0;n3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(GV(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,GV(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,GV(f,"constructor",c),GV(c,"constructor",s),s.displayName="GeneratorFunction",GV(c,o,"GeneratorFunction"),GV(f),GV(f,o,"Generator"),GV(f,r,function(){return this}),GV(f,"toString",function(){return"[object Generator]"}),(UV=function(){return{w:i,m:p}})()}function GV(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}GV=function(e,t,n,r){function i(t,n){GV(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))},GV(e,t,n,r)}function WV(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 QV(e,t){for(var n=0;n0&&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=VV(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&&qV(e,t)}(t,e),function(e,t,n){return t&&QV(e.prototype,t),n&&QV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"detect",value:(n=UV().m(function e(t){var n,r;return UV().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){WV(i,r,o,a,u,"next",e)}function u(e){WV(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}(LV);function YV(e){return YV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YV(e)}function XV(){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 ZV(c,"_invoke",function(n,r,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,s=e,p.n=n,a}};function y(n,r){for(u=n,s=r,t=0;!f&&c&&!o&&t3?(o=d===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&yr||r>d)&&(i[4]=n,i[5]=r,p.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),u=l,s=d;(t=u<2?e:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(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]())):(ZV(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,ZV(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,ZV(f,"constructor",c),ZV(c,"constructor",s),s.displayName="GeneratorFunction",ZV(c,o,"GeneratorFunction"),ZV(f),ZV(f,o,"Generator"),ZV(f,r,function(){return this}),ZV(f,"toString",function(){return"[object Generator]"}),(XV=function(){return{w:i,m:p}})()}function ZV(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ZV=function(e,t,n,r){function i(t,n){ZV(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))},ZV(e,t,n,r)}function $V(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 ez(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){$V(i,r,o,a,u,"next",e)}function u(e){$V(i,r,o,a,u,"throw",e)}a(void 0)})}}function tz(e,t){for(var n=0;n1&&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 dz(dz({},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:Gt.cutDecimalPointDigits(a.vCover,4),offsetParentCover:Gt.cutDecimalPointDigits(a.pCover,4),width:a.width,height:a.height}}}catch(e){Ze.error("HitboxDetectionService.isPotentialFraudHitbox failed. msg: ".concat(e.message),e)}return n}},{key:"_parseBackgroundAlpha",value:function(e){if(null==e||""===String(e).trim())return null;if("transparent"===e)return 0;var t=bz.exec(e);if(t)return null==t[1]?1:this._parseCssAlphaValue(t[1]);var n=gz.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:Gt.cutDecimalPointDigits(n.width,2),height:Gt.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.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"}];u0&&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)}),Ze.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,Ze.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&&(Ze.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 Ze.warn("NavigationObserver: failed to parse URL: ".concat(e,". Error: ").concat(n)),null}}}])}();function Oz(e){return Oz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oz(e)}function Tz(e,t){for(var n=0;n2&&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(),ze.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 ze}},{key:"_loadSystem",value:function(e,t,n){var r,o,i;this._runServerWorker(t),this._serverWorkerCommunicator=new bn,this._serverWorkerCommunicator.setMessagingPort(this._serverWorker.port);var a=new Xl(aa,this._serverWorkerCommunicator,null,"logPerfQPassWorkerInterval",Te);this._perfMonitor=new Tn(a),this._configurationRepository=new Lr,new xl(this._configurationRepository,t).loadStartUpConfigurations();var u=null===(r=this._configurationRepository)||void 0===r?void 0:r.get(w.enableWupMessagesHashing);this._shouldEnableWorkerWupMessagesHashing(u,this._serverWorkerCommunicator);var s=new rf(Gt,this._configurationRepository,t),c=new Mn(self.MutationObserver,Gt,aa,"contextConfiguration",null,!0,400);this._contextCategoryService=new Kn(this._configurationRepository);var l=new Ez;this._contextMgr=new Xn(Gt,c,this._serverWorkerCommunicator,s,this._contextCategoryService,l);var f=new Ql(a,this._contextMgr.url),p=new $e(f);Ze.setLogger(p);var y=null===(o=this._configurationRepository)||void 0===o?void 0:o.get(w.externalWASMModules);this._wasmModuleLoader=new Dn(y);var d=null===(i=this._configurationRepository)||void 0===i?void 0:i.get(w.collectionMode);this._registerFeatures(d),this._currScriptName=document.currentScript?document.currentScript.src:"",this._globalexceptionHandler=new tr(Gt,this._currScriptName),this._msgBus=new ar,this._dataQ=new Sn(aa,this._serverWorkerCommunicator,this._contextMgr,"dataQPassWorkerInterval",Oe),this._devDebugDataQueue=new cQ(this._configurationRepository,this._dataQ),this._agentIdCache=new Of(s),this._agentIdService=new jf(this._agentIdCache,this._serverWorkerCommunicator),this._cidCache=new lr(t.getWupServerURL()),this._serverStateMgr=new _r(this._serverWorkerCommunicator,Gt,this._agentIdService),this._sessionInfoService=new Jc,this._sensorGateKeeper=new $c(this._sessionInfoService,this._configurationRepository),this._configurationService=new Ro(Gt,this._configurationRepository,this._msgBus,this._cidCache,this._serverWorkerCommunicator),this._sensorDataQ=new ki(this._configurationRepository,this._dataQ,this._msgBus,Gt,this._sensorGateKeeper),ze.setWorkerCommunicator(this._serverWorkerCommunicator),ze.configure(this._configurationRepository),this._maskingService=new Ho(this._configurationRepository);var h=t.getElementCategories(),m=t.getElementAttributes(),v=t.getElementSelectors();this._categoryService=new nQ(h,m,v,this._configurationRepository),this._elementsUtils=new Wi(this._configurationRepository,Gt,this._dataQ,this._contextMgr,this._maskingService,this._categoryService,!1,t.isRandomElementHashEnabled()),this._elementsUtilsV2=new Wi(this._configurationRepository,Gt,this._devDebugDataQueue,this._contextMgr,this._maskingService,this._categoryService,!0,t.isRandomElementHashEnabled());var b=new Za,g=new Su(this._configurationRepository,aa,Gt);this._frameHandler=g.create(),this._sameChar=new ui,jQ.insert(HG,this._configurationRepository,Gt,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 RV(this._configurationRepository,this._elementsUtilsV2,this._msgBus),this._featureService=new Tu(HG,this._frameHandler,this._configurationRepository,aa,Gt,b);var _=new Cl(Gt,this._msgBus,this._configurationRepository);this._stateService=new Gs(this._msgBus),this._pauseResumeMgr=new xu(this._featureService,this._configurationRepository,this._dataQ,this._stateService,this._serverWorkerCommunicator),this._customerApiBridge=new Qu(this._pauseResumeMgr,this._msgBus,e,Gt,t),this._configurationRepository.get(w.agentType)!==ye.SECONDARY&&(this._muidService=new Ku(Gt,this._dataQ,s,this._configurationRepository),this._muidEncryptedService=new KW({domUtils:aa,utils:Gt,storage:s,configurationRepository:this._configurationRepository})),this._psidCache=new Xu;var S=new ts(this._psidCache,this._serverWorkerCommunicator),k=new Mn(self.MutationObserver,Gt,aa,"resetSessionConfig"),E=new is(Gt,s,this._configurationRepository);this._csidCache=new cs,n&&this._csidCache.set(n);var O=new ys(this._customerApiBridge,this._csidCache,this._serverWorkerCommunicator),T=new pf(Gt,s);this._brandService=new sf(this._serverWorkerCommunicator,T),this._coordinatesMaskingConfigurationUpdater=new _f(this._configurationRepository);var P=new oW(t.getWupServerURL()),C=new ZG(t.getWupServerURL()),j=t.isMinifiedWupUriEnabled();this._sessionService=new bs(this._msgBus,this._configurationService,this._configurationRepository,Gt,aa,this._serverWorkerCommunicator,this._contextMgr,this._muidService,this._serverStateMgr,k,E,P,this._cidCache,C,j,O,this._csidCache,this._psidCache,this._brandService,this._agentIdService,t.getRecoveryServerURL()),this._metadataService=new Ss(this._configurationRepository,this._dataQ),this._slaveListener=new js(this._dataQ,this._configurationRepository,Gt,a,this._contextMgr,t),this._slaveListener.listen(),this._fontTimingService=new lB,this._fontDetectorProvider=new fz,this._agenticDomInjectionDetector=new em(this._configurationRepository),this._cursorCollectorBrowserEnvironment=Ob.createDefaultCursorCollectorBrowserEnvironment(),this._cursorDetectionService=new nb({browserEnv:this._cursorCollectorBrowserEnvironment}),this._hitboxDetectionService=new _z({browserEnv:this._cursorCollectorBrowserEnvironment}),this._featureBuilder=new As(HG,this._configurationRepository,Gt,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 Is(this._contextMgr,this._dataQ),this._contextMgr.onContextChange.subscribe(this._featureService.runPerContextFeatures.bind(this._featureService));var M=new Js;this.heartBeatService=new Fc(this._serverWorkerCommunicator,new Vc,this._configurationRepository.get(w.heartBeatMessageInterval)),this.heartBeatService.start(),this._eventHandlers.push(new mf(this._msgBus,this._muidService,M,this._serverWorkerCommunicator)),this._eventHandlers.push(new $s(this._msgBus,this._contextMgr)),this._eventHandlers.push(new rc(this._msgBus,this._sessionService)),this._eventHandlers.push(new uc(this._msgBus,this._metadataService)),this._eventHandlers.push(new fc(this._msgBus,this._pauseResumeMgr,this._slaveListener)),this._eventHandlers.push(new hc(this._msgBus,O)),this._eventHandlers.push(new gc(this._msgBus,S)),this._eventHandlers.push(new Bc(this._msgBus,this._brandService)),this._eventHandlers.push(new Rc(this._msgBus,M)),this._eventHandlers.push(new Pc(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,E,this._coordinatesMaskingConfigurationUpdater)),this._eventHandlers.push(new kc(this._msgBus,this._featureService,this._customerApiBridge,this._contextMgr,M,this._sessionInfoService)),this._configurationRepository.get(w.enableCustomElementsProcessing)&&_.start(new Ea(window.self,aa)),t.getLogServerURL()&&this._configurationService.updateLogUrlToWorker(this._sessionService.sessionId,this._csidCache.get(),this._serverWorkerCommunicator),t.isFlutterApp()&&(window.bcClient?window.bcClient.flutterBridge=new qG(this._msgBus):Ze.error("Cannot initiate FlutterSdkBridge: bcClient object not found.")),ze.initializeContext(this._cidCache.get(),Gt.scriptVersion),this._stateService.updateState(Wt.starting)}},{key:"_runServerWorker",value:function(e){this._serverWorker=this._runWorker(e)}},{key:"_registerFeatures",value:function(e){if(e!==de.LEAN)return Ze.info("Build features per collection mode: FULL"),void HG.register();Ze.info("Build features per collection mode: LEAN"),HG.registerLeanFeatures()}},{key:"_shouldEnableWorkerWupMessagesHashing",value:function(e,t){e&&t.sendAsync(xe,{enableWupMessagesHashing:e})}}])}(),jz="getConfigurations",Mz="client";function Rz(e){return Rz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rz(e)}function xz(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0,r=Tt;if(!this.cdApi())return n>=r?void Ze.error("Failed getting cdApi after all ".concat(r," retries.")):(Ze.warnRetry("cdApi not found on attempt ".concat(n+1,"/").concat(r,". Retrying..."),n+1,r),n++,void setTimeout(this._getFromApiOrEmpty.bind(this,e,t,n),100));if(!this.cdApi()[e])return Ze.warn("User did not implement cdApi method: ".concat(e)),void t("");try{this.cdApi()[e](t)}catch(t){throw Ze.error("An error has occurred while calling cdApi ".concat(e," function. Exception was thrown from client implementation."),t),t}}}])}();function sK(e){return sK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sK(e)}function cK(e,t){for(var n=0;n