@20minutes/tyr 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ (function(){"use strict";var Gn=Object.create,Nt=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Mt=Object.getOwnPropertyNames,Wn=Object.getPrototypeOf,$n=Object.prototype.hasOwnProperty,G=(t,r)=>function(){return r||(0,t[Mt(t)[0]])((r={exports:{}}).exports,r),r.exports},Kn=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Mt(r))!$n.call(t,o)&&o!==e&&Nt(t,o,{get:()=>r[o],enumerable:!(n=Xn(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?Gn(Wn(t)):{},Kn(r||!t||!t.__esModule?Nt(e,"default",{value:t,enumerable:!0}):e,t)),Yn=G({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.31",i="",a="?",c="function",f="undefined",s="object",u="string",l="major",d="model",p="name",h="type",v="vendor",m="version",k="architecture",j="console",S="mobile",T="tablet",D="smarttv",K="wearable",ue="embedded",be=255,R="Amazon",Q="Apple",g="ASUS",y="BlackBerry",w="Browser",_="Chrome",E="Edge",b="Firefox",C="Google",N="Huawei",W="LG",A="Microsoft",z="Motorola",Y="Opera",U="Samsung",ee="Sony",_e="Xiaomi",ke="Zebra",xn="Facebook",zo=function(I,L){var P={};for(var H in I)L[H]&&L[H].length%2===0?P[H]=L[H].concat(I[H]):P[H]=I[H];return P},it=function(I){for(var L={},P=0;P<I.length;P++)L[I[P].toUpperCase()]=I[P];return L},qn=function(I,L){return typeof I===u?Ne(L).indexOf(Ne(I))!==-1:!1},Ne=function(I){return I.toLowerCase()},Go=function(I){return typeof I===u?I.replace(/[^\d\.]/g,i).split(".")[0]:n},Lt=function(I,L){if(typeof I===u)return I=I.replace(/^\s\s*/,i).replace(/\s\s*$/,i),typeof L===f?I:I.substring(0,be)},Me=function(I,L){for(var P=0,H,O,at,M,je,te;P<L.length&&!je;){var Vn=L[P],zn=L[P+1];for(H=O=0;H<Vn.length&&!je;)if(je=Vn[H++].exec(I),je)for(at=0;at<zn.length;at++)te=je[++O],M=zn[at],typeof M===s&&M.length>0?M.length===2?typeof M[1]==c?this[M[0]]=M[1].call(this,te):this[M[0]]=M[1]:M.length===3?typeof M[1]===c&&!(M[1].exec&&M[1].test)?this[M[0]]=te?M[1].call(this,te,M[2]):n:this[M[0]]=te?te.replace(M[1],M[2]):n:M.length===4&&(this[M[0]]=te?M[3].call(this,te.replace(M[1],M[2])):n):this[M]=te||n;P+=2}},kt=function(I,L){for(var P in L)if(typeof L[P]===s&&L[P].length>0){for(var H=0;H<L[P].length;H++)if(qn(L[P][H],I))return P===a?n:P}else if(qn(L[P],I))return P===a?n:P;return I},Xo={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Bn={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Fn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,Y+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[p,Y]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+w]],[/\bqbcore\/([\w\.]+)/i],[m,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+w],m],[/\bfocus\/([\w\.]+)/i],[m,[p,b+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,Y+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,Y+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI "+w]],[/fxios\/([-\w\.]+)/i],[m,[p,b]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+w]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+w],m],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,xn],m],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,_+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+w]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,kt,Xo]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,b+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[k,"amd64"]],[/(ia32(?=;))/i],[[k,Ne]],[/((?:i[346]|x)86)[;\)]/i],[[k,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[k,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[k,"armhf"]],[/windows (ce|mobile); ppc;/i],[[k,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[k,/ower/,i,Ne]],[/(sun4\w)[;\)]/i],[[k,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[k,Ne]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[v,U],[h,T]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[v,U],[h,S]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[v,Q],[h,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[v,Q],[h,T]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[v,N],[h,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[d,[v,N],[h,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[v,_e],[h,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[v,_e],[h,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[v,"OPPO"],[h,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[v,"Vivo"],[h,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[v,"Realme"],[h,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[v,z],[h,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[v,z],[h,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[v,W],[h,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[v,W],[h,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[v,"Lenovo"],[h,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[v,"Nokia"],[h,S]],[/(pixel c)\b/i],[d,[v,C],[h,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[v,C],[h,S]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[v,ee],[h,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[v,ee],[h,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[v,"OnePlus"],[h,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[v,R],[h,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[v,R],[h,S]],[/(playbook);[-\w\),; ]+(rim)/i],[d,v,[h,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[v,y],[h,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[v,g],[h,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[v,g],[h,S]],[/(nexus 9)/i],[d,[v,"HTC"],[h,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[v,[d,/_/g," "],[h,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[v,"Acer"],[h,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[v,"Meizu"],[h,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[v,"Sharp"],[h,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[v,d,[h,S]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[v,d,[h,T]],[/(surface duo)/i],[d,[v,A],[h,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[v,"Fairphone"],[h,S]],[/(u304aa)/i],[d,[v,"AT&T"],[h,S]],[/\bsie-(\w*)/i],[d,[v,"Siemens"],[h,S]],[/\b(rct\w+) b/i],[d,[v,"RCA"],[h,T]],[/\b(venue[\d ]{2,7}) b/i],[d,[v,"Dell"],[h,T]],[/\b(q(?:mv|ta)\w+) b/i],[d,[v,"Verizon"],[h,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[v,"Barnes & Noble"],[h,T]],[/\b(tm\d{3}\w+) b/i],[d,[v,"NuVision"],[h,T]],[/\b(k88) b/i],[d,[v,"ZTE"],[h,T]],[/\b(nx\d{3}j) b/i],[d,[v,"ZTE"],[h,S]],[/\b(gen\d{3}) b.+49h/i],[d,[v,"Swiss"],[h,S]],[/\b(zur\d{3}) b/i],[d,[v,"Swiss"],[h,T]],[/\b((zeki)?tb.*\b) b/i],[d,[v,"Zeki"],[h,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],d,[h,T]],[/\b(ns-?\w{0,9}) b/i],[d,[v,"Insignia"],[h,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[v,"NextBook"],[h,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],d,[h,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],d,[h,S]],[/\b(ph-1) /i],[d,[v,"Essential"],[h,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[v,"Envizen"],[h,T]],[/\b(trio[-\w\. ]+) b/i],[d,[v,"MachSpeed"],[h,T]],[/\btu_(1491) b/i],[d,[v,"Rotor"],[h,T]],[/(shield[\w ]+) b/i],[d,[v,"Nvidia"],[h,T]],[/(sprint) (\w+)/i],[v,d,[h,S]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[v,A],[h,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[v,ke],[h,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[v,ke],[h,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,d,[h,j]],[/droid.+; (shield) bui/i],[d,[v,"Nvidia"],[h,j]],[/(playstation [345portablevi]+)/i],[d,[v,ee],[h,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[v,A],[h,j]],[/smart-tv.+(samsung)/i],[v,[h,D]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[v,U],[h,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,W],[h,D]],[/(apple) ?tv/i],[v,[d,Q+" TV"],[h,D]],[/crkey/i],[[d,_+"cast"],[v,C],[h,D]],[/droid.+aft(\w)( bui|\))/i],[d,[v,R],[h,D]],[/\(dtv[\);].+(aquos)/i],[d,[v,"Sharp"],[h,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[v,Lt],[d,Lt],[h,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,D]],[/((pebble))app/i],[v,d,[h,K]],[/droid.+; (glass) \d/i],[d,[v,C],[h,K]],[/droid.+; (wt63?0{2,3})\)/i],[d,[v,ke],[h,K]],[/(quest( 2)?)/i],[d,[v,xn],[h,K]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[h,ue]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[h,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,T]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[h,S]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,E+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[m,kt,Bn]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[m,kt,Bn]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,"Mac OS"],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,y]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,b+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/crkey\/([\d\.]+)/i],[m,[p,_+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,"Chromium OS"],m],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,m]]},$=function(I,L){if(typeof I===s&&(L=I,I=n),!(this instanceof $))return new $(I,L).getResult();var P=I||(typeof e!==f&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:i),H=L?zo(Fn,L):Fn;return this.getBrowser=function(){var O={};return O[p]=n,O[m]=n,Me.call(O,P,H.browser),O.major=Go(O.version),O},this.getCPU=function(){var O={};return O[k]=n,Me.call(O,P,H.cpu),O},this.getDevice=function(){var O={};return O[v]=n,O[d]=n,O[h]=n,Me.call(O,P,H.device),O},this.getEngine=function(){var O={};return O[p]=n,O[m]=n,Me.call(O,P,H.engine),O},this.getOS=function(){var O={};return O[p]=n,O[m]=n,Me.call(O,P,H.os),O},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return P},this.setUA=function(O){return P=typeof O===u&&O.length>be?Lt(O,be):O,this},this.setUA(P),this};$.VERSION=o,$.BROWSER=it([p,m,l]),$.CPU=it([k]),$.DEVICE=it([d,v,h,j,S,D,T,K,ue]),$.ENGINE=$.OS=it([p,m]),typeof t!==f?(typeof r!==f&&r.exports&&(t=r.exports=$),t.UAParser=$):typeof define===c&&define.amd?define(function(){return $}):typeof e!==f&&(e.UAParser=$);var Ee=typeof e!==f&&(e.jQuery||e.Zepto);if(Ee&&!Ee.ua){var ot=new $;Ee.ua=ot.getResult(),Ee.ua.get=function(){return ot.getUA()},Ee.ua.set=function(I){ot.setUA(I);var L=ot.getResult();for(var P in L)Ee.ua[P]=L[P]}}})(typeof window=="object"?window:t)}}),Jn=G({"node_modules/shimmer/index.js"(t,r){function e(u){return typeof u=="function"}var n=console.error.bind(console);function o(u,l,d){var p=!!u[l]&&u.propertyIsEnumerable(l);Object.defineProperty(u,l,{configurable:!0,enumerable:p,writable:!0,value:d})}function i(u){u&&u.logger&&(e(u.logger)?n=u.logger:n("new logger isn't a function, not replacing"))}function a(u,l,d){if(!u||!u[l]){n("no original function "+l+" to wrap");return}if(!d){n("no wrapper function"),n(new Error().stack);return}if(!e(u[l])||!e(d)){n("original object and wrapper must be functions");return}var p=u[l],h=d(p,l);return o(h,"__original",p),o(h,"__unwrap",function(){u[l]===h&&o(u,l,p)}),o(h,"__wrapped",!0),o(u,l,h),h}function c(u,l,d){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(l&&Array.isArray(l))){n("must provide one or more functions to wrap on modules");return}u.forEach(function(p){l.forEach(function(h){a(p,h,d)})})}function f(u,l){if(!u||!u[l]){n("no function to unwrap."),n(new Error().stack);return}if(!u[l].__unwrap)n("no original to unwrap to -- has "+l+" already been unwrapped?");else return u[l].__unwrap()}function s(u,l){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(l&&Array.isArray(l))){n("must provide one or more functions to unwrap on modules");return}u.forEach(function(d){l.forEach(function(p){f(d,p)})})}i.wrap=a,i.massWrap=c,i.unwrap=f,i.massUnwrap=s,r.exports=i}}),jt=G({"node_modules/aws-rum-web/node_modules/tslib/tslib.js"(t,r){var e,n,o,i,a,c,f,s,u,l,d,p,h,v,m,k,j,S,T,D,K,ue,be;(function(R){var Q=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(y){R(g(Q,g(y)))}):typeof r=="object"&&typeof r.exports=="object"?R(g(Q,g(r.exports))):R(g(Q));function g(y,w){return y!==Q&&(typeof Object.create=="function"?Object.defineProperty(y,"__esModule",{value:!0}):y.__esModule=!0),function(_,E){return y[_]=w?w(_,E):E}}})(function(R){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var w in y)y.hasOwnProperty(w)&&(g[w]=y[w])};e=function(g,y){Q(g,y);function w(){this.constructor=g}g.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)},n=Object.assign||function(g){for(var y,w=1,_=arguments.length;w<_;w++){y=arguments[w];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(g[E]=y[E])}return g},o=function(g,y){var w={};for(var _ in g)Object.prototype.hasOwnProperty.call(g,_)&&y.indexOf(_)<0&&(w[_]=g[_]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,_=Object.getOwnPropertySymbols(g);E<_.length;E++)y.indexOf(_[E])<0&&Object.prototype.propertyIsEnumerable.call(g,_[E])&&(w[_[E]]=g[_[E]]);return w},i=function(g,y,w,_){var E=arguments.length,b=E<3?y:_===null?_=Object.getOwnPropertyDescriptor(y,w):_,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(g,y,w,_);else for(var N=g.length-1;N>=0;N--)(C=g[N])&&(b=(E<3?C(b):E>3?C(y,w,b):C(y,w))||b);return E>3&&b&&Object.defineProperty(y,w,b),b},a=function(g,y){return function(w,_){y(w,_,g)}},c=function(g,y){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(g,y)},f=function(g,y,w,_){function E(b){return b instanceof w?b:new w(function(C){C(b)})}return new(w||(w=Promise))(function(b,C){function N(z){try{A(_.next(z))}catch(Y){C(Y)}}function W(z){try{A(_.throw(z))}catch(Y){C(Y)}}function A(z){z.done?b(z.value):E(z.value).then(N,W)}A((_=_.apply(g,y||[])).next())})},s=function(g,y){var w={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},_,E,b,C;return C={next:N(0),throw:N(1),return:N(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function N(A){return function(z){return W([A,z])}}function W(A){if(_)throw new TypeError("Generator is already executing.");for(;w;)try{if(_=1,E&&(b=A[0]&2?E.return:A[0]?E.throw||((b=E.return)&&b.call(E),0):E.next)&&!(b=b.call(E,A[1])).done)return b;switch(E=0,b&&(A=[A[0]&2,b.value]),A[0]){case 0:case 1:b=A;break;case 4:return w.label++,{value:A[1],done:!1};case 5:w.label++,E=A[1],A=[0];continue;case 7:A=w.ops.pop(),w.trys.pop();continue;default:if(b=w.trys,!(b=b.length>0&&b[b.length-1])&&(A[0]===6||A[0]===2)){w=0;continue}if(A[0]===3&&(!b||A[1]>b[0]&&A[1]<b[3])){w.label=A[1];break}if(A[0]===6&&w.label<b[1]){w.label=b[1],b=A;break}if(b&&w.label<b[2]){w.label=b[2],w.ops.push(A);break}b[2]&&w.ops.pop(),w.trys.pop();continue}A=y.call(g,w)}catch(z){A=[6,z],E=0}finally{_=b=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}},be=function(g,y,w,_){_===void 0&&(_=w),g[_]=y[w]},u=function(g,y){for(var w in g)w!=="default"&&!y.hasOwnProperty(w)&&(y[w]=g[w])},l=function(g){var y=typeof Symbol=="function"&&Symbol.iterator,w=y&&g[y],_=0;if(w)return w.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&_>=g.length&&(g=void 0),{value:g&&g[_++],done:!g}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(g,y){var w=typeof Symbol=="function"&&g[Symbol.iterator];if(!w)return g;var _=w.call(g),E,b=[],C;try{for(;(y===void 0||y-- >0)&&!(E=_.next()).done;)b.push(E.value)}catch(N){C={error:N}}finally{try{E&&!E.done&&(w=_.return)&&w.call(_)}finally{if(C)throw C.error}}return b},p=function(){for(var g=[],y=0;y<arguments.length;y++)g=g.concat(d(arguments[y]));return g},h=function(){for(var g=0,y=0,w=arguments.length;y<w;y++)g+=arguments[y].length;for(var _=Array(g),E=0,y=0;y<w;y++)for(var b=arguments[y],C=0,N=b.length;C<N;C++,E++)_[E]=b[C];return _},v=function(g){return this instanceof v?(this.v=g,this):new v(g)},m=function(g,y,w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=w.apply(g,y||[]),E,b=[];return E={},C("next"),C("throw"),C("return"),E[Symbol.asyncIterator]=function(){return this},E;function C(U){_[U]&&(E[U]=function(ee){return new Promise(function(_e,ke){b.push([U,ee,_e,ke])>1||N(U,ee)})})}function N(U,ee){try{W(_[U](ee))}catch(_e){Y(b[0][3],_e)}}function W(U){U.value instanceof v?Promise.resolve(U.value.v).then(A,z):Y(b[0][2],U)}function A(U){N("next",U)}function z(U){N("throw",U)}function Y(U,ee){U(ee),b.shift(),b.length&&N(b[0][0],b[0][1])}},k=function(g){var y,w;return y={},_("next"),_("throw",function(E){throw E}),_("return"),y[Symbol.iterator]=function(){return this},y;function _(E,b){y[E]=g[E]?function(C){return(w=!w)?{value:v(g[E](C)),done:E==="return"}:b?b(C):C}:b}},j=function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=g[Symbol.asyncIterator],w;return y?y.call(g):(g=typeof l=="function"?l(g):g[Symbol.iterator](),w={},_("next"),_("throw"),_("return"),w[Symbol.asyncIterator]=function(){return this},w);function _(b){w[b]=g[b]&&function(C){return new Promise(function(N,W){C=g[b](C),E(N,W,C.done,C.value)})}}function E(b,C,N,W){Promise.resolve(W).then(function(A){b({value:A,done:N})},C)}},S=function(g,y){return Object.defineProperty?Object.defineProperty(g,"raw",{value:y}):g.raw=y,g},T=function(g){if(g&&g.__esModule)return g;var y={};if(g!=null)for(var w in g)Object.hasOwnProperty.call(g,w)&&(y[w]=g[w]);return y.default=g,y},D=function(g){return g&&g.__esModule?g:{default:g}},K=function(g,y){if(!y.has(g))throw new TypeError("attempted to get private field on non-instance");return y.get(g)},ue=function(g,y,w){if(!y.has(g))throw new TypeError("attempted to set private field on non-instance");return y.set(g,w),w},R("__extends",e),R("__assign",n),R("__rest",o),R("__decorate",i),R("__param",a),R("__metadata",c),R("__awaiter",f),R("__generator",s),R("__exportStar",u),R("__createBinding",be),R("__values",l),R("__read",d),R("__spread",p),R("__spreadArrays",h),R("__await",v),R("__asyncGenerator",m),R("__asyncDelegator",k),R("__asyncValues",j),R("__makeTemplateObject",S),R("__importStar",T),R("__importDefault",D),R("__classPrivateFieldGet",K),R("__classPrivateFieldSet",ue)})}}),Ht=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([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]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),Zn=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Ht(),e=function(){function n(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[i++],a--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(i.setUint8(this.bufferLength++,128),a%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var c=this.bufferLength;c<r.BLOCK_SIZE;c++)i.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<r.BLOCK_SIZE-8;c++)i.setUint8(c,0);i.setUint32(r.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),i.setUint32(r.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(r.DIGEST_LENGTH),c=0;c<8;c++)f[c*4]=this.state[c]>>>24&255,f[c*4+1]=this.state[c]>>>16&255,f[c*4+2]=this.state[c]>>>8&255,f[c*4+3]=this.state[c]>>>0&255;return f},n.prototype.hashBuffer=function(){for(var o=this,i=o.buffer,a=o.state,c=a[0],f=a[1],s=a[2],u=a[3],l=a[4],d=a[5],p=a[6],h=a[7],v=0;v<r.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(i[v*4]&255)<<24|(i[v*4+1]&255)<<16|(i[v*4+2]&255)<<8|i[v*4+3]&255;else{var m=this.temp[v-2],k=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10;m=this.temp[v-15];var j=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;this.temp[v]=(k+this.temp[v-7]|0)+(j+this.temp[v-16]|0)}var S=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&d^~l&p)|0)+(h+(r.KEY[v]+this.temp[v]|0)|0)|0,T=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&f^c&s^f&s)|0;h=p,p=d,d=l,l=u+S|0,u=s,s=f,f=c,c=S+T|0}a[0]+=c,a[1]+=f,a[2]+=s,a[3]+=u,a[4]+=l,a[5]+=d,a[6]+=p,a[7]+=h},n}();t.RawSha256=e}}),Qn=G({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=n=>{const o=[];for(let i=0,a=n.length;i<a;i++){const c=n.charCodeAt(i);if(c<128)o.push(c);else if(c<2048)o.push(c>>6|192,c&63|128);else if(i+1<n.length&&(c&64512)===55296&&(n.charCodeAt(i+1)&64512)===56320){const f=65536+((c&1023)<<10)+(n.charCodeAt(++i)&1023);o.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else o.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(o)};t.fromUtf8=r;var e=n=>{let o="";for(let i=0,a=n.length;i<a;i++){const c=n[i];if(c<128)o+=String.fromCharCode(c);else if(192<=c&&c<224){const f=n[++i];o+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const f=[c,n[++i],n[++i],n[++i]],s="%"+f.map(u=>u.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((c&15)<<12|(n[++i]&63)<<6|n[++i]&63)}return o};t.toUtf8=e}}),er=G({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;function r(n){return new TextEncoder().encode(n)}t.fromUtf8=r;function e(n){return new TextDecoder("utf-8").decode(n)}t.toUtf8=e}}),tr=G({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=Qn(),e=er(),n=i=>typeof TextEncoder=="function"?(0,e.fromUtf8)(i):(0,r.fromUtf8)(i);t.fromUtf8=n;var o=i=>typeof TextDecoder=="function"?(0,e.toUtf8)(i):(0,r.toUtf8)(i);t.toUtf8=o}}),nr=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=tr(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:r.fromUtf8;function n(o){return o instanceof Uint8Array?o:typeof o=="string"?e(o):ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(o)}t.convertToBuffer=n}}),rr=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function r(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=r}}),ir=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/numToUint8.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0;function r(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=r}}),or=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0;function r(e){if(!Array.from){for(var n=new Uint32Array(e.length),o=0;o<e.length;)n[o]=e[o];return n}return Uint32Array.from(e)}t.uint32ArrayFrom=r}}),ar=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=nr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=rr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=ir();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=or();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),sr=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=jt(),e=Ht(),n=Zn(),o=ar(),i=function(){function c(f){if(this.hash=new n.RawSha256,f){this.outer=new n.RawSha256;var s=a(f),u=new Uint8Array(e.BLOCK_SIZE);u.set(s);for(var l=0;l<e.BLOCK_SIZE;l++)s[l]^=54,u[l]^=92;this.hash.update(s),this.outer.update(u);for(var l=0;l<s.byteLength;l++)s[l]=0}}return c.prototype.update=function(f){if(!((0,o.isEmptyData)(f)||this.error))try{this.hash.update((0,o.convertToBuffer)(f))}catch(s){this.error=s}},c.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},c.prototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(f){return[2,this.digestSync()]})})},c}();t.Sha256=i;function a(c){var f=(0,o.convertToBuffer)(c);if(f.byteLength>e.BLOCK_SIZE){var s=new n.RawSha256;s.update(f),f=s.digest()}var u=new Uint8Array(e.BLOCK_SIZE);return u.set(f),u}}}),cr=G({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=jt();(0,r.__exportStar)(sr(),t)}}),ie=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const t=new ie({...this,headers:{...this.headers}});return t.query&&(t.query=ur(t.query)),t}};function ur(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var Se=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},ct=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},ut=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},fr="POST",lr="application/x-amz-json-1.1",dr="https:",hr="AWSCognitoIdentityService.GetId",vr="AWSCognitoIdentityService.GetOpenIdToken",pr="AWSCognitoIdentityService.GetCredentialsForIdentity",gr=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},Ut=function(){function t(r){var e=this;this.getId=function(n){return ct(e,void 0,void 0,function(){var o,i;return ut(this,function(a){return o=JSON.stringify(n),i=this.getHttpRequest(hr,o),[2,this.fetchRequestHandler.handle(i).then(function(c){var f=c.response;return f.body.getReader().read().then(function(s){var u=s.value;return JSON.parse(String.fromCharCode.apply(null,u))})}).catch(function(){throw new Error("CWR: Failed to retrieve Cognito identity")})]})})},this.getOpenIdToken=function(n){return ct(e,void 0,void 0,function(){var o,i;return ut(this,function(a){return o=JSON.stringify(n),i=this.getHttpRequest(vr,o),[2,this.fetchRequestHandler.handle(i).then(function(c){var f=c.response;return f.body.getReader().read().then(function(s){var u=s.value;return JSON.parse(String.fromCharCode.apply(null,u))})}).catch(function(){throw new Error("CWR: Failed to retrieve Cognito OpenId token")})]})})},this.getCredentialsForIdentity=function(n){return ct(e,void 0,void 0,function(){var o,i;return ut(this,function(a){return o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(pr,o),[2,this.fetchRequestHandler.handle(i).then(function(c){var f=c.response;return f.body.getReader().read().then(function(s){var u=s.value,l=JSON.parse(String.fromCharCode.apply(null,u)),d=l.IdentityId,p=l.Credentials,h=p.AccessKeyId,v=p.Expiration,m=p.SecretAccessKey,k=p.SessionToken;return{identityId:d,accessKeyId:h,secretAccessKey:m,sessionToken:k,expiration:new Date(v*1e3)}})}).catch(function(){throw new Error("CWR: Failed to retrieve credentials for Cognito identity")})]})})},this.getHttpRequest=function(n,o){return new ie({method:fr,headers:{"content-type":lr,"x-amz-target":n},protocol:dr,hostname:e.hostname,body:o})},this.hostname="cognito-identity."+r.region+".amazonaws.com",this.fetchRequestHandler=r.fetchRequestHandler}return t}(),oe=t=>encodeURIComponent(t).replace(/[!'()*]/g,mr),mr=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function ft(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=oe(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${oe(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${oe(n)}`),r.push(o)}}return r.join("&")}function yr(t=0){return new Promise((r,e)=>{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",e(n)},t)})}var lt=class{constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const e=this.config.requestTimeout;if(r?.aborted){const l=new Error("Request aborted");return l.name="AbortError",Promise.reject(l)}let n=t.path;if(t.query){const l=ft(t.query);l&&(n+=`?${l}`)}const{port:o,method:i}=t,a=`${t.protocol}//${t.hostname}${o?`:${o}`:""}${n}`,f={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(f.signal=r);const s=new Request(a,f),u=[fetch(s).then(l=>{const d=l.headers,p={};for(const v of d.entries())p[v[0]]=v[1];return l.body!==void 0?{response:new Se({headers:p,statusCode:l.status,body:l.body})}:l.blob().then(v=>({response:new Se({headers:p,statusCode:l.status,body:v})}))}),yr(e)];return r&&u.push(new Promise((l,d)=>{r.onabort=()=>{const p=new Error("Request aborted");p.name="AbortError",d(p)}})),Promise.race(u)}},fe={},Te=new Array(64);for(let t=0,r="A".charCodeAt(0),e="Z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r);fe[n]=t,Te[t]=n}for(let t=0,r="a".charCodeAt(0),e="z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r),o=t+26;fe[n]=o,Te[o]=n}for(let t=0;t<10;t++){fe[t.toString(10)]=t+52;const r=t.toString(10),e=t+52;fe[r]=e,Te[e]=r}fe["+"]=62,Te[62]="+",fe["/"]=63,Te[63]="/";var He=function(){return He=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},He.apply(this,arguments)},wr=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},br=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},_r="POST",Er="application/x-www-form-urlencoded",Sr="https:",Tr="AssumeRoleWithWebIdentity",Cr="2011-06-15",Ar=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return wr(e,void 0,void 0,function(){var o,i,a;return br(this,function(c){return o=He(He({},n),{Action:Tr,Version:Cr}),i=new URLSearchParams(Object.entries(o)).toString(),a=new ie({method:_r,headers:{"content-type":Er,host:this.hostname},protocol:Sr,hostname:this.hostname,body:i}),[2,this.fetchRequestHandler.handle(a).then(function(f){var s=f.response;return s.body.getReader().read().then(function(u){var l=u.value,d=String.fromCharCode.apply(null,l);return{accessKeyId:d.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:d.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:d.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(d.split("<Expiration>")[1].split("</Expiration>")[0])}})}).catch(function(){throw new Error("CWR: Failed to retrieve credentials from STS")})]})})},this.hostname="sts."+r.region+".amazonaws.com",this.fetchRequestHandler=r.fetchRequestHandler}return t}(),Ue="cwr_c",Dt="cwr_s",xt="cwr_u",qt=3e4,De=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},xe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ir=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return De(e,void 0,void 0,function(){return xe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return De(e,void 0,void 0,function(){var o=this;return xe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return De(e,void 0,void 0,function(){var o=this;return xe(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Ue))}catch{return c()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return De(e,void 0,void 0,function(){var o=this;return xe(this,function(i){return[2,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}).then(function(a){return o.cognitoIdentityClient.getOpenIdToken(a)}).then(function(a){return o.stsClient.assumeRoleWithWebIdentity({RoleArn:o.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:a.Token})}).then(function(a){o.credentials=a;try{localStorage.setItem(Ue,JSON.stringify(a))}catch{}return a})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.stsClient=new Ar({fetchRequestHandler:new lt,region:n}),this.cognitoIdentityClient=new Ut({fetchRequestHandler:new lt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-qt);return new Date>r},t}(),qe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Be=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Pr=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return qe(e,void 0,void 0,function(){return Be(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return qe(e,void 0,void 0,function(){var o=this;return Be(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return qe(e,void 0,void 0,function(){var o=this;return Be(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Ue))}catch{c()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return qe(e,void 0,void 0,function(){var o,i=this;return Be(this,function(a){return o=gr({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){i.credentials=c;try{localStorage.setItem(Ue,JSON.stringify(c))}catch{}return c})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.cognitoIdentityClient=new Ut({fetchRequestHandler:new lt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-qt);return new Date>r},t}(),J="com.amazon.rum",Or="com.amazonaws.rum",Fe=J+".http_event",Bt=J+".xray_trace_event",Rr=J+".largest_contentful_paint_event",Lr=J+".first_input_delay_event",kr=J+".cumulative_layout_shift_event",dt=J+".performance_navigation_event",Nr=J+".performance_resource_event",Mr=J+".dom_event",jr=J+".js_error_event",Hr=J+".page_view_event",ae=function(){function t(r){this.enabled=!0,this.pluginId=t.generatePluginId(r)}return t.generatePluginId=function(r){return t.idPrefix+"."+r},t.prototype.load=function(r){var e;this.context=r,(e=this.onload)===null||e===void 0||e.call(this)},t.prototype.getPluginId=function(){return this.pluginId},t.idPrefix=Or,t}(),Ur=function(){function t(r){this.context=r,this.plugins=new Map}return t.prototype.addPlugin=function(r){var e=r.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'+e+'" already defined in the PluginManager');this.plugins.set(e,r),r.load(this.context)},t.prototype.updatePlugin=function(r,e){var n,o=this.getPlugin(r);(n=o?.update)===null||n===void 0||n.call(o,e)},t.prototype.enable=function(){this.plugins.forEach(function(r){return r.enable()})},t.prototype.disable=function(){this.plugins.forEach(function(r){return r.disable()})},t.prototype.hasPlugin=function(r){return Boolean(this.getPlugin(r))},t.prototype.record=function(r,e){var n=this.getPlugin(r);if(n?.record instanceof Function)n.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},t.prototype.getPlugin=function(r){var e;return(e=this.plugins.get(r))!==null&&e!==void 0?e:this.plugins.get(ae.generatePluginId(r))},t}(),Dr=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),se=function(){return se=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},se.apply(this,arguments)},Ft="dom-event",xr={interactionId:function(){},enableMutationObserver:!1,events:[]},qr=function(t){Dr(r,t);function r(e){var n=t.call(this,Ft)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=se(se({},xr),e),n}return r.getElementInfo=function(e){var n={name:"UNKNOWN"};return e.target instanceof Node&&(n.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(n.id=e.target.id),n},r.prototype.enable=function(){var e=this;if(document.readyState!=="complete"){window.addEventListener("load",function(){return e.enable()});return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},r.prototype.disable=function(){!this.enabled||(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},r.prototype.update=function(e){var n=this;e.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},r.prototype.onload=function(){this.enable()},r.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(n){return e.removeEventHandler(n)})},r.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(n){return e.addEventHandler(n)})},r.prototype.getEventListener=function(e){var n=this;return function(o){var i,a=r.getElementInfo(o),c=n.config.interactionId(o),f=se(se(se({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((i=n.context)===null||i===void 0)&&i.record&&n.context.record(Mr,f)}},r.prototype.addEventHandler=function(e){var n=e.event,o=this.getEventListener(e.cssLocator),i=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var c=document.querySelectorAll(e.cssLocator);c.forEach(function(s){i.push(s)})}else if(e.elementId){var f=document.getElementById(e.elementId);f&&i.push(f)}else e.element&&i.push(e.element);i.forEach(function(s){s.addEventListener(n,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},r.prototype.removeEventHandler=function(e){var n=this.eventListenerMap.get(e);n&&(n.forEach(function(o){var i=o.element,a=o.eventListener;i.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},r.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},r}(ae),Br=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Fr=function(t){var r={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(r.type=t.type),t.message!==void 0&&(r.message=t.message),t.filename!==void 0&&(r.filename=t.filename),t.lineno!==void 0&&(r.lineno=t.lineno),t.colno!==void 0&&(r.colno=t.colno),r},Vr=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},zr=function(t,r,e){r.name&&(t.type=r.name),r.message&&(t.message=r.message),r.fileName&&(t.filename=r.fileName),r.lineNumber&&(t.lineno=r.lineNumber),r.columnNumber&&(t.colno=r.columnNumber),e&&r.stack&&(t.stack=r.stack.length>e?r.stack.substring(0,e)+"...":r.stack)},Vt=function(t){return t!==Object(t)&&t!==void 0&&t!==null},ht=function(t,r){var e=Fr(t),n=t.error;return Br(n)?zr(e,n,r):Vt(n)&&Vr(e,n),e},Gr=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ve=function(){return Ve=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ve.apply(this,arguments)},zt="js-error",Xr={stackTraceLength:200,ignore:function(){return!1}},Wr=function(t){Gr(r,t);function r(e){var n=t.call(this,zt)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)},n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=Ve(Ve({},Xr),e),n}return r.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},r.prototype.disable=function(){!this.enabled||(this.removeEventHandler(),this.enabled=!1)},r.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},r.prototype.onload=function(){this.addEventHandler()},r.prototype.recordJsErrorEvent=function(e){var n;(n=this.context)===null||n===void 0||n.record(jr,ht(e,this.config.stackTraceLength))},r.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},r.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},r}(ae),Gt=function(t,r,e,n,o){var i=t+"=";i+=r||"",o!==void 0?i+="; Expires="+o.toUTCString():n!==void 0&&(i+="; Expires="+$r(n).toUTCString()),i+="; Domain="+e.domain,i+="; Path="+e.path,i+="; SameSite="+e.sameSite,i+=e.secure?"; Secure":"",document.cookie=i},$r=function(t){return new Date(new Date().getTime()+t*1e3)},Xt=function(t){for(var r=document.cookie.split("; "),e=0,n=r;e<n.length;e++){var o=n[e],i=o.split("=");if(i[0]===t)return i[1]}return""},ze,Kr=new Uint8Array(16);function Yr(){if(!ze&&(ze=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ze))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ze(Kr)}var Jr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Zr(t){return typeof t=="string"&&Jr.test(t)}var Wt=Zr,x=[];for(Z=0;Z<256;++Z)x.push((Z+256).toString(16).substr(1));var Z;function Qr(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(x[t[r+0]]+x[t[r+1]]+x[t[r+2]]+x[t[r+3]]+"-"+x[t[r+4]]+x[t[r+5]]+"-"+x[t[r+6]]+x[t[r+7]]+"-"+x[t[r+8]]+x[t[r+9]]+"-"+x[t[r+10]]+x[t[r+11]]+x[t[r+12]]+x[t[r+13]]+x[t[r+14]]+x[t[r+15]]).toLowerCase();if(!Wt(e))throw TypeError("Stringified UUID is invalid");return e}var $t=Qr;function ei(t){if(!Wt(t))throw TypeError("Invalid UUID");var r,e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}var ti=ei;function ni(t){t=unescape(encodeURIComponent(t));for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var ri="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ii="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Kt(t,r,e){function n(o,i,a,c){if(typeof o=="string"&&(o=ni(o)),typeof i=="string"&&(i=ti(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var f=new Uint8Array(16+o.length);if(f.set(i),f.set(o,i.length),f=e(f),f[6]=f[6]&15|r,f[8]=f[8]&63|128,a){c=c||0;for(var s=0;s<16;++s)a[c+s]=f[s];return a}return $t(f)}try{n.name=t}catch{}return n.DNS=ri,n.URL=ii,n}function oi(t){if(typeof t=="string"){var r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(var e=0;e<r.length;++e)t[e]=r.charCodeAt(e)}return ai(si(ci(t),t.length*8))}function ai(t){for(var r=[],e=t.length*32,n="0123456789abcdef",o=0;o<e;o+=8){var i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);r.push(a)}return r}function Yt(t){return(t+64>>>9<<4)+14+1}function si(t,r){t[r>>5]|=128<<r%32,t[Yt(r)-1]=r;for(var e=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var c=e,f=n,s=o,u=i;e=q(e,n,o,i,t[a],7,-680876936),i=q(i,e,n,o,t[a+1],12,-389564586),o=q(o,i,e,n,t[a+2],17,606105819),n=q(n,o,i,e,t[a+3],22,-1044525330),e=q(e,n,o,i,t[a+4],7,-176418897),i=q(i,e,n,o,t[a+5],12,1200080426),o=q(o,i,e,n,t[a+6],17,-1473231341),n=q(n,o,i,e,t[a+7],22,-45705983),e=q(e,n,o,i,t[a+8],7,1770035416),i=q(i,e,n,o,t[a+9],12,-1958414417),o=q(o,i,e,n,t[a+10],17,-42063),n=q(n,o,i,e,t[a+11],22,-1990404162),e=q(e,n,o,i,t[a+12],7,1804603682),i=q(i,e,n,o,t[a+13],12,-40341101),o=q(o,i,e,n,t[a+14],17,-1502002290),n=q(n,o,i,e,t[a+15],22,1236535329),e=B(e,n,o,i,t[a+1],5,-165796510),i=B(i,e,n,o,t[a+6],9,-1069501632),o=B(o,i,e,n,t[a+11],14,643717713),n=B(n,o,i,e,t[a],20,-373897302),e=B(e,n,o,i,t[a+5],5,-701558691),i=B(i,e,n,o,t[a+10],9,38016083),o=B(o,i,e,n,t[a+15],14,-660478335),n=B(n,o,i,e,t[a+4],20,-405537848),e=B(e,n,o,i,t[a+9],5,568446438),i=B(i,e,n,o,t[a+14],9,-1019803690),o=B(o,i,e,n,t[a+3],14,-187363961),n=B(n,o,i,e,t[a+8],20,1163531501),e=B(e,n,o,i,t[a+13],5,-1444681467),i=B(i,e,n,o,t[a+2],9,-51403784),o=B(o,i,e,n,t[a+7],14,1735328473),n=B(n,o,i,e,t[a+12],20,-1926607734),e=F(e,n,o,i,t[a+5],4,-378558),i=F(i,e,n,o,t[a+8],11,-2022574463),o=F(o,i,e,n,t[a+11],16,1839030562),n=F(n,o,i,e,t[a+14],23,-35309556),e=F(e,n,o,i,t[a+1],4,-1530992060),i=F(i,e,n,o,t[a+4],11,1272893353),o=F(o,i,e,n,t[a+7],16,-155497632),n=F(n,o,i,e,t[a+10],23,-1094730640),e=F(e,n,o,i,t[a+13],4,681279174),i=F(i,e,n,o,t[a],11,-358537222),o=F(o,i,e,n,t[a+3],16,-722521979),n=F(n,o,i,e,t[a+6],23,76029189),e=F(e,n,o,i,t[a+9],4,-640364487),i=F(i,e,n,o,t[a+12],11,-421815835),o=F(o,i,e,n,t[a+15],16,530742520),n=F(n,o,i,e,t[a+2],23,-995338651),e=V(e,n,o,i,t[a],6,-198630844),i=V(i,e,n,o,t[a+7],10,1126891415),o=V(o,i,e,n,t[a+14],15,-1416354905),n=V(n,o,i,e,t[a+5],21,-57434055),e=V(e,n,o,i,t[a+12],6,1700485571),i=V(i,e,n,o,t[a+3],10,-1894986606),o=V(o,i,e,n,t[a+10],15,-1051523),n=V(n,o,i,e,t[a+1],21,-2054922799),e=V(e,n,o,i,t[a+8],6,1873313359),i=V(i,e,n,o,t[a+15],10,-30611744),o=V(o,i,e,n,t[a+6],15,-1560198380),n=V(n,o,i,e,t[a+13],21,1309151649),e=V(e,n,o,i,t[a+4],6,-145523070),i=V(i,e,n,o,t[a+11],10,-1120210379),o=V(o,i,e,n,t[a+2],15,718787259),n=V(n,o,i,e,t[a+9],21,-343485551),e=ne(e,c),n=ne(n,f),o=ne(o,s),i=ne(i,u)}return[e,n,o,i]}function ci(t){if(t.length===0)return[];for(var r=t.length*8,e=new Uint32Array(Yt(r)),n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function ne(t,r){var e=(t&65535)+(r&65535),n=(t>>16)+(r>>16)+(e>>16);return n<<16|e&65535}function ui(t,r){return t<<r|t>>>32-r}function Ge(t,r,e,n,o,i){return ne(ui(ne(ne(r,t),ne(n,i)),o),e)}function q(t,r,e,n,o,i,a){return Ge(r&e|~r&n,t,r,o,i,a)}function B(t,r,e,n,o,i,a){return Ge(r&n|e&~n,t,r,o,i,a)}function F(t,r,e,n,o,i,a){return Ge(r^e^n,t,r,o,i,a)}function V(t,r,e,n,o,i,a){return Ge(e^(r|~n),t,r,o,i,a)}var fi=oi;Kt("v3",48,fi);function li(t,r,e){t=t||{};var n=t.random||(t.rng||Yr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(var o=0;o<16;++o)r[e+o]=n[o];return r}return $t(n)}var Ce=li;function di(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function vt(t,r){return t<<r|t>>>32-r}function hi(t){var r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),c=new Array(a),f=0;f<a;++f){for(var s=new Uint32Array(16),u=0;u<16;++u)s[u]=t[f*64+u*4]<<24|t[f*64+u*4+1]<<16|t[f*64+u*4+2]<<8|t[f*64+u*4+3];c[f]=s}c[a-1][14]=(t.length-1)*8/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=(t.length-1)*8&4294967295;for(var l=0;l<a;++l){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=c[l][p];for(var h=16;h<80;++h)d[h]=vt(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var v=e[0],m=e[1],k=e[2],j=e[3],S=e[4],T=0;T<80;++T){var D=Math.floor(T/20),K=vt(v,5)+di(D,m,k,j)+S+r[D]+d[T]>>>0;S=j,j=k,k=vt(m,30)>>>0,m=v,v=K}e[0]=e[0]+v>>>0,e[1]=e[1]+m>>>0,e[2]=e[2]+k>>>0,e[3]=e[3]+j>>>0,e[4]=e[4]+S>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var vi=hi;Kt("v5",80,vi);var pi=st(Yn()),le="00000000-0000-0000-0000-000000000000",Xe="unknown",gi="desktop",mi="web",yi="com.amazon.rum.session_start_event",wi=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:le,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.getSessionFromCookie()}return t.prototype.getSession=function(){return this.session.sessionId!==le&&!this.useCookies()?this.session={sessionId:le,record:this.sample(),eventCount:0,page:this.session.page}:this.session.sessionId===le&&this.useCookies()?this.createSession():this.session.sessionId!==le&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.getUserId=function(){return this.useCookies()?this.userId:le},t.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},t.prototype.initializeUser=function(){var r="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(r=this.getUserIdCookie(),this.userId=r||Ce(),this.createOrRenewUserCookie(r,this.userExpiry)):this.userId=Ce()},t.prototype.createOrRenewSessionCookie=function(r,e){btoa&&Gt(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){Gt(xt,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return Xt(xt)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=Xt(this.sessionCookieName());if(r&&atob)try{this.session=JSON.parse(atob(r)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}catch{}}},t.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},t.prototype.createSession=function(){this.session={sessionId:Ce(),record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),this.record(this.session,yi,{version:"1.0.0"})},t.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},t.prototype.collectAttributes=function(){var r=new pi.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:Xe,browserVersion:r.browser.version?r.browser.version:Xe,osName:r.os.name?r.os.name:Xe,osVersion:r.os.version?r.os.version:Xe,deviceType:r.device.type?r.device.type:gi,platformType:mi,domain:window.location.hostname}},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},t.prototype.sessionCookieName=function(){return this.config.cookieAttributes.unique?Dt+"_"+this.appMonitorDetails.id:Dt},t}(),We=st(Jn()),bi=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(t){bi(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.enable=e.patch.bind(e,!0),e.disable=e.patch.bind(e,!1),e.enabled=!1,e}return r.prototype.patch=function(e){if(e===void 0&&(e=!0),this.enabled!==e){this.enabled=e;for(var n=e?We.wrap.bind(We):We.unwrap.bind(We),o=0,i=this.patches;o<i.length;o++){var a=i[o];n(a.nodule,a.name,e?a.wrapper():void 0)}}},r}(ae),_i=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ei=function(t){_i(r,t);function r(e,n,o){var i=t.call(this,"virtual-page-load-timer")||this;return i.sendWrapper=function(){var a=i;return function(c){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),c.apply(this,arguments)}}},i.endTracking=function(a){var c=Date.now(),f=a.target;f.removeEventListener("loadend",i.endTracking),i.removeXhr(f,c)},i.fetch=function(a,c,f,s,u){return a.apply(c,f).catch(function(l){throw l}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){var a=i;return function(c){return function(f,s){return a.fetchCounter+=1,a.fetch(c,this,arguments,f,s)}}},i.decrementFetchCounter=function(){i.isPageLoaded||(i.latestEndTime=Date.now()),i.fetchCounter-=1},i.checkLoadStatus=function(){i.ongoingRequests.size===0&&i.fetchCounter===0&&(clearInterval(i.periodicCheckerId),clearTimeout(i.timeoutCheckerId),i.domMutationObserver.disconnect(),i.recordRouteChangeNavigationEvent(i.pageManager.getPage()),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.isPageLoaded=!0)},i.declareTimeout=function(){clearInterval(i.periodicCheckerId),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver.disconnect(),i.isPageLoaded=!0},i.resetInterval=function(){i.latestEndTime=Date.now(),clearInterval(i.periodicCheckerId),i.periodicCheckerId=setInterval(i.checkLoadStatus,i.config.routeChangeComplete)},i.moveItemsFromBuffer=function(a){i.ongoingRequests.add(a)},i.updateLatestInteractionTime=function(a){i.latestInteractionTime=Date.now()},i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver=new MutationObserver(i.resetInterval),i.ongoingRequests=new Set,i.requestBuffer=new Set,i.fetchCounter=0,i.isPageLoaded=!0,i.latestEndTime=0,i.latestInteractionTime=0,i.config=n,i.pageManager=e,i.record=o,i.enable(),document.addEventListener("mousedown",i.updateLatestInteractionTime),document.addEventListener("keydown",i.updateLatestInteractionTime),i}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.startTiming=function(){this.latestEndTime=Date.now(),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear()},r.prototype.recordXhr=function(e){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},r.prototype.removeXhr=function(e,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=n):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},r.prototype.recordRouteChangeNavigationEvent=function(e){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(dt,n)},r}($e),Si=function(){function t(r,e){this.TIMEOUT=1e3,this.config=r,this.record=e,this.page=void 0,this.resumed=void 0,this.recordInteraction=!1,this.virtualPageLoadTimer=new Ei(this,r,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(r,e){this.recordInteraction=!0,this.resumed={pageId:r,interaction:e,start:0}},t.prototype.recordPageView=function(r){var e;if(typeof r=="string"?e=r:e=r.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page&&this.resumed)this.createResumedPage(e);else if(!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(e);else return;this.collectAttributes(typeof r=="object"?r:void 0),this.recordPageViewEvent()},t.prototype.createResumedPage=function(r){this.page={pageId:r,parentPageId:this.resumed.pageId,interaction:this.resumed.interaction+1,start:Date.now()},this.resumed=void 0},t.prototype.createNextPage=function(r){var e=Date.now(),n=this.virtualPageLoadTimer.latestInteractionTime;e-n<=this.TIMEOUT&&(e=n,this.virtualPageLoadTimer.startTiming()),this.page={pageId:r,parentPageId:this.page.pageId,interaction:this.page.interaction+1,start:e}},t.prototype.createLandingPage=function(r){this.page={pageId:r,interaction:0,start:Date.now()}},t.prototype.collectAttributes=function(r){var e=this;this.attributes={title:document.title,pageId:this.page.pageId},this.recordInteraction&&(this.attributes.interaction=this.page.interaction,this.page.parentPageId!==void 0&&(this.attributes.parentPageId=this.page.parentPageId)),r&&Object.keys(r).forEach(function(n){e.attributes[n]=r[n]})},t.prototype.createPageViewEvent=function(){var r={version:"1.0.0",pageId:this.page.pageId};return this.recordInteraction&&(r.interaction=this.page.interaction,r.pageInteractionId=this.page.pageId+"-"+this.page.interaction,this.page.parentPageId!==void 0&&(r.parentPageInteractionId=this.page.parentPageId+"-"+(this.page.interaction-1))),r},t.prototype.recordPageViewEvent=function(){this.record(Hr,this.createPageViewEvent())},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t}(),Ke=function(){return Ke=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ke.apply(this,arguments)},Ti=function(){function t(r,e){var n=this;this.events=[],this.recordPageView=function(o){n.isCurrentUrlAllowed()&&n.pageManager.recordPageView(o)},this.recordEvent=function(o,i){if(!!n.enabled&&n.isCurrentUrlAllowed()){var a=n.sessionManager.getSession();n.sessionManager.incrementSessionEventCount(),n.canRecord(a)&&n.addRecordToCache(o,i)}},this.getSession=function(){if(n.isCurrentUrlAllowed())return n.sessionManager.getSession()},this.recordSessionInitEvent=function(o,i,a){!n.enabled||(n.sessionManager.incrementSessionEventCount(),n.canRecord(o)&&n.addRecordToCache(i,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=n.config.sessionEventLimit||n.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,i){if(!!n.enabled){n.events.length===n.config.eventCacheSize&&n.events.shift();var a=Ke(Ke({version:"1.0.0"},n.sessionManager.getAttributes()),n.pageManager.getAttributes());n.events.push({details:JSON.stringify(i),id:Ce(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=r,this.config=e,this.enabled=!0,this.pageManager=new Si(e,this.recordEvent),this.sessionManager=new wi(r,e,this.recordSessionInitEvent,this.pageManager)}return t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.hasEvents=function(){return this.events.length!==0},t.prototype.getEventBatch=function(){var r=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(r=this.events,this.events=[]):r=this.events.splice(0,this.config.batchLimit)),r},t.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},t.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},t.prototype.isCurrentUrlAllowed=function(){var r=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(r)}),n=this.config.pagesToInclude.some(function(o){return o.test(r)});return n&&!e},t}(),Jt={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),Jt[t]=r}function ce(t){let r="";for(let e=0;e<t.byteLength;e++)r+=Jt[t[e]];return r}var Zt=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},Ci="X-Amz-Algorithm",Ai="X-Amz-Credential",Qt="X-Amz-Date",Ii="X-Amz-SignedHeaders",Pi="X-Amz-Expires",en="X-Amz-Signature",tn="X-Amz-Security-Token",nn="authorization",rn=Qt.toLowerCase(),Oi="date",Ri=[nn,rn,Oi],Li=en.toLowerCase(),pt="x-amz-content-sha256",ki=tn.toLowerCase(),Ni={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Mi=/^proxy-/,ji=/^sec-/,gt="AWS4-HMAC-SHA256",Hi="AWS4-HMAC-SHA256-PAYLOAD",Ui="UNSIGNED-PAYLOAD",Di=50,on="aws4_request",xi=60*60*24*7,Ye={},mt=[],yt=(t,r,e)=>`${t}/${r}/${e}/${on}`,qi=async(t,r,e,n,o)=>{const i=await an(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${ce(i)}:${r.sessionToken}`;if(a in Ye)return Ye[a];for(mt.push(a);mt.length>Di;)delete Ye[mt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const f of[e,n,o,on])c=await an(t,c,f);return Ye[a]=c},an=(t,r,e)=>{const n=new t(r);return n.update(e),n.digest()},sn=({headers:t},r,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const i=o.toLowerCase();(i in Ni||r?.has(i)||Mi.test(i)||ji.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},Bi=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===Li)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${oe(n)}=${oe(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${oe(n)}=${oe(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},Fi=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",wt=async({headers:t,body:r},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===pt)return t[n];if(r==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof r=="string"||ArrayBuffer.isView(r)||Fi(r)){const n=new e;return n.update(r),ce(await n.digest())}return Ui},Vi=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},cn=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?zi(r):void 0}),zi=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Gi=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():cn(t);for(const o of Object.keys(e)){const i=o.toLowerCase();i.slice(0,6)==="x-amz-"&&!r.unhoistableHeaders?.has(i)&&(n[o]=e[o],delete e[o])}return{...t,headers:e,query:n}},un=t=>{t=typeof t.clone=="function"?t.clone():cn(t);for(const r of Object.keys(t.headers))Ri.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},Xi=t=>Wi(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Wi=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,$i=class{constructor({applyChecksum:t,credentials:r,region:e,service:n,sha256:o,uriEscapePath:i=!0}){this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Zt(e),this.credentialProvider=Zt(r)}async presign(t,r={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:c,signingService:f}=r,s=await this.credentialProvider();this.validateResolvedCredentials(s);const u=c??await this.regionProvider(),{longDate:l,shortDate:d}=Je(e);if(n>xi)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=yt(d,u,f??this.service),h=Gi(un(t),{unhoistableHeaders:i});s.sessionToken&&(h.query[tn]=s.sessionToken),h.query[Ci]=gt,h.query[Ai]=`${s.accessKeyId}/${p}`,h.query[Qt]=l,h.query[Pi]=n.toString(10);const v=sn(h,o,a);return h.query[Ii]=fn(v),h.query[en]=await this.getSignature(l,p,this.getSigningKey(s,u,d,f),this.createCanonicalRequest(h,v,await wt(t,this.sha256))),h}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:c,longDate:f}=Je(e),s=yt(c,a,i??this.service),u=await wt({headers:{},body:r},this.sha256),l=new this.sha256;l.update(t);const d=ce(await l.digest()),p=[Hi,f,s,n,d,u].join(`
2
+ `);return this.signString(p,{signingDate:e,signingRegion:a,signingService:i})}async signString(t,{signingDate:r=new Date,signingRegion:e,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=e??await this.regionProvider(),{shortDate:a}=Je(r),c=new this.sha256(await this.getSigningKey(o,i,a,n));return c.update(t),ce(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:e,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const c=o??await this.regionProvider(),f=un(t),{longDate:s,shortDate:u}=Je(r),l=yt(u,c,i??this.service);f.headers[rn]=s,a.sessionToken&&(f.headers[ki]=a.sessionToken);const d=await wt(f,this.sha256);!Vi(pt,f.headers)&&this.applyChecksum&&(f.headers[pt]=d);const p=sn(f,n,e),h=await this.getSignature(s,l,this.getSigningKey(a,c,u,i),this.createCanonicalRequest(f,p,d));return f.headers[nn]=`${gt} Credential=${a.accessKeyId}/${l}, SignedHeaders=${fn(p)}, Signature=${h}`,f}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
3
+ ${this.getCanonicalPath(t)}
4
+ ${Bi(t)}
5
+ ${n.map(o=>`${o}:${r[o]}`).join(`
6
+ `)}
7
+
8
+ ${n.join(";")}
9
+ ${e}`}async createStringToSign(t,r,e){const n=new this.sha256;n.update(e);const o=await n.digest();return`${gt}
10
+ ${t}
11
+ ${r}
12
+ ${ce(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const o of t.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));const e=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return encodeURIComponent(e).replace(/%2F/g,"/")}return t}async getSignature(t,r,e,n){const o=await this.createStringToSign(t,r,n),i=new this.sha256(await e);return i.update(o),ce(await i.digest())}getSigningKey(t,r,e,n){return qi(this.sha256,t,e,r,n||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},Je=t=>{const r=Xi(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},fn=t=>Object.keys(t).sort().join(";"),ln=st(cr()),bt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},_t=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ki="rum",dn="POST",Yi="application/json",Ji="text/plain;charset=UTF-8",Zi={expiresIn:60},Qi=function(){function t(r){var e=this;this.sendFetch=function(n){return bt(e,void 0,void 0,function(){var o,i,a,c,f,s,u,l,d;return _t(this,function(p){switch(p.label){case 0:return o=JSON.stringify(hn(n)),i=this.config.endpoint.pathname.replace(/\/$/,""),c=ie.bind,l={method:dn},d={"content-type":Yi},f="X-Amz-Content-Sha256",[4,vn(o)];case 1:return a=new(c.apply(ie,[void 0,(l.headers=(d[f]=p.sent(),d.host=this.config.endpoint.host,d),l.protocol=this.config.endpoint.protocol,l.hostname=this.config.endpoint.hostname,l.path=i+"/appmonitors/"+n.AppMonitorDetails.id+"/",l.body=o,l)])),[4,this.awsSigV4.sign(a)];case 2:return s=p.sent(),u=this.config.fetchRequestHandler.handle(s),[2,u]}})})},this.sendBeacon=function(n){return bt(e,void 0,void 0,function(){var o,i,a,c,f,s,u,l,d;return _t(this,function(p){switch(p.label){case 0:return o=JSON.stringify(hn(n)),i=this.config.endpoint.pathname.replace(/\/$/,""),c=ie.bind,l={method:dn},d={"content-type":Ji},f="X-Amz-Content-Sha256",[4,vn(o)];case 1:return a=new(c.apply(ie,[void 0,(l.headers=(d[f]=p.sent(),d.host=this.config.endpoint.host,d),l.protocol=this.config.endpoint.protocol,l.hostname=this.config.endpoint.hostname,l.path=i+"/appmonitors/"+n.AppMonitorDetails.id,l.body=o,l)])),[4,this.awsSigV4.presign(a,Zi)];case 2:return s=p.sent(),u=this.config.beaconRequestHandler.handle(s),[2,u]}})})},this.config=r,this.awsSigV4=new $i({applyChecksum:!0,credentials:r.credentials,region:r.region,service:Ki,uriEscapePath:!0,sha256:ln.Sha256})}return t}(),hn=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(eo(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},eo=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},vn=function(t){return bt(void 0,void 0,void 0,function(){var r,e;return _t(this,function(n){switch(n.label){case 0:return r=new ln.Sha256,r.update(t),e=ce,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},to=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new Se({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=ft(r.query);n&&(e+="?"+n)}var o=r.port,i=r.protocol+"//"+r.hostname+(o?":"+o:"")+e;return navigator.sendBeacon(i,r.body)},t}(),no=function(t){return t===void 0&&(t=0),new Promise(function(r,e){t&&setTimeout(function(){var n=new Error("Request did not complete within "+t+" ms");n.name="TimeoutError",e(n)},t)})},ro=function(){function t(r){var e=r===void 0?{}:r,n=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return t.prototype.destroy=function(){},t.prototype.handle=function(r,e){var n=e===void 0?{}:e,o=n.abortSignal,i=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var c=r.path;if(r.query){var f=ft(r.query);f&&(c+="?"+f)}var s=r.port,u=r.method,l=r.protocol+"//"+r.hostname+(s?":"+s:"")+c,d=u==="GET"||u==="HEAD"?void 0:r.body,p={body:d,headers:new Headers(r.headers),method:u};typeof AbortController<"u"&&(p.signal=o);var h=new Request(l,p),v=[this.fetchFunction.apply(window,[h]).then(function(m){for(var k=m.headers,j={},S=0,T=k.entries();S<T.length;S++){var D=T[S];j[D[0]]=D[1]}var K=m.body!==void 0;return K?{response:new Se({headers:j,statusCode:m.status,body:m.body})}:m.blob().then(function(ue){return{response:new Se({headers:j,statusCode:m.status,body:ue})}})}),no(i)];return o&&v.push(new Promise(function(m,k){o.onabort=function(){var j=new Error("Request aborted");j.name="AbortError",k(j)}})),Promise.race(v)},t}(),pn=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},gn=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},io=function(){function t(r,e,n){n===void 0&&(n=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=r,this.retries=e,this.backoff=n}return t.prototype.handle=function(r){return pn(this,void 0,void 0,function(){var e,n,o;return gn(this,function(i){switch(i.label){case 0:e=this.retries,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,4,,6]),[4,this.handler.handle(r)];case 3:if(n=i.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error(""+n.response.statusCode);case 4:if(o=i.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},t.prototype.sleep=function(r){return pn(this,void 0,void 0,function(){return gn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,r)})]})})},t}(),Ae=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Ie=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(u){return f([s,u])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},mn="CWR: Cannot dispatch; no AWS credentials.",oo=function(){function t(r,e,n,o){var i=this;this.dispatchFetch=function(){return Ae(i,void 0,void 0,function(){return Ie(this,function(a){return[2,this.dispatch(this.rum.sendFetch).catch(this.handleReject)]})})},this.dispatchBeacon=function(){return Ae(i,void 0,void 0,function(){return Ie(this,function(a){return[2,this.dispatch(this.rum.sendBeacon)]})})},this.dispatchFetchFailSilent=function(){return Ae(i,void 0,void 0,function(){return Ie(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return Ae(i,void 0,void 0,function(){return Ie(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw i.disable(),a},this.defaultClientBuilder=function(a,c,f){return new Qi({fetchRequestHandler:new io(new ro({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new to,endpoint:a,region:c,credentials:f})},this.region=r,this.endpoint=e,this.eventCache=n,this.enabled=!0,this.buildClient=o.clientBuilder||this.defaultClientBuilder,this.config=o,this.startDispatchTimer(),this.rum={sendFetch:function(){return Promise.reject(new Error(mn))},sendBeacon:function(){return Promise.reject(new Error(mn))}}}return t.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},t.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},t.prototype.setAwsCredentials=function(r){this.rum=this.buildClient(this.endpoint,this.region,r),typeof r=="function"&&r()},t.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.dispatchBeaconFailSilent),document.addEventListener("pagehide",this.dispatchBeaconFailSilent),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},t.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.dispatchBeaconFailSilent),document.removeEventListener("pagehide",this.dispatchBeaconFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},t.prototype.dispatch=function(r){return Ae(this,void 0,void 0,function(){var e;return Ie(this,function(n){return this.enabled?this.eventCache.hasEvents()?(e={BatchId:Ce(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()},[2,r(e)]):[2]:[2]})})},t}(),ao=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),so="navigation",de="navigation",Et="load",co=function(t){ao(r,t);function r(){var e=t.call(this,so)||this;return e.eventListener=function(){if(performance.getEntriesByType(de).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===de&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[de]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,i=performance.timing,a=i.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:i.unloadEventStart>0?i.unloadEventStart-a:0,promptForUnload:i.unloadEventEnd-i.unloadEventStart,redirectStart:i.redirectStart>0?i.redirectStart-a:0,redirectTime:i.redirectEnd-i.redirectStart,fetchStart:i.fetchStart>0?i.fetchStart-a:0,domainLookupStart:i.domainLookupStart>0?i.domainLookupStart-a:0,dns:i.domainLookupEnd-i.domainLookupStart,connectStart:i.connectStart>0?i.connectStart-a:0,connect:i.connectEnd-i.connectStart,secureConnectionStart:i.secureConnectionStart>0?i.secureConnectionStart-a:0,tlsTime:i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,requestStart:i.requestStart>0?i.requestStart-a:0,timeToFirstByte:i.responseStart-i.requestStart,responseStart:i.responseStart>0?i.responseStart-a:0,responseTime:i.responseStart>0?i.responseEnd-i.responseStart:0,domInteractive:i.domInteractive>0?i.domInteractive-a:0,domContentLoadedEventStart:i.domContentLoadedEventStart>0?i.domContentLoadedEventStart-a:0,domContentLoaded:i.domContentLoadedEventEnd-i.domContentLoadedEventStart,domComplete:i.domComplete>0?i.domComplete-a:0,domProcessingTime:i.loadEventStart-i.responseEnd,loadEventStart:i.loadEventStart>0?i.loadEventStart-a:0,loadEventTime:i.loadEventEnd-i.loadEventStart,duration:i.loadEventEnd-i.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(dt,c)};setTimeout(n,0)},e.performanceNavigationEventHandlerTimingLevel2=function(n){var o,i={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize-n.encodedBodySize,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(dt,i)},e}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Et,this.eventListener))},r.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.eventListener&&window.removeEventListener(Et,this.eventListener))},r.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(de).length){var e=window.performance.getEntriesByType(de)[0];return Boolean(e.loadEventEnd)}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(de)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(Et,this.eventListener)},r}(ae),X;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(X||(X={}));var uo=[{name:X.STYLESHEET,list:["css","less"]},{name:X.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:X.SCRIPT,list:["js"]},{name:X.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:X.FONT,list:["fnt","fon","otf","ttf","woff"]}],yn=function(t){for(var r=t.length-1;r>0;r--){var e=Math.floor(Math.random()*(r+1)),n=t[r];t[r]=t[e],t[e]=n}},St=function(t){var r=t.substring(t.lastIndexOf("/")+1),e=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0],n=X.OTHER;return uo.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},fo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ze=function(){return Ze=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ze.apply(this,arguments)},lo="resource",Tt="resource",Ct="load",ho={eventLimit:10,recordAllTypes:[X.DOCUMENT,X.SCRIPT],sampleTypes:[X.STYLESHEET,X.IMAGE,X.FONT,X.OTHER]},vo=function(t){fo(r,t);function r(e){var n=t.call(this,lo)||this;return n.resourceEventListener=function(o){var i=[],a=[],c=0,f=new PerformanceObserver(function(u){u.getEntries().filter(function(l){return l.entryType===Tt}).forEach(function(l){var d=St(l.name);n.config.recordAllTypes.includes(d)?i.push(l):n.config.sampleTypes.includes(d)&&a.push(l)})});f.observe({entryTypes:[Tt]});var s=performance.getEntriesByType(Tt);for(s!==void 0&&s.length>0&&s.forEach(function(u){var l=St(u.name);n.config.recordAllTypes.includes(l)?i.push(u):n.config.sampleTypes.includes(l)&&a.push(u)}),yn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(yn(a);a.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(a.pop()),c++},n.recordResourceEvent=function(o){var i;if(new URL(o.name).host!==n.context.config.endpointUrl.host&&!((i=n.context)===null||i===void 0)&&i.record){var a={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:St(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(a.targetUrl=o.name),n.context.record(Nr,a)}},n.config=Ze(Ze({},ho),e),n}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Ct,this.resourceEventListener))},r.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(Ct,this.resourceEventListener))},r.prototype.onload=function(){window.addEventListener(Ct,this.resourceEventListener)},r}(ae),re,Pe,wn,Qe,he=function(t,r){return{name:t,value:r===void 0?-1:r,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},At=function(t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var e=new PerformanceObserver(function(n){return n.getEntries().map(r)});return e.observe({type:t,buffered:!0}),e}}catch{}},et=function(t,r){var e=function n(o){o.type!=="pagehide"&&document.visibilityState!=="hidden"||(t(o),r&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},tt=function(t){addEventListener("pageshow",function(r){r.persisted&&t(r)},!0)},Oe=typeof WeakSet=="function"?new WeakSet:new Set,ve=function(t,r,e){var n;return function(){r.value>=0&&(e||Oe.has(r)||document.visibilityState==="hidden")&&(r.delta=r.value-(n||0),(r.delta||n===void 0)&&(n=r.value,t(r)))}},po=function(t,r){var e,n=he("CLS",0),o=function(a){a.hadRecentInput||(n.value+=a.value,n.entries.push(a),e())},i=At("layout-shift",o);i&&(e=ve(t,n,r),et(function(){i.takeRecords().map(o),e()}),tt(function(){n=he("CLS",0),e=ve(t,n,r)}))},Re=-1,bn=function(){return document.visibilityState==="hidden"?0:1/0},_n=function(){et(function(t){var r=t.timeStamp;Re=r},!0)},En=function(){return Re<0&&(Re=bn(),_n(),tt(function(){setTimeout(function(){Re=bn(),_n()},0)})),{get timeStamp(){return Re}}},Le={passive:!0,capture:!0},go=new Date,Sn=function(t,r){re||(re=r,Pe=t,wn=new Date,Cn(removeEventListener),Tn())},Tn=function(){if(Pe>=0&&Pe<wn-go){var t={entryType:"first-input",name:re.type,target:re.target,cancelable:re.cancelable,startTime:re.timeStamp,processingStart:re.timeStamp+Pe};Qe.forEach(function(r){r(t)}),Qe=[]}},mo=function(t){if(t.cancelable){var r=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(e,n){var o=function(){Sn(e,n),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,Le),removeEventListener("pointercancel",i,Le)};addEventListener("pointerup",o,Le),addEventListener("pointercancel",i,Le)}(r,t):Sn(r,t)}},Cn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,mo,Le)})},yo=function(t,r){var e,n=En(),o=he("FID"),i=function(c){c.startTime<n.timeStamp&&(o.value=c.processingStart-c.startTime,o.entries.push(c),Oe.add(o),e())},a=At("first-input",i);e=ve(t,o,r),a&&et(function(){a.takeRecords().map(i),a.disconnect()},!0),a&&tt(function(){var c;o=he("FID"),e=ve(t,o,r),Qe=[],Pe=-1,re=null,Cn(addEventListener),c=i,Qe.push(c),Tn()})},wo=function(t,r){var e,n=En(),o=he("LCP"),i=function(f){var s=f.startTime;s<n.timeStamp&&(o.value=s,o.entries.push(f)),e()},a=At("largest-contentful-paint",i);if(a){e=ve(t,o,r);var c=function(){Oe.has(o)||(a.takeRecords().map(i),a.disconnect(),Oe.add(o),e())};["keydown","click"].forEach(function(f){addEventListener(f,c,{once:!0,capture:!0})}),et(c,!0),tt(function(f){o=he("LCP"),e=ve(t,o,r),requestAnimationFrame(function(){requestAnimationFrame(function(){o.value=performance.now()-f.timeStamp,Oe.add(o),e()})})})}},bo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_o="web-vitals",Eo=function(t){bo(r,t);function r(){return t.call(this,_o)||this}return r.prototype.enable=function(){},r.prototype.disable=function(){},r.prototype.configure=function(e){},r.prototype.getWebVitalData=function(e,n){var o,i={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(n,i)},r.prototype.onload=function(){var e=this;wo(function(n){return e.getWebVitalData(n,Rr)}),yo(function(n){return e.getWebVitalData(n,Lr)}),po(function(n){return e.getWebVitalData(n,kr)})},r}(ae),An=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},In=[];for(Z=0;Z<256;Z++)In[Z]=(Z+256).toString(16).substr(1);var Z,It="X-Amzn-Trace-Id",Pn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},On=function(t){return Math.floor(t/100)===4},Rn=function(t){return Math.floor(t/100)===5},Ln=function(t){return t===429},kn=function(t,r){var e=r.urlsToInclude.some(function(o){return o.test(t)}),n=r.urlsToExclude.some(function(o){return o.test(t)});return e&&!n},pe=function(){return Date.now()/1e3},So=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ot(t),n},Nn=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:Hn(),start_time:r,trace_id:Ao(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},Mn=function(t,r,e){var n={id:Hn(),name:t,start_time:r,end_time:void 0,in_progress:!1,namespace:t.endsWith("amazonaws.com")?"aws":"remote"};return e&&(n.http=e),n},jn=function(t){try{return t.hostname?t.hostname:t.url?new URL(t.url).hostname:new URL(t.toString()).hostname}catch{return window.location.hostname}},To=function(t,r,e){t.headers||(t.headers={}),t.headers[It]=Pt(r,e)},Co=function(t,r,e){t.set(It,Pt(r,e))},Pt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ot=function(t){return t.url?t.url:t.toString()},Ao=function(){return"1-"+Io()+"-"+Po()},Hn=function(){var t=new Uint8Array(8);return An(t),Un(t)},Io=function(){return Math.floor(Date.now()/1e3).toString(16)},Po=function(){var t=new Uint8Array(12);return An(t),Un(t)},Un=function(t){for(var r="",e=0;e<t.length;e++)r+=In[t[e]];return r},Oo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ro=function(t){Oo(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),Lo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nt=function(){return nt=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},nt.apply(this,arguments)},ko="xhr",No=function(t){Lo(r,t);function r(e){var n=t.call(this,ko)||this;return n.addXRayTraceIdHeader=function(){return n.config.addXRayTraceIdHeader},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var i=o.target,a=n.xhrMap.get(i);if(a){var c=pe();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},Ln(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):On(i.status)?a.trace.subsegments[0].error=!0:Rn(i.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var f=parseInt(i.getResponseHeader("Content-Length"),10);isNaN(f)||(a.trace.subsegments[0].http.response.content_length=parseInt(i.getResponseHeader("Content-Length"),10)),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,i)}},n.handleXhrErrorEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest error",f=i.statusText?i.status.toString()+": "+i.statusText:i.status.toString();if(a){var s=pe();a.trace.fault=!0,a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:c,message:f}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,new Ro(f))}},n.handleXhrAbortEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest abort";n.handleXhrDetailsOnError(a,c)},n.handleXhrTimeoutEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,c)},n.initializeTrace=function(o){var i=pe();o.trace=Nn(n.config.logicalServiceName,i),o.trace.subsegments.push(Mn(jn(o.url),i,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(i){return function(){var a=o.xhrMap.get(this);return a&&(this.addEventListener("load",o.handleXhrLoadEvent),this.addEventListener("error",o.handleXhrErrorEvent),this.addEventListener("abort",o.handleXhrAbortEvent),this.addEventListener("timeout",o.handleXhrTimeoutEvent),o.initializeTrace(a),o.isTracingEnabled()&&o.addXRayTraceIdHeader()&&o.isSessionRecorded()&&this.setRequestHeader(It,Pt(a.trace.trace_id,a.trace.subsegments[0].id))),i.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(i){return function(a,c,f){return kn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:f}),i.apply(this,arguments)}}},n.config=nt(nt({},Pn),e),n.xhrMap=new Map,n}return r.prototype.onload=function(){this.enable()},Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]},enumerable:!1,configurable:!0}),r.prototype.handleXhrDetailsOnError=function(e,n){if(e){var o=pe();e.trace.end_time=o,e.trace.subsegments[0].end_time=o,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,n)}},r.prototype.statusOk=function(e){return e>=200&&e<300},r.prototype.recordHttpEventWithResponse=function(e,n){(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Fe,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}})},r.prototype.recordHttpEventWithError=function(e,n){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=ht({type:"error",error:n},this.config.stackTraceLength),this.context.record(Fe,o)},r.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(Bt,e)},r}($e),Mo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rt=function(){return rt=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},rt.apply(this,arguments)},jo="fetch",Ho=function(t){Mo(r,t);function r(e){var n=t.call(this,jo)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,i,a){var c=pe(),f=So(o,i,!0),s=Nn(n.config.logicalServiceName,c),u=Mn(jn(o),c,f);return s.subsegments.push(u),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,i,a,s),s},n.addXRayTraceIdHeader=function(o,i,a,c){if(o.headers)return Co(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),To(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=pe();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},Ln(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):On(i.status)?o.subsegments[0].error=!0:Rn(i.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var f=parseInt(i.headers.get("Content-Length"),10);isNaN(f)||(o.subsegments[0].http.response.content_length=f)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):Vt(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(Bt,o)}},n.createHttpEvent=function(o,i){return{version:"1.0.0",request:{url:Ot(o),method:i?.method?i.method:"GET"}}},n.recordHttpEventWithResponse=function(o,i){(n.config.recordAllRequests||!i.ok)&&(o.response={status:i.status,statusText:i.statusText},n.context.record(Fe,o))},n.recordHttpEventWithError=function(o,i){o.error=ht({type:"error",error:i},n.config.stackTraceLength),n.context.record(Fe,o)},n.fetch=function(o,i,a,c,f){var s=n.createHttpEvent(c,f),u;return kn(Ot(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(u=n.beginTrace(c,f,a)),o.apply(i,a).then(function(l){return n.endTrace(u,l,void 0),n.recordHttpEventWithResponse(s,l),l}).catch(function(l){throw n.endTrace(u,void 0,l),n.recordHttpEventWithError(s,l),l})):o.apply(i,a)},n.fetchWrapper=function(){var o=n;return function(i){return function(a,c){return o.fetch(i,this,arguments,a,c)}}},n.config=rt(rt({},Pn),e),n}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.onload=function(){this.enable()},r.prototype.appendErrorCauseFromPrimitive=function(e,n){e.cause={exceptions:[{type:n}]}},r.prototype.appendErrorCauseFromObject=function(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}},r}($e),Uo=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Do="page-view",xo=function(t){Uo(r,t);function r(){var e=t.call(this,Do)||this;return e.pushState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.replaceState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.popstateListener=function(n){e.recordPageView()},e.recordPageView=function(){e.context.recordPageView(e.createIdForCurrentPage())},e.enable(),e}return r.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),r.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},r.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case we.PathAndHash:return e&&n?e+n:e||n||"";case we.Hash:return n||"";case we.Path:default:return e||""}},r}($e),ge=function(){return ge=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ge.apply(this,arguments)},qo=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},me=function(t,r,e){if(e||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},Dn="us-west-2",Rt="https://dataplane.rum."+Dn+".amazonaws.com",ye;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(ye||(ye={}));var we;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(we||(we={}));var Bo=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},Fo=function(t){return{allowCookies:!1,batchLimit:100,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Rt,endpointUrl:new URL(Rt),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:we.Path,pagesToExclude:[],pagesToInclude:[/.*/],recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionEventLimit:200,sessionLengthSeconds:60*30,sessionSampleRate:1,telemetries:[],userIdRetentionDays:30}},Vo=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=qo(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=ge(ge({},Bo()),i);this.config=ge(ge({fetchFunction:fetch},Fo(c)),a),this.config.endpoint=this.getDataPlaneEndpoint(n,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(r,e),this.dispatchManager=this.initDispatch(n),this.pluginManager=this.initPluginManager(r,e),this.config.enableRumClient?this.enable():this.disable()}return t.prototype.setAwsCredentials=function(r){this.dispatchManager.setAwsCredentials(r)},t.prototype.addPlugin=function(r){this.pluginManager.addPlugin(r)},t.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},t.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},t.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},t.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},t.prototype.allowCookies=function(r){this.config.allowCookies=r},t.prototype.recordPageView=function(r){this.eventCache.recordPageView(r)},t.prototype.recordError=function(r){this.pluginManager.record(zt,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(Ft,r)},t.prototype.initEventCache=function(r,e){return new Ti({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new oo(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Ir(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new Pr(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=me(me([],n,!0),this.config.eventPluginsToLoad,!0),i={applicationId:r,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Ur(i);return this.config.disableAutoPageView||a.addPlugin(new xo),o.forEach(function(c){a.addPlugin(c)}),a},t.prototype.constructBuiltinPlugins=function(){var r=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){typeof n=="string"&&e[n.toLowerCase()]?r=me(me([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=me(me([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Rt.replace(Dn,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[ye.Errors]=function(e){return[new Wr(e)]},r[ye.Performance]=function(e){return[new co,new vo(e),new Eo]},r[ye.Interaction]=function(e){return[new qr(e)]},r[ye.Http]=function(e){return[new No(e),new Ho(e)]},r},t}();/*! *****************************************************************************
13
+ Copyright (c) Microsoft Corporation.
14
+
15
+ Permission to use, copy, modify, and/or distribute this software for any
16
+ purpose with or without fee is hereby granted.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
+ PERFORMANCE OF THIS SOFTWARE.
25
+ ***************************************************************************** */try{window.awsRum=new Vo(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
@@ -0,0 +1 @@
1
+ (function(t){"use strict";var l=Object.defineProperty,o=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,i=(a,r,e)=>r in a?l(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e,n=(a,r)=>{for(var e in r||(r={}))d.call(r,e)&&i(a,e,r[e]);if(o)for(var e of o(r))u.call(r,e)&&i(a,e,r[e]);return a};const y=()=>{var a;return{page_uri:"/",page_type:((a=window.datalayer)==null?void 0:a.pageType)||"divers"}},p=()=>({darkmode:"0"}),v=()=>{var a,r;return{signature:((a=window.datalayer)==null?void 0:a.signature)||void 0,nbParagraphs:((r=window.datalayer)==null?void 0:r.nbParagraphs)||void 0}},c=()=>{const a=y(),r=p(),e=v();window.datalayer=n(n(n({},a),r),e)};return t.initDatalayer=c,Object.defineProperty(t,"__esModule",{value:!0}),t})({});
@@ -0,0 +1 @@
1
+ (function(r){"use strict";var p=(e=>(e.HEADER_AD='[[1,1], "fluid"]',e.BAN_ATF="[[1,1], [728,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",e.PAVE_ATF="[[1,1], [300,250], [300,600], [600,250], [600,600], [770,250]]",e.BAN_BTF="[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",e.ARTICLE_BTF="[[1,1], [300,168], [300,250], [320,50], [320,100], [320,480]]",e))(p||{}),d=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e))(d||{}),l=(e=>(e.MISC="divers",e.HOME="home",e.LOCAL="local",e.PLANET="plan\xE8te",e))(l||{}),E=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(E||{}),_=(e=>(e.COMMON_HEADER="common/header",e.COMMON_FOOTER="common/footer",e.COMMON_NEWSLETTER="common/newsletter",e))(_||{}),S=(e=>(e.RUBRIC_CATEGORY_CARDS="rubric/category-cards",e.RUBRIC_NEWS_CARDS="rubric/news-cards",e.RUBRIC_MOST_READ_ARTICLES="rubric/most-read-articles",e.RUBRIC_PARTNER_CARDS="rubric/partner-cards",e.ARTICLE_SCROLL_PROGRESS_BAR="rubric/scroll-progress-bar",e))(S||{}),f=(e=>(e.ARTICLE_BREADCRUMB="article/breadcrumb",e.ARTICLE_OVERVIEW_BAR="article/overview-bar",e.ARTICLE_HEADER="article/article-header",e.ARTICLE_IMAGE_COVER="article/article-image-cover",e.ARTICLE_SOCIAL_BAR="article/social-bar",e.ARTICLE_SUMMARY="article/article-summary",e.ARTICLE_CONTENT="article/article-content",e.ARTICLE_TAG_BAR="article/tag-bar",e.ARTICLE_SIGNATURE="article/signature",e))(f||{}),T=(e=>(e.HOROSCOPE_BREADCRUMB="horoscope/breadcrumb",e.HOROSCOPE_HEADER_PAGE="horoscope/header-page",e.HOROSCOPE_HEADER_BANNER="horoscope/header-banner",e.HOROSCOPE_HOROSCOPE_CONTENT="horoscope/horoscope-content",e.HOROSCOPE_HOMEPAGE_CONTENT="horoscope/horoscope-homepage-content",e.HOROSCOPE_LINK="horoscope/link",e.HOROSCOPE_HOROSCOPE_TILES="horoscope/horoscope-tiles",e.HOROSCOPE_HOROSCOPE_LINK_NEXT_TYPE="horoscope/horoscope-link-next-type",e))(T||{});const u=e=>{var t,a,o,n;switch(e){case"pageType":return Object.values(d).includes((t=window.datalayer)==null?void 0:t.page_type)?(a=window.datalayer.page_type)==null?void 0:a.toLowerCase():d.MISC;case"tags":return Object.values(l).includes((o=window.datalayer)==null?void 0:o.tags)?(n=window.datalayer.tags)==null?void 0:n.toLowerCase():l.MISC}return window.datalayer[e]},h=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(E).forEach(e=>{window.dfp.targeting[e]=u(e)})},w=e=>{var t;const a=e instanceof Array?e:[e];window.dfp.slots=((t=window.dfp)==null?void 0:t.slots)||[],window.dfp.slots=[...window.dfp.slots,...a]},m=e=>{window.dfp.slotsReady=!1;const t=document.querySelectorAll("div[data-dfp-path]"),a=[];googletag.cmd.push(()=>{t.forEach(o=>{const n=o.getAttribute("data-dfp-name"),c=o.getAttribute("data-dfp-path"),R=o.getAttribute("id"),g=n&&JSON.parse(p[n.toUpperCase()])||null;if(R&&n&&c&&g&&googletag){const s=googletag.defineSlot([c,n].join("/"),g,R);if(!s)return;s.addService(googletag.pubads()),a.push({slotElementId:s.getSlotElementId(),path:c,sizes:JSON.stringify(g)}),Object.entries(e).map(([H,P])=>s.setTargeting(H,P))}})}),window.dfp.slotsReady=!0,w(a)};let O=!1,A=0;const b=1500,i="renderAd",I=()=>O||googletag&&googletag.pubadsReady&&window.dfp.slotsReady,C=e=>{googletag&&googletag.cmd.push(()=>{const t={};googletag.pubads().getSlots().forEach(o=>{t[o.getSlotElementId()]=o});const a=[];e.forEach(o=>{t[o]&&a.push(t[o])}),a.length&&googletag.pubads().refresh(a)})},y=()=>{document.addEventListener(i,e=>{if(!e.target)return;const t=e;t&&t.target.closest("[data-dfp-name]")&&t.detail.length&&C([t.detail[0].id])},!0)},v=()=>{const e=document.body.querySelectorAll('div[data-dfp-name][data-delayed="true"]');Array.prototype.forEach.call(e,t=>{t.addEventListener(t.getAttribute("id"),function a(){t.dispatchEvent(new CustomEvent(i,{detail:[{id:t.getAttribute("id")}]})),t.removeEventListener(i,a)})})},L=()=>{const e=[],t=document.querySelectorAll('div[data-dfp-name][data-delayed="false"]');t.length>0&&Array.prototype.forEach.call(t,a=>{e.push(a.getAttribute("id"))}),C(e)},N=()=>{const e=setInterval(()=>{if(!I&&A<b){A+=100;return}clearInterval(e),O=!0,L(),y(),v()},100)},D=()=>{googletag.cmd.push(()=>{googletag.pubads().setTargeting("lang","fr"),googletag.pubads().setTargeting("dn",window.location.hostname);try{const t=window.location.href.split("?")[1];t&&t.split("&").forEach(a=>{const o=a.split("=");o[0]==="20minutest"&&googletag.pubads().setTargeting(o[0],o[1])})}catch{}googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.enableServices();const e=Math.max(document.documentElement.clientWidth,window.innerWidth||0);e>=1400?googletag.pubads().setTargeting("screen",["1400","1000"]):e>=1e3&&googletag.pubads().setTargeting("screen","1000")})};return r.callDfp=N,r.dfpDatalayerAdapter=u,r.setAdSlotsKeyValues=h,r.setDfpConfig=D,r.setDfpSlots=m,Object.defineProperty(r,"__esModule",{value:!0}),r})({});
@@ -0,0 +1 @@
1
+ (function(){"use strict";const l=()=>{var e;return(e=Array.from(document.querySelectorAll(".c-tags--breadcrumb")))==null?void 0:e.reduce((n,r)=>n+r.innerHTML,"")};(()=>{const e=document.cookie.match("(^|;)\\s*20mnUserDataLayer\\s*=\\s*([^;]+)"),n=e?JSON.parse(decodeURIComponent(e.pop())):null;window.gtmDatalayer=[{page_uri:window.location.pathname,user_status:window.datalayer.user_status,referrer:document.referrer,breadcrumb:l(),user:{d:n?.d||null,g:n?.g||null,i:n?.i||null,l:n?.l||null,o:n?.o||null}}]})()})();
@@ -0,0 +1 @@
1
+ (function(){"use strict";var f=Object.defineProperty,p=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,o,t)=>o in e?f(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))I.call(o,t)&&m(e,t,o[t]);if(p)for(var t of p(o))h.call(o,t)&&m(e,t,o[t]);return e};const R=()=>{var e;return{page_uri:"/",page_type:((e=window.datalayer)==null?void 0:e.pageType)||"divers"}},b=()=>({darkmode:"0"}),A=()=>{var e,o;return{signature:((e=window.datalayer)==null?void 0:e.signature)||void 0,nbParagraphs:((o=window.datalayer)==null?void 0:o.nbParagraphs)||void 0}},y=()=>{const e=R(),o=b(),t=A();window.datalayer=r(r(r({},e),o),t)};var _=(e=>(e.HEADER_AD='[[1,1], "fluid"]',e.BAN_ATF="[[1,1], [728,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",e.PAVE_ATF="[[1,1], [300,250], [300,600], [600,250], [600,600], [770,250]]",e.BAN_BTF="[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",e.ARTICLE_BTF="[[1,1], [300,168], [300,250], [320,50], [320,100], [320,480]]",e))(_||{}),d=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e))(d||{}),c=(e=>(e.MISC="divers",e.HOME="home",e.LOCAL="local",e.PLANET="plan\xE8te",e))(c||{}),u=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(u||{}),L=(e=>(e.COMMON_HEADER="common/header",e.COMMON_FOOTER="common/footer",e.COMMON_NEWSLETTER="common/newsletter",e))(L||{}),N=(e=>(e.RUBRIC_CATEGORY_CARDS="rubric/category-cards",e.RUBRIC_NEWS_CARDS="rubric/news-cards",e.RUBRIC_MOST_READ_ARTICLES="rubric/most-read-articles",e.RUBRIC_PARTNER_CARDS="rubric/partner-cards",e.ARTICLE_SCROLL_PROGRESS_BAR="rubric/scroll-progress-bar",e))(N||{}),D=(e=>(e.ARTICLE_BREADCRUMB="article/breadcrumb",e.ARTICLE_OVERVIEW_BAR="article/overview-bar",e.ARTICLE_HEADER="article/article-header",e.ARTICLE_IMAGE_COVER="article/article-image-cover",e.ARTICLE_SOCIAL_BAR="article/social-bar",e.ARTICLE_SUMMARY="article/article-summary",e.ARTICLE_CONTENT="article/article-content",e.ARTICLE_TAG_BAR="article/tag-bar",e.ARTICLE_SIGNATURE="article/signature",e))(D||{}),k=(e=>(e.HOROSCOPE_BREADCRUMB="horoscope/breadcrumb",e.HOROSCOPE_HEADER_PAGE="horoscope/header-page",e.HOROSCOPE_HEADER_BANNER="horoscope/header-banner",e.HOROSCOPE_HOROSCOPE_CONTENT="horoscope/horoscope-content",e.HOROSCOPE_HOMEPAGE_CONTENT="horoscope/horoscope-homepage-content",e.HOROSCOPE_LINK="horoscope/link",e.HOROSCOPE_HOROSCOPE_TILES="horoscope/horoscope-tiles",e.HOROSCOPE_HOROSCOPE_LINK_NEXT_TYPE="horoscope/horoscope-link-next-type",e))(k||{});const P=e=>{var o,t,n,i;switch(e){case"pageType":return Object.values(d).includes((o=window.datalayer)==null?void 0:o.page_type)?(t=window.datalayer.page_type)==null?void 0:t.toLowerCase():d.MISC;case"tags":return Object.values(c).includes((n=window.datalayer)==null?void 0:n.tags)?(i=window.datalayer.tags)==null?void 0:i.toLowerCase():c.MISC}return window.datalayer[e]},H=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(u).forEach(e=>{window.dfp.targeting[e]=P(e)})},M=e=>{var o;const t=e instanceof Array?e:[e];window.dfp.slots=((o=window.dfp)==null?void 0:o.slots)||[],window.dfp.slots=[...window.dfp.slots,...t]},B=e=>{window.dfp.slotsReady=!1;const o=document.querySelectorAll("div[data-dfp-path]"),t=[];googletag.cmd.push(()=>{o.forEach(n=>{const i=n.getAttribute("data-dfp-name"),l=n.getAttribute("data-dfp-path"),T=n.getAttribute("id"),g=i&&JSON.parse(_[i.toUpperCase()])||null;if(T&&i&&l&&g&&googletag){const s=googletag.defineSlot([l,i].join("/"),g,T);if(!s)return;s.addService(googletag.pubads()),t.push({slotElementId:s.getSlotElementId(),path:l,sizes:JSON.stringify(g)}),Object.entries(e).map(([F,W])=>s.setTargeting(F,W))}})}),window.dfp.slotsReady=!0,M(t)},U=()=>{googletag.cmd.push(()=>{googletag.pubads().setTargeting("lang","fr"),googletag.pubads().setTargeting("dn",window.location.hostname);try{const o=window.location.href.split("?")[1];o&&o.split("&").forEach(t=>{const n=t.split("=");n[0]==="20minutest"&&googletag.pubads().setTargeting(n[0],n[1])})}catch{}googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.enableServices();const e=Math.max(document.documentElement.clientWidth,window.innerWidth||0);e>=1400?googletag.pubads().setTargeting("screen",["1400","1000"]):e>=1e3&&googletag.pubads().setTargeting("screen","1000")})},G=e=>{const o=document.cookie.split(";").filter(t=>t.indexOf(e)!==-1)[0];return o?o.split("=")[1]:"{}"},a=e=>{const o=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&o.push(`domain=${e.domain}`),document.cookie=o.join("; ")},w=e=>{document.cookie.split(";").map(o=>o.split("=")[0].trim()).filter(o=>e.indexOf(o)===-1).forEach(o=>{const{hostname:t}=window.location;a({name:o}),a({name:o,domain:t.substring(t.indexOf(".")+1)}),a({name:o,domain:t.substring(t.indexOf("."))}),a({name:o,domain:`.${t}`})})},S=e=>{for(let o=0;o<sessionStorage.length;o+=1){const t=sessionStorage.key(o);t&&e.indexOf(t)===-1&&sessionStorage.removeItem(t)}},E=e=>{for(let o=0;o<localStorage.length;o+=1){const t=localStorage.key(o);t&&e.indexOf(t)===-1&&localStorage.removeItem(t)}},O=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_token","euconsent-v2","_pbjs_userid_consent_data","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_service_login_newrelic_com_tokens","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm"],v=["_vf_sid","consent_validity_date","20mn-articlesSaved","20mn-font","closedInfo","20mn-known-user","20mn-block-links","20mnBreakingNewsBanner","20mnAppBanner","20mn-visits-content","20minutes-font"],C=["vfThirdpartyCookiesEnabled","com.batch.sessionId","loadIntrasticial"],j=()=>{window.didomiOnReady.push(()=>{let e=new Date;const o=e.getTimezoneOffset();e=new Date(e.getTime()-o*60*1e3);const t=e.toISOString().split("T")[0],n=localStorage.getItem("consent_validity_date");n&&t>n&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,w(O),E(v),S(C),window.Didomi.notice.show())})},x=()=>{window.didomiEventListeners.push({event:"notice.clickagree",listener:()=>{console.log("notice.clickagree")}}),window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:()=>{console.log("notice.clickmoreinfo")}}),window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{console.log("notice.clickdisagree")}})},V=()=>{window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const e=G("euconsent-v2"),o=window.cmpVariables.consentEventsCount>0?!0:!!e,t=!window.Didomi.getUserConsentStatusForPurpose("Cookies"),n=window.sessionStorage.getItem("cmpModal");o&&!n&&(t&&(w(O),E(v),S(C)),setTimeout(()=>{window.location.reload()})),n&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})};y(),j(),V(),x(),U(),H(),B(window.dfp.targeting)})();
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@20minutes/tyr",
3
+ "version": "0.1.2",
4
+ "repository": "git@github.com:20minutes/tyr.git",
5
+ "license": "MIT",
6
+ "author": "20 Minutes",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "storybook": {
11
+ "url": "https://developers.20minutes.fr/tyr/"
12
+ },
13
+ "main": "./dist/index.umd.js",
14
+ "module": "./dist/index.es.js",
15
+ "source": "src/index.ts",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./dist/index.es.js",
20
+ "require": "./dist/index.umd.js"
21
+ }
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "scripts": {
27
+ "prepare": "husky install && ts-node scripts/copyAssets",
28
+ "build:library": "ts-node scripts/buildLibrary",
29
+ "storybook": "start-storybook -p 6006",
30
+ "build:storybook": "build-storybook",
31
+ "lint:ts": "eslint **/*/*.{ts,tsx}",
32
+ "test": "NODE_ENV=test jest --coverage false --silent",
33
+ "upload:artifacts": "ts-node scripts/uploadArtifacts"
34
+ },
35
+ "engines": {
36
+ "node": ">=16"
37
+ },
38
+ "dependencies": {
39
+ "aws-rum-web": "^1.8.3",
40
+ "react": "^18.2.0",
41
+ "react-dom": "^18.2.0",
42
+ "@20minutes/hela": "^0.1.0"
43
+ },
44
+ "devDependencies": {
45
+ "@20minutes/eslint-config": "^1.2.4",
46
+ "@babel/core": "^7.19.3",
47
+ "@storybook/addon-actions": "^6.5.12",
48
+ "@storybook/addon-essentials": "^6.5.12",
49
+ "@storybook/addon-interactions": "^6.5.12",
50
+ "@storybook/addon-links": "^6.5.12",
51
+ "@storybook/builder-vite": "^0.2.3",
52
+ "@storybook/react": "^6.5.12",
53
+ "@storybook/testing-library": "0.0.13",
54
+ "@types/googletag": "^2.2.5",
55
+ "@types/jest": "^29.1.1",
56
+ "@types/react": "^18.0.17",
57
+ "@types/react-dom": "^18.0.6",
58
+ "@typescript-eslint/eslint-plugin": "^5.39.0",
59
+ "@typescript-eslint/parser": "^5.39.0",
60
+ "@vitejs/plugin-react": "^2.1.0",
61
+ "babel-loader": "^8.2.5",
62
+ "eslint": "^8.24.0",
63
+ "eslint-config-airbnb": "^19.0.4",
64
+ "eslint-config-prettier": "^8.5.0",
65
+ "eslint-import-resolver-typescript": "^3.5.1",
66
+ "eslint-plugin-babel": "^5.3.1",
67
+ "eslint-plugin-import": "^2.25.3",
68
+ "eslint-plugin-jsx-a11y": "^6.6.1",
69
+ "eslint-plugin-prettier": "^4.2.1",
70
+ "eslint-plugin-react": "^7.31.8",
71
+ "eslint-plugin-simple-import-sort": "^8.0.0",
72
+ "husky": "^8.0.1",
73
+ "jest": "^29.1.2",
74
+ "purgecss": "^5.0.0",
75
+ "rollup": "^2.79.1",
76
+ "rollup-plugin-dts": "^4.2.2",
77
+ "rollup-plugin-esbuild": "^4.10.1",
78
+ "stylelint": "^14.13.0",
79
+ "ts-jest": "^29.0.3",
80
+ "ts-node": "^10.9.1",
81
+ "typescript": "^4.6.4",
82
+ "vite": "^3.1.0"
83
+ }
84
+ }