mazey 3.3.5 → 3.3.6

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.
@@ -1,21 +1,21 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Test Page</title>
6
- <link rel="shortcut icon" type="image/png" href="https://mazey.cn/fav/logo-dark-circle-transparent-144x144.png">
7
- <style>
8
- .box {
9
- color: #333;
10
- }
11
- </style>
12
- </head>
13
- <body>
14
- <div class="container">
15
- <div class="box">
16
- <span>Box</span>
17
- </div>
18
- <div class="s"></div>
19
- </div>
20
- </body>
21
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Test Page</title>
6
+ <link rel="shortcut icon" type="image/png" href="https://mazey.cn/fav/logo-dark-circle-transparent-144x144.png">
7
+ <style>
8
+ .box {
9
+ color: #333;
10
+ }
11
+ </style>
12
+ </head>
13
+ <body>
14
+ <div class="container">
15
+ <div class="box">
16
+ <span>Box</span>
17
+ </div>
18
+ <div class="s"></div>
19
+ </div>
20
+ </body>
21
+ </html>
package/examples/index.ts CHANGED
@@ -1,50 +1,70 @@
1
- import {
2
- isNumber,
3
- getUrlParam,
4
- updateQueryParam,
5
- getHashQueryParam,
6
- getDomain,
7
- camelCaseToKebabCase,
8
- camelCase2Underscore,
9
- generateRndNum,
10
- isNonEmptyArray,
11
- getFileSize,
12
- isSupportWebp,
13
- genHashCode,
14
- debounce,
15
- } from '../src/index';
16
-
17
- // Sync
18
- console.log('Is Infinity number?', isNumber(Infinity, { isUnFiniteAsNumber: true }));
19
- console.log('Did ttt exist?', getHashQueryParam('ttt'));
20
- console.log('What is t3?', getUrlParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't3'));
21
- console.log('Can query param update successfully?', updateQueryParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't3', 'three'));
22
- console.log('What is domain?', getDomain('http://example.com/?t1=1&t2=2&t3=3&t4=4'));
23
- console.log('Get KebabCase:', camelCaseToKebabCase('aBC'));
24
- console.log('Get Underscore:', camelCase2Underscore('bBC'));
25
- console.log('Get a string with random number:', generateRndNum(7));
26
- console.log('Is non-empty array?', isNonEmptyArray(['a', 123]));
27
- console.log('Get file size:', getFileSize(2000));
28
- console.log('Generate a Hash from a string:', genHashCode('123'));
29
-
30
- // Async
31
- (async () => {
32
- console.log('Detect webp support:', await isSupportWebp());
33
-
34
- // debounce
35
- console.log('Test debounce - begin');
36
- const c = debounce(() => {
37
- console.log('Test debounce - fun myself');
38
- }, 3000, true);
39
- console.log('Test debounce - invoke first');
40
- c();
41
- setTimeout(() => {
42
- c();
43
- console.log('Test debounce - 2000ms second');
44
- }, 2000);
45
- setTimeout(() => {
46
- c();
47
- console.log('Test debounce - 10000ms third');
48
- }, 10000);
49
- console.log('Test debounce - end');
50
- })();
1
+ import {
2
+ isNumber,
3
+ getUrlParam,
4
+ updateQueryParam,
5
+ getHashQueryParam,
6
+ getDomain,
7
+ camelCaseToKebabCase,
8
+ camelCase2Underscore,
9
+ generateRndNum,
10
+ isNonEmptyArray,
11
+ getFileSize,
12
+ isSupportWebp,
13
+ genHashCode,
14
+ debounce
15
+ } from "../src/index";
16
+
17
+ // Sync
18
+ console.log(
19
+ "Is Infinity number?",
20
+ isNumber(Infinity, { isUnFiniteAsNumber: true })
21
+ );
22
+ console.log(
23
+ "Is NaN number?",
24
+ isNumber(NaN, { isNaNAsNumber: true, isUnFiniteAsNumber: true })
25
+ );
26
+ console.log("Did ttt exist?", getHashQueryParam("ttt"));
27
+ console.log(
28
+ "What is t3?",
29
+ getUrlParam("http://example.com/?t1=1&t2=2&t3=3&t4=4", "t3")
30
+ );
31
+ console.log(
32
+ "Can query param update successfully?",
33
+ updateQueryParam("http://example.com/?t1=1&t2=2&t3=3&t4=4", "t3", "three")
34
+ );
35
+ console.log(
36
+ "What is domain?",
37
+ getDomain("http://example.com/?t1=1&t2=2&t3=3&t4=4")
38
+ );
39
+ console.log("Get KebabCase:", camelCaseToKebabCase("aBC"));
40
+ console.log("Get Underscore:", camelCase2Underscore("bBC"));
41
+ console.log("Get a string with random number:", generateRndNum(7));
42
+ console.log("Is non-empty array?", isNonEmptyArray(["a", 123]));
43
+ console.log("Get file size:", getFileSize(2000));
44
+ console.log("Generate a Hash from a string:", genHashCode("123"));
45
+
46
+ // Async
47
+ (async () => {
48
+ console.log("Detect webp support:", await isSupportWebp());
49
+
50
+ // debounce
51
+ console.log("Test debounce - begin");
52
+ const c = debounce(
53
+ () => {
54
+ console.log("Test debounce - fun myself");
55
+ },
56
+ 3000,
57
+ true
58
+ );
59
+ console.log("Test debounce - invoke first");
60
+ c();
61
+ setTimeout(() => {
62
+ c();
63
+ console.log("Test debounce - 2000ms second");
64
+ }, 2000);
65
+ setTimeout(() => {
66
+ c();
67
+ console.log("Test debounce - 10000ms third");
68
+ }, 10000);
69
+ console.log("Test debounce - end");
70
+ })();
File without changes
package/lib/index.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * mazey v3.3.5
2
+ * mazey v3.3.6
3
3
  * (c) 2018-2022 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
6
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:a},s=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l={}.toString,f=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?d.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=function(e){return p(g(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!h(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!h(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},x=r.document,b=h(x)&&h(x.createElement),S=function(e){return b?x.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(e,t){if(e=v(e),t=m(t,!0),E)try{return O(e,t)}catch(e){}if(w(e,t))return s(!u.f.call(e,t),e[t])}},A=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},j=Object.defineProperty,R={f:i?j:function(e,t,n){if(A(e),t=m(t,!0),A(n),E)try{return j(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=i?function(e,t,n){return R.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},C=function(e,t){try{P(r,e,t)}catch(n){r[e]=t}return t},_=r["__core-js_shared__"]||C("__core-js_shared__",{}),M=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(e){return M.call(e)});var k,N,L,I=_.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(I(F)),B=t((function(e){(e.exports=function(e,t){return _[e]||(_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,$=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++U+$).toString(36)},V=B("keys"),G=function(e){return V[e]||(V[e]=q(e))},z={},H=r.WeakMap;if(D){var W=new H,K=W.get,J=W.has,Q=W.set;k=function(e,t){return Q.call(W,e,t),t},N=function(e){return K.call(W,e)||{}},L=function(e){return J.call(W,e)}}else{var X=G("state");z[X]=!0,k=function(e,t){return P(e,X,t),t},N=function(e){return w(e,X)?e[X]:{}},L=function(e){return w(e,X)}}var Y,Z,ee={set:k,get:N,has:L,enforce:function(e){return L(e)?N(e):k(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=N(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||P(i,"name",t),n(i).source=o.join("string"==typeof t?t:"")),e!==r?(c?!s&&e[t]&&(u=!0):delete e[t],u?e[t]=i:P(e,t,i)):u?e[t]=i:C(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||I(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[e][t]||r[e]&&r[e][t]},ie=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},ue=Math.min,se=function(e){return e>0?ue(ce(e),9007199254740991):0},le=Math.max,fe=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):fe(n,t)},pe=function(e){return function(t,n,r){var o,i=v(t),a=se(i.length),c=de(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ge={includes:pe(!0),indexOf:pe(!1)},ve=ge.indexOf,he=function(e,t){var n,r=v(e),o=0,i=[];for(n in r)!w(z,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ve(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=me.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(e){return he(e,ye)}},xe={f:Object.getOwnPropertySymbols},be=oe("Reflect","ownKeys")||function(e){var t=we.f(A(e)),n=xe.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=R.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||r(e,a,o(t,a))}},Ee=/#|\.prototype\./,Oe=function(e,t){var n=Ae[Te(e)];return n==Re||n!=je&&("function"==typeof t?o(t):!!t)},Te=Oe.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},Ae=Oe.data={},je=Oe.NATIVE="N",Re=Oe.POLYFILL="P",Pe=Oe,Ce=T.f,_e=function(e,t){var n,o,i,a,c,u=e.target,s=e.global,l=e.stat;if(n=s?r:l?r[u]||C(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Ce(n,o))&&c.value:n[o],!Pe(s?o:u+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Se(a,i)}(e.sham||i&&i.sham)&&P(a,"sham",!0),te(n,o,a,e)}},Me=Array.isArray||function(e){return"Array"==f(e)},ke=function(e){return Object(g(e))},Ne=function(e,t,n){var r=m(t);r in e?R.f(e,r,s(0,n)):e[r]=n},Le=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ie=Le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=B("wks"),De=r.Symbol,Be=Ie?De:De&&De.withoutSetter||q,Ue=function(e){return w(Fe,e)||(Le&&w(De,e)?Fe[e]=De[e]:Fe[e]=Be("Symbol."+e)),Fe[e]},$e=Ue("species"),qe=function(e,t){var n;return Me(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$e])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ve=oe("navigator","userAgent")||"",Ge=r.process,ze=Ge&&Ge.versions,He=ze&&ze.v8;He?Z=(Y=He.split("."))[0]+Y[1]:Ve&&(!(Y=Ve.match(/Edge\/(\d+)/))||Y[1]>=74)&&(Y=Ve.match(/Chrome\/(\d+)/))&&(Z=Y[1]);var We=Z&&+Z,Ke=Ue("species"),Je=function(e){return We>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=Ue("isConcatSpreadable"),Xe=We>=51||!o((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),Ye=Je("concat"),Ze=function(e){if(!h(e))return!1;var t=e[Qe];return void 0!==t?!!t:Me(e)};_e({target:"Array",proto:!0,forced:!Xe||!Ye},{concat:function(e){var t,n,r,o,i,a=ke(this),c=qe(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ze(i=-1===t?a:arguments[t])){if(u+(o=se(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&Ne(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ne(c,u++,i)}return c.length=u,c}});var et,tt=Object.keys||function(e){return he(e,me)},nt=i?Object.defineProperties:function(e,t){A(e);for(var n,r=tt(t),o=r.length,i=0;o>i;)R.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=G("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},ct=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ct=et?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=S("iframe")).style.display="none",rt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete ct.prototype[me[n]];return ct()};z[ot]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(it.prototype=A(e),n=new it,it.prototype=null,n[ot]=e):n=ct(),void 0===t?n:nt(n,t)},st=Ue("unscopables"),lt=Array.prototype;null==lt[st]&&R.f(lt,st,{configurable:!0,value:ut(null)});var ft=function(e){lt[st][e]=!0};_e({target:"Array",proto:!0},{fill:function(e){for(var t=ke(this),n=se(t.length),r=arguments.length,o=de(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:de(i,n);a>o;)t[o++]=e;return t}}),ft("fill");var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},gt=[].push,vt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,s,l){for(var f,d,g=ke(c),v=p(g),h=pt(u,s,3),m=se(v.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(f=v[y],y,g),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:gt.call(x,f)}else if(o)return!1;return i?-1:r||o?o:x}},ht={forEach:vt(0),map:vt(1),filter:vt(2),some:vt(3),every:vt(4),find:vt(5),findIndex:vt(6)},mt=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},yt=Object.defineProperty,wt={},xt=function(e){throw e},bt=function(e,t){if(w(wt,e))return wt[e];t||(t={});var n=[][e],r=!!w(t,"ACCESSORS")&&t.ACCESSORS,a=w(t,0)?t[0]:xt,c=w(t,1)?t[1]:void 0;return wt[e]=!!n&&!o((function(){if(r&&!i)return!0;var e={length:-1};r?yt(e,1,{enumerable:!0,get:xt}):e[1]=1,n.call(e,a,c)}))},St=ht.forEach,Et=mt("forEach"),Ot=bt("forEach"),Tt=Et&&Ot?[].forEach:function(e){return St(this,e,arguments.length>1?arguments[1]:void 0)};_e({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});var At=ge.includes;_e({target:"Array",proto:!0,forced:!bt("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return At(this,e,arguments.length>1?arguments[1]:void 0)}}),ft("includes");var jt=ge.indexOf,Rt=[].indexOf,Pt=!!Rt&&1/[1].indexOf(1,-0)<0,Ct=mt("indexOf"),_t=bt("indexOf",{ACCESSORS:!0,1:0});_e({target:"Array",proto:!0,forced:Pt||!Ct||!_t},{indexOf:function(e){return Pt?Rt.apply(this,arguments)||0:jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Mt=[].join,kt=p!=Object,Nt=mt("join",",");_e({target:"Array",proto:!0,forced:kt||!Nt},{join:function(e){return Mt.call(v(this),void 0===e?",":e)}});var Lt=function(e){return function(t,n,r,o){dt(n);var i=ke(t),a=p(i),c=se(i.length),u=e?c-1:0,s=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=s;break}if(u+=s,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=s)u in a&&(o=n(o,a[u],u,i));return o}},It={left:Lt(!1),right:Lt(!0)}.left,Ft=mt("reduce"),Dt=bt("reduce",{1:0});_e({target:"Array",proto:!0,forced:!Ft||!Dt},{reduce:function(e){return It(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Bt=Je("slice"),Ut=bt("slice",{ACCESSORS:!0,0:0,1:2}),$t=Ue("species"),qt=[].slice,Vt=Math.max;_e({target:"Array",proto:!0,forced:!Bt||!Ut},{slice:function(e,t){var n,r,o,i=v(this),a=se(i.length),c=de(e,a),u=de(void 0===t?a:t,a);if(Me(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0,n===Array||void 0===n))return qt.call(i,c,u);for(r=new(void 0===n?Array:n)(Vt(u-c,0)),o=0;c<u;c++,o++)c in i&&Ne(r,o,i[c]);return r.length=o,r}});var Gt=R.f,zt=Function.prototype,Ht=zt.toString,Wt=/^\s*function ([^ (]*)/;i&&!("name"in zt)&&Gt(zt,"name",{configurable:!0,get:function(){try{return Ht.call(this).match(Wt)[1]}catch(e){return""}}});var Kt="".repeat||function(e){var t=String(g(this)),n="",r=ce(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Jt=1..toFixed,Qt=Math.floor,Xt=function(e,t,n){return 0===t?n:t%2==1?Xt(e,t-1,n*e):Xt(e*e,t/2,n)};_e({target:"Number",proto:!0,forced:Jt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Jt.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=f(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",s="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=Qt(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=Qt(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+Kt.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Xt(2,69,1))-69)<0?i*Xt(2,-t,1):i/Xt(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Xt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),s=p()}else l(0,n),l(1<<-t,0),s=p()+Kt.call("0",a);return s=a>0?u+((o=s.length)<=a?"0."+Kt.call("0",a-o)+s:s.slice(0,o-a)+"."+s.slice(o-a)):u+s}});var Yt=Object.assign,Zt=Object.defineProperty,en=!Yt||o((function(){if(i&&1!==Yt({b:1},Yt(Zt({},"a",{enumerable:!0,get:function(){Zt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Yt({},e)[n]||tt(Yt({},t)).join("")!=r}))?function(e,t){for(var n=ke(e),r=arguments.length,o=1,a=xe.f,c=u.f;r>o;)for(var s,l=p(arguments[o++]),f=a?tt(l).concat(a(l)):tt(l),d=f.length,g=0;d>g;)s=f[g++],i&&!c.call(l,s)||(n[s]=l[s]);return n}:Yt;_e({target:"Object",stat:!0,forced:Object.assign!==en},{assign:en});var tn=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nn=G("IE_PROTO"),rn=Object.prototype,on=tn?Object.getPrototypeOf:function(e){return e=ke(e),w(e,nn)?e[nn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rn:null};_e({target:"Object",stat:!0,forced:o((function(){on(1)})),sham:!tn},{getPrototypeOf:function(e){return on(ke(e))}}),_e({target:"Object",stat:!0,forced:o((function(){tt(1)}))},{keys:function(e){return tt(ke(e))}});var an={};an[Ue("toStringTag")]="z";var cn="[object z]"===String(an),un=Ue("toStringTag"),sn="Arguments"==f(function(){return arguments}()),ln=cn?f:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),un))?n:sn?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},fn=cn?{}.toString:function(){return"[object "+ln(this)+"]"};cn||te(Object.prototype,"toString",fn,{unsafe:!0});var dn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",pn=RegExp("^"+dn+dn+"*"),gn=RegExp(dn+dn+"*$"),vn=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(pn,"")),2&e&&(n=n.replace(gn,"")),n}},hn={start:vn(1),end:vn(2),trim:vn(3)}.trim,mn=r.parseFloat,yn=1/mn("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0?function(e){var t=hn(String(e)),n=mn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:mn;_e({global:!0,forced:parseFloat!=yn},{parseFloat:yn});var wn=r.Promise,xn=R.f,bn=Ue("toStringTag"),Sn=Ue("species"),En=function(e){var t=oe(e),n=R.f;i&&t&&!t[Sn]&&n(t,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ue("iterator"),An=Array.prototype,jn=Ue("iterator"),Rn=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&A(o.call(e)),t}},Pn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,s,l,f,d,p,g=pt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[jn]||e["@@iterator"]||On[ln(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(On.Array===p||An[Tn]===p)){for(u=0,s=se(e.length);s>u;u++)if((l=o?g(A(d=e[u])[0],d[1]):g(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(f=a.next;!(d=f.call(a)).done;)if("object"==typeof(l=Rn(a,g,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),Cn=Ue("iterator"),_n=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){_n=!0}};kn[Cn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(e){}var Nn,Ln,In,Fn=Ue("species"),Dn=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[Fn])?t:dt(n)},Bn=/(iphone|ipod|ipad).*applewebkit/i.test(Ve),Un=r.location,$n=r.setImmediate,qn=r.clearImmediate,Vn=r.process,Gn=r.MessageChannel,zn=r.Dispatch,Hn=0,Wn={},Kn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},Jn=function(e){return function(){Kn(e)}},Qn=function(e){Kn(e.data)},Xn=function(e){r.postMessage(e+"",Un.protocol+"//"+Un.host)};$n&&qn||($n=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Hn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Nn(Hn),Hn},qn=function(e){delete Wn[e]},"process"==f(Vn)?Nn=function(e){Vn.nextTick(Jn(e))}:zn&&zn.now?Nn=function(e){zn.now(Jn(e))}:Gn&&!Bn?(In=(Ln=new Gn).port2,Ln.port1.onmessage=Qn,Nn=pt(In.postMessage,In,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Xn)||"file:"===Un.protocol?Nn="onreadystatechange"in S("script")?function(e){rt.appendChild(S("script")).onreadystatechange=function(){rt.removeChild(this),Kn(e)}}:function(e){setTimeout(Jn(e),0)}:(Nn=Xn,r.addEventListener("message",Qn,!1)));var Yn,Zn,er,tr,nr,rr,or,ir,ar={set:$n,clear:qn},cr=T.f,ur=ar.set,sr=r.MutationObserver||r.WebKitMutationObserver,lr=r.process,fr=r.Promise,dr="process"==f(lr),pr=cr(r,"queueMicrotask"),gr=pr&&pr.value;gr||(Yn=function(){var e,t;for(dr&&(e=lr.domain)&&e.exit();Zn;){t=Zn.fn,Zn=Zn.next;try{t()}catch(e){throw Zn?tr():er=void 0,e}}er=void 0,e&&e.enter()},dr?tr=function(){lr.nextTick(Yn)}:sr&&!Bn?(nr=!0,rr=document.createTextNode(""),new sr(Yn).observe(rr,{characterData:!0}),tr=function(){rr.data=nr=!nr}):fr&&fr.resolve?(or=fr.resolve(void 0),ir=or.then,tr=function(){ir.call(or,Yn)}):tr=function(){ur.call(r,Yn)});var vr,hr,mr,yr,wr,xr,br,Sr=gr||function(e){var t={fn:e,next:void 0};er&&(er.next=t),Zn||(Zn=t,tr()),er=t},Er=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=dt(t),this.reject=dt(n)},Or={f:function(e){return new Er(e)}},Tr=function(e,t){if(A(e),h(t)&&t.constructor===e)return t;var n=Or.f(e);return(0,n.resolve)(t),n.promise},Ar=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jr=ar.set,Rr=Ue("species"),Pr="Promise",Cr=ee.get,_r=ee.set,Mr=ee.getterFor(Pr),kr=wn,Nr=r.TypeError,Lr=r.document,Ir=r.process,Fr=oe("fetch"),Dr=Or.f,Br=Dr,Ur="process"==f(Ir),$r=!!(Lr&&Lr.createEvent&&r.dispatchEvent),qr=Pe(Pr,(function(){if(!(I(kr)!==String(kr))){if(66===We)return!0;if(!Ur&&"function"!=typeof PromiseRejectionEvent)return!0}if(We>=51&&/native code/.test(kr))return!1;var e=kr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Rr]=t,!(e.then((function(){}))instanceof t)})),Vr=qr||!function(e,t){if(!t&&!_n)return!1;var n=!1;try{var r={};r[Cn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){kr.all(e).catch((function(){}))})),Gr=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},zr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Sr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,s,l=r[a++],f=i?l.ok:l.fail,d=l.resolve,p=l.reject,g=l.domain;try{f?(i||(2===t.rejection&&Jr(e,t),t.rejection=1),!0===f?c=o:(g&&g.enter(),c=f(o),g&&(g.exit(),s=!0)),c===l.promise?p(Nr("Promise-chain cycle")):(u=Gr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){g&&!s&&g.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Wr(e,t)}))}},Hr=function(e,t,n){var o,i;$r?((o=Lr.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},(i=r["on"+e])?i(o):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(Kr(t)&&(n=Ar((function(){Ur?Ir.emit("unhandledRejection",r,e):Hr("unhandledrejection",e,r)})),t.rejection=Ur||Kr(t)?2:1,n.error))throw n.value}))},Kr=function(e){return 1!==e.rejection&&!e.parent},Jr=function(e,t){jr.call(r,(function(){Ur?Ir.emit("rejectionHandled",e):Hr("rejectionhandled",e,t.value)}))},Qr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Xr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,zr(e,t,!0))},Yr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Nr("Promise can't be resolved itself");var o=Gr(n);o?Sr((function(){var r={done:!1};try{o.call(n,Qr(Yr,e,r,t),Qr(Xr,e,r,t))}catch(n){Xr(e,r,n,t)}})):(t.value=n,t.state=1,zr(e,t,!1))}catch(n){Xr(e,{done:!1},n,t)}}};qr&&(kr=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,kr,Pr),dt(e),vr.call(this);var t=Cr(this);try{e(Qr(Yr,this,t),Qr(Xr,this,t))}catch(e){Xr(this,t,e)}},(vr=function(e){_r(this,{type:Pr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)te(e,r,t[r],n);return e}(kr.prototype,{then:function(e,t){var n=Mr(this),r=Dr(Dn(this,kr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Ur?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&zr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),hr=function(){var e=new vr,t=Cr(e);this.promise=e,this.resolve=Qr(Yr,e,t),this.reject=Qr(Xr,e,t)},Or.f=Dr=function(e){return e===kr||e===mr?new hr(e):Br(e)},"function"==typeof wn&&(yr=wn.prototype.then,te(wn.prototype,"then",(function(e,t){var n=this;return new kr((function(e,t){yr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Fr&&_e({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Tr(kr,Fr.apply(r,arguments))}}))),_e({global:!0,wrap:!0,forced:qr},{Promise:kr}),xr=Pr,br=!1,(wr=kr)&&!w(wr=br?wr:wr.prototype,bn)&&xn(wr,bn,{configurable:!0,value:xr}),En(Pr),mr=oe(Pr),_e({target:Pr,stat:!0,forced:qr},{reject:function(e){var t=Dr(this);return t.reject.call(void 0,e),t.promise}}),_e({target:Pr,stat:!0,forced:qr},{resolve:function(e){return Tr(this,e)}}),_e({target:Pr,stat:!0,forced:Vr},{all:function(e){var t=this,n=Dr(t),r=n.resolve,o=n.reject,i=Ar((function(){var n=dt(t.resolve),i=[],a=0,c=1;Pn(e,(function(e){var u=a++,s=!1;i.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Dr(t),r=n.reject,o=Ar((function(){var o=dt(t.resolve);Pn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A(n),function(e){if(!h(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),eo=Ue("match"),to=function(e){var t;return h(e)&&(void 0!==(t=e[eo])?!!t:"RegExp"==f(e))},no=function(){var e=A(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function ro(e,t){return RegExp(e,t)}var oo={UNSUPPORTED_Y:o((function(){var e=ro("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=ro("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},io=R.f,ao=we.f,co=ee.set,uo=Ue("match"),so=r.RegExp,lo=so.prototype,fo=/a/g,po=/a/g,go=new so(fo)!==fo,vo=oo.UNSUPPORTED_Y;if(i&&Pe("RegExp",!go||vo||o((function(){return po[uo]=!1,so(fo)!=fo||so(po)==po||"/a/i"!=so(fo,"i")})))){for(var ho=function(e,t){var n,r=this instanceof ho,o=to(e),i=void 0===t;if(!r&&o&&e.constructor===ho&&i)return e;go?o&&!i&&(e=e.source):e instanceof ho&&(i&&(t=no.call(e)),e=e.source),vo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,s,l,f=(a=go?new so(e,t):so(e,t),c=r?this:lo,u=ho,Zr&&"function"==typeof(s=c.constructor)&&s!==u&&h(l=s.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&co(f,{sticky:n}),f},mo=function(e){e in ho||io(ho,e,{configurable:!0,get:function(){return so[e]},set:function(t){so[e]=t}})},yo=ao(so),wo=0;yo.length>wo;)mo(yo[wo++]);lo.constructor=ho,ho.prototype=lo,te(r,"RegExp",ho)}En("RegExp");var xo=RegExp.prototype.exec,bo=String.prototype.replace,So=xo,Eo=function(){var e=/a/,t=/b*/g;return xo.call(e,"a"),xo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Oo=oo.UNSUPPORTED_Y||oo.BROKEN_CARET,To=void 0!==/()??/.exec("")[1];(Eo||To||Oo)&&(So=function(e){var t,n,r,o,i=this,a=Oo&&i.sticky,c=no.call(i),u=i.source,s=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,s++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(t=i.lastIndex),r=xo.call(a?n:i,l),a?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Eo&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),To&&r&&r.length>1&&bo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Ao=So;_e({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var jo=RegExp.prototype,Ro=jo.toString,Po=o((function(){return"/a/b"!=Ro.call({source:"a",flags:"b"})})),Co="toString"!=Ro.name;(Po||Co)&&te(RegExp.prototype,"toString",(function(){var e=A(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in jo)?no.call(e):n)}),{unsafe:!0});var _o=function(e){if(to(e))throw TypeError("The method doesn't accept regular expressions");return e},Mo=Ue("match");_e({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Mo]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(g(this)).indexOf(_o(e),arguments.length>1?arguments[1]:void 0)}}),_e({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var ko=Ue("species"),No=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Lo="$0"==="a".replace(/./,"$0"),Io=Ue("replace"),Fo=!!/./[Io]&&""===/./[Io]("a","$0"),Do=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bo=function(e,t,n,r){var i=Ue(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),c=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ko]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!c||"replace"===e&&(!No||!Lo||Fo)||"split"===e&&!Do){var u=/./[i],s=n(i,""[e],(function(e,t,n,r,o){return t.exec===Ao?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Lo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fo}),l=s[0],f=s[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&P(RegExp.prototype[i],"sham",!0)},Uo=function(e){return function(t,n){var r,o,i=String(g(t)),a=ce(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},$o={codeAt:Uo(!1),charAt:Uo(!0)}.charAt,qo=function(e,t,n){return t+(n?$o(e,t).length:1)},Vo=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==f(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ao.call(e,t)};Bo("match",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this);if(!o.global)return Vo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],s=0;null!==(c=Vo(o,i));){var l=String(c[0]);u[s]=l,""===l&&(o.lastIndex=qo(i,se(o.lastIndex),a)),s++}return 0===s?null:u}]}));var Go=Math.max,zo=Math.min,Ho=Math.floor,Wo=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ko=/\$([$&'`]|\d\d?)/g,Jo=function(e){return void 0===e?e:String(e)};Bo("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=g(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var s=A(e),l=String(this),f="function"==typeof r;f||(r=String(r));var d=s.global;if(d){var p=s.unicode;s.lastIndex=0}for(var g=[];;){var v=Vo(s,l);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(s.lastIndex=qo(l,se(s.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),x=Go(zo(ce(v.index),l.length),0),b=[],S=1;S<v.length;S++)b.push(Jo(v[S]));var E=v.groups;if(f){var O=[w].concat(b,x,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,x,b,E,r);x>=m&&(h+=l.slice(m,x)+T,m=x+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,s=Ko;return void 0!==i&&(i=ke(i),s=Wo),t.call(a,s,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var f=Ho(l/10);return 0===f?t:f<=u?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}));var Qo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Bo("search",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this),a=o.lastIndex;Qo(a,0)||(o.lastIndex=0);var c=Vo(o,i);return Qo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Xo=[].push,Yo=Math.min,Zo=!o((function(){return!RegExp(4294967295,"y")}));Bo("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(g(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!to(e))return t.call(r,e,o);for(var i,a,c,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,s+"g");(i=Ao.call(f,r))&&!((a=f.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Xo.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!c&&f.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=g(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=A(e),c=String(this),u=Dn(a,RegExp),s=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),f=new u(Zo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(f,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){f.lastIndex=Zo?g:0;var h,m=Vo(f,Zo?c:c.slice(g));if(null===m||(h=Yo(se(f.lastIndex+(Zo?0:g)),c.length))===p)g=qo(c,g,s);else{if(v.push(c.slice(p,g)),v.length===d)return v;for(var y=1;y<=m.length-1;y++)if(v.push(m[y]),v.length===d)return v;g=p=h}}return v.push(c.slice(p)),v}]}),!Zo);for(var ei in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ti=r[ei],ni=ti&&ti.prototype;if(ni&&ni.forEach!==Tt)try{P(ni,"forEach",Tt)}catch(e){ni.forEach=Tt}}var ri=t((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function oi(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ii(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function ai(e){return JSON.parse(JSON.stringify(e))}function ci(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ui(e,t){void 0===t&&(t={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},t),r=n.isNaNAsNumber,o=!0;return"number"!=typeof e&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(e)||(o=!1),!1===r&&isNaN(e)&&(o=!1),o}function si(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function li(){return Date.now?Date.now():(new Date).getTime()}function fi(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function di(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var s="";"webkit"===c?s=n(/applewebkit\/[\d._]+/g):"gecko"===c?s=n(/gecko\/[\d._]+/g):"presto"===c?s=n(/presto\/[\d._]+/g):"trident"===c&&(s=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var f="",d="";return t(/micromessenger/g)?(f="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(f="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?f="qq_app":t(/ucbrowser/g)?(f="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?f="360":t(/2345explorer/g)?(f="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?f="sougou":t(/lbbrowser/g)?f="liebao":t(/maxthon/g)?(f="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(f="bilibili"),Object.assign({engine:c,engineVs:s,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:f,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}exports.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},exports.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o=""+t.id,(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=ai(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],s=u[0],l=u[1];a>0&&(s=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(s,l)}var f=Array.prototype.concat.apply([],o);return Math.max.apply(Math,f)},exports.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=ai(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},exports.camelCase2Underscore=ii,exports.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},exports.cutCHSString=function(e,t,n){if(void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=li()-i;s<t&&s>=0?o=setTimeout(u,t-s):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];r=this,a=s,i=li();var f=n&&!o;return o||(o=setTimeout(u,t)),f&&(c=e.apply(r,a),r=a=null),c}},exports.deepCopyObject=ai,exports.doFn=si,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){return void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},exports.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n={type:"d"});var r=n.type;ui(e)||(e=new Date(e).getTime()),ui(t)||(t=new Date(t).getTime());var o=t-e,i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},exports.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,oi([e],o)):(r=console)[n].apply(r,o)}})),t},exports.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},exports.generateRndNum=ci,exports.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[li(),ci(e||3)];return t[0]+t[1]},exports.getBrowserInfo=di,exports.getCookie=fi,exports.getDomain=function(e,t){void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},exports.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},exports.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPerformance=function(e){var t,n;void 0===e&&(e=!0);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},v={os:s(),osVersion:l(),deviceType:f(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:g(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(v).forEach((function(e){ui(v[e])&&v[e]<0&&(v[e]=0)})),ui(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[ii(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function s(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function f(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function g(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},exports.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getUrlParam=function(e,t){var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},exports.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return Math.random()<e},exports.isJsonString=function(e){try{if("object"===ri(JSON.parse(e)))return!0}catch(e){}return!1},exports.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},exports.isNumber=ui,exports.isSafePWAEnv=function(){var e=di();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},exports.isSupportWebp=function(){return new Promise((function(e){var t=new Image;t.onload=function(){e(t.width>0&&t.height>0)},t.onerror=function(){e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){n=[e,t][0]})),i=function(){n(!0)},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){l(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function l(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():l(e,t,n)}),20)}return c?(a.onload=s,a.onerror=function(){s()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&s()},o},exports.loadScript=function(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,s=document.createElement("script"),l=document.getElementsByTagName("script")[0];return s.type="text/javascript",a&&(s.defer="defer"),r&&(s.id=r),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,si(o),si(c,!0))}:s.onload=function(){si(o),si(c,!0)},s.src=e,l&&l.parentNode.insertBefore(s,l),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},exports.mNow=li,exports.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},exports.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},exports.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==fi(e)&&fi(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===n.leading?0:li(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var f=li();u||!1!==n.leading||(u=f);var d=t-(f-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=f,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s,d)),c}},exports.updateQueryParam=function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},exports.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},exports.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
6
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:a},s=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l={}.toString,f=function(e){return l.call(e).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?d.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},v=function(e){return p(g(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!h(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!h(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!h(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},x=r.document,b=h(x)&&h(x.createElement),S=function(e){return b?x.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(e,t){if(e=v(e),t=m(t,!0),E)try{return O(e,t)}catch(e){}if(w(e,t))return s(!u.f.call(e,t),e[t])}},A=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},j=Object.defineProperty,R={f:i?j:function(e,t,n){if(A(e),t=m(t,!0),A(n),E)try{return j(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=i?function(e,t,n){return R.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},C=function(e,t){try{P(r,e,t)}catch(n){r[e]=t}return t},_=r["__core-js_shared__"]||C("__core-js_shared__",{}),M=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(e){return M.call(e)});var k,N,L,I=_.inspectSource,F=r.WeakMap,D="function"==typeof F&&/native code/.test(I(F)),B=t((function(e){(e.exports=function(e,t){return _[e]||(_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,$=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++U+$).toString(36)},V=B("keys"),G=function(e){return V[e]||(V[e]=q(e))},z={},H=r.WeakMap;if(D){var W=new H,K=W.get,J=W.has,Q=W.set;k=function(e,t){return Q.call(W,e,t),t},N=function(e){return K.call(W,e)||{}},L=function(e){return J.call(W,e)}}else{var X=G("state");z[X]=!0,k=function(e,t){return P(e,X,t),t},N=function(e){return w(e,X)?e[X]:{}},L=function(e){return w(e,X)}}var Y,Z,ee={set:k,get:N,has:L,enforce:function(e){return L(e)?N(e):k(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=N(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||P(i,"name",t),n(i).source=o.join("string"==typeof t?t:"")),e!==r?(c?!s&&e[t]&&(u=!0):delete e[t],u?e[t]=i:P(e,t,i)):u?e[t]=i:C(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||I(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[e][t]||r[e]&&r[e][t]},ie=Math.ceil,ae=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},ue=Math.min,se=function(e){return e>0?ue(ce(e),9007199254740991):0},le=Math.max,fe=Math.min,de=function(e,t){var n=ce(e);return n<0?le(n+t,0):fe(n,t)},pe=function(e){return function(t,n,r){var o,i=v(t),a=se(i.length),c=de(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ge={includes:pe(!0),indexOf:pe(!1)},ve=ge.indexOf,he=function(e,t){var n,r=v(e),o=0,i=[];for(n in r)!w(z,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ve(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=me.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(e){return he(e,ye)}},xe={f:Object.getOwnPropertySymbols},be=oe("Reflect","ownKeys")||function(e){var t=we.f(A(e)),n=xe.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=R.f,o=T.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||r(e,a,o(t,a))}},Ee=/#|\.prototype\./,Oe=function(e,t){var n=Ae[Te(e)];return n==Re||n!=je&&("function"==typeof t?o(t):!!t)},Te=Oe.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},Ae=Oe.data={},je=Oe.NATIVE="N",Re=Oe.POLYFILL="P",Pe=Oe,Ce=T.f,_e=function(e,t){var n,o,i,a,c,u=e.target,s=e.global,l=e.stat;if(n=s?r:l?r[u]||C(u,{}):(r[u]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(c=Ce(n,o))&&c.value:n[o],!Pe(s?o:u+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Se(a,i)}(e.sham||i&&i.sham)&&P(a,"sham",!0),te(n,o,a,e)}},Me=Array.isArray||function(e){return"Array"==f(e)},ke=function(e){return Object(g(e))},Ne=function(e,t,n){var r=m(t);r in e?R.f(e,r,s(0,n)):e[r]=n},Le=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ie=Le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=B("wks"),De=r.Symbol,Be=Ie?De:De&&De.withoutSetter||q,Ue=function(e){return w(Fe,e)||(Le&&w(De,e)?Fe[e]=De[e]:Fe[e]=Be("Symbol."+e)),Fe[e]},$e=Ue("species"),qe=function(e,t){var n;return Me(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$e])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ve=oe("navigator","userAgent")||"",Ge=r.process,ze=Ge&&Ge.versions,He=ze&&ze.v8;He?Z=(Y=He.split("."))[0]+Y[1]:Ve&&(!(Y=Ve.match(/Edge\/(\d+)/))||Y[1]>=74)&&(Y=Ve.match(/Chrome\/(\d+)/))&&(Z=Y[1]);var We=Z&&+Z,Ke=Ue("species"),Je=function(e){return We>=51||!o((function(){var t=[];return(t.constructor={})[Ke]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=Ue("isConcatSpreadable"),Xe=We>=51||!o((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),Ye=Je("concat"),Ze=function(e){if(!h(e))return!1;var t=e[Qe];return void 0!==t?!!t:Me(e)};_e({target:"Array",proto:!0,forced:!Xe||!Ye},{concat:function(e){var t,n,r,o,i,a=ke(this),c=qe(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ze(i=-1===t?a:arguments[t])){if(u+(o=se(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&Ne(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ne(c,u++,i)}return c.length=u,c}});var et,tt=Object.keys||function(e){return he(e,me)},nt=i?Object.defineProperties:function(e,t){A(e);for(var n,r=tt(t),o=r.length,i=0;o>i;)R.f(e,n=r[i++],t[n]);return e},rt=oe("document","documentElement"),ot=G("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},ct=function(){try{et=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ct=et?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(et):((t=S("iframe")).style.display="none",rt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete ct.prototype[me[n]];return ct()};z[ot]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(it.prototype=A(e),n=new it,it.prototype=null,n[ot]=e):n=ct(),void 0===t?n:nt(n,t)},st=Ue("unscopables"),lt=Array.prototype;null==lt[st]&&R.f(lt,st,{configurable:!0,value:ut(null)});var ft=function(e){lt[st][e]=!0};_e({target:"Array",proto:!0},{fill:function(e){for(var t=ke(this),n=se(t.length),r=arguments.length,o=de(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:de(i,n);a>o;)t[o++]=e;return t}}),ft("fill");var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},gt=[].push,vt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,s,l){for(var f,d,g=ke(c),v=p(g),h=pt(u,s,3),m=se(v.length),y=0,w=l||qe,x=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(f=v[y],y,g),e))if(t)x[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:gt.call(x,f)}else if(o)return!1;return i?-1:r||o?o:x}},ht={forEach:vt(0),map:vt(1),filter:vt(2),some:vt(3),every:vt(4),find:vt(5),findIndex:vt(6)},mt=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},yt=Object.defineProperty,wt={},xt=function(e){throw e},bt=function(e,t){if(w(wt,e))return wt[e];t||(t={});var n=[][e],r=!!w(t,"ACCESSORS")&&t.ACCESSORS,a=w(t,0)?t[0]:xt,c=w(t,1)?t[1]:void 0;return wt[e]=!!n&&!o((function(){if(r&&!i)return!0;var e={length:-1};r?yt(e,1,{enumerable:!0,get:xt}):e[1]=1,n.call(e,a,c)}))},St=ht.forEach,Et=mt("forEach"),Ot=bt("forEach"),Tt=Et&&Ot?[].forEach:function(e){return St(this,e,arguments.length>1?arguments[1]:void 0)};_e({target:"Array",proto:!0,forced:[].forEach!=Tt},{forEach:Tt});var At=ge.includes;_e({target:"Array",proto:!0,forced:!bt("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return At(this,e,arguments.length>1?arguments[1]:void 0)}}),ft("includes");var jt=ge.indexOf,Rt=[].indexOf,Pt=!!Rt&&1/[1].indexOf(1,-0)<0,Ct=mt("indexOf"),_t=bt("indexOf",{ACCESSORS:!0,1:0});_e({target:"Array",proto:!0,forced:Pt||!Ct||!_t},{indexOf:function(e){return Pt?Rt.apply(this,arguments)||0:jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Mt=[].join,kt=p!=Object,Nt=mt("join",",");_e({target:"Array",proto:!0,forced:kt||!Nt},{join:function(e){return Mt.call(v(this),void 0===e?",":e)}});var Lt=function(e){return function(t,n,r,o){dt(n);var i=ke(t),a=p(i),c=se(i.length),u=e?c-1:0,s=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=s;break}if(u+=s,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=s)u in a&&(o=n(o,a[u],u,i));return o}},It={left:Lt(!1),right:Lt(!0)}.left,Ft=mt("reduce"),Dt=bt("reduce",{1:0});_e({target:"Array",proto:!0,forced:!Ft||!Dt},{reduce:function(e){return It(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Bt=Je("slice"),Ut=bt("slice",{ACCESSORS:!0,0:0,1:2}),$t=Ue("species"),qt=[].slice,Vt=Math.max;_e({target:"Array",proto:!0,forced:!Bt||!Ut},{slice:function(e,t){var n,r,o,i=v(this),a=se(i.length),c=de(e,a),u=de(void 0===t?a:t,a);if(Me(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Me(n.prototype)?h(n)&&null===(n=n[$t])&&(n=void 0):n=void 0,n===Array||void 0===n))return qt.call(i,c,u);for(r=new(void 0===n?Array:n)(Vt(u-c,0)),o=0;c<u;c++,o++)c in i&&Ne(r,o,i[c]);return r.length=o,r}});var Gt=R.f,zt=Function.prototype,Ht=zt.toString,Wt=/^\s*function ([^ (]*)/;i&&!("name"in zt)&&Gt(zt,"name",{configurable:!0,get:function(){try{return Ht.call(this).match(Wt)[1]}catch(e){return""}}});var Kt="".repeat||function(e){var t=String(g(this)),n="",r=ce(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Jt=1..toFixed,Qt=Math.floor,Xt=function(e,t,n){return 0===t?n:t%2==1?Xt(e,t-1,n*e):Xt(e*e,t/2,n)};_e({target:"Number",proto:!0,forced:Jt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){Jt.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=f(e))throw TypeError("Incorrect invocation");return+e}(this),a=ce(e),c=[0,0,0,0,0,0],u="",s="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=Qt(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=Qt(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+Kt.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Xt(2,69,1))-69)<0?i*Xt(2,-t,1):i/Xt(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(Xt(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),l(1,1),d(2),s=p()}else l(0,n),l(1<<-t,0),s=p()+Kt.call("0",a);return s=a>0?u+((o=s.length)<=a?"0."+Kt.call("0",a-o)+s:s.slice(0,o-a)+"."+s.slice(o-a)):u+s}});var Yt=Object.assign,Zt=Object.defineProperty,en=!Yt||o((function(){if(i&&1!==Yt({b:1},Yt(Zt({},"a",{enumerable:!0,get:function(){Zt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Yt({},e)[n]||tt(Yt({},t)).join("")!=r}))?function(e,t){for(var n=ke(e),r=arguments.length,o=1,a=xe.f,c=u.f;r>o;)for(var s,l=p(arguments[o++]),f=a?tt(l).concat(a(l)):tt(l),d=f.length,g=0;d>g;)s=f[g++],i&&!c.call(l,s)||(n[s]=l[s]);return n}:Yt;_e({target:"Object",stat:!0,forced:Object.assign!==en},{assign:en});var tn=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nn=G("IE_PROTO"),rn=Object.prototype,on=tn?Object.getPrototypeOf:function(e){return e=ke(e),w(e,nn)?e[nn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rn:null};_e({target:"Object",stat:!0,forced:o((function(){on(1)})),sham:!tn},{getPrototypeOf:function(e){return on(ke(e))}}),_e({target:"Object",stat:!0,forced:o((function(){tt(1)}))},{keys:function(e){return tt(ke(e))}});var an={};an[Ue("toStringTag")]="z";var cn="[object z]"===String(an),un=Ue("toStringTag"),sn="Arguments"==f(function(){return arguments}()),ln=cn?f:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),un))?n:sn?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},fn=cn?{}.toString:function(){return"[object "+ln(this)+"]"};cn||te(Object.prototype,"toString",fn,{unsafe:!0});var dn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",pn=RegExp("^"+dn+dn+"*"),gn=RegExp(dn+dn+"*$"),vn=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(pn,"")),2&e&&(n=n.replace(gn,"")),n}},hn={start:vn(1),end:vn(2),trim:vn(3)}.trim,mn=r.parseFloat,yn=1/mn("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0?function(e){var t=hn(String(e)),n=mn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:mn;_e({global:!0,forced:parseFloat!=yn},{parseFloat:yn});var wn=r.Promise,xn=R.f,bn=Ue("toStringTag"),Sn=Ue("species"),En=function(e){var t=oe(e),n=R.f;i&&t&&!t[Sn]&&n(t,Sn,{configurable:!0,get:function(){return this}})},On={},Tn=Ue("iterator"),An=Array.prototype,jn=Ue("iterator"),Rn=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&A(o.call(e)),t}},Pn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,s,l,f,d,p,g=pt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[jn]||e["@@iterator"]||On[ln(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(On.Array===p||An[Tn]===p)){for(u=0,s=se(e.length);s>u;u++)if((l=o?g(A(d=e[u])[0],d[1]):g(e[u]))&&l instanceof t)return l;return new t(!1)}a=c.call(e)}for(f=a.next;!(d=f.call(a)).done;)if("object"==typeof(l=Rn(a,g,d.value,o))&&l&&l instanceof t)return l;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),Cn=Ue("iterator"),_n=!1;try{var Mn=0,kn={next:function(){return{done:!!Mn++}},return:function(){_n=!0}};kn[Cn]=function(){return this},Array.from(kn,(function(){throw 2}))}catch(e){}var Nn,Ln,In,Fn=Ue("species"),Dn=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[Fn])?t:dt(n)},Bn=/(iphone|ipod|ipad).*applewebkit/i.test(Ve),Un=r.location,$n=r.setImmediate,qn=r.clearImmediate,Vn=r.process,Gn=r.MessageChannel,zn=r.Dispatch,Hn=0,Wn={},Kn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},Jn=function(e){return function(){Kn(e)}},Qn=function(e){Kn(e.data)},Xn=function(e){r.postMessage(e+"",Un.protocol+"//"+Un.host)};$n&&qn||($n=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Hn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Nn(Hn),Hn},qn=function(e){delete Wn[e]},"process"==f(Vn)?Nn=function(e){Vn.nextTick(Jn(e))}:zn&&zn.now?Nn=function(e){zn.now(Jn(e))}:Gn&&!Bn?(In=(Ln=new Gn).port2,Ln.port1.onmessage=Qn,Nn=pt(In.postMessage,In,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Xn)||"file:"===Un.protocol?Nn="onreadystatechange"in S("script")?function(e){rt.appendChild(S("script")).onreadystatechange=function(){rt.removeChild(this),Kn(e)}}:function(e){setTimeout(Jn(e),0)}:(Nn=Xn,r.addEventListener("message",Qn,!1)));var Yn,Zn,er,tr,nr,rr,or,ir,ar={set:$n,clear:qn},cr=T.f,ur=ar.set,sr=r.MutationObserver||r.WebKitMutationObserver,lr=r.process,fr=r.Promise,dr="process"==f(lr),pr=cr(r,"queueMicrotask"),gr=pr&&pr.value;gr||(Yn=function(){var e,t;for(dr&&(e=lr.domain)&&e.exit();Zn;){t=Zn.fn,Zn=Zn.next;try{t()}catch(e){throw Zn?tr():er=void 0,e}}er=void 0,e&&e.enter()},dr?tr=function(){lr.nextTick(Yn)}:sr&&!Bn?(nr=!0,rr=document.createTextNode(""),new sr(Yn).observe(rr,{characterData:!0}),tr=function(){rr.data=nr=!nr}):fr&&fr.resolve?(or=fr.resolve(void 0),ir=or.then,tr=function(){ir.call(or,Yn)}):tr=function(){ur.call(r,Yn)});var vr,hr,mr,yr,wr,xr,br,Sr=gr||function(e){var t={fn:e,next:void 0};er&&(er.next=t),Zn||(Zn=t,tr()),er=t},Er=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=dt(t),this.reject=dt(n)},Or={f:function(e){return new Er(e)}},Tr=function(e,t){if(A(e),h(t)&&t.constructor===e)return t;var n=Or.f(e);return(0,n.resolve)(t),n.promise},Ar=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jr=ar.set,Rr=Ue("species"),Pr="Promise",Cr=ee.get,_r=ee.set,Mr=ee.getterFor(Pr),kr=wn,Nr=r.TypeError,Lr=r.document,Ir=r.process,Fr=oe("fetch"),Dr=Or.f,Br=Dr,Ur="process"==f(Ir),$r=!!(Lr&&Lr.createEvent&&r.dispatchEvent),qr=Pe(Pr,(function(){if(!(I(kr)!==String(kr))){if(66===We)return!0;if(!Ur&&"function"!=typeof PromiseRejectionEvent)return!0}if(We>=51&&/native code/.test(kr))return!1;var e=kr.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Rr]=t,!(e.then((function(){}))instanceof t)})),Vr=qr||!function(e,t){if(!t&&!_n)return!1;var n=!1;try{var r={};r[Cn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){kr.all(e).catch((function(){}))})),Gr=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},zr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Sr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,s,l=r[a++],f=i?l.ok:l.fail,d=l.resolve,p=l.reject,g=l.domain;try{f?(i||(2===t.rejection&&Jr(e,t),t.rejection=1),!0===f?c=o:(g&&g.enter(),c=f(o),g&&(g.exit(),s=!0)),c===l.promise?p(Nr("Promise-chain cycle")):(u=Gr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){g&&!s&&g.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Wr(e,t)}))}},Hr=function(e,t,n){var o,i;$r?((o=Lr.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},(i=r["on"+e])?i(o):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wr=function(e,t){jr.call(r,(function(){var n,r=t.value;if(Kr(t)&&(n=Ar((function(){Ur?Ir.emit("unhandledRejection",r,e):Hr("unhandledrejection",e,r)})),t.rejection=Ur||Kr(t)?2:1,n.error))throw n.value}))},Kr=function(e){return 1!==e.rejection&&!e.parent},Jr=function(e,t){jr.call(r,(function(){Ur?Ir.emit("rejectionHandled",e):Hr("rejectionhandled",e,t.value)}))},Qr=function(e,t,n,r){return function(o){e(t,n,o,r)}},Xr=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,zr(e,t,!0))},Yr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Nr("Promise can't be resolved itself");var o=Gr(n);o?Sr((function(){var r={done:!1};try{o.call(n,Qr(Yr,e,r,t),Qr(Xr,e,r,t))}catch(n){Xr(e,r,n,t)}})):(t.value=n,t.state=1,zr(e,t,!1))}catch(n){Xr(e,{done:!1},n,t)}}};qr&&(kr=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,kr,Pr),dt(e),vr.call(this);var t=Cr(this);try{e(Qr(Yr,this,t),Qr(Xr,this,t))}catch(e){Xr(this,t,e)}},(vr=function(e){_r(this,{type:Pr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)te(e,r,t[r],n);return e}(kr.prototype,{then:function(e,t){var n=Mr(this),r=Dr(Dn(this,kr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Ur?Ir.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&zr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),hr=function(){var e=new vr,t=Cr(e);this.promise=e,this.resolve=Qr(Yr,e,t),this.reject=Qr(Xr,e,t)},Or.f=Dr=function(e){return e===kr||e===mr?new hr(e):Br(e)},"function"==typeof wn&&(yr=wn.prototype.then,te(wn.prototype,"then",(function(e,t){var n=this;return new kr((function(e,t){yr.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Fr&&_e({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Tr(kr,Fr.apply(r,arguments))}}))),_e({global:!0,wrap:!0,forced:qr},{Promise:kr}),xr=Pr,br=!1,(wr=kr)&&!w(wr=br?wr:wr.prototype,bn)&&xn(wr,bn,{configurable:!0,value:xr}),En(Pr),mr=oe(Pr),_e({target:Pr,stat:!0,forced:qr},{reject:function(e){var t=Dr(this);return t.reject.call(void 0,e),t.promise}}),_e({target:Pr,stat:!0,forced:qr},{resolve:function(e){return Tr(this,e)}}),_e({target:Pr,stat:!0,forced:Vr},{all:function(e){var t=this,n=Dr(t),r=n.resolve,o=n.reject,i=Ar((function(){var n=dt(t.resolve),i=[],a=0,c=1;Pn(e,(function(e){var u=a++,s=!1;i.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Dr(t),r=n.reject,o=Ar((function(){var o=dt(t.resolve);Pn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A(n),function(e){if(!h(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),eo=Ue("match"),to=function(e){var t;return h(e)&&(void 0!==(t=e[eo])?!!t:"RegExp"==f(e))},no=function(){var e=A(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function ro(e,t){return RegExp(e,t)}var oo={UNSUPPORTED_Y:o((function(){var e=ro("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=ro("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},io=R.f,ao=we.f,co=ee.set,uo=Ue("match"),so=r.RegExp,lo=so.prototype,fo=/a/g,po=/a/g,go=new so(fo)!==fo,vo=oo.UNSUPPORTED_Y;if(i&&Pe("RegExp",!go||vo||o((function(){return po[uo]=!1,so(fo)!=fo||so(po)==po||"/a/i"!=so(fo,"i")})))){for(var ho=function(e,t){var n,r=this instanceof ho,o=to(e),i=void 0===t;if(!r&&o&&e.constructor===ho&&i)return e;go?o&&!i&&(e=e.source):e instanceof ho&&(i&&(t=no.call(e)),e=e.source),vo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,s,l,f=(a=go?new so(e,t):so(e,t),c=r?this:lo,u=ho,Zr&&"function"==typeof(s=c.constructor)&&s!==u&&h(l=s.prototype)&&l!==u.prototype&&Zr(a,l),a);return vo&&n&&co(f,{sticky:n}),f},mo=function(e){e in ho||io(ho,e,{configurable:!0,get:function(){return so[e]},set:function(t){so[e]=t}})},yo=ao(so),wo=0;yo.length>wo;)mo(yo[wo++]);lo.constructor=ho,ho.prototype=lo,te(r,"RegExp",ho)}En("RegExp");var xo=RegExp.prototype.exec,bo=String.prototype.replace,So=xo,Eo=function(){var e=/a/,t=/b*/g;return xo.call(e,"a"),xo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Oo=oo.UNSUPPORTED_Y||oo.BROKEN_CARET,To=void 0!==/()??/.exec("")[1];(Eo||To||Oo)&&(So=function(e){var t,n,r,o,i=this,a=Oo&&i.sticky,c=no.call(i),u=i.source,s=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,s++),n=new RegExp("^(?:"+u+")",c)),To&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Eo&&(t=i.lastIndex),r=xo.call(a?n:i,l),a?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Eo&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),To&&r&&r.length>1&&bo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Ao=So;_e({target:"RegExp",proto:!0,forced:/./.exec!==Ao},{exec:Ao});var jo=RegExp.prototype,Ro=jo.toString,Po=o((function(){return"/a/b"!=Ro.call({source:"a",flags:"b"})})),Co="toString"!=Ro.name;(Po||Co)&&te(RegExp.prototype,"toString",(function(){var e=A(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in jo)?no.call(e):n)}),{unsafe:!0});var _o=function(e){if(to(e))throw TypeError("The method doesn't accept regular expressions");return e},Mo=Ue("match");_e({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Mo]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(g(this)).indexOf(_o(e),arguments.length>1?arguments[1]:void 0)}});var ko=Ue("species"),No=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Lo="$0"==="a".replace(/./,"$0"),Io=Ue("replace"),Fo=!!/./[Io]&&""===/./[Io]("a","$0"),Do=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bo=function(e,t,n,r){var i=Ue(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),c=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ko]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!c||"replace"===e&&(!No||!Lo||Fo)||"split"===e&&!Do){var u=/./[i],s=n(i,""[e],(function(e,t,n,r,o){return t.exec===Ao?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Lo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fo}),l=s[0],f=s[1];te(String.prototype,e,l),te(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&P(RegExp.prototype[i],"sham",!0)},Uo=function(e){return function(t,n){var r,o,i=String(g(t)),a=ce(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},$o={codeAt:Uo(!1),charAt:Uo(!0)}.charAt,qo=function(e,t,n){return t+(n?$o(e,t).length:1)},Vo=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==f(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ao.call(e,t)};Bo("match",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this);if(!o.global)return Vo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],s=0;null!==(c=Vo(o,i));){var l=String(c[0]);u[s]=l,""===l&&(o.lastIndex=qo(i,se(o.lastIndex),a)),s++}return 0===s?null:u}]}));var Go=Math.max,zo=Math.min,Ho=Math.floor,Wo=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ko=/\$([$&'`]|\d\d?)/g,Jo=function(e){return void 0===e?e:String(e)};Bo("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=g(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var s=A(e),l=String(this),f="function"==typeof r;f||(r=String(r));var d=s.global;if(d){var p=s.unicode;s.lastIndex=0}for(var g=[];;){var v=Vo(s,l);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(s.lastIndex=qo(l,se(s.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),x=Go(zo(ce(v.index),l.length),0),b=[],S=1;S<v.length;S++)b.push(Jo(v[S]));var E=v.groups;if(f){var O=[w].concat(b,x,l);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,l,x,b,E,r);x>=m&&(h+=l.slice(m,x)+T,m=x+w.length)}return h+l.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,s=Ko;return void 0!==i&&(i=ke(i),s=Wo),t.call(a,s,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>u){var f=Ho(l/10);return 0===f?t:f<=u?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}));var Qo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Bo("search",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this),a=o.lastIndex;Qo(a,0)||(o.lastIndex=0);var c=Vo(o,i);return Qo(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Xo=[].push,Yo=Math.min,Zo=!o((function(){return!RegExp(4294967295,"y")}));Bo("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(g(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!to(e))return t.call(r,e,o);for(var i,a,c,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,s+"g");(i=Ao.call(f,r))&&!((a=f.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&Xo.apply(u,i.slice(1)),c=i[0].length,l=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!c&&f.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=g(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=A(e),c=String(this),u=Dn(a,RegExp),s=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zo?"y":"g"),f=new u(Zo?a:"^(?:"+a.source+")",l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===c.length)return null===Vo(f,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){f.lastIndex=Zo?g:0;var h,m=Vo(f,Zo?c:c.slice(g));if(null===m||(h=Yo(se(f.lastIndex+(Zo?0:g)),c.length))===p)g=qo(c,g,s);else{if(v.push(c.slice(p,g)),v.length===d)return v;for(var y=1;y<=m.length-1;y++)if(v.push(m[y]),v.length===d)return v;g=p=h}}return v.push(c.slice(p)),v}]}),!Zo);for(var ei in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ti=r[ei],ni=ti&&ti.prototype;if(ni&&ni.forEach!==Tt)try{P(ni,"forEach",Tt)}catch(e){ni.forEach=Tt}}var ri=t((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function oi(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function ii(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function ai(e){return JSON.parse(JSON.stringify(e))}function ci(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ui(e,t){void 0===t&&(t={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},t),r=n.isNaNAsNumber,o=!0;return"number"!=typeof e&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(e)||(o=!1),!1===r&&isNaN(e)&&(o=!1),o}function si(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function li(){return Date.now?Date.now():(new Date).getTime()}function fi(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function di(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var s="";"webkit"===c?s=n(/applewebkit\/[\d._]+/g):"gecko"===c?s=n(/gecko\/[\d._]+/g):"presto"===c?s=n(/presto\/[\d._]+/g):"trident"===c&&(s=n(/trident\/[\d._]+/g));var l="";"chrome"===u?l=n(/chrome\/[\d._]+/g):"safari"===u?l=n(/version\/[\d._]+/g):"firefox"===u?l=n(/firefox\/[\d._]+/g):"opera"===u?l=n(/opr\/[\d._]+/g):"iexplore"===u?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(l=n(/edge\/[\d._]+/g));var f="",d="";return t(/micromessenger/g)?(f="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(f="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?f="qq_app":t(/ucbrowser/g)?(f="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?f="360":t(/2345explorer/g)?(f="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?f="sougou":t(/lbbrowser/g)?f="liebao":t(/maxthon/g)?(f="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(f="bilibili"),Object.assign({engine:c,engineVs:s,platform:a,supporter:u,supporterVs:l,system:r,systemVs:i},{shell:f,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}exports.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},exports.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o=""+t.id,(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=ai(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],s=u[0],l=u[1];a>0&&(s=o[i][a-1]),i>0&&(l=o[i-1][a]),o[i][a]=Math.max(s,l)}var f=Array.prototype.concat.apply([],o);return Math.max.apply(Math,f)},exports.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=ai(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},exports.camelCase2Underscore=ii,exports.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},exports.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},exports.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},exports.cutCHSString=function(e,t,n){if(void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},exports.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=li()-i;s<t&&s>=0?o=setTimeout(u,t-s):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];r=this,a=s,i=li();var f=n&&!o;return o||(o=setTimeout(u,t)),f&&(c=e.apply(r,a),r=a=null),c}},exports.deepCopyObject=ai,exports.doFn=si,exports.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},exports.floatToPercent=function(e,t){return void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},exports.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n={type:"d"});var r=n.type;ui(e)||(e=new Date(e).getTime()),ui(t)||(t=new Date(t).getTime());var o=t-e,i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},exports.genCustomConsole=function(e){void 0===e&&(e="");var t=Object.create(null);return["log","info","warn","error"].forEach((function(n){t[n]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e?(t=console)[n].apply(t,oi([e],o)):(r=console)[n].apply(r,o)}})),t},exports.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},exports.generateRndNum=ci,exports.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[li(),ci(e||3)];return t[0]+t[1]},exports.getBrowserInfo=di,exports.getCookie=fi,exports.getDomain=function(e,t){void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},exports.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},exports.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getPerformance=function(e){var t,n;void 0===e&&(e=!0);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},v={os:s(),osVersion:l(),deviceType:f(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:g(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(v).forEach((function(e){ui(v[e])&&v[e]<0&&(v[e]=0)})),ui(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[ii(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function s(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function l(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function f(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function g(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},exports.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},exports.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},exports.getUrlParam=function(e,t){var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},exports.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},exports.inRate=function(e){return Math.random()<e},exports.isJsonString=function(e){try{if("object"===ri(JSON.parse(e)))return!0}catch(e){}return!1},exports.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},exports.isNumber=ui,exports.isSafePWAEnv=function(){var e=di();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},exports.isSupportWebp=function(){return new Promise((function(e){var t=new Image;t.onload=function(){e(t.width>0&&t.height>0)},t.onerror=function(){e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){n=[e,t][0]})),i=function(){n(!0)},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){l(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function l(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():l(e,t,n)}),20)}return c?(a.onload=s,a.onerror=function(){s()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&s()},o},exports.loadScript=function(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,s=document.createElement("script"),l=document.getElementsByTagName("script")[0];return s.type="text/javascript",a&&(s.defer="defer"),r&&(s.id=r),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,si(o),si(c,!0))}:s.onload=function(){si(o),si(c,!0)},s.src=e,l&&l.parentNode.insertBefore(s,l),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},exports.mNow=li,exports.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},exports.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},exports.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},exports.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==fi(e)&&fi(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},exports.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},exports.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},exports.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],s=function(){u=!1===n.leading?0:li(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var f=li();u||!1!==n.leading||(u=f);var d=t-(f-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=f,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s,d)),c}},exports.updateQueryParam=function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},exports.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},exports.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i};
package/lib/index.d.ts CHANGED
File without changes
File without changes