UNPKG

front-end-cache

Version:

支持typescript的前端浏览器缓存管理工具,browser front end cache (支持localstorage, sessionstorage, cookie)

10 lines (9 loc) 27.6 kB
/** @license front-end-cache v1.0.2 * front-end-cache.min.js * * Copyright (c) sonamu.liao<liaoqingsong@front-end.com.cn> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).FrontEndCache=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r={},o=function(t){try{return!!t()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={},a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f=u&&!a.call({1:2},1);c.f=f?function(t){var e=u(this,t);return!!e&&e.enumerable}:a;var s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h=p,d="".split,y=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?d.call(t,""):Object(t)}:Object,g=function(t){if(t==undefined)throw TypeError("Can't call method on "+t);return t},v=y,m=g,b=function(t){return v(m(t))},S=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=S,O=function(t,e){if(!w(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!w(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!w(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!w(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},x=g,E=function(t){return Object(x(t))},T=E,j={}.hasOwnProperty,P=Object.hasOwn||function(t,e){return j.call(T(t),e)},k=S,R=n.document,I=k(R)&&k(R.createElement),C=function(t){return I?R.createElement(t):{}},L=C,_=!i&&!o((function(){return 7!=Object.defineProperty(L("div"),"a",{get:function(){return 7}}).a})),A=i,D=c,M=s,N=b,U=O,$=P,F=_,z=Object.getOwnPropertyDescriptor;r.f=A?z:function(t,e){if(t=N(t),e=U(e,!0),F)try{return z(t,e)}catch(n){}if($(t,e))return M(!D.f.call(t,e),t[e])};var G={},V=S,W=function(t){if(!V(t))throw TypeError(String(t)+" is not an object");return t},B=i,K=_,H=W,J=O,Y=Object.defineProperty;G.f=B?Y:function(t,e,n){if(H(t),e=J(e,!0),H(n),K)try{return Y(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var X=G,q=s,Q=i?function(t,e,n){return X.f(t,e,q(1,n))}:function(t,e,n){return t[e]=n,t},Z={exports:{}},tt=n,et=Q,nt=function(t,e){try{et(tt,t,e)}catch(n){tt[t]=e}return e},rt=nt,ot="__core-js_shared__",it=n[ot]||rt(ot,{}),ct=it,at=Function.toString;"function"!=typeof ct.inspectSource&&(ct.inspectSource=function(t){return at.call(t)});var ut=ct.inspectSource,ft=ut,st=n.WeakMap,lt="function"==typeof st&&/native code/.test(ft(st)),pt={exports:{}},ht=it;(pt.exports=function(t,e){return ht[t]||(ht[t]=e!==undefined?e:{})})("versions",[]).push({version:"3.14.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var dt,yt,gt,vt=0,mt=Math.random(),bt=function(t){return"Symbol("+String(t===undefined?"":t)+")_"+(++vt+mt).toString(36)},St=pt.exports,wt=bt,Ot=St("keys"),xt=function(t){return Ot[t]||(Ot[t]=wt(t))},Et={},Tt=lt,jt=S,Pt=Q,kt=P,Rt=it,It=xt,Ct=Et,Lt="Object already initialized",_t=n.WeakMap;if(Tt||Rt.state){var At=Rt.state||(Rt.state=new _t),Dt=At.get,Mt=At.has,Nt=At.set;dt=function(t,e){if(Mt.call(At,t))throw new TypeError(Lt);return e.facade=t,Nt.call(At,t,e),e},yt=function(t){return Dt.call(At,t)||{}},gt=function(t){return Mt.call(At,t)}}else{var Ut=It("state");Ct[Ut]=!0,dt=function(t,e){if(kt(t,Ut))throw new TypeError(Lt);return e.facade=t,Pt(t,Ut,e),e},yt=function(t){return kt(t,Ut)?t[Ut]:{}},gt=function(t){return kt(t,Ut)}}var $t={set:dt,get:yt,has:gt,enforce:function(t){return gt(t)?yt(t):dt(t,{})},getterFor:function(t){return function(e){var n;if(!jt(e)||(n=yt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Ft=n,zt=Q,Gt=P,Vt=nt,Wt=ut,Bt=$t.get,Kt=$t.enforce,Ht=String(String).split("String");(Z.exports=function(t,e,n,r){var o,i=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||Gt(n,"name")||zt(n,"name",e),(o=Kt(n)).source||(o.source=Ht.join("string"==typeof e?e:""))),t!==Ft?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=n:zt(t,e,n)):c?t[e]=n:Vt(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Bt(this).source||Wt(this)}));var Jt=n,Yt=Jt,Xt=n,qt=function(t){return"function"==typeof t?t:undefined},Qt=function(t,e){return arguments.length<2?qt(Yt[t])||qt(Xt[t]):Yt[t]&&Yt[t][e]||Xt[t]&&Xt[t][e]},Zt={},te=Math.ceil,ee=Math.floor,ne=function(t){return isNaN(t=+t)?0:(t>0?ee:te)(t)},re=ne,oe=Math.min,ie=function(t){return t>0?oe(re(t),9007199254740991):0},ce=ne,ae=Math.max,ue=Math.min,fe=b,se=ie,le=function(t,e){var n=ce(t);return n<0?ae(n+e,0):ue(n,e)},pe=function(t){return function(e,n,r){var o,i=fe(e),c=se(i.length),a=le(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},he={includes:pe(!0),indexOf:pe(!1)},de=P,ye=b,ge=he.indexOf,ve=Et,me=function(t,e){var n,r=ye(t),o=0,i=[];for(n in r)!de(ve,n)&&de(r,n)&&i.push(n);for(;e.length>o;)de(r,n=e[o++])&&(~ge(i,n)||i.push(n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=me,we=be.concat("length","prototype");Zt.f=Object.getOwnPropertyNames||function(t){return Se(t,we)};var Oe={};Oe.f=Object.getOwnPropertySymbols;var xe=Zt,Ee=Oe,Te=W,je=Qt("Reflect","ownKeys")||function(t){var e=xe.f(Te(t)),n=Ee.f;return n?e.concat(n(t)):e},Pe=P,ke=je,Re=r,Ie=G,Ce=o,Le=/#|\.prototype\./,_e=function(t,e){var n=De[Ae(t)];return n==Ne||n!=Me&&("function"==typeof e?Ce(e):!!e)},Ae=_e.normalize=function(t){return String(t).replace(Le,".").toLowerCase()},De=_e.data={},Me=_e.NATIVE="N",Ne=_e.POLYFILL="P",Ue=_e,$e=n,Fe=r.f,ze=Q,Ge=Z.exports,Ve=nt,We=function(t,e){for(var n=ke(e),r=Ie.f,o=Re.f,i=0;i<n.length;i++){var c=n[i];Pe(t,c)||r(t,c,o(e,c))}},Be=Ue,Ke=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,f=t.stat;if(n=u?$e:f?$e[a]||Ve(a,{}):($e[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Fe(n,r))&&c.value:n[r],!Be(u?r:a+(f?".":"#")+r,t.forced)&&o!==undefined){if(typeof i==typeof o)continue;We(i,o)}(t.sham||o&&o.sham)&&ze(i,"sham",!0),Ge(n,r,i,t)}},He=me,Je=be,Ye=Object.keys||function(t){return He(t,Je)},Xe=E,qe=Ye;Ke({target:"Object",stat:!0,forced:o((function(){qe(1)}))},{keys:function(t){return qe(Xe(t))}});var Qe,Ze,tn=Qt("navigator","userAgent")||"",en=n.process,nn=en&&en.versions,rn=nn&&nn.v8;rn?Ze=(Qe=rn.split("."))[0]<4?1:Qe[0]+Qe[1]:tn&&(!(Qe=tn.match(/Edge\/(\d+)/))||Qe[1]>=74)&&(Qe=tn.match(/Chrome\/(\d+)/))&&(Ze=Qe[1]);var on,cn=Ze&&+Ze,an=cn,un=o,fn=!!Object.getOwnPropertySymbols&&!un((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&an&&an<41})),sn=fn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ln=p,pn=Array.isArray||function(t){return"Array"==ln(t)},hn=G,dn=W,yn=Ye,gn=i?Object.defineProperties:function(t,e){dn(t);for(var n,r=yn(e),o=r.length,i=0;o>i;)hn.f(t,n=r[i++],e[n]);return t},vn=Qt("document","documentElement"),mn=W,bn=gn,Sn=be,wn=Et,On=vn,xn=C,En=xt("IE_PROTO"),Tn=function(){},jn=function(t){return"<script>"+t+"</"+"script>"},Pn=function(){try{on=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var t,e;Pn=on?function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e}(on):((e=xn("iframe")).style.display="none",On.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F);for(var n=Sn.length;n--;)delete Pn.prototype[Sn[n]];return Pn()};wn[En]=!0;var kn=Object.create||function(t,e){var n;return null!==t?(Tn.prototype=mn(t),n=new Tn,Tn.prototype=null,n[En]=t):n=Pn(),e===undefined?n:bn(n,e)},Rn={},In=b,Cn=Zt.f,Ln={}.toString,_n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Rn.f=function(t){return _n&&"[object Window]"==Ln.call(t)?function(t){try{return Cn(t)}catch(e){return _n.slice()}}(t):Cn(In(t))};var An=n,Dn=pt.exports,Mn=P,Nn=bt,Un=fn,$n=sn,Fn=Dn("wks"),zn=An.Symbol,Gn=$n?zn:zn&&zn.withoutSetter||Nn,Vn=function(t){return Mn(Fn,t)&&(Un||"string"==typeof Fn[t])||(Un&&Mn(zn,t)?Fn[t]=zn[t]:Fn[t]=Gn("Symbol."+t)),Fn[t]},Wn={},Bn=Vn;Wn.f=Bn;var Kn=Jt,Hn=P,Jn=Wn,Yn=G.f,Xn=G.f,qn=P,Qn=Vn("toStringTag"),Zn=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},tr=S,er=pn,nr=Vn("species"),rr=function(t,e){var n;return er(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!er(n.prototype)?tr(n)&&null===(n=n[nr])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===e?0:e)},or=function(t,e,n){if(Zn(t),e===undefined)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ir=y,cr=E,ar=ie,ur=rr,fr=[].push,sr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,f,s,l){for(var p,h,d=cr(u),y=ir(d),g=or(f,s,3),v=ar(y.length),m=0,b=l||ur,S=e?b(u,v):n||c?b(u,0):undefined;v>m;m++)if((a||m in y)&&(h=g(p=y[m],m,d),t))if(e)S[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:fr.call(S,p)}else switch(t){case 4:return!1;case 7:fr.call(S,p)}return i?-1:r||o?o:S}},lr={forEach:sr(0),map:sr(1),filter:sr(2),some:sr(3),every:sr(4),find:sr(5),findIndex:sr(6),filterOut:sr(7)},pr=Ke,hr=n,dr=Qt,yr=i,gr=fn,vr=sn,mr=o,br=P,Sr=pn,wr=S,Or=W,xr=E,Er=b,Tr=O,jr=s,Pr=kn,kr=Ye,Rr=Zt,Ir=Rn,Cr=Oe,Lr=r,_r=G,Ar=c,Dr=Q,Mr=Z.exports,Nr=pt.exports,Ur=Et,$r=bt,Fr=Vn,zr=Wn,Gr=function(t){var e=Kn.Symbol||(Kn.Symbol={});Hn(e,t)||Yn(e,t,{value:Jn.f(t)})},Vr=function(t,e,n){t&&!qn(t=n?t:t.prototype,Qn)&&Xn(t,Qn,{configurable:!0,value:e})},Wr=$t,Br=lr.forEach,Kr=xt("hidden"),Hr="Symbol",Jr=Fr("toPrimitive"),Yr=Wr.set,Xr=Wr.getterFor(Hr),qr=Object.prototype,Qr=hr.Symbol,Zr=dr("JSON","stringify"),to=Lr.f,eo=_r.f,no=Ir.f,ro=Ar.f,oo=Nr("symbols"),io=Nr("op-symbols"),co=Nr("string-to-symbol-registry"),ao=Nr("symbol-to-string-registry"),uo=Nr("wks"),fo=hr.QObject,so=!fo||!fo.prototype||!fo.prototype.findChild,lo=yr&&mr((function(){return 7!=Pr(eo({},"a",{get:function(){return eo(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=to(qr,e);r&&delete qr[e],eo(t,e,n),r&&t!==qr&&eo(qr,e,r)}:eo,po=function(t,e){var n=oo[t]=Pr(Qr.prototype);return Yr(n,{type:Hr,tag:t,description:e}),yr||(n.description=e),n},ho=vr?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Qr},yo=function(t,e,n){t===qr&&yo(io,e,n),Or(t);var r=Tr(e,!0);return Or(n),br(oo,r)?(n.enumerable?(br(t,Kr)&&t[Kr][r]&&(t[Kr][r]=!1),n=Pr(n,{enumerable:jr(0,!1)})):(br(t,Kr)||eo(t,Kr,jr(1,{})),t[Kr][r]=!0),lo(t,r,n)):eo(t,r,n)},go=function(t,e){Or(t);var n=Er(e),r=kr(n).concat(So(n));return Br(r,(function(e){yr&&!vo.call(n,e)||yo(t,e,n[e])})),t},vo=function(t){var e=Tr(t,!0),n=ro.call(this,e);return!(this===qr&&br(oo,e)&&!br(io,e))&&(!(n||!br(this,e)||!br(oo,e)||br(this,Kr)&&this[Kr][e])||n)},mo=function(t,e){var n=Er(t),r=Tr(e,!0);if(n!==qr||!br(oo,r)||br(io,r)){var o=to(n,r);return!o||!br(oo,r)||br(n,Kr)&&n[Kr][r]||(o.enumerable=!0),o}},bo=function(t){var e=no(Er(t)),n=[];return Br(e,(function(t){br(oo,t)||br(Ur,t)||n.push(t)})),n},So=function(t){var e=t===qr,n=no(e?io:Er(t)),r=[];return Br(n,(function(t){!br(oo,t)||e&&!br(qr,t)||r.push(oo[t])})),r};(gr||(Mr((Qr=function(){if(this instanceof Qr)throw TypeError("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,e=$r(t),n=function(t){this===qr&&n.call(io,t),br(this,Kr)&&br(this[Kr],e)&&(this[Kr][e]=!1),lo(this,e,jr(1,t))};return yr&&so&&lo(qr,e,{configurable:!0,set:n}),po(e,t)}).prototype,"toString",(function(){return Xr(this).tag})),Mr(Qr,"withoutSetter",(function(t){return po($r(t),t)})),Ar.f=vo,_r.f=yo,Lr.f=mo,Rr.f=Ir.f=bo,Cr.f=So,zr.f=function(t){return po(Fr(t),t)},yr&&(eo(Qr.prototype,"description",{configurable:!0,get:function(){return Xr(this).description}}),Mr(qr,"propertyIsEnumerable",vo,{unsafe:!0}))),pr({global:!0,wrap:!0,forced:!gr,sham:!gr},{Symbol:Qr}),Br(kr(uo),(function(t){Gr(t)})),pr({target:Hr,stat:!0,forced:!gr},{"for":function(t){var e=String(t);if(br(co,e))return co[e];var n=Qr(e);return co[e]=n,ao[n]=e,n},keyFor:function(t){if(!ho(t))throw TypeError(t+" is not a symbol");if(br(ao,t))return ao[t]},useSetter:function(){so=!0},useSimple:function(){so=!1}}),pr({target:"Object",stat:!0,forced:!gr,sham:!yr},{create:function(t,e){return e===undefined?Pr(t):go(Pr(t),e)},defineProperty:yo,defineProperties:go,getOwnPropertyDescriptor:mo}),pr({target:"Object",stat:!0,forced:!gr},{getOwnPropertyNames:bo,getOwnPropertySymbols:So}),pr({target:"Object",stat:!0,forced:mr((function(){Cr.f(1)}))},{getOwnPropertySymbols:function(t){return Cr.f(xr(t))}}),Zr)&&pr({target:"JSON",stat:!0,forced:!gr||mr((function(){var t=Qr();return"[null]"!=Zr([t])||"{}"!=Zr({a:t})||"{}"!=Zr(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(wr(e)||t!==undefined)&&!ho(t))return Sr(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ho(e))return e}),o[1]=e,Zr.apply(null,o)}});Qr.prototype[Jr]||Dr(Qr.prototype,Jr,Qr.prototype.valueOf),Vr(Qr,Hr),Ur[Kr]=!0;var wo=o,Oo=cn,xo=Vn("species"),Eo=function(t){return Oo>=51||!wo((function(){var e=[];return(e.constructor={})[xo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},To=lr.filter;Ke({target:"Array",proto:!0,forced:!Eo("filter")},{filter:function(t){return To(this,t,arguments.length>1?arguments[1]:undefined)}});var jo=Ke,Po=o,ko=b,Ro=r.f,Io=i,Co=Po((function(){Ro(1)}));jo({target:"Object",stat:!0,forced:!Io||Co,sham:!Io},{getOwnPropertyDescriptor:function(t,e){return Ro(ko(t),e)}});var Lo=o,_o=lr.forEach,Ao=function(t,e){var n=[][t];return!!n&&Lo((function(){n.call(null,e||function(){throw 1},1)}))}("forEach")?[].forEach:function(t){return _o(this,t,arguments.length>1?arguments[1]:undefined)};Ke({target:"Array",proto:!0,forced:[].forEach!=Ao},{forEach:Ao});var Do=n,Mo={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},No=Ao,Uo=Q;for(var $o in Mo){var Fo=Do[$o],zo=Fo&&Fo.prototype;if(zo&&zo.forEach!==No)try{Uo(zo,"forEach",No)}catch(xa){zo.forEach=No}}var Go=O,Vo=G,Wo=s,Bo=function(t,e,n){var r=Go(e);r in t?Vo.f(t,r,Wo(0,n)):t[r]=n},Ko=je,Ho=b,Jo=r,Yo=Bo;Ke({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Ho(t),o=Jo.f,i=Ko(r),c={},a=0;i.length>a;)(n=o(r,e=i[a++]))!==undefined&&Yo(c,e,n);return c}});Ke({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:gn});function Xo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Ke({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:G.f});var Zo=Z.exports,ti=Date.prototype,ei="Invalid Date",ni="toString",ri=ti.toString,oi=ti.getTime;new Date(NaN)+""!=ei&&Zo(ti,ni,(function(){var t=oi.call(this);return t==t?ri.call(this):ei}));var ii=Ke,ci=o,ai=pn,ui=S,fi=E,si=ie,li=Bo,pi=rr,hi=Eo,di=cn,yi=Vn("isConcatSpreadable"),gi=9007199254740991,vi="Maximum allowed index exceeded",mi=di>=51||!ci((function(){var t=[];return t[yi]=!1,t.concat()[0]!==t})),bi=hi("concat"),Si=function(t){if(!ui(t))return!1;var e=t[yi];return e!==undefined?!!e:ai(t)};ii({target:"Array",proto:!0,forced:!mi||!bi},{concat:function(t){var e,n,r,o,i,c=fi(this),a=pi(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Si(i=-1===e?c:arguments[e])){if(u+(o=si(i.length))>gi)throw TypeError(vi);for(n=0;n<o;n++,u++)n in i&&li(a,u,i[n])}else{if(u>=gi)throw TypeError(vi);li(a,u++,i)}return a.length=u,a}});var wi=W,Oi=function(){var t=wi(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},xi={},Ei=o;function Ti(t,e){return RegExp(t,e)}xi.UNSUPPORTED_Y=Ei((function(){var t=Ti("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),xi.BROKEN_CARET=Ei((function(){var t=Ti("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var ji=Oi,Pi=xi,ki=pt.exports,Ri=RegExp.prototype.exec,Ii=ki("native-string-replace",String.prototype.replace),Ci=Ri,Li=function(){var t=/a/,e=/b*/g;return Ri.call(t,"a"),Ri.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_i=Pi.UNSUPPORTED_Y||Pi.BROKEN_CARET,Ai=/()??/.exec("")[1]!==undefined;(Li||Ai||_i)&&(Ci=function(t){var e,n,r,o,i=this,c=_i&&i.sticky,a=ji.call(i),u=i.source,f=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,f++),n=new RegExp("^(?:"+u+")",a)),Ai&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Li&&(e=i.lastIndex),r=Ri.call(c?n:i,s),c?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Li&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Ai&&r&&r.length>1&&Ii.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)arguments[o]===undefined&&(r[o]=undefined)})),r});var Di=Ci;Ke({target:"RegExp",proto:!0,forced:/./.exec!==Di},{exec:Di});var Mi=Z.exports,Ni=Di,Ui=o,$i=Vn,Fi=Q,zi=$i("species"),Gi=RegExp.prototype,Vi=!Ui((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Wi="$0"==="a".replace(/./,"$0"),Bi=$i("replace"),Ki=!!/./[Bi]&&""===/./[Bi]("a","$0"),Hi=!Ui((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ji=ne,Yi=g,Xi=function(t){return function(e,n){var r,o,i=String(Yi(e)),c=Ji(n),a=i.length;return c<0||c>=a?t?"":undefined:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},qi={codeAt:Xi(!1),charAt:Xi(!0)}.charAt,Qi=E,Zi=Math.floor,tc="".replace,ec=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nc=/\$([$&'`]|\d{1,2})/g,rc=p,oc=Di,ic=function(t,e,n,r){var o=$i(t),i=!Ui((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!Ui((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[zi]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!Vi||!Wi||Ki)||"split"===t&&!Hi){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===Ni||c===Gi.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Wi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ki}),f=u[0],s=u[1];Mi(String.prototype,t,f),Mi(Gi,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&Fi(Gi[o],"sham",!0)},cc=W,ac=ie,uc=ne,fc=g,sc=function(t,e,n){return e+(n?qi(t,e).length:1)},lc=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=nc;return o!==undefined&&(o=Qi(o),u=ec),tc.call(i,u,(function(i,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":f=o[u.slice(1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var l=Zi(s/10);return 0===l?i:l<=a?r[l-1]===undefined?u.charAt(1):r[l-1]+u.charAt(1):i}f=r[s-1]}return f===undefined?"":f}))},pc=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==rc(t))throw TypeError("RegExp#exec called on incompatible receiver");return oc.call(t,e)},hc=Math.max,dc=Math.min;ic("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=fc(this),i=n==undefined?undefined:n[t];return i!==undefined?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(c)){var a=n(e,t,this,r);if(a.done)return a.value}var u=cc(t),f=String(this),s="function"==typeof r;s||(r=String(r));var l=u.global;if(l){var p=u.unicode;u.lastIndex=0}for(var h=[];;){var d=pc(u,f);if(null===d)break;if(h.push(d),!l)break;""===String(d[0])&&(u.lastIndex=sc(f,ac(u.lastIndex),p))}for(var y,g="",v=0,m=0;m<h.length;m++){d=h[m];for(var b=String(d[0]),S=hc(dc(uc(d.index),f.length),0),w=[],O=1;O<d.length;O++)w.push((y=d[O])===undefined?y:String(y));var x=d.groups;if(s){var E=[b].concat(w,S,f);x!==undefined&&E.push(x);var T=String(r.apply(undefined,E))}else T=lc(b,f,S,w,x,r);S>=v&&(g+=f.slice(v,S)+T,v=S+b.length)}return g+f.slice(v)}]}));var yc=S,gc=W,vc=function(t){if(!yc(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},mc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(xa){}return function(n,r){return gc(n),vc(r),e?t.call(n,r):n.__proto__=r,n}}():undefined),bc=S,Sc=mc,wc=S,Oc=p,xc=Vn("match"),Ec=function(t){var e;return wc(t)&&((e=t[xc])!==undefined?!!e:"RegExp"==Oc(t))},Tc=Qt,jc=G,Pc=i,kc=Vn("species"),Rc=i,Ic=n,Cc=Ue,Lc=function(t,e,n){var r,o;return Sc&&"function"==typeof(r=e.constructor)&&r!==n&&bc(o=r.prototype)&&o!==n.prototype&&Sc(t,o),t},_c=G.f,Ac=Zt.f,Dc=Ec,Mc=Oi,Nc=xi,Uc=Z.exports,$c=o,Fc=$t.enforce,zc=function(t){var e=Tc(t),n=jc.f;Pc&&e&&!e[kc]&&n(e,kc,{configurable:!0,get:function(){return this}})},Gc=Vn("match"),Vc=Ic.RegExp,Wc=Vc.prototype,Bc=/a/g,Kc=/a/g,Hc=new Vc(Bc)!==Bc,Jc=Nc.UNSUPPORTED_Y;if(Rc&&Cc("RegExp",!Hc||Jc||$c((function(){return Kc[Gc]=!1,Vc(Bc)!=Bc||Vc(Kc)==Kc||"/a/i"!=Vc(Bc,"i")})))){for(var Yc=function(t,e){var n,r=this instanceof Yc,o=Dc(t),i=e===undefined;if(!r&&o&&t.constructor===Yc&&i)return t;Hc?o&&!i&&(t=t.source):t instanceof Yc&&(i&&(e=Mc.call(t)),t=t.source),Jc&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var c=Lc(Hc?new Vc(t,e):Vc(t,e),r?this:Wc,Yc);Jc&&n&&(Fc(c).sticky=!0);return c},Xc=function(t){t in Yc||_c(Yc,t,{configurable:!0,get:function(){return Vc[t]},set:function(e){Vc[t]=e}})},qc=Ac(Vc),Qc=0;qc.length>Qc;)Xc(qc[Qc++]);Wc.constructor=Yc,Yc.prototype=Wc,Uc(Ic,"RegExp",Yc)}zc("RegExp");var Zc=Z.exports,ta=W,ea=o,na=Oi,ra="toString",oa=RegExp.prototype,ia=oa.toString,ca=ea((function(){return"/a/b"!=ia.call({source:"a",flags:"b"})})),aa=ia.name!=ra;(ca||aa)&&Zc(RegExp.prototype,ra,(function(){var t=ta(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(n===undefined&&t instanceof RegExp&&!("flags"in oa)?na.call(t):n)}),{unsafe:!0});var ua,fa=Ec,sa=Vn("match"),la=Ke,pa=r.f,ha=ie,da=function(t){if(fa(t))throw TypeError("The method doesn't accept regular expressions");return t},ya=g,ga=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[sa]=!1,"/./"[t](e)}catch(r){}}return!1},va="".startsWith,ma=Math.min,ba=ga("startsWith");function Sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sa(Object(n),!0).forEach((function(e){Qo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}la({target:"String",proto:!0,forced:!!(ba||(ua=pa(String.prototype,"startsWith"),!ua||ua.writable))&&!ba},{startsWith:function(t){var e=String(ya(this));da(t);var n=ha(ma(arguments.length>1?arguments[1]:undefined,e.length)),r=String(t);return va?va.call(e,r,n):e.slice(n,n+r.length)===r}}),Ke({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Oa={years:"FullYear",months:"Month",days:"Date",hours:"Hours",minutes:"Minutes",seconds:"Seconds"};return function(){function t(e){var n,r,o=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Xo(this,t),Qo(this,"key",void 0),Qo(this,"options",void 0),this.options=wa({domain:location.hostname,path:"/",expiresUnit:"seconds",secure:!1,type:"localStorage"},o),this.key=(null===(n=(r=this.options).encryKey)||void 0===n?void 0:n.call(r,e))||e,"cookie"===this.options.type&&(this.key=encodeURIComponent(e))}var e,n,r;return e=t,(n=[{key:"expiresTimeStamp",get:function(){if("number"!=typeof this.options.expires)return null;var t=new Date,e=Oa[this.options.expiresUnit];return t["set".concat(e)](t["get".concat(e)]()+this.options.expires),t.getTime()}},{key:"serializeValue",value:function(t){var e;return e=!1===this.options.serialize?"".concat(t):JSON.stringify(t),"cookie"===this.options.type&&(e=encodeURIComponent(e)),e}},{key:"deserialization",value:function(t){try{var e=null!=t?t:"";return"cookie"===this.options.type&&(e=decodeURIComponent(e)),!1===this.options.serialize?e:JSON.parse(e)}catch(n){return null}}},{key:"setCookie",value:function(t){var e="".concat(this.key,"=").concat(this.serializeValue(t),";");e+="path=".concat(this.options.path,";"),e+="domain=".concat(this.options.domain,";"),this.expiresTimeStamp&&(e+="expires=".concat(new Date(this.expiresTimeStamp).toUTCString(),";")),document.cookie=e}},{key:"getCookie",value:function(){var t=document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*".concat(this.key.replace(/[-.+*]/g,"\\$&"),"\\s*\\=\\s*([^;]*).*$)|^.*$")),"$1");return this.deserialization(t)}},{key:"removeCookie",value:function(){document.cookie="".concat(this.key,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=").concat(this.options.domain,";path=").concat(this.options.path)}},{key:"setItem",value:function(t){if("cookie"===this.options.type)return this.setCookie(t),t;var e=[t,this.options.path];return this.expiresTimeStamp&&(e[2]=this.expiresTimeStamp),window[this.options.type].setItem(this.key,this.serializeValue(e)),t}},{key:"getItem",value:function(t){var e,n,r=null;if("cookie"===this.options.type)r=this.getCookie();else{var o=this.deserialization(window[this.options.type].getItem(this.key));o&&location.pathname.startsWith(o[1])&&(!o[2]||new Date(o[2]).getTime()-Date.now()>=0)&&(r=o[0])}return null!==(e=null!==(n=r)&&void 0!==n?n:t)&&void 0!==e?e:null}},{key:"removeItem",value:function(){"cookie"===this.options.type?this.removeCookie():window[this.options.type].removeItem(this.key)}}])&&qo(e.prototype,n),r&&qo(e,r),t}()}));