react-custom-roulette-rtl
Version:
Customizable React roulette wheel with spinning animation RTL
93 lines (91 loc) • 50.9 kB
JavaScript
/*! For license information please see bundle.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.Wheel=t(require("react")):e.Wheel=t(e.React)}(self,(e=>(()=>{var t={72:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case m:case g:case c:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===S||e.$$typeof===v)},t.typeOf=w},146:(e,t,r)=>{"use strict";var n=r(404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),g=c(r),m=0;m<a.length;++m){var v=a[m];if(!(o[v]||n&&n[v]||g&&g[v]||s&&s[v])){var y=f(r,v);try{l(t,v,y)}catch(e){}}}}return t}},156:t=>{"use strict";t.exports=e},363:(e,t,r)=>{"use strict";e.exports=r(799)},404:(e,t,r)=>{"use strict";e.exports=r(72)},799:(e,t)=>{"use strict";var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,c=60110,l=60112,u=60113,d=60120,f=60115,h=60116,p=60121,g=60122,m=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),c=b("react.context"),l=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),h=b("react.lazy"),p=b("react.block"),g=b("react.server.block"),m=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===v||e===o||e===u||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===c||e.$$typeof===l||e.$$typeof===m||e.$$typeof===p||e[0]===g)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case h:case f:case s:return e;default:return t}}case n:return t}}}},833:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(i=r?r.call(n,u,d,l):void 0)||void 0===i&&u!==d)return!1}return!0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{Wheel:()=>Qe});var e=n(156),t=n.n(e),r=function(e,t,r){void 0===r&&(r=!0);var n=360/t,i=43+n/2,o=(2*Math.random()-1)*n*.35,a=r?n*(t-e)-i+o:n*(t-e)-i;return t-e>t/2?-360+a:a},o=function(e,t,r){return Math.min(Math.max(e,+r),t)},a=function(e){return e.slice(-1)[0].slice(-1)[0]+1};const s=new Image;s.src="data:image/png;base64,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";var c=n(363),l=n(833),u=n.n(l);const d=function(e){function t(e,n,c,l,f){for(var h,p,g,m,S,k=0,C=0,A=0,x=0,P=0,M=0,z=g=h=0,W=0,N=0,B=0,D=0,F=c.length,$=F-1,H="",G="",K="",U="";W<F;){if(p=c.charCodeAt(W),W===$&&0!==C+x+A+k&&(0!==C&&(p=47===C?10:47),x=A=k=0,F++,$++),0===C+x+A+k){if(W===$&&(0<N&&(H=H.replace(d,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(W)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),g=1,D=++W;W<F;){switch(p=c.charCodeAt(W)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(W+1)){case 42:case 47:e:{for(z=W+1;z<$;++z)switch(c.charCodeAt(z)){case 47:if(42===p&&42===c.charCodeAt(z-1)&&W+2!==z){W=z+1;break e}break;case 10:if(47===p){W=z+1;break e}}W=z}}break;case 91:p++;case 40:p++;case 34:case 39:for(;W++<$&&c.charCodeAt(W)!==p;);}if(0===g)break;W++}if(g=c.substring(D,W),0===h&&(h=(H=H.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<N&&(H=H.replace(d,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:N=n;break;default:N=I}if(D=(g=t(n,N,g,p,f+1)).length,0<L&&(S=s(3,g,N=r(I,H,B),n,R,O,D,p,f,l),H=N.join(""),void 0!==S&&0===(D=(g=S.trim()).length)&&(p=0,g="")),0<D)switch(p){case 115:H=H.replace(w,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(v,"$1 $2"))+"{"+g+"}",g=1===T||2===T&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===l&&(G+=g,g="")}else g=""}else g=t(n,r(n,H,B),g,l,f+1);K+=g,g=B=N=z=h=0,H="",p=c.charCodeAt(++W);break;case 125:case 59:if(1<(D=(H=(0<N?H.replace(d,""):H).trim()).length))switch(0===z&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(D=(H=H.replace(" ",":")).length),0<L&&void 0!==(S=s(1,H,n,e,R,O,G.length,l,f,l))&&0===(D=(H=S.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){U+=H+c.charAt(W);break}default:58!==H.charCodeAt(D-1)&&(G+=i(H,h,p,H.charCodeAt(2)))}B=N=z=h=0,H="",p=c.charCodeAt(++W)}}switch(p){case 13:case 10:47===C?C=0:0===1+h&&107!==l&&0<H.length&&(N=1,H+="\0"),0<L*j&&s(0,H,n,e,R,O,G.length,l,f,l),O=1,R++;break;case 59:case 125:if(0===C+x+A+k){O++;break}default:switch(O++,m=c.charAt(W),p){case 9:case 32:if(0===x+k+C)switch(P){case 44:case 58:case 9:case 32:m="";break;default:32!==p&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===x+C+k&&(N=B=1,m="\f"+m);break;case 108:if(0===x+C+k+E&&0<z)switch(W-z){case 2:112===P&&58===c.charCodeAt(W-3)&&(E=P);case 8:111===M&&(E=M)}break;case 58:0===x+C+k&&(z=W);break;case 44:0===C+A+x+k&&(N=1,m+="\r");break;case 34:case 39:0===C&&(x=x===p?0:0===x?p:x);break;case 91:0===x+C+A&&k++;break;case 93:0===x+C+A&&k--;break;case 41:0===x+C+k&&A--;break;case 40:0===x+C+k&&(0===h&&(2*P+3*M==533||(h=1)),A++);break;case 64:0===C+A+x+k+z+g&&(g=1);break;case 42:case 47:if(!(0<x+k+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(W+1)){case 235:C=47;break;case 220:D=W,C=42}break;case 42:47===p&&42===P&&D+2!==W&&(33===c.charCodeAt(D+2)&&(G+=c.substring(D,W+1)),m="",C=0)}}0===C&&(H+=m)}M=P,P=p,W++}if(0<(D=G.length)){if(N=n,0<L&&void 0!==(S=s(2,G,N,e,R,O,D,l,f,l))&&0===(G=S).length)return U+G+K;if(G=N.join(",")+"{"+G+"}",0!=T*E){switch(2!==T||o(G,2)||(E=0),E){case 111:G=G.replace(b,":-moz-$1")+G;break;case 112:G=G.replace(y,"::-webkit-input-$1")+G.replace(y,"::-moz-$1")+G.replace(y,":-ms-input-$1")+G}E=0}}return U+G+K}function r(e,t,r){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===T||2===T&&o(c,1)?"-webkit-"+c+c:c}if(0===T||2===T&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(P,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(S,"tb");break;case 232:c=a.replace(S,"tb-rl");break;case 220:c=a.replace(S,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),z(2!==t?n:n.replace(A,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,c,u){for(var d,f=0,h=t;f<L;++f)switch(d=M[f].call(l,e,h,r,n,i,o,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function c(e){return void 0!==(e=e.prefix)&&(z=null,e?"function"!=typeof e?T=1:(T=2,z=e):T=0),c}function l(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<L){var i=s(-1,r,n,n,R,O,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(I,n,r,0,0);return 0<L&&void 0!==(i=s(-2,o,n,n,R,O,o.length,0,0,0))&&(o=i),E=0,O=R=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,S=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,C=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,O=1,R=1,E=0,T=1,I=[],M=[],L=0,z=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:L=M.length=0;break;default:if("function"==typeof t)M[L++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else j=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},f={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};function h(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var p=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,g=h((function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),m=n(146),v=n.n(m);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},S=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,c.typeOf)(e)},w=Object.freeze([]),k=Object.freeze({});function C(e){return"function"==typeof e}function A(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var P="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,R=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(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:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&E(16,""+e);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 a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),I=new Map,M=new Map,L=1,z=function(e){if(I.has(e))return I.get(e);for(;M.has(L);)L++;var t=L++;return I.set(e,t),M.set(t,e),t},j=function(e){return M.get(e)},W=function(e,t){t>=L&&(L=t+1),I.set(e,t),M.set(t,e)},N="style["+P+'][data-styled-version="5.3.11"]',B=new RegExp("^"+P+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},F=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(B);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(W(l,c),D(e,l,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},$=function(){return n.nc},H=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(P))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(P,"active"),n.setAttribute("data-styled-version","5.3.11");var a=$();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},G=function(){function e(e){var t=this.element=H(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),K=function(){function e(e){var t=this.element=H(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),X=O,q={isServer:!O,useCSSOMInjection:!R},J=function(){function e(e,t,r){void 0===e&&(e=k),void 0===t&&(t={}),this.options=y({},q,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&O&&X&&(X=!1,function(e){for(var t=document.querySelectorAll(N),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(P)&&(F(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return z(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(y({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,i=t.target,e=r?new U(i):n?new G(i):new K(i),new T(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(z(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(z(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(z(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o=j(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var c=P+".g"+i+'[id="'+o+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,_=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=_(t%52)+r;return(_(t%52)+r).replace(Y,"$1-$2")}var V=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Z=function(e){return V(5381,e)};function ee(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(C(r)&&!x(r))return!1}return!0}var te=Z("5.3.11"),re=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ee(e),this.componentId=t,this.baseHash=V(te,t),this.baseStyle=r,J.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=be(this.rules,e,t,r).join(""),a=Q(V(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=V(this.baseHash,r.hash),u="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=be(f,e,t,r),p=Array.isArray(h)?h.join(""):h;l=V(l,p+d),u+=p}}if(u){var g=Q(l>>>0);if(!t.hasNameForId(n,g)){var m=r(u,"."+g,void 0,n);t.insertRules(n,g,m)}i.push(g)}}return i.join(" ")},e}(),ne=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function oe(e){var t,r,n,i,o=void 0===e?k:e,a=o.options,s=void 0===a?k:a,c=o.plugins,l=void 0===c?w:c,u=new d(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,c,l,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,o){return 0===n&&-1!==ie.indexOf(o[r.length])||o.match(i)?e:"."+t};function g(e,o,a,s){void 0===s&&(s="&");var c=e.replace(ne,""),l=o&&a?a+" "+o+" { "+c+" }":c;return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),u(a||!o?"":o,l)}return u.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=l.length?l.reduce((function(e,t){return t.name||E(15),V(e,t.name)}),5381).toString():"",g}var ae=t().createContext(),se=(ae.Consumer,t().createContext()),ce=(se.Consumer,new J),le=oe();function ue(){return(0,e.useContext)(ae)||ce}function de(r){var n=(0,e.useState)(r.stylisPlugins),i=n[0],o=n[1],a=ue(),s=(0,e.useMemo)((function(){var e=a;return r.sheet?e=r.sheet:r.target&&(e=e.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[r.disableCSSOMInjection,r.sheet,r.target]),c=(0,e.useMemo)((function(){return oe({options:{prefix:!r.disableVendorPrefixes},plugins:i})}),[r.disableVendorPrefixes,i]);return(0,e.useEffect)((function(){u()(i,r.stylisPlugins)||o(r.stylisPlugins)}),[r.stylisPlugins]),t().createElement(ae.Provider,{value:s},t().createElement(se.Provider,{value:c},r.children))}var fe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=le);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return E(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=le),this.name+e.hash},e}(),he=/([A-Z])/,pe=/([A-Z])/g,ge=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function ve(e){return he.test(e)?e.replace(pe,me).replace(ge,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function be(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=be(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ye(e)?"":x(e)?"."+e.styledComponentId:C(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:be(e(t),t,r,n):e instanceof fe?r?(e.inject(r,n),e.getName(n)):e:S(e)?function e(t,r){var n,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!ye(t[a])&&(Array.isArray(t[a])&&t[a].isCss||C(t[a])?o.push(ve(a)+":",t[a],";"):S(t[a])?o.push.apply(o,e(t[a],a)):o.push(ve(a)+": "+(n=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in f||n.startsWith("--")?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString();var c}var Se=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return C(e)||S(e)?Se(be(b(w,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Se(be(b(e,r)))}new Set;var ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ce=/(^-|-$)/g;function Ae(e){return e.replace(ke,"-").replace(Ce,"")}function xe(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Re(e,t,r){var n=e[r];Pe(t)&&Pe(n)?Ee(n,t):e[r]=t}function Ee(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Pe(a))for(var s in a)Oe(s)&&Re(e,a[s],s)}return e}var Te=t().createContext();Te.Consumer;var Ie={};function Me(r,n,i){var o=x(r),a=!xe(r),s=n.attrs,c=void 0===s?w:s,l=n.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Ae(e);Ie[r]=(Ie[r]||0)+1;var n=r+"-"+function(e){return Q(Z(e)>>>0)}("5.3.11"+r+Ie[r]);return t?t+"-"+n:n}(n.displayName,n.parentComponentId):l,d=n.displayName,f=void 0===d?function(e){return xe(e)?"styled."+e:"Styled("+A(e)+")"}(r):d,h=n.displayName&&n.componentId?Ae(n.displayName)+"-"+n.componentId:n.componentId||u,p=o&&r.attrs?Array.prototype.concat(r.attrs,c).filter(Boolean):c,m=n.shouldForwardProp;o&&r.shouldForwardProp&&(m=n.shouldForwardProp?function(e,t,i){return r.shouldForwardProp(e,t,i)&&n.shouldForwardProp(e,t,i)}:r.shouldForwardProp);var b,S=new re(i,h,o?r.componentStyle:void 0),P=S.isStatic&&0===c.length,O=function(t,r){return function(t,r,n,i){var o=t.attrs,a=t.componentStyle,s=t.defaultProps,c=t.foldedComponentIds,l=t.shouldForwardProp,u=t.styledComponentId,d=t.target,f=function(e,t,r){void 0===e&&(e=k);var n=y({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,o,a=e;for(t in C(a)&&(a=a(n)),a)n[t]=i[t]="className"===t?(r=i[t],o=a[t],r&&o?r+" "+o:r||o):a[t]})),[n,i]}(function(e,t,r){return void 0===r&&(r=k),e.theme!==r.theme&&e.theme||t||r.theme}(r,(0,e.useContext)(Te),s)||k,r,o),h=f[0],p=f[1],m=function(t,r,n){var i=ue(),o=(0,e.useContext)(se)||le;return r?t.generateAndInjectStyles(k,i,o):t.generateAndInjectStyles(n,i,o)}(a,i,h),v=n,b=p.$as||r.$as||p.as||r.as||d,S=xe(b),w=p!==r?y({},r,{},p):r,A={};for(var x in w)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?A.as=w[x]:(l?l(x,g,b):!S||g(x))&&(A[x]=w[x]));return r.style&&p.style!==r.style&&(A.style=y({},r.style,{},p.style)),A.className=Array.prototype.concat(c,u,m!==u?m:null,r.className,p.className).filter(Boolean).join(" "),A.ref=v,(0,e.createElement)(b,A)}(b,t,r,P)};return O.displayName=f,(b=t().forwardRef(O)).attrs=p,b.componentStyle=S,b.displayName=f,b.shouldForwardProp=m,b.foldedComponentIds=o?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):w,b.styledComponentId=h,b.target=o?r.target:r,b.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(n,["componentId"]),o=t&&t+"-"+(xe(e)?e:Ae(A(e)));return Me(e,y({},r,{attrs:p,componentId:o}),i)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?Ee({},r.defaultProps,e):e}}),Object.defineProperty(b,"toString",{value:function(){return"."+b.styledComponentId}}),a&&v()(b,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Le,ze=function(e){return function e(t,r,n){if(void 0===n&&(n=k),!(0,c.isValidElementType)(r))return E(1,String(r));var i=function(){return t(r,n,we.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,y({},n,{},i))},i.attrs=function(i){return e(t,r,y({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(Me,e)};["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(e){ze[e]=ze(e)})),(Le=function(e,t){this.rules=e,this.componentId=t,this.isStatic=ee(e),J.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,r,n){var i=n(be(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},Le.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Le.renderStyles=function(e,t,r,n){e>2&&J.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=$();return"<style "+[r&&'nonce="'+r+'"',P+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var r;if(e.sealed)return E(2);var n=((r={})[P]="",r["data-styled-version"]="5.3.11",r.dangerouslySetInnerHTML={__html:e.instance.toString()},r),i=$();return i&&(n.nonce=i),[t().createElement("style",y({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?E(2):t().createElement(de,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}();const je=ze,We=je.img`
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
`,Ne=je.div`
position: relative;
width: 80vw;
max-width: 445px;
height: 80vw;
max-height: 445px;
object-fit: contain;
flex-shrink: 0;
z-index: 5;
pointer-events: none;
`,Be=je.div`
position: absolute;
width: 100%;
height: 100%;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
display: flex;
justify-content: center;
align-items: center;
transform: rotate(${e=>e.startRotationDegrees}deg);
&.started-spinning {
animation: spin-${({classKey:e})=>e} ${({startSpinningTime:e})=>e/1e3}s cubic-bezier(
0.71,
${e=>e.disableInitialAnimation?0:-.29},
0.96,
0.9
) 0s 1 normal forwards running,
continueSpin-${({classKey:e})=>e} ${({continueSpinningTime:e})=>e/1e3}s linear ${({startSpinningTime:e})=>e/1e3}s 1 normal forwards running,
stopSpin-${({classKey:e})=>e} ${({stopSpinningTime:e})=>e/1e3}s cubic-bezier(0, 0, 0.35, 1.02) ${({startSpinningTime:e,continueSpinningTime:t})=>(e+t)/1e3}s 1 normal forwards
running;
}
@keyframes spin-${({classKey:e})=>e} {
from {
transform: rotate(${e=>e.startRotationDegrees}deg);
}
to {
transform: rotate(${e=>e.startRotationDegrees+360}deg);
}
}
@keyframes continueSpin-${({classKey:e})=>e} {
from {
transform: rotate(${e=>e.startRotationDegrees}deg);
}
to {
transform: rotate(${e=>e.startRotationDegrees+360}deg);
}
}
@keyframes stopSpin-${({classKey:e})=>e} {
from {
transform: rotate(${e=>e.startRotationDegrees}deg);
}
to {
transform: rotate(${e=>1440+e.finalRotationDegrees}deg);
}
}
`,De=(je(We)`
position: absolute;
z-index: 5;
width: 17%;
right: 6px;
top: 15px;
`,je.div`
position: relative;
width: 100%;
height: 100%;
max-width: 900px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
`),Fe=je.img`
width: 100%;
max-width: 900px;
margin-top: -100px;
height: auto;
position: absolute;
bottom: 0;
z-index: 1;
`,$e=["darkgrey","lightgrey"],He=["black"],Ge="bold",Ke="normal",Ue=["arial","verdana","tahoma","trebuchet ms","times","garamond","brush script mt","courier new","georgia","helvetica","times new roman","serif","sans-serif","monospace","cursive","fantasy"],Xe=je.canvas`
width: 98%;
height: 98%;
`;var qe=function(e,t,r,n,i,o){e.beginPath(),e.moveTo(t+(n+1)*Math.cos(o),r+(n+1)*Math.sin(o)),e.lineTo(t+(i-1)*Math.cos(o),r+(i-1)*Math.sin(o)),e.closePath(),e.stroke()};const Je=function(r){var n=r.width,i=r.height,s=r.data,c=r.outerBorderColor,l=r.outerBorderWidth,u=r.innerRadius,d=r.innerBorderColor,f=r.innerBorderWidth,h=r.radiusLineColor,p=r.radiusLineWidth,g=r.fontFamily,m=r.fontWeight,v=r.fontSize,y=r.fontStyle,b=r.perpendicularText,S=r.prizeMap,w=r.rouletteUpdater,k=r.textDistance,C=r.isRTL,A=void 0!==C&&C,x=r.selectedOption,P=r.selectedOptionBackgroundColor,O=(0,e.createRef)(),R={outerBorderColor:c,outerBorderWidth:l,innerRadius:u,innerBorderColor:d,innerBorderWidth:f,radiusLineColor:h,radiusLineWidth:p,fontFamily:g,fontWeight:m,fontSize:v,fontStyle:y,perpendicularText:b,prizeMap:S,rouletteUpdater:w,textDistance:k,isRTL:A,selectedOption:x,selectedOptionBackgroundColor:P};return(0,e.useEffect)((function(){!function(e,t,r){var n,i,s,c,l,u=r.outerBorderColor,d=r.outerBorderWidth,f=r.innerRadius,h=r.innerBorderColor,p=r.innerBorderWidth,g=r.radiusLineColor,m=r.radiusLineWidth,v=r.fontFamily,y=r.fontWeight,b=r.fontSize,S=r.fontStyle,w=r.perpendicularText,k=r.textDistance,C=r.isRTL,A=r.selectedOption,x=r.selectedOptionBackgroundColor,P=a(r.prizeMap);d*=2,p*=2,m*=2;var O=e.current;if(null==O?void 0:O.getContext("2d")){var R=O.getContext("2d");R.clearRect(0,0,500,500),R.strokeStyle="transparent",R.lineWidth=0;for(var E=0,T=O.width/2-10,I=T*o(0,100,k)/100,M=T*o(0,100,f)/100,L=O.width/2,z=O.height/2,j=0;j<t.length;j++){var W=t[j],N=W.optionSize,B=W.style,D=N&&N*(2*Math.PI)/P||2*Math.PI/P,F=E+D;R.fillStyle=j===A?x:B&&B.backgroundColor,R.beginPath(),R.arc(L,z,T,E,F,!1),R.arc(L,z,M,F,E,!0),R.stroke(),R.fill(),R.save(),R.strokeStyle=m<=0?"transparent":g,R.lineWidth=m,qe(R,L,z,M,T,E),j===t.length-1&&qe(R,L,z,M,T,F),R.strokeStyle=d<=0?"transparent":u,R.lineWidth=d,R.beginPath(),R.arc(L,z,T-R.lineWidth/2,0,2*Math.PI),R.closePath(),R.stroke(),R.strokeStyle=p<=0?"transparent":h,R.lineWidth=p,R.beginPath(),R.arc(L,z,M+R.lineWidth/2-1,0,2*Math.PI),R.closePath(),R.stroke(),R.translate(L+Math.cos(E+D/2)*I,z+Math.sin(E+D/2)*I);var $=E+D/2;if(t[j].image){$+=t[j].image&&!(null===(n=t[j].image)||void 0===n?void 0:n.landscape)?Math.PI/2:0,R.rotate($);var H=(null===(i=t[j].image)||void 0===i?void 0:i._imageHTML)||new Image;R.drawImage(H,(H.width+((null===(s=t[j].image)||void 0===s?void 0:s.offsetX)||0))/-2,-(H.height-((null===(c=t[j].image)||void 0===c?void 0:c.landscape)?0:90)+((null===(l=t[j].image)||void 0===l?void 0:l.offsetY)||0))/2,H.width,H.height)}else{$=E+D/2,C?($+=Math.PI,R.textAlign="center",R.direction="rtl"):($+=w?Math.PI/2:0,R.textAlign="center",R.direction="ltr"),R.rotate($);var G=t[j].option;if(t[j].option){var K=C?"Vazirmtn, system-ui":v,U="".concat((null==B?void 0:B.fontStyle)||S," ").concat((null==B?void 0:B.fontWeight)||y," ").concat(2*((null==B?void 0:B.fontSize)||b),"px ").concat((null==B?void 0:B.fontFamily)||K);R.font=U,R.fillStyle=B&&B.textColor,R.textBaseline="middle",R.fillText(G||"",0,0)}}R.restore(),E=F}}}(O,s,R)}),[O,s,R,w]),t().createElement(Xe,{ref:O,width:n,height:i})};var Ye=function(){return Ye=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ye.apply(this,arguments)},_e=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Qe=function(n){var i=n.mustStartSpinning,o=n.prizeNumber,c=n.data,l=n.onStopSpinning,u=void 0===l?function(){return null}:l,d=n.backgroundColors,f=void 0===d?$e:d,h=n.textColors,p=void 0===h?He:h,g=n.outerBorderColor,m=void 0===g?"black":g,v=n.outerBorderWidth,y=void 0===v?5:v,b=n.innerRadius,S=void 0===b?0:b,w=n.innerBorderColor,k=void 0===w?"black":w,C=n.innerBorderWidth,A=void 0===C?0:C,x=n.radiusLineColor,P=void 0===x?"black":x,O=n.radiusLineWidth,R=void 0===O?5:O,E=n.fontFamily,T=void 0===E?Ue[0]:E,I=n.fontSize,M=void 0===I?20:I,L=n.fontWeight,z=void 0===L?Ge:L,j=n.fontStyle,W=void 0===j?Ke:j,N=n.perpendicularText,B=void 0!==N&&N,D=n.textDistance,F=void 0===D?60:D,$=n.spinDuration,H=void 0===$?1:$,G=n.startingOptionIndex,K=void 0===G?-1:G,U=n.pointerProps,X=void 0===U?{}:U,q=n.disableInitialAnimation,J=void 0!==q&&q,Y=n.isRTL,_=void 0!==Y&&Y,Q=n.baseImageSrc,V=n.width,Z=void 0===V?"900":V,ee=n.height,te=void 0===ee?"900":ee,re=n.baseImageClassName,ne=n.selectedOptionBackgroundColor,ie=void 0===ne?"#bf34fa":ne,oe=(0,e.useState)(_e([],c,!0)),ae=oe[0],se=oe[1],ce=(0,e.useState)([[0]]),le=ce[0],ue=ce[1],de=(0,e.useState)(0),fe=de[0],he=de[1],pe=(0,e.useState)(0),ge=pe[0],me=pe[1],ve=(0,e.useState)(!1),ye=ve[0],be=ve[1],Se=(0,e.useState)(!1),we=Se[0],ke=Se[1],Ce=(0,e.useState)(!1),Ae=Ce[0],xe=Ce[1],Pe=(0,e.useState)(!1),Oe=Pe[0],Re=Pe[1],Ee=(0,e.useState)(!1),Te=Ee[0],Ie=Ee[1],Me=(0,e.useState)(0),Le=Me[0],ze=Me[1],je=(0,e.useState)(0),We=je[0],Xe=je[1],qe=(0,e.useState)(!1),Qe=qe[0],Ve=qe[1],Ze=(0,e.useRef)(!1),et=(0,e.useState)(-1),tt=et[0],rt=et[1],nt=function(){for(var e="",t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e}(),it=Math.max(.01,H),ot=2600*it,at=750*it,st=8e3*it,ct=ot+at+st;(0,e.useEffect)((function(){var e,t,r,n,i,o,a=0,s=[],l=(null==c?void 0:c.length)||0,u=[{option:"",optionSize:1}];Ve(!0);for(var d=[],h=function(l){u[l]=Ye(Ye({},c[l]),{style:{backgroundColor:(null===(e=c[l].style)||void 0===e?void 0:e.backgroundColor)||(null==f?void 0:f[l%(null==f?void 0:f.length)])||$e[0],fontFamily:(null===(t=c[l].style)||void 0===t?void 0:t.fontFamily)||T||"Nunito",fontSize:(null===(r=c[l].style)||void 0===r?void 0:r.fontSize)||M||20,fontWeight:(null===(n=c[l].style)||void 0===n?void 0:n.fontWeight)||z||Ge,fontStyle:(null===(i=c[l].style)||void 0===i?void 0:i.fontStyle)||W||Ke,textColor:(null===(o=c[l].style)||void 0===o?void 0:o.textColor)||(null==p?void 0:p[l%(null==p?void 0:p.length)])||He[0]}}),s.push([]);for(var h=0;h<(u[l].optionSize||1);h++)s[l][h]=a++;if(c[l].image){Xe((function(e){return e+1}));var g=new Promise((function(e){var t,r=new Image;r.src=(null===(t=c[l].image)||void 0===t?void 0:t.uri)||"",r.onload=function(){var t,n,i,o,a,s;r.height=200*((null===(t=c[l].image)||void 0===t?void 0:t.sizeMultiplier)||1),r.width=r.naturalWidth/r.naturalHeight*r.height,u[l].image={uri:(null===(n=c[l].image)||void 0===n?void 0:n.uri)||"",offsetX:(null===(i=c[l].image)||void 0===i?void 0:i.offsetX)||0,offsetY:(null===(o=c[l].image)||void 0===o?void 0:o.offsetY)||0,landscape:(null===(a=c[l].image)||void 0===a?void 0:a.landscape)||!1,sizeMultiplier:(null===(s=c[l].image)||void 0===s?void 0:s.sizeMultiplier)||1,_imageHTML:r},ze((function(e){return e+1})),e()},r.onerror=function(){var t;console.warn("Failed to load image: ".concat(null===(t=c[l].image)||void 0===t?void 0:t.uri)),e()}}));d.push(g)}},g=0;g<l;g++)h(g);se(_e([],u,!0)),ue(s),ut(K,s),Re(!0),d.length>0&&Promise.all(d).then((function(){Ie((function(e){return!e}))}))}),[c,f,p,T]),(0,e.useEffect)((function(){var e;if(i&&!Ae){xe(!0),lt();var t=le[o][Math.floor(Math.random()*(null===(e=le[o])||void 0===e?void 0:e.length))],n=r(t,a(le));me(n)}}),[i]),(0,e.useEffect)((function(){we&&(xe(!1),he(ge),rt(o))}),[we]);var lt=function(){be(!0),ke(!1),Ze.current=!0,setTimeout((function(){Ze.current&&(Ze.current=!1,be(!1),ke(!0),u())}),ct)},ut=function(e,t){var n;if(K>=0){var i=Math.floor(e)%(null==t?void 0:t.length),o=t[i][Math.floor((null===(n=t[i])||void 0===n?void 0:n.length)/2)];he(r(o,a(t),!1))}};return Oe?t().createElement