UNPKG

@antv/narrative-text-vis

Version:

React component of interactive narrative text

17 lines 214 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("antd")):"function"==typeof define&&define.amd?define(["exports","react","antd"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).NarrativeTextVis={},t.React,t.antd)}(this,(function(t,e,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e),o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},o(t,e)};var s,a=function(){return a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},a.apply(this,arguments)};function c(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function l(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{c(n.next(t))}catch(t){o(t)}}function a(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))}function u(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function h(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function f(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var d=new Uint8Array(16);function p(){if(!s&&!(s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(d)}var g=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function y(t){return"string"==typeof t&&g.test(t)}for(var m=[],v=0;v<256;++v)m.push((v+256).toString(16).substr(1));function x(t,e,r){var n=(t=t||{}).random||(t.rng||p)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(m[t[e+0]]+m[t[e+1]]+m[t[e+2]]+m[t[e+3]]+"-"+m[t[e+4]]+m[t[e+5]]+"-"+m[t[e+6]]+m[t[e+7]]+"-"+m[t[e+8]]+m[t[e+9]]+"-"+m[t[e+10]]+m[t[e+11]]+m[t[e+12]]+m[t[e+13]]+m[t[e+14]]+m[t[e+15]]).toLowerCase();if(!y(r))throw TypeError("Stringified UUID is invalid");return r}(n)}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},w={exports:{}},S={},C=60103,A=60106,T=60107,E=60108,P=60114,O=60109,_=60110,M=60112,N=60113,k=60120,R=60115,V=60116,I=60121,D=60122,z=60117,L=60129,j=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;C=B("react.element"),A=B("react.portal"),T=B("react.fragment"),E=B("react.strict_mode"),P=B("react.profiler"),O=B("react.provider"),_=B("react.context"),M=B("react.forward_ref"),N=B("react.suspense"),k=B("react.suspense_list"),R=B("react.memo"),V=B("react.lazy"),I=B("react.block"),D=B("react.server.block"),z=B("react.fundamental"),L=B("react.debug_trace_mode"),j=B("react.legacy_hidden")}function F(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case C:switch(t=t.type){case T:case P:case E:case N:case k:return t;default:switch(t=t&&t.$$typeof){case _:case M:case V:case R:case O:return t;default:return e}}case A:return e}}}var $=O,U=C,H=M,X=T,Y=V,W=R,q=A,G=P,Q=E,Z=N;S.ContextConsumer=_,S.ContextProvider=$,S.Element=U,S.ForwardRef=H,S.Fragment=X,S.Lazy=Y,S.Memo=W,S.Portal=q,S.Profiler=G,S.StrictMode=Q,S.Suspense=Z,S.isAsyncMode=function(){return!1},S.isConcurrentMode=function(){return!1},S.isContextConsumer=function(t){return F(t)===_},S.isContextProvider=function(t){return F(t)===O},S.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===C},S.isForwardRef=function(t){return F(t)===M},S.isFragment=function(t){return F(t)===T},S.isLazy=function(t){return F(t)===V},S.isMemo=function(t){return F(t)===R},S.isPortal=function(t){return F(t)===A},S.isProfiler=function(t){return F(t)===P},S.isStrictMode=function(t){return F(t)===E},S.isSuspense=function(t){return F(t)===N},S.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===T||t===P||t===L||t===E||t===N||t===k||t===j||"object"==typeof t&&null!==t&&(t.$$typeof===V||t.$$typeof===R||t.$$typeof===O||t.$$typeof===_||t.$$typeof===M||t.$$typeof===z||t.$$typeof===I||t[0]===D)},S.typeOf=F;var K={}; /** @license React v17.0.2 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function J(t){function e(t,n,c,l,f){for(var d,p,g,y,b,S=0,C=0,A=0,T=0,E=0,k=0,V=g=d=0,D=0,z=0,L=0,j=0,B=c.length,F=B-1,$="",U="",H="",X="";D<B;){if(p=c.charCodeAt(D),D===F&&0!==C+T+A+S&&(0!==C&&(p=47===C?10:47),T=A=S=0,B++,F++),0===C+T+A+S){if(D===F&&(0<z&&($=$.replace(h,"")),0<$.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:$+=c.charAt(D)}p=59}switch(p){case 123:for(d=($=$.trim()).charCodeAt(0),g=1,j=++D;D<B;){switch(p=c.charCodeAt(D)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(D+1)){case 42:case 47:t:{for(V=D+1;V<F;++V)switch(c.charCodeAt(V)){case 47:if(42===p&&42===c.charCodeAt(V-1)&&D+2!==V){D=V+1;break t}break;case 10:if(47===p){D=V+1;break t}}D=V}}break;case 91:p++;case 40:p++;case 34:case 39:for(;D++<F&&c.charCodeAt(D)!==p;);}if(0===g)break;D++}if(g=c.substring(j,D),0===d&&(d=($=$.replace(u,"").trim()).charCodeAt(0)),64===d){switch(0<z&&($=$.replace(h,"")),p=$.charCodeAt(1)){case 100:case 109:case 115:case 45:z=n;break;default:z=N}if(j=(g=e(n,z,g,p,f+1)).length,0<R&&(b=a(3,g,z=r(N,$,L),n,O,P,j,p,f,l),$=z.join(""),void 0!==b&&0===(j=(g=b.trim()).length)&&(p=0,g="")),0<j)switch(p){case 115:$=$.replace(w,s);case 100:case 109:case 45:g=$+"{"+g+"}";break;case 107:g=($=$.replace(m,"$1 $2"))+"{"+g+"}",g=1===M||2===M&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=$+g,112===l&&(U+=g,g="")}else g=""}else g=e(n,r(n,$,L),g,l,f+1);H+=g,g=L=z=V=d=0,$="",p=c.charCodeAt(++D);break;case 125:case 59:if(1<(j=($=(0<z?$.replace(h,""):$).trim()).length))switch(0===V&&(d=$.charCodeAt(0),45===d||96<d&&123>d)&&(j=($=$.replace(" ",":")).length),0<R&&void 0!==(b=a(1,$,n,t,O,P,U.length,l,f,l))&&0===(j=($=b.trim()).length)&&($="\0\0"),d=$.charCodeAt(0),p=$.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){X+=$+c.charAt(D);break}default:58!==$.charCodeAt(j-1)&&(U+=i($,d,p,$.charCodeAt(2)))}L=z=V=d=0,$="",p=c.charCodeAt(++D)}}switch(p){case 13:case 10:47===C?C=0:0===1+d&&107!==l&&0<$.length&&(z=1,$+="\0"),0<R*I&&a(0,$,n,t,O,P,U.length,l,f,l),P=1,O++;break;case 59:case 125:if(0===C+T+A+S){P++;break}default:switch(P++,y=c.charAt(D),p){case 9:case 32:if(0===T+S+C)switch(E){case 44:case 58:case 9:case 32:y="";break;default:32!==p&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===T+C+S&&(z=L=1,y="\f"+y);break;case 108:if(0===T+C+S+_&&0<V)switch(D-V){case 2:112===E&&58===c.charCodeAt(D-3)&&(_=E);case 8:111===k&&(_=k)}break;case 58:0===T+C+S&&(V=D);break;case 44:0===C+A+T+S&&(z=1,y+="\r");break;case 34:case 39:0===C&&(T=T===p?0:0===T?p:T);break;case 91:0===T+C+A&&S++;break;case 93:0===T+C+A&&S--;break;case 41:0===T+C+S&&A--;break;case 40:if(0===T+C+S){if(0===d)if(2*E+3*k==533);else d=1;A++}break;case 64:0===C+A+T+S+V+g&&(g=1);break;case 42:case 47:if(!(0<T+S+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(D+1)){case 235:C=47;break;case 220:j=D,C=42}break;case 42:47===p&&42===E&&j+2!==D&&(33===c.charCodeAt(j+2)&&(U+=c.substring(j,D+1)),y="",C=0)}}0===C&&($+=y)}k=E,E=p,D++}if(0<(j=U.length)){if(z=n,0<R&&(void 0!==(b=a(2,U,z,t,O,P,j,l,f,l))&&0===(U=b).length))return X+U+H;if(U=z.join(",")+"{"+U+"}",0!=M*_){switch(2!==M||o(U,2)||(_=0),_){case 111:U=U.replace(x,":-moz-$1")+U;break;case 112:U=U.replace(v,"::-webkit-input-$1")+U.replace(v,"::-moz-$1")+U.replace(v,":-ms-input-$1")+U}_=0}}return X+U+H}function r(t,e,r){var i=e.trim().split(g);e=i;var o=i.length,s=t.length;switch(s){case 0:case 1:var a=0;for(t=0===s?"":t[0]+" ";a<o;++a)e[a]=n(t,e[a],r).trim();break;default:var c=a=0;for(e=[];a<o;++a)for(var l=0;l<s;++l)e[c++]=n(t[l]+" ",i[a],r).trim()}return e}function n(t,e,r){var n=e.charCodeAt(0);switch(33>n&&(n=(e=e.trim()).charCodeAt(0)),n){case 38:return e.replace(y,"$1"+t.trim());case 58:return t.trim()+e.replace(y,"$1"+t.trim());default:if(0<1*r&&0<e.indexOf("\f"))return e.replace(y,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function i(t,e,r,n){var s=t+";",a=2*e+3*r+4*n;if(944===a){t=s.indexOf(":",9)+1;var c=s.substring(t,s.length-1).trim();return c=s.substring(0,t).trim()+c+";",1===M||2===M&&o(c,1)?"-webkit-"+c+c:c}if(0===M||2===M&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return d.test(s)?s.replace(f,":-webkit-")+s.replace(f,":-moz-")+s:s;case 1e3:switch(e=(c=s.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(e)){case 226:c=s.replace(b,"tb");break;case 232:c=s.replace(b,"tb-rl");break;case 220:c=s.replace(b,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(e=(s=t).length-10,a=(c=(33===s.charCodeAt(e)?s.substring(0,e):s).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===T.test(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?i(t.replace("stretch","fill-available"),e,r,n).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+n&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+s}return s}function o(t,e){var r=t.indexOf(1===e?":":"{"),n=t.substring(0,3!==e?r:10);return r=t.substring(r+1,t.length-1),V(2!==e?n:n.replace(A,"$1"),r,e)}function s(t,e){var r=i(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return r!==e+";"?r.replace(S," or ($1)").substring(4):"("+e+")"}function a(t,e,r,n,i,o,s,a,c,u){for(var h,f=0,d=e;f<R;++f)switch(h=k[f].call(l,t,d,r,n,i,o,s,a,c,u)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==e)return d}function c(t){return void 0!==(t=t.prefix)&&(V=null,t?"function"!=typeof t?M=1:(M=2,V=t):M=0),c}function l(t,r){var n=t;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<R){var i=a(-1,r,n,n,O,P,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=e(N,n,r,0,0);return 0<R&&(void 0!==(i=a(-2,o,n,n,O,P,o.length,0,0,0))&&(o=i)),"",_=0,P=O=1,o}var u=/^\0+/g,h=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,x=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,P=1,O=1,_=0,M=1,N=[],k=[],R=0,V=null,I=0;return l.use=function t(e){switch(e){case void 0:case null:R=k.length=0;break;default:if("function"==typeof e)k[R++]=e;else if("object"==typeof e)for(var r=0,n=e.length;r<n;++r)t(e[r]);else I=0|!!e}return t},l.set=c,void 0!==t&&c(t),l}"production"!==process.env.NODE_ENV&&function(){var t=60103,e=60106,r=60107,n=60108,i=60114,o=60109,s=60110,a=60112,c=60113,l=60120,u=60115,h=60116,f=60121,d=60122,p=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;t=m("react.element"),e=m("react.portal"),r=m("react.fragment"),n=m("react.strict_mode"),i=m("react.profiler"),o=m("react.provider"),s=m("react.context"),a=m("react.forward_ref"),c=m("react.suspense"),l=m("react.suspense_list"),u=m("react.memo"),h=m("react.lazy"),f=m("react.block"),d=m("react.server.block"),p=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),g=m("react.debug_trace_mode"),m("react.offscreen"),y=m("react.legacy_hidden")}function v(f){if("object"==typeof f&&null!==f){var d=f.$$typeof;switch(d){case t:var p=f.type;switch(p){case r:case i:case n:case c:case l:return p;default:var g=p&&p.$$typeof;switch(g){case s:case a:case h:case u:case o:return g;default:return d}}case e:return d}}}var x=s,b=o,w=t,S=a,C=r,A=h,T=u,E=e,P=i,O=n,_=c,M=!1,N=!1;K.ContextConsumer=x,K.ContextProvider=b,K.Element=w,K.ForwardRef=S,K.Fragment=C,K.Lazy=A,K.Memo=T,K.Portal=E,K.Profiler=P,K.StrictMode=O,K.Suspense=_,K.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},K.isConcurrentMode=function(t){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},K.isContextConsumer=function(t){return v(t)===s},K.isContextProvider=function(t){return v(t)===o},K.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},K.isForwardRef=function(t){return v(t)===a},K.isFragment=function(t){return v(t)===r},K.isLazy=function(t){return v(t)===h},K.isMemo=function(t){return v(t)===u},K.isPortal=function(t){return v(t)===e},K.isProfiler=function(t){return v(t)===i},K.isStrictMode=function(t){return v(t)===n},K.isSuspense=function(t){return v(t)===c},K.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||(t===r||t===i||t===g||t===n||t===c||t===l||t===y||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===u||t.$$typeof===o||t.$$typeof===s||t.$$typeof===a||t.$$typeof===p||t.$$typeof===f||t[0]===d))},K.typeOf=v}(),"production"===process.env.NODE_ENV?w.exports=S:w.exports=K;var tt={exports:{}},et={};Object.defineProperty(et,"__esModule",{value:!0});et.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var rt={};Object.defineProperty(rt,"__esModule",{value:!0});rt.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},"production"===process.env.NODE_ENV?tt.exports=et:tt.exports=rt;var nt=tt.exports;function it(t){var e=Object.create(null);return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}var ot=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,st=it((function(t){return ot.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),at={exports:{}},ct={},lt="function"==typeof Symbol&&Symbol.for,ut=lt?Symbol.for("react.element"):60103,ht=lt?Symbol.for("react.portal"):60106,ft=lt?Symbol.for("react.fragment"):60107,dt=lt?Symbol.for("react.strict_mode"):60108,pt=lt?Symbol.for("react.profiler"):60114,gt=lt?Symbol.for("react.provider"):60109,yt=lt?Symbol.for("react.context"):60110,mt=lt?Symbol.for("react.async_mode"):60111,vt=lt?Symbol.for("react.concurrent_mode"):60111,xt=lt?Symbol.for("react.forward_ref"):60112,bt=lt?Symbol.for("react.suspense"):60113,wt=lt?Symbol.for("react.suspense_list"):60120,St=lt?Symbol.for("react.memo"):60115,Ct=lt?Symbol.for("react.lazy"):60116,At=lt?Symbol.for("react.block"):60121,Tt=lt?Symbol.for("react.fundamental"):60117,Et=lt?Symbol.for("react.responder"):60118,Pt=lt?Symbol.for("react.scope"):60119;function Ot(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case ut:switch(t=t.type){case mt:case vt:case ft:case pt:case dt:case bt:return t;default:switch(t=t&&t.$$typeof){case yt:case xt:case Ct:case St:case gt:return t;default:return e}}case ht:return e}}}function _t(t){return Ot(t)===vt}ct.AsyncMode=mt,ct.ConcurrentMode=vt,ct.ContextConsumer=yt,ct.ContextProvider=gt,ct.Element=ut,ct.ForwardRef=xt,ct.Fragment=ft,ct.Lazy=Ct,ct.Memo=St,ct.Portal=ht,ct.Profiler=pt,ct.StrictMode=dt,ct.Suspense=bt,ct.isAsyncMode=function(t){return _t(t)||Ot(t)===mt},ct.isConcurrentMode=_t,ct.isContextConsumer=function(t){return Ot(t)===yt},ct.isContextProvider=function(t){return Ot(t)===gt},ct.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===ut},ct.isForwardRef=function(t){return Ot(t)===xt},ct.isFragment=function(t){return Ot(t)===ft},ct.isLazy=function(t){return Ot(t)===Ct},ct.isMemo=function(t){return Ot(t)===St},ct.isPortal=function(t){return Ot(t)===ht},ct.isProfiler=function(t){return Ot(t)===pt},ct.isStrictMode=function(t){return Ot(t)===dt},ct.isSuspense=function(t){return Ot(t)===bt},ct.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===ft||t===vt||t===pt||t===dt||t===bt||t===wt||"object"==typeof t&&null!==t&&(t.$$typeof===Ct||t.$$typeof===St||t.$$typeof===gt||t.$$typeof===yt||t.$$typeof===xt||t.$$typeof===Tt||t.$$typeof===Et||t.$$typeof===Pt||t.$$typeof===At)},ct.typeOf=Ot;var Mt={}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var f=t.$$typeof;switch(f){case e:var g=t.type;switch(g){case c:case l:case n:case o:case i:case h:return g;default:var y=g&&g.$$typeof;switch(y){case a:case u:case p:case d:case s:return y;default:return f}}case r:return f}}}var b=c,w=l,S=a,C=s,A=e,T=u,E=n,P=p,O=d,_=r,M=o,N=i,k=h,R=!1;function V(t){return x(t)===l}Mt.AsyncMode=b,Mt.ConcurrentMode=w,Mt.ContextConsumer=S,Mt.ContextProvider=C,Mt.Element=A,Mt.ForwardRef=T,Mt.Fragment=E,Mt.Lazy=P,Mt.Memo=O,Mt.Portal=_,Mt.Profiler=M,Mt.StrictMode=N,Mt.Suspense=k,Mt.isAsyncMode=function(t){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(t)||x(t)===c},Mt.isConcurrentMode=V,Mt.isContextConsumer=function(t){return x(t)===a},Mt.isContextProvider=function(t){return x(t)===s},Mt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Mt.isForwardRef=function(t){return x(t)===u},Mt.isFragment=function(t){return x(t)===n},Mt.isLazy=function(t){return x(t)===p},Mt.isMemo=function(t){return x(t)===d},Mt.isPortal=function(t){return x(t)===r},Mt.isProfiler=function(t){return x(t)===o},Mt.isStrictMode=function(t){return x(t)===i},Mt.isSuspense=function(t){return x(t)===h},Mt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===o||t===i||t===h||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===y||t.$$typeof===m||t.$$typeof===v||t.$$typeof===g)},Mt.typeOf=x}(),"production"===process.env.NODE_ENV?at.exports=ct:at.exports=Mt;var Nt=at.exports,kt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},It={};function Dt(t){return Nt.isMemo(t)?Vt:It[t.$$typeof]||kt}It[Nt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},It[Nt.Memo]=Vt;var zt=Object.defineProperty,Lt=Object.getOwnPropertyNames,jt=Object.getOwnPropertySymbols,Bt=Object.getOwnPropertyDescriptor,Ft=Object.getPrototypeOf,$t=Object.prototype;var Ut=function t(e,r,n){if("string"!=typeof r){if($t){var i=Ft(r);i&&i!==$t&&t(e,i,n)}var o=Lt(r);jt&&(o=o.concat(jt(r)));for(var s=Dt(e),a=Dt(r),c=0;c<o.length;++c){var l=o[c];if(!(Rt[l]||n&&n[l]||a&&a[l]||s&&s[l])){var u=Bt(r,l);try{zt(e,l,u)}catch(t){}}}}return e};function Ht(){return(Ht=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var Xt=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},Yt=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!w.exports.typeOf(t)},Wt=Object.freeze([]),qt=Object.freeze({});function Gt(t){return"function"==typeof t}function Qt(t){return"production"!==process.env.NODE_ENV&&"string"==typeof t&&t||t.displayName||t.name||"Component"}function Zt(t){return t&&"string"==typeof t.styledComponentId}var Kt="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Jt="undefined"!=typeof window&&"HTMLElement"in window,te=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),ee="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function re(){for(var t=arguments.length<=0?void 0:arguments[0],e=[],r=1,n=arguments.length;r<n;r+=1)e.push(r<0||arguments.length<=r?void 0:arguments[r]);return e.forEach((function(e){t=t.replace(/%[a-z]/,e)})),t}function ne(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(re.apply(void 0,[ee[t]].concat(r)).trim())}var ie=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,r=0;r<t;r++)e+=this.groupSizes[r];return e},e.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;t>=i;)(i<<=1)<0&&ne(16,""+t);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(t+1),a=0,c=e.length;a<c;a++)this.tag.insertRule(s,e[a])&&(this.groupSizes[t]++,s++)},e.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],r=this.indexOfGroup(t),n=r+e;this.groupSizes[t]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r,o=n;o<i;o++)e+=this.tag.getRule(o)+"/*!sc*/\n";return e},t}(),oe=new Map,se=new Map,ae=1,ce=function(t){if(oe.has(t))return oe.get(t);for(;se.has(ae);)ae++;var e=ae++;return"production"!==process.env.NODE_ENV&&((0|e)<0||e>1<<30)&&ne(16,""+e),oe.set(t,e),se.set(e,t),e},le=function(t){return se.get(t)},ue=function(t,e){e>=ae&&(ae=e+1),oe.set(t,e),se.set(e,t)},he="style["+Kt+'][data-styled-version="5.3.6"]',fe=new RegExp("^"+Kt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),de=function(t,e,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&t.registerName(e,n)},pe=function(t,e){for(var r=(e.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var s=r[i].trim();if(s){var a=s.match(fe);if(a){var c=0|parseInt(a[1],10),l=a[2];0!==c&&(ue(l,c),de(t,l,a[3]),t.getTag().insertRules(c,n)),n.length=0}else n.push(s)}}},ge=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(t){for(var e=t.childNodes,r=e.length;r>=0;r--){var n=e[r];if(n&&1===n.nodeType&&n.hasAttribute(Kt))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(Kt,"active"),n.setAttribute("data-styled-version","5.3.6");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},ye=function(){function t(t){var e=this.element=ge(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,r=0,n=e.length;r<n;r++){var i=e[r];if(i.ownerNode===t)return i}ne(17)}(e),this.length=0}var e=t.prototype;return e.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},e.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.getRule=function(t){var e=this.sheet.cssRules[t];return void 0!==e&&"string"==typeof e.cssText?e.cssText:""},t}(),me=function(){function t(t){var e=this.element=ge(t);this.nodes=e.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(t,e){if(t<=this.length&&t>=0){var r=document.createTextNode(e),n=this.nodes[t];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),ve=function(){function t(t){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},e.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),xe=Jt,be={isServer:!Jt,useCSSOMInjection:!te},we=function(){function t(t,e,r){void 0===t&&(t=qt),void 0===e&&(e={}),this.options=Ht({},be,{},t),this.gs=e,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Jt&&xe&&(xe=!1,function(t){for(var e=document.querySelectorAll(he),r=0,n=e.length;r<n;r++){var i=e[r];i&&"active"!==i.getAttribute(Kt)&&(pe(t,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}t.registerId=function(t){return ce(t)};var e=t.prototype;return e.reconstructWithOptions=function(e,r){return void 0===r&&(r=!0),new t(Ht({},this.options,{},e),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.getTag=function(){return this.tag||(this.tag=(r=(e=this.options).isServer,n=e.useCSSOMInjection,i=e.target,t=r?new ve(i):n?new ye(i):new me(i),new ie(t)));var t,e,r,n,i},e.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},e.registerName=function(t,e){if(ce(t),this.names.has(t))this.names.get(t).add(e);else{var r=new Set;r.add(e),this.names.set(t,r)}},e.insertRules=function(t,e,r){this.registerName(t,e),this.getTag().insertRules(ce(t),r)},e.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.clearRules=function(t){this.getTag().clearGroup(ce(t)),this.clearNames(t)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(t){for(var e=t.getTag(),r=e.length,n="",i=0;i<r;i++){var o=le(i);if(void 0!==o){var s=t.names.get(o),a=e.getGroup(i);if(s&&a&&s.size){var c=Kt+".g"+i+'[id="'+o+'"]',l="";void 0!==s&&s.forEach((function(t){t.length>0&&(l+=t+",")})),n+=""+a+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},t}(),Se=/(a)(d)/gi,Ce=function(t){return String.fromCharCode(t+(t>25?39:97))};function Ae(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=Ce(e%52)+r;return(Ce(e%52)+r).replace(Se,"$1-$2")}var Te=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},Ee=function(t){return Te(5381,t)};var Pe=Ee("5.3.6"),Oe=function(){function t(t,e,r){this.rules=t,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(Gt(r)&&!Zt(r))return!1}return!0}(t),this.componentId=e,this.baseHash=Te(Pe,e),this.baseStyle=r,we.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(t,e,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&e.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=$e(this.rules,t,e,r).join(""),s=Ae(Te(this.baseHash,o)>>>0);if(!e.hasNameForId(n,s)){var a=r(o,"."+s,void 0,n);e.insertRules(n,s,a)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,l=Te(this.baseHash,r.hash),u="",h=0;h<c;h++){var f=this.rules[h];if("string"==typeof f)u+=f,"production"!==process.env.NODE_ENV&&(l=Te(l,f+h));else if(f){var d=$e(f,t,e,r),p=Array.isArray(d)?d.join(""):d;l=Te(l,p+h),u+=p}}if(u){var g=Ae(l>>>0);if(!e.hasNameForId(n,g)){var y=r(u,"."+g,void 0,n);e.insertRules(n,g,y)}i.push(g)}}return i.join(" ")},t}(),_e=/^\s*\/\/.*$/gm,Me=[":","[",".","#"];var Ne=i.default.createContext();Ne.Consumer;var ke=i.default.createContext(),Re=(ke.Consumer,new we),Ve=function(t){var e,r,n,i,o=void 0===t?qt:t,s=o.options,a=void 0===s?qt:s,c=o.plugins,l=void 0===c?Wt:c,u=new J(a),h=[],f=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(r,n,i,o,s,a,c,l,u,h){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return t(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return t(i[0]+n),"";default:return n+(0===h?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(e)}}}((function(t){h.push(t)})),d=function(t,n,o){return 0===n&&-1!==Me.indexOf(o[r.length])||o.match(i)?t:"."+e};function p(t,o,s,a){void 0===a&&(a="&");var c=t.replace(_e,""),l=o&&s?s+" "+o+" { "+c+" }":c;return e=a,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),u(s||!o?"":o,l)}return u.use([].concat(l,[function(t,e,i){2===t&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,d))},f,function(t){if(-2===t){var e=h;return h=[],e}}])),p.hash=l.length?l.reduce((function(t,e){return e.name||ne(15),Te(t,e.name)}),5381).toString():"",p}();var Ie=function(){function t(t,e){var r=this;this.inject=function(t,e){void 0===e&&(e=Ve);var n=r.name+e.hash;t.hasNameForId(r.id,n)||t.insertRules(r.id,n,e(r.rules,n,"@keyframes"))},this.toString=function(){return ne(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=Ve),this.name+t.hash},t}(),De=/([A-Z])/,ze=/([A-Z])/g,Le=/^ms-/,je=function(t){return"-"+t.toLowerCase()};function Be(t){return De.test(t)?t.replace(ze,je).replace(Le,"-ms-"):t}var Fe=function(t){return null==t||!1===t||""===t};function $e(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],s=0,a=t.length;s<a;s+=1)""!==(i=$e(t[s],e,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(Fe(t))return"";if(Zt(t))return"."+t.styledComponentId;if(Gt(t)){if("function"!=typeof(l=t)||l.prototype&&l.prototype.isReactComponent||!e)return t;var c=t(e);return"production"!==process.env.NODE_ENV&&w.exports.isElement(c)&&console.warn(Qt(t)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),$e(c,e,r,n)}var l;return t instanceof Ie?r?(t.inject(r,n),t.getName(n)):t:Yt(t)?function t(e,r){var n,i,o=[];for(var s in e)e.hasOwnProperty(s)&&!Fe(e[s])&&(Array.isArray(e[s])&&e[s].isCss||Gt(e[s])?o.push(Be(s)+":",e[s],";"):Yt(e[s])?o.push.apply(o,t(e[s],s)):o.push(Be(s)+": "+(n=s,(null==(i=e[s])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in nt?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(t):t.toString()}var Ue=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function He(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Gt(t)||Yt(t)?Ue($e(Xt(Wt,[t].concat(r)))):0===r.length&&1===t.length&&"string"==typeof t[0]?t:Ue($e(Xt(t,r)))}var Xe=/invalid hook call/i,Ye=new Set,We=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qe=/(^-|-$)/g;function Ge(t){return t.replace(We,"-").replace(qe,"")}function Qe(t){return"string"==typeof t&&("production"===process.env.NODE_ENV||t.charAt(0)===t.charAt(0).toLowerCase())}var Ze=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},Ke=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function Je(t,e,r){var n=t[r];Ze(e)&&Ze(n)?tr(n,e):t[r]=e}function tr(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var s=o[i];if(Ze(s))for(var a in s)Ke(a)&&Je(t,s[a],a)}return t}var er=i.default.createContext();er.Consumer;var rr={};function nr(t,r,n){var o=Zt(t),s=!Qe(t),a=r.attrs,c=void 0===a?Wt:a,l=r.componentId,u=void 0===l?function(t,e){var r="string"!=typeof t?"sc":Ge(t);rr[r]=(rr[r]||0)+1;var n=r+"-"+function(t){return Ae(Ee(t)>>>0)}("5.3.6"+r+rr[r]);return e?e+"-"+n:n}(r.displayName,r.parentComponentId):l,h=r.displayName,f=void 0===h?function(t){return Qe(t)?"styled."+t:"Styled("+Qt(t)+")"}(t):h,d=r.displayName&&r.componentId?Ge(r.displayName)+"-"+r.componentId:r.componentId||u,p=o&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;o&&t.shouldForwardProp&&(g=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var y,m=new Oe(n,d,o?t.componentStyle:void 0),v=m.isStatic&&0===c.length,x=function(t,r){return function(t,r,n,i){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,l=t.shouldForwardProp,u=t.styledComponentId,h=t.target;"production"!==process.env.NODE_ENV&&e.useDebugValue(u);var f=function(t,e,r){void 0===t&&(t=qt);var n=Ht({},e,{theme:t}),i={};return r.forEach((function(t){var e,r,o,s=t;for(e in Gt(s)&&(s=s(n)),s)n[e]=i[e]="className"===e?(r=i[e],o=s[e],r&&o?r+" "+o:r||o):s[e]})),[n,i]}(function(t,e,r){return void 0===r&&(r=qt),t.theme!==r.theme&&t.theme||e||r.theme}(r,e.useContext(er),a)||qt,r,o),d=f[0],p=f[1],g=function(t,r,n,i){var o=e.useContext(Ne)||Re,s=e.useContext(ke)||Ve,a=r?t.generateAndInjectStyles(qt,o,s):t.generateAndInjectStyles(n,o,s);return"production"!==process.env.NODE_ENV&&e.useDebugValue(a),"production"!==process.env.NODE_ENV&&!r&&i&&i(a),a}(s,i,d,"production"!==process.env.NODE_ENV?t.warnTooManyClasses:void 0),y=n,m=p.$as||r.$as||p.as||r.as||h,v=Qe(m),x=p!==r?Ht({},r,{},p):r,b={};for(var w in x)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=x[w]:(l?l(w,st,m):!v||st(w))&&(b[w]=x[w]));return r.style&&p.style!==r.style&&(b.style=Ht({},r.style,{},p.style)),b.className=Array.prototype.concat(c,u,g!==u?g:null,r.className,p.className).filter(Boolean).join(" "),b.ref=y,e.createElement(m,b)}(y,t,r,v)};return x.displayName=f,(y=i.default.forwardRef(x)).attrs=p,y.componentStyle=m,y.displayName=f,y.shouldForwardProp=g,y.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Wt,y.styledComponentId=d,y.target=o?t.target:t,y.withComponent=function(t){var e=r.componentId,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(r,["componentId"]),o=e&&e+"-"+(Qe(t)?t:Ge(Qt(t)));return nr(t,Ht({},i,{attrs:p,componentId:o}),n)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?tr({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(function(t,r){if("production"!==process.env.NODE_ENV){var n="The component "+t+(r?' with the id of "'+r+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var o=!0;console.error=function(t){if(Xe.test(t))o=!1,Ye.delete(n);else{for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];i.apply(void 0,[t].concat(r))}},e.useRef(),o&&!Ye.has(n)&&(console.warn(n),Ye.add(n))}catch(t){Xe.test(t.message)&&Ye.delete(n)}finally{console.error=i}}}(f,d),y.warnTooManyClasses=function(t,e){var r={},n=!1;return function(i){if(!n&&(r[i]=!0,Object.keys(r).length>=200)){var o=e?' with the id of "'+e+'"':"";console.warn("Over 200 classes were generated for component "+t+o+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={}}}}(f,d)),y.toString=function(){return"."+y.styledComponentId},s&&Ut(y,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var ir=function(t){return function t(e,r,n){if(void 0===n&&(n=qt),!w.exports.isValidElementType(r))return ne(1,String(r));var i=function(){return e(r,n,He.apply(void 0,arguments))};return i.withConfig=function(i){return t(e,r,Ht({},n,{},i))},i.attrs=function(i){return t(e,r,Ht({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(nr,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(t){ir[t]=ir(t)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about t