gearboxdownloadmodal 3.0.1 → 3.0.2
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.es.js +0 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@ Check the render method of \``+s+"`."}return""}}function _s(s){{if(s!==void 0){v
|
|
|
24
24
|
|
|
25
25
|
Check your code at `+Z+":"+S+"."}return""}}var TA={};function $s(s){{var Z=RA();if(!Z){var S=typeof s=="string"?s:s.displayName||s.name;S&&(Z=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+S+">.")}return Z}}function HA(s,Z){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var S=$s(Z);if(TA[S])return;TA[S]=!0;var D="";s&&s._owner&&s._owner!==Ur.current&&(D=" It was passed a child from "+T(s._owner.type)+"."),ct(s),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',S,D),ct(null)}}function XA(s,Z){{if(typeof s!="object")return;if(Vr(s))for(var S=0;S<s.length;S++){var D=s[S];_r(D)&&HA(D,Z)}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 ie=ne.call(s),_;!(_=ie.next()).done;)_r(_.value)&&HA(_.value,Z)}}}function eu(s){{var Z=s.type;if(Z==null||typeof Z=="string")return;var S;if(typeof Z=="function")S=Z.propTypes;else if(typeof Z=="object"&&(Z.$$typeof===c||Z.$$typeof===m))S=Z.propTypes;else return;if(S){var D=T(Z);Ds(S,s.props,"prop",D,s)}else if(Z.PropTypes!==void 0&&!Fr){Fr=!0;var ne=T(Z);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof Z.getDefaultProps=="function"&&!Z.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tu(s){{for(var Z=Object.keys(s.props),S=0;S<Z.length;S++){var D=Z[S];if(D!=="children"&&D!=="key"){ct(s),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),ct(null);break}}s.ref!==null&&(ct(s),x("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}function QA(s,Z,S,D,ne,ie){{var _=U(s);if(!_){var F="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(F+=" 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 ve=_s(ne);ve?F+=ve:F+=RA();var ce;s===null?ce="null":Vr(s)?ce="array":s!==void 0&&s.$$typeof===t?(ce="<"+(T(s.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof s,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,F)}var de=Fs(s,Z,S,ne,ie);if(de==null)return de;if(_){var We=Z.children;if(We!==void 0)if(D)if(Vr(We)){for(var mt=0;mt<We.length;mt++)XA(We[mt],s);Object.freeze&&Object.freeze(We)}else x("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 XA(We,s)}return s===n?tu(de):eu(de),de}}function ru(s,Z,S){return QA(s,Z,S,!0)}function nu(s,Z,S){return QA(s,Z,S,!1)}var Au=nu,au=ru;pt.Fragment=n,pt.jsx=Au,pt.jsxs=au}()),pt}process.env.NODE_ENV==="production"?or.exports=FA():or.exports=_A();var y=or.exports;const $A="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlLXdpZHRoPSIxLjgiCiAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgLz4KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZS13aWR0aD0iMS44IgogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+CiAgICA8cGF0aAogICAgICBkPSJNMTYuNTY4NCAyOEM5Ljk0MDM2IDI4IDQuNTY4MzYgMjIuNjI4IDQuNTY4MzYgMTZDNC41NjgzNiA5LjM3MiA5Ljk0MDM2IDQgMTYuNTY4NCA0QzIzLjE5NjQgNCAyOC41Njg0IDkuMzcyIDI4LjU2ODQgMTZDMjguNTY4NCAyMi42MjggMjMuMTk2NCAyOCAxNi41Njg0IDI4WiIKICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=",ea=({children:e})=>{const[t,r]=w.useState(window.innerWidth);return w.useEffect(()=>{const n=()=>{r(window.innerWidth)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),y.jsx("div",{style:{position:"relative",display:"flex",maxHeight:t>1200?"750px":"650px",height:750,width:t>1200?"1062px":"912px"},children:e})},ta=({iframeUrl:e})=>{const t=window.devicePixelRatio>1,r=window.screen.width>=3840&&window.screen.height>=2160,o={...{display:"flex",height:"66.667%",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"10px",border:"1px solid #333333"},...t?{height:"430px"}:{},...r?{height:"430px"}:{}};return y.jsx("div",{style:o,children:y.jsx("iframe",{title:"preview",sandbox:"allow-same-origin",src:e,className:"h-full w-full rounded-xl border-none"})})},ra=({name:e})=>y.jsx("div",{className:"mr-2 flex h-10 w-full items-center justify-center rounded-lg border border-dark-20",children:e});var Ot={},tn={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},na=tn;function rn(e){this.mode=na.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 Aa=rn,nn={L:1,M:0,Q:3,H:2},St=nn;function xe(e,t){this.totalCount=e,this.dataCount=t}xe.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]],xe.getRSBlocks=function(e,t){var r=xe.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,a=0;a<n;a++)for(var o=r[a*3+0],i=r[a*3+1],c=r[a*3+2],u=0;u<o;u++)A.push(new xe(i,c));return A},xe.getRsBlockTable=function(e,t){switch(t){case St.L:return xe.RS_BLOCK_TABLE[(e-1)*4+0];case St.M:return xe.RS_BLOCK_TABLE[(e-1)*4+1];case St.Q:return xe.RS_BLOCK_TABLE[(e-1)*4+2];case St.H:return xe.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};var aa=xe;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 oa=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,Ze=tn,sn=on,ia=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,ia.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case Ze.MODE_NUMBER:return 10;case Ze.MODE_ALPHA_NUM:return 9;case Ze.MODE_8BIT_BYTE:return 8;case Ze.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case Ze.MODE_NUMBER:return 12;case Ze.MODE_ALPHA_NUM:return 11;case Ze.MODE_8BIT_BYTE:return 16;case Ze.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case Ze.MODE_NUMBER:return 14;case Ze.MODE_ALPHA_NUM:return 13;case Ze.MODE_8BIT_BYTE:return 16;case Ze.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 a=0,o=e.isDark(n,A),i=-1;i<=1;i++)if(!(n+i<0||t<=n+i))for(var c=-1;c<=1;c++)A+c<0||t<=A+c||i==0&&c==0||o==e.isDark(n+i,A+c)&&a++;a>5&&(r+=3+a-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}},sa=fe,ua=Aa,un=aa,ln=oa,Te=sa,la=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 ua(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 a=this.dataList[A];r.put(a.mode,4),r.put(a.getLength(),Te.getLengthInBits(a.mode,e)),a.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 a=0;a<this.modules.length;a++)for(var o=a*A,i=0;i<this.modules[a].length;i++){var c=i*A,u=this.modules[a][i];u&&(n.beginFill(0,100),n.moveTo(c,o),n.lineTo(c+A,o),n.lineTo(c+A,o+A),n.lineTo(c,o+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 a=-2;a<=2;a++)for(var o=-2;o<=2;o++)a==-2||a==2||o==-2||o==2||a==0&&o==0?this.modules[n+a][A+o]=!0:this.modules[n+a][A+o]=!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 a=!e&&(n>>A&1)==1;A<6?this.modules[A][8]=a:A<8?this.modules[A+1][8]=a:this.modules[this.moduleCount-15+A][8]=a}for(var A=0;A<15;A++){var a=!e&&(n>>A&1)==1;A<8?this.modules[8][this.moduleCount-A-1]=a:A<9?this.modules[8][15-A-1+1]=a:this.modules[8][15-A-1]=a}this.modules[this.moduleCount-8][8]=!e},ye.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,A=7,a=0,o=this.moduleCount-1;o>0;o-=2)for(o==6&&o--;;){for(var i=0;i<2;i++)if(this.modules[n][o-i]==null){var c=!1;a<e.length&&(c=(e[a]>>>A&1)==1);var u=Te.getMask(t,n,o-i);u&&(c=!c),this.modules[n][o-i]=c,A--,A==-1&&(a++,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,a=0;a<r.length;a++){var o=r[a];A.put(o.mode,4),A.put(o.getLength(),Te.getLengthInBits(o.mode,e)),o.write(A)}for(var i=0,a=0;a<n.length;a++)i+=n[a].dataCount;if(A.getLengthInBits()>i*8)throw new Error("code length overflow. ("+A.getLengthInBits()+">"+i*8+")");for(A.getLengthInBits()+4<=i*8&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=i*8||(A.put(ze.PAD0,8),A.getLengthInBits()>=i*8));)A.put(ze.PAD1,8);return ze.createBytes(A,n)},ze.createBytes=function(e,t){for(var r=0,n=0,A=0,a=new Array(t.length),o=new Array(t.length),i=0;i<t.length;i++){var c=t[i].dataCount,u=t[i].totalCount-c;n=Math.max(n,c),A=Math.max(A,u),a[i]=new Array(c);for(var l=0;l<a[i].length;l++)a[i][l]=255&e.buffer[l+r];r+=c;var m=Te.getErrorCorrectPolynomial(u),g=new la(a[i],m.getLength()-1),f=g.mod(m);o[i]=new Array(m.getLength()-1);for(var l=0;l<o[i].length;l++){var p=l+f.getLength()-o[i].length;o[i][l]=p>=0?f.get(p):0}}for(var v=0,l=0;l<t.length;l++)v+=t[l].totalCount;for(var I=new Array(v),K=0,l=0;l<n;l++)for(var i=0;i<t.length;i++)l<a[i].length&&(I[K++]=a[i][l]);for(var l=0;l<A;l++)for(var i=0;i<t.length;i++)l<o[i].length&&(I[K++]=o[i][l]);return I};var ca=ze,ir={exports:{}},Et={exports:{}},Ae={};/** @license React v16.13.1
|
|
27
|
+
Check the top-level render call using <`+S+">.")}return Z}}function HA(s,Z){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var S=$s(Z);if(TA[S])return;TA[S]=!0;var D="";s&&s._owner&&s._owner!==Ur.current&&(D=" It was passed a child from "+T(s._owner.type)+"."),ct(s),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',S,D),ct(null)}}function XA(s,Z){{if(typeof s!="object")return;if(Vr(s))for(var S=0;S<s.length;S++){var D=s[S];_r(D)&&HA(D,Z)}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 ie=ne.call(s),_;!(_=ie.next()).done;)_r(_.value)&&HA(_.value,Z)}}}function eu(s){{var Z=s.type;if(Z==null||typeof Z=="string")return;var S;if(typeof Z=="function")S=Z.propTypes;else if(typeof Z=="object"&&(Z.$$typeof===c||Z.$$typeof===m))S=Z.propTypes;else return;if(S){var D=T(Z);Ds(S,s.props,"prop",D,s)}else if(Z.PropTypes!==void 0&&!Fr){Fr=!0;var ne=T(Z);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof Z.getDefaultProps=="function"&&!Z.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tu(s){{for(var Z=Object.keys(s.props),S=0;S<Z.length;S++){var D=Z[S];if(D!=="children"&&D!=="key"){ct(s),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),ct(null);break}}s.ref!==null&&(ct(s),x("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}function QA(s,Z,S,D,ne,ie){{var _=U(s);if(!_){var F="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(F+=" 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 ve=_s(ne);ve?F+=ve:F+=RA();var ce;s===null?ce="null":Vr(s)?ce="array":s!==void 0&&s.$$typeof===t?(ce="<"+(T(s.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof s,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,F)}var de=Fs(s,Z,S,ne,ie);if(de==null)return de;if(_){var We=Z.children;if(We!==void 0)if(D)if(Vr(We)){for(var mt=0;mt<We.length;mt++)XA(We[mt],s);Object.freeze&&Object.freeze(We)}else x("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 XA(We,s)}return s===n?tu(de):eu(de),de}}function ru(s,Z,S){return QA(s,Z,S,!0)}function nu(s,Z,S){return QA(s,Z,S,!1)}var Au=nu,au=ru;pt.Fragment=n,pt.jsx=Au,pt.jsxs=au}()),pt}process.env.NODE_ENV==="production"?or.exports=FA():or.exports=_A();var y=or.exports;const $A="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlLXdpZHRoPSIxLjgiCiAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgLz4KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZS13aWR0aD0iMS44IgogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+CiAgICA8cGF0aAogICAgICBkPSJNMTYuNTY4NCAyOEM5Ljk0MDM2IDI4IDQuNTY4MzYgMjIuNjI4IDQuNTY4MzYgMTZDNC41NjgzNiA5LjM3MiA5Ljk0MDM2IDQgMTYuNTY4NCA0QzIzLjE5NjQgNCAyOC41Njg0IDkuMzcyIDI4LjU2ODQgMTZDMjguNTY4NCAyMi42MjggMjMuMTk2NCAyOCAxNi41Njg0IDI4WiIKICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=",ea=({children:e})=>{const[t,r]=w.useState(window.innerWidth);return w.useEffect(()=>{const n=()=>{r(window.innerWidth)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),y.jsx("div",{style:{position:"relative",display:"flex",maxHeight:t>1200?"750px":"650px",height:750,width:t>1200?"1062px":"912px"},children:e})},ta=({iframeUrl:e})=>{const t=window.devicePixelRatio>1,r=window.screen.width>=3840&&window.screen.height>=2160,o={...{display:"flex",height:"66.667%",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"10px",border:"1px solid #333333"},...t?{height:"430px"}:{},...r?{height:"430px"}:{}};return y.jsx("div",{style:o,children:y.jsx("iframe",{title:"preview",src:e,className:"h-full w-full rounded-xl border-none"})})},ra=({name:e})=>y.jsx("div",{className:"mr-2 flex h-10 w-full items-center justify-center rounded-lg border border-dark-20",children:e});var Ot={},tn={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},na=tn;function rn(e){this.mode=na.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 Aa=rn,nn={L:1,M:0,Q:3,H:2},St=nn;function xe(e,t){this.totalCount=e,this.dataCount=t}xe.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]],xe.getRSBlocks=function(e,t){var r=xe.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,a=0;a<n;a++)for(var o=r[a*3+0],i=r[a*3+1],c=r[a*3+2],u=0;u<o;u++)A.push(new xe(i,c));return A},xe.getRsBlockTable=function(e,t){switch(t){case St.L:return xe.RS_BLOCK_TABLE[(e-1)*4+0];case St.M:return xe.RS_BLOCK_TABLE[(e-1)*4+1];case St.Q:return xe.RS_BLOCK_TABLE[(e-1)*4+2];case St.H:return xe.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};var aa=xe;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 oa=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,Ze=tn,sn=on,ia=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,ia.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case Ze.MODE_NUMBER:return 10;case Ze.MODE_ALPHA_NUM:return 9;case Ze.MODE_8BIT_BYTE:return 8;case Ze.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case Ze.MODE_NUMBER:return 12;case Ze.MODE_ALPHA_NUM:return 11;case Ze.MODE_8BIT_BYTE:return 16;case Ze.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case Ze.MODE_NUMBER:return 14;case Ze.MODE_ALPHA_NUM:return 13;case Ze.MODE_8BIT_BYTE:return 16;case Ze.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 a=0,o=e.isDark(n,A),i=-1;i<=1;i++)if(!(n+i<0||t<=n+i))for(var c=-1;c<=1;c++)A+c<0||t<=A+c||i==0&&c==0||o==e.isDark(n+i,A+c)&&a++;a>5&&(r+=3+a-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}},sa=fe,ua=Aa,un=aa,ln=oa,Te=sa,la=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 ua(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 a=this.dataList[A];r.put(a.mode,4),r.put(a.getLength(),Te.getLengthInBits(a.mode,e)),a.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 a=0;a<this.modules.length;a++)for(var o=a*A,i=0;i<this.modules[a].length;i++){var c=i*A,u=this.modules[a][i];u&&(n.beginFill(0,100),n.moveTo(c,o),n.lineTo(c+A,o),n.lineTo(c+A,o+A),n.lineTo(c,o+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 a=-2;a<=2;a++)for(var o=-2;o<=2;o++)a==-2||a==2||o==-2||o==2||a==0&&o==0?this.modules[n+a][A+o]=!0:this.modules[n+a][A+o]=!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 a=!e&&(n>>A&1)==1;A<6?this.modules[A][8]=a:A<8?this.modules[A+1][8]=a:this.modules[this.moduleCount-15+A][8]=a}for(var A=0;A<15;A++){var a=!e&&(n>>A&1)==1;A<8?this.modules[8][this.moduleCount-A-1]=a:A<9?this.modules[8][15-A-1+1]=a:this.modules[8][15-A-1]=a}this.modules[this.moduleCount-8][8]=!e},ye.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,A=7,a=0,o=this.moduleCount-1;o>0;o-=2)for(o==6&&o--;;){for(var i=0;i<2;i++)if(this.modules[n][o-i]==null){var c=!1;a<e.length&&(c=(e[a]>>>A&1)==1);var u=Te.getMask(t,n,o-i);u&&(c=!c),this.modules[n][o-i]=c,A--,A==-1&&(a++,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,a=0;a<r.length;a++){var o=r[a];A.put(o.mode,4),A.put(o.getLength(),Te.getLengthInBits(o.mode,e)),o.write(A)}for(var i=0,a=0;a<n.length;a++)i+=n[a].dataCount;if(A.getLengthInBits()>i*8)throw new Error("code length overflow. ("+A.getLengthInBits()+">"+i*8+")");for(A.getLengthInBits()+4<=i*8&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=i*8||(A.put(ze.PAD0,8),A.getLengthInBits()>=i*8));)A.put(ze.PAD1,8);return ze.createBytes(A,n)},ze.createBytes=function(e,t){for(var r=0,n=0,A=0,a=new Array(t.length),o=new Array(t.length),i=0;i<t.length;i++){var c=t[i].dataCount,u=t[i].totalCount-c;n=Math.max(n,c),A=Math.max(A,u),a[i]=new Array(c);for(var l=0;l<a[i].length;l++)a[i][l]=255&e.buffer[l+r];r+=c;var m=Te.getErrorCorrectPolynomial(u),g=new la(a[i],m.getLength()-1),f=g.mod(m);o[i]=new Array(m.getLength()-1);for(var l=0;l<o[i].length;l++){var p=l+f.getLength()-o[i].length;o[i][l]=p>=0?f.get(p):0}}for(var v=0,l=0;l<t.length;l++)v+=t[l].totalCount;for(var I=new Array(v),K=0,l=0;l<n;l++)for(var i=0;i<t.length;i++)l<a[i].length&&(I[K++]=a[i][l]);for(var l=0;l<A;l++)for(var i=0;i<t.length;i++)l<o[i].length&&(I[K++]=o[i][l]);return I};var ca=ze,ir={exports:{}},Et={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.
|