@react-ssr/core
Version:
React SSR as a view template engine
2 lines (1 loc) • 31.7 kB
JavaScript
"use strict";var t,r=(t=require("react"))&&"object"==typeof t&&"default"in t?t.default:t,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(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 o,i,u=function(t){return t&&t.Math==Math&&t},a=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof e&&e)||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,p={f:l&&!s.call({1:2},1)?function(t){var r=l(this,t);return!!r&&r.enumerable}:s},y=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},v={}.toString,d=function(t){return v.call(t).slice(8,-1)},h="".split,g=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return g(b(t))},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},S=function(t,r){if(!w(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!w(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!w(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!w(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")},O={}.hasOwnProperty,A=function(t,r){return O.call(t,r)},j=a.document,x=w(j)&&w(j.createElement),E=function(t){return x?j.createElement(t):{}},P=!f&&!c((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,k={f:f?T:function(t,r){if(t=m(t),r=S(r,!0),P)try{return T(t,r)}catch(t){}if(A(t,r))return y(!p.f.call(t,r),t[r])}},C=/#|\.prototype\./,_=function(t,r){var e=L[I(t)];return e==R||e!=M&&("function"==typeof r?c(r):!!r)},I=_.normalize=function(t){return String(t).replace(C,".").toLowerCase()},L=_.data={},M=_.NATIVE="N",R=_.POLYFILL="P",F=_,D={},z=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},N=function(t,r,e){if(z(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)}},G=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},U=Object.defineProperty,V={f:f?U:function(t,r,e){if(G(t),r=S(r,!0),G(e),P)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}},W=f?function(t,r,e){return V.f(t,r,y(1,e))}:function(t,r,e){return t[r]=e,t},q=k.f,B=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},H=function(t,r){var e,n,o,i,u,c,f,s,l=t.target,p=t.global,y=t.stat,v=t.proto,d=p?a:y?a[l]:(a[l]||{}).prototype,h=p?D:D[l]||(D[l]={}),g=h.prototype;for(o in r)e=!F(p?o:l+(y?".":"#")+o,t.forced)&&d&&A(d,o),u=h[o],e&&(c=t.noTargetGet?(s=q(d,o))&&s.value:d[o]),i=e&&c?c:r[o],e&&typeof u==typeof i||(f=t.bind&&e?N(i,a):t.wrap&&e?B(i):v&&"function"==typeof i?N(Function.call,i):i,(t.sham||i&&i.sham||u&&u.sham)&&W(f,"sham",!0),h[o]=f,v&&(A(D,n=l+"Prototype")||W(D,n,{}),D[n][o]=i,t.real&&g&&!g[o]&&W(g,o,i)))},J=function(t){return Object(b(t))},Q=Math.ceil,Y=Math.floor,$=function(t){return isNaN(t=+t)?0:(t>0?Y:Q)(t)},K=Math.min,X=function(t){return t>0?K($(t),9007199254740991):0},Z=Array.isArray||function(t){return"Array"==d(t)},tt=a["__core-js_shared__"]||function(t,r){try{W(a,t,r)}catch(e){a[t]=r}return r}("__core-js_shared__",{}),rt=n((function(t){(t.exports=function(t,r){return tt[t]||(tt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),et=0,nt=Math.random(),ot=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++et+nt).toString(36)},it=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),ut=it&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=rt("wks"),ct=a.Symbol,ft=ut?ct:ct&&ct.withoutSetter||ot,st=function(t){return A(at,t)||(it&&A(ct,t)?at[t]=ct[t]:at[t]=ft("Symbol."+t)),at[t]},lt=st("species"),pt=function(t,r){var e;return Z(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Z(e.prototype)?w(e)&&null===(e=e[lt])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)},yt=[].push,vt=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,u=5==t||i;return function(a,c,f,s){for(var l,p,y=J(a),v=g(y),d=N(c,f,3),h=X(v.length),b=0,m=s||pt,w=r?m(a,h):e?m(a,0):void 0;h>b;b++)if((u||b in v)&&(p=d(l=v[b],b,y),t))if(r)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:yt.call(w,l)}else if(o)return!1;return i?-1:n||o?o:w}},dt={forEach:vt(0),map:vt(1),filter:vt(2),some:vt(3),every:vt(4),find:vt(5),findIndex:vt(6)},ht=function(t){return"function"==typeof t?t:void 0},gt=function(t,r){return arguments.length<2?ht(D[t])||ht(a[t]):D[t]&&D[t][r]||a[t]&&a[t][r]},bt=gt("navigator","userAgent")||"",mt=a.process,wt=mt&&mt.versions,St=wt&&wt.v8;St?i=(o=St.split("."))[0]+o[1]:bt&&(!(o=bt.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=bt.match(/Chrome\/(\d+)/))&&(i=o[1]);var Ot=i&&+i,At=st("species"),jt=function(t){return Ot>=51||!c((function(){var r=[];return(r.constructor={})[At]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},xt=Object.defineProperty,Et={},Pt=function(t){throw t},Tt=function(t,r){if(A(Et,t))return Et[t];r||(r={});var e=[][t],n=!!A(r,"ACCESSORS")&&r.ACCESSORS,o=A(r,0)?r[0]:Pt,i=A(r,1)?r[1]:void 0;return Et[t]=!!e&&!c((function(){if(n&&!f)return!0;var t={length:-1};n?xt(t,1,{enumerable:!0,get:Pt}):t[1]=1,e.call(t,o,i)}))},kt=dt.filter,Ct=jt("filter"),_t=Tt("filter");H({target:"Array",proto:!0,forced:!Ct||!_t},{filter:function(t){return kt(this,t,arguments.length>1?arguments[1]:void 0)}});var It=function(t){return D[t+"Prototype"]},Lt=It("Array").filter,Mt=Array.prototype,Rt=function(t){var r=t.filter;return t===Mt||t instanceof Array&&r===Mt.filter?Lt:r},Ft=[].reverse,Dt=[1,2];H({target:"Array",proto:!0,forced:String(Dt)===String(Dt.reverse())},{reverse:function(){return Z(this)&&(this.length=this.length),Ft.call(this)}});var zt=It("Array").reverse,Nt=Array.prototype,Gt=function(t){var r=t.reverse;return t===Nt||t instanceof Array&&r===Nt.reverse?zt:r},Ut=dt.map,Vt=jt("map"),Wt=Tt("map");H({target:"Array",proto:!0,forced:!Vt||!Wt},{map:function(t){return Ut(this,t,arguments.length>1?arguments[1]:void 0)}});var qt=It("Array").map,Bt=Array.prototype,Ht=function(t){var r=t.map;return t===Bt||t instanceof Array&&r===Bt.map?qt:r},Jt=Math.max,Qt=Math.min,Yt=function(t,r){var e=$(t);return e<0?Jt(e+r,0):Qt(e,r)},$t=function(t,r,e){var n=S(r);n in t?V.f(t,n,y(0,e)):t[n]=e},Kt=jt("slice"),Xt=Tt("slice",{ACCESSORS:!0,0:0,1:2}),Zt=st("species"),tr=[].slice,rr=Math.max;H({target:"Array",proto:!0,forced:!Kt||!Xt},{slice:function(t,r){var e,n,o,i=m(this),u=X(i.length),a=Yt(t,u),c=Yt(void 0===r?u:r,u);if(Z(i)&&("function"!=typeof(e=i.constructor)||e!==Array&&!Z(e.prototype)?w(e)&&null===(e=e[Zt])&&(e=void 0):e=void 0,e===Array||void 0===e))return tr.call(i,a,c);for(n=new(void 0===e?Array:e)(rr(c-a,0)),o=0;a<c;a++,o++)a in i&&$t(n,o,i[a]);return n.length=o,n}});var er=It("Array").slice,nr=Array.prototype,or=function(t){var r=t.slice;return t===nr||t instanceof Array&&r===nr.slice?er:r},ir=or,ur=function(t){return function(r,e,n){var o,i=m(r),u=X(i.length),a=Yt(n,u);if(t&&e!=e){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},ar={includes:ur(!0),indexOf:ur(!1)},cr=function(t,r){var e=[][t];return!!e&&c((function(){e.call(null,r||function(){throw 1},1)}))},fr=ar.indexOf,sr=[].indexOf,lr=!!sr&&1/[1].indexOf(1,-0)<0,pr=cr("indexOf"),yr=Tt("indexOf",{ACCESSORS:!0,1:0});H({target:"Array",proto:!0,forced:lr||!pr||!yr},{indexOf:function(t){return lr?sr.apply(this,arguments)||0:fr(this,t,arguments.length>1?arguments[1]:void 0)}});var vr=It("Array").indexOf,dr=Array.prototype,hr=function(t){var r=t.indexOf;return t===dr||t instanceof Array&&r===dr.indexOf?vr:r},gr={},br=!c((function(){return Object.isExtensible(Object.preventExtensions({}))})),mr=n((function(t){var r=V.f,e=ot("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){r(t,e,{value:{objectID:"O"+ ++n,weakData:{}}})},u=t.exports={REQUIRED:!1,fastKey:function(t,r){if(!w(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!A(t,e)){if(!o(t))return"F";if(!r)return"E";i(t)}return t[e].objectID},getWeakData:function(t,r){if(!A(t,e)){if(!o(t))return!0;if(!r)return!1;i(t)}return t[e].weakData},onFreeze:function(t){return br&&u.REQUIRED&&o(t)&&!A(t,e)&&i(t),t}};gr[e]=!0})),wr={},Sr=st("iterator"),Or=Array.prototype,Ar=function(t){return void 0!==t&&(wr.Array===t||Or[Sr]===t)},jr={};jr[st("toStringTag")]="z";var xr="[object z]"===String(jr),Er=st("toStringTag"),Pr="Arguments"==d(function(){return arguments}()),Tr=xr?d: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),Er))?e:Pr?d(r):"Object"==(n=d(r))&&"function"==typeof r.callee?"Arguments":n},kr=st("iterator"),Cr=function(t){if(null!=t)return t[kr]||t["@@iterator"]||wr[Tr(t)]},_r=function(t,r,e,n){try{return n?r(G(e)[0],e[1]):r(e)}catch(r){var o=t.return;throw void 0!==o&&G(o.call(t)),r}},Ir=n((function(t){var r=function(t,r){this.stopped=t,this.result=r};(t.exports=function(t,e,n,o,i){var u,a,c,f,s,l,p,y=N(e,n,o?2:1);if(i)u=t;else{if("function"!=typeof(a=Cr(t)))throw TypeError("Target is not iterable");if(Ar(a)){for(c=0,f=X(t.length);f>c;c++)if((s=o?y(G(p=t[c])[0],p[1]):y(t[c]))&&s instanceof r)return s;return new r(!1)}u=a.call(t)}for(l=u.next;!(p=l.call(u)).done;)if("object"==typeof(s=_r(u,y,p.value,o))&&s&&s instanceof r)return s;return new r(!1)}).stop=function(t){return new r(!0,t)}})),Lr=function(t,r,e){if(!(t instanceof r))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t},Mr=xr?{}.toString:function(){return"[object "+Tr(this)+"]"},Rr=V.f,Fr=st("toStringTag"),Dr=function(t,r,e,n){if(t){var o=e?t:t.prototype;A(o,Fr)||Rr(o,Fr,{configurable:!0,value:r}),n&&!xr&&W(o,"toString",Mr)}},zr=Function.toString;"function"!=typeof tt.inspectSource&&(tt.inspectSource=function(t){return zr.call(t)});var Nr,Gr,Ur,Vr=tt.inspectSource,Wr=a.WeakMap,qr="function"==typeof Wr&&/native code/.test(Vr(Wr)),Br=rt("keys"),Hr=function(t){return Br[t]||(Br[t]=ot(t))},Jr=a.WeakMap;if(qr){var Qr=new Jr,Yr=Qr.get,$r=Qr.has,Kr=Qr.set;Nr=function(t,r){return Kr.call(Qr,t,r),r},Gr=function(t){return Yr.call(Qr,t)||{}},Ur=function(t){return $r.call(Qr,t)}}else{var Xr=Hr("state");gr[Xr]=!0,Nr=function(t,r){return W(t,Xr,r),r},Gr=function(t){return A(t,Xr)?t[Xr]:{}},Ur=function(t){return A(t,Xr)}}var Zr,te={set:Nr,get:Gr,has:Ur,enforce:function(t){return Ur(t)?Gr(t):Nr(t,{})},getterFor:function(t){return function(r){var e;if(!w(r)||(e=Gr(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},re=V.f,ee=dt.forEach,ne=te.set,oe=te.getterFor,ie=ar.indexOf,ue=function(t,r){var e,n=m(t),o=0,i=[];for(e in n)!A(gr,e)&&A(n,e)&&i.push(e);for(;r.length>o;)A(n,e=r[o++])&&(~ie(i,e)||i.push(e));return i},ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ce=Object.keys||function(t){return ue(t,ae)},fe=f?Object.defineProperties:function(t,r){G(t);for(var e,n=ce(r),o=n.length,i=0;o>i;)V.f(t,e=n[i++],r[e]);return t},se=gt("document","documentElement"),le=Hr("IE_PROTO"),pe=function(){},ye=function(t){return"<script>"+t+"<\/script>"},ve=function(){try{Zr=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,r;ve=Zr?function(t){t.write(ye("")),t.close();var r=t.parentWindow.Object;return t=null,r}(Zr):((r=E("iframe")).style.display="none",se.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(ye("document.F=Object")),t.close(),t.F);for(var e=ae.length;e--;)delete ve.prototype[ae[e]];return ve()};gr[le]=!0;var de,he,ge,be=Object.create||function(t,r){var e;return null!==t?(pe.prototype=G(t),e=new pe,pe.prototype=null,e[le]=t):e=ve(),void 0===r?e:fe(e,r)},me=function(t,r,e,n){n&&n.enumerable?t[r]=e:W(t,r,e)},we=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:me(t,n,r[n],e);return t},Se=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Oe=Hr("IE_PROTO"),Ae=Object.prototype,je=Se?Object.getPrototypeOf:function(t){return t=J(t),A(t,Oe)?t[Oe]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ae:null},xe=(st("iterator"),!1);[].keys&&("next"in(ge=[].keys())?(he=je(je(ge)))!==Object.prototype&&(de=he):xe=!0),null==de&&(de={});var Ee={IteratorPrototype:de,BUGGY_SAFARI_ITERATORS:xe},Pe=Ee.IteratorPrototype,Te=function(){return this},ke=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 G(e),function(t){if(!w(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),Ce=Ee.IteratorPrototype,_e=Ee.BUGGY_SAFARI_ITERATORS,Ie=st("iterator"),Le=function(){return this},Me=function(t,r,e,n,o,i,u){!function(t,r,e){var n=r+" Iterator";t.prototype=be(Pe,{next:y(1,e)}),Dr(t,n,!1,!0),wr[n]=Te}(e,r,n);var a,c,f,s=function(t){if(t===o&&h)return h;if(!_e&&t in v)return v[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,v=t.prototype,d=v[Ie]||v["@@iterator"]||o&&v[o],h=!_e&&d||s(o),g="Array"==r&&v.entries||d;if(g&&(a=je(g.call(new t)),Ce!==Object.prototype&&a.next&&(Dr(a,l,!0,!0),wr[l]=Le)),"values"==o&&d&&"values"!==d.name&&(p=!0,h=function(){return d.call(this)}),u&&v[Ie]!==h&&W(v,Ie,h),wr[r]=h,o)if(c={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},u)for(f in c)(_e||p||!(f in v))&&me(v,f,c[f]);else H({target:r,proto:!0,forced:_e||p},c);return c},Re=st("species"),Fe=V.f,De=mr.fastKey,ze=te.set,Ne=te.getterFor,Ge=(function(t,r,e){var n,o=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),u=o?"set":"add",s=a[t],l=s&&s.prototype,p={};if(f&&"function"==typeof s&&(i||l.forEach&&!c((function(){(new s).entries().next()})))){n=r((function(r,e){ne(Lr(r,n,t),{type:t,collection:new s}),null!=e&&Ir(e,r[u],r,o)}));var y=oe(t);ee(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var r="add"==t||"set"==t;!(t in l)||i&&"clear"==t||W(n.prototype,t,(function(e,n){var o=y(this).collection;if(!r&&i&&!w(e))return"get"==t&&void 0;var u=o[t](0===e?0:e,n);return r?this:u}))})),i||re(n.prototype,"size",{configurable:!0,get:function(){return y(this).collection.size}})}else n=e.getConstructor(r,t,o,u),mr.REQUIRED=!0;Dr(n,t,!1,!0),p[t]=n,H({global:!0,forced:!0},p),i||e.setStrong(n,t,o)}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,r,e,n){var o=t((function(t,i){Lr(t,o,r),ze(t,{type:r,index:be(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=i&&Ir(i,t[n],t,e)})),i=Ne(r),u=function(t,r,e){var n,o,u=i(t),c=a(t,r);return c?c.value=e:(u.last=c={index:o=De(r,!0),key:r,value:e,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=c),n&&(n.next=c),f?u.size++:t.size++,"F"!==o&&(u.index[o]=c)),t},a=function(t,r){var e,n=i(t),o=De(r);if("F"!==o)return n.index[o];for(e=n.first;e;e=e.next)if(e.key==r)return e};return we(o.prototype,{clear:function(){for(var t=i(this),r=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete r[e.index],e=e.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var r=i(this),e=a(this,t);if(e){var n=e.next,o=e.previous;delete r.index[e.index],e.removed=!0,o&&(o.next=n),n&&(n.previous=o),r.first==e&&(r.first=n),r.last==e&&(r.last=o),f?r.size--:this.size--}return!!e},forEach:function(t){for(var r,e=i(this),n=N(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!a(this,t)}}),we(o.prototype,e?{get:function(t){var r=a(this,t);return r&&r.value},set:function(t,r){return u(this,0===t?0:t,r)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),f&&Fe(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=Ne(r),i=Ne(n);Me(t,r,(function(t,r){ze(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==r?{value:e.key,done:!1}:"values"==r?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),function(t){var r=gt(t),e=V.f;f&&r&&!r[Re]&&e(r,Re,{configurable:!0,get:function(){return this}})}(r)}}),function(t){return function(r,e){var n,o,i=String(b(r)),u=$(e),a=i.length;return u<0||u>=a?t?"":void 0:(n=i.charCodeAt(u))<55296||n>56319||u+1===a||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):n:t?i.slice(u,u+2):o-56320+(n-55296<<10)+65536}}),Ue={codeAt:Ge(!1),charAt:Ge(!0)}.charAt,Ve=te.set,We=te.getterFor("String Iterator");Me(String,"String",(function(t){Ve(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,r=We(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=Ue(e,n),r.index+=t.length,{value:t,done:!1})}));var qe=te.set,Be=te.getterFor("Array Iterator");Me(Array,"Array",(function(t,r){qe(this,{type:"Array Iterator",target:m(t),index:0,kind:r})}),(function(){var t=Be(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");wr.Arguments=wr.Array;var He=st("toStringTag");for(var Je 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 Qe=a[Je],Ye=Qe&&Qe.prototype;Ye&&Tr(Ye)!==He&&W(Ye,He,Je),wr[Je]=wr.Array}var $e=D.Set,Ke=function(t){return function(r,e,n,o){z(e);var i=J(r),u=g(i),a=X(i.length),c=t?a-1:0,f=t?-1:1;if(n<2)for(;;){if(c in u){o=u[c],c+=f;break}if(c+=f,t?c<0:a<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:a>c;c+=f)c in u&&(o=e(o,u[c],c,i));return o}},Xe={left:Ke(!1),right:Ke(!0)}.left,Ze=cr("reduce"),tn=Tt("reduce",{1:0});H({target:"Array",proto:!0,forced:!Ze||!tn},{reduce:function(t){return Xe(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var rn=It("Array").reduce,en=Array.prototype,nn=function(t){var r=t.reduce;return t===en||t instanceof Array&&r===en.reduce?rn:r},on=st("isConcatSpreadable"),un=Ot>=51||!c((function(){var t=[];return t[on]=!1,t.concat()[0]!==t})),an=jt("concat"),cn=function(t){if(!w(t))return!1;var r=t[on];return void 0!==r?!!r:Z(t)};H({target:"Array",proto:!0,forced:!un||!an},{concat:function(t){var r,e,n,o,i,u=J(this),a=pt(u,0),c=0;for(r=-1,n=arguments.length;r<n;r++)if(cn(i=-1===r?u:arguments[r])){if(c+(o=X(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<o;e++,c++)e in i&&$t(a,c,i[e])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$t(a,c++,i)}return a.length=c,a}});var fn=It("Array").concat,sn=Array.prototype,ln=function(t){var r=t.concat;return t===sn||t instanceof Array&&r===sn.concat?fn:r},pn=[].slice,yn={},vn=function(t,r,e){if(!(r in yn)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";yn[r]=Function("C,a","return new C("+n.join(",")+")")}return yn[r](t,e)},dn=Function.bind||function(t){var r=z(this),e=pn.call(arguments,1),n=function(){var o=e.concat(pn.call(arguments));return this instanceof n?vn(r,o.length,o):r.apply(t,o)};return w(r.prototype)&&(n.prototype=r.prototype),n},hn=gt("Reflect","construct"),gn=c((function(){function t(){}return!(hn((function(){}),[],t)instanceof t)})),bn=!c((function(){hn((function(){}))})),mn=gn||bn;H({target:"Reflect",stat:!0,forced:mn,sham:mn},{construct:function(t,r){z(t),G(r);var e=arguments.length<3?t:z(arguments[2]);if(bn&&!gn)return hn(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(dn.apply(t,n))}var o=e.prototype,i=be(w(o)?o:Object.prototype),u=Function.apply.call(t,i,r);return w(u)?u:i}});var wn=D.Reflect.construct;var Sn=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")};var On=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};H({target:"Object",stat:!0,forced:!f,sham:!f},{defineProperty:V.f});var An=n((function(t){var r=D.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)}));function jn(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),An(t,n.key,n)}}var xn=function(t,r,e){return r&&jn(t.prototype,r),e&&jn(t,e),t};H({target:"Object",stat:!0,sham:!f},{create:be});var En=D.Object,Pn=function(t,r){return En.create(t,r)};H({target:"Object",stat:!0},{setPrototypeOf:ke});var Tn=D.Object.setPrototypeOf,kn=n((function(t){function r(e,n){return t.exports=r=Tn||function(t,r){return t.__proto__=r,t},r(e,n)}t.exports=r}));var Cn=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Pn(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&kn(t,r)},_n={f:st},In=V.f,Ln=function(t){var r=D.Symbol||(D.Symbol={});A(r,t)||In(r,t,{value:_n.f(t)})};Ln("iterator");var Mn=_n.f("iterator"),Rn=ae.concat("length","prototype"),Fn={f:Object.getOwnPropertyNames||function(t){return ue(t,Rn)}},Dn=Fn.f,zn={}.toString,Nn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gn={f:function(t){return Nn&&"[object Window]"==zn.call(t)?function(t){try{return Dn(t)}catch(t){return Nn.slice()}}(t):Dn(m(t))}},Un={f:Object.getOwnPropertySymbols},Vn=dt.forEach,Wn=Hr("hidden"),qn=st("toPrimitive"),Bn=te.set,Hn=te.getterFor("Symbol"),Jn=Object.prototype,Qn=a.Symbol,Yn=gt("JSON","stringify"),$n=k.f,Kn=V.f,Xn=Gn.f,Zn=p.f,to=rt("symbols"),ro=rt("op-symbols"),eo=rt("string-to-symbol-registry"),no=rt("symbol-to-string-registry"),oo=rt("wks"),io=a.QObject,uo=!io||!io.prototype||!io.prototype.findChild,ao=f&&c((function(){return 7!=be(Kn({},"a",{get:function(){return Kn(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=$n(Jn,r);n&&delete Jn[r],Kn(t,r,e),n&&t!==Jn&&Kn(Jn,r,n)}:Kn,co=function(t,r){var e=to[t]=be(Qn.prototype);return Bn(e,{type:"Symbol",tag:t,description:r}),f||(e.description=r),e},fo=ut?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Qn},so=function(t,r,e){t===Jn&&so(ro,r,e),G(t);var n=S(r,!0);return G(e),A(to,n)?(e.enumerable?(A(t,Wn)&&t[Wn][n]&&(t[Wn][n]=!1),e=be(e,{enumerable:y(0,!1)})):(A(t,Wn)||Kn(t,Wn,y(1,{})),t[Wn][n]=!0),ao(t,n,e)):Kn(t,n,e)},lo=function(t,r){G(t);var e=m(r),n=ce(e).concat(ho(e));return Vn(n,(function(r){f&&!po.call(e,r)||so(t,r,e[r])})),t},po=function(t){var r=S(t,!0),e=Zn.call(this,r);return!(this===Jn&&A(to,r)&&!A(ro,r))&&(!(e||!A(this,r)||!A(to,r)||A(this,Wn)&&this[Wn][r])||e)},yo=function(t,r){var e=m(t),n=S(r,!0);if(e!==Jn||!A(to,n)||A(ro,n)){var o=$n(e,n);return!o||!A(to,n)||A(e,Wn)&&e[Wn][n]||(o.enumerable=!0),o}},vo=function(t){var r=Xn(m(t)),e=[];return Vn(r,(function(t){A(to,t)||A(gr,t)||e.push(t)})),e},ho=function(t){var r=t===Jn,e=Xn(r?ro:m(t)),n=[];return Vn(e,(function(t){!A(to,t)||r&&!A(Jn,t)||n.push(to[t])})),n};if(it||(me((Qn=function(){if(this instanceof Qn)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=ot(t),e=function(t){this===Jn&&e.call(ro,t),A(this,Wn)&&A(this[Wn],r)&&(this[Wn][r]=!1),ao(this,r,y(1,t))};return f&&uo&&ao(Jn,r,{configurable:!0,set:e}),co(r,t)}).prototype,"toString",(function(){return Hn(this).tag})),me(Qn,"withoutSetter",(function(t){return co(ot(t),t)})),p.f=po,V.f=so,k.f=yo,Fn.f=Gn.f=vo,Un.f=ho,_n.f=function(t){return co(st(t),t)},f&&Kn(Qn.prototype,"description",{configurable:!0,get:function(){return Hn(this).description}})),H({global:!0,wrap:!0,forced:!it,sham:!it},{Symbol:Qn}),Vn(ce(oo),(function(t){Ln(t)})),H({target:"Symbol",stat:!0,forced:!it},{for:function(t){var r=String(t);if(A(eo,r))return eo[r];var e=Qn(r);return eo[r]=e,no[e]=r,e},keyFor:function(t){if(!fo(t))throw TypeError(t+" is not a symbol");if(A(no,t))return no[t]},useSetter:function(){uo=!0},useSimple:function(){uo=!1}}),H({target:"Object",stat:!0,forced:!it,sham:!f},{create:function(t,r){return void 0===r?be(t):lo(be(t),r)},defineProperty:so,defineProperties:lo,getOwnPropertyDescriptor:yo}),H({target:"Object",stat:!0,forced:!it},{getOwnPropertyNames:vo,getOwnPropertySymbols:ho}),H({target:"Object",stat:!0,forced:c((function(){Un.f(1)}))},{getOwnPropertySymbols:function(t){return Un.f(J(t))}}),Yn){var go=!it||c((function(){var t=Qn();return"[null]"!=Yn([t])||"{}"!=Yn({a:t})||"{}"!=Yn(Object(t))}));H({target:"JSON",stat:!0,forced:go},{stringify:function(t,r,e){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=r,(w(r)||void 0!==t)&&!fo(t))return Z(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!fo(r))return r}),o[1]=r,Yn.apply(null,o)}})}Qn.prototype[qn]||W(Qn.prototype,qn,Qn.prototype.valueOf),Dr(Qn,"Symbol"),gr[Wn]=!0,Ln("asyncIterator"),Ln("hasInstance"),Ln("isConcatSpreadable"),Ln("match"),Ln("matchAll"),Ln("replace"),Ln("search"),Ln("species"),Ln("split"),Ln("toPrimitive"),Ln("toStringTag"),Ln("unscopables"),Dr(Math,"Math",!0),Dr(a.JSON,"JSON",!0);var bo=D.Symbol;Ln("asyncDispose"),Ln("dispose"),Ln("observable"),Ln("patternMatch"),Ln("replaceAll");var mo=bo,wo=n((function(t){function r(e){return t.exports=r="function"==typeof mo&&"symbol"==typeof Mn?function(t){return typeof t}:function(t){return t&&"function"==typeof mo&&t.constructor===mo&&t!==mo.prototype?"symbol":typeof t},r(e)}t.exports=r}));var So=function(t,r){return!r||"object"!==wo(r)&&"function"!=typeof r?On(t):r},Oo=c((function(){je(1)}));H({target:"Object",stat:!0,forced:Oo,sham:!Se},{getPrototypeOf:function(t){return je(J(t))}});var Ao=D.Object.getPrototypeOf,jo=n((function(t){function r(e){return t.exports=r=Tn?Ao:function(t){return t.__proto__||Ao(t)},r(e)}t.exports=r}));H({target:"Array",stat:!0},{isArray:Z});var xo=D.Array.isArray;var Eo=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 Po=function(t){if(xo(t))return Eo(t)},To=st("iterator"),ko=!1;try{var Co=0,_o={next:function(){return{done:!!Co++}},return:function(){ko=!0}};_o[To]=function(){return this},Array.from(_o,(function(){throw 2}))}catch(t){}var Io=!function(t,r){if(!r&&!ko)return!1;var e=!1;try{var n={};n[To]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e}((function(t){Array.from(t)}));H({target:"Array",stat:!0,forced:Io},{from:function(t){var r,e,n,o,i,u,a=J(t),c="function"==typeof this?this:Array,f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,p=Cr(a),y=0;if(l&&(s=N(s,f>2?arguments[2]:void 0,2)),null==p||c==Array&&Ar(p))for(e=new c(r=X(a.length));r>y;y++)u=l?s(a[y],y):a[y],$t(e,y,u);else for(i=(o=p.call(a)).next,e=new c;!(n=i.call(o)).done;y++)u=l?_r(o,s,[n.value,y],!0):n.value,$t(e,y,u);return e.length=y,e}});var Lo=D.Array.from,Mo=st("iterator"),Ro=function(t){var r=Object(t);return void 0!==r[Mo]||"@@iterator"in r||wr.hasOwnProperty(Tr(r))};var Fo=function(t){if(void 0!==mo&&Ro(Object(t)))return Lo(t)},Do=or;var zo=function(t,r){var e;if(t){if("string"==typeof t)return Eo(t,r);var n=Do(e=Object.prototype.toString.call(t)).call(e,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Lo(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(t,r):void 0}};var No=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Go=function(t){return Po(t)||Fo(t)||zo(t)||No()};function Uo(t){var r=function(){if("undefined"==typeof Reflect||!wn)return!1;if(wn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wn(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=jo(t);if(r){var o=jo(this).constructor;e=wn(n,arguments,o)}else e=n.apply(this,arguments);return So(this,e)}}var Vo="undefined"==typeof window,Wo=[r.createElement("meta",{charSet:"utf-8"}),r.createElement("meta",{name:"viewport",content:"width=device-width"})];function qo(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===r.Fragment?ln(t).call(t,nn(n=r.Children.toArray(e.props.children)).call(n,(function(t,r){return"string"==typeof r||"number"==typeof r?t:ln(t).call(t,r)}),[])):ln(t).call(t,e);var n}var Bo=["name","httpEquiv","charSet","itemProp"];function Ho(t){var e,n,o,i,u,a;return Ht(e=Gt(n=Rt(o=ln(i=Gt(u=nn(a=nn(t).call(t,(function(t,e){var n=r.Children.toArray(e.props.children);return ln(t).call(t,n)}),[])).call(a,qo,[])).call(u)).call(i,Wo)).call(o,function(){var t=new $e,r=new $e,e=new $e,n={};return function(o){var i,u=!0;if(o.key&&"number"!=typeof o.key&&hr(i=o.key).call(i,"$")>0){var a,c,f=ir(a=o.key).call(a,hr(c=o.key).call(c,"$")+1);t.has(f)?u=!1:t.add(f)}switch(o.type){case"title":case"base":r.has(o.type)?u=!1:r.add(o.type);break;case"meta":for(var s=0,l=Bo.length;s<l;s++){var p=Bo[s];if(o.props.hasOwnProperty(p))if("charSet"===p)e.has(p)?u=!1:e.add(p);else{var y=o.props[p],v=n[p]||new $e;v.has(y)?u=!1:(v.add(y),n[p]=v)}}}return u}}())).call(n)).call(e,(function(t,e){var n=t.key||e;return r.cloneElement(t,{key:n})}))}var Jo=function(){var t,e=new $e;function n(r){t=r.props.reduceComponentsToState(Go(e),r.props)}return function(r){Cn(i,r);var o=Uo(i);function i(t){var r;return Sn(this,i),r=o.call(this,t),Vo&&(e.add(On(r)),n(On(r))),r}return xn(i,null,[{key:"rewind",value:function(){var r=t;return t=void 0,e.clear(),r}}]),xn(i,[{key:"componentDidMount",value:function(){e.add(this),n(this)}},{key:"componentDidUpdate",value:function(){n(this)}},{key:"componentWillUnmount",value:function(){e.delete(this),n(this)}},{key:"render",value:function(){return null}}]),i}(r.Component)}();function Qo(t){var e=t.children;return r.createElement(Jo,{reduceComponentsToState:Ho},e)}Qo.rewind=Jo.rewind,module.exports=Qo;