UNPKG

fightwb-tool

Version:

一个javascript工具库,提供了大部分日常开发中所需要的工具方法

2 lines (1 loc) 38.6 kB
var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var n,e,u,i,o,f,c,a,s,l,v,p,y,g,h,d,m={};function b(){if(e)return n;e=1;var t=function(r){return r&&r.Math===Math&&r};return n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof r&&r)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}function S(){return i?u:(i=1,u=function(r){try{return!!r()}catch(r){return!0}})}function w(){return f?o:(f=1,o=!S()((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})))}function O(){if(a)return c;a=1;var r=w(),t=Function.prototype,n=t.apply,e=t.call;return c="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),c}function j(){if(l)return s;l=1;var r=w(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return s=r?e:function(r){return function(){return n.apply(r,arguments)}},s}function P(){if(p)return v;p=1;var r=j(),t=r({}.toString),n=r("".slice);return v=function(r){return n(t(r),8,-1)}}function T(){if(g)return y;g=1;var r=P(),t=j();return y=function(n){if("Function"===r(n))return t(n)}}function A(){if(d)return h;d=1;var r="object"==typeof document&&document.all;return h=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}var E,I,x,F,D={};function L(){return I?E:(I=1,E=!S()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function N(){if(F)return x;F=1;var r=w(),t=Function.prototype.call;return x=r?t.bind(t):function(){return t.apply(t,arguments)},x}var C,M,R,_,k,G,J,U,W,z,V,$,B,H,K,Y,q,X,Z,Q,rr,tr,nr,er,ur,ir,or,fr,cr,ar,sr,lr,vr,pr,yr,gr,hr,dr={};function mr(){if(C)return dr;C=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return dr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,dr}function br(){return R?M:(R=1,M=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function Sr(){if(k)return _;k=1;var r=j(),t=S(),n=P(),e=Object,u=r("".split);return _=t((function(){return!e("z").propertyIsEnumerable(0)}))?function(r){return"String"===n(r)?u(r,""):e(r)}:e}function wr(){return J?G:(J=1,G=function(r){return null==r})}function Or(){if(W)return U;W=1;var r=wr(),t=TypeError;return U=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function jr(){if(V)return z;V=1;var r=Sr(),t=Or();return z=function(n){return r(t(n))}}function Pr(){if(B)return $;B=1;var r=A();return $=function(t){return"object"==typeof t?null!==t:r(t)}}function Tr(){return K?H:(K=1,H={})}function Ar(){if(q)return Y;q=1;var r=Tr(),t=b(),n=A(),e=function(r){return n(r)?r:void 0};return Y=function(n,u){return arguments.length<2?e(r[n])||e(t[n]):r[n]&&r[n][u]||t[n]&&t[n][u]},Y}function Er(){return Z?X:(Z=1,X=j()({}.isPrototypeOf))}function Ir(){if(rr)return Q;rr=1;var r=b().navigator,t=r&&r.userAgent;return Q=t?String(t):""}function xr(){if(nr)return tr;nr=1;var r,t,n=b(),e=Ir(),u=n.process,i=n.Deno,o=u&&u.versions||i&&i.version,f=o&&o.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),tr=t}function Fr(){if(ur)return er;ur=1;var r=xr(),t=S(),n=b().String;return er=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})),er}function Dr(){return or?ir:(or=1,ir=Fr()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Lr(){if(cr)return fr;cr=1;var r=Ar(),t=A(),n=Er(),e=Object;return fr=Dr()?function(r){return"symbol"==typeof r}:function(u){var i=r("Symbol");return t(i)&&n(i.prototype,e(u))}}function Nr(){if(sr)return ar;sr=1;var r=String;return ar=function(t){try{return r(t)}catch(r){return"Object"}}}function Cr(){if(vr)return lr;vr=1;var r=A(),t=Nr(),n=TypeError;return lr=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Mr(){if(yr)return pr;yr=1;var r=Cr(),t=wr();return pr=function(n,e){var u=n[e];return t(u)?void 0:r(u)}}function Rr(){if(hr)return gr;hr=1;var r=N(),t=A(),n=Pr(),e=TypeError;return gr=function(u,i){var o,f;if("string"===i&&t(o=u.toString)&&!n(f=r(o,u)))return f;if(t(o=u.valueOf)&&!n(f=r(o,u)))return f;if("string"!==i&&t(o=u.toString)&&!n(f=r(o,u)))return f;throw new e("Can't convert object to primitive value")}}var _r,kr,Gr,Jr,Ur,Wr,zr,Vr,$r,Br,Hr,Kr,Yr,qr,Xr,Zr,Qr,rt,tt,nt,et,ut,it,ot,ft,ct,at,st,lt={exports:{}};function vt(){return kr?_r:(kr=1,_r=!0)}function pt(){if(Jr)return Gr;Jr=1;var r=b(),t=Object.defineProperty;return Gr=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function yt(){if(Ur)return lt.exports;Ur=1;var r=vt(),t=b(),n=pt(),e="__core-js_shared__",u=lt.exports=t[e]||n(e,{});return(u.versions||(u.versions=[])).push({version:"3.43.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),lt.exports}function gt(){if(zr)return Wr;zr=1;var r=yt();return Wr=function(t,n){return r[t]||(r[t]=n||{})}}function ht(){if($r)return Vr;$r=1;var r=Or(),t=Object;return Vr=function(n){return t(r(n))}}function dt(){if(Hr)return Br;Hr=1;var r=j(),t=ht(),n=r({}.hasOwnProperty);return Br=Object.hasOwn||function(r,e){return n(t(r),e)}}function mt(){if(Yr)return Kr;Yr=1;var r=j(),t=0,n=Math.random(),e=r(1.1.toString);return Kr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function bt(){if(Xr)return qr;Xr=1;var r=b(),t=gt(),n=dt(),e=mt(),u=Fr(),i=Dr(),o=r.Symbol,f=t("wks"),c=i?o.for||o:o&&o.withoutSetter||e;return qr=function(r){return n(f,r)||(f[r]=u&&n(o,r)?o[r]:c("Symbol."+r)),f[r]}}function St(){if(Qr)return Zr;Qr=1;var r=N(),t=Pr(),n=Lr(),e=Mr(),u=Rr(),i=TypeError,o=bt()("toPrimitive");return Zr=function(f,c){if(!t(f)||n(f))return f;var a,s=e(f,o);if(s){if(void 0===c&&(c="default"),a=r(s,f,c),!t(a)||n(a))return a;throw new i("Can't convert object to primitive value")}return void 0===c&&(c="number"),u(f,c)}}function wt(){if(tt)return rt;tt=1;var r=St(),t=Lr();return rt=function(n){var e=r(n,"string");return t(e)?e:e+""}}function Ot(){if(et)return nt;et=1;var r=b(),t=Pr(),n=r.document,e=t(n)&&t(n.createElement);return nt=function(r){return e?n.createElement(r):{}}}function jt(){if(it)return ut;it=1;var r=L(),t=S(),n=Ot();return ut=!r&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Pt(){if(ot)return D;ot=1;var r=L(),t=N(),n=mr(),e=br(),u=jr(),i=wt(),o=dt(),f=jt(),c=Object.getOwnPropertyDescriptor;return D.f=r?c:function(r,a){if(r=u(r),a=i(a),f)try{return c(r,a)}catch(r){}if(o(r,a))return e(!t(n.f,r,a),r[a])},D}function Tt(){if(ct)return ft;ct=1;var r=S(),t=A(),n=/#|\.prototype\./,e=function(n,e){var c=i[u(n)];return c===f||c!==o&&(t(e)?r(e):!!e)},u=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},o=e.NATIVE="N",f=e.POLYFILL="P";return ft=e}function At(){if(st)return at;st=1;var r=T(),t=Cr(),n=w(),e=r(r.bind);return at=function(r,u){return t(r),void 0===u?r:n?e(r,u):function(){return r.apply(u,arguments)}},at}var Et,It,xt,Ft,Dt,Lt,Nt,Ct,Mt,Rt,_t,kt,Gt,Jt,Ut,Wt,zt,Vt,$t,Bt,Ht,Kt,Yt,qt,Xt,Zt,Qt,rn,tn,nn,en,un,on,fn,cn,an,sn,ln,vn={};function pn(){return It?Et:(It=1,Et=L()&&S()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function yn(){if(Ft)return xt;Ft=1;var r=Pr(),t=String,n=TypeError;return xt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function gn(){if(Dt)return vn;Dt=1;var r=L(),t=jt(),n=pn(),e=yn(),u=wt(),i=TypeError,o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return vn.f=r?n?function(r,t,n){if(e(r),t=u(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var i=f(r,t);i&&i[s]&&(r[t]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:c in n?n[c]:i[c],writable:!1})}return o(r,t,n)}:o:function(r,n,f){if(e(r),n=u(n),e(f),t)try{return o(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(r[n]=f.value),r},vn}function hn(){if(Nt)return Lt;Nt=1;var r=L(),t=gn(),n=br();return Lt=r?function(r,e,u){return t.f(r,e,n(1,u))}:function(r,t,n){return r[t]=n,r}}function dn(){if(Mt)return Ct;Mt=1;var r=b(),t=O(),n=T(),e=A(),u=Pt().f,i=Tt(),o=Tr(),f=At(),c=hn(),a=dt(),s=function(r){var n=function(e,u,i){if(this instanceof n){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,u)}return new r(e,u,i)}return t(r,this,arguments)};return n.prototype=r.prototype,n};return Ct=function(t,l){var v,p,y,g,h,d,m,b,S,w=t.target,O=t.global,j=t.stat,P=t.proto,T=O?r:j?r[w]:r[w]&&r[w].prototype,A=O?o:o[w]||c(o,w,{})[w],E=A.prototype;for(g in l)p=!(v=i(O?g:w+(j?".":"#")+g,t.forced))&&T&&a(T,g),d=A[g],p&&(m=t.dontCallGetSet?(S=u(T,g))&&S.value:T[g]),h=p&&m?m:l[g],(v||P||typeof d!=typeof h)&&(b=t.bind&&p?f(h,r):t.wrap&&p?s(h):P&&e(h)?n(h):h,(t.sham||h&&h.sham||d&&d.sham)&&c(b,"sham",!0),c(A,g,b),P&&(a(o,y=w+"Prototype")||c(o,y,{}),c(o[y],g,h),t.real&&E&&(v||!E[g])&&c(E,g,h)))}}function mn(){if(_t)return Rt;_t=1;var r=P();return Rt=Array.isArray||function(t){return"Array"===r(t)}}function bn(){if(Gt)return kt;Gt=1;var r=Math.ceil,t=Math.floor;return kt=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}function Sn(){if(Ut)return Jt;Ut=1;var r=bn();return Jt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function wn(){if(zt)return Wt;zt=1;var r=Sn(),t=Math.min;return Wt=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function On(){if($t)return Vt;$t=1;var r=wn();return Vt=function(t){return r(t.length)}}function jn(){if(Ht)return Bt;Ht=1;var r=TypeError;return Bt=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}}function Pn(){if(Yt)return Kt;Yt=1;var r=L(),t=gn(),n=br();return Kt=function(e,u,i){r?t.f(e,u,n(0,i)):e[u]=i}}function Tn(){if(Xt)return qt;Xt=1;var r={};return r[bt()("toStringTag")]="z",qt="[object z]"===String(r)}function An(){if(Qt)return Zt;Qt=1;var r=Tn(),t=A(),n=P(),e=bt()("toStringTag"),u=Object,i="Arguments"===n(function(){return arguments}());return Zt=r?n:function(r){var o,f,c;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(o=u(r),e))?f:i?n(o):"Object"===(c=n(o))&&t(o.callee)?"Arguments":c}}function En(){if(tn)return rn;tn=1;var r=j(),t=A(),n=yt(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),rn=n.inspectSource}function In(){if(en)return nn;en=1;var r=j(),t=S(),n=A(),e=An(),u=Ar(),i=En(),o=function(){},f=u("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=r(c.exec),s=!c.test(o),l=function(r){if(!n(r))return!1;try{return f(o,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,i(r))}catch(r){return!0}};return v.sham=!0,nn=!f||t((function(){var r;return l(l.call)||!l(Object)||!l((function(){r=!0}))||r}))?v:l}function xn(){if(on)return un;on=1;var r=mn(),t=In(),n=Pr(),e=bt()("species"),u=Array;return un=function(i){var o;return r(i)&&(o=i.constructor,(t(o)&&(o===u||r(o.prototype))||n(o)&&null===(o=o[e]))&&(o=void 0)),void 0===o?u:o}}function Fn(){if(cn)return fn;cn=1;var r=xn();return fn=function(t,n){return new(r(t))(0===n?0:n)}}function Dn(){if(sn)return an;sn=1;var r=S(),t=bt(),n=xr(),e=t("species");return an=function(t){return n>=51||!r((function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}}var Ln,Nn,Cn={},Mn={};function Rn(){if(Nn)return Ln;Nn=1;var r=An(),t=String;return Ln=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var _n,kn,Gn,Jn,Un,Wn,zn,Vn,$n,Bn,Hn,Kn,Yn,qn,Xn,Zn,Qn,re,te,ne={};function ee(){if(kn)return _n;kn=1;var r=Sn(),t=Math.max,n=Math.min;return _n=function(e,u){var i=r(e);return i<0?t(i+u,0):n(i,u)}}function ue(){if(Jn)return Gn;Jn=1;var r=jr(),t=ee(),n=On(),e=function(e){return function(u,i,o){var f=r(u),c=n(f);if(0===c)return!e&&-1;var a,s=t(o,c);if(e&&i!=i){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===i)return e||s||0;return!e&&-1}};return Gn={includes:e(!0),indexOf:e(!1)}}function ie(){return Wn?Un:(Wn=1,Un={})}function oe(){if(Vn)return zn;Vn=1;var r=j(),t=dt(),n=jr(),e=ue().indexOf,u=ie(),i=r([].push);return zn=function(r,o){var f,c=n(r),a=0,s=[];for(f in c)!t(u,f)&&t(c,f)&&i(s,f);for(;o.length>a;)t(c,f=o[a++])&&(~e(s,f)||i(s,f));return s}}function fe(){return Bn?$n:(Bn=1,$n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function ce(){if(Kn)return Hn;Kn=1;var r=oe(),t=fe();return Hn=Object.keys||function(n){return r(n,t)}}function ae(){if(Yn)return ne;Yn=1;var r=L(),t=pn(),n=gn(),e=yn(),u=jr(),i=ce();return ne.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var o,f=u(t),c=i(t),a=c.length,s=0;a>s;)n.f(r,o=c[s++],f[o]);return r},ne}function se(){return Xn?qn:(Xn=1,qn=Ar()("document","documentElement"))}function le(){if(Qn)return Zn;Qn=1;var r=gt(),t=mt(),n=r("keys");return Zn=function(r){return n[r]||(n[r]=t(r))}}function ve(){if(te)return re;te=1;var r,t=yn(),n=ae(),e=fe(),u=ie(),i=se(),o=Ot(),f="prototype",c="script",a=le()("IE_PROTO"),s=function(){},l=function(r){return"<"+c+">"+r+"</"+c+">"},v=function(r){r.write(l("")),r.close();var t=r.parentWindow.Object;return r=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,u;p="undefined"!=typeof document?document.domain&&r?v(r):(n=o("iframe"),u="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(u),(t=n.contentWindow.document).open(),t.write(l("document.F=Object")),t.close(),t.F):v(r);for(var a=e.length;a--;)delete p[f][e[a]];return p()};return u[a]=!0,re=Object.create||function(r,e){var u;return null!==r?(s[f]=t(r),u=new s,s[f]=null,u[a]=r):u=p(),void 0===e?u:n.f(u,e)}}var pe,ye={};function ge(){if(pe)return ye;pe=1;var r=oe(),t=fe().concat("length","prototype");return ye.f=Object.getOwnPropertyNames||function(n){return r(n,t)},ye}var he,de,me,be={};function Se(){return de?he:(de=1,he=j()([].slice))}function we(){if(me)return be;me=1;var r=P(),t=jr(),n=ge().f,e=Se(),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return be.f=function(i){return u&&"Window"===r(i)?function(r){try{return n(r)}catch(r){return e(u)}}(i):n(t(i))},be}var Oe,je,Pe,Te,Ae,Ee={};function Ie(){return Oe||(Oe=1,Ee.f=Object.getOwnPropertySymbols),Ee}function xe(){if(Pe)return je;Pe=1;var r=hn();return je=function(t,n,e,u){return u&&u.enumerable?t[n]=e:r(t,n,e),t}}function Fe(){if(Ae)return Te;Ae=1;var r=gn();return Te=function(t,n,e){return r.f(t,n,e)}}var De,Le,Ne,Ce,Me,Re,_e,ke,Ge,Je,Ue,We,ze,Ve,$e,Be,He={};function Ke(){if(De)return He;De=1;var r=bt();return He.f=r,He}function Ye(){if(Ne)return Le;Ne=1;var r=Tr(),t=dt(),n=Ke(),e=gn().f;return Le=function(u){var i=r.Symbol||(r.Symbol={});t(i,u)||e(i,u,{value:n.f(u)})}}function qe(){if(Me)return Ce;Me=1;var r=N(),t=Ar(),n=bt(),e=xe();return Ce=function(){var u=t("Symbol"),i=u&&u.prototype,o=i&&i.valueOf,f=n("toPrimitive");i&&!i[f]&&e(i,f,(function(t){return r(o,this)}),{arity:1})}}function Xe(){if(_e)return Re;_e=1;var r=Tn(),t=An();return Re=r?{}.toString:function(){return"[object "+t(this)+"]"}}function Ze(){if(Ge)return ke;Ge=1;var r=Tn(),t=gn().f,n=hn(),e=dt(),u=Xe(),i=bt()("toStringTag");return ke=function(o,f,c,a){var s=c?o:o&&o.prototype;s&&(e(s,i)||t(s,i,{configurable:!0,value:f}),a&&!r&&n(s,"toString",u))}}function Qe(){if(Ue)return Je;Ue=1;var r=b(),t=A(),n=r.WeakMap;return Je=t(n)&&/native code/.test(String(n))}function ru(){if(ze)return We;ze=1;var r,t,n,e=Qe(),u=b(),i=Pr(),o=hn(),f=dt(),c=yt(),a=le(),s=ie(),l="Object already initialized",v=u.TypeError,p=u.WeakMap;if(e||c.state){var y=c.state||(c.state=new p);y.get=y.get,y.has=y.has,y.set=y.set,r=function(r,t){if(y.has(r))throw new v(l);return t.facade=r,y.set(r,t),t},t=function(r){return y.get(r)||{}},n=function(r){return y.has(r)}}else{var g=a("state");s[g]=!0,r=function(r,t){if(f(r,g))throw new v(l);return t.facade=r,o(r,g,t),t},t=function(r){return f(r,g)?r[g]:{}},n=function(r){return f(r,g)}}return We={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}}function tu(){if($e)return Ve;$e=1;var r=At(),t=j(),n=Sr(),e=ht(),u=On(),i=Fn(),o=t([].push),f=function(t){var f=1===t,c=2===t,a=3===t,s=4===t,l=6===t,v=7===t,p=5===t||l;return function(y,g,h,d){for(var m,b,S=e(y),w=n(S),O=u(w),j=r(g,h),P=0,T=d||i,A=f?T(y,O):c||v?T(y,0):void 0;O>P;P++)if((p||P in w)&&(b=j(m=w[P],P,S),t))if(f)A[P]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return P;case 2:o(A,m)}else switch(t){case 4:return!1;case 7:o(A,m)}return l?-1:a||s?s:A}};return Ve={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}}var nu,eu,uu,iu={};function ou(){return eu?nu:(eu=1,nu=Fr()&&!!Symbol.for&&!!Symbol.keyFor)}var fu,cu={};var au,su,lu,vu={};function pu(){if(su)return au;su=1;var r=j(),t=mn(),n=A(),e=P(),u=Rn(),i=r([].push);return au=function(r){if(n(r))return r;if(t(r)){for(var o=r.length,f=[],c=0;c<o;c++){var a=r[c];"string"==typeof a?i(f,a):"number"!=typeof a&&"Number"!==e(a)&&"String"!==e(a)||i(f,u(a))}var s=f.length,l=!0;return function(r,n){if(l)return l=!1,n;if(t(this))return n;for(var e=0;e<s;e++)if(f[e]===r)return n}}}}function yu(){if(lu)return vu;lu=1;var r=dn(),t=Ar(),n=O(),e=N(),u=j(),i=S(),o=A(),f=Lr(),c=Se(),a=pu(),s=Fr(),l=String,v=t("JSON","stringify"),p=u(/./.exec),y=u("".charAt),g=u("".charCodeAt),h=u("".replace),d=u(1.1.toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,P=!s||i((function(){var r=t("Symbol")("stringify detection");return"[null]"!==v([r])||"{}"!==v({a:r})||"{}"!==v(Object(r))})),T=i((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(r,t){var u=c(arguments),i=a(t);if(o(i)||void 0!==r&&!f(r))return u[1]=function(r,t){if(o(i)&&(t=e(i,this,l(r),t)),!f(t))return t},n(v,null,u)},I=function(r,t,n){var e=y(n,t-1),u=y(n,t+1);return p(b,r)&&!p(w,u)||p(w,r)&&!p(b,e)?"\\u"+d(g(r,0),16):r};return v&&r({target:"JSON",stat:!0,arity:3,forced:P||T},{stringify:function(r,t,e){var u=c(arguments),i=n(P?E:v,null,u);return T&&"string"==typeof i?h(i,m,I):i}}),vu}var gu,hu,du={};function mu(){return hu||(hu=1,function(){if(Be)return Mn;Be=1;var r=dn(),t=b(),n=N(),e=j(),u=vt(),i=L(),o=Fr(),f=S(),c=dt(),a=Er(),s=yn(),l=jr(),v=wt(),p=Rn(),y=br(),g=ve(),h=ce(),d=ge(),m=we(),w=Ie(),O=Pt(),P=gn(),T=ae(),A=mr(),E=xe(),I=Fe(),x=gt(),F=le(),D=ie(),C=mt(),M=bt(),R=Ke(),_=Ye(),k=qe(),G=Ze(),J=ru(),U=tu().forEach,W=F("hidden"),z="Symbol",V="prototype",$=J.set,B=J.getterFor(z),H=Object[V],K=t.Symbol,Y=K&&K[V],q=t.RangeError,X=t.TypeError,Z=t.QObject,Q=O.f,rr=P.f,tr=m.f,nr=A.f,er=e([].push),ur=x("symbols"),ir=x("op-symbols"),or=x("wks"),fr=!Z||!Z[V]||!Z[V].findChild,cr=function(r,t,n){var e=Q(H,t);e&&delete H[t],rr(r,t,n),e&&r!==H&&rr(H,t,e)},ar=i&&f((function(){return 7!==g(rr({},"a",{get:function(){return rr(this,"a",{value:7}).a}})).a}))?cr:rr,sr=function(r,t){var n=ur[r]=g(Y);return $(n,{type:z,tag:r,description:t}),i||(n.description=t),n},lr=function(r,t,n){r===H&&lr(ir,t,n),s(r);var e=v(t);return s(n),c(ur,e)?(n.enumerable?(c(r,W)&&r[W][e]&&(r[W][e]=!1),n=g(n,{enumerable:y(0,!1)})):(c(r,W)||rr(r,W,y(1,g(null))),r[W][e]=!0),ar(r,e,n)):rr(r,e,n)},vr=function(r,t){s(r);var e=l(t),u=h(e).concat(hr(e));return U(u,(function(t){i&&!n(pr,e,t)||lr(r,t,e[t])})),r},pr=function(r){var t=v(r),e=n(nr,this,t);return!(this===H&&c(ur,t)&&!c(ir,t))&&(!(e||!c(this,t)||!c(ur,t)||c(this,W)&&this[W][t])||e)},yr=function(r,t){var n=l(r),e=v(t);if(n!==H||!c(ur,e)||c(ir,e)){var u=Q(n,e);return!u||!c(ur,e)||c(n,W)&&n[W][e]||(u.enumerable=!0),u}},gr=function(r){var t=tr(l(r)),n=[];return U(t,(function(r){c(ur,r)||c(D,r)||er(n,r)})),n},hr=function(r){var t=r===H,n=tr(t?ir:l(r)),e=[];return U(n,(function(r){!c(ur,r)||t&&!c(H,r)||er(e,ur[r])})),e};o||(K=function(){if(a(Y,this))throw new X("Symbol is not a constructor");var r=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,e=C(r),u=function(r){var i=void 0===this?t:this;i===H&&n(u,ir,r),c(i,W)&&c(i[W],e)&&(i[W][e]=!1);var o=y(1,r);try{ar(i,e,o)}catch(r){if(!(r instanceof q))throw r;cr(i,e,o)}};return i&&fr&&ar(H,e,{configurable:!0,set:u}),sr(e,r)},E(Y=K[V],"toString",(function(){return B(this).tag})),E(K,"withoutSetter",(function(r){return sr(C(r),r)})),A.f=pr,P.f=lr,T.f=vr,O.f=yr,d.f=m.f=gr,w.f=hr,R.f=function(r){return sr(M(r),r)},i&&(I(Y,"description",{configurable:!0,get:function(){return B(this).description}}),u||E(H,"propertyIsEnumerable",pr,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:K}),U(h(or),(function(r){_(r)})),r({target:z,stat:!0,forced:!o},{useSetter:function(){fr=!0},useSimple:function(){fr=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!i},{create:function(r,t){return void 0===t?g(r):vr(g(r),t)},defineProperty:lr,defineProperties:vr,getOwnPropertyDescriptor:yr}),r({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:gr}),k(),G(K,z),D[W]=!0}(),function(){if(uu)return iu;uu=1;var r=dn(),t=Ar(),n=dt(),e=Rn(),u=gt(),i=ou(),o=u("string-to-symbol-registry"),f=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!i},{for:function(r){var u=e(r);if(n(o,u))return o[u];var i=t("Symbol")(u);return o[u]=i,f[i]=u,i}})}(),function(){if(fu)return cu;fu=1;var r=dn(),t=dt(),n=Lr(),e=Nr(),u=gt(),i=ou(),o=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!i},{keyFor:function(r){if(!n(r))throw new TypeError(e(r)+" is not a symbol");if(t(o,r))return o[r]}})}(),yu(),function(){if(gu)return du;gu=1;var r=dn(),t=Fr(),n=S(),e=Ie(),u=ht();r({target:"Object",stat:!0,forced:!t||n((function(){e.f(1)}))},{getOwnPropertySymbols:function(r){var t=e.f;return t?t(u(r)):[]}})}()),Cn}var bu,Su={};function wu(){return bu||(bu=1,Ye()("asyncDispose")),Su}var Ou;var ju,Pu={};function Tu(){return ju||(ju=1,Ye()("dispose")),Pu}var Au;var Eu;var Iu,xu={};function Fu(){return Iu||(Iu=1,Ye()("iterator")),xu}var Du;var Lu;var Nu;var Cu;var Mu;var Ru;var _u,ku={};var Gu,Ju={};var Uu;var Wu,zu,Vu,$u={};function Bu(){return Vu?zu:(Vu=1,function(){if(ln)return m;ln=1;var r=dn(),t=S(),n=mn(),e=Pr(),u=ht(),i=On(),o=jn(),f=Pn(),c=Fn(),a=Dn(),s=bt(),l=xr(),v=s("isConcatSpreadable"),p=l>=51||!t((function(){var r=[];return r[v]=!1,r.concat()[0]!==r})),y=function(r){if(!e(r))return!1;var t=r[v];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!p||!a("concat")},{concat:function(r){var t,n,e,a,s,l=u(this),v=c(l,0),p=0;for(t=-1,e=arguments.length;t<e;t++)if(y(s=-1===t?l:arguments[t]))for(a=i(s),o(p+a),n=0;n<a;n++,p++)n in s&&f(v,p,s[n]);else o(p+1),f(v,p++,s);return v.length=p,v}})}(),mu(),wu(),Ou||(Ou=1,Ye()("asyncIterator")),Tu(),Au||(Au=1,Ye()("hasInstance")),Eu||(Eu=1,Ye()("isConcatSpreadable")),Fu(),Du||(Du=1,Ye()("match")),Lu||(Lu=1,Ye()("matchAll")),Nu||(Nu=1,Ye()("replace")),Cu||(Cu=1,Ye()("search")),Mu||(Mu=1,Ye()("species")),Ru||(Ru=1,Ye()("split")),function(){if(_u)return ku;_u=1;var r=Ye(),t=qe();r("toPrimitive"),t()}(),function(){if(Gu)return Ju;Gu=1;var r=Ar(),t=Ye(),n=Ze();t("toStringTag"),n(r("Symbol"),"Symbol")}(),Uu||(Uu=1,Ye()("unscopables")),function(){if(Wu)return $u;Wu=1;var r=b();Ze()(r.JSON,"JSON",!0)}(),zu=Tr().Symbol)}var Hu,Ku,Yu,qu,Xu,Zu,Qu,ri,ti,ni,ei,ui,ii,oi,fi,ci,ai,si,li,vi,pi,yi,gi,hi,di,mi,bi,Si,wi,Oi,ji,Pi,Ti,Ai={};function Ei(){return Ku?Hu:(Ku=1,Hu=function(){})}function Ii(){return qu?Yu:(qu=1,Yu={})}function xi(){if(Zu)return Xu;Zu=1;var r=L(),t=dt(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,u=t(n,"name"),i=u&&"something"===function(){}.name,o=u&&(!r||r&&e(n,"name").configurable);return Xu={EXISTS:u,PROPER:i,CONFIGURABLE:o}}function Fi(){return ri?Qu:(ri=1,Qu=!S()((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})))}function Di(){if(ni)return ti;ni=1;var r=dt(),t=A(),n=ht(),e=le(),u=Fi(),i=e("IE_PROTO"),o=Object,f=o.prototype;return ti=u?o.getPrototypeOf:function(e){var u=n(e);if(r(u,i))return u[i];var c=u.constructor;return t(c)&&u instanceof c?c.prototype:u instanceof o?f:null}}function Li(){if(ui)return ei;ui=1;var r,t,n,e=S(),u=A(),i=Pr(),o=ve(),f=Di(),c=xe(),a=bt(),s=vt(),l=a("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!i(r)||e((function(){var t={};return r[l].call(t)!==t}))?r={}:s&&(r=o(r)),u(r[l])||c(r,l,(function(){return this})),ei={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function Ni(){if(oi)return ii;oi=1;var r=Li().IteratorPrototype,t=ve(),n=br(),e=Ze(),u=Ii(),i=function(){return this};return ii=function(o,f,c,a){var s=f+" Iterator";return o.prototype=t(r,{next:n(+!a,c)}),e(o,s,!1,!0),u[s]=i,o}}function Ci(){if(ci)return fi;ci=1;var r=j(),t=Cr();return fi=function(n,e,u){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[u]))}catch(r){}}}function Mi(){if(si)return ai;si=1;var r=Pr();return ai=function(t){return r(t)||null===t}}function Ri(){if(vi)return li;vi=1;var r=Mi(),t=String,n=TypeError;return li=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function _i(){if(yi)return pi;yi=1;var r=Ci(),t=Pr(),n=Or(),e=Ri();return pi=Object.setPrototypeOf||("__proto__"in{}?function(){var u,i=!1,o={};try{(u=r(Object.prototype,"__proto__","set"))(o,[]),i=o instanceof Array}catch(r){}return function(r,o){return n(r),e(o),t(r)?(i?u(r,o):r.__proto__=o,r):r}}():void 0)}function ki(){if(hi)return gi;hi=1;var r=dn(),t=N(),n=vt(),e=xi(),u=A(),i=Ni(),o=Di(),f=_i(),c=Ze(),a=hn(),s=xe(),l=bt(),v=Ii(),p=Li(),y=e.PROPER,g=e.CONFIGURABLE,h=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",S="values",w="entries",O=function(){return this};return gi=function(e,l,p,j,P,T,A){i(p,l,j);var E,I,x,F=function(r){if(r===P&&M)return M;if(!d&&r&&r in N)return N[r];switch(r){case b:case S:case w:return function(){return new p(this,r)}}return function(){return new p(this)}},D=l+" Iterator",L=!1,N=e.prototype,C=N[m]||N["@@iterator"]||P&&N[P],M=!d&&C||F(P),R="Array"===l&&N.entries||C;if(R&&(E=o(R.call(new e)))!==Object.prototype&&E.next&&(n||o(E)===h||(f?f(E,h):u(E[m])||s(E,m,O)),c(E,D,!0,!0),n&&(v[D]=O)),y&&P===S&&C&&C.name!==S&&(!n&&g?a(N,"name",S):(L=!0,M=function(){return t(C,this)})),P)if(I={values:F(S),keys:T?M:F(b),entries:F(w)},A)for(x in I)(d||L||!(x in N))&&s(N,x,I[x]);else r({target:l,proto:!0,forced:d||L},I);return n&&!A||N[m]===M||s(N,m,M,{name:P}),v[l]=M,I}}function Gi(){return mi?di:(mi=1,di=function(r,t){return{value:r,done:t}})}function Ji(){if(Si)return bi;Si=1;var r=jr(),t=Ei(),n=Ii(),e=ru(),u=gn().f,i=ki(),o=Gi(),f=vt(),c=L(),a="Array Iterator",s=e.set,l=e.getterFor(a);bi=i(Array,"Array",(function(t,n){s(this,{type:a,target:r(t),index:0,kind:n})}),(function(){var r=l(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,o(void 0,!0);switch(r.kind){case"keys":return o(n,!1);case"values":return o(t[n],!1)}return o([n,t[n]],!1)}),"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&c&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(r){}return bi}function Ui(){return Oi?wi:(Oi=1,wi={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})}function Wi(){if(ji)return Ai;ji=1,Ji();var r=Ui(),t=b(),n=Ze(),e=Ii();for(var u in r)n(t[u],u),e[u]=e.Array;return Ai}function zi(){if(Ti)return Pi;Ti=1;var r=Bu();return Wi(),Pi=r}var Vi,$i={};var Bi;var Hi;var Ki,Yi,qi;function Xi(){if(qi)return Yi;qi=1;var r=zi();return function(){if(Vi)return $i;Vi=1;var r=bt(),t=gn().f,n=r("metadata"),e=Function.prototype;void 0===e[n]&&t(e,n,{value:null})}(),Bi||(Bi=1,wu()),Hi||(Hi=1,Tu()),Ki||(Ki=1,Ye()("metadata")),Yi=r}var Zi,Qi,ro;function to(){if(Qi)return Zi;Qi=1;var r=Ar(),t=j(),n=r("Symbol"),e=n.keyFor,u=t(n.prototype.valueOf);return Zi=n.isRegisteredSymbol||function(r){try{return void 0!==e(u(r))}catch(r){return!1}}}var no,eo,uo;function io(){if(eo)return no;eo=1;for(var r=gt(),t=Ar(),n=j(),e=Lr(),u=bt(),i=t("Symbol"),o=i.isWellKnownSymbol,f=t("Object","getOwnPropertyNames"),c=n(i.prototype.valueOf),a=r("wks"),s=0,l=f(i),v=l.length;s<v;s++)try{var p=l[s];e(i[p])&&u(p)}catch(r){}return no=function(r){if(o&&o(r))return!0;try{for(var t=c(r),n=0,e=f(a),u=e.length;n<u;n++)if(a[e[n]]==t)return!0}catch(r){}return!1},no}var oo;var fo;var co;var ao;var so;var lo;var vo;var po,yo,go,ho,mo;function bo(){if(go)return yo;go=1;var r=Xi();return ro||(ro=1,dn()({target:"Symbol",stat:!0},{isRegisteredSymbol:to()})),uo||(uo=1,dn()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:io()})),oo||(oo=1,Ye()("customMatcher")),fo||(fo=1,Ye()("observable")),co||(co=1,dn()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:to()})),ao||(ao=1,dn()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:io()})),so||(so=1,Ye()("matcher")),lo||(lo=1,Ye()("metadataKey")),vo||(vo=1,Ye()("patternMatch")),po||(po=1,Ye()("replaceAll")),yo=r}function So(){return mo?ho:(mo=1,ho=bo())}var wo,Oo,jo,Po,To,Ao,Eo,Io,xo,Fo,Do,Lo,No,Co=t(So()),Mo={};function Ro(){if(Oo)return wo;Oo=1;var r=j(),t=Sn(),n=Rn(),e=Or(),u=r("".charAt),i=r("".charCodeAt),o=r("".slice),f=function(r){return function(f,c){var a,s,l=n(e(f)),v=t(c),p=l.length;return v<0||v>=p?r?"":void 0:(a=i(l,v))<55296||a>56319||v+1===p||(s=i(l,v+1))<56320||s>57343?r?u(l,v):a:r?o(l,v,v+2):s-56320+(a-55296<<10)+65536}};return wo={codeAt:f(!1),charAt:f(!0)}}function _o(){return To?Po:(To=1,Ji(),function(){if(jo)return Mo;jo=1;var r=Ro().charAt,t=Rn(),n=ru(),e=ki(),u=Gi(),i="String Iterator",o=n.set,f=n.getterFor(i);e(String,"String",(function(r){o(this,{type:i,string:t(r),index:0})}),(function(){var t,n=f(this),e=n.string,i=n.index;return i>=e.length?u(void 0,!0):(t=r(e,i),n.index+=t.length,u(t,!1))}))}(),Fu(),Po=Ke().f("iterator"))}function ko(){if(Eo)return Ao;Eo=1;var r=_o();return Wi(),Ao=r}function Go(){return xo?Io:(xo=1,Io=ko())}function Jo(){return Do?Fo:(Do=1,Fo=Go())}function Uo(){return No?Lo:(No=1,Lo=Jo())}var Wo=t(Uo());function zo(r){return zo="function"==typeof Co&&"symbol"==typeof Wo?function(r){return typeof r}:function(r){return r&&"function"==typeof Co&&r.constructor===Co&&r!==Co.prototype?"symbol":typeof r},zo(r)}var Vo,$o,Bo,Ho,Ko,Yo,qo,Xo={};function Zo(){return Bo?$o:(Bo=1,function(){if(Vo)return Xo;Vo=1;var r=dn(),t=Date,n=j()(t.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return n(new t)}})}(),$o=Tr().Date.now)}function Qo(){return Ko?Ho:(Ko=1,Ho=Zo())}var rf,tf,nf,ef,uf,of,ff,cf,af,sf,lf,vf,pf,yf,gf,hf,df,mf,bf,Sf,wf,Of,jf,Pf,Tf,Af,Ef,If,xf=t(qo?Yo:(qo=1,Yo=Qo())),Ff={};function Df(){if(tf)return rf;tf=1;var r=Pr(),t=P(),n=bt()("match");return rf=function(e){var u;return r(e)&&(void 0!==(u=e[n])?!!u:"RegExp"===t(e))}}function Lf(){if(ef)return nf;ef=1;var r=b(),t=S(),n=r.RegExp,e=!t((function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",u=r?"dgimsy":"gimsy",i=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(o.hasIndices="d"),o)i(f,o[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==u||e!==u}));return nf={correct:e}}function Nf(){if(of)return uf;of=1;var r=yn();return uf=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function Cf(){if(cf)return ff;cf=1;var r=N(),t=dt(),n=Er(),e=Lf(),u=Nf(),i=RegExp.prototype;return ff=e.correct?function(r){return r.flags}:function(o){return e.correct||!n(i,o)||t(o,"flags")?o.flags:r(u,o)}}function Mf(){if(sf)return af;sf=1;var r=j(),t=ht(),n=Math.floor,e=r("".charAt),u=r("".replace),i=r("".slice),o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return af=function(r,c,a,s,l,v){var p=a+r.length,y=s.length,g=f;return void 0!==l&&(l=t(l),g=o),u(v,g,(function(t,u){var o;switch(e(u,0)){case"$":return"$";case"&":return r;case"`":return i(c,0,a);case"'":return i(c,p);case"<":o=l[i(u,1,-1)];break;default:var f=+u;if(0===f)return t;if(f>y){var v=n(f/10);return 0===v?t:v<=y?void 0===s[v-1]?e(u,1):s[v-1]+e(u,1):t}o=s[f-1]}return void 0===o?"":o}))}}function Rf(){if(lf)return Ff;lf=1;var r=dn(),t=N(),n=j(),e=Or(),u=A(),i=Pr(),o=Df(),f=Rn(),c=Mr(),a=Cf(),s=Mf(),l=bt(),v=vt(),p=l("replace"),y=TypeError,g=n("".indexOf),h=n("".replace),d=n("".slice),m=Math.max;return r({target:"String",proto:!0},{replaceAll:function(r,n){var l,b,S,w,O,j,P,T,A,E,I=e(this),x=0,F="";if(i(r)){if((l=o(r))&&(b=f(e(a(r))),!~g(b,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(S=c(r,p))return t(S,r,I,n);if(v&&l)return h(f(I),r,n)}for(w=f(I),O=f(r),(j=u(n))||(n=f(n)),P=O.length,T=m(1,P),A=g(w,O);-1!==A;)E=j?f(n(O,A,w)):s(O,w,A,[],void 0,n),F+=d(w,x,A)+E,x=A+P,A=A+T>w.length?-1:g(w,O,A+T);return x<w.length&&(F+=d(w,x)),F}}),Ff}function _f(){if(yf)return pf;yf=1;var r=b(),t=Tr();return pf=function(n,e){var u=t[n+"Prototype"],i=u&&u[e];if(i)return i;var o=r[n],f=o&&o.prototype;return f&&f[e]}}function kf(){return hf?gf:(hf=1,Rf(),gf=_f()("String","replaceAll"))}function Gf(){if(mf)return df;mf=1;var r=Er(),t=kf(),n=String.prototype;return df=function(e){var u=e.replaceAll;return"string"==typeof e||e===n||r(n,e)&&u===n.replaceAll?t:u}}function Jf(){return Sf?bf:(Sf=1,bf=Gf())}function Uf(){return Of?wf:(Of=1,wf=Jf())}function Wf(){return Pf?jf:(Pf=1,vf||(vf=1,Rf()),jf=Uf())}function zf(){return Af?Tf:(Af=1,Tf=Wf())}var Vf,$f,Bf,Hf,Kf,Yf,qf,Xf,Zf,Qf,rc,tc,nc,ec=t(If?Ef:(If=1,Ef=zf())),uc={};function ic(){if($f)return Vf;$f=1;var r=Sn(),t=Rn(),n=Or(),e=RangeError;return Vf=function(u){var i=t(n(this)),o="",f=r(u);if(f<0||f===1/0)throw new e("Wrong number of repetitions");for(;f>0;(f>>>=1)&&(i+=i))1&f&&(o+=i);return o}}function oc(){if(Hf)return Bf;Hf=1;var r=j(),t=wn(),n=Rn(),e=ic(),u=Or(),i=r(e),o=r("".slice),f=Math.ceil,c=function(r){return function(e,c,a){var s,l,v=n(u(e)),p=t(c),y=v.length,g=void 0===a?" ":n(a);return p<=y||""===g?v:((l=i(g,f((s=p-y)/g.length))).length>s&&(l=o(l,0,s)),r?v+l:l+v)}};return Bf={start:c(!1),end:c(!0)}}function fc(){if(Yf)return Kf;Yf=1;var r=j(),t=S(),n=oc().start,e=RangeError,u=isFinite,i=Math.abs,o=Date.prototype,f=o.toISOString,c=r(o.getTime),a=r(o.getUTCDate),s=r(o.getUTCFullYear),l=r(o.getUTCHours),v=r(o.getUTCMilliseconds),p=r(o.getUTCMinutes),y=r(o.getUTCMonth),g=r(o.getUTCSeconds);return Kf=t((function(){return"0385-07-25T07:06:39.999Z"!==f.call(new Date(-50000000000001))}))||!t((function(){f.call(new Date(NaN))}))?function(){if(!u(c(this)))throw new e("Invalid time value");var r=this,t=s(r),o=v(r),f=t<0?"-":t>9999?"+":"";return f+n(i(t),f?6:4,0)+"-"+n(y(r)+1,2,0)+"-"+n(a(r),2,0)+"T"+n(l(r),2,0)+":"+n(p(r),2,0)+":"+n(g(r),2,0)+"."+n(o,3,0)+"Z"}:f}function cc(){if(Zf)return Xf;Zf=1,function(){if(qf)return uc;qf=1;var r=dn(),t=N(),n=ht(),e=St(),u=fc(),i=P();r({target:"Date",proto:!0,forced:S()((function(){return null!==new Date(NaN).toJSON()||1!==t(Date.prototype.toJSON,{toISOString:function(){return 1}})}))},{toJSON:function(r){var o=n(this),f=e(o,"number");return"number"!=typeof f||isFinite(f)?"toISOString"in o||"Date"!==i(o)?o.toISOString():t(u,o):null}})}(),yu();var r=Tr(),t=O();return r.JSON||(r.JSON={stringify:JSON.stringify}),Xf=function(n,e,u){return t(r.JSON.stringify,null,arguments)},Xf}function ac(){return rc?Qf:(rc=1,Qf=cc())}var sc=t(nc?tc:(nc=1,tc=ac()));function lc(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xf(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd hh:ii:ss";return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd hh:ii:ss";function n(r){return r<10?"0".concat(r):r}var e={y:String(r.getFullYear()),m:String(n(r.getMonth()+1)),d:String(n(r.getDate())),h:String(n(r.getHours())),i:String(n(r.getMinutes())),s:String(n(r.getSeconds()))};return t.replace(/[ymdhis]+/g,(function(r){var t=r[0];return e[t].substring(e[t].length-r.length)}))}(new Date(r),t)}var vc={get:function(r){var t=r.split("."),n=t.shift(),e=JSON.parse(localStorage.getItem(n));if(null!=e){if(!(new Date(e.expires).getTime()<xf())){e=e.value;for(var u=0;u<t.length;u++){if("object"!==zo(e)||null===e)return;e=e[t[u]]}return e}localStorage.removeItem(n)}},_resolveExpires:function(r){return lc("number"==typeof r?xf()+36e5*r:Date.parse(ec(r).call(r,"-","/")))},set:function(r,t,n){var e,u=r.split(".");if(u.length<2){var i=this.has(r);localStorage.setItem(r,sc({value:t,expires:n?this._resolveExpires(n):i?JSON.parse(localStorage.getItem(r)).expires:this._resolveExpires(3)}))}else{for(var o=u.shift(),f=null!==(e=this.get(o))&&void 0!==e?e:{},c=f,a=0;a<u.length-1;a++)if("object"!==zo(c=c[u[a]])||null===c)return;c[u[u.length-1]]=t;var s=this.has(o);localStorage.setItem(o,sc({value:f,expires:n?this._resolveExpires(n):s?JSON.parse(localStorage.getItem(o)).expires:this._resolveExpires(3)}))}},has:function(r){return void 0!==this.get(r)},remove:function(r){var t=r.split(".");if(t.length<2)localStorage.removeItem(r);else{var n=t.shift(),e=this.get(n);if(null==e||new Date(e.expires).getTime()<xf())return;for(var u=e,i=0;i<t.length-1;i++)if("object"!==zo(u=u[t[i]])||null===u)return;delete u[t[t.length-1]],localStorage.setItem(n,sc({value:e,expires:JSON.parse(localStorage.getItem(n)).expires}))}},clear:function(){localStorage.clear()}};export{vc as default};