@xyz-fe/log 3.9.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +135 -9
- package/dist/index.js +4 -2
- package/dist/index.min.js +4 -2
- package/dist/index.mjs +4 -2
- package/dist/mp.d.ts +80 -7
- package/dist/mp.js +2 -2
- package/dist/mp.min.js +2 -2
- package/dist/mp.mjs +2 -2
- package/dist/web-hw.d.ts +71 -6
- package/dist/web-hw.js +2 -2
- package/dist/web-hw.min.js +3 -3
- package/dist/web-hw.mjs +2 -2
- package/dist/web.d.ts +71 -6
- package/dist/web.js +2 -2
- package/dist/web.min.js +2 -2
- package/dist/web.mjs +2 -2
- package/package.json +8 -13
- package/dist/index.js.map +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/mp.js.map +0 -1
- package/dist/mp.min.js.map +0 -1
- package/dist/mp.mjs.map +0 -1
- package/dist/web-hw.js.map +0 -1
- package/dist/web-hw.min.js.map +0 -1
- package/dist/web-hw.mjs.map +0 -1
- package/dist/web.js.map +0 -1
- package/dist/web.min.js.map +0 -1
- package/dist/web.mjs.map +0 -1
package/dist/web-hw.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log
|
|
2
|
+
* @xyz-fe/log v4.0.0
|
|
3
3
|
* (c) lizhigao <lizhigao@021.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["web-hw"]={})}(this,(function(e){"use strict";var o=function(){return o=Object.assign||function(e){for(var o,i=1,n=arguments.length;i<n;i++)for(var t in o=arguments[i])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e},o.apply(this,arguments)};function i(e,o){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(i[n[t]]=e[n[t]])}return i}function n(e,o,i){if(i||2===arguments.length)for(var n,t=0,r=o.length;t<r;t++)!n&&t in o||(n||(n=Array.prototype.slice.call(o,0,t)),n[t]=o[t]);return e.concat(n||Array.prototype.slice.call(o))}var t="XYZ_LOG_";function r(e){return void 0!==typeof localStorage?localStorage.getItem(t+e):null}function a(e,o){void 0!==typeof localStorage&&localStorage.setItem(t+e,o)}function s(e,o){void 0===e&&(e=18),void 0===o&&(o=0);for(var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],t=Math.random,r=e,a=o||i.length,s=0;s<r;s++)n[s]=i[0|t()*a];return n.join("")}function c(e){void 0===e&&(e="UID");var o=r(e);return o||a(e,o=s()),o}function l(e,o){void 0===e&&(e=[]),void 0===o&&(o=location.href);var i=new URL(o).search.substring(1),n={};return i&&i.split("&").forEach((function(e){n[e.split("=")[0]]=e.split("=")[1]})),Object.keys(n).forEach((function(o){e.includes(o)&&delete n[o]})),n}function u(e,i){var n=o({},e),t=o({},i);return Object.keys(n).forEach((function(e){t[e]||delete t[e]})),o(o({},n),t)}function d(e){for(var o,i,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!t.length)return e;var a=t.shift();if(a&&"object"==typeof a)for(var s in a)a[s]&&"object"==typeof a[s]?(e[s]||Object.assign(e,((o={})[s]={},o)),d(e[s],a[s])):Object.assign(e,((i={})[s]=a[s],i));return d.apply(void 0,n([e],t,!1))}var p=function(){return"standalone"==(navigator.standalone||window.matchMedia("(display-mode: standalone)").matches?"standalone":"browser")?"pwa":(e=navigator.userAgent,["Android","webOS","iPhone","iPad","iPod","BlackBerry","Windows Phone"].some((function(o){return e.includes(o)}))?"h5":"pc");var e};var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};!function(e,o){!function(i,n){var t="function",r="undefined",a="object",s="string",c="model",l="name",u="type",d="vendor",p="version",f="architecture",m="console",b="mobile",w="tablet",h="smarttv",g="wearable",v="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",O="Firefox",P="Google",S="Huawei",U="LG",C="Microsoft",A="Motorola",N="Opera",T="Samsung",E="Sony",I="Xiaomi",j="Zebra",R="Facebook",L=function(e){for(var o={},i=0;i<e.length;i++)o[e[i].toUpperCase()]=e[i];return o},B=function(e,o){return typeof e===s&&-1!==M(o).indexOf(M(e))},M=function(e){return e.toLowerCase()},q=function(e,o){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof o===r?e:e.substring(0,255)},z=function(e,o){for(var i,r,s,c,l,u,d=0;d<o.length&&!l;){var p=o[d],f=o[d+1];for(i=r=0;i<p.length&&!l;)if(l=p[i++].exec(e))for(s=0;s<f.length;s++)u=l[++r],typeof(c=f[s])===a&&c.length>0?2===c.length?typeof c[1]==t?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==t||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):n:this[c[0]]=u?c[1].call(this,u,c[2]):n:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):n):this[c]=u||n;d+=2}},D=function(e,o){for(var i in o)if(typeof o[i]===a&&o[i].length>0){for(var t=0;t<o[i].length;t++)if(B(o[i][t],e))return"?"===i?n:i}else if(B(o[i],e))return"?"===i?n:i;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[l,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[l,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[l,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,M]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",M]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,M]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,T],[u,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,T],[u,b]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,_],[u,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[u,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,S],[u,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[d,S],[u,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[d,I],[u,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,I],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[u,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[u,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[u,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[d,A],[u,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,A],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,U],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,U],[u,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[u,b]],[/(pixel c)\b/i],[c,[d,P],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,P],[u,b]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,E],[u,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[u,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,y],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,y],[u,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[u,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,x],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,x],[u,b]],[/(nexus 9)/i],[c,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[u,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[u,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,"Sharp"],[u,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[u,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,c,[u,w]],[/(surface duo)/i],[c,[d,C],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[u,b]],[/(u304aa)/i],[c,[d,"AT&T"],[u,b]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[u,b]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[c,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[u,b]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[u,b]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[u,w]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[u,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[u,b]],[/\b(ph-1) /i],[c,[d,"Essential"],[u,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,c,[u,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,C],[u,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,j],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,j],[u,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[u,m]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[u,m]],[/(playstation [345portablevi]+)/i],[c,[d,E],[u,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,C],[u,m]],[/smart-tv.+(samsung)/i],[d,[u,h]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,T],[u,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,U],[u,h]],[/(apple) ?tv/i],[d,[c,"Apple TV"],[u,h]],[/crkey/i],[[c,"Chromecast"],[d,P],[u,h]],[/droid.+aft(\w)( bui|\))/i],[c,[d,y],[u,h]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[u,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,q],[c,q],[u,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,h]],[/((pebble))app/i],[d,c,[u,g]],[/droid.+; (glass) \d/i],[c,[d,P],[u,g]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,j],[u,g]],[/(quest( 2)?)/i],[c,[d,R],[u,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[u,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[u,b]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[p,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[p,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,p],[/\(bb(10);/i],[p,[l,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[l,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,p]]},J=function(e,o){if(typeof e===a&&(o=e,e=n),!(this instanceof J))return new J(e,o).getResult();var t=e||(typeof i!==r&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),c=o?function(e,o){var i={};for(var n in e)o[n]&&o[n].length%2==0?i[n]=o[n].concat(e[n]):i[n]=e[n];return i}(X,o):X;return this.getBrowser=function(){var e,o={};return o.name=n,o.version=n,z.call(o,t,c.browser),o.major=typeof(e=o.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:n,o},this.getCPU=function(){var e={};return e.architecture=n,z.call(e,t,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=n,e.model=n,e.type=n,z.call(e,t,c.device),e},this.getEngine=function(){var e={};return e.name=n,e.version=n,z.call(e,t,c.engine),e},this.getOS=function(){var e={};return e.name=n,e.version=n,z.call(e,t,c.os),e},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 t},this.setUA=function(e){return t=typeof e===s&&e.length>255?q(e,255):e,this},this.setUA(t),this};J.VERSION="1.0.2",J.BROWSER=L([l,p,"major"]),J.CPU=L([f]),J.DEVICE=L([c,d,u,m,b,h,w,g,v]),J.ENGINE=J.OS=L([l,p]),e.exports&&(o=e.exports=J),o.UAParser=J;var F=typeof i!==r&&(i.jQuery||i.Zepto);if(F&&!F.ua){var W=new J;F.ua=W.getResult(),F.ua.get=function(){return W.getUA()},F.ua.set=function(e){W.setUA(e);var o=W.getResult();for(var i in o)F.ua[i]=o[i]}}}("object"==typeof window?window:f)}(m,m.exports);var b=new m.exports.UAParser,w=b.getBrowser(),h=w.name,g=w.version,v=b.getEngine(),y=v.name,_=v.version,x=function(){var e=(0,b.getOS)();return{os:e.name,osversion:e.version}}(),k=x.os,O=x.osversion,P=function(){var e=(0,b.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),S=P.device,U=P.devicebrand;k=k||"",O=O||"",S=S||"",U=U||"";var C={exports:{}},A={exports:{}},N=1e3,T=60*N,E=60*T,I=24*E,j=365.25*I,R=function(e,o){o=o||{};var i=typeof e;if("string"===i&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var i=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*j;case"days":case"day":case"d":return i*I;case"hours":case"hour":case"hrs":case"hr":case"h":return i*E;case"minutes":case"minute":case"mins":case"min":case"m":return i*T;case"seconds":case"second":case"secs":case"sec":case"s":return i*N;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===i&&!1===isNaN(e))return o.long?function(e){return L(e,I,"day")||L(e,E,"hour")||L(e,T,"minute")||L(e,N,"second")||e+" ms"}(e):function(e){if(e>=I)return Math.round(e/I)+"d";if(e>=E)return Math.round(e/E)+"h";if(e>=T)return Math.round(e/T)+"m";if(e>=N)return Math.round(e/N)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function L(e,o,i){if(!(e<o))return e<1.5*o?Math.floor(e/o)+" "+i:Math.ceil(e/o)+" "+i+"s"}!function(e,o){var i;function n(e){function n(){if(n.enabled){var e=n,t=+new Date,r=t-(i||t);e.diff=r,e.prev=i,e.curr=t,i=t;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=o.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(i,n){if("%%"===i)return i;c++;var t=o.formatters[n];if("function"==typeof t){var r=a[c];i=t.call(e,r),a.splice(c,1),c--}return i})),o.formatArgs.call(e,a);var l=n.log||o.log||console.log.bind(console);l.apply(e,a)}}return n.namespace=e,n.enabled=o.enabled(e),n.useColors=o.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i),n|=0;return o.colors[Math.abs(n)%o.colors.length]}(e),"function"==typeof o.init&&o.init(n),n}(o=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},o.disable=function(){o.enable("")},o.enable=function(e){o.save(e),o.names=[],o.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,t=0;t<n;t++)i[t]&&("-"===(e=i[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")))},o.enabled=function(e){var i,n;for(i=0,n=o.skips.length;i<n;i++)if(o.skips[i].test(e))return!1;for(i=0,n=o.names.length;i<n;i++)if(o.names[i].test(e))return!0;return!1},o.humanize=R,o.names=[],o.skips=[],o.formatters={}}(A,A.exports),function(e,o){function i(){var e;try{e=o.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(o=e.exports=A.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+o.humanize(this.diff),!i)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(t++,"%c"===e&&(r=t))})),e.splice(r,0,n)},o.save=function(e){try{null==e?o.storage.removeItem("debug"):o.storage.debug=e}catch(e){}},o.load=i,o.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),o.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],o.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},o.enable(i())}(C,C.exports);var B=C.exports("jsonp"),M=function(e,o,i){"function"==typeof o&&(i=o,o={});o||(o={});var n,t,r=o.prefix||"__jp",a=o.name||r+q++,s=o.param||"callback",c=null!=o.timeout?o.timeout:6e4,l=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;c&&(t=setTimeout((function(){d(),i&&i(new Error("Timeout"))}),c));function d(){n.parentNode&&n.parentNode.removeChild(n),window[a]=z,t&&clearTimeout(t)}return window[a]=function(e){B("jsonp got",e),d(),i&&i(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+l(a)).replace("?&","?"),B('jsonp req "%s"',e),(n=document.createElement("script")).src=e,u.parentNode.insertBefore(n,u),function(){window[a]&&d()}},q=0;function z(){}function D(e,o){return void 0===o&&(o={}),new Promise((function(i,n){var t;M("".concat(e,"?").concat((t=o,Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,o){e?n(e):i(o)}))}))}var G="3.9.0";
|
|
6
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["web-hw"]={})}(this,(function(e){"use strict";var o=function(){return o=Object.assign||function(e){for(var o,i=1,n=arguments.length;i<n;i++)for(var t in o=arguments[i])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e},o.apply(this,arguments)};function i(e,o){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(i[n[t]]=e[n[t]])}return i}function n(e,o,i){if(i||2===arguments.length)for(var n,t=0,r=o.length;t<r;t++)!n&&t in o||(n||(n=Array.prototype.slice.call(o,0,t)),n[t]=o[t]);return e.concat(n||Array.prototype.slice.call(o))}var t="XYZ_LOG_";function r(e){return void 0!==typeof localStorage?localStorage.getItem(t+e):null}function a(e,o){void 0!==typeof localStorage&&localStorage.setItem(t+e,o)}function s(e,o){void 0===e&&(e=18),void 0===o&&(o=0);for(var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],t=Math.random,r=e,a=o||i.length,s=0;s<r;s++)n[s]=i[0|t()*a];return n.join("")}function c(e){void 0===e&&(e="UID");var o=r(e);return o||a(e,o=s()),o}function l(e,o){void 0===e&&(e=[]),void 0===o&&(o=location.href);var i=new URL(o).search.substring(1),n={};return i&&i.split("&").forEach((function(e){n[e.split("=")[0]]=e.split("=")[1]})),Object.keys(n).forEach((function(o){e.includes(o)&&delete n[o]})),n}function u(e,i){var n=o({},e),t=o({},i);return Object.keys(n).forEach((function(e){t[e]||delete t[e]})),o(o({},n),t)}function d(e){for(var o,i,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!t.length)return e;var a=t.shift();if(a&&"object"==typeof a)for(var s in a)a[s]&&"object"==typeof a[s]?(e[s]||Object.assign(e,((o={})[s]={},o)),d(e[s],a[s])):Object.assign(e,((i={})[s]=a[s],i));return d.apply(void 0,n([e],t,!1))}var p=function(){return"standalone"==(navigator.standalone||window.matchMedia("(display-mode: standalone)").matches?"standalone":"browser")?"pwa":(e=navigator.userAgent,["Android","webOS","iPhone","iPad","iPod","BlackBerry","Windows Phone"].some((function(o){return e.includes(o)}))?"h5":"pc");var e};var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};!function(e,o){!function(i,n){var t="function",r="undefined",a="object",s="string",c="model",l="name",u="type",d="vendor",p="version",f="architecture",m="console",b="mobile",w="tablet",h="smarttv",g="wearable",v="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",O="Firefox",P="Google",S="Huawei",U="LG",C="Microsoft",A="Motorola",N="Opera",T="Samsung",E="Sony",I="Xiaomi",j="Zebra",R="Facebook",L=function(e){for(var o={},i=0;i<e.length;i++)o[e[i].toUpperCase()]=e[i];return o},B=function(e,o){return typeof e===s&&-1!==M(o).indexOf(M(e))},M=function(e){return e.toLowerCase()},q=function(e,o){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof o===r?e:e.substring(0,255)},z=function(e,o){for(var i,r,s,c,l,u,d=0;d<o.length&&!l;){var p=o[d],f=o[d+1];for(i=r=0;i<p.length&&!l;)if(l=p[i++].exec(e))for(s=0;s<f.length;s++)u=l[++r],typeof(c=f[s])===a&&c.length>0?2===c.length?typeof c[1]==t?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==t||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):n:this[c[0]]=u?c[1].call(this,u,c[2]):n:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):n):this[c]=u||n;d+=2}},D=function(e,o){for(var i in o)if(typeof o[i]===a&&o[i].length>0){for(var t=0;t<o[i].length;t++)if(B(o[i][t],e))return"?"===i?n:i}else if(B(o[i],e))return"?"===i?n:i;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[l,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[l,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[l,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,M]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",M]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,M]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,T],[u,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,T],[u,b]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,_],[u,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[u,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,S],[u,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[d,S],[u,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[d,I],[u,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,I],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[u,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[u,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[u,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[d,A],[u,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,A],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,U],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,U],[u,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[u,b]],[/(pixel c)\b/i],[c,[d,P],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,P],[u,b]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,E],[u,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[u,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,y],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,y],[u,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[u,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,x],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,x],[u,b]],[/(nexus 9)/i],[c,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[u,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[u,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,"Sharp"],[u,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[u,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,c,[u,w]],[/(surface duo)/i],[c,[d,C],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[u,b]],[/(u304aa)/i],[c,[d,"AT&T"],[u,b]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[u,b]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[c,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[u,b]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[u,b]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[u,w]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[u,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[u,b]],[/\b(ph-1) /i],[c,[d,"Essential"],[u,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,c,[u,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,C],[u,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,j],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,j],[u,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[u,m]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[u,m]],[/(playstation [345portablevi]+)/i],[c,[d,E],[u,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,C],[u,m]],[/smart-tv.+(samsung)/i],[d,[u,h]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,T],[u,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,U],[u,h]],[/(apple) ?tv/i],[d,[c,"Apple TV"],[u,h]],[/crkey/i],[[c,"Chromecast"],[d,P],[u,h]],[/droid.+aft(\w)( bui|\))/i],[c,[d,y],[u,h]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[u,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,q],[c,q],[u,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,h]],[/((pebble))app/i],[d,c,[u,g]],[/droid.+; (glass) \d/i],[c,[d,P],[u,g]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,j],[u,g]],[/(quest( 2)?)/i],[c,[d,R],[u,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[u,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[u,b]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[p,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[p,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,p],[/\(bb(10);/i],[p,[l,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[l,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,p]]},J=function(e,o){if(typeof e===a&&(o=e,e=n),!(this instanceof J))return new J(e,o).getResult();var t=e||(typeof i!==r&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),c=o?function(e,o){var i={};for(var n in e)o[n]&&o[n].length%2==0?i[n]=o[n].concat(e[n]):i[n]=e[n];return i}(X,o):X;return this.getBrowser=function(){var e,o={};return o.name=n,o.version=n,z.call(o,t,c.browser),o.major=typeof(e=o.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:n,o},this.getCPU=function(){var e={};return e.architecture=n,z.call(e,t,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=n,e.model=n,e.type=n,z.call(e,t,c.device),e},this.getEngine=function(){var e={};return e.name=n,e.version=n,z.call(e,t,c.engine),e},this.getOS=function(){var e={};return e.name=n,e.version=n,z.call(e,t,c.os),e},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 t},this.setUA=function(e){return t=typeof e===s&&e.length>255?q(e,255):e,this},this.setUA(t),this};J.VERSION="1.0.2",J.BROWSER=L([l,p,"major"]),J.CPU=L([f]),J.DEVICE=L([c,d,u,m,b,h,w,g,v]),J.ENGINE=J.OS=L([l,p]),e.exports&&(o=e.exports=J),o.UAParser=J;var F=typeof i!==r&&(i.jQuery||i.Zepto);if(F&&!F.ua){var W=new J;F.ua=W.getResult(),F.ua.get=function(){return W.getUA()},F.ua.set=function(e){W.setUA(e);var o=W.getResult();for(var i in o)F.ua[i]=o[i]}}}("object"==typeof window?window:f)}(m,m.exports);var b=new m.exports.UAParser,w=b.getBrowser(),h=w.name,g=w.version,v=b.getEngine(),y=v.name,_=v.version,x=function(){var e=(0,b.getOS)();return{os:e.name,osversion:e.version}}(),k=x.os,O=x.osversion,P=function(){var e=(0,b.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),S=P.device,U=P.devicebrand;k=k||"",O=O||"",S=S||"",U=U||"";var C={exports:{}},A={exports:{}},N=1e3,T=60*N,E=60*T,I=24*E,j=365.25*I,R=function(e,o){o=o||{};var i=typeof e;if("string"===i&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var i=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*j;case"days":case"day":case"d":return i*I;case"hours":case"hour":case"hrs":case"hr":case"h":return i*E;case"minutes":case"minute":case"mins":case"min":case"m":return i*T;case"seconds":case"second":case"secs":case"sec":case"s":return i*N;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===i&&!1===isNaN(e))return o.long?function(e){return L(e,I,"day")||L(e,E,"hour")||L(e,T,"minute")||L(e,N,"second")||e+" ms"}(e):function(e){if(e>=I)return Math.round(e/I)+"d";if(e>=E)return Math.round(e/E)+"h";if(e>=T)return Math.round(e/T)+"m";if(e>=N)return Math.round(e/N)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function L(e,o,i){if(!(e<o))return e<1.5*o?Math.floor(e/o)+" "+i:Math.ceil(e/o)+" "+i+"s"}!function(e,o){var i;function n(e){function n(){if(n.enabled){var e=n,t=+new Date,r=t-(i||t);e.diff=r,e.prev=i,e.curr=t,i=t;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=o.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(i,n){if("%%"===i)return i;c++;var t=o.formatters[n];if("function"==typeof t){var r=a[c];i=t.call(e,r),a.splice(c,1),c--}return i})),o.formatArgs.call(e,a);var l=n.log||o.log||console.log.bind(console);l.apply(e,a)}}return n.namespace=e,n.enabled=o.enabled(e),n.useColors=o.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i),n|=0;return o.colors[Math.abs(n)%o.colors.length]}(e),"function"==typeof o.init&&o.init(n),n}(o=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},o.disable=function(){o.enable("")},o.enable=function(e){o.save(e),o.names=[],o.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,t=0;t<n;t++)i[t]&&("-"===(e=i[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")))},o.enabled=function(e){var i,n;for(i=0,n=o.skips.length;i<n;i++)if(o.skips[i].test(e))return!1;for(i=0,n=o.names.length;i<n;i++)if(o.names[i].test(e))return!0;return!1},o.humanize=R,o.names=[],o.skips=[],o.formatters={}}(A,A.exports),function(e,o){function i(){var e;try{e=o.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(o=e.exports=A.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+o.humanize(this.diff),!i)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(t++,"%c"===e&&(r=t))})),e.splice(r,0,n)},o.save=function(e){try{null==e?o.storage.removeItem("debug"):o.storage.debug=e}catch(e){}},o.load=i,o.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),o.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],o.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},o.enable(i())}(C,C.exports);var B=C.exports("jsonp"),M=function(e,o,i){"function"==typeof o&&(i=o,o={});o||(o={});var n,t,r=o.prefix||"__jp",a=o.name||r+q++,s=o.param||"callback",c=null!=o.timeout?o.timeout:6e4,l=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;c&&(t=setTimeout((function(){d(),i&&i(new Error("Timeout"))}),c));function d(){n.parentNode&&n.parentNode.removeChild(n),window[a]=z,t&&clearTimeout(t)}return window[a]=function(e){B("jsonp got",e),d(),i&&i(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+l(a)).replace("?&","?"),B('jsonp req "%s"',e),(n=document.createElement("script")).src=e,u.parentNode.insertBefore(n,u),function(){window[a]&&d()}},q=0;function z(){}function D(e,o){return void 0===o&&(o={}),new Promise((function(i,n){var t;M("".concat(e,"?").concat((t=o,Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,o){e?n(e):i(o)}))}))}var G="4.0.0";
|
|
7
7
|
/*! js-cookie v3.0.5 | MIT */
|
|
8
|
-
function X(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var n in i)e[n]=i[n]}return e}var J,F=function e(o,i){function n(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=X({},i,t)).expires&&(t.expires=new Date(Date.now()+864e5*t.expires)),t.expires&&(t.expires=t.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in t)t[a]&&(r+="; "+a,!0!==t[a]&&(r+="="+t[a].split(";")[0]));return document.cookie=e+"="+o.write(n,e)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},t=0;t<i.length;t++){var r=i[t].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(n[s]=o.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,o){n(e,"",X({},o,{expires:-1}))},withAttributes:function(o){return e(this.converter,X({},this.attributes,o))},withConverter:function(o){return e(X({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.EGender=void 0,(J=e.EGender||(e.EGender={}))[J.Unknown=0]="Unknown",J[J.Male=1]="Male",J[J.Female=2]="Female";var W="XYZ_LOG_HW_",V="".concat(W,"COMMON_PARAMS"),Z="".concat(W,"ONLINE_BACH_DATA"),H=function(){function e(e){var o=e.domain,i=e.commonParams,n=e.isPro,t=void 0===n||n,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s,l=e.ignoreUrlParams,u=void 0===l?[]:l;this.version=G,this.buildDate="
|
|
8
|
+
function X(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var n in i)e[n]=i[n]}return e}var J,F=function e(o,i){function n(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=X({},i,t)).expires&&(t.expires=new Date(Date.now()+864e5*t.expires)),t.expires&&(t.expires=t.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in t)t[a]&&(r+="; "+a,!0!==t[a]&&(r+="="+t[a].split(";")[0]));return document.cookie=e+"="+o.write(n,e)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},t=0;t<i.length;t++){var r=i[t].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(n[s]=o.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,o){n(e,"",X({},o,{expires:-1}))},withAttributes:function(o){return e(this.converter,X({},this.attributes,o))},withConverter:function(o){return e(X({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.EGender=void 0,(J=e.EGender||(e.EGender={}))[J.Unknown=0]="Unknown",J[J.Male=1]="Male",J[J.Female=2]="Female";var W="XYZ_LOG_HW_",V="".concat(W,"COMMON_PARAMS"),Z="".concat(W,"ONLINE_BACH_DATA"),H=function(){function e(e){var o=e.domain,i=e.commonParams,n=e.isPro,t=void 0===n||n,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s,l=e.ignoreUrlParams,u=void 0===l?[]:l;this.version=G,this.buildDate="3/7/2025, 6:00:43 PM",this._startTime=Date.now(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._ignoreUrlParams=[],this._isPro=t,this._ignoreUrlParams=u,this._sendOpenLog=a,this._consoleLog=c;var d=this._getApis(o),p=d.openUrl,f=d.actUrl,m=d.adUrl,b=d.onlineUrl;this._openUrl=p,this._actUrl=f,this._adUrl=m,this._onlineUrl=b,this._init(i)}return Object.defineProperty(e.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),e.prototype._init=function(e){var i=this;this._updateCommonParams(o(o({},this._filterParams(e)),{obatchid:this._getBatchId()})),this._coldStartUp(),this._visibilityChange((function(){i._updateCommonParams({}),i._open(1),i._startTime=Date.now();var e=i._getOnlineBatchData();e&&i._online(e)}),(function(){i._open(5),i._sendOnline()}))},e.prototype._visibilityChange=function(e,o){void 0===e&&(e=function(){}),void 0===o&&(o=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():o()}),!1)},e.prototype._getScreen=function(){var e=window.screen,o=e.width,i=e.height;return"".concat(o,"*").concat(i)},e.prototype._getNetWorkType=function(){var e=window.navigator,o=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==o?void 0:o.type)||(null==o?void 0:o.effectiveType)||"other"},e.prototype._getBatchId=function(){var e,o=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(t+e):null);return o||function(e,o){void 0!==typeof sessionStorage&&sessionStorage.setItem(t+e,o)}("BATCH_ID",o=s()),o},e.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},e.prototype._getApis=function(e){var i=this._isPro?{open:"https://wappubog.snake.cc",act:"https://wappubog.snake.cc",ad:"https://wappubog.snake.cc",onlineUrl:"https://wappubog.snake.cc"}:{open:"http://test-wappubog.snake.cc",act:"http://test-wappubog.snake.cc",ad:"http://test-wappubog.snake.cc",onlineUrl:"http://test-wappubog.snake.cc"},n=o(o({},i),e);return{openUrl:"".concat(n.open,"/wappubog/h5/open"),actUrl:"".concat(n.act,"/wappubog/h5/activity"),adUrl:"".concat(n.ad,"/gamefunction_logs/h5/advlog"),onlineUrl:"".concat(n.onlineUrl,"/gamefunction_logs/applet/onlineTime")}},e.prototype._cacheCommonParams=function(e){var n=r(V),t=this._getInitParams(),s=t.userinfo,c=i(t,["userinfo"]),l=JSON.parse(n||"{}"),d=l.userinfo,p=i(l,["userinfo"]),f=e.userinfo,m=i(e,["userinfo"]),b=o(o(o({},JSON.parse(s||"{}")),JSON.parse(d||"{}")),JSON.parse(f||"{}")),w=u(u(c,p),m);this._commonParams=o(o({},w),{userinfo:JSON.stringify(b)}),this._consoleLog&&console.log("[XLOG] _cacheCommonParams",this._commonParams),a(V,JSON.stringify(this._commonParams))},e.prototype._getInitParams=function(){return{osversion:O,device:S,devicebrand:U,os:k,platform:p(),uid:c(),appcqid:"organic",pixel:this._getScreen(),userinfo:this._getUserInfo(),ua:encodeURI(navigator.userAgent),timezone:(e=(new Date).getTimezoneOffset(),o=Math.abs(Math.floor(e/60)),"".concat(e>0?"-":"+").concat(o)),url:encodeURI(location.href)};var e,o},e.prototype._getUserInfo=function(e){var o={};if(e)try{o=JSON.parse(e)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var i={};if(this._commonParams.userinfo)try{i=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(d({lang:navigator.language,browser:h,browserversion:g,engine:y,engineversion:_,platform:p(),querystring:l(this._ignoreUrlParams),fbc:F.get("_fbc"),fbp:F.get("_fbp"),ttp:F.get("_ttp")},i,o))},e.prototype._filterParams=function(e){var o={};if(e){var i=["openid","accid","apptypeid","appcqid","appver","userinfo","srcinfo","region","province","uid","platform"];for(var n in e){var t=n,r=e[t];i.includes(t)&&r&&(o[t]=r)}}return o},e.prototype.setParams=function(e){if(e){this._consoleLog&&console.log("[XLOG] setParams",e);var o=this._commonParams.region,i=this._commonParams.province;e=this._filterParams(e),this._updateCommonParams(e),(e.region&&e.region!==o||e.province&&e.province!==i)&&this._open(6)}},e.prototype.replaceParams=function(e){if(e){this._consoleLog&&console.log("[XLOG] replaceParams",e);var o=this._commonParams.region,i=this._commonParams.province;this._updateCommonParams(e),(e.region&&e.region!==o||e.province&&e.province!==i)&&this._open(6)}},e.prototype._updateCommonParams=function(e){var i;this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo?e.userinfo=this._getUserInfo(e.userinfo):e.userinfo=this._getUserInfo();try{i=JSON.parse(e.userinfo)}catch(o){console.error('[XLOG] userinfo "'.concat(e.userinfo,'" parse error'),o)}e.platform&&(e.userinfo=this._getUserInfo(JSON.stringify(o(o({},i),{platform:e.platform})))),this._cacheCommonParams(o(o({},e),{url:encodeURI(location.href),network:this._getNetWorkType()}))},e.prototype._request=function(e,o){var i=this;return function(e,o){return D(e,o)}(e,o).then((function(n){return i._consoleLog&&console.log("[XLOG] SUCCESS: ".concat(e),o,n),n})).catch((function(i){return console.error("[XLOG] ERROR: ".concat(e),o,i),Promise.reject(i)}))},e.prototype._open=function(e){if(this._sendOpenLog){var i=o(o({},this._commonParams),{userinfo:encodeURI(this._commonParams.userinfo||""),url:encodeURI(location.href),xmlog:G,url_from:document.referrer,openway:e});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",i),this._request(this._openUrl,i)}},e.prototype.act=function(e){var i=o(o({},this._commonParams),{userinfo:encodeURI(this._commonParams.userinfo||""),url:encodeURI(location.href),actentryid:e.actentryid||"",subactid:e.subactid||"",type:e.type||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",i),this._request(this._actUrl,i)},e.prototype.ad=function(e){var i=o(o({},this._commonParams),{userinfo:encodeURI(this._commonParams.userinfo||""),url:encodeURI(location.href),type:e.type||"",code:e.code||"",codeinfo:e.codeinfo||"",pagetype:e.pagetype||"",gametype:e.gametype||"",adslot:e.adslot||"",adunitid:e.adunitid||"",adbatchid:e.adbatchid||"",ecpm:e.ecpm||"",adfrom:e.adfrom||""});this._consoleLog&&console.log("[XLOG] PARAMS(AD)",i),this._request(this._adUrl,i)},e.prototype._sendOnline=function(){var e=Date.now(),i=o(o({},this._commonParams),{onlinetime:"".concat(e-this._startTime),endtime:e.toString(),starttime:this._startTime.toString()});this._online([i])},e.prototype._setOnlineBatchData=function(e){a(Z,JSON.stringify(e))},e.prototype._getOnlineBatchData=function(){var e=r(Z);return e?JSON.parse(e):""},e.prototype._clearOnlineBatchData=function(){a(Z,"")},e.prototype._online=function(e){var o=this;this._consoleLog&&console.log("[XLOG] PARAMS(ONLINE)",e),this._clearOnlineBatchData(),this._request(this._onlineUrl,{batch:JSON.stringify(e)}).catch((function(i){console.error(i),o._setOnlineBatchData(e)}))},e}();e.XLog=H,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
9
9
|
//# sourceMappingURL=web-hw.min.js.map
|
package/dist/web-hw.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log
|
|
2
|
+
* @xyz-fe/log v4.0.0
|
|
3
3
|
* (c) lizhigao <lizhigao@021.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
var e=function(){return e=Object.assign||function(e){for(var o,i=1,n=arguments.length;i<n;i++)for(var t in o=arguments[i])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e},e.apply(this,arguments)};function o(e,o){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(i[n[t]]=e[n[t]])}return i}function i(e,o,i){if(i||2===arguments.length)for(var n,t=0,r=o.length;t<r;t++)!n&&t in o||(n||(n=Array.prototype.slice.call(o,0,t)),n[t]=o[t]);return e.concat(n||Array.prototype.slice.call(o))}function n(e){return void 0!==typeof localStorage?localStorage.getItem("XYZ_LOG_"+e):null}function t(e,o){void 0!==typeof localStorage&&localStorage.setItem("XYZ_LOG_"+e,o)}function r(e,o){void 0===e&&(e=18),void 0===o&&(o=0);for(var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],t=Math.random,r=e,a=o||i.length,s=0;s<r;s++)n[s]=i[0|t()*a];return n.join("")}function a(e){void 0===e&&(e="UID");var o=n(e);return o||t(e,o=r()),o}function s(e,o){void 0===e&&(e=[]),void 0===o&&(o=location.href);var i=new URL(o).search.substring(1),n={};return i&&i.split("&").forEach((function(e){n[e.split("=")[0]]=e.split("=")[1]})),Object.keys(n).forEach((function(o){e.includes(o)&&delete n[o]})),n}function c(o,i){var n=e({},o),t=e({},i);return Object.keys(n).forEach((function(e){t[e]||delete t[e]})),e(e({},n),t)}function l(e){for(var o,n,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!t.length)return e;var a=t.shift();if(a&&"object"==typeof a)for(var s in a)a[s]&&"object"==typeof a[s]?(e[s]||Object.assign(e,((o={})[s]={},o)),l(e[s],a[s])):Object.assign(e,((n={})[s]=a[s],n));return l.apply(void 0,i([e],t,!1))}var u=function(){return"standalone"==(navigator.standalone||window.matchMedia("(display-mode: standalone)").matches?"standalone":"browser")?"pwa":(e=navigator.userAgent,["Android","webOS","iPhone","iPad","iPod","BlackBerry","Windows Phone"].some((function(o){return e.includes(o)}))?"h5":"pc");var e};var p,d,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};p=m,d=m.exports,function(e,o){var i="function",n="undefined",t="object",r="string",a="model",s="name",c="type",l="vendor",u="version",f="architecture",m="console",b="mobile",w="tablet",h="smarttv",g="wearable",v="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",O="Firefox",P="Google",S="Huawei",U="LG",C="Microsoft",A="Motorola",N="Opera",L="Samsung",T="Sony",I="Xiaomi",R="Zebra",j="Facebook",E=function(e){for(var o={},i=0;i<e.length;i++)o[e[i].toUpperCase()]=e[i];return o},B=function(e,o){return typeof e===r&&-1!==q(o).indexOf(q(e))},q=function(e){return e.toLowerCase()},z=function(e,o){if(typeof e===r)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof o===n?e:e.substring(0,255)},M=function(e,n){for(var r,a,s,c,l,u,p=0;p<n.length&&!l;){var d=n[p],f=n[p+1];for(r=a=0;r<d.length&&!l;)if(l=d[r++].exec(e))for(s=0;s<f.length;s++)u=l[++a],typeof(c=f[s])===t&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):o:this[c[0]]=u?c[1].call(this,u,c[2]):o:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):o):this[c]=u||o;p+=2}},D=function(e,i){for(var n in i)if(typeof i[n]===t&&i[n].length>0){for(var r=0;r<i[n].length;r++)if(B(i[n][r],e))return"?"===n?o:n}else if(B(i[n],e))return"?"===n?o:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,u],[/opios[\/ ]+([\w\.]+)/i],[u,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[u,[s,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,u],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[s,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[u,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[u,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[u,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],u],[/\bfocus\/([\w\.]+)/i],[u,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[u,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[u,[s,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,u],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,j],u],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,u],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,u],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[u,[s,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[u,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[u,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,q]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[l,L],[c,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[l,L],[c,b]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[l,_],[c,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[l,_],[c,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[l,S],[c,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[a,[l,S],[c,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[l,I],[c,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[l,I],[c,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[l,"OPPO"],[c,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[l,"Vivo"],[c,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[l,"Realme"],[c,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[l,A],[c,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[l,A],[c,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[l,U],[c,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[l,U],[c,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[l,"Lenovo"],[c,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[l,"Nokia"],[c,b]],[/(pixel c)\b/i],[a,[l,P],[c,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[l,P],[c,b]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,T],[c,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[l,T],[c,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[l,"OnePlus"],[c,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[l,y],[c,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[l,y],[c,b]],[/(playbook);[-\w\),; ]+(rim)/i],[a,l,[c,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[l,k],[c,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[l,x],[c,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[l,x],[c,b]],[/(nexus 9)/i],[a,[l,"HTC"],[c,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[l,[a,/_/g," "],[c,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[l,"Acer"],[c,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[l,"Meizu"],[c,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[l,"Sharp"],[c,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[l,a,[c,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[l,a,[c,w]],[/(surface duo)/i],[a,[l,C],[c,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[l,"Fairphone"],[c,b]],[/(u304aa)/i],[a,[l,"AT&T"],[c,b]],[/\bsie-(\w*)/i],[a,[l,"Siemens"],[c,b]],[/\b(rct\w+) b/i],[a,[l,"RCA"],[c,w]],[/\b(venue[\d ]{2,7}) b/i],[a,[l,"Dell"],[c,w]],[/\b(q(?:mv|ta)\w+) b/i],[a,[l,"Verizon"],[c,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[l,"Barnes & Noble"],[c,w]],[/\b(tm\d{3}\w+) b/i],[a,[l,"NuVision"],[c,w]],[/\b(k88) b/i],[a,[l,"ZTE"],[c,w]],[/\b(nx\d{3}j) b/i],[a,[l,"ZTE"],[c,b]],[/\b(gen\d{3}) b.+49h/i],[a,[l,"Swiss"],[c,b]],[/\b(zur\d{3}) b/i],[a,[l,"Swiss"],[c,w]],[/\b((zeki)?tb.*\b) b/i],[a,[l,"Zeki"],[c,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[l,"Dragon Touch"],a,[c,w]],[/\b(ns-?\w{0,9}) b/i],[a,[l,"Insignia"],[c,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[l,"NextBook"],[c,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[l,"Voice"],a,[c,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[l,"LvTel"],a,[c,b]],[/\b(ph-1) /i],[a,[l,"Essential"],[c,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[l,"Envizen"],[c,w]],[/\b(trio[-\w\. ]+) b/i],[a,[l,"MachSpeed"],[c,w]],[/\btu_(1491) b/i],[a,[l,"Rotor"],[c,w]],[/(shield[\w ]+) b/i],[a,[l,"Nvidia"],[c,w]],[/(sprint) (\w+)/i],[l,a,[c,b]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,C],[c,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[l,R],[c,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[l,R],[c,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[l,a,[c,m]],[/droid.+; (shield) bui/i],[a,[l,"Nvidia"],[c,m]],[/(playstation [345portablevi]+)/i],[a,[l,T],[c,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[l,C],[c,m]],[/smart-tv.+(samsung)/i],[l,[c,h]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,L],[c,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[l,U],[c,h]],[/(apple) ?tv/i],[l,[a,"Apple TV"],[c,h]],[/crkey/i],[[a,"Chromecast"],[l,P],[c,h]],[/droid.+aft(\w)( bui|\))/i],[a,[l,y],[c,h]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[c,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[l,z],[a,z],[c,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,h]],[/((pebble))app/i],[l,a,[c,g]],[/droid.+; (glass) \d/i],[a,[l,P],[c,g]],[/droid.+; (wt63?0{2,3})\)/i],[a,[l,R],[c,g]],[/(quest( 2)?)/i],[a,[l,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[l,[c,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,w]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[c,b]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[l,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,u],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,u],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[u,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[u,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[u,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[u,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,u],[/\(bb(10);/i],[u,[s,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[u,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[u,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[u,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],u],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,u],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],u],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,u]]},J=function(i,a){if(typeof i===t&&(a=i,i=o),!(this instanceof J))return new J(i,a).getResult();var s=i||(typeof e!==n&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),c=a?function(e,o){var i={};for(var n in e)o[n]&&o[n].length%2==0?i[n]=o[n].concat(e[n]):i[n]=e[n];return i}(X,a):X;return this.getBrowser=function(){var e,i={};return i.name=o,i.version=o,M.call(i,s,c.browser),i.major=typeof(e=i.version)===r?e.replace(/[^\d\.]/g,"").split(".")[0]:o,i},this.getCPU=function(){var e={};return e.architecture=o,M.call(e,s,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=o,e.model=o,e.type=o,M.call(e,s,c.device),e},this.getEngine=function(){var e={};return e.name=o,e.version=o,M.call(e,s,c.engine),e},this.getOS=function(){var e={};return e.name=o,e.version=o,M.call(e,s,c.os),e},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 s},this.setUA=function(e){return s=typeof e===r&&e.length>255?z(e,255):e,this},this.setUA(s),this};J.VERSION="1.0.2",J.BROWSER=E([s,u,"major"]),J.CPU=E([f]),J.DEVICE=E([a,l,c,m,b,h,w,g,v]),J.ENGINE=J.OS=E([s,u]),p.exports&&(d=p.exports=J),d.UAParser=J;var F=typeof e!==n&&(e.jQuery||e.Zepto);if(F&&!F.ua){var Z=new J;F.ua=Z.getResult(),F.ua.get=function(){return Z.getUA()},F.ua.set=function(e){Z.setUA(e);var o=Z.getResult();for(var i in o)F.ua[i]=o[i]}}}("object"==typeof window?window:f);var b=new m.exports.UAParser,w=b.getBrowser(),h=w.name,g=w.version,v=b.getEngine(),y=v.name,_=v.version,x=function(){var e=(0,b.getOS)();return{os:e.name,osversion:e.version}}(),k=x.os,O=x.osversion,P=function(){var e=(0,b.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),S=P.device,U=P.devicebrand;k=k||"",O=O||"",S=S||"",U=U||"";var C={exports:{}},A={exports:{}},N=1e3,L=60*N,T=60*L,I=24*T,R=365.25*I,j=function(e,o){o=o||{};var i=typeof e;if("string"===i&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var i=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*R;case"days":case"day":case"d":return i*I;case"hours":case"hour":case"hrs":case"hr":case"h":return i*T;case"minutes":case"minute":case"mins":case"min":case"m":return i*L;case"seconds":case"second":case"secs":case"sec":case"s":return i*N;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===i&&!1===isNaN(e))return o.long?function(e){return E(e,I,"day")||E(e,T,"hour")||E(e,L,"minute")||E(e,N,"second")||e+" ms"}(e):function(e){if(e>=I)return Math.round(e/I)+"d";if(e>=T)return Math.round(e/T)+"h";if(e>=L)return Math.round(e/L)+"m";if(e>=N)return Math.round(e/N)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function E(e,o,i){if(!(e<o))return e<1.5*o?Math.floor(e/o)+" "+i:Math.ceil(e/o)+" "+i+"s"}!function(e,o){var i;function n(e){function n(){if(n.enabled){var e=n,t=+new Date,r=t-(i||t);e.diff=r,e.prev=i,e.curr=t,i=t;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=o.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(i,n){if("%%"===i)return i;c++;var t=o.formatters[n];if("function"==typeof t){var r=a[c];i=t.call(e,r),a.splice(c,1),c--}return i})),o.formatArgs.call(e,a);var l=n.log||o.log||console.log.bind(console);l.apply(e,a)}}return n.namespace=e,n.enabled=o.enabled(e),n.useColors=o.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i),n|=0;return o.colors[Math.abs(n)%o.colors.length]}(e),"function"==typeof o.init&&o.init(n),n}(o=A.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},o.disable=function(){o.enable("")},o.enable=function(e){o.save(e),o.names=[],o.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,t=0;t<n;t++)i[t]&&("-"===(e=i[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")))},o.enabled=function(e){var i,n;for(i=0,n=o.skips.length;i<n;i++)if(o.skips[i].test(e))return!1;for(i=0,n=o.names.length;i<n;i++)if(o.names[i].test(e))return!0;return!1},o.humanize=j,o.names=[],o.skips=[],o.formatters={}}(0,A.exports),function(e,o){function i(){var e;try{e=o.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(o=e.exports=A.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+o.humanize(this.diff),!i)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(t++,"%c"===e&&(r=t))})),e.splice(r,0,n)},o.save=function(e){try{null==e?o.storage.removeItem("debug"):o.storage.debug=e}catch(e){}},o.load=i,o.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),o.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],o.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},o.enable(i())}(C,C.exports);var B=C.exports("jsonp"),q=function(e,o,i){"function"==typeof o&&(i=o,o={});o||(o={});var n,t,r=o.prefix||"__jp",a=o.name||r+z++,s=o.param||"callback",c=null!=o.timeout?o.timeout:6e4,l=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;c&&(t=setTimeout((function(){p(),i&&i(new Error("Timeout"))}),c));function p(){n.parentNode&&n.parentNode.removeChild(n),window[a]=M,t&&clearTimeout(t)}return window[a]=function(e){B("jsonp got",e),p(),i&&i(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+l(a)).replace("?&","?"),B('jsonp req "%s"',e),(n=document.createElement("script")).src=e,u.parentNode.insertBefore(n,u),function(){window[a]&&p()}},z=0;function M(){}function D(e,o){return void 0===o&&(o={}),new Promise((function(i,n){var t;q("".concat(e,"?").concat((t=o,Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,o){e?n(e):i(o)}))}))}
|
|
7
7
|
/*! js-cookie v3.0.5 | MIT */
|
|
8
|
-
function G(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var n in i)e[n]=i[n]}return e}var X,J=function e(o,i){function n(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=G({},i,t)).expires&&(t.expires=new Date(Date.now()+864e5*t.expires)),t.expires&&(t.expires=t.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in t)t[a]&&(r+="; "+a,!0!==t[a]&&(r+="="+t[a].split(";")[0]));return document.cookie=e+"="+o.write(n,e)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},t=0;t<i.length;t++){var r=i[t].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(n[s]=o.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,o){n(e,"",G({},o,{expires:-1}))},withAttributes:function(o){return e(this.converter,G({},this.attributes,o))},withConverter:function(o){return e(G({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});!function(e){e[e.Unknown=0]="Unknown",e[e.Male=1]="Male",e[e.Female=2]="Female"}(X||(X={}));var F="".concat("XYZ_LOG_HW_","COMMON_PARAMS"),Z="".concat("XYZ_LOG_HW_","ONLINE_BACH_DATA"),W=function(){function i(e){var o=e.domain,i=e.commonParams,n=e.isPro,t=void 0===n||n,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s,l=e.ignoreUrlParams,u=void 0===l?[]:l;this.version="
|
|
8
|
+
function G(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var n in i)e[n]=i[n]}return e}var X,J=function e(o,i){function n(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=G({},i,t)).expires&&(t.expires=new Date(Date.now()+864e5*t.expires)),t.expires&&(t.expires=t.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in t)t[a]&&(r+="; "+a,!0!==t[a]&&(r+="="+t[a].split(";")[0]));return document.cookie=e+"="+o.write(n,e)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},t=0;t<i.length;t++){var r=i[t].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(n[s]=o.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,o){n(e,"",G({},o,{expires:-1}))},withAttributes:function(o){return e(this.converter,G({},this.attributes,o))},withConverter:function(o){return e(G({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});!function(e){e[e.Unknown=0]="Unknown",e[e.Male=1]="Male",e[e.Female=2]="Female"}(X||(X={}));var F="".concat("XYZ_LOG_HW_","COMMON_PARAMS"),Z="".concat("XYZ_LOG_HW_","ONLINE_BACH_DATA"),W=function(){function i(e){var o=e.domain,i=e.commonParams,n=e.isPro,t=void 0===n||n,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s,l=e.ignoreUrlParams,u=void 0===l?[]:l;this.version="4.0.0",this.buildDate="3/7/2025, 6:00:43 PM",this._startTime=Date.now(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._ignoreUrlParams=[],this._isPro=t,this._ignoreUrlParams=u,this._sendOpenLog=a,this._consoleLog=c;var p=this._getApis(o),d=p.openUrl,f=p.actUrl,m=p.adUrl,b=p.onlineUrl;this._openUrl=d,this._actUrl=f,this._adUrl=m,this._onlineUrl=b,this._init(i)}return Object.defineProperty(i.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),i.prototype._init=function(o){var i=this;this._updateCommonParams(e(e({},this._filterParams(o)),{obatchid:this._getBatchId()})),this._coldStartUp(),this._visibilityChange((function(){i._updateCommonParams({}),i._open(1),i._startTime=Date.now();var e=i._getOnlineBatchData();e&&i._online(e)}),(function(){i._open(5),i._sendOnline()}))},i.prototype._visibilityChange=function(e,o){void 0===e&&(e=function(){}),void 0===o&&(o=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():o()}),!1)},i.prototype._getScreen=function(){var e=window.screen,o=e.width,i=e.height;return"".concat(o,"*").concat(i)},i.prototype._getNetWorkType=function(){var e=window.navigator,o=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==o?void 0:o.type)||(null==o?void 0:o.effectiveType)||"other"},i.prototype._getBatchId=function(){var e,o=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem("XYZ_LOG_"+e):null);return o||function(e,o){void 0!==typeof sessionStorage&&sessionStorage.setItem("XYZ_LOG_"+e,o)}("BATCH_ID",o=r()),o},i.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},i.prototype._getApis=function(o){var i=this._isPro?{open:"https://wappubog.snake.cc",act:"https://wappubog.snake.cc",ad:"https://wappubog.snake.cc",onlineUrl:"https://wappubog.snake.cc"}:{open:"http://test-wappubog.snake.cc",act:"http://test-wappubog.snake.cc",ad:"http://test-wappubog.snake.cc",onlineUrl:"http://test-wappubog.snake.cc"},n=e(e({},i),o);return{openUrl:"".concat(n.open,"/wappubog/h5/open"),actUrl:"".concat(n.act,"/wappubog/h5/activity"),adUrl:"".concat(n.ad,"/gamefunction_logs/h5/advlog"),onlineUrl:"".concat(n.onlineUrl,"/gamefunction_logs/applet/onlineTime")}},i.prototype._cacheCommonParams=function(i){var r=n(F),a=this._getInitParams(),s=a.userinfo,l=o(a,["userinfo"]),u=JSON.parse(r||"{}"),p=u.userinfo,d=o(u,["userinfo"]),f=i.userinfo,m=o(i,["userinfo"]),b=e(e(e({},JSON.parse(s||"{}")),JSON.parse(p||"{}")),JSON.parse(f||"{}")),w=c(c(l,d),m);this._commonParams=e(e({},w),{userinfo:JSON.stringify(b)}),this._consoleLog&&console.log("[XLOG] _cacheCommonParams",this._commonParams),t(F,JSON.stringify(this._commonParams))},i.prototype._getInitParams=function(){return{osversion:O,device:S,devicebrand:U,os:k,platform:u(),uid:a(),appcqid:"organic",pixel:this._getScreen(),userinfo:this._getUserInfo(),ua:encodeURI(navigator.userAgent),timezone:(e=(new Date).getTimezoneOffset(),o=Math.abs(Math.floor(e/60)),"".concat(e>0?"-":"+").concat(o)),url:encodeURI(location.href)};var e,o},i.prototype._getUserInfo=function(e){var o={};if(e)try{o=JSON.parse(e)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var i={};if(this._commonParams.userinfo)try{i=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(l({lang:navigator.language,browser:h,browserversion:g,engine:y,engineversion:_,platform:u(),querystring:s(this._ignoreUrlParams),fbc:J.get("_fbc"),fbp:J.get("_fbp"),ttp:J.get("_ttp")},i,o))},i.prototype._filterParams=function(e){var o={};if(e){var i=["openid","accid","apptypeid","appcqid","appver","userinfo","srcinfo","region","province","uid","platform"];for(var n in e){var t=n,r=e[t];i.includes(t)&&r&&(o[t]=r)}}return o},i.prototype.setParams=function(e){if(e){this._consoleLog&&console.log("[XLOG] setParams",e);var o=this._commonParams.region,i=this._commonParams.province;e=this._filterParams(e),this._updateCommonParams(e),(e.region&&e.region!==o||e.province&&e.province!==i)&&this._open(6)}},i.prototype.replaceParams=function(e){if(e){this._consoleLog&&console.log("[XLOG] replaceParams",e);var o=this._commonParams.region,i=this._commonParams.province;this._updateCommonParams(e),(e.region&&e.region!==o||e.province&&e.province!==i)&&this._open(6)}},i.prototype._updateCommonParams=function(o){var i;this._consoleLog&&console.log("[XLOG] _updateCommonParams",o),o.userinfo?o.userinfo=this._getUserInfo(o.userinfo):o.userinfo=this._getUserInfo();try{i=JSON.parse(o.userinfo)}catch(e){console.error('[XLOG] userinfo "'.concat(o.userinfo,'" parse error'),e)}o.platform&&(o.userinfo=this._getUserInfo(JSON.stringify(e(e({},i),{platform:o.platform})))),this._cacheCommonParams(e(e({},o),{url:encodeURI(location.href),network:this._getNetWorkType()}))},i.prototype._request=function(e,o){var i=this;return function(e,o){return D(e,o)}(e,o).then((function(n){return i._consoleLog&&console.log("[XLOG] SUCCESS: ".concat(e),o,n),n})).catch((function(i){return console.error("[XLOG] ERROR: ".concat(e),o,i),Promise.reject(i)}))},i.prototype._open=function(o){if(this._sendOpenLog){var i=e(e({},this._commonParams),{userinfo:encodeURI(this._commonParams.userinfo||""),url:encodeURI(location.href),xmlog:"4.0.0",url_from:document.referrer,openway:o});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",i),this._request(this._openUrl,i)}},i.prototype.act=function(o){var i=e(e({},this._commonParams),{userinfo:encodeURI(this._commonParams.userinfo||""),url:encodeURI(location.href),actentryid:o.actentryid||"",subactid:o.subactid||"",type:o.type||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",i),this._request(this._actUrl,i)},i.prototype.ad=function(o){var i=e(e({},this._commonParams),{userinfo:encodeURI(this._commonParams.userinfo||""),url:encodeURI(location.href),type:o.type||"",code:o.code||"",codeinfo:o.codeinfo||"",pagetype:o.pagetype||"",gametype:o.gametype||"",adslot:o.adslot||"",adunitid:o.adunitid||"",adbatchid:o.adbatchid||"",ecpm:o.ecpm||"",adfrom:o.adfrom||""});this._consoleLog&&console.log("[XLOG] PARAMS(AD)",i),this._request(this._adUrl,i)},i.prototype._sendOnline=function(){var o=Date.now(),i=e(e({},this._commonParams),{onlinetime:"".concat(o-this._startTime),endtime:o.toString(),starttime:this._startTime.toString()});this._online([i])},i.prototype._setOnlineBatchData=function(e){t(Z,JSON.stringify(e))},i.prototype._getOnlineBatchData=function(){var e=n(Z);return e?JSON.parse(e):""},i.prototype._clearOnlineBatchData=function(){t(Z,"")},i.prototype._online=function(e){var o=this;this._consoleLog&&console.log("[XLOG] PARAMS(ONLINE)",e),this._clearOnlineBatchData(),this._request(this._onlineUrl,{batch:JSON.stringify(e)}).catch((function(i){console.error(i),o._setOnlineBatchData(e)}))},i}();export{X as EGender,W as XLog};
|
|
9
9
|
//# sourceMappingURL=web-hw.mjs.map
|
package/dist/web.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ interface TCommonParams {
|
|
|
8
8
|
unionid?: string;
|
|
9
9
|
accid?: string;
|
|
10
10
|
apptypeid?: string;
|
|
11
|
+
appsubid?: string;
|
|
11
12
|
appcqid?: string;
|
|
12
13
|
srcqid?: string;
|
|
13
14
|
userinfo?: string;
|
|
@@ -31,6 +32,7 @@ interface IOpenLogParams {
|
|
|
31
32
|
xmlog: string;
|
|
32
33
|
isreturn?: 0 | 1 | 2 | 3;
|
|
33
34
|
querystring?: Record<string | number, any>;
|
|
35
|
+
manual?: boolean;
|
|
34
36
|
}
|
|
35
37
|
interface IActiveLogParams {
|
|
36
38
|
actentryid?: string;
|
|
@@ -70,12 +72,22 @@ declare type IHwOnlineLogParamsWithCommon = IHwCommonParams & IOnlineLogParams;
|
|
|
70
72
|
interface IUserInfo {
|
|
71
73
|
[k: string | number]: any;
|
|
72
74
|
}
|
|
73
|
-
interface
|
|
74
|
-
language
|
|
75
|
+
interface ISystemInfo {
|
|
76
|
+
language?: string;
|
|
77
|
+
version: string;
|
|
78
|
+
SDKVersion?: string;
|
|
79
|
+
benchmarkLevel?: number;
|
|
80
|
+
theme?: string;
|
|
81
|
+
platform: string;
|
|
82
|
+
system: string;
|
|
83
|
+
model: string;
|
|
84
|
+
brand: string;
|
|
85
|
+
pixelRatio: number;
|
|
86
|
+
screenWidth: number;
|
|
87
|
+
screenHeight: number;
|
|
88
|
+
}
|
|
89
|
+
interface IExtraInfo extends Pick<ISystemInfo, 'language' | 'SDKVersion' | 'benchmarkLevel' | 'theme' | 'pixelRatio'> {
|
|
75
90
|
wxVersion: string;
|
|
76
|
-
SDKVersion: string;
|
|
77
|
-
benchmarkLevel: number;
|
|
78
|
-
theme: string;
|
|
79
91
|
}
|
|
80
92
|
interface IDomain {
|
|
81
93
|
open?: string;
|
|
@@ -171,6 +183,59 @@ interface IHwAdLogParams {
|
|
|
171
183
|
ecpm?: string;
|
|
172
184
|
adfrom?: string;
|
|
173
185
|
}
|
|
186
|
+
interface IRes<T = any> {
|
|
187
|
+
code: string;
|
|
188
|
+
msg: string;
|
|
189
|
+
data: T;
|
|
190
|
+
}
|
|
191
|
+
interface ICode2sessionParams {
|
|
192
|
+
apptypeid: string;
|
|
193
|
+
code: string;
|
|
194
|
+
testNet?: string | number;
|
|
195
|
+
}
|
|
196
|
+
interface ICode2sessionResponseData {
|
|
197
|
+
unionid?: string;
|
|
198
|
+
openid: string;
|
|
199
|
+
session_key: string;
|
|
200
|
+
}
|
|
201
|
+
interface IShareParams {
|
|
202
|
+
apptypeid: string;
|
|
203
|
+
openId: string;
|
|
204
|
+
}
|
|
205
|
+
interface ISubsidyParams extends IShareParams {
|
|
206
|
+
os: string;
|
|
207
|
+
}
|
|
208
|
+
interface ISubsidyResponseData {
|
|
209
|
+
hasSubsidy: boolean;
|
|
210
|
+
ksSubsidyLevelDetails: {
|
|
211
|
+
buyQuantity: string;
|
|
212
|
+
money: number;
|
|
213
|
+
subsidyMoney: number;
|
|
214
|
+
subsidyAfterMoney: number;
|
|
215
|
+
}[];
|
|
216
|
+
}
|
|
217
|
+
declare type IUserPropsParams = IShareParams;
|
|
218
|
+
interface IUserPropsResponseData {
|
|
219
|
+
[k: string]: string | number;
|
|
220
|
+
}
|
|
221
|
+
interface ICheckOrderParams extends IShareParams {
|
|
222
|
+
orderId: string;
|
|
223
|
+
}
|
|
224
|
+
interface ICheckOrderResponseData {
|
|
225
|
+
payResult: string | number;
|
|
226
|
+
}
|
|
227
|
+
interface ICreateOrderParams extends IShareParams {
|
|
228
|
+
productId?: string;
|
|
229
|
+
payPlatform?: string;
|
|
230
|
+
}
|
|
231
|
+
interface ICreateOrderResponseData {
|
|
232
|
+
payContent: any;
|
|
233
|
+
amount: string;
|
|
234
|
+
amountCents: string;
|
|
235
|
+
orderId: string;
|
|
236
|
+
productId: string;
|
|
237
|
+
productName: string;
|
|
238
|
+
}
|
|
174
239
|
|
|
175
240
|
declare class XLog {
|
|
176
241
|
version: string;
|
|
@@ -220,4 +285,4 @@ declare class XLog {
|
|
|
220
285
|
act(params: IActiveLogParams): void;
|
|
221
286
|
}
|
|
222
287
|
|
|
223
|
-
export { EGender, HwInitParams, IActiveLogParams, IAdLogParams, ICommonParams, IDomain, IDomainWithEnv, IEventLogParams, IExtraInfo, IHwActiveLogParams, IHwAdLogParams, IHwCommonParams, IHwDomain, IHwOnlineLogParamsWithCommon, IHwOpenLogParams, IOnlineLogParams, IOnlineLogParamsWithCommon, IOpenLogParams, IUserInfo, InitParams, MiniprogramShowOptions, TCommonParams, THwCommonParams, TPlatform, XLog };
|
|
288
|
+
export { EGender, HwInitParams, IActiveLogParams, IAdLogParams, ICheckOrderParams, ICheckOrderResponseData, ICode2sessionParams, ICode2sessionResponseData, ICommonParams, ICreateOrderParams, ICreateOrderResponseData, IDomain, IDomainWithEnv, IEventLogParams, IExtraInfo, IHwActiveLogParams, IHwAdLogParams, IHwCommonParams, IHwDomain, IHwOnlineLogParamsWithCommon, IHwOpenLogParams, IOnlineLogParams, IOnlineLogParamsWithCommon, IOpenLogParams, IRes, IShareParams, ISubsidyParams, ISubsidyResponseData, ISystemInfo, IUserInfo, IUserPropsParams, IUserPropsResponseData, InitParams, MiniprogramShowOptions, TCommonParams, THwCommonParams, TPlatform, XLog };
|
package/dist/web.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log
|
|
2
|
+
* @xyz-fe/log v4.0.0
|
|
3
3
|
* (c) lizhigao <lizhigao@021.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){return e=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},e.apply(this,arguments)};function i(e){return void 0!==typeof localStorage?localStorage.getItem("XYZ_LOG_"+e):null}function o(e,i){void 0!==typeof localStorage&&localStorage.setItem("XYZ_LOG_"+e,i)}function t(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function n(e){void 0===e&&(e="UID");var n=i(e);return n||o(e,n=t()),n}function r(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function a(i,o){var t=e({},i),n=e({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),e(e({},t),n)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c={exports:{}};!function(e,i){!function(o,t){var n="function",r="undefined",a="object",s="string",c="model",u="name",l="type",d="vendor",p="version",m="architecture",b="console",w="mobile",f="tablet",h="smarttv",v="wearable",g="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",S="Firefox",P="Google",O="Huawei",C="LG",A="Microsoft",N="Motorola",q="Opera",E="Samsung",T="Sony",U="Xiaomi",L="Zebra",M="Facebook",j=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},z=function(e,i){return typeof e===s&&-1!==R(i).indexOf(R(e))},R=function(e){return e.toLowerCase()},I=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===r?e:e.substring(0,255)},B=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],m=i[d+1];for(o=r=0;o<p.length&&!u;)if(u=p[o++].exec(e))for(s=0;s<m.length;s++)l=u[++r],typeof(c=m[s])===a&&c.length>0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;d+=2}},G=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var n=0;n<i[o].length;n++)if(z(i[o][n],e))return"?"===o?t:o}else if(z(i[o],e))return"?"===o?t:o;return e},D={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,M],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",R]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,E],[l,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,E],[l,w]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,_],[l,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[l,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,O],[l,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[d,O],[l,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[l,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[l,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[l,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[d,N],[l,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,N],[l,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,C],[l,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,C],[l,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[l,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[l,w]],[/(pixel c)\b/i],[c,[d,P],[l,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,P],[l,w]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,T],[l,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,T],[l,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[l,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,y],[l,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,y],[l,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[l,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[l,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,x],[l,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,x],[l,w]],[/(nexus 9)/i],[c,[d,"HTC"],[l,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[l,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[l,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,"Sharp"],[l,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[l,w]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,c,[l,f]],[/(surface duo)/i],[c,[d,A],[l,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[l,w]],[/(u304aa)/i],[c,[d,"AT&T"],[l,w]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[l,w]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[l,f]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[l,f]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[l,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[l,f]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[l,f]],[/\b(k88) b/i],[c,[d,"ZTE"],[l,f]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[l,w]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[l,w]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[l,f]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[l,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[l,f]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[l,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[l,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[l,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[l,w]],[/\b(ph-1) /i],[c,[d,"Essential"],[l,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[l,f]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[l,f]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[l,f]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[l,f]],[/(sprint) (\w+)/i],[d,c,[l,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,A],[l,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,L],[l,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,L],[l,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[l,b]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[l,b]],[/(playstation [345portablevi]+)/i],[c,[d,T],[l,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,A],[l,b]],[/smart-tv.+(samsung)/i],[d,[l,h]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,E],[l,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[l,h]],[/(apple) ?tv/i],[d,[c,"Apple TV"],[l,h]],[/crkey/i],[[c,"Chromecast"],[d,P],[l,h]],[/droid.+aft(\w)( bui|\))/i],[c,[d,y],[l,h]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,I],[c,I],[l,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,h]],[/((pebble))app/i],[d,c,[l,v]],[/droid.+; (glass) \d/i],[c,[d,P],[l,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,L],[l,v]],[/(quest( 2)?)/i],[c,[d,M],[l,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,f]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,G,D]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,G,D]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},F=function(e,i){if(typeof e===a&&(i=e,e=t),!(this instanceof F))return new F(e,i).getResult();var n=e||(typeof o!==r&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),c=i?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}(X,i):X;return this.getBrowser=function(){var e,i={};return i.name=t,i.version=t,B.call(i,n,c.browser),i.major=typeof(e=i.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:t,i},this.getCPU=function(){var e={};return e.architecture=t,B.call(e,n,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=t,e.model=t,e.type=t,B.call(e,n,c.device),e},this.getEngine=function(){var e={};return e.name=t,e.version=t,B.call(e,n,c.engine),e},this.getOS=function(){var e={};return e.name=t,e.version=t,B.call(e,n,c.os),e},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 n},this.setUA=function(e){return n=typeof e===s&&e.length>255?I(e,255):e,this},this.setUA(n),this};F.VERSION="1.0.2",F.BROWSER=j([u,p,"major"]),F.CPU=j([m]),F.DEVICE=j([c,d,l,b,w,h,f,v,g]),F.ENGINE=F.OS=j([u,p]),e.exports&&(i=e.exports=F),i.UAParser=F;var V=typeof o!==r&&(o.jQuery||o.Zepto);if(V&&!V.ua){var Z=new F;V.ua=Z.getResult(),V.ua.get=function(){return Z.getUA()},V.ua.set=function(e){Z.setUA(e);var i=Z.getResult();for(var o in i)V.ua[o]=i[o]}}}("object"==typeof window?window:s)}(c,c.exports);var u=new c.exports.UAParser,l=u.getBrowser();l.name,l.version;var d=u.getEngine();d.name,d.version;var p=function(){var e=(0,u.getOS)();return{os:e.name,osversion:e.version}}(),m=p.os,b=p.osversion,w=function(){var e=(0,u.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),f=w.device,h=w.devicebrand;m=m||"",b=b||"",f=f||"",h=h||"";var v={exports:{}},g={exports:{}},y=1e3,_=60*y,x=60*_,k=24*x,S=365.25*k,P=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*S;case"days":case"day":case"d":return o*k;case"hours":case"hour":case"hrs":case"hr":case"h":return o*x;case"minutes":case"minute":case"mins":case"min":case"m":return o*_;case"seconds":case"second":case"secs":case"sec":case"s":return o*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return O(e,k,"day")||O(e,x,"hour")||O(e,_,"minute")||O(e,y,"second")||e+" ms"}(e):function(e){if(e>=k)return Math.round(e/k)+"d";if(e>=x)return Math.round(e/x)+"h";if(e>=_)return Math.round(e/_)+"m";if(e>=y)return Math.round(e/y)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function O(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a);var u=t.log||i.log||console.log.bind(console);u.apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=g.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=P,i.names=[],i.skips=[],i.formatters={}}(0,g.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=g.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(v,v.exports);var C=v.exports("jsonp"),A=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+N++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=q,n&&clearTimeout(n)}return window[a]=function(e){C("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),C('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},N=0;function q(){}function E(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;A("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,i){e?t(e):o(i)}))}))}var T;exports.EGender=void 0,(T=exports.EGender||(exports.EGender={}))[T.Unknown=0]="Unknown",T[T.Male=1]="Male",T[T.Female=2]="Female";var U=function(){function s(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version="3.9.0",this.buildDate="2/28/2025, 2:27:01 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(s.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),s.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},s.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},s.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},s.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},s.prototype._getBatchId=function(){var e,i=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem("XYZ_LOG_"+e):null);return i||function(e,i){void 0!==typeof sessionStorage&&sessionStorage.setItem("XYZ_LOG_"+e,i)}("BATCH_ID",i=t()),i},s.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},s.prototype._getApis=function(i){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=e(e({},o),i);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},s.prototype._cacheCommonParams=function(e){o("COMMON_PARAMS",JSON.stringify(e))},s.prototype._getInitParams=function(){return{os:m,osversion:b,device:f,devicebrand:h,platform:7,openid:n(),appcqid:"organic",appqid:"organic"+r(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},s.prototype._initCommonParams=function(){var o=this._getInitParams(),t=i("COMMON_PARAMS");t&&(o=e(e({},o),JSON.parse(t))),o=a(o,this._commonParams),this._updateCommonParams(e(e({},o),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},s.prototype._getUserInfo=function(i){var o={};if(i)try{o=JSON.parse(i)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(e(e({querystring:this._urlParams},t),o))},s.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},s.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},s.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+r()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=a(this._commonParams,e),this._cacheCommonParams(this._commonParams)},s.prototype._getAppqid=function(){return this._commonParams.appcqid+r()},s.prototype._request=function(e,i){!function(e,i){E(e,i)}(e,i)},s.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:"3.9.0"});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},s.prototype.event=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),event1:i.event1||"",event2:i.event2||"",event3:i.event3||"",event4:i.event4||"",value1:i.value1||"",value2:i.value2||"",value3:i.value3||"",value4:i.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},s.prototype.act=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),actentryid:i.actentryid||"",subactid:i.subactid||"",type:i.type||"",custom:i.custom||"",batchid:i.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},s}();exports.XLog=U;
|
|
6
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){return e=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},e.apply(this,arguments)};function i(e){return void 0!==typeof localStorage?localStorage.getItem("XYZ_LOG_"+e):null}function o(e,i){void 0!==typeof localStorage&&localStorage.setItem("XYZ_LOG_"+e,i)}function t(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function n(e){void 0===e&&(e="UID");var n=i(e);return n||o(e,n=t()),n}function r(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function a(i,o){var t=e({},i),n=e({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),e(e({},t),n)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c={exports:{}};!function(e,i){!function(o,t){var n="function",r="undefined",a="object",s="string",c="model",u="name",l="type",d="vendor",p="version",m="architecture",b="console",w="mobile",f="tablet",h="smarttv",v="wearable",g="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",S="Firefox",P="Google",O="Huawei",C="LG",A="Microsoft",N="Motorola",q="Opera",E="Samsung",T="Sony",U="Xiaomi",L="Zebra",M="Facebook",j=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},z=function(e,i){return typeof e===s&&-1!==R(i).indexOf(R(e))},R=function(e){return e.toLowerCase()},I=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===r?e:e.substring(0,255)},B=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],m=i[d+1];for(o=r=0;o<p.length&&!u;)if(u=p[o++].exec(e))for(s=0;s<m.length;s++)l=u[++r],typeof(c=m[s])===a&&c.length>0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;d+=2}},G=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var n=0;n<i[o].length;n++)if(z(i[o][n],e))return"?"===o?t:o}else if(z(i[o],e))return"?"===o?t:o;return e},D={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,M],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",R]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,E],[l,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,E],[l,w]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,_],[l,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[l,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,O],[l,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[d,O],[l,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[l,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[l,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[l,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[d,N],[l,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,N],[l,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,C],[l,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,C],[l,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[l,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[l,w]],[/(pixel c)\b/i],[c,[d,P],[l,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,P],[l,w]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,T],[l,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,T],[l,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[l,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,y],[l,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,y],[l,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[l,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[l,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,x],[l,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,x],[l,w]],[/(nexus 9)/i],[c,[d,"HTC"],[l,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[l,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[l,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,"Sharp"],[l,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[l,w]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,c,[l,f]],[/(surface duo)/i],[c,[d,A],[l,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[l,w]],[/(u304aa)/i],[c,[d,"AT&T"],[l,w]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[l,w]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[l,f]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[l,f]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[l,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[l,f]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[l,f]],[/\b(k88) b/i],[c,[d,"ZTE"],[l,f]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[l,w]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[l,w]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[l,f]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[l,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[l,f]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[l,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[l,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[l,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[l,w]],[/\b(ph-1) /i],[c,[d,"Essential"],[l,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[l,f]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[l,f]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[l,f]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[l,f]],[/(sprint) (\w+)/i],[d,c,[l,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,A],[l,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,L],[l,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,L],[l,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[l,b]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[l,b]],[/(playstation [345portablevi]+)/i],[c,[d,T],[l,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,A],[l,b]],[/smart-tv.+(samsung)/i],[d,[l,h]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,E],[l,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[l,h]],[/(apple) ?tv/i],[d,[c,"Apple TV"],[l,h]],[/crkey/i],[[c,"Chromecast"],[d,P],[l,h]],[/droid.+aft(\w)( bui|\))/i],[c,[d,y],[l,h]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,I],[c,I],[l,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,h]],[/((pebble))app/i],[d,c,[l,v]],[/droid.+; (glass) \d/i],[c,[d,P],[l,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,L],[l,v]],[/(quest( 2)?)/i],[c,[d,M],[l,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,f]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,G,D]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,G,D]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},F=function(e,i){if(typeof e===a&&(i=e,e=t),!(this instanceof F))return new F(e,i).getResult();var n=e||(typeof o!==r&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),c=i?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}(X,i):X;return this.getBrowser=function(){var e,i={};return i.name=t,i.version=t,B.call(i,n,c.browser),i.major=typeof(e=i.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:t,i},this.getCPU=function(){var e={};return e.architecture=t,B.call(e,n,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=t,e.model=t,e.type=t,B.call(e,n,c.device),e},this.getEngine=function(){var e={};return e.name=t,e.version=t,B.call(e,n,c.engine),e},this.getOS=function(){var e={};return e.name=t,e.version=t,B.call(e,n,c.os),e},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 n},this.setUA=function(e){return n=typeof e===s&&e.length>255?I(e,255):e,this},this.setUA(n),this};F.VERSION="1.0.2",F.BROWSER=j([u,p,"major"]),F.CPU=j([m]),F.DEVICE=j([c,d,l,b,w,h,f,v,g]),F.ENGINE=F.OS=j([u,p]),e.exports&&(i=e.exports=F),i.UAParser=F;var V=typeof o!==r&&(o.jQuery||o.Zepto);if(V&&!V.ua){var Z=new F;V.ua=Z.getResult(),V.ua.get=function(){return Z.getUA()},V.ua.set=function(e){Z.setUA(e);var i=Z.getResult();for(var o in i)V.ua[o]=i[o]}}}("object"==typeof window?window:s)}(c,c.exports);var u=new c.exports.UAParser,l=u.getBrowser();l.name,l.version;var d=u.getEngine();d.name,d.version;var p=function(){var e=(0,u.getOS)();return{os:e.name,osversion:e.version}}(),m=p.os,b=p.osversion,w=function(){var e=(0,u.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),f=w.device,h=w.devicebrand;m=m||"",b=b||"",f=f||"",h=h||"";var v={exports:{}},g={exports:{}},y=1e3,_=60*y,x=60*_,k=24*x,S=365.25*k,P=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*S;case"days":case"day":case"d":return o*k;case"hours":case"hour":case"hrs":case"hr":case"h":return o*x;case"minutes":case"minute":case"mins":case"min":case"m":return o*_;case"seconds":case"second":case"secs":case"sec":case"s":return o*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return O(e,k,"day")||O(e,x,"hour")||O(e,_,"minute")||O(e,y,"second")||e+" ms"}(e):function(e){if(e>=k)return Math.round(e/k)+"d";if(e>=x)return Math.round(e/x)+"h";if(e>=_)return Math.round(e/_)+"m";if(e>=y)return Math.round(e/y)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function O(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a);var u=t.log||i.log||console.log.bind(console);u.apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=g.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=P,i.names=[],i.skips=[],i.formatters={}}(0,g.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=g.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(v,v.exports);var C=v.exports("jsonp"),A=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+N++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=q,n&&clearTimeout(n)}return window[a]=function(e){C("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),C('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},N=0;function q(){}function E(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;A("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,i){e?t(e):o(i)}))}))}var T;exports.EGender=void 0,(T=exports.EGender||(exports.EGender={}))[T.Unknown=0]="Unknown",T[T.Male=1]="Male",T[T.Female=2]="Female";var U=function(){function s(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version="4.0.0",this.buildDate="3/7/2025, 6:00:43 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(s.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),s.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},s.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},s.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},s.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},s.prototype._getBatchId=function(){var e,i=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem("XYZ_LOG_"+e):null);return i||function(e,i){void 0!==typeof sessionStorage&&sessionStorage.setItem("XYZ_LOG_"+e,i)}("BATCH_ID",i=t()),i},s.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},s.prototype._getApis=function(i){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=e(e({},o),i);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},s.prototype._cacheCommonParams=function(e){o("COMMON_PARAMS",JSON.stringify(e))},s.prototype._getInitParams=function(){return{os:m,osversion:b,device:f,devicebrand:h,platform:7,openid:n(),appcqid:"organic",appqid:"organic"+r(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},s.prototype._initCommonParams=function(){var o=this._getInitParams(),t=i("COMMON_PARAMS");t&&(o=e(e({},o),JSON.parse(t))),o=a(o,this._commonParams),this._updateCommonParams(e(e({},o),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},s.prototype._getUserInfo=function(i){var o={};if(i)try{o=JSON.parse(i)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(e(e({querystring:this._urlParams},t),o))},s.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},s.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},s.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+r()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=a(this._commonParams,e),this._cacheCommonParams(this._commonParams)},s.prototype._getAppqid=function(){return this._commonParams.appcqid+r()},s.prototype._request=function(e,i){!function(e,i){E(e,i)}(e,i)},s.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:"4.0.0"});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},s.prototype.event=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),event1:i.event1||"",event2:i.event2||"",event3:i.event3||"",event4:i.event4||"",value1:i.value1||"",value2:i.value2||"",value3:i.value3||"",value4:i.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},s.prototype.act=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),actentryid:i.actentryid||"",subactid:i.subactid||"",type:i.type||"",custom:i.custom||"",batchid:i.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},s}();exports.XLog=U;
|
|
7
7
|
//# sourceMappingURL=web.js.map
|