next-csrf
Version:
CSRF mitigation library for Next.js
1 lines • 91.7 kB
JavaScript
!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s={f:u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,l=function(t){return f.call(t).slice(8,-1)},h="".split,p=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==l(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return p(d(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!g(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!g(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!g(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!g(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,b=function(t,e){return m.call(t,e)},S=n.document,w=g(S)&&g(S.createElement),E=function(t){return w?S.createElement(t):{}},x=!i&&!o(function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a}),A=Object.getOwnPropertyDescriptor,R={f:i?A:function(t,e){if(t=v(t),e=y(e,!0),x)try{return A(t,e)}catch(t){}if(b(t,e))return c(!s.f.call(t,e),t[e])}},O=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},j=Object.defineProperty,I={f:i?j:function(t,e,r){if(O(t),e=y(e,!0),O(r),x)try{return j(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},P=i?function(t,e,r){return I.f(t,e,c(1,r))}:function(t,e,r){return t[e]=r,t},T=function(t,e){try{P(n,t,e)}catch(r){n[t]=e}return e},k=n["__core-js_shared__"]||T("__core-js_shared__",{}),L=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return L.call(t)});var U,M,_,N=k.inspectSource,C=n.WeakMap,F="function"==typeof C&&/native code/.test(N(C)),B=e(function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),D=0,q=Math.random(),z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+q).toString(36)},W=B("keys"),K=function(t){return W[t]||(W[t]=z(t))},G={};if(F){var $=new(0,n.WeakMap),V=$.get,H=$.has,X=$.set;U=function(t,e){return X.call($,t,e),e},M=function(t){return V.call($,t)||{}},_=function(t){return H.call($,t)}}else{var Y=K("state");G[Y]=!0,U=function(t,e){return P(t,Y,e),e},M=function(t){return b(t,Y)?t[Y]:{}},_=function(t){return b(t,Y)}}var J,Q={set:U,get:M,has:_,enforce:function(t){return _(t)?M(t):U(t,{})},getterFor:function(t){return function(e){var r;if(!g(e)||(r=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Z=e(function(t){var e=Q.get,r=Q.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||b(i,"name")||P(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:P(t,e,i)):s?t[e]=i:T(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||N(this)})}),tt=n,et=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?et(tt[t])||et(n[t]):tt[t]&&tt[t][e]||n[t]&&n[t][e]},nt=Math.ceil,ot=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?ot:nt)(t)},at=Math.min,ut=function(t){return t>0?at(it(t),9007199254740991):0},st=Math.max,ct=Math.min,ft=function(t,e){var r=it(t);return r<0?st(r+e,0):ct(r,e)},lt=function(t){return function(e,r,n){var o,i=v(e),a=ut(i.length),u=ft(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},ht={includes:lt(!0),indexOf:lt(!1)},pt=ht.indexOf,dt=function(t,e){var r,n=v(t),o=0,i=[];for(r in n)!b(G,r)&&b(n,r)&&i.push(r);for(;e.length>o;)b(n,r=e[o++])&&(~pt(i,r)||i.push(r));return i},vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gt=vt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return dt(t,gt)}},mt={f:Object.getOwnPropertySymbols},bt=rt("Reflect","ownKeys")||function(t){var e=yt.f(O(t)),r=mt.f;return r?e.concat(r(t)):e},St=function(t,e){for(var r=bt(e),n=I.f,o=R.f,i=0;i<r.length;i++){var a=r[i];b(t,a)||n(t,a,o(e,a))}},wt=/#|\.prototype\./,Et=function(t,e){var r=At[xt(t)];return r==Ot||r!=Rt&&("function"==typeof e?o(e):!!e)},xt=Et.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},At=Et.data={},Rt=Et.NATIVE="N",Ot=Et.POLYFILL="P",jt=Et,It=R.f,Pt=function(t,e){var r,o,i,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?n:f?n[s]||T(s,{}):(n[s]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(u=It(r,o))&&u.value:r[o],!jt(c?o:s+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&P(a,"sham",!0),Z(r,o,a,t)}},Tt=function(t){return Object(d(t))},kt=Math.min,Lt=[].copyWithin||function(t,e){var r=Tt(this),n=ut(r.length),o=ft(t,n),i=ft(e,n),a=arguments.length>2?arguments[2]:void 0,u=kt((void 0===a?n:ft(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Ut=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Mt=Ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_t=B("wks"),Nt=n.Symbol,Ct=Mt?Nt:Nt&&Nt.withoutSetter||z,Ft=function(t){return b(_t,t)||(_t[t]=Ut&&b(Nt,t)?Nt[t]:Ct("Symbol."+t)),_t[t]},Bt=Object.keys||function(t){return dt(t,vt)},Dt=i?Object.defineProperties:function(t,e){O(t);for(var r,n=Bt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},qt=rt("document","documentElement"),zt=K("IE_PROTO"),Wt=function(){},Kt=function(t){return"<script>"+t+"<\/script>"},Gt=function(){try{J=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Gt=J?function(t){t.write(Kt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(J):((e=E("iframe")).style.display="none",qt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Kt("document.F=Object")),t.close(),t.F);for(var r=vt.length;r--;)delete Gt.prototype[vt[r]];return Gt()};G[zt]=!0;var $t=Object.create||function(t,e){var r;return null!==t?(Wt.prototype=O(t),r=new Wt,Wt.prototype=null,r[zt]=t):r=Gt(),void 0===e?r:Dt(r,e)},Vt=Ft("unscopables"),Ht=Array.prototype;null==Ht[Vt]&&I.f(Ht,Vt,{configurable:!0,value:$t(null)});var Xt=function(t){Ht[Vt][t]=!0};Pt({target:"Array",proto:!0},{copyWithin:Lt}),Xt("copyWithin");var Yt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Jt=function(t,e,r){if(Yt(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Qt=Function.call,Zt=function(t,e,r){return Jt(Qt,n[t].prototype[e],r)};Zt("Array","copyWithin"),Pt({target:"Array",proto:!0},{fill:function(t){for(var e=Tt(this),r=ut(e.length),n=arguments.length,o=ft(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ft(i,r);a>o;)e[o++]=t;return e}}),Xt("fill"),Zt("Array","fill");var te=Array.isArray||function(t){return"Array"==l(t)},ee=Ft("species"),re=function(t,e){var r;return te(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!te(r.prototype)?g(r)&&null===(r=r[ee])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},ne=[].push,oe=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,s,c,f){for(var l,h,d=Tt(u),v=p(d),g=Jt(s,c,3),y=ut(v.length),m=0,b=f||re,S=e?b(u,y):r?b(u,0):void 0;y>m;m++)if((a||m in v)&&(h=g(l=v[m],m,d),t))if(e)S[m]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:ne.call(S,l)}else if(o)return!1;return i?-1:n||o?o:S}},ie={forEach:oe(0),map:oe(1),filter:oe(2),some:oe(3),every:oe(4),find:oe(5),findIndex:oe(6)},ae=Object.defineProperty,ue={},se=function(t){throw t},ce=function(t,e){if(b(ue,t))return ue[t];e||(e={});var r=[][t],n=!!b(e,"ACCESSORS")&&e.ACCESSORS,a=b(e,0)?e[0]:se,u=b(e,1)?e[1]:void 0;return ue[t]=!!r&&!o(function(){if(n&&!i)return!0;var t={length:-1};n?ae(t,1,{enumerable:!0,get:se}):t[1]=1,r.call(t,a,u)})},fe=ie.find,le=!0,he=ce("find");"find"in[]&&Array(1).find(function(){le=!1}),Pt({target:"Array",proto:!0,forced:le||!he},{find:function(t){return fe(this,t,arguments.length>1?arguments[1]:void 0)}}),Xt("find"),Zt("Array","find");var pe=ie.findIndex,de=!0,ve=ce("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){de=!1}),Pt({target:"Array",proto:!0,forced:de||!ve},{findIndex:function(t){return pe(this,t,arguments.length>1?arguments[1]:void 0)}}),Xt("findIndex"),Zt("Array","findIndex");var ge=function(t,e,r,n,o,i,a,u){for(var s,c=o,f=0,l=!!a&&Jt(a,u,3);f<n;){if(f in r){if(s=l?l(r[f],f,e):r[f],i>0&&te(s))c=ge(t,e,s,ut(s.length),c,i-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[c]=s}c++}f++}return c},ye=ge;Pt({target:"Array",proto:!0},{flatMap:function(t){var e,r=Tt(this),n=ut(r.length);return Yt(t),(e=re(r,0)).length=ye(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Xt("flatMap"),Zt("Array","flatMap"),Pt({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Tt(this),r=ut(e.length),n=re(e,0);return n.length=ye(n,e,e,r,0,void 0===t?1:it(t)),n}}),Xt("flat"),Zt("Array","flat");var me,be,Se,we=function(t){return function(e,r){var n,o,i=String(d(e)),a=it(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Ee={codeAt:we(!1),charAt:we(!0)},xe=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ae=K("IE_PROTO"),Re=Object.prototype,Oe=xe?Object.getPrototypeOf:function(t){return t=Tt(t),b(t,Ae)?t[Ae]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Re:null},je=Ft("iterator"),Ie=!1;[].keys&&("next"in(Se=[].keys())?(be=Oe(Oe(Se)))!==Object.prototype&&(me=be):Ie=!0),null==me&&(me={}),b(me,je)||P(me,je,function(){return this});var Pe={IteratorPrototype:me,BUGGY_SAFARI_ITERATORS:Ie},Te=I.f,ke=Ft("toStringTag"),Le=function(t,e,r){t&&!b(t=r?t:t.prototype,ke)&&Te(t,ke,{configurable:!0,value:e})},Ue={},Me=Pe.IteratorPrototype,_e=function(){return this},Ne=function(t,e,r){var n=e+" Iterator";return t.prototype=$t(Me,{next:c(1,r)}),Le(t,n,!1),Ue[n]=_e,t},Ce=function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Fe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return O(r),Ce(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Be=Pe.IteratorPrototype,De=Pe.BUGGY_SAFARI_ITERATORS,qe=Ft("iterator"),ze=function(){return this},We=function(t,e,r,n,o,i,a){Ne(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!De&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[qe]||p["@@iterator"]||o&&p[o],v=!De&&d||f(o),g="Array"==e&&p.entries||d;if(g&&(u=Oe(g.call(new t)),Be!==Object.prototype&&u.next&&(Oe(u)!==Be&&(Fe?Fe(u,Be):"function"!=typeof u[qe]&&P(u,qe,ze)),Le(u,l,!0))),"values"==o&&d&&"values"!==d.name&&(h=!0,v=function(){return d.call(this)}),p[qe]!==v&&P(p,qe,v),Ue[e]=v,o)if(s={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(c in s)!De&&!h&&c in p||Z(p,c,s[c]);else Pt({target:e,proto:!0,forced:De||h},s);return s},Ke=Ee.charAt,Ge=Q.set,$e=Q.getterFor("String Iterator");We(String,"String",function(t){Ge(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=$e(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Ke(r,n),e.index+=t.length,{value:t,done:!1})});var Ve=function(t,e,r,n){try{return n?e(O(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&O(o.call(t)),e}},He=Ft("iterator"),Xe=Array.prototype,Ye=function(t){return void 0!==t&&(Ue.Array===t||Xe[He]===t)},Je=function(t,e,r){var n=y(e);n in t?I.f(t,n,c(0,r)):t[n]=r},Qe={};Qe[Ft("toStringTag")]="z";var Ze="[object z]"===String(Qe),tr=Ft("toStringTag"),er="Arguments"==l(function(){return arguments}()),rr=Ze?l:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),tr))?r:er?l(e):"Object"==(n=l(e))&&"function"==typeof e.callee?"Arguments":n},nr=Ft("iterator"),or=function(t){if(null!=t)return t[nr]||t["@@iterator"]||Ue[rr(t)]},ir=function(t){var e,r,n,o,i,a,u=Tt(t),s="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=or(u),p=0;if(l&&(f=Jt(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&Ye(h))for(r=new s(e=ut(u.length));e>p;p++)a=l?f(u[p],p):u[p],Je(r,p,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;p++)a=l?Ve(o,f,[n.value,p],!0):n.value,Je(r,p,a);return r.length=p,r},ar=Ft("iterator"),ur=function(t,e){if(!e)return!1;var r=!1;try{var n={};n[ar]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},sr=!ur(function(t){});Pt({target:"Array",stat:!0,forced:sr},{from:ir});var cr=ht.includes,fr=ce("indexOf",{ACCESSORS:!0,1:0});Pt({target:"Array",proto:!0,forced:!fr},{includes:function(t){return cr(this,t,arguments.length>1?arguments[1]:void 0)}}),Xt("includes"),Zt("Array","includes");var lr=Q.set,hr=Q.getterFor("Array Iterator"),pr=We(Array,"Array",function(t,e){lr(this,{type:"Array Iterator",target:v(t),index:0,kind:e})},function(){var t=hr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ue.Arguments=Ue.Array,Xt("keys"),Xt("values"),Xt("entries"),Zt("Array","values");var dr=o(function(){function t(){}return!(Array.of.call(t)instanceof t)});Pt({target:"Array",stat:!0,forced:dr},{of:function(){for(var t=arguments,e=0,r=arguments.length,n=new("function"==typeof this?this:Array)(r);r>e;)Je(n,e,t[e++]);return n.length=r,n}});var vr=Ft("hasInstance"),gr=Function.prototype;vr in gr||I.f(gr,vr,{value:function(t){if("function"!=typeof this||!g(t))return!1;if(!g(this.prototype))return t instanceof this;for(;t=Oe(t);)if(this.prototype===t)return!0;return!1}}),Function,Ft("hasInstance");var yr=Function.prototype,mr=yr.toString,br=/^\s*function ([^ (]*)/;!i||"name"in yr||(0,I.f)(yr,"name",{configurable:!0,get:function(){try{return mr.call(this).match(br)[1]}catch(t){return""}}});var Sr=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),wr=e(function(t){var e=I.f,r=z("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:"O"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!g(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,r)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!b(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Sr&&a.REQUIRED&&o(t)&&!b(t,r)&&i(t),t}};G[r]=!0}),Er=e(function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,r,n,o,i){var a,u,s,c,f,l,h,p=Jt(r,n,o?2:1);if(i)a=t;else{if("function"!=typeof(u=or(t)))throw TypeError("Target is not iterable");if(Ye(u)){for(s=0,c=ut(t.length);c>s;s++)if((f=o?p(O(h=t[s])[0],h[1]):p(t[s]))&&f instanceof e)return f;return new e(!1)}a=u.call(t)}for(l=a.next;!(h=l.call(a)).done;)if("object"==typeof(f=Ve(a,p,h.value,o))&&f&&f instanceof e)return f;return new e(!1)}).stop=function(t){return new e(!0,t)}}),xr=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Ar=function(t,e,r){var n,o;return Fe&&"function"==typeof(n=e.constructor)&&n!==r&&g(o=n.prototype)&&o!==r.prototype&&Fe(t,o),t},Rr=function(t,e,r){var i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),u=i?"set":"add",s=n[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=c[t];Z(c,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(a&&!g(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return a&&!g(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(a&&!g(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(jt(t,"function"!=typeof s||!(a||c.forEach&&!o(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,i,u),wr.REQUIRED=!0;else if(jt(t,!0)){var p=new f,d=p[u](a?{}:-0,1)!=p,v=o(function(){p.has(1)}),y=ur(function(t){new s(t)}),m=!a&&o(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});y||((f=e(function(e,r){xr(e,f,t);var n=Ar(new s,e,f);return null!=r&&Er(r,n[u],n,i),n})).prototype=c,c.constructor=f),(v||m)&&(h("delete"),h("has"),i&&h("get")),(m||d)&&h(u),a&&c.clear&&delete c.clear}return l[t]=f,Pt({global:!0,forced:f!=s},l),Le(f,t),a||r.setStrong(f,t,i),f},Or=function(t,e,r){for(var n in e)Z(t,n,e[n],r);return t},jr=Ft("species"),Ir=function(t){var e=rt(t);i&&e&&!e[jr]&&(0,I.f)(e,jr,{configurable:!0,get:function(){return this}})},Pr=I.f,Tr=wr.fastKey,kr=Q.set,Lr=Q.getterFor,Ur={getConstructor:function(t,e,r,n){var o=t(function(t,a){xr(t,o,e),kr(t,{type:e,index:$t(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=a&&Er(a,t[n],t,r)}),a=Lr(e),u=function(t,e,r){var n,o,u=a(t),c=s(t,e);return c?c.value=r:(u.last=c={index:o=Tr(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=c),n&&(n.next=c),i?u.size++:t.size++,"F"!==o&&(u.index[o]=c)),t},s=function(t,e){var r,n=a(t),o=Tr(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Or(o.prototype,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,i?t.size=0:this.size=0},delete:function(t){var e=a(this),r=s(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),i?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=a(this),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),Or(o.prototype,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&Pr(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Lr(e),i=Lr(n);We(t,e,function(t,e){kr(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),Ir(e)}},Mr=Rr("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ur);Ze||Z(Object.prototype,"toString",Ze?{}.toString:function(){return"[object "+rr(this)+"]"},{unsafe:!0});var _r={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},Nr=Ft("iterator"),Cr=Ft("toStringTag"),Fr=pr.values;for(var Br in _r){var Dr=n[Br],qr=Dr&&Dr.prototype;if(qr){if(qr[Nr]!==Fr)try{P(qr,Nr,Fr)}catch(t){qr[Nr]=Fr}if(qr[Cr]||P(qr,Cr,Br),_r[Br])for(var zr in pr)if(qr[zr]!==pr[zr])try{P(qr,zr,pr[zr])}catch(t){qr[zr]=pr[zr]}}}var Wr=function(t){var e,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return Yt(this),(e=void 0!==a)&&Yt(a),null==t?new this:(r=[],e?(n=0,o=Jt(a,i>2?arguments[2]:void 0,2),Er(t,function(t){r.push(o(t,n++))})):Er(t,r.push,r),new this(r))};Pt({target:"Map",stat:!0},{from:Wr});var Kr=function(){for(var t=arguments,e=arguments.length,r=new Array(e);e--;)r[e]=t[e];return new this(r)};Pt({target:"Map",stat:!0},{of:Kr});var Gr=function(){for(var t,e=arguments,r=O(this),n=Yt(r.delete),o=!0,i=0,a=arguments.length;i<a;i++)t=n.call(r,e[i]),o=o&&t;return!!o};Pt({target:"Map",proto:!0,real:!0,forced:!1},{deleteAll:function(){return Gr.apply(this,arguments)}});var $r=function(t){var e=or(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return O(e.call(t))},Vr=function(t){return Map.prototype.entries.call(t)};Pt({target:"Map",proto:!0,real:!0,forced:!1},{every:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return!Er(r,function(t,r){if(!n(r,t,e))return Er.stop()},void 0,!0,!0).stopped}});var Hr=Ft("species"),Xr=function(t,e){var r,n=O(t).constructor;return void 0===n||null==(r=O(n)[Hr])?e:Yt(r)};Pt({target:"Map",proto:!0,real:!0,forced:!1},{filter:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3),o=new(Xr(e,rt("Map"))),i=Yt(o.set);return Er(r,function(t,r){n(r,t,e)&&i.call(o,t,r)},void 0,!0,!0),o}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{find:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return Er(r,function(t,r){if(n(r,t,e))return Er.stop(r)},void 0,!0,!0).result}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{findKey:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return Er(r,function(t,r){if(n(r,t,e))return Er.stop(t)},void 0,!0,!0).result}}),Pt({target:"Map",stat:!0},{groupBy:function(t,e){var r=new this;Yt(e);var n=Yt(r.has),o=Yt(r.get),i=Yt(r.set);return Er(t,function(t){var a=e(t);n.call(r,a)?o.call(r,a).push(t):i.call(r,a,[t])}),r}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{includes:function(t){return Er(Vr(O(this)),function(e,r){if((n=r)===(o=t)||n!=n&&o!=o)return Er.stop();var n,o},void 0,!0,!0).stopped}}),Pt({target:"Map",stat:!0},{keyBy:function(t,e){var r=new this;Yt(e);var n=Yt(r.set);return Er(t,function(t){n.call(r,e(t),t)}),r}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{keyOf:function(t){return Er(Vr(O(this)),function(e,r){if(r===t)return Er.stop(e)},void 0,!0,!0).result}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{mapKeys:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3),o=new(Xr(e,rt("Map"))),i=Yt(o.set);return Er(r,function(t,r){i.call(o,n(r,t,e),r)},void 0,!0,!0),o}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{mapValues:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3),o=new(Xr(e,rt("Map"))),i=Yt(o.set);return Er(r,function(t,r){i.call(o,t,n(r,t,e))},void 0,!0,!0),o}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{merge:function(t){for(var e=arguments,r=O(this),n=Yt(r.set),o=0;o<arguments.length;)Er(e[o++],n,r,!0);return r}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{reduce:function(t){var e=O(this),r=Vr(e),n=arguments.length<2,o=n?void 0:arguments[1];if(Yt(t),Er(r,function(r,i){n?(n=!1,o=i):o=t(o,i,r,e)},void 0,!0,!0),n)throw TypeError("Reduce of empty map with no initial value");return o}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{some:function(t){var e=O(this),r=Vr(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return Er(r,function(t,r){if(n(r,t,e))return Er.stop()},void 0,!0,!0).stopped}}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{update:function(t,e){var r=O(this),n=arguments.length;Yt(e);var o=r.has(t);if(!o&&n<3)throw TypeError("Updating absent value");var i=o?r.get(t):Yt(n>2?arguments[2]:void 0)(t,r);return r.set(t,e(i,t,r)),r}});var Yr=function(t,e){var r,n=O(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e&&"function"!=typeof o)throw TypeError("At least one callback required");return n.has(t)?(r=n.get(t),"function"==typeof e&&(r=e(r),n.set(t,r))):"function"==typeof o&&(r=o(),n.set(t,r)),r};Pt({target:"Map",proto:!0,real:!0,forced:!1},{upsert:Yr}),Pt({target:"Map",proto:!0,real:!0,forced:!1},{updateOrInsert:Yr});var Jr="\t\n\v\f\r \u2028\u2029\ufeff",Qr="["+Jr+"]",Zr=RegExp("^"+Qr+Qr+"*"),tn=RegExp(Qr+Qr+"*$"),en=function(t){return function(e){var r=String(d(e));return 1&t&&(r=r.replace(Zr,"")),2&t&&(r=r.replace(tn,"")),r}},rn={start:en(1),end:en(2),trim:en(3)},nn=yt.f,on=R.f,an=I.f,un=rn.trim,sn=n.Number,cn=sn.prototype,fn="Number"==l($t(cn)),ln=function(t){var e,r,n,o,i,a,u,s,c=y(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=un(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;u<a;u++)if((s=i.charCodeAt(u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(jt("Number",!sn(" 0o1")||!sn("0b1")||sn("+0x1"))){for(var hn,pn=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof pn&&(fn?o(function(){cn.valueOf.call(r)}):"Number"!=l(r))?Ar(new sn(ln(e)),r,pn):ln(e)},dn=i?nn(sn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),vn=0;dn.length>vn;vn++)b(sn,hn=dn[vn])&&!b(pn,hn)&&an(pn,hn,on(sn,hn));pn.prototype=cn,cn.constructor=pn,Z(n,"Number",pn)}Pt({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var gn=n.isFinite,yn=Number.isFinite||function(t){return"number"==typeof t&&gn(t)};Pt({target:"Number",stat:!0},{isFinite:yn});var mn=Math.floor,bn=function(t){return!g(t)&&isFinite(t)&&mn(t)===t};Pt({target:"Number",stat:!0},{isInteger:bn}),Pt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Sn=Math.abs;Pt({target:"Number",stat:!0},{isSafeInteger:function(t){return bn(t)&&Sn(t)<=9007199254740991}}),Pt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Pt({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991});var wn=rn.trim,En=n.parseFloat,xn=1/En(Jr+"-0")!=-Infinity?function(t){var e=wn(String(t)),r=En(e);return 0===r&&"-"==e.charAt(0)?-0:r}:En;Pt({target:"Number",stat:!0,forced:Number.parseFloat!=xn},{parseFloat:xn});var An=rn.trim,Rn=n.parseInt,On=/^[+-]?0[Xx]/,jn=8!==Rn(Jr+"08")||22!==Rn(Jr+"0x16")?function(t,e){var r=An(String(t));return Rn(r,e>>>0||(On.test(r)?16:10))}:Rn;Pt({target:"Number",stat:!0,forced:Number.parseInt!=jn},{parseInt:jn});var In=s.f,Pn=function(t){return function(e){for(var r,n=v(e),o=Bt(n),a=o.length,u=0,s=[];a>u;)r=o[u++],i&&!In.call(n,r)||s.push(t?[r,n[r]]:n[r]);return s}},Tn={entries:Pn(!0),values:Pn(!1)},kn=Tn.entries;Pt({target:"Object",stat:!0},{entries:function(t){return kn(t)}}),Pt({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=v(t),o=R.f,i=bt(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Je(a,e,r);return a}});var Ln=o(function(){Bt(1)});Pt({target:"Object",stat:!0,forced:Ln},{keys:function(t){return Bt(Tt(t))}});var Un=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Pt({target:"Object",stat:!0},{is:Un});var Mn=Tn.values;Pt({target:"Object",stat:!0},{values:function(t){return Mn(t)}});var _n=rt("Reflect","apply"),Nn=Function.apply,Cn=!o(function(){_n(function(){})});Pt({target:"Reflect",stat:!0,forced:Cn},{apply:function(t,e,r){return Yt(t),O(r),_n?_n(t,e,r):Nn.call(t,e,r)}});var Fn=[].slice,Bn={},Dn=Function.bind||function(t){var e=Yt(this),r=Fn.call(arguments,1),n=function(){var o=r.concat(Fn.call(arguments));return this instanceof n?function(t,e,r){if(!(e in Bn)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Bn[e]=Function("C,a","return new C("+n.join(",")+")")}return Bn[e](t,r)}(e,o.length,o):e.apply(t,o)};return g(e.prototype)&&(n.prototype=e.prototype),n},qn=rt("Reflect","construct"),zn=o(function(){function t(){}return!(qn(function(){},[],t)instanceof t)}),Wn=!o(function(){qn(function(){})}),Kn=zn||Wn;Pt({target:"Reflect",stat:!0,forced:Kn,sham:Kn},{construct:function(t,e){Yt(t),O(e);var r=arguments.length<3?t:Yt(arguments[2]);if(Wn&&!zn)return qn(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Dn.apply(t,n))}var o=r.prototype,i=$t(g(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return g(a)?a:i}});var Gn=o(function(){Reflect.defineProperty(I.f({},1,{value:1}),1,{value:2})});Pt({target:"Reflect",stat:!0,forced:Gn,sham:!i},{defineProperty:function(t,e,r){O(t);var n=y(e,!0);O(r);try{return I.f(t,n,r),!0}catch(t){return!1}}});var $n=R.f;Pt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=$n(O(t),e);return!(r&&!r.configurable)&&delete t[e]}}),Pt({target:"Reflect",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return O(e)===i?e[r]:(n=R.f(e,r))?b(n,"value")?n.value:void 0===n.get?void 0:n.get.call(i):g(o=Oe(e))?t(o,r,i):void 0}}),Pt({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return R.f(O(t),e)}}),Pt({target:"Reflect",stat:!0,sham:!xe},{getPrototypeOf:function(t){return Oe(O(t))}}),Pt({target:"Reflect",stat:!0},{has:function(t,e){return e in t}});var Vn=Object.isExtensible;Pt({target:"Reflect",stat:!0},{isExtensible:function(t){return O(t),!Vn||Vn(t)}}),Pt({target:"Reflect",stat:!0},{ownKeys:bt}),Pt({target:"Reflect",stat:!0,sham:!Sr},{preventExtensions:function(t){O(t);try{var e=rt("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}});var Hn=o(function(){var t=I.f({},"a",{configurable:!0});return!1!==Reflect.set(Oe(t),"a",1,t)});Pt({target:"Reflect",stat:!0,forced:Hn},{set:function t(e,r,n){var o,i,a=arguments.length<4?e:arguments[3],u=R.f(O(e),r);if(!u){if(g(i=Oe(e)))return t(i,r,n,a);u=c(0)}if(b(u,"value")){if(!1===u.writable||!g(a))return!1;if(o=R.f(a,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,I.f(a,r,o)}else I.f(a,r,c(0,n));return!0}return void 0!==u.set&&(u.set.call(a,n),!0)}}),Fe&&Pt({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){O(t),Ce(e);try{return Fe(t,e),!0}catch(t){return!1}}});var Xn=wr.getWeakData,Yn=Q.set,Jn=Q.getterFor,Qn=ie.find,Zn=ie.findIndex,to=0,eo=function(t){return t.frozen||(t.frozen=new ro)},ro=function(){this.entries=[]},no=function(t,e){return Qn(t.entries,function(t){return t[0]===e})};ro.prototype={get:function(t){var e=no(this,t);if(e)return e[1]},has:function(t){return!!no(this,t)},set:function(t,e){var r=no(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Zn(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var oo={getConstructor:function(t,e,r,n){var o=t(function(t,i){xr(t,o,e),Yn(t,{type:e,id:to++,frozen:void 0}),null!=i&&Er(i,t[n],t,r)}),i=Jn(e),a=function(t,e,r){var n=i(t),o=Xn(O(e),!0);return!0===o?eo(n).set(e,r):o[n.id]=r,t};return Or(o.prototype,{delete:function(t){var e=i(this);if(!g(t))return!1;var r=Xn(t);return!0===r?eo(e).delete(t):r&&b(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!g(t))return!1;var r=Xn(t);return!0===r?eo(e).has(t):r&&b(r,e.id)}}),Or(o.prototype,r?{get:function(t){var e=i(this);if(g(t)){var r=Xn(t);return!0===r?eo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},io=e(function(t){var e,r=Q.enforce,o=!n.ActiveXObject&&"ActiveXObject"in n,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},u=t.exports=Rr("WeakMap",a,oo);if(F&&o){e=oo.getConstructor(a,"WeakMap",!0),wr.REQUIRED=!0;var s=u.prototype,c=s.delete,f=s.has,l=s.get,h=s.set;Or(s,{delete:function(t){if(g(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),c.call(this,t)||n.frozen.delete(t)}return c.call(this,t)},has:function(t){if(g(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)||n.frozen.has(t)}return f.call(this,t)},get:function(t){if(g(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)?l.call(this,t):n.frozen.get(t)}return l.call(this,t)},set:function(t,n){if(g(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),f.call(this,t)?h.call(this,t,n):o.frozen.set(t,n)}else h.call(this,t,n);return this}})}}),ao=B("metadata"),uo=ao.store||(ao.store=new io),so=function(t,e,r){var n=uo.get(t);if(!n){if(!r)return;uo.set(t,n=new Mr)}var o=n.get(e);if(!o){if(!r)return;n.set(e,o=new Mr)}return o},co={store:uo,getMap:so,has:function(t,e,r){var n=so(e,r,!1);return void 0!==n&&n.has(t)},get:function(t,e,r){var n=so(e,r,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,r,n){so(r,n,!0).set(t,e)},keys:function(t,e){var r=so(t,e,!1),n=[];return r&&r.forEach(function(t,e){n.push(e)}),n},toKey:function(t){return void 0===t||"symbol"==typeof t?t:String(t)}},fo=co.toKey,lo=co.set;Pt({target:"Reflect",stat:!0},{defineMetadata:function(t,e,r){var n=arguments.length<4?void 0:fo(arguments[3]);lo(t,e,O(r),n)}});var ho=co.toKey,po=co.getMap,vo=co.store;Pt({target:"Reflect",stat:!0},{deleteMetadata:function(t,e){var r=arguments.length<3?void 0:ho(arguments[2]),n=po(O(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var o=vo.get(e);return o.delete(r),!!o.size||vo.delete(e)}});var go=co.has,yo=co.get,mo=co.toKey,bo=function(t,e,r){if(go(t,e,r))return yo(t,e,r);var n=Oe(e);return null!==n?bo(t,n,r):void 0};Pt({target:"Reflect",stat:!0},{getMetadata:function(t,e){var r=arguments.length<3?void 0:mo(arguments[2]);return bo(t,O(e),r)}});var So=Rr("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ur),wo=co.keys,Eo=co.toKey,xo=function(t,e){var r=wo(t,e),n=Oe(t);if(null===n)return r;var o,i,a=xo(n,e);return a.length?r.length?(o=new So(r.concat(a)),Er(o,(i=[]).push,i),i):a:r};Pt({target:"Reflect",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:Eo(arguments[1]);return xo(O(t),e)}});var Ao=co.get,Ro=co.toKey;Pt({target:"Reflect",stat:!0},{getOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Ro(arguments[2]);return Ao(t,O(e),r)}});var Oo=co.keys,jo=co.toKey;Pt({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:jo(arguments[1]);return Oo(O(t),e)}});var Io=co.has,Po=co.toKey,To=function(t,e,r){if(Io(t,e,r))return!0;var n=Oe(e);return null!==n&&To(t,n,r)};Pt({target:"Reflect",stat:!0},{hasMetadata:function(t,e){var r=arguments.length<3?void 0:Po(arguments[2]);return To(t,O(e),r)}});var ko=co.has,Lo=co.toKey;Pt({target:"Reflect",stat:!0},{hasOwnMetadata:function(t,e){var r=arguments.length<3?void 0:Lo(arguments[2]);return ko(t,O(e),r)}});var Uo=co.toKey,Mo=co.set;Pt({target:"Reflect",stat:!0},{metadata:function(t,e){return function(r,n){Mo(t,e,O(r),Uo(n))}}});var _o=Ft("match"),No=function(t){var e;return g(t)&&(void 0!==(e=t[_o])?!!e:"RegExp"==l(t))},Co=function(){var t=O(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};function Fo(t,e){return RegExp(t,e)}var Bo={UNSUPPORTED_Y:o(function(){var t=Fo("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:o(function(){var t=Fo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},Do=I.f,qo=yt.f,zo=Q.set,Wo=Ft("match"),Ko=n.RegExp,Go=Ko.prototype,$o=/a/g,Vo=/a/g,Ho=new Ko($o)!==$o,Xo=Bo.UNSUPPORTED_Y;if(i&&jt("RegExp",!Ho||Xo||o(function(){return Vo[Wo]=!1,Ko($o)!=$o||Ko(Vo)==Vo||"/a/i"!=Ko($o,"i")}))){for(var Yo=function(t,e){var r,n=this instanceof Yo,o=No(t),i=void 0===e;if(!n&&o&&t.constructor===Yo&&i)return t;Ho?o&&!i&&(t=t.source):t instanceof Yo&&(i&&(e=Co.call(t)),t=t.source),Xo&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=Ar(Ho?new Ko(t,e):Ko(t,e),n?this:Go,Yo);return Xo&&r&&zo(a,{sticky:r}),a},Jo=function(t){t in Yo||Do(Yo,t,{configurable:!0,get:function(){return Ko[t]},set:function(e){Ko[t]=e}})},Qo=qo(Ko),Zo=0;Qo.length>Zo;)Jo(Qo[Zo++]);Go.constructor=Yo,Yo.prototype=Go,Z(n,"RegExp",Yo)}Ir("RegExp");var ti=RegExp.prototype,ei=ti.toString;(o(function(){return"/a/b"!=ei.call({source:"a",flags:"b"})})||"toString"!=ei.name)&&Z(RegExp.prototype,"toString",function(){var t=O(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in ti)?Co.call(t):r)},{unsafe:!0});var ri=RegExp.prototype.exec,ni=String.prototype.replace,oi=ri,ii=function(){var t=/a/,e=/b*/g;return ri.call(t,"a"),ri.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),ai=Bo.UNSUPPORTED_Y||Bo.BROKEN_CARET,ui=void 0!==/()??/.exec("")[1];(ii||ui||ai)&&(oi=function(t){var e,r,n,o,i=this,a=ai&&i.sticky,u=Co.call(i),s=i.source,c=0,f=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(s="(?: "+s+")",f=" "+f,c++),r=new RegExp("^(?:"+s+")",u)),ui&&(r=new RegExp("^"+s+"$(?!\\s)",u)),ii&&(e=i.lastIndex),n=ri.call(a?r:i,f),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:ii&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),ui&&n&&n.length>1&&ni.call(n[0],r,function(){var t=arguments;for(o=1;o<arguments.length-2;o++)void 0===t[o]&&(n[o]=void 0)}),n});var si=oi;Pt({target:"RegExp",proto:!0,forced:/./.exec!==si},{exec:si}),i&&("g"!=/./g.flags||Bo.UNSUPPORTED_Y)&&I.f(RegExp.prototype,"flags",{configurable:!0,get:Co});var ci=Q.get,fi=RegExp.prototype;i&&Bo.UNSUPPORTED_Y&&(0,I.f)(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==fi){if(this instanceof RegExp)return!!ci(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}});var li,hi,pi=(li=!1,(hi=/[ac]/).exec=function(){return li=!0,/./.exec.apply(this,arguments)},!0===hi.test("abc")&&li),di=/./.test;Pt({target:"RegExp",proto:!0,forced:!pi},{test:function(t){if("function"!=typeof this.exec)return di.call(this,t);var e=this.exec(t);if(null!==e&&!g(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}});var vi=Ft("species"),gi=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),yi="$0"==="a".replace(/./,"$0"),mi=Ft("replace"),bi=!!/./[mi]&&""===/./[mi]("a","$0"),Si=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),wi=function(t,e,r,n){var i=Ft(t),a=!o(function(){var e={};return e[i]=function(){return 7},7!=""[t](e)}),u=a&&!o(function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[vi]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e});if(!a||!u||"replace"===t&&(!gi||!yi||bi)||"split"===t&&!Si){var s=/./[i],c=r(i,""[t],function(t,e,r,n,o){return e.exec===si?a&&!o?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:yi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:bi}),f=c[1];Z(String.prototype,t,c[0]),Z(RegExp.prototype,i,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&P(RegExp.prototype[i],"sham",!0)},Ei=Ee.charAt,xi=function(t,e,r){return e+(r?Ei(t,e).length:1)},Ai=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==l(t))throw TypeError("RegExp#exec called on incompatible receiver");return si.call(t,e)};wi("match",1,function(t,e,r){return[function(e){var r=d(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=O(t),i=String(this);if(!o.global)return Ai(o,i);var a=o.unicode;o.lastIndex=0;for(var u,s=[],c=0;null!==(u=Ai(o,i));){var f=String(u[0]);s[c]=f,""===f&&(o.lastIndex=xi(i,ut(o.lastIndex),a)),c++}return 0===c?null:s}]});var Ri=Math.max,Oi=Math.min,ji=Math.floor,Ii=/\$([$&'`]|\d\d?|<[^>]*>)/g,Pi=/\$([$&'`]|\d\d?)/g;wi("replace",2,function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(r,n){var o=d(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var s=r(e,t,this,n);if(s.done)return s.value}var c=O(t),f=String(this),l="function"==typeof n;l||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var v=Ai(c,f);if(null===v)break;if(d.push(v),!h)break;""===String(v[0])&&(c.lastIndex=xi(f,ut(c.lastIndex),p))}for(var g,y="",m=0,b=0;b<d.length;b++){v=d[b];for(var S=String(v[0]),w=Ri(Oi(it(v.index),f.length),0),E=[],x=1;x<v.length;x++)E.push(void 0===(g=v[x])?g:String(g));var A=v.groups;if(l){var R=[S].concat(E,w,f);void 0!==A&&R.push(A);var j=String(n.apply(void 0,R))}else j=u(S,f,w,E,A,n);w>=m&&(y+=f.slice(m,w)+j,m=w+S.length)}return y+f.slice(m)}];function u(t,r,n,o,i,a){var u=n+t.length,s=o.length,c=Pi;return void 0!==i&&(i=Tt(i),c=Ii),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=i[a.slice(1,-1)];break;default:var f=+a;if(0===f)return e;if(f>s){var l=ji(f/10);return 0===l?e:l<=s?void 0===o[l-1]?a.charAt(1):o[l-1]+a.charAt(1):e}c=o[f-1]}return void 0===c?"":c})}}),wi("search",1,function(t,e,r){return[function(e){var r=d(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=O(t),i=String(this),a=o.lastIndex;Un(a,0)||(o.lastIndex=0);var u=Ai(o,i);return Un(o.lastIndex,a)||(o.lastIndex=a),null===u?-1:u.index}]});var Ti=[].push,ki=Math.min,Li=!o(function(){return!RegExp(4294967295,"y")});wi("split",2,function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(d(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!No(t))return e.call(n,t,o);for(var i,a,u,s=[],c=0,f=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(i=si.call(f,n))&&!((a=f.lastIndex)>c&&(s.push(n.slice(c,i.index)),i.length>1&&i.index<n.length&&Ti.apply(s,i.slice(1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===n.length?!u&&f.test("")||s.push(""):s.push(n.slice(c)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=d(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=O(t),u=String(this),s=Xr(a,RegExp),c=a.unicode,f=new s(Li?a:"^(?:"+a.source+")",(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Li?"y":"g")),l=void 0===o?4294967295:o>>>0;if(0===l)return[];if(0===u.length)return null===Ai(f,u)?[u]:[];for(var h=0,p=0,d=[];p<u.length;){f.lastIndex=Li?p:0;var v,g=Ai(f,Li?u:u.slice(p));if(null===g||(v=ki(ut(f.lastIndex+(Li?0:p)),u.length))===h)p=xi(u,p,c);else{if(d.push(u.slice(h,p)),d.length===l)return d;for(var y=1;y<=g.length-1;y++)if(d.push(g[y]),d.length===l)return d;p=h=v}}return d.push(u.slice(h)),d}]},!Li),Pt({target:"Set",stat:!0},{from:Wr}),Pt({target:"Set",stat:!0},{of:Kr});var Ui=function(){for(var t=arguments,e=O(this),r=Yt(e.add),n=0,o=arguments.length;n<o;n++)r.call(e,t[n]);return e};Pt({target:"Set",proto:!0,real:!0,forced:!1},{addAll:function(){return Ui.apply(this,arguments)}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{deleteAll:function(){return Gr.apply(this,arguments)}});var Mi=function(t){return Set.prototype.values.call(t)};Pt({target:"Set",proto:!0,real:!0,forced:!1},{every:function(t){var e=O(this),r=Mi(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return!Er(r,function(t){if(!n(t,t,e))return Er.stop()},void 0,!1,!0).stopped}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{difference:function(t){var e=O(this),r=new(Xr(e,rt("Set")))(e),n=Yt(r.delete);return Er(t,function(t){n.call(r,t)}),r}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{filter:function(t){var e=O(this),r=Mi(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3),o=new(Xr(e,rt("Set"))),i=Yt(o.add);return Er(r,function(t){n(t,t,e)&&i.call(o,t)},void 0,!1,!0),o}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{find:function(t){var e=O(this),r=Mi(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return Er(r,function(t){if(n(t,t,e))return Er.stop(t)},void 0,!1,!0).result}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{intersection:function(t){var e=O(this),r=new(Xr(e,rt("Set"))),n=Yt(e.has),o=Yt(r.add);return Er(t,function(t){n.call(e,t)&&o.call(r,t)}),r}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{isDisjointFrom:function(t){var e=O(this),r=Yt(e.has);return!Er(t,function(t){if(!0===r.call(e,t))return Er.stop()}).stopped}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{isSubsetOf:function(t){var e=$r(this),r=O(t),n=r.has;return"function"!=typeof n&&(r=new(rt("Set"))(t),n=Yt(r.has)),!Er(e,function(t){if(!1===n.call(r,t))return Er.stop()},void 0,!1,!0).stopped}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{isSupersetOf:function(t){var e=O(this),r=Yt(e.has);return!Er(t,function(t){if(!1===r.call(e,t))return Er.stop()}).stopped}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{join:function(t){var e=O(this),r=Mi(e),n=void 0===t?",":String(t),o=[];return Er(r,o.push,o,!1,!0),o.join(n)}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{map:function(t){var e=O(this),r=Mi(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3),o=new(Xr(e,rt("Set"))),i=Yt(o.add);return Er(r,function(t){i.call(o,n(t,t,e))},void 0,!1,!0),o}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{reduce:function(t){var e=O(this),r=Mi(e),n=arguments.length<2,o=n?void 0:arguments[1];if(Yt(t),Er(r,function(r){n?(n=!1,o=r):o=t(o,r,r,e)},void 0,!1,!0),n)throw TypeError("Reduce of empty set with no initial value");return o}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{some:function(t){var e=O(this),r=Mi(e),n=Jt(t,arguments.length>1?arguments[1]:void 0,3);return Er(r,function(t){if(n(t,t,e))return Er.stop()},void 0,!1,!0).stopped}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{symmetricDifference:function(t){var e=O(this),r=new(Xr(e,rt("Set")))(e),n=Yt(r.delete),o=Yt(r.add);return Er(t,function(t){n.call(r,t)||o.call(r,t)}),r}}),Pt({target:"Set",proto:!0,real:!0,forced:!1},{union:function(t){var e=O(this),r=new(Xr(e,rt("Set")))(e);return Er(t,Yt(r.add),r),r}});var _i,Ni,Ci=rt("navigator","userAgent")||"",Fi=n.process,Bi=Fi&&Fi.versions,Di=Bi&&Bi.v8;Di?Ni=(_i=Di.split("."))[0]+_i[1]:Ci&&(!(_i=Ci.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=Ci.match(/Chrome\/(\d+)/))&&(Ni=_i[1]);var qi=Ni&&+Ni,zi=Ft("species"),Wi=Ft("isConcatSpreadable"),Ki=qi>=51||!o(function(){var t=[];return t[Wi]=!1,t.concat()[0]!==t}),Gi=qi>=51||!o(function(){var t=[];return(t.constructor={})[zi]=function(){return{foo:1}},1!==t.concat(Boolean).foo}),$i=function(t){if(!g(t))return!1;var e=t[Wi];return void 0!==e?!!e:te(t)};Pt({target:"Array",proto:!0,forced:!Ki||!Gi},{concat:function(t){var e,r,n,o,i,a=arguments,u=Tt(this),s=re(u,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if($i(i=-1===e?u:a[e])){if(c+(o=ut(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,c++)r in i&&Je(s,c,i[r])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Je(s,c++,i)}return s.length=c,s}});var Vi=yt.f,Hi={}.toString,Xi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yi={f:function(t){return Xi&&"[object Window]"==Hi.call(t)?function(t){try{return Vi(t)}catch(t){return Xi.slice()}}(t):Vi(v(t))}},Ji={f:Ft},Qi=I.f,Zi=function(t){var e=tt.Symbol||(tt.Symbol={});b(e,t)||Qi(e,t,{value:Ji.f(t)})},ta=ie.forEach,ea=K("hidden"),ra=Ft("toPrimitive"),na=Q.set,oa=Q.getterFor("Symbol"),ia=Object.prototype,aa=n.Symbol,ua=rt("JSON","stringify"),sa=R.f,ca=I.f,fa=Yi.f,la=s.f,ha=B("symbols"),pa=B("op-symbols"),da=B("string-to-symbol-registry"),va=B("symbol-to-string-registry"),ga=B("wks"),ya=n.QObject,ma=!ya||!ya.prototype||!ya.prototype.findChild,ba=i&&o(function(){return 7!=$t(ca({},"a",{get:function(){return ca(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=sa(ia,e);n&&delete ia[e],ca(t,e,r),n&&t!==ia&&ca(ia,e,n)}:ca,Sa=function(t,e){var r=ha[t]=$t(aa.prototype);return na(r,{type:"Symbol",tag:t,description:e}),i||(r.description=e),r},wa=Mt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof aa},Ea=function(t,e,r){t===ia&&Ea(pa,e,r),O(t);var n=y(e,!0);return O(r),b(ha,n)?(r.enumerable?(b(t,ea)&&t[ea][n]&&(t[ea][n]=!1),r=$t(r,{enumerable:c(0,!1)})):(