gearboxdownloadmodal 3.0.16 → 3.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -24,7 +24,7 @@ Check the render method of \``+s+"`."}return""}}function eu(s){{if(s!==void 0){v
24
24
 
25
25
  Check your code at `+C+":"+S+"."}return""}}var HA={};function tu(s){{var C=TA();if(!C){var S=typeof s=="string"?s:s.displayName||s.name;S&&(C=`
26
26
 
27
- Check the top-level render call using <`+S+">.")}return C}}function XA(s,C){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var S=tu(C);if(HA[S])return;HA[S]=!0;var G="";s&&s._owner&&s._owner!==Ur.current&&(G=" It was passed a child from "+R(s._owner.type)+"."),ct(s),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',S,G),ct(null)}}function QA(s,C){{if(typeof s!="object")return;if(Vr(s))for(var S=0;S<s.length;S++){var G=s[S];_r(G)&&XA(G,C)}else if(_r(s))s._store&&(s._store.validated=!0);else if(s){var ne=I(s);if(typeof ne=="function"&&ne!==s.entries)for(var oe=ne.call(s),_;!(_=oe.next()).done;)_r(_.value)&&XA(_.value,C)}}}function ru(s){{var C=s.type;if(C==null||typeof C=="string")return;var S;if(typeof C=="function")S=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===c||C.$$typeof===m))S=C.propTypes;else return;if(S){var G=R(C);Rs(S,s.props,"prop",G,s)}else if(C.PropTypes!==void 0&&!Fr){Fr=!0;var ne=R(C);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function nu(s){{for(var C=Object.keys(s.props),S=0;S<C.length;S++){var G=C[S];if(G!=="children"&&G!=="key"){ct(s),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),ct(null);break}}s.ref!==null&&(ct(s),Y("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}function PA(s,C,S,G,ne,oe){{var _=F(s);if(!_){var U="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=eu(ne);ge?U+=ge:U+=TA();var ce;s===null?ce="null":Vr(s)?ce="array":s!==void 0&&s.$$typeof===t?(ce="<"+(R(s.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof s,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,U)}var de=$s(s,C,S,ne,oe);if(de==null)return de;if(_){var We=C.children;if(We!==void 0)if(G)if(Vr(We)){for(var mt=0;mt<We.length;mt++)QA(We[mt],s);Object.freeze&&Object.freeze(We)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else QA(We,s)}return s===n?nu(de):ru(de),de}}function Au(s,C,S){return PA(s,C,S,!0)}function iu(s,C,S){return PA(s,C,S,!1)}var au=iu,ou=Au;pt.Fragment=n,pt.jsx=au,pt.jsxs=ou}()),pt}process.env.NODE_ENV==="production"?ar.exports=_A():ar.exports=$A();var h=ar.exports;const ei="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=",ti=({children:e})=>{const[t,r]=Z.useState(window.innerWidth);return Z.useEffect(()=>{const n=()=>{r(window.innerWidth)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),h.jsx("div",{style:{position:"relative",display:"flex",maxHeight:t>1440?"750px":"650px",height:750,width:t>1440?"1062px":"900px"},children:e})},ri=({iframeUrl:e})=>{const t=window.devicePixelRatio>1,r=window.screen.width>=3840&&window.screen.height>=2160,a={...{display:"flex",height:"74%",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"16px",border:"1px solid #333333"},...t?{height:"430px"}:{},...r?{height:"430px"}:{}};return h.jsx("div",{style:a,children:h.jsx("iframe",{title:"preview",src:e,style:{height:"100%",width:"100%",borderRadius:"16px",border:"none"}})})},ni=({name:e})=>h.jsx("div",{style:{marginRight:"0.5rem",display:"flex",height:"2.5rem",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"0.5rem",borderWidth:"1px",borderColor:"#yourCustomColor"},children:e});var Ot={},tn={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Ai=tn;function rn(e){this.mode=Ai.MODE_8BIT_BYTE,this.data=e}rn.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}};var ii=rn,nn={L:1,M:0,Q:3,H:2},St=nn;function Ye(e,t){this.totalCount=e,this.dataCount=t}Ye.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Ye.getRSBlocks=function(e,t){var r=Ye.getRsBlockTable(e,t);if(r==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,A=new Array,i=0;i<n;i++)for(var a=r[i*3+0],o=r[i*3+1],c=r[i*3+2],u=0;u<a;u++)A.push(new Ye(o,c));return A},Ye.getRsBlockTable=function(e,t){switch(t){case St.L:return Ye.RS_BLOCK_TABLE[(e-1)*4+0];case St.M:return Ye.RS_BLOCK_TABLE[(e-1)*4+1];case St.Q:return Ye.RS_BLOCK_TABLE[(e-1)*4+2];case St.H:return Ye.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};var ai=Ye;function An(){this.buffer=new Array,this.length=0}An.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};for(var oi=An,Oe={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Oe.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Oe.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},pe=0;pe<8;pe++)Oe.EXP_TABLE[pe]=1<<pe;for(var pe=8;pe<256;pe++)Oe.EXP_TABLE[pe]=Oe.EXP_TABLE[pe-4]^Oe.EXP_TABLE[pe-5]^Oe.EXP_TABLE[pe-6]^Oe.EXP_TABLE[pe-8];for(var pe=0;pe<255;pe++)Oe.LOG_TABLE[Oe.EXP_TABLE[pe]]=pe;var an=Oe,Pe=an;function Mt(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&e[r]==0;)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}Mt.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=Pe.gexp(Pe.glog(this.get(r))+Pe.glog(e.get(n)));return new Mt(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=Pe.glog(this.get(0))-Pe.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(var n=0;n<e.getLength();n++)r[n]^=Pe.gexp(Pe.glog(e.get(n))+t);return new Mt(r,0).mod(e)}};var on=Mt,Ce=tn,sn=on,si=an,Re={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},fe={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;fe.getBCHDigit(t)-fe.getBCHDigit(fe.G15)>=0;)t^=fe.G15<<fe.getBCHDigit(t)-fe.getBCHDigit(fe.G15);return(e<<10|t)^fe.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;fe.getBCHDigit(t)-fe.getBCHDigit(fe.G18)>=0;)t^=fe.G18<<fe.getBCHDigit(t)-fe.getBCHDigit(fe.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return fe.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case Re.PATTERN000:return(t+r)%2==0;case Re.PATTERN001:return t%2==0;case Re.PATTERN010:return r%3==0;case Re.PATTERN011:return(t+r)%3==0;case Re.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case Re.PATTERN101:return t*r%2+t*r%3==0;case Re.PATTERN110:return(t*r%2+t*r%3)%2==0;case Re.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new sn([1],0),r=0;r<e;r++)t=t.multiply(new sn([1,si.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case Ce.MODE_NUMBER:return 10;case Ce.MODE_ALPHA_NUM:return 9;case Ce.MODE_8BIT_BYTE:return 8;case Ce.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case Ce.MODE_NUMBER:return 12;case Ce.MODE_ALPHA_NUM:return 11;case Ce.MODE_8BIT_BYTE:return 16;case Ce.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case Ce.MODE_NUMBER:return 14;case Ce.MODE_ALPHA_NUM:return 13;case Ce.MODE_8BIT_BYTE:return 16;case Ce.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var A=0;A<t;A++){for(var i=0,a=e.isDark(n,A),o=-1;o<=1;o++)if(!(n+o<0||t<=n+o))for(var c=-1;c<=1;c++)A+c<0||t<=A+c||o==0&&c==0||a==e.isDark(n+o,A+c)&&i++;i>5&&(r+=3+i-5)}for(var n=0;n<t-1;n++)for(var A=0;A<t-1;A++){var u=0;e.isDark(n,A)&&u++,e.isDark(n+1,A)&&u++,e.isDark(n,A+1)&&u++,e.isDark(n+1,A+1)&&u++,(u==0||u==4)&&(r+=3)}for(var n=0;n<t;n++)for(var A=0;A<t-6;A++)e.isDark(n,A)&&!e.isDark(n,A+1)&&e.isDark(n,A+2)&&e.isDark(n,A+3)&&e.isDark(n,A+4)&&!e.isDark(n,A+5)&&e.isDark(n,A+6)&&(r+=40);for(var A=0;A<t;A++)for(var n=0;n<t-6;n++)e.isDark(n,A)&&!e.isDark(n+1,A)&&e.isDark(n+2,A)&&e.isDark(n+3,A)&&e.isDark(n+4,A)&&!e.isDark(n+5,A)&&e.isDark(n+6,A)&&(r+=40);for(var l=0,A=0;A<t;A++)for(var n=0;n<t;n++)e.isDark(n,A)&&l++;var m=Math.abs(100*l/t/t-50)/5;return r+=m*10,r}},ui=fe,li=ii,un=ai,ln=oi,Te=ui,ci=on;function ze(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var ye=ze.prototype;ye.addData=function(e){var t=new li(e);this.dataList.push(t),this.dataCache=null},ye.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},ye.getModuleCount=function(){return this.moduleCount},ye.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=un.getRSBlocks(e,this.errorCorrectLevel),r=new ln,n=0,A=0;A<t.length;A++)n+=t[A].dataCount;for(var A=0;A<this.dataList.length;A++){var i=this.dataList[A];r.put(i.mode,4),r.put(i.getLength(),Te.getLengthInBits(i.mode,e)),i.write(r)}if(r.getLengthInBits()<=n*8)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},ye.makeImpl=function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=ze.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},ye.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},ye.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=Te.getLostPoint(this);(r==0||e>n)&&(e=n,t=r)}return t},ye.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r),A=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*A,o=0;o<this.modules[i].length;o++){var c=o*A,u=this.modules[i][o];u&&(n.beginFill(0,100),n.moveTo(c,a),n.lineTo(c+A,a),n.lineTo(c+A,a+A),n.lineTo(c,a+A),n.endFill())}return n},ye.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},ye.setupPositionAdjustPattern=function(){for(var e=Te.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],A=e[r];if(this.modules[n][A]==null)for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||i==2||a==-2||a==2||i==0&&a==0?this.modules[n+i][A+a]=!0:this.modules[n+i][A+a]=!1}},ye.setupTypeNumber=function(e){for(var t=Te.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},ye.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=Te.getBCHTypeInfo(r),A=0;A<15;A++){var i=!e&&(n>>A&1)==1;A<6?this.modules[A][8]=i:A<8?this.modules[A+1][8]=i:this.modules[this.moduleCount-15+A][8]=i}for(var A=0;A<15;A++){var i=!e&&(n>>A&1)==1;A<8?this.modules[8][this.moduleCount-A-1]=i:A<9?this.modules[8][15-A-1+1]=i:this.modules[8][15-A-1]=i}this.modules[this.moduleCount-8][8]=!e},ye.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,A=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var o=0;o<2;o++)if(this.modules[n][a-o]==null){var c=!1;i<e.length&&(c=(e[i]>>>A&1)==1);var u=Te.getMask(t,n,a-o);u&&(c=!c),this.modules[n][a-o]=c,A--,A==-1&&(i++,A=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}},ze.PAD0=236,ze.PAD1=17,ze.createData=function(e,t,r){for(var n=un.getRSBlocks(e,t),A=new ln,i=0;i<r.length;i++){var a=r[i];A.put(a.mode,4),A.put(a.getLength(),Te.getLengthInBits(a.mode,e)),a.write(A)}for(var o=0,i=0;i<n.length;i++)o+=n[i].dataCount;if(A.getLengthInBits()>o*8)throw new Error("code length overflow. ("+A.getLengthInBits()+">"+o*8+")");for(A.getLengthInBits()+4<=o*8&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=o*8||(A.put(ze.PAD0,8),A.getLengthInBits()>=o*8));)A.put(ze.PAD1,8);return ze.createBytes(A,n)},ze.createBytes=function(e,t){for(var r=0,n=0,A=0,i=new Array(t.length),a=new Array(t.length),o=0;o<t.length;o++){var c=t[o].dataCount,u=t[o].totalCount-c;n=Math.max(n,c),A=Math.max(A,u),i[o]=new Array(c);for(var l=0;l<i[o].length;l++)i[o][l]=255&e.buffer[l+r];r+=c;var m=Te.getErrorCorrectPolynomial(u),p=new ci(i[o],m.getLength()-1),f=p.mod(m);a[o]=new Array(m.getLength()-1);for(var l=0;l<a[o].length;l++){var q=l+f.getLength()-a[o].length;a[o][l]=q>=0?f.get(q):0}}for(var g=0,l=0;l<t.length;l++)g+=t[l].totalCount;for(var I=new Array(g),W=0,l=0;l<n;l++)for(var o=0;o<t.length;o++)l<i[o].length&&(I[W++]=i[o][l]);for(var l=0;l<A;l++)for(var o=0;o<t.length;o++)l<a[o].length&&(I[W++]=a[o][l]);return I};var mi=ze,or={exports:{}},xt={exports:{}},Ae={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+S+">.")}return C}}function XA(s,C){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var S=tu(C);if(HA[S])return;HA[S]=!0;var G="";s&&s._owner&&s._owner!==Ur.current&&(G=" It was passed a child from "+R(s._owner.type)+"."),ct(s),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',S,G),ct(null)}}function QA(s,C){{if(typeof s!="object")return;if(Vr(s))for(var S=0;S<s.length;S++){var G=s[S];_r(G)&&XA(G,C)}else if(_r(s))s._store&&(s._store.validated=!0);else if(s){var ne=I(s);if(typeof ne=="function"&&ne!==s.entries)for(var oe=ne.call(s),_;!(_=oe.next()).done;)_r(_.value)&&XA(_.value,C)}}}function ru(s){{var C=s.type;if(C==null||typeof C=="string")return;var S;if(typeof C=="function")S=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===c||C.$$typeof===m))S=C.propTypes;else return;if(S){var G=R(C);Rs(S,s.props,"prop",G,s)}else if(C.PropTypes!==void 0&&!Fr){Fr=!0;var ne=R(C);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function nu(s){{for(var C=Object.keys(s.props),S=0;S<C.length;S++){var G=C[S];if(G!=="children"&&G!=="key"){ct(s),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),ct(null);break}}s.ref!==null&&(ct(s),Y("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}function PA(s,C,S,G,ne,oe){{var _=F(s);if(!_){var U="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=eu(ne);ge?U+=ge:U+=TA();var ce;s===null?ce="null":Vr(s)?ce="array":s!==void 0&&s.$$typeof===t?(ce="<"+(R(s.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof s,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,U)}var de=$s(s,C,S,ne,oe);if(de==null)return de;if(_){var We=C.children;if(We!==void 0)if(G)if(Vr(We)){for(var mt=0;mt<We.length;mt++)QA(We[mt],s);Object.freeze&&Object.freeze(We)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else QA(We,s)}return s===n?nu(de):ru(de),de}}function Au(s,C,S){return PA(s,C,S,!0)}function iu(s,C,S){return PA(s,C,S,!1)}var au=iu,ou=Au;pt.Fragment=n,pt.jsx=au,pt.jsxs=ou}()),pt}process.env.NODE_ENV==="production"?ar.exports=_A():ar.exports=$A();var h=ar.exports;const ei="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=",ti=({children:e})=>{const[t,r]=Z.useState(window.innerWidth);return Z.useEffect(()=>{const n=()=>{r(window.innerWidth)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),h.jsx("div",{style:{position:"relative",display:"flex",height:t>1440?"750px":"650px",width:(t>1440,"900px")},children:e})},ri=({iframeUrl:e})=>{const t=window.devicePixelRatio>1,r=window.screen.width>=3840&&window.screen.height>=2160,a={...{display:"flex",height:"74%",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"16px",border:"1px solid #333333"},...t?{height:"430px"}:{},...r?{height:"430px"}:{}};return h.jsx("div",{style:a,children:h.jsx("iframe",{title:"preview",src:e,style:{height:"100%",width:"100%",borderRadius:"16px",border:"none"}})})},ni=({name:e})=>h.jsx("div",{style:{marginRight:"0.5rem",display:"flex",height:"2.5rem",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"0.5rem",borderWidth:"1px",borderColor:"#yourCustomColor"},children:e});var Ot={},tn={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Ai=tn;function rn(e){this.mode=Ai.MODE_8BIT_BYTE,this.data=e}rn.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}};var ii=rn,nn={L:1,M:0,Q:3,H:2},St=nn;function Ye(e,t){this.totalCount=e,this.dataCount=t}Ye.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Ye.getRSBlocks=function(e,t){var r=Ye.getRsBlockTable(e,t);if(r==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,A=new Array,i=0;i<n;i++)for(var a=r[i*3+0],o=r[i*3+1],c=r[i*3+2],u=0;u<a;u++)A.push(new Ye(o,c));return A},Ye.getRsBlockTable=function(e,t){switch(t){case St.L:return Ye.RS_BLOCK_TABLE[(e-1)*4+0];case St.M:return Ye.RS_BLOCK_TABLE[(e-1)*4+1];case St.Q:return Ye.RS_BLOCK_TABLE[(e-1)*4+2];case St.H:return Ye.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};var ai=Ye;function An(){this.buffer=new Array,this.length=0}An.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};for(var oi=An,Oe={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Oe.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Oe.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},pe=0;pe<8;pe++)Oe.EXP_TABLE[pe]=1<<pe;for(var pe=8;pe<256;pe++)Oe.EXP_TABLE[pe]=Oe.EXP_TABLE[pe-4]^Oe.EXP_TABLE[pe-5]^Oe.EXP_TABLE[pe-6]^Oe.EXP_TABLE[pe-8];for(var pe=0;pe<255;pe++)Oe.LOG_TABLE[Oe.EXP_TABLE[pe]]=pe;var an=Oe,Pe=an;function Mt(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&e[r]==0;)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}Mt.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=Pe.gexp(Pe.glog(this.get(r))+Pe.glog(e.get(n)));return new Mt(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=Pe.glog(this.get(0))-Pe.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(var n=0;n<e.getLength();n++)r[n]^=Pe.gexp(Pe.glog(e.get(n))+t);return new Mt(r,0).mod(e)}};var on=Mt,Ce=tn,sn=on,si=an,Re={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},fe={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;fe.getBCHDigit(t)-fe.getBCHDigit(fe.G15)>=0;)t^=fe.G15<<fe.getBCHDigit(t)-fe.getBCHDigit(fe.G15);return(e<<10|t)^fe.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;fe.getBCHDigit(t)-fe.getBCHDigit(fe.G18)>=0;)t^=fe.G18<<fe.getBCHDigit(t)-fe.getBCHDigit(fe.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return fe.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case Re.PATTERN000:return(t+r)%2==0;case Re.PATTERN001:return t%2==0;case Re.PATTERN010:return r%3==0;case Re.PATTERN011:return(t+r)%3==0;case Re.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case Re.PATTERN101:return t*r%2+t*r%3==0;case Re.PATTERN110:return(t*r%2+t*r%3)%2==0;case Re.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new sn([1],0),r=0;r<e;r++)t=t.multiply(new sn([1,si.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case Ce.MODE_NUMBER:return 10;case Ce.MODE_ALPHA_NUM:return 9;case Ce.MODE_8BIT_BYTE:return 8;case Ce.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case Ce.MODE_NUMBER:return 12;case Ce.MODE_ALPHA_NUM:return 11;case Ce.MODE_8BIT_BYTE:return 16;case Ce.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case Ce.MODE_NUMBER:return 14;case Ce.MODE_ALPHA_NUM:return 13;case Ce.MODE_8BIT_BYTE:return 16;case Ce.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var A=0;A<t;A++){for(var i=0,a=e.isDark(n,A),o=-1;o<=1;o++)if(!(n+o<0||t<=n+o))for(var c=-1;c<=1;c++)A+c<0||t<=A+c||o==0&&c==0||a==e.isDark(n+o,A+c)&&i++;i>5&&(r+=3+i-5)}for(var n=0;n<t-1;n++)for(var A=0;A<t-1;A++){var u=0;e.isDark(n,A)&&u++,e.isDark(n+1,A)&&u++,e.isDark(n,A+1)&&u++,e.isDark(n+1,A+1)&&u++,(u==0||u==4)&&(r+=3)}for(var n=0;n<t;n++)for(var A=0;A<t-6;A++)e.isDark(n,A)&&!e.isDark(n,A+1)&&e.isDark(n,A+2)&&e.isDark(n,A+3)&&e.isDark(n,A+4)&&!e.isDark(n,A+5)&&e.isDark(n,A+6)&&(r+=40);for(var A=0;A<t;A++)for(var n=0;n<t-6;n++)e.isDark(n,A)&&!e.isDark(n+1,A)&&e.isDark(n+2,A)&&e.isDark(n+3,A)&&e.isDark(n+4,A)&&!e.isDark(n+5,A)&&e.isDark(n+6,A)&&(r+=40);for(var l=0,A=0;A<t;A++)for(var n=0;n<t;n++)e.isDark(n,A)&&l++;var m=Math.abs(100*l/t/t-50)/5;return r+=m*10,r}},ui=fe,li=ii,un=ai,ln=oi,Te=ui,ci=on;function ze(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var ye=ze.prototype;ye.addData=function(e){var t=new li(e);this.dataList.push(t),this.dataCache=null},ye.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},ye.getModuleCount=function(){return this.moduleCount},ye.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=un.getRSBlocks(e,this.errorCorrectLevel),r=new ln,n=0,A=0;A<t.length;A++)n+=t[A].dataCount;for(var A=0;A<this.dataList.length;A++){var i=this.dataList[A];r.put(i.mode,4),r.put(i.getLength(),Te.getLengthInBits(i.mode,e)),i.write(r)}if(r.getLengthInBits()<=n*8)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},ye.makeImpl=function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=ze.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},ye.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},ye.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=Te.getLostPoint(this);(r==0||e>n)&&(e=n,t=r)}return t},ye.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r),A=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*A,o=0;o<this.modules[i].length;o++){var c=o*A,u=this.modules[i][o];u&&(n.beginFill(0,100),n.moveTo(c,a),n.lineTo(c+A,a),n.lineTo(c+A,a+A),n.lineTo(c,a+A),n.endFill())}return n},ye.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},ye.setupPositionAdjustPattern=function(){for(var e=Te.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],A=e[r];if(this.modules[n][A]==null)for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||i==2||a==-2||a==2||i==0&&a==0?this.modules[n+i][A+a]=!0:this.modules[n+i][A+a]=!1}},ye.setupTypeNumber=function(e){for(var t=Te.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},ye.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=Te.getBCHTypeInfo(r),A=0;A<15;A++){var i=!e&&(n>>A&1)==1;A<6?this.modules[A][8]=i:A<8?this.modules[A+1][8]=i:this.modules[this.moduleCount-15+A][8]=i}for(var A=0;A<15;A++){var i=!e&&(n>>A&1)==1;A<8?this.modules[8][this.moduleCount-A-1]=i:A<9?this.modules[8][15-A-1+1]=i:this.modules[8][15-A-1]=i}this.modules[this.moduleCount-8][8]=!e},ye.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,A=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var o=0;o<2;o++)if(this.modules[n][a-o]==null){var c=!1;i<e.length&&(c=(e[i]>>>A&1)==1);var u=Te.getMask(t,n,a-o);u&&(c=!c),this.modules[n][a-o]=c,A--,A==-1&&(i++,A=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}},ze.PAD0=236,ze.PAD1=17,ze.createData=function(e,t,r){for(var n=un.getRSBlocks(e,t),A=new ln,i=0;i<r.length;i++){var a=r[i];A.put(a.mode,4),A.put(a.getLength(),Te.getLengthInBits(a.mode,e)),a.write(A)}for(var o=0,i=0;i<n.length;i++)o+=n[i].dataCount;if(A.getLengthInBits()>o*8)throw new Error("code length overflow. ("+A.getLengthInBits()+">"+o*8+")");for(A.getLengthInBits()+4<=o*8&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=o*8||(A.put(ze.PAD0,8),A.getLengthInBits()>=o*8));)A.put(ze.PAD1,8);return ze.createBytes(A,n)},ze.createBytes=function(e,t){for(var r=0,n=0,A=0,i=new Array(t.length),a=new Array(t.length),o=0;o<t.length;o++){var c=t[o].dataCount,u=t[o].totalCount-c;n=Math.max(n,c),A=Math.max(A,u),i[o]=new Array(c);for(var l=0;l<i[o].length;l++)i[o][l]=255&e.buffer[l+r];r+=c;var m=Te.getErrorCorrectPolynomial(u),p=new ci(i[o],m.getLength()-1),f=p.mod(m);a[o]=new Array(m.getLength()-1);for(var l=0;l<a[o].length;l++){var q=l+f.getLength()-a[o].length;a[o][l]=q>=0?f.get(q):0}}for(var g=0,l=0;l<t.length;l++)g+=t[l].totalCount;for(var I=new Array(g),W=0,l=0;l<n;l++)for(var o=0;o<t.length;o++)l<i[o].length&&(I[W++]=i[o][l]);for(var l=0;l<A;l++)for(var o=0;o<t.length;o++)l<a[o].length&&(I[W++]=a[o][l]);return I};var mi=ze,or={exports:{}},xt={exports:{}},Ae={};/** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -76,5 +76,5 @@ doc.body (`+e+`):
76
76
  `+A:"")+`
77
77
 
78
78
  The above lifecycles should be removed. Learn more about this warning here:
79
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=WA,t.componentWillReceiveProps=OA),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=SA;var o=t.componentDidUpdate;t.componentDidUpdate=function(u,l,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;o.call(this,u,l,p)}}return e}const ws=FA(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Ks},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.bodyOpenClassName=Ue.portalClassName=void 0;var MA=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},Ws=function(){function e(t,r){for(var n=0;n<r.length;n++){var A=r[n];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(t,A.key,A)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),xA=Z,tr=wt(xA),Os=BA,rr=wt(Os),Ss=Et,T=wt(Ss),Ms=Is,EA=wt(Ms),xs=xe,Es=Ys(xs),Qe=Ee,LA=wt(Qe),Ls=ws;function Ys(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function wt(e){return e&&e.__esModule?e:{default:e}}function zs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ks(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var js=Ue.portalClassName="ReactModalPortal",Js=Ue.bodyOpenClassName="ReactModal__Body--open",tt=Qe.canUseDOM&&rr.default.createPortal!==void 0,Pr=function(t){return document.createElement(t)},zA=function(){return tt?rr.default.createPortal:rr.default.unstable_renderSubtreeIntoContainer};function nr(e){return e()}var ut=function(e){ks(t,e);function t(){var r,n,A,i;zs(this,t);for(var a=arguments.length,o=Array(a),c=0;c<a;c++)o[c]=arguments[c];return i=(n=(A=YA(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(o))),A),A.removePortal=function(){!tt&&rr.default.unmountComponentAtNode(A.node);var u=nr(A.props.parentSelector);u&&u.contains(A.node)?u.removeChild(A.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},A.portalRef=function(u){A.portal=u},A.renderPortal=function(u){var l=zA(),m=l(A,tr.default.createElement(EA.default,MA({defaultStyles:t.defaultStyles},u)),A.node);A.portalRef(m)},n),YA(A,i)}return Ws(t,[{key:"componentDidMount",value:function(){if(Qe.canUseDOM){tt||(this.node=Pr("div")),this.node.className=this.props.portalClassName;var n=nr(this.props.parentSelector);n.appendChild(this.node),!tt&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(n){var A=nr(n.parentSelector),i=nr(this.props.parentSelector);return{prevParent:A,nextParent:i}}},{key:"componentDidUpdate",value:function(n,A,i){if(Qe.canUseDOM){var a=this.props,o=a.isOpen,c=a.portalClassName;n.portalClassName!==c&&(this.node.className=c);var u=i.prevParent,l=i.nextParent;l!==u&&(u.removeChild(this.node),l.appendChild(this.node)),!(!n.isOpen&&!o)&&!tt&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Qe.canUseDOM||!this.node||!this.portal)){var n=this.portal.state,A=Date.now(),i=n.isOpen&&this.props.closeTimeoutMS&&(n.closesAt||A+this.props.closeTimeoutMS);i?(n.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,i-A)):this.removePortal()}}},{key:"render",value:function(){if(!Qe.canUseDOM||!tt)return null;!this.node&&tt&&(this.node=Pr("div"));var n=zA();return n(tr.default.createElement(EA.default,MA({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(n){Es.setElement(n)}}]),t}(xA.Component);ut.propTypes={isOpen:T.default.bool.isRequired,style:T.default.shape({content:T.default.object,overlay:T.default.object}),portalClassName:T.default.string,bodyOpenClassName:T.default.string,htmlOpenClassName:T.default.string,className:T.default.oneOfType([T.default.string,T.default.shape({base:T.default.string.isRequired,afterOpen:T.default.string.isRequired,beforeClose:T.default.string.isRequired})]),overlayClassName:T.default.oneOfType([T.default.string,T.default.shape({base:T.default.string.isRequired,afterOpen:T.default.string.isRequired,beforeClose:T.default.string.isRequired})]),appElement:T.default.oneOfType([T.default.instanceOf(LA.default),T.default.instanceOf(Qe.SafeHTMLCollection),T.default.instanceOf(Qe.SafeNodeList),T.default.arrayOf(T.default.instanceOf(LA.default))]),onAfterOpen:T.default.func,onRequestClose:T.default.func,closeTimeoutMS:T.default.number,ariaHideApp:T.default.bool,shouldFocusAfterRender:T.default.bool,shouldCloseOnOverlayClick:T.default.bool,shouldReturnFocusAfterClose:T.default.bool,preventScroll:T.default.bool,parentSelector:T.default.func,aria:T.default.object,data:T.default.object,role:T.default.string,contentLabel:T.default.string,shouldCloseOnEsc:T.default.bool,overlayRef:T.default.func,contentRef:T.default.func,id:T.default.string,overlayElement:T.default.func,contentElement:T.default.func},ut.defaultProps={isOpen:!1,portalClassName:js,bodyOpenClassName:Js,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,r){return tr.default.createElement("div",t,r)},contentElement:function(t,r){return tr.default.createElement("div",t,r)}},ut.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,Ls.polyfill)(ut),process.env.NODE_ENV!=="production"&&(ut.setCreateHTMLElement=function(e){return Pr=e}),Ue.default=ut,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Ue,n=A(r);function A(i){return i&&i.__esModule?i:{default:i}}t.default=n.default,e.exports=t.default}(Dr,Dr.exports);var Ns=Dr.exports;const Ds=UA(Ns),Gs=({visible:e,closeModal:t,versionId:r,gameId:n,versionName:A,playableId:i,typeOfProduct:a,api:o,user:c,title:u,iframeUrl:l,handleDownloadError:m,fetchFileUrl:p})=>{const[f,q]=Z.useState(window.innerWidth);return Z.useEffect(()=>{const g=()=>{q(window.innerWidth)};return window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[]),h.jsxs(Ds,{isOpen:e,ariaHideApp:!1,onRequestClose:t,style:{content:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",borderRadius:"0.75rem",backgroundColor:"white",zIndex:50,height:f>1440?"700px":"650px",width:f>1440?"1062px":"950px",overflow:"hidden"},overlay:{position:"fixed",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:50,top:0,left:0,right:0,bottom:0}},contentLabel:"Playable Editing Download Modal",shouldCloseOnOverlayClick:!0,children:[h.jsx("div",{style:{position:"absolute",top:"1.25rem",right:"1.25rem",zIndex:50},children:h.jsx("button",{onClick:t,style:{color:"#718096",cursor:"pointer",backgroundColor:"white"},children:h.jsx("img",{src:ei,alt:"close image"})})}),h.jsxs(ti,{children:[h.jsx(uo,{versionName:A,versionId:r,typeOfProduct:a,iframeUrl:l,api:o,fetchFileUrl:p}),h.jsx(Lo,{visible:e,versionId:r,playableId:i,gameId:n,typeOfProduct:a,api:o,user:c,title:u,handleDownloadError:m,fetchFileUrl:p})]}),h.jsx(kr,{})]})};Ge.DownloadModal=Gs,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
79
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=WA,t.componentWillReceiveProps=OA),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=SA;var o=t.componentDidUpdate;t.componentDidUpdate=function(u,l,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;o.call(this,u,l,p)}}return e}const ws=FA(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Ks},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.bodyOpenClassName=Ue.portalClassName=void 0;var MA=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},Ws=function(){function e(t,r){for(var n=0;n<r.length;n++){var A=r[n];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(t,A.key,A)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),xA=Z,tr=wt(xA),Os=BA,rr=wt(Os),Ss=Et,T=wt(Ss),Ms=Is,EA=wt(Ms),xs=xe,Es=Ys(xs),Qe=Ee,LA=wt(Qe),Ls=ws;function Ys(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function wt(e){return e&&e.__esModule?e:{default:e}}function zs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ks(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var js=Ue.portalClassName="ReactModalPortal",Js=Ue.bodyOpenClassName="ReactModal__Body--open",tt=Qe.canUseDOM&&rr.default.createPortal!==void 0,Pr=function(t){return document.createElement(t)},zA=function(){return tt?rr.default.createPortal:rr.default.unstable_renderSubtreeIntoContainer};function nr(e){return e()}var ut=function(e){ks(t,e);function t(){var r,n,A,i;zs(this,t);for(var a=arguments.length,o=Array(a),c=0;c<a;c++)o[c]=arguments[c];return i=(n=(A=YA(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(o))),A),A.removePortal=function(){!tt&&rr.default.unmountComponentAtNode(A.node);var u=nr(A.props.parentSelector);u&&u.contains(A.node)?u.removeChild(A.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},A.portalRef=function(u){A.portal=u},A.renderPortal=function(u){var l=zA(),m=l(A,tr.default.createElement(EA.default,MA({defaultStyles:t.defaultStyles},u)),A.node);A.portalRef(m)},n),YA(A,i)}return Ws(t,[{key:"componentDidMount",value:function(){if(Qe.canUseDOM){tt||(this.node=Pr("div")),this.node.className=this.props.portalClassName;var n=nr(this.props.parentSelector);n.appendChild(this.node),!tt&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(n){var A=nr(n.parentSelector),i=nr(this.props.parentSelector);return{prevParent:A,nextParent:i}}},{key:"componentDidUpdate",value:function(n,A,i){if(Qe.canUseDOM){var a=this.props,o=a.isOpen,c=a.portalClassName;n.portalClassName!==c&&(this.node.className=c);var u=i.prevParent,l=i.nextParent;l!==u&&(u.removeChild(this.node),l.appendChild(this.node)),!(!n.isOpen&&!o)&&!tt&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Qe.canUseDOM||!this.node||!this.portal)){var n=this.portal.state,A=Date.now(),i=n.isOpen&&this.props.closeTimeoutMS&&(n.closesAt||A+this.props.closeTimeoutMS);i?(n.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,i-A)):this.removePortal()}}},{key:"render",value:function(){if(!Qe.canUseDOM||!tt)return null;!this.node&&tt&&(this.node=Pr("div"));var n=zA();return n(tr.default.createElement(EA.default,MA({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(n){Es.setElement(n)}}]),t}(xA.Component);ut.propTypes={isOpen:T.default.bool.isRequired,style:T.default.shape({content:T.default.object,overlay:T.default.object}),portalClassName:T.default.string,bodyOpenClassName:T.default.string,htmlOpenClassName:T.default.string,className:T.default.oneOfType([T.default.string,T.default.shape({base:T.default.string.isRequired,afterOpen:T.default.string.isRequired,beforeClose:T.default.string.isRequired})]),overlayClassName:T.default.oneOfType([T.default.string,T.default.shape({base:T.default.string.isRequired,afterOpen:T.default.string.isRequired,beforeClose:T.default.string.isRequired})]),appElement:T.default.oneOfType([T.default.instanceOf(LA.default),T.default.instanceOf(Qe.SafeHTMLCollection),T.default.instanceOf(Qe.SafeNodeList),T.default.arrayOf(T.default.instanceOf(LA.default))]),onAfterOpen:T.default.func,onRequestClose:T.default.func,closeTimeoutMS:T.default.number,ariaHideApp:T.default.bool,shouldFocusAfterRender:T.default.bool,shouldCloseOnOverlayClick:T.default.bool,shouldReturnFocusAfterClose:T.default.bool,preventScroll:T.default.bool,parentSelector:T.default.func,aria:T.default.object,data:T.default.object,role:T.default.string,contentLabel:T.default.string,shouldCloseOnEsc:T.default.bool,overlayRef:T.default.func,contentRef:T.default.func,id:T.default.string,overlayElement:T.default.func,contentElement:T.default.func},ut.defaultProps={isOpen:!1,portalClassName:js,bodyOpenClassName:Js,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,r){return tr.default.createElement("div",t,r)},contentElement:function(t,r){return tr.default.createElement("div",t,r)}},ut.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,Ls.polyfill)(ut),process.env.NODE_ENV!=="production"&&(ut.setCreateHTMLElement=function(e){return Pr=e}),Ue.default=ut,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Ue,n=A(r);function A(i){return i&&i.__esModule?i:{default:i}}t.default=n.default,e.exports=t.default}(Dr,Dr.exports);var Ns=Dr.exports;const Ds=UA(Ns),Gs=({visible:e,closeModal:t,versionId:r,gameId:n,versionName:A,playableId:i,typeOfProduct:a,api:o,user:c,title:u,iframeUrl:l,handleDownloadError:m,fetchFileUrl:p})=>{const[f,q]=Z.useState(window.innerWidth);return Z.useEffect(()=>{const g=()=>{q(window.innerWidth)};return window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[]),h.jsxs(Ds,{isOpen:e,ariaHideApp:!1,onRequestClose:t,style:{content:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",borderRadius:"0.75rem",backgroundColor:"white",zIndex:50,height:f>1440?"700px":"650px",width:(f>1440,"950px"),overflow:"hidden"},overlay:{position:"fixed",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:50,top:0,left:0,right:0,bottom:0}},contentLabel:"Playable Editing Download Modal",shouldCloseOnOverlayClick:!0,children:[h.jsx("div",{style:{position:"absolute",top:"1.25rem",right:"1.25rem",zIndex:50},children:h.jsx("button",{onClick:t,style:{color:"#718096",cursor:"pointer",backgroundColor:"white"},children:h.jsx("img",{src:ei,alt:"close image"})})}),h.jsxs(ti,{children:[h.jsx(uo,{versionName:A,versionId:r,typeOfProduct:a,iframeUrl:l,api:o,fetchFileUrl:p}),h.jsx(Lo,{visible:e,versionId:r,playableId:i,gameId:n,typeOfProduct:a,api:o,user:c,title:u,handleDownloadError:m,fetchFileUrl:p})]}),h.jsx(kr,{})]})};Ge.DownloadModal=Gs,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
80
80
  //# sourceMappingURL=index.umd.js.map