@react-ssr/core
Version:
React SSR as a view template engine
1 lines • 51.7 kB
JavaScript
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var r=t(require("path")),e=t(require("fs-extra")),n=t(require("react")),o=t(require("slash")),i=t(require("lz-string")),a=t(require("urlsafe-base64")),c=t(require("fs")),u=t(require("recursive-readdir")),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t,r,e){return t(e={path:r,exports:{},require:function(t,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&e.path)}},e.exports),e.exports}var l=f((function(t){var r=function(t){var r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,r,e,n){var o=r&&r.prototype instanceof f?r:f,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=b(a,e);if(c){if(c===s)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var f=u(t,r,e);if("normal"===f.type){if(n=e.done?"completed":"suspendedYield",f.arg===s)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(n="completed",e.method="throw",e.arg=f.arg)}}}(t,e,a),i}function u(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var s={};function f(){}function l(){}function p(){}var h={};h[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(j([])));y&&y!==r&&e.call(y,o)&&(h=y);var d=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(r){t[r]=function(t){return this._invoke(r,t)}}))}function m(t,r){var n;this._invoke=function(o,i){function a(){return new r((function(n,a){!function n(o,i,a,c){var s=u(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&e.call(l,"__await")?r.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):r.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function b(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,b(t,r),"throw"===r.method))return s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}function w(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function j(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return l.prototype=d.constructor=p,p.constructor=l,p[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===l||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(d),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new m(c(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(d),d[a]="Generator",d[o]=function(){return this},d.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),u=e.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),s},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),s}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:j(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}})),p=function(t){return t&&t.Math==Math&&t},h=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof s&&s)||Function("return this")(),v=function(t){try{return!!t()}catch(t){return!0}},y=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m={f:g&&!d.call({1:2},1)?function(t){var r=g(this,t);return!!r&&r.enumerable}:d},b=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},w={}.toString,S=function(t){return w.call(t).slice(8,-1)},x="".split,j=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?x.call(t,""):Object(t)}:Object,O=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},E=function(t){return j(O(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},P=function(t,r){if(!A(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!A(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!A(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!A(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,L=function(t,r){return _.call(t,r)},T=h.document,k=A(T)&&A(T.createElement),C=function(t){return k?T.createElement(t):{}},I=!y&&!v((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,M={f:y?N:function(t,r){if(t=E(t),r=P(r,!0),I)try{return N(t,r)}catch(t){}if(L(t,r))return b(!m.f.call(t,r),t[r])}},F=/#|\.prototype\./,D=function(t,r){var e=R[q(t)];return e==W||e!=G&&("function"==typeof r?v(r):!!r)},q=D.normalize=function(t){return String(t).replace(F,".").toLowerCase()},R=D.data={},G=D.NATIVE="N",W=D.POLYFILL="P",V=D,J={},B=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},z=function(t,r,e){if(B(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}},H=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},U=Object.defineProperty,Y={f:y?U:function(t,r,e){if(H(t),r=P(r,!0),H(e),I)try{return U(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},$=y?function(t,r,e){return Y.f(t,r,b(1,e))}:function(t,r,e){return t[r]=e,t},K=M.f,Q=function(t){var r=function(r,e,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,e)}return new t(r,e,n)}return t.apply(this,arguments)};return r.prototype=t.prototype,r},X=function(t,r){var e,n,o,i,a,c,u,s,f=t.target,l=t.global,p=t.stat,v=t.proto,y=l?h:p?h[f]:(h[f]||{}).prototype,d=l?J:J[f]||(J[f]={}),g=d.prototype;for(o in r)e=!V(l?o:f+(p?".":"#")+o,t.forced)&&y&&L(y,o),a=d[o],e&&(c=t.noTargetGet?(s=K(y,o))&&s.value:y[o]),i=e&&c?c:r[o],e&&typeof a==typeof i||(u=t.bind&&e?z(i,h):t.wrap&&e?Q(i):v&&"function"==typeof i?z(Function.call,i):i,(t.sham||i&&i.sham||a&&a.sham)&&$(u,"sham",!0),d[o]=u,v&&(L(J,n=f+"Prototype")||$(J,n,{}),J[n][o]=i,t.real&&g&&!g[o]&&$(g,o,i)))},Z=function(t){return Object(O(t))},tt=Math.ceil,rt=Math.floor,et=function(t){return isNaN(t=+t)?0:(t>0?rt:tt)(t)},nt=Math.min,ot=function(t){return t>0?nt(et(t),9007199254740991):0},it=Math.max,at=Math.min,ct=function(t,r){var e=et(t);return e<0?it(e+r,0):at(e,r)},ut=function(t){return function(r,e,n){var o,i=E(r),a=ot(i.length),c=ct(n,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},st={includes:ut(!0),indexOf:ut(!1)},ft={},lt=st.indexOf,pt=function(t,r){var e,n=E(t),o=0,i=[];for(e in n)!L(ft,e)&&L(n,e)&&i.push(e);for(;r.length>o;)L(n,e=r[o++])&&(~lt(i,e)||i.push(e));return i},ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=Object.keys||function(t){return pt(t,ht)},yt=v((function(){vt(1)}));X({target:"Object",stat:!0,forced:yt},{keys:function(t){return vt(Z(t))}});var dt=J.Object.keys,gt=dt,mt={},bt=h["__core-js_shared__"]||function(t,r){try{$(h,t,r)}catch(e){h[t]=r}return r}("__core-js_shared__",{}),wt=Function.toString;"function"!=typeof bt.inspectSource&&(bt.inspectSource=function(t){return wt.call(t)});var St,xt,jt,Ot=bt.inspectSource,Et=h.WeakMap,At="function"==typeof Et&&/native code/.test(Ot(Et)),Pt=f((function(t){(t.exports=function(t,r){return bt[t]||(bt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),_t=0,Lt=Math.random(),Tt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++_t+Lt).toString(36)},kt=Pt("keys"),Ct=function(t){return kt[t]||(kt[t]=Tt(t))},It=h.WeakMap;if(At){var Nt=new It,Mt=Nt.get,Ft=Nt.has,Dt=Nt.set;St=function(t,r){return Dt.call(Nt,t,r),r},xt=function(t){return Mt.call(Nt,t)||{}},jt=function(t){return Ft.call(Nt,t)}}else{var qt=Ct("state");ft[qt]=!0,St=function(t,r){return $(t,qt,r),r},xt=function(t){return L(t,qt)?t[qt]:{}},jt=function(t){return L(t,qt)}}var Rt,Gt,Wt,Vt={set:St,get:xt,has:jt,enforce:function(t){return jt(t)?xt(t):St(t,{})},getterFor:function(t){return function(r){var e;if(!A(r)||(e=xt(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},Jt=!v((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Bt=Ct("IE_PROTO"),zt=Object.prototype,Ht=Jt?Object.getPrototypeOf:function(t){return t=Z(t),L(t,Bt)?t[Bt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?zt:null},Ut=!!Object.getOwnPropertySymbols&&!v((function(){return!String(Symbol())})),Yt=Ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$t=Pt("wks"),Kt=h.Symbol,Qt=Yt?Kt:Kt&&Kt.withoutSetter||Tt,Xt=function(t){return L($t,t)||(Ut&&L(Kt,t)?$t[t]=Kt[t]:$t[t]=Qt("Symbol."+t)),$t[t]},Zt=(Xt("iterator"),!1);[].keys&&("next"in(Wt=[].keys())?(Gt=Ht(Ht(Wt)))!==Object.prototype&&(Rt=Gt):Zt=!0),null==Rt&&(Rt={});var tr,rr={IteratorPrototype:Rt,BUGGY_SAFARI_ITERATORS:Zt},er=y?Object.defineProperties:function(t,r){H(t);for(var e,n=vt(r),o=n.length,i=0;o>i;)Y.f(t,e=n[i++],r[e]);return t},nr=function(t){return"function"==typeof t?t:void 0},or=function(t,r){return arguments.length<2?nr(J[t])||nr(h[t]):J[t]&&J[t][r]||h[t]&&h[t][r]},ir=or("document","documentElement"),ar=Ct("IE_PROTO"),cr=function(){},ur=function(t){return"<script>"+t+"<\/script>"},sr=function(){try{tr=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,r;sr=tr?function(t){t.write(ur("")),t.close();var r=t.parentWindow.Object;return t=null,r}(tr):((r=C("iframe")).style.display="none",ir.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(ur("document.F=Object")),t.close(),t.F);for(var e=ht.length;e--;)delete sr.prototype[ht[e]];return sr()};ft[ar]=!0;var fr=Object.create||function(t,r){var e;return null!==t?(cr.prototype=H(t),e=new cr,cr.prototype=null,e[ar]=t):e=sr(),void 0===r?e:er(e,r)},lr={};lr[Xt("toStringTag")]="z";var pr="[object z]"===String(lr),hr=Xt("toStringTag"),vr="Arguments"==S(function(){return arguments}()),yr=pr?S:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),hr))?e:vr?S(r):"Object"==(n=S(r))&&"function"==typeof r.callee?"Arguments":n},dr=pr?{}.toString:function(){return"[object "+yr(this)+"]"},gr=Y.f,mr=Xt("toStringTag"),br=function(t,r,e,n){if(t){var o=e?t:t.prototype;L(o,mr)||gr(o,mr,{configurable:!0,value:r}),n&&!pr&&$(o,"toString",dr)}},wr=rr.IteratorPrototype,Sr=function(){return this},xr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return H(e),function(t){if(!A(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),r?t.call(e,n):e.__proto__=n,e}}():void 0),jr=function(t,r,e,n){n&&n.enumerable?t[r]=e:$(t,r,e)},Or=rr.IteratorPrototype,Er=rr.BUGGY_SAFARI_ITERATORS,Ar=Xt("iterator"),Pr=function(){return this},_r=function(t,r,e,n,o,i,a){!function(t,r,e){var n=r+" Iterator";t.prototype=fr(wr,{next:b(1,e)}),br(t,n,!1,!0),mt[n]=Sr}(e,r,n);var c,u,s,f=function(t){if(t===o&&y)return y;if(!Er&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",p=!1,h=t.prototype,v=h[Ar]||h["@@iterator"]||o&&h[o],y=!Er&&v||f(o),d="Array"==r&&h.entries||v;if(d&&(c=Ht(d.call(new t)),Or!==Object.prototype&&c.next&&(br(c,l,!0,!0),mt[l]=Pr)),"values"==o&&v&&"values"!==v.name&&(p=!0,y=function(){return v.call(this)}),a&&h[Ar]!==y&&$(h,Ar,y),mt[r]=y,o)if(u={values:f("values"),keys:i?y:f("keys"),entries:f("entries")},a)for(s in u)(Er||p||!(s in h))&&jr(h,s,u[s]);else X({target:r,proto:!0,forced:Er||p},u);return u},Lr=Vt.set,Tr=Vt.getterFor("Array Iterator");_r(Array,"Array",(function(t,r){Lr(this,{type:"Array Iterator",target:E(t),index:0,kind:r})}),(function(){var t=Tr(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values");mt.Arguments=mt.Array;var kr=Xt("toStringTag");for(var Cr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ir=h[Cr],Nr=Ir&&Ir.prototype;Nr&&yr(Nr)!==kr&&$(Nr,kr,Cr),mt[Cr]=mt.Array}var Mr=Array.isArray||function(t){return"Array"==S(t)},Fr=Xt("species"),Dr=function(t,r){var e;return Mr(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Mr(e.prototype)?A(e)&&null===(e=e[Fr])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)},qr=[].push,Rr=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(c,u,s,f){for(var l,p,h=Z(c),v=j(h),y=z(u,s,3),d=ot(v.length),g=0,m=f||Dr,b=r?m(c,d):e?m(c,0):void 0;d>g;g++)if((a||g in v)&&(p=y(l=v[g],g,h),t))if(r)b[g]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:qr.call(b,l)}else if(o)return!1;return i?-1:n||o?o:b}},Gr={forEach:Rr(0),map:Rr(1),filter:Rr(2),some:Rr(3),every:Rr(4),find:Rr(5),findIndex:Rr(6)},Wr=function(t,r){var e=[][t];return!!e&&v((function(){e.call(null,r||function(){throw 1},1)}))},Vr=Object.defineProperty,Jr={},Br=function(t){throw t},zr=function(t,r){if(L(Jr,t))return Jr[t];r||(r={});var e=[][t],n=!!L(r,"ACCESSORS")&&r.ACCESSORS,o=L(r,0)?r[0]:Br,i=L(r,1)?r[1]:void 0;return Jr[t]=!!e&&!v((function(){if(n&&!y)return!0;var t={length:-1};n?Vr(t,1,{enumerable:!0,get:Br}):t[1]=1,e.call(t,o,i)}))},Hr=Gr.forEach,Ur=Wr("forEach"),Yr=zr("forEach"),$r=Ur&&Yr?[].forEach:function(t){return Hr(this,t,arguments.length>1?arguments[1]:void 0)};X({target:"Array",proto:!0,forced:[].forEach!=$r},{forEach:$r});var Kr=function(t){return J[t+"Prototype"]},Qr=Kr("Array").forEach,Xr=Array.prototype,Zr={DOMTokenList:!0,NodeList:!0},te=function(t){var r=t.forEach;return t===Xr||t instanceof Array&&r===Xr.forEach||Zr.hasOwnProperty(yr(t))?Qr:r},re=st.indexOf,ee=[].indexOf,ne=!!ee&&1/[1].indexOf(1,-0)<0,oe=Wr("indexOf"),ie=zr("indexOf",{ACCESSORS:!0,1:0});X({target:"Array",proto:!0,forced:ne||!oe||!ie},{indexOf:function(t){return ne?ee.apply(this,arguments)||0:re(this,t,arguments.length>1?arguments[1]:void 0)}});var ae=Kr("Array").indexOf,ce=Array.prototype,ue=function(t){var r=t.indexOf;return t===ce||t instanceof Array&&r===ce.indexOf?ae:r},se=ht.concat("length","prototype"),fe={f:Object.getOwnPropertyNames||function(t){return pt(t,se)}},le=fe.f,pe={}.toString,he="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ve={f:function(t){return he&&"[object Window]"==pe.call(t)?function(t){try{return le(t)}catch(t){return he.slice()}}(t):le(E(t))}},ye={f:Object.getOwnPropertySymbols},de={f:Xt},ge=Y.f,me=function(t){var r=J.Symbol||(J.Symbol={});L(r,t)||ge(r,t,{value:de.f(t)})},be=Gr.forEach,we=Ct("hidden"),Se=Xt("toPrimitive"),xe=Vt.set,je=Vt.getterFor("Symbol"),Oe=Object.prototype,Ee=h.Symbol,Ae=or("JSON","stringify"),Pe=M.f,_e=Y.f,Le=ve.f,Te=m.f,ke=Pt("symbols"),Ce=Pt("op-symbols"),Ie=Pt("string-to-symbol-registry"),Ne=Pt("symbol-to-string-registry"),Me=Pt("wks"),Fe=h.QObject,De=!Fe||!Fe.prototype||!Fe.prototype.findChild,qe=y&&v((function(){return 7!=fr(_e({},"a",{get:function(){return _e(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=Pe(Oe,r);n&&delete Oe[r],_e(t,r,e),n&&t!==Oe&&_e(Oe,r,n)}:_e,Re=function(t,r){var e=ke[t]=fr(Ee.prototype);return xe(e,{type:"Symbol",tag:t,description:r}),y||(e.description=r),e},Ge=Yt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ee},We=function(t,r,e){t===Oe&&We(Ce,r,e),H(t);var n=P(r,!0);return H(e),L(ke,n)?(e.enumerable?(L(t,we)&&t[we][n]&&(t[we][n]=!1),e=fr(e,{enumerable:b(0,!1)})):(L(t,we)||_e(t,we,b(1,{})),t[we][n]=!0),qe(t,n,e)):_e(t,n,e)},Ve=function(t,r){H(t);var e=E(r),n=vt(e).concat(He(e));return be(n,(function(r){y&&!Je.call(e,r)||We(t,r,e[r])})),t},Je=function(t){var r=P(t,!0),e=Te.call(this,r);return!(this===Oe&&L(ke,r)&&!L(Ce,r))&&(!(e||!L(this,r)||!L(ke,r)||L(this,we)&&this[we][r])||e)},Be=function(t,r){var e=E(t),n=P(r,!0);if(e!==Oe||!L(ke,n)||L(Ce,n)){var o=Pe(e,n);return!o||!L(ke,n)||L(e,we)&&e[we][n]||(o.enumerable=!0),o}},ze=function(t){var r=Le(E(t)),e=[];return be(r,(function(t){L(ke,t)||L(ft,t)||e.push(t)})),e},He=function(t){var r=t===Oe,e=Le(r?Ce:E(t)),n=[];return be(e,(function(t){!L(ke,t)||r&&!L(Oe,t)||n.push(ke[t])})),n};if(Ut||(jr((Ee=function(){if(this instanceof Ee)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=Tt(t),e=function(t){this===Oe&&e.call(Ce,t),L(this,we)&&L(this[we],r)&&(this[we][r]=!1),qe(this,r,b(1,t))};return y&&De&&qe(Oe,r,{configurable:!0,set:e}),Re(r,t)}).prototype,"toString",(function(){return je(this).tag})),jr(Ee,"withoutSetter",(function(t){return Re(Tt(t),t)})),m.f=Je,Y.f=We,M.f=Be,fe.f=ve.f=ze,ye.f=He,de.f=function(t){return Re(Xt(t),t)},y&&_e(Ee.prototype,"description",{configurable:!0,get:function(){return je(this).description}})),X({global:!0,wrap:!0,forced:!Ut,sham:!Ut},{Symbol:Ee}),be(vt(Me),(function(t){me(t)})),X({target:"Symbol",stat:!0,forced:!Ut},{for:function(t){var r=String(t);if(L(Ie,r))return Ie[r];var e=Ee(r);return Ie[r]=e,Ne[e]=r,e},keyFor:function(t){if(!Ge(t))throw TypeError(t+" is not a symbol");if(L(Ne,t))return Ne[t]},useSetter:function(){De=!0},useSimple:function(){De=!1}}),X({target:"Object",stat:!0,forced:!Ut,sham:!y},{create:function(t,r){return void 0===r?fr(t):Ve(fr(t),r)},defineProperty:We,defineProperties:Ve,getOwnPropertyDescriptor:Be}),X({target:"Object",stat:!0,forced:!Ut},{getOwnPropertyNames:ze,getOwnPropertySymbols:He}),X({target:"Object",stat:!0,forced:v((function(){ye.f(1)}))},{getOwnPropertySymbols:function(t){return ye.f(Z(t))}}),Ae){var Ue=!Ut||v((function(){var t=Ee();return"[null]"!=Ae([t])||"{}"!=Ae({a:t})||"{}"!=Ae(Object(t))}));X({target:"JSON",stat:!0,forced:Ue},{stringify:function(t,r,e){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=r,(A(r)||void 0!==t)&&!Ge(t))return Mr(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!Ge(r))return r}),o[1]=r,Ae.apply(null,o)}})}Ee.prototype[Se]||$(Ee.prototype,Se,Ee.prototype.valueOf),br(Ee,"Symbol"),ft[we]=!0;var Ye=J.Object.getOwnPropertySymbols,$e=dt;var Ke=function(t,r){if(null==t)return{};var e,n,o={},i=$e(t);for(n=0;n<i.length;n++)e=i[n],ue(r).call(r,e)>=0||(o[e]=t[e]);return o};var Qe,Xe,Ze=function(t,r){if(null==t)return{};var e,n,o=Ke(t,r);if(Ye){var i=Ye(t);for(n=0;n<i.length;n++)e=i[n],ue(r).call(r,e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o},tn=or("navigator","userAgent")||"",rn=h.process,en=rn&&rn.versions,nn=en&&en.v8;nn?Xe=(Qe=nn.split("."))[0]+Qe[1]:tn&&(!(Qe=tn.match(/Edge\/(\d+)/))||Qe[1]>=74)&&(Qe=tn.match(/Chrome\/(\d+)/))&&(Xe=Qe[1]);var on=Xe&&+Xe,an=Xt("species"),cn=function(t){return on>=51||!v((function(){var r=[];return(r.constructor={})[an]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},un=Gr.map,sn=cn("map"),fn=zr("map");X({target:"Array",proto:!0,forced:!sn||!fn},{map:function(t){return un(this,t,arguments.length>1?arguments[1]:void 0)}});var ln=Kr("Array").map,pn=Array.prototype,hn=function(t){var r=t.map;return t===pn||t instanceof Array&&r===pn.map?ln:r},vn=function(t){return function(r,e){var n,o,i=String(O(r)),a=et(e),c=i.length;return a<0||a>=c?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===c||(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}},yn={codeAt:vn(!1),charAt:vn(!0)}.charAt,dn=Vt.set,gn=Vt.getterFor("String Iterator");_r(String,"String",(function(t){dn(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,r=gn(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=yn(e,n),r.index+=t.length,{value:t,done:!1})}));var mn=h.Promise,bn=Xt("species"),wn=Xt("iterator"),Sn=Array.prototype,xn=function(t){return void 0!==t&&(mt.Array===t||Sn[wn]===t)},jn=Xt("iterator"),On=function(t){if(null!=t)return t[jn]||t["@@iterator"]||mt[yr(t)]},En=function(t,r,e,n){try{return n?r(H(e)[0],e[1]):r(e)}catch(r){var o=t.return;throw void 0!==o&&H(o.call(t)),r}},An=f((function(t){var r=function(t,r){this.stopped=t,this.result=r};(t.exports=function(t,e,n,o,i){var a,c,u,s,f,l,p,h=z(e,n,o?2:1);if(i)a=t;else{if("function"!=typeof(c=On(t)))throw TypeError("Target is not iterable");if(xn(c)){for(u=0,s=ot(t.length);s>u;u++)if((f=o?h(H(p=t[u])[0],p[1]):h(t[u]))&&f instanceof r)return f;return new r(!1)}a=c.call(t)}for(l=a.next;!(p=l.call(a)).done;)if("object"==typeof(f=En(a,h,p.value,o))&&f&&f instanceof r)return f;return new r(!1)}).stop=function(t){return new r(!0,t)}})),Pn=Xt("iterator"),_n=!1;try{var Ln=0,Tn={next:function(){return{done:!!Ln++}},return:function(){_n=!0}};Tn[Pn]=function(){return this},Array.from(Tn,(function(){throw 2}))}catch(t){}var kn,Cn,In,Nn=function(t,r){if(!r&&!_n)return!1;var e=!1;try{var n={};n[Pn]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e},Mn=Xt("species"),Fn=function(t,r){var e,n=H(t).constructor;return void 0===n||null==(e=H(n)[Mn])?r:B(e)},Dn=/(iphone|ipod|ipad).*applewebkit/i.test(tn),qn=h.location,Rn=h.setImmediate,Gn=h.clearImmediate,Wn=h.process,Vn=h.MessageChannel,Jn=h.Dispatch,Bn=0,zn={},Hn=function(t){if(zn.hasOwnProperty(t)){var r=zn[t];delete zn[t],r()}},Un=function(t){return function(){Hn(t)}},Yn=function(t){Hn(t.data)},$n=function(t){h.postMessage(t+"",qn.protocol+"//"+qn.host)};Rn&&Gn||(Rn=function(t){for(var r=[],e=1;arguments.length>e;)r.push(arguments[e++]);return zn[++Bn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)},kn(Bn),Bn},Gn=function(t){delete zn[t]},"process"==S(Wn)?kn=function(t){Wn.nextTick(Un(t))}:Jn&&Jn.now?kn=function(t){Jn.now(Un(t))}:Vn&&!Dn?(In=(Cn=new Vn).port2,Cn.port1.onmessage=Yn,kn=z(In.postMessage,In,1)):!h.addEventListener||"function"!=typeof postMessage||h.importScripts||v($n)||"file:"===qn.protocol?kn="onreadystatechange"in C("script")?function(t){ir.appendChild(C("script")).onreadystatechange=function(){ir.removeChild(this),Hn(t)}}:function(t){setTimeout(Un(t),0)}:(kn=$n,h.addEventListener("message",Yn,!1)));var Kn,Qn,Xn,Zn,to,ro,eo,no,oo={set:Rn,clear:Gn},io=M.f,ao=oo.set,co=h.MutationObserver||h.WebKitMutationObserver,uo=h.process,so=h.Promise,fo="process"==S(uo),lo=io(h,"queueMicrotask"),po=lo&&lo.value;po||(Kn=function(){var t,r;for(fo&&(t=uo.domain)&&t.exit();Qn;){r=Qn.fn,Qn=Qn.next;try{r()}catch(t){throw Qn?Zn():Xn=void 0,t}}Xn=void 0,t&&t.enter()},fo?Zn=function(){uo.nextTick(Kn)}:co&&!Dn?(to=!0,ro=document.createTextNode(""),new co(Kn).observe(ro,{characterData:!0}),Zn=function(){ro.data=to=!to}):so&&so.resolve?(eo=so.resolve(void 0),no=eo.then,Zn=function(){no.call(eo,Kn)}):Zn=function(){ao.call(h,Kn)});var ho,vo,yo,go=po||function(t){var r={fn:t,next:void 0};Xn&&(Xn.next=r),Qn||(Qn=r,Zn()),Xn=r},mo=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n})),this.resolve=B(r),this.reject=B(e)},bo={f:function(t){return new mo(t)}},wo=function(t,r){if(H(t),A(r)&&r.constructor===t)return r;var e=bo.f(t);return(0,e.resolve)(r),e.promise},So=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},xo=oo.set,jo=Xt("species"),Oo="Promise",Eo=Vt.get,Ao=Vt.set,Po=Vt.getterFor(Oo),_o=mn,Lo=h.TypeError,To=h.document,ko=h.process,Co=(or("fetch"),bo.f),Io=Co,No="process"==S(ko),Mo=!!(To&&To.createEvent&&h.dispatchEvent),Fo=V(Oo,(function(){if(!(Ot(_o)!==String(_o))){if(66===on)return!0;if(!No&&"function"!=typeof PromiseRejectionEvent)return!0}if(!_o.prototype.finally)return!0;if(on>=51&&/native code/.test(_o))return!1;var t=_o.resolve(1),r=function(t){t((function(){}),(function(){}))};return(t.constructor={})[jo]=r,!(t.then((function(){}))instanceof r)})),Do=Fo||!Nn((function(t){_o.all(t).catch((function(){}))})),qo=function(t){var r;return!(!A(t)||"function"!=typeof(r=t.then))&&r},Ro=function(t,r,e){if(!r.notified){r.notified=!0;var n=r.reactions;go((function(){for(var o=r.value,i=1==r.state,a=0;n.length>a;){var c,u,s,f=n[a++],l=i?f.ok:f.fail,p=f.resolve,h=f.reject,v=f.domain;try{l?(i||(2===r.rejection&&Jo(t,r),r.rejection=1),!0===l?c=o:(v&&v.enter(),c=l(o),v&&(v.exit(),s=!0)),c===f.promise?h(Lo("Promise-chain cycle")):(u=qo(c))?u.call(c,p,h):p(c)):h(o)}catch(t){v&&!s&&v.exit(),h(t)}}r.reactions=[],r.notified=!1,e&&!r.rejection&&Wo(t,r)}))}},Go=function(t,r,e){var n,o;Mo?((n=To.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),h.dispatchEvent(n)):n={promise:r,reason:e},(o=h["on"+t])?o(n):"unhandledrejection"===t&&function(t,r){var e=h.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,r))}("Unhandled promise rejection",e)},Wo=function(t,r){xo.call(h,(function(){var e,n=r.value;if(Vo(r)&&(e=So((function(){No?ko.emit("unhandledRejection",n,t):Go("unhandledrejection",t,n)})),r.rejection=No||Vo(r)?2:1,e.error))throw e.value}))},Vo=function(t){return 1!==t.rejection&&!t.parent},Jo=function(t,r){xo.call(h,(function(){No?ko.emit("rejectionHandled",t):Go("rejectionhandled",t,r.value)}))},Bo=function(t,r,e,n){return function(o){t(r,e,o,n)}},zo=function(t,r,e,n){r.done||(r.done=!0,n&&(r=n),r.value=e,r.state=2,Ro(t,r,!0))},Ho=function(t,r,e,n){if(!r.done){r.done=!0,n&&(r=n);try{if(t===e)throw Lo("Promise can't be resolved itself");var o=qo(e);o?go((function(){var n={done:!1};try{o.call(e,Bo(Ho,t,n,r),Bo(zo,t,n,r))}catch(e){zo(t,n,e,r)}})):(r.value=e,r.state=1,Ro(t,r,!1))}catch(e){zo(t,{done:!1},e,r)}}};Fo&&(_o=function(t){!function(t,r,e){if(!(t instanceof r))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation")}(this,_o,Oo),B(t),ho.call(this);var r=Eo(this);try{t(Bo(Ho,this,r),Bo(zo,this,r))}catch(t){zo(this,r,t)}},(ho=function(t){Ao(this,{type:Oo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:jr(t,n,r[n],e);return t}(_o.prototype,{then:function(t,r){var e=Po(this),n=Co(Fn(this,_o));return n.ok="function"!=typeof t||t,n.fail="function"==typeof r&&r,n.domain=No?ko.domain:void 0,e.parent=!0,e.reactions.push(n),0!=e.state&&Ro(this,e,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),vo=function(){var t=new ho,r=Eo(t);this.promise=t,this.resolve=Bo(Ho,t,r),this.reject=Bo(zo,t,r)},bo.f=Co=function(t){return t===_o||t===yo?new vo(t):Io(t)}),X({global:!0,wrap:!0,forced:Fo},{Promise:_o}),br(_o,Oo,!1,!0),function(t){var r=or(t),e=Y.f;y&&r&&!r[bn]&&e(r,bn,{configurable:!0,get:function(){return this}})}(Oo),yo=or(Oo),X({target:Oo,stat:!0,forced:Fo},{reject:function(t){var r=Co(this);return r.reject.call(void 0,t),r.promise}}),X({target:Oo,stat:!0,forced:!0},{resolve:function(t){return wo(this===yo?_o:this,t)}}),X({target:Oo,stat:!0,forced:Do},{all:function(t){var r=this,e=Co(r),n=e.resolve,o=e.reject,i=So((function(){var e=B(r.resolve),i=[],a=0,c=1;An(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,e.call(r,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),e.promise},race:function(t){var r=this,e=Co(r),n=e.reject,o=So((function(){var o=B(r.resolve);An(t,(function(t){o.call(r,t).then(e.resolve,n)}))}));return o.error&&n(o.value),e.promise}}),X({target:"Promise",stat:!0},{allSettled:function(t){var r=this,e=bo.f(r),n=e.resolve,o=e.reject,i=So((function(){var e=B(r.resolve),o=[],i=0,a=1;An(t,(function(t){var c=i++,u=!1;o.push(void 0),a++,e.call(r,t).then((function(t){u||(u=!0,o[c]={status:"fulfilled",value:t},--a||n(o))}),(function(t){u||(u=!0,o[c]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),e.promise}});var Uo=!!mn&&v((function(){mn.prototype.finally.call({then:function(){}},(function(){}))}));X({target:"Promise",proto:!0,real:!0,forced:Uo},{finally:function(t){var r=Fn(this,or("Promise")),e="function"==typeof t;return this.then(e?function(e){return wo(r,t()).then((function(){return e}))}:t,e?function(e){return wo(r,t()).then((function(){throw e}))}:t)}});var Yo=J.Promise,$o=Vt.set,Ko=Vt.getterFor("AggregateError"),Qo=function(t,r){var e=this;if(!(e instanceof Qo))return new Qo(t,r);xr&&(e=xr(new Error(r),Ht(e)));var n=[];return An(t,n.push,n),y?$o(e,{errors:n,type:"AggregateError"}):e.errors=n,void 0!==r&&$(e,"message",String(r)),e};Qo.prototype=fr(Error.prototype,{constructor:b(5,Qo),message:b(5,""),name:b(5,"AggregateError")}),y&&Y.f(Qo.prototype,"errors",{get:function(){return Ko(this).errors},configurable:!0}),X({global:!0},{AggregateError:Qo}),X({target:"Promise",stat:!0},{try:function(t){var r=bo.f(this),e=So(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});X({target:"Promise",stat:!0},{any:function(t){var r=this,e=bo.f(r),n=e.resolve,o=e.reject,i=So((function(){var e=B(r.resolve),i=[],a=0,c=1,u=!1;An(t,(function(t){var s=a++,f=!1;i.push(void 0),c++,e.call(r,t).then((function(t){f||u||(u=!0,n(t))}),(function(t){f||u||(f=!0,i[s]=t,--c||o(new(or("AggregateError"))(i,"No one promise resolved")))}))})),--c||o(new(or("AggregateError"))(i,"No one promise resolved"))}));return i.error&&o(i.value),e.promise}});var Xo=Yo;function Zo(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Xo.resolve(u).then(n,o)}var ti=function(t){return function(){var r=this,e=arguments;return new Xo((function(n,o){var i=t.apply(r,e);function a(t){Zo(i,n,o,a,c,"next",t)}function c(t){Zo(i,n,o,a,c,"throw",t)}a(void 0)}))}},ri=st.includes,ei=zr("indexOf",{ACCESSORS:!0,1:0});X({target:"Array",proto:!0,forced:!ei},{includes:function(t){return ri(this,t,arguments.length>1?arguments[1]:void 0)}});var ni=Kr("Array").includes,oi=Xt("match"),ii=function(t){if(function(t){var r;return A(t)&&(void 0!==(r=t[oi])?!!r:"RegExp"==S(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},ai=Xt("match"),ci=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[ai]=!1,"/./"[t](r)}catch(t){}}return!1};X({target:"String",proto:!0,forced:!ci("includes")},{includes:function(t){return!!~String(O(this)).indexOf(ii(t),arguments.length>1?arguments[1]:void 0)}});var ui=Kr("String").includes,si=Array.prototype,fi=String.prototype,li=function(t){var r=t.includes;return t===si||t instanceof Array&&r===si.includes?ni:"string"==typeof t||t===fi||t instanceof String&&r===fi.includes?ui:r},pi=function(t,r,e){var n=P(r);n in t?Y.f(t,n,b(0,e)):t[n]=e},hi=cn("slice"),vi=zr("slice",{ACCESSORS:!0,0:0,1:2}),yi=Xt("species"),di=[].slice,gi=Math.max;X({target:"Array",proto:!0,forced:!hi||!vi},{slice:function(t,r){var e,n,o,i=E(this),a=ot(i.length),c=ct(t,a),u=ct(void 0===r?a:r,a);if(Mr(i)&&("function"!=typeof(e=i.constructor)||e!==Array&&!Mr(e.prototype)?A(e)&&null===(e=e[yi])&&(e=void 0):e=void 0,e===Array||void 0===e))return di.call(i,c,u);for(n=new(void 0===e?Array:e)(gi(u-c,0)),o=0;c<u;c++,o++)c in i&&pi(n,o,i[c]);return n.length=o,n}});var mi=Kr("Array").slice,bi=Array.prototype,wi=function(t){var r=t.slice;return t===bi||t instanceof Array&&r===bi.slice?mi:r},Si=wi,xi=Object.assign,ji=Object.defineProperty,Oi=!xi||v((function(){if(y&&1!==xi({b:1},xi(ji({},"a",{enumerable:!0,get:function(){ji(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),7!=xi({},t)[e]||"abcdefghijklmnopqrst"!=vt(xi({},r)).join("")}))?function(t,r){for(var e=Z(t),n=arguments.length,o=1,i=ye.f,a=m.f;n>o;)for(var c,u=j(arguments[o++]),s=i?vt(u).concat(i(u)):vt(u),f=s.length,l=0;f>l;)c=s[l++],y&&!a.call(u,c)||(e[c]=u[c]);return e}:xi;X({target:"Object",stat:!0,forced:Object.assign!==Oi},{assign:Oi});var Ei=J.Object.assign,Ai=Ei,Pi=f((function(t){function r(){return t.exports=r=Ai||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.apply(this,arguments)}t.exports=r})),_i=or("JSON","stringify"),Li=/[\uD800-\uDFFF]/g,Ti=/^[\uD800-\uDBFF]$/,ki=/^[\uDC00-\uDFFF]$/,Ci=function(t,r,e){var n=e.charAt(r-1),o=e.charAt(r+1);return Ti.test(t)&&!ki.test(o)||ki.test(t)&&!Ti.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},Ii=v((function(){return'"\\udf06\\ud834"'!==_i("\udf06\ud834")||'"\\udead"'!==_i("\udead")}));_i&&X({target:"JSON",stat:!0,forced:Ii},{stringify:function(t,r,e){var n=_i.apply(null,arguments);return"string"==typeof n?n.replace(Li,Ci):n}}),J.JSON||(J.JSON={stringify:JSON.stringify});var Ni=function(t,r,e){return J.JSON.stringify.apply(null,arguments)},Mi=Gr.filter,Fi=cn("filter"),Di=zr("filter");X({target:"Array",proto:!0,forced:!Fi||!Di},{filter:function(t){return Mi(this,t,arguments.length>1?arguments[1]:void 0)}});var qi=Kr("Array").filter,Ri=Array.prototype,Gi=function(t){var r=t.filter;return t===Ri||t instanceof Array&&r===Ri.filter?qi:r},Wi=[].slice,Vi={},Ji=function(t,r,e){if(!(r in Vi)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";Vi[r]=Function("C,a","return new C("+n.join(",")+")")}return Vi[r](t,e)},Bi=Function.bind||function(t){var r=B(this),e=Wi.call(arguments,1),n=function(){var o=e.concat(Wi.call(arguments));return this instanceof n?Ji(r,o.length,o):r.apply(t,o)};return A(r.prototype)&&(n.prototype=r.prototype),n},zi=or("Reflect","construct"),Hi=v((function(){function t(){}return!(zi((function(){}),[],t)instanceof t)})),Ui=!v((function(){zi((function(){}))})),Yi=Hi||Ui;X({target:"Reflect",stat:!0,forced:Yi,sham:Yi},{construct:function(t,r){B(t),H(r);var e=arguments.length<3?t:B(arguments[2]);if(Ui&&!Hi)return zi(t,r,e);if(t==e){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var n=[null];return n.push.apply(n,r),new(Bi.apply(t,n))}var o=e.prototype,i=fr(A(o)?o:Object.prototype),a=Function.apply.call(t,i,r);return A(a)?a:i}});var $i=J.Reflect.construct;var Ki=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")};X({target:"Object",stat:!0,forced:!y,sham:!y},{defineProperty:Y.f});var Qi=f((function(t){var r=J.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)}));function Xi(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Qi(t,n.key,n)}}var Zi=function(t,r,e){return r&&Xi(t.prototype,r),e&&Xi(t,e),t};X({target:"Object",stat:!0,sham:!y},{create:fr});var ta=J.Object,ra=function(t,r){return ta.create(t,r)};X({target:"Object",stat:!0},{setPrototypeOf:xr});var ea=J.Object.setPrototypeOf,na=f((function(t){function r(e,n){return t.exports=r=ea||function(t,r){return t.__proto__=r,t},r(e,n)}t.exports=r}));var oa=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=ra(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&na(t,r)};me("iterator");var ia=de.f("iterator"),aa=Xt("isConcatSpreadable"),ca=on>=51||!v((function(){var t=[];return t[aa]=!1,t.concat()[0]!==t})),ua=cn("concat"),sa=function(t){if(!A(t))return!1;var r=t[aa];return void 0!==r?!!r:Mr(t)};X({target:"Array",proto:!0,forced:!ca||!ua},{concat:function(t){var r,e,n,o,i,a=Z(this),c=Dr(a,0),u=0;for(r=-1,n=arguments.length;r<n;r++)if(sa(i=-1===r?a:arguments[r])){if(u+(o=ot(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<o;e++,u++)e in i&&pi(c,u,i[e])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pi(c,u++,i)}return c.length=u,c}}),me("asyncIterator"),me("hasInstance"),me("isConcatSpreadable"),me("match"),me("matchAll"),me("replace"),me("search"),me("species"),me("split"),me("toPrimitive"),me("toStringTag"),me("unscopables"),br(Math,"Math",!0),br(h.JSON,"JSON",!0);var fa=J.Symbol;me("asyncDispose"),me("dispose"),me("observable"),me("patternMatch"),me("replaceAll");var la=fa,pa=f((function(t){function r(e){return t.exports=r="function"==typeof la&&"symbol"==typeof ia?function(t){return typeof t}:function(t){return t&&"function"==typeof la&&t.constructor===la&&t!==la.prototype?"symbol":typeof t},r(e)}t.exports=r}));var ha=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var va=function(t,r){return!r||"object"!==pa(r)&&"function"!=typeof r?ha(t):r},ya=v((function(){Ht(1)}));X({target:"Object",stat:!0,forced:ya,sham:!Jt},{getPrototypeOf:function(t){return Ht(Z(t))}});var da=J.Object.getPrototypeOf,ga=f((function(t){function r(e){return t.exports=r=ea?da:function(t){return t.__proto__||da(t)},r(e)}t.exports=r}));function ma(t){var r=function(){if("undefined"==typeof Reflect||!$i)return!1;if($i.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call($i(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=ga(t);if(r){var o=ga(this).constructor;e=$i(n,arguments,o)}else e=n.apply(this,arguments);return va(this,e)}}var ba=require("./head"),wa=require("./main"),Sa=function(t){oa(e,t);var r=ma(e);function e(){return Ki(this,e),r.apply(this,arguments)}return Zi(e,[{key:"render",value:function(){return n.createElement("html",this.props)}}]),e}(n.Component),xa=function(t){oa(e,t);var r=ma(e);function e(){return Ki(this,e),r.apply(this,arguments)}return Zi(e,[{key:"render",value:function(){return n.createElement(Sa,null,n.createElement(ba,null),n.createElement("body",null,n.createElement(wa,null)))}}]),e}(n.Component),ja=Kr("Array").concat,Oa=Array.prototype,Ea=function(t){var r=t.concat;return t===Oa||t instanceof Array&&r===Oa.concat?ja:r};X({target:"Array",stat:!0},{isArray:Mr});var Aa=J.Array.isArray;var Pa=function(t){if(Aa(t))return t},_a=!Nn((function(t){Array.from(t)}));X({target:"Array",stat:!0,forced:_a},{from:function(t){var r,e,n,o,i,a,c=Z(t),u="function"==typeof this?this:Array,s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=On(c),h=0;if(l&&(f=z(f,s>2?arguments[2]:void 0,2)),null==p||u==Array&&xn(p))for(e=new u(r=ot(c.length));r>h;h++)a=l?f(c[h],h):c[h],pi(e,h,a);else for(i=(o=p.call(c)).next,e=new u;!(n=i.call(o)).done;h++)a=l?En(o,f,[n.value,h],!0):n.value,pi(e,h,a);return e.length=h,e}});var La=J.Array.from,Ta=Xt("iterator"),ka=function(t){var r=Object(t);return void 0!==r[Ta]||"@@iterator"in r||mt.hasOwnProperty(yr(r))};var Ca=function(t){if(void 0!==la&&ka(Object(t)))return La(t)},Ia=wi;var Na=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n};var Ma=function(t,r){var e;if(t){if("string"==typeof t)return Na(t,r);var n=Ia(e=Object.prototype.toString.call(t)).call(e,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?La(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(t,r):void 0}};var Fa=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Da=function(t){return Pa(t)||Ca(t)||Ma(t)||Fa()},qa="".endsWith,Ra=Math.min,Ga=ci("endsWith");X({target:"String",proto:!0,forced:!Ga},{endsWith:function(t){var r=String(O(this));ii(t);var e=arguments.length>1?arguments[1]:void 0,n=ot(r.length),o=void 0===e?n:Ra(ot(e),n),i=String(t);return qa?qa.call(r,i,o):r.slice(o-i.length,o)===i}});var Wa=Kr("String").endsWith,Va=String.prototype,Ja=function(t){var r=t.endsWith;return"string"==typeof t||t===Va||t instanceof String&&r===Va.endsWith?Wa:r},Ba="".startsWith,za=Math.min,Ha=ci("startsWith");X({target:"String",proto:!0,forced:!Ha},{startsWith:function(t){var r=String(O(this));ii(t);var e=ot(za(arguments.length>1?arguments[1]:void 0,r.length)),n=String(t);return Ba?Ba.call(r,n,e):r.slice(e,e+n.length)===n}});var Ua,Ya,$a,Ka=Kr("String").startsWith,Qa=String.prototype,Xa=function(t){var r=t.startsWith;return"string"==typeof t||t===Qa||t instanceof String&&r===Qa.startsWith?Ka:r},Za=Ei,tc=process.cwd(),rc=function(t){try{return c.accessSync(t,c.constants.F_OK),!0}catch(t){return!1}},ec=function(){var t=process.env.NODE_ENV||"development";return process.env.REACT_SSR_ENV&&(t=process.env.REACT_SSR_ENV),"production"===t},nc=function(){return rc(r.join(tc,"tsconfig.json"))?"tsx":"jsx"},oc=(Ua={id:"default",distDir:".ssr",viewsDir:"views",staticViews:[]},Ya=r.join(tc,"ssr.config.js"),rc(Ya)?Za(Ua,require(Ya)):Ua),ic=function(){var t=ti(l.mark((function t(){var e,n,o,i,a,c,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u(r.join(tc,oc.viewsDir));case 2:e=t.sent,n=[],o=0;case 5:if(!(o<e.length)){t.next=14;break}if(c=e[o],s=r.basename(ac(c,"/")),!Xa(i=s.toLowerCase()).call(i,"_app")&&!Xa(a=s.toLowerCase()).call(a,"_document")){t.next=10;break}return t.abrupt("continue",11);case 10:(Ja(c).call(c,".jsx")||Ja(c).call(c,".tsx"))&&n.push(c);case 11:o++,t.next=5;break;case 14:return t.abrupt("return",n);case 15:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ac=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_",n=t.replace(r.join(tc,oc.viewsDir),"").replace(r.extname(t),"").split(r.sep),o=Da(n),i=Si(o).call(o,1);return i.join(e)},cc=[".*","*.json","*.lock","*.md","*.txt","*.yml","LICENSE"],uc=function(t,e){var n;return e.isDirectory()&&Xa(n=r.basename(t)).call(n,".")},sc=function(t,e){return e.isDirectory()&&"node_modules"==r.basename(t)},fc=function(){var t=ti(l.mark((function t(){var r;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u(tc,Ea(r=[sc,uc]).call(r,cc)));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();require("@babel/register")({extensions:[".js",".jsx",".ts",".tsx"],presets:["@babel/preset-env","@babel/preset-react","@babel/preset-typescript"],plugins:Gi($a=["babel-plugin-react-require",["babel-plugin-css-modules-transform",{extensions:[".css",".scss"]}],"@babel/plugin-syntax-dynamic-import","@babel/plugin-proposal-class-properties",["@babel/plugin-proposal-object-rest-spread",{useBuiltIns:!0}],"@babel/plugin-transform-react-jsx",["@babel/plugin-transform-runtime",{corejs:3,helpers:!0,regenerator:!0,useESModules:!1}],ec()&&["babel-plugin-transform-react-remove-prop-types",{removeImport:!0}]]).call($a,Boolean)});var lc,pc=process.cwd(),hc=".".concat(nc()),vc=require("./document-context"),yc=r.join(pc,oc.viewsDir,"_document".concat(hc));if(rc(yc)){var dc=require(yc);lc=dc.default||dc}else lc=xa;var gc,mc=r.join(pc,oc.viewsDir,"_app".concat(hc));if(rc(mc)){var bc=require(mc);gc=bc.default||bc}else gc=function(t){var r=t.children,e=Ze(t,["children"]),o=r;return n.createElement(o,e)};var wc=function(){var t=ti(l.mark((function t(){var r;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=oc.id,t.next="antd"===t.t0?3:"emotion"===t.t0?7:"material-ui"===t.t0?11:"styled-components"===t.t0?15:19;break;case 3:return t.next=5,Promise.resolve().then((function(){return require("./antd-3c5b2bb5.js")}));case 5:return r=t.sent.default,t.abrupt("break",23);case 7:return t.next=9,Promise.resolve().then((function(){return require("./emotion-3b37d3bf.js")}));case 9:return r=t.sent.default,t.abrupt("break",23);case 11:return t.next=13,Promise.resolve().then((function(){return require("./material-ui-a1b1e0fd.js")}));case 13:return r=t.sent.default,t.abrupt("break",23);case 15:return t.next=17,Promise.resolve().then((function(){return require("./styled-components-e2e5e67e.js")}));case 17:return r=t.sent.default,t.abrupt("break",23);case 19:return t.next=21,Promise.resolve().then((function(){return require("./default-f8f50ed3.js")}));case 21:return r=t.sent.default,t.abrupt("break",23);case 23:return t.abrupt("return",r);case 24:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Sc=function(t){var r=Ni(t),e=Buffer.from(i.compressToUint8Array(r));return a.encode(e)};function xc(t,r){return jc.apply(this,arguments)}function jc(){return(jc=ti(l.mark((function t(i,a){var c,u,s,f,p,h,v;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c=ac(i,"_"),u=r.join(pc,oc.distDir,"".concat(c,".html")),!ec()||!rc(u)){t.next=4;break}return t.abrupt("return",e.readFileSync(u).toString());case 4:return s=(s=require(i)).default||s,t.prev=6,t.next=9,wc();case 9:return t.t0=t.sent,f=(0,t.t0)(n.createElement(vc.Provider,{value:n.createElement(gc,Pi({children:s},a))},n.createElement(lc,null)),c,Sc(a)),t.abrupt("return",f);case 14:return t.prev=14,t.t1=t.catch(6),ec()||console.log(t.t1.stack||t.t1),t.abrupt("return",ec()?"":t.t1.stack||t.t1);case 18:return t.prev=18,ec()&&!rc(u)&&(v=Si(p=o(i.replace(r.join(pc,oc.viewsDir),"").replace(hc,""))).call(p,1),li(h=oc.staticViews).call(h,v)&&e.outputFileSync(u,f)),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[6,14,18,21]])})))).apply(this,arguments)}var Oc,Ec=require("lodash.escaperegexp"),Ac=function(){var t=ti(l.mark((function t(e){var n,o;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=function(){var t=ti(l.mark((function t(r,e,n){var o,i,a,c;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Oc){t.next=6;break}r