-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent---src-pages-toolbox-browser-ua-tsx-ae478f613f1345e0d7d8.js
2 lines (2 loc) · 14.4 KB
/
component---src-pages-toolbox-browser-ua-tsx-ae478f613f1345e0d7d8.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"+qwt":function(e,t,n){(function(e,i){var r;n("pJf4"),n("HQhv"),n("klQ5"),n("sC2a"),n("q8oJ"),n("8npG"),function(){"use strict";var a={function:!0,object:!0},o=a[typeof window]&&window||this,l=a[typeof t]&&t,s=a[typeof e]&&e&&!e.nodeType&&e,b=l&&s&&"object"==typeof i&&i;!b||b.global!==b&&b.window!==b&&b.self!==b||(o=b);var c=Math.pow(2,53)-1,p=/\bOpera/,u=Object.prototype,d=u.hasOwnProperty,f=u.toString;function S(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function x(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:S(e)}function h(e,t){for(var n in e)d.call(e,n)&&t(e[n],n,e)}function m(e){return null==e?S(e):f.call(e).slice(8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function O(e,t){var n=null;return function(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=c)for(;++n<i;)t(e[n],n,e);else h(e,t)}(e,(function(i,r){n=t(n,i,r,e)})),n}function y(e){return String(e).replace(/^ +| +$/g,"")}var v=function e(t){var n=o,i=t&&"object"==typeof t&&"String"!=m(t);i&&(n=t,t=null);var r=n.navigator||{},a=r.userAgent||"";t||(t=a);var l,s,b,c,u,d=i?!!r.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(f.toString()),S=i?"Object":"ScriptBridgingProxyObject",v=i?"Object":"Environment",w=i&&n.java?"JavaPackage":m(n.java),M=i?"Object":"RuntimeObject",E=/\bJava/.test(w)&&n.java,P=E&&m(n.environment)==v,k=E?"a":"α",C=E?"b":"β",W=n.document||{},B=n.operamini||n.opera,A=p.test(A=i&&B?B["[[Class]]"]:m(B))?A:B=null,I=t,T=[],R=null,G=t==a,F=G&&B&&"function"==typeof B.version&&B.version(),$=O([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)})),j=function(e){return O(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),N=V([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),X=function(e){return O(e,(function(e,n,i){return e||(n[N]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(N)]||RegExp("\\b"+g(i)+"(?:\\b|\\w*\\d)","i").exec(t))&&i}))}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),K=function(e){return O(e,(function(e,n){var i=n.pattern||g(n);return!e&&(e=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(i=i[/[\d.]+$/.exec(e)])&&(e="Windows "+i),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=x(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,i,n.label||n)),e}))}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function V(e){return O(e,(function(e,n){var i=n.pattern||g(n);return!e&&(e=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=x(e[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}if($&&($=[$]),X&&!N&&(N=V([X])),(l=/\bGoogle TV\b/.exec(N))&&(N=l[0]),/\bSimulator\b/i.test(t)&&(N=(N?N+" ":"")+"Simulator"),"Opera Mini"==j&&/\bOPiOS\b/.test(t)&&T.push("running in Turbo/Uncompressed mode"),"IE"==j&&/\blike iPhone OS\b/.test(t)?(X=(l=e(t.replace(/like iPhone OS/,""))).manufacturer,N=l.product):/^iP/.test(N)?(j||(j="Safari"),K="iOS"+((l=/ OS ([\d_]+)/i.exec(t))?" "+l[1].replace(/_/g,"."):"")):"Konqueror"!=j||/buntu/i.test(K)?X&&"Google"!=X&&(/Chrome/.test(j)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(N))||/\bAndroid\b/.test(K)&&/^Chrome/.test(j)&&/\bVersion\//i.test(t)?(j="Android Browser",K=/\bAndroid\b/.test(K)?K:"Android"):"Silk"==j?(/\bMobi/i.test(t)||(K="Android",T.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&T.unshift("accelerated")):"PaleMoon"==j&&(l=/\bFirefox\/([\d.]+)\b/.exec(t))?T.push("identifying as Firefox "+l[1]):"Firefox"==j&&(l=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(K||(K="Firefox OS"),N||(N=l[1])):!j||(l=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!N&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(l+"/")+8))&&(j=null),(l=N||X||K)&&(N||X||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(K))&&(j=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(K)?K:l)+" Browser")):"Electron"==j&&(l=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&T.push("Chromium "+l):K="Kubuntu",F||(F=O(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(j),"(?:Firefox|Minefield|NetFront)"],(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))),(l=("iCab"==$&&parseFloat(F)>3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test($)&&"WebKit"||!$&&/\bMSIE\b/i.test(t)&&("Mac OS"==K?"Tasman":"Trident")||"WebKit"==$&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&($=[l]),"IE"==j&&(l=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(j+=" Mobile",K="Windows Phone "+(/\+$/.test(l)?l:l+".x"),T.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(j="IE Mobile",K="Windows Phone 8.x",T.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=j&&"Trident"==$&&(l=/\brv:([\d.]+)/.exec(t))&&(j&&T.push("identifying as "+j+(F?" "+F:"")),j="IE",F=l[1]),G){if(c="global",u=null!=(b=n)?typeof b[c]:"number",/^(?:boolean|number|string|undefined)$/.test(u)||"object"==u&&!b[c])m(l=n.runtime)==S?(j="Adobe AIR",K=l.flash.system.Capabilities.os):m(l=n.phantom)==M?(j="PhantomJS",F=(l=l.version||null)&&l.major+"."+l.minor+"."+l.patch):"number"==typeof W.documentMode&&(l=/\bTrident\/(\d+)/i.exec(t))?(F=[F,W.documentMode],(l=+l[1]+4)!=F[1]&&(T.push("IE "+F[1]+" mode"),$&&($[1]=""),F[1]=l),F="IE"==j?String(F[1].toFixed(1)):F[0]):"number"==typeof W.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(T.push("masking as "+j+" "+F),j="IE",F="11.0",$=["Trident"],K="Windows");else if(E&&(I=(l=E.lang.System).getProperty("os.arch"),K=K||l.getProperty("os.name")+" "+l.getProperty("os.version")),P){try{F=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(z){(l=n.system)&&l.global.system==n.system&&(j="Narwhal",K||(K=l[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(l=n.process)&&("object"==typeof l.versions&&("string"==typeof l.versions.electron?(T.push("Node "+l.versions.node),j="Electron",F=l.versions.electron):"string"==typeof l.versions.nw&&(T.push("Chromium "+F,"Node "+l.versions.node),j="NW.js",F=l.versions.nw)),j||(j="Node.js",I=l.arch,K=l.platform,F=(F=/[\d.]+/.exec(l.version))?F[0]:null));K=K&&x(K)}if(F&&(l=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(G&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(R=/b/i.test(l)?"beta":"alpha",F=F.replace(RegExp(l+"\\+?$"),"")+("beta"==R?C:k)+(/\d+\+?/.exec(l)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS)\b/.test(K))j="Firefox Mobile";else if("Maxthon"==j&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(N))"Xbox 360"==N&&(K=null),"Xbox 360"==N&&/\bIEMobile\b/.test(t)&&T.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||N||/Browser|Mobi/.test(j))||"Windows CE"!=K&&!/Mobi/i.test(t))if("IE"==j&&G)try{null===n.external&&T.unshift("platform preview")}catch(z){T.unshift("embedded")}else(/\bBlackBerry\b/.test(N)||/\bBB10\b/.test(t))&&(l=(RegExp(N.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(K=((l=[l,/BB10/.test(t)])[1]?(N=null,X="BlackBerry"):"Device Software")+" "+l[0],F=null):this!=h&&"Wii"!=N&&(G&&B||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(K)||"IE"==j&&(K&&!/^Win/.test(K)&&F>5.5||/\bWindows XP\b/.test(K)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!p.test(l=e.call(h,t.replace(p,"")+";"))&&l.name&&(l="ing as "+l.name+((l=l.version)?" "+l:""),p.test(j)?(/\bIE\b/.test(l)&&"Mac OS"==K&&(K=null),l="identify"+l):(l="mask"+l,j=A?x(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(l)&&(K=null),G||(F=null)),$=["Presto"],T.push(l));else j+=" Mobile";(l=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(l=[parseFloat(l.replace(/\.(\d)$/,".0$1")),l],"Safari"==j&&"+"==l[1].slice(-1)?(j="WebKit Nightly",R="alpha",F=l[1].slice(0,-1)):F!=l[1]&&F!=(l[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),l[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==l[0]&&537.36==l[2]&&parseFloat(l[1])>=28&&"WebKit"==$&&($=["Blink"]),G&&(d||l[1])?($&&($[1]="like Chrome"),l=l[1]||((l=l[0])<530?1:l<532?2:l<532.05?3:l<533?4:l<534.03?5:l<534.07?6:l<534.1?7:l<534.13?8:l<534.16?9:l<534.24?10:l<534.3?11:l<535.01?12:l<535.02?"13+":l<535.07?15:l<535.11?16:l<535.19?17:l<536.05?18:l<536.1?19:l<537.01?20:l<537.11?"21+":l<537.13?23:l<537.18?24:l<537.24?25:l<537.36?26:"Blink"!=$?"27":"28")):($&&($[1]="like Safari"),l=(l=l[0])<400?1:l<500?2:l<526?3:l<533?4:l<534?"4+":l<535?5:l<537?6:l<538?7:l<601?8:"8"),$&&($[1]+=" "+(l+="number"==typeof l?".x":/[.+]/.test(l)?"":"+")),"Safari"==j&&(!F||parseInt(F)>45)&&(F=l)),"Opera"==j&&(l=/\bzbov|zvav$/.exec(K))?(j+=" ",T.unshift("desktop mode"),"zvav"==l?(j+="Mini",F=null):j+="Mobile",K=K.replace(RegExp(" *"+l+"$"),"")):"Safari"==j&&/\bChrome\b/.exec($&&$[1])&&(T.unshift("desktop mode"),j="Chrome Mobile",F=null,/\bOS X\b/.test(K)?(X="Apple",K="iOS 4.3+"):K=null),F&&0==F.indexOf(l=/[\d.]+$/.exec(K))&&t.indexOf("/"+l+"-")>-1&&(K=y(K.replace(l,""))),$&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(K)&&/\bSafari\b/.test($[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(j)&&$[1])&&(l=$[$.length-1])&&T.push(l),T.length&&(T=["("+T.join("; ")+")"]),X&&N&&N.indexOf(X)<0&&T.push("on "+X),N&&T.push((/^on /.test(T[T.length-1])?"":"on ")+N),K&&(l=/ ([\d.+]+)$/.exec(K),s=l&&"/"==K.charAt(K.length-l[0].length-1),K={architecture:32,family:l&&!s?K.replace(l[0],""):K,version:l?l[1]:null,toString:function(){var e=this.version;return this.family+(e&&!s?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(l=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(I))&&!/\bi686\b/i.test(I)?(K&&(K.architecture=64,K.family=K.family.replace(RegExp(" *"+l),"")),j&&(/\bWOW64\b/i.test(t)||G&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(t))&&T.unshift("32-bit")):K&&/^OS X/.test(K.family)&&"Chrome"==j&&parseFloat(F)>=39&&(K.architecture=64),t||(t=null);var L={};return L.description=t,L.layout=$&&$[0],L.manufacturer=X,L.name=j,L.prerelease=R,L.product=N,L.ua=t,L.version=j&&F,L.os=K||{architecture:null,family:null,version:null,toString:function(){return"null"}},L.parse=e,L.toString=function(){return this.description||""},L.version&&T.unshift(F),L.name&&T.unshift(j),K&&j&&(K!=String(K).split(" ")[0]||K!=j.split(" ")[0]&&!N)&&T.push(N?"("+K+")":"on "+K),T.length&&(L.description=T.join(" ")),L}();o.platform=v,void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}.call(this)}).call(this,n("YuTi")(e),n("yLpj"))},VSAN:function(e,t,n){},YqEj:function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),r=n.n(i),a=n("Nhdc"),o=(n("VSAN"),n("+qwt")),l=n.n(o);t.default=function(){var e=l.a.name,t=l.a.version,n=l.a.layout,i=l.a.ua,o=l.a.os,s=l.a.manufacturer,b=l.a.product,c="".concat(e," ").concat(t," (").concat(n,")"),p=s||b,u="".concat(s," ").concat(b);return r.a.createElement(a.g,{title:"User Agent"},r.a.createElement("h1",null,"UserAgent"),r.a.createElement("p",null,"Browser: ",c),r.a.createElement("p",null,"OS: ",null==o?void 0:o.toString()),r.a.createElement("p",null,"UA: ",i),p&&r.a.createElement("p",null,"Device: ",u))}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}}]);
//# sourceMappingURL=component---src-pages-toolbox-browser-ua-tsx-ae478f613f1345e0d7d8.js.map