PageSourceSearch

https://ar.snap.com/mwp/chunks/dist-TNBVWJDB.mjs

js snap.com collected 2026-09-24 08:24:15 UTC 36,843 bytes, 14 lines download raw bytes

1
2      // Merge in the client-visible compile-time environment.
3      window.process = {
4        ...window.process,
5        env: {
6          ...window.process?.env,
7          ...({"CI_COMMIT":"c710bdeace0f21cb93a5c7a6953d7fe969fc3207","CI_PIPELINE_ID":"ccdb44e1-5b2e-423b-85c3-deedbf639a4a","GOOGLE_CLOUD_PROJECT":"marketing-web-platform","DEPLOYMENT_TYPE":"production","NODE_ENV":"production","PREVIEW":"false","SITE_CONFIG":"ar"})
8        }
9      };
10
11      // Stop crashing when certain node libraries are imported.
12      window.global = window.global ?? {};
13    
14import{a as Le,c as J,d as _i,e as zi}from"./chunk-LRPIPOCA.mjs";import{a as Ti,b as Ai}from"./chunk-P445B56P.mjs";import{f as Ii,g as Ci}from"./chunk-DL5D7APS.mjs";import"./chunk-L4P2XC4O.mjs";import"./chunk-AY26QPR7.mjs";import"./chunk-N67G5MC6.mjs";import"./chunk-HZNNGLLL.mjs";import{a as ki}from"./chunk-3RA24RD5.mjs";import"./chunk-BHERVG2C.mjs";import{k as Ei}from"./chunk-MKYVIS65.mjs";import{b as yi,d as Si}from"./chunk-YN73RZ73.mjs";var Ui=yi((xi,pe)=>{"use strict";(function(e,i){"use strict";typeof define=="function"&&define.amd?define(i):typeof pe=="object"&&pe.exports?pe.exports=i():e.log=i()})(xi,function(){"use strict";var e=function(){},i="undefined",a=typeof window!==i&&typeof window.navigator!==i&&/Trident\/|MSIE /.test(window.navigator.userAgent),u=["trace","debug","info","warn","error"],I={},b=null;function y(n,h){var c=n[h];if(typeof c.bind=="function")return c.bind(n);try{return Function.prototype.bind.call(c,n)}catch{return function(){return Function.prototype.apply.apply(c,[n,arguments])}}}function U(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function M(n){return n==="debug"&&(n="log"),typeof console===i?!1:n==="trace"&&a?U:console[n]!==void 0?y(console,n):console.log!==void 0?y(console,"log"):e}function R(){for(var n=this.getLevel(),h=0;h<u.length;h++){var c=u[h];this[c]=h<n?e:this.methodFactory(c,n,this.name)}if(this.log=this.debug,typeof console===i&&n<this.levels.SILENT)return"No console available for logging"}function r(n){return function(){typeof console!==i&&(R.call(this),this[n].apply(this,arguments))}}function s(n,h,c){return M(n)||r.apply(this,arguments)}function t(n,h){var c=this,g,p,C,_="loglevel";typeof n=="string"?_+=":"+n:typeof n=="symbol"&&(_=void 0);function j(S){var T=(u[S]||"silent").toUpperCase();if(!(typeof window===i||!_)){try{window.localStorage[_]=T;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+T+";"}catch{}}}function F(){var S;if(!(typeof window===i||!_)){try{S=window.localStorage[_]}catch{}if(typeof S===i)try{var T=window.document.cookie,L=encodeURIComponent(_),se=T.indexOf(L+"=");se!==-1&&(S=/^([^;]+)/.exec(T.slice(se+L.length+1))[1])}catch{}return c.levels[S]===void 0&&(S=void 0),S}}function q(){if(!(typeof window===i||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function x(S){var T=S;if(typeof T=="string"&&c.levels[T.toUpperCase()]!==void 0&&(T=c.levels[T.toUpperCase()]),typeof T=="number"&&T>=0&&T<=c.levels.SILENT)return T;throw new TypeError("log.setLevel() called with invalid level: "+S)}c.name=n,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=h||s,c.getLevel=function(){return C??p??g},c.setLevel=function(S,T){return C=x(S),T!==!1&&j(C),R.call(c)},c.setDefaultLevel=function(S){p=x(S),F()||c.setLevel(S,!1)},c.resetLevel=function(){C=null,q(),R.call(c)},c.enableAll=function(S){c.setLevel(c.levels.TRACE,S)},c.disableAll=function(S){c.setLevel(c.levels.SILENT,S)},c.rebuild=function(){if(b!==c&&(g=x(b.getLevel())),R.call(c),b===c)for(var S in I)I[S].rebuild()},g=x(b?b.getLevel():"WARN");var $=F();$!=null&&(C=x($)),R.call(c)}b=new t,b.getLogger=function(h){if(typeof h!="symbol"&&typeof h!="string"||h==="")throw new TypeError("You must supply a name when creating a logger.");var c=I[h];return c||(c=I[h]=new t(h,b.methodFactory)),c};var o=typeof window!==i?window.log:void 0;return b.noConflict=function(){return typeof window!==i&&window.log===b&&(window.log=o),b},b.getLoggers=function(){return I},b.default=b,b})});var Gi=yi((ee,ye)=>{"use strict";(function(e,i){"use strict";var a="1.0.37",u="",I="?",b="function",y="undefined",U="object",M="string",R="major",r="model",s="name",t="type",o="vendor",n="version",h="architecture",c="console",g="mobile",p="tablet",C="smarttv",_="wearable",j="embedded",F=500,q="Amazon",x="Apple",$="ASUS",S="BlackBerry",T="Browser",L="Chrome",se="Edge",W="Firefox",le="Google",di="Huawei",Ce="LG",_e="Microsoft",ci="Motorola",ue="Opera",de="Samsung",fi="Sharp",ce="Sony",ze="Xiaomi",xe="Zebra",gi="Facebook",pi="Chromium OS",bi="Mac OS",Nt=function(w,v){var f={};for(var k in w)v[k]&&v[k].length%2===0?f[k]=v[k].concat(w[k]):f[k]=w[k];return f},fe=function(w){for(var v={},f=0;f<w.length;f++)v[w[f].toUpperCase()]=w[f];return v},wi=function(w,v){return typeof w===M?V(v).indexOf(V(w))!==-1:!1},V=function(w){return w.toLowerCase()},Bt=function(w){return typeof w===M?w.replace(/[^\d\.]/g,u).split(".")[0]:i},Ue=function(w,v){if(typeof w===M)return w=w.replace(/^\s\s*/,u),typeof v===y?w:w.substring(0,F)},K=function(w,v){for(var f=0,k,P,N,m,d,B;f<v.length&&!d;){var Be=v[f],hi=v[f+1];for(k=P=0;k<Be.length&&!d&&Be[k];)if(d=Be[k++].exec(w),d)for(N=0;N<hi.length;N++)B=d[++P],m=hi[N],typeof m===U&&m.length>0?m.length===2?typeof m[1]==b?this[m[0]]=m[1].call(this,B):this[m[0]]=m[1]:m.length===3?typeof m[1]===b&&!(m[1].exec&&m[1].test)?this[m[0]]=B?m[1].call(this,B,m[2]):i:this[m[0]]=B?B.replace(m[1],m[2]):i:m.length===4&&(this[m[0]]=B?m[3].
vendor: 4,574 bytes, line 14
14call(this,B.replace(m[1],m[2])):i):this[m]=B||i;f+=2}},Ne=function(w,v){for(var f in v)if(typeof v[f]===U&&v[f].length>0){for(var k=0;k<v[f].length;k++)if(wi(v[f][k],w))return f===I?i:f}else if(wi(v[f],w))return f===I?i:f;return w},Lt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},mi={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"},vi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,n],[/opios[\/ ]+([\w\.]+)/i],[n,[s,ue+" Mini"]],[/\bopr\/([\w\.]+)/i],[n,[s,ue]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[s,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[s,n],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[s,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[s,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[s,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[s,"Smart Lenovo "+T]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure "+T],n],[/\bfocus\/([\w\.]+)/i],[n,[s,W+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[s,ue+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[s,ue+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[s,"MIUI "+T]],[/fxios\/([-\w\.]+)/i],[n,[s,W]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 "+T]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 "+T],n],[/samsungbrowser\/([\w\.]+)/i],[n,[s,de+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],n],[/metasr[\/ ]?([\d\.]+)/i],[n,[s,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[s,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[s,n],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,gi],n],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[s,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[s,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[s,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[s,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,L+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[s,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[n,Ne,Lt]],[/(webkit|khtml)\/([\w\.]+)/i],[s,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[s,W+" 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,/panasonic;(viera)/i],[s,n],[/(cobalt)\/([\w\.]+)/i],[s,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,V]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,u,V]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
vendor: 7,611 bytes, line 14
14|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[r,[o,de],[t,p]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[r,[o,de],[t,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[r,[o,x],[t,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[o,x],[t,p]],[/(macintosh);/i],[r,[o,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[r,[o,fi],[t,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[r,[o,di],[t,p]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[r,[o,di],[t,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[r,/_/g," "],[o,ze],[t,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[r,/_/g," "],[o,ze],[t,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[r,[o,"OPPO"],[t,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[r,[o,"Vivo"],[t,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[r,[o,"Realme"],[t,g]],[/\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],[r,[o,ci],[t,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[r,[o,ci],[t,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[r,[o,Ce],[t,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[r,[o,Ce],[t,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[r,[o,"Lenovo"],[t,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[r,/_/g," "],[o,"Nokia"],[t,g]],[/(pixel c)\b/i],[r,[o,le],[t,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[r,[o,le],[t,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[o,ce],[t,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[r,"Xperia Tablet"],[o,ce],[t,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[r,[o,"OnePlus"],[t,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[r,[o,q],[t,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[r,/(.+)/g,"Fire Phone $1"],[o,q],[t,g]],[/(playbook);[-\w\),; ]+(rim)/i],[r,o,[t,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[r,[o,S],[t,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[r,[o,$],[t,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[r,[o,$],[t,g]],[/(nexus 9)/i],[r,[o,"HTC"],[t,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[r,/_/g," "],[t,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[r,[o,"Acer"],[t,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[r,[o,"Meizu"],[t,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[r,[o,"Ulefone"],[t,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[o,r,[t,g]],[/(kobo)\s(ereader|touch)/i,/(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],[o,r,[t,p]],[/(surface duo)/i],[r,[o,_e],[t,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[r,[o,"Fairphone"],[t,g]],[/(u304aa)/i],[r,[o,"AT&T"],[t,g]],[/\bsie-(\w*)/i],[r,[o,"Siemens"],[t,g]],[/\b(rct\w+) b/i],[r,[o,"RCA"],[t,p]],[/\b(venue[\d ]{2,7}) b/i],[r,[o,"Dell"],[t,p]],[/\b(q(?:mv|ta)\w+) b/i],[r,[o,"Verizon"],[t,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[r,[o,"Barnes & Noble"],[t,p]],[/\b(tm\d{3}\w+) b/i],[r,[o,"NuVision"],[t,p]],[/\b(k88) b/i],[r,[o,"ZTE"],[t,p]],[/\b(nx\d{3}j) b/i],[r,[o,"ZTE"],[t,g]],[/\b(gen\d{3}) b.+49h/i],[r,[o,"Swiss"],[t,g]],[/\b(zur\d{3}) b/i],[r,[o,"Swiss"],[t,p]],[/\b((zeki)?tb.*\b) b/i],[r,[o,"Zeki"],[t,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],r,[t,p]],[/\b(ns-?\w{0,9}) b/i],[r,[o,"Insignia"],[t,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[r,[o,"NextBook"],[t,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],r,[t,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],r,[t,g]],[/\b(ph-1) /i],[r,[o,"Essential"],[t,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[r,[o,"Envizen"],[t,p]],[/\b(trio[-\w\. ]+) b/i],[r,[o,"MachSpeed"],[t,p]],[/\btu_(1491) b/i],[r,[o,"Rotor"],[t,p]],[/(shield[\w ]+) b/i],[r,[o,"Nvidia"],[t,p]],[/(sprint) (\w+)/i],[o,r,[t,g]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[o,_e],[t,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[o,xe],[t,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[o,xe],[t,g]],[/smart-tv.+(samsung)/i],[o,[t,C]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[o,de],[t,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,Ce],[t,C]],[/(apple) ?tv/i],[o,[r,x+" TV"],[t,C]],[/crkey/i],[[r,L+"cast"],[o,le],[t,C]],[/droid.+aft(\w+)( bui|\))/i],[r,[o,q],[t,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[r,[o,fi],[t,C]],[/(bravia[\w ]+)( bui|\))/i],[r,[o,ce],[t,C]],[/(mitv-\w{5}) bui/i],[r,[o,ze],[t,C]],[/Hbbtv.*(technisat) (.*);/i],[o,r,[t,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,Ue],[r,Ue],[t,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[t,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,r,[t,c]],[/droid.+; (shield) bui/i],[r,[o,"Nvidia"],[t,c]],[/(playstation [345portablevi]+)/i],[r,[o,ce],[t,c]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[r,[o,_e],[t,c]],[/((pebble))app/i],[o,r,[t,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[r,[o,x],[t,_]],[/droid.+; (glass) \d/i],[r,[o,le],[t,_]],[/droid.+; (wt63?0{2,3})\)/i],[r,[o,xe],[t,_]],[/(quest( 2| pro)?)/i],[r,[o,gi],[t,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[t,j]],[/(aeobc)\b/i],[r,[o,q],[t,j]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[r,[t,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[r,[t,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[t,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[t,g]],[/(android[-\w\. ]{0,9});.+buil/i],[r,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[s,se+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[s,"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,/\b(libweb)/i],[s,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[s,[n,Ne,mi]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,Ne,mi],[s,"W
14indows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,bi],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,n],[/\(bb(10);/i],[n,[s,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[s,W+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[s,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[s,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[s,L+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[s,pi],n],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(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],[s,n],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[s,n]]},z=function(w,v){if(typeof w===U&&(v=w,w=i),!(this instanceof z))return new z(w,v).getResult();var f=typeof e!==y&&e.navigator?e.navigator:i,k=w||(f&&f.userAgent?f.userAgent:u),P=f&&f.userAgentData?f.userAgentData:i,N=v?Nt(vi,v):vi,m=f&&f.userAgent==k;return this.getBrowser=function(){var d={};return d[s]=i,d[n]=i,K.call(d,k,N.browser),d[R]=Bt(d[n]),m&&f&&f.brave&&typeof f.brave.isBrave==b&&(d[s]="Brave"),d},this.getCPU=function(){var d={};return d[h]=i,K.call(d,k,N.cpu),d},this.getDevice=function(){var d={};return d[o]=i,d[r]=i,d[t]=i,K.call(d,k,N.device),m&&!d[t]&&P&&P.mobile&&(d[t]=g),m&&d[r]=="Macintosh"&&f&&typeof f.standalone!==y&&f.maxTouchPoints&&f.maxTouchPoints>2&&(d[r]="iPad",d[t]=p),d},this.getEngine=function(){var d={};return d[s]=i,d[n]=i,K.call(d,k,N.engine),d},this.getOS=function(){var d={};return d[s]=i,d[n]=i,K.call(d,k,N.os),m&&!d[s]&&P&&P.platform!="Unknown"&&(d[s]=P.platform.replace(/chrome os/i,pi).replace(/macos/i,bi)),d},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 k},this.setUA=function(d){return k=typeof d===M&&d.length>F?Ue(d,F):d,this},this.setUA(k),this};z.VERSION=a,z.BROWSER=fe([s,n,R]),z.CPU=fe([h]),z.DEVICE=fe([r,o,t,c,g,C,p,_,j]),z.ENGINE=z.OS=fe([s,n]),typeof ee!==y?(typeof ye!==y&&ye.exports&&(ee=ye.exports=z),ee.UAParser=z):typeof define===b&&define.amd?define(function(){return z}):typeof e!==y&&(e.UAParser=z);var G=typeof e!==y&&(e.jQuery||e.Zepto);if(G&&!G.ua){var ge=new z;G.ua=ge.getResult(),G.ua.get=function(){return ge.getUA()},G.ua.set=function(w){ge.setUA(w);var v=ge.getResult();for(var f in v)G.ua[f]=v[f]}}})(typeof window=="object"?window:ee)});var X=Si(Ui(),1);var Ot="Expected a function";function Rt(e,i){var a;if(typeof i!="function")throw new TypeError(Ot);return e=zi(e),function(){return--e>0&&(a=i.apply(this,arguments)),e<=1&&(i=void 0),a}}var Ni=Rt;function Pt(e){return Ni(2,e)}var Bi=Pt;var Dt=Object.defineProperty,A=(e,i)=>Dt(e,"name",{value:i,configurable:!0}),Mt=/[-_]/,Ft=A(e=>{let[i,a]=e.split(Mt),u=a?`${i}-${a.toUpperCase()}`:i,I=u.toLowerCase();if(!a&&i in be)return be[i];let b=Li.find(U=>U.toLowerCase()===I);if(b||(b=qt[u],b))return b;if(i in be)return be[i];let y=`${i}-`;for(let U of Li)if(U.startsWith(y))return U;return null}
14,"getSupportedLocale"),Oi=(e=>(e.ar="ar",e.arAR="ar-AR",e.bnBD="bn-BD",e.bnIN="bn-IN",e.daDK="da-DK",e.deDE="de-DE",e.elGR="el-GR",e.enGB="en-GB",e.enUS="en-US",e.es="es",e.esAR="es-AR",e.esES="es-ES",e.esMX="es-MX",e.fiFI="fi-FI",e.filPH="fil-PH",e.frFR="fr-FR",e.guIN="gu-IN",e.hiIN="hi-IN",e.idID="id-ID",e.itIT="it-IT",e.jaJP="ja-JP",e.knIN="kn-IN",e.koKR="ko-KR",e.mlIN="ml-IN",e.mrIN="mr-IN",e.msMY="ms-MY",e.nbNO="nb-NO",e.nlNL="nl-NL",e.pa="pa",e.plPL="pl-PL",e.ptBR="pt-BR",e.ptPT="pt-PT",e.roRO="ro-RO",e.ruRU="ru-RU",e.svSE="sv-SE",e.taIN="ta-IN",e.teIN="te-IN",e.thTH="th-TH",e.trTR="tr-TR",e.urPK="ur-PK",e.viVN="vi-VN",e.zhHans="zh-Hans",e.zhHant="zh-Hant",e.enPLOC="en-PLOC",e))(Oi||{}),Li=Object.values(Oi),qt={"zh-TW":"zh-Hant","zh-CN":"zh-Hans"},be={ar:"ar-AR",bn:"bn-BD",en:"en-US",es:"es-ES",pt:"pt-BR",zh:"zh-Hans"},Ri="en-US",Wt="sc-language",Gt=A(()=>{let e=new URLSearchParams(self.location.search);return e.get("locale")??e.get("lang")},"getLocaleFromQuery"),Ht=A(()=>{let e=self.navigator;if(Array.isArray(e?.languages)){for(let i of e.languages)if(i?.length)return i}return e?.language??null},"getFirstBrowserLanguage");function Me(e){let i=Pi(e);return Ft(i)??Ri}A(Me,"getLocale");function Pi(e){if(e)return e;let i=Gt();if(i)return i;let a=J.get(Wt);if(a)return a;let u=Ht();return u||Ri}A(Pi,"deriveLocale");var Re=!1,Pe=new Map;function E(e){let i=Pe.get(e);return i===void 0&&(i=X.default.getLogger(jt+e),i.setDefaultLevel(X.default.levels.SILENT),Re&&i.setLevel(X.default.levels.DEBUG),Pe.set(e,i)),i}A(E,"getLogger");function Fe(e){Re=e;for(let i of Pe.values())Re?i.setLevel(X.default.levels.DEBUG):i.resetLevel()}A(Fe,"setAnalyticsLoggingEnabled");var jt="Analytics.";function we(){return btoa(String.fromCharCode(...self.crypto.getRandomValues(new Uint8Array(12))))}A(we,"generate60BitUuid");function Di(){return Ai()}A(Di,"generateUuid");function qe(e,i,a){if(!me)return;let u=Mi??(typeof self<"u"?Ci(self.location.hostname):void 0)??".snapchat.com";J.set(e,i,{expires:a.expireDays,domain:u})}A(qe,"setBlizzardCookie");function We(e){if(me)return J.get(e)}A(We,"getBlizzardCookie");var me=!0;function Ge(e){me=e}A(Ge,"setCookiesEnabled");function Q(){return me}A(Q,"areCookiesEnabled");var Mi;function He(e){Mi=e}A(He,"setCookiesDomain");var ve=E("webSessionId"),Y=void 0;function Z(){if(Q())Y=We("blizzard_web_session_id"),Y!==void 0?ve.info("Loaded blizzardWebSessionId from cookies:",Y):Y=Fi();else return"";return Y}A(Z,"getWebSessionId");function Fi(){let e=we();return je(e),ve.info("Generated new webSessionId and saved in cookies:",e),e}A(Fi,"generateAndSaveWebSessionIdInCookies");function je(e){qe("blizzard_web_session_id",e,{expireDays:1/48}),ve.info("Saved current webSessionId in cookies")}A(je,"saveWebSessionIdInCookies");var Oe=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart","mousedown","keyup"],$e=Bi(()=>{if(!Q())return;let e=ki(()=>{je(Z())},1e3);for(let i=0;i<Oe.length;i++)window.addEventListener(Oe[i],e),ve.info("set eventListener for",Oe[i])}),De=E("clientId"),O=null;function he(){if(O===null){let e=Q()?We("blizzard_client_id"):void 0;O=e?Wi.parse(e):null,O!==null&&De.debug("Loaded clientId",O)}if((O?.isExpired()??!0)&&qi(),O===null)throw"Unexpected null clientId";return O.id}A(he,"getClientId");function qi(){De.info("Generating new clientId"),O=Wi.generate(),Q()&&(qe("blizzard_client_id",O.serialize(),{expireDays:Ve}),De.info("clientId is set in Cookies"))}A(qi,"renewAndSaveClientId");var D,Wi=(D=class{constructor(i){this.id=i.id,this.timestamp=i.timestamp}static generate(){return new D({id:Di(),timestamp:Date.now()})}static parse(i){let a=i.split(":");if(a.length===1&&a.push(`${Date.now()}`),a.length!==2)return null;let u={id:a[0],timestamp:Number.parseInt(a[1],10)};return!Ti(u.id)||Number.isNaN(u.timestamp)?null:new D(u)}isExpired(){let i=new Date;return i>new Date(this.timestamp+Ve*24*60*60*1e3)||i<new Date(this.timestamp)}serialize(){return`${this.id}:${this.timestamp}`}},A(D,"ClientId"),D),Ve=30;function Ke(e){Ve=e}A(Ke,"setBlizzardIdCookieExpireDays");var tt=Si(Gi(),1);var $t=Math.floor,Vt=Math.random;function Kt(e,i){return e+$t(Vt()*(i-e+1))}var Hi=Kt;var Jt=parseFloat,Yt=Math.min,Xt=Math.random;function Qt(e,i,a){if(a&&typeof a!="boolean"&&Ei(e,i,a)&&(i=a=void 0),a===void 0&&(typeof i=="boolean"?(a=i,i=void 0):typeof e=="boolean"&&(a=e,e=void 0)),e===void 0&&i===void 0?(e=0,i=1):(e=Le(e),i===void 0?(i=e,e=0):i=Le(i)),e>i){var u=e;e=i,i=u}if(a||e%1||i%1){var I=Xt();return Yt(e+I*(i-e+Jt("1e-"+((I+"").length-1))),i)}return Hi(e,i)}var ji=Qt;var Zt=Object.defineProperty,l=(e,i)=>Zt(e,"name",{value:i,configurable:!0}),Xe;function Zi(e){Xe=e}l(Zi,"setAppEnvironment");function oe(){if(!Xe)throw new Error("appEnvironment not set: was Blizzard initialized?");return Xe}l(oe,"getAppEnvironment");var Qe;function et(e){Qe=e}l(et,"setCollectionMode");
14function ti(){if(!Qe)throw new Error("collectionMode not set: was Blizzard initialized?");return Qe}l(ti,"getCollectionMode");var Ze;function it(e){Ze=e}l(it,"setOriginOverride");function ni(e){if(!Ze)return e;let i=new URL(e),{origin:a}=new URL(Ze);return e.replace(i.origin,a)}l(ni,"applyOriginOverride");var en=E("session"),ei;function ii(){return ei===void 0&&ri("COLD"),ei}l(ii,"getSessionProperties");function ri(e){let i={sessionId:we(),appStartupType:e};en.debug("Started new Blizzard session:",i),ei=i}l(ri,"startNewSession");function nt(e){return e.getTime()/1e3}l(nt,"dateToBlizzardTimestamp");var tn=E("eventMetadata");function rt(e,i){return{event_name:e,client_ts:nt(i),device_connectivity:ot(),connection_download_bandwidth_bps:at()}}l(rt,"getEventMetadata");function ot(){switch(self.navigator?.connection?.type){case"bluetooth":return"BLUETOOTH";case"cellular":return"MOBILE";case"wifi":return"WIFI";case"ethernet":return"ETHERNET";case"none":return"UNREACHABLE";default:return}}l(ot,"getConnectivityType");function at(){if(self.navigator?.connection?.downlink)return BigInt(Math.floor(self.navigator.connection.downlink*1024*1024))}l(at,"getBandwidthBps");function st(){let e;if(document.referrer)try{e=new URL(document.referrer).origin}catch(i){tn.warn("Failed to parse referrer: ",document.referrer,i)}return e}l(st,"getReferrer");function lt(){return oe().appBuild==="PROD"?"":oe()?.appBuild}l(lt,"getAppBuild");var ut=l(e=>e.user_agent!==void 0,"isFrameStart"),$i;async function dt(){let e=await ft;Vi??(Vi=ct());let i={...Vi,client_id:he(),session_id:ii()?.sessionId,app_startup_type:ii()?.appStartupType,blizzard_web_session_id:Z(),user_guid:e??void 0};return _i($i,i)?null:($i=i,i)}l(dt,"getFrameStart");var nn={"MAC OS":"OSX"},Vi;function ct(){let e=new tt.default,i=e.getOS().name?.toUpperCase(),a=i?nn[i]||i:void 0;return{user_agent:e.getUA(),locale:Me(),os_type:a,os_version:a,app_type:oe().appType,app_build:lt(),app_version:oe().appVersion,browser:e.getBrowser().name,browser_version:e.getBrowser().version,device_model:e.getDevice().model,domain:self.location.hostname,referrer:st()}}l(ct,"getPartialFrameStart");var ft=Promise.resolve(null);function gt(e){ft=e}l(gt,"setUserGuidPromise");function oi(e){return!!e&&"eventName"in e}l(oi,"isEvent");var ke=[];function rn(e,i){let a={observer:e,types:i};return ke.push(a),()=>{ke.splice(ke.indexOf(a),1)}}l(rn,"registerDebugObserver");function ae(e){ke.forEach(({observer:i,types:a})=>{(a?.includes(e.type)??!0)&&i(e)})}l(ae,"logDebugAction");function pt(e){return JSON.stringify(te(e))}l(pt,"stringifyBlizzardJsonArray");function te(e){if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return e.map(i=>te(i));if(typeof e=="object"&&e!==null){let i={};for(let[a,u]of Object.entries(e))u!==null&&(typeof u=="object"&&!Array.isArray(u)?Object.assign(i,te(u)):i[a]=te(u));return i}return e}l(te,"transformForBlizzard");var on="https://staging-us-central1-gcp.api.snapchat.com/web-analytics/web",an="https://us-central1-gcp.api.snapchat.com/web-analytics/web",bt="application/json; charset=UTF-8",sn=[400,401,403],ln=l(e=>new Promise(i=>setTimeout(i,e)),"sleep");async function ai(e,i){let a=performance.now();try{return await e()}finally{let u=Math.round(performance.now()-a);un.debug(`${i}=${u}ms`)}}l(ai,"timed");var un=E("timed");async function si(e,i={}){let a=1,u=!1;do{let I=typeof i=="function"?i():i;u&&(I.keepalive=!1);let b;if(!I.signal){let y=new AbortController;b=setTimeout(()=>y.abort(),fn),I.signal=y.signal}try{let y=await ai(()=>fetch(e,Ii(I,["onStatus"])),"network_request_latency_ms");if(await I?.onStatus?.(y.status),y.ok)return y;Se.warn("Request failed",y.status,y.statusText)}catch(y){Se.warn("fetch error",y),I.keepalive&&(Se.debug("Received an error while keepalive was enabled, retrying without keepalive",y),u=!0)}finally{b&&clearTimeout(b)}if(a<Ki){let y=dn(a);Se.debug(`Retrying after ${y}ms...`),await ln(y)}}while(a++<Ki);return null}l(si,"fetchRetry");var Se=E("fetchRetry"),dn=l(e=>e===1?0:ji(0,cn*2**(e-2)),"calculateBackoff"),Ki=10,cn=250,fn=150*1e3,Ji=E("getScaToken"),Ee,Je=void 0;async function wt(e){if(Je&&!e)return Je;if(Ee&&!e)return Ee;Ee=mt();let i=await Ee;return Je=i,i}l(wt,"getScaToken");async function mt(){Ji.debug("Retrieving new SCA token");let e=vt(),i=await si(e,{method:"POST",headers:{"Content-Type":bt}});if(!i)throw new Error("Failed to retrieve authentication token");let{token:a}=await i.json();if(!a)throw new Error("Missing toklen in response");return Ji.debug("Retrieved SCA token"),a}l(mt,"fetchScaToken");function vt(){return`${li()}/init_client`}l(vt,"getInitClientUrl");var gn=(e=>(e.SNAPCHAT_COM="snapchat-com-metrics",e))(gn||{}),Yi="/web-analytics-v2/web",pn={"snapchat-com-metrics":{stagingUrl:`https://staging-gcp.api.snapchat.com${Yi}`,prodUrl:`https://gcp.api.snapchat.com${Yi}`}};function ht(e){let i=pn[e],a=ti()==="STAGE"?i.stagingUrl:i.prodUrl;return ni(a)}l(ht,"getAuthBaseUrl");var Xi=E("authState"),bn=(e=>(e[e.AUTHENTICATED=0]="AUTHENTICATED",e[e.UNAUTHENTICATED=1]="UNAUTHENTICATED",e[e.UNKNOWN=2]="UNKNOWN",e))(bn||{}),wn=Object.freeze({authStatus:2}),mn=Object.freeze({authStatus:1}),Ie=void 0,ne=void 0;function yt(e){if(e===null){Xi.debug("Setting no-op unauthenticated clientAuthProvider"),ne=Promise.resolve(mn),Ie=null;return}Ie=e.ssoClientId,ne=new Promise(i=>{e.authState.subscribe(a=>{Xi.debug("Got new authState:",a),a!==wn&&(i(a),ne=Promise.resolve(a))})})}l(yt,"initializeAuthState");async function St(){if(!ne)throw new Error("getAuthState called before setClientAuthProvider, was initBlizzard called?");return ne}l(St,"getAuthState");function Et(){if(Ie===void 0)throw new Error("getSsoClientId called before setClientAuthProvider, was initBlizzard called?");return Ie}l(Et,"getSsoClientId");async function Te(e){let i;try{i=await kt(e)}catch(a){It.error("Failed to get upload config: ",a),i=void 0}return i}l(Te,"tryToGetUploadConfig");async function kt(e){let i=await St(),a=Et(),u=a&&i.ssoToken&&i.authStatus===0;if(e&&u)return It.info("SSO tokens cannot be refreshed - if provider does not provide a new one asynchronously this may be an issue with the provider"),e;let I=u?`Bearer ${i.ssoToken}`:`SCA ${await wt(!!e)}`;return{baseUrl:u?ht(a):li(),credentials:u?"include":"same-origin",authorizationHeader:I}}l(kt,"getUploadConfig");function li(){let e=ti()==="STAGE"?on:an;return ni(e)}l(li,"getUnauthenticatedBaseUrl");var It=E("uploadConfig");async function Tt(e){let i=pt(e);await At(i,bt,e.length),ae({type:"EventsUploaded",events:e})}l(Tt,"transmitJsonEvents");async function At(e,i,a){ie.debug(`Uploading ${a} event(s)... [${i}]`);let u=await Te();if(!u){ie.error("Failed to get upload config after several attempts. Discarding upload attempt.");return}await si(`${u.baseUrl}/events`,()=>({method:"POST",headers:{"Content-Type":i,Authorization:u.authorizationHeader,"X-Blizzard-Upload-Timestamp":`${Date.now()}`},body:e,credentials:u.credentials,keepalive:!0,onStatus:l(async b=>{sn.includes(b)&&(ie.info("Auth failure, attempting to refresh authentication..."),u=await Te(u)??u)},"onStatus")}))?ie.debug(`Uploaded ${a} event(s)`):ie.error("Failed to upload events after retries, discarding upload attempt.")}l(At,"upload");var ie=E("transmit"),H,vn=(H=class{constructor(i){this.sequenceId=1,this.logQueueName=i,this.log=E(`jsonQueue.${i}`)}async append(i){if(ut(i))this.log.trace("Saw new FrameStart, copying for this queue"),this.lastFrameStart={...i,log_queue_name:this.logQueueName};else if(oi(i)){if(this.lastFrameStart===void 0)throw new Error("Event before FrameStart");let a={...i.data,...i.metadata,...this.lastFrameStart,log_queue_sequence_id:this.sequenceId++};await Tt([a])}else throw new Error(`Illegal item: ${i}`)}},l(H,"JsonLogQueue"),H),hn=new vn("w"),re=E("logEvent"),tr=l(()=>Ct,"logTypedEvent"),Ae=0;async function Ct(e){if(!ui)throw new Error("initBlizzard must be called prior to calling logEvent");let i=[],a=new Date;re.info("Logging event",e.event_name,e);let u=dt();i.push(u);let I=rt(e.event_name,a),b={eventName:e.event_name,metadata:I,data:e};i.push(b),ae({type:"EventLogged",event:b}),Ae>i.length&&re.debug(`#logEvent: Pending items: ${Ae}`),await _t(i)}l(Ct,"logEvent");async function _t(e){let i=await Promise.all(e);for(let a of i)Ae--,a!==null&&(ut(a)?(re.info("Enqueuing a new FrameStart",a),ae({type:"FrameStartEnqueued",frameStart:a})):oi(a)&&(re.debug("Enqueuing an event",a),ae({type:"EventEnqueued",event:a})),await zt().append(a),re.debug(`#enqueueItems: ${Ae} remaining`))}l(_t,"enqueueItems");function zt(){return hn}l(zt,"getLogQueue");var ui=!1;
14function xt(){ui=!0}l(xt,"setInitCalled");var Qi=E("initBlizzard");async function yn(e){if(ui)throw new Error("initBlizzard should not be called multiple times");Qi.info("Initializing Blizzard",e),xt(),Fe(!!e.debugLoggingEnabled),Ge(!e.cookiesDisabled),e.cookiesArgs?.customDomain&&He(e.cookiesArgs.customDomain),e.cookiesArgs?.expireDays&&Ke(e.cookiesArgs.expireDays),$e(),Zi(e.appEnvironment),et(e.mode??"PROD"),it(e.overrideOrigin),yt(e.clientAuthProvider??null),e.userGuid&&gt(e.userGuid),await ai(async()=>{await e.userGuid,await Te(),Qi.info("Blizzard initialized")},"init_duration_millis")}l(yn,"initBlizzard");var Sn=(e=>(e.STAGE="STAGE",e.PROD="PROD",e))(Sn||{}),Ut=E("lifecycle"),Ye=!0;function En(e){let i=e?.hasFocus??document.hasFocus();Ut.info("Blizzard - #onOpen",Ye?"(cold start)":"(warm start)",i?"(foreground)":"(background)"),Ye?Ye=!1:ri("WARM")}l(En,"onPageOpen");function kn(){Ut.info("Blizzard - #onClose")}l(kn,"onPageClose");export{bn as AuthStatus,Sn as CollectionMode,gn as SsoClientId,mn as UNAUTH_STATE,wn as UNSET_AUTH_STATE,he as getClientId,Z as getWebSessionId,yn as initBlizzard,Ct as logEvent,tr as logTypedEvent,kn as onPageClose,En as onPageOpen,r
14n as registerDebugObserver,$e as saveWebSessionIdWhenActive,mn as unauthState,wn as unsetAuthState};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.