@alicloud-emas/apm 1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Alibaba Cloud
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @alicloud-emas/apm
2
+
3
+ EMAS WEB SDK
4
+
5
+ [Documentation](https://help.aliyun.com/product/434086.html)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @alicloud-emas/apm
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ // Import the SDK
17
+ import emas_apm from '@ali/emas-web-apm/lib';
18
+
19
+ // Initialize the SDK
20
+ const apm = new window.EMAS.apm({
21
+ appKey: 'appKey', // Apply from the console
22
+ appSecret: 'appSecret', // Apply from the console
23
+ appVersion: 'version', // Custom application version
24
+ channel: 'channel', // Custom channel
25
+ userNick: 'userNick', // User nickname
26
+ userId: 'userId', // User ID
27
+ loggerLevel: 'debug', // Log level
28
+ });
29
+
30
+
31
+ // Register and use the corresponding plugin
32
+ // Please refer to the official EMAS documentation for plugin usage
33
+ apm.addPlugin(plugin, {})
34
+
35
+ ```
36
+
37
+ ## License
38
+
39
+ The MIT License
package/es/index.js ADDED
@@ -0,0 +1,3 @@
1
+ !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=133)}([function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(1),i=r(0),o=r(13),a=r(10),s=r(11),u=function(t,e,r){var c,l,f,h=t&u.F,d=t&u.G,p=t&u.S,_=t&u.P,v=t&u.B,w=t&u.W,m=d?i:i[e]||(i[e]={}),g=m.prototype,b=d?n:p?n[e]:(n[e]||{}).prototype;for(c in d&&(r=e),r)(l=!h&&b&&void 0!==b[c])&&s(m,c)||(f=l?b[c]:r[c],m[c]=d&&"function"!=typeof b[c]?r[c]:v&&l?o(f,n):w&&b[c]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):_&&"function"==typeof f?o(Function.call,f):f,_&&((m.virtual||(m.virtual={}))[c]=f,t&u.R&&g&&!g[c]&&a(g,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(42)("wks"),i=r(28),o=r(1).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){var n=r(97)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){var n=r(6),i=r(52),o=r(38),a=Object.defineProperty;e.f=r(8)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(7);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){r(99),r(50),r(103),r(104),t.exports=r(0).Symbol},function(t,e,r){var n=r(5),i=r(19);t.exports=r(8)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){t.exports=r(116)},function(t,e,r){var n=r(26);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(81),i=r(25);t.exports=function(t){return n(i(t))}},function(t,e,r){(function(e){var n;t.exports=(n=n||function(t,n){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=r(129)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),s={},u=s.lib={},c=u.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=u.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(o());return new l.init(e,t)}}),f=s.enc={},h=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(r,e/2)}},d=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(r,e)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},_=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,c=t.min(4*u,o);if(u){for(var f=0;f<u;f+=a)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=c}return new l.init(r,c)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(u.Hasher=_.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new v.HMAC.init(t,r).finalize(e)}}}),s.algo={});return s}(Math),n)}).call(this,r(128))},function(t,e,r){t.exports=r(113)},function(t,e){t.exports=!0},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(25);t.exports=function(t){return Object(n(t))}},function(t,e,r){r(50),r(35),r(57),r(87),r(95),r(96),t.exports=r(0).Promise},function(t,e,r){t.exports=r(115)},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(54),i=r(43);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(5).f,i=r(11),o=r(3)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){e.f=r(3)},function(t,e,r){r(35),r(57),t.exports=r(30).f("iterator")},function(t,e,r){t.exports=r(9)},function(t,e,r){t.exports=r(31)},function(t,e,r){t.exports=r(118)},function(t,e,r){"use strict";var n=r(78)(!0);r(51)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(7),i=r(1).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){var n=r(7);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(6),i=r(80),o=r(43),a=r(41)("IE_PROTO"),s=function(){},u=function(){var t,e=r(37)("iframe"),n=o.length;for(e.style.display="none",r(55).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=u(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(36),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(42)("keys"),i=r(28);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(0),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){"use strict";var n=r(26);function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},function(t,e,r){var n=r(1),i=r(0),o=r(18),a=r(30),s=r(5).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){r(105);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){t.exports=r(23)},function(t,e,r){var n;t.exports=(n=r(16),r(130),r(131),n.HmacSHA1)},function(t,e){},function(t,e,r){"use strict";var n=r(18),i=r(2),o=r(53),a=r(10),s=r(20),u=r(79),c=r(29),l=r(56),f=r(3)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,p,_,v,w){u(r,e,p);var m,g,b,y=function(t){if(!h&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",k="values"==_,S=!1,E=t.prototype,A=E[f]||E["@@iterator"]||_&&E[_],O=A||y(_),z=_?k?y("entries"):O:void 0,R="Array"==e&&E.entries||A;if(R&&(b=l(R.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),n||"function"==typeof b[f]||a(b,f,d)),k&&A&&"values"!==A.name&&(S=!0,O=function(){return A.call(this)}),n&&!w||!h&&!S&&E[f]||a(E,f,O),s[e]=O,s[x]=d,_)if(m={values:k?O:y("values"),keys:v?O:y("keys"),entries:z},w)for(g in m)g in E||o(E,g,m[g]);else i(i.P+i.F*(h||S),e,m);return m}},function(t,e,r){t.exports=!r(8)&&!r(14)((function(){return 7!=Object.defineProperty(r(37)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){t.exports=r(10)},function(t,e,r){var n=r(11),i=r(15),o=r(82)(!1),a=r(41)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(1).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(11),i=r(22),o=r(41)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){r(84);for(var n=r(1),i=r(10),o=r(20),a=r(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e,r){var n=r(21),i=r(3)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,r){var n=r(6);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(20),i=r(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(58),i=r(3)("iterator"),o=r(20);t.exports=r(0).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(6),i=r(26),o=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(13),s=r(90),u=r(55),c=r(37),l=r(1),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,_=l.Dispatch,v=0,w={},m=function(){var t=+this;if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},g=function(t){m.call(t.data)};h&&d||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++v]=function(){s("function"==typeof t?t:Function(t),e)},n(v),v},d=function(t){delete w[t]},"process"==r(21)(f)?n=function(t){f.nextTick(a(m,t,1))}:_&&_.now?n=function(t){_.now(a(m,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=g,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",g,!1)):n="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:h,clear:d}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(6),i=r(7),o=r(44);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(21);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(54),i=r(43).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(46),i=r(19),o=r(15),a=r(38),s=r(11),u=r(52),c=Object.getOwnPropertyDescriptor;e.f=r(8)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(2),i=r(0),o=r(14);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,r){t.exports=r(121)},function(t,e,r){t.exports=r(123)},function(t,e,r){var n;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",h="tablet",d="smarttv",p=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},_=function(t,e){return"string"==typeof t&&-1!==v(e).indexOf(v(t))},v=function(t){return t.toLowerCase()},w=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,500)},m=function(t,e){for(var r,n,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],l=e[u+1];for(r=n=0;r<c.length&&!a&&c[r];)if(a=c[r++].exec(t))for(i=0;i<l.length;i++)s=a[++n],"object"==typeof(o=l[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},g=function(t,e){for(var r in e)if("object"==typeof e[r]&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(_(e[r][n],t))return"?"===r?void 0:r}else if(_(e[r],t))return"?"===r?void 0:r;return e.hasOwnProperty("*")?e["*"]:t},b={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"},y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[s,"Opera GX"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[s,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/quark(?:pc)?\/([-\w\.]+)/i],[l,[s,"Quark"]],[/\bddg\/([\w\.]+)/i],[l,[s,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[s,"Smart Lenovo Browser"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/\b(qq)\/([\w\.]+)/i],[[s,/(.+)/,"$1Browser"],l],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/samsungbrowser\/([\w\.]+)/i],[l,[s,"Samsung Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/metasr[\/ ]?([\d\.]+)/i],[l,[s,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[s,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[s,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,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],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/(wolvic)\/([\w\.]+)/i],[s,l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,[l,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[s,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",v]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[c,"Samsung"],[u,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[a,[c,"Samsung"],[u,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[c,"Apple"],[u,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[c,"Apple"],[u,h]],[/(macintosh);/i],[a,[c,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[c,"Sharp"],[u,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[c,"OPPO"],[u,f]],[/\b(opd2\d{3}a?) bui/i],[a,[c,"OPPO"],[u,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[c,"Vivo"],[u,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[c,"Realme"],[u,f]],[/\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,[c,"Motorola"],[u,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[c,"Motorola"],[u,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[c,"LG"],[u,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[c,"LG"],[u,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[c,"Lenovo"],[u,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[c,"Nokia"],[u,f]],[/(pixel c)\b/i],[a,[c,"Google"],[u,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[c,"Google"],[u,f]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[c,"Sony"],[u,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[c,"Sony"],[u,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[c,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[c,"Amazon"],[u,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[c,"Amazon"],[u,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,c,[u,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[c,"BlackBerry"],[u,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[c,"ASUS"],[u,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[c,"ASUS"],[u,f]],[/(nexus 9)/i],[a,[c,"HTC"],[u,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[a,/_/g," "],[u,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[a,[c,"TCL"],[u,h]],[/(itel) ((\w+))/i],[[c,v],a,[u,g,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[c,"Acer"],[u,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[c,"Meizu"],[u,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[c,"Ulefone"],[u,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[c,"Nothing"],[u,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,a,[u,f]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,a,[u,h]],[/(surface duo)/i],[a,[c,"Microsoft"],[u,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[c,"Fairphone"],[u,f]],[/(u304aa)/i],[a,[c,"AT&T"],[u,f]],[/\bsie-(\w*)/i],[a,[c,"Siemens"],[u,f]],[/\b(rct\w+) b/i],[a,[c,"RCA"],[u,h]],[/\b(venue[\d ]{2,7}) b/i],[a,[c,"Dell"],[u,h]],[/\b(q(?:mv|ta)\w+) b/i],[a,[c,"Verizon"],[u,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[c,"Barnes & Noble"],[u,h]],[/\b(tm\d{3}\w+) b/i],[a,[c,"NuVision"],[u,h]],[/\b(k88) b/i],[a,[c,"ZTE"],[u,h]],[/\b(nx\d{3}j) b/i],[a,[c,"ZTE"],[u,f]],[/\b(gen\d{3}) b.+49h/i],[a,[c,"Swiss"],[u,f]],[/\b(zur\d{3}) b/i],[a,[c,"Swiss"],[u,h]],[/\b((zeki)?tb.*\b) b/i],[a,[c,"Zeki"],[u,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],a,[u,h]],[/\b(ns-?\w{0,9}) b/i],[a,[c,"Insignia"],[u,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[c,"NextBook"],[u,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],a,[u,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],a,[u,f]],[/\b(ph-1) /i],[a,[c,"Essential"],[u,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[c,"Envizen"],[u,h]],[/\b(trio[-\w\. ]+) b/i],[a,[c,"MachSpeed"],[u,h]],[/\btu_(1491) b/i],[a,[c,"Rotor"],[u,h]],[/(shield[\w ]+) b/i],[a,[c,"Nvidia"],[u,h]],[/(sprint) (\w+)/i],[c,a,[u,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[c,"Microsoft"],[u,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[c,"Zebra"],[u,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[c,"Zebra"],[u,f]],[/smart-tv.+(samsung)/i],[c,[u,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[c,"Samsung"],[u,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[u,d]],[/(apple) ?tv/i],[c,[a,"Apple TV"],[u,d]],[/crkey/i],[[a,"Chromecast"],[c,"Google"],[u,d]],[/droid.+aft(\w+)( bui|\))/i],[a,[c,"Amazon"],[u,d]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[c,"Sharp"],[u,d]],[/(bravia[\w ]+)( bui|\))/i],[a,[c,"Sony"],[u,d]],[/(mitv-\w{5}) bui/i],[a,[c,"Xiaomi"],[u,d]],[/Hbbtv.*(technisat) (.*);/i],[c,a,[u,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[c,w],[a,w],[u,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,d]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[c,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[c,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[c,"Microsoft"],[u,"console"]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[a,[c,"Samsung"],[u,"wearable"]],[/((pebble))app/i],[c,a,[u,"wearable"]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[c,"Apple"],[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[c,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[c,"Zebra"],[u,"wearable"]],[/(quest( \d| pro)?)/i],[a,[c,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,"embedded"]],[/(aeobc)\b/i],[a,[c,"Amazon"],[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[u,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,f]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[s,[l,g,b]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,g,b],[s,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[s,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[s,"Chromium OS"],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[s,l]]},x=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof x))return new x(t,e).getResult();var r=void 0!==i&&i.navigator?i.navigator:void 0,n=t||(r&&r.userAgent?r.userAgent:""),o=r&&r.userAgentData?r.userAgentData:void 0,c=e?function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r}(y,e):y,d=r&&r.userAgent==n;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[l]=void 0,m.call(e,n,c.browser),e.major="string"==typeof(t=e[l])?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,d&&r&&r.brave&&"function"==typeof r.brave.isBrave&&(e[s]="Brave"),e},this.getCPU=function(){var t={architecture:void 0};return m.call(t,n,c.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return m.call(t,n,c.device),d&&!t[u]&&o&&o.mobile&&(t[u]=f),d&&"Macintosh"==t[a]&&r&&void 0!==r.standalone&&r.maxTouchPoints&&r.maxTouchPoints>2&&(t[a]="iPad",t[u]=h),t},this.getEngine=function(){var t={name:void 0,version:void 0};return m.call(t,n,c.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return m.call(t,n,c.os),d&&!t[s]&&o&&o.platform&&"Unknown"!=o.platform&&(t[s]=o.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),t},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(t){return n="string"==typeof t&&t.length>500?w(t,500):t,this},this.setUA(n),this};x.VERSION="1.0.39",x.BROWSER=p([s,l,"major"]),x.CPU=p(["architecture"]),x.DEVICE=p([a,c,u,"console",f,d,h,"wearable","embedded"]),x.ENGINE=x.OS=p([s,l]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=x),e.UAParser=x):r(127)?void 0===(n=function(){return x}.call(e,r,e,t))||(t.exports=n):void 0!==i&&(i.UAParser=x);var k=void 0!==i&&(i.jQuery||i.Zepto);if(k&&!k.ua){var S=new x;k.ua=S.getResult(),k.ua.get=function(){return S.getUA()},k.ua.set=function(t){S.setUA(t);var e=S.getResult();for(var r in e)k.ua[r]=e[r]}}}("object"==typeof window?window:this)},function(t,e,r){var n;t.exports=(n=r(16),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],d=t[e+2],p=t[e+3],_=t[e+4],v=t[e+5],w=t[e+6],m=t[e+7],g=t[e+8],b=t[e+9],y=t[e+10],x=t[e+11],k=t[e+12],S=t[e+13],E=t[e+14],A=t[e+15],O=o[0],z=o[1],R=o[2],T=o[3];O=c(O,z,R,T,a,7,s[0]),T=c(T,O,z,R,u,12,s[1]),R=c(R,T,O,z,d,17,s[2]),z=c(z,R,T,O,p,22,s[3]),O=c(O,z,R,T,_,7,s[4]),T=c(T,O,z,R,v,12,s[5]),R=c(R,T,O,z,w,17,s[6]),z=c(z,R,T,O,m,22,s[7]),O=c(O,z,R,T,g,7,s[8]),T=c(T,O,z,R,b,12,s[9]),R=c(R,T,O,z,y,17,s[10]),z=c(z,R,T,O,x,22,s[11]),O=c(O,z,R,T,k,7,s[12]),T=c(T,O,z,R,S,12,s[13]),R=c(R,T,O,z,E,17,s[14]),O=l(O,z=c(z,R,T,O,A,22,s[15]),R,T,u,5,s[16]),T=l(T,O,z,R,w,9,s[17]),R=l(R,T,O,z,x,14,s[18]),z=l(z,R,T,O,a,20,s[19]),O=l(O,z,R,T,v,5,s[20]),T=l(T,O,z,R,y,9,s[21]),R=l(R,T,O,z,A,14,s[22]),z=l(z,R,T,O,_,20,s[23]),O=l(O,z,R,T,b,5,s[24]),T=l(T,O,z,R,E,9,s[25]),R=l(R,T,O,z,p,14,s[26]),z=l(z,R,T,O,g,20,s[27]),O=l(O,z,R,T,S,5,s[28]),T=l(T,O,z,R,d,9,s[29]),R=l(R,T,O,z,m,14,s[30]),O=f(O,z=l(z,R,T,O,k,20,s[31]),R,T,v,4,s[32]),T=f(T,O,z,R,g,11,s[33]),R=f(R,T,O,z,x,16,s[34]),z=f(z,R,T,O,E,23,s[35]),O=f(O,z,R,T,u,4,s[36]),T=f(T,O,z,R,_,11,s[37]),R=f(R,T,O,z,m,16,s[38]),z=f(z,R,T,O,y,23,s[39]),O=f(O,z,R,T,S,4,s[40]),T=f(T,O,z,R,a,11,s[41]),R=f(R,T,O,z,p,16,s[42]),z=f(z,R,T,O,w,23,s[43]),O=f(O,z,R,T,b,4,s[44]),T=f(T,O,z,R,k,11,s[45]),R=f(R,T,O,z,A,16,s[46]),O=h(O,z=f(z,R,T,O,d,23,s[47]),R,T,a,6,s[48]),T=h(T,O,z,R,m,10,s[49]),R=h(R,T,O,z,E,15,s[50]),z=h(z,R,T,O,v,21,s[51]),O=h(O,z,R,T,k,6,s[52]),T=h(T,O,z,R,p,10,s[53]),R=h(R,T,O,z,y,15,s[54]),z=h(z,R,T,O,u,21,s[55]),O=h(O,z,R,T,g,6,s[56]),T=h(T,O,z,R,A,10,s[57]),R=h(R,T,O,z,w,15,s[58]),z=h(z,R,T,O,S,21,s[59]),O=h(O,z,R,T,_,6,s[60]),T=h(T,O,z,R,x,10,s[61]),R=h(R,T,O,z,d,15,s[62]),z=h(z,R,T,O,b,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+z|0,o[2]=o[2]+R|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function l(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(u),e.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(t,e,r){t.exports=r(30).f("toPrimitive")},function(t,e,r){var n=r(36),i=r(25);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(39),i=r(19),o=r(29),a={};r(10)(a,r(3)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(5),i=r(6),o=r(27);t.exports=r(8)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,u=0;s>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){var n=r(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(15),i=r(40),o=r(83);t.exports=function(t){return function(e,r,a){var s,u=n(e),c=i(u.length),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(36),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},function(t,e,r){"use strict";var n=r(85),i=r(86),o=r(20),a=r(15);t.exports=r(51)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){"use strict";var n,i,o,a,s=r(18),u=r(1),c=r(13),l=r(58),f=r(2),h=r(7),d=r(26),p=r(88),_=r(89),v=r(62),w=r(63).set,m=r(91)(),g=r(44),b=r(64),y=r(92),x=r(65),k=u.TypeError,S=u.process,E=S&&S.versions,A=E&&E.v8||"",O=u.Promise,z="process"==l(S),R=function(){},T=i=g.f,L=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(R,R)};return(z||"function"==typeof PromiseRejectionEvent)&&t.then(R)instanceof e&&0!==A.indexOf("6.6")&&-1===y.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},C=function(t,e){if(!t._n){t._n=!0;var r=t._c;m((function(){for(var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&U(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?c(k("Promise-chain cycle")):(o=j(r))?o.call(r,u,c):u(r)):c(n)}catch(t){l&&!a&&l.exit(),c(t)}};r.length>o;)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)}))}},P=function(t){w.call(u,(function(){var e,r,n,i=t._v,o=M(t);if(o&&(e=b((function(){z?S.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=z||M(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},U=function(t){w.call(u,(function(){var e;z?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},I=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},N=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw k("Promise can't be resolved itself");(e=j(t))?m((function(){var n={_w:r,_d:!1};try{e.call(t,c(N,n,1),c(I,n,1))}catch(t){I.call(n,t)}})):(r._v=t,r._s=1,C(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};L||(O=function(t){p(this,O,"Promise","_h"),d(t),n.call(this);try{t(c(N,this,1),c(I,this,1))}catch(t){I.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(93)(O.prototype,{then:function(t,e){var r=T(v(this,O));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=z?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&C(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(N,t,1),this.reject=c(I,t,1)},g.f=T=function(t){return t===O||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!L,{Promise:O}),r(29)(O,"Promise"),r(94)("Promise"),a=r(0).Promise,f(f.S+f.F*!L,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!L),"Promise",{resolve:function(t){return x(s&&this===a?O:this,t)}}),f(f.S+f.F*!(L&&r(66)((function(t){O.all(t).catch(R)}))),"Promise",{all:function(t){var e=this,r=T(e),n=r.resolve,i=r.reject,o=b((function(){var r=[],o=0,a=1;_(t,!1,(function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,r[s]=t,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=T(e),n=r.reject,i=b((function(){_(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(13),i=r(59),o=r(60),a=r(6),s=r(40),u=r(61),c={},l={};(e=t.exports=function(t,e,r,f,h){var d,p,_,v,w=h?function(){return t}:u(t),m=n(r,f,e?2:1),g=0;if("function"!=typeof w)throw TypeError(t+" is not iterable!");if(o(w)){for(d=s(t.length);d>g;g++)if((v=e?m(a(p=t[g])[0],p[1]):m(t[g]))===c||v===l)return v}else for(_=w.call(t);!(p=_.next()).done;)if((v=i(_,m,p.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(1),i=r(63).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(21)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){var n=r(1).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){var n=r(10);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){"use strict";var n=r(1),i=r(0),o=r(5),a=r(8),s=r(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(1),a=r(62),s=r(65);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then((function(){return r}))}:t,r?function(r){return s(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){"use strict";var n=r(2),i=r(44),o=r(64);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){var n=r(98).default,i=r(47),o=r(9),a=r(106),s=r(108),u=r(110),c=r(23);function l(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=l=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},f=Object.prototype,h=f.hasOwnProperty,d=i||function(t,e,r){t[e]=r.value},p="function"==typeof o?o:{},_=p.iterator||"@@iterator",v=p.asyncIterator||"@@asyncIterator",w=p.toStringTag||"@@toStringTag";function m(t,e,r){return i(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{m({},"")}catch(e){m=function(t,e,r){return t[e]=r}}function g(t,e,r,n){var i=e&&e.prototype instanceof E?e:E,o=a(i.prototype),s=new I(n||[]);return d(o,"_invoke",{value:C(t,r,s)}),o}function b(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=g;var y="suspendedStart",x="executing",k="completed",S={};function E(){}function A(){}function O(){}var z={};m(z,_,(function(){return this}));var R=s&&s(s(N([])));R&&R!==f&&h.call(R,_)&&(z=R);var T=O.prototype=E.prototype=a(z);function L(t){["next","throw","return"].forEach((function(e){m(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(i,o,a,s){var u=b(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==n(l)&&h.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;d(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var i=y;return function(o,a){if(i===x)throw Error("Generator is already running");if(i===k){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=P(s,n);if(u){if(u===S)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===y)throw i=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=x;var c=b(t,r,n);if("normal"===c.type){if(i=n.done?k:"suspendedYield",c.arg===S)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=k,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),S;var o=b(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,S;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,S):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,S)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function U(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[_];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(h.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(n(t)+" is not iterable")}return A.prototype=O,d(T,"constructor",{value:O,configurable:!0}),d(O,"constructor",{value:A,configurable:!0}),A.displayName=m(O,w,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return u?u(t,O):(t.__proto__=O,m(t,w,"GeneratorFunction")),t.prototype=a(T),t},r.awrap=function(t){return{__await:t}},L(j.prototype),m(j.prototype,v,(function(){return this})),r.AsyncIterator=j,r.async=function(t,e,n,i,o){void 0===o&&(o=c);var a=new j(g(t,e,n,i),o);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(T),m(T,w,"Generator"),m(T,_,(function(){return this})),m(T,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=N,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!t)for(var r in this)"t"===r.charAt(0)&&h.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=h.call(o,"catchLoc"),u=h.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&h.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,S):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),U(r),S}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;U(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),S}},r}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(9),i=r(31);function o(e){return t.exports=o="function"==typeof n&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof n&&t.constructor===n&&t!==n.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";var n=r(1),i=r(11),o=r(8),a=r(2),s=r(53),u=r(100).KEY,c=r(14),l=r(42),f=r(29),h=r(28),d=r(3),p=r(30),_=r(45),v=r(101),w=r(68),m=r(6),g=r(7),b=r(22),y=r(15),x=r(38),k=r(19),S=r(39),E=r(102),A=r(70),O=r(67),z=r(5),R=r(27),T=A.f,L=z.f,j=E.f,C=n.Symbol,P=n.JSON,M=P&&P.stringify,U=d("_hidden"),I=d("toPrimitive"),N={}.propertyIsEnumerable,B=l("symbol-registry"),F=l("symbols"),D=l("op-symbols"),Z=Object.prototype,H="function"==typeof C&&!!O.f,q=n.QObject,K=!q||!q.prototype||!q.prototype.findChild,G=o&&c((function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=T(Z,e);n&&delete Z[e],L(t,e,r),n&&t!==Z&&L(Z,e,n)}:L,Q=function(t){var e=F[t]=S(C.prototype);return e._k=t,e},V=H&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},W=function(t,e,r){return t===Z&&W(D,e,r),m(t),e=x(e,!0),m(r),i(F,e)?(r.enumerable?(i(t,U)&&t[U][e]&&(t[U][e]=!1),r=S(r,{enumerable:k(0,!1)})):(i(t,U)||L(t,U,k(1,{})),t[U][e]=!0),G(t,e,r)):L(t,e,r)},Y=function(t,e){m(t);for(var r,n=v(e=y(e)),i=0,o=n.length;o>i;)W(t,r=n[i++],e[r]);return t},X=function(t){var e=N.call(this,t=x(t,!0));return!(this===Z&&i(F,t)&&!i(D,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,U)&&this[U][t])||e)},$=function(t,e){if(t=y(t),e=x(e,!0),t!==Z||!i(F,e)||i(D,e)){var r=T(t,e);return!r||!i(F,e)||i(t,U)&&t[U][e]||(r.enumerable=!0),r}},J=function(t){for(var e,r=j(y(t)),n=[],o=0;r.length>o;)i(F,e=r[o++])||e==U||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===Z,n=j(r?D:y(t)),o=[],a=0;n.length>a;)!i(F,e=n[a++])||r&&!i(Z,e)||o.push(F[e]);return o};H||(s((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===Z&&e.call(D,r),i(this,U)&&i(this[U],t)&&(this[U][t]=!1),G(this,t,k(1,r))};return o&&K&&G(Z,t,{configurable:!0,set:e}),Q(t)}).prototype,"toString",(function(){return this._k})),A.f=$,z.f=W,r(69).f=E.f=J,r(46).f=X,O.f=tt,o&&!r(18)&&s(Z,"propertyIsEnumerable",X,!0),p.f=function(t){return Q(d(t))}),a(a.G+a.W+a.F*!H,{Symbol:C});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var nt=R(d.store),it=0;nt.length>it;)_(nt[it++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=C(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),a(a.S+a.F*!H,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:W,defineProperties:Y,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:tt});var ot=c((function(){O.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return O.f(b(t))}}),P&&a(a.S+a.F*(!H||c((function(){var t=C();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(g(e)||void 0!==t)&&!V(t))return w(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!V(e))return e}),n[1]=e,M.apply(P,n)}}),C.prototype[I]||r(10)(C.prototype,I,C.prototype.valueOf),f(C,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(t,e,r){var n=r(28)("meta"),i=r(7),o=r(11),a=r(5).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(14)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[n].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,n)&&l(t),t}}},function(t,e,r){var n=r(27),i=r(67),o=r(46);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,r){var n=r(15),i=r(69).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){r(45)("asyncIterator")},function(t,e,r){r(45)("observable")},function(t,e,r){var n=r(2);n(n.S+n.F*!r(8),"Object",{defineProperty:r(5).f})},function(t,e,r){r(107);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(2);n(n.S,"Object",{create:r(39)})},function(t,e,r){r(109),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){var n=r(22),i=r(56);r(71)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(111),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){var n=r(2);n(n.S,"Object",{setPrototypeOf:r(112).set})},function(t,e,r){var n=r(7),i=r(6),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(13)(Function.call,r(70).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){r(114),t.exports=r(0).Array.isArray},function(t,e,r){var n=r(2);n(n.S,"Array",{isArray:r(68)})},function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,r){r(117),t.exports=r(0).Date.now},function(t,e,r){var n=r(2);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){r(35),r(119),t.exports=r(0).Array.from},function(t,e,r){"use strict";var n=r(13),i=r(2),o=r(22),a=r(59),s=r(60),u=r(40),c=r(120),l=r(61);i(i.S+i.F*!r(66)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,f,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,_=p>1?arguments[1]:void 0,v=void 0!==_,w=0,m=l(h);if(v&&(_=n(_,p>2?arguments[2]:void 0,2)),null==m||d==Array&&s(m))for(r=new d(e=u(h.length));e>w;w++)c(r,w,v?_(h[w],w):h[w]);else for(f=m.call(h),r=new d;!(i=f.next()).done;w++)c(r,w,v?a(f,_,[i.value,w],!0):i.value);return r.length=w,r}})},function(t,e,r){"use strict";var n=r(5),i=r(19);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){r(122),t.exports=r(0).Object.keys},function(t,e,r){var n=r(22),i=r(27);r(71)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(124),t.exports=r(0).parseFloat},function(t,e,r){var n=r(2),i=r(125);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(t,e,r){var n=r(1).parseFloat,i=r(126).trim;t.exports=1/n(r(72)+"-0")!=-1/0?function(t){var e=i(String(t),3),r=n(e);return 0===r&&"-"==e.charAt(0)?-0:r}:n},function(t,e,r){var n=r(2),i=r(25),o=r(14),a=r(72),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,r){var i={},s=o((function(){return!!a[t]()||"​…"!="​…"[t]()})),u=i[t]=s?e(f):a[t];r&&(i[r]=u),n(n.P+n.F*s,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){},function(t,e,r){var n,i,o,a,s,u,c,l;t.exports=(l=r(16),i=(n=l).lib,o=i.WordArray,a=i.Hasher,s=n.algo,u=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=0;c<80;c++){if(c<16)u[c]=0|t[e+c];else{var l=u[c-3]^u[c-8]^u[c-14]^u[c-16];u[c]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+u[c];f+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),l.SHA1)},function(t,e,r){var n,i,o,a;t.exports=(n=r(16),o=(i=n).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=a.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,u=o.words,c=0;c<r;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},function(t,e,r){
2
+ /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
3
+ !function(t){"use strict";function e(t){for(var e=t.length;--e>=0;)t[e]=0}var r=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),o=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=new Array(576);e(a);var s=new Array(60);e(s);var u=new Array(512);e(u);var c=new Array(256);e(c);var l=new Array(29);e(l);var f,h,d,p=new Array(30);function _(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function v(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(p);var w=function(t){return t<256?u[t]:u[256+(t>>>7)]},m=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=function(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,m(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},b=function(t,e,r){g(t,r[2*e],r[2*e+1])},y=function(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},x=function(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)a=a+r[n-1]<<1,o[n]=a;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=y(o[s]++,s))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},S=function(t){t.bi_valid>8?m(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},A=function(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&E(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!E(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},O=function(t,e,i){var o,a,s,u,f=0;if(0!==t.sym_next)do{o=255&t.pending_buf[t.sym_buf+f++],o+=(255&t.pending_buf[t.sym_buf+f++])<<8,a=t.pending_buf[t.sym_buf+f++],0===o?b(t,a,e):(s=c[a],b(t,s+256+1,e),0!==(u=r[s])&&(a-=l[s],g(t,a,u)),o--,s=w(o),b(t,s,i),0!==(u=n[s])&&(o-=p[s],g(t,o,u)))}while(f<t.sym_next);b(t,256,e)},z=function(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)A(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,A(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,_=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,_++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==_){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,_-=2}while(_>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),x(o,c,t.bl_count)},R=function(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},T=function(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{b(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(b(t,i,t.bl_tree),s--),b(t,16,t.bl_tree),g(t,s-3,2)):s<=10?(b(t,17,t.bl_tree),g(t,s-3,3)):(b(t,18,t.bl_tree),g(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},L=!1,j=function(t,e,r,n){g(t,0+(n?1:0),3),S(t),m(t,r),m(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r},C=function(t){L||(function(){var t,e,o,v,w,m=new Array(16);for(o=0,v=0;v<28;v++)for(l[v]=o,t=0;t<1<<r[v];t++)c[o++]=v;for(c[o-1]=v,w=0,v=0;v<16;v++)for(p[v]=w,t=0;t<1<<n[v];t++)u[w++]=v;for(w>>=7;v<30;v++)for(p[v]=w<<7,t=0;t<1<<n[v]-7;t++)u[256+w++]=v;for(e=0;e<=15;e++)m[e]=0;for(t=0;t<=143;)a[2*t+1]=8,t++,m[8]++;for(;t<=255;)a[2*t+1]=9,t++,m[9]++;for(;t<=279;)a[2*t+1]=7,t++,m[7]++;for(;t<=287;)a[2*t+1]=8,t++,m[8]++;for(x(a,287,m),t=0;t<30;t++)s[2*t+1]=5,s[2*t]=y(t,5);f=new _(a,r,257,286,15),h=new _(s,n,0,30,15),d=new _(new Array(0),i,0,19,7)}(),L=!0),t.l_desc=new v(t.dyn_ltree,f),t.d_desc=new v(t.dyn_dtree,h),t.bl_desc=new v(t.bl_tree,d),t.bi_buf=0,t.bi_valid=0,k(t)},P=j,M=function(t,e,r,n){var i,u,c=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),z(t,t.l_desc),z(t,t.d_desc),c=function(t){var e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),z(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*o[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(u=t.static_len+3+7>>>3)<=i&&(i=u)):i=u=r+5,r+4<=i&&-1!==e?j(t,e,r,n):4===t.strategy||u===i?(g(t,2+(n?1:0),3),O(t,a,s)):(g(t,4+(n?1:0),3),function(t,e,r,n){var i;for(g(t,e-257,5),g(t,r-1,5),g(t,n-4,4),i=0;i<n;i++)g(t,t.bl_tree[2*o[i]+1],3);T(t,t.dyn_ltree,e-1),T(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),O(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&S(t)},U=function(t,e,r){return t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(c[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.sym_next===t.sym_end},I=function(t){g(t,2,3),b(t,256,a),function(t){16===t.bi_valid?(m(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)},N=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},B=new Uint32Array(function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}()),F=function(t,e,r,n){var i=B,o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},D={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Z={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},H=C,q=P,K=M,G=U,Q=I,V=Z.Z_NO_FLUSH,W=Z.Z_PARTIAL_FLUSH,Y=Z.Z_FULL_FLUSH,X=Z.Z_FINISH,$=Z.Z_BLOCK,J=Z.Z_OK,tt=Z.Z_STREAM_END,et=Z.Z_STREAM_ERROR,rt=Z.Z_DATA_ERROR,nt=Z.Z_BUF_ERROR,it=Z.Z_DEFAULT_COMPRESSION,ot=Z.Z_FILTERED,at=Z.Z_HUFFMAN_ONLY,st=Z.Z_RLE,ut=Z.Z_FIXED,ct=Z.Z_UNKNOWN,lt=Z.Z_DEFLATED,ft=262,ht=function(t,e){return t.msg=D[e],e},dt=function(t){return 2*t-(t>4?9:0)},pt=function(t){for(var e=t.length;--e>=0;)t[e]=0},_t=function(t){var e,r,n,i=t.w_size;n=e=t.hash_size;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);n=e=i;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)},vt=function(t,e,r){return(e<<t.hash_shift^r)&t.hash_mask},wt=function(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},mt=function(t,e){K(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,wt(t.strm)},gt=function(t,e){t.pending_buf[t.pending++]=e},bt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},yt=function(t,e,r,n){var i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=N(t.adler,e,i,r):2===t.state.wrap&&(t.adler=F(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},xt=function(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-ft?t.strstart-(t.w_size-ft):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+258,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=258-(h-o),o=h-258,n>a){if(t.match_start=e,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},kt=function(t){var e,r,n,i=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-ft)&&(t.window.set(t.window.subarray(i,i+i-r),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),r+=i),0===t.strm.avail_in)break;if(e=yt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=vt(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=vt(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ft&&0!==t.strm.avail_in)},St=function(t,e){var r,n,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,r>(n=t.strstart-t.block_start)+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&e!==X||e===V||r!==n+t.strm.avail_in))break;a=e===X&&r===n+t.strm.avail_in?1:0,q(t,0,0,a),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,wt(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(yt(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===a);return(s-=t.strm.avail_in)&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==V&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(yt(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,o=(i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i)>t.w_size?t.w_size:i,((n=t.strstart-t.block_start)>=o||(n||e===X)&&e!==V&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=e===X&&0===t.strm.avail_in&&r===n?1:0,q(t,t.block_start,r,a),t.block_start+=r,wt(t.strm)),a?3:1)},Et=function(t,e){for(var r,n;;){if(t.lookahead<ft){if(kt(t),t.lookahead<ft&&e===V)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-ft&&(t.match_length=xt(t,r)),t.match_length>=3)if(n=G(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=vt(t,t.ins_h,t.window[t.strstart+1]);else n=G(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(mt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(mt(t,!1),0===t.strm.avail_out)?1:2},At=function(t,e){for(var r,n,i;;){if(t.lookahead<ft){if(kt(t),t.lookahead<ft&&e===V)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-ft&&(t.match_length=xt(t,r),t.match_length<=5&&(t.strategy===ot||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=G(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(mt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=G(t,0,t.window[t.strstart-1]))&&mt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=G(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(mt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(mt(t,!1),0===t.strm.avail_out)?1:2};function Ot(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}var zt=[new Ot(0,0,0,0,St),new Ot(4,4,8,4,Et),new Ot(4,5,16,8,Et),new Ot(4,6,32,32,Et),new Ot(4,4,16,16,At),new Ot(8,16,32,32,At),new Ot(8,16,128,128,At),new Ot(8,32,128,256,At),new Ot(32,128,258,1024,At),new Ot(32,258,258,4096,At)];function Rt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=lt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),pt(this.dyn_ltree),pt(this.dyn_dtree),pt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),pt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),pt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t)return 1;var e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Lt=function(t){if(Tt(t))return ht(t,et);t.total_in=t.total_out=0,t.data_type=ct;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,H(e),J},jt=function(t){var e,r=Lt(t);return r===J&&((e=t.state).window_size=2*e.w_size,pt(e.head),e.max_lazy_match=zt[e.level].max_lazy,e.good_match=zt[e.level].good_length,e.nice_match=zt[e.level].nice_length,e.max_chain_length=zt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r},Ct=function(t,e,r,n,i,o){if(!t)return et;var a=1;if(e===it&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==lt||n<8||n>15||e<0||e>9||o<0||o>ut||8===n&&1!==a)return ht(t,et);8===n&&(n=9);var s=new Rt;return t.state=s,s.strm=t,s.status=42,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=r,jt(t)},Pt=Ct,Mt=function(t,e){return Tt(t)||2!==t.state.wrap?et:(t.state.gzhead=e,J)},Ut=function(t,e){if(Tt(t)||e>$||e<0)return t?ht(t,et):et;var r=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===r.status&&e!==X)return ht(t,0===t.avail_out?nt:et);var n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(wt(t),0===t.avail_out)return r.last_flush=-1,J}else if(0===t.avail_in&&dt(e)<=dt(n)&&e!==X)return ht(t,nt);if(666===r.status&&0!==t.avail_in)return ht(t,nt);if(42===r.status&&0===r.wrap&&(r.status=113),42===r.status){var i=lt+(r.w_bits-8<<4)<<8;if(i|=(r.strategy>=at||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(i|=32),bt(r,i+=31-i%31),0!==r.strstart&&(bt(r,t.adler>>>16),bt(r,65535&t.adler)),t.adler=1,r.status=113,wt(t),0!==r.pending)return r.last_flush=-1,J}if(57===r.status)if(t.adler=0,gt(r,31),gt(r,139),gt(r,8),r.gzhead)gt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),gt(r,255&r.gzhead.time),gt(r,r.gzhead.time>>8&255),gt(r,r.gzhead.time>>16&255),gt(r,r.gzhead.time>>24&255),gt(r,9===r.level?2:r.strategy>=at||r.level<2?4:0),gt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(gt(r,255&r.gzhead.extra.length),gt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=F(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(gt(r,0),gt(r,0),gt(r,0),gt(r,0),gt(r,0),gt(r,9===r.level?2:r.strategy>=at||r.level<2?4:0),gt(r,3),r.status=113,wt(t),0!==r.pending)return r.last_flush=-1,J;if(69===r.status){if(r.gzhead.extra){for(var o=r.pending,a=(65535&r.gzhead.extra.length)-r.gzindex;r.pending+a>r.pending_buf_size;){var s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>o&&(t.adler=F(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex+=s,wt(t),0!==r.pending)return r.last_flush=-1,J;o=0,a-=s}var u=new Uint8Array(r.gzhead.extra);r.pending_buf.set(u.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending+=a,r.gzhead.hcrc&&r.pending>o&&(t.adler=F(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){var c,l=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>l&&(t.adler=F(t.adler,r.pending_buf,r.pending-l,l)),wt(t),0!==r.pending)return r.last_flush=-1,J;l=0}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,gt(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>l&&(t.adler=F(t.adler,r.pending_buf,r.pending-l,l)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){var f,h=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>h&&(t.adler=F(t.adler,r.pending_buf,r.pending-h,h)),wt(t),0!==r.pending)return r.last_flush=-1,J;h=0}f=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,gt(r,f)}while(0!==f);r.gzhead.hcrc&&r.pending>h&&(t.adler=F(t.adler,r.pending_buf,r.pending-h,h))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(wt(t),0!==r.pending))return r.last_flush=-1,J;gt(r,255&t.adler),gt(r,t.adler>>8&255),t.adler=0}if(r.status=113,wt(t),0!==r.pending)return r.last_flush=-1,J}if(0!==t.avail_in||0!==r.lookahead||e!==V&&666!==r.status){var d=0===r.level?St(r,e):r.strategy===at?function(t,e){for(var r;;){if(0===t.lookahead&&(kt(t),0===t.lookahead)){if(e===V)return 1;break}if(t.match_length=0,r=G(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(mt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(mt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===st?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=258){if(kt(t),t.lookahead<=258&&e===V)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+258;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=258-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=G(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=G(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(mt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(mt(t,!1),0===t.strm.avail_out)?1:2}(r,e):zt[r.level].func(r,e);if(3!==d&&4!==d||(r.status=666),1===d||3===d)return 0===t.avail_out&&(r.last_flush=-1),J;if(2===d&&(e===W?Q(r):e!==$&&(q(r,0,0,!1),e===Y&&(pt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),wt(t),0===t.avail_out))return r.last_flush=-1,J}return e!==X?J:r.wrap<=0?tt:(2===r.wrap?(gt(r,255&t.adler),gt(r,t.adler>>8&255),gt(r,t.adler>>16&255),gt(r,t.adler>>24&255),gt(r,255&t.total_in),gt(r,t.total_in>>8&255),gt(r,t.total_in>>16&255),gt(r,t.total_in>>24&255)):(bt(r,t.adler>>>16),bt(r,65535&t.adler)),wt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?J:tt)},It=function(t){if(Tt(t))return et;var e=t.state.status;return t.state=null,113===e?ht(t,rt):J},Nt=function(t,e){var r=e.length;if(Tt(t))return et;var n=t.state,i=n.wrap;if(2===i||1===i&&42!==n.status||n.lookahead)return et;if(1===i&&(t.adler=N(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(pt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var o=new Uint8Array(n.w_size);o.set(e.subarray(r-n.w_size,r),0),e=o,r=n.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,kt(n);n.lookahead>=3;){var c=n.strstart,l=n.lookahead-2;do{n.ins_h=vt(n,n.ins_h,n.window[c+3-1]),n.prev[c&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=c,c++}while(--l);n.strstart=c,n.lookahead=2,kt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=i,J};function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ft=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},Dt=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==Bt(r))throw new TypeError(r+"must be non-object");for(var n in r)Ft(r,n)&&(t[n]=r[n])}}return t},Zt=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i},Ht=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ht=!1}for(var qt=new Uint8Array(256),Kt=0;Kt<256;Kt++)qt[Kt]=Kt>=252?6:Kt>=248?5:Kt>=240?4:Kt>=224?3:Kt>=192?2:1;qt[254]=qt[254]=1;var Gt=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},Qt=function(t,e){var r,n,i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));var o=new Array(2*i);for(n=0,r=0;r<i;){var a=t[r++];if(a<128)o[n++]=a;else{var s=qt[a];if(s>4)o[n++]=65533,r+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&r<i;)a=a<<6|63&t[r++],s--;s>1?o[n++]=65533:a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|1023&a)}}}return function(t,e){if(e<65534&&t.subarray&&Ht)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}(o,n)},Vt=function(t,e){(e=e||t.length)>t.length&&(e=t.length);for(var r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+qt[t[r]]>e?r:e},Wt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Yt=Object.prototype.toString,Xt=Z.Z_NO_FLUSH,$t=Z.Z_SYNC_FLUSH,Jt=Z.Z_FULL_FLUSH,te=Z.Z_FINISH,ee=Z.Z_OK,re=Z.Z_STREAM_END,ne=Z.Z_DEFAULT_COMPRESSION,ie=Z.Z_DEFAULT_STRATEGY,oe=Z.Z_DEFLATED;function ae(t){this.options=Dt({level:ne,method:oe,chunkSize:16384,windowBits:15,memLevel:8,strategy:ie},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wt,this.strm.avail_out=0;var r=Pt(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==ee)throw new Error(D[r]);if(e.header&&Mt(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?Gt(e.dictionary):"[object ArrayBuffer]"===Yt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=Nt(this.strm,n))!==ee)throw new Error(D[r]);this._dict_set=!0}}function se(t,e){var r=new ae(e);if(r.push(t,!0),r.err)throw r.msg||D[r.err];return r.result}ae.prototype.push=function(t,e){var r,n,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?te:Xt,"string"==typeof t?i.input=Gt(t):"[object ArrayBuffer]"===Yt.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n===$t||n===Jt)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((r=Ut(i,n))===re)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=It(this.strm),this.onEnd(r),this.ended=!0,r===ee;if(0!==i.avail_out){if(n>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},ae.prototype.onData=function(t){this.chunks.push(t)},ae.prototype.onEnd=function(t){t===ee&&(this.result=Zt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ue=ae,ce=se,le=function(t,e){return(e=e||{}).raw=!0,se(t,e)},fe=function(t,e){return(e=e||{}).gzip=!0,se(t,e)},he=16209,de=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,_,v,w,m,g,b,y,x,k,S,E,A=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),i=t.next_out,E=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=A.dmax,u=A.wsize,c=A.whave,l=A.wnext,f=A.window,h=A.hold,d=A.bits,p=A.lencode,_=A.distcode,v=(1<<A.lenbits)-1,w=(1<<A.distbits)-1;t:do{d<15&&(h+=S[r++]<<d,d+=8,h+=S[r++]<<d,d+=8),m=p[h&v];e:for(;;){if(h>>>=g=m>>>24,d-=g,0==(g=m>>>16&255))E[i++]=65535&m;else{if(!(16&g)){if(0==(64&g)){m=p[(65535&m)+(h&(1<<g)-1)];continue e}if(32&g){A.mode=16191;break t}t.msg="invalid literal/length code",A.mode=he;break t}b=65535&m,(g&=15)&&(d<g&&(h+=S[r++]<<d,d+=8),b+=h&(1<<g)-1,h>>>=g,d-=g),d<15&&(h+=S[r++]<<d,d+=8,h+=S[r++]<<d,d+=8),m=_[h&w];r:for(;;){if(h>>>=g=m>>>24,d-=g,!(16&(g=m>>>16&255))){if(0==(64&g)){m=_[(65535&m)+(h&(1<<g)-1)];continue r}t.msg="invalid distance code",A.mode=he;break t}if(y=65535&m,d<(g&=15)&&(h+=S[r++]<<d,(d+=8)<g&&(h+=S[r++]<<d,d+=8)),(y+=h&(1<<g)-1)>s){t.msg="invalid distance too far back",A.mode=he;break t}if(h>>>=g,d-=g,y>(g=i-o)){if((g=y-g)>c&&A.sane){t.msg="invalid distance too far back",A.mode=he;break t}if(x=0,k=f,0===l){if(x+=u-g,g<b){b-=g;do{E[i++]=f[x++]}while(--g);x=i-y,k=E}}else if(l<g){if(x+=u+l-g,(g-=l)<b){b-=g;do{E[i++]=f[x++]}while(--g);if(x=0,l<b){b-=g=l;do{E[i++]=f[x++]}while(--g);x=i-y,k=E}}}else if(x+=l-g,g<b){b-=g;do{E[i++]=f[x++]}while(--g);x=i-y,k=E}for(;b>2;)E[i++]=k[x++],E[i++]=k[x++],E[i++]=k[x++],b-=3;b&&(E[i++]=k[x++],b>1&&(E[i++]=k[x++]))}else{x=i-y;do{E[i++]=E[x++],E[i++]=E[x++],E[i++]=E[x++],b-=3}while(b>2);b&&(E[i++]=E[x++],b>1&&(E[i++]=E[x++]))}break}}break}}while(r<n&&i<a);r-=b=d>>3,h&=(1<<(d-=b<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),A.hold=h,A.bits=d},pe=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),_e=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ve=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),we=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),me=function(t,e,r,n,i,o,a,s){var u,c,l,f,h,d,p,_,v,w=s.bits,m=0,g=0,b=0,y=0,x=0,k=0,S=0,E=0,A=0,O=0,z=null,R=new Uint16Array(16),T=new Uint16Array(16),L=null;for(m=0;m<=15;m++)R[m]=0;for(g=0;g<n;g++)R[e[r+g]]++;for(x=w,y=15;y>=1&&0===R[y];y--);if(x>y&&(x=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<y&&0===R[b];b++);for(x<b&&(x=b),E=1,m=1;m<=15;m++)if(E<<=1,(E-=R[m])<0)return-1;if(E>0&&(0===t||1!==y))return-1;for(T[1]=0,m=1;m<15;m++)T[m+1]=T[m]+R[m];for(g=0;g<n;g++)0!==e[r+g]&&(a[T[e[r+g]]++]=g);if(0===t?(z=L=a,d=20):1===t?(z=pe,L=_e,d=257):(z=ve,L=we,d=0),O=0,g=0,m=b,h=o,k=x,S=0,l=-1,f=(A=1<<x)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=m-S,a[g]+1<d?(_=0,v=a[g]):a[g]>=d?(_=L[a[g]-d],v=z[a[g]-d]):(_=96,v=0),u=1<<m-S,b=c=1<<k;do{i[h+(O>>S)+(c-=u)]=p<<24|_<<16|v|0}while(0!==c);for(u=1<<m-1;O&u;)u>>=1;if(0!==u?(O&=u-1,O+=u):O=0,g++,0==--R[m]){if(m===y)break;m=e[r+a[g]]}if(m>x&&(O&f)!==l){for(0===S&&(S=x),h+=b,E=1<<(k=m-S);k+S<y&&!((E-=R[k+S])<=0);)k++,E<<=1;if(A+=1<<k,1===t&&A>852||2===t&&A>592)return 1;i[l=O&f]=x<<24|k<<16|h-o|0}}return 0!==O&&(i[h+O]=m-S<<24|64<<16|0),s.bits=x,0},ge=Z.Z_FINISH,be=Z.Z_BLOCK,ye=Z.Z_TREES,xe=Z.Z_OK,ke=Z.Z_STREAM_END,Se=Z.Z_NEED_DICT,Ee=Z.Z_STREAM_ERROR,Ae=Z.Z_DATA_ERROR,Oe=Z.Z_MEM_ERROR,ze=Z.Z_BUF_ERROR,Re=Z.Z_DEFLATED,Te=16180,Le=16190,je=16191,Ce=16199,Pe=16200,Me=16209,Ue=function(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)};function Ie(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Ne,Be,Fe=function(t){if(!t)return 1;var e=t.state;return!e||e.strm!==t||e.mode<Te||e.mode>16211?1:0},De=function(t){if(Fe(t))return Ee;var e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Te,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,xe},Ze=function(t){if(Fe(t))return Ee;var e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,De(t)},He=function(t,e){var r;if(Fe(t))return Ee;var n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Ee:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Ze(t))},qe=function(t,e){if(!t)return Ee;var r=new Ie;t.state=r,r.strm=t,r.window=null,r.mode=Te;var n=He(t,e);return n!==xe&&(t.state=null),n},Ke=!0,Ge=function(t){if(Ke){Ne=new Int32Array(512),Be=new Int32Array(32);for(var e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(me(1,t.lens,0,288,Ne,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;me(2,t.lens,0,32,Be,0,t.work,{bits:5}),Ke=!1}t.lencode=Ne,t.lenbits=9,t.distcode=Be,t.distbits=5},Qe=function(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},Ve=Ze,We=qe,Ye=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,_,v,w,m,g,b,y,x,k,S,E,A=0,O=new Uint8Array(4),z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Fe(t)||!t.output||!t.input&&0!==t.avail_in)return Ee;(r=t.state).mode===je&&(r.mode=16192),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,f=s,h=u,k=xe;t:for(;;)switch(r.mode){case Te:if(0===r.wrap){r.mode=16192;break}for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0),c=0,l=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=Me;break}if((15&c)!==Re){t.msg="unknown compression method",r.mode=Me;break}if(l-=4,x=8+(15&(c>>>=4)),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg="invalid window size",r.mode=Me;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&c?16189:je,c=0,l=0;break;case 16181:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.flags=c,(255&r.flags)!==Re){t.msg="unknown compression method",r.mode=Me;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=Me;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0)),c=0,l=0,r.mode=16182;case 16182:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,O[2]=c>>>16&255,O[3]=c>>>24&255,r.check=F(r.check,O,4,0)),c=0,l=0,r.mode=16183;case 16183:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0)),c=0,l=0,r.mode=16184;case 16184:if(1024&r.flags){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+d),x)),512&r.flags&&4&r.wrap&&(r.check=F(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;d=0;do{x=n[o+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&4&r.wrap&&(r.check=F(r.check,n,d,o)),s-=d,o+=d,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;d=0;do{x=n[o+d++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&4&r.wrap&&(r.check=F(r.check,n,d,o)),s-=d,o+=d,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(4&r.wrap&&c!==(65535&r.check)){t.msg="header crc mismatch",r.mode=Me;break}c=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=je;break;case 16189:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}t.adler=r.check=Ue(c),c=0,l=0,r.mode=Le;case Le:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,Se;t.adler=r.check=1,r.mode=je;case je:if(e===be||e===ye)break t;case 16192:if(r.last){c>>>=7&l,l-=7&l,r.mode=16206;break}for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}switch(r.last=1&c,l-=1,3&(c>>>=1)){case 0:r.mode=16193;break;case 1:if(Ge(r),r.mode=Ce,e===ye){c>>>=2,l-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg="invalid block type",r.mode=Me}c>>>=2,l-=2;break;case 16193:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Me;break}if(r.length=65535&c,c=0,l=0,r.mode=16194,e===ye)break t;case 16194:r.mode=16195;case 16195:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;i.set(n.subarray(o,o+d),a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=je;break;case 16196:for(;l<14;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.nlen=257+(31&c),c>>>=5,l-=5,r.ndist=1+(31&c),c>>>=5,l-=5,r.ncode=4+(15&c),c>>>=4,l-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Me;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.lens[z[r.have++]]=7&c,c>>>=3,l-=3}for(;r.have<19;)r.lens[z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},k=me(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,k){t.msg="invalid code lengths set",r.mode=Me;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;w=(A=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(m<16)c>>>=v,l-=v,r.lens[r.have++]=m;else{if(16===m){for(E=v+2;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c>>>=v,l-=v,0===r.have){t.msg="invalid bit length repeat",r.mode=Me;break}x=r.lens[r.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===m){for(E=v+3;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=v,x=0,d=3+(7&(c>>>=v)),c>>>=3,l-=3}else{for(E=v+7;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=v,x=0,d=11+(127&(c>>>=v)),c>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Me;break}for(;d--;)r.lens[r.have++]=x}}if(r.mode===Me)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=Me;break}if(r.lenbits=9,S={bits:r.lenbits},k=me(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,k){t.msg="invalid literal/lengths set",r.mode=Me;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},k=me(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,k){t.msg="invalid distances set",r.mode=Me;break}if(r.mode=Ce,e===ye)break t;case Ce:r.mode=Pe;case Pe:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,de(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,r.mode===je&&(r.back=-1);break}for(r.back=0;w=(A=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(w&&0==(240&w)){for(g=v,b=w,y=m;w=(A=r.lencode[y+((c&(1<<g+b)-1)>>g)])>>>16&255,m=65535&A,!(g+(v=A>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=g,l-=g,r.back+=g}if(c>>>=v,l-=v,r.back+=v,r.length=m,0===w){r.mode=16205;break}if(32&w){r.back=-1,r.mode=je;break}if(64&w){t.msg="invalid literal/length code",r.mode=Me;break}r.extra=15&w,r.mode=16201;case 16201:if(r.extra){for(E=r.extra;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;w=(A=r.distcode[c&(1<<r.distbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(0==(240&w)){for(g=v,b=w,y=m;w=(A=r.distcode[y+((c&(1<<g+b)-1)>>g)])>>>16&255,m=65535&A,!(g+(v=A>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=g,l-=g,r.back+=g}if(c>>>=v,l-=v,r.back+=v,64&w){t.msg="invalid distance code",r.mode=Me;break}r.offset=m,r.extra=15&w,r.mode=16203;case 16203:if(r.extra){for(E=r.extra;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Me;break}r.mode=16204;case 16204:if(0===u)break t;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Me;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),_=r.window}else _=i,p=a-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[a++]=_[p++]}while(--d);0===r.length&&(r.mode=Pe);break;case 16205:if(0===u)break t;i[a++]=r.length,u--,r.mode=Pe;break;case 16206:if(r.wrap){for(;l<32;){if(0===s)break t;s--,c|=n[o++]<<l,l+=8}if(h-=u,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?F(r.check,i,h,a-h):N(r.check,i,h,a-h)),h=u,4&r.wrap&&(r.flags?c:Ue(c))!==r.check){t.msg="incorrect data check",r.mode=Me;break}c=0,l=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(4&r.wrap&&c!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=Me;break}c=0,l=0}r.mode=16208;case 16208:k=ke;break t;case Me:k=Ae;break t;case 16210:return Oe;default:return Ee}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,(r.wsize||h!==t.avail_out&&r.mode<Me&&(r.mode<16206||e!==ge))&&Qe(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?F(r.check,i,h,t.next_out-h):N(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===je?128:0)+(r.mode===Ce||16194===r.mode?256:0),(0===f&&0===h||e===ge)&&k===xe&&(k=ze),k},Xe=function(t){if(Fe(t))return Ee;var e=t.state;return e.window&&(e.window=null),t.state=null,xe},$e=function(t,e){if(Fe(t))return Ee;var r=t.state;return 0==(2&r.wrap)?Ee:(r.head=e,e.done=!1,xe)},Je=function(t,e){var r,n=e.length;return Fe(t)||0!==(r=t.state).wrap&&r.mode!==Le?Ee:r.mode===Le&&N(1,e,n,0)!==r.check?Ae:Qe(t,e,n,n)?(r.mode=16210,Oe):(r.havedict=1,xe)},tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},er=Object.prototype.toString,rr=Z.Z_NO_FLUSH,nr=Z.Z_FINISH,ir=Z.Z_OK,or=Z.Z_STREAM_END,ar=Z.Z_NEED_DICT,sr=Z.Z_STREAM_ERROR,ur=Z.Z_DATA_ERROR,cr=Z.Z_MEM_ERROR;function lr(t){this.options=Dt({chunkSize:65536,windowBits:15,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wt,this.strm.avail_out=0;var r=We(this.strm,e.windowBits);if(r!==ir)throw new Error(D[r]);if(this.header=new tr,$e(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Gt(e.dictionary):"[object ArrayBuffer]"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Je(this.strm,e.dictionary))!==ir))throw new Error(D[r])}function fr(t,e){var r=new lr(e);if(r.push(t),r.err)throw r.msg||D[r.err];return r.result}lr.prototype.push=function(t,e){var r,n,i,o=this.strm,a=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?nr:rr,"[object ArrayBuffer]"===er.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(a),o.next_out=0,o.avail_out=a),(r=Ye(o,n))===ar&&s&&((r=Je(o,s))===ir?r=Ye(o,n):r===ur&&(r=ar));o.avail_in>0&&r===or&&o.state.wrap>0&&0!==t[o.next_in];)Ve(o),r=Ye(o,n);switch(r){case sr:case ur:case ar:case cr:return this.onEnd(r),this.ended=!0,!1}if(i=o.avail_out,o.next_out&&(0===o.avail_out||r===or))if("string"===this.options.to){var u=Vt(o.output,o.next_out),c=o.next_out-u,l=Qt(o.output,u);o.next_out=c,o.avail_out=a-c,c&&o.output.set(o.output.subarray(u,u+c),0),this.onData(l)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(r!==ir||0!==i){if(r===or)return r=Xe(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},lr.prototype.onData=function(t){this.chunks.push(t)},lr.prototype.onEnd=function(t){t===ir&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Zt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var hr=lr,dr=fr,pr=function(t,e){return(e=e||{}).raw=!0,fr(t,e)},_r=fr,vr=ue,wr=ce,mr=le,gr=fe,br=hr,yr=dr,xr=pr,kr=_r,Sr=Z,Er={Deflate:vr,deflate:wr,deflateRaw:mr,gzip:gr,Inflate:br,inflate:yr,inflateRaw:xr,ungzip:kr,constants:Sr};t.Deflate=vr,t.Inflate=br,t.constants=Sr,t.default=Er,t.deflate=wr,t.deflateRaw=mr,t.gzip=gr,t.inflate=yr,t.inflateRaw=xr,t.ungzip=kr,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,r){"use strict";r.r(e);var n=r(23),i=r.n(n);function o(t,e,r,n,o,a,s){try{var u=t[a](s),c=u.value}catch(t){return void r(t)}u.done?e(c):i.a.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new i.a((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}var s=r(4),u=r.n(s),c=r(17),l=r.n(c),f=r(24),h=r.n(f),d=r(12),p=r.n(d);function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"INFO";return this instanceof _?_.instance[t]?_.instance[t]:(this.levels=["TRACE","DEBUG","INFO","WARN","ERROR"],this.currentLevel=this.levels.indexOf(t),void(_.instance[t]=this)):new _(t)}_.instance={},_.getInstance=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"INFO";return _.instance[t]||(_.instance[t]=new _(t)),_.instance[t]},_.prototype.log=function(t,e){this.levels.indexOf(t)>=this.currentLevel&&"undefined"!=typeof console&&(console[t.toLowerCase()]?console[t.toLowerCase()](e):console.log(e))},_.prototype.trace=function(t){this.log("TRACE",t)},_.prototype.debug=function(t){this.log("DEBUG",t)},_.prototype.info=function(t){this.log("INFO",t)},_.prototype.warn=function(t){this.log("WARN",t)},_.prototype.error=function(t){this.log("ERROR",t)};var v=_,w=r(48),m=r.n(w),g=r(73),b=r.n(g),y=r(74),x=r.n(y),k=r(34),S=r.n(k),E=r(32),A=r.n(E),O=r(33),z=r.n(O),R=r(75),T=r.n(R),L=r(76),j=r.n(L),C=r(49),P=r.n(C),M=r(16),U=r.n(M);function I(t,e){var r=void 0!==A.a&&t[z.a]||t["@@iterator"];if(!r){if(l()(t)||(r=function(t,e){if(t){if("string"==typeof t)return N(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?S()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function B(){for(var t=p()().toString(36),e=Math.random().toString(36).substring(2,15),r=[0,0,0,0,0,0,0,0,0,0].map((function(){return Math.random().toString(36).charAt(2)})).join(""),n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.join("-")+"-"+t+"-"+e+"-"+r,s=btoa(encodeURIComponent(a));return s}function F(t,e){"function"==typeof requestIdleCallback?requestIdleCallback(t,{timeout:e||1e3}):setTimeout(t,0)}function D(t){return t.requiredFields.some((function(e){return void 0===t[e]}))}function Z(t){return"[object Object]"===Object.prototype.toString.call(t)}function H(t,e,r){var n=t+j()(function(t){for(var e=[],r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return U.a.lib.WordArray.create(e,t.length)}(r)).toString();return P()(n,e).toString()}function q(t,e,r){var n="appId="+t+"@h5&timestamp="+r;return P()(n,e).toString()}function K(t){try{return btoa(String.fromCharCode.apply(null,t))}catch(t){return""}}function G(t){return b()(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function Q(){var t=navigator.userAgent,e=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1,r=t.indexOf("Edge")>-1&&!e,n=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(e){new RegExp("MSIE (\\d+\\.\\d+);").test(t);var i=x()(RegExp.$1);return 7==i?7:8==i?8:9==i?9:10==i?10:6}return r?"edge":n?11:-1}function V(){var t=Q();return 11===t||-1===t||"edge"===t}var W="pv",Y="jsError",X="whiteScreen",$="request",J="resource",tt="performance",et={upload:{pre:"https://pre-apm-gateway.aliyuncs.com/log/upload",prod:"https://apm-gateway.aliyuncs.com/log/upload"},rate:{pre:"https://pre-setting-emas.aliyuncs.com/api/v1/sample",prod:"https://setting-emas.aliyuncs.com/api/v1/sample"}};function rt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new m.a((function(n,i){var o=new XMLHttpRequest;for(var a in o.open("POST",t,!0),r)r.hasOwnProperty(a)&&o.setRequestHeader(a,r[a]);o.onreadystatechange=function(){4===o.readyState&&(200===o.status?n(!0):i(new Error("Request failed with status ".concat(o.status,": ").concat(o.statusText))))},o.onerror=function(){i(new Error("Network error"))},o.send(e)}))}function nt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=new Blob([e],{type:"application/octet-stream"}),i=G(r),o=i?"".concat(t,"?").concat(i):t;return navigator.sendBeacon(o,n)}function it(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new m.a((function(n,i){var o=new XMLHttpRequest,a=G(e),s=a?"".concat(t,"?").concat(a):t;for(var u in o.open("GET",s,!0),r)r.hasOwnProperty(u)&&o.setRequestHeader(u,r[u]);o.onreadystatechange=function(){if(4===o.readyState)if(200==o.status)if(o.responseText)try{var t=JSON.parse(o.responseText);n(t)}catch(t){i(new Error("json parse error"))}else i(new Error("request failed no responseText"));else i(new Error("Request failed with status ".concat(o.status,": ").concat(o.statusText)))},o.onerror=function(){i(new Error("Network error"))},o.send()}))}function ot(t,e){return at.apply(this,arguments)}function at(){return(at=a(u.a.mark((function t(e,r){var n,i,o,a;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=et.upload.prod,i=r.appKey,o=r.appSecret,t.prev=2,!navigator.sendBeacon){t.next=7;break}a=nt(n,e,{compression:"gzip",appKey:i,algorithm:"EMAS-HMAC-V1",signature:H(i,o,e)}),t.next=10;break;case 7:return t.next=9,rt(n,e,{"Content-Type":"application/octet-stream","x-apm-compression":"gzip","x-apm-app-key":i,"x-apm-signature-algorithm":"EMAS-HMAC-V1","x-apm-signature":H(i,o,e)});case 9:a=t.sent;case 10:return t.abrupt("return",a);case 13:return t.prev=13,t.t0=t.catch(2),t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})))).apply(this,arguments)}function st(t,e){return ut.apply(this,arguments)}function ut(){return(ut=a(u.a.mark((function t(e,r){var n,i,o,a,s,c;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=et.rate.prod,i=p()(),o=q(e,r,i),t.prev=3,t.next=6,it(n,{appId:e+"@h5",timestamp:i,sign:o});case 6:if(a=t.sent,c=(s=a||{}).data,!s.success||!c){t.next=12;break}return t.abrupt("return",{success:!0,data:c});case 12:return t.abrupt("return",{success:!1});case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(3),t.abrupt("return",{success:!1});case 18:case"end":return t.stop()}}),t,null,[[3,15]])})))).apply(this,arguments)}var ct=r(47),lt=r.n(ct),ft=r(9),ht=r.n(ft),dt=r(31),pt=r.n(dt);function _t(t){return(_t="function"==typeof ht.a&&"symbol"==typeof pt.a?function(t){return typeof t}:function(t){return t&&"function"==typeof ht.a&&t.constructor===ht.a&&t!==ht.a.prototype?"symbol":typeof t})(t)}var vt=r(77),wt=r.n(vt);function mt(t){var e=function(t,e){if("object"!=_t(t)||!t)return t;var r=t[wt.a];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_t(e)?e:e+""}function gt(t,e,r){return(e=mt(e))in t?lt()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bt(t,e){var r=void 0!==A.a&&t[z.a]||t["@@iterator"];if(!r){if(l()(t)||(r=function(t,e){if(t){if("string"==typeof t)return yt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?S()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function xt(){return this instanceof xt?xt.instance?xt.instance:(this.retryCount=0,this.appKey="",this.appSecret="",this.rateReady=!1,this.fullSampleUsers=[],this.sampleRate=0,this.rules={},this._logger=void 0,void(xt.instance=this)):new xt}xt.instance=null,xt.getInstance=function(t){return xt.instance||(xt.instance=new xt,xt.instance._logger=t),xt.instance},xt.prototype.init=function(t,e){t&&e&&(this._logger.debug("emas-apm","rate module init...."),this.appKey=t,this.appSecret=e,this._getRate())},xt.prototype.calcSample=function(t,e,r){var n=this._filter(t,e,r);return n<=0?0:n>=1?1:Math.random()<=n?n:0},xt.prototype._filter=function(t,e,r){if(this._logger.debug("emas-apm","sample rate filter"),function(t,e){if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++)if(t[r]===e)return!0;return!1}(this.fullSampleUsers,r.userId))return this._logger.debug("emas-apm","current userId is in full sample user."),1;var n=this.rules[t];if(n){var i=n.enable,o=void 0!==i&&i,a=n.sampleRate,s=n.conditional;if(o){var u,c=bt(void 0===s?[]:s);try{for(c.s();!(u=c.n()).done;){var l=u.value;if(this._evaluateCondition(l.filter,e))return this._logger.debug("emas-apm","event=[".concat(t,"] aciton is hit, rate = ").concat(l.sampleRate)),l.sampleRate}}catch(t){c.e(t)}finally{c.f()}return this._logger.debug("emas-apm","event=[".concat(t,"] action is not hit, use current event rule base sample rate. rate = ").concat(a)),a}return this._logger.debug("emas-apm","event=[".concat(t,"] is not enable")),0}return this._logger.debug("emas-apm","no rules match event=[".concat(t,"]. use base sample rate.")),this.sampleRate},xt.prototype._evaluateCondition=function(t,e){var r=this,n=t||{},i=n.op,o=void 0===i?"":i,a=n.filters,s=void 0===a?[]:a;switch(o){case"and":return s.every((function(t){return r._evaluateCondition(t,e)}));case"or":return s.some((function(t){return r._evaluateCondition(t,e)}));case"=":case"!=":case"in":case"not_in":case">":case">=":case"<":case"<=":case"regex":case"not_regex":return this._operation(t,e);default:return!1}},xt.prototype._operation=function(t,e){var r=t.op,n=t.values,i=void 0===n?[]:n,o=t.key,a=function(t,e){var r,n=t,i=I(e.split("."));try{for(i.s();!(r=i.n()).done;){var o=r.value;if(void 0===n[o])return;n=n[o]}}catch(t){i.e(t)}finally{i.f()}return n}(e,void 0===o?"":o);switch(r){case"=":return a==i[0];case"!=":return a!=i[0];case"in":return i.some((function(t){return a===t}));case"not_in":return i.every((function(t){return a!==t}));case">":return a>i[0];case">=":return a>=i[0];case"<":return a<i[0];case"<=":return a<=i[0];case"regex":try{return new RegExp(i[0]).test(a)}catch(t){return!1}case"not_regex":try{return!new RegExp(i[0]).test(a)}catch(t){return!1}default:return!1}},xt.prototype._getRate=a(u.a.mark((function t(){var e,r,n,i,o,a,s,c,l,f,h,d,p=this;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._logger.debug("emas-apm","begin to get sample rate......"),t.next=3,st(this.appKey,this.appSecret);case 3:if(e=t.sent,r=e.success,n=e.data,r){for(this._logger.debug("emas-apm","get sample rate success"),i=n.sampleRate,o=n.fullSampleUsers,a=void 0===o?[]:o,s=n.rules,c=void 0===s?[]:s,this.fullSampleUsers=a,this.sampleRate=i,l=0;l<c.length;l++)f=c[l],h=(f||{}).eventId,(d=void 0===h?"":h)&&(this.rules[d]=f);this._finishCallBack()}else this._logger.debug("emas-apm","get sample rate failed"),this.retryCount<3?setTimeout((function(){p.retryCount++,p._logger.debug("emas-apm","retry get sample rate. -----".concat(p.retryCount)),p._getRate()}),5e3):(this._logger.debug("emas-apm","use local sample rate"),this._safeguard());case 7:case"end":return t.stop()}}),t,this)}))),xt.prototype._finishCallBack=function(){var t;this.rateReady=!0;try{t=new Event("EMAS_RATE_NOTIC_KEY")}catch(e){11===Q()&&(t=document.createEvent("Event")).initEvent("EMAS_RATE_NOTIC_KEY",!1,!1)}t&&window.dispatchEvent(t)},xt.prototype._safeguard=function(){this._logger.debug("emas-apm","get sample rate by safeguard"),this.fullSampleUsers=[],this.sampleRate=1,this.rules=gt(gt(gt(gt(gt({},Y,{eventId:"jsError",conditional:[],enable:!0,sampleRate:1}),X,{eventId:"whiteScreen",conditional:[],enable:!0,sampleRate:1}),$,{eventId:"request",conditional:[],enable:!0,sampleRate:.2}),J,{eventId:"resource",conditional:[],enable:!0,sampleRate:.2}),tt,{eventId:"performance",conditional:[],enable:!0,sampleRate:.1}),this._finishCallBack()};var kt=xt;function St(t){var e=this;if(V()){if(!(this instanceof St))return new St(t);var r=t||{},n=r.appKey,i=r.appSecret,o=r.appVersion,a=r.channel,s=r.userNick,u=r.userId,c=r.loggerLevel,f=void 0===c?"online":c,h=r.requiredFields,d=void 0===h?[]:h;if(this._logger=v.getInstance("debug"===f?"DEBUG":"WARN"),this.printLog={debug:function(t,r){e._logger.debug("[".concat(t,"]: ").concat(r))},info:function(t,r){e._logger.info("[".concat(t,"]: ").concat(r))},warn:function(t,r){e._logger.warn("[".concat(t,"]: ").concat(r))},error:function(t,r){e._logger.error("[".concat(t,"]: ").concat(r))}},!n||!i)throw this.printLog.error("emas-apm","AppKey and AppSecret cannot be null. Please check the parameters."),new Error("AppKey and AppSecret cannot be null. Please check the parameters.");var p=[];d&&l()(d)&&d.length>0&&(this.printLog.debug("emas-apm","setting requiredFields=".concat(d)),p=d),this._appConfig={appKey:n,appSecret:i,appVersion:o,channel:a,userNick:s,userId:u,requiredFields:p},this._errorQueryRetryCount=0,this._rate=kt.getInstance(this.printLog),this._rate.init(this._appConfig.appKey,this._appConfig.appSecret),this._reqQueue=[],this._rateQueue=[],this._offlineQueue=[],this._errorQueue=[],this._plugins={};var _=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(_){_.addEventListener("change",(function(){navigator.onLine&&e._offlineQueue.length>0&&(e.printLog.debug("emas-apm","network changed upload offline queue log"),e._offlineQueue.forEach((function(t){F((function(){e.send(t)}))})),e._offlineQueue=[])}))}window.addEventListener("beforeunload",(function(){e._beforeunload()})),window.addEventListener("EMAS_RATE_NOTIC_KEY",(function(){e.printLog.debug("emas-apm","sample rate is ready"),e._rateQueue.forEach((function(t){e.log.apply(e,t)})),e._rateQueue=[]})),this._watchErrorTimer=setInterval((function(){e._errorQueue.length>0&&(e._errorQueryRetryCount++,e.printLog.debug("emas-apm","retry error logs in error queue. -----".concat(e._errorQueryRetryCount)),e._errorQueue.forEach((function(t){e.send(t)})),e._errorQueue=[],e._errorQueryRetryCount>=5&&(e.printLog.debug("emas-apm","over max retry counts, end error logs retry"),clearInterval(e._watchErrorTimer),e._watchErrorTimer=void 0))}),5e3),this._uploadCache()}else console.info('"APM SDK does not support the current browser.')}St.prototype.setConfig=function(t,e){var r=this,n={};if(void 0!==e?n[t]=e:n=t,n.appKey&&delete n.appKey,n.appSecret&&delete n.appSecret,!function t(e,r){if(void 0===e||void 0===r)return!1;if(!Z(e)||!Z(r))return!1;for(var n in e)if(Z(e[n])){if(!t(e[n],r[n]))return!1}else if(e[n]!==r[n])return!1;return!0}(n,this._appConfig)){for(var i in n)Z(n[i])?this._appConfig[i]=assign(this._appConfig[i]||{},n[i]):this._appConfig[i]=n[i];D(this._appConfig)||(this.printLog.debug("emas-apm","required field is ready, start send queue log"),this._reqQueue.forEach((function(t){r.log.apply(r,t)})),this._reqQueue=[])}},St.prototype.getInnerDomains=function(){var t=[];for(var e in et)if(et.hasOwnProperty(e)){var r=et[e];for(var n in r)r.hasOwnProperty(n)&&t.push(r[n])}return t},St.prototype.log=function(t,e){if(this.printLog.debug("emas-apm","EMAS_APM LOG eventType:".concat(t,"; eventData:").concat(h()(e))),D(this._appConfig))this.printLog.debug("emas-apm","required field not ready"),this._reqQueue.push([t,e]),this._reqQueue.length>500&&this._reqQueue.shift();else if(this._rate.rateReady||t===W){var n=(new T.a).getResult(),i=n.browser,o=n.device,a=n.os,s=this._appConfig,u=s.appKey,c=s.appSecret,l=s.appVersion,f=s.channel,d=s.userNick,_=s.userId,v={platform:"h5",protocolVersion:"1.0.0",sessionId:B(u,c),uuid:B(t),sdk:{name:"mini",version:"1.0.0"},app:{version:l,channel:f},device:{os:a.name,version:a.version||i.version,model:o.model,language:navigator.language,resolution:"".concat(window.screen.width,"x").concat(window.screen.height)},user:{nick:d,id:_},eventTime:e.eventTime||p()(),clientTime:p()(),uri:e.uri||location.href,network:{access:(g=navigator.connection||navigator.mozConnection||navigator.webkitConnection,g?{effectiveType:g.effectiveType,downlink:g.downlink,rtt:g.rtt,saveData:g.saveData}:{}).effectiveType},eventId:t,payload:e};if(t!==W){var w=this._rate.calcSample(t,v,this._appConfig);if(this.printLog.debug("emas-apm","filter by sample rate. rate=[".concat(w,"]")),w<=0)return void this.printLog.debug("emas-apm","log not upload");v.sampleRate=w}this.printLog.debug("emas-apm","log payload: ".concat(h()(v)));var m=function(t){var e;try{e=h()(t)}catch(t){e=""}return r(132).gzip(e)}(v);this.send(m)}else this.printLog.debug("emas-apm","sample rate is not ready"),this._rateQueue.push([t,e]);var g},St.prototype.send=function(){var t=a(u.a.mark((function t(e){return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.printLog.debug("emas-apm","begin send log....."),!navigator.onLine){t.next=9;break}return this.printLog.debug("emas-apm","begin request log....."),t.next=5,ot(e,this._appConfig);case 5:t.sent?this.printLog.debug("emas-apm","request log success"):(this.printLog.debug("emas-apm","request log failed log to error cache"),this._errorQueue.push(e),this._errorQueue.length>100&&this._errorQueue.shift()),t.next=12;break;case 9:this.printLog.debug("emas-apm","network offline log to offline cache"),this._offlineQueue.push(e),this._offlineQueue.length>100&&this._offlineQueue.shift();case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),St.prototype.addPlugin=function(t,e){var r=this;if(V())return"[object Array]"===Object.prototype.toString.call(t)?t.map((function(t){if("[object Array]"===Object.prototype.toString.call(t)){var e=t[0],n=t[1];return r._plugins[e]||(r._plugins[e]=new e(r,n))}return r._plugins[t]||(r._plugins[t]=new t(r))})):this._plugins[t]||(this._plugins[t]=new t(this,e));console.info('"APM SDK does not support the current browser.')},St.prototype._beforeunload=function(){this._watchErrorTimer&&clearInterval(this._watchErrorTimer);var t=[];this._offlineQueue.forEach((function(e){if(e instanceof Uint8Array){var r=K(e);r&&t.push(r)}})),this._errorQueue.forEach((function(e){if(e instanceof Uint8Array){var r=K(e);r&&t.push(r)}}));var e=t.join("|");try{this.printLog.debug("emas-apm","save log cache : ".concat(e)),localStorage.setItem("EMAS_APM_REQUEST",e)}catch(t){}},St.prototype._uploadCache=function(){var t=this;this.printLog.debug("emas-apm","upload cache......"),F((function(){var e=localStorage.getItem("EMAS_APM_REQUEST");e&&(e.split("|").forEach((function(e){"string"==typeof e&&t.send(function(t){for(var e=atob(t),r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n}(e))})),localStorage.removeItem("EMAS_APM_REQUEST"))}))},St.prototype.__testError=function(){St.prototype.__testError2()},St.prototype.__testError2=function(){throw new Error("test error")};e.default=St}]);
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=78)}([function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(1),i=r(0),o=r(11),a=r(8),s=r(9),u=function(t,e,r){var c,l,f,h=t&u.F,d=t&u.G,p=t&u.S,_=t&u.P,v=t&u.B,w=t&u.W,g=d?i:i[e]||(i[e]={}),b=g.prototype,m=d?n:p?n[e]:(n[e]||{}).prototype;for(c in d&&(r=e),r)(l=!h&&m&&void 0!==m[c])&&s(g,c)||(f=l?m[c]:r[c],g[c]=d&&"function"!=typeof m[c]?r[c]:v&&l?o(f,n):w&&m[c]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):_&&"function"==typeof f?o(Function.call,f):f,_&&((g.virtual||(g.virtual={}))[c]=f,t&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(33)("wks"),i=r(22),o=r(1).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){var n=r(5),i=r(49),o=r(29),a=Object.defineProperty;e.f=r(7)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(12)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(4),i=r(14);t.exports=r(7)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){t.exports=r(27)},function(t,e,r){var n=r(20);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(84),i=r(26);t.exports=function(t){return n(i(t))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!0},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(26);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports={}},function(t,e,r){(function(e){var n;t.exports=(n=n||function(t,n){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=r(135)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),s={},u=s.lib={},c=u.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=u.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(o());return new l.init(e,t)}}),f=s.enc={},h=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(r,e/2)}},d=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(r,e)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},_=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,c=t.min(4*u,o);if(u){for(var f=0;f<u;f+=a)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=c}return new l.init(r,c)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(u.Hasher=_.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new v.HMAC.init(t,r).finalize(e)}}}),s.algo={});return s}(Math),n)}).call(this,r(134))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(4).f,i=r(9),o=r(3)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){e.f=r(3)},function(t,e,r){var n=r(51),i=r(38);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){r(79);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(6),i=r(1).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(80)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){var n=r(32),i=r(58);function o(e){return t.exports=o="function"==typeof n&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof n&&t.constructor===n&&t!==n.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){r(81),r(57),r(89),r(90),t.exports=r(0).Symbol},function(t,e,r){var n=r(0),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(15)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(1),i=r(0),o=r(15),a=r(24),s=r(4).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,r){var n=r(36),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(33)("keys"),i=r(22);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(5),i=r(87),o=r(38),a=r(37)("IE_PROTO"),s=function(){},u=function(){var t,e=r(28)("iframe"),n=o.length;for(e.style.display="none",r(54).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=u(),void 0===e?r:i(r,e)}},function(t,e,r){"use strict";var n=r(91)(!0);r(59)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){r(57),r(41),r(61),r(103),r(111),r(112),t.exports=r(0).Promise},function(t,e,r){"use strict";var n=r(20);function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},function(t,e,r){var n=r(42);function i(t,e,r,i,o,a,s){try{var u=t[a](s),c=u.value}catch(t){return void r(t)}u.done?e(c):n.resolve(c).then(i,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new n((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(113)},function(t,e,r){t.exports=r(116)},function(t,e,r){"use strict";var n=r(74),i=r(75),o=r(76),a=r(45),s=r(10),u=r(21);s(e,"__esModule",{value:!0}),e.apmSign=function(t,e,r){var n=t+(0,p.default)(function(t){for(var e=[],r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return v.default.lib.WordArray.create(e,t.length)}(r)).toString();return(0,_.default)(n,e).toString()},e.arrayIncludes=function(t,e){if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++)if(t[r]===e)return!0;return!1},e.base64ToUint8Array=function(t){for(var e=atob(t),r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n},e.buildQueryString=function(t){return(0,f.default)(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")},e.canRun=function(){var t=b();return 11===t||-1===t||"edge"===t},e.genUniqueId=function(){for(var t=(0,c.default)().toString(36),e=Math.random().toString(36).substring(2,15),r=[0,0,0,0,0,0,0,0,0,0].map((function(){return Math.random().toString(36).charAt(2)})).join(""),n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.join("-")+"-"+t+"-"+e+"-"+r,s=btoa(encodeURIComponent(a));return s},e.getIEVersion=b,e.getNetworkInfo=function(){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return t?{effectiveType:t.effectiveType,downlink:t.downlink,rtt:t.rtt,saveData:t.saveData}:{}},e.getUAInfo=function(){return(new d.default).getResult()},e.getValueByPath=function(t,e){var r,s=e.split("."),u=t,c=function(t,e){var r=void 0!==i&&t[o]||t["@@iterator"];if(!r){if(a(t)||(r=function(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?n(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var s=0,u=function(){};return{s:u,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,f=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return l=t.done,t},e:function(t){f=!0,c=t},f:function(){try{l||null==r.return||r.return()}finally{if(f)throw c}}}}(s);try{for(c.s();!(r=c.n()).done;){var l=r.value;if(void 0===u[l])return;u=u[l]}}catch(t){c.e(t)}finally{c.f()}return u},e.gzipEncode=function(t){var e;try{e=(0,l.default)(t)}catch(t){e=""}return r(139).gzip(e)},e.isInObjectInclude=function t(e,r){if(void 0===e||void 0===r)return!1;if(!g(e)||!g(r))return!1;for(var n in e)if(g(e[n])){if(!t(e[n],r[n]))return!1}else if(e[n]!==r[n])return!1;return!0},e.isObject=g,e.isRequiredFieldNotReady=function(t){return t.requiredFields.some((function(e){return void 0===t[e]}))},e.reqIdleCallback=function(t,e){"function"==typeof requestIdleCallback?requestIdleCallback(t,{timeout:e||1e3}):setTimeout(t,0)},e.sampleSign=function(t,e,r){var n="appId="+t+"@h5&timestamp="+r;return(0,_.default)(n,e).toString()},e.uint8ArrayToBase64=function(t){try{return btoa(String.fromCharCode.apply(null,t))}catch(t){return""}};var c=u(r(46)),l=u(r(72)),f=u(r(123)),h=u(r(126)),d=u(r(131)),p=u(r(133)),_=u(r(136)),v=u(r(19));function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(){var t=navigator.userAgent,e=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1,r=t.indexOf("Edge")>-1&&!e,n=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(e){new RegExp("MSIE (\\d+\\.\\d+);").test(t);var i=(0,h.default)(RegExp.$1);return 7==i?7:8==i?8:9==i?9:10==i?10:6}return r?"edge":n?11:-1}},function(t,e,r){"use strict";r(10)(e,"__esModule",{value:!0}),e.RATE_RETRY_INTERVAL=e.RATE_MAX_RETRY_COUNT=e.MAX_REQ_QUEUE_LENGTH=e.MAX_ERROR_QUEUE=e.MAX_CACHE_QUEUE=e.LOG_ERROR_RETRY_INTERVAL=e.LOG_ERROR_MAX_RETRY_COUNT=e.EVENTID=e.EMAS_RATE_NOTIC_KEY=e.EMAS_APM_WARN_LEVEL=e.EMAS_APM_VERSION=e.EMAS_APM_REQUEST_LOCALSTORAGE_KEY=e.EMAS_APM_PROTOCOL_VERSION=e.EMAS_APM_LOG_KEY=e.EMAS_APM_ENV=e.EMAS_APM_DEBUG_LEVEL=void 0;e.EMAS_APM_VERSION="1.0.0",e.EMAS_APM_PROTOCOL_VERSION="1.0.0",e.EMAS_APM_ENV="prod",e.EMAS_APM_DEBUG_LEVEL="DEBUG",e.EMAS_APM_WARN_LEVEL="WARN",e.EMAS_APM_LOG_KEY="emas-apm",e.MAX_CACHE_QUEUE=100,e.MAX_ERROR_QUEUE=100,e.MAX_REQ_QUEUE_LENGTH=500,e.EMAS_APM_REQUEST_LOCALSTORAGE_KEY="EMAS_APM_REQUEST",e.EMAS_RATE_NOTIC_KEY="EMAS_RATE_NOTIC_KEY",e.RATE_MAX_RETRY_COUNT=3,e.RATE_RETRY_INTERVAL=5e3,e.LOG_ERROR_MAX_RETRY_COUNT=5,e.LOG_ERROR_RETRY_INTERVAL=5e3,e.EVENTID={pv:"pv",jsError:"jsError",whiteScreen:"whiteScreen",request:"request",resource:"resource",performance:"performance"}},function(t,e,r){t.exports=!r(7)&&!r(12)((function(){return 7!=Object.defineProperty(r(28)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){t.exports=r(8)},function(t,e,r){var n=r(9),i=r(13),o=r(85)(!1),a=r(37)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(16);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(1).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(51),i=r(38).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(39),i=r(14),o=r(13),a=r(29),s=r(9),u=r(49),c=Object.getOwnPropertyDescriptor;e.f=r(7)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e){},function(t,e,r){r(41),r(61),t.exports=r(24).f("iterator")},function(t,e,r){"use strict";var n=r(15),i=r(2),o=r(50),a=r(8),s=r(18),u=r(92),c=r(23),l=r(60),f=r(3)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,p,_,v,w){u(r,e,p);var g,b,m,y=function(t){if(!h&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",E="values"==_,k=!1,A=t.prototype,S=A[f]||A["@@iterator"]||_&&A[_],O=S||y(_),R=_?E?y("entries"):O:void 0,M="Array"==e&&A.entries||S;if(M&&(m=l(M.call(new t)))!==Object.prototype&&m.next&&(c(m,x,!0),n||"function"==typeof m[f]||a(m,f,d)),E&&S&&"values"!==S.name&&(k=!0,O=function(){return S.call(this)}),n&&!w||!h&&!k&&A[f]||a(A,f,O),s[e]=O,s[x]=d,_)if(g={values:E?O:y("values"),keys:v?O:y("keys"),entries:R},w)for(b in g)b in A||o(A,b,g[b]);else i(i.P+i.F*(h||k),e,g);return g}},function(t,e,r){var n=r(9),i=r(17),o=r(37)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){r(93);for(var n=r(1),i=r(8),o=r(18),a=r(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e,r){var n=r(2),i=r(0),o=r(12);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},function(t,e,r){var n=r(16),i=r(3)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,r){var n=r(5);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(18),i=r(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(63),i=r(3)("iterator"),o=r(18);t.exports=r(0).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(5),i=r(20),o=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(11),s=r(106),u=r(54),c=r(28),l=r(1),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,_=l.Dispatch,v=0,w={},g=function(){var t=+this;if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},b=function(t){g.call(t.data)};h&&d||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++v]=function(){s("function"==typeof t?t:Function(t),e)},n(v),v},d=function(t){delete w[t]},"process"==r(16)(f)?n=function(t){f.nextTick(a(g,t,1))}:_&&_.now?n=function(t){_.now(a(g,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:h,clear:d}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(5),i=r(6),o=r(43);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e,r){t.exports=r(115)},function(t,e,r){"use strict";var n=r(10),i=r(21);n(e,"__esModule",{value:!0}),e.EMAS_APM_SERVERS=void 0,e.getRate=function(t,e){return v.apply(this,arguments)},e.uploadLog=function(t,e){return _.apply(this,arguments)};var o=i(r(30)),a=i(r(44)),s=i(r(119)),u=i(r(46)),c=r(47),l=r(48),f=e.EMAS_APM_SERVERS={upload:{pre:"https://pre-apm-gateway.aliyuncs.com/log/upload",prod:"https://apm-gateway.aliyuncs.com/log/upload"},rate:{pre:"https://pre-setting-emas.aliyuncs.com/api/v1/sample",prod:"https://setting-emas.aliyuncs.com/api/v1/sample"}};function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new s.default((function(n,i){var o=new XMLHttpRequest;for(var a in o.open("POST",t,!0),r)r.hasOwnProperty(a)&&o.setRequestHeader(a,r[a]);o.onreadystatechange=function(){4===o.readyState&&(200===o.status?n(!0):i(new Error("Request failed with status ".concat(o.status,": ").concat(o.statusText))))},o.onerror=function(){i(new Error("Network error"))},o.send(e)}))}function d(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=new Blob([e],{type:"application/octet-stream"}),i=(0,c.buildQueryString)(r),o=i?"".concat(t,"?").concat(i):t;return navigator.sendBeacon(o,n)}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new s.default((function(n,i){var o=new XMLHttpRequest,a=(0,c.buildQueryString)(e),s=a?"".concat(t,"?").concat(a):t;for(var u in o.open("GET",s,!0),r)r.hasOwnProperty(u)&&o.setRequestHeader(u,r[u]);o.onreadystatechange=function(){if(4===o.readyState)if(200==o.status)if(o.responseText)try{var t=JSON.parse(o.responseText);n(t)}catch(t){i(new Error("json parse error"))}else i(new Error("request failed no responseText"));else i(new Error("Request failed with status ".concat(o.status,": ").concat(o.statusText)))},o.onerror=function(){i(new Error("Network error"))},o.send()}))}function _(){return(_=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=f.upload[l.EMAS_APM_ENV],i=r.appKey,a=r.appSecret,t.prev=2,!navigator.sendBeacon){t.next=7;break}s=d(n,e,{compression:"gzip",appKey:i,algorithm:"EMAS-HMAC-V1",signature:(0,c.apmSign)(i,a,e)}),t.next=10;break;case 7:return t.next=9,h(n,e,{"Content-Type":"application/octet-stream","x-apm-compression":"gzip","x-apm-app-key":i,"x-apm-signature-algorithm":"EMAS-HMAC-V1","x-apm-signature":(0,c.apmSign)(i,a,e)});case 9:s=t.sent;case 10:return t.abrupt("return",s);case 13:return t.prev=13,t.t0=t.catch(2),t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})))).apply(this,arguments)}function v(){return(v=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,s,h,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.rate[l.EMAS_APM_ENV],i=(0,u.default)(),a=(0,c.sampleSign)(e,r,i),t.prev=3,t.next=6,p(n,{appId:e+"@h5",timestamp:i,sign:a});case 6:if(s=t.sent,d=(h=s||{}).data,!h.success||!d){t.next=12;break}return t.abrupt("return",{success:!0,data:d});case 12:return t.abrupt("return",{success:!1});case 13:t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(3),t.abrupt("return",{success:!1});case 18:case"end":return t.stop()}}),t,null,[[3,15]])})))).apply(this,arguments)}},function(t,e,r){t.exports=r(120)},function(t,e,r){t.exports=r(32)},function(t,e,r){t.exports=r(58)},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,r){"use strict";var n=r(10),i=r(21);n(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(30)),a=i(r(44)),s=i(r(45)),u=i(r(72)),c=i(r(46)),l=i(r(118)),f=r(73),h=i(r(140)),d=r(48),p=r(47);function _(t){var e=this;if((0,p.canRun)()){if(!(this instanceof _))return new _(t);var r=t||{},n=r.appKey,i=r.appSecret,o=r.appVersion,a=r.channel,u=r.userNick,c=r.userId,f=r.loggerLevel,v=void 0===f?"online":f,w=r.requiredFields,g=void 0===w?[]:w;if(this._logger=l.default.getInstance("debug"===v?d.EMAS_APM_DEBUG_LEVEL:d.EMAS_APM_WARN_LEVEL),this.printLog={debug:function(t,r){e._logger.debug("[".concat(t,"]: ").concat(r))},info:function(t,r){e._logger.info("[".concat(t,"]: ").concat(r))},warn:function(t,r){e._logger.warn("[".concat(t,"]: ").concat(r))},error:function(t,r){e._logger.error("[".concat(t,"]: ").concat(r))}},!n||!i)throw this.printLog.error(d.EMAS_APM_LOG_KEY,"AppKey and AppSecret cannot be null. Please check the parameters."),new Error("AppKey and AppSecret cannot be null. Please check the parameters.");var b=[];g&&(0,s.default)(g)&&g.length>0&&(this.printLog.debug(d.EMAS_APM_LOG_KEY,"setting requiredFields=".concat(g)),b=g),this._appConfig={appKey:n,appSecret:i,appVersion:o,channel:a,userNick:u,userId:c,requiredFields:b},this._errorQueryRetryCount=0,this._rate=h.default.getInstance(this.printLog),this._rate.init(this._appConfig.appKey,this._appConfig.appSecret),this._reqQueue=[],this._rateQueue=[],this._offlineQueue=[],this._errorQueue=[],this._plugins={};var m=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(m){m.addEventListener("change",(function(){navigator.onLine&&e._offlineQueue.length>0&&(e.printLog.debug(d.EMAS_APM_LOG_KEY,"network changed upload offline queue log"),e._offlineQueue.forEach((function(t){(0,p.reqIdleCallback)((function(){e.send(t)}))})),e._offlineQueue=[])}))}window.addEventListener("beforeunload",(function(){e._beforeunload()})),window.addEventListener(d.EMAS_RATE_NOTIC_KEY,(function(){e.printLog.debug(d.EMAS_APM_LOG_KEY,"sample rate is ready"),e._rateQueue.forEach((function(t){e.log.apply(e,t)})),e._rateQueue=[]})),this._watchErrorTimer=setInterval((function(){e._errorQueue.length>0&&(e._errorQueryRetryCount++,e.printLog.debug(d.EMAS_APM_LOG_KEY,"retry error logs in error queue. -----".concat(e._errorQueryRetryCount)),e._errorQueue.forEach((function(t){e.send(t)})),e._errorQueue=[],e._errorQueryRetryCount>=d.LOG_ERROR_MAX_RETRY_COUNT&&(e.printLog.debug(d.EMAS_APM_LOG_KEY,"over max retry counts, end error logs retry"),clearInterval(e._watchErrorTimer),e._watchErrorTimer=void 0))}),d.LOG_ERROR_RETRY_INTERVAL),this._uploadCache()}else console.info('"APM SDK does not support the current browser.')}_.prototype.setConfig=function(t,e){var r=this,n={};if(void 0!==e?n[t]=e:n=t,n.appKey&&delete n.appKey,n.appSecret&&delete n.appSecret,!(0,p.isInObjectInclude)(n,this._appConfig)){for(var i in n)(0,p.isObject)(n[i])?this._appConfig[i]=assign(this._appConfig[i]||{},n[i]):this._appConfig[i]=n[i];(0,p.isRequiredFieldNotReady)(this._appConfig)||(this.printLog.debug(d.EMAS_APM_LOG_KEY,"required field is ready, start send queue log"),this._reqQueue.forEach((function(t){r.log.apply(r,t)})),this._reqQueue=[])}},_.prototype.getInnerDomains=function(){var t=[];for(var e in f.EMAS_APM_SERVERS)if(f.EMAS_APM_SERVERS.hasOwnProperty(e)){var r=f.EMAS_APM_SERVERS[e];for(var n in r)r.hasOwnProperty(n)&&t.push(r[n])}return t},_.prototype.log=function(t,e){if(this.printLog.debug(d.EMAS_APM_LOG_KEY,"EMAS_APM LOG eventType:".concat(t,"; eventData:").concat((0,u.default)(e))),(0,p.isRequiredFieldNotReady)(this._appConfig))this.printLog.debug(d.EMAS_APM_LOG_KEY,"required field not ready"),this._reqQueue.push([t,e]),this._reqQueue.length>d.MAX_REQ_QUEUE_LENGTH&&this._reqQueue.shift();else if(this._rate.rateReady||t===d.EVENTID.pv){var r=(0,p.getUAInfo)(),n=r.browser,i=r.device,o=r.os,a=this._appConfig,s=a.appKey,l=a.appSecret,f=a.appVersion,h=a.channel,_=a.userNick,v=a.userId,w={platform:"h5",protocolVersion:d.EMAS_APM_PROTOCOL_VERSION,sessionId:(0,p.genUniqueId)(s,l),uuid:(0,p.genUniqueId)(t),sdk:{name:"mini",version:d.EMAS_APM_VERSION},app:{version:f,channel:h},device:{os:o.name,version:o.version||n.version,model:i.model,language:navigator.language,resolution:"".concat(window.screen.width,"x").concat(window.screen.height)},user:{nick:_,id:v},eventTime:e.eventTime||(0,c.default)(),clientTime:(0,c.default)(),uri:e.uri||location.href,network:{access:(0,p.getNetworkInfo)().effectiveType},eventId:t,payload:e};if(t!==d.EVENTID.pv){var g=this._rate.calcSample(t,w,this._appConfig);if(this.printLog.debug(d.EMAS_APM_LOG_KEY,"filter by sample rate. rate=[".concat(g,"]")),g<=0)return void this.printLog.debug(d.EMAS_APM_LOG_KEY,"log not upload");w.sampleRate=g}this.printLog.debug(d.EMAS_APM_LOG_KEY,"log payload: ".concat((0,u.default)(w)));var b=(0,p.gzipEncode)(w);this.send(b)}else this.printLog.debug(d.EMAS_APM_LOG_KEY,"sample rate is not ready"),this._rateQueue.push([t,e])},_.prototype.send=function(){var t=(0,a.default)(o.default.mark((function t(e){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.printLog.debug(d.EMAS_APM_LOG_KEY,"begin send log....."),!navigator.onLine){t.next=9;break}return this.printLog.debug(d.EMAS_APM_LOG_KEY,"begin request log....."),t.next=5,(0,f.uploadLog)(e,this._appConfig);case 5:t.sent?this.printLog.debug(d.EMAS_APM_LOG_KEY,"request log success"):(this.printLog.debug(d.EMAS_APM_LOG_KEY,"request log failed log to error cache"),this._errorQueue.push(e),this._errorQueue.length>d.MAX_ERROR_QUEUE&&this._errorQueue.shift()),t.next=12;break;case 9:this.printLog.debug(d.EMAS_APM_LOG_KEY,"network offline log to offline cache"),this._offlineQueue.push(e),this._offlineQueue.length>d.MAX_CACHE_QUEUE&&this._offlineQueue.shift();case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),_.prototype.addPlugin=function(t,e){var r=this;if((0,p.canRun)())return"[object Array]"===Object.prototype.toString.call(t)?t.map((function(t){if("[object Array]"===Object.prototype.toString.call(t)){var e=t[0],n=t[1];return r._plugins[e]||(r._plugins[e]=new e(r,n))}return r._plugins[t]||(r._plugins[t]=new t(r))})):this._plugins[t]||(this._plugins[t]=new t(this,e));console.info('"APM SDK does not support the current browser.')},_.prototype._beforeunload=function(){this._watchErrorTimer&&clearInterval(this._watchErrorTimer);var t=[];this._offlineQueue.forEach((function(e){if(e instanceof Uint8Array){var r=(0,p.uint8ArrayToBase64)(e);r&&t.push(r)}})),this._errorQueue.forEach((function(e){if(e instanceof Uint8Array){var r=(0,p.uint8ArrayToBase64)(e);r&&t.push(r)}}));var e=t.join("|");try{this.printLog.debug(d.EMAS_APM_LOG_KEY,"save log cache : ".concat(e)),localStorage.setItem(d.EMAS_APM_REQUEST_LOCALSTORAGE_KEY,e)}catch(t){}},_.prototype._uploadCache=function(){var t=this;this.printLog.debug(d.EMAS_APM_LOG_KEY,"upload cache......"),(0,p.reqIdleCallback)((function(){var e=localStorage.getItem(d.EMAS_APM_REQUEST_LOCALSTORAGE_KEY);e&&(e.split("|").forEach((function(e){"string"==typeof e&&t.send((0,p.base64ToUint8Array)(e))})),localStorage.removeItem(d.EMAS_APM_REQUEST_LOCALSTORAGE_KEY))}))},_.prototype.__testError=function(){_.prototype.__testError2()},_.prototype.__testError2=function(){throw new Error("test error")};e.default=_},function(t,e,r){var n=r(2);n(n.S+n.F*!r(7),"Object",{defineProperty:r(4).f})},function(t,e,r){var n=r(31).default,i=r(27),o=r(32),a=r(96),s=r(98),u=r(100),c=r(42);function l(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=l=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},f=Object.prototype,h=f.hasOwnProperty,d=i||function(t,e,r){t[e]=r.value},p="function"==typeof o?o:{},_=p.iterator||"@@iterator",v=p.asyncIterator||"@@asyncIterator",w=p.toStringTag||"@@toStringTag";function g(t,e,r){return i(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{g({},"")}catch(e){g=function(t,e,r){return t[e]=r}}function b(t,e,r,n){var i=e&&e.prototype instanceof A?e:A,o=a(i.prototype),s=new U(n||[]);return d(o,"_invoke",{value:P(t,r,s)}),o}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=b;var y="suspendedStart",x="executing",E="completed",k={};function A(){}function S(){}function O(){}var R={};g(R,_,(function(){return this}));var M=s&&s(s(j([])));M&&M!==f&&h.call(M,_)&&(R=M);var T=O.prototype=A.prototype=a(R);function L(t){["next","throw","return"].forEach((function(e){g(t,e,(function(t){return this._invoke(e,t)}))}))}function z(t,e){function r(i,o,a,s){var u=m(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==n(l)&&h.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;d(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function P(t,r,n){var i=y;return function(o,a){if(i===x)throw Error("Generator is already running");if(i===E){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===k)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===y)throw i=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=x;var c=m(t,r,n);if("normal"===c.type){if(i=n.done?E:"suspendedYield",c.arg===k)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=E,n.method="throw",n.arg=c.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),k;var o=m(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,k;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,k):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,k)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[_];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(h.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(n(t)+" is not iterable")}return S.prototype=O,d(T,"constructor",{value:O,configurable:!0}),d(O,"constructor",{value:S,configurable:!0}),S.displayName=g(O,w,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return u?u(t,O):(t.__proto__=O,g(t,w,"GeneratorFunction")),t.prototype=a(T),t},r.awrap=function(t){return{__await:t}},L(z.prototype),g(z.prototype,v,(function(){return this})),r.AsyncIterator=z,r.async=function(t,e,n,i,o){void 0===o&&(o=c);var a=new z(b(t,e,n,i),o);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(T),g(T,w,"Generator"),g(T,_,(function(){return this})),g(T,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=j,U.prototype={constructor:U,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&h.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=h.call(o,"catchLoc"),u=h.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&h.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,k):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),k},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),k}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),k}},r}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";var n=r(1),i=r(9),o=r(7),a=r(2),s=r(50),u=r(82).KEY,c=r(12),l=r(33),f=r(23),h=r(22),d=r(3),p=r(24),_=r(34),v=r(83),w=r(53),g=r(5),b=r(6),m=r(17),y=r(13),x=r(29),E=r(14),k=r(40),A=r(88),S=r(56),O=r(52),R=r(4),M=r(25),T=S.f,L=R.f,z=A.f,P=n.Symbol,C=n.JSON,N=C&&C.stringify,I=d("_hidden"),U=d("toPrimitive"),j={}.propertyIsEnumerable,B=l("symbol-registry"),F=l("symbols"),D=l("op-symbols"),G=Object.prototype,K="function"==typeof P&&!!O.f,Z=n.QObject,Y=!Z||!Z.prototype||!Z.prototype.findChild,q=o&&c((function(){return 7!=k(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=T(G,e);n&&delete G[e],L(t,e,r),n&&t!==G&&L(G,e,n)}:L,V=function(t){var e=F[t]=k(P.prototype);return e._k=t,e},H=K&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Q=function(t,e,r){return t===G&&Q(D,e,r),g(t),e=x(e,!0),g(r),i(F,e)?(r.enumerable?(i(t,I)&&t[I][e]&&(t[I][e]=!1),r=k(r,{enumerable:E(0,!1)})):(i(t,I)||L(t,I,E(1,{})),t[I][e]=!0),q(t,e,r)):L(t,e,r)},X=function(t,e){g(t);for(var r,n=v(e=y(e)),i=0,o=n.length;o>i;)Q(t,r=n[i++],e[r]);return t},W=function(t){var e=j.call(this,t=x(t,!0));return!(this===G&&i(F,t)&&!i(D,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,I)&&this[I][t])||e)},$=function(t,e){if(t=y(t),e=x(e,!0),t!==G||!i(F,e)||i(D,e)){var r=T(t,e);return!r||!i(F,e)||i(t,I)&&t[I][e]||(r.enumerable=!0),r}},J=function(t){for(var e,r=z(y(t)),n=[],o=0;r.length>o;)i(F,e=r[o++])||e==I||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===G,n=z(r?D:y(t)),o=[],a=0;n.length>a;)!i(F,e=n[a++])||r&&!i(G,e)||o.push(F[e]);return o};K||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===G&&e.call(D,r),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),q(this,t,E(1,r))};return o&&Y&&q(G,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),S.f=$,R.f=Q,r(55).f=A.f=J,r(39).f=W,O.f=tt,o&&!r(15)&&s(G,"propertyIsEnumerable",W,!0),p.f=function(t){return V(d(t))}),a(a.G+a.W+a.F*!K,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var nt=M(d.store),it=0;nt.length>it;)_(nt[it++]);a(a.S+a.F*!K,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=P(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!K,"Object",{create:function(t,e){return void 0===e?k(t):X(k(t),e)},defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:tt});var ot=c((function(){O.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return O.f(m(t))}}),C&&a(a.S+a.F*(!K||c((function(){var t=P();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!H(t))return w(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!H(e))return e}),n[1]=e,N.apply(C,n)}}),P.prototype[U]||r(8)(P.prototype,U,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(t,e,r){var n=r(22)("meta"),i=r(6),o=r(9),a=r(4).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(12)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[n].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,n)&&l(t),t}}},function(t,e,r){var n=r(25),i=r(52),o=r(39);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,r){var n=r(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(13),i=r(35),o=r(86);t.exports=function(t){return function(e,r,a){var s,u=n(e),c=i(u.length),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(36),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(4),i=r(5),o=r(25);t.exports=r(7)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,u=0;s>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){var n=r(13),i=r(55).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){r(34)("asyncIterator")},function(t,e,r){r(34)("observable")},function(t,e,r){var n=r(36),i=r(26);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(40),i=r(14),o=r(23),a={};r(8)(a,r(3)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){"use strict";var n=r(94),i=r(95),o=r(18),a=r(13);t.exports=r(59)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){r(97);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(2);n(n.S,"Object",{create:r(40)})},function(t,e,r){r(99),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){var n=r(17),i=r(60);r(62)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(101),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){var n=r(2);n(n.S,"Object",{setPrototypeOf:r(102).set})},function(t,e,r){var n=r(6),i=r(5),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(11)(Function.call,r(56).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){"use strict";var n,i,o,a,s=r(15),u=r(1),c=r(11),l=r(63),f=r(2),h=r(6),d=r(20),p=r(104),_=r(105),v=r(67),w=r(68).set,g=r(107)(),b=r(43),m=r(69),y=r(108),x=r(70),E=u.TypeError,k=u.process,A=k&&k.versions,S=A&&A.v8||"",O=u.Promise,R="process"==l(k),M=function(){},T=i=b.f,L=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(M,M)};return(R||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==S.indexOf("6.6")&&-1===y.indexOf("Chrome/66")}catch(t){}}(),z=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var r=t._c;g((function(){for(var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&I(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?c(E("Promise-chain cycle")):(o=z(r))?o.call(r,u,c):u(r)):c(n)}catch(t){l&&!a&&l.exit(),c(t)}};r.length>o;)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){w.call(u,(function(){var e,r,n,i=t._v,o=N(t);if(o&&(e=m((function(){R?k.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=R||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){w.call(u,(function(){var e;R?k.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},U=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},j=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw E("Promise can't be resolved itself");(e=z(t))?g((function(){var n={_w:r,_d:!1};try{e.call(t,c(j,n,1),c(U,n,1))}catch(t){U.call(n,t)}})):(r._v=t,r._s=1,P(r,!1))}catch(t){U.call({_w:r,_d:!1},t)}}};L||(O=function(t){p(this,O,"Promise","_h"),d(t),n.call(this);try{t(c(j,this,1),c(U,this,1))}catch(t){U.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(109)(O.prototype,{then:function(t,e){var r=T(v(this,O));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(j,t,1),this.reject=c(U,t,1)},b.f=T=function(t){return t===O||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!L,{Promise:O}),r(23)(O,"Promise"),r(110)("Promise"),a=r(0).Promise,f(f.S+f.F*!L,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!L),"Promise",{resolve:function(t){return x(s&&this===a?O:this,t)}}),f(f.S+f.F*!(L&&r(71)((function(t){O.all(t).catch(M)}))),"Promise",{all:function(t){var e=this,r=T(e),n=r.resolve,i=r.reject,o=m((function(){var r=[],o=0,a=1;_(t,!1,(function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,r[s]=t,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=T(e),n=r.reject,i=m((function(){_(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(11),i=r(64),o=r(65),a=r(5),s=r(35),u=r(66),c={},l={};(e=t.exports=function(t,e,r,f,h){var d,p,_,v,w=h?function(){return t}:u(t),g=n(r,f,e?2:1),b=0;if("function"!=typeof w)throw TypeError(t+" is not iterable!");if(o(w)){for(d=s(t.length);d>b;b++)if((v=e?g(a(p=t[b])[0],p[1]):g(t[b]))===c||v===l)return v}else for(_=w.call(t);!(p=_.next()).done;)if((v=i(_,g,p.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(1),i=r(68).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(16)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){var n=r(1).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){var n=r(8);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){"use strict";var n=r(1),i=r(0),o=r(4),a=r(7),s=r(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(1),a=r(67),s=r(70);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then((function(){return r}))}:t,r?function(r){return s(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){"use strict";var n=r(2),i=r(43),o=r(69);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){r(114),t.exports=r(0).Array.isArray},function(t,e,r){var n=r(2);n(n.S,"Array",{isArray:r(53)})},function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,r){r(117),t.exports=r(0).Date.now},function(t,e,r){var n=r(2);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"INFO";return this instanceof n?n.instance[t]?n.instance[t]:(this.levels=["TRACE","DEBUG","INFO","WARN","ERROR"],this.currentLevel=this.levels.indexOf(t),void(n.instance[t]=this)):new n(t)}r(10)(e,"__esModule",{value:!0}),e.default=void 0,n.instance={},n.getInstance=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"INFO";return n.instance[t]||(n.instance[t]=new n(t)),n.instance[t]},n.prototype.log=function(t,e){this.levels.indexOf(t)>=this.currentLevel&&"undefined"!=typeof console&&(console[t.toLowerCase()]?console[t.toLowerCase()](e):console.log(e))},n.prototype.trace=function(t){this.log("TRACE",t)},n.prototype.debug=function(t){this.log("DEBUG",t)},n.prototype.info=function(t){this.log("INFO",t)},n.prototype.warn=function(t){this.log("WARN",t)},n.prototype.error=function(t){this.log("ERROR",t)};e.default=n},function(t,e,r){t.exports=r(42)},function(t,e,r){r(41),r(121),t.exports=r(0).Array.from},function(t,e,r){"use strict";var n=r(11),i=r(2),o=r(17),a=r(64),s=r(65),u=r(35),c=r(122),l=r(66);i(i.S+i.F*!r(71)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,f,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,_=p>1?arguments[1]:void 0,v=void 0!==_,w=0,g=l(h);if(v&&(_=n(_,p>2?arguments[2]:void 0,2)),null==g||d==Array&&s(g))for(r=new d(e=u(h.length));e>w;w++)c(r,w,v?_(h[w],w):h[w]);else for(f=g.call(h),r=new d;!(i=f.next()).done;w++)c(r,w,v?a(f,_,[i.value,w],!0):i.value);return r.length=w,r}})},function(t,e,r){"use strict";var n=r(4),i=r(14);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){t.exports=r(124)},function(t,e,r){r(125),t.exports=r(0).Object.keys},function(t,e,r){var n=r(17),i=r(25);r(62)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){t.exports=r(127)},function(t,e,r){r(128),t.exports=r(0).parseFloat},function(t,e,r){var n=r(2),i=r(129);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(t,e,r){var n=r(1).parseFloat,i=r(130).trim;t.exports=1/n(r(77)+"-0")!=-1/0?function(t){var e=i(String(t),3),r=n(e);return 0===r&&"-"==e.charAt(0)?-0:r}:n},function(t,e,r){var n=r(2),i=r(26),o=r(12),a=r(77),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,r){var i={},s=o((function(){return!!a[t]()||"​…"!="​…"[t]()})),u=i[t]=s?e(f):a[t];r&&(i[r]=u),n(n.P+n.F*s,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e,r){var n;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",h="tablet",d="smarttv",p=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},_=function(t,e){return"string"==typeof t&&-1!==v(e).indexOf(v(t))},v=function(t){return t.toLowerCase()},w=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,500)},g=function(t,e){for(var r,n,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],l=e[u+1];for(r=n=0;r<c.length&&!a&&c[r];)if(a=c[r++].exec(t))for(i=0;i<l.length;i++)s=a[++n],"object"==typeof(o=l[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},b=function(t,e){for(var r in e)if("object"==typeof e[r]&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(_(e[r][n],t))return"?"===r?void 0:r}else if(_(e[r],t))return"?"===r?void 0:r;return e.hasOwnProperty("*")?e["*"]:t},m={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"},y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[s,"Opera GX"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[s,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/quark(?:pc)?\/([-\w\.]+)/i],[l,[s,"Quark"]],[/\bddg\/([\w\.]+)/i],[l,[s,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[s,"Smart Lenovo Browser"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/\b(qq)\/([\w\.]+)/i],[[s,/(.+)/,"$1Browser"],l],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/samsungbrowser\/([\w\.]+)/i],[l,[s,"Samsung Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/metasr[\/ ]?([\d\.]+)/i],[l,[s,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[s,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[s,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,b,{"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,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/(wolvic)\/([\w\.]+)/i],[s,l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,[l,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[s,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",v]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[c,"Samsung"],[u,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[a,[c,"Samsung"],[u,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[c,"Apple"],[u,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[c,"Apple"],[u,h]],[/(macintosh);/i],[a,[c,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[c,"Sharp"],[u,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[c,"OPPO"],[u,f]],[/\b(opd2\d{3}a?) bui/i],[a,[c,"OPPO"],[u,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[c,"Vivo"],[u,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[c,"Realme"],[u,f]],[/\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,[c,"Motorola"],[u,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[c,"Motorola"],[u,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[c,"LG"],[u,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[c,"LG"],[u,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[c,"Lenovo"],[u,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[c,"Nokia"],[u,f]],[/(pixel c)\b/i],[a,[c,"Google"],[u,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[c,"Google"],[u,f]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[c,"Sony"],[u,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[c,"Sony"],[u,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[c,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[c,"Amazon"],[u,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[c,"Amazon"],[u,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,c,[u,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[c,"BlackBerry"],[u,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[c,"ASUS"],[u,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[c,"ASUS"],[u,f]],[/(nexus 9)/i],[a,[c,"HTC"],[u,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[a,/_/g," "],[u,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[a,[c,"TCL"],[u,h]],[/(itel) ((\w+))/i],[[c,v],a,[u,b,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[c,"Acer"],[u,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[c,"Meizu"],[u,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[c,"Ulefone"],[u,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[c,"Nothing"],[u,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,a,[u,f]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,a,[u,h]],[/(surface duo)/i],[a,[c,"Microsoft"],[u,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[c,"Fairphone"],[u,f]],[/(u304aa)/i],[a,[c,"AT&T"],[u,f]],[/\bsie-(\w*)/i],[a,[c,"Siemens"],[u,f]],[/\b(rct\w+) b/i],[a,[c,"RCA"],[u,h]],[/\b(venue[\d ]{2,7}) b/i],[a,[c,"Dell"],[u,h]],[/\b(q(?:mv|ta)\w+) b/i],[a,[c,"Verizon"],[u,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[c,"Barnes & Noble"],[u,h]],[/\b(tm\d{3}\w+) b/i],[a,[c,"NuVision"],[u,h]],[/\b(k88) b/i],[a,[c,"ZTE"],[u,h]],[/\b(nx\d{3}j) b/i],[a,[c,"ZTE"],[u,f]],[/\b(gen\d{3}) b.+49h/i],[a,[c,"Swiss"],[u,f]],[/\b(zur\d{3}) b/i],[a,[c,"Swiss"],[u,h]],[/\b((zeki)?tb.*\b) b/i],[a,[c,"Zeki"],[u,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],a,[u,h]],[/\b(ns-?\w{0,9}) b/i],[a,[c,"Insignia"],[u,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[c,"NextBook"],[u,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],a,[u,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],a,[u,f]],[/\b(ph-1) /i],[a,[c,"Essential"],[u,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[c,"Envizen"],[u,h]],[/\b(trio[-\w\. ]+) b/i],[a,[c,"MachSpeed"],[u,h]],[/\btu_(1491) b/i],[a,[c,"Rotor"],[u,h]],[/(shield[\w ]+) b/i],[a,[c,"Nvidia"],[u,h]],[/(sprint) (\w+)/i],[c,a,[u,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[c,"Microsoft"],[u,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[c,"Zebra"],[u,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[c,"Zebra"],[u,f]],[/smart-tv.+(samsung)/i],[c,[u,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[c,"Samsung"],[u,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[u,d]],[/(apple) ?tv/i],[c,[a,"Apple TV"],[u,d]],[/crkey/i],[[a,"Chromecast"],[c,"Google"],[u,d]],[/droid.+aft(\w+)( bui|\))/i],[a,[c,"Amazon"],[u,d]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[c,"Sharp"],[u,d]],[/(bravia[\w ]+)( bui|\))/i],[a,[c,"Sony"],[u,d]],[/(mitv-\w{5}) bui/i],[a,[c,"Xiaomi"],[u,d]],[/Hbbtv.*(technisat) (.*);/i],[c,a,[u,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[c,w],[a,w],[u,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,d]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[c,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[c,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[c,"Microsoft"],[u,"console"]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[a,[c,"Samsung"],[u,"wearable"]],[/((pebble))app/i],[c,a,[u,"wearable"]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[c,"Apple"],[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[c,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[c,"Zebra"],[u,"wearable"]],[/(quest( \d| pro)?)/i],[a,[c,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,"embedded"]],[/(aeobc)\b/i],[a,[c,"Amazon"],[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[u,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,f]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[s,[l,b,m]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,b,m],[s,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[s,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[s,"Chromium OS"],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[s,l]]},x=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof x))return new x(t,e).getResult();var r=void 0!==i&&i.navigator?i.navigator:void 0,n=t||(r&&r.userAgent?r.userAgent:""),o=r&&r.userAgentData?r.userAgentData:void 0,c=e?function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r}(y,e):y,d=r&&r.userAgent==n;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[l]=void 0,g.call(e,n,c.browser),e.major="string"==typeof(t=e[l])?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,d&&r&&r.brave&&"function"==typeof r.brave.isBrave&&(e[s]="Brave"),e},this.getCPU=function(){var t={architecture:void 0};return g.call(t,n,c.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return g.call(t,n,c.device),d&&!t[u]&&o&&o.mobile&&(t[u]=f),d&&"Macintosh"==t[a]&&r&&void 0!==r.standalone&&r.maxTouchPoints&&r.maxTouchPoints>2&&(t[a]="iPad",t[u]=h),t},this.getEngine=function(){var t={name:void 0,version:void 0};return g.call(t,n,c.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return g.call(t,n,c.os),d&&!t[s]&&o&&o.platform&&"Unknown"!=o.platform&&(t[s]=o.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),t},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(t){return n="string"==typeof t&&t.length>500?w(t,500):t,this},this.setUA(n),this};x.VERSION="1.0.39",x.BROWSER=p([s,l,"major"]),x.CPU=p(["architecture"]),x.DEVICE=p([a,c,u,"console",f,d,h,"wearable","embedded"]),x.ENGINE=x.OS=p([s,l]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=x),e.UAParser=x):r(132)?void 0===(n=function(){return x}.call(e,r,e,t))||(t.exports=n):void 0!==i&&(i.UAParser=x);var E=void 0!==i&&(i.jQuery||i.Zepto);if(E&&!E.ua){var k=new x;E.ua=k.getResult(),E.ua.get=function(){return k.getUA()},E.ua.set=function(t){k.setUA(t);var e=k.getResult();for(var r in e)E.ua[r]=e[r]}}}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){var n;t.exports=(n=r(19),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],d=t[e+2],p=t[e+3],_=t[e+4],v=t[e+5],w=t[e+6],g=t[e+7],b=t[e+8],m=t[e+9],y=t[e+10],x=t[e+11],E=t[e+12],k=t[e+13],A=t[e+14],S=t[e+15],O=o[0],R=o[1],M=o[2],T=o[3];O=c(O,R,M,T,a,7,s[0]),T=c(T,O,R,M,u,12,s[1]),M=c(M,T,O,R,d,17,s[2]),R=c(R,M,T,O,p,22,s[3]),O=c(O,R,M,T,_,7,s[4]),T=c(T,O,R,M,v,12,s[5]),M=c(M,T,O,R,w,17,s[6]),R=c(R,M,T,O,g,22,s[7]),O=c(O,R,M,T,b,7,s[8]),T=c(T,O,R,M,m,12,s[9]),M=c(M,T,O,R,y,17,s[10]),R=c(R,M,T,O,x,22,s[11]),O=c(O,R,M,T,E,7,s[12]),T=c(T,O,R,M,k,12,s[13]),M=c(M,T,O,R,A,17,s[14]),O=l(O,R=c(R,M,T,O,S,22,s[15]),M,T,u,5,s[16]),T=l(T,O,R,M,w,9,s[17]),M=l(M,T,O,R,x,14,s[18]),R=l(R,M,T,O,a,20,s[19]),O=l(O,R,M,T,v,5,s[20]),T=l(T,O,R,M,y,9,s[21]),M=l(M,T,O,R,S,14,s[22]),R=l(R,M,T,O,_,20,s[23]),O=l(O,R,M,T,m,5,s[24]),T=l(T,O,R,M,A,9,s[25]),M=l(M,T,O,R,p,14,s[26]),R=l(R,M,T,O,b,20,s[27]),O=l(O,R,M,T,k,5,s[28]),T=l(T,O,R,M,d,9,s[29]),M=l(M,T,O,R,g,14,s[30]),O=f(O,R=l(R,M,T,O,E,20,s[31]),M,T,v,4,s[32]),T=f(T,O,R,M,b,11,s[33]),M=f(M,T,O,R,x,16,s[34]),R=f(R,M,T,O,A,23,s[35]),O=f(O,R,M,T,u,4,s[36]),T=f(T,O,R,M,_,11,s[37]),M=f(M,T,O,R,g,16,s[38]),R=f(R,M,T,O,y,23,s[39]),O=f(O,R,M,T,k,4,s[40]),T=f(T,O,R,M,a,11,s[41]),M=f(M,T,O,R,p,16,s[42]),R=f(R,M,T,O,w,23,s[43]),O=f(O,R,M,T,m,4,s[44]),T=f(T,O,R,M,E,11,s[45]),M=f(M,T,O,R,S,16,s[46]),O=h(O,R=f(R,M,T,O,d,23,s[47]),M,T,a,6,s[48]),T=h(T,O,R,M,g,10,s[49]),M=h(M,T,O,R,A,15,s[50]),R=h(R,M,T,O,v,21,s[51]),O=h(O,R,M,T,E,6,s[52]),T=h(T,O,R,M,p,10,s[53]),M=h(M,T,O,R,y,15,s[54]),R=h(R,M,T,O,u,21,s[55]),O=h(O,R,M,T,b,6,s[56]),T=h(T,O,R,M,S,10,s[57]),M=h(M,T,O,R,w,15,s[58]),R=h(R,M,T,O,k,21,s[59]),O=h(O,R,M,T,_,6,s[60]),T=h(T,O,R,M,x,10,s[61]),M=h(M,T,O,R,d,15,s[62]),R=h(R,M,T,O,m,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+R|0,o[2]=o[2]+M|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function l(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(u),e.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){},function(t,e,r){var n;t.exports=(n=r(19),r(137),r(138),n.HmacSHA1)},function(t,e,r){var n,i,o,a,s,u,c,l;t.exports=(l=r(19),i=(n=l).lib,o=i.WordArray,a=i.Hasher,s=n.algo,u=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=0;c<80;c++){if(c<16)u[c]=0|t[e+c];else{var l=u[c-3]^u[c-8]^u[c-14]^u[c-16];u[c]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+u[c];f+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),l.SHA1)},function(t,e,r){var n,i,o,a;t.exports=(n=r(19),o=(i=n).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=a.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,u=o.words,c=0;c<r;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},function(t,e,r){
2
+ /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
3
+ !function(t){"use strict";function e(t){for(var e=t.length;--e>=0;)t[e]=0}var r=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),o=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=new Array(576);e(a);var s=new Array(60);e(s);var u=new Array(512);e(u);var c=new Array(256);e(c);var l=new Array(29);e(l);var f,h,d,p=new Array(30);function _(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function v(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(p);var w=function(t){return t<256?u[t]:u[256+(t>>>7)]},g=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},b=function(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,g(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)},m=function(t,e,r){b(t,r[2*e],r[2*e+1])},y=function(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1},x=function(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)a=a+r[n-1]<<1,o[n]=a;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=y(o[s]++,s))}},E=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},k=function(t){t.bi_valid>8?g(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]},S=function(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&A(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!A(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n},O=function(t,e,i){var o,a,s,u,f=0;if(0!==t.sym_next)do{o=255&t.pending_buf[t.sym_buf+f++],o+=(255&t.pending_buf[t.sym_buf+f++])<<8,a=t.pending_buf[t.sym_buf+f++],0===o?m(t,a,e):(s=c[a],m(t,s+256+1,e),0!==(u=r[s])&&(a-=l[s],b(t,a,u)),o--,s=w(o),m(t,s,i),0!==(u=n[s])&&(o-=p[s],b(t,o,u)))}while(f<t.sym_next);m(t,256,e)},R=function(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)S(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,S(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,_=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,_++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==_){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,_-=2}while(_>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),x(o,c,t.bl_count)},M=function(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},T=function(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{m(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(m(t,i,t.bl_tree),s--),m(t,16,t.bl_tree),b(t,s-3,2)):s<=10?(m(t,17,t.bl_tree),b(t,s-3,3)):(m(t,18,t.bl_tree),b(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},L=!1,z=function(t,e,r,n){b(t,0+(n?1:0),3),k(t),g(t,r),g(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r},P=function(t){L||(function(){var t,e,o,v,w,g=new Array(16);for(o=0,v=0;v<28;v++)for(l[v]=o,t=0;t<1<<r[v];t++)c[o++]=v;for(c[o-1]=v,w=0,v=0;v<16;v++)for(p[v]=w,t=0;t<1<<n[v];t++)u[w++]=v;for(w>>=7;v<30;v++)for(p[v]=w<<7,t=0;t<1<<n[v]-7;t++)u[256+w++]=v;for(e=0;e<=15;e++)g[e]=0;for(t=0;t<=143;)a[2*t+1]=8,t++,g[8]++;for(;t<=255;)a[2*t+1]=9,t++,g[9]++;for(;t<=279;)a[2*t+1]=7,t++,g[7]++;for(;t<=287;)a[2*t+1]=8,t++,g[8]++;for(x(a,287,g),t=0;t<30;t++)s[2*t+1]=5,s[2*t]=y(t,5);f=new _(a,r,257,286,15),h=new _(s,n,0,30,15),d=new _(new Array(0),i,0,19,7)}(),L=!0),t.l_desc=new v(t.dyn_ltree,f),t.d_desc=new v(t.dyn_dtree,h),t.bl_desc=new v(t.bl_tree,d),t.bi_buf=0,t.bi_valid=0,E(t)},C=z,N=function(t,e,r,n){var i,u,c=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),c=function(t){var e;for(M(t,t.dyn_ltree,t.l_desc.max_code),M(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*o[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(u=t.static_len+3+7>>>3)<=i&&(i=u)):i=u=r+5,r+4<=i&&-1!==e?z(t,e,r,n):4===t.strategy||u===i?(b(t,2+(n?1:0),3),O(t,a,s)):(b(t,4+(n?1:0),3),function(t,e,r,n){var i;for(b(t,e-257,5),b(t,r-1,5),b(t,n-4,4),i=0;i<n;i++)b(t,t.bl_tree[2*o[i]+1],3);T(t,t.dyn_ltree,e-1),T(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),O(t,t.dyn_ltree,t.dyn_dtree)),E(t),n&&k(t)},I=function(t,e,r){return t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(c[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.sym_next===t.sym_end},U=function(t){b(t,2,3),m(t,256,a),function(t){16===t.bi_valid?(g(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)},j=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},B=new Uint32Array(function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}()),F=function(t,e,r,n){var i=B,o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},D={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},G={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},K=P,Z=C,Y=N,q=I,V=U,H=G.Z_NO_FLUSH,Q=G.Z_PARTIAL_FLUSH,X=G.Z_FULL_FLUSH,W=G.Z_FINISH,$=G.Z_BLOCK,J=G.Z_OK,tt=G.Z_STREAM_END,et=G.Z_STREAM_ERROR,rt=G.Z_DATA_ERROR,nt=G.Z_BUF_ERROR,it=G.Z_DEFAULT_COMPRESSION,ot=G.Z_FILTERED,at=G.Z_HUFFMAN_ONLY,st=G.Z_RLE,ut=G.Z_FIXED,ct=G.Z_UNKNOWN,lt=G.Z_DEFLATED,ft=262,ht=function(t,e){return t.msg=D[e],e},dt=function(t){return 2*t-(t>4?9:0)},pt=function(t){for(var e=t.length;--e>=0;)t[e]=0},_t=function(t){var e,r,n,i=t.w_size;n=e=t.hash_size;do{r=t.head[--n],t.head[n]=r>=i?r-i:0}while(--e);n=e=i;do{r=t.prev[--n],t.prev[n]=r>=i?r-i:0}while(--e)},vt=function(t,e,r){return(e<<t.hash_shift^r)&t.hash_mask},wt=function(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))},gt=function(t,e){Y(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,wt(t.strm)},bt=function(t,e){t.pending_buf[t.pending++]=e},mt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},yt=function(t,e,r,n){var i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),r),1===t.state.wrap?t.adler=j(t.adler,e,i,r):2===t.state.wrap&&(t.adler=F(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)},xt=function(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-ft?t.strstart-(t.w_size-ft):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+258,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=258-(h-o),o=h-258,n>a){if(t.match_start=e,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},Et=function(t){var e,r,n,i=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-ft)&&(t.window.set(t.window.subarray(i,i+i-r),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),r+=i),0===t.strm.avail_in)break;if(e=yt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=vt(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=vt(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ft&&0!==t.strm.avail_in)},kt=function(t,e){var r,n,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,r>(n=t.strstart-t.block_start)+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&e!==W||e===H||r!==n+t.strm.avail_in))break;a=e===W&&r===n+t.strm.avail_in?1:0,Z(t,0,0,a),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,wt(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(yt(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(0===a);return(s-=t.strm.avail_in)&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==H&&e!==W&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(yt(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,o=(i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i)>t.w_size?t.w_size:i,((n=t.strstart-t.block_start)>=o||(n||e===W)&&e!==H&&0===t.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=e===W&&0===t.strm.avail_in&&r===n?1:0,Z(t,t.block_start,r,a),t.block_start+=r,wt(t.strm)),a?3:1)},At=function(t,e){for(var r,n;;){if(t.lookahead<ft){if(Et(t),t.lookahead<ft&&e===H)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-ft&&(t.match_length=xt(t,r)),t.match_length>=3)if(n=q(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=vt(t,t.ins_h,t.window[t.strstart+1]);else n=q(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(gt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===W?(gt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(gt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var r,n,i;;){if(t.lookahead<ft){if(Et(t),t.lookahead<ft&&e===H)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-ft&&(t.match_length=xt(t,r),t.match_length<=5&&(t.strategy===ot||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=q(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(gt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=q(t,0,t.window[t.strstart-1]))&&gt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=q(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===W?(gt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(gt(t,!1),0===t.strm.avail_out)?1:2};function Ot(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}var Rt=[new Ot(0,0,0,0,kt),new Ot(4,4,8,4,At),new Ot(4,5,16,8,At),new Ot(4,6,32,32,At),new Ot(4,4,16,16,St),new Ot(8,16,32,32,St),new Ot(8,16,128,128,St),new Ot(8,32,128,256,St),new Ot(32,128,258,1024,St),new Ot(32,258,258,4096,St)];function Mt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=lt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),pt(this.dyn_ltree),pt(this.dyn_dtree),pt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),pt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),pt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t)return 1;var e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Lt=function(t){if(Tt(t))return ht(t,et);t.total_in=t.total_out=0,t.data_type=ct;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,K(e),J},zt=function(t){var e,r=Lt(t);return r===J&&((e=t.state).window_size=2*e.w_size,pt(e.head),e.max_lazy_match=Rt[e.level].max_lazy,e.good_match=Rt[e.level].good_length,e.nice_match=Rt[e.level].nice_length,e.max_chain_length=Rt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r},Pt=function(t,e,r,n,i,o){if(!t)return et;var a=1;if(e===it&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==lt||n<8||n>15||e<0||e>9||o<0||o>ut||8===n&&1!==a)return ht(t,et);8===n&&(n=9);var s=new Mt;return t.state=s,s.strm=t,s.status=42,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=r,zt(t)},Ct=Pt,Nt=function(t,e){return Tt(t)||2!==t.state.wrap?et:(t.state.gzhead=e,J)},It=function(t,e){if(Tt(t)||e>$||e<0)return t?ht(t,et):et;var r=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===r.status&&e!==W)return ht(t,0===t.avail_out?nt:et);var n=r.last_flush;if(r.last_flush=e,0!==r.pending){if(wt(t),0===t.avail_out)return r.last_flush=-1,J}else if(0===t.avail_in&&dt(e)<=dt(n)&&e!==W)return ht(t,nt);if(666===r.status&&0!==t.avail_in)return ht(t,nt);if(42===r.status&&0===r.wrap&&(r.status=113),42===r.status){var i=lt+(r.w_bits-8<<4)<<8;if(i|=(r.strategy>=at||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(i|=32),mt(r,i+=31-i%31),0!==r.strstart&&(mt(r,t.adler>>>16),mt(r,65535&t.adler)),t.adler=1,r.status=113,wt(t),0!==r.pending)return r.last_flush=-1,J}if(57===r.status)if(t.adler=0,bt(r,31),bt(r,139),bt(r,8),r.gzhead)bt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),bt(r,255&r.gzhead.time),bt(r,r.gzhead.time>>8&255),bt(r,r.gzhead.time>>16&255),bt(r,r.gzhead.time>>24&255),bt(r,9===r.level?2:r.strategy>=at||r.level<2?4:0),bt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(bt(r,255&r.gzhead.extra.length),bt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=F(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(bt(r,0),bt(r,0),bt(r,0),bt(r,0),bt(r,0),bt(r,9===r.level?2:r.strategy>=at||r.level<2?4:0),bt(r,3),r.status=113,wt(t),0!==r.pending)return r.last_flush=-1,J;if(69===r.status){if(r.gzhead.extra){for(var o=r.pending,a=(65535&r.gzhead.extra.length)-r.gzindex;r.pending+a>r.pending_buf_size;){var s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>o&&(t.adler=F(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex+=s,wt(t),0!==r.pending)return r.last_flush=-1,J;o=0,a-=s}var u=new Uint8Array(r.gzhead.extra);r.pending_buf.set(u.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending+=a,r.gzhead.hcrc&&r.pending>o&&(t.adler=F(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){var c,l=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>l&&(t.adler=F(t.adler,r.pending_buf,r.pending-l,l)),wt(t),0!==r.pending)return r.last_flush=-1,J;l=0}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,bt(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>l&&(t.adler=F(t.adler,r.pending_buf,r.pending-l,l)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){var f,h=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>h&&(t.adler=F(t.adler,r.pending_buf,r.pending-h,h)),wt(t),0!==r.pending)return r.last_flush=-1,J;h=0}f=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,bt(r,f)}while(0!==f);r.gzhead.hcrc&&r.pending>h&&(t.adler=F(t.adler,r.pending_buf,r.pending-h,h))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(wt(t),0!==r.pending))return r.last_flush=-1,J;bt(r,255&t.adler),bt(r,t.adler>>8&255),t.adler=0}if(r.status=113,wt(t),0!==r.pending)return r.last_flush=-1,J}if(0!==t.avail_in||0!==r.lookahead||e!==H&&666!==r.status){var d=0===r.level?kt(r,e):r.strategy===at?function(t,e){for(var r;;){if(0===t.lookahead&&(Et(t),0===t.lookahead)){if(e===H)return 1;break}if(t.match_length=0,r=q(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(gt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===W?(gt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(gt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===st?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=258){if(Et(t),t.lookahead<=258&&e===H)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+258;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=258-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=q(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=q(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(gt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===W?(gt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(gt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Rt[r.level].func(r,e);if(3!==d&&4!==d||(r.status=666),1===d||3===d)return 0===t.avail_out&&(r.last_flush=-1),J;if(2===d&&(e===Q?V(r):e!==$&&(Z(r,0,0,!1),e===X&&(pt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),wt(t),0===t.avail_out))return r.last_flush=-1,J}return e!==W?J:r.wrap<=0?tt:(2===r.wrap?(bt(r,255&t.adler),bt(r,t.adler>>8&255),bt(r,t.adler>>16&255),bt(r,t.adler>>24&255),bt(r,255&t.total_in),bt(r,t.total_in>>8&255),bt(r,t.total_in>>16&255),bt(r,t.total_in>>24&255)):(mt(r,t.adler>>>16),mt(r,65535&t.adler)),wt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?J:tt)},Ut=function(t){if(Tt(t))return et;var e=t.state.status;return t.state=null,113===e?ht(t,rt):J},jt=function(t,e){var r=e.length;if(Tt(t))return et;var n=t.state,i=n.wrap;if(2===i||1===i&&42!==n.status||n.lookahead)return et;if(1===i&&(t.adler=j(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){0===i&&(pt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var o=new Uint8Array(n.w_size);o.set(e.subarray(r-n.w_size,r),0),e=o,r=n.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,Et(n);n.lookahead>=3;){var c=n.strstart,l=n.lookahead-2;do{n.ins_h=vt(n,n.ins_h,n.window[c+3-1]),n.prev[c&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=c,c++}while(--l);n.strstart=c,n.lookahead=2,Et(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=i,J};function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ft=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},Dt=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==Bt(r))throw new TypeError(r+"must be non-object");for(var n in r)Ft(r,n)&&(t[n]=r[n])}}return t},Gt=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i},Kt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Kt=!1}for(var Zt=new Uint8Array(256),Yt=0;Yt<256;Yt++)Zt[Yt]=Yt>=252?6:Yt>=248?5:Yt>=240?4:Yt>=224?3:Yt>=192?2:1;Zt[254]=Zt[254]=1;var qt=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},Vt=function(t,e){var r,n,i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));var o=new Array(2*i);for(n=0,r=0;r<i;){var a=t[r++];if(a<128)o[n++]=a;else{var s=Zt[a];if(s>4)o[n++]=65533,r+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&r<i;)a=a<<6|63&t[r++],s--;s>1?o[n++]=65533:a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|1023&a)}}}return function(t,e){if(e<65534&&t.subarray&&Kt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}(o,n)},Ht=function(t,e){(e=e||t.length)>t.length&&(e=t.length);for(var r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Zt[t[r]]>e?r:e},Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Xt=Object.prototype.toString,Wt=G.Z_NO_FLUSH,$t=G.Z_SYNC_FLUSH,Jt=G.Z_FULL_FLUSH,te=G.Z_FINISH,ee=G.Z_OK,re=G.Z_STREAM_END,ne=G.Z_DEFAULT_COMPRESSION,ie=G.Z_DEFAULT_STRATEGY,oe=G.Z_DEFLATED;function ae(t){this.options=Dt({level:ne,method:oe,chunkSize:16384,windowBits:15,memLevel:8,strategy:ie},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var r=Ct(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==ee)throw new Error(D[r]);if(e.header&&Nt(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?qt(e.dictionary):"[object ArrayBuffer]"===Xt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=jt(this.strm,n))!==ee)throw new Error(D[r]);this._dict_set=!0}}function se(t,e){var r=new ae(e);if(r.push(t,!0),r.err)throw r.msg||D[r.err];return r.result}ae.prototype.push=function(t,e){var r,n,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?te:Wt,"string"==typeof t?i.input=qt(t):"[object ArrayBuffer]"===Xt.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n===$t||n===Jt)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((r=It(i,n))===re)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=Ut(this.strm),this.onEnd(r),this.ended=!0,r===ee;if(0!==i.avail_out){if(n>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},ae.prototype.onData=function(t){this.chunks.push(t)},ae.prototype.onEnd=function(t){t===ee&&(this.result=Gt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ue=ae,ce=se,le=function(t,e){return(e=e||{}).raw=!0,se(t,e)},fe=function(t,e){return(e=e||{}).gzip=!0,se(t,e)},he=16209,de=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,_,v,w,g,b,m,y,x,E,k,A,S=t.state;r=t.next_in,k=t.input,n=r+(t.avail_in-5),i=t.next_out,A=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=S.dmax,u=S.wsize,c=S.whave,l=S.wnext,f=S.window,h=S.hold,d=S.bits,p=S.lencode,_=S.distcode,v=(1<<S.lenbits)-1,w=(1<<S.distbits)-1;t:do{d<15&&(h+=k[r++]<<d,d+=8,h+=k[r++]<<d,d+=8),g=p[h&v];e:for(;;){if(h>>>=b=g>>>24,d-=b,0==(b=g>>>16&255))A[i++]=65535&g;else{if(!(16&b)){if(0==(64&b)){g=p[(65535&g)+(h&(1<<b)-1)];continue e}if(32&b){S.mode=16191;break t}t.msg="invalid literal/length code",S.mode=he;break t}m=65535&g,(b&=15)&&(d<b&&(h+=k[r++]<<d,d+=8),m+=h&(1<<b)-1,h>>>=b,d-=b),d<15&&(h+=k[r++]<<d,d+=8,h+=k[r++]<<d,d+=8),g=_[h&w];r:for(;;){if(h>>>=b=g>>>24,d-=b,!(16&(b=g>>>16&255))){if(0==(64&b)){g=_[(65535&g)+(h&(1<<b)-1)];continue r}t.msg="invalid distance code",S.mode=he;break t}if(y=65535&g,d<(b&=15)&&(h+=k[r++]<<d,(d+=8)<b&&(h+=k[r++]<<d,d+=8)),(y+=h&(1<<b)-1)>s){t.msg="invalid distance too far back",S.mode=he;break t}if(h>>>=b,d-=b,y>(b=i-o)){if((b=y-b)>c&&S.sane){t.msg="invalid distance too far back",S.mode=he;break t}if(x=0,E=f,0===l){if(x+=u-b,b<m){m-=b;do{A[i++]=f[x++]}while(--b);x=i-y,E=A}}else if(l<b){if(x+=u+l-b,(b-=l)<m){m-=b;do{A[i++]=f[x++]}while(--b);if(x=0,l<m){m-=b=l;do{A[i++]=f[x++]}while(--b);x=i-y,E=A}}}else if(x+=l-b,b<m){m-=b;do{A[i++]=f[x++]}while(--b);x=i-y,E=A}for(;m>2;)A[i++]=E[x++],A[i++]=E[x++],A[i++]=E[x++],m-=3;m&&(A[i++]=E[x++],m>1&&(A[i++]=E[x++]))}else{x=i-y;do{A[i++]=A[x++],A[i++]=A[x++],A[i++]=A[x++],m-=3}while(m>2);m&&(A[i++]=A[x++],m>1&&(A[i++]=A[x++]))}break}}break}}while(r<n&&i<a);r-=m=d>>3,h&=(1<<(d-=m<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=i<a?a-i+257:257-(i-a),S.hold=h,S.bits=d},pe=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),_e=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ve=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),we=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),ge=function(t,e,r,n,i,o,a,s){var u,c,l,f,h,d,p,_,v,w=s.bits,g=0,b=0,m=0,y=0,x=0,E=0,k=0,A=0,S=0,O=0,R=null,M=new Uint16Array(16),T=new Uint16Array(16),L=null;for(g=0;g<=15;g++)M[g]=0;for(b=0;b<n;b++)M[e[r+b]]++;for(x=w,y=15;y>=1&&0===M[y];y--);if(x>y&&(x=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(m=1;m<y&&0===M[m];m++);for(x<m&&(x=m),A=1,g=1;g<=15;g++)if(A<<=1,(A-=M[g])<0)return-1;if(A>0&&(0===t||1!==y))return-1;for(T[1]=0,g=1;g<15;g++)T[g+1]=T[g]+M[g];for(b=0;b<n;b++)0!==e[r+b]&&(a[T[e[r+b]]++]=b);if(0===t?(R=L=a,d=20):1===t?(R=pe,L=_e,d=257):(R=ve,L=we,d=0),O=0,b=0,g=m,h=o,E=x,k=0,l=-1,f=(S=1<<x)-1,1===t&&S>852||2===t&&S>592)return 1;for(;;){p=g-k,a[b]+1<d?(_=0,v=a[b]):a[b]>=d?(_=L[a[b]-d],v=R[a[b]-d]):(_=96,v=0),u=1<<g-k,m=c=1<<E;do{i[h+(O>>k)+(c-=u)]=p<<24|_<<16|v|0}while(0!==c);for(u=1<<g-1;O&u;)u>>=1;if(0!==u?(O&=u-1,O+=u):O=0,b++,0==--M[g]){if(g===y)break;g=e[r+a[b]]}if(g>x&&(O&f)!==l){for(0===k&&(k=x),h+=m,A=1<<(E=g-k);E+k<y&&!((A-=M[E+k])<=0);)E++,A<<=1;if(S+=1<<E,1===t&&S>852||2===t&&S>592)return 1;i[l=O&f]=x<<24|E<<16|h-o|0}}return 0!==O&&(i[h+O]=g-k<<24|64<<16|0),s.bits=x,0},be=G.Z_FINISH,me=G.Z_BLOCK,ye=G.Z_TREES,xe=G.Z_OK,Ee=G.Z_STREAM_END,ke=G.Z_NEED_DICT,Ae=G.Z_STREAM_ERROR,Se=G.Z_DATA_ERROR,Oe=G.Z_MEM_ERROR,Re=G.Z_BUF_ERROR,Me=G.Z_DEFLATED,Te=16180,Le=16190,ze=16191,Pe=16199,Ce=16200,Ne=16209,Ie=function(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)};function Ue(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var je,Be,Fe=function(t){if(!t)return 1;var e=t.state;return!e||e.strm!==t||e.mode<Te||e.mode>16211?1:0},De=function(t){if(Fe(t))return Ae;var e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Te,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,xe},Ge=function(t){if(Fe(t))return Ae;var e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,De(t)},Ke=function(t,e){var r;if(Fe(t))return Ae;var n=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Ae:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Ge(t))},Ze=function(t,e){if(!t)return Ae;var r=new Ue;t.state=r,r.strm=t,r.window=null,r.mode=Te;var n=Ke(t,e);return n!==xe&&(t.state=null),n},Ye=!0,qe=function(t){if(Ye){je=new Int32Array(512),Be=new Int32Array(32);for(var e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ge(1,t.lens,0,288,je,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ge(2,t.lens,0,32,Be,0,t.work,{bits:5}),Ye=!1}t.lencode=je,t.lenbits=9,t.distcode=Be,t.distbits=5},Ve=function(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},He=Ge,Qe=Ze,Xe=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,_,v,w,g,b,m,y,x,E,k,A,S=0,O=new Uint8Array(4),R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Fe(t)||!t.output||!t.input&&0!==t.avail_in)return Ae;(r=t.state).mode===ze&&(r.mode=16192),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,f=s,h=u,E=xe;t:for(;;)switch(r.mode){case Te:if(0===r.wrap){r.mode=16192;break}for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0),c=0,l=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=Ne;break}if((15&c)!==Me){t.msg="unknown compression method",r.mode=Ne;break}if(l-=4,x=8+(15&(c>>>=4)),0===r.wbits&&(r.wbits=x),x>15||x>r.wbits){t.msg="invalid window size",r.mode=Ne;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&c?16189:ze,c=0,l=0;break;case 16181:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.flags=c,(255&r.flags)!==Me){t.msg="unknown compression method",r.mode=Ne;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=Ne;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0)),c=0,l=0,r.mode=16182;case 16182:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,O[2]=c>>>16&255,O[3]=c>>>24&255,r.check=F(r.check,O,4,0)),c=0,l=0,r.mode=16183;case 16183:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0)),c=0,l=0,r.mode=16184;case 16184:if(1024&r.flags){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(O[0]=255&c,O[1]=c>>>8&255,r.check=F(r.check,O,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+d),x)),512&r.flags&&4&r.wrap&&(r.check=F(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;d=0;do{x=n[o+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&4&r.wrap&&(r.check=F(r.check,n,d,o)),s-=d,o+=d,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break t;d=0;do{x=n[o+d++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&d<s);if(512&r.flags&&4&r.wrap&&(r.check=F(r.check,n,d,o)),s-=d,o+=d,x)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(4&r.wrap&&c!==(65535&r.check)){t.msg="header crc mismatch",r.mode=Ne;break}c=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=ze;break;case 16189:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}t.adler=r.check=Ie(c),c=0,l=0,r.mode=Le;case Le:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,ke;t.adler=r.check=1,r.mode=ze;case ze:if(e===me||e===ye)break t;case 16192:if(r.last){c>>>=7&l,l-=7&l,r.mode=16206;break}for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}switch(r.last=1&c,l-=1,3&(c>>>=1)){case 0:r.mode=16193;break;case 1:if(qe(r),r.mode=Pe,e===ye){c>>>=2,l-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg="invalid block type",r.mode=Ne}c>>>=2,l-=2;break;case 16193:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Ne;break}if(r.length=65535&c,c=0,l=0,r.mode=16194,e===ye)break t;case 16194:r.mode=16195;case 16195:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;i.set(n.subarray(o,o+d),a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=ze;break;case 16196:for(;l<14;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.nlen=257+(31&c),c>>>=5,l-=5,r.ndist=1+(31&c),c>>>=5,l-=5,r.ncode=4+(15&c),c>>>=4,l-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Ne;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.lens[R[r.have++]]=7&c,c>>>=3,l-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},E=ge(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid code lengths set",r.mode=Ne;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;w=(S=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,g=65535&S,!((v=S>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(g<16)c>>>=v,l-=v,r.lens[r.have++]=g;else{if(16===g){for(A=v+2;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c>>>=v,l-=v,0===r.have){t.msg="invalid bit length repeat",r.mode=Ne;break}x=r.lens[r.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===g){for(A=v+3;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=v,x=0,d=3+(7&(c>>>=v)),c>>>=3,l-=3}else{for(A=v+7;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=v,x=0,d=11+(127&(c>>>=v)),c>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Ne;break}for(;d--;)r.lens[r.have++]=x}}if(r.mode===Ne)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=Ne;break}if(r.lenbits=9,k={bits:r.lenbits},E=ge(1,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid literal/lengths set",r.mode=Ne;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},E=ge(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,E){t.msg="invalid distances set",r.mode=Ne;break}if(r.mode=Pe,e===ye)break t;case Pe:r.mode=Ce;case Ce:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,de(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,r.mode===ze&&(r.back=-1);break}for(r.back=0;w=(S=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,g=65535&S,!((v=S>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(w&&0==(240&w)){for(b=v,m=w,y=g;w=(S=r.lencode[y+((c&(1<<b+m)-1)>>b)])>>>16&255,g=65535&S,!(b+(v=S>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=b,l-=b,r.back+=b}if(c>>>=v,l-=v,r.back+=v,r.length=g,0===w){r.mode=16205;break}if(32&w){r.back=-1,r.mode=ze;break}if(64&w){t.msg="invalid literal/length code",r.mode=Ne;break}r.extra=15&w,r.mode=16201;case 16201:if(r.extra){for(A=r.extra;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;w=(S=r.distcode[c&(1<<r.distbits)-1])>>>16&255,g=65535&S,!((v=S>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(0==(240&w)){for(b=v,m=w,y=g;w=(S=r.distcode[y+((c&(1<<b+m)-1)>>b)])>>>16&255,g=65535&S,!(b+(v=S>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=b,l-=b,r.back+=b}if(c>>>=v,l-=v,r.back+=v,64&w){t.msg="invalid distance code",r.mode=Ne;break}r.offset=g,r.extra=15&w,r.mode=16203;case 16203:if(r.extra){for(A=r.extra;l<A;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Ne;break}r.mode=16204;case 16204:if(0===u)break t;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Ne;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),_=r.window}else _=i,p=a-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[a++]=_[p++]}while(--d);0===r.length&&(r.mode=Ce);break;case 16205:if(0===u)break t;i[a++]=r.length,u--,r.mode=Ce;break;case 16206:if(r.wrap){for(;l<32;){if(0===s)break t;s--,c|=n[o++]<<l,l+=8}if(h-=u,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?F(r.check,i,h,a-h):j(r.check,i,h,a-h)),h=u,4&r.wrap&&(r.flags?c:Ie(c))!==r.check){t.msg="incorrect data check",r.mode=Ne;break}c=0,l=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(4&r.wrap&&c!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=Ne;break}c=0,l=0}r.mode=16208;case 16208:E=Ee;break t;case Ne:E=Se;break t;case 16210:return Oe;default:return Ae}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,(r.wsize||h!==t.avail_out&&r.mode<Ne&&(r.mode<16206||e!==be))&&Ve(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,4&r.wrap&&h&&(t.adler=r.check=r.flags?F(r.check,i,h,t.next_out-h):j(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===ze?128:0)+(r.mode===Pe||16194===r.mode?256:0),(0===f&&0===h||e===be)&&E===xe&&(E=Re),E},We=function(t){if(Fe(t))return Ae;var e=t.state;return e.window&&(e.window=null),t.state=null,xe},$e=function(t,e){if(Fe(t))return Ae;var r=t.state;return 0==(2&r.wrap)?Ae:(r.head=e,e.done=!1,xe)},Je=function(t,e){var r,n=e.length;return Fe(t)||0!==(r=t.state).wrap&&r.mode!==Le?Ae:r.mode===Le&&j(1,e,n,0)!==r.check?Se:Ve(t,e,n,n)?(r.mode=16210,Oe):(r.havedict=1,xe)},tr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},er=Object.prototype.toString,rr=G.Z_NO_FLUSH,nr=G.Z_FINISH,ir=G.Z_OK,or=G.Z_STREAM_END,ar=G.Z_NEED_DICT,sr=G.Z_STREAM_ERROR,ur=G.Z_DATA_ERROR,cr=G.Z_MEM_ERROR;function lr(t){this.options=Dt({chunkSize:65536,windowBits:15,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var r=Qe(this.strm,e.windowBits);if(r!==ir)throw new Error(D[r]);if(this.header=new tr,$e(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=qt(e.dictionary):"[object ArrayBuffer]"===er.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Je(this.strm,e.dictionary))!==ir))throw new Error(D[r])}function fr(t,e){var r=new lr(e);if(r.push(t),r.err)throw r.msg||D[r.err];return r.result}lr.prototype.push=function(t,e){var r,n,i,o=this.strm,a=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?nr:rr,"[object ArrayBuffer]"===er.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(a),o.next_out=0,o.avail_out=a),(r=Xe(o,n))===ar&&s&&((r=Je(o,s))===ir?r=Xe(o,n):r===ur&&(r=ar));o.avail_in>0&&r===or&&o.state.wrap>0&&0!==t[o.next_in];)He(o),r=Xe(o,n);switch(r){case sr:case ur:case ar:case cr:return this.onEnd(r),this.ended=!0,!1}if(i=o.avail_out,o.next_out&&(0===o.avail_out||r===or))if("string"===this.options.to){var u=Ht(o.output,o.next_out),c=o.next_out-u,l=Vt(o.output,u);o.next_out=c,o.avail_out=a-c,c&&o.output.set(o.output.subarray(u,u+c),0),this.onData(l)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(r!==ir||0!==i){if(r===or)return r=We(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},lr.prototype.onData=function(t){this.chunks.push(t)},lr.prototype.onEnd=function(t){t===ir&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Gt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var hr=lr,dr=fr,pr=function(t,e){return(e=e||{}).raw=!0,fr(t,e)},_r=fr,vr=ue,wr=ce,gr=le,br=fe,mr=hr,yr=dr,xr=pr,Er=_r,kr=G,Ar={Deflate:vr,deflate:wr,deflateRaw:gr,gzip:br,Inflate:mr,inflate:yr,inflateRaw:xr,ungzip:Er,constants:kr};t.Deflate=vr,t.Inflate=mr,t.constants=kr,t.default=Ar,t.deflate=wr,t.deflateRaw=gr,t.gzip=br,t.inflate=yr,t.inflateRaw=xr,t.ungzip=Er,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,r){"use strict";var n=r(74),i=r(75),o=r(76),a=r(45),s=r(10),u=r(21);s(e,"__esModule",{value:!0}),e.default=void 0;var c=u(r(30)),l=u(r(141)),f=u(r(44)),h=r(48),d=r(73),p=r(47);function _(t,e){var r=void 0!==i&&t[o]||t["@@iterator"];if(!r){if(a(t)||(r=function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?n(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var s=0,u=function(){};return{s:u,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,f=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return l=t.done,t},e:function(t){f=!0,c=t},f:function(){try{l||null==r.return||r.return()}finally{if(f)throw c}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(){return this instanceof w?w.instance?w.instance:(this.retryCount=0,this.appKey="",this.appSecret="",this.rateReady=!1,this.fullSampleUsers=[],this.sampleRate=0,this.rules={},this._logger=void 0,void(w.instance=this)):new w}w.instance=null,w.getInstance=function(t){return w.instance||(w.instance=new w,w.instance._logger=t),w.instance},w.prototype.init=function(t,e){t&&e&&(this._logger.debug(h.EMAS_APM_LOG_KEY,"rate module init...."),this.appKey=t,this.appSecret=e,this._getRate())},w.prototype.calcSample=function(t,e,r){var n=this._filter(t,e,r);return n<=0?0:n>=1?1:Math.random()<=n?n:0},w.prototype._filter=function(t,e,r){if(this._logger.debug(h.EMAS_APM_LOG_KEY,"sample rate filter"),(0,p.arrayIncludes)(this.fullSampleUsers,r.userId))return this._logger.debug(h.EMAS_APM_LOG_KEY,"current userId is in full sample user."),1;var n=this.rules[t];if(n){var i=n.enable,o=void 0!==i&&i,a=n.sampleRate,s=n.conditional;if(o){var u,c=_(void 0===s?[]:s);try{for(c.s();!(u=c.n()).done;){var l=u.value;if(this._evaluateCondition(l.filter,e))return this._logger.debug(h.EMAS_APM_LOG_KEY,"event=[".concat(t,"] aciton is hit, rate = ").concat(l.sampleRate)),l.sampleRate}}catch(t){c.e(t)}finally{c.f()}return this._logger.debug(h.EMAS_APM_LOG_KEY,"event=[".concat(t,"] action is not hit, use current event rule base sample rate. rate = ").concat(a)),a}return this._logger.debug(h.EMAS_APM_LOG_KEY,"event=[".concat(t,"] is not enable")),0}return this._logger.debug(h.EMAS_APM_LOG_KEY,"no rules match event=[".concat(t,"]. use base sample rate.")),this.sampleRate},w.prototype._evaluateCondition=function(t,e){var r=this,n=t||{},i=n.op,o=void 0===i?"":i,a=n.filters,s=void 0===a?[]:a;switch(o){case"and":return s.every((function(t){return r._evaluateCondition(t,e)}));case"or":return s.some((function(t){return r._evaluateCondition(t,e)}));case"=":case"!=":case"in":case"not_in":case">":case">=":case"<":case"<=":case"regex":case"not_regex":return this._operation(t,e);default:return!1}},w.prototype._operation=function(t,e){var r=t.op,n=t.values,i=void 0===n?[]:n,o=t.key,a=void 0===o?"":o,s=(0,p.getValueByPath)(e,a);switch(r){case"=":return s==i[0];case"!=":return s!=i[0];case"in":return i.some((function(t){return s===t}));case"not_in":return i.every((function(t){return s!==t}));case">":return s>i[0];case">=":return s>=i[0];case"<":return s<i[0];case"<=":return s<=i[0];case"regex":try{return new RegExp(i[0]).test(s)}catch(t){return!1}case"not_regex":try{return!new RegExp(i[0]).test(s)}catch(t){return!1}default:return!1}},w.prototype._getRate=(0,f.default)(c.default.mark((function t(){var e,r,n,i,o,a,s,u,l,f,p,_,v=this;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._logger.debug(h.EMAS_APM_LOG_KEY,"begin to get sample rate......"),t.next=3,(0,d.getRate)(this.appKey,this.appSecret);case 3:if(e=t.sent,r=e.success,n=e.data,r){for(this._logger.debug(h.EMAS_APM_LOG_KEY,"get sample rate success"),i=n.sampleRate,o=n.fullSampleUsers,a=void 0===o?[]:o,s=n.rules,u=void 0===s?[]:s,this.fullSampleUsers=a,this.sampleRate=i,l=0;l<u.length;l++)f=u[l],p=(f||{}).eventId,(_=void 0===p?"":p)&&(this.rules[_]=f);this._finishCallBack()}else this._logger.debug(h.EMAS_APM_LOG_KEY,"get sample rate failed"),this.retryCount<h.RATE_MAX_RETRY_COUNT?setTimeout((function(){v.retryCount++,v._logger.debug(h.EMAS_APM_LOG_KEY,"retry get sample rate. -----".concat(v.retryCount)),v._getRate()}),h.RATE_RETRY_INTERVAL):(this._logger.debug(h.EMAS_APM_LOG_KEY,"use local sample rate"),this._safeguard());case 7:case"end":return t.stop()}}),t,this)}))),w.prototype._finishCallBack=function(){var t;this.rateReady=!0;try{t=new Event(h.EMAS_RATE_NOTIC_KEY)}catch(e){11===(0,p.getIEVersion)()&&(t=document.createEvent("Event")).initEvent(h.EMAS_RATE_NOTIC_KEY,!1,!1)}t&&window.dispatchEvent(t)},w.prototype._safeguard=function(){this._logger.debug(h.EMAS_APM_LOG_KEY,"get sample rate by safeguard"),this.fullSampleUsers=[],this.sampleRate=1,this.rules=(0,l.default)((0,l.default)((0,l.default)((0,l.default)((0,l.default)({},h.EVENTID.jsError,{eventId:"jsError",conditional:[],enable:!0,sampleRate:1}),h.EVENTID.whiteScreen,{eventId:"whiteScreen",conditional:[],enable:!0,sampleRate:1}),h.EVENTID.request,{eventId:"request",conditional:[],enable:!0,sampleRate:.2}),h.EVENTID.resource,{eventId:"resource",conditional:[],enable:!0,sampleRate:.2}),h.EVENTID.performance,{eventId:"performance",conditional:[],enable:!0,sampleRate:.1}),this._finishCallBack()};e.default=w},function(t,e,r){var n=r(27),i=r(142);t.exports=function(t,e,r){return(e=i(e))in t?n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(31).default,i=r(143);t.exports=function(t){var e=i(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(144),i=r(31).default;t.exports=function(t,e){if("object"!=i(t)||!t)return t;var r=t[n];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(24).f("toPrimitive")}]);
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@alicloud-emas/apm",
3
+ "description": "EMAS_APM",
4
+ "version": "1.0.0",
5
+ "author": "yn",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "aliyun",
9
+ "emas",
10
+ "apm"
11
+ ],
12
+ "files": [
13
+ "es",
14
+ "lib"
15
+ ],
16
+ "devDependencies": {
17
+ "@babel/cli": "^7.8.4",
18
+ "@babel/core": "^7.8.4",
19
+ "@babel/plugin-transform-runtime": "^7.8.3",
20
+ "@babel/polyfill": "^7.8.3",
21
+ "@babel/preset-env": "^7.4.5",
22
+ "@testing-library/jest-dom": "^6.1.4",
23
+ "babel-jest": "^29.7.0",
24
+ "babel-loader": "^8.0.6",
25
+ "jest": "^29.7.0",
26
+ "jest-environment-jsdom": "^29.7.0",
27
+ "webpack": "^4.35.0",
28
+ "webpack-bundle-analyzer": "^4.5.0",
29
+ "webpack-cli": "^3.3.5",
30
+ "webpack-dev-server": "^3.8.1"
31
+ },
32
+ "main": "lib/index.js",
33
+ "module": "es/index.js",
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
37
+ },
38
+ "scripts": {
39
+ "start": "webpack-dev-server --config webpack.config.dev.js",
40
+ "build": "tnpm run cjs_wb && tnpm run es_wb && tnpm run umd",
41
+ "umd": "webpack --config webpack.config.base.js",
42
+ "umd_watch": "webpack --watch --config webpack.config.base.js",
43
+ "cjs": "./node_modules/.bin/babel src --out-dir lib2 --config-file ./babel.config.common.js",
44
+ "es": "./node_modules/.bin/babel src --out-dir es2 --config-file ./babel.config.es.js",
45
+ "debug": "node --inspect-brk=5858 tnpm run cjs",
46
+ "analyzer": "webpack --config webpack.config.analyzer.js",
47
+ "test": "jest",
48
+ "prepack": "npm run build",
49
+ "prepublishOnly": "npm run prepack",
50
+ "cjs_wb": "webpack --config webpack.config.cjs.js",
51
+ "es_wb": "webpack --config webpack.config.es.js",
52
+ "_init": "./getPlugins.sh",
53
+ "prepublishOnly:tnpm": "node pre-tnpm-publish.js",
54
+ "postpublish:tnpm": "node post-tnpm-publish.js",
55
+ "tnpm_publish": "tnpm run prepublishOnly:tnpm && tnpm publish --force-publish-registry && tnpm run postpublish:tnpm"
56
+ },
57
+ "dependencies": {
58
+ "@babel/runtime-corejs2": "^7.8.4",
59
+ "crypto-js": "^4.2.0",
60
+ "pako": "^2.1.0",
61
+ "ua-parser-js": "^1.0.39"
62
+ }
63
+ }