@loomhq/record-sdk
Advanced tools
Comparing version 2.34.0-draft to 2.35.0-draft
@@ -12,3 +12,3 @@ (function(global, factory) { | ||
var Te=Object.create;var P=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Ne=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var $=e=>P(e,"__esModule",{value:!0});var Pe=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),Ue=(e,a)=>{$(e);for(var v in a)P(e,v,{get:a[v],enumerable:!0})},Le=(e,a,v)=>{if(a&&typeof a=="object"||typeof a=="function")for(let b of Ce(a))!Me.call(e,b)&&b!=="default"&&P(e,b,{get:()=>a[b],enumerable:!(v=Re(a,b))||v.enumerable});return e},Be=e=>Le($(P(e!=null?Te(Ne(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Z=Pe((T,U)=>{(function(e,a){"use strict";var v="0.7.28",b="",k="?",f="function",D="undefined",A="object",B="string",Ie="major",r="model",o="name",i="type",s="vendor",t="version",E="architecture",x="console",d="mobile",n="tablet",_="smarttv",C="wearable",H="embedded",q=255,h={extend:function(c,u){var l={};for(var w in c)u[w]&&u[w].length%2==0?l[w]=u[w].concat(c[w]):l[w]=c[w];return l},has:function(c,u){return typeof c===B?u.toLowerCase().indexOf(c.toLowerCase())!==-1:!1},lowerize:function(c){return c.toLowerCase()},major:function(c){return typeof c===B?c.replace(/[^\d\.]/g,"").split(".")[0]:a},trim:function(c,u){return c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof u===D?c:c.substring(0,q)}},O={rgx:function(c,u){for(var l=0,w,p,M,m,I,S;l<u.length&&!I;){var j=u[l],X=u[l+1];for(w=p=0;w<j.length&&!I;)if(I=j[w++].exec(c),I)for(M=0;M<X.length;M++)S=I[++p],m=X[M],typeof m===A&&m.length>0?m.length==2?typeof m[1]==f?this[m[0]]=m[1].call(this,S):this[m[0]]=m[1]:m.length==3?typeof m[1]===f&&!(m[1].exec&&m[1].test)?this[m[0]]=S?m[1].call(this,S,m[2]):a:this[m[0]]=S?S.replace(m[1],m[2]):a:m.length==4&&(this[m[0]]=S?m[3].call(this,S.replace(m[1],m[2])):a):this[m]=S||a;l+=2}},str:function(c,u){for(var l in u)if(typeof u[l]===A&&u[l].length>0){for(var w=0;w<u[l].length;w++)if(h.has(u[l][w],c))return l===k?a:l}else if(h.has(u[l],c))return l===k?a:l;return c}},V={browser:{oldSafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{"0.1":"12.","21":"13.","31":"14.","39":"15.","41":"16.","42":"17.","44":"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"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"}}}},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[t,[o,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[t,[o,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[o,t],[/opios[\/\s]+([\w\.]+)/i],[t,[o,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[t,[o,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[o,t],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[t,[o,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[t,[o,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[t,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[t,[o,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[t,[o,"IE"]],[/yabrowser\/([\w\.]+)/i],[t,[o,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure Browser"],t],[/focus\/([\w\.]+)/i],[t,[o,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[t,[o,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[t,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[t,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[t,[o,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[t,[o,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[t,[o,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1 Browser"],t],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],t],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[o,t],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[o],[/;fbav\/([\w\.]+);/i],[t,[o,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[o,t],[/\bgsa\/([\w\.]+)\s.*safari\//i],[t,[o,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[t,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,"Chrome WebView"],t],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[t,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,t],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[t,[o,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[t,o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[t,O.str,V.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,t],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],t],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[t,[o,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[E,/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,h.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[r,[s,"Samsung"],[i,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[r,[s,"Samsung"],[i,d]],[/\((ip(?:hone|od)[\s\w]*);/i],[r,[s,"Apple"],[i,d]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[s,"Apple"],[i,n]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[r,[s,"Huawei"],[i,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[r,[s,"Huawei"],[i,d]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[r,/_/g," "],[s,"Xiaomi"],[i,d]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[r,/_/g," "],[s,"Xiaomi"],[i,n]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[r,[s,"OPPO"],[i,d]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[r,[s,"Vivo"],[i,d]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[r,[s,"Realme"],[i,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[r,[s,"Motorola"],[i,d]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[s,"Motorola"],[i,n]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[r,[s,"LG"],[i,n]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[r,[s,"LG"],[i,d]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[r,[s,"Lenovo"],[i,n]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[r,/_/g," "],[s,"Nokia"],[i,d]],[/droid.+;\s(pixel\sc)[\s)]/i],[r,[s,"Google"],[i,n]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[r,[s,"Google"],[i,d]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[s,"Sony"],[i,d]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[r,"Xperia Tablet"],[s,"Sony"],[i,n]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[r,[s,"OnePlus"],[i,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[r,[s,"Amazon"],[i,n]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[r,"Fire Phone"],[s,"Amazon"],[i,d]],[/\((playbook);[\w\s\),;-]+(rim)/i],[r,s,[i,n]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[r,[s,"BlackBerry"],[i,d]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[r,[s,"ASUS"],[i,n]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[r,[s,"ASUS"],[i,d]],[/(nexus\s9)/i],[r,[s,"HTC"],[i,n]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[r,/_/g," "],[i,d]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[s,"Acer"],[i,n]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[r,[s,"Meizu"],[i,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,r,[i,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[s,r,[i,n]],[/\s(surface\sduo)\s/i],[r,[s,"Microsoft"],[i,n]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[r,[s,"Fairphone"],[i,d]],[/\s(u304aa)\sbuild/i],[r,[s,"AT&T"],[i,d]],[/sie-(\w*)/i],[r,[s,"Siemens"],[i,d]],[/[;\/]\s?(rct\w+)\sbuild/i],[r,[s,"RCA"],[i,n]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[r,[s,"Dell"],[i,n]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[r,[s,"Verizon"],[i,n]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[r,[s,"Barnes & Noble"],[i,n]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[r,[s,"NuVision"],[i,n]],[/;\s(k88)\sbuild/i],[r,[s,"ZTE"],[i,n]],[/;\s(nx\d{3}j)\sbuild/i],[r,[s,"ZTE"],[i,d]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[r,[s,"Swiss"],[i,d]],[/[;\/]\s?(zur\d{3})\sbuild/i],[r,[s,"Swiss"],[i,n]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[r,[s,"Zeki"],[i,n]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[s,"Dragon Touch"],r,[i,n]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[r,[s,"Insignia"],[i,n]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[r,[s,"NextBook"],[i,n]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[s,"Voice"],r,[i,d]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[s,"LvTel"],r,[i,d]],[/;\s(ph-1)\s/i],[r,[s,"Essential"],[i,d]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[r,[s,"Envizen"],[i,n]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[r,[s,"MachSpeed"],[i,n]],[/[;\/]\s?tu_(1491)\sbuild/i],[r,[s,"Rotor"],[i,n]],[/(shield[\w\s]+)\sbuild/i],[r,[s,"Nvidia"],[i,n]],[/(sprint)\s(\w+)/i],[s,r,[i,d]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[s,"Microsoft"],[i,d]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[s,"Zebra"],[i,n]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[s,"Zebra"],[i,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[s,r,[i,x]],[/droid.+;\s(shield)\sbuild/i],[r,[s,"Nvidia"],[i,x]],[/(playstation\s[345portablevi]+)/i],[r,[s,"Sony"],[i,x]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[r,[s,"Microsoft"],[i,x]],[/smart-tv.+(samsung)/i],[s,[i,_]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[s,"Samsung"],[i,_]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[s,"LG"],[i,_]],[/(apple)\s?tv/i],[s,[r,"Apple TV"],[i,_]],[/crkey/i],[[r,"Chromecast"],[s,"Google"],[i,_]],[/droid.+aft([\w])(\sbuild\/|\))/i],[r,[s,"Amazon"],[i,_]],[/\(dtv[\);].+(aquos)/i],[r,[s,"Sharp"],[i,_]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,h.trim],[r,h.trim],[i,_]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[i,_]],[/((pebble))app\/[\d\.]+\s/i],[s,r,[i,C]],[/droid.+;\s(glass)\s\d/i],[r,[s,"Google"],[i,C]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[r,[s,"Zebra"],[i,C]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[s,[i,H]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[r,[i,d]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[r,[i,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[s,"Generic"]],[/(phone)/i],[[i,d]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[t,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,t],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[t,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,t],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[o,[t,O.str,V.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[t,O.str,V.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[t,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[o,"Mac OS"],[t,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[o,t],[/\(bb(10);/i],[t,[o,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[t,[o,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[t,[o,"webOS"]],[/crkey\/([\d\.]+)/i],[t,[o,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],t],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[o,t],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],t],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,t]]},g=function(c,u){if(typeof c=="object"&&(u=c,c=a),!(this instanceof g))return new g(c,u).getResult();var l=c||(typeof e!="undefined"&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:b),w=u?h.extend(Y,u):Y;return this.getBrowser=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.browser),p.major=h.major(p.version),p},this.getCPU=function(){var p={architecture:a};return O.rgx.call(p,l,w.cpu),p},this.getDevice=function(){var p={vendor:a,model:a,type:a};return O.rgx.call(p,l,w.device),p},this.getEngine=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.engine),p},this.getOS=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.os),p},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 l},this.setUA=function(p){return l=typeof p===B&&p.length>q?h.trim(p,q):p,this},this.setUA(l),this};g.VERSION=v,g.BROWSER={NAME:o,MAJOR:Ie,VERSION:t},g.CPU={ARCHITECTURE:E},g.DEVICE={MODEL:r,VENDOR:s,TYPE:i,CONSOLE:x,MOBILE:d,SMARTTV:_,TABLET:n,WEARABLE:C,EMBEDDED:H},g.ENGINE={NAME:o,VERSION:t},g.OS={NAME:o,VERSION:t},typeof T!==D?(typeof U!==D&&U.exports&&(T=U.exports=g),T.UAParser=g):typeof define=="function"&&define.amd?define(function(){return g}):typeof e!="undefined"&&(e.UAParser=g);var y=typeof e!="undefined"&&(e.jQuery||e.Zepto);if(y&&!y.ua){var N=new g;y.ua=N.getResult(),y.ua.get=function(){return N.getUA()},y.ua.set=function(c){N.setUA(c);var u=N.getResult();for(var l in u)y.ua[l]=u[l]}}})(typeof window=="object"?window:T)});Ue(exports,{isSupported:()=>He});var ye=Be(Z());var K;(function(e){e.First="first-authentication-step",e.Second="second-authentication-step"})(K||(K={}));var Q;(function(e){e.Admin="admin",e.Creator="creator",e.CreatorLite="creator_lite",e.Guest="guest",e.Viewer="viewer"})(Q||(Q={}));var L;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warn",e.Info="info",e.Debug="debug"})(L||(L={}));var J;(function(e){e.Initiated="Shared Auth Flow Initiated",e.GraphQLSubscribed="Shared Auth GraphQL Subscribed",e.GraphQLHeardBack="Shared Auth GraphQL Heard Back",e.SessionRequestTokenReceived="Shared Auth Received Session Request Token",e.LoginSuccess="Shared Auth Login Success"})(J||(J={}));var ee;(function(e){e.EXTENSION_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002187698-Getting-started-with-the-Chrome-Extension",e.DESKTOP_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002207917-Getting-started-with-the-Desktop-App",e.CHROME_EXTENSION_INSTALL="https://chrome.google.com/webstore/detail/loom-video-recorder-scree/liecbddmkiiihnedobmlmillhodjkdmb"})(ee||(ee={}));var ie;(function(e){e.Production="https://loom.com",e.Staging="https://stage.loom.com",e.Development="https://loomlocal.com:4444"})(ie||(ie={}));var se;(function(e){e.INITIATE_LOOM_RECORDER_FROM_BUTTON="initiate-loom-recorder-from-script"})(se||(se={}));var re;(function(e){e.V5="v5"})(re||(re={}));var oe;(function(e){e.CHROME="chrome",e.SDK="sdk"})(oe||(oe={}));var te;(function(e){e.CloseModal="close-modal",e.DeleteRecording="delete-modal",e.RedoRecording="restart-recording",e.InsertRecording="insert-recording"})(te||(te={}));var ae;(function(e){e.RecordingControls="recording-controls",e.Authentication="authentication",e.Offline="offline",e.SystemPermissions="system-permissions",e.MemberVideoLimitPaywall="member-video-limit-paywall",e.ErrorModal="error-modal"})(ae||(ae={}));var ne;(function(e){e.OnboardingTutorial="onboarding-tutorial",e.PreRecording="pre-recording",e.Countdown="countdown",e.Recording="recording",e.Paused="paused",e.PostRecording="post-recording",e.Closed="closed"})(ne||(ne={}));var de;(function(e){e.ScreenAndCamera="screen_cam",e.ScreenOnly="screen",e.CameraOnly="cam"})(de||(de={}));var ce;(function(e){e.Camera="cam",e.Desktop="desktop",e.Tab="tab"})(ce||(ce={}));var le;(function(e){e.Success="success",e.Failed="failed"})(le||(le={}));var ue;(function(e){e[e.WS_CLOSE_CODE_NORMAL=1e3]="WS_CLOSE_CODE_NORMAL",e[e.WS_CLOSE_CODE_GOING_AWAY=1001]="WS_CLOSE_CODE_GOING_AWAY",e[e.WS_CLOSE_UNSUPPORTED_DATA=1003]="WS_CLOSE_UNSUPPORTED_DATA",e[e.WS_CLOSE_CODE_ABNORMAL_CLOSE=1006]="WS_CLOSE_CODE_ABNORMAL_CLOSE"})(ue||(ue={}));var me;(function(e){e.Abandoning="wrucore-is-abandoning",e.Abandoned="wrucore-is-abandoned",e.Intitializing="wrucore-is-initializing",e.Ready="wrucore-is-ready",e.Starting="wrucore-is-starting",e.Recording="wrucore-is-recording",e.Pausing="wrucore-is-pausing",e.Paused="wrucore-is-paused",e.Resuming="wrucore-is-resuming",e.Resumed="wrucore-is-resumed",e.Cancelling="wrucore-is-cancelling",e.Cancelled="wrucore-is-cancelled",e.MediaStreamStopped="wrucore-is-media-stream-stopped",e.Completing="wrucore-is-completing",e.FinishedUploading="wrucore-is-finished-uploading",e.Completed="wrucore-is-completed",e.Unknown="wrucore-unknown-state"})(me||(me={}));var pe;(function(e){e.Lowest="lowest",e.Low="low",e.Normal="normal",e.High="high",e.Highest="highest"})(pe||(pe={}));var we;(function(e){e.Development="loom-media-dev",e.Test="loom-media-test",e.Stage="loom-media-staging",e.Production="loom-media-production"})(we||(we={}));var be;(function(e){e.USWest2="us-west-2"})(be||(be={}));var G;(function(e){e.Granted="granted",e.Prompt="prompt",e.Denied="denied"})(G||(G={}));var ve;(function(e){e.PermissionDismissedError="PermissionDismissedError"})(ve||(ve={}));var z;(function(e){e.Development="development",e.Testbench="testbench",e.Staging="staging",e.Production="production"})(z||(z={}));var F;(function(e){e.Development="https://loomlocal.com:4444",e.Staging="https://stage.loom.com",e.Production="https://www.loom.com"})(F||(F={}));var ge;(function(e){e.TEAM_PLATFORM_QA_AUTH="team-platform-qa-auth",e.ENABLE_SDK_MEMBER_VIDEO_LIMITS="enable-sdk-member-video-limits",e.GUEST_RECORDING_LIMITS="guest-recording-limits",e.ROLLOUT_INTEGRATIONS_APP_ASSET_CDN="rollout-integrations-app-asset-cdn",e.ROLLOUT_SDK_KEY_HARDENING_BACKEND="rollout-sdk-key-hardening-backend",e.DISABLE_RECORD_SDK_IS_SUPPORTED_METHOD="disable-record-sdk-is-supported-method"})(ge||(ge={}));var he;(function(e){e.Closed="closed",e.PreRecording="pre-recording",e.ActiveRecording="active-recording",e.PostRecording="post-recording"})(he||(he={}));var fe;(function(e){e.ContentContainer="lo-engage-ext-container",e.Shadow="loom-shadow",e.PreRecordingOverlay="lo-pre-recording-overlay"})(fe||(fe={}));var Ee;(function(e){e.PermissionsStep="permissions-step",e.RecorderSettingsStep="recorder-settings-step",e.RecordingControlsStep="recording-controls-step",e.StartRecordingStep="start-recording-step",e.PermissionsBlockedStep="permissions-blocked-step"})(Ee||(Ee={}));var _e;(function(e){e.IncompatibleBrowser="incompatible-browser",e.ThirdPartyCookiesDisabled="third-party-cookies-disabled",e.NoMediaStreamsSupport="no-media-streams-support",e.GenericError="generic-error"})(_e||(_e={}));var W="integrations.media-devices",qe=W+".request_device_permissions",Ze=qe+".failed",Ke=W+".has_media_device_permissions",Qe=W+".display_surface_selected";var Se;(function(e){e.UserDeclined="User declined",e.MissingPermissions="Missing Permissions",e.UnableToOpen="Unable to open stream"})(Se||(Se={}));var ke=e=>{let a=navigator==null?void 0:navigator.mediaDevices;if(!((a==null?void 0:a.getUserMedia)&&(a==null?void 0:a.getDisplayMedia))){let{userAgent:v}=navigator;return e({level:L.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:a,userAgent:v}}),!1}return!0};var De="loomhq:3pc.supported",Ve="loomhq:3pc.unsupported",Ge=e=>{let a=document.createElement("iframe"),v=new URLSearchParams(e);return a.id="3pc",a.src=`https://www.loom.com/generic/third-party-cookie-check?${v}`,a.style.display="block",a.style.width="0",a.style.height="0",a.style.border="none",a.style.visibility="hidden",new Promise(b=>{let k=f=>{if(![De,Ve].includes(f.data))return;let A=f.data===De;b(A),document.body.removeChild(a),window.removeEventListener("message",k)};window.addEventListener("message",k),document.body.appendChild(a)})},Oe=Ge;var Ae=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(e.origin)?e.origin:"https://www.loom.com"};var xe="2.34.0",ze=["Chrome","Chrome Headless","Edge","Brave"],R;(function(b){b.IncompatibleBrowser="incompatible-browser",b.ThirdPartyCookiesDisabled="third-party-cookies-disabled",b.NoMediaStreamsSupport="no-media-streams-support"})(R||(R={}));var Fe=e=>ze.includes(e.browserName||"")?e.thirdPartyCookieSupport?e.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:R.NoMediaStreamsSupport}:{supported:!1,error:R.ThirdPartyCookiesDisabled}:{supported:!1,error:R.IncompatibleBrowser},We=async({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})=>{let f=new URL("integrations-app/sdk/is-supported",Ae(location));return await fetch(f.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})})},He=async()=>{let{getBrowser:e}=new ye.default,{name:a,version:v}=e(),b=await Oe({loomSDKVersion:xe}),k=ke(({})=>{}),f={loomSDKVersion:xe,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k},D;try{D=await We(f)}catch(A){return Fe(f)}if(D.status!==200){let A=await D.json();return{supported:!1,error:A.errors[0]}}return{supported:!0,error:void 0}}; | ||
var Te=Object.create;var P=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Ne=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var $=e=>P(e,"__esModule",{value:!0});var Pe=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),Ue=(e,a)=>{$(e);for(var v in a)P(e,v,{get:a[v],enumerable:!0})},Le=(e,a,v)=>{if(a&&typeof a=="object"||typeof a=="function")for(let b of Ce(a))!Me.call(e,b)&&b!=="default"&&P(e,b,{get:()=>a[b],enumerable:!(v=Re(a,b))||v.enumerable});return e},Be=e=>Le($(P(e!=null?Te(Ne(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Z=Pe((T,U)=>{(function(e,a){"use strict";var v="0.7.28",b="",k="?",f="function",D="undefined",A="object",B="string",Ie="major",r="model",o="name",i="type",s="vendor",t="version",E="architecture",x="console",d="mobile",n="tablet",_="smarttv",C="wearable",H="embedded",q=255,h={extend:function(c,u){var l={};for(var w in c)u[w]&&u[w].length%2==0?l[w]=u[w].concat(c[w]):l[w]=c[w];return l},has:function(c,u){return typeof c===B?u.toLowerCase().indexOf(c.toLowerCase())!==-1:!1},lowerize:function(c){return c.toLowerCase()},major:function(c){return typeof c===B?c.replace(/[^\d\.]/g,"").split(".")[0]:a},trim:function(c,u){return c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof u===D?c:c.substring(0,q)}},O={rgx:function(c,u){for(var l=0,w,p,M,m,I,S;l<u.length&&!I;){var j=u[l],X=u[l+1];for(w=p=0;w<j.length&&!I;)if(I=j[w++].exec(c),I)for(M=0;M<X.length;M++)S=I[++p],m=X[M],typeof m===A&&m.length>0?m.length==2?typeof m[1]==f?this[m[0]]=m[1].call(this,S):this[m[0]]=m[1]:m.length==3?typeof m[1]===f&&!(m[1].exec&&m[1].test)?this[m[0]]=S?m[1].call(this,S,m[2]):a:this[m[0]]=S?S.replace(m[1],m[2]):a:m.length==4&&(this[m[0]]=S?m[3].call(this,S.replace(m[1],m[2])):a):this[m]=S||a;l+=2}},str:function(c,u){for(var l in u)if(typeof u[l]===A&&u[l].length>0){for(var w=0;w<u[l].length;w++)if(h.has(u[l][w],c))return l===k?a:l}else if(h.has(u[l],c))return l===k?a:l;return c}},V={browser:{oldSafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{"0.1":"12.","21":"13.","31":"14.","39":"15.","41":"16.","42":"17.","44":"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"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"}}}},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[t,[o,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[t,[o,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[o,t],[/opios[\/\s]+([\w\.]+)/i],[t,[o,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[t,[o,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[o,t],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[t,[o,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[t,[o,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[t,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[t,[o,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[t,[o,"IE"]],[/yabrowser\/([\w\.]+)/i],[t,[o,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure Browser"],t],[/focus\/([\w\.]+)/i],[t,[o,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[t,[o,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[t,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[t,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[t,[o,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[t,[o,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[t,[o,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1 Browser"],t],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],t],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[o,t],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[o],[/;fbav\/([\w\.]+);/i],[t,[o,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[o,t],[/\bgsa\/([\w\.]+)\s.*safari\//i],[t,[o,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[t,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,"Chrome WebView"],t],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[t,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,t],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[t,[o,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[t,o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[t,O.str,V.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,t],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],t],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[t,[o,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[E,/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,h.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[r,[s,"Samsung"],[i,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[r,[s,"Samsung"],[i,d]],[/\((ip(?:hone|od)[\s\w]*);/i],[r,[s,"Apple"],[i,d]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[s,"Apple"],[i,n]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[r,[s,"Huawei"],[i,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[r,[s,"Huawei"],[i,d]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[r,/_/g," "],[s,"Xiaomi"],[i,d]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[r,/_/g," "],[s,"Xiaomi"],[i,n]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[r,[s,"OPPO"],[i,d]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[r,[s,"Vivo"],[i,d]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[r,[s,"Realme"],[i,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[r,[s,"Motorola"],[i,d]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[s,"Motorola"],[i,n]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[r,[s,"LG"],[i,n]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[r,[s,"LG"],[i,d]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[r,[s,"Lenovo"],[i,n]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[r,/_/g," "],[s,"Nokia"],[i,d]],[/droid.+;\s(pixel\sc)[\s)]/i],[r,[s,"Google"],[i,n]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[r,[s,"Google"],[i,d]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[s,"Sony"],[i,d]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[r,"Xperia Tablet"],[s,"Sony"],[i,n]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[r,[s,"OnePlus"],[i,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[r,[s,"Amazon"],[i,n]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[r,"Fire Phone"],[s,"Amazon"],[i,d]],[/\((playbook);[\w\s\),;-]+(rim)/i],[r,s,[i,n]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[r,[s,"BlackBerry"],[i,d]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[r,[s,"ASUS"],[i,n]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[r,[s,"ASUS"],[i,d]],[/(nexus\s9)/i],[r,[s,"HTC"],[i,n]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[r,/_/g," "],[i,d]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[s,"Acer"],[i,n]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[r,[s,"Meizu"],[i,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,r,[i,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[s,r,[i,n]],[/\s(surface\sduo)\s/i],[r,[s,"Microsoft"],[i,n]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[r,[s,"Fairphone"],[i,d]],[/\s(u304aa)\sbuild/i],[r,[s,"AT&T"],[i,d]],[/sie-(\w*)/i],[r,[s,"Siemens"],[i,d]],[/[;\/]\s?(rct\w+)\sbuild/i],[r,[s,"RCA"],[i,n]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[r,[s,"Dell"],[i,n]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[r,[s,"Verizon"],[i,n]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[r,[s,"Barnes & Noble"],[i,n]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[r,[s,"NuVision"],[i,n]],[/;\s(k88)\sbuild/i],[r,[s,"ZTE"],[i,n]],[/;\s(nx\d{3}j)\sbuild/i],[r,[s,"ZTE"],[i,d]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[r,[s,"Swiss"],[i,d]],[/[;\/]\s?(zur\d{3})\sbuild/i],[r,[s,"Swiss"],[i,n]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[r,[s,"Zeki"],[i,n]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[s,"Dragon Touch"],r,[i,n]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[r,[s,"Insignia"],[i,n]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[r,[s,"NextBook"],[i,n]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[s,"Voice"],r,[i,d]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[s,"LvTel"],r,[i,d]],[/;\s(ph-1)\s/i],[r,[s,"Essential"],[i,d]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[r,[s,"Envizen"],[i,n]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[r,[s,"MachSpeed"],[i,n]],[/[;\/]\s?tu_(1491)\sbuild/i],[r,[s,"Rotor"],[i,n]],[/(shield[\w\s]+)\sbuild/i],[r,[s,"Nvidia"],[i,n]],[/(sprint)\s(\w+)/i],[s,r,[i,d]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[s,"Microsoft"],[i,d]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[s,"Zebra"],[i,n]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[s,"Zebra"],[i,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[s,r,[i,x]],[/droid.+;\s(shield)\sbuild/i],[r,[s,"Nvidia"],[i,x]],[/(playstation\s[345portablevi]+)/i],[r,[s,"Sony"],[i,x]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[r,[s,"Microsoft"],[i,x]],[/smart-tv.+(samsung)/i],[s,[i,_]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[s,"Samsung"],[i,_]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[s,"LG"],[i,_]],[/(apple)\s?tv/i],[s,[r,"Apple TV"],[i,_]],[/crkey/i],[[r,"Chromecast"],[s,"Google"],[i,_]],[/droid.+aft([\w])(\sbuild\/|\))/i],[r,[s,"Amazon"],[i,_]],[/\(dtv[\);].+(aquos)/i],[r,[s,"Sharp"],[i,_]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,h.trim],[r,h.trim],[i,_]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[i,_]],[/((pebble))app\/[\d\.]+\s/i],[s,r,[i,C]],[/droid.+;\s(glass)\s\d/i],[r,[s,"Google"],[i,C]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[r,[s,"Zebra"],[i,C]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[s,[i,H]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[r,[i,d]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[r,[i,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[s,"Generic"]],[/(phone)/i],[[i,d]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[t,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,t],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[t,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,t],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[o,[t,O.str,V.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[t,O.str,V.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[t,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[o,"Mac OS"],[t,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[o,t],[/\(bb(10);/i],[t,[o,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[t,[o,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[t,[o,"webOS"]],[/crkey\/([\d\.]+)/i],[t,[o,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],t],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[o,t],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],t],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,t]]},g=function(c,u){if(typeof c=="object"&&(u=c,c=a),!(this instanceof g))return new g(c,u).getResult();var l=c||(typeof e!="undefined"&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:b),w=u?h.extend(Y,u):Y;return this.getBrowser=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.browser),p.major=h.major(p.version),p},this.getCPU=function(){var p={architecture:a};return O.rgx.call(p,l,w.cpu),p},this.getDevice=function(){var p={vendor:a,model:a,type:a};return O.rgx.call(p,l,w.device),p},this.getEngine=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.engine),p},this.getOS=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.os),p},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 l},this.setUA=function(p){return l=typeof p===B&&p.length>q?h.trim(p,q):p,this},this.setUA(l),this};g.VERSION=v,g.BROWSER={NAME:o,MAJOR:Ie,VERSION:t},g.CPU={ARCHITECTURE:E},g.DEVICE={MODEL:r,VENDOR:s,TYPE:i,CONSOLE:x,MOBILE:d,SMARTTV:_,TABLET:n,WEARABLE:C,EMBEDDED:H},g.ENGINE={NAME:o,VERSION:t},g.OS={NAME:o,VERSION:t},typeof T!==D?(typeof U!==D&&U.exports&&(T=U.exports=g),T.UAParser=g):typeof define=="function"&&define.amd?define(function(){return g}):typeof e!="undefined"&&(e.UAParser=g);var y=typeof e!="undefined"&&(e.jQuery||e.Zepto);if(y&&!y.ua){var N=new g;y.ua=N.getResult(),y.ua.get=function(){return N.getUA()},y.ua.set=function(c){N.setUA(c);var u=N.getResult();for(var l in u)y.ua[l]=u[l]}}})(typeof window=="object"?window:T)});Ue(exports,{isSupported:()=>He});var ye=Be(Z());var K;(function(e){e.First="first-authentication-step",e.Second="second-authentication-step"})(K||(K={}));var Q;(function(e){e.Admin="admin",e.Creator="creator",e.CreatorLite="creator_lite",e.Guest="guest",e.Viewer="viewer"})(Q||(Q={}));var L;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warn",e.Info="info",e.Debug="debug"})(L||(L={}));var J;(function(e){e.Initiated="Shared Auth Flow Initiated",e.GraphQLSubscribed="Shared Auth GraphQL Subscribed",e.GraphQLHeardBack="Shared Auth GraphQL Heard Back",e.SessionRequestTokenReceived="Shared Auth Received Session Request Token",e.LoginSuccess="Shared Auth Login Success"})(J||(J={}));var ee;(function(e){e.EXTENSION_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002187698-Getting-started-with-the-Chrome-Extension",e.DESKTOP_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002207917-Getting-started-with-the-Desktop-App",e.CHROME_EXTENSION_INSTALL="https://chrome.google.com/webstore/detail/loom-video-recorder-scree/liecbddmkiiihnedobmlmillhodjkdmb"})(ee||(ee={}));var ie;(function(e){e.Production="https://loom.com",e.Staging="https://stage.loom.com",e.Development="https://loomlocal.com:4444"})(ie||(ie={}));var se;(function(e){e.INITIATE_LOOM_RECORDER_FROM_BUTTON="initiate-loom-recorder-from-script"})(se||(se={}));var re;(function(e){e.V5="v5"})(re||(re={}));var oe;(function(e){e.CHROME="chrome",e.SDK="sdk"})(oe||(oe={}));var te;(function(e){e.CloseModal="close-modal",e.DeleteRecording="delete-modal",e.RedoRecording="restart-recording",e.InsertRecording="insert-recording"})(te||(te={}));var ae;(function(e){e.RecordingControls="recording-controls",e.Authentication="authentication",e.Offline="offline",e.SystemPermissions="system-permissions",e.MemberVideoLimitPaywall="member-video-limit-paywall",e.ErrorModal="error-modal"})(ae||(ae={}));var ne;(function(e){e.OnboardingTutorial="onboarding-tutorial",e.PreRecording="pre-recording",e.Countdown="countdown",e.Recording="recording",e.Paused="paused",e.PostRecording="post-recording",e.Closed="closed"})(ne||(ne={}));var de;(function(e){e.ScreenAndCamera="screen_cam",e.ScreenOnly="screen",e.CameraOnly="cam"})(de||(de={}));var ce;(function(e){e.Camera="cam",e.Desktop="desktop",e.Tab="tab"})(ce||(ce={}));var le;(function(e){e.Success="success",e.Failed="failed"})(le||(le={}));var ue;(function(e){e[e.WS_CLOSE_CODE_NORMAL=1e3]="WS_CLOSE_CODE_NORMAL",e[e.WS_CLOSE_CODE_GOING_AWAY=1001]="WS_CLOSE_CODE_GOING_AWAY",e[e.WS_CLOSE_UNSUPPORTED_DATA=1003]="WS_CLOSE_UNSUPPORTED_DATA",e[e.WS_CLOSE_CODE_ABNORMAL_CLOSE=1006]="WS_CLOSE_CODE_ABNORMAL_CLOSE"})(ue||(ue={}));var me;(function(e){e.Abandoning="wrucore-is-abandoning",e.Abandoned="wrucore-is-abandoned",e.Intitializing="wrucore-is-initializing",e.Ready="wrucore-is-ready",e.Starting="wrucore-is-starting",e.Recording="wrucore-is-recording",e.Pausing="wrucore-is-pausing",e.Paused="wrucore-is-paused",e.Resuming="wrucore-is-resuming",e.Resumed="wrucore-is-resumed",e.Cancelling="wrucore-is-cancelling",e.Cancelled="wrucore-is-cancelled",e.MediaStreamStopped="wrucore-is-media-stream-stopped",e.Completing="wrucore-is-completing",e.FinishedUploading="wrucore-is-finished-uploading",e.Completed="wrucore-is-completed",e.Unknown="wrucore-unknown-state"})(me||(me={}));var pe;(function(e){e.Lowest="lowest",e.Low="low",e.Normal="normal",e.High="high",e.Highest="highest"})(pe||(pe={}));var we;(function(e){e.Development="loom-media-dev",e.Test="loom-media-test",e.Stage="loom-media-staging",e.Production="loom-media-production"})(we||(we={}));var be;(function(e){e.USWest2="us-west-2"})(be||(be={}));var G;(function(e){e.Granted="granted",e.Prompt="prompt",e.Denied="denied"})(G||(G={}));var ve;(function(e){e.PermissionDismissedError="PermissionDismissedError"})(ve||(ve={}));var z;(function(e){e.Development="development",e.Testbench="testbench",e.Staging="staging",e.Production="production"})(z||(z={}));var F;(function(e){e.Development="https://loomlocal.com:4444",e.Staging="https://stage.loom.com",e.Production="https://www.loom.com"})(F||(F={}));var ge;(function(e){e.TEAM_PLATFORM_QA_AUTH="team-platform-qa-auth",e.ENABLE_SDK_MEMBER_VIDEO_LIMITS="enable-sdk-member-video-limits",e.GUEST_RECORDING_LIMITS="guest-recording-limits",e.ROLLOUT_INTEGRATIONS_APP_ASSET_CDN="rollout-integrations-app-asset-cdn",e.ROLLOUT_SDK_KEY_HARDENING_BACKEND="rollout-sdk-key-hardening-backend",e.DISABLE_RECORD_SDK_IS_SUPPORTED_METHOD="disable-record-sdk-is-supported-method"})(ge||(ge={}));var he;(function(e){e.Closed="closed",e.PreRecording="pre-recording",e.ActiveRecording="active-recording",e.PostRecording="post-recording"})(he||(he={}));var fe;(function(e){e.ContentContainer="lo-engage-ext-container",e.Shadow="loom-shadow",e.PreRecordingOverlay="lo-pre-recording-overlay"})(fe||(fe={}));var Ee;(function(e){e.PermissionsStep="permissions-step",e.RecorderSettingsStep="recorder-settings-step",e.RecordingControlsStep="recording-controls-step",e.StartRecordingStep="start-recording-step",e.PermissionsBlockedStep="permissions-blocked-step"})(Ee||(Ee={}));var _e;(function(e){e.IncompatibleBrowser="incompatible-browser",e.ThirdPartyCookiesDisabled="third-party-cookies-disabled",e.NoMediaStreamsSupport="no-media-streams-support",e.GenericError="generic-error"})(_e||(_e={}));var W="integrations.media-devices",qe=W+".request_device_permissions",Ze=qe+".failed",Ke=W+".has_media_device_permissions",Qe=W+".display_surface_selected";var Se;(function(e){e.UserDeclined="User declined",e.MissingPermissions="Missing Permissions",e.UnableToOpen="Unable to open stream"})(Se||(Se={}));var ke=e=>{let a=navigator==null?void 0:navigator.mediaDevices;if(!((a==null?void 0:a.getUserMedia)&&(a==null?void 0:a.getDisplayMedia))){let{userAgent:v}=navigator;return e({level:L.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:a,userAgent:v}}),!1}return!0};var De="loomhq:3pc.supported",Ve="loomhq:3pc.unsupported",Ge=e=>{let a=document.createElement("iframe"),v=new URLSearchParams(e);return a.id="3pc",a.src=`https://www.loom.com/generic/third-party-cookie-check?${v}`,a.style.display="block",a.style.width="0",a.style.height="0",a.style.border="none",a.style.visibility="hidden",new Promise(b=>{let k=f=>{if(![De,Ve].includes(f.data))return;let A=f.data===De;b(A),document.body.removeChild(a),window.removeEventListener("message",k)};window.addEventListener("message",k),document.body.appendChild(a)})},Oe=Ge;var Ae=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(e.origin)?e.origin:"https://www.loom.com"};var xe="2.35.0",ze=["Chrome","Chrome Headless","Edge","Brave"],R;(function(b){b.IncompatibleBrowser="incompatible-browser",b.ThirdPartyCookiesDisabled="third-party-cookies-disabled",b.NoMediaStreamsSupport="no-media-streams-support"})(R||(R={}));var Fe=e=>ze.includes(e.browserName||"")?e.thirdPartyCookieSupport?e.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:R.NoMediaStreamsSupport}:{supported:!1,error:R.ThirdPartyCookiesDisabled}:{supported:!1,error:R.IncompatibleBrowser},We=async({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})=>{let f=new URL("integrations-app/sdk/is-supported",Ae(location));return await fetch(f.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})})},He=async()=>{let{getBrowser:e}=new ye.default,{name:a,version:v}=e(),b=await Oe({loomSDKVersion:xe}),k=ke(({})=>{}),f={loomSDKVersion:xe,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k},D;try{D=await We(f)}catch(A){return Fe(f)}if(D.status!==200){let A=await D.json();return{supported:!1,error:A.errors[0]}}return{supported:!0,error:void 0}}; | ||
/*!@license | ||
@@ -15,0 +15,0 @@ * UAParser.js v0.7.28 |
@@ -27,2 +27,20 @@ declare type IsSupportedFunction = () => Promise<{ | ||
} | ||
interface SDKStyles { | ||
/** | ||
* Font family to be used instead of loom defaults. This is 1:1 with `font-family`. | ||
*/ | ||
fontFamily?: string; | ||
/** | ||
* Collection of record button color options | ||
*/ | ||
recordButtonColor?: string; | ||
recordButtonHoverColor?: string; | ||
recordButtonActiveColor?: string; | ||
/** | ||
* Collection of primary color overrides | ||
*/ | ||
primaryColor?: string; | ||
primaryHoverColor?: string; | ||
primaryActiveColor?: string; | ||
} | ||
interface SDKConfig { | ||
@@ -39,2 +57,6 @@ bubbleResizable: boolean; | ||
defaultRecordingType?: RecordingType; | ||
/** | ||
* Collection of styles that can be applied to the loom components. | ||
*/ | ||
styles?: SDKStyles; | ||
} | ||
@@ -41,0 +63,0 @@ declare enum SDKState { |
@@ -1,2 +0,2 @@ | ||
var Ie=Object.create;var V=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty;var Me=e=>V(e,"__esModule",{value:!0});var Pe=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var Ue=(e,a,v)=>{if(a&&typeof a=="object"||typeof a=="function")for(let b of Re(a))!Ne.call(e,b)&&b!=="default"&&V(e,b,{get:()=>a[b],enumerable:!(v=Te(a,b))||v.enumerable});return e},Le=e=>Ue(Me(V(e!=null?Ie(Ce(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var $=Pe((T,P)=>{(function(e,a){"use strict";var v="0.7.28",b="",k="?",f="function",D="undefined",A="object",L="string",xe="major",r="model",o="name",i="type",s="vendor",t="version",E="architecture",x="console",d="mobile",n="tablet",_="smarttv",C="wearable",H="embedded",B=255,h={extend:function(c,u){var l={};for(var w in c)u[w]&&u[w].length%2==0?l[w]=u[w].concat(c[w]):l[w]=c[w];return l},has:function(c,u){return typeof c===L?u.toLowerCase().indexOf(c.toLowerCase())!==-1:!1},lowerize:function(c){return c.toLowerCase()},major:function(c){return typeof c===L?c.replace(/[^\d\.]/g,"").split(".")[0]:a},trim:function(c,u){return c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof u===D?c:c.substring(0,B)}},O={rgx:function(c,u){for(var l=0,w,p,M,m,I,S;l<u.length&&!I;){var j=u[l],X=u[l+1];for(w=p=0;w<j.length&&!I;)if(I=j[w++].exec(c),I)for(M=0;M<X.length;M++)S=I[++p],m=X[M],typeof m===A&&m.length>0?m.length==2?typeof m[1]==f?this[m[0]]=m[1].call(this,S):this[m[0]]=m[1]:m.length==3?typeof m[1]===f&&!(m[1].exec&&m[1].test)?this[m[0]]=S?m[1].call(this,S,m[2]):a:this[m[0]]=S?S.replace(m[1],m[2]):a:m.length==4&&(this[m[0]]=S?m[3].call(this,S.replace(m[1],m[2])):a):this[m]=S||a;l+=2}},str:function(c,u){for(var l in u)if(typeof u[l]===A&&u[l].length>0){for(var w=0;w<u[l].length;w++)if(h.has(u[l][w],c))return l===k?a:l}else if(h.has(u[l],c))return l===k?a:l;return c}},q={browser:{oldSafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{"0.1":"12.","21":"13.","31":"14.","39":"15.","41":"16.","42":"17.","44":"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"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"}}}},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[t,[o,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[t,[o,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[o,t],[/opios[\/\s]+([\w\.]+)/i],[t,[o,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[t,[o,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[o,t],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[t,[o,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[t,[o,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[t,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[t,[o,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[t,[o,"IE"]],[/yabrowser\/([\w\.]+)/i],[t,[o,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure Browser"],t],[/focus\/([\w\.]+)/i],[t,[o,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[t,[o,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[t,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[t,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[t,[o,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[t,[o,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[t,[o,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1 Browser"],t],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],t],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[o,t],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[o],[/;fbav\/([\w\.]+);/i],[t,[o,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[o,t],[/\bgsa\/([\w\.]+)\s.*safari\//i],[t,[o,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[t,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,"Chrome WebView"],t],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[t,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,t],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[t,[o,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[t,o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[t,O.str,q.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,t],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],t],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[t,[o,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[E,/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,h.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[r,[s,"Samsung"],[i,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[r,[s,"Samsung"],[i,d]],[/\((ip(?:hone|od)[\s\w]*);/i],[r,[s,"Apple"],[i,d]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[s,"Apple"],[i,n]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[r,[s,"Huawei"],[i,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[r,[s,"Huawei"],[i,d]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[r,/_/g," "],[s,"Xiaomi"],[i,d]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[r,/_/g," "],[s,"Xiaomi"],[i,n]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[r,[s,"OPPO"],[i,d]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[r,[s,"Vivo"],[i,d]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[r,[s,"Realme"],[i,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[r,[s,"Motorola"],[i,d]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[s,"Motorola"],[i,n]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[r,[s,"LG"],[i,n]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[r,[s,"LG"],[i,d]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[r,[s,"Lenovo"],[i,n]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[r,/_/g," "],[s,"Nokia"],[i,d]],[/droid.+;\s(pixel\sc)[\s)]/i],[r,[s,"Google"],[i,n]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[r,[s,"Google"],[i,d]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[s,"Sony"],[i,d]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[r,"Xperia Tablet"],[s,"Sony"],[i,n]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[r,[s,"OnePlus"],[i,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[r,[s,"Amazon"],[i,n]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[r,"Fire Phone"],[s,"Amazon"],[i,d]],[/\((playbook);[\w\s\),;-]+(rim)/i],[r,s,[i,n]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[r,[s,"BlackBerry"],[i,d]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[r,[s,"ASUS"],[i,n]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[r,[s,"ASUS"],[i,d]],[/(nexus\s9)/i],[r,[s,"HTC"],[i,n]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[r,/_/g," "],[i,d]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[s,"Acer"],[i,n]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[r,[s,"Meizu"],[i,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,r,[i,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[s,r,[i,n]],[/\s(surface\sduo)\s/i],[r,[s,"Microsoft"],[i,n]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[r,[s,"Fairphone"],[i,d]],[/\s(u304aa)\sbuild/i],[r,[s,"AT&T"],[i,d]],[/sie-(\w*)/i],[r,[s,"Siemens"],[i,d]],[/[;\/]\s?(rct\w+)\sbuild/i],[r,[s,"RCA"],[i,n]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[r,[s,"Dell"],[i,n]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[r,[s,"Verizon"],[i,n]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[r,[s,"Barnes & Noble"],[i,n]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[r,[s,"NuVision"],[i,n]],[/;\s(k88)\sbuild/i],[r,[s,"ZTE"],[i,n]],[/;\s(nx\d{3}j)\sbuild/i],[r,[s,"ZTE"],[i,d]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[r,[s,"Swiss"],[i,d]],[/[;\/]\s?(zur\d{3})\sbuild/i],[r,[s,"Swiss"],[i,n]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[r,[s,"Zeki"],[i,n]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[s,"Dragon Touch"],r,[i,n]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[r,[s,"Insignia"],[i,n]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[r,[s,"NextBook"],[i,n]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[s,"Voice"],r,[i,d]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[s,"LvTel"],r,[i,d]],[/;\s(ph-1)\s/i],[r,[s,"Essential"],[i,d]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[r,[s,"Envizen"],[i,n]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[r,[s,"MachSpeed"],[i,n]],[/[;\/]\s?tu_(1491)\sbuild/i],[r,[s,"Rotor"],[i,n]],[/(shield[\w\s]+)\sbuild/i],[r,[s,"Nvidia"],[i,n]],[/(sprint)\s(\w+)/i],[s,r,[i,d]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[s,"Microsoft"],[i,d]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[s,"Zebra"],[i,n]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[s,"Zebra"],[i,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[s,r,[i,x]],[/droid.+;\s(shield)\sbuild/i],[r,[s,"Nvidia"],[i,x]],[/(playstation\s[345portablevi]+)/i],[r,[s,"Sony"],[i,x]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[r,[s,"Microsoft"],[i,x]],[/smart-tv.+(samsung)/i],[s,[i,_]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[s,"Samsung"],[i,_]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[s,"LG"],[i,_]],[/(apple)\s?tv/i],[s,[r,"Apple TV"],[i,_]],[/crkey/i],[[r,"Chromecast"],[s,"Google"],[i,_]],[/droid.+aft([\w])(\sbuild\/|\))/i],[r,[s,"Amazon"],[i,_]],[/\(dtv[\);].+(aquos)/i],[r,[s,"Sharp"],[i,_]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,h.trim],[r,h.trim],[i,_]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[i,_]],[/((pebble))app\/[\d\.]+\s/i],[s,r,[i,C]],[/droid.+;\s(glass)\s\d/i],[r,[s,"Google"],[i,C]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[r,[s,"Zebra"],[i,C]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[s,[i,H]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[r,[i,d]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[r,[i,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[s,"Generic"]],[/(phone)/i],[[i,d]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[t,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,t],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[t,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,t],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[o,[t,O.str,q.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[t,O.str,q.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[t,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[o,"Mac OS"],[t,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[o,t],[/\(bb(10);/i],[t,[o,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[t,[o,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[t,[o,"webOS"]],[/crkey\/([\d\.]+)/i],[t,[o,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],t],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[o,t],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],t],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,t]]},g=function(c,u){if(typeof c=="object"&&(u=c,c=a),!(this instanceof g))return new g(c,u).getResult();var l=c||(typeof e!="undefined"&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:b),w=u?h.extend(Y,u):Y;return this.getBrowser=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.browser),p.major=h.major(p.version),p},this.getCPU=function(){var p={architecture:a};return O.rgx.call(p,l,w.cpu),p},this.getDevice=function(){var p={vendor:a,model:a,type:a};return O.rgx.call(p,l,w.device),p},this.getEngine=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.engine),p},this.getOS=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.os),p},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 l},this.setUA=function(p){return l=typeof p===L&&p.length>B?h.trim(p,B):p,this},this.setUA(l),this};g.VERSION=v,g.BROWSER={NAME:o,MAJOR:xe,VERSION:t},g.CPU={ARCHITECTURE:E},g.DEVICE={MODEL:r,VENDOR:s,TYPE:i,CONSOLE:x,MOBILE:d,SMARTTV:_,TABLET:n,WEARABLE:C,EMBEDDED:H},g.ENGINE={NAME:o,VERSION:t},g.OS={NAME:o,VERSION:t},typeof T!==D?(typeof P!==D&&P.exports&&(T=P.exports=g),T.UAParser=g):typeof define=="function"&&define.amd?define(function(){return g}):typeof e!="undefined"&&(e.UAParser=g);var y=typeof e!="undefined"&&(e.jQuery||e.Zepto);if(y&&!y.ua){var N=new g;y.ua=N.getResult(),y.ua.get=function(){return N.getUA()},y.ua.set=function(c){N.setUA(c);var u=N.getResult();for(var l in u)y.ua[l]=u[l]}}})(typeof window=="object"?window:T)});var Ae=Le($());var Z;(function(e){e.First="first-authentication-step",e.Second="second-authentication-step"})(Z||(Z={}));var K;(function(e){e.Admin="admin",e.Creator="creator",e.CreatorLite="creator_lite",e.Guest="guest",e.Viewer="viewer"})(K||(K={}));var U;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warn",e.Info="info",e.Debug="debug"})(U||(U={}));var Q;(function(e){e.Initiated="Shared Auth Flow Initiated",e.GraphQLSubscribed="Shared Auth GraphQL Subscribed",e.GraphQLHeardBack="Shared Auth GraphQL Heard Back",e.SessionRequestTokenReceived="Shared Auth Received Session Request Token",e.LoginSuccess="Shared Auth Login Success"})(Q||(Q={}));var J;(function(e){e.EXTENSION_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002187698-Getting-started-with-the-Chrome-Extension",e.DESKTOP_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002207917-Getting-started-with-the-Desktop-App",e.CHROME_EXTENSION_INSTALL="https://chrome.google.com/webstore/detail/loom-video-recorder-scree/liecbddmkiiihnedobmlmillhodjkdmb"})(J||(J={}));var ee;(function(e){e.Production="https://loom.com",e.Staging="https://stage.loom.com",e.Development="https://loomlocal.com:4444"})(ee||(ee={}));var ie;(function(e){e.INITIATE_LOOM_RECORDER_FROM_BUTTON="initiate-loom-recorder-from-script"})(ie||(ie={}));var se;(function(e){e.V5="v5"})(se||(se={}));var re;(function(e){e.CHROME="chrome",e.SDK="sdk"})(re||(re={}));var oe;(function(e){e.CloseModal="close-modal",e.DeleteRecording="delete-modal",e.RedoRecording="restart-recording",e.InsertRecording="insert-recording"})(oe||(oe={}));var te;(function(e){e.RecordingControls="recording-controls",e.Authentication="authentication",e.Offline="offline",e.SystemPermissions="system-permissions",e.MemberVideoLimitPaywall="member-video-limit-paywall",e.ErrorModal="error-modal"})(te||(te={}));var ae;(function(e){e.OnboardingTutorial="onboarding-tutorial",e.PreRecording="pre-recording",e.Countdown="countdown",e.Recording="recording",e.Paused="paused",e.PostRecording="post-recording",e.Closed="closed"})(ae||(ae={}));var ne;(function(e){e.ScreenAndCamera="screen_cam",e.ScreenOnly="screen",e.CameraOnly="cam"})(ne||(ne={}));var de;(function(e){e.Camera="cam",e.Desktop="desktop",e.Tab="tab"})(de||(de={}));var ce;(function(e){e.Success="success",e.Failed="failed"})(ce||(ce={}));var le;(function(e){e[e.WS_CLOSE_CODE_NORMAL=1e3]="WS_CLOSE_CODE_NORMAL",e[e.WS_CLOSE_CODE_GOING_AWAY=1001]="WS_CLOSE_CODE_GOING_AWAY",e[e.WS_CLOSE_UNSUPPORTED_DATA=1003]="WS_CLOSE_UNSUPPORTED_DATA",e[e.WS_CLOSE_CODE_ABNORMAL_CLOSE=1006]="WS_CLOSE_CODE_ABNORMAL_CLOSE"})(le||(le={}));var ue;(function(e){e.Abandoning="wrucore-is-abandoning",e.Abandoned="wrucore-is-abandoned",e.Intitializing="wrucore-is-initializing",e.Ready="wrucore-is-ready",e.Starting="wrucore-is-starting",e.Recording="wrucore-is-recording",e.Pausing="wrucore-is-pausing",e.Paused="wrucore-is-paused",e.Resuming="wrucore-is-resuming",e.Resumed="wrucore-is-resumed",e.Cancelling="wrucore-is-cancelling",e.Cancelled="wrucore-is-cancelled",e.MediaStreamStopped="wrucore-is-media-stream-stopped",e.Completing="wrucore-is-completing",e.FinishedUploading="wrucore-is-finished-uploading",e.Completed="wrucore-is-completed",e.Unknown="wrucore-unknown-state"})(ue||(ue={}));var me;(function(e){e.Lowest="lowest",e.Low="low",e.Normal="normal",e.High="high",e.Highest="highest"})(me||(me={}));var pe;(function(e){e.Development="loom-media-dev",e.Test="loom-media-test",e.Stage="loom-media-staging",e.Production="loom-media-production"})(pe||(pe={}));var we;(function(e){e.USWest2="us-west-2"})(we||(we={}));var G;(function(e){e.Granted="granted",e.Prompt="prompt",e.Denied="denied"})(G||(G={}));var be;(function(e){e.PermissionDismissedError="PermissionDismissedError"})(be||(be={}));var z;(function(e){e.Development="development",e.Testbench="testbench",e.Staging="staging",e.Production="production"})(z||(z={}));var F;(function(e){e.Development="https://loomlocal.com:4444",e.Staging="https://stage.loom.com",e.Production="https://www.loom.com"})(F||(F={}));var ve;(function(e){e.TEAM_PLATFORM_QA_AUTH="team-platform-qa-auth",e.ENABLE_SDK_MEMBER_VIDEO_LIMITS="enable-sdk-member-video-limits",e.GUEST_RECORDING_LIMITS="guest-recording-limits",e.ROLLOUT_INTEGRATIONS_APP_ASSET_CDN="rollout-integrations-app-asset-cdn",e.ROLLOUT_SDK_KEY_HARDENING_BACKEND="rollout-sdk-key-hardening-backend",e.DISABLE_RECORD_SDK_IS_SUPPORTED_METHOD="disable-record-sdk-is-supported-method"})(ve||(ve={}));var ge;(function(e){e.Closed="closed",e.PreRecording="pre-recording",e.ActiveRecording="active-recording",e.PostRecording="post-recording"})(ge||(ge={}));var he;(function(e){e.ContentContainer="lo-engage-ext-container",e.Shadow="loom-shadow",e.PreRecordingOverlay="lo-pre-recording-overlay"})(he||(he={}));var fe;(function(e){e.PermissionsStep="permissions-step",e.RecorderSettingsStep="recorder-settings-step",e.RecordingControlsStep="recording-controls-step",e.StartRecordingStep="start-recording-step",e.PermissionsBlockedStep="permissions-blocked-step"})(fe||(fe={}));var Ee;(function(e){e.IncompatibleBrowser="incompatible-browser",e.ThirdPartyCookiesDisabled="third-party-cookies-disabled",e.NoMediaStreamsSupport="no-media-streams-support",e.GenericError="generic-error"})(Ee||(Ee={}));var W="integrations.media-devices",Be=W+".request_device_permissions",Xe=Be+".failed",$e=W+".has_media_device_permissions",Ze=W+".display_surface_selected";var _e;(function(e){e.UserDeclined="User declined",e.MissingPermissions="Missing Permissions",e.UnableToOpen="Unable to open stream"})(_e||(_e={}));var Se=e=>{let a=navigator==null?void 0:navigator.mediaDevices;if(!((a==null?void 0:a.getUserMedia)&&(a==null?void 0:a.getDisplayMedia))){let{userAgent:v}=navigator;return e({level:U.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:a,userAgent:v}}),!1}return!0};var ke="loomhq:3pc.supported",qe="loomhq:3pc.unsupported",Ve=e=>{let a=document.createElement("iframe"),v=new URLSearchParams(e);return a.id="3pc",a.src=`https://www.loom.com/generic/third-party-cookie-check?${v}`,a.style.display="block",a.style.width="0",a.style.height="0",a.style.border="none",a.style.visibility="hidden",new Promise(b=>{let k=f=>{if(![ke,qe].includes(f.data))return;let A=f.data===ke;b(A),document.body.removeChild(a),window.removeEventListener("message",k)};window.addEventListener("message",k),document.body.appendChild(a)})},De=Ve;var Oe=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(e.origin)?e.origin:"https://www.loom.com"};var ye="2.34.0",Ge=["Chrome","Chrome Headless","Edge","Brave"],R;(function(b){b.IncompatibleBrowser="incompatible-browser",b.ThirdPartyCookiesDisabled="third-party-cookies-disabled",b.NoMediaStreamsSupport="no-media-streams-support"})(R||(R={}));var ze=e=>Ge.includes(e.browserName||"")?e.thirdPartyCookieSupport?e.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:R.NoMediaStreamsSupport}:{supported:!1,error:R.ThirdPartyCookiesDisabled}:{supported:!1,error:R.IncompatibleBrowser},Fe=async({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})=>{let f=new URL("integrations-app/sdk/is-supported",Oe(location));return await fetch(f.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})})},ni=async()=>{let{getBrowser:e}=new Ae.default,{name:a,version:v}=e(),b=await De({loomSDKVersion:ye}),k=Se(({})=>{}),f={loomSDKVersion:ye,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k},D;try{D=await Fe(f)}catch(A){return ze(f)}if(D.status!==200){let A=await D.json();return{supported:!1,error:A.errors[0]}}return{supported:!0,error:void 0}};export{ni as isSupported}; | ||
var Ie=Object.create;var V=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty;var Me=e=>V(e,"__esModule",{value:!0});var Pe=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var Ue=(e,a,v)=>{if(a&&typeof a=="object"||typeof a=="function")for(let b of Re(a))!Ne.call(e,b)&&b!=="default"&&V(e,b,{get:()=>a[b],enumerable:!(v=Te(a,b))||v.enumerable});return e},Le=e=>Ue(Me(V(e!=null?Ie(Ce(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var $=Pe((T,P)=>{(function(e,a){"use strict";var v="0.7.28",b="",k="?",f="function",D="undefined",A="object",L="string",xe="major",r="model",o="name",i="type",s="vendor",t="version",E="architecture",x="console",d="mobile",n="tablet",_="smarttv",C="wearable",H="embedded",B=255,h={extend:function(c,u){var l={};for(var w in c)u[w]&&u[w].length%2==0?l[w]=u[w].concat(c[w]):l[w]=c[w];return l},has:function(c,u){return typeof c===L?u.toLowerCase().indexOf(c.toLowerCase())!==-1:!1},lowerize:function(c){return c.toLowerCase()},major:function(c){return typeof c===L?c.replace(/[^\d\.]/g,"").split(".")[0]:a},trim:function(c,u){return c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof u===D?c:c.substring(0,B)}},O={rgx:function(c,u){for(var l=0,w,p,M,m,I,S;l<u.length&&!I;){var j=u[l],X=u[l+1];for(w=p=0;w<j.length&&!I;)if(I=j[w++].exec(c),I)for(M=0;M<X.length;M++)S=I[++p],m=X[M],typeof m===A&&m.length>0?m.length==2?typeof m[1]==f?this[m[0]]=m[1].call(this,S):this[m[0]]=m[1]:m.length==3?typeof m[1]===f&&!(m[1].exec&&m[1].test)?this[m[0]]=S?m[1].call(this,S,m[2]):a:this[m[0]]=S?S.replace(m[1],m[2]):a:m.length==4&&(this[m[0]]=S?m[3].call(this,S.replace(m[1],m[2])):a):this[m]=S||a;l+=2}},str:function(c,u){for(var l in u)if(typeof u[l]===A&&u[l].length>0){for(var w=0;w<u[l].length;w++)if(h.has(u[l][w],c))return l===k?a:l}else if(h.has(u[l],c))return l===k?a:l;return c}},q={browser:{oldSafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{"0.1":"12.","21":"13.","31":"14.","39":"15.","41":"16.","42":"17.","44":"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"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"}}}},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[t,[o,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[t,[o,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[o,t],[/opios[\/\s]+([\w\.]+)/i],[t,[o,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[t,[o,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[o,t],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[t,[o,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[t,[o,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[t,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[t,[o,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[t,[o,"IE"]],[/yabrowser\/([\w\.]+)/i],[t,[o,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure Browser"],t],[/focus\/([\w\.]+)/i],[t,[o,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[t,[o,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[t,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[t,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[t,[o,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[t,[o,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[t,[o,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1 Browser"],t],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],t],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[o,t],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[o],[/;fbav\/([\w\.]+);/i],[t,[o,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[o,t],[/\bgsa\/([\w\.]+)\s.*safari\//i],[t,[o,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[t,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,"Chrome WebView"],t],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[t,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,t],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[t,[o,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[t,o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[t,O.str,q.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,t],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],t],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[t,[o,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[E,/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,h.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[r,[s,"Samsung"],[i,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[r,[s,"Samsung"],[i,d]],[/\((ip(?:hone|od)[\s\w]*);/i],[r,[s,"Apple"],[i,d]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[s,"Apple"],[i,n]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[r,[s,"Huawei"],[i,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[r,[s,"Huawei"],[i,d]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[r,/_/g," "],[s,"Xiaomi"],[i,d]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[r,/_/g," "],[s,"Xiaomi"],[i,n]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[r,[s,"OPPO"],[i,d]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[r,[s,"Vivo"],[i,d]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[r,[s,"Realme"],[i,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[r,[s,"Motorola"],[i,d]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[s,"Motorola"],[i,n]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[r,[s,"LG"],[i,n]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[r,[s,"LG"],[i,d]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[r,[s,"Lenovo"],[i,n]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[r,/_/g," "],[s,"Nokia"],[i,d]],[/droid.+;\s(pixel\sc)[\s)]/i],[r,[s,"Google"],[i,n]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[r,[s,"Google"],[i,d]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[s,"Sony"],[i,d]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[r,"Xperia Tablet"],[s,"Sony"],[i,n]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[r,[s,"OnePlus"],[i,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[r,[s,"Amazon"],[i,n]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[r,"Fire Phone"],[s,"Amazon"],[i,d]],[/\((playbook);[\w\s\),;-]+(rim)/i],[r,s,[i,n]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[r,[s,"BlackBerry"],[i,d]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[r,[s,"ASUS"],[i,n]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[r,[s,"ASUS"],[i,d]],[/(nexus\s9)/i],[r,[s,"HTC"],[i,n]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[r,/_/g," "],[i,d]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[s,"Acer"],[i,n]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[r,[s,"Meizu"],[i,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,r,[i,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[s,r,[i,n]],[/\s(surface\sduo)\s/i],[r,[s,"Microsoft"],[i,n]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[r,[s,"Fairphone"],[i,d]],[/\s(u304aa)\sbuild/i],[r,[s,"AT&T"],[i,d]],[/sie-(\w*)/i],[r,[s,"Siemens"],[i,d]],[/[;\/]\s?(rct\w+)\sbuild/i],[r,[s,"RCA"],[i,n]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[r,[s,"Dell"],[i,n]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[r,[s,"Verizon"],[i,n]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[r,[s,"Barnes & Noble"],[i,n]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[r,[s,"NuVision"],[i,n]],[/;\s(k88)\sbuild/i],[r,[s,"ZTE"],[i,n]],[/;\s(nx\d{3}j)\sbuild/i],[r,[s,"ZTE"],[i,d]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[r,[s,"Swiss"],[i,d]],[/[;\/]\s?(zur\d{3})\sbuild/i],[r,[s,"Swiss"],[i,n]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[r,[s,"Zeki"],[i,n]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[s,"Dragon Touch"],r,[i,n]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[r,[s,"Insignia"],[i,n]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[r,[s,"NextBook"],[i,n]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[s,"Voice"],r,[i,d]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[s,"LvTel"],r,[i,d]],[/;\s(ph-1)\s/i],[r,[s,"Essential"],[i,d]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[r,[s,"Envizen"],[i,n]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[r,[s,"MachSpeed"],[i,n]],[/[;\/]\s?tu_(1491)\sbuild/i],[r,[s,"Rotor"],[i,n]],[/(shield[\w\s]+)\sbuild/i],[r,[s,"Nvidia"],[i,n]],[/(sprint)\s(\w+)/i],[s,r,[i,d]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[s,"Microsoft"],[i,d]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[s,"Zebra"],[i,n]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[s,"Zebra"],[i,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[s,r,[i,x]],[/droid.+;\s(shield)\sbuild/i],[r,[s,"Nvidia"],[i,x]],[/(playstation\s[345portablevi]+)/i],[r,[s,"Sony"],[i,x]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[r,[s,"Microsoft"],[i,x]],[/smart-tv.+(samsung)/i],[s,[i,_]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[s,"Samsung"],[i,_]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[s,"LG"],[i,_]],[/(apple)\s?tv/i],[s,[r,"Apple TV"],[i,_]],[/crkey/i],[[r,"Chromecast"],[s,"Google"],[i,_]],[/droid.+aft([\w])(\sbuild\/|\))/i],[r,[s,"Amazon"],[i,_]],[/\(dtv[\);].+(aquos)/i],[r,[s,"Sharp"],[i,_]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,h.trim],[r,h.trim],[i,_]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[i,_]],[/((pebble))app\/[\d\.]+\s/i],[s,r,[i,C]],[/droid.+;\s(glass)\s\d/i],[r,[s,"Google"],[i,C]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[r,[s,"Zebra"],[i,C]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[s,[i,H]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[r,[i,d]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[r,[i,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[s,"Generic"]],[/(phone)/i],[[i,d]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[t,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,t],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[t,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,t],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[o,[t,O.str,q.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[t,O.str,q.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[t,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[o,"Mac OS"],[t,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[o,t],[/\(bb(10);/i],[t,[o,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[t,[o,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[t,[o,"webOS"]],[/crkey\/([\d\.]+)/i],[t,[o,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],t],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[o,t],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],t],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,t]]},g=function(c,u){if(typeof c=="object"&&(u=c,c=a),!(this instanceof g))return new g(c,u).getResult();var l=c||(typeof e!="undefined"&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:b),w=u?h.extend(Y,u):Y;return this.getBrowser=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.browser),p.major=h.major(p.version),p},this.getCPU=function(){var p={architecture:a};return O.rgx.call(p,l,w.cpu),p},this.getDevice=function(){var p={vendor:a,model:a,type:a};return O.rgx.call(p,l,w.device),p},this.getEngine=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.engine),p},this.getOS=function(){var p={name:a,version:a};return O.rgx.call(p,l,w.os),p},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 l},this.setUA=function(p){return l=typeof p===L&&p.length>B?h.trim(p,B):p,this},this.setUA(l),this};g.VERSION=v,g.BROWSER={NAME:o,MAJOR:xe,VERSION:t},g.CPU={ARCHITECTURE:E},g.DEVICE={MODEL:r,VENDOR:s,TYPE:i,CONSOLE:x,MOBILE:d,SMARTTV:_,TABLET:n,WEARABLE:C,EMBEDDED:H},g.ENGINE={NAME:o,VERSION:t},g.OS={NAME:o,VERSION:t},typeof T!==D?(typeof P!==D&&P.exports&&(T=P.exports=g),T.UAParser=g):typeof define=="function"&&define.amd?define(function(){return g}):typeof e!="undefined"&&(e.UAParser=g);var y=typeof e!="undefined"&&(e.jQuery||e.Zepto);if(y&&!y.ua){var N=new g;y.ua=N.getResult(),y.ua.get=function(){return N.getUA()},y.ua.set=function(c){N.setUA(c);var u=N.getResult();for(var l in u)y.ua[l]=u[l]}}})(typeof window=="object"?window:T)});var Ae=Le($());var Z;(function(e){e.First="first-authentication-step",e.Second="second-authentication-step"})(Z||(Z={}));var K;(function(e){e.Admin="admin",e.Creator="creator",e.CreatorLite="creator_lite",e.Guest="guest",e.Viewer="viewer"})(K||(K={}));var U;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warn",e.Info="info",e.Debug="debug"})(U||(U={}));var Q;(function(e){e.Initiated="Shared Auth Flow Initiated",e.GraphQLSubscribed="Shared Auth GraphQL Subscribed",e.GraphQLHeardBack="Shared Auth GraphQL Heard Back",e.SessionRequestTokenReceived="Shared Auth Received Session Request Token",e.LoginSuccess="Shared Auth Login Success"})(Q||(Q={}));var J;(function(e){e.EXTENSION_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002187698-Getting-started-with-the-Chrome-Extension",e.DESKTOP_RECORDING_SUPPORT_ARTICLE="https://support.loom.com/hc/en-us/articles/360002207917-Getting-started-with-the-Desktop-App",e.CHROME_EXTENSION_INSTALL="https://chrome.google.com/webstore/detail/loom-video-recorder-scree/liecbddmkiiihnedobmlmillhodjkdmb"})(J||(J={}));var ee;(function(e){e.Production="https://loom.com",e.Staging="https://stage.loom.com",e.Development="https://loomlocal.com:4444"})(ee||(ee={}));var ie;(function(e){e.INITIATE_LOOM_RECORDER_FROM_BUTTON="initiate-loom-recorder-from-script"})(ie||(ie={}));var se;(function(e){e.V5="v5"})(se||(se={}));var re;(function(e){e.CHROME="chrome",e.SDK="sdk"})(re||(re={}));var oe;(function(e){e.CloseModal="close-modal",e.DeleteRecording="delete-modal",e.RedoRecording="restart-recording",e.InsertRecording="insert-recording"})(oe||(oe={}));var te;(function(e){e.RecordingControls="recording-controls",e.Authentication="authentication",e.Offline="offline",e.SystemPermissions="system-permissions",e.MemberVideoLimitPaywall="member-video-limit-paywall",e.ErrorModal="error-modal"})(te||(te={}));var ae;(function(e){e.OnboardingTutorial="onboarding-tutorial",e.PreRecording="pre-recording",e.Countdown="countdown",e.Recording="recording",e.Paused="paused",e.PostRecording="post-recording",e.Closed="closed"})(ae||(ae={}));var ne;(function(e){e.ScreenAndCamera="screen_cam",e.ScreenOnly="screen",e.CameraOnly="cam"})(ne||(ne={}));var de;(function(e){e.Camera="cam",e.Desktop="desktop",e.Tab="tab"})(de||(de={}));var ce;(function(e){e.Success="success",e.Failed="failed"})(ce||(ce={}));var le;(function(e){e[e.WS_CLOSE_CODE_NORMAL=1e3]="WS_CLOSE_CODE_NORMAL",e[e.WS_CLOSE_CODE_GOING_AWAY=1001]="WS_CLOSE_CODE_GOING_AWAY",e[e.WS_CLOSE_UNSUPPORTED_DATA=1003]="WS_CLOSE_UNSUPPORTED_DATA",e[e.WS_CLOSE_CODE_ABNORMAL_CLOSE=1006]="WS_CLOSE_CODE_ABNORMAL_CLOSE"})(le||(le={}));var ue;(function(e){e.Abandoning="wrucore-is-abandoning",e.Abandoned="wrucore-is-abandoned",e.Intitializing="wrucore-is-initializing",e.Ready="wrucore-is-ready",e.Starting="wrucore-is-starting",e.Recording="wrucore-is-recording",e.Pausing="wrucore-is-pausing",e.Paused="wrucore-is-paused",e.Resuming="wrucore-is-resuming",e.Resumed="wrucore-is-resumed",e.Cancelling="wrucore-is-cancelling",e.Cancelled="wrucore-is-cancelled",e.MediaStreamStopped="wrucore-is-media-stream-stopped",e.Completing="wrucore-is-completing",e.FinishedUploading="wrucore-is-finished-uploading",e.Completed="wrucore-is-completed",e.Unknown="wrucore-unknown-state"})(ue||(ue={}));var me;(function(e){e.Lowest="lowest",e.Low="low",e.Normal="normal",e.High="high",e.Highest="highest"})(me||(me={}));var pe;(function(e){e.Development="loom-media-dev",e.Test="loom-media-test",e.Stage="loom-media-staging",e.Production="loom-media-production"})(pe||(pe={}));var we;(function(e){e.USWest2="us-west-2"})(we||(we={}));var G;(function(e){e.Granted="granted",e.Prompt="prompt",e.Denied="denied"})(G||(G={}));var be;(function(e){e.PermissionDismissedError="PermissionDismissedError"})(be||(be={}));var z;(function(e){e.Development="development",e.Testbench="testbench",e.Staging="staging",e.Production="production"})(z||(z={}));var F;(function(e){e.Development="https://loomlocal.com:4444",e.Staging="https://stage.loom.com",e.Production="https://www.loom.com"})(F||(F={}));var ve;(function(e){e.TEAM_PLATFORM_QA_AUTH="team-platform-qa-auth",e.ENABLE_SDK_MEMBER_VIDEO_LIMITS="enable-sdk-member-video-limits",e.GUEST_RECORDING_LIMITS="guest-recording-limits",e.ROLLOUT_INTEGRATIONS_APP_ASSET_CDN="rollout-integrations-app-asset-cdn",e.ROLLOUT_SDK_KEY_HARDENING_BACKEND="rollout-sdk-key-hardening-backend",e.DISABLE_RECORD_SDK_IS_SUPPORTED_METHOD="disable-record-sdk-is-supported-method"})(ve||(ve={}));var ge;(function(e){e.Closed="closed",e.PreRecording="pre-recording",e.ActiveRecording="active-recording",e.PostRecording="post-recording"})(ge||(ge={}));var he;(function(e){e.ContentContainer="lo-engage-ext-container",e.Shadow="loom-shadow",e.PreRecordingOverlay="lo-pre-recording-overlay"})(he||(he={}));var fe;(function(e){e.PermissionsStep="permissions-step",e.RecorderSettingsStep="recorder-settings-step",e.RecordingControlsStep="recording-controls-step",e.StartRecordingStep="start-recording-step",e.PermissionsBlockedStep="permissions-blocked-step"})(fe||(fe={}));var Ee;(function(e){e.IncompatibleBrowser="incompatible-browser",e.ThirdPartyCookiesDisabled="third-party-cookies-disabled",e.NoMediaStreamsSupport="no-media-streams-support",e.GenericError="generic-error"})(Ee||(Ee={}));var W="integrations.media-devices",Be=W+".request_device_permissions",Xe=Be+".failed",$e=W+".has_media_device_permissions",Ze=W+".display_surface_selected";var _e;(function(e){e.UserDeclined="User declined",e.MissingPermissions="Missing Permissions",e.UnableToOpen="Unable to open stream"})(_e||(_e={}));var Se=e=>{let a=navigator==null?void 0:navigator.mediaDevices;if(!((a==null?void 0:a.getUserMedia)&&(a==null?void 0:a.getDisplayMedia))){let{userAgent:v}=navigator;return e({level:U.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:a,userAgent:v}}),!1}return!0};var ke="loomhq:3pc.supported",qe="loomhq:3pc.unsupported",Ve=e=>{let a=document.createElement("iframe"),v=new URLSearchParams(e);return a.id="3pc",a.src=`https://www.loom.com/generic/third-party-cookie-check?${v}`,a.style.display="block",a.style.width="0",a.style.height="0",a.style.border="none",a.style.visibility="hidden",new Promise(b=>{let k=f=>{if(![ke,qe].includes(f.data))return;let A=f.data===ke;b(A),document.body.removeChild(a),window.removeEventListener("message",k)};window.addEventListener("message",k),document.body.appendChild(a)})},De=Ve;var Oe=e=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(e.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(e.origin)?e.origin:"https://www.loom.com"};var ye="2.35.0",Ge=["Chrome","Chrome Headless","Edge","Brave"],R;(function(b){b.IncompatibleBrowser="incompatible-browser",b.ThirdPartyCookiesDisabled="third-party-cookies-disabled",b.NoMediaStreamsSupport="no-media-streams-support"})(R||(R={}));var ze=e=>Ge.includes(e.browserName||"")?e.thirdPartyCookieSupport?e.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:R.NoMediaStreamsSupport}:{supported:!1,error:R.ThirdPartyCookiesDisabled}:{supported:!1,error:R.IncompatibleBrowser},Fe=async({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})=>{let f=new URL("integrations-app/sdk/is-supported",Oe(location));return await fetch(f.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:e,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k})})},ni=async()=>{let{getBrowser:e}=new Ae.default,{name:a,version:v}=e(),b=await De({loomSDKVersion:ye}),k=Se(({})=>{}),f={loomSDKVersion:ye,browserName:a,browserVersion:v,thirdPartyCookieSupport:b,hasMediaStreamsSupport:k},D;try{D=await Fe(f)}catch(A){return ze(f)}if(D.status!==200){let A=await D.json();return{supported:!1,error:A.errors[0]}}return{supported:!0,error:void 0}};export{ni as isSupported}; | ||
/*!@license | ||
@@ -3,0 +3,0 @@ * UAParser.js v0.7.28 |
@@ -27,2 +27,20 @@ declare type IsSupportedFunction = () => Promise<{ | ||
} | ||
interface SDKStyles { | ||
/** | ||
* Font family to be used instead of loom defaults. This is 1:1 with `font-family`. | ||
*/ | ||
fontFamily?: string; | ||
/** | ||
* Collection of record button color options | ||
*/ | ||
recordButtonColor?: string; | ||
recordButtonHoverColor?: string; | ||
recordButtonActiveColor?: string; | ||
/** | ||
* Collection of primary color overrides | ||
*/ | ||
primaryColor?: string; | ||
primaryHoverColor?: string; | ||
primaryActiveColor?: string; | ||
} | ||
interface SDKConfig { | ||
@@ -39,2 +57,6 @@ bubbleResizable: boolean; | ||
defaultRecordingType?: RecordingType; | ||
/** | ||
* Collection of styles that can be applied to the loom components. | ||
*/ | ||
styles?: SDKStyles; | ||
} | ||
@@ -41,0 +63,0 @@ declare enum SDKState { |
{ | ||
"name": "@loomhq/record-sdk", | ||
"version": "2.34.0-draft", | ||
"version": "2.35.0-draft", | ||
"description": "The Loom Software Development Kit.", | ||
@@ -54,4 +54,4 @@ "author": "@loomhq/platform", | ||
"@loomhq/outcomes": "2.1.28", | ||
"@loomhq/sdk-background": "1.25.0", | ||
"@loomhq/sdk-store": "0.22.1", | ||
"@loomhq/sdk-background": "1.26.0", | ||
"@loomhq/sdk-store": "0.23.0", | ||
"@loomhq/third-party-cookie-check": "2.0.7", | ||
@@ -112,3 +112,2 @@ "@loomhq/tsconfig": "1.0.3", | ||
"build:types:bundle": "rollup -c || true && cp ./dist/record-sdk.d.ts ./dist/cjs/safe.d.ts", | ||
"build:watch": "node build.watch.js", | ||
"test": "jest --maxWorkers=2", | ||
@@ -115,0 +114,0 @@ "test:cypress": "cypress run" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11
1945776
12207