mazey 2.0.0 → 2.1.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.
@@ -0,0 +1 @@
1
+ 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},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},s={}.toString,d=function(e){return s.call(e).slice(8,-1)},p="".split,v=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?p.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},h=function(e){return v(g(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})),T=Object.getOwnPropertyDescriptor,j={f:a?T:function(e,t){if(e=h(e),t=y(t,!0),O)try{return T(e,t)}catch(e){}if(b(e,t))return f(!l.f.call(e,t),e[t])}},A=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},P=Object.defineProperty,R={f:a?P:function(e,t,n){if(A(e),t=y(t,!0),A(n),O)try{return P(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 R.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{C(o,e,t)}catch(n){o[e]=t}return t},L="__core-js_shared__",M=o[L]||_(L,{}),k=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(e){return k.call(e)});var I,N,F,D=M.inspectSource,$=o.WeakMap,B="function"==typeof $&&/native code/.test(D($)),U=n((function(e){(e.exports=function(e,t){return M[e]||(M[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,V=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++q+V).toString(36)},H=U("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;I=function(e,t){return Q.call(J,e,t),t},N=function(e){return Y.call(J,e)||{}},F=function(e){return X.call(J,e)}}else{var Z=W("state");z[Z]=!0,I=function(e,t){return C(e,Z,t),t},N=function(e){return b(e,Z)?e[Z]:{}},F=function(e){return b(e,Z)}}var ee,te,ne={set:I,get:N,has:F,enforce:function(e){return F(e)?N(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=N(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:_(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)},fe=Math.min,se=function(e){return e>0?fe(le(e),9007199254740991):0},de=Math.max,pe=Math.min,ve=function(e,t){var n=le(e);return n<0?de(n+t,0):pe(n,t)},ge=function(e){return function(t,n,r){var o,i=h(t),a=se(i.length),c=ve(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:ge(!0),indexOf:ge(!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(A(e)),n=xe.f;return n?t.concat(n(e)):t},Oe=function(e,t){for(var n=Ee(t),r=R.f,o=j.f,i=0;i<n.length;i++){var a=n[i];b(e,a)||r(e,a,o(t,a))}},Te=/#|\.prototype\./,je=function(e,t){var n=Pe[Ae(e)];return n==Ce||n!=Re&&("function"==typeof t?i(t):!!t)},Ae=je.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Pe=je.data={},Re=je.NATIVE="N",Ce=je.POLYFILL="P",_e=je,Le=j.f,Me=function(e,t){var n,r,i,a,c,u=e.target,l=e.global,f=e.stat;if(n=l?o:f?o[u]||_(u,{}):(o[u]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(c=Le(n,r))&&c.value:n[r],!_e(l?r:u+(f?".":"#")+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)}},ke=Array.isArray||function(e){return"Array"==d(e)},Ie=function(e){return Object(g(e))},Ne=function(e,t,n){var r=y(t);r in e?R.f(e,r,f(0,n)):e[r]=n},Fe=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$e=U("wks"),Be=o.Symbol,Ue=De?Be:Be&&Be.withoutSetter||G,qe=function(e){return b($e,e)||(Fe&&b(Be,e)?$e[e]=Be[e]:$e[e]=Ue("Symbol."+e)),$e[e]},Ve=qe("species"),Ge=function(e,t){var n;return ke(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!ke(n.prototype)?m(n)&&null===(n=n[Ve])&&(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=qe("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=qe("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:ke(e)};Me({target:"Array",proto:!0,forced:!tt||!nt},{concat:function(e){var t,n,r,o,i,a=Ie(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=se(i.length))>Ze)throw TypeError(et);for(n=0;n<o;n++,u++)n in i&&Ne(c,u,i[n])}else{if(u>=Ze)throw TypeError(et);Ne(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){A(e);for(var n,r=it(t),o=r.length,i=0;o>i;)R.f(e,n=r[i++],t[n]);return e},ct=ae("document","documentElement"),ut=W("IE_PROTO"),lt=function(){},ft=function(e){return"<script>"+e+"</"+"script>"},st=function(){try{ot=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;st=ot?function(e){e.write(ft("")),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(ft("document.F=Object")),e.close(),e.F);for(var n=we.length;n--;)delete st.prototype[we[n]];return st()};z[ut]=!0;var dt=Object.create||function(e,t){var n;return null!==e?(lt.prototype=A(e),n=new lt,lt.prototype=null,n[ut]=e):n=st(),void 0===t?n:at(n,t)},pt=qe("unscopables"),vt=Array.prototype;null==vt[pt]&&R.f(vt,pt,{configurable:!0,value:dt(null)});var gt;Me({target:"Array",proto:!0},{fill:function(e){for(var t=Ie(this),n=se(t.length),r=arguments.length,o=ve(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ve(i,n);a>o;)t[o++]=e;return t}}),gt="fill",vt[pt][gt]=!0;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,f){for(var s,d,p=Ie(c),g=v(p),h=mt(u,l,3),m=se(g.length),y=0,w=f||Ge,b=t?w(c,m):n?w(c,0):void 0;m>y;y++)if((a||y in g)&&(d=h(s=g[y],y,p),e))if(t)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return s;case 6:return y;case 2:yt.call(b,s)}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},Tt=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)}))},jt=bt.forEach,At=St("forEach"),Pt=Tt("forEach"),Rt=At&&Pt?[].forEach:function(e){return jt(this,e,arguments.length>1?arguments[1]:void 0)};Me({target:"Array",proto:!0,forced:[].forEach!=Rt},{forEach:Rt});var Ct=he.indexOf,_t=[].indexOf,Lt=!!_t&&1/[1].indexOf(1,-0)<0,Mt=St("indexOf"),kt=Tt("indexOf",{ACCESSORS:!0,1:0});Me({target:"Array",proto:!0,forced:Lt||!Mt||!kt},{indexOf:function(e){return Lt?_t.apply(this,arguments)||0:Ct(this,e,arguments.length>1?arguments[1]:void 0)}});var It=[].join,Nt=v!=Object,Ft=St("join",",");Me({target:"Array",proto:!0,forced:Nt||!Ft},{join:function(e){return It.call(h(this),void 0===e?",":e)}});var Dt=function(e){return function(t,n,r,o){ht(n);var i=Ie(t),a=v(i),c=se(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}},$t={left:Dt(!1),right:Dt(!0)}.left,Bt=St("reduce"),Ut=Tt("reduce",{1:0});Me({target:"Array",proto:!0,forced:!Bt||!Ut},{reduce:function(e){return $t(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var qt=Xe("slice"),Vt=Tt("slice",{ACCESSORS:!0,0:0,1:2}),Gt=qe("species"),Ht=[].slice,Wt=Math.max;Me({target:"Array",proto:!0,forced:!qt||!Vt},{slice:function(e,t){var n,r,o,i=h(this),a=se(i.length),c=ve(e,a),u=ve(void 0===t?a:t,a);if(ke(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!ke(n.prototype)?m(n)&&null===(n=n[Gt])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ht.call(i,c,u);for(r=new(void 0===n?Array:n)(Wt(u-c,0)),o=0;c<u;c++,o++)c in i&&Ne(r,o,i[c]);return r.length=o,r}});var zt=R.f,Kt=Function.prototype,Jt=Kt.toString,Yt=/^\s*function ([^ (]*)/,Xt="name";a&&!(Xt in Kt)&&zt(Kt,Xt,{configurable:!0,get:function(){try{return Jt.call(this).match(Yt)[1]}catch(e){return""}}});var Qt="".repeat||function(e){var t=String(g(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},Zt=1..toFixed,en=Math.floor,tn=function(e,t,n){return 0===t?n:t%2==1?tn(e,t-1,n*e):tn(e*e,t/2,n)};Me({target:"Number",proto:!0,forced:Zt&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){Zt.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",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=en(r/1e7)},s=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+Qt.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*tn(2,69,1))-69)<0?i*tn(2,-t,1):i/tn(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=a;r>=7;)f(1e7,0),r-=7;for(f(tn(10,r,1),0),r=t-1;r>=23;)s(1<<23),r-=23;s(1<<r),f(1,1),s(2),l=p()}else f(0,n),f(1<<-t,0),l=p()+Qt.call("0",a);return l=a>0?u+((o=l.length)<=a?"0."+Qt.call("0",a-o)+l:l.slice(0,o-a)+"."+l.slice(o-a)):u+l}});var nn=Object.assign,rn=Object.defineProperty,on=!nn||i((function(){if(a&&1!==nn({b:1},nn(rn({},"a",{enumerable:!0,get:function(){rn(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!=nn({},e)[n]||it(nn({},t)).join("")!=r}))?function(e,t){for(var n=Ie(e),r=arguments.length,o=1,i=xe.f,c=l.f;r>o;)for(var u,f=v(arguments[o++]),s=i?it(f).concat(i(f)):it(f),d=s.length,p=0;d>p;)u=s[p++],a&&!c.call(f,u)||(n[u]=f[u]);return n}:nn;Me({target:"Object",stat:!0,forced:Object.assign!==on},{assign:on});var an=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cn=W("IE_PROTO"),un=Object.prototype,ln=an?Object.getPrototypeOf:function(e){return e=Ie(e),b(e,cn)?e[cn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?un:null};Me({target:"Object",stat:!0,forced:i((function(){ln(1)})),sham:!an},{getPrototypeOf:function(e){return ln(Ie(e))}}),Me({target:"Object",stat:!0,forced:i((function(){it(1)}))},{keys:function(e){return it(Ie(e))}});var fn={};fn[qe("toStringTag")]="z";var sn="[object z]"===String(fn),dn=qe("toStringTag"),pn="Arguments"==d(function(){return arguments}()),vn=sn?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),dn))?n:pn?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},gn=sn?{}.toString:function(){return"[object "+vn(this)+"]"};sn||re(Object.prototype,"toString",gn,{unsafe:!0});var hn="\t\n\v\f\r                 \u2028\u2029\ufeff",mn="["+hn+"]",yn=RegExp("^"+mn+mn+"*"),wn=RegExp(mn+mn+"*$"),bn=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(yn,"")),2&e&&(n=n.replace(wn,"")),n}},Sn={start:bn(1),end:bn(2),trim:bn(3)}.trim,xn=o.parseFloat,En=1/xn(hn+"-0")!=-1/0?function(e){var t=Sn(String(e)),n=xn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:xn;Me({global:!0,forced:parseFloat!=En},{parseFloat:En});var On=o.Promise,Tn=R.f,jn=qe("toStringTag"),An=qe("species"),Pn=function(e){var t=ae(e),n=R.f;a&&t&&!t[An]&&n(t,An,{configurable:!0,get:function(){return this}})},Rn={},Cn=qe("iterator"),_n=Array.prototype,Ln=qe("iterator"),Mn=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&A(o.call(e)),t}},kn=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,f,s,d,p,v=mt(n,r,o?2:1);if(i)a=e;else{if(c=function(e){if(null!=e)return e[Ln]||e["@@iterator"]||Rn[vn(e)]}(e),"function"!=typeof c)throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Rn.Array===p||_n[Cn]===p)){for(u=0,l=se(e.length);l>u;u++)if((f=o?v(A(d=e[u])[0],d[1]):v(e[u]))&&f instanceof t)return f;return new t(!1)}a=c.call(e)}for(s=a.next;!(d=s.call(a)).done;)if("object"==typeof(f=Mn(a,v,d.value,o))&&f&&f instanceof t)return f;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),In=qe("iterator"),Nn=!1;try{var Fn=0,Dn={next:function(){return{done:!!Fn++}},return:function(){Nn=!0}};Dn[In]=function(){return this},Array.from(Dn,(function(){throw 2}))}catch(e){}var $n,Bn,Un,qn=qe("species"),Vn=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[qn])?t:ht(n)},Gn=/(iphone|ipod|ipad).*applewebkit/i.test(He),Hn=o.location,Wn=o.setImmediate,zn=o.clearImmediate,Kn=o.process,Jn=o.MessageChannel,Yn=o.Dispatch,Xn=0,Qn={},Zn="onreadystatechange",er=function(e){if(Qn.hasOwnProperty(e)){var t=Qn[e];delete Qn[e],t()}},tr=function(e){return function(){er(e)}},nr=function(e){er(e.data)},rr=function(e){o.postMessage(e+"",Hn.protocol+"//"+Hn.host)};Wn&&zn||(Wn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Qn[++Xn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},$n(Xn),Xn},zn=function(e){delete Qn[e]},"process"==d(Kn)?$n=function(e){Kn.nextTick(tr(e))}:Yn&&Yn.now?$n=function(e){Yn.now(tr(e))}:Jn&&!Gn?(Un=(Bn=new Jn).port2,Bn.port1.onmessage=nr,$n=mt(Un.postMessage,Un,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(rr)||"file:"===Hn.protocol?$n=Zn in E("script")?function(e){ct.appendChild(E("script")).onreadystatechange=function(){ct.removeChild(this),er(e)}}:function(e){setTimeout(tr(e),0)}:($n=rr,o.addEventListener("message",nr,!1)));var or,ir,ar,cr,ur,lr,fr,sr,dr={set:Wn,clear:zn},pr=j.f,vr=dr.set,gr=o.MutationObserver||o.WebKitMutationObserver,hr=o.process,mr=o.Promise,yr="process"==d(hr),wr=pr(o,"queueMicrotask"),br=wr&&wr.value;br||(or=function(){var e,t;for(yr&&(e=hr.domain)&&e.exit();ir;){t=ir.fn,ir=ir.next;try{t()}catch(e){throw ir?cr():ar=void 0,e}}ar=void 0,e&&e.enter()},yr?cr=function(){hr.nextTick(or)}:gr&&!Gn?(ur=!0,lr=document.createTextNode(""),new gr(or).observe(lr,{characterData:!0}),cr=function(){lr.data=ur=!ur}):mr&&mr.resolve?(fr=mr.resolve(void 0),sr=fr.then,cr=function(){sr.call(fr,or)}):cr=function(){vr.call(o,or)});var Sr,xr,Er,Or,Tr,jr,Ar,Pr=br||function(e){var t={fn:e,next:void 0};ar&&(ar.next=t),ir||(ir=t,cr()),ar=t},Rr=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)},Cr={f:function(e){return new Rr(e)}},_r=function(e,t){if(A(e),m(t)&&t.constructor===e)return t;var n=Cr.f(e);return(0,n.resolve)(t),n.promise},Lr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Mr=dr.set,kr=qe("species"),Ir="Promise",Nr=ne.get,Fr=ne.set,Dr=ne.getterFor(Ir),$r=On,Br=o.TypeError,Ur=o.document,qr=o.process,Vr=ae("fetch"),Gr=Cr.f,Hr=Gr,Wr="process"==d(qr),zr=!!(Ur&&Ur.createEvent&&o.dispatchEvent),Kr="unhandledrejection",Jr=_e(Ir,(function(){if(!(D($r)!==String($r))){if(66===Je)return!0;if(!Wr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Je>=51&&/native code/.test($r))return!1;var e=$r.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[kr]=t,!(e.then((function(){}))instanceof t)})),Yr=Jr||!function(e,t){if(!t&&!Nn)return!1;var n=!1;try{var r={};r[In]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){$r.all(e).catch((function(){}))})),Xr=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Qr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Pr((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,l,f=r[a++],s=i?f.ok:f.fail,d=f.resolve,p=f.reject,v=f.domain;try{s?(i||(2===t.rejection&&no(e,t),t.rejection=1),!0===s?c=o:(v&&v.enter(),c=s(o),v&&(v.exit(),l=!0)),c===f.promise?p(Br("Promise-chain cycle")):(u=Xr(c))?u.call(c,d,p):d(c)):p(o)}catch(e){v&&!l&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&eo(e,t)}))}},Zr=function(e,t,n){var r,i;zr?((r=Ur.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===Kr&&function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},eo=function(e,t){Mr.call(o,(function(){var n,r=t.value;if(to(t)&&(n=Lr((function(){Wr?qr.emit("unhandledRejection",r,e):Zr(Kr,e,r)})),t.rejection=Wr||to(t)?2:1,n.error))throw n.value}))},to=function(e){return 1!==e.rejection&&!e.parent},no=function(e,t){Mr.call(o,(function(){Wr?qr.emit("rejectionHandled",e):Zr("rejectionhandled",e,t.value)}))},ro=function(e,t,n,r){return function(o){e(t,n,o,r)}},oo=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Qr(e,t,!0))},io=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Br("Promise can't be resolved itself");var o=Xr(n);o?Pr((function(){var r={done:!1};try{o.call(n,ro(io,e,r,t),ro(oo,e,r,t))}catch(n){oo(e,r,n,t)}})):(t.value=n,t.state=1,Qr(e,t,!1))}catch(n){oo(e,{done:!1},n,t)}}};Jr&&($r=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,$r,Ir),ht(e),Sr.call(this);var t=Nr(this);try{e(ro(io,this,t),ro(oo,this,t))}catch(e){oo(this,t,e)}},(Sr=function(e){Fr(this,{type:Ir,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}($r.prototype,{then:function(e,t){var n=Dr(this),r=Gr(Vn(this,$r));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Wr?qr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Qr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),xr=function(){var e=new Sr,t=Nr(e);this.promise=e,this.resolve=ro(io,e,t),this.reject=ro(oo,e,t)},Cr.f=Gr=function(e){return e===$r||e===Er?new xr(e):Hr(e)},"function"==typeof On&&(Or=On.prototype.then,re(On.prototype,"then",(function(e,t){var n=this;return new $r((function(e,t){Or.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Vr&&Me({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _r($r,Vr.apply(o,arguments))}}))),Me({global:!0,wrap:!0,forced:Jr},{Promise:$r}),jr=Ir,Ar=!1,(Tr=$r)&&!b(Tr=Ar?Tr:Tr.prototype,jn)&&Tn(Tr,jn,{configurable:!0,value:jr}),Pn(Ir),Er=ae(Ir),Me({target:Ir,stat:!0,forced:Jr},{reject:function(e){var t=Gr(this);return t.reject.call(void 0,e),t.promise}}),Me({target:Ir,stat:!0,forced:Jr},{resolve:function(e){return _r(this,e)}}),Me({target:Ir,stat:!0,forced:Yr},{all:function(e){var t=this,n=Gr(t),r=n.resolve,o=n.reject,i=Lr((function(){var n=ht(t.resolve),i=[],a=0,c=1;kn(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=Gr(t),r=n.reject,o=Lr((function(){var o=ht(t.resolve);kn(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ao=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A(n),function(e){if(!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),co=qe("match"),uo=function(e){var t;return m(e)&&(void 0!==(t=e[co])?!!t:"RegExp"==d(e))},lo=function(){var e=A(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function fo(e,t){return RegExp(e,t)}var so={UNSUPPORTED_Y:i((function(){var e=fo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=fo("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},po=R.f,vo=Se.f,go=ne.set,ho=qe("match"),mo=o.RegExp,yo=mo.prototype,wo=/a/g,bo=/a/g,So=new mo(wo)!==wo,xo=so.UNSUPPORTED_Y;if(a&&_e("RegExp",!So||xo||i((function(){return bo[ho]=!1,mo(wo)!=wo||mo(bo)==bo||"/a/i"!=mo(wo,"i")})))){for(var Eo=function(e,t){var n,r=this instanceof Eo,o=uo(e),i=void 0===t;if(!r&&o&&e.constructor===Eo&&i)return e;So?o&&!i&&(e=e.source):e instanceof Eo&&(i&&(t=lo.call(e)),e=e.source),xo&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a,c,u,l,f,s=(a=So?new mo(e,t):mo(e,t),c=r?this:yo,u=Eo,ao&&"function"==typeof(l=c.constructor)&&l!==u&&m(f=l.prototype)&&f!==u.prototype&&ao(a,f),a);return xo&&n&&go(s,{sticky:n}),s},Oo=function(e){e in Eo||po(Eo,e,{configurable:!0,get:function(){return mo[e]},set:function(t){mo[e]=t}})},To=vo(mo),jo=0;To.length>jo;)Oo(To[jo++]);yo.constructor=Eo,Eo.prototype=yo,re(o,"RegExp",Eo)}Pn("RegExp");var Ao=RegExp.prototype.exec,Po=String.prototype.replace,Ro=Ao,Co=function(){var e=/a/,t=/b*/g;return Ao.call(e,"a"),Ao.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_o=so.UNSUPPORTED_Y||so.BROKEN_CARET,Lo=void 0!==/()??/.exec("")[1];(Co||Lo||_o)&&(Ro=function(e){var t,n,r,o,i=this,a=_o&&i.sticky,c=lo.call(i),u=i.source,l=0,f=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),f=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",f=" "+f,l++),n=new RegExp("^(?:"+u+")",c)),Lo&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Co&&(t=i.lastIndex),r=Ao.call(a?n:i,f),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:Co&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Lo&&r&&r.length>1&&Po.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Mo=Ro;Me({target:"RegExp",proto:!0,forced:/./.exec!==Mo},{exec:Mo});var ko="toString",Io=RegExp.prototype,No=Io.toString,Fo=i((function(){return"/a/b"!=No.call({source:"a",flags:"b"})})),Do=No.name!=ko;(Fo||Do)&&re(RegExp.prototype,ko,(function(){var e=A(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Io)?lo.call(e):n)}),{unsafe:!0}),Me({target:"RegExp",proto:!0,forced:/./.exec!==Mo},{exec:Mo});var $o=qe("species"),Bo=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Uo="$0"==="a".replace(/./,"$0"),qo=qe("replace"),Vo=!!/./[qo]&&""===/./[qo]("a","$0"),Go=!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]})),Ho=function(e,t,n,r){var o=qe(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[$o]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!c||"replace"===e&&(!Bo||!Uo||Vo)||"split"===e&&!Go){var u=/./[o],l=n(o,""[e],(function(e,t,n,r,o){return t.exec===Mo?a&&!o?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Uo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Vo}),f=l[0],s=l[1];re(String.prototype,e,f),re(RegExp.prototype,o,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&C(RegExp.prototype[o],"sham",!0)},Wo=function(e){return function(t,n){var r,o,i=String(g(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}},zo={codeAt:Wo(!1),charAt:Wo(!0)}.charAt,Ko=function(e,t,n){return t+(n?zo(e,t).length:1)},Jo=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 Mo.call(e,t)};Ho("match",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this);if(!o.global)return Jo(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],l=0;null!==(c=Jo(o,i));){var f=String(c[0]);u[l]=f,""===f&&(o.lastIndex=Ko(i,se(o.lastIndex),a)),l++}return 0===l?null:u}]}));var Yo=Math.max,Xo=Math.min,Qo=Math.floor,Zo=/\$([$&'`]|\d\d?|<[^>]*>)/g,ei=/\$([$&'`]|\d\d?)/g,ti=function(e){return void 0===e?e:String(e)};Ho("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=g(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=n(t,e,this,r);if(u.done)return u.value}var l=A(e),f=String(this),s="function"==typeof r;s||(r=String(r));var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var v=[];;){var g=Jo(l,f);if(null===g)break;if(v.push(g),!d)break;""===String(g[0])&&(l.lastIndex=Ko(f,se(l.lastIndex),p))}for(var h="",m=0,y=0;y<v.length;y++){g=v[y];for(var w=String(g[0]),b=Yo(Xo(le(g.index),f.length),0),S=[],x=1;x<g.length;x++)S.push(ti(g[x]));var E=g.groups;if(s){var O=[w].concat(S,b,f);void 0!==E&&O.push(E);var T=String(r.apply(void 0,O))}else T=c(w,f,b,S,E,r);b>=m&&(h+=f.slice(m,b)+T,m=b+w.length)}return h+f.slice(m)}];function c(e,n,r,o,i,a){var c=r+e.length,u=o.length,l=ei;return void 0!==i&&(i=Ie(i),l=Zo),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 f=+a;if(0===f)return t;if(f>u){var s=Qo(f/10);return 0===s?t:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):t}l=o[f-1]}return void 0===l?"":l}))}}));var ni=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ho("search",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=A(e),i=String(this),a=o.lastIndex;ni(a,0)||(o.lastIndex=0);var c=Jo(o,i);return ni(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]}));var ri=[].push,oi=Math.min,ii=4294967295,ai=!i((function(){return!RegExp(ii,"y")}));Ho("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(g(this)),o=void 0===n?ii:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!uo(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":""),f=0,s=new RegExp(e.source,l+"g");(i=Mo.call(s,r))&&!((a=s.lastIndex)>f&&(u.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&ri.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!c&&s.test("")||u.push(""):u.push(r.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=g(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=A(e),c=String(this),u=Vn(a,RegExp),l=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ai?"y":"g"),s=new u(ai?a:"^(?:"+a.source+")",f),d=void 0===o?ii:o>>>0;if(0===d)return[];if(0===c.length)return null===Jo(s,c)?[c]:[];for(var p=0,v=0,g=[];v<c.length;){s.lastIndex=ai?v:0;var h,m=Jo(s,ai?c:c.slice(v));if(null===m||(h=oi(se(s.lastIndex+(ai?0:v)),c.length))===p)v=Ko(c,v,l);else{if(g.push(c.slice(p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===d)return g;v=p=h}}return g.push(c.slice(p)),g}]}),!ai);for(var ci 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 ui=o[ci],li=ui&&ui.prototype;if(li&&li.forEach!==Rt)try{C(li,"forEach",Rt)}catch(e){li.forEach=Rt}}var fi=n((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));function si(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function di(e){void 0===e&&(e="");var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substr(1):t}function pi(e){return JSON.parse(JSON.stringify(e))}function vi(e){void 0===e&&(e=5);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function gi(e,t){var n=void 0===t?{}:t,r=n.isNaNAsNumber,o=void 0!==r&&r,i=n.isUnFiniteAsNumber,a=!0;return"number"!=typeof e&&(a=!1),!1!==(void 0!==i&&i)||isFinite(e)||(a=!1),!1===o&&isNaN(e)&&(a=!1),a}function hi(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 mi(){return Date.now?Date.now():(new Date).getTime()}function yi(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 wi(){try{var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){return e.match(t).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},r="",o="";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios",t(/iphone/g)?o="iphone":t(/ipad/g)?o="ipad":t(/iwatch/g)?o="iwatch":t(/ipod/g)&&(o="ipod"));var i="";"windows"===r?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===r?i=n(/os x [\d._]+/g):"android"===r?i=n(/android [\d._]+/g):"ios"===r&&(i=n(/os [\d._]+/g));var a="";"windows"===r||"macos"===r||"linux"===r?a="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(a="mobile");var c="",u="";t(/applewebkit/g)?(c="webkit",t(/edge/g)?u="edge":t(/opr/g)?u="opera":t(/chrome/g)?u="chrome":t(/safari/g)&&(u="safari")):t(/gecko/g)&&t(/firefox/g)?(c="gecko",u="firefox"):t(/presto/g)?(c="presto",u="opera"):t(/trident|compatible|msie/g)&&(c="trident",u="iexplore");var 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 f="";"chrome"===u?f=n(/chrome\/[\d._]+/g):"safari"===u?f=n(/version\/[\d._]+/g):"firefox"===u?f=n(/firefox\/[\d._]+/g):"opera"===u?f=n(/opr\/[\d._]+/g):"iexplore"===u?f=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===u&&(f=n(/edge\/[\d._]+/g));var s="",d="";return t(/micromessenger/g)?(s="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(s="qq_browser",d=n(/qqbrowser\/[\d._]+/g)):t(/\sqq/g)?s="qq_app":t(/ucbrowser/g)?(s="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?s="360":t(/2345explorer/g)?(s="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?s="sougou":t(/lbbrowser/g)?s="liebao":t(/maxthon/g)?(s="maxthon",d=n(/maxthon\/[\d._]+/g)):t(/biliapp/g)&&(s="bilibili"),Object.assign({engine:c,engineVs:l,platform:a,supporter:u,supporterVs:f,system:r,systemVs:i},{shell:s,shellVs:d,appleType:o})}catch(e){return{}}}return e.addClass=function(e,t){var n,r=e.className,o="";""!==r&&(o=" "),n=r+o+t,e.className=n},e.addInlineStyle=function(e){var t=void 0===e?{}:e,n=t.inlineStyle,r=void 0===n?"":n,o=t.id,i=void 0===o?"":o;if(!r)return!1;var a=document.createDocumentFragment(),c=null,u="",l=document.createElement("style");return i?(u=""+i,(c=document.getElementById(u))?c.innerHTML=r:(l.setAttribute("id",i),l.innerHTML=r,a.appendChild(l),document.head.appendChild(a))):(l.innerHTML=r,a.appendChild(l),document.head.appendChild(a)),!0},e.calLongestCommonSubsequence=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=pi(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],f=u[1];a>0&&(l=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(l,f)}var s=Array.prototype.concat.apply([],o);return Math.max.apply(Math,s)},e.calLongestCommonSubstring=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");for(var n=e.length,r=t.length,o=pi(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=di,e.camelCaseToKebabCase=function(e){void 0===e&&(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 void 0===e&&(e=""),e.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,"")},e.cutCHSString=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=e.length),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=mi()-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=[],f=0;f<arguments.length;f++)l[f]=arguments[f];r=this,a=l,i=mi();var s=n&&!o;return o||(o=setTimeout(u,t)),s&&(c=e.apply(r,a),r=a=null),c}},e.deepCopyObject=pi,e.doFn=hi,e.floatFixed=function(e,t){return void 0===t&&(t=0),parseFloat(e).toFixed(t)},e.floatToPercent=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),(t?(100*e).toFixed(t):String(Math.floor(100*e)))+"%"},e.friendlyInterval=function(e){var t=void 0===e?{}:e,n=t.start,r=void 0===n?0:n,o=t.end,i=void 0===o?0:o,a=t.type,c=void 0===a?"d":a;gi(r)||(r=new Date(r).getTime()),gi(i)||(i=new Date(i).getTime());var u=i-r,l=null,f=new Array(4).fill(0),s=f[0],d=(f[1],f[2],f[3]);if(u>=0)switch(s=Math.floor(u/1e3/60/60/24),Math.floor(u/1e3/60/60),Math.floor(u/1e3/60),d=Math.floor(u/1e3),c){case"d":l=s;break;case"text":l=(s=Math.floor(u/1e3/60/60/24))+" 天 "+Math.floor(u/1e3/60/60%24)+" 时 "+Math.floor(u/1e3/60%60)+" 分 "+(d=Math.floor(u/1e3%60))+" 秒";break;default:l=d}return l},e.genCustomConsole=function(e){var t=(void 0===e?{}:e).prefix,n=void 0===t?"":t,r=Object.create(null);return["log","info","warn","error"].forEach((function(e){r[e]=function(){for(var t,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n?(t=console)[e].apply(t,si([n],o)):(r=console)[e].apply(r,o)}})),r},e.generateRndNum=vi,e.generateUniqueNum=function(e){void 0===e&&(e=3);var t=[mi(),vi(e||3)];return t[0]+t[1]},e.getBrowserInfo=wi,e.getCookie=yi,e.getDomain=function(e,t){void 0===e&&(e=""),void 0===t&&(t=["hostname"]);var n=document.createElement("a");return n.href=e,t.reduce((function(e,t){return e+=n[t]}),"")},e.getHashQueryParam=function(e){void 0===e&&(e="");var t=location.hash.split("?");if(1===t.length)return"";var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=t[1].match(n);return r?r[2]:""},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,r,o,i=(void 0===e?{}:e).camelCase,a=void 0===i||i,c=new Promise((function(e,r){var o;t=(o=[e,r])[0],n=o[1]})),u=window.performance.timing,l=u.navigationStart||u.fetchStart;function f(){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 e,i=(window.performance.getEntries()||[])[0]||{},c={os:s(),osVersion:d(),deviceType:p(),network:v(),screenDirection:g(),unloadTime:u.unloadEventEnd-u.unloadEventStart,redirectTime:u.redirectEnd-u.redirectStart,dnsTime:u.domainLookupEnd-u.domainLookupStart,tcpTime:u.connectEnd-u.connectStart,sslTime:h(u.connectEnd,u.secureConnectionStart),responseTime:u.responseStart-u.requestStart,downloadTime:u.responseEnd-u.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:u.domContentLoadedEventStart-l||0,onloadTime:u.loadEventStart-l||0,whiteTime:u.responseStart-l,renderTime:u.loadEventEnd-l||0,decodedBodySize:i.decodedBodySize||"",encodedBodySize:i.encodedBodySize||""};if(Object.keys(c).forEach((function(e){gi(c[e])&&c[e]<0&&(c[e]=0)})),gi(c.whiteTime)&&c.whiteTime>c.onloadTime&&(c.whiteTime=0),l>0)a||Object.keys(c).forEach((function(t){e||(e={}),e[di(t)]=c[t]})),t(e||c);else n("startTime")}else n("getEntries")}function s(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function d(){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 p(){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 v(){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 g(){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 h(e,t){var n;return t&&(n=e-t),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?f():window.addEventListener("load",(function(){window.setTimeout((function(){f()}),0)})),c},e.getQueryParam=function(e){void 0===e&&(e="");var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=location.search.substr(1).match(t);return null!==n?decodeURIComponent(unescape(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){void 0===e&&(e=""),void 0===t&&(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){void 0===e&&(e="");try{if("object"===fi(JSON.parse(e)))return!0}catch(e){}return!1},e.isNumber=gi,e.isSafePWAEnv=function(){var e=wi();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.loadCSS=function(e){var t=void 0===e?{}:e,n=t.url,r=void 0===n?"":n,o=t.id,i=void 0===o?"":o,a=null,c=new Promise((function(e,t){var n;a=(n=[e,t])[0],n[1]})),u=function(){hi(a,!0)},l=document.createElement("link"),f="onload"in l,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(l.rel="stylesheet",l.type="text/css",l.href=r,void 0!==i&&(l.id=i),document.getElementsByTagName("head")[0].appendChild(l),s||!f)return setTimeout((function(){p(l,u,0)}),1),c;function d(){l.onload=l.onerror=l.onreadystatechange=null,l=null,u()}function p(e,t,n){var r,o=e.sheet;if((n+=1)>3e5)return r=!0,e=null,void t();if(s)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():p(e,t,n)}),20)}return f?(l.onload=d,l.onerror=function(){d()}):l.onreadystatechange=function(){/loaded|complete/.test(l.readyState)&&d()},c},e.loadScript=function(e){var t=void 0===e?{}:e,n=t.url,r=void 0===n?"":n,o=t.id,i=void 0===o?"":o,a=t.callback,c=void 0===a?function(){}:a,u=t.timeout,l=void 0===u?5e3:u,f=t.isDefer,s=void 0!==f&&f,d=null,p=null,v=document.createElement("script"),g=document.getElementsByTagName("script")[0];return v.type="text/javascript",s&&(v.defer="defer"),i&&(v.id=i),v.readyState?v.onreadystatechange=function(){"loaded"!==v.readyState&&"complete"!==v.readyState||(v.onreadystatechange=null,hi(c),hi(d,!0))}:v.onload=function(){hi(c),hi(d,!0)},v.src=r,g&&g.parentNode.insertBefore(v,g),new Promise((function(e,t){var n;d=(n=[e,t])[0],p=n[1],l&&setTimeout(p.bind(null,"timeout"),l)}))},e.mNow=mi,e.mTrim=function(e){void 0===e&&(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(void 0===e&&(e=""),!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!==yi(e)&&yi(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){var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1];n||(n={});var l=function(){u=!1===n.leading?0:mi(),i=null,c=e.apply(r,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var s=mi();u||!1!==n.leading||(u=s);var d=t-(s-u);return r=this,o=a,d<=0||d>t?(i&&(clearTimeout(i),i=null),u=s,c=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,d)),c}},e.updateQueryParam=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(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){var t=(void 0===e?{}:e).timeout,n=void 0===t?90:t,r=function(){},o=function(){},i=new Promise((function(e,t){r=e,o=t}));return"complete"===document.readyState?r("complete"):window.addEventListener("load",(function(){return r("load")})),setTimeout((function(){return o("timeout")}),1e3*n),i},e}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Mazey's library for front end.",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
@@ -14,6 +14,7 @@
14
14
  "build": "npx rollup -c",
15
15
  "test": "jest",
16
16
  "docs": "npx typedoc --out docs/ src/",
17
+ "preview": "npm run build && npm run test && npm run docs",
17
18
  "release": "npm run build && npm publish",
18
19
  "lint-and-fix": "eslint ./src/index.ts --ext 'ts,tsx' --fix"
19
20
  },
@@ -27,7 +28,7 @@
27
28
  "Math",
28
29
  "Load"
29
30
  ],
30
- "author": "MazeyQian",
31
+ "author": "Mazey Chu",
31
32
  "license": "MIT",
32
33
  "bugs": {
33
34
  "url": "https://github.com/mazeyqian/mazey/issues"
@@ -40,11 +41,10 @@
40
41
  "@babel/plugin-transform-runtime": "7.11.0",
41
42
  "@babel/preset-env": "7.5.5",
42
43
  "@babel/preset-typescript": "7.10.4",
43
- "@commitlint/cli": "8.3.5",
44
- "@commitlint/config-conventional": "8.3.4",
44
+ "@commitlint/cli": "^8.3.5",
45
+ "@commitlint/config-conventional": "^8.3.4",
45
46
  "@typescript-eslint/eslint-plugin": "^4.22.0",
46
47
  "@typescript-eslint/parser": "^4.22.0",
47
- "babel-eslint": "10.1.0",
48
48
  "clean-webpack-plugin": "1.0.1",
49
49
  "eslint": "6.8.0",
50
50
  "eslint-config-standard": "14.1.0",
@@ -53,22 +53,20 @@
53
53
  "eslint-plugin-promise": "4.2.1",
54
54
  "eslint-plugin-standard": "4.0.1",
55
55
  "html-webpack-plugin": "3.2.0",
56
- "http-server": "0.11.1",
57
- "husky": "4.2.3",
56
+ "husky": "4.3.8",
58
57
  "jest": "^27.5.1",
59
- "jsdoc": "3.6.3",
60
58
  "lint-staged": "10.0.8",
61
59
  "prettier": "1.19.1",
62
60
  "prettier-eslint-cli": "5.0.0",
63
- "rollup": "1.31.1",
64
- "rollup-plugin-babel": "4.3.3",
61
+ "rollup": "^1.31.1",
62
+ "rollup-plugin-babel": "^4.3.3",
63
+ "rollup-plugin-cleaner": "^1.0.0",
65
64
  "rollup-plugin-commonjs": "^10.1.0",
66
- "rollup-plugin-typescript2": "0.27.2",
65
+ "rollup-plugin-terser": "^7.0.2",
66
+ "rollup-plugin-typescript2": "^0.27.2",
67
67
  "ts-loader": "8.0.2",
68
68
  "typedoc": "0.18.0",
69
69
  "typescript": "3.9.7",
70
- "uglify-js": "3.4.7",
71
- "uglifycss": "0.0.29",
72
70
  "webpack": "4.30.0",
73
71
  "webpack-cli": "3.3.2",
74
72
  "webpack-dev-server": "3.10.3"
@@ -80,7 +78,7 @@
80
78
  }
81
79
  },
82
80
  "dependencies": {
83
- "@babel/runtime-corejs3": "7.11.2",
84
- "core-js": "3.6.5"
81
+ "@babel/runtime-corejs3": "^7.11.2",
82
+ "core-js": "^3.6.5"
85
83
  }
86
84
  }