mazey 3.8.1 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -2
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +32 -19
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +61 -24
- package/lib/mazey.min.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -84,6 +84,7 @@ There ara some examples maintained by hand below. For more information, please c
|
|
|
84
84
|
* [getHashQueryParam](#gethashqueryparam)
|
|
85
85
|
* [getDomain](#getdomain)
|
|
86
86
|
* [updateQueryParam](#updatequeryparam)
|
|
87
|
+
* [isValidUrl](#isvalidurl)
|
|
87
88
|
- [Cache Data](#cache-data)
|
|
88
89
|
* [Cookie](#cookie)
|
|
89
90
|
* [Storage](#storage)
|
|
@@ -102,6 +103,11 @@ There ara some examples maintained by hand below. For more information, please c
|
|
|
102
103
|
* [getPerformance](#getperformance)
|
|
103
104
|
- [Debug](#debug)
|
|
104
105
|
* [genCustomConsole](#gencustomconsole)
|
|
106
|
+
- [Development Environment](#development-environment)
|
|
107
|
+
* [Node.js](#nodejs)
|
|
108
|
+
* [TypeScript](#typescript)
|
|
109
|
+
- [Scripts](#scripts)
|
|
110
|
+
- [Returns](#returns)
|
|
105
111
|
<!-- toc - end -->
|
|
106
112
|
|
|
107
113
|
### Load Resource
|
|
@@ -163,7 +169,7 @@ Load a CSS file from the server.
|
|
|
163
169
|
|
|
164
170
|
```
|
|
165
171
|
loadCSS(
|
|
166
|
-
'http://example.com/
|
|
172
|
+
'http://example.com/path/example.css',
|
|
167
173
|
{
|
|
168
174
|
id: 'iamid', // Optional, link ID, default none
|
|
169
175
|
}
|
|
@@ -526,6 +532,18 @@ http://example.com/?t1=1&t2=2&t3=3&t4=four
|
|
|
526
532
|
@returns {string} URL.
|
|
527
533
|
@category URL -->
|
|
528
534
|
|
|
535
|
+
#### isValidUrl
|
|
536
|
+
|
|
537
|
+
Checks if the given string is a valid URL, including scheme URLs.
|
|
538
|
+
|
|
539
|
+
```js
|
|
540
|
+
isValidUrl('https://www.example.com'); // true
|
|
541
|
+
isValidUrl('http://example.com/path/exx/ss'); // true
|
|
542
|
+
isValidUrl('https://www.example.com/?q=hello&age=24#world'); // true
|
|
543
|
+
isValidUrl('http://www.example.com/#world?id=9'); // true
|
|
544
|
+
isValidUrl('ftp://example.com'); // true
|
|
545
|
+
```
|
|
546
|
+
|
|
529
547
|
### Cache Data
|
|
530
548
|
|
|
531
549
|
#### Cookie
|
|
@@ -865,6 +883,19 @@ MazeyLog: I am object. {a: 123, b: 456}
|
|
|
865
883
|
|
|
866
884
|
## Contributing
|
|
867
885
|
|
|
886
|
+
### Development Environment
|
|
887
|
+
|
|
888
|
+
#### Node.js
|
|
889
|
+
|
|
890
|
+
- v14.21.3
|
|
891
|
+
- v14.7.0
|
|
892
|
+
|
|
893
|
+
#### TypeScript
|
|
894
|
+
|
|
895
|
+
- v4.4.4
|
|
896
|
+
|
|
897
|
+
### Scripts
|
|
898
|
+
|
|
868
899
|
```
|
|
869
900
|
# Install
|
|
870
901
|
npm i
|
|
@@ -882,7 +913,7 @@ npm run docs
|
|
|
882
913
|
npm run test
|
|
883
914
|
```
|
|
884
915
|
|
|
885
|
-
Returns
|
|
916
|
+
### Returns
|
|
886
917
|
|
|
887
918
|
| Values | Description | Type |
|
|
888
919
|
| :-------- | :--------------------------------------- | :------ |
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.8.
|
|
2
|
+
* mazey v3.8.3
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o,i=e((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),a=(n=i)&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},f=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,p=l?d.bind(d):function(){return d.apply(d,arguments)},v={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,h={f:g&&!v.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:v},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=Function.prototype,w=m.call,b=l&&m.bind.bind(w,w),x=l?b:function(t){return function(){return w.apply(t,arguments)}},S=x({}.toString),E=x("".slice),O=function(t){return E(S(t),8,-1)},T=Object,A=x("".split),j=s((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?A(t,""):T(t)}:T,I=function(t){return null==t},R=TypeError,C=function(t){if(I(t))throw R("Can't call method on "+t);return t},M=function(t){return j(C(t))},P="object"==typeof document&&document.all,N={all:P,IS_HTMLDDA:void 0===P&&void 0!==P},_=N.all,k=N.IS_HTMLDDA?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},L=N.all,F=N.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:k(t)||t===L}:function(t){return"object"==typeof t?null!==t:k(t)},D=function(t,e){return arguments.length<2?(n=u[t],k(n)?n:void 0):u[t]&&u[t][e];var n},B=x({}.isPrototypeOf),U="undefined"!=typeof navigator&&String(navigator.userAgent)||"",$=u.process,V=u.Deno,z=$&&$.versions||V&&V.version,G=z&&z.v8;G&&(o=(r=G.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&U&&(!(r=U.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=U.match(/Chrome\/(\d+)/))&&(o=+r[1]);var q=o,W=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),H=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=Object,Z=H?function(t){return"symbol"==typeof t}:function(t){var e=D("Symbol");return k(e)&&B(e.prototype,Y(t))},J=String,K=function(t){try{return J(t)}catch(t){return"Object"}},X=TypeError,Q=function(t){if(k(t))return t;throw X(K(t)+" is not a function")},tt=function(t,e){var n=t[e];return I(n)?void 0:Q(n)},et=TypeError,nt=Object.defineProperty,rt=function(t,e){try{nt(u,t,{value:e,configurable:!0,writable:!0})}catch(n){u[t]=e}return e},ot="__core-js_shared__",it=u[ot]||rt(ot,{}),at=e((function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ct=Object,ut=function(t){return ct(C(t))},st=x({}.hasOwnProperty),ft=Object.hasOwn||function(t,e){return st(ut(t),e)},lt=0,dt=Math.random(),pt=x(1..toString),vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+pt(++lt+dt,36)},gt=u.Symbol,ht=at("wks"),yt=H?gt.for||gt:gt&>.withoutSetter||vt,mt=function(t){return ft(ht,t)||(ht[t]=W&&ft(gt,t)?gt[t]:yt("Symbol."+t)),ht[t]},wt=TypeError,bt=mt("toPrimitive"),xt=function(t,e){if(!F(t)||Z(t))return t;var n,r=tt(t,bt);if(r){if(void 0===e&&(e="default"),n=p(r,t,e),!F(n)||Z(n))return n;throw wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&k(n=t.toString)&&!F(r=p(n,t)))return r;if(k(n=t.valueOf)&&!F(r=p(n,t)))return r;if("string"!==e&&k(n=t.toString)&&!F(r=p(n,t)))return r;throw et("Can't convert object to primitive value")}(t,e)},St=function(t){var e=xt(t,"string");return Z(e)?e:e+""},Et=u.document,Ot=F(Et)&&F(Et.createElement),Tt=function(t){return Ot?Et.createElement(t):{}},At=!f&&!s((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,It={f:f?jt:function(t,e){if(t=M(t),e=St(e),At)try{return jt(t,e)}catch(t){}if(ft(t,e))return y(!p(h.f,t,e),t[e])}},Rt=f&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Mt=TypeError,Pt=function(t){if(F(t))return t;throw Mt(Ct(t)+" is not an object")},Nt=TypeError,_t=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ft="configurable",Dt="writable",Bt={f:f?Rt?function(t,e,n){if(Pt(t),e=St(e),Pt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Dt in n&&!n[Dt]){var r=kt(t,e);r&&r[Dt]&&(t[e]=n.value,n={configurable:Ft in n?n[Ft]:r[Ft],enumerable:Lt in n?n[Lt]:r[Lt],writable:!1})}return _t(t,e,n)}:_t:function(t,e,n){if(Pt(t),e=St(e),Pt(n),At)try{return _t(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Nt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ut=f?function(t,e,n){return Bt.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},$t=Function.prototype,Vt=f&&Object.getOwnPropertyDescriptor,zt=ft($t,"name"),Gt={EXISTS:zt,PROPER:zt&&"something"===function(){}.name,CONFIGURABLE:zt&&(!f||f&&Vt($t,"name").configurable)},qt=x(Function.toString);k(it.inspectSource)||(it.inspectSource=function(t){return qt(t)});var Wt,Ht,Yt,Zt=it.inspectSource,Jt=u.WeakMap,Kt=k(Jt)&&/native code/.test(String(Jt)),Xt=at("keys"),Qt=function(t){return Xt[t]||(Xt[t]=vt(t))},te={},ee="Object already initialized",ne=u.TypeError,re=u.WeakMap;if(Kt||it.state){var oe=it.state||(it.state=new re);oe.get=oe.get,oe.has=oe.has,oe.set=oe.set,Wt=function(t,e){if(oe.has(t))throw ne(ee);return e.facade=t,oe.set(t,e),e},Ht=function(t){return oe.get(t)||{}},Yt=function(t){return oe.has(t)}}else{var ie=Qt("state");te[ie]=!0,Wt=function(t,e){if(ft(t,ie))throw ne(ee);return e.facade=t,Ut(t,ie,e),e},Ht=function(t){return ft(t,ie)?t[ie]:{}},Yt=function(t){return ft(t,ie)}}var ae,ce={set:Wt,get:Ht,has:Yt,enforce:function(t){return Yt(t)?Ht(t):Wt(t,{})},getterFor:function(t){return function(e){var n;if(!F(e)||(n=Ht(e)).type!==t)throw ne("Incompatible receiver, "+t+" required");return n}}},ue=e((function(t){var e=Gt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,a=x("".slice),c=x("".replace),u=x([].join),l=f&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!ft(t,"name")||e&&t.name!==r)&&(f?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&s&&ft(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&ft(s,"constructor")&&s.constructor?f&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return ft(p,"source")||(p.source=u(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return k(this)&&r(this).source||Zt(this)}),"toString")})),se=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(k(n)&&ue(n,i,r),r.global)o?t[e]=n:rt(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Bt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},fe=Math.ceil,le=Math.floor,de=Math.trunc||function(t){var e=+t;return(e>0?le:fe)(e)},pe=function(t){var e=+t;return e!=e||0===e?0:de(e)},ve=Math.max,ge=Math.min,he=function(t,e){var n=pe(t);return n<0?ve(n+e,0):ge(n,e)},ye=Math.min,me=function(t){return t>0?ye(pe(t),9007199254740991):0},we=function(t){return me(t.length)},be=function(t){return function(e,n,r){var o,i=M(e),a=we(i),c=he(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},xe={includes:be(!0),indexOf:be(!1)},Se=xe.indexOf,Ee=x([].push),Oe=function(t,e){var n,r=M(t),o=0,i=[];for(n in r)!ft(te,n)&&ft(r,n)&&Ee(i,n);for(;e.length>o;)ft(r,n=e[o++])&&(~Se(i,n)||Ee(i,n));return i},Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ae=Te.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(t){return Oe(t,Ae)}},Ie={f:Object.getOwnPropertySymbols},Re=x([].concat),Ce=D("Reflect","ownKeys")||function(t){var e=je.f(Pt(t)),n=Ie.f;return n?Re(e,n(t)):e},Me=function(t,e,n){for(var r=Ce(e),o=Bt.f,i=It.f,a=0;a<r.length;a++){var c=r[a];ft(t,c)||n&&ft(n,c)||o(t,c,i(e,c))}},Pe=/#|\.prototype\./,Ne=function(t,e){var n=ke[_e(t)];return n==Fe||n!=Le&&(k(e)?s(e):!!e)},_e=Ne.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},ke=Ne.data={},Le=Ne.NATIVE="N",Fe=Ne.POLYFILL="P",De=Ne,Be=It.f,Ue=function(t,e){var n,r,o,i,a,c=t.target,s=t.global,f=t.stat;if(n=s?u:f?u[c]||rt(c,{}):(u[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Be(n,r))&&a.value:n[r],!De(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Me(i,o)}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),se(n,r,i,t)}},$e=Object.keys||function(t){return Oe(t,Te)},Ve=f&&!Rt?Object.defineProperties:function(t,e){Pt(t);for(var n,r=M(e),o=$e(e),i=o.length,a=0;i>a;)Bt.f(t,n=o[a++],r[n]);return t},ze={f:Ve},Ge=D("document","documentElement"),qe="prototype",We="script",He=Qt("IE_PROTO"),Ye=function(){},Ze=function(t){return"<"+We+">"+t+"</"+We+">"},Je=function(t){t.write(Ze("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ke=function(){try{ae=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Ke="undefined"!=typeof document?document.domain&&ae?Je(ae):(e=Tt("iframe"),n="java"+We+":",e.style.display="none",Ge.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ze("document.F=Object")),t.close(),t.F):Je(ae);for(var r=Te.length;r--;)delete Ke[qe][Te[r]];return Ke()};te[He]=!0;var Xe=Object.create||function(t,e){var n;return null!==t?(Ye[qe]=Pt(t),n=new Ye,Ye[qe]=null,n[He]=t):n=Ke(),void 0===e?n:ze.f(n,e)},Qe=Bt.f,tn=mt("unscopables"),en=Array.prototype;null==en[tn]&&Qe(en,tn,{configurable:!0,value:Xe(null)});var nn=function(t){en[tn][t]=!0};Ue({target:"Array",proto:!0},{fill:function(t){for(var e=ut(this),n=we(e),r=arguments.length,o=he(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:he(i,n);a>o;)e[o++]=t;return e}}),nn("fill");var rn=Array.isArray||function(t){return"Array"==O(t)},on=TypeError,an=function(t){if(t>9007199254740991)throw on("Maximum allowed index exceeded");return t},cn=function(t,e,n){var r=St(e);r in t?Bt.f(t,r,y(0,n)):t[r]=n},un={};un[mt("toStringTag")]="z";var sn="[object z]"===String(un),fn=mt("toStringTag"),ln=Object,dn="Arguments"==O(function(){return arguments}()),pn=sn?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ln(t),fn))?n:dn?O(e):"Object"==(r=O(e))&&k(e.callee)?"Arguments":r},vn=function(){},gn=[],hn=D("Reflect","construct"),yn=/^\s*(?:class|function)\b/,mn=x(yn.exec),wn=!yn.exec(vn),bn=function(t){if(!k(t))return!1;try{return hn(vn,gn,t),!0}catch(t){return!1}},xn=function(t){if(!k(t))return!1;switch(pn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wn||!!mn(yn,Zt(t))}catch(t){return!0}};xn.sham=!0;var Sn=!hn||s((function(){var t;return bn(bn.call)||!bn(Object)||!bn((function(){t=!0}))||t}))?xn:bn,En=mt("species"),On=Array,Tn=function(t,e){return new(function(t){var e;return rn(t)&&(e=t.constructor,(Sn(e)&&(e===On||rn(e.prototype))||F(e)&&null===(e=e[En]))&&(e=void 0)),void 0===e?On:e}(t))(0===e?0:e)},An=mt("species"),jn=function(t){return q>=51||!s((function(){var e=[];return(e.constructor={})[An]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},In=mt("isConcatSpreadable"),Rn=q>=51||!s((function(){var t=[];return t[In]=!1,t.concat()[0]!==t})),Cn=function(t){if(!F(t))return!1;var e=t[In];return void 0!==e?!!e:rn(t)},Mn=!Rn||!jn("concat");Ue({target:"Array",proto:!0,arity:1,forced:Mn},{concat:function(t){var e,n,r,o,i,a=ut(this),c=Tn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Cn(i=-1===e?a:arguments[e]))for(o=we(i),an(u+o),n=0;n<o;n++,u++)n in i&&cn(c,u,i[n]);else an(u+1),cn(c,u++,i);return c.length=u,c}});var Pn=String,Nn=TypeError,_n=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return x(Q(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Pt(n),function(t){if("object"==typeof t||k(t))return t;throw Nn("Can't set "+Pn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),kn=function(t,e,n){var r,o;return _n&&k(r=e.constructor)&&r!==n&&F(o=r.prototype)&&o!==n.prototype&&_n(t,o),t},Ln=mt("match"),Fn=function(t){var e;return F(t)&&(void 0!==(e=t[Ln])?!!e:"RegExp"==O(t))},Dn=String,Bn=function(t){if("Symbol"===pn(t))throw TypeError("Cannot convert a Symbol value to a string");return Dn(t)},Un=function(){var t=Pt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},$n=RegExp.prototype,Vn=function(t){var e=t.flags;return void 0!==e||"flags"in $n||ft(t,"flags")||!B($n,t)?e:p(Un,t)},zn=u.RegExp,Gn=s((function(){var t=zn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),qn=Gn||s((function(){return!zn("a","y").sticky})),Wn={BROKEN_CARET:Gn||s((function(){var t=zn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:qn,UNSUPPORTED_Y:Gn},Hn=Bt.f,Yn=function(t,e,n){n in t||Hn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Zn=function(t,e,n){return n.get&&ue(n.get,e,{getter:!0}),n.set&&ue(n.set,e,{setter:!0}),Bt.f(t,e,n)},Jn=mt("species"),Kn=function(t){var e=D(t);f&&e&&!e[Jn]&&Zn(e,Jn,{configurable:!0,get:function(){return this}})},Xn=u.RegExp,Qn=s((function(){var t=Xn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),tr=u.RegExp,er=s((function(){var t=tr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),nr=je.f,rr=ce.enforce,or=mt("match"),ir=u.RegExp,ar=ir.prototype,cr=u.SyntaxError,ur=x(ar.exec),sr=x("".charAt),fr=x("".replace),lr=x("".indexOf),dr=x("".slice),pr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,vr=/a/g,gr=/a/g,hr=new ir(vr)!==vr,yr=Wn.MISSED_STICKY,mr=Wn.UNSUPPORTED_Y,wr=f&&(!hr||yr||Qn||er||s((function(){return gr[or]=!1,ir(vr)!=vr||ir(gr)==gr||"/a/i"!=ir(vr,"i")})));if(De("RegExp",wr)){for(var br=function(t,e){var n,r,o,i,a,c,u=B(ar,this),s=Fn(t),f=void 0===e,l=[],d=t;if(!u&&s&&f&&t.constructor===br)return t;if((s||B(ar,t))&&(t=t.source,f&&(e=Vn(d))),t=void 0===t?"":Bn(t),e=void 0===e?"":Bn(e),d=t,Qn&&"dotAll"in vr&&(r=!!e&&lr(e,"s")>-1)&&(e=fr(e,/s/g,"")),n=e,yr&&"sticky"in vr&&(o=!!e&&lr(e,"y")>-1)&&mr&&(e=fr(e,/y/g,"")),er&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},c=!1,u=!1,s=0,f="";r<=n;r++){if("\\"===(e=sr(t,r)))e+=sr(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:ur(pr,dr(t,r+1))&&(r+=2,u=!0),o+=e,s++;continue;case">"===e&&u:if(""===f||ft(a,f))throw new cr("Invalid capture group name");a[f]=!0,i[i.length]=[f,s],u=!1,f="";continue}u?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=kn(ir(t,e),u?this:ar,br),(r||o||l.length)&&(c=rr(a),r&&(c.dotAll=!0,c.raw=br(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=sr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+sr(t,++r);return o}(t),n)),o&&(c.sticky=!0),l.length&&(c.groups=l)),t!==d)try{Ut(a,"source",""===d?"(?:)":d)}catch(t){}return a},xr=nr(ir),Sr=0;xr.length>Sr;)Yn(br,ir,xr[Sr++]);ar.constructor=br,br.prototype=ar,se(u,"RegExp",br,{constructor:!0})}Kn("RegExp");var Er=ce.get,Or=at("native-string-replace",String.prototype.replace),Tr=RegExp.prototype.exec,Ar=Tr,jr=x("".charAt),Ir=x("".indexOf),Rr=x("".replace),Cr=x("".slice),Mr=function(){var t=/a/,e=/b*/g;return p(Tr,t,"a"),p(Tr,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Pr=Wn.BROKEN_CARET,Nr=void 0!==/()??/.exec("")[1];(Mr||Nr||Pr||Qn||er)&&(Ar=function(t){var e,n,r,o,i,a,c,u=this,s=Er(u),f=Bn(t),l=s.raw;if(l)return l.lastIndex=u.lastIndex,e=p(Ar,l,f),u.lastIndex=l.lastIndex,e;var d=s.groups,v=Pr&&u.sticky,g=p(Un,u),h=u.source,y=0,m=f;if(v&&(g=Rr(g,"y",""),-1===Ir(g,"g")&&(g+="g"),m=Cr(f,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==jr(f,u.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,y++),n=new RegExp("^(?:"+h+")",g)),Nr&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Mr&&(r=u.lastIndex),o=p(Tr,v?n:u,m),v?o?(o.input=Cr(o.input,y),o[0]=Cr(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Mr&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Nr&&o&&o.length>1&&p(Or,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Xe(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var _r=Ar;Ue({target:"RegExp",proto:!0,forced:/./.exec!==_r},{exec:_r});var kr=Gt.PROPER,Lr="toString",Fr=RegExp.prototype[Lr],Dr=s((function(){return"/a/b"!=Fr.call({source:"a",flags:"b"})})),Br=kr&&Fr.name!=Lr;(Dr||Br)&&se(RegExp.prototype,Lr,(function(){var t=Pt(this);return"/"+Bn(t.source)+"/"+Bn(Vn(t))}),{unsafe:!0});var Ur=function(t){if("Function"===O(t))return x(t)},$r=mt("species"),Vr=RegExp.prototype,zr=function(t,e,n,r){var o=mt(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[$r]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var c=Ur(/./[o]),u=e(o,""[t],(function(t,e,n,r,o){var a=Ur(t),u=e.exec;return u===_r||u===Vr.exec?i&&!o?{done:!0,value:c(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));se(String.prototype,t,u[0]),se(Vr,o,u[1])}r&&Ut(Vr[o],"sham",!0)},Gr=x("".charAt),qr=x("".charCodeAt),Wr=x("".slice),Hr=function(t){return function(e,n){var r,o,i=Bn(C(e)),a=pe(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=qr(i,a))<55296||r>56319||a+1===c||(o=qr(i,a+1))<56320||o>57343?t?Gr(i,a):r:t?Wr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yr={codeAt:Hr(!1),charAt:Hr(!0)},Zr=Yr.charAt,Jr=function(t,e,n){return e+(n?Zr(t,e).length:1)},Kr=TypeError,Xr=function(t,e){var n=t.exec;if(k(n)){var r=p(n,t,e);return null!==r&&Pt(r),r}if("RegExp"===O(t))return p(_r,t,e);throw Kr("RegExp#exec called on incompatible receiver")};zr("match",(function(t,e,n){return[function(e){var n=C(this),r=I(e)?void 0:tt(e,t);return r?p(r,e,n):new RegExp(e)[t](Bn(n))},function(t){var r=Pt(this),o=Bn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Xr(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],s=0;null!==(c=Xr(r,o));){var f=Bn(c[0]);u[s]=f,""===f&&(r.lastIndex=Jr(o,me(r.lastIndex),a)),s++}return 0===s?null:u}]}));var Qr=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};zr("search",(function(t,e,n){return[function(e){var n=C(this),r=I(e)?void 0:tt(e,t);return r?p(r,e,n):new RegExp(e)[t](Bn(n))},function(t){var r=Pt(this),o=Bn(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;Qr(a,0)||(r.lastIndex=0);var c=Xr(r,o);return Qr(r.lastIndex,a)||(r.lastIndex=a),null===c?-1:c.index}]}));var to=Function.prototype,eo=to.apply,no=to.call,ro="object"==typeof Reflect&&Reflect.apply||(l?no.bind(eo):function(){return no.apply(eo,arguments)}),oo=Math.floor,io=x("".charAt),ao=x("".replace),co=x("".slice),uo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,so=/\$([$&'`]|\d{1,2})/g,fo=function(t,e,n,r,o,i){var a=n+t.length,c=r.length,u=so;return void 0!==o&&(o=ut(o),u=uo),ao(i,u,(function(i,u){var s;switch(io(u,0)){case"$":return"$";case"&":return t;case"`":return co(e,0,n);case"'":return co(e,a);case"<":s=o[co(u,1,-1)];break;default:var f=+u;if(0===f)return i;if(f>c){var l=oo(f/10);return 0===l?i:l<=c?void 0===r[l-1]?io(u,1):r[l-1]+io(u,1):i}s=r[f-1]}return void 0===s?"":s}))},lo=mt("replace"),po=Math.max,vo=Math.min,go=x([].concat),ho=x([].push),yo=x("".indexOf),mo=x("".slice),wo="$0"==="a".replace(/./,"$0"),bo=!!/./[lo]&&""===/./[lo]("a","$0");zr("replace",(function(t,e,n){var r=bo?"$":"$0";return[function(t,n){var r=C(this),o=I(t)?void 0:tt(t,lo);return o?p(o,t,r,n):p(e,Bn(r),t,n)},function(t,o){var i=Pt(this),a=Bn(t);if("string"==typeof o&&-1===yo(o,r)&&-1===yo(o,"$<")){var c=n(e,i,a,o);if(c.done)return c.value}var u=k(o);u||(o=Bn(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Xr(i,a);if(null===d)break;if(ho(l,d),!s)break;""===Bn(d[0])&&(i.lastIndex=Jr(a,me(i.lastIndex),f))}for(var p,v="",g=0,h=0;h<l.length;h++){for(var y=Bn((d=l[h])[0]),m=po(vo(pe(d.index),a.length),0),w=[],b=1;b<d.length;b++)ho(w,void 0===(p=d[b])?p:String(p));var x=d.groups;if(u){var S=go([y],w,m,a);void 0!==x&&ho(S,x);var E=Bn(ro(o,void 0,S))}else E=fo(y,a,m,w,x,o);m>=g&&(v+=mo(a,g,m)+E,g=m+y.length)}return v+mo(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!wo||bo);var xo=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},So=xe.indexOf,Eo=Ur([].indexOf),Oo=!!Eo&&1/Eo([1],1,-0)<0,To=Oo||!xo("indexOf");Ue({target:"Array",proto:!0,forced:To},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Oo?Eo(this,t,e)||0:So(this,t,e)}});var Ao=TypeError,jo=function(t){return function(e,n,r,o){Q(n);var i=ut(e),a=j(i),c=we(i),u=t?c-1:0,s=t?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=s;break}if(u+=s,t?u<0:c<=u)throw Ao("Reduce of empty array with no initial value")}for(;t?u>=0:c>u;u+=s)u in a&&(o=n(o,a[u],u,i));return o}},Io={left:jo(!1),right:jo(!0)},Ro="undefined"!=typeof process&&"process"==O(process),Co=Io.left,Mo=!Ro&&q>79&&q<83||!xo("reduce");Ue({target:"Array",proto:!0,forced:Mo},{reduce:function(t){var e=arguments.length;return Co(this,t,e,e>1?arguments[1]:void 0)}});var Po=sn?{}.toString:function(){return"[object "+pn(this)+"]"};sn||se(Object.prototype,"toString",Po,{unsafe:!0});var No=x([].slice),_o=jn("slice"),ko=mt("species"),Lo=Array,Fo=Math.max;Ue({target:"Array",proto:!0,forced:!_o},{slice:function(t,e){var n,r,o,i=M(this),a=we(i),c=he(t,a),u=he(void 0===e?a:e,a);if(rn(i)&&(n=i.constructor,(Sn(n)&&(n===Lo||rn(n.prototype))||F(n)&&null===(n=n[ko]))&&(n=void 0),n===Lo||void 0===n))return No(i,c,u);for(r=new(void 0===n?Lo:n)(Fo(u-c,0)),o=0;c<u;c++,o++)c in i&&cn(r,o,i[c]);return r.length=o,r}});var Do=x(h.f),Bo=x([].push),Uo=function(t){return function(e){for(var n,r=M(e),o=$e(r),i=o.length,a=0,c=[];i>a;)n=o[a++],f&&!Do(r,n)||Bo(c,t?[n,r[n]]:r[n]);return c}},$o={entries:Uo(!0),values:Uo(!1)}.values;Ue({target:"Object",stat:!0},{values:function(t){return $o(t)}});var Vo=Ur(Ur.bind),zo=function(t,e){return Q(t),void 0===e?t:l?Vo(t,e):function(){return t.apply(e,arguments)}},Go=x([].push),qo=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var d,p,v=ut(u),g=j(v),h=zo(s,f),y=we(g),m=0,w=l||Tn,b=e?w(u,y):n||a?w(u,0):void 0;y>m;m++)if((c||m in g)&&(p=h(d=g[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Go(b,d)}else switch(t){case 4:return!1;case 7:Go(b,d)}return i?-1:r||o?o:b}},Wo={forEach:qo(0),map:qo(1),filter:qo(2),some:qo(3),every:qo(4),find:qo(5),findIndex:qo(6),filterReject:qo(7)},Ho=Wo.every,Yo=xo("every");Ue({target:"Array",proto:!0,forced:!Yo},{every:function(t){return Ho(this,t,arguments.length>1?arguments[1]:void 0)}});var Zo=xe.includes,Jo=s((function(){return!Array(1).includes()}));Ue({target:"Array",proto:!0,forced:Jo},{includes:function(t){return Zo(this,t,arguments.length>1?arguments[1]:void 0)}}),nn("includes");var Ko=x(1..valueOf),Xo=RangeError,Qo=RangeError,ti=String,ei=Math.floor,ni=x((function(t){var e=Bn(C(this)),n="",r=pe(t);if(r<0||r==1/0)throw Xo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),ri=x("".slice),oi=x(1..toFixed),ii=function(t,e,n){return 0===e?n:e%2==1?ii(t,e-1,n*t):ii(t*t,e/2,n)},ai=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ei(o/1e7)},ci=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ei(r/e),r=r%e*1e7},ui=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ti(t[e]);n=""===n?r:n+ni("0",7-r.length)+r}return n},si=s((function(){return"0.000"!==oi(8e-5,3)||"1"!==oi(.9,0)||"1.25"!==oi(1.255,2)||"1000000000000000128"!==oi(0xde0b6b3a7640080,0)}))||!s((function(){oi({})}));Ue({target:"Number",proto:!0,forced:si},{toFixed:function(t){var e,n,r,o,i=Ko(this),a=pe(t),c=[0,0,0,0,0,0],u="",s="0";if(a<0||a>20)throw Qo("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ti(i);if(i<0&&(u="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*ii(2,69,1))-69,n=e<0?i*ii(2,-e,1):i/ii(2,e,1),n*=4503599627370496,(e=52-e)>0){for(ai(c,0,n),r=a;r>=7;)ai(c,1e7,0),r-=7;for(ai(c,ii(10,r,1),0),r=e-1;r>=23;)ci(c,1<<23),r-=23;ci(c,1<<r),ai(c,1,1),ci(c,2),s=ui(c)}else ai(c,0,n),ai(c,1<<-e,0),s=ui(c)+ni("0",a);return s=a>0?u+((o=s.length)<=a?"0."+ni("0",a-o)+s:ri(s,0,o-a)+"."+ri(s,o-a)):u+s}});var fi="\t\n\v\f\r \u2028\u2029\ufeff",li=x("".replace),di=RegExp("^["+fi+"]+"),pi=RegExp("(^|[^"+fi+"])["+fi+"]+$"),vi=function(t){return function(e){var n=Bn(C(e));return 1&t&&(n=li(n,di,"")),2&t&&(n=li(n,pi,"$1")),n}},gi={start:vi(1),end:vi(2),trim:vi(3)},hi=gi.trim,yi=x("".charAt),mi=u.parseFloat,wi=u.Symbol,bi=wi&&wi.iterator,xi=1/mi(fi+"-0")!=-1/0||bi&&!s((function(){mi(Object(bi))}))?function(t){var e=hi(Bn(t)),n=mi(e);return 0===n&&"-"==yi(e,0)?-0:n}:mi;Ue({global:!0,forced:parseFloat!=xi},{parseFloat:xi});var Si=TypeError,Ei=mt("species"),Oi=function(t,e){var n,r=Pt(t).constructor;return void 0===r||I(n=Pt(r)[Ei])?e:function(t){if(Sn(t))return t;throw Si(K(t)+" is not a constructor")}(n)},Ti=Array,Ai=Math.max,ji=function(t,e,n){for(var r=we(t),o=he(e,r),i=he(void 0===n?r:n,r),a=Ti(Ai(i-o,0)),c=0;o<i;o++,c++)cn(a,c,t[o]);return a.length=c,a},Ii=Wn.UNSUPPORTED_Y,Ri=4294967295,Ci=Math.min,Mi=[].push,Pi=x(/./.exec),Ni=x(Mi),_i=x("".slice);zr("split",(function(t,e,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(t,n){var r=Bn(C(this)),o=void 0===n?Ri:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Fn(t))return p(e,r,t,o);for(var i,a,c,u=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=p(_r,l,r))&&!((a=l.lastIndex)>f&&(Ni(u,_i(r,f,i.index)),i.length>1&&i.index<r.length&&ro(Mi,u,ji(i,1)),c=i[0].length,f=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===r.length?!c&&Pi(l,"")||Ni(u,""):Ni(u,_i(r,f)),u.length>o?ji(u,0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:p(e,this,t,n)}:e,[function(e,n){var o=C(this),i=I(e)?void 0:tt(e,t);return i?p(i,e,o,n):p(r,Bn(o),e,n)},function(t,o){var i=Pt(this),a=Bn(t),c=n(r,i,a,o,r!==e);if(c.done)return c.value;var u=Oi(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ii?"g":"y"),l=new u(Ii?"^(?:"+i.source+")":i,f),d=void 0===o?Ri:o>>>0;if(0===d)return[];if(0===a.length)return null===Xr(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=Ii?0:v;var h,y=Xr(l,Ii?_i(a,v):a);if(null===y||(h=Ci(me(l.lastIndex+(Ii?v:0)),a.length))===p)v=Jr(a,v,s);else{if(Ni(g,_i(a,p,v)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Ni(g,y[m]),g.length===d)return g;v=p=h}}return Ni(g,_i(a,p)),g}]}),!!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ii);var ki=Object.assign,Li=Object.defineProperty,Fi=x([].concat),Di=!ki||s((function(){if(f&&1!==ki({b:1},ki(Li({},"a",{enumerable:!0,get:function(){Li(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=ki({},t)[n]||$e(ki({},e)).join("")!=r}))?function(t,e){for(var n=ut(t),r=arguments.length,o=1,i=Ie.f,a=h.f;r>o;)for(var c,u=j(arguments[o++]),s=i?Fi($e(u),i(u)):$e(u),l=s.length,d=0;l>d;)c=s[d++],f&&!p(a,u,c)||(n[c]=u[c]);return n}:ki;Ue({target:"Object",stat:!0,arity:2,forced:Object.assign!==Di},{assign:Di});var Bi=u,Ui=je.f,$i=It.f,Vi=Bt.f,zi=gi.trim,Gi="Number",qi=u[Gi];Bi[Gi];var Wi=qi.prototype,Hi=u.TypeError,Yi=x("".slice),Zi=x("".charCodeAt),Ji=function(t){var e,n,r,o,i,a,c,u,s=xt(t,"number");if(Z(s))throw Hi("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=zi(s),43===(e=Zi(s,0))||45===e){if(88===(n=Zi(s,2))||120===n)return NaN}else if(48===e){switch(Zi(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=Yi(s,2)).length,c=0;c<a;c++)if((u=Zi(i,c))<48||u>o)return NaN;return parseInt(i,r)}return+s},Ki=De(Gi,!qi(" 0o1")||!qi("0b1")||qi("+0x1")),Xi=function(t){var e,n=arguments.length<1?0:qi(function(t){var e=xt(t,"number");return"bigint"==typeof e?e:Ji(e)}(t));return B(Wi,e=this)&&s((function(){Ko(e)}))?kn(Object(n),this,Xi):n};Xi.prototype=Wi,Ki&&(Wi.constructor=Xi),Ue({global:!0,constructor:!0,wrap:!0,forced:Ki},{Number:Xi});Ki&&function(t,e){for(var n,r=f?Ui(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)ft(e,n=r[o])&&!ft(t,n)&&Vi(t,n,$i(e,n))}(Bi[Gi],qi);var Qi,ta,ea,na,ra=Bt.f,oa=mt("toStringTag"),ia=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ft(t,oa)&&ra(t,oa,{configurable:!0,value:e})},aa=TypeError,ca=TypeError,ua=/(?:ipad|iphone|ipod).*applewebkit/i.test(U),sa=u.setImmediate,fa=u.clearImmediate,la=u.process,da=u.Dispatch,pa=u.Function,va=u.MessageChannel,ga=u.String,ha=0,ya={},ma="onreadystatechange";s((function(){Qi=u.location}));var wa=function(t){if(ft(ya,t)){var e=ya[t];delete ya[t],e()}},ba=function(t){return function(){wa(t)}},xa=function(t){wa(t.data)},Sa=function(t){u.postMessage(ga(t),Qi.protocol+"//"+Qi.host)};sa&&fa||(sa=function(t){!function(t,e){if(t<e)throw ca("Not enough arguments")}(arguments.length,1);var e=k(t)?t:pa(t),n=No(arguments,1);return ya[++ha]=function(){ro(e,void 0,n)},ta(ha),ha},fa=function(t){delete ya[t]},Ro?ta=function(t){la.nextTick(ba(t))}:da&&da.now?ta=function(t){da.now(ba(t))}:va&&!ua?(na=(ea=new va).port2,ea.port1.onmessage=xa,ta=zo(na.postMessage,na)):u.addEventListener&&k(u.postMessage)&&!u.importScripts&&Qi&&"file:"!==Qi.protocol&&!s(Sa)?(ta=Sa,u.addEventListener("message",xa,!1)):ta=ma in Tt("script")?function(t){Ge.appendChild(Tt("script"))[ma]=function(){Ge.removeChild(this),wa(t)}}:function(t){setTimeout(ba(t),0)});var Ea={set:sa,clear:fa},Oa=function(){this.head=null,this.tail=null};Oa.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ta,Aa,ja,Ia,Ra,Ca=Oa,Ma=/ipad|iphone|ipod/i.test(U)&&"undefined"!=typeof Pebble,Pa=/web0s(?!.*chrome)/i.test(U),Na=It.f,_a=Ea.set,ka=u.MutationObserver||u.WebKitMutationObserver,La=u.document,Fa=u.process,Da=u.Promise,Ba=Na(u,"queueMicrotask"),Ua=Ba&&Ba.value;if(!Ua){var $a=new Ca,Va=function(){var t,e;for(Ro&&(t=Fa.domain)&&t.exit();e=$a.get();)try{e()}catch(t){throw $a.head&&Ta(),t}t&&t.enter()};ua||Ro||Pa||!ka||!La?!Ma&&Da&&Da.resolve?((Ia=Da.resolve(void 0)).constructor=Da,Ra=zo(Ia.then,Ia),Ta=function(){Ra(Va)}):Ro?Ta=function(){Fa.nextTick(Va)}:(_a=zo(_a,u),Ta=function(){_a(Va)}):(Aa=!0,ja=La.createTextNode(""),new ka(Va).observe(ja,{characterData:!0}),Ta=function(){ja.data=Aa=!Aa}),Ua=function(t){$a.head||Ta(),$a.add(t)}}var za=Ua,Ga=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},qa=u.Promise,Wa="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ha=!Wa&&!Ro&&"object"==typeof window&&"object"==typeof document;qa&&qa.prototype;var Ya,Za,Ja,Ka=mt("species"),Xa=!1,Qa=k(u.PromiseRejectionEvent),tc=De("Promise",(function(){var t=Zt(qa),e=t!==String(qa);if(!e&&66===q)return!0;if(!q||q<51||!/native code/.test(t)){var n=new qa((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Ka]=r,!(Xa=n.then((function(){}))instanceof r))return!0}return!e&&(Ha||Wa)&&!Qa})),ec={CONSTRUCTOR:tc,REJECTION_EVENT:Qa,SUBCLASSING:Xa},nc=TypeError,rc=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw nc("Bad Promise constructor");e=t,n=r})),this.resolve=Q(e),this.reject=Q(n)},oc={f:function(t){return new rc(t)}},ic=Ea.set,ac="Promise",cc=ec.CONSTRUCTOR,uc=ec.REJECTION_EVENT,sc=ec.SUBCLASSING,fc=ce.getterFor(ac),lc=ce.set,dc=qa&&qa.prototype,pc=qa,vc=dc,gc=u.TypeError,hc=u.document,yc=u.process,mc=oc.f,wc=mc,bc=!!(hc&&hc.createEvent&&u.dispatchEvent),xc="unhandledrejection",Sc=function(t){var e;return!(!F(t)||!k(e=t.then))&&e},Ec=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&Ic(e),e.rejection=1),!0===c?n=i:(f&&f.enter(),n=c(i),f&&(f.exit(),o=!0)),n===t.promise?s(gc("Promise-chain cycle")):(r=Sc(n))?p(r,n,u,s):u(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},Oc=function(t,e){t.notified||(t.notified=!0,za((function(){for(var n,r=t.reactions;n=r.get();)Ec(n,t);t.notified=!1,e&&!t.rejection&&Ac(t)})))},Tc=function(t,e,n){var r,o;bc?((r=hc.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!uc&&(o=u["on"+t])?o(r):t===xc&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Ac=function(t){p(ic,u,(function(){var e,n=t.facade,r=t.value;if(jc(t)&&(e=Ga((function(){Ro?yc.emit("unhandledRejection",r,n):Tc(xc,n,r)})),t.rejection=Ro||jc(t)?2:1,e.error))throw e.value}))},jc=function(t){return 1!==t.rejection&&!t.parent},Ic=function(t){p(ic,u,(function(){var e=t.facade;Ro?yc.emit("rejectionHandled",e):Tc("rejectionhandled",e,t.value)}))},Rc=function(t,e,n){return function(r){t(e,r,n)}},Cc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Oc(t,!0))},Mc=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw gc("Promise can't be resolved itself");var r=Sc(e);r?za((function(){var n={done:!1};try{p(r,e,Rc(Mc,n,t),Rc(Cc,n,t))}catch(e){Cc(n,e,t)}})):(t.value=e,t.state=1,Oc(t,!1))}catch(e){Cc({done:!1},e,t)}}};if(cc&&(vc=(pc=function(t){!function(t,e){if(B(e,t))return t;throw aa("Incorrect invocation")}(this,vc),Q(t),p(Ya,this);var e=fc(this);try{t(Rc(Mc,e),Rc(Cc,e))}catch(t){Cc(e,t)}}).prototype,(Ya=function(t){lc(this,{type:ac,done:!1,notified:!1,parent:!1,reactions:new Ca,rejection:!1,state:0,value:void 0})}).prototype=se(vc,"then",(function(t,e){var n=fc(this),r=mc(Oi(this,pc));return n.parent=!0,r.ok=!k(t)||t,r.fail=k(e)&&e,r.domain=Ro?yc.domain:void 0,0==n.state?n.reactions.add(r):za((function(){Ec(r,n)})),r.promise})),Za=function(){var t=new Ya,e=fc(t);this.promise=t,this.resolve=Rc(Mc,e),this.reject=Rc(Cc,e)},oc.f=mc=function(t){return t===pc||undefined===t?new Za(t):wc(t)},k(qa)&&dc!==Object.prototype)){Ja=dc.then,sc||se(dc,"then",(function(t,e){var n=this;return new pc((function(t,e){p(Ja,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete dc.constructor}catch(t){}_n&&_n(dc,vc)}Ue({global:!0,constructor:!0,wrap:!0,forced:cc},{Promise:pc}),ia(pc,ac,!1),Kn(ac);var Pc={},Nc=mt("iterator"),_c=Array.prototype,kc=function(t){return void 0!==t&&(Pc.Array===t||_c[Nc]===t)},Lc=mt("iterator"),Fc=function(t){if(!I(t))return tt(t,Lc)||tt(t,"@@iterator")||Pc[pn(t)]},Dc=TypeError,Bc=function(t,e){var n=arguments.length<2?Fc(t):e;if(Q(n))return Pt(p(n,t));throw Dc(K(t)+" is not iterable")},Uc=function(t,e,n){var r,o;Pt(t);try{if(!(r=tt(t,"return"))){if("throw"===e)throw n;return n}r=p(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Pt(r),n},$c=TypeError,Vc=function(t,e){this.stopped=t,this.result=e},zc=Vc.prototype,Gc=function(t,e,n){var r,o,i,a,c,u,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=zo(e,f),y=function(t){return r&&Uc(r,"normal",t),new Vc(!0,t)},m=function(t){return l?(Pt(t),g?h(t[0],t[1],y):h(t[0],t[1])):g?h(t,y):h(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=Fc(t)))throw $c(K(t)+" is not iterable");if(kc(o)){for(i=0,a=we(t);a>i;i++)if((c=m(t[i]))&&B(zc,c))return c;return new Vc(!1)}r=Bc(t,o)}for(u=d?t.next:r.next;!(s=p(u,r)).done;){try{c=m(s.value)}catch(t){Uc(r,"throw",t)}if("object"==typeof c&&c&&B(zc,c))return c}return new Vc(!1)},qc=mt("iterator"),Wc=!1;try{var Hc=0,Yc={next:function(){return{done:!!Hc++}},return:function(){Wc=!0}};Yc[qc]=function(){return this},Array.from(Yc,(function(){throw 2}))}catch(t){}var Zc=function(t,e){if(!e&&!Wc)return!1;var n=!1;try{var r={};r[qc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Jc=ec.CONSTRUCTOR||!Zc((function(t){qa.all(t).then(void 0,(function(){}))}));Ue({target:"Promise",stat:!0,forced:Jc},{all:function(t){var e=this,n=oc.f(e),r=n.resolve,o=n.reject,i=Ga((function(){var n=Q(e.resolve),i=[],a=0,c=1;Gc(t,(function(t){var u=a++,s=!1;c++,p(n,e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Kc=ec.CONSTRUCTOR,Xc=qa&&qa.prototype;if(Ue({target:"Promise",proto:!0,forced:Kc,real:!0},{catch:function(t){return this.then(void 0,t)}}),k(qa)){var Qc=D("Promise").prototype.catch;Xc.catch!==Qc&&se(Xc,"catch",Qc,{unsafe:!0})}Ue({target:"Promise",stat:!0,forced:Jc},{race:function(t){var e=this,n=oc.f(e),r=n.reject,o=Ga((function(){var o=Q(e.resolve);Gc(t,(function(t){p(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ue({target:"Promise",stat:!0,forced:ec.CONSTRUCTOR},{reject:function(t){var e=oc.f(this);return p(e.reject,void 0,t),e.promise}});var tu=ec.CONSTRUCTOR;D("Promise"),Ue({target:"Promise",stat:!0,forced:tu},{resolve:function(t){return function(t,e){if(Pt(t),F(e)&&e.constructor===t)return e;var n=oc.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var eu=Gt.EXISTS,nu=Function.prototype,ru=x(nu.toString),ou=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,iu=x(ou.exec);f&&!eu&&Zn(nu,"name",{configurable:!0,get:function(){try{return iu(ou,ru(this))[1]}catch(t){return""}}});var au=x([].join),cu=j!=Object||!xo("join",",");Ue({target:"Array",proto:!0,forced:cu},{join:function(t){return au(M(this),void 0===t?",":t)}});var uu=Wo.forEach,su=xo("forEach")?[].forEach:function(t){return uu(this,t,arguments.length>1?arguments[1]:void 0)};Ue({target:"Array",proto:!0,forced:[].forEach!=su},{forEach:su});var fu={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},lu=Tt("span").classList,du=lu&&lu.constructor&&lu.constructor.prototype,pu=du===Object.prototype?void 0:du,vu=function(t){if(t&&t.forEach!==su)try{Ut(t,"forEach",su)}catch(e){t.forEach=su}};for(var gu in fu)fu[gu]&&vu(u[gu]&&u[gu].prototype);vu(pu);var hu=s((function(){$e(1)}));Ue({target:"Object",stat:!0,forced:hu},{keys:function(t){return $e(ut(t))}});var yu=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),mu=Qt("IE_PROTO"),wu=Object,bu=wu.prototype,xu=yu?wu.getPrototypeOf:function(t){var e=ut(t);if(ft(e,mu))return e[mu];var n=e.constructor;return k(n)&&e instanceof n?n.prototype:e instanceof wu?bu:null},Su=s((function(){xu(1)}));Ue({target:"Object",stat:!0,forced:Su,sham:!yu},{getPrototypeOf:function(t){return xu(ut(t))}});var Eu=TypeError,Ou=mt("match"),Tu=x("".indexOf);Ue({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Ou]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Tu(Bn(C(this)),Bn(function(t){if(Fn(t))throw Eu("The method doesn't accept regular expressions");return t}(t)),arguments.length>1?arguments[1]:void 0)}});var Au=TypeError,ju=Object.getOwnPropertyDescriptor,Iu=f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(rn(t)&&!ju(t,"length").writable)throw Au("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ru=TypeError,Cu=function(t,e){if(!delete t[e])throw Ru("Cannot delete property "+K(e)+" of "+K(t))},Mu=jn("splice"),Pu=Math.max,Nu=Math.min;Ue({target:"Array",proto:!0,forced:!Mu},{splice:function(t,e){var n,r,o,i,a,c,u=ut(this),s=we(u),f=he(t,s),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=s-f):(n=l-2,r=Nu(Pu(pe(e),0),s-f)),an(s+n-r),o=Tn(u,r),i=0;i<r;i++)(a=f+i)in u&&cn(o,i,u[a]);if(o.length=r,n<r){for(i=f;i<s-r;i++)c=i+n,(a=i+r)in u?u[c]=u[a]:Cu(u,c);for(i=s;i>s-r+n;i--)Cu(u,i-1)}else if(n>r)for(i=s-r;i>f;i--)c=i+n-1,(a=i+r-1)in u?u[c]=u[a]:Cu(u,c);for(i=0;i<n;i++)u[i+f]=arguments[i+2];return Iu(u,s-r+n),o}});var _u=function(t,e,n,r){try{return r?e(Pt(n)[0],n[1]):e(n)}catch(e){Uc(t,"throw",e)}},ku=Array,Lu=!Zc((function(t){Array.from(t)}));Ue({target:"Array",stat:!0,forced:Lu},{from:function(t){var e=ut(t),n=Sn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=zo(o,r>2?arguments[2]:void 0));var a,c,u,s,f,l,d=Fc(e),v=0;if(!d||this===ku&&kc(d))for(a=we(e),c=n?new this(a):ku(a);a>v;v++)l=i?o(e[v],v):e[v],cn(c,v,l);else for(f=(s=Bc(e,d)).next,c=n?new this:[];!(u=p(f,s)).done;v++)l=i?_u(s,o,[u.value,v],!0):u.value,cn(c,v,l);return c.length=v,c}});var Fu,Du,Bu,Uu=mt("iterator"),$u=!1;[].keys&&("next"in(Bu=[].keys())?(Du=xu(xu(Bu)))!==Object.prototype&&(Fu=Du):$u=!0);var Vu=!F(Fu)||s((function(){var t={};return Fu[Uu].call(t)!==t}));Vu&&(Fu={}),k(Fu[Uu])||se(Fu,Uu,(function(){return this}));var zu={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:$u},Gu=zu.IteratorPrototype,qu=function(){return this},Wu=Gt.PROPER,Hu=Gt.CONFIGURABLE,Yu=zu.IteratorPrototype,Zu=zu.BUGGY_SAFARI_ITERATORS,Ju=mt("iterator"),Ku="keys",Xu="values",Qu="entries",ts=function(){return this},es=function(t,e){return{value:t,done:e}},ns=Yr.charAt,rs="String Iterator",os=ce.set,is=ce.getterFor(rs);!function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Xe(Gu,{next:y(+!r,n)}),ia(t,o,!1),Pc[o]=qu}(n,e,r);var c,u,s,f=function(t){if(t===o&&h)return h;if(!Zu&&t in v)return v[t];switch(t){case Ku:case Xu:case Qu:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,g=v[Ju]||v["@@iterator"]||o&&v[o],h=!Zu&&g||f(o),m="Array"==e&&v.entries||g;if(m&&(c=xu(m.call(new t)))!==Object.prototype&&c.next&&(xu(c)!==Yu&&(_n?_n(c,Yu):k(c[Ju])||se(c,Ju,ts)),ia(c,l,!0)),Wu&&o==Xu&&g&&g.name!==Xu&&(Hu?Ut(v,"name",Xu):(d=!0,h=function(){return p(g,this)})),o)if(u={values:f(Xu),keys:i?h:f(Ku),entries:f(Qu)},a)for(s in u)(Zu||d||!(s in v))&&se(v,s,u[s]);else Ue({target:e,proto:!0,forced:Zu||d},u);v[Ju]!==h&&se(v,Ju,h,{name:o}),Pc[e]=h}(String,"String",(function(t){os(this,{type:rs,string:Bn(t),index:0})}),(function(){var t,e=is(this),n=e.string,r=e.index;return r>=n.length?es(void 0,!0):(t=ns(n,r),e.index+=t.length,es(t,!1))}));var as=function(){return as=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},as.apply(this,arguments)};function cs(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))}function us(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function ss(t,e){for(var n=t.length,r=e.length,o=gs(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[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)}function fs(t,e){for(var n=t.length,r=e.length,o=gs(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[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],f=u[1];a>0&&(s=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(s,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function ls(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function ds(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function ps(t){return ds(t)}function vs(t){if("object"!==a(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(a(t))}))?as({},t):JSON.parse(JSON.stringify(t))}function gs(t){return vs(t)}function hs(t){try{if("object"===a(JSON.parse(t)))return!0}catch(t){}return!1}function ys(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function ms(t){return void 0===t&&(t=5),ys(t)}var ws={type:"d"};function bs(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function xs(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function Ss(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,s=document.createElement("script"),f=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,xs(o),xs(c,"loaded"))}:s.onload=function(){xs(o),xs(c,"loaded")},s.src=t,f&&f.parentNode.insertBefore(s,f),new Promise((function(t,e){var n;c=(n=[t,e])[0],u=n[1],i&&setTimeout(u.bind(null,"timeout"),i)}))}function Es(){return Date.now?Date.now():(new Date).getTime()}function Os(t){for(var e=t+"=",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(e))return o.substring(e.length,o.length)}return""}function Ts(){if(window.MAZEY_BROWSER_INFO&&"object"===a(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&js(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=as(as({},t),{system:o,appleType:i});var c="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?c="2000":n(/windows nt 5.1|windows xp/g)?c="xp":n(/windows nt 5.2|windows 2003/g)?c="2003":n(/windows nt 6.0|windows vista/g)?c="vista":n(/windows nt 6.1|windows 7/g)?c="7":n(/windows nt 6.2|windows 8/g)?c="8":n(/windows nt 6.3|windows 8.1/g)?c="8.1":n(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===o?c=r(/os x [\d._]+/g):"android"===o?c=r(/android [\d._]+/g):"ios"===o&&(c=r(/os [\d._]+/g)),t=as(as({},t),{systemVs:c});var u="";"windows"===o||"macos"===o||"linux"===o?u="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(u="mobile"),t=as(as({},t),{platform:u});var s="",f="";n(/applewebkit/g)?(s="webkit",n(/edge/g)?f="edge":n(/opr/g)?f="opera":n(/chrome/g)?f="chrome":n(/safari/g)&&(f="safari")):n(/gecko/g)&&n(/firefox/g)?(s="gecko",f="firefox"):n(/presto/g)?(s="presto",f="opera"):n(/trident|compatible|msie/g)&&(s="trident",f="iexplore"),t=as(as({},t),{engine:s,supporter:f});var l="";"webkit"===s?l=r(/applewebkit\/[\d._]+/g):"gecko"===s?l=r(/gecko\/[\d._]+/g):"presto"===s?l=r(/presto\/[\d._]+/g):"trident"===s&&(l=r(/trident\/[\d._]+/g)),t=as(as({},t),{engineVs:l});var d="";"chrome"===f?d=r(/chrome\/[\d._]+/g):"safari"===f?d=r(/version\/[\d._]+/g):"firefox"===f?d=r(/firefox\/[\d._]+/g):"opera"===f?d=r(/opr\/[\d._]+/g):"iexplore"===f?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===f&&(d=r(/edge\/[\d._]+/g)),t=as(as({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=as(as({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function As(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=t.replace(i,"**").length,u=0;u<c&&(null!=(a=t.charAt(u).toString()).match(i)?r+=2:r++,!(r>e));u++)o+=a;return n&&c>e&&(o+="..."),o}return""}function js(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function Is(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==a(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}exports.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},exports.addEvent=function(t,e){var n=Is();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},exports.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(t,e){return fs(t,e)},exports.calLongestCommonSubstring=function(t,e){return ss(t,e)},exports.camelCase2Underscore=ps,exports.camelCaseToKebabCase=function(t){return ls(t)},exports.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},exports.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},exports.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},exports.convertCamelToKebab=ls,exports.convertCamelToUnder=ds,exports.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),As(t,e,n)},exports.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=Es()-i;s<e&&s>=0?o=setTimeout(u,e-s):(o=null,n||(c=t.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];r=this,a=s,i=Es();var l=n&&!o;return o||(o=setTimeout(u,e)),l&&(c=t.apply(r,a),r=a=null),c}},exports.deepCopy=vs,exports.deepCopyObject=gs,exports.doFn=xs,exports.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},exports.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},exports.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},exports.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,c=n.logFn,u=n.errorFn,s=Object.create(null),f=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){s[e]=function(){for(var n,a,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];if(r)return!1;var d=t,p=t;if("string"==typeof t&&t.length>=2){var v=t.length;d=":"===t[v-1]?t.substring(0,v-1):t}o&&console.log("--- ".concat(d," - begin ---")),i&&(p=t?"".concat(f()," ").concat(t):"".concat(f())),t||i?(n=console)[e].apply(n,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([p],s)):(a=console)[e].apply(a,s),"log"===e&&c(),"error"===e&&u(),o&&console.log("--- ".concat(d," - end ---"))}})),s},exports.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},exports.genRndNumString=ys,exports.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),".".concat(t,"{").concat(n,"}")},exports.generateRndNum=ms,exports.generateUniqueNum=function(t){void 0===t&&(t=3);var e=[Es(),ms(t||3)];return e[0]+e[1]},exports.getBrowserInfo=Ts,exports.getCookie=Os,exports.getCurrentVersion=function(){return"v3.x"},exports.getDefineListeners=Is,exports.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},exports.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},exports.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=ws);var r=(n=Object.assign(ws,n)).type;bs(t)||(t=new Date(t).getTime()),bs(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),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.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},exports.getPerformance=function(t){var e,n;void 0===t&&(t=!1);var r,o,i=new Promise((function(t,r){var o;e=(o=[t,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(t,e,n){var i=Math.round(t.startTime);"first-paint"===t.name?r=i:"first-contentful-paint"===t.name&&(o=i)}));else console.error("paint")}catch(t){console.error(t.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:s(),osVersion:f(),deviceType:l(),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:v(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(g).forEach((function(t){bs(g[t])&&g[t]<0&&(g[t]=0)})),bs(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[ps(t)]=g[t]})),e(i||g);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 f(){var t,e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(t=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(t=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t}function l(){var t=navigator.userAgent.toLowerCase(),e=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",r=t.match(/midp/i)&&"midp",o=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=t.match(/ucweb/i)&&"ucweb",a=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return e||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":e?"ipad":void 0:"pc"}function d(){var t;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t}function p(){var t;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function v(t,e){var n;return e&&(n=t-e),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(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):""},exports.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},exports.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},exports.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},exports.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},exports.inRate=function(t){return Math.random()<t},exports.invokeEvent=function(t){var e=Is()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},exports.isJSONString=hs,exports.isJsonString=function(t){return hs(t)},exports.isNonEmptyArray=js,exports.isNumber=bs,exports.isSafePWAEnv=function(){var t=Ts();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},exports.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.isValidData=function(t,e,n){var r=!1;return"object"!==a(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r},exports.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},exports.isValidPhoneNumber=function(t){return/^1[3456789]\d{9}$/.test(t)},exports.isValidUrl=function(t){return/[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/gm.test(t)},exports.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=new Promise((function(t,e){n=[t,e][0]})),i=function(){n("loaded")},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=t,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){f(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function f(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=!0)}setTimeout((function(){r?e():f(t,e,n)}),20)}return c?(a.onload=s,a.onerror=function(){s()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&s()},o},exports.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},exports.loadScript=Ss,exports.loadScriptIfUndefined=function(t,e){return window[t]?Promise.resolve("defined"):Ss(e)},exports.longestComSubsequence=fs,exports.longestComSubstring=ss,exports.mNow=Es,exports.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},exports.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},exports.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},exports.removeEvent=function(t,e){var n=Is(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},exports.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,c=void 0===a?10:a,u=e.context,s=e.args,f=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return cs(r,void 0,void 0,(function(){var r;return us(this,(function(o){switch(o.label){case 0:return[4,t.apply(u,s)];case 1:return r=o.sent(),n(r)||++f>=c?[2]:(e(),[2])}}))}))}),i)}()},exports.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t&&console.error("Input must be a string"),t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},exports.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==Os(t)&&Os(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))},exports.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&js(r)&&r[1]&&t.width(r[1]),o&&js(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&js(r)&&r[1]&&(e.style.width=r[1]),o&&js(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},exports.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},exports.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},exports.throttle=function(t,e,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:Es(),i=null,c=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var l=Es();u||!1!==n.leading||(u=l);var d=e-(l-u);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=l,c=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s.bind(r),d)),c}},exports.truncateZHString=As,exports.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},exports.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},exports.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i};
|
|
6
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o,i=e((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),a=(n=i)&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},f=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,p=l?d.bind(d):function(){return d.apply(d,arguments)},v={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,h={f:g&&!v.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:v},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=Function.prototype,w=m.call,b=l&&m.bind.bind(w,w),x=l?b:function(t){return function(){return w.apply(t,arguments)}},S=x({}.toString),E=x("".slice),O=function(t){return E(S(t),8,-1)},T=Object,A=x("".split),j=s((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?A(t,""):T(t)}:T,I=function(t){return null==t},R=TypeError,C=function(t){if(I(t))throw R("Can't call method on "+t);return t},M=function(t){return j(C(t))},P="object"==typeof document&&document.all,N={all:P,IS_HTMLDDA:void 0===P&&void 0!==P},_=N.all,k=N.IS_HTMLDDA?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},L=N.all,F=N.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:k(t)||t===L}:function(t){return"object"==typeof t?null!==t:k(t)},D=function(t,e){return arguments.length<2?(n=u[t],k(n)?n:void 0):u[t]&&u[t][e];var n},U=x({}.isPrototypeOf),B="undefined"!=typeof navigator&&String(navigator.userAgent)||"",$=u.process,V=u.Deno,z=$&&$.versions||V&&V.version,q=z&&z.v8;q&&(o=(r=q.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&B&&(!(r=B.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=B.match(/Chrome\/(\d+)/))&&(o=+r[1]);var G=o,W=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),H=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=Object,Z=H?function(t){return"symbol"==typeof t}:function(t){var e=D("Symbol");return k(e)&&U(e.prototype,Y(t))},J=String,K=function(t){try{return J(t)}catch(t){return"Object"}},X=TypeError,Q=function(t){if(k(t))return t;throw X(K(t)+" is not a function")},tt=function(t,e){var n=t[e];return I(n)?void 0:Q(n)},et=TypeError,nt=Object.defineProperty,rt=function(t,e){try{nt(u,t,{value:e,configurable:!0,writable:!0})}catch(n){u[t]=e}return e},ot="__core-js_shared__",it=u[ot]||rt(ot,{}),at=e((function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ct=Object,ut=function(t){return ct(C(t))},st=x({}.hasOwnProperty),ft=Object.hasOwn||function(t,e){return st(ut(t),e)},lt=0,dt=Math.random(),pt=x(1..toString),vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+pt(++lt+dt,36)},gt=u.Symbol,ht=at("wks"),yt=H?gt.for||gt:gt&>.withoutSetter||vt,mt=function(t){return ft(ht,t)||(ht[t]=W&&ft(gt,t)?gt[t]:yt("Symbol."+t)),ht[t]},wt=TypeError,bt=mt("toPrimitive"),xt=function(t,e){if(!F(t)||Z(t))return t;var n,r=tt(t,bt);if(r){if(void 0===e&&(e="default"),n=p(r,t,e),!F(n)||Z(n))return n;throw wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&k(n=t.toString)&&!F(r=p(n,t)))return r;if(k(n=t.valueOf)&&!F(r=p(n,t)))return r;if("string"!==e&&k(n=t.toString)&&!F(r=p(n,t)))return r;throw et("Can't convert object to primitive value")}(t,e)},St=function(t){var e=xt(t,"string");return Z(e)?e:e+""},Et=u.document,Ot=F(Et)&&F(Et.createElement),Tt=function(t){return Ot?Et.createElement(t):{}},At=!f&&!s((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,It={f:f?jt:function(t,e){if(t=M(t),e=St(e),At)try{return jt(t,e)}catch(t){}if(ft(t,e))return y(!p(h.f,t,e),t[e])}},Rt=f&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Mt=TypeError,Pt=function(t){if(F(t))return t;throw Mt(Ct(t)+" is not an object")},Nt=TypeError,_t=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ft="configurable",Dt="writable",Ut={f:f?Rt?function(t,e,n){if(Pt(t),e=St(e),Pt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Dt in n&&!n[Dt]){var r=kt(t,e);r&&r[Dt]&&(t[e]=n.value,n={configurable:Ft in n?n[Ft]:r[Ft],enumerable:Lt in n?n[Lt]:r[Lt],writable:!1})}return _t(t,e,n)}:_t:function(t,e,n){if(Pt(t),e=St(e),Pt(n),At)try{return _t(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Nt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bt=f?function(t,e,n){return Ut.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},$t=Function.prototype,Vt=f&&Object.getOwnPropertyDescriptor,zt=ft($t,"name"),qt={EXISTS:zt,PROPER:zt&&"something"===function(){}.name,CONFIGURABLE:zt&&(!f||f&&Vt($t,"name").configurable)},Gt=x(Function.toString);k(it.inspectSource)||(it.inspectSource=function(t){return Gt(t)});var Wt,Ht,Yt,Zt=it.inspectSource,Jt=u.WeakMap,Kt=k(Jt)&&/native code/.test(String(Jt)),Xt=at("keys"),Qt=function(t){return Xt[t]||(Xt[t]=vt(t))},te={},ee="Object already initialized",ne=u.TypeError,re=u.WeakMap;if(Kt||it.state){var oe=it.state||(it.state=new re);oe.get=oe.get,oe.has=oe.has,oe.set=oe.set,Wt=function(t,e){if(oe.has(t))throw ne(ee);return e.facade=t,oe.set(t,e),e},Ht=function(t){return oe.get(t)||{}},Yt=function(t){return oe.has(t)}}else{var ie=Qt("state");te[ie]=!0,Wt=function(t,e){if(ft(t,ie))throw ne(ee);return e.facade=t,Bt(t,ie,e),e},Ht=function(t){return ft(t,ie)?t[ie]:{}},Yt=function(t){return ft(t,ie)}}var ae,ce={set:Wt,get:Ht,has:Yt,enforce:function(t){return Yt(t)?Ht(t):Wt(t,{})},getterFor:function(t){return function(e){var n;if(!F(e)||(n=Ht(e)).type!==t)throw ne("Incompatible receiver, "+t+" required");return n}}},ue=e((function(t){var e=qt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,a=x("".slice),c=x("".replace),u=x([].join),l=f&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!ft(t,"name")||e&&t.name!==r)&&(f?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&s&&ft(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&ft(s,"constructor")&&s.constructor?f&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return ft(p,"source")||(p.source=u(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return k(this)&&r(this).source||Zt(this)}),"toString")})),se=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(k(n)&&ue(n,i,r),r.global)o?t[e]=n:rt(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},fe=Math.ceil,le=Math.floor,de=Math.trunc||function(t){var e=+t;return(e>0?le:fe)(e)},pe=function(t){var e=+t;return e!=e||0===e?0:de(e)},ve=Math.max,ge=Math.min,he=function(t,e){var n=pe(t);return n<0?ve(n+e,0):ge(n,e)},ye=Math.min,me=function(t){return t>0?ye(pe(t),9007199254740991):0},we=function(t){return me(t.length)},be=function(t){return function(e,n,r){var o,i=M(e),a=we(i),c=he(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},xe={includes:be(!0),indexOf:be(!1)},Se=xe.indexOf,Ee=x([].push),Oe=function(t,e){var n,r=M(t),o=0,i=[];for(n in r)!ft(te,n)&&ft(r,n)&&Ee(i,n);for(;e.length>o;)ft(r,n=e[o++])&&(~Se(i,n)||Ee(i,n));return i},Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ae=Te.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(t){return Oe(t,Ae)}},Ie={f:Object.getOwnPropertySymbols},Re=x([].concat),Ce=D("Reflect","ownKeys")||function(t){var e=je.f(Pt(t)),n=Ie.f;return n?Re(e,n(t)):e},Me=function(t,e,n){for(var r=Ce(e),o=Ut.f,i=It.f,a=0;a<r.length;a++){var c=r[a];ft(t,c)||n&&ft(n,c)||o(t,c,i(e,c))}},Pe=/#|\.prototype\./,Ne=function(t,e){var n=ke[_e(t)];return n==Fe||n!=Le&&(k(e)?s(e):!!e)},_e=Ne.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},ke=Ne.data={},Le=Ne.NATIVE="N",Fe=Ne.POLYFILL="P",De=Ne,Ue=It.f,Be=function(t,e){var n,r,o,i,a,c=t.target,s=t.global,f=t.stat;if(n=s?u:f?u[c]||rt(c,{}):(u[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Ue(n,r))&&a.value:n[r],!De(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Me(i,o)}(t.sham||o&&o.sham)&&Bt(i,"sham",!0),se(n,r,i,t)}},$e=Object.keys||function(t){return Oe(t,Te)},Ve=f&&!Rt?Object.defineProperties:function(t,e){Pt(t);for(var n,r=M(e),o=$e(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},ze={f:Ve},qe=D("document","documentElement"),Ge="prototype",We="script",He=Qt("IE_PROTO"),Ye=function(){},Ze=function(t){return"<"+We+">"+t+"</"+We+">"},Je=function(t){t.write(Ze("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ke=function(){try{ae=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Ke="undefined"!=typeof document?document.domain&&ae?Je(ae):(e=Tt("iframe"),n="java"+We+":",e.style.display="none",qe.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ze("document.F=Object")),t.close(),t.F):Je(ae);for(var r=Te.length;r--;)delete Ke[Ge][Te[r]];return Ke()};te[He]=!0;var Xe=Object.create||function(t,e){var n;return null!==t?(Ye[Ge]=Pt(t),n=new Ye,Ye[Ge]=null,n[He]=t):n=Ke(),void 0===e?n:ze.f(n,e)},Qe=Ut.f,tn=mt("unscopables"),en=Array.prototype;null==en[tn]&&Qe(en,tn,{configurable:!0,value:Xe(null)});var nn=function(t){en[tn][t]=!0};Be({target:"Array",proto:!0},{fill:function(t){for(var e=ut(this),n=we(e),r=arguments.length,o=he(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:he(i,n);a>o;)e[o++]=t;return e}}),nn("fill");var rn=Array.isArray||function(t){return"Array"==O(t)},on=TypeError,an=function(t){if(t>9007199254740991)throw on("Maximum allowed index exceeded");return t},cn=function(t,e,n){var r=St(e);r in t?Ut.f(t,r,y(0,n)):t[r]=n},un={};un[mt("toStringTag")]="z";var sn="[object z]"===String(un),fn=mt("toStringTag"),ln=Object,dn="Arguments"==O(function(){return arguments}()),pn=sn?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ln(t),fn))?n:dn?O(e):"Object"==(r=O(e))&&k(e.callee)?"Arguments":r},vn=function(){},gn=[],hn=D("Reflect","construct"),yn=/^\s*(?:class|function)\b/,mn=x(yn.exec),wn=!yn.exec(vn),bn=function(t){if(!k(t))return!1;try{return hn(vn,gn,t),!0}catch(t){return!1}},xn=function(t){if(!k(t))return!1;switch(pn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wn||!!mn(yn,Zt(t))}catch(t){return!0}};xn.sham=!0;var Sn=!hn||s((function(){var t;return bn(bn.call)||!bn(Object)||!bn((function(){t=!0}))||t}))?xn:bn,En=mt("species"),On=Array,Tn=function(t,e){return new(function(t){var e;return rn(t)&&(e=t.constructor,(Sn(e)&&(e===On||rn(e.prototype))||F(e)&&null===(e=e[En]))&&(e=void 0)),void 0===e?On:e}(t))(0===e?0:e)},An=mt("species"),jn=function(t){return G>=51||!s((function(){var e=[];return(e.constructor={})[An]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},In=mt("isConcatSpreadable"),Rn=G>=51||!s((function(){var t=[];return t[In]=!1,t.concat()[0]!==t})),Cn=function(t){if(!F(t))return!1;var e=t[In];return void 0!==e?!!e:rn(t)},Mn=!Rn||!jn("concat");Be({target:"Array",proto:!0,arity:1,forced:Mn},{concat:function(t){var e,n,r,o,i,a=ut(this),c=Tn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Cn(i=-1===e?a:arguments[e]))for(o=we(i),an(u+o),n=0;n<o;n++,u++)n in i&&cn(c,u,i[n]);else an(u+1),cn(c,u++,i);return c.length=u,c}});var Pn=String,Nn=TypeError,_n=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return x(Q(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Pt(n),function(t){if("object"==typeof t||k(t))return t;throw Nn("Can't set "+Pn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),kn=function(t,e,n){var r,o;return _n&&k(r=e.constructor)&&r!==n&&F(o=r.prototype)&&o!==n.prototype&&_n(t,o),t},Ln=mt("match"),Fn=function(t){var e;return F(t)&&(void 0!==(e=t[Ln])?!!e:"RegExp"==O(t))},Dn=String,Un=function(t){if("Symbol"===pn(t))throw TypeError("Cannot convert a Symbol value to a string");return Dn(t)},Bn=function(){var t=Pt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},$n=RegExp.prototype,Vn=function(t){var e=t.flags;return void 0!==e||"flags"in $n||ft(t,"flags")||!U($n,t)?e:p(Bn,t)},zn=u.RegExp,qn=s((function(){var t=zn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Gn=qn||s((function(){return!zn("a","y").sticky})),Wn={BROKEN_CARET:qn||s((function(){var t=zn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Gn,UNSUPPORTED_Y:qn},Hn=Ut.f,Yn=function(t,e,n){n in t||Hn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Zn=function(t,e,n){return n.get&&ue(n.get,e,{getter:!0}),n.set&&ue(n.set,e,{setter:!0}),Ut.f(t,e,n)},Jn=mt("species"),Kn=function(t){var e=D(t);f&&e&&!e[Jn]&&Zn(e,Jn,{configurable:!0,get:function(){return this}})},Xn=u.RegExp,Qn=s((function(){var t=Xn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),tr=u.RegExp,er=s((function(){var t=tr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),nr=je.f,rr=ce.enforce,or=mt("match"),ir=u.RegExp,ar=ir.prototype,cr=u.SyntaxError,ur=x(ar.exec),sr=x("".charAt),fr=x("".replace),lr=x("".indexOf),dr=x("".slice),pr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,vr=/a/g,gr=/a/g,hr=new ir(vr)!==vr,yr=Wn.MISSED_STICKY,mr=Wn.UNSUPPORTED_Y,wr=f&&(!hr||yr||Qn||er||s((function(){return gr[or]=!1,ir(vr)!=vr||ir(gr)==gr||"/a/i"!=ir(vr,"i")})));if(De("RegExp",wr)){for(var br=function(t,e){var n,r,o,i,a,c,u=U(ar,this),s=Fn(t),f=void 0===e,l=[],d=t;if(!u&&s&&f&&t.constructor===br)return t;if((s||U(ar,t))&&(t=t.source,f&&(e=Vn(d))),t=void 0===t?"":Un(t),e=void 0===e?"":Un(e),d=t,Qn&&"dotAll"in vr&&(r=!!e&&lr(e,"s")>-1)&&(e=fr(e,/s/g,"")),n=e,yr&&"sticky"in vr&&(o=!!e&&lr(e,"y")>-1)&&mr&&(e=fr(e,/y/g,"")),er&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},c=!1,u=!1,s=0,f="";r<=n;r++){if("\\"===(e=sr(t,r)))e+=sr(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:ur(pr,dr(t,r+1))&&(r+=2,u=!0),o+=e,s++;continue;case">"===e&&u:if(""===f||ft(a,f))throw new cr("Invalid capture group name");a[f]=!0,i[i.length]=[f,s],u=!1,f="";continue}u?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=kn(ir(t,e),u?this:ar,br),(r||o||l.length)&&(c=rr(a),r&&(c.dotAll=!0,c.raw=br(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=sr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+sr(t,++r);return o}(t),n)),o&&(c.sticky=!0),l.length&&(c.groups=l)),t!==d)try{Bt(a,"source",""===d?"(?:)":d)}catch(t){}return a},xr=nr(ir),Sr=0;xr.length>Sr;)Yn(br,ir,xr[Sr++]);ar.constructor=br,br.prototype=ar,se(u,"RegExp",br,{constructor:!0})}Kn("RegExp");var Er=ce.get,Or=at("native-string-replace",String.prototype.replace),Tr=RegExp.prototype.exec,Ar=Tr,jr=x("".charAt),Ir=x("".indexOf),Rr=x("".replace),Cr=x("".slice),Mr=function(){var t=/a/,e=/b*/g;return p(Tr,t,"a"),p(Tr,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Pr=Wn.BROKEN_CARET,Nr=void 0!==/()??/.exec("")[1];(Mr||Nr||Pr||Qn||er)&&(Ar=function(t){var e,n,r,o,i,a,c,u=this,s=Er(u),f=Un(t),l=s.raw;if(l)return l.lastIndex=u.lastIndex,e=p(Ar,l,f),u.lastIndex=l.lastIndex,e;var d=s.groups,v=Pr&&u.sticky,g=p(Bn,u),h=u.source,y=0,m=f;if(v&&(g=Rr(g,"y",""),-1===Ir(g,"g")&&(g+="g"),m=Cr(f,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==jr(f,u.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,y++),n=new RegExp("^(?:"+h+")",g)),Nr&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Mr&&(r=u.lastIndex),o=p(Tr,v?n:u,m),v?o?(o.input=Cr(o.input,y),o[0]=Cr(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Mr&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Nr&&o&&o.length>1&&p(Or,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Xe(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var _r=Ar;Be({target:"RegExp",proto:!0,forced:/./.exec!==_r},{exec:_r});var kr=qt.PROPER,Lr="toString",Fr=RegExp.prototype[Lr],Dr=s((function(){return"/a/b"!=Fr.call({source:"a",flags:"b"})})),Ur=kr&&Fr.name!=Lr;(Dr||Ur)&&se(RegExp.prototype,Lr,(function(){var t=Pt(this);return"/"+Un(t.source)+"/"+Un(Vn(t))}),{unsafe:!0});var Br=function(t){if("Function"===O(t))return x(t)},$r=mt("species"),Vr=RegExp.prototype,zr=function(t,e,n,r){var o=mt(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[$r]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var c=Br(/./[o]),u=e(o,""[t],(function(t,e,n,r,o){var a=Br(t),u=e.exec;return u===_r||u===Vr.exec?i&&!o?{done:!0,value:c(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));se(String.prototype,t,u[0]),se(Vr,o,u[1])}r&&Bt(Vr[o],"sham",!0)},qr=x("".charAt),Gr=x("".charCodeAt),Wr=x("".slice),Hr=function(t){return function(e,n){var r,o,i=Un(C(e)),a=pe(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Gr(i,a))<55296||r>56319||a+1===c||(o=Gr(i,a+1))<56320||o>57343?t?qr(i,a):r:t?Wr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yr={codeAt:Hr(!1),charAt:Hr(!0)},Zr=Yr.charAt,Jr=function(t,e,n){return e+(n?Zr(t,e).length:1)},Kr=TypeError,Xr=function(t,e){var n=t.exec;if(k(n)){var r=p(n,t,e);return null!==r&&Pt(r),r}if("RegExp"===O(t))return p(_r,t,e);throw Kr("RegExp#exec called on incompatible receiver")};zr("match",(function(t,e,n){return[function(e){var n=C(this),r=I(e)?void 0:tt(e,t);return r?p(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=Pt(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Xr(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],s=0;null!==(c=Xr(r,o));){var f=Un(c[0]);u[s]=f,""===f&&(r.lastIndex=Jr(o,me(r.lastIndex),a)),s++}return 0===s?null:u}]}));var Qr=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};zr("search",(function(t,e,n){return[function(e){var n=C(this),r=I(e)?void 0:tt(e,t);return r?p(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=Pt(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;Qr(a,0)||(r.lastIndex=0);var c=Xr(r,o);return Qr(r.lastIndex,a)||(r.lastIndex=a),null===c?-1:c.index}]}));var to=Function.prototype,eo=to.apply,no=to.call,ro="object"==typeof Reflect&&Reflect.apply||(l?no.bind(eo):function(){return no.apply(eo,arguments)}),oo=Math.floor,io=x("".charAt),ao=x("".replace),co=x("".slice),uo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,so=/\$([$&'`]|\d{1,2})/g,fo=function(t,e,n,r,o,i){var a=n+t.length,c=r.length,u=so;return void 0!==o&&(o=ut(o),u=uo),ao(i,u,(function(i,u){var s;switch(io(u,0)){case"$":return"$";case"&":return t;case"`":return co(e,0,n);case"'":return co(e,a);case"<":s=o[co(u,1,-1)];break;default:var f=+u;if(0===f)return i;if(f>c){var l=oo(f/10);return 0===l?i:l<=c?void 0===r[l-1]?io(u,1):r[l-1]+io(u,1):i}s=r[f-1]}return void 0===s?"":s}))},lo=mt("replace"),po=Math.max,vo=Math.min,go=x([].concat),ho=x([].push),yo=x("".indexOf),mo=x("".slice),wo="$0"==="a".replace(/./,"$0"),bo=!!/./[lo]&&""===/./[lo]("a","$0");zr("replace",(function(t,e,n){var r=bo?"$":"$0";return[function(t,n){var r=C(this),o=I(t)?void 0:tt(t,lo);return o?p(o,t,r,n):p(e,Un(r),t,n)},function(t,o){var i=Pt(this),a=Un(t);if("string"==typeof o&&-1===yo(o,r)&&-1===yo(o,"$<")){var c=n(e,i,a,o);if(c.done)return c.value}var u=k(o);u||(o=Un(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Xr(i,a);if(null===d)break;if(ho(l,d),!s)break;""===Un(d[0])&&(i.lastIndex=Jr(a,me(i.lastIndex),f))}for(var p,v="",g=0,h=0;h<l.length;h++){for(var y=Un((d=l[h])[0]),m=po(vo(pe(d.index),a.length),0),w=[],b=1;b<d.length;b++)ho(w,void 0===(p=d[b])?p:String(p));var x=d.groups;if(u){var S=go([y],w,m,a);void 0!==x&&ho(S,x);var E=Un(ro(o,void 0,S))}else E=fo(y,a,m,w,x,o);m>=g&&(v+=mo(a,g,m)+E,g=m+y.length)}return v+mo(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!wo||bo);var xo=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},So=xe.indexOf,Eo=Br([].indexOf),Oo=!!Eo&&1/Eo([1],1,-0)<0,To=Oo||!xo("indexOf");Be({target:"Array",proto:!0,forced:To},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Oo?Eo(this,t,e)||0:So(this,t,e)}});var Ao=TypeError,jo=function(t){return function(e,n,r,o){Q(n);var i=ut(e),a=j(i),c=we(i),u=t?c-1:0,s=t?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=s;break}if(u+=s,t?u<0:c<=u)throw Ao("Reduce of empty array with no initial value")}for(;t?u>=0:c>u;u+=s)u in a&&(o=n(o,a[u],u,i));return o}},Io={left:jo(!1),right:jo(!0)},Ro="undefined"!=typeof process&&"process"==O(process),Co=Io.left,Mo=!Ro&&G>79&&G<83||!xo("reduce");Be({target:"Array",proto:!0,forced:Mo},{reduce:function(t){var e=arguments.length;return Co(this,t,e,e>1?arguments[1]:void 0)}});var Po=sn?{}.toString:function(){return"[object "+pn(this)+"]"};sn||se(Object.prototype,"toString",Po,{unsafe:!0});var No=x([].slice),_o=jn("slice"),ko=mt("species"),Lo=Array,Fo=Math.max;Be({target:"Array",proto:!0,forced:!_o},{slice:function(t,e){var n,r,o,i=M(this),a=we(i),c=he(t,a),u=he(void 0===e?a:e,a);if(rn(i)&&(n=i.constructor,(Sn(n)&&(n===Lo||rn(n.prototype))||F(n)&&null===(n=n[ko]))&&(n=void 0),n===Lo||void 0===n))return No(i,c,u);for(r=new(void 0===n?Lo:n)(Fo(u-c,0)),o=0;c<u;c++,o++)c in i&&cn(r,o,i[c]);return r.length=o,r}});var Do=x(h.f),Uo=x([].push),Bo=function(t){return function(e){for(var n,r=M(e),o=$e(r),i=o.length,a=0,c=[];i>a;)n=o[a++],f&&!Do(r,n)||Uo(c,t?[n,r[n]]:r[n]);return c}},$o={entries:Bo(!0),values:Bo(!1)}.values;Be({target:"Object",stat:!0},{values:function(t){return $o(t)}});var Vo=Br(Br.bind),zo=function(t,e){return Q(t),void 0===e?t:l?Vo(t,e):function(){return t.apply(e,arguments)}},qo=x([].push),Go=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var d,p,v=ut(u),g=j(v),h=zo(s,f),y=we(g),m=0,w=l||Tn,b=e?w(u,y):n||a?w(u,0):void 0;y>m;m++)if((c||m in g)&&(p=h(d=g[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:qo(b,d)}else switch(t){case 4:return!1;case 7:qo(b,d)}return i?-1:r||o?o:b}},Wo={forEach:Go(0),map:Go(1),filter:Go(2),some:Go(3),every:Go(4),find:Go(5),findIndex:Go(6),filterReject:Go(7)},Ho=Wo.every,Yo=xo("every");Be({target:"Array",proto:!0,forced:!Yo},{every:function(t){return Ho(this,t,arguments.length>1?arguments[1]:void 0)}});var Zo=xe.includes,Jo=s((function(){return!Array(1).includes()}));Be({target:"Array",proto:!0,forced:Jo},{includes:function(t){return Zo(this,t,arguments.length>1?arguments[1]:void 0)}}),nn("includes");var Ko=x(1..valueOf),Xo=RangeError,Qo=RangeError,ti=String,ei=Math.floor,ni=x((function(t){var e=Un(C(this)),n="",r=pe(t);if(r<0||r==1/0)throw Xo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),ri=x("".slice),oi=x(1..toFixed),ii=function(t,e,n){return 0===e?n:e%2==1?ii(t,e-1,n*t):ii(t*t,e/2,n)},ai=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ei(o/1e7)},ci=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ei(r/e),r=r%e*1e7},ui=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ti(t[e]);n=""===n?r:n+ni("0",7-r.length)+r}return n},si=s((function(){return"0.000"!==oi(8e-5,3)||"1"!==oi(.9,0)||"1.25"!==oi(1.255,2)||"1000000000000000128"!==oi(0xde0b6b3a7640080,0)}))||!s((function(){oi({})}));Be({target:"Number",proto:!0,forced:si},{toFixed:function(t){var e,n,r,o,i=Ko(this),a=pe(t),c=[0,0,0,0,0,0],u="",s="0";if(a<0||a>20)throw Qo("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ti(i);if(i<0&&(u="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*ii(2,69,1))-69,n=e<0?i*ii(2,-e,1):i/ii(2,e,1),n*=4503599627370496,(e=52-e)>0){for(ai(c,0,n),r=a;r>=7;)ai(c,1e7,0),r-=7;for(ai(c,ii(10,r,1),0),r=e-1;r>=23;)ci(c,1<<23),r-=23;ci(c,1<<r),ai(c,1,1),ci(c,2),s=ui(c)}else ai(c,0,n),ai(c,1<<-e,0),s=ui(c)+ni("0",a);return s=a>0?u+((o=s.length)<=a?"0."+ni("0",a-o)+s:ri(s,0,o-a)+"."+ri(s,o-a)):u+s}});var fi="\t\n\v\f\r \u2028\u2029\ufeff",li=x("".replace),di=RegExp("^["+fi+"]+"),pi=RegExp("(^|[^"+fi+"])["+fi+"]+$"),vi=function(t){return function(e){var n=Un(C(e));return 1&t&&(n=li(n,di,"")),2&t&&(n=li(n,pi,"$1")),n}},gi={start:vi(1),end:vi(2),trim:vi(3)},hi=gi.trim,yi=x("".charAt),mi=u.parseFloat,wi=u.Symbol,bi=wi&&wi.iterator,xi=1/mi(fi+"-0")!=-1/0||bi&&!s((function(){mi(Object(bi))}))?function(t){var e=hi(Un(t)),n=mi(e);return 0===n&&"-"==yi(e,0)?-0:n}:mi;Be({global:!0,forced:parseFloat!=xi},{parseFloat:xi});var Si=TypeError,Ei=mt("species"),Oi=function(t,e){var n,r=Pt(t).constructor;return void 0===r||I(n=Pt(r)[Ei])?e:function(t){if(Sn(t))return t;throw Si(K(t)+" is not a constructor")}(n)},Ti=Array,Ai=Math.max,ji=function(t,e,n){for(var r=we(t),o=he(e,r),i=he(void 0===n?r:n,r),a=Ti(Ai(i-o,0)),c=0;o<i;o++,c++)cn(a,c,t[o]);return a.length=c,a},Ii=Wn.UNSUPPORTED_Y,Ri=4294967295,Ci=Math.min,Mi=[].push,Pi=x(/./.exec),Ni=x(Mi),_i=x("".slice);zr("split",(function(t,e,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(t,n){var r=Un(C(this)),o=void 0===n?Ri:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Fn(t))return p(e,r,t,o);for(var i,a,c,u=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=p(_r,l,r))&&!((a=l.lastIndex)>f&&(Ni(u,_i(r,f,i.index)),i.length>1&&i.index<r.length&&ro(Mi,u,ji(i,1)),c=i[0].length,f=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===r.length?!c&&Pi(l,"")||Ni(u,""):Ni(u,_i(r,f)),u.length>o?ji(u,0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:p(e,this,t,n)}:e,[function(e,n){var o=C(this),i=I(e)?void 0:tt(e,t);return i?p(i,e,o,n):p(r,Un(o),e,n)},function(t,o){var i=Pt(this),a=Un(t),c=n(r,i,a,o,r!==e);if(c.done)return c.value;var u=Oi(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ii?"g":"y"),l=new u(Ii?"^(?:"+i.source+")":i,f),d=void 0===o?Ri:o>>>0;if(0===d)return[];if(0===a.length)return null===Xr(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=Ii?0:v;var h,y=Xr(l,Ii?_i(a,v):a);if(null===y||(h=Ci(me(l.lastIndex+(Ii?v:0)),a.length))===p)v=Jr(a,v,s);else{if(Ni(g,_i(a,p,v)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Ni(g,y[m]),g.length===d)return g;v=p=h}}return Ni(g,_i(a,p)),g}]}),!!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ii);var ki=Object.assign,Li=Object.defineProperty,Fi=x([].concat),Di=!ki||s((function(){if(f&&1!==ki({b:1},ki(Li({},"a",{enumerable:!0,get:function(){Li(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=ki({},t)[n]||$e(ki({},e)).join("")!=r}))?function(t,e){for(var n=ut(t),r=arguments.length,o=1,i=Ie.f,a=h.f;r>o;)for(var c,u=j(arguments[o++]),s=i?Fi($e(u),i(u)):$e(u),l=s.length,d=0;l>d;)c=s[d++],f&&!p(a,u,c)||(n[c]=u[c]);return n}:ki;Be({target:"Object",stat:!0,arity:2,forced:Object.assign!==Di},{assign:Di});var Ui=u,Bi=je.f,$i=It.f,Vi=Ut.f,zi=gi.trim,qi="Number",Gi=u[qi];Ui[qi];var Wi=Gi.prototype,Hi=u.TypeError,Yi=x("".slice),Zi=x("".charCodeAt),Ji=function(t){var e,n,r,o,i,a,c,u,s=xt(t,"number");if(Z(s))throw Hi("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=zi(s),43===(e=Zi(s,0))||45===e){if(88===(n=Zi(s,2))||120===n)return NaN}else if(48===e){switch(Zi(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=Yi(s,2)).length,c=0;c<a;c++)if((u=Zi(i,c))<48||u>o)return NaN;return parseInt(i,r)}return+s},Ki=De(qi,!Gi(" 0o1")||!Gi("0b1")||Gi("+0x1")),Xi=function(t){var e,n=arguments.length<1?0:Gi(function(t){var e=xt(t,"number");return"bigint"==typeof e?e:Ji(e)}(t));return U(Wi,e=this)&&s((function(){Ko(e)}))?kn(Object(n),this,Xi):n};Xi.prototype=Wi,Ki&&(Wi.constructor=Xi),Be({global:!0,constructor:!0,wrap:!0,forced:Ki},{Number:Xi});Ki&&function(t,e){for(var n,r=f?Bi(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)ft(e,n=r[o])&&!ft(t,n)&&Vi(t,n,$i(e,n))}(Ui[qi],Gi);var Qi,ta,ea,na,ra=Ut.f,oa=mt("toStringTag"),ia=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ft(t,oa)&&ra(t,oa,{configurable:!0,value:e})},aa=TypeError,ca=TypeError,ua=/(?:ipad|iphone|ipod).*applewebkit/i.test(B),sa=u.setImmediate,fa=u.clearImmediate,la=u.process,da=u.Dispatch,pa=u.Function,va=u.MessageChannel,ga=u.String,ha=0,ya={},ma="onreadystatechange";s((function(){Qi=u.location}));var wa=function(t){if(ft(ya,t)){var e=ya[t];delete ya[t],e()}},ba=function(t){return function(){wa(t)}},xa=function(t){wa(t.data)},Sa=function(t){u.postMessage(ga(t),Qi.protocol+"//"+Qi.host)};sa&&fa||(sa=function(t){!function(t,e){if(t<e)throw ca("Not enough arguments")}(arguments.length,1);var e=k(t)?t:pa(t),n=No(arguments,1);return ya[++ha]=function(){ro(e,void 0,n)},ta(ha),ha},fa=function(t){delete ya[t]},Ro?ta=function(t){la.nextTick(ba(t))}:da&&da.now?ta=function(t){da.now(ba(t))}:va&&!ua?(na=(ea=new va).port2,ea.port1.onmessage=xa,ta=zo(na.postMessage,na)):u.addEventListener&&k(u.postMessage)&&!u.importScripts&&Qi&&"file:"!==Qi.protocol&&!s(Sa)?(ta=Sa,u.addEventListener("message",xa,!1)):ta=ma in Tt("script")?function(t){qe.appendChild(Tt("script"))[ma]=function(){qe.removeChild(this),wa(t)}}:function(t){setTimeout(ba(t),0)});var Ea={set:sa,clear:fa},Oa=function(){this.head=null,this.tail=null};Oa.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ta,Aa,ja,Ia,Ra,Ca=Oa,Ma=/ipad|iphone|ipod/i.test(B)&&"undefined"!=typeof Pebble,Pa=/web0s(?!.*chrome)/i.test(B),Na=It.f,_a=Ea.set,ka=u.MutationObserver||u.WebKitMutationObserver,La=u.document,Fa=u.process,Da=u.Promise,Ua=Na(u,"queueMicrotask"),Ba=Ua&&Ua.value;if(!Ba){var $a=new Ca,Va=function(){var t,e;for(Ro&&(t=Fa.domain)&&t.exit();e=$a.get();)try{e()}catch(t){throw $a.head&&Ta(),t}t&&t.enter()};ua||Ro||Pa||!ka||!La?!Ma&&Da&&Da.resolve?((Ia=Da.resolve(void 0)).constructor=Da,Ra=zo(Ia.then,Ia),Ta=function(){Ra(Va)}):Ro?Ta=function(){Fa.nextTick(Va)}:(_a=zo(_a,u),Ta=function(){_a(Va)}):(Aa=!0,ja=La.createTextNode(""),new ka(Va).observe(ja,{characterData:!0}),Ta=function(){ja.data=Aa=!Aa}),Ba=function(t){$a.head||Ta(),$a.add(t)}}var za=Ba,qa=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ga=u.Promise,Wa="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ha=!Wa&&!Ro&&"object"==typeof window&&"object"==typeof document;Ga&&Ga.prototype;var Ya,Za,Ja,Ka=mt("species"),Xa=!1,Qa=k(u.PromiseRejectionEvent),tc=De("Promise",(function(){var t=Zt(Ga),e=t!==String(Ga);if(!e&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var n=new Ga((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Ka]=r,!(Xa=n.then((function(){}))instanceof r))return!0}return!e&&(Ha||Wa)&&!Qa})),ec={CONSTRUCTOR:tc,REJECTION_EVENT:Qa,SUBCLASSING:Xa},nc=TypeError,rc=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw nc("Bad Promise constructor");e=t,n=r})),this.resolve=Q(e),this.reject=Q(n)},oc={f:function(t){return new rc(t)}},ic=Ea.set,ac="Promise",cc=ec.CONSTRUCTOR,uc=ec.REJECTION_EVENT,sc=ec.SUBCLASSING,fc=ce.getterFor(ac),lc=ce.set,dc=Ga&&Ga.prototype,pc=Ga,vc=dc,gc=u.TypeError,hc=u.document,yc=u.process,mc=oc.f,wc=mc,bc=!!(hc&&hc.createEvent&&u.dispatchEvent),xc="unhandledrejection",Sc=function(t){var e;return!(!F(t)||!k(e=t.then))&&e},Ec=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&Ic(e),e.rejection=1),!0===c?n=i:(f&&f.enter(),n=c(i),f&&(f.exit(),o=!0)),n===t.promise?s(gc("Promise-chain cycle")):(r=Sc(n))?p(r,n,u,s):u(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},Oc=function(t,e){t.notified||(t.notified=!0,za((function(){for(var n,r=t.reactions;n=r.get();)Ec(n,t);t.notified=!1,e&&!t.rejection&&Ac(t)})))},Tc=function(t,e,n){var r,o;bc?((r=hc.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!uc&&(o=u["on"+t])?o(r):t===xc&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Ac=function(t){p(ic,u,(function(){var e,n=t.facade,r=t.value;if(jc(t)&&(e=qa((function(){Ro?yc.emit("unhandledRejection",r,n):Tc(xc,n,r)})),t.rejection=Ro||jc(t)?2:1,e.error))throw e.value}))},jc=function(t){return 1!==t.rejection&&!t.parent},Ic=function(t){p(ic,u,(function(){var e=t.facade;Ro?yc.emit("rejectionHandled",e):Tc("rejectionhandled",e,t.value)}))},Rc=function(t,e,n){return function(r){t(e,r,n)}},Cc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Oc(t,!0))},Mc=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw gc("Promise can't be resolved itself");var r=Sc(e);r?za((function(){var n={done:!1};try{p(r,e,Rc(Mc,n,t),Rc(Cc,n,t))}catch(e){Cc(n,e,t)}})):(t.value=e,t.state=1,Oc(t,!1))}catch(e){Cc({done:!1},e,t)}}};if(cc&&(vc=(pc=function(t){!function(t,e){if(U(e,t))return t;throw aa("Incorrect invocation")}(this,vc),Q(t),p(Ya,this);var e=fc(this);try{t(Rc(Mc,e),Rc(Cc,e))}catch(t){Cc(e,t)}}).prototype,(Ya=function(t){lc(this,{type:ac,done:!1,notified:!1,parent:!1,reactions:new Ca,rejection:!1,state:0,value:void 0})}).prototype=se(vc,"then",(function(t,e){var n=fc(this),r=mc(Oi(this,pc));return n.parent=!0,r.ok=!k(t)||t,r.fail=k(e)&&e,r.domain=Ro?yc.domain:void 0,0==n.state?n.reactions.add(r):za((function(){Ec(r,n)})),r.promise})),Za=function(){var t=new Ya,e=fc(t);this.promise=t,this.resolve=Rc(Mc,e),this.reject=Rc(Cc,e)},oc.f=mc=function(t){return t===pc||undefined===t?new Za(t):wc(t)},k(Ga)&&dc!==Object.prototype)){Ja=dc.then,sc||se(dc,"then",(function(t,e){var n=this;return new pc((function(t,e){p(Ja,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete dc.constructor}catch(t){}_n&&_n(dc,vc)}Be({global:!0,constructor:!0,wrap:!0,forced:cc},{Promise:pc}),ia(pc,ac,!1),Kn(ac);var Pc={},Nc=mt("iterator"),_c=Array.prototype,kc=function(t){return void 0!==t&&(Pc.Array===t||_c[Nc]===t)},Lc=mt("iterator"),Fc=function(t){if(!I(t))return tt(t,Lc)||tt(t,"@@iterator")||Pc[pn(t)]},Dc=TypeError,Uc=function(t,e){var n=arguments.length<2?Fc(t):e;if(Q(n))return Pt(p(n,t));throw Dc(K(t)+" is not iterable")},Bc=function(t,e,n){var r,o;Pt(t);try{if(!(r=tt(t,"return"))){if("throw"===e)throw n;return n}r=p(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Pt(r),n},$c=TypeError,Vc=function(t,e){this.stopped=t,this.result=e},zc=Vc.prototype,qc=function(t,e,n){var r,o,i,a,c,u,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=zo(e,f),y=function(t){return r&&Bc(r,"normal",t),new Vc(!0,t)},m=function(t){return l?(Pt(t),g?h(t[0],t[1],y):h(t[0],t[1])):g?h(t,y):h(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=Fc(t)))throw $c(K(t)+" is not iterable");if(kc(o)){for(i=0,a=we(t);a>i;i++)if((c=m(t[i]))&&U(zc,c))return c;return new Vc(!1)}r=Uc(t,o)}for(u=d?t.next:r.next;!(s=p(u,r)).done;){try{c=m(s.value)}catch(t){Bc(r,"throw",t)}if("object"==typeof c&&c&&U(zc,c))return c}return new Vc(!1)},Gc=mt("iterator"),Wc=!1;try{var Hc=0,Yc={next:function(){return{done:!!Hc++}},return:function(){Wc=!0}};Yc[Gc]=function(){return this},Array.from(Yc,(function(){throw 2}))}catch(t){}var Zc=function(t,e){if(!e&&!Wc)return!1;var n=!1;try{var r={};r[Gc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Jc=ec.CONSTRUCTOR||!Zc((function(t){Ga.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:Jc},{all:function(t){var e=this,n=oc.f(e),r=n.resolve,o=n.reject,i=qa((function(){var n=Q(e.resolve),i=[],a=0,c=1;qc(t,(function(t){var u=a++,s=!1;c++,p(n,e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Kc=ec.CONSTRUCTOR,Xc=Ga&&Ga.prototype;if(Be({target:"Promise",proto:!0,forced:Kc,real:!0},{catch:function(t){return this.then(void 0,t)}}),k(Ga)){var Qc=D("Promise").prototype.catch;Xc.catch!==Qc&&se(Xc,"catch",Qc,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:Jc},{race:function(t){var e=this,n=oc.f(e),r=n.reject,o=qa((function(){var o=Q(e.resolve);qc(t,(function(t){p(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:ec.CONSTRUCTOR},{reject:function(t){var e=oc.f(this);return p(e.reject,void 0,t),e.promise}});var tu=ec.CONSTRUCTOR;D("Promise"),Be({target:"Promise",stat:!0,forced:tu},{resolve:function(t){return function(t,e){if(Pt(t),F(e)&&e.constructor===t)return e;var n=oc.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var eu=qt.EXISTS,nu=Function.prototype,ru=x(nu.toString),ou=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,iu=x(ou.exec);f&&!eu&&Zn(nu,"name",{configurable:!0,get:function(){try{return iu(ou,ru(this))[1]}catch(t){return""}}});var au=x([].join),cu=j!=Object||!xo("join",",");Be({target:"Array",proto:!0,forced:cu},{join:function(t){return au(M(this),void 0===t?",":t)}});var uu=Wo.forEach,su=xo("forEach")?[].forEach:function(t){return uu(this,t,arguments.length>1?arguments[1]:void 0)};Be({target:"Array",proto:!0,forced:[].forEach!=su},{forEach:su});var fu={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},lu=Tt("span").classList,du=lu&&lu.constructor&&lu.constructor.prototype,pu=du===Object.prototype?void 0:du,vu=function(t){if(t&&t.forEach!==su)try{Bt(t,"forEach",su)}catch(e){t.forEach=su}};for(var gu in fu)fu[gu]&&vu(u[gu]&&u[gu].prototype);vu(pu);var hu=s((function(){$e(1)}));Be({target:"Object",stat:!0,forced:hu},{keys:function(t){return $e(ut(t))}});var yu=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),mu=Qt("IE_PROTO"),wu=Object,bu=wu.prototype,xu=yu?wu.getPrototypeOf:function(t){var e=ut(t);if(ft(e,mu))return e[mu];var n=e.constructor;return k(n)&&e instanceof n?n.prototype:e instanceof wu?bu:null},Su=s((function(){xu(1)}));Be({target:"Object",stat:!0,forced:Su,sham:!yu},{getPrototypeOf:function(t){return xu(ut(t))}});var Eu=TypeError,Ou=mt("match"),Tu=x("".indexOf);Be({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Ou]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Tu(Un(C(this)),Un(function(t){if(Fn(t))throw Eu("The method doesn't accept regular expressions");return t}(t)),arguments.length>1?arguments[1]:void 0)}});var Au=TypeError,ju=Object.getOwnPropertyDescriptor,Iu=f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(rn(t)&&!ju(t,"length").writable)throw Au("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ru=TypeError,Cu=function(t,e){if(!delete t[e])throw Ru("Cannot delete property "+K(e)+" of "+K(t))},Mu=jn("splice"),Pu=Math.max,Nu=Math.min;Be({target:"Array",proto:!0,forced:!Mu},{splice:function(t,e){var n,r,o,i,a,c,u=ut(this),s=we(u),f=he(t,s),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=s-f):(n=l-2,r=Nu(Pu(pe(e),0),s-f)),an(s+n-r),o=Tn(u,r),i=0;i<r;i++)(a=f+i)in u&&cn(o,i,u[a]);if(o.length=r,n<r){for(i=f;i<s-r;i++)c=i+n,(a=i+r)in u?u[c]=u[a]:Cu(u,c);for(i=s;i>s-r+n;i--)Cu(u,i-1)}else if(n>r)for(i=s-r;i>f;i--)c=i+n-1,(a=i+r-1)in u?u[c]=u[a]:Cu(u,c);for(i=0;i<n;i++)u[i+f]=arguments[i+2];return Iu(u,s-r+n),o}});var _u=function(t,e,n,r){try{return r?e(Pt(n)[0],n[1]):e(n)}catch(e){Bc(t,"throw",e)}},ku=Array,Lu=!Zc((function(t){Array.from(t)}));Be({target:"Array",stat:!0,forced:Lu},{from:function(t){var e=ut(t),n=Sn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=zo(o,r>2?arguments[2]:void 0));var a,c,u,s,f,l,d=Fc(e),v=0;if(!d||this===ku&&kc(d))for(a=we(e),c=n?new this(a):ku(a);a>v;v++)l=i?o(e[v],v):e[v],cn(c,v,l);else for(f=(s=Uc(e,d)).next,c=n?new this:[];!(u=p(f,s)).done;v++)l=i?_u(s,o,[u.value,v],!0):u.value,cn(c,v,l);return c.length=v,c}});var Fu,Du,Uu,Bu=mt("iterator"),$u=!1;[].keys&&("next"in(Uu=[].keys())?(Du=xu(xu(Uu)))!==Object.prototype&&(Fu=Du):$u=!0);var Vu=!F(Fu)||s((function(){var t={};return Fu[Bu].call(t)!==t}));Vu&&(Fu={}),k(Fu[Bu])||se(Fu,Bu,(function(){return this}));var zu={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:$u},qu=zu.IteratorPrototype,Gu=function(){return this},Wu=qt.PROPER,Hu=qt.CONFIGURABLE,Yu=zu.IteratorPrototype,Zu=zu.BUGGY_SAFARI_ITERATORS,Ju=mt("iterator"),Ku="keys",Xu="values",Qu="entries",ts=function(){return this},es=function(t,e){return{value:t,done:e}},ns=Yr.charAt,rs="String Iterator",os=ce.set,is=ce.getterFor(rs);!function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Xe(qu,{next:y(+!r,n)}),ia(t,o,!1),Pc[o]=Gu}(n,e,r);var c,u,s,f=function(t){if(t===o&&h)return h;if(!Zu&&t in v)return v[t];switch(t){case Ku:case Xu:case Qu:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,g=v[Ju]||v["@@iterator"]||o&&v[o],h=!Zu&&g||f(o),m="Array"==e&&v.entries||g;if(m&&(c=xu(m.call(new t)))!==Object.prototype&&c.next&&(xu(c)!==Yu&&(_n?_n(c,Yu):k(c[Ju])||se(c,Ju,ts)),ia(c,l,!0)),Wu&&o==Xu&&g&&g.name!==Xu&&(Hu?Bt(v,"name",Xu):(d=!0,h=function(){return p(g,this)})),o)if(u={values:f(Xu),keys:i?h:f(Ku),entries:f(Qu)},a)for(s in u)(Zu||d||!(s in v))&&se(v,s,u[s]);else Be({target:e,proto:!0,forced:Zu||d},u);v[Ju]!==h&&se(v,Ju,h,{name:o}),Pc[e]=h}(String,"String",(function(t){os(this,{type:rs,string:Un(t),index:0})}),(function(){var t,e=is(this),n=e.string,r=e.index;return r>=n.length?es(void 0,!0):(t=ns(n,r),e.index+=t.length,es(t,!1))}));var as=function(){return as=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},as.apply(this,arguments)};function cs(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))}function us(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function ss(t,e){for(var n=t.length,r=e.length,o=gs(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[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)}function fs(t,e){for(var n=t.length,r=e.length,o=gs(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[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],f=u[1];a>0&&(s=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(s,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function ls(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function ds(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function ps(t){return ds(t)}function vs(t){if("object"!==a(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(a(t))}))?as({},t):JSON.parse(JSON.stringify(t))}function gs(t){return vs(t)}function hs(t){try{if("object"===a(JSON.parse(t)))return!0}catch(t){}return!1}function ys(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function ms(t){return void 0===t&&(t=5),ys(t)}function ws(t){void 0===t&&(t=3);var e=[Os(),ms(t||3)];return e[0]+e[1]}var bs={type:"d"};function xs(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function Ss(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function Es(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,s=document.createElement("script"),f=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,Ss(o),Ss(c,"loaded"))}:s.onload=function(){Ss(o),Ss(c,"loaded")},s.src=t,f&&f.parentNode.insertBefore(s,f),new Promise((function(t,e){var n;c=(n=[t,e])[0],u=n[1],i&&setTimeout(u.bind(null,"timeout"),i)}))}function Os(){return Date.now?Date.now():(new Date).getTime()}function Ts(t){for(var e=t+"=",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(e))return o.substring(e.length,o.length)}return""}function As(){if(window.MAZEY_BROWSER_INFO&&"object"===a(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&Is(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=as(as({},t),{system:o,appleType:i});var c="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?c="2000":n(/windows nt 5.1|windows xp/g)?c="xp":n(/windows nt 5.2|windows 2003/g)?c="2003":n(/windows nt 6.0|windows vista/g)?c="vista":n(/windows nt 6.1|windows 7/g)?c="7":n(/windows nt 6.2|windows 8/g)?c="8":n(/windows nt 6.3|windows 8.1/g)?c="8.1":n(/windows nt 10.0|windows 10/g)&&(c="10"):"macos"===o?c=r(/os x [\d._]+/g):"android"===o?c=r(/android [\d._]+/g):"ios"===o&&(c=r(/os [\d._]+/g)),t=as(as({},t),{systemVs:c});var u="";"windows"===o||"macos"===o||"linux"===o?u="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(u="mobile"),t=as(as({},t),{platform:u});var s="",f="";n(/applewebkit/g)?(s="webkit",n(/edge/g)?f="edge":n(/opr/g)?f="opera":n(/chrome/g)?f="chrome":n(/safari/g)&&(f="safari")):n(/gecko/g)&&n(/firefox/g)?(s="gecko",f="firefox"):n(/presto/g)?(s="presto",f="opera"):n(/trident|compatible|msie/g)&&(s="trident",f="iexplore"),t=as(as({},t),{engine:s,supporter:f});var l="";"webkit"===s?l=r(/applewebkit\/[\d._]+/g):"gecko"===s?l=r(/gecko\/[\d._]+/g):"presto"===s?l=r(/presto\/[\d._]+/g):"trident"===s&&(l=r(/trident\/[\d._]+/g)),t=as(as({},t),{engineVs:l});var d="";"chrome"===f?d=r(/chrome\/[\d._]+/g):"safari"===f?d=r(/version\/[\d._]+/g):"firefox"===f?d=r(/firefox\/[\d._]+/g):"opera"===f?d=r(/opr\/[\d._]+/g):"iexplore"===f?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===f&&(d=r(/edge\/[\d._]+/g)),t=as(as({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=as(as({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function js(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=t.replace(i,"**").length,u=0;u<c&&(null!=(a=t.charAt(u).toString()).match(i)?r+=2:r++,!(r>e));u++)o+=a;return n&&c>e&&(o+="..."),o}return""}function Is(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function Rs(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==a(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}exports.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},exports.addEvent=function(t,e){var n=Rs();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},exports.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(t,e){return fs(t,e)},exports.calLongestCommonSubstring=function(t,e){return ss(t,e)},exports.camelCase2Underscore=ps,exports.camelCaseToKebabCase=function(t){return ls(t)},exports.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},exports.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},exports.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},exports.convertCamelToKebab=ls,exports.convertCamelToUnder=ds,exports.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),js(t,e,n)},exports.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var s=Os()-i;s<e&&s>=0?o=setTimeout(u,e-s):(o=null,n||(c=t.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];r=this,a=s,i=Os();var l=n&&!o;return o||(o=setTimeout(u,e)),l&&(c=t.apply(r,a),r=a=null),c}},exports.deepCopy=vs,exports.deepCopyObject=gs,exports.doFn=Ss,exports.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},exports.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},exports.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},exports.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,c=n.logFn,u=n.errorFn,s=Object.create(null),f=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){s[e]=function(){for(var n,a,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];if(r)return!1;var d=t,p=t;if("string"==typeof t&&t.length>=2){var v=t.length;d=":"===t[v-1]?t.substring(0,v-1):t}o&&console.log("--- ".concat(d," - begin ---")),i&&(p=t?"".concat(f()," ").concat(t):"".concat(f())),t||i?(n=console)[e].apply(n,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([p],s)):(a=console)[e].apply(a,s),"log"===e&&c(),"error"===e&&u(),o&&console.log("--- ".concat(d," - end ---"))}})),s},exports.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},exports.genRndNumString=ys,exports.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),".".concat(t,"{").concat(n,"}")},exports.genUniqueNumString=ws,exports.generateRndNum=ms,exports.generateUniqueNum=function(t){return void 0===t&&(t=3),ws(t)},exports.getBrowserInfo=As,exports.getCookie=Ts,exports.getCurrentVersion=function(){return"v3.x"},exports.getDefineListeners=Rs,exports.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},exports.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},exports.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=bs);var r=(n=Object.assign(bs,n)).type;xs(t)||(t=new Date(t).getTime()),xs(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),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.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},exports.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},exports.getPerformance=function(t){var e,n;void 0===t&&(t=!1);var r,o,i=new Promise((function(t,r){var o;e=(o=[t,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(t,e,n){var i=Math.round(t.startTime);"first-paint"===t.name?r=i:"first-contentful-paint"===t.name&&(o=i)}));else console.error("paint")}catch(t){console.error(t.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:s(),osVersion:f(),deviceType:l(),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:v(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(g).forEach((function(t){xs(g[t])&&g[t]<0&&(g[t]=0)})),xs(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[ps(t)]=g[t]})),e(i||g);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 f(){var t,e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(t=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(t=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t}function l(){var t=navigator.userAgent.toLowerCase(),e=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",r=t.match(/midp/i)&&"midp",o=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=t.match(/ucweb/i)&&"ucweb",a=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return e||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":e?"ipad":void 0:"pc"}function d(){var t;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t}function p(){var t;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function v(t,e){var n;return e&&(n=t-e),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(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):""},exports.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},exports.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},exports.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},exports.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},exports.inRate=function(t){return Math.random()<t},exports.invokeEvent=function(t){var e=Rs()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},exports.isJSONString=hs,exports.isJsonString=function(t){return hs(t)},exports.isNonEmptyArray=Is,exports.isNumber=xs,exports.isSafePWAEnv=function(){var t=As();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},exports.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.isValidData=function(t,e,n){var r=!1;return"object"!==a(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r},exports.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},exports.isValidPhoneNumber=function(t){return/^1[3456789]\d{9}$/.test(t)},exports.isValidUrl=function(t){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(t)},exports.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=new Promise((function(t,e){n=[t,e][0]})),i=function(){n("loaded")},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=t,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){f(a,i,0)}),1),o;function s(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function f(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=!0)}setTimeout((function(){r?e():f(t,e,n)}),20)}return c?(a.onload=s,a.onerror=function(){s()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&s()},o},exports.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},exports.loadScript=Es,exports.loadScriptIfUndefined=function(t,e){return window[t]?Promise.resolve("defined"):Es(e)},exports.longestComSubsequence=fs,exports.longestComSubstring=ss,exports.mNow=Os,exports.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},exports.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},exports.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},exports.removeEvent=function(t,e){var n=Rs(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},exports.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,c=void 0===a?10:a,u=e.context,s=e.args,f=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return cs(r,void 0,void 0,(function(){var r;return us(this,(function(o){switch(o.label){case 0:return[4,t.apply(u,s)];case 1:return r=o.sent(),n(r)||++f>=c?[2]:(e(),[2])}}))}))}),i)}()},exports.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},exports.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==Ts(t)&&Ts(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))},exports.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&Is(r)&&r[1]&&t.width(r[1]),o&&Is(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&Is(r)&&r[1]&&(e.style.width=r[1]),o&&Is(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},exports.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},exports.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},exports.throttle=function(t,e,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:Os(),i=null,c=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var l=Os();u||!1!==n.leading||(u=l);var d=e-(l-u);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=l,c=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s.bind(r),d)),c}},exports.truncateZHString=js,exports.unsanitize=function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/(&|<|>|"|'|/)/g,(function(t){return e[t]}))},exports.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},exports.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},exports.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i};
|
package/lib/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ export declare function getDomain(url: string, rules?: string[]): string;
|
|
|
181
181
|
*/
|
|
182
182
|
export declare function convertCamelToKebab(camelCase: string): string;
|
|
183
183
|
/**
|
|
184
|
-
* Alias of convertCamelToKebab
|
|
184
|
+
* Alias of `convertCamelToKebab`
|
|
185
185
|
*
|
|
186
186
|
* @hidden
|
|
187
187
|
*/
|
|
@@ -200,7 +200,7 @@ export declare function camelCaseToKebabCase(camelCase: string): string;
|
|
|
200
200
|
*/
|
|
201
201
|
export declare function convertCamelToUnder(camelCase: string): string;
|
|
202
202
|
/**
|
|
203
|
-
* Alias of convertCamelToUnder
|
|
203
|
+
* Alias of `convertCamelToUnder`
|
|
204
204
|
*
|
|
205
205
|
* @hidden
|
|
206
206
|
*/
|
|
@@ -257,7 +257,7 @@ export declare function newLine(str: string): string;
|
|
|
257
257
|
*/
|
|
258
258
|
export declare function deepCopy<T>(obj: T): T;
|
|
259
259
|
/**
|
|
260
|
-
* Alias of deepCopy
|
|
260
|
+
* Alias of `deepCopy`
|
|
261
261
|
*
|
|
262
262
|
* @hidden
|
|
263
263
|
*/
|
|
@@ -285,7 +285,7 @@ export declare function deepCopyObject<T>(obj: T): T;
|
|
|
285
285
|
*/
|
|
286
286
|
export declare function isJSONString(str: string): boolean;
|
|
287
287
|
/**
|
|
288
|
-
* Alias of isJSONString
|
|
288
|
+
* Alias of `isJSONString`
|
|
289
289
|
*
|
|
290
290
|
* @hidden
|
|
291
291
|
*/
|
|
@@ -304,17 +304,23 @@ export declare function isJsonString(str: string): boolean;
|
|
|
304
304
|
*/
|
|
305
305
|
export declare function genRndNumString(n?: number): string;
|
|
306
306
|
/**
|
|
307
|
-
* Alias of genRndNumString
|
|
307
|
+
* Alias of `genRndNumString`
|
|
308
308
|
*
|
|
309
309
|
* @hidden
|
|
310
310
|
*/
|
|
311
311
|
export declare function generateRndNum(n?: number): string;
|
|
312
312
|
/**
|
|
313
|
-
* 根据时间生成唯一标志的数字
|
|
313
|
+
* 根据时间生成唯一标志的数字 genUniqueNumString() => 1538324722364123
|
|
314
314
|
*
|
|
315
315
|
* @param {number} n 随机数的长度
|
|
316
316
|
* @category Util
|
|
317
317
|
*/
|
|
318
|
+
export declare function genUniqueNumString(n?: number): string;
|
|
319
|
+
/**
|
|
320
|
+
* Alias of `genUniqueNumString`
|
|
321
|
+
*
|
|
322
|
+
* @hidden
|
|
323
|
+
*/
|
|
318
324
|
export declare function generateUniqueNum(n?: number): string;
|
|
319
325
|
/**
|
|
320
326
|
* 浮点数转为百分比 0.2 => 20%
|
|
@@ -583,7 +589,7 @@ export declare function getLocalStorage<T>(key: string): T | null;
|
|
|
583
589
|
*
|
|
584
590
|
* ```
|
|
585
591
|
* loadCSS(
|
|
586
|
-
* 'http://example.com/
|
|
592
|
+
* 'http://example.com/path/example.css',
|
|
587
593
|
* {
|
|
588
594
|
* id: 'iamid', // Optional, link ID, default none
|
|
589
595
|
* }
|
|
@@ -847,8 +853,17 @@ export declare function clearHtml(str: string, options?: {
|
|
|
847
853
|
*
|
|
848
854
|
* @param input - The input string to sanitize
|
|
849
855
|
* @returns The sanitized input string
|
|
856
|
+
* @category Util
|
|
850
857
|
*/
|
|
851
858
|
export declare function sanitizeInput(input: string): string;
|
|
859
|
+
/**
|
|
860
|
+
* Reverses the sanitization done by the `sanitizeInput` function.
|
|
861
|
+
*
|
|
862
|
+
* @param input - The input string to unsanitize
|
|
863
|
+
* @returns The unsanitized input string
|
|
864
|
+
* @category Util
|
|
865
|
+
*/
|
|
866
|
+
export declare function unsanitize(input: string): string;
|
|
852
867
|
/**
|
|
853
868
|
* 截取字符串,中文算 2 个字节
|
|
854
869
|
*
|
|
@@ -860,7 +875,7 @@ export declare function sanitizeInput(input: string): string;
|
|
|
860
875
|
*/
|
|
861
876
|
export declare function truncateZHString(str: string, len: number, hasDot?: boolean): string;
|
|
862
877
|
/**
|
|
863
|
-
* Alias of truncateZHString
|
|
878
|
+
* Alias of `truncateZHString`
|
|
864
879
|
*
|
|
865
880
|
* @hidden
|
|
866
881
|
*/
|
|
@@ -1104,22 +1119,19 @@ export declare function invokeEvent(type: string): void;
|
|
|
1104
1119
|
*/
|
|
1105
1120
|
export declare function removeEvent(type: string, fn: any): void;
|
|
1106
1121
|
/**
|
|
1107
|
-
*
|
|
1122
|
+
* Checks if the given string is a valid URL, including scheme URLs.
|
|
1108
1123
|
*
|
|
1109
1124
|
* @example
|
|
1110
1125
|
* ```js
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1115
|
-
*
|
|
1116
|
-
* console.log(isUrl('https://www.google.com/#')); // true
|
|
1117
|
-
* console.log(isUrl('https://www.google.com/#?q=hello')); // true
|
|
1118
|
-
* console.log(isUrl('https://www.google.com/#?q=hello#world')); // true
|
|
1126
|
+
* isValidUrl('https://www.example.com'); // true
|
|
1127
|
+
* isValidUrl('http://example.com/path/exx/ss'); // true
|
|
1128
|
+
* isValidUrl('https://www.example.com/?q=hello&age=24#world'); // true
|
|
1129
|
+
* isValidUrl('http://www.example.com/#world?id=9'); // true
|
|
1130
|
+
* isValidUrl('ftp://example.com'); // true
|
|
1119
1131
|
* ```
|
|
1120
1132
|
*
|
|
1121
|
-
* @param url
|
|
1122
|
-
* @returns
|
|
1133
|
+
* @param url - The URL to check.
|
|
1134
|
+
* @returns Returns `true` if the given string is a valid URL, else `false`.
|
|
1123
1135
|
* @category URL
|
|
1124
1136
|
*/
|
|
1125
1137
|
export declare function isValidUrl(url: string): boolean;
|
|
@@ -1206,6 +1218,7 @@ export declare function getUrlFileType(url: string): boolean | string;
|
|
|
1206
1218
|
* ```
|
|
1207
1219
|
*
|
|
1208
1220
|
* @returns {boolean} - Returns `true` if images were found and their dimensions were set, otherwise `false`.
|
|
1221
|
+
* @category DOM
|
|
1209
1222
|
*/
|
|
1210
1223
|
export declare function setImgWidHeiBySrc(): boolean;
|
|
1211
1224
|
/**
|