mazey 3.5.4 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -51
- package/README_CN.md +4 -2
- package/lib/index.cjs.js +3607 -2753
- package/lib/index.d.ts +274 -42
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +3602 -2754
- package/lib/mazey.min.js +2 -2
- package/package.json +1 -1
- package/scripts/env.sh +2 -0
- package/src/index.ts +328 -45
- package/src/preview.js +0 -44
package/lib/mazey.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.
|
|
2
|
+
* mazey v3.6.0
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var mazey=function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=function(e){return e&&e.Math==Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,l={f:u&&!c.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:c},s=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f={}.toString,d=function(e){return f.call(e).slice(8,-1)},p="".split,g=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?p.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},h=function(e){return g(v(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!m(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!m(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,b=function(e,t){return w.call(e,t)},S=o.document,x=m(S)&&m(S.createElement),E=function(e){return x?S.createElement(e):{}},O=!a&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),A=Object.getOwnPropertyDescriptor,T={f:a?A:function(e,t){if(e=h(e),t=y(t,!0),O)try{return A(e,t)}catch(e){}if(b(e,t))return s(!l.f.call(e,t),e[t])}},j=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},M=Object.defineProperty,_={f:a?M:function(e,t,n){if(j(e),t=y(t,!0),j(n),O)try{return M(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},C=a?function(e,t,n){return _.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},N=function(e,t){try{C(o,e,t)}catch(n){o[e]=t}return t},P="__core-js_shared__",R=o[P]||N(P,{}),I=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(e){return I.call(e)});var k,L,F,D=R.inspectSource,U=o.WeakMap,B="function"==typeof U&&/native code/.test(D(U)),$=n((function(e){(e.exports=function(e,t){return R[e]||(R[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),V=0,q=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++V+q).toString(36)},H=$("keys"),W=function(e){return H[e]||(H[e]=G(e))},z={},K=o.WeakMap;if(B){var J=new K,Y=J.get,X=J.has,Q=J.set;k=function(e,t){return Q.call(J,e,t),t},L=function(e){return Y.call(J,e)||{}},F=function(e){return X.call(J,e)}}else{var Z=W("state");z[Z]=!0,k=function(e,t){return C(e,Z,t),t},L=function(e){return b(e,Z)?e[Z]:{}},F=function(e){return b(e,Z)}}var ee,te,ne={set:k,get:L,has:F,enforce:function(e){return F(e)?L(e):k(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=L(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},re=n((function(e){var t=ne.get,n=ne.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||b(i,"name")||C(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==o?(c?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=i:C(e,t,i)):u?e[t]=i:N(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||D(this)}))})),oe=o,ie=function(e){return"function"==typeof e?e:void 0},ae=function(e,t){return arguments.length<2?ie(oe[e])||ie(o[e]):oe[e]&&oe[e][t]||o[e]&&o[e][t]},ce=Math.ceil,ue=Math.floor,le=function(e){return isNaN(e=+e)?0:(e>0?ue:ce)(e)},se=Math.min,fe=function(e){return e>0?se(le(e),9007199254740991):0},de=Math.max,pe=Math.min,ge=function(e,t){var n=le(e);return n<0?de(n+t,0):pe(n,t)},ve=function(e){return function(t,n,r){var o,i=h(t),a=fe(i.length),c=ge(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},he={includes:ve(!0),indexOf:ve(!1)},me=he.indexOf,ye=function(e,t){var n,r=h(e),o=0,i=[];for(n in r)!b(z,n)&&b(r,n)&&i.push(n);for(;t.length>o;)b(r,n=t[o++])&&(~me(i,n)||i.push(n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],be=we.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(e){return ye(e,be)}},xe={f:Object.getOwnPropertySymbols},Ee=ae("Reflect","ownKeys")||function(e){var t=Se.f(j(e)),n=xe.f;return n?t.concat(n(e)):t},Oe=function(e,t){for(var n=Ee(t),r=_.f,o=T.f,i=0;i<n.length;i++){var a=n[i];b(e,a)||r(e,a,o(t,a))}},Ae=/#|\.prototype\./,Te=function(e,t){var n=Me[je(e)];return n==Ce||n!=_e&&("function"==typeof t?i(t):!!t)},je=Te.normalize=function(e){return String(e).replace(Ae,".").toLowerCase()},Me=Te.data={},_e=Te.NATIVE="N",Ce=Te.POLYFILL="P",Ne=Te,Pe=T.f,Re=function(e,t){var n,r,i,a,c,u=e.target,l=e.global,s=e.stat;if(n=l?o:s?o[u]||N(u,{}):(o[u]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(c=Pe(n,r))&&c.value:n[r],!Ne(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Oe(a,i)}(e.sham||i&&i.sham)&&C(a,"sham",!0),re(n,r,a,e)}},Ie=Array.isArray||function(e){return"Array"==d(e)},ke=function(e){return Object(v(e))},Le=function(e,t,n){var r=y(t);r in e?_.f(e,r,s(0,n)):e[r]=n},Fe=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ue=$("wks"),Be=o.Symbol,$e=De?Be:Be&&Be.withoutSetter||G,Ve=function(e){return b(Ue,e)||(Fe&&b(Be,e)?Ue[e]=Be[e]:Ue[e]=$e("Symbol."+e)),Ue[e]},qe=Ve("species"),Ge=function(e,t){var n;return Ie(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ie(n.prototype)?m(n)&&null===(n=n[qe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},He=ae("navigator","userAgent")||"",We=o.process,ze=We&&We.versions,Ke=ze&&ze.v8;Ke?te=(ee=Ke.split("."))[0]+ee[1]:He&&(!(ee=He.match(/Edge\/(\d+)/))||ee[1]>=74)&&(ee=He.match(/Chrome\/(\d+)/))&&(te=ee[1]);var Je=te&&+te,Ye=Ve("species"),Xe=function(e){return Je>=51||!i((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=Ve("isConcatSpreadable"),Ze=9007199254740991,et="Maximum allowed index exceeded",tt=Je>=51||!i((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),nt=Xe("concat"),rt=function(e){if(!m(e))return!1;var t=e[Qe];return void 0!==t?!!t:Ie(e)};Re({target:"Array",proto:!0,forced:!tt||!nt},{concat:function(e){var t,n,r,o,i,a=ke(this),c=Ge(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(rt(i=-1===t?a:arguments[t])){if(u+(o=fe(i.length))>Ze)throw TypeError(et);for(n=0;n<o;n++,u++)n in i&&Le(c,u,i[n])}else{if(u>=Ze)throw TypeError(et);Le(c,u++,i)}return c.length=u,c}});var ot,it=Object.keys||function(e){return ye(e,we)},at=a?Object.defineProperties:function(e,t){j(e);for(var n,r=it(t),o=r.length,i=0;o>i;)_.f(e,n=r[i++],t[n]);return e},ct=ae("document","documentElement"),ut=W("IE_PROTO"),lt=function(){},st=function(e){return"<script>"+e+"</"+"script>"},ft=function(){try{ot=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ft=ot?function(e){e.write(st("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ot):((t=E("iframe")).style.display="none",ct.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(st("document.F=Object")),e.close(),e.F);for(var n=we.length;n--;)delete ft.prototype[we[n]];return ft()};z[ut]=!0;var dt=Object.create||function(e,t){var n;return null!==e?(lt.prototype=j(e),n=new lt,lt.prototype=null,n[ut]=e):n=ft(),void 0===t?n:at(n,t)},pt=Ve("unscopables"),gt=Array.prototype;null==gt[pt]&&_.f(gt,pt,{configurable:!0,value:dt(null)});var vt=function(e){gt[pt][e]=!0};Re({target:"Array",proto:!0},{fill:function(e){for(var t=ke(this),n=fe(t.length),r=arguments.length,o=ge(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ge(i,n);a>o;)t[o++]=e;return t}}),vt("fill");var ht=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},mt=function(e,t,n){if(ht(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},yt=[].push,wt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,u,l,s){for(var f,d,p=ke(c),v=g(p),h=mt(u,l,3),m=fe(v.length),y=0,w=s||Ge,b=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in v)&&(d=h(f=v[y],y,p),e))if(t)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:yt.call(b,f)}else if(o)return!1;return i?-1:r||o?o:b}},bt={forEach:wt(0),map:wt(1),filter:wt(2),some:wt(3),every:wt(4),find:wt(5),findIndex:wt(6)},St=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))},xt=Object.defineProperty,Et={},Ot=function(e){throw e},At=function(e,t){if(b(Et,e))return Et[e];t||(t={});var n=[][e],r=!!b(t,"ACCESSORS")&&t.ACCESSORS,o=b(t,0)?t[0]:Ot,c=b(t,1)?t[1]:void 0;return Et[e]=!!n&&!i((function(){if(r&&!a)return!0;var e={length:-1};r?xt(e,1,{enumerable:!0,get:Ot}):e[1]=1,n.call(e,o,c)}))},Tt=bt.forEach,jt=St("forEach"),Mt=At("forEach"),_t=jt&&Mt?[].forEach:function(e){return Tt(this,e,arguments.length>1?arguments[1]:void 0)};Re({target:"Array",proto:!0,forced:[].forEach!=_t},{forEach:_t});var Ct=he.includes;Re({target:"Array",proto:!0,forced:!At("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return Ct(this,e,arguments.length>1?arguments[1]:void 0)}}),vt("includes");var Nt=he.indexOf,Pt=[].indexOf,Rt=!!Pt&&1/[1].indexOf(1,-0)<0,It=St("indexOf"),kt=At("indexOf",{ACCESSORS:!0,1:0});Re({target:"Array",proto:!0,forced:Rt||!It||!kt},{indexOf:function(e){return Rt?Pt.apply(this,arguments)||0:Nt(this,e,arguments.length>1?arguments[1]:void 0)}});var Lt=[].join,Ft=g!=Object,Dt=St("join",",");Re({target:"Array",proto:!0,forced:Ft||!Dt},{join:function(e){return Lt.call(h(this),void 0===e?",":e)}});var Ut=function(e){return function(t,n,r,o){ht(n);var i=ke(t),a=g(i),c=fe(i.length),u=e?c-1:0,l=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=l;break}if(u+=l,e?u<0:c<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=l)u in a&&(o=n(o,a[u],u,i));return o}},Bt={left:Ut(!1),right:Ut(!0)}.left,$t=St("reduce"),Vt=At("reduce",{1:0});Re({target:"Array",proto:!0,forced:!$t||!Vt},{reduce:function(e){return Bt(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var qt=Xe("slice"),Gt=At("slice",{ACCESSORS:!0,0:0,1:2}),Ht=Ve("species"),Wt=[].slice,zt=Math.max;Re({target:"Array",proto:!0,forced:!qt||!Gt},{slice:function(e,t){var n,r,o,i=h(this),a=fe(i.length),c=ge(e,a),u=ge(void 0===t?a:t,a);if(Ie(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ie(n.prototype)?m(n)&&null===(n=n[Ht])&&(n=void 0):n=void 0,n===Array||void 0===n))return Wt.call(i,c,u);for(r=new(void 0===n?Array:n)(zt(u-c,0)),o=0;c<u;c++,o++)c in i&&Le(r,o,i[c]);return r.length=o,r}});var Kt=_.f,Jt=Function.prototype,Yt=Jt.toString,Xt=/^\s*function ([^ (]*)/,Qt="name";a&&!(Qt in Jt)&&Kt(Jt,Qt,{configurable:!0,get:function(){try{return Yt.call(this).match(Xt)[1]}catch(e){return""}}});var Zt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return j(n),function(e){if(!m(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),en=function(e,t,n){var r,o;return Zt&&"function"==typeof(r=t.constructor)&&r!==n&&m(o=r.prototype)&&o!==n.prototype&&Zt(e,o),e},tn="\t\n\v\f\r \u2028\u2029\ufeff",nn="["+tn+"]",rn=RegExp("^"+nn+nn+"*"),on=RegExp(nn+nn+"*$"),an=function(e){return function(t){var n=String(v(t));return 1&e&&(n=n.replace(rn,"")),2&e&&(n=n.replace(on,"")),n}},cn={start:an(1),end:an(2),trim:an(3)},un=Se.f,ln=T.f,sn=_.f,fn=cn.trim,dn="Number",pn=o.Number,gn=pn.prototype,vn=d(dt(gn))==dn,hn=function(e){var t,n,r,o,i,a,c,u,l=y(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=fn(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+l};if(Ne(dn,!pn(" 0o1")||!pn("0b1")||pn("+0x1"))){for(var mn,yn=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof yn&&(vn?i((function(){gn.valueOf.call(n)})):d(n)!=dn)?en(new pn(hn(t)),n,yn):hn(t)},wn=a?un(pn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),bn=0;wn.length>bn;bn++)b(pn,mn=wn[bn])&&!b(yn,mn)&&sn(yn,mn,ln(pn,mn));yn.prototype=gn,gn.constructor=yn,re(o,dn,yn)}var Sn="".repeat||function(e){var t=String(v(this)),n="",r=le(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},xn=1..toFixed,En=Math.floor,On=function(e,t,n){return 0===t?n:t%2==1?On(e,t-1,n*e):On(e*e,t/2,n)};Re({target:"Number",proto:!0,forced:xn&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){xn.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=d(e))throw TypeError("Incorrect invocation");return+e}(this),a=le(e),c=[0,0,0,0,0,0],u="",l="0",s=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=En(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=En(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+Sn.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*On(2,69,1))-69)<0?i*On(2,-t,1):i/On(2,t,1),n*=4503599627370496,(t=52-t)>0){for(s(0,n),r=a;r>=7;)s(1e7,0),r-=7;for(s(On(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<<r),s(1,1),f(2),l=p()}else s(0,n),s(1<<-t,0),l=p()+Sn.call("0",a);return l=a>0?u+((o=l.length)<=a?"0."+Sn.call("0",a-o)+l:l.slice(0,o-a)+"."+l.slice(o-a)):u+l}});var An=Object.assign,Tn=Object.defineProperty,jn=!An||i((function(){if(a&&1!==An({b:1},An(Tn({},"a",{enumerable:!0,get:function(){Tn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=An({},e)[n]||it(An({},t)).join("")!=r}))?function(e,t){for(var n=ke(e),r=arguments.length,o=1,i=xe.f,c=l.f;r>o;)for(var u,s=g(arguments[o++]),f=i?it(s).concat(i(s)):it(s),d=f.length,p=0;d>p;)u=f[p++],a&&!c.call(s,u)||(n[u]=s[u]);return n}:An;Re({target:"Object",stat:!0,forced:Object.assign!==jn},{assign:jn});var Mn=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_n=W("IE_PROTO"),Cn=Object.prototype,Nn=Mn?Object.getPrototypeOf:function(e){return e=ke(e),b(e,_n)?e[_n]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Cn:null};Re({target:"Object",stat:!0,forced:i((function(){Nn(1)})),sham:!Mn},{getPrototypeOf:function(e){return Nn(ke(e))}}),Re({target:"Object",stat:!0,forced:i((function(){it(1)}))},{keys:function(e){return it(ke(e))}});var Pn={};Pn[Ve("toStringTag")]="z";var Rn="[object z]"===String(Pn),In=Ve("toStringTag"),kn="Arguments"==d(function(){return arguments}()),Ln=Rn?d:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),In))?n:kn?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},Fn=Rn?{}.toString:function(){return"[object "+Ln(this)+"]"};Rn||re(Object.prototype,"toString",Fn,{unsafe:!0});var Dn=cn.trim,Un=o.parseFloat,Bn=1/Un(tn+"-0")!=-1/0?function(e){var t=Dn(String(e)),n=Un(t);return 0===n&&"-"==t.charAt(0)?-0:n}:Un;Re({global:!0,forced:parseFloat!=Bn},{parseFloat:Bn});var $n=o.Promise,Vn=_.f,qn=Ve("toStringTag"),Gn=Ve("species"),Hn=function(e){var t=ae(e),n=_.f;a&&t&&!t[Gn]&&n(t,Gn,{configurable:!0,get:function(){return this}})},Wn={},zn=Ve("iterator"),Kn=Array.prototype,Jn=Ve("iterator"),Yn=function(e,t,n,r){try{return r?t(j(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&j(o.call(e)),t}},Xn=n((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,r,o,i){var a,c,u,l,s,f,d,p,g=mt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[Jn]||e["@@iterator"]||Wn[Ln(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Wn.Array===p||Kn[zn]===p)){for(u=0,l=fe(e.length);l>u;u++)if((s=o?g(j(d=e[u])[0],d[1]):g(e[u]))&&s instanceof t)return s;return new t(!1)}a=c.call(e)}for(f=a.next;!(d=f.call(a)).done;)if("object"==typeof(s=Yn(a,g,d.value,o))&&s&&s instanceof t)return s;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),Qn=Ve("iterator"),Zn=!1;try{var er=0,tr={next:function(){return{done:!!er++}},return:function(){Zn=!0}};tr[Qn]=function(){return this},Array.from(tr,(function(){throw 2}))}catch(e){}var nr,rr,or,ir=Ve("species"),ar=function(e,t){var n,r=j(e).constructor;return void 0===r||null==(n=j(r)[ir])?t:ht(n)},cr=/(iphone|ipod|ipad).*applewebkit/i.test(He),ur=o.location,lr=o.setImmediate,sr=o.clearImmediate,fr=o.process,dr=o.MessageChannel,pr=o.Dispatch,gr=0,vr={},hr="onreadystatechange",mr=function(e){if(vr.hasOwnProperty(e)){var t=vr[e];delete vr[e],t()}},yr=function(e){return function(){mr(e)}},wr=function(e){mr(e.data)},br=function(e){o.postMessage(e+"",ur.protocol+"//"+ur.host)};lr&&sr||(lr=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return vr[++gr]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},nr(gr),gr},sr=function(e){delete vr[e]},"process"==d(fr)?nr=function(e){fr.nextTick(yr(e))}:pr&&pr.now?nr=function(e){pr.now(yr(e))}:dr&&!cr?(or=(rr=new dr).port2,rr.port1.onmessage=wr,nr=mt(or.postMessage,or,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(br)||"file:"===ur.protocol?nr=hr in E("script")?function(e){ct.appendChild(E("script")).onreadystatechange=function(){ct.removeChild(this),mr(e)}}:function(e){setTimeout(yr(e),0)}:(nr=br,o.addEventListener("message",wr,!1)));var Sr,xr,Er,Or,Ar,Tr,jr,Mr,_r={set:lr,clear:sr},Cr=T.f,Nr=_r.set,Pr=o.MutationObserver||o.WebKitMutationObserver,Rr=o.process,Ir=o.Promise,kr="process"==d(Rr),Lr=Cr(o,"queueMicrotask"),Fr=Lr&&Lr.value;Fr||(Sr=function(){var e,t;for(kr&&(e=Rr.domain)&&e.exit();xr;){t=xr.fn,xr=xr.next;try{t()}catch(e){throw xr?Or():Er=void 0,e}}Er=void 0,e&&e.enter()},kr?Or=function(){Rr.nextTick(Sr)}:Pr&&!cr?(Ar=!0,Tr=document.createTextNode(""),new Pr(Sr).observe(Tr,{characterData:!0}),Or=function(){Tr.data=Ar=!Ar}):Ir&&Ir.resolve?(jr=Ir.resolve(void 0),Mr=jr.then,Or=function(){Mr.call(jr,Sr)}):Or=function(){Nr.call(o,Sr)});var Dr,Ur,Br,$r,Vr,qr,Gr,Hr=Fr||function(e){var t={fn:e,next:void 0};Er&&(Er.next=t),xr||(xr=t,Or()),Er=t},Wr=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=ht(t),this.reject=ht(n)},zr={f:function(e){return new Wr(e)}},Kr=function(e,t){if(j(e),m(t)&&t.constructor===e)return t;var n=zr.f(e);return(0,n.resolve)(t),n.promise},Jr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Yr=_r.set,Xr=Ve("species"),Qr="Promise",Zr=ne.get,eo=ne.set,to=ne.getterFor(Qr),no=$n,ro=o.TypeError,oo=o.document,io=o.process,ao=ae("fetch"),co=zr.f,uo=co,lo="process"==d(io),so=!!(oo&&oo.createEvent&&o.dispatchEvent),fo="unhandledrejection",po=Ne(Qr,(function(){if(!(D(no)!==String(no))){if(66===Je)return!0;if(!lo&&"function"!=typeof PromiseRejectionEvent)return!0}if(Je>=51&&/native code/.test(no))return!1;var e=no.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Xr]=t,!(e.then((function(){}))instanceof t)})),go=po||!function(e,t){if(!t&&!Zn)return!1;var n=!1;try{var r={};r[Qn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){no.all(e).catch((function(){}))})),vo=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ho=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Hr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,l,s=r[a++],f=i?s.ok:s.fail,d=s.resolve,p=s.reject,g=s.domain;try{f?(i||(2===t.rejection&&bo(e,t),t.rejection=1),!0===f?c=o:(g&&g.enter(),c=f(o),g&&(g.exit(),l=!0)),c===s.promise?p(ro("Promise-chain cycle")):(u=vo(c))?u.call(c,d,p):d(c)):p(o)}catch(e){g&&!l&&g.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&yo(e,t)}))}},mo=function(e,t,n){var r,i;so?((r=oo.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),o.dispatchEvent(r)):r={promise:t,reason:n},(i=o["on"+e])?i(r):e===fo&&function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},yo=function(e,t){Yr.call(o,(function(){var n,r=t.value;if(wo(t)&&(n=Jr((function(){lo?io.emit("unhandledRejection",r,e):mo(fo,e,r)})),t.rejection=lo||wo(t)?2:1,n.error))throw n.value}))},wo=function(e){return 1!==e.rejection&&!e.parent},bo=function(e,t){Yr.call(o,(function(){lo?io.emit("rejectionHandled",e):mo("rejectionhandled",e,t.value)}))},So=function(e,t,n,r){return function(o){e(t,n,o,r)}},xo=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,ho(e,t,!0))},Eo=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw ro("Promise can't be resolved itself");var o=vo(n);o?Hr((function(){var r={done:!1};try{o.call(n,So(Eo,e,r,t),So(xo,e,r,t))}catch(n){xo(e,r,n,t)}})):(t.value=n,t.state=1,ho(e,t,!1))}catch(n){xo(e,{done:!1},n,t)}}};po&&(no=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,no,Qr),ht(e),Dr.call(this);var t=Zr(this);try{e(So(Eo,this,t),So(xo,this,t))}catch(e){xo(this,t,e)}},(Dr=function(e){eo(this,{type:Qr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)re(e,r,t[r],n);return e}(no.prototype,{then:function(e,t){var n=to(this),r=co(ar(this,no));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=lo?io.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ho(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Ur=function(){var e=new Dr,t=Zr(e);this.promise=e,this.resolve=So(Eo,e,t),this.reject=So(xo,e,t)},zr.f=co=function(e){return e===no||e===Br?new Ur(e):uo(e)},"function"==typeof $n&&($r=$n.prototype.then,re($n.prototype,"then",(function(e,t){var n=this;return new no((function(e,t){$r.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof ao&&Re({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Kr(no,ao.apply(o,arguments))}}))),Re({global:!0,wrap:!0,forced:po},{Promise:no}),qr=Qr,Gr=!1,(Vr=no)&&!b(Vr=Gr?Vr:Vr.prototype,qn)&&Vn(Vr,qn,{configurable:!0,value:qr}),Hn(Qr),Br=ae(Qr),Re({target:Qr,stat:!0,forced:po},{reject:function(e){var t=co(this);return t.reject.call(void 0,e),t.promise}}),Re({target:Qr,stat:!0,forced:po},{resolve:function(e){return Kr(this,e)}}),Re({target:Qr,stat:!0,forced:go},{all:function(e){var t=this,n=co(t),r=n.resolve,o=n.reject,i=Jr((function(){var n=ht(t.resolve),i=[],a=0,c=1;Xn(e,(function(e){var u=a++,l=!1;i.push(void 0),c++,n.call(t,e).then((function(e){l||(l=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=co(t),r=n.reject,o=Jr((function(){var o=ht(t.resolve);Xn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Oo=Ve("match"),Ao=function(e){var t;return m(e)&&(void 0!==(t=e[Oo])?!!t:"RegExp"==d(e))},To=function(){var e=j(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function jo(e,t){return RegExp(e,t)}var Mo={UNSUPPORTED_Y:i((function(){var e=jo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=jo("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},_o=_.f,Co=Se.f,No=ne.set,Po=Ve("match"),Ro=o.RegExp,Io=Ro.prototype,ko=/a/g,Lo=/a/g,Fo=new Ro(ko)!==ko,Do=Mo.UNSUPPORTED_Y;if(a&&Ne("RegExp",!Fo||Do||i((function(){return Lo[Po]=!1,Ro(ko)!=ko||Ro(Lo)==Lo||"/a/i"!=Ro(ko,"i")})))){for(var Uo=function(e,t){var n,r=this instanceof Uo,o=Ao(e),i=void 0===t;if(!r&&o&&e.constructor===Uo&&i)return e;Fo?o&&!i&&(e=e.source):e instanceof Uo&&(i&&(t=To.call(e)),e=e.source),Do&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=en(Fo?new Ro(e,t):Ro(e,t),r?this:Io,Uo);return Do&&n&&No(a,{sticky:n}),a},Bo=function(e){e in Uo||_o(Uo,e,{configurable:!0,get:function(){return Ro[e]},set:function(t){Ro[e]=t}})},$o=Co(Ro),Vo=0;$o.length>Vo;)Bo($o[Vo++]);Io.constructor=Uo,Uo.prototype=Io,re(o,"RegExp",Uo)}Hn("RegExp");var qo=RegExp.prototype.exec,Go=String.prototype.replace,Ho=qo,Wo=function(){var e=/a/,t=/b*/g;return qo.call(e,"a"),qo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),zo=Mo.UNSUPPORTED_Y||Mo.BROKEN_CARET,Ko=void 0!==/()??/.exec("")[1];(Wo||Ko||zo)&&(Ho=function(e){var t,n,r,o,i=this,a=zo&&i.sticky,c=To.call(i),u=i.source,l=0,s=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),s=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),n=new RegExp("^(?:"+u+")",c)),Ko&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Wo&&(t=i.lastIndex),r=qo.call(a?n:i,s),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Wo&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Ko&&r&&r.length>1&&Go.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Jo=Ho;Re({target:"RegExp",proto:!0,forced:/./.exec!==Jo},{exec:Jo});var Yo="toString",Xo=RegExp.prototype,Qo=Xo.toString,Zo=i((function(){return"/a/b"!=Qo.call({source:"a",flags:"b"})})),ei=Qo.name!=Yo;(Zo||ei)&&re(RegExp.prototype,Yo,(function(){var e=j(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Xo)?To.call(e):n)}),{unsafe:!0});var ti=function(e){if(Ao(e))throw TypeError("The method doesn't accept regular expressions");return e},ni=Ve("match");Re({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[ni]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(v(this)).indexOf(ti(e),arguments.length>1?arguments[1]:void 0)}});var ri=Ve("species"),oi=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),ii="$0"==="a".replace(/./,"$0"),ai=Ve("replace"),ci=!!/./[ai]&&""===/./[ai]("a","$0"),ui=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),li=function(e,t,n,r){var o=Ve(e),a=!i((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),c=a&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ri]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!c||"replace"===e&&(!oi||!ii||ci)||"split"===e&&!ui){var u=/./[o],l=n(o,""[e],(function(e,t,n,r,o){return t.exec===Jo?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ii,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ci}),s=l[0],f=l[1];re(String.prototype,e,s),re(RegExp.prototype,o,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&C(RegExp.prototype[o],"sham",!0)},si=function(e){return function(t,n){var r,o,i=String(v(t)),a=le(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},fi={codeAt:si(!1),charAt:si(!0)}.charAt,di=function(e,t,n){return t+(n?fi(e,t).length:1)},pi=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return Jo.call(e,t)};li("match",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this);if(!o.global)return pi(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],l=0;null!==(c=pi(o,i));){var s=String(c[0]);u[l]=s,""===s&&(o.lastIndex=di(i,fe(o.lastIndex),a)),l++}return 0===l?null:u}]}));var gi=Math.max,vi=Math.min,hi=Math.floor,mi=/\$([$&'`]|\d\d?|<[^>]*>)/g,yi=/\$([$&'`]|\d\d?)/g,wi=function(e){return void 0===e?e:String(e)};li("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=v(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var l=j(e),s=String(this),f="function"==typeof r;f||(r=String(r));var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var g=[];;){var v=pi(l,s);if(null===v)break;if(g.push(v),!d)break;""===String(v[0])&&(l.lastIndex=di(s,fe(l.lastIndex),p))}for(var h="",m=0,y=0;y<g.length;y++){v=g[y];for(var w=String(v[0]),b=gi(vi(le(v.index),s.length),0),S=[],x=1;x<v.length;x++)S.push(wi(v[x]));var E=v.groups;if(f){var O=[w].concat(S,b,s);void 0!==E&&O.push(E);var A=String(r.apply(void 0,O))}else A=c(w,s,b,S,E,r);b>=m&&(h+=s.slice(m,b)+A,m=b+w.length)}return h+s.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,l=yi;return void 0!==i&&(i=ke(i),l=mi),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":l=i[a.slice(1,-1)];break;default:var s=+a;if(0===s)return t;if(s>u){var f=hi(s/10);return 0===f?t:f<=u?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}l=o[s-1]}return void 0===l?"":l}))}}));var bi=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};li("search",1,(function(e,t,n){return[function(t){var n=v(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=j(e),i=String(this),a=o.lastIndex;bi(a,0)||(o.lastIndex=0);var c=pi(o,i);return bi(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var Si=[].push,xi=Math.min,Ei=4294967295,Oi=!i((function(){return!RegExp(Ei,"y")}));li("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(v(this)),o=void 0===n?Ei:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Ao(e))return t.call(r,e,o);for(var i,a,c,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,f=new RegExp(e.source,l+"g");(i=Jo.call(f,r))&&!((a=f.lastIndex)>s&&(u.push(r.slice(s,i.index)),i.length>1&&i.index<r.length&&Si.apply(u,i.slice(1)),c=i[0].length,s=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return s===r.length?!c&&f.test("")||u.push(""):u.push(r.slice(s)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=v(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=j(e),c=String(this),u=ar(a,RegExp),l=a.unicode,s=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Oi?"y":"g"),f=new u(Oi?a:"^(?:"+a.source+")",s),d=void 0===o?Ei:o>>>0;if(0===d)return[];if(0===c.length)return null===pi(f,c)?[c]:[];for(var p=0,g=0,v=[];g<c.length;){f.lastIndex=Oi?g:0;var h,m=pi(f,Oi?c:c.slice(g));if(null===m||(h=xi(fe(f.lastIndex+(Oi?0:g)),c.length))===p)g=di(c,g,l);else{if(v.push(c.slice(p,g)),v.length===d)return v;for(var y=1;y<=m.length-1;y++)if(v.push(m[y]),v.length===d)return v;g=p=h}}return v.push(c.slice(p)),v}]}),!Oi);for(var Ai in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ti=o[Ai],ji=Ti&&Ti.prototype;if(ji&&ji.forEach!==_t)try{C(ji,"forEach",_t)}catch(e){ji.forEach=_t}}var Mi,_i=n((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),Ci=(Mi=_i)&&Mi.__esModule&&Object.prototype.hasOwnProperty.call(Mi,"default")?Mi.default:Mi;function Ni(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function Pi(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function Ri(e){return JSON.parse(JSON.stringify(e))}function Ii(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function ki(e,t){void 0===t&&(t={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},t),r=n.isNaNAsNumber,o=!0;return"number"!=typeof e&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(e)||(o=!1),!1===r&&isNaN(e)&&(o=!1),o}function Li(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function Fi(){return Date.now?Date.now():(new Date).getTime()}function Di(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function Ui(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/ipad/g)?o="ipad":t(/iphone/g)?o="iphone":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var l="";"webkit"===c?l=n(/applewebkit\/[\d._]+/g):"gecko"===c?l=n(/gecko\/[\d._]+/g):"presto"===c?l=n(/presto\/[\d._]+/g):"trident"===c&&(l=n(/trident\/[\d._]+/g));var s="";"chrome"===u?s=n(/chrome\/[\d._]+/g):"safari"===u?s=n(/version\/[\d._]+/g):"firefox"===u?s=n(/firefox\/[\d._]+/g):"opera"===u?s=n(/opr\/[\d._]+/g):"iexplore"===u?s=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(s=n(/edge\/[\d._]+/g));var f="",d="";return t(/micromessenger/g)?(f="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(f="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?f="qq_app":t(/ucbrowser/g)?(f="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?f="360":t(/2345explorer/g)?(f="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?f="sougou":t(/lbbrowser/g)?f="liebao":t(/maxthon/g)?(f="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(f="bilibili"),Object.assign({engine:c,engineVs:l,platform:a,supporter:u,supporterVs:s,system:r,systemVs:i},{shell:f,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}return e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},e.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=Ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],l=u[0],s=u[1];a>0&&(l=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(l,s)}var f=Array.prototype.concat.apply([],o);return Math.max.apply(Math,f)},e.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=Ri(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},e.camelCase2Underscore=Pi,e.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},e.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.cutCHSString=function(e,t,n){if(void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},e.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var l=Fi()-i;l<t&&l>=0?o=setTimeout(u,t-l):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];r=this,a=l,i=Fi();var f=n&&!o;return o||(o=setTimeout(u,t)),f&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=Ri,e.doFn=Li,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){void 0===t&&(t=0);var n="";return n=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(n,"%")},e.formatDate=function(e,t){void 0===t&&(t="yyyy-MM-dd"),e||(e=new Date);var n=new Date(e),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd: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=t||"yyyy-MM-dd";return Object.keys(r).forEach((function(e){var t=r[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),o=o.replace(e,String(t))})),o},e.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n={type:"d"});var r=n.type;ki(e)||(e=new Date(e).getTime()),ki(t)||(t=new Date(t).getTime());var o=t-e,i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},e.genCustomConsole=function(e,t){void 0===e&&(e=""),void 0===t&&(t={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(){}},t),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,c=n.logFn,u=n.errorFn,l=Object.create(null),s=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(t){l[t]=function(){for(var n,a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];if(r)return!1;var d=e,p=e;if("string"==typeof e&&e.length>=2){var g=e.length;d=":"===e[g-1]?e.substring(0,g-1):e}o&&console.log("--- ".concat(d," - begin ---")),i&&(p=e?"".concat(s()," ").concat(e):"".concat(s())),e||i?(n=console)[t].apply(n,Ni([p],l)):(a=console)[t].apply(a,l),"log"===t&&c(),"error"===t&&u(),o&&console.log("--- ".concat(d," - end ---"))}})),l},e.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},e.generateRndNum=Ii,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[Fi(),Ii(e||3)];return t[0]+t[1]},e.getBrowserInfo=Ui,e.getCookie=Di,e.getDomain=function(e,t){void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},e.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},e.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=t[1].match(n);return r?r[2]:""},e.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.getPerformance=function(e){var t,n;void 0===e&&(e=!1);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},v={os:l(),osVersion:s(),deviceType:f(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:g(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(v).forEach((function(e){ki(v[e])&&v[e]<0&&(v[e]=0)})),ki(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[Pi(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function l(){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 s(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function f(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function g(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},e.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},e.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.getUrlParam=function(e,t){var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},e.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},e.inRate=function(e){return Math.random()<e},e.isJsonString=function(e){try{if("object"===Ci(JSON.parse(e)))return!0}catch(e){}return!1},e.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},e.isNumber=ki,e.isSafePWAEnv=function(){var e=Ui();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},e.isSupportWebp=function(){return new Promise((function(e){var t=new Image;t.onload=function(){e(t.width>0&&t.height>0)},t.onerror=function(){e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isValidData=function(e,t,n){var r=!1;return t.reduce((function(e,t){return e[t]?e=e[t]:Object.create(null)}),e)===n&&(r=!0),r},e.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){n=[e,t][0]})),i=function(){n(!0)},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){s(a,i,0)}),1),o;function l(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return c?(a.onload=l,a.onerror=function(){l()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&l()},o},e.loadScript=function(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,l=document.createElement("script"),s=document.getElementsByTagName("script")[0];return l.type="text/javascript",a&&(l.defer="defer"),r&&(l.id=r),l.readyState?l.onreadystatechange=function(){"loaded"!==l.readyState&&"complete"!==l.readyState||(l.onreadystatechange=null,Li(o),Li(c,!0))}:l.onload=function(){Li(o),Li(c,!0)},l.src=e,s&&s.parentNode.insertBefore(l,s),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},e.mNow=Fi,e.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},e.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},e.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},e.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==Di(e)&&Di(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},e.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},e.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},e.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],l=function(){u=!1===n.leading?0:Fi(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var f=Fi();u||!1!==n.leading||(u=f);var d=t-(f-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=f,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,d)),c}},e.updateQueryParam=function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},e.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},e.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
6
|
+
var mazey=function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r,o,i,a=n((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),c=(r=a)&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,u=function(e){return e&&e.Math==Math&&e},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(e){try{return!!e()}catch(e){return!0}},l=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),p=Function.prototype.call,g=d?p.bind(p):function(){return p.apply(p,arguments)},v={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,m={f:h&&!v.call({1:2},1)?function(e){var t=h(this,e);return!!t&&t.enumerable}:v},y=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w=Function.prototype,b=w.call,S=d&&w.bind.bind(b,b),E=d?S:function(e){return function(){return b.apply(e,arguments)}},x=E({}.toString),O=E("".slice),T=function(e){return O(x(e),8,-1)},A=Object,j=E("".split),I=s((function(){return!A("z").propertyIsEnumerable(0)}))?function(e){return"String"==T(e)?j(e,""):A(e)}:A,R=function(e){return null==e},M=TypeError,N=function(e){if(R(e))throw M("Can't call method on "+e);return e},P=function(e){return I(N(e))},C="object"==typeof document&&document.all,_={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},k=_.all,L=_.IS_HTMLDDA?function(e){return"function"==typeof e||e===k}:function(e){return"function"==typeof e},D=_.all,F=_.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:L(e)||e===D}:function(e){return"object"==typeof e?null!==e:L(e)},U=function(e,t){return arguments.length<2?(n=f[e],L(n)?n:void 0):f[e]&&f[e][t];var n},B=E({}.isPrototypeOf),$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=f.process,q=f.Deno,z=V&&V.versions||q&&q.version,G=z&&z.v8;G&&(i=(o=G.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&$&&(!(o=$.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=$.match(/Chrome\/(\d+)/))&&(i=+o[1]);var H=i,W=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&H&&H<41})),Y=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=Object,K=Y?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return L(t)&&B(t.prototype,J(e))},X=String,Z=function(e){try{return X(e)}catch(e){return"Object"}},Q=TypeError,ee=function(e){if(L(e))return e;throw Q(Z(e)+" is not a function")},te=function(e,t){var n=e[t];return R(n)?void 0:ee(n)},ne=TypeError,re=Object.defineProperty,oe=function(e,t){try{re(f,e,{value:t,configurable:!0,writable:!0})}catch(n){f[e]=t}return t},ie="__core-js_shared__",ae=f[ie]||oe(ie,{}),ce=n((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("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"})})),ue=Object,fe=function(e){return ue(N(e))},se=E({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return se(fe(e),t)},de=0,pe=Math.random(),ge=E(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ge(++de+pe,36)},he=f.Symbol,me=ce("wks"),ye=Y?he.for||he:he&&he.withoutSetter||ve,we=function(e){return le(me,e)||(me[e]=W&&le(he,e)?he[e]:ye("Symbol."+e)),me[e]},be=TypeError,Se=we("toPrimitive"),Ee=function(e,t){if(!F(e)||K(e))return e;var n,r=te(e,Se);if(r){if(void 0===t&&(t="default"),n=g(r,e,t),!F(n)||K(n))return n;throw be("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&L(n=e.toString)&&!F(r=g(n,e)))return r;if(L(n=e.valueOf)&&!F(r=g(n,e)))return r;if("string"!==t&&L(n=e.toString)&&!F(r=g(n,e)))return r;throw ne("Can't convert object to primitive value")}(e,t)},xe=function(e){var t=Ee(e,"string");return K(t)?t:t+""},Oe=f.document,Te=F(Oe)&&F(Oe.createElement),Ae=function(e){return Te?Oe.createElement(e):{}},je=!l&&!s((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),Ie=Object.getOwnPropertyDescriptor,Re={f:l?Ie:function(e,t){if(e=P(e),t=xe(t),je)try{return Ie(e,t)}catch(e){}if(le(e,t))return y(!g(m.f,e,t),e[t])}},Me=l&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ne=String,Pe=TypeError,Ce=function(e){if(F(e))return e;throw Pe(Ne(e)+" is not an object")},_e=TypeError,ke=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,De="enumerable",Fe="configurable",Ue="writable",Be={f:l?Me?function(e,t,n){if(Ce(e),t=xe(t),Ce(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ue in n&&!n[Ue]){var r=Le(e,t);r&&r[Ue]&&(e[t]=n.value,n={configurable:Fe in n?n[Fe]:r[Fe],enumerable:De in n?n[De]:r[De],writable:!1})}return ke(e,t,n)}:ke:function(e,t,n){if(Ce(e),t=xe(t),Ce(n),je)try{return ke(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$e=l?function(e,t,n){return Be.f(e,t,y(1,n))}:function(e,t,n){return e[t]=n,e},Ve=Function.prototype,qe=l&&Object.getOwnPropertyDescriptor,ze=le(Ve,"name"),Ge={EXISTS:ze,PROPER:ze&&"something"===function(){}.name,CONFIGURABLE:ze&&(!l||l&&qe(Ve,"name").configurable)},He=E(Function.toString);L(ae.inspectSource)||(ae.inspectSource=function(e){return He(e)});var We,Ye,Je,Ke=ae.inspectSource,Xe=f.WeakMap,Ze=L(Xe)&&/native code/.test(String(Xe)),Qe=ce("keys"),et=function(e){return Qe[e]||(Qe[e]=ve(e))},tt={},nt="Object already initialized",rt=f.TypeError,ot=f.WeakMap;if(Ze||ae.state){var it=ae.state||(ae.state=new ot);it.get=it.get,it.has=it.has,it.set=it.set,We=function(e,t){if(it.has(e))throw rt(nt);return t.facade=e,it.set(e,t),t},Ye=function(e){return it.get(e)||{}},Je=function(e){return it.has(e)}}else{var at=et("state");tt[at]=!0,We=function(e,t){if(le(e,at))throw rt(nt);return t.facade=e,$e(e,at,t),t},Ye=function(e){return le(e,at)?e[at]:{}},Je=function(e){return le(e,at)}}var ct,ut={set:We,get:Ye,has:Je,enforce:function(e){return Je(e)?Ye(e):We(e,{})},getterFor:function(e){return function(t){var n;if(!F(t)||(n=Ye(t)).type!==e)throw rt("Incompatible receiver, "+e+" required");return n}}},ft=n((function(e){var t=Ge.CONFIGURABLE,n=ut.enforce,r=ut.get,o=String,i=Object.defineProperty,a=E("".slice),c=E("".replace),u=E([].join),f=l&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=e.exports=function(e,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),(!le(e,"name")||t&&e.name!==r)&&(l?i(e,"name",{value:r,configurable:!0}):e.name=r),f&&s&&le(s,"arity")&&e.length!==s.arity&&i(e,"length",{value:s.arity});try{s&&le(s,"constructor")&&s.constructor?l&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var p=n(e);return le(p,"source")||(p.source=u(d,"string"==typeof r?r:"")),e};Function.prototype.toString=p((function(){return L(this)&&r(this).source||Ke(this)}),"toString")})),st=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(L(n)&&ft(n,i,r),r.global)o?e[t]=n:oe(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Be.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},lt=Math.ceil,dt=Math.floor,pt=Math.trunc||function(e){var t=+e;return(t>0?dt:lt)(t)},gt=function(e){var t=+e;return t!=t||0===t?0:pt(t)},vt=Math.max,ht=Math.min,mt=function(e,t){var n=gt(e);return n<0?vt(n+t,0):ht(n,t)},yt=Math.min,wt=function(e){return e>0?yt(gt(e),9007199254740991):0},bt=function(e){return wt(e.length)},St=function(e){return function(t,n,r){var o,i=P(t),a=bt(i),c=mt(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},Et={includes:St(!0),indexOf:St(!1)},xt=Et.indexOf,Ot=E([].push),Tt=function(e,t){var n,r=P(e),o=0,i=[];for(n in r)!le(tt,n)&&le(r,n)&&Ot(i,n);for(;t.length>o;)le(r,n=t[o++])&&(~xt(i,n)||Ot(i,n));return i},At=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jt=At.concat("length","prototype"),It={f:Object.getOwnPropertyNames||function(e){return Tt(e,jt)}},Rt={f:Object.getOwnPropertySymbols},Mt=E([].concat),Nt=U("Reflect","ownKeys")||function(e){var t=It.f(Ce(e)),n=Rt.f;return n?Mt(t,n(e)):t},Pt=function(e,t,n){for(var r=Nt(t),o=Be.f,i=Re.f,a=0;a<r.length;a++){var c=r[a];le(e,c)||n&&le(n,c)||o(e,c,i(t,c))}},Ct=/#|\.prototype\./,_t=function(e,t){var n=Lt[kt(e)];return n==Ft||n!=Dt&&(L(t)?s(t):!!t)},kt=_t.normalize=function(e){return String(e).replace(Ct,".").toLowerCase()},Lt=_t.data={},Dt=_t.NATIVE="N",Ft=_t.POLYFILL="P",Ut=_t,Bt=Re.f,$t=function(e,t){var n,r,o,i,a,c=e.target,u=e.global,s=e.stat;if(n=u?f:s?f[c]||oe(c,{}):(f[c]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Bt(n,r))&&a.value:n[r],!Ut(u?r:c+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pt(i,o)}(e.sham||o&&o.sham)&&$e(i,"sham",!0),st(n,r,i,e)}},Vt=Object.keys||function(e){return Tt(e,At)},qt=l&&!Me?Object.defineProperties:function(e,t){Ce(e);for(var n,r=P(t),o=Vt(t),i=o.length,a=0;i>a;)Be.f(e,n=o[a++],r[n]);return e},zt={f:qt},Gt=U("document","documentElement"),Ht="prototype",Wt="script",Yt=et("IE_PROTO"),Jt=function(){},Kt=function(e){return"<"+Wt+">"+e+"</"+Wt+">"},Xt=function(e){e.write(Kt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zt=function(){try{ct=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Zt="undefined"!=typeof document?document.domain&&ct?Xt(ct):(t=Ae("iframe"),n="java"+Wt+":",t.style.display="none",Gt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Kt("document.F=Object")),e.close(),e.F):Xt(ct);for(var r=At.length;r--;)delete Zt[Ht][At[r]];return Zt()};tt[Yt]=!0;var Qt=Object.create||function(e,t){var n;return null!==e?(Jt[Ht]=Ce(e),n=new Jt,Jt[Ht]=null,n[Yt]=e):n=Zt(),void 0===t?n:zt.f(n,t)},en=Be.f,tn=we("unscopables"),nn=Array.prototype;null==nn[tn]&&en(nn,tn,{configurable:!0,value:Qt(null)});var rn=function(e){nn[tn][e]=!0};$t({target:"Array",proto:!0},{fill:function(e){for(var t=fe(this),n=bt(t),r=arguments.length,o=mt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:mt(i,n);a>o;)t[o++]=e;return t}}),rn("fill");var on=Array.isArray||function(e){return"Array"==T(e)},an=TypeError,cn=function(e){if(e>9007199254740991)throw an("Maximum allowed index exceeded");return e},un=function(e,t,n){var r=xe(t);r in e?Be.f(e,r,y(0,n)):e[r]=n},fn={};fn[we("toStringTag")]="z";var sn="[object z]"===String(fn),ln=we("toStringTag"),dn=Object,pn="Arguments"==T(function(){return arguments}()),gn=sn?T:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=dn(e),ln))?n:pn?T(t):"Object"==(r=T(t))&&L(t.callee)?"Arguments":r},vn=function(){},hn=[],mn=U("Reflect","construct"),yn=/^\s*(?:class|function)\b/,wn=E(yn.exec),bn=!yn.exec(vn),Sn=function(e){if(!L(e))return!1;try{return mn(vn,hn,e),!0}catch(e){return!1}},En=function(e){if(!L(e))return!1;switch(gn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!wn(yn,Ke(e))}catch(e){return!0}};En.sham=!0;var xn=!mn||s((function(){var e;return Sn(Sn.call)||!Sn(Object)||!Sn((function(){e=!0}))||e}))?En:Sn,On=we("species"),Tn=Array,An=function(e,t){return new(function(e){var t;return on(e)&&(t=e.constructor,(xn(t)&&(t===Tn||on(t.prototype))||F(t)&&null===(t=t[On]))&&(t=void 0)),void 0===t?Tn:t}(e))(0===t?0:t)},jn=we("species"),In=function(e){return H>=51||!s((function(){var t=[];return(t.constructor={})[jn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Rn=we("isConcatSpreadable"),Mn=H>=51||!s((function(){var e=[];return e[Rn]=!1,e.concat()[0]!==e})),Nn=function(e){if(!F(e))return!1;var t=e[Rn];return void 0!==t?!!t:on(e)};$t({target:"Array",proto:!0,arity:1,forced:!Mn||!In("concat")},{concat:function(e){var t,n,r,o,i,a=fe(this),c=An(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Nn(i=-1===t?a:arguments[t]))for(o=bt(i),cn(u+o),n=0;n<o;n++,u++)n in i&&un(c,u,i[n]);else cn(u+1),un(c,u++,i);return c.length=u,c}});var Pn=String,Cn=TypeError,_n=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=function(e,t,n){try{return E(ee(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ce(n),function(e){if("object"==typeof e||L(e))return e;throw Cn("Can't set "+Pn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),kn=function(e,t,n){var r,o;return _n&&L(r=t.constructor)&&r!==n&&F(o=r.prototype)&&o!==n.prototype&&_n(e,o),e},Ln=we("match"),Dn=function(e){var t;return F(e)&&(void 0!==(t=e[Ln])?!!t:"RegExp"==T(e))},Fn=String,Un=function(e){if("Symbol"===gn(e))throw TypeError("Cannot convert a Symbol value to a string");return Fn(e)},Bn=function(){var e=Ce(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},$n=RegExp.prototype,Vn=function(e){var t=e.flags;return void 0!==t||"flags"in $n||le(e,"flags")||!B($n,e)?t:g(Bn,e)},qn=f.RegExp,zn=s((function(){var e=qn("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Gn=zn||s((function(){return!qn("a","y").sticky})),Hn={BROKEN_CARET:zn||s((function(){var e=qn("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Gn,UNSUPPORTED_Y:zn},Wn=Be.f,Yn=function(e,t,n){n in e||Wn(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},Jn=function(e,t,n){return n.get&&ft(n.get,t,{getter:!0}),n.set&&ft(n.set,t,{setter:!0}),Be.f(e,t,n)},Kn=we("species"),Xn=function(e){var t=U(e);l&&t&&!t[Kn]&&Jn(t,Kn,{configurable:!0,get:function(){return this}})},Zn=f.RegExp,Qn=s((function(){var e=Zn(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),er=f.RegExp,tr=s((function(){var e=er("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),nr=It.f,rr=ut.enforce,or=we("match"),ir=f.RegExp,ar=ir.prototype,cr=f.SyntaxError,ur=E(ar.exec),fr=E("".charAt),sr=E("".replace),lr=E("".indexOf),dr=E("".slice),pr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gr=/a/g,vr=/a/g,hr=new ir(gr)!==gr,mr=Hn.MISSED_STICKY,yr=Hn.UNSUPPORTED_Y,wr=l&&(!hr||mr||Qn||tr||s((function(){return vr[or]=!1,ir(gr)!=gr||ir(vr)==vr||"/a/i"!=ir(gr,"i")})));if(Ut("RegExp",wr)){for(var br=function(e,t){var n,r,o,i,a,c,u=B(ar,this),f=Dn(e),s=void 0===t,l=[],d=e;if(!u&&f&&s&&e.constructor===br)return e;if((f||B(ar,e))&&(e=e.source,s&&(t=Vn(d))),e=void 0===e?"":Un(e),t=void 0===t?"":Un(t),d=e,Qn&&"dotAll"in gr&&(r=!!t&&lr(t,"s")>-1)&&(t=sr(t,/s/g,"")),n=t,mr&&"sticky"in gr&&(o=!!t&&lr(t,"y")>-1)&&yr&&(t=sr(t,/y/g,"")),tr&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},c=!1,u=!1,f=0,s="";r<=n;r++){if("\\"===(t=fr(e,r)))t+=fr(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:ur(pr,dr(e,r+1))&&(r+=2,u=!0),o+=t,f++;continue;case">"===t&&u:if(""===s||le(a,s))throw new cr("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],u=!1,s="";continue}u?s+=t:o+=t}return[o,i]}(e),e=i[0],l=i[1]),a=kn(ir(e,t),u?this:ar,br),(r||o||l.length)&&(c=rr(a),r&&(c.dotAll=!0,c.raw=br(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=fr(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+fr(e,++r);return o}(e),n)),o&&(c.sticky=!0),l.length&&(c.groups=l)),e!==d)try{$e(a,"source",""===d?"(?:)":d)}catch(e){}return a},Sr=nr(ir),Er=0;Sr.length>Er;)Yn(br,ir,Sr[Er++]);ar.constructor=br,br.prototype=ar,st(f,"RegExp",br,{constructor:!0})}Xn("RegExp");var xr=ut.get,Or=ce("native-string-replace",String.prototype.replace),Tr=RegExp.prototype.exec,Ar=Tr,jr=E("".charAt),Ir=E("".indexOf),Rr=E("".replace),Mr=E("".slice),Nr=function(){var e=/a/,t=/b*/g;return g(Tr,e,"a"),g(Tr,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Pr=Hn.BROKEN_CARET,Cr=void 0!==/()??/.exec("")[1];(Nr||Cr||Pr||Qn||tr)&&(Ar=function(e){var t,n,r,o,i,a,c,u=this,f=xr(u),s=Un(e),l=f.raw;if(l)return l.lastIndex=u.lastIndex,t=g(Ar,l,s),u.lastIndex=l.lastIndex,t;var d=f.groups,p=Pr&&u.sticky,v=g(Bn,u),h=u.source,m=0,y=s;if(p&&(v=Rr(v,"y",""),-1===Ir(v,"g")&&(v+="g"),y=Mr(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==jr(s,u.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,m++),n=new RegExp("^(?:"+h+")",v)),Cr&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Nr&&(r=u.lastIndex),o=g(Tr,p?n:u,y),p?o?(o.input=Mr(o.input,m),o[0]=Mr(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Nr&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Cr&&o&&o.length>1&&g(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=Qt(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var _r=Ar;$t({target:"RegExp",proto:!0,forced:/./.exec!==_r},{exec:_r});var kr=Ge.PROPER,Lr="toString",Dr=RegExp.prototype[Lr],Fr=s((function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})})),Ur=kr&&Dr.name!=Lr;(Fr||Ur)&&st(RegExp.prototype,Lr,(function(){var e=Ce(this);return"/"+Un(e.source)+"/"+Un(Vn(e))}),{unsafe:!0});var Br=function(e){if("Function"===T(e))return E(e)},$r=we("species"),Vr=RegExp.prototype,qr=function(e,t,n,r){var o=we(e),i=!s((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[$r]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var c=Br(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=Br(e),u=t.exec;return u===_r||u===Vr.exec?i&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));st(String.prototype,e,u[0]),st(Vr,o,u[1])}r&&$e(Vr[o],"sham",!0)},zr=E("".charAt),Gr=E("".charCodeAt),Hr=E("".slice),Wr=function(e){return function(t,n){var r,o,i=Un(N(t)),a=gt(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=Gr(i,a))<55296||r>56319||a+1===c||(o=Gr(i,a+1))<56320||o>57343?e?zr(i,a):r:e?Hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yr={codeAt:Wr(!1),charAt:Wr(!0)}.charAt,Jr=function(e,t,n){return t+(n?Yr(e,t).length:1)},Kr=TypeError,Xr=function(e,t){var n=e.exec;if(L(n)){var r=g(n,e,t);return null!==r&&Ce(r),r}if("RegExp"===T(e))return g(_r,e,t);throw Kr("RegExp#exec called on incompatible receiver")};qr("match",(function(e,t,n){return[function(t){var n=N(this),r=R(t)?void 0:te(t,e);return r?g(r,t,n):new RegExp(t)[e](Un(n))},function(e){var r=Ce(this),o=Un(e),i=n(t,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=[],f=0;null!==(c=Xr(r,o));){var s=Un(c[0]);u[f]=s,""===s&&(r.lastIndex=Jr(o,wt(r.lastIndex),a)),f++}return 0===f?null:u}]}));var Zr=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};qr("search",(function(e,t,n){return[function(t){var n=N(this),r=R(t)?void 0:te(t,e);return r?g(r,t,n):new RegExp(t)[e](Un(n))},function(e){var r=Ce(this),o=Un(e),i=n(t,r,o);if(i.done)return i.value;var a=r.lastIndex;Zr(a,0)||(r.lastIndex=0);var c=Xr(r,o);return Zr(r.lastIndex,a)||(r.lastIndex=a),null===c?-1:c.index}]}));var Qr=Function.prototype,eo=Qr.apply,to=Qr.call,no="object"==typeof Reflect&&Reflect.apply||(d?to.bind(eo):function(){return to.apply(eo,arguments)}),ro=Math.floor,oo=E("".charAt),io=E("".replace),ao=E("".slice),co=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uo=/\$([$&'`]|\d{1,2})/g,fo=function(e,t,n,r,o,i){var a=n+e.length,c=r.length,u=uo;return void 0!==o&&(o=fe(o),u=co),io(i,u,(function(i,u){var f;switch(oo(u,0)){case"$":return"$";case"&":return e;case"`":return ao(t,0,n);case"'":return ao(t,a);case"<":f=o[ao(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>c){var l=ro(s/10);return 0===l?i:l<=c?void 0===r[l-1]?oo(u,1):r[l-1]+oo(u,1):i}f=r[s-1]}return void 0===f?"":f}))},so=we("replace"),lo=Math.max,po=Math.min,go=E([].concat),vo=E([].push),ho=E("".indexOf),mo=E("".slice),yo="$0"==="a".replace(/./,"$0"),wo=!!/./[so]&&""===/./[so]("a","$0");qr("replace",(function(e,t,n){var r=wo?"$":"$0";return[function(e,n){var r=N(this),o=R(e)?void 0:te(e,so);return o?g(o,e,r,n):g(t,Un(r),e,n)},function(e,o){var i=Ce(this),a=Un(e);if("string"==typeof o&&-1===ho(o,r)&&-1===ho(o,"$<")){var c=n(t,i,a,o);if(c.done)return c.value}var u=L(o);u||(o=Un(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Xr(i,a);if(null===d)break;if(vo(l,d),!f)break;""===Un(d[0])&&(i.lastIndex=Jr(a,wt(i.lastIndex),s))}for(var p,g="",v=0,h=0;h<l.length;h++){for(var m=Un((d=l[h])[0]),y=lo(po(gt(d.index),a.length),0),w=[],b=1;b<d.length;b++)vo(w,void 0===(p=d[b])?p:String(p));var S=d.groups;if(u){var E=go([m],w,y,a);void 0!==S&&vo(E,S);var x=Un(no(o,void 0,E))}else x=fo(m,a,y,w,S,o);y>=v&&(g+=mo(a,v,y)+x,v=y+m.length)}return g+mo(a,v)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!yo||wo);var bo=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))},So=Et.indexOf,Eo=Br([].indexOf),xo=!!Eo&&1/Eo([1],1,-0)<0;$t({target:"Array",proto:!0,forced:xo||!bo("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return xo?Eo(this,e,t)||0:So(this,e,t)}});var Oo=TypeError,To=function(e){return function(t,n,r,o){ee(n);var i=fe(t),a=I(i),c=bt(i),u=e?c-1:0,f=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,e?u<0:c<=u)throw Oo("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Ao={left:To(!1),right:To(!0)},jo="undefined"!=typeof process&&"process"==T(process),Io=Ao.left;$t({target:"Array",proto:!0,forced:!jo&&H>79&&H<83||!bo("reduce")},{reduce:function(e){var t=arguments.length;return Io(this,e,t,t>1?arguments[1]:void 0)}});var Ro=sn?{}.toString:function(){return"[object "+gn(this)+"]"};sn||st(Object.prototype,"toString",Ro,{unsafe:!0});var Mo=E([].slice),No=In("slice"),Po=we("species"),Co=Array,_o=Math.max;$t({target:"Array",proto:!0,forced:!No},{slice:function(e,t){var n,r,o,i=P(this),a=bt(i),c=mt(e,a),u=mt(void 0===t?a:t,a);if(on(i)&&(n=i.constructor,(xn(n)&&(n===Co||on(n.prototype))||F(n)&&null===(n=n[Po]))&&(n=void 0),n===Co||void 0===n))return Mo(i,c,u);for(r=new(void 0===n?Co:n)(_o(u-c,0)),o=0;c<u;c++,o++)c in i&&un(r,o,i[c]);return r.length=o,r}});var ko=E(1..valueOf),Lo=RangeError,Do=RangeError,Fo=String,Uo=Math.floor,Bo=E((function(e){var t=Un(N(this)),n="",r=gt(e);if(r<0||r==1/0)throw Lo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),$o=E("".slice),Vo=E(1..toFixed),qo=function(e,t,n){return 0===t?n:t%2==1?qo(e,t-1,n*e):qo(e*e,t/2,n)},zo=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Uo(o/1e7)},Go=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Uo(r/t),r=r%t*1e7},Ho=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Fo(e[t]);n=""===n?r:n+Bo("0",7-r.length)+r}return n};$t({target:"Number",proto:!0,forced:s((function(){return"0.000"!==Vo(8e-5,3)||"1"!==Vo(.9,0)||"1.25"!==Vo(1.255,2)||"1000000000000000128"!==Vo(0xde0b6b3a7640080,0)}))||!s((function(){Vo({})}))},{toFixed:function(e){var t,n,r,o,i=ko(this),a=gt(e),c=[0,0,0,0,0,0],u="",f="0";if(a<0||a>20)throw Do("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Fo(i);if(i<0&&(u="-",i=-i),i>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*qo(2,69,1))-69,n=t<0?i*qo(2,-t,1):i/qo(2,t,1),n*=4503599627370496,(t=52-t)>0){for(zo(c,0,n),r=a;r>=7;)zo(c,1e7,0),r-=7;for(zo(c,qo(10,r,1),0),r=t-1;r>=23;)Go(c,1<<23),r-=23;Go(c,1<<r),zo(c,1,1),Go(c,2),f=Ho(c)}else zo(c,0,n),zo(c,1<<-t,0),f=Ho(c)+Bo("0",a);return f=a>0?u+((o=f.length)<=a?"0."+Bo("0",a-o)+f:$o(f,0,o-a)+"."+$o(f,o-a)):u+f}});var Wo="\t\n\v\f\r \u2028\u2029\ufeff",Yo=E("".replace),Jo=RegExp("^["+Wo+"]+"),Ko=RegExp("(^|[^"+Wo+"])["+Wo+"]+$"),Xo=function(e){return function(t){var n=Un(N(t));return 1&e&&(n=Yo(n,Jo,"")),2&e&&(n=Yo(n,Ko,"$1")),n}},Zo={start:Xo(1),end:Xo(2),trim:Xo(3)},Qo=Zo.trim,ei=E("".charAt),ti=f.parseFloat,ni=f.Symbol,ri=ni&&ni.iterator,oi=1/ti(Wo+"-0")!=-1/0||ri&&!s((function(){ti(Object(ri))}))?function(e){var t=Qo(Un(e)),n=ti(t);return 0===n&&"-"==ei(t,0)?-0:n}:ti;$t({global:!0,forced:parseFloat!=oi},{parseFloat:oi});var ii=TypeError,ai=we("species"),ci=function(e,t){var n,r=Ce(e).constructor;return void 0===r||R(n=Ce(r)[ai])?t:function(e){if(xn(e))return e;throw ii(Z(e)+" is not a constructor")}(n)},ui=Array,fi=Math.max,si=function(e,t,n){for(var r=bt(e),o=mt(t,r),i=mt(void 0===n?r:n,r),a=ui(fi(i-o,0)),c=0;o<i;o++,c++)un(a,c,e[o]);return a.length=c,a},li=Hn.UNSUPPORTED_Y,di=4294967295,pi=Math.min,gi=[].push,vi=E(/./.exec),hi=E(gi),mi=E("".slice),yi=!s((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));qr("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=Un(N(this)),o=void 0===n?di:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Dn(e))return g(t,r,e,o);for(var i,a,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,l=new RegExp(e.source,f+"g");(i=g(_r,l,r))&&!((a=l.lastIndex)>s&&(hi(u,mi(r,s,i.index)),i.length>1&&i.index<r.length&&no(gi,u,si(i,1)),c=i[0].length,s=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!c&&vi(l,"")||hi(u,""):hi(u,mi(r,s)),u.length>o?si(u,0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:g(t,this,e,n)}:t,[function(t,n){var o=N(this),i=R(t)?void 0:te(t,e);return i?g(i,t,o,n):g(r,Un(o),t,n)},function(e,o){var i=Ce(this),a=Un(e),c=n(r,i,a,o,r!==t);if(c.done)return c.value;var u=ci(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(li?"g":"y"),l=new u(li?"^(?:"+i.source+")":i,s),d=void 0===o?di:o>>>0;if(0===d)return[];if(0===a.length)return null===Xr(l,a)?[a]:[];for(var p=0,g=0,v=[];g<a.length;){l.lastIndex=li?0:g;var h,m=Xr(l,li?mi(a,g):a);if(null===m||(h=pi(wt(l.lastIndex+(li?g:0)),a.length))===p)g=Jr(a,g,f);else{if(hi(v,mi(a,p,g)),v.length===d)return v;for(var y=1;y<=m.length-1;y++)if(hi(v,m[y]),v.length===d)return v;g=p=h}}return hi(v,mi(a,p)),v}]}),!yi,li);var wi=Object.assign,bi=Object.defineProperty,Si=E([].concat),Ei=!wi||s((function(){if(l&&1!==wi({b:1},wi(bi({},"a",{enumerable:!0,get:function(){bi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=wi({},e)[n]||Vt(wi({},t)).join("")!=r}))?function(e,t){for(var n=fe(e),r=arguments.length,o=1,i=Rt.f,a=m.f;r>o;)for(var c,u=I(arguments[o++]),f=i?Si(Vt(u),i(u)):Vt(u),s=f.length,d=0;s>d;)c=f[d++],l&&!g(a,u,c)||(n[c]=u[c]);return n}:wi;$t({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ei},{assign:Ei});var xi,Oi,Ti,Ai,ji=Be.f,Ii=we("toStringTag"),Ri=TypeError,Mi=Br(Br.bind),Ni=function(e,t){return ee(e),void 0===t?e:d?Mi(e,t):function(){return e.apply(t,arguments)}},Pi=TypeError,Ci=/(?:ipad|iphone|ipod).*applewebkit/i.test($),_i=f.setImmediate,ki=f.clearImmediate,Li=f.process,Di=f.Dispatch,Fi=f.Function,Ui=f.MessageChannel,Bi=f.String,$i=0,Vi={},qi="onreadystatechange";s((function(){xi=f.location}));var zi=function(e){if(le(Vi,e)){var t=Vi[e];delete Vi[e],t()}},Gi=function(e){return function(){zi(e)}},Hi=function(e){zi(e.data)},Wi=function(e){f.postMessage(Bi(e),xi.protocol+"//"+xi.host)};_i&&ki||(_i=function(e){!function(e,t){if(e<t)throw Pi("Not enough arguments")}(arguments.length,1);var t=L(e)?e:Fi(e),n=Mo(arguments,1);return Vi[++$i]=function(){no(t,void 0,n)},Oi($i),$i},ki=function(e){delete Vi[e]},jo?Oi=function(e){Li.nextTick(Gi(e))}:Di&&Di.now?Oi=function(e){Di.now(Gi(e))}:Ui&&!Ci?(Ai=(Ti=new Ui).port2,Ti.port1.onmessage=Hi,Oi=Ni(Ai.postMessage,Ai)):f.addEventListener&&L(f.postMessage)&&!f.importScripts&&xi&&"file:"!==xi.protocol&&!s(Wi)?(Oi=Wi,f.addEventListener("message",Hi,!1)):Oi=qi in Ae("script")?function(e){Gt.appendChild(Ae("script"))[qi]=function(){Gt.removeChild(this),zi(e)}}:function(e){setTimeout(Gi(e),0)});var Yi={set:_i,clear:ki},Ji=function(){this.head=null,this.tail=null};Ji.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Ki,Xi,Zi,Qi,ea,ta=Ji,na=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,ra=/web0s(?!.*chrome)/i.test($),oa=Re.f,ia=Yi.set,aa=f.MutationObserver||f.WebKitMutationObserver,ca=f.document,ua=f.process,fa=f.Promise,sa=oa(f,"queueMicrotask"),la=sa&&sa.value;if(!la){var da=new ta,pa=function(){var e,t;for(jo&&(e=ua.domain)&&e.exit();t=da.get();)try{t()}catch(e){throw da.head&&Ki(),e}e&&e.enter()};Ci||jo||ra||!aa||!ca?!na&&fa&&fa.resolve?((Qi=fa.resolve(void 0)).constructor=fa,ea=Ni(Qi.then,Qi),Ki=function(){ea(pa)}):jo?Ki=function(){ua.nextTick(pa)}:(ia=Ni(ia,f),Ki=function(){ia(pa)}):(Xi=!0,Zi=ca.createTextNode(""),new aa(pa).observe(Zi,{characterData:!0}),Ki=function(){Zi.data=Xi=!Xi}),la=function(e){da.head||Ki(),da.add(e)}}var ga=la,va=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ha=f.Promise,ma="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ya=!ma&&!jo&&"object"==typeof window&&"object"==typeof document;ha&&ha.prototype;var wa,ba,Sa,Ea,xa,Oa,Ta=we("species"),Aa=!1,ja=L(f.PromiseRejectionEvent),Ia=Ut("Promise",(function(){var e=Ke(ha),t=e!==String(ha);if(!t&&66===H)return!0;if(!H||H<51||!/native code/.test(e)){var n=new ha((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Ta]=r,!(Aa=n.then((function(){}))instanceof r))return!0}return!t&&(ya||ma)&&!ja})),Ra={CONSTRUCTOR:Ia,REJECTION_EVENT:ja,SUBCLASSING:Aa},Ma=TypeError,Na=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw Ma("Bad Promise constructor");t=e,n=r})),this.resolve=ee(t),this.reject=ee(n)},Pa={f:function(e){return new Na(e)}},Ca=Yi.set,_a="Promise",ka=Ra.CONSTRUCTOR,La=Ra.REJECTION_EVENT,Da=Ra.SUBCLASSING,Fa=ut.getterFor(_a),Ua=ut.set,Ba=ha&&ha.prototype,$a=ha,Va=Ba,qa=f.TypeError,za=f.document,Ga=f.process,Ha=Pa.f,Wa=Ha,Ya=!!(za&&za.createEvent&&f.dispatchEvent),Ja="unhandledrejection",Ka=function(e){var t;return!(!F(e)||!L(t=e.then))&&t},Xa=function(e,t){var n,r,o,i=t.value,a=1==t.state,c=a?e.ok:e.fail,u=e.resolve,f=e.reject,s=e.domain;try{c?(a||(2===t.rejection&&nc(t),t.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===e.promise?f(qa("Promise-chain cycle")):(r=Ka(n))?g(r,n,u,f):u(n)):f(i)}catch(e){s&&!o&&s.exit(),f(e)}},Za=function(e,t){e.notified||(e.notified=!0,ga((function(){for(var n,r=e.reactions;n=r.get();)Xa(n,e);e.notified=!1,t&&!e.rejection&&ec(e)})))},Qa=function(e,t,n){var r,o;Ya?((r=za.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),f.dispatchEvent(r)):r={promise:t,reason:n},!La&&(o=f["on"+e])?o(r):e===Ja&&function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},ec=function(e){g(Ca,f,(function(){var t,n=e.facade,r=e.value;if(tc(e)&&(t=va((function(){jo?Ga.emit("unhandledRejection",r,n):Qa(Ja,n,r)})),e.rejection=jo||tc(e)?2:1,t.error))throw t.value}))},tc=function(e){return 1!==e.rejection&&!e.parent},nc=function(e){g(Ca,f,(function(){var t=e.facade;jo?Ga.emit("rejectionHandled",t):Qa("rejectionhandled",t,e.value)}))},rc=function(e,t,n){return function(r){e(t,r,n)}},oc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Za(e,!0))},ic=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw qa("Promise can't be resolved itself");var r=Ka(t);r?ga((function(){var n={done:!1};try{g(r,t,rc(ic,n,e),rc(oc,n,e))}catch(t){oc(n,t,e)}})):(e.value=t,e.state=1,Za(e,!1))}catch(t){oc({done:!1},t,e)}}};if(ka&&(Va=($a=function(e){!function(e,t){if(B(t,e))return e;throw Ri("Incorrect invocation")}(this,Va),ee(e),g(wa,this);var t=Fa(this);try{e(rc(ic,t),rc(oc,t))}catch(e){oc(t,e)}}).prototype,(wa=function(e){Ua(this,{type:_a,done:!1,notified:!1,parent:!1,reactions:new ta,rejection:!1,state:0,value:void 0})}).prototype=st(Va,"then",(function(e,t){var n=Fa(this),r=Ha(ci(this,$a));return n.parent=!0,r.ok=!L(e)||e,r.fail=L(t)&&t,r.domain=jo?Ga.domain:void 0,0==n.state?n.reactions.add(r):ga((function(){Xa(r,n)})),r.promise})),ba=function(){var e=new wa,t=Fa(e);this.promise=e,this.resolve=rc(ic,t),this.reject=rc(oc,t)},Pa.f=Ha=function(e){return e===$a||undefined===e?new ba(e):Wa(e)},L(ha)&&Ba!==Object.prototype)){Sa=Ba.then,Da||st(Ba,"then",(function(e,t){var n=this;return new $a((function(e,t){g(Sa,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Ba.constructor}catch(e){}_n&&_n(Ba,Va)}$t({global:!0,constructor:!0,wrap:!0,forced:ka},{Promise:$a}),xa=_a,Oa=!1,(Ea=$a)&&!Oa&&(Ea=Ea.prototype),Ea&&!le(Ea,Ii)&&ji(Ea,Ii,{configurable:!0,value:xa}),Xn(_a);var ac={},cc=we("iterator"),uc=Array.prototype,fc=we("iterator"),sc=function(e){if(!R(e))return te(e,fc)||te(e,"@@iterator")||ac[gn(e)]},lc=TypeError,dc=function(e,t,n){var r,o;Ce(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=g(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ce(r),n},pc=TypeError,gc=function(e,t){this.stopped=e,this.result=t},vc=gc.prototype,hc=function(e,t,n){var r,o,i,a,c,u,f,s,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Ni(t,l),y=function(e){return r&&dc(r,"normal",e),new gc(!0,e)},w=function(e){return d?(Ce(e),h?m(e[0],e[1],y):m(e[0],e[1])):h?m(e,y):m(e)};if(p)r=e.iterator;else if(v)r=e;else{if(!(o=sc(e)))throw pc(Z(e)+" is not iterable");if(void 0!==(s=o)&&(ac.Array===s||uc[cc]===s)){for(i=0,a=bt(e);a>i;i++)if((c=w(e[i]))&&B(vc,c))return c;return new gc(!1)}r=function(e,t){var n=arguments.length<2?sc(e):t;if(ee(n))return Ce(g(n,e));throw lc(Z(e)+" is not iterable")}(e,o)}for(u=p?e.next:r.next;!(f=g(u,r)).done;){try{c=w(f.value)}catch(e){dc(r,"throw",e)}if("object"==typeof c&&c&&B(vc,c))return c}return new gc(!1)},mc=we("iterator"),yc=!1;try{var wc=0,bc={next:function(){return{done:!!wc++}},return:function(){yc=!0}};bc[mc]=function(){return this},Array.from(bc,(function(){throw 2}))}catch(e){}var Sc=Ra.CONSTRUCTOR||!function(e,t){if(!t&&!yc)return!1;var n=!1;try{var r={};r[mc]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){ha.all(e).then(void 0,(function(){}))}));$t({target:"Promise",stat:!0,forced:Sc},{all:function(e){var t=this,n=Pa.f(t),r=n.resolve,o=n.reject,i=va((function(){var n=ee(t.resolve),i=[],a=0,c=1;hc(e,(function(e){var u=a++,f=!1;c++,g(n,t,e).then((function(e){f||(f=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Ec=Ra.CONSTRUCTOR,xc=ha&&ha.prototype;if($t({target:"Promise",proto:!0,forced:Ec,real:!0},{catch:function(e){return this.then(void 0,e)}}),L(ha)){var Oc=U("Promise").prototype.catch;xc.catch!==Oc&&st(xc,"catch",Oc,{unsafe:!0})}$t({target:"Promise",stat:!0,forced:Sc},{race:function(e){var t=this,n=Pa.f(t),r=n.reject,o=va((function(){var o=ee(t.resolve);hc(e,(function(e){g(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),$t({target:"Promise",stat:!0,forced:Ra.CONSTRUCTOR},{reject:function(e){var t=Pa.f(this);return g(t.reject,void 0,e),t.promise}});var Tc=Ra.CONSTRUCTOR;U("Promise"),$t({target:"Promise",stat:!0,forced:Tc},{resolve:function(e){return function(e,t){if(Ce(e),F(t)&&t.constructor===e)return t;var n=Pa.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var Ac=Ge.EXISTS,jc=Function.prototype,Ic=E(jc.toString),Rc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mc=E(Rc.exec);l&&!Ac&&Jn(jc,"name",{configurable:!0,get:function(){try{return Mc(Rc,Ic(this))[1]}catch(e){return""}}});var Nc=E([].join);$t({target:"Array",proto:!0,forced:I!=Object||!bo("join",",")},{join:function(e){return Nc(P(this),void 0===e?",":e)}});var Pc=E([].push),Cc=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(u,f,s,l){for(var d,p,g=fe(u),v=I(g),h=Ni(f,s),m=bt(v),y=0,w=l||An,b=t?w(u,m):n||a?w(u,0):void 0;m>y;y++)if((c||y in v)&&(p=h(d=v[y],y,g),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Pc(b,d)}else switch(e){case 4:return!1;case 7:Pc(b,d)}return i?-1:r||o?o:b}},_c={forEach:Cc(0),map:Cc(1),filter:Cc(2),some:Cc(3),every:Cc(4),find:Cc(5),findIndex:Cc(6),filterReject:Cc(7)}.forEach,kc=bo("forEach")?[].forEach:function(e){return _c(this,e,arguments.length>1?arguments[1]:void 0)};$t({target:"Array",proto:!0,forced:[].forEach!=kc},{forEach:kc});var Lc={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},Dc=Ae("span").classList,Fc=Dc&&Dc.constructor&&Dc.constructor.prototype,Uc=Fc===Object.prototype?void 0:Fc,Bc=function(e){if(e&&e.forEach!==kc)try{$e(e,"forEach",kc)}catch(t){e.forEach=kc}};for(var $c in Lc)Lc[$c]&&Bc(f[$c]&&f[$c].prototype);Bc(Uc),$t({target:"Object",stat:!0,forced:s((function(){Vt(1)}))},{keys:function(e){return Vt(fe(e))}});var Vc=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),qc=et("IE_PROTO"),zc=Object,Gc=zc.prototype,Hc=Vc?zc.getPrototypeOf:function(e){var t=fe(e);if(le(t,qc))return t[qc];var n=t.constructor;return L(n)&&t instanceof n?n.prototype:t instanceof zc?Gc:null};$t({target:"Object",stat:!0,forced:s((function(){Hc(1)})),sham:!Vc},{getPrototypeOf:function(e){return Hc(fe(e))}});var Wc=Et.includes;$t({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(e){return Wc(this,e,arguments.length>1?arguments[1]:void 0)}}),rn("includes");var Yc=TypeError,Jc=we("match"),Kc=E("".indexOf);$t({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Jc]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~Kc(Un(N(this)),Un(function(e){if(Dn(e))throw Yc("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var Xc=f,Zc=It.f,Qc=Re.f,eu=Be.f,tu=Zo.trim,nu="Number",ru=f[nu];Xc[nu];var ou=ru.prototype,iu=f.TypeError,au=E("".slice),cu=E("".charCodeAt),uu=function(e){var t,n,r,o,i,a,c,u,f=Ee(e,"number");if(K(f))throw iu("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=tu(f),43===(t=cu(f,0))||45===t){if(88===(n=cu(f,2))||120===n)return NaN}else if(48===t){switch(cu(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=au(f,2)).length,c=0;c<a;c++)if((u=cu(i,c))<48||u>o)return NaN;return parseInt(i,r)}return+f},fu=Ut(nu,!ru(" 0o1")||!ru("0b1")||ru("+0x1")),su=function(e){var t,n=arguments.length<1?0:ru(function(e){var t=Ee(e,"number");return"bigint"==typeof t?t:uu(t)}(e));return B(ou,t=this)&&s((function(){ko(t)}))?kn(Object(n),this,su):n};su.prototype=ou,fu&&(ou.constructor=su),$t({global:!0,constructor:!0,wrap:!0,forced:fu},{Number:su});fu&&function(e,t){for(var n,r=l?Zc(t):"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++)le(t,n=r[o])&&!le(e,n)&&eu(e,n,Qc(t,n))}(Xc[nu],ru);var lu=TypeError,du=Object.getOwnPropertyDescriptor,pu=l&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(on(e)&&!du(e,"length").writable)throw lu("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},gu=TypeError,vu=function(e,t){if(!delete e[t])throw gu("Cannot delete property "+Z(t)+" of "+Z(e))},hu=In("splice"),mu=Math.max,yu=Math.min;function wu(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function bu(e){return JSON.parse(JSON.stringify(e))}function Su(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function Eu(e,t){void 0===t&&(t={isNaNAsNumber:!1,isUnFiniteAsNumber:!1});var n=Object.assign({isNaNAsNumber:!1,isUnFiniteAsNumber:!1},t),r=n.isNaNAsNumber,o=!0;return"number"!=typeof e&&(o=!1),!1!==n.isUnFiniteAsNumber||isFinite(e)||(o=!1),!1===r&&isNaN(e)&&(o=!1),o}function xu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null;return e&&"function"==typeof e&&(r=e.apply(void 0,t)),r}function Ou(){return Date.now?Date.now():(new Date).getTime()}function Tu(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function Au(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){var n=e.match(t),r="";return n&&(r=n.toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")),r},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/ipad/g)?o="ipad":t(/iphone/g)?o="iphone":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g));var s="";"chrome"===u?s=n(/chrome\/[\d._]+/g):"safari"===u?s=n(/version\/[\d._]+/g):"firefox"===u?s=n(/firefox\/[\d._]+/g):"opera"===u?s=n(/opr\/[\d._]+/g):"iexplore"===u?s=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(s=n(/edge\/[\d._]+/g));var l="",d="";return t(/micromessenger/g)?(l="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(l="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?l="qq_app":t(/ucbrowser/g)?(l="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?l="360":t(/2345explorer/g)?(l="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?l="sougou":t(/lbbrowser/g)?l="liebao":t(/maxthon/g)?(l="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(l="bilibili"),Object.assign({engine:c,engineVs:f,platform:a,supporter:u,supporterVs:s,system:r,systemVs:i},{shell:l,shellVs:d,appleType:o})}catch(e){return console.warn("mazey:",e),{engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""}}}function ju(){var e=window.MAZEY_DEFINE_LISTENERS;return"object"!==c(e)&&(e={},window.MAZEY_DEFINE_LISTENERS=e),e}return $t({target:"Array",proto:!0,forced:!hu},{splice:function(e,t){var n,r,o,i,a,c,u=fe(this),f=bt(u),s=mt(e,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=yu(mu(gt(t),0),f-s)),cn(f+n-r),o=An(u,r),i=0;i<r;i++)(a=s+i)in u&&un(o,i,u[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)c=i+n,(a=i+r)in u?u[c]=u[a]:vu(u,c);for(i=f;i>f-r+n;i--)vu(u,i-1)}else if(n>r)for(i=f-r;i>s;i--)c=i+n-1,(a=i+r-1)in u?u[c]=u[a]:vu(u,c);for(i=0;i<n;i++)u[i+s]=arguments[i+2];return pu(u,f-r+n),o}}),e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.addEvent=function(e,t){var n=ju();void 0===n[e]&&(n[e]=[]),"function"==typeof t&&n[e].push(t)},e.addStyle=function(e,t){if(void 0===t&&(t={id:""}),!e)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(r=document.getElementById(o))?r.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=e,n.appendChild(i),document.head.appendChild(n)),!0},e.calLongestCommonSubsequence=function(e,t){for(var n=e.length,r=t.length,o=bu(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],s=u[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)},e.calLongestCommonSubstring=function(e,t){for(var n=e.length,r=t.length,o=bu(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(e[i]===t[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},e.camelCase2Underscore=wu,e.camelCaseToKebabCase=function(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substr(1):t},e.cancelBubble=function(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.clearHtml=function(e){return e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.cutCHSString=function(e,t,n){if(void 0===n&&(n=!1),""!=e&&e){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=e.replace(i,"**").length,u=0;u<c&&(null!=(a=e.charAt(u).toString()).match(i)?r+=2:r++,!(r>t));u++)o+=a;return n&&c>t&&(o+="..."),o}return""},e.debounce=function(e,t,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=Ou()-i;f<t&&f>=0?o=setTimeout(u,t-f):(o=null,n||(c=e.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=Ou();var l=n&&!o;return o||(o=setTimeout(u,t)),l&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=bu,e.doFn=xu,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){void 0===t&&(t=0);var n="";return n=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(n,"%")},e.formatDate=function(e,t){void 0===t&&(t="yyyy-MM-dd"),e||(e=new Date);var n=new Date(e),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd: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=t||"yyyy-MM-dd";return Object.keys(r).forEach((function(e){var t=r[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),o=o.replace(e,String(t))})),o},e.friendlyInterval=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n={type:"d"});var r=n.type;Eu(e)||(e=new Date(e).getTime()),Eu(t)||(t=new Date(t).getTime());var o=t-e,i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},e.genCustomConsole=function(e,t){void 0===e&&(e=""),void 0===t&&(t={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(){}},t),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,c=n.logFn,u=n.errorFn,f=Object.create(null),s=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(t){f[t]=function(){for(var n,a,f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];if(r)return!1;var d=e,p=e;if("string"==typeof e&&e.length>=2){var g=e.length;d=":"===e[g-1]?e.substring(0,g-1):e}o&&console.log("--- ".concat(d," - begin ---")),i&&(p=e?"".concat(s()," ").concat(e):"".concat(s())),e||i?(n=console)[t].apply(n,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([p],f)):(a=console)[t].apply(a,f),"log"===t&&c(),"error"===t&&u(),o&&console.log("--- ".concat(d," - end ---"))}})),f},e.genHashCode=function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},e.generateRndNum=Su,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[Ou(),Su(e||3)];return t[0]+t[1]},e.getBrowserInfo=Au,e.getCookie=Tu,e.getDefineListeners=ju,e.getDomain=function(e,t){void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},e.getFileSize=function(e){var t=function(e){return String(Math.ceil(e))};if(!e)return"";var n=1024;return e<n?e+" B":e<Math.pow(n,2)?t(e/n)+" KB":e<Math.pow(n,3)?t(e/Math.pow(n,2))+" MB":e<Math.pow(n,4)?t(e/Math.pow(n,3))+" G":t(e/Math.pow(n,4))+" T"},e.getHashQueryParam=function(e){var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),r=t[1].match(n);return r?r[2]:""},e.getLocalStorage=function(e){var t=null;if(e){var n=localStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.getPerformance=function(e){var t,n;void 0===e&&(e=!1);var r,o,i=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(e,t,n){var i=Math.round(e.startTime);"first-paint"===e.name?r=i:"first-contentful-paint"===e.name&&(o=i)}));else console.error("paint")}catch(e){console.error(e.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},v={os:f(),osVersion:s(),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:g(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(v).forEach((function(e){Eu(v[e])&&v[e]<0&&(v[e]=0)})),Eu(v.whiteTime)&&v.whiteTime>v.onloadTime&&(v.whiteTime=0),c>0)e||Object.keys(v).forEach((function(e){i||(i={}),i[wu(e)]=v[e]})),t(i||v);else n(Error("startTime"))}else n(Error("getEntries"))}function f(){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 s(){var e,t=navigator.userAgent,n=t.indexOf("Android")>-1||t.indexOf("Linux")>-1,r=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(e=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(e=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e}function l(){var e=navigator.userAgent.toLowerCase(),t=e.match(/(ipad)/i)&&"ipad",n=e.match(/iphone os/i)&&"iphone os",r=e.match(/midp/i)&&"midp",o=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=e.match(/ucweb/i)&&"ucweb",a=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",u=e.match(/windows mobile/i)&&"windows mobile";return t||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":t?"ipad":void 0:"pc"}function d(){var e;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e}function p(){var e;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e}function g(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},e.getQueryParam=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):""},e.getSessionStorage=function(e){var t=null;if(e){var n=sessionStorage.getItem(e);n&&(t=JSON.parse(n))}return t},e.getUrlParam=function(e,t){var n={};return e.replace(/\??(\w+)=([^&]*)&?/g,(function(e,t,r){if(void 0!==n[t]){var o=n[t];n[t]=[].concat(o,r)}else n[t]=r})),n[t]||""},e.hasClass=function(e,t){for(var n=e.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},e.inRate=function(e){return Math.random()<e},e.invokeEvent=function(e){var t=ju()[e];if(t instanceof Array)for(var n=0,r=t.length;n<r;n++)"function"==typeof t[n]&&t[n]({type:e})},e.isJsonString=function(e){try{if("object"===c(JSON.parse(e)))return!0}catch(e){}return!1},e.isNonEmptyArray=function(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t},e.isNumber=Eu,e.isSafePWAEnv=function(){var e=Au();return!(!("serviceWorker"in navigator&&function(){var e;try{return e=new Function("return async function(){};")(),null!=Object.getPrototypeOf(e).constructor}catch(e){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||e.shell)},e.isSupportWebp=function(){return new Promise((function(e){var t=new Image;t.onload=function(){e(t.width>0&&t.height>0)},t.onerror=function(){e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},e.isValidData=function(e,t,n){var r=!1;return t.reduce((function(e,t){return e[t]?e=e[t]:Object.create(null)}),e)===n&&(r=!0),r},e.isValidPhoneNumber=function(e){return/^1[3456789]\d{9}$/.test(e)},e.isValidUrl=function(e){return/[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/gm.test(e)},e.loadCSS=function(e,t){void 0===t&&(t={id:""});var n,r=t.id,o=new Promise((function(e,t){n=[e,t][0]})),i=function(){n(!0)},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){s(a,i,0)}),1),o;function f(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function s(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){r?t():s(e,t,n)}),20)}return c?(a.onload=f,a.onerror=function(){f()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&f()},o},e.loadScript=function(e,t){void 0===t&&(t={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},t),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,f=document.createElement("script"),s=document.getElementsByTagName("script")[0];return f.type="text/javascript",a&&(f.defer="defer"),r&&(f.id=r),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,xu(o),xu(c,!0))}:f.onload=function(){xu(o),xu(c,!0)},f.src=e,s&&s.parentNode.insertBefore(f,s),new Promise((function(e,t){var n;c=(n=[e,t])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},e.mNow=Ou,e.mTrim=function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,n=/\s/;n.test(e.charAt(t));)t--;return e.slice(0,t+1)},e.newLine=function(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")},e.removeClass=function(e,t){var n;n=(n=(n=(n=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=n},e.removeEvent=function(e,t){var n=ju(),r=n[e];if("string"==typeof e&&r instanceof Array)if("function"==typeof t){for(var o=0,i=r.length;o<i;o++)if(r[o]===t){n[e].splice(o,1);break}}else delete n[e]},e.setCookie=function(e,t,n,r){var o,i,a;n?((a=new Date).setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()):i="";var c=location.host;1===c.split(".").length?document.cookie=e+"="+t+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=e+"="+t+i+"; path=/; domain="+r,null!==Tu(e)&&Tu(e)===t||(r=r||"."+c,document.cookie=e+"="+t+i+"; path=/; domain="+r))},e.setLocalStorage=function(e,t){void 0===t&&(t=null),e&&localStorage.setItem(e,JSON.stringify(t))},e.setSessionStorage=function(e,t){void 0===t&&(t=null),e&&sessionStorage.setItem(e,JSON.stringify(t))},e.throttle=function(e,t,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],f=function(){u=!1===n.leading?0:Ou(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=Ou();u||!1!==n.leading||(u=l);var d=t-(l-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=l,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f,d)),c}},e.updateQueryParam=function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+o+t+"="+n},e.windowLoaded=function(e){void 0===e&&(e=90);var t,n=function(){},r=new Promise((function(e,r){n=e,t=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return t(Error("timeout"))}),1e3*e),r},e.zAxiosIsValidRes=function(e,t){void 0===t&&(t={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},t),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(e&&e.status&&2===r.length&&e.status>=r[0]&&e.status<r[1]){var a=e.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
package/package.json
CHANGED
package/scripts/env.sh
ADDED