0xa9c2…ea61

All memos sent from and to 0xa9c2…ea61.

for(let e=0;e<4;e++){const n=be+e*Math.PI/4,a=Math.sin(n);t[y](),t.ellipse(o,r,Math.abs(a)*l,l,0,0,2*Math.PI),t.stroke()}const c=[-.5,0,.5];for(const e of c){const n=r+e*l,a=Math.cos(e)*l;t[y](),t.ellipse(o,n,a,.15*a,0,0,2*Math.PI),t.stroke()}t.restore()}async function Fn(){const t=document.getElementById("punkCanvas"),n=document.getElementById("nftContainer"),a=document.getElementById("modeIndicator");function o(e){const n=e.changedTouches?e.changedTouches[0]:e,a={clientX:n.clientX,clientY:n.clientY};Rn(a,t)||$e(a,t)?e.preventDefault():it=!it}n&&n.classList.add(i),a&&(a.textContent=i+" mode"),t.width=et.canvasWidth,t.height=et.canvasHeight,"ontouchstart"in window?t.addEventListener("touchend",o):t.onclick=o,t.onmousemove=function(e){Mn(e,t)},t.onmouseleave=function(){Je=-1,t.style.cursor="default"};const r=t.getContext("2d");nt=new Image,e&&e.length>0?await new Promise((t,n)=>{nt.onload=t,nt.onerror=n,nt.src="data:image/svg+xml;base64,"+btoa(e)}):await new Promise((t,e)=>{nt.onload=t,nt.onerror=e,nt.src="./CONTRABAND-punk-Feb2026.svg"}),at=document.createElement("canvas"),at.width=24,at.height=24;var s=at.getContext("2d");s.imageSmoothingEnabled=0,s.drawImage(nt,0,0,24,24),ot=new Image,ot.crossOrigin="anonymous",await new Promise(t=>{ot.onload=t,ot.onerror=()=>{t()},ot.src=et.imageURL}),et.scrollText="",st=et.neonColors[0],we="dot",xe=0,Te=0,Me=0,Ie=[...Re],ft="CRT_power_on",ct=0,"function"==typeof pluginInit&&pluginInit(et,t,r),"portrait"===i?Bn(r,t):Wn(r,t)}function Wn(t,e){"function"==typeof yn&&yn();const n=et.punkScale;t.clearRect(0,0,e.width,e.height),ot&&ot.complete&&ot.naturalWidth>0?t.drawImage(ot,0,0,et.leftWidth,et.leftHeight):(t[k]="#d4b896",t[_](0,0,et.leftWidth,et.leftHeight),t[k]="#666",t.font="20px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Left Side Image",et.leftWidth/2,et.leftHeight/2),t.fillText("(Canvas-LeftSide.jpg)",et.leftWidth/2,et.leftHeight/2+30),t.textAlign="left"),Ln(t,et.leftWidth,0,et.rightWidth,et.canvasHeight),t.font=`500 ${et.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[k]="#ff00fc",t.textAlign="center",t.textBaseline="top";const a=et.leftWidth+et.rightWidth/2;t[T]="rgba(0, 0, 0, 0.5)",t[x]=3,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("CONTRABAND PUNK #0"+("string"==typeof TID?TID.replace(/^#/,""):"?"),a,et.headerY),t[T]="transparent",t[x]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const o=et.punkOffsetX+et.glassesX*n,r=et.punkOffsetY+et.glassesY*n,i=et.glassesWidth*n,s=et.glassesHeight*n,l=M[W];l.dark&&(t[T]="rgba(255, 255, 255, 0.6)",t[x]=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage(at,et.punkOffsetX,et.punkOffsetY,24*n,24*n),l.dark&&(t[T]="transparent",t[x]=0),Qe(t,n),Cn(t),Hn(t,o,r,i,s,n);const f=et.punkOffsetY+24*n,c=et.leftWidth+et.rightWidth/2;t.font=`bold ${et.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[k]="#000000",t.textAlign="center",t.textBaseline="top",t.letterSpacing="0px",t[T]="rgba(255, 255, 255, 0.6)",t[x]=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText("Attributes:",c,f+et.attributesTitleOffsetY),t[T]="transparent",t[x]=0,t.font=`500 ${et.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[k]="#ff00fc",t[T]="rgba(0, 0, 0, 0.70)",t[x]=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillText("VR-MOD, Hot-Cap, Not-Legit",c,f+et.attributesTextOffsetY),t[T]="transparent",t[x]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left",t[k]="#000000",t[_](0,0,e.width,5),t[_](0,e.height-5,e.width,5),t[_](0,0,5,e.height),t[_](e.width-5,0,5,e.height),t[_](et.leftWidth-2.5,0,5,e.height),Pn(t,i),Dn(t),rt=requestAnimationFrame(()=>Wn(t,e))}function Bn(t,e){"function"==typeof yn&&yn();const n=et.punkScale;if(t.clearRect(0,0,e.width,e.height),ot&&ot.complete&&ot.naturalWidth>0){const e=ot.naturalWidth/ot.naturalHeight,n=et.canvasWidth/et.topImageHeight;let a=0,o=0,r=ot.naturalWidth,i=ot.naturalHeight;e<n?(i=ot.naturalWidth/n,o=(ot.naturalHeight-i)/2):(r=ot.naturalHeight*n,a=(ot.naturalWidth-r)/2),t.drawImage(ot,a,o,r,i,0,0,et.canvasWidth,et.topImageHeight)}else t[k]="#d4b896",t[_](0,0,et.canvasWidth,et.topImageHeight),t[k]="#666",t.font="32px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Top Image Placeholder",et.canvasWidth/2,et.topImageHeight/2),t.fillText("(Canvas-TopSide-Portrait.jpg)",et.canvasWidth/2,et.topImageHeight/2+45),t.textAlign="left";Ln(t,0,et.bottomSectionY,et.canvasWidth,et.bottomSectionHeight),t.font=`bold ${et.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[k]="#ff00fc",t.textAlign="center",t.textBaseline="top",t[T]="rgba(0, 0, 0, 0.5)",t[x]=3,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("CONTRABAND 0"+("string"==typeof TID?TID.replace(/^#/,""):"?"),et.canvasWidth/2,et.bottomSectionY+et.headerY),t[T]="transparent",t[x]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const a=et.punkOffsetX+et.glassesX*n,o=et.punkOffsetY+et.glassesY*n,r=et.glassesWidth*n,i=et.glassesHeight*n,s=M[W];s.dark&&(t[T]="rgba(255, 255, 255, 0.6)",t[x]=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage(at,et.punkOffsetX,et.punkOffsetY,24*n,24*n),s.dark&&(t[T]="transparent",t[x]=0),Qe(t,n),Cn(t),Hn(t,a,o,r,i,n);const l=et.punkOffsetY+24*n,f=et.canvasWidth/2;t.textBaseline="alphabetic",t.letterSpacing="0px";const c=l+et.attributesTitleOffsetY+25;t.font=`bold ${et.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const h="Attributes: ",d=t.measureText(h).width;t.font=`bold ${et.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const u="VR-MOD, Hot-Cap, Not-Legit",p=f-(d+t.measureText(u).width)/2;t.font=`bold ${et.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[k]="#000000",t.textAlign="left",t[T]="rgba(255, 255, 255, 0.6)",t[x]=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText(h,p,c),t[T]="transparent",t[x]=0,t.font=`bold ${et.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[k]="#ff00fc",t[T]="rgba(0, 0, 0, 0.5)",t[x]=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText(u,p+d,c),t[T]="transparent",t[x]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t[k]="#000000",t[_](0,0,e.width,5),t[_](0,e.height-5,e.width,5),t[_](0,0,5,e.height),t[_](e.width-5,0,5,e.height),t[_](0,et.topImageHeight-2.5,e.width,5),Pn(t,r),Dn(t),rt=requestAnimationFrame(()=>Bn(t,e))}function Hn(t,e,n,a,o,r){if(t.save(),t[y](),t.rect(e,n,a,o),t.clip(),t[k]="#000000",t[_](e,n,a,o),"CRT_power_on"===ft||"CRT_power_off"===ft){const r=e+a/2,i=n+o/2,s=parseInt(Fe.slice(1,3),16),l=parseInt(Fe.slice(3,5),16),f=parseInt(Fe.slice(5,7),16);if("dot"===we||"dot_pause"===we){const e="dot_pause"===we?1:Te,n=2+4*e,a=1+1*e;t[T]=Fe,t[x]=8+6*e,t[k]=Fe,t[_](r-n/2,i-a/2,n,a),t[x]=15,t[v]=.6,t[_](r-n/2,i-a/2,n,a),t[v]=1,t[x]=0}else if("expand_h"===we){const e=6+Te*(a-6),n=2+1*Te;t[T]=Fe,t[x]=12,t[k]=Fe,t[_](r-e/2,i-n/2,e,n),t[x]=20,t[v]=.5,t[_](r-e/2,i-n/2,e,n),t[v]=1,t[x]=0}else if("expand_v"===we){const n=a,r=3+Te*(o-3);t[T]=Fe,t[x]=10,t[k]=Fe,t[_](e,i-r/2,n,r),t[x]=0}else if("flash"===we){const r=1-.85*Te;t[k]=`rgba(${s}, ${l}, ${f}, ${r})`,t[_](e,n,a,o)}else if("off_flash"===we){const r=.15+.85*(1-Te);t[k]=`rgba(${s}, ${l}, ${f}, ${r})`,t[_](e,n,a,o)}else if("off_collapse_v"===we){const n=a,r=3+(1-Te)*(o-3);t[T]=Fe,t[x]=10,t[k]=Fe,t[_](e,i-r/2,n,r),t[x]=0}else if("off_collapse_h"===we){const e=1-Te,n=6+e*(a-6),o=2+1*e;t[T]=Fe,t[x]=12,t[k]=Fe,t[_](r-n/2,i-o/2,n,o),t[x]=20,t[v]=.5,t[_](r-n/2,i-o/2,n,o),t[v]=1,t[x]=0}else if("off_dot"===we){const e=1-Te,n=2+4*e,a=1+1*e,o=e;t[T]=Fe,t[x]=8+6*e,t[k]=`rgba(${s}, ${l}, ${f}, ${o})`,t[_](r-n/2,i-a/2,n,a),t[x]=0}if(et.scanLinesEnabled){t[k]=`rgba(0, 0, 0, ${.7*et.scanLineOpacity})`;for(let r=n;r<n+o;r+=et.scanLineSpacing)t[_](e,r,a,1)}return void t.restore()}if(Bt&&me){const r=Math.max(2,Math.round(.06*a)),i=Math.max(1,Math.round(.03*a)),s=C((a-2*r-5*i)/6),l=o-4,f=Math.max(2,Math.round(l/8)),c=1;if(1===Wt)for(let t=0;t<6;t++)Math.abs(Lt[t]-Pt[t])<.02&&(Pt[t]=.1+.9*S(),Nt[t]=.02+.04*S()),Lt[t]<Pt[t]?(Lt[t]+=Nt[t]*d,Lt[t]>Pt[t]&&(Lt[t]=Pt[t])):(Lt[t]-=.7*Nt[t]*d,Lt[t]<Pt[t]&&(Lt[t]=Pt[t]));else if(2===Wt){const t=Xt/$t%16;for(let e=0;e<6;e++){let n=0;for(let a=0;a<zt[e].length;a++){const o=zt[e][a],r=Math.abs(t-o),i=Math.abs(t-o-16);if(Math.min(r,i)<.15){n=Vt[e];break}}n>0?Lt[e]=n*(.85+.15*S()):(Lt[e]-=Ut[e]*d,Lt[e]<.05&&(Lt[e]=.05))}Xt+=d,Xt>=Gt&&(Xt=0)}else if(3===Wt){for(let t=0;t<6;t++){const e=Math.sin(jt+t*qt);Lt[t]=.15+.425*(e+1)}jt+=Kt*d}for(let a=0;a<6;a++){const h=e+r+a*(s+i),d=Math.round(Lt[a]*l),u=Math.max(1,C(d/(f+c)));t[T]=Yt[a],t[x]=4;for(let e=0;e<u;e++){const r=n+o-2-e*(f+c)-f;t[k]=Yt[a],t[_](h,r,s,f)}t[x]=0}if(et.scanLinesEnabled){t[k]=`rgba(0, 0, 0, ${et.scanLineOpacity})`;for(let r=n;r<n+o;r+=et.scanLineSpacing)t[_](e,r,a,1)}return void t.restore()}if(Jt&&me){var i=n+.62*o;t[v]=.15,t.strokeStyle="#004400",t.lineWidth=1;for(var s=a/8,l=1;l<8;l++){var f=e+l*s;t[y](),t.moveTo(f,n),t.lineTo(f,n+o),t.stroke()}for(var c=o/4,h=1;h<4;h++){var u=n+h*c;t[y](),t.moveTo(e,u),t.lineTo(e+a,u),t.stroke()}t[v]=1,Qt+=ne*d,Qt>1&&(Qt-=1,re++,ce=fe()),Zt.push({x:Qt,val:function(){var t=Qt%1;t<0&&(t+=1);for(var e=0;e<ce.length;e++){var n=ce[e];if(t>=n.start&&t<n.end){var a=(t-n.start)/(n.end-n.start);return n.fn(a)}}return 0}()});for(var p=Math.round(.95/(ne*d));Zt.length>p;)Zt.shift();t.strokeStyle=te,t.lineWidth=2,t[T]=ee,t[x]=8,t[y]();for(var g=0,b=0;b<Zt.length-1;b++){var m=Zt[b],w=Zt[b+1];if(Math.abs(w.x-m.x)>.1)g=0;else{var M=(Zt.length-1-b)/Zt.length;t[v]=.3+.7*(1-M);var E=e+m.x*a,O=i-m.val*(.45*o),I=e+w.x*a,A=i-w.val*(.45*o);g||(t.moveTo(E,O),g=1),t.lineTo(I,A)}}if(t[v]=1,t.stroke(),Zt.length>0){var R=Zt[Zt.length-1],D=e+R.x*a,F=i-R.val*(.45*o);t[k]="#ffffff",t[T]=te,t[x]=12,t[y](),t.arc(D,F,2.5,0,2*Math.PI),t.fill()}if(t[x]=0,et.scanLinesEnabled){t[k]="rgba(0, 0, 0, "+et.scanLineOpacity+")";for(var W=n;W<n+o;W+=et.scanLineSpacing)t[_](e,W,a,1)}return void t.restore()}if("function"==typeof Sn&&Sn(t,e,n,a,o,r))return void t.restore();const B=et.fontBold?"bold":"normal",H=vt?"italic":"normal",Y=r*et.fontSize;t.font=`${H} ${B} ${Y}px ${et.fontFamily}`,t.textBaseline="middle";const L=n+o/2+2;let P=1,N=et.scrollText;if("blank"===ft||"CRT_standby"===ft||"CRT_post_blank"===ft||"CRT_post_flash_blank"===ft?P=0:"typewriter_blink"===ft?(P=dt,gt.length>0&&(N=gt[gt.length-1].replace(/_/g," "))):"error_flash"===ft?(P=dt,N="ERROR!!!"):"manic_glitch"===ft?N=xt.join(""):"typing"===ft?N=et.scrollText.substring(0,ut).replace(/_/g," "):"word_typing"===ft?N=gt[bt].substring(0,mt).replace(/_/g," "):"word_pause"===ft?N=gt[bt].replace(/_/g," "):"scrolling"===ft?N=et.scrollText.replace(/_/g," "):"exit_anim"===ft&&(P=0),P&&st){t[T]=st.glow,t[x]=et.glowBlur1,t[k]=st.color;const n=e+a/2;if("scrolling"===ft)t.fillText(N,e+kt,L);else{const e=n-t.measureText(N).width/2;t.fillText(N,e,L)}if(t[x]=et.glowBlur2,t[v]=et.glowIntensity,"scrolling"===ft)t.fillText(N,e+kt,L);else{const e=n-t.measureText(N).width/2;t.fillText(N,e,L)}t[v]=1,t[x]=0}if("exit_anim"===ft&&st){if(0===It.length){const r=e+a/2;let i=et.scrollText;gt.length>0&&(i=gt[gt.length-1]),Ft(i,t,r,L,a,o,e,n)}t[T]=st.glow,t[k]=st.color,t[x]=et.glowBlur1;for(let e=0;e<It.length;e++){const n=It[e];t.fillText(n.char,n.x,n.y)}t[x]=et.glowBlur2,t[v]=et.glowIntensity;for(let e=0;e<It.length;e++){const n=It[e];t.fillText(n.char,n.x,n.y)}t[v]=1,t[x]=0}if(et.scanLinesEnabled){t[k]=`rgba(0, 0, 0, ${et.scanLineOpacity})`;for(let r=n;r<n+o;r+=et.scanLineSpacing)t[_](e,r,a,1)}t.restore()}function Yn(t,e){const n=M[W],a=n.colors,o=n.accent,r=Math.ceil(t/H),i=Math.ceil(e/H),s=[];for(let t=0;t<i;t++)for(let e=0;e<r;e++){let n;n=A()<.08?o[C(A()*o.length)]:a[C(A()*a.length)],s.push({col:e,row:t,color:n})}return{pattern:s,cols:r,rows:i}}function Ln(t,e,n,a,o){if("undefined"!=typeof SOLID&&""!==SOLID)return t[v]=Y,t[k]="#"+SOLID,t[_](e,n,a,o),void(t[v]=1);if(N&&(U&&(V+=.06666666666666667,V>=1&&(L=z,z=null,U=0,V=0)),$++,$>=G[X]&&!U)){$=0;var r=Yn(a,o);X<=2?(z=r,U=1,V=0):L=r}L||(L=Yn(a,o)),t[v]=Y;for(const a of L.pattern){const o=e+a.col*H,r=n+a.row*H;t[k]=a.color,t[_](o,r,H,H)}if(U&&z){t[v]=Y*V;for(const a of z.pattern){const o=e+a.col*H,r=n+a.row*H;t[k]=a.color,t[_](o,r,H,H)}}t[v]=1}function Pn(t,e){if(it)switch(ft){case"typing":pt++,pt>=et.typewriterSpeed&&(pt=0,ut++,ut>=et.scrollText.length&&(ft="typewriter_pause",ct=0));break;case"typewriter_pause":ct++,ct>=(Ae?et.introTypewriterPauseDuration:et.typewriterPauseDuration)&&(ft="exit_anim",ct=0);break;case"typewriter_blink":ct++,dt&&ct>=et.typewriterBlinkOnDuration?(dt=0,ct=0):!dt&&ct>=et.typewriterBlinkOffDuration&&(dt=1,ct=0,ht++,ht>=et.typewriterBlinkCount&&(ft="exit_anim",ct=0));break;case"exit_anim":let t=1;for(let e=0;e<It.length;e++){const n=It[e];n.dx+=n.dx>0?Mt:n.dx<0?-Mt:0,n.dy+=n.dy>0?Mt:n.dy<0?-Mt:0,n.x+=n.dx,n.y+=n.dy,n.y>n.topEdge&&n.y<n.bottomEdge&&n.x>n.leftEdge&&n.x<n.rightEdge&&(t=0)}t&&(ft="blank",ct=0,It=[],Dt="");break;case"word_typing":wt++,wt>=et.wordTypeSpeed&&(wt=0,mt++,mt>=gt[bt].length&&(ft="word_pause",ct=0));break;case"word_pause":ct++;let n=bt+1,a=0;for(;n<gt.length;){const t=Ne(gt[n]);if(!(t>0))break;a=t,n++}const r=n>=gt.length,i=a>0?a:r?et.lastWordPauseDuration:et.wordPauseDuration;ct>=i&&(r?(ft="exit_anim",ct=0):(bt=n,mt=0,wt=0,ft="word_typing"));break;case"blank":if(ct++,ct>=et.blankDuration){if(Ae=0,Ie.length>0){let t=Ie.shift();if(Ae=1,t=t.replace("{tokenId}",lt),t.startsWith("*")?(vt=1,t=t.substring(1)):vt=0,Dt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ot[e]&&(Dt=Ot[e],t=t.substring(2))}st=et.neonColors[0],t.startsWith(">")?(et.scrollText=t.substring(1).trim(),kt=e,_t=0,ft="scrolling"):(et.scrollText=t,t.length<=et.maxTypewriterLength?(ft="typing",ut=0,pt=0):(gt=t.trim().split(/\s+/),bt=0,mt=0,wt=0,ft="word_typing"))}else if(S()<et.manicGlitchChance&&!de&&!ue){st={color:"#ff0000",glow:"#ff0000"},ft="manic_glitch",ct=0,Tt=0,xt=[];for(let t=0;t<et.manicCharCount;t++)xt.push(et.manicChars.charAt(C(S()*et.manicChars.length)))}else{let t;if(de&&o)t=o;else if(ue){const e=et.messagesArray;t=e[pe%e.length],pe++,st=et.neonColors[ge%et.neonColors.length],ge++}else{const e=et.messagesArray;t=e[he%e.length],he++}if(t=t.replace("{tokenId}",lt),t.startsWith("*")?(vt=1,t=t.substring(1)):vt=0,Dt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ot[e]&&(Dt=Ot[e],t=t.substring(2))}t.startsWith(">")?(et.scrollText=t.substring(1).trim(),ue||(st=de?{color:"#fcdb3b",glow:"#fcdb3b"}:et.neonColors[0]),kt=e,_t=0,ft="scrolling"):"ERROR!!!"===t?(et.scrollText=t,ue||(st={color:"#ff0000",glow:"#ff0000"}),ft="error_flash",ct=0,ht=0,dt=1):(et.scrollText=t,ue||(st=de?{color:"#fcdb3b",glow:"#fcdb3b"}:et.neonColors[0]),et.scrollText.length<=et.maxTypewriterLength?(ft="typing",ut=0,pt=0):(gt=et.scrollText.trim().split(/\s+/),bt=0,mt=0,wt=0,ft="word_typing"))}ct=0}break;case"error_flash":if(ct++,dt&&ct>=et.typewriterBlinkOnDuration)dt=0,ct=0;else if(!dt&&ct>=et.typewriterBlinkOffDuration&&(dt=1,ct=0,ht++,ht>=5)){ft="manic_glitch",ct=0,Tt=0,xt=[];for(let t=0;t<et.manicCharCount;t++)xt.push(et.manicChars.charAt(C(S()*et.manicChars.length)))}break;case"manic_glitch":if(ct++,Tt++,Tt>=et.manicSpeed){Tt=0;const t=C(S()*xt.length);if(xt[t]=et.manicChars.charAt(C(S()*et.manicChars.length)),S()<.15){const t=et.neonColors;st=t[C(S()*t.length)]}}ct>=et.manicDuration&&(Oe?(Oe=0,ft="CRT_post_blank"):ft="blank",ct=0);break;case"scrolling":if(kt-=et.scrollSpeed,0===_t){const t=document.createElement("canvas").getContext("2d"),e=et.punkScale*et.fontSize;t.font=`${et.fontBold?"bold":"normal"} ${e}px ${et.fontFamily}`,_t=t.measureText(et.scrollText).width}kt<-_t&&(ft="blank",ct=0,_t=0);break;case"CRT_power_on":xe++,"dot"===we?(Te=xe/ke,xe>=ke&&(we="dot_pause",xe=0,Te=0)):"dot_pause"===we?xe>=_e&&(we="expand_h",xe=0,Te=0):"expand_h"===we?(Te=1-Math.pow(1-xe/ve,2),xe>=ve&&(we="expand_v",xe=0,Te=0)):"expand_v"===we?(Te=1-Math.pow(1-xe/ye,2),xe>=ye&&(we="flash",xe=0,Te=0)):"flash"===we&&(Te=xe/Se,xe>=Se&&(Me++,Me<Ce?(xe=0,Te=0):(we="idle",xe=0,Te=0,ft="CRT_post_flash_blank",ct=0)));break;case"CRT_standby":break;case"CRT_post_flash_blank":if(ct++,ct>=Ee){Oe=1,st={color:"#ff0000",glow:"#ff0000"},ft="manic_glitch",ct=0,Tt=0,xt=[];for(let t=0;t<et.manicCharCount;t++)xt.push(et.manicChars.charAt(C(S()*et.manicChars.length)))}break;case"CRT_post_blank":ct++,ct>=Ee&&(me=1,ft="blank",ct=et.blankDuration);break;case"CRT_power_off":xe++,"off_flash"===we?(Te=xe/Se,xe>=Se&&(we="off_collapse_v",xe=0,Te=0)):"off_collapse_v"===we?(Te=1-Math.pow(1-xe/ye,2),xe>=ye&&(we="off_collapse_h",xe=0,Te=0)):"off_collapse_h"===we?(Te=1-Math.pow(1-xe/ve,2),xe>=ve&&(we="off_dot",xe=0,Te=0)):"off_dot"===we&&(Te=xe/ke,xe>=ke&&(we="idle",xe=0,Te=0,me=0,ft="CRT_standby",ct=0))}}window.addEventListener("load",Fn);
function t(){try{const t=new XMLHttpRequest;if(t.open("GET","./CONTRABAND-punk.svg",0),t.send(),t.status>=200&&t.status<300)return t.responseText}catch(t){}return""}const e="undefined"!=typeof SVG?SVG:t(),n="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide-March.2026.jpg",a="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait-March.17.2026.jpg",o="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function r(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,n=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&n?"portrait":"landscape"}const i=r(),s="portrait"===i,l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=s&&l?.3:1,c=2.25;let h=performance.now(),d=c;function u(){const t=performance.now(),e=t-h;h=t;const n=Math.min(e/16.67,6);d=c*n}let p=performance.now(),g=0,b=0;function m(){g++;const t=performance.now(),e=t-p;e>=1e3&&(b=Math.round(1e3*g/e),g=0,p=t)}function w(t,e,n){t.save(),t.font="bold 14px monospace",t[k]="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+b+" | Mode: "+i+" | _pAS: "+c+" | Mult: "+f,e,n),t.restore()}var x="shadowBlur",T="shadowColor",k="fillStyle",_="fillRect",v="globalAlpha",y="beginPath",S=Math.random,C=Math.floor;const M={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)M[t]&&Object.assign(M[t],PALETTE_OVERRIDES[t]);function E(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const O="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(C(4294967296*S())),I=0|parseInt(O.slice(-10)),A=E(I),R=Object.keys(M);let D,F;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;M._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},R.push("_solid"),D=R.length-1,F="_solid"}else D="undefined"!=typeof PIDX?PIDX:Math.abs(I)%R.length,F=R[D];let W=F;const B=[8,16,32,64];let H="undefined"!=typeof PXSZ?PXSZ:B[Math.abs(I)%B.length],Y=1,L=null,P=null,N=0,$=0,X=0;const G=[0,120,60,30,12,4];let z=null,V=0,U=0;const j=15,K="undefined"!=typeof MSGS?MSGS:["~>I'M THE 10,001th PUNK!","~*>I WAS BORN WHEN LIGHTNING WAS CAPTURED IN_A BOTTLE!","~I'M NOT_LEGIT! :-)","~*>I REPRESENT THE REWARDS ONE CAN HAVE FOR BELIEVING IN THEMSELVES AND TAKING A LEAP OF FAITH!","~*ERROR!!!","~*>JUST KIDDING, THERE'S NO 'ERROR' ;-)","~*>REMEMBER: NOTHING IS MORE PUNK THAN THE CONTRABAND PUNK!"];var q=K.filter(function(t){return"~"===t.charAt(0)}).map(function(t){return t.substring(1)}),J=K.map(function(t){return"~"===t.charAt(0)?t.substring(1):t});o&&q.push(o),0===q.length&&(q=J);const Z={messagesArray:q,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(90*f),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:11,typewriterSpeed:Math.max(1,Math.round(4*f)),typewriterPauseDuration:Math.round(240*f),introTypewriterPauseDuration:s&&l?22:65,typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*f),typewriterBlinkOffDuration:Math.round(30*f),wordTypeSpeed:Math.max(1,Math.round(3*f)),wordPauseDuration:Math.round(49*f),lastWordPauseDuration:Math.round(135*f),manicGlitchChance:.08,manicDuration:Math.round(180*f),manicSpeed:2,manicChars:"!@#$¿%()_+-=[¿¿]5{;¿:,.<¿>?/~`░▒}|▓¬¦█8▀▄▌^&*▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:s?9.05:1.5},Q={...Z,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:27,headerY:25,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:n},tt={...Z,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:54,headerY:55,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:a};tt.punkOffsetX=(tt.canvasWidth-24*tt.punkScale)/2;const et="portrait"===i?tt:Q;let nt=null,at=null,ot=null,rt=null,it=1,st=null,lt="undefined"!=typeof TID?TID:"#0",ft="blank",ct=0,ht=0,dt=1,ut=0,pt=0,gt=[],bt=0,mt=0,wt=0,xt=[],Tt=0,kt=0,_t=0,vt=0,yt=0;const St=["up","down","split_v","split_h","explode"];let Ct=.3,Mt=0;const Et=s?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},Ot={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let It=[],At=0,Rt="",Dt="";function Ft(t,e,n,a,o,r,i,s){const l=et.punkScale*et.fontSize,f=vt?"italic":"normal",c=et.fontBold?"bold":"normal";e.font=`${f} ${c} ${l}px ${et.fontFamily}`,Rt=t.replace(/_/g," "),Dt||(Dt=St[C(S()*St.length)]),Ct=Et[Dt]||.3,At=0,It=[];let h=n-e.measureText(Rt).width/2;const d=s,u=s+r,p=i,g=i+o;for(let t=0;t<Rt.length;t++){const n=Rt[t],o=e.measureText(n).width;let r=0,i=0;switch(Dt){case"up":i=-Ct;break;case"down":i=Ct;break;case"split_v":i=t%2==0?-Ct:Ct;break;case"split_h":r=t<Rt.length/2?-Ct:Ct;break;case"explode":const e=S()*Math.PI*2;r=Math.cos(e)*Ct,i=Math.sin(e)*Ct}It.push({char:n,x:h,y:a,dx:r,dy:i,topEdge:d,bottomEdge:u,leftEdge:p,rightEdge:g}),h+=o}}let Wt=0,Bt=0;const Ht=6,Yt=["#ff0000","#ff8800","#ffff00","#00ff00","#00aaff","#cc00ff"];let Lt=[.1,.1,.1,.1,.1,.1],Pt=[],Nt=[];for(let t=0;t<6;t++)Pt.push(S()),Nt.push(.02+.04*S());const $t=Math.round(60/1.7);let Xt=0;const Gt=16*$t,zt=function(){for(var t=[],e=[],n=[],a=[],o=0;o<16;o++)o%2==0&&t.push(o),o%2==1&&e.push(o),n.push(o),n.push(o+.5),a.push(o+.25),a.push(o+.75);return[t,[1,3.5,5,7.5,9,11.5,13,15.5],e,n,a,[0,3,4,7,8,11,12,14,15]]}(),Vt=[1,.75,.9,.5,.35,.8],Ut=[.06,.05,.055,.07,.08,.045];let jt=0;const Kt=.06,qt=.8;let Jt=0,Zt=[],Qt=0;const te="#ff2222",ee="#ff0000",ne=.00765;let ae=1,oe=.7,re=0,ie=.05,se=.5;function le(){ie=.03+.06*S(),se=.48+.08*S()}function fe(){for(var t=[],e=[{s:ie,b:.7+.3*S()},{s:se,b:.45+.35*S()}],n=0,a=0;a<2;a++){var o=e[a].s,r=e[a].b,i=-(.2+.2*S())*r,s=-(.25+.25*S())*r;n<o&&t.push({start:n,end:o,a:0});for(var l=[[.04,.15*r],[.04,0],[.03,i],[.06,.85*r],[.05,s],[.06,0],[.07,.2*r]],f=o,c=0;c<l.length;c++)t.push({start:f,end:f+l[c][0],a:l[c][1]}),f+=l[c][0];n=f}return n<1&&t.push({start:n,end:1,a:0}),t.map(function(t){return{start:t.start,end:t.end,fn:0===t.a?function(){return 0}:(e=t.a,function(t){return Math.sin(t*Math.PI)*e})};var e})}let ce=fe(),he=0,de=0,ue=0,pe=0,ge=0,be=0,me=0,we="idle",xe=0,Te=0,ke=Math.round(26*f),_e=Math.round(15*f),ve=Math.round(31*f),ye=Math.round(53*f),Se=Math.round(23*f),Ce=3,Me=0,Ee=s?15:90,Oe=0,Ie=[],Ae=0;var Re=o?[o]:["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let De="green",Fe="#33ff33";function We(t,e){const n=parseInt(e);switch(t){case"dot":ke=n;break;case"pause":_e=n;break;case"expandH":ve=n;break;case"expandV":ye=n;break;case"flash":Se=n;break;case"flashRepeat":Ce=n;break;case"postBlank":Ee=n}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(n/60).toFixed(1)+"s":n}function Be(){const t=document.getElementById("CRTColorToggleButton");"white"===De?(De="green",Fe="#33ff33",t.textContent="Color: Green"):(De="white",Fe="#ffffff",t.textContent="Color: White")}function He(){const t=`Dot: ${ke}, Pause: ${_e}, Expand H: ${ve}, Expand V: ${ye}, Flash: ${Se}, Flash x: ${Ce}, Post Blank: ${(Ee/60).toFixed(1)}s, Color: ${De}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Ye(t,e){const n=parseFloat(e);switch(t){case"speed":Ct=n;break;case"accel":Mt=n}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=n.toFixed(2))}function Le(t){"random"===t&&(t=St[C(S()*St.length)]);const e=Et[t]||.3;Ct=e;const n=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");n&&(n.value=e),a&&(a.textContent=e.toFixed(2)),et.scrollText="TEST_EXIT",st=et.neonColors[C(S()*et.neonColors.length)],gt=[],vt=0,It=[],Dt=t,ft="exit_anim",ct=0}function Pe(){const t=`EXIT_ANIM_SPEED: ${Ct}, EXIT_ANIM_ACCEL: ${Mt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Ne(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function $e(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=et.punkScale,l=et.punkOffsetX,f=et.punkOffsetY,c=l+11*s,h=f+5*s;return r>=c&&r<c+s&&i>=h&&i<h+s?(Ke(),1):Ge(r,i)?1:r>=l+19*s&&r<l+22*s&&i>=f+12*s&&i<f+14*s?(je(),1):0}const Xe=[{x:7,y:7},{x:9,y:7},{x:11,y:7},{x:13,y:7},{x:15,y:7}];function Ge(t,e){const n=et.punkScale,a=et.punkOffsetX,o=et.punkOffsetY;for(let r=0;r<Xe.length;r++){const i=Xe[r],s=a+i.x*n,l=s+n,f=o+i.y*n;if(t>=s&&t<l&&e>=f&&e<f+n)return 2===r?ze():4===r?Ue():"function"==typeof kn&&kn(r),1}return 0}function ze(){Wt++,Wt>3&&(Wt=0),Bt=Wt>0,Bt&&(Jt=0);for(let t=0;t<6;t++)Lt[t]=.05,Pt[t]=.3+.7*S(),Nt[t]=.02+.04*S();Xt=0}function Ve(){Jt=!Jt,Jt&&(Bt=0,Wt=0,Zt=[],Qt=0,re=0,le(),ce=fe())}function Ue(){(ln=!ln)&&(fn=.5,cn=.5,hn=.006,dn=.004,un=.4,pn=.4,gn=0,bn=0,xn=0,Tn=0,tn=0,on=0,Bt=0,Wt=0,Jt=0)}function je(){X++,X>5?(X=0,N=0,$=0,U=0,z=null,V=0,P&&(L=P)):(N||(P=L),N=1,$=0)}function Ke(){"CRT_power_on"!==ft&&"CRT_power_off"!==ft&&"CRT_post_flash_blank"!==ft&&"CRT_post_blank"!==ft&&(me?(we="off_flash",xe=0,Te=0,Me=0,ft="CRT_power_off",ct=0,ue&&(ue=0,st=et.neonColors[0]),tn=0,ln=0,on=0,Bt=0,Wt=0,Jt=0):(we="dot",xe=0,Te=0,Me=0,Ie=[...Re],ft="CRT_power_on",ct=0))}function qe(){we="dot",xe=0,Te=0,Me=0,Ie=[...Re],ft="CRT_power_on",ct=0}let Je=-1;const Ze=["#0040ff","#ff0022","#ffffff","#ffffff","#ffffff"];function Qe(t,e){var n,a,o;Je<0||(99===Je?(n=11,a=5,o="#ffff00"):Je<Xe.length&&(n=Xe[Je].x,a=Xe[Je].y,o=Ze[Je]),void 0!==n&&(t.save(),t[T]=o,t[x]=1.1*e,t[k]=o,t[v]=.6,t[_](et.punkOffsetX+n*e,et.punkOffsetY+a*e,e,e),t[v]=1,t.restore()))}var tn=0,en=0,nn=1,an=0,on=0,rn=0,sn=0,ln=0,fn=.5,cn=.5,hn=.006,dn=.004,un=.4,pn=.4,gn=0,bn=0,mn=.28,wn=.02,xn=0,Tn=0;function kn(t){0===t?(en=0,nn=1,(tn=!tn)&&(on=0,ln=0,Bt=0,Wt=0,Jt=0)):1===t?(tn=0,ln=0,on=0,Ve()):3===t&&(an=0,on=1,tn=0,ln=0,Bt=0,Wt=0,Jt=0)}Ze[0]="#00ff44",Ze[2]="#00aaff",Ze[3]="#ff8800",Ze[4]="#cc44ff";var _n=[0,.008,.007,.07,1,.07,.0042],vn=[0,1,.5,1,1,1,1];function yn(){if(u(),tn&&((en+=.009*nn*d)>=1||en<=0)&&(nn*=-1),on>0&&(an+=_n[on]*d)>=vn[on]&&(6===on?(on=0,me=0,qe()):(on++,an=0)),ln){if(xn>0)return void xn--;Tn>0&&Tn--,fn+=hn*d,(cn+=dn*d)<=0&&(cn=0,dn=Math.abs(dn)),cn>=1&&(cn=1,dn=-Math.abs(dn)),fn<=.06&&(fn=.06,hn=Math.abs(hn),dn+=.02*(cn-(un+mn/2)),gn++,Tn=8),fn>=.94&&(fn=.94,hn=-Math.abs(hn),dn+=.02*(cn-(pn+mn/2)),bn++,Tn=8),un+=.08*(cn-mn/2-un)*d,pn+=.07*(cn-mn/2-pn)*d,un=Math.max(0,Math.min(1-mn,un)),pn=Math.max(0,Math.min(1-mn,pn))}}function Sn(t,e,n,a,o,r){if(!me)return 0;if(6===on||4===on)return 1;if(on&&on<=5){if(rn=e+a/2,sn=n+o/2,1===on){var i=an<.5?60-120*an:0,s=35+65*an;t[k]="hsl("+i+",100%,"+s+"%)"}else t[k]="#fff";return t[_](e,n,a,o),1}if(ln){var l="#00ff44";t.save(),t[k]=l,t[T]=l,t[x]=0,t[_](e+5,n+un*o,wn*a,mn*o),t[_](e+a-wn*a-5,n+pn*o,wn*a,mn*o);var f=Math.max(.3*r,3);0===xn&&t[_](e+fn*a-f/2,n+cn*o-f/2,f,f),t[v]=.3;for(var c=o/20,h=0;h<20;h+=2)t[_](e+a/2-1,n+h*c,2,c);return t[v]=1,t.font=Math.round(.18*o)+"px monospace",t.textAlign="center",t.fillText(gn,e+.3*a,n+.22*o),t.fillText(bn,e+.7*a,n+.22*o),Tn>0&&(t[v]=Tn/30,t[k]="#fff",t[_](e,n,a,o),t[v]=1),t.restore(),1}if(!tn)return 0;t.save();var d=n+en*o,u=.45*o,p=t.createLinearGradient(0,d-u*nn,0,d);return p.addColorStop(0,"rgba(0,255,68,0)"),p.addColorStop(1,"rgba(0,255,68,0.55)"),t[k]=p,t[_](e,Math.min(d,d-u*nn),a,u),t[T]="#00ff44",t[x]=35,t.strokeStyle="#00ff44",t.lineWidth=4,t[y](),t.moveTo(e,d),t.lineTo(e+a,d),t.stroke(),t[x]=0,t.restore(),1}function Cn(t){if(!(on<2||4===on||on>5)){var e=1-an,n=t.canvas.width,a=t.canvas.height,o=an*Math.max(n,a);3!==on&&5!==on||(t[k]="rgba(255,255,255,"+e+")",t[_](0,0,n,a));var r=t.createRadialGradient(rn,sn,0,rn,sn,o);r.addColorStop(0,"rgba(255,255,0,"+e+")"),r.addColorStop(1,"rgba(200,200,0,0)"),t[k]=r,t[_](0,0,n,a)}}function Mn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=et.punkScale,f=et.punkOffsetX,c=et.punkOffsetY,h=f+11*l,d=h+l,u=c+5*l,p=u+l,g=1.725*et.punkScale;let b,m;"portrait"===i?(b=et.canvasWidth-g-50,m=et.bottomSectionY+40):(b=et.leftWidth+et.rightWidth-g-30,m=25);const w=r>=b-10&&r<=b+g+10&&s>=m-10&&s<=m+g+10;var x=r>=f+19*l&&r<f+22*l&&s>=c+12*l&&s<c+14*l;let T=0;Je=-1;for(let t=0;t<Xe.length;t++){const e=Xe[t],n=f+e.x*l,a=n+l,o=c+e.y*l;if(r>=n&&r<a&&s>=o&&s<o+l){T=1,Je=t;break}}const k=r>=h&&r<d&&s>=u&&s<p;k&&(Je=99),e.style.cursor=w||x||T||k?"pointer":"default"}const En=[{x:12,y:15},{x:13,y:15}];function On(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=et.punkScale,l=et.punkOffsetX,f=et.punkOffsetY,c=En[0];c.x,c.y,En[En.length-1].x;for(const t of En){const e=l+t.x*s,n=e+s,a=f+t.y*s;if(r>=e&&r<n&&i>=a&&i<a+s)return qe(),1}return 0}function In(){if(de)de=0;else if(o){de=1;let t=o.replace("{tokenId}",lt);if(t.startsWith("*")?(vt=1,t=t.substring(1)):vt=0,Dt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ot[e]&&(Dt=Ot[e],t=t.substring(2))}t.startsWith(">")?(et.scrollText=t.substring(1).trim(),st={color:"#fcdb3b",glow:"#fcdb3b"},kt=et.glassesWidth*et.punkScale,_t=0,ft="scrolling"):(et.scrollText=t,st={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=et.maxTypewriterLength?(ft="typing",ut=0,pt=0):(gt=t.trim().split(/\s+/),bt=0,mt=0,wt=0,ft="word_typing"))}}function An(){ue=!ue,ue?(de=0,pe=0,ge=0,et.messagesArray=J):(st=et.neonColors[0],et.messagesArray=q)}function Rn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=1.725*et.punkScale;let f,c;return"portrait"===i?(f=et.canvasWidth-l-50,c=et.bottomSectionY+40):(f=et.leftWidth+et.rightWidth-l-30,c=25),r>=f-10&&r<=f+l+10&&s>=c-10&&s<=c+l+10?(An(),1):0}function Dn(t){const e=1.725*et.punkScale;let n,a;"portrait"===i?(n=et.canvasWidth-e-50,a=et.bottomSectionY+40):(n=et.leftWidth+et.rightWidth-e-30,a=25);const o=n+e/2,r=a+e/2,s=e/2+1,l=.38*e+2;t.save(),t.filter="blur(3px)",t[y](),t.arc(o,r,s,0,2*Math.PI),t[k]=ue?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=ue?"#00ff44":"#00ccff";ue&&(t[T]="#00ff44",t[x]=10),t.strokeStyle=f,t.lineWidth="portrait"===i?2.5:1.5,t[y](),t.arc(o,r,l,0,2*Math.PI),t.stroke(),t[T]="transparent",t[x]=0,ue&&(be+=.015),t[y](),t.arc(o,r,l-1,0,2*Math.PI),t.clip();
for(let e=0;e<4;e++){const n=pe+e*Math.PI/4,a=Math.sin(n);t[k](),t.ellipse(o,r,Math.abs(a)*l,l,0,0,2*Math.PI),t.stroke()}const c=[-.5,0,.5];for(const e of c){const n=r+e*l,a=Math.cos(e)*l;t[k](),t.ellipse(o,n,a,.15*a,0,0,2*Math.PI),t.stroke()}t.restore()}async function Rn(){const t=document.getElementById("punkCanvas"),n=document.getElementById("nftContainer"),a=document.getElementById("modeIndicator");function o(e){const n=e.changedTouches?e.changedTouches[0]:e,a={clientX:n.clientX,clientY:n.clientY};In(a,t)||Pe(a,t)?e.preventDefault():at=!at}n&&n.classList.add(i),a&&(a.textContent=i+" mode"),t.width=J.canvasWidth,t.height=J.canvasHeight,"ontouchstart"in window?t.addEventListener("touchend",o):t.onclick=o,t.onmousemove=function(e){Sn(e,t)},t.onmouseleave=function(){Ke=-1,t.style.cursor="default"};const r=t.getContext("2d");Q=new Image,e&&e.length>0?await new Promise((t,n)=>{Q.onload=t,Q.onerror=n,Q.src="data:image/svg+xml;base64,"+btoa(e)}):await new Promise((t,e)=>{Q.onload=t,Q.onerror=e,Q.src="./CONTRABAND-punk-Feb2026.svg"}),tt=document.createElement("canvas"),tt.width=24,tt.height=24;var s=tt.getContext("2d");s.imageSmoothingEnabled=0,s.drawImage(Q,0,0,24,24),et=new Image,et.crossOrigin="anonymous",await new Promise(t=>{et.onload=t,et.onerror=()=>{t()},et.src=J.imageURL}),J.scrollText="",ot=J.neonColors[0],be="dot",me=0,we=0,Se=0,Ee=[...Ie],it="CRT_power_on",st=0,"function"==typeof pluginInit&&pluginInit(J,t,r),"portrait"===i?Dn(r,t):Fn(r,t)}function Fn(t,e){"function"==typeof _n&&_n();const n=J.punkScale;t.clearRect(0,0,e.width,e.height),et&&et.complete&&et.naturalWidth>0?t.drawImage(et,0,0,J.leftWidth,J.leftHeight):(t[w]="#d4b896",t[x](0,0,J.leftWidth,J.leftHeight),t[w]="#666",t.font="20px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Left Side Image",J.leftWidth/2,J.leftHeight/2),t.fillText("(Canvas-LeftSide.jpg)",J.leftWidth/2,J.leftHeight/2+30),t.textAlign="left"),Ln(t,J.leftWidth,0,J.rightWidth,J.canvasHeight),t.font=`500 ${J.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t.textAlign="center",t.textBaseline="top";const a=J.leftWidth+J.rightWidth/2;t[m]="rgba(0, 0, 0, 0.5)",t[b]=3,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("CONTRABAND PUNK #"+("string"==typeof TID?TID.replace(/^#/,""):"?"),a,J.headerY),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const o=J.punkOffsetX+J.glassesX*n,r=J.punkOffsetY+J.glassesY*n,i=J.glassesWidth*n,s=J.glassesHeight*n,l=y[R];l.dark&&(t[m]="rgba(255, 255, 255, 0.6)",t[b]=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage(tt,J.punkOffsetX,J.punkOffsetY,24*n,24*n),l.dark&&(t[m]="transparent",t[b]=0),Ze(t,n),yn(t),Wn(t,o,r,i,s,n);const f=J.punkOffsetY+24*n,c=J.leftWidth+J.rightWidth/2;t.font=`bold ${J.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#000000",t.textAlign="center",t.textBaseline="top",t.letterSpacing="0px",t[m]="rgba(255, 255, 255, 0.6)",t[b]=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText("Attributes:",c,f+J.attributesTitleOffsetY),t[m]="transparent",t[b]=0,t.font=`500 ${J.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t[m]="rgba(0, 0, 0, 0.70)",t[b]=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillText("VR-MOD, Hot-Cap, Not-Legit",c,f+J.attributesTextOffsetY),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left",t[w]="#000000",t[x](0,0,e.width,5),t[x](0,e.height-5,e.width,5),t[x](0,0,5,e.height),t[x](e.width-5,0,5,e.height),t[x](J.leftWidth-2.5,0,5,e.height),Hn(t,i),An(t),nt=requestAnimationFrame(()=>Fn(t,e))}function Dn(t,e){"function"==typeof _n&&_n();const n=J.punkScale;if(t.clearRect(0,0,e.width,e.height),et&&et.complete&&et.naturalWidth>0){const e=et.naturalWidth/et.naturalHeight,n=J.canvasWidth/J.topImageHeight;let a=0,o=0,r=et.naturalWidth,i=et.naturalHeight;e<n?(i=et.naturalWidth/n,o=(et.naturalHeight-i)/2):(r=et.naturalHeight*n,a=(et.naturalWidth-r)/2),t.drawImage(et,a,o,r,i,0,0,J.canvasWidth,J.topImageHeight)}else t[w]="#d4b896",t[x](0,0,J.canvasWidth,J.topImageHeight),t[w]="#666",t.font="32px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Top Image Placeholder",J.canvasWidth/2,J.topImageHeight/2),t.fillText("(Canvas-TopSide-Portrait.jpg)",J.canvasWidth/2,J.topImageHeight/2+45),t.textAlign="left";Ln(t,0,J.bottomSectionY,J.canvasWidth,J.bottomSectionHeight),t.font=`bold ${J.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t.textAlign="center",t.textBaseline="top",t[m]="rgba(0, 0, 0, 0.5)",t[b]=3,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("CONTRABAND PUNK #"+("string"==typeof TID?TID.replace(/^#/,""):"?"),J.canvasWidth/2,J.bottomSectionY+J.headerY),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const a=J.punkOffsetX+J.glassesX*n,o=J.punkOffsetY+J.glassesY*n,r=J.glassesWidth*n,i=J.glassesHeight*n,s=y[R];s.dark&&(t[m]="rgba(255, 255, 255, 0.6)",t[b]=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage(tt,J.punkOffsetX,J.punkOffsetY,24*n,24*n),s.dark&&(t[m]="transparent",t[b]=0),Ze(t,n),yn(t),Wn(t,a,o,r,i,n);const l=J.punkOffsetY+24*n,f=J.canvasWidth/2;t.textBaseline="alphabetic",t.letterSpacing="0px";const c=l+J.attributesTitleOffsetY+25;t.font=`bold ${J.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const h="Attributes: ",d=t.measureText(h).width;t.font=`bold ${J.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const u="VR-MOD, Hot-Cap, Not-Legit",p=f-(d+t.measureText(u).width)/2;t.font=`bold ${J.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#000000",t.textAlign="left",t[m]="rgba(255, 255, 255, 0.6)",t[b]=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText(h,p,c),t[m]="transparent",t[b]=0,t.font=`bold ${J.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t[m]="rgba(0, 0, 0, 0.5)",t[b]=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText(u,p+d,c),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t[w]="#000000",t[x](0,0,e.width,5),t[x](0,e.height-5,e.width,5),t[x](0,0,5,e.height),t[x](e.width-5,0,5,e.height),t[x](0,J.topImageHeight-2.5,e.width,5),Hn(t,r),An(t),nt=requestAnimationFrame(()=>Dn(t,e))}function Wn(t,e,n,a,o,r){if(t.save(),t[k](),t.rect(e,n,a,o),t.clip(),t[w]="#000000",t[x](e,n,a,o),"CRT_power_on"===it||"CRT_power_off"===it){const r=e+a/2,i=n+o/2,s=parseInt(Re.slice(1,3),16),l=parseInt(Re.slice(3,5),16),f=parseInt(Re.slice(5,7),16);if("dot"===be||"dot_pause"===be){const e="dot_pause"===be?1:we,n=2+4*e,a=1+1*e;t[m]=Re,t[b]=8+6*e,t[w]=Re,t[x](r-n/2,i-a/2,n,a),t[b]=15,t[T]=.6,t[x](r-n/2,i-a/2,n,a),t[T]=1,t[b]=0}else if("expand_h"===be){const e=6+we*(a-6),n=2+1*we;t[m]=Re,t[b]=12,t[w]=Re,t[x](r-e/2,i-n/2,e,n),t[b]=20,t[T]=.5,t[x](r-e/2,i-n/2,e,n),t[T]=1,t[b]=0}else if("expand_v"===be){const n=a,r=3+we*(o-3);t[m]=Re,t[b]=10,t[w]=Re,t[x](e,i-r/2,n,r),t[b]=0}else if("flash"===be){const r=1-.85*we;t[w]=`rgba(${s}, ${l}, ${f}, ${r})`,t[x](e,n,a,o)}else if("off_flash"===be){const r=.15+.85*(1-we);t[w]=`rgba(${s}, ${l}, ${f}, ${r})`,t[x](e,n,a,o)}else if("off_collapse_v"===be){const n=a,r=3+(1-we)*(o-3);t[m]=Re,t[b]=10,t[w]=Re,t[x](e,i-r/2,n,r),t[b]=0}else if("off_collapse_h"===be){const e=1-we,n=6+e*(a-6),o=2+1*e;t[m]=Re,t[b]=12,t[w]=Re,t[x](r-n/2,i-o/2,n,o),t[b]=20,t[T]=.5,t[x](r-n/2,i-o/2,n,o),t[T]=1,t[b]=0}else if("off_dot"===be){const e=1-we,n=2+4*e,a=1+1*e,o=e;t[m]=Re,t[b]=8+6*e,t[w]=`rgba(${s}, ${l}, ${f}, ${o})`,t[x](r-n/2,i-a/2,n,a),t[b]=0}if(J.scanLinesEnabled){t[w]=`rgba(0, 0, 0, ${.7*J.scanLineOpacity})`;for(let r=n;r<n+o;r+=J.scanLineSpacing)t[x](e,r,a,1)}return void t.restore()}if(Ft&&ge){const r=Math.max(2,Math.round(.06*a)),i=Math.max(1,Math.round(.03*a)),s=v((a-2*r-5*i)/6),l=o-4,f=Math.max(2,Math.round(l/8)),h=1;if(1===Rt)for(let t=0;t<6;t++)Math.abs(Bt[t]-Lt[t])<.02&&(Lt[t]=.1+.9*_(),Ht[t]=.02+.04*_()),Bt[t]<Lt[t]?(Bt[t]+=Ht[t]*c,Bt[t]>Lt[t]&&(Bt[t]=Lt[t])):(Bt[t]-=.7*Ht[t]*c,Bt[t]<Lt[t]&&(Bt[t]=Lt[t]));else if(2===Rt){const t=Pt/Yt%16;for(let e=0;e<6;e++){let n=0;for(let a=0;a<Nt[e].length;a++){const o=Nt[e][a],r=Math.abs(t-o),i=Math.abs(t-o-16);if(Math.min(r,i)<.15){n=Xt[e];break}}n>0?Bt[e]=n*(.85+.15*_()):(Bt[e]-=Gt[e]*c,Bt[e]<.05&&(Bt[e]=.05))}Pt+=c,Pt>=$t&&(Pt=0)}else if(3===Rt){for(let t=0;t<6;t++){const e=Math.sin(zt+t*Ut);Bt[t]=.15+.425*(e+1)}zt+=Vt*c}for(let a=0;a<6;a++){const c=e+r+a*(s+i),d=Math.round(Bt[a]*l),u=Math.max(1,v(d/(f+h)));t[m]=Wt[a],t[b]=4;for(let e=0;e<u;e++){const r=n+o-2-e*(f+h)-f;t[w]=Wt[a],t[x](c,r,s,f)}t[b]=0}if(J.scanLinesEnabled){t[w]=`rgba(0, 0, 0, ${J.scanLineOpacity})`;for(let r=n;r<n+o;r+=J.scanLineSpacing)t[x](e,r,a,1)}return void t.restore()}if(jt&&ge){var i=n+.62*o;t[T]=.15,t.strokeStyle="#004400",t.lineWidth=1;for(var s=a/8,l=1;l<8;l++){var f=e+l*s;t[k](),t.moveTo(f,n),t.lineTo(f,n+o),t.stroke()}for(var h=o/4,d=1;d<4;d++){var u=n+d*h;t[k](),t.moveTo(e,u),t.lineTo(e+a,u),t.stroke()}t[T]=1,qt+=Qt*c,qt>1&&(qt-=1,ne++,se=ie()),Kt.push({x:qt,val:function(){var t=qt%1;t<0&&(t+=1);for(var e=0;e<se.length;e++){var n=se[e];if(t>=n.start&&t<n.end){var a=(t-n.start)/(n.end-n.start);return n.fn(a)}}return 0}()});for(var p=Math.round(.95/Qt);Kt.length>p;)Kt.shift();t.strokeStyle=Zt,t.lineWidth=2,t[m]=Jt,t[b]=8,t[k]();for(var g=0,y=0;y<Kt.length-1;y++){var S=Kt[y],C=Kt[y+1];if(Math.abs(C.x-S.x)>.1)g=0;else{var M=(Kt.length-1-y)/Kt.length;t[T]=.3+.7*(1-M);var E=e+S.x*a,O=i-S.val*(.45*o),I=e+C.x*a,A=i-C.val*(.45*o);g||(t.moveTo(E,O),g=1),t.lineTo(I,A)}}if(t[T]=1,t.stroke(),Kt.length>0){var R=Kt[Kt.length-1],F=e+R.x*a,D=i-R.val*(.45*o);t[w]="#ffffff",t[m]=Zt,t[b]=12,t[k](),t.arc(F,D,2.5,0,2*Math.PI),t.fill()}if(t[b]=0,J.scanLinesEnabled){t[w]="rgba(0, 0, 0, "+J.scanLineOpacity+")";for(var W=n;W<n+o;W+=J.scanLineSpacing)t[x](e,W,a,1)}return void t.restore()}if("function"==typeof vn&&vn(t,e,n,a,o,r))return void t.restore();const B=J.fontBold?"bold":"normal",L=Tt?"italic":"normal",H=r*J.fontSize;t.font=`${L} ${B} ${H}px ${J.fontFamily}`,t.textBaseline="middle";const Y=n+o/2+2;let P=1,$=J.scrollText;if("blank"===it||"CRT_standby"===it||"CRT_post_blank"===it||"CRT_post_flash_blank"===it?P=0:"typewriter_blink"===it?(P=ft,dt.length>0&&($=dt[dt.length-1].replace(/_/g," "))):"error_flash"===it?(P=ft,$="ERROR!!!"):"manic_glitch"===it?$=bt.join(""):"typing"===it?$=J.scrollText.substring(0,ct).replace(/_/g," "):"word_typing"===it?$=dt[ut].substring(0,pt).replace(/_/g," "):"word_pause"===it?$=dt[ut].replace(/_/g," "):"scrolling"===it?$=J.scrollText.replace(/_/g," "):"exit_anim"===it&&(P=0),P&&ot){t[m]=ot.glow,t[b]=J.glowBlur1,t[w]=ot.color;const n=e+a/2;if("scrolling"===it)t.fillText($,e+wt,Y);else{const e=n-t.measureText($).width/2;t.fillText($,e,Y)}if(t[b]=J.glowBlur2,t[T]=J.glowIntensity,"scrolling"===it)t.fillText($,e+wt,Y);else{const e=n-t.measureText($).width/2;t.fillText($,e,Y)}t[T]=1,t[b]=0}if("exit_anim"===it&&ot){if(0===Mt.length){const r=e+a/2;let i=J.scrollText;dt.length>0&&(i=dt[dt.length-1]),At(i,t,r,Y,a,o,e,n)}t[m]=ot.glow,t[w]=ot.color,t[b]=J.glowBlur1;for(let e=0;e<Mt.length;e++){const n=Mt[e];t.fillText(n.char,n.x,n.y)}t[b]=J.glowBlur2,t[T]=J.glowIntensity;for(let e=0;e<Mt.length;e++){const n=Mt[e];t.fillText(n.char,n.x,n.y)}t[T]=1,t[b]=0}if(J.scanLinesEnabled){t[w]=`rgba(0, 0, 0, ${J.scanLineOpacity})`;for(let r=n;r<n+o;r+=J.scanLineSpacing)t[x](e,r,a,1)}t.restore()}function Bn(t,e){const n=y[R],a=n.colors,o=n.accent,r=Math.ceil(t/D),i=Math.ceil(e/D),s=[];for(let t=0;t<i;t++)for(let e=0;e<r;e++){let n;n=E()<.08?o[v(E()*o.length)]:a[v(E()*a.length)],s.push({col:e,row:t,color:n})}return{pattern:s,cols:r,rows:i}}function Ln(t,e,n,a,o){if("undefined"!=typeof SOLID&&""!==SOLID)return t[T]=W,t[w]="#"+SOLID,t[x](e,n,a,o),void(t[T]=1);if(H&&(G&&(X+=.06666666666666667,X>=1&&(B=N,N=null,G=0,X=0)),Y++,Y>=$[P]&&!G)){Y=0;var r=Bn(a,o);P<=2?(N=r,G=1,X=0):B=r}B||(B=Bn(a,o)),t[T]=W;for(const a of B.pattern){const o=e+a.col*D,r=n+a.row*D;t[w]=a.color,t[x](o,r,D,D)}if(G&&N){t[T]=W*X;for(const a of N.pattern){const o=e+a.col*D,r=n+a.row*D;t[w]=a.color,t[x](o,r,D,D)}}t[T]=1}function Hn(t,e){if(at)switch(it){case"typing":ht++,ht>=J.typewriterSpeed&&(ht=0,ct++,ct>=J.scrollText.length&&(it="typewriter_pause",st=0));break;case"typewriter_pause":st++,st>=(Oe?J.introTypewriterPauseDuration:J.typewriterPauseDuration)&&(it="exit_anim",st=0);break;case"typewriter_blink":st++,ft&&st>=J.typewriterBlinkOnDuration?(ft=0,st=0):!ft&&st>=J.typewriterBlinkOffDuration&&(ft=1,st=0,lt++,lt>=J.typewriterBlinkCount&&(it="exit_anim",st=0));break;case"exit_anim":let t=1;for(let e=0;e<Mt.length;e++){const n=Mt[e];n.dx+=n.dx>0?yt:n.dx<0?-yt:0,n.dy+=n.dy>0?yt:n.dy<0?-yt:0,n.x+=n.dx,n.y+=n.dy,n.y>n.topEdge&&n.y<n.bottomEdge&&n.x>n.leftEdge&&n.x<n.rightEdge&&(t=0)}t&&(it="blank",st=0,Mt=[],It="");break;case"word_typing":gt++,gt>=J.wordTypeSpeed&&(gt=0,pt++,pt>=dt[ut].length&&(it="word_pause",st=0));break;case"word_pause":st++;let n=ut+1,a=0;for(;n<dt.length;){const t=Ye(dt[n]);if(!(t>0))break;a=t,n++}const r=n>=dt.length,i=a>0?a:r?J.lastWordPauseDuration:J.wordPauseDuration;st>=i&&(r?(it="exit_anim",st=0):(ut=n,pt=0,gt=0,it="word_typing"));break;case"blank":if(st++,st>=J.blankDuration){if(Oe=0,Ee.length>0){let t=Ee.shift();if(Oe=1,t=t.replace("{tokenId}",rt),t.startsWith("*")?(Tt=1,t=t.substring(1)):Tt=0,It="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ct[e]&&(It=Ct[e],t=t.substring(2))}ot=J.neonColors[0],t.startsWith(">")?(J.scrollText=t.substring(1).trim(),wt=e,xt=0,it="scrolling"):(J.scrollText=t,t.length<=J.maxTypewriterLength?(it="typing",ct=0,ht=0):(dt=t.trim().split(/\s+/),ut=0,pt=0,gt=0,it="word_typing"))}else if(_()<J.manicGlitchChance&&!ce&&!he){ot={color:"#ff0000",glow:"#ff0000"},it="manic_glitch",st=0,mt=0,bt=[];for(let t=0;t<J.manicCharCount;t++)bt.push(J.manicChars.charAt(v(_()*J.manicChars.length)))}else{let t;if(ce&&o)t=o;else if(he){const e=J.messagesArray;t=e[de%e.length],de++,ot=J.neonColors[ue%J.neonColors.length],ue++}else 0===le.length&&fe(),t=le.shift();if(t=t.replace("{tokenId}",rt),t.startsWith("*")?(Tt=1,t=t.substring(1)):Tt=0,It="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ct[e]&&(It=Ct[e],t=t.substring(2))}t.startsWith(">")?(J.scrollText=t.substring(1).trim(),he||(ot=ce?{color:"#fcdb3b",glow:"#fcdb3b"}:J.neonColors[0]),wt=e,xt=0,it="scrolling"):"ERROR!!!"===t?(J.scrollText=t,he||(ot={color:"#ff0000",glow:"#ff0000"}),it="error_flash",st=0,lt=0,ft=1):(J.scrollText=t,he||(ot=ce?{color:"#fcdb3b",glow:"#fcdb3b"}:J.neonColors[0]),J.scrollText.length<=J.maxTypewriterLength?(it="typing",ct=0,ht=0):(dt=J.scrollText.trim().split(/\s+/),ut=0,pt=0,gt=0,it="word_typing"))}st=0}break;case"error_flash":if(st++,ft&&st>=J.typewriterBlinkOnDuration)ft=0,st=0;else if(!ft&&st>=J.typewriterBlinkOffDuration&&(ft=1,st=0,lt++,lt>=5)){it="manic_glitch",st=0,mt=0,bt=[];for(let t=0;t<J.manicCharCount;t++)bt.push(J.manicChars.charAt(v(_()*J.manicChars.length)))}break;case"manic_glitch":if(st++,mt++,mt>=J.manicSpeed){mt=0;const t=v(_()*bt.length);if(bt[t]=J.manicChars.charAt(v(_()*J.manicChars.length)),_()<.15){const t=J.neonColors;ot=t[v(_()*t.length)]}}st>=J.manicDuration&&(Me?(Me=0,it="CRT_post_blank"):it="blank",st=0);break;case"scrolling":if(wt-=J.scrollSpeed,0===xt){const t=document.createElement("canvas").getContext("2d"),e=J.punkScale*J.fontSize;t.font=`${J.fontBold?"bold":"normal"} ${e}px ${J.fontFamily}`,xt=t.measureText(J.scrollText).width}wt<-xt&&(it="blank",st=0,xt=0);break;case"CRT_power_on":me++,"dot"===be?(we=me/xe,me>=xe&&(be="dot_pause",me=0,we=0)):"dot_pause"===be?me>=Te&&(be="expand_h",me=0,we=0):"expand_h"===be?(we=1-Math.pow(1-me/ke,2),me>=ke&&(be="expand_v",me=0,we=0)):"expand_v"===be?(we=1-Math.pow(1-me/_e,2),me>=_e&&(be="flash",me=0,we=0)):"flash"===be&&(we=me/ve,me>=ve&&(Se++,Se<ye?(me=0,we=0):(be="idle",me=0,we=0,it="CRT_post_flash_blank",st=0)));break;case"CRT_standby":break;case"CRT_post_flash_blank":if(st++,st>=Ce){Me=1,ot={color:"#ff0000",glow:"#ff0000"},it="manic_glitch",st=0,mt=0,bt=[];for(let t=0;t<J.manicCharCount;t++)bt.push(J.manicChars.charAt(v(_()*J.manicChars.length)))}break;case"CRT_post_blank":st++,st>=Ce&&(ge=1,it="blank",st=J.blankDuration);break;case"CRT_power_off":me++,"off_flash"===be?(we=me/ve,me>=ve&&(be="off_collapse_v",me=0,we=0)):"off_collapse_v"===be?(we=1-Math.pow(1-me/_e,2),me>=_e&&(be="off_collapse_h",me=0,we=0)):"off_collapse_h"===be?(we=1-Math.pow(1-me/ke,2),me>=ke&&(be="off_dot",me=0,we=0)):"off_dot"===be&&(we=me/xe,me>=xe&&(be="idle",me=0,we=0,ge=0,it="CRT_standby",st=0))}}window.addEventListener("load",Rn);
function t(){try{const t=new XMLHttpRequest;if(t.open("GET","./CONTRABAND-punk.svg",0),t.send(),t.status>=200&&t.status<300)return t.responseText}catch(t){}return""}const e="undefined"!=typeof SVG?SVG:t(),n="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide-March.2026.jpg",a="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait-March.17.2026.jpg",o="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function r(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,n=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&n?"portrait":"landscape"}const i=r(),s="portrait"===i,l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=s&&l?.25:1,c=s&&l?4:1;let h=performance.now(),d=0,u=0;function p(){d++;const t=performance.now(),e=t-h;e>=1e3&&(u=Math.round(1e3*d/e),d=0,h=t)}function g(t,e,n){t.save(),t.font="bold 14px monospace",t[w]="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+u+" | Mode: "+i+" | Mult: "+f,e,n),t.restore()}var b="shadowBlur",m="shadowColor",w="fillStyle",x="fillRect",T="globalAlpha",k="beginPath",_=Math.random,v=Math.floor;const y={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)y[t]&&Object.assign(y[t],PALETTE_OVERRIDES[t]);function S(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const C="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(v(4294967296*_())),M=0|parseInt(C.slice(-10)),E=S(M),O=Object.keys(y);let I,A;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;y._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},O.push("_solid"),I=O.length-1,A="_solid"}else I="undefined"!=typeof PIDX?PIDX:Math.abs(M)%O.length,A=O[I];let R=A;const F=[8,16,32,64];let D="undefined"!=typeof PXSZ?PXSZ:F[Math.abs(M)%F.length],W=1,B=null,L=null,H=0,Y=0,P=0;const $=[0,120,60,30,12,4];let N=null,X=0,G=0;const z=15,V="undefined"!=typeof MSGS?MSGS:["~HELLO I'M CONTRABAND PUNK_{tokenId}","~I'M THE 10,001th CRYPTOPUNK!","I WAS BORN WHEN LIGHTNING WAS CAPTURED IN_A BOTTLE!","I REPRESENT ALL THE REWARDS ONE CAN HAVE FOR BELIEVING IN THEMSELVES","~*ERROR!!!","~I'M NOT_LEGIT!","MINTER MSG TEST"];var U=V.filter(function(t){return"~"===t.charAt(0)}).map(function(t){return t.substring(1)}),j=V.map(function(t){return"~"===t.charAt(0)?t.substring(1):t});o&&U.push(o),0===U.length&&(U=j);const K={messagesArray:U,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(90*f),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:11,typewriterSpeed:Math.max(1,Math.round(4*f)),typewriterPauseDuration:Math.round(240*f),introTypewriterPauseDuration:s&&l?22:45,typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*f),typewriterBlinkOffDuration:Math.round(30*f),wordTypeSpeed:Math.max(1,Math.round(3*f)),wordPauseDuration:Math.round(49*f),lastWordPauseDuration:Math.round(135*f),manicGlitchChance:.08,manicDuration:Math.round(180*f),manicSpeed:2,manicChars:"!@#$¿%^&*()_+-=[¿¿]5{}|;¿:,.<¿>?/~`░▒▓¬¦█8▀▄▌▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:s?4.5:1.5},q={...K,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:27,headerY:25,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:n},Z={...K,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:54,headerY:55,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:a};Z.punkOffsetX=(Z.canvasWidth-24*Z.punkScale)/2;const J="portrait"===i?Z:q;let Q=null,tt=null,et=null,nt=null,at=1,ot=null,rt="undefined"!=typeof TID?TID:"#0",it="blank",st=0,lt=0,ft=1,ct=0,ht=0,dt=[],ut=0,pt=0,gt=0,bt=[],mt=0,wt=0,xt=0,Tt=0,kt=0;const _t=["up","down","split_v","split_h","explode"];let vt=.3,yt=0;const St=s?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},Ct={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let Mt=[],Et=0,Ot="",It="";function At(t,e,n,a,o,r,i,s){const l=J.punkScale*J.fontSize,f=Tt?"italic":"normal",c=J.fontBold?"bold":"normal";e.font=`${f} ${c} ${l}px ${J.fontFamily}`,Ot=t.replace(/_/g," "),It||(It=_t[v(_()*_t.length)]),vt=St[It]||.3,Et=0,Mt=[];let h=n-e.measureText(Ot).width/2;const d=s,u=s+r,p=i,g=i+o;for(let t=0;t<Ot.length;t++){const n=Ot[t],o=e.measureText(n).width;let r=0,i=0;switch(It){case"up":i=-vt;break;case"down":i=vt;break;case"split_v":i=t%2==0?-vt:vt;break;case"split_h":r=t<Ot.length/2?-vt:vt;break;case"explode":const e=_()*Math.PI*2;r=Math.cos(e)*vt,i=Math.sin(e)*vt}Mt.push({char:n,x:h,y:a,dx:r,dy:i,topEdge:d,bottomEdge:u,leftEdge:p,rightEdge:g}),h+=o}}let Rt=0,Ft=0;const Dt=6,Wt=["#ff0000","#ff8800","#ffff00","#00ff00","#00aaff","#cc00ff"];let Bt=[.1,.1,.1,.1,.1,.1],Lt=[],Ht=[];for(let t=0;t<6;t++)Lt.push(_()),Ht.push(.02+.04*_());const Yt=Math.round(60/1.7);let Pt=0;const $t=16*Yt,Nt=function(){for(var t=[],e=[],n=[],a=[],o=0;o<16;o++)o%2==0&&t.push(o),o%2==1&&e.push(o),n.push(o),n.push(o+.5),a.push(o+.25),a.push(o+.75);return[t,[1,3.5,5,7.5,9,11.5,13,15.5],e,n,a,[0,3,4,7,8,11,12,14,15]]}(),Xt=[1,.75,.9,.5,.35,.8],Gt=[.06,.05,.055,.07,.08,.045];let zt=0;const Vt=.06,Ut=.8;let jt=0,Kt=[],qt=0;const Zt="#ff2222",Jt="#ff0000",Qt=.00765;let te=1,ee=.7,ne=0,ae=.05,oe=.5;function re(){ae=.03+.06*_(),oe=.48+.08*_()}function ie(){for(var t=[],e=[{s:ae,b:.7+.3*_()},{s:oe,b:.45+.35*_()}],n=0,a=0;a<2;a++){var o=e[a].s,r=e[a].b,i=-(.2+.2*_())*r,s=-(.25+.25*_())*r;n<o&&t.push({start:n,end:o,a:0});for(var l=[[.04,.15*r],[.04,0],[.03,i],[.06,.85*r],[.05,s],[.06,0],[.07,.2*r]],f=o,c=0;c<l.length;c++)t.push({start:f,end:f+l[c][0],a:l[c][1]}),f+=l[c][0];n=f}return n<1&&t.push({start:n,end:1,a:0}),t.map(function(t){return{start:t.start,end:t.end,fn:0===t.a?function(){return 0}:(e=t.a,function(t){return Math.sin(t*Math.PI)*e})};var e})}let se=ie(),le=[];function fe(){const t=K.messagesArray.slice();for(let e=t.length-1;e>0;e--){const n=v(_()*(e+1)),a=t[e];t[e]=t[n],t[n]=a}le=t}let ce=0,he=0,de=0,ue=0,pe=0,ge=0,be="idle",me=0,we=0,xe=Math.round(26*f),Te=Math.round(15*f),ke=Math.round(31*f),_e=Math.round(53*f),ve=Math.round(23*f),ye=3,Se=0,Ce=s?15:180,Me=0,Ee=[],Oe=0;var Ie=o?[o]:["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let Ae="green",Re="#33ff33";function Fe(t,e){const n=parseInt(e);switch(t){case"dot":xe=n;break;case"pause":Te=n;break;case"expandH":ke=n;break;case"expandV":_e=n;break;case"flash":ve=n;break;case"flashRepeat":ye=n;break;case"postBlank":Ce=n}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(n/60).toFixed(1)+"s":n}function De(){const t=document.getElementById("CRTColorToggleButton");"white"===Ae?(Ae="green",Re="#33ff33",t.textContent="Color: Green"):(Ae="white",Re="#ffffff",t.textContent="Color: White")}function We(){const t=`Dot: ${xe}, Pause: ${Te}, Expand H: ${ke}, Expand V: ${_e}, Flash: ${ve}, Flash x: ${ye}, Post Blank: ${(Ce/60).toFixed(1)}s, Color: ${Ae}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Be(t,e){const n=parseFloat(e);switch(t){case"speed":vt=n;break;case"accel":yt=n}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=n.toFixed(2))}function Le(t){"random"===t&&(t=_t[v(_()*_t.length)]);const e=St[t]||.3;vt=e;const n=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");n&&(n.value=e),a&&(a.textContent=e.toFixed(2)),J.scrollText="TEST_EXIT",ot=J.neonColors[v(_()*J.neonColors.length)],dt=[],Tt=0,Mt=[],It=t,it="exit_anim",st=0}function He(){const t=`EXIT_ANIM_SPEED: ${vt}, EXIT_ANIM_ACCEL: ${yt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Ye(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function Pe(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=J.punkScale,l=J.punkOffsetX,f=J.punkOffsetY,c=l+11*s,h=f+5*s;return r>=c&&r<c+s&&i>=h&&i<h+s?(Ue(),1):Ne(r,i)?1:r>=l+19*s&&r<l+22*s&&i>=f+12*s&&i<f+14*s?(Ve(),1):0}const $e=[{x:7,y:7},{x:9,y:7},{x:11,y:7},{x:13,y:7},{x:15,y:7}];function Ne(t,e){const n=J.punkScale,a=J.punkOffsetX,o=J.punkOffsetY;for(let r=0;r<$e.length;r++){const i=$e[r],s=a+i.x*n,l=s+n,f=o+i.y*n;if(t>=s&&t<l&&e>=f&&e<f+n)return 2===r?Xe():4===r?ze():"function"==typeof xn&&xn(r),1}return 0}function Xe(){Rt++,Rt>3&&(Rt=0),Ft=Rt>0,Ft&&(jt=0);for(let t=0;t<6;t++)Bt[t]=.05,Lt[t]=.3+.7*_(),Ht[t]=.02+.04*_();Pt=0}function Ge(){jt=!jt,jt&&(Ft=0,Rt=0,Kt=[],qt=0,ne=0,re(),se=ie())}function ze(){(rn=!rn)&&(sn=.5,ln=.5,fn=.006,cn=.004,hn=.4,dn=.4,un=0,pn=0,mn=0,wn=0,Je=0,nn=0,Ft=0,Rt=0,jt=0)}function Ve(){P++,P>5?(P=0,H=0,Y=0,G=0,N=null,X=0,L&&(B=L)):(H||(L=B),H=1,Y=0)}function Ue(){"CRT_power_on"!==it&&"CRT_power_off"!==it&&"CRT_post_flash_blank"!==it&&"CRT_post_blank"!==it&&(ge?(be="off_flash",me=0,we=0,Se=0,it="CRT_power_off",st=0,he&&(he=0,ot=J.neonColors[0]),Je=0,rn=0,nn=0,Ft=0,Rt=0,jt=0):(be="dot",me=0,we=0,Se=0,Ee=[...Ie],it="CRT_power_on",st=0))}function je(){be="dot",me=0,we=0,Se=0,Ee=[...Ie],it="CRT_power_on",st=0}let Ke=-1;const qe=["#0040ff","#ff0022","#ffffff","#ffffff","#ffffff"];function Ze(t,e){var n,a,o;Ke<0||(99===Ke?(n=11,a=5,o="#ffff00"):Ke<$e.length&&(n=$e[Ke].x,a=$e[Ke].y,o=qe[Ke]),void 0!==n&&(t.save(),t[m]=o,t[b]=1.1*e,t[w]=o,t[T]=.6,t[x](J.punkOffsetX+n*e,J.punkOffsetY+a*e,e,e),t[T]=1,t.restore()))}var Je=0,Qe=0,tn=1,en=0,nn=0,an=0,on=0,rn=0,sn=.5,ln=.5,fn=.006,cn=.004,hn=.4,dn=.4,un=0,pn=0,gn=.28,bn=.02,mn=0,wn=0;function xn(t){0===t?(Qe=0,tn=1,(Je=!Je)&&(nn=0,rn=0,Ft=0,Rt=0,jt=0)):1===t?(Je=0,rn=0,nn=0,Ge()):3===t&&(en=0,nn=1,Je=0,rn=0,Ft=0,Rt=0,jt=0)}qe[0]="#00ff44",qe[2]="#00aaff",qe[3]="#ff8800",qe[4]="#cc44ff";var Tn=[0,.008,.007,.07,1,.07,.0042],kn=[0,1,.5,1,1,1,1];function _n(){if(Je&&((Qe+=.009*tn*c)>=1||Qe<=0)&&(tn*=-1),nn>0&&(en+=Tn[nn]*c)>=kn[nn]&&(6===nn?(nn=0,ge=0,je()):(nn++,en=0)),rn){if(mn>0)return void mn--;wn>0&&wn--,sn+=fn*c,(ln+=cn*c)<=0&&(ln=0,cn=Math.abs(cn)),ln>=1&&(ln=1,cn=-Math.abs(cn)),sn<=.06&&(sn=.06,fn=Math.abs(fn),cn+=.02*(ln-(hn+gn/2)),un++,wn=8),sn>=.94&&(sn=.94,fn=-Math.abs(fn),cn+=.02*(ln-(dn+gn/2)),pn++,wn=8),hn+=.08*(ln-gn/2-hn)*c,dn+=.07*(ln-gn/2-dn)*c,hn=Math.max(0,Math.min(1-gn,hn)),dn=Math.max(0,Math.min(1-gn,dn))}}function vn(t,e,n,a,o,r){if(!ge)return 0;if(6===nn||4===nn)return 1;if(nn&&nn<=5){if(an=e+a/2,on=n+o/2,1===nn){var i=en<.5?60-120*en:0,s=35+65*en;t[w]="hsl("+i+",100%,"+s+"%)"}else t[w]="#fff";return t[x](e,n,a,o),1}if(rn){var l="#00ff44";t.save(),t[w]=l,t[m]=l,t[b]=0,t[x](e+5,n+hn*o,bn*a,gn*o),t[x](e+a-bn*a-5,n+dn*o,bn*a,gn*o);var f=Math.max(.3*r,3);0===mn&&t[x](e+sn*a-f/2,n+ln*o-f/2,f,f),t[T]=.3;for(var c=o/20,h=0;h<20;h+=2)t[x](e+a/2-1,n+h*c,2,c);return t[T]=1,t.font=Math.round(.18*o)+"px monospace",t.textAlign="center",t.fillText(un,e+.3*a,n+.22*o),t.fillText(pn,e+.7*a,n+.22*o),wn>0&&(t[T]=wn/30,t[w]="#fff",t[x](e,n,a,o),t[T]=1),t.restore(),1}if(!Je)return 0;t.save();var d=n+Qe*o,u=.45*o,p=t.createLinearGradient(0,d-u*tn,0,d);return p.addColorStop(0,"rgba(0,255,68,0)"),p.addColorStop(1,"rgba(0,255,68,0.55)"),t[w]=p,t[x](e,Math.min(d,d-u*tn),a,u),t[m]="#00ff44",t[b]=35,t.strokeStyle="#00ff44",t.lineWidth=4,t[k](),t.moveTo(e,d),t.lineTo(e+a,d),t.stroke(),t[b]=0,t.restore(),1}function yn(t){if(!(nn<2||4===nn||nn>5)){var e=1-en,n=t.canvas.width,a=t.canvas.height,o=en*Math.max(n,a);3!==nn&&5!==nn||(t[w]="rgba(255,255,255,"+e+")",t[x](0,0,n,a));var r=t.createRadialGradient(an,on,0,an,on,o);r.addColorStop(0,"rgba(255,255,0,"+e+")"),r.addColorStop(1,"rgba(200,200,0,0)"),t[w]=r,t[x](0,0,n,a)}}function Sn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=J.punkScale,f=J.punkOffsetX,c=J.punkOffsetY,h=f+11*l,d=h+l,u=c+5*l,p=u+l,g=1.725*J.punkScale;let b,m;"portrait"===i?(b=J.canvasWidth-g-50,m=J.bottomSectionY+40):(b=J.leftWidth+J.rightWidth-g-30,m=25);const w=r>=b-10&&r<=b+g+10&&s>=m-10&&s<=m+g+10;var x=r>=f+19*l&&r<f+22*l&&s>=c+12*l&&s<c+14*l;let T=0;Ke=-1;for(let t=0;t<$e.length;t++){const e=$e[t],n=f+e.x*l,a=n+l,o=c+e.y*l;if(r>=n&&r<a&&s>=o&&s<o+l){T=1,Ke=t;break}}const k=r>=h&&r<d&&s>=u&&s<p;k&&(Ke=99),e.style.cursor=w||x||T||k?"pointer":"default"}const Cn=[{x:12,y:15},{x:13,y:15}];function Mn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=J.punkScale,l=J.punkOffsetX,f=J.punkOffsetY,c=Cn[0];c.x,c.y,Cn[Cn.length-1].x;for(const t of Cn){const e=l+t.x*s,n=e+s,a=f+t.y*s;if(r>=e&&r<n&&i>=a&&i<a+s)return je(),1}return 0}function En(){if(ce)ce=0;else if(o){ce=1;let t=o.replace("{tokenId}",rt);if(t.startsWith("*")?(Tt=1,t=t.substring(1)):Tt=0,It="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ct[e]&&(It=Ct[e],t=t.substring(2))}t.startsWith(">")?(J.scrollText=t.substring(1).trim(),ot={color:"#fcdb3b",glow:"#fcdb3b"},wt=J.glassesWidth*J.punkScale,xt=0,it="scrolling"):(J.scrollText=t,ot={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=J.maxTypewriterLength?(it="typing",ct=0,ht=0):(dt=t.trim().split(/\s+/),ut=0,pt=0,gt=0,it="word_typing"))}}function On(){he=!he,he?(ce=0,de=0,ue=0,J.messagesArray=j):(ot=J.neonColors[0],J.messagesArray=U)}function In(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=1.725*J.punkScale;let f,c;return"portrait"===i?(f=J.canvasWidth-l-50,c=J.bottomSectionY+40):(f=J.leftWidth+J.rightWidth-l-30,c=25),r>=f-10&&r<=f+l+10&&s>=c-10&&s<=c+l+10?(On(),1):0}function An(t){const e=1.725*J.punkScale;let n,a;"portrait"===i?(n=J.canvasWidth-e-50,a=J.bottomSectionY+40):(n=J.leftWidth+J.rightWidth-e-30,a=25);const o=n+e/2,r=a+e/2,s=e/2+1,l=.38*e+2;t.save(),t.filter="blur(3px)",t[k](),t.arc(o,r,s,0,2*Math.PI),t[w]=he?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=he?"#00ff44":"#00ccff";he&&(t[m]="#00ff44",t[b]=10),t.strokeStyle=f,t.lineWidth="portrait"===i?2.5:1.5,t[k](),t.arc(o,r,l,0,2*Math.PI),t.stroke(),t[m]="transparent",t[b]=0,he&&(pe+=.015),t[k](),t.arc(o,r,l-1,0,2*Math.PI),t.clip();
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" shape-rendering="crispEdges"><style>rect{width:1px;height:1px}</style><rect x="10" y="3" fill="#000"/><rect x="11" y="3" fill="#000"/><rect x="12" y="3" fill="#000"/><rect x="6" y="4" fill="#000"/><rect x="7" y="4" fill="#000"/><rect x="8" y="4" fill="#000"/><rect x="9" y="4" fill="#000"/><rect x="10" y="4" fill="#26314a"/><rect x="11" y="4" fill="#26314a"/><rect x="12" y="4" fill="#26314a"/><rect x="13" y="4" fill="#000"/><rect x="14" y="4" fill="#000"/><rect x="15" y="4" fill="#000"/><rect x="16" y="4" fill="#000"/><rect x="5" y="5" fill="#000"/><rect x="6" y="5" fill="#26314a"/><rect x="7" y="5" fill="#26314a"/><rect x="8" y="5" fill="#26314a"/><rect x="9" y="5" fill="#26314a"/><rect x="10" y="5" fill="#26314a"/><rect x="11" y="5" fill="#ffd800"/><rect x="12" y="5" fill="#26314a"/><rect x="13" y="5" fill="#26314a"/><rect x="14" y="5" fill="#26314a"/><rect x="15" y="5" fill="#26314a"/><rect x="16" y="5" fill="#26314a"/><rect x="17" y="5" fill="#000"/><rect x="5" y="6" fill="#000"/><rect x="6" y="6" fill="#26314a"/><rect x="7" y="6" fill="#26314a"/><rect x="8" y="6" fill="#26314a"/><rect x="9" y="6" fill="#26314a"/><rect x="10" y="6" fill="#26314a"/><rect x="11" y="6" fill="#26314a"/><rect x="12" y="6" fill="#26314a"/><rect x="13" y="6" fill="#26314a"/><rect x="14" y="6" fill="#26314a"/><rect x="15" y="6" fill="#26314a"/><rect x="16" y="6" fill="#26314a"/><rect x="17" y="6" fill="#000"/><rect x="6" y="7" fill="#000"/><rect x="7" y="7" fill="#fff"/><rect x="8" y="7" fill="#000"/><rect x="9" y="7" fill="#fff"/><rect x="10" y="7" fill="#000"/><rect x="11" y="7" fill="#fff"/><rect x="12" y="7" fill="#000"/><rect x="13" y="7" fill="#fff"/><rect x="14" y="7" fill="#000"/><rect x="15" y="7" fill="#fff"/><rect x="16" y="7" fill="#000"/><rect x="6" y="8" fill="#000"/><rect x="7" y="8" fill="#000"/><rect x="8" y="8" fill="#000"/><rect x="9" y="8" fill="#26314a"/><rect x="10" y="8" fill="#26314a"/><rect x="11" y="8" fill="#26314a"/><rect x="12" y="8" fill="#26314a"/><rect x="13" y="8" fill="#26314a"/><rect x="14" y="8" fill="#26314a"/><rect x="15" y="8" fill="#26314a"/><rect x="16" y="8" fill="#26314a"/><rect x="17" y="8" fill="#000"/><rect x="6" y="9" fill="#000"/><rect x="7" y="9" fill="#ead9d9"/><rect x="8" y="9" fill="#000"/><rect x="9" y="9" fill="#000"/><rect x="10" y="9" fill="#000"/><rect x="11" y="9" fill="#000"/><rect x="12" y="9" fill="#000"/><rect x="13" y="9" fill="#000"/><rect x="14" y="9" fill="#000"/><rect x="15" y="9" fill="#000"/><rect x="16" y="9" fill="#000"/><rect x="17" y="9" fill="#000"/><rect x="6" y="10" fill="#000"/><rect x="7" y="10" fill="#000"/><rect x="8" y="10" fill="#8d8d8d"/><rect x="9" y="10" fill="#b4b4b4"/><rect x="10" y="10" fill="#b4b4b4"/><rect x="11" y="10" fill="#b4b4b4"/><rect x="12" y="10" fill="#b4b4b4"/><rect x="13" y="10" fill="#b4b4b4"/><rect x="14" y="10" fill="#b4b4b4"/><rect x="15" y="10" fill="#b4b4b4"/><rect x="16" y="10" fill="#8d8d8d"/><rect x="17" y="10" fill="#000"/><rect x="6" y="11" fill="#000"/><rect x="7" y="11" fill="#8d8d8d"/><rect x="8" y="11" fill="#b4b4b4"/><rect x="9" y="11" fill="#000"/><rect x="10" y="11" fill="#000"/><rect x="11" y="11" fill="#000"/><rect x="12" y="11" fill="#000"/><rect x="13" y="11" fill="#000"/><rect x="14" y="11" fill="#000"/><rect x="15" y="11" fill="#000"/><rect x="16" y="11" fill="#b4b4b4"/><rect x="17" y="11" fill="#000"/><rect x="20" y="11" fill="#b9b9b980"/><rect x="5" y="12" fill="#000"/><rect x="6" y="12" fill="#000"/><rect x="7" y="12" fill="#8d8d8d"/><rect x="8" y="12" fill="#b4b4b4"/><rect x="9" y="12" fill="#000"/><rect x="10" y="12" fill="#000"/><rect x="11" y="12" fill="#000"/><rect x="12" y="12" fill="#000"/><rect x="13" y="12" fill="#000"/><rect x="14" y="12" fill="#000"/><rect x="15" y="12" fill="#000"/><rect x="16" y="12" fill="#b4b4b4"/><rect x="17" y="12" fill="#000"/><rect x="19" y="12" fill="#b9b9b980"/><rect x="20" y="12" fill="#b9b9b980"/><rect x="21" y="12" fill="#b9b9b980"/><rect x="5" y="13" fill="#000"/><rect x="6" y="13" fill="#ead9d9"/><rect x="7" y="13" fill="#000"/><rect x="8" y="13" fill="#8d8d8d"/><rect x="9" y="13" fill="#b4b4b4"/><rect x="10" y="13" fill="#b4b4b4"/><rect x="11" y="13" fill="#b4b4b4"/><rect x="12" y="13" fill="#b4b4b4"/><rect x="13" y="13" fill="#b4b4b4"/><rect x="14" y="13" fill="#b4b4b4"/><rect x="15" y="13" fill="#b4b4b4"/><rect x="16" y="13" fill="#8d8d8d"/><rect x="17" y="13" fill="#000"/><rect x="19" y="13" fill="#b9b9b980"/><rect x="20" y="13" fill="#b9b9b980"/><rect x="21" y="13" fill="#b9b9b980"/><rect x="5" y="14" fill="#000"/><rect x="6" y="14" fill="#000"/><rect x="7" y="14" fill="#ead9d9"/><rect x="8" y="14" fill="#000"/><rect x="9" y="14" fill="#000"/><rect x="10" y="14" fill="#000"/><rect x="11" y="14" fill="#000"/><rect x="12" y="14" fill="#000"/><rect x="13" y="14" fill="#000"/><rect x="14" y="14" fill="#000"/><rect x="15" y="14" fill="#000"/><rect x="16" y="14" fill="#000"/><rect x="6" y="15" fill="#000"/><rect x="7" y="15" fill="#ead9d9"/><rect x="8" y="15" fill="#ead9d9"/><rect x="9" y="15" fill="#ead9d9"/><rect x="10" y="15" fill="#ead9d9"/><rect x="11" y="15" fill="#ead9d9"/><rect x="12" y="15" fill="#000"/><rect x="13" y="15" fill="#000"/><rect x="14" y="15" fill="#ead9d9"/><rect x="15" y="15" fill="#ead9d9"/><rect x="16" y="15" fill="#000"/><rect x="20" y="15" fill="#b9b9b980"/><rect x="6" y="16" fill="#000"/><rect x="7" y="16" fill="#ead9d9"/><rect x="8" y="16" fill="#ead9d9"/><rect x="9" y="16" fill="#ead9d9"/><rect x="10" y="16" fill="#ead9d9"/><rect x="11" y="16" fill="#ead9d9"/><rect x="12" y="16" fill="#ead9d9"/><rect x="13" y="16" fill="#ead9d9"/><rect x="14" y="16" fill="#ead9d9"/><rect x="15" y="16" fill="#ead9d9"/><rect x="16" y="16" fill="#000"/><rect x="6" y="17" fill="#000"/><rect x="7" y="17" fill="#ead9d9"/><rect x="8" y="17" fill="#ead9d9"/><rect x="9" y="17" fill="#ead9d9"/><rect x="10" y="17" fill="#c28946"/><rect x="11" y="17" fill="#a66e2c"/><rect x="12" y="17" fill="#a66e2c"/><rect x="13" y="17" fill="#a66e2c"/><rect x="14" y="17" fill="#c28946"/><rect x="15" y="17" fill="#ead9d9"/><rect x="16" y="17" fill="#000"/><rect x="20" y="17" fill="#b9b9b980"/><rect x="6" y="18" fill="#000"/><rect x="7" y="18" fill="#ead9d9"/><rect x="8" y="18" fill="#ead9d9"/><rect x="9" y="18" fill="#ead9d9"/><rect x="10" y="18" fill="#a66e2c"/><rect x="11" y="18" fill="#000"/><rect x="12" y="18" fill="#000"/><rect x="13" y="18" fill="#000"/><rect x="14" y="18" fill="#000"/><rect x="15" y="18" fill="#ead9d9"/><rect x="16" y="18" fill="#000"/><rect x="6" y="19" fill="#000"/><rect x="7" y="19" fill="#ead9d9"/><rect x="8" y="19" fill="#ead9d9"/><rect x="9" y="19" fill="#ead9d9"/><rect x="10" y="19" fill="#a66e2c"/><rect x="11" y="19" fill="#ead9d9"/><rect x="12" y="19" fill="#ead9d9"/><rect x="13" y="19" fill="#000"/><rect x="14" y="19" fill="#855114"/><rect x="15" y="19" fill="#000"/><rect x="16" y="19" fill="#000"/><rect x="18" y="19" fill="#000"/><rect x="19" y="19" fill="#000"/><rect x="20" y="19" fill="#000"/><rect x="21" y="19" fill="#000"/><rect x="22" y="19" fill="#000"/><rect x="6" y="20" fill="#000"/><rect x="7" y="20" fill="#ead9d9"/><rect x="8" y="20" fill="#ead9d9"/><rect x="9" y="20" fill="#ead9d9"/><rect x="10" y="20" fill="#ead9d9"/><rect x="11" y="20" fill="#ead9d9"/><rect x="12" y="20" fill="#ead9d9"/><rect x="13" y="20" fill="#ead9d9"/><rect x="14" y="20" fill="#000"/><rect x="15" y="20" fill="#855114"/><rect x="16" y="20" fill="#000"/><rect x="18" y="20" fill="#000"/><rect x="19" y="20" fill="#855114"/><rect x="20" y="20" fill="#855114"/><rect x="21" y="20" fill="#855114"/><rect x="22" y="20" fill="#000"/><rect x="6" y="21" fill="#000"/><rect x="7" y="21" fill="#ead9d9"/><rect x="8" y="21" fill="#ead9d9"/><rect x="9" y="21" fill="#ead9d9"/><rect x="10" y="21" fill="#000"/><rect x="11" y="21" fill="#000"/><rect x="12" y="21" fill="#000"/><rect x="13" y="21" fill="#000"/><rect x="14" y="21" fill="#000"/><rect x="15" y="21" fill="#000"/><rect x="16" y="21" fill="#855114"/><rect x="17" y="21" fill="#000"/><rect x="18" y="21" fill="#000"/><rect x="19" y="21" fill="#683c08"/><rect x="20" y="21" fill="#855114"/><rect x="21" y="21" fill="#683c08"/><rect x="22" y="21" fill="#000"/><rect x="6" y="22" fill="#000"/><rect x="7" y="22" fill="#ead9d9"/><rect x="8" y="22" fill="#ead9d9"/><rect x="9" y="22" fill="#ead9d9"/><rect x="10" y="22" fill="#000"/><rect x="16" y="22" fill="#000"/><rect x="17" y="22" fill="#855114"/><rect x="18" y="22" fill="#855114"/><rect x="19" y="22" fill="#855114"/><rect x="20" y="22" fill="#683c08"/><rect x="21" y="22" fill="#000"/><rect x="6" y="23" fill="#000"/><rect x="7" y="23" fill="#ead9d9"/><rect x="8" y="23" fill="#ead9d9"/><rect x="9" y="23" fill="#ead9d9"/><rect x="10" y="23" fill="#000"/><rect x="17" y="23" fill="#000"/><rect x="18" y="23" fill="#000"/><rect x="19" y="23" fill="#000"/><rect x="20" y="23" fill="#000"/></svg>
for(let e=0;e<4;e++){const n=pe+e*Math.PI/4,a=Math.sin(n);t[k](),t.ellipse(o,r,Math.abs(a)*l,l,0,0,2*Math.PI),t.stroke()}const c=[-.5,0,.5];for(const e of c){const n=r+e*l,a=Math.cos(e)*l;t[k](),t.ellipse(o,n,a,.15*a,0,0,2*Math.PI),t.stroke()}t.restore()}async function Rn(){const t=document.getElementById("punkCanvas"),n=document.getElementById("nftContainer"),a=document.getElementById("modeIndicator");function o(e){const n=e.changedTouches?e.changedTouches[0]:e,a={clientX:n.clientX,clientY:n.clientY};In(a,t)||Pe(a,t)?e.preventDefault():at=!at}n&&n.classList.add(i),a&&(a.textContent=i+" mode"),t.width=J.canvasWidth,t.height=J.canvasHeight,"ontouchstart"in window?t.addEventListener("touchend",o):t.onclick=o,t.onmousemove=function(e){Sn(e,t)},t.onmouseleave=function(){Ke=-1,t.style.cursor="default"};const r=t.getContext("2d");Q=new Image,e&&e.length>0?await new Promise((t,n)=>{Q.onload=t,Q.onerror=n,Q.src="data:image/svg+xml;base64,"+btoa(e)}):await new Promise((t,e)=>{Q.onload=t,Q.onerror=e,Q.src="./CONTRABAND-punk-Feb2026.svg"}),tt=document.createElement("canvas"),tt.width=24,tt.height=24;var s=tt.getContext("2d");s.imageSmoothingEnabled=0,s.drawImage(Q,0,0,24,24),et=new Image,et.crossOrigin="anonymous",await new Promise(t=>{et.onload=t,et.onerror=()=>{t()},et.src=J.imageURL}),J.scrollText="",ot=J.neonColors[0],be="dot",me=0,we=0,Se=0,Ee=[...Ie],it="CRT_power_on",st=0,"function"==typeof pluginInit&&pluginInit(J,t,r),"portrait"===i?Dn(r,t):Fn(r,t)}function Fn(t,e){"function"==typeof _n&&_n();const n=J.punkScale;t.clearRect(0,0,e.width,e.height),et&&et.complete&&et.naturalWidth>0?t.drawImage(et,0,0,J.leftWidth,J.leftHeight):(t[w]="#d4b896",t[x](0,0,J.leftWidth,J.leftHeight),t[w]="#666",t.font="20px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Left Side Image",J.leftWidth/2,J.leftHeight/2),t.fillText("(Canvas-LeftSide.jpg)",J.leftWidth/2,J.leftHeight/2+30),t.textAlign="left"),Ln(t,J.leftWidth,0,J.rightWidth,J.canvasHeight),t.font=`500 ${J.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t.textAlign="center",t.textBaseline="top";const a=J.leftWidth+J.rightWidth/2;t[m]="rgba(0, 0, 0, 0.5)",t[b]=3,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("CONTRABAND PUNK #"+("string"==typeof TID?TID.replace(/^#/,""):"?"),a,J.headerY),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const o=J.punkOffsetX+J.glassesX*n,r=J.punkOffsetY+J.glassesY*n,i=J.glassesWidth*n,s=J.glassesHeight*n,l=y[R];l.dark&&(t[m]="rgba(255, 255, 255, 0.6)",t[b]=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage(tt,J.punkOffsetX,J.punkOffsetY,24*n,24*n),l.dark&&(t[m]="transparent",t[b]=0),Ze(t,n),yn(t),Wn(t,o,r,i,s,n);const f=J.punkOffsetY+24*n,c=J.leftWidth+J.rightWidth/2;t.font=`bold ${J.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#000000",t.textAlign="center",t.textBaseline="top",t.letterSpacing="0px",t[m]="rgba(255, 255, 255, 0.6)",t[b]=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText("Attributes:",c,f+J.attributesTitleOffsetY),t[m]="transparent",t[b]=0,t.font=`500 ${J.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t[m]="rgba(0, 0, 0, 0.70)",t[b]=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillText("VR-MOD, Hot-Cap, Not-Legit",c,f+J.attributesTextOffsetY),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left",t[w]="#000000",t[x](0,0,e.width,5),t[x](0,e.height-5,e.width,5),t[x](0,0,5,e.height),t[x](e.width-5,0,5,e.height),t[x](J.leftWidth-2.5,0,5,e.height),Hn(t,i),An(t),nt=requestAnimationFrame(()=>Fn(t,e))}function Dn(t,e){"function"==typeof _n&&_n();const n=J.punkScale;if(t.clearRect(0,0,e.width,e.height),et&&et.complete&&et.naturalWidth>0){const e=et.naturalWidth/et.naturalHeight,n=J.canvasWidth/J.topImageHeight;let a=0,o=0,r=et.naturalWidth,i=et.naturalHeight;e<n?(i=et.naturalWidth/n,o=(et.naturalHeight-i)/2):(r=et.naturalHeight*n,a=(et.naturalWidth-r)/2),t.drawImage(et,a,o,r,i,0,0,J.canvasWidth,J.topImageHeight)}else t[w]="#d4b896",t[x](0,0,J.canvasWidth,J.topImageHeight),t[w]="#666",t.font="32px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Top Image Placeholder",J.canvasWidth/2,J.topImageHeight/2),t.fillText("(Canvas-TopSide-Portrait.jpg)",J.canvasWidth/2,J.topImageHeight/2+45),t.textAlign="left";Ln(t,0,J.bottomSectionY,J.canvasWidth,J.bottomSectionHeight),t.font=`bold ${J.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t.textAlign="center",t.textBaseline="top",t[m]="rgba(0, 0, 0, 0.5)",t[b]=3,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("CONTRABAND PUNK #"+("string"==typeof TID?TID.replace(/^#/,""):"?"),J.canvasWidth/2,J.bottomSectionY+J.headerY),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const a=J.punkOffsetX+J.glassesX*n,o=J.punkOffsetY+J.glassesY*n,r=J.glassesWidth*n,i=J.glassesHeight*n,s=y[R];s.dark&&(t[m]="rgba(255, 255, 255, 0.6)",t[b]=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage(tt,J.punkOffsetX,J.punkOffsetY,24*n,24*n),s.dark&&(t[m]="transparent",t[b]=0),Ze(t,n),yn(t),Wn(t,a,o,r,i,n);const l=J.punkOffsetY+24*n,f=J.canvasWidth/2;t.textBaseline="alphabetic",t.letterSpacing="0px";const c=l+J.attributesTitleOffsetY+25;t.font=`bold ${J.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const h="Attributes: ",d=t.measureText(h).width;t.font=`bold ${J.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const u="VR-MOD, Hot-Cap, Not-Legit",p=f-(d+t.measureText(u).width)/2;t.font=`bold ${J.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#000000",t.textAlign="left",t[m]="rgba(255, 255, 255, 0.6)",t[b]=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText(h,p,c),t[m]="transparent",t[b]=0,t.font=`bold ${J.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t[w]="#ff00fc",t[m]="rgba(0, 0, 0, 0.5)",t[b]=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText(u,p+d,c),t[m]="transparent",t[b]=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t[w]="#000000",t[x](0,0,e.width,5),t[x](0,e.height-5,e.width,5),t[x](0,0,5,e.height),t[x](e.width-5,0,5,e.height),t[x](0,J.topImageHeight-2.5,e.width,5),Hn(t,r),An(t),nt=requestAnimationFrame(()=>Dn(t,e))}function Wn(t,e,n,a,o,r){if(t.save(),t[k](),t.rect(e,n,a,o),t.clip(),t[w]="#000000",t[x](e,n,a,o),"CRT_power_on"===it||"CRT_power_off"===it){const r=e+a/2,i=n+o/2,s=parseInt(Re.slice(1,3),16),l=parseInt(Re.slice(3,5),16),f=parseInt(Re.slice(5,7),16);if("dot"===be||"dot_pause"===be){const e="dot_pause"===be?1:we,n=2+4*e,a=1+1*e;t[m]=Re,t[b]=8+6*e,t[w]=Re,t[x](r-n/2,i-a/2,n,a),t[b]=15,t[T]=.6,t[x](r-n/2,i-a/2,n,a),t[T]=1,t[b]=0}else if("expand_h"===be){const e=6+we*(a-6),n=2+1*we;t[m]=Re,t[b]=12,t[w]=Re,t[x](r-e/2,i-n/2,e,n),t[b]=20,t[T]=.5,t[x](r-e/2,i-n/2,e,n),t[T]=1,t[b]=0}else if("expand_v"===be){const n=a,r=3+we*(o-3);t[m]=Re,t[b]=10,t[w]=Re,t[x](e,i-r/2,n,r),t[b]=0}else if("flash"===be){const r=1-.85*we;t[w]=`rgba(${s}, ${l}, ${f}, ${r})`,t[x](e,n,a,o)}else if("off_flash"===be){const r=.15+.85*(1-we);t[w]=`rgba(${s}, ${l}, ${f}, ${r})`,t[x](e,n,a,o)}else if("off_collapse_v"===be){const n=a,r=3+(1-we)*(o-3);t[m]=Re,t[b]=10,t[w]=Re,t[x](e,i-r/2,n,r),t[b]=0}else if("off_collapse_h"===be){const e=1-we,n=6+e*(a-6),o=2+1*e;t[m]=Re,t[b]=12,t[w]=Re,t[x](r-n/2,i-o/2,n,o),t[b]=20,t[T]=.5,t[x](r-n/2,i-o/2,n,o),t[T]=1,t[b]=0}else if("off_dot"===be){const e=1-we,n=2+4*e,a=1+1*e,o=e;t[m]=Re,t[b]=8+6*e,t[w]=`rgba(${s}, ${l}, ${f}, ${o})`,t[x](r-n/2,i-a/2,n,a),t[b]=0}if(J.scanLinesEnabled){t[w]=`rgba(0, 0, 0, ${.7*J.scanLineOpacity})`;for(let r=n;r<n+o;r+=J.scanLineSpacing)t[x](e,r,a,1)}return void t.restore()}if(Ft&&ge){const r=Math.max(2,Math.round(.06*a)),i=Math.max(1,Math.round(.03*a)),s=v((a-2*r-5*i)/6),l=o-4,f=Math.max(2,Math.round(l/8)),h=1;if(1===Rt)for(let t=0;t<6;t++)Math.abs(Bt[t]-Lt[t])<.02&&(Lt[t]=.1+.9*_(),Ht[t]=.02+.04*_()),Bt[t]<Lt[t]?(Bt[t]+=Ht[t]*c,Bt[t]>Lt[t]&&(Bt[t]=Lt[t])):(Bt[t]-=.7*Ht[t]*c,Bt[t]<Lt[t]&&(Bt[t]=Lt[t]));else if(2===Rt){const t=Pt/Yt%16;for(let e=0;e<6;e++){let n=0;for(let a=0;a<Nt[e].length;a++){const o=Nt[e][a],r=Math.abs(t-o),i=Math.abs(t-o-16);if(Math.min(r,i)<.15){n=Xt[e];break}}n>0?Bt[e]=n*(.85+.15*_()):(Bt[e]-=Gt[e]*c,Bt[e]<.05&&(Bt[e]=.05))}Pt+=c,Pt>=$t&&(Pt=0)}else if(3===Rt){for(let t=0;t<6;t++){const e=Math.sin(zt+t*Ut);Bt[t]=.15+.425*(e+1)}zt+=Vt*c}for(let a=0;a<6;a++){const c=e+r+a*(s+i),d=Math.round(Bt[a]*l),u=Math.max(1,v(d/(f+h)));t[m]=Wt[a],t[b]=4;for(let e=0;e<u;e++){const r=n+o-2-e*(f+h)-f;t[w]=Wt[a],t[x](c,r,s,f)}t[b]=0}if(J.scanLinesEnabled){t[w]=`rgba(0, 0, 0, ${J.scanLineOpacity})`;for(let r=n;r<n+o;r+=J.scanLineSpacing)t[x](e,r,a,1)}return void t.restore()}if(jt&&ge){var i=n+.62*o;t[T]=.15,t.strokeStyle="#004400",t.lineWidth=1;for(var s=a/8,l=1;l<8;l++){var f=e+l*s;t[k](),t.moveTo(f,n),t.lineTo(f,n+o),t.stroke()}for(var h=o/4,d=1;d<4;d++){var u=n+d*h;t[k](),t.moveTo(e,u),t.lineTo(e+a,u),t.stroke()}t[T]=1,qt+=Qt*c,qt>1&&(qt-=1,ne++,se=ie()),Kt.push({x:qt,val:function(){var t=qt%1;t<0&&(t+=1);for(var e=0;e<se.length;e++){var n=se[e];if(t>=n.start&&t<n.end){var a=(t-n.start)/(n.end-n.start);return n.fn(a)}}return 0}()});for(var p=Math.round(.95/Qt);Kt.length>p;)Kt.shift();t.strokeStyle=Zt,t.lineWidth=2,t[m]=Jt,t[b]=8,t[k]();for(var g=0,y=0;y<Kt.length-1;y++){var S=Kt[y],C=Kt[y+1];if(Math.abs(C.x-S.x)>.1)g=0;else{var M=(Kt.length-1-y)/Kt.length;t[T]=.3+.7*(1-M);var E=e+S.x*a,O=i-S.val*(.45*o),I=e+C.x*a,A=i-C.val*(.45*o);g||(t.moveTo(E,O),g=1),t.lineTo(I,A)}}if(t[T]=1,t.stroke(),Kt.length>0){var R=Kt[Kt.length-1],F=e+R.x*a,D=i-R.val*(.45*o);t[w]="#ffffff",t[m]=Zt,t[b]=12,t[k](),t.arc(F,D,2.5,0,2*Math.PI),t.fill()}if(t[b]=0,J.scanLinesEnabled){t[w]="rgba(0, 0, 0, "+J.scanLineOpacity+")";for(var W=n;W<n+o;W+=J.scanLineSpacing)t[x](e,W,a,1)}return void t.restore()}if("function"==typeof vn&&vn(t,e,n,a,o,r))return void t.restore();const B=J.fontBold?"bold":"normal",L=Tt?"italic":"normal",H=r*J.fontSize;t.font=`${L} ${B} ${H}px ${J.fontFamily}`,t.textBaseline="middle";const Y=n+o/2+2;let P=1,$=J.scrollText;if("blank"===it||"CRT_standby"===it||"CRT_post_blank"===it||"CRT_post_flash_blank"===it?P=0:"typewriter_blink"===it?(P=ft,dt.length>0&&($=dt[dt.length-1].replace(/_/g," "))):"error_flash"===it?(P=ft,$="ERROR!!!"):"manic_glitch"===it?$=bt.join(""):"typing"===it?$=J.scrollText.substring(0,ct).replace(/_/g," "):"word_typing"===it?$=dt[ut].substring(0,pt).replace(/_/g," "):"word_pause"===it?$=dt[ut].replace(/_/g," "):"scrolling"===it?$=J.scrollText.replace(/_/g," "):"exit_anim"===it&&(P=0),P&&ot){t[m]=ot.glow,t[b]=J.glowBlur1,t[w]=ot.color;const n=e+a/2;if("scrolling"===it)t.fillText($,e+wt,Y);else{const e=n-t.measureText($).width/2;t.fillText($,e,Y)}if(t[b]=J.glowBlur2,t[T]=J.glowIntensity,"scrolling"===it)t.fillText($,e+wt,Y);else{const e=n-t.measureText($).width/2;t.fillText($,e,Y)}t[T]=1,t[b]=0}if("exit_anim"===it&&ot){if(0===Mt.length){const r=e+a/2;let i=J.scrollText;dt.length>0&&(i=dt[dt.length-1]),At(i,t,r,Y,a,o,e,n)}t[m]=ot.glow,t[w]=ot.color,t[b]=J.glowBlur1;for(let e=0;e<Mt.length;e++){const n=Mt[e];t.fillText(n.char,n.x,n.y)}t[b]=J.glowBlur2,t[T]=J.glowIntensity;for(let e=0;e<Mt.length;e++){const n=Mt[e];t.fillText(n.char,n.x,n.y)}t[T]=1,t[b]=0}if(J.scanLinesEnabled){t[w]=`rgba(0, 0, 0, ${J.scanLineOpacity})`;for(let r=n;r<n+o;r+=J.scanLineSpacing)t[x](e,r,a,1)}t.restore()}function Bn(t,e){const n=y[R],a=n.colors,o=n.accent,r=Math.ceil(t/D),i=Math.ceil(e/D),s=[];for(let t=0;t<i;t++)for(let e=0;e<r;e++){let n;n=E()<.08?o[v(E()*o.length)]:a[v(E()*a.length)],s.push({col:e,row:t,color:n})}return{pattern:s,cols:r,rows:i}}function Ln(t,e,n,a,o){if("undefined"!=typeof SOLID&&""!==SOLID)return t[T]=W,t[w]="#"+SOLID,t[x](e,n,a,o),void(t[T]=1);if(H&&(G&&(X+=.06666666666666667,X>=1&&(B=N,N=null,G=0,X=0)),Y++,Y>=$[P]&&!G)){Y=0;var r=Bn(a,o);P<=2?(N=r,G=1,X=0):B=r}B||(B=Bn(a,o)),t[T]=W;for(const a of B.pattern){const o=e+a.col*D,r=n+a.row*D;t[w]=a.color,t[x](o,r,D,D)}if(G&&N){t[T]=W*X;for(const a of N.pattern){const o=e+a.col*D,r=n+a.row*D;t[w]=a.color,t[x](o,r,D,D)}}t[T]=1}function Hn(t,e){if(at)switch(it){case"typing":ht++,ht>=J.typewriterSpeed&&(ht=0,ct++,ct>=J.scrollText.length&&(it="typewriter_pause",st=0));break;case"typewriter_pause":st++,st>=(Oe?J.introTypewriterPauseDuration:J.typewriterPauseDuration)&&(it="exit_anim",st=0);break;case"typewriter_blink":st++,ft&&st>=J.typewriterBlinkOnDuration?(ft=0,st=0):!ft&&st>=J.typewriterBlinkOffDuration&&(ft=1,st=0,lt++,lt>=J.typewriterBlinkCount&&(it="exit_anim",st=0));break;case"exit_anim":let t=1;for(let e=0;e<Mt.length;e++){const n=Mt[e];n.dx+=n.dx>0?yt:n.dx<0?-yt:0,n.dy+=n.dy>0?yt:n.dy<0?-yt:0,n.x+=n.dx,n.y+=n.dy,n.y>n.topEdge&&n.y<n.bottomEdge&&n.x>n.leftEdge&&n.x<n.rightEdge&&(t=0)}t&&(it="blank",st=0,Mt=[],It="");break;case"word_typing":gt++,gt>=J.wordTypeSpeed&&(gt=0,pt++,pt>=dt[ut].length&&(it="word_pause",st=0));break;case"word_pause":st++;let n=ut+1,a=0;for(;n<dt.length;){const t=Ye(dt[n]);if(!(t>0))break;a=t,n++}const r=n>=dt.length,i=a>0?a:r?J.lastWordPauseDuration:J.wordPauseDuration;st>=i&&(r?(it="exit_anim",st=0):(ut=n,pt=0,gt=0,it="word_typing"));break;case"blank":if(st++,st>=J.blankDuration){if(Oe=0,Ee.length>0){let t=Ee.shift();if(Oe=1,t=t.replace("{tokenId}",rt),t.startsWith("*")?(Tt=1,t=t.substring(1)):Tt=0,It="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ct[e]&&(It=Ct[e],t=t.substring(2))}ot=J.neonColors[0],t.startsWith(">")?(J.scrollText=t.substring(1).trim(),wt=e,xt=0,it="scrolling"):(J.scrollText=t,t.length<=J.maxTypewriterLength?(it="typing",ct=0,ht=0):(dt=t.trim().split(/\s+/),ut=0,pt=0,gt=0,it="word_typing"))}else if(_()<J.manicGlitchChance&&!ce&&!he){ot={color:"#ff0000",glow:"#ff0000"},it="manic_glitch",st=0,mt=0,bt=[];for(let t=0;t<J.manicCharCount;t++)bt.push(J.manicChars.charAt(v(_()*J.manicChars.length)))}else{let t;if(ce&&o)t=o;else if(he){const e=J.messagesArray;t=e[de%e.length],de++,ot=J.neonColors[ue%J.neonColors.length],ue++}else 0===le.length&&fe(),t=le.shift();if(t=t.replace("{tokenId}",rt),t.startsWith("*")?(Tt=1,t=t.substring(1)):Tt=0,It="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ct[e]&&(It=Ct[e],t=t.substring(2))}t.startsWith(">")?(J.scrollText=t.substring(1).trim(),he||(ot=ce?{color:"#fcdb3b",glow:"#fcdb3b"}:J.neonColors[0]),wt=e,xt=0,it="scrolling"):"ERROR!!!"===t?(J.scrollText=t,he||(ot={color:"#ff0000",glow:"#ff0000"}),it="error_flash",st=0,lt=0,ft=1):(J.scrollText=t,he||(ot=ce?{color:"#fcdb3b",glow:"#fcdb3b"}:J.neonColors[0]),J.scrollText.length<=J.maxTypewriterLength?(it="typing",ct=0,ht=0):(dt=J.scrollText.trim().split(/\s+/),ut=0,pt=0,gt=0,it="word_typing"))}st=0}break;case"error_flash":if(st++,ft&&st>=J.typewriterBlinkOnDuration)ft=0,st=0;else if(!ft&&st>=J.typewriterBlinkOffDuration&&(ft=1,st=0,lt++,lt>=5)){it="manic_glitch",st=0,mt=0,bt=[];for(let t=0;t<J.manicCharCount;t++)bt.push(J.manicChars.charAt(v(_()*J.manicChars.length)))}break;case"manic_glitch":if(st++,mt++,mt>=J.manicSpeed){mt=0;const t=v(_()*bt.length);if(bt[t]=J.manicChars.charAt(v(_()*J.manicChars.length)),_()<.15){const t=J.neonColors;ot=t[v(_()*t.length)]}}st>=J.manicDuration&&(Me?(Me=0,it="CRT_post_blank"):it="blank",st=0);break;case"scrolling":if(wt-=J.scrollSpeed,0===xt){const t=document.createElement("canvas").getContext("2d"),e=J.punkScale*J.fontSize;t.font=`${J.fontBold?"bold":"normal"} ${e}px ${J.fontFamily}`,xt=t.measureText(J.scrollText).width}wt<-xt&&(it="blank",st=0,xt=0);break;case"CRT_power_on":me++,"dot"===be?(we=me/xe,me>=xe&&(be="dot_pause",me=0,we=0)):"dot_pause"===be?me>=Te&&(be="expand_h",me=0,we=0):"expand_h"===be?(we=1-Math.pow(1-me/ke,2),me>=ke&&(be="expand_v",me=0,we=0)):"expand_v"===be?(we=1-Math.pow(1-me/_e,2),me>=_e&&(be="flash",me=0,we=0)):"flash"===be&&(we=me/ve,me>=ve&&(Se++,Se<ye?(me=0,we=0):(be="idle",me=0,we=0,it="CRT_post_flash_blank",st=0)));break;case"CRT_standby":break;case"CRT_post_flash_blank":if(st++,st>=Ce){Me=1,ot={color:"#ff0000",glow:"#ff0000"},it="manic_glitch",st=0,mt=0,bt=[];for(let t=0;t<J.manicCharCount;t++)bt.push(J.manicChars.charAt(v(_()*J.manicChars.length)))}break;case"CRT_post_blank":st++,st>=Ce&&(ge=1,it="blank",st=J.blankDuration);break;case"CRT_power_off":me++,"off_flash"===be?(we=me/ve,me>=ve&&(be="off_collapse_v",me=0,we=0)):"off_collapse_v"===be?(we=1-Math.pow(1-me/_e,2),me>=_e&&(be="off_collapse_h",me=0,we=0)):"off_collapse_h"===be?(we=1-Math.pow(1-me/ke,2),me>=ke&&(be="off_dot",me=0,we=0)):"off_dot"===be&&(we=me/xe,me>=xe&&(be="idle",me=0,we=0,ge=0,it="CRT_standby",st=0))}}window.addEventListener("load",Rn);
function t(){try{const t=new XMLHttpRequest;if(t.open("GET","./CONTRABAND-punk.svg",0),t.send(),t.status>=200&&t.status<300)return t.responseText}catch(t){}return""}const e="undefined"!=typeof SVG?SVG:t(),n="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide-March.2026.jpg",a="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait-March.17.2026.jpg",o="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function r(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,n=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&n?"portrait":"landscape"}const i=r(),s="portrait"===i,l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=s&&l?.25:1,c=s&&l?4:1;let h=performance.now(),d=0,u=0;function p(){d++;const t=performance.now(),e=t-h;e>=1e3&&(u=Math.round(1e3*d/e),d=0,h=t)}function g(t,e,n){t.save(),t.font="bold 14px monospace",t[w]="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+u+" | Mode: "+i+" | Mult: "+f,e,n),t.restore()}var b="shadowBlur",m="shadowColor",w="fillStyle",x="fillRect",T="globalAlpha",k="beginPath",_=Math.random,v=Math.floor;const y={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)y[t]&&Object.assign(y[t],PALETTE_OVERRIDES[t]);function S(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const C="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(v(4294967296*_())),M=0|parseInt(C.slice(-10)),E=S(M),O=Object.keys(y);let I,A;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;y._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},O.push("_solid"),I=O.length-1,A="_solid"}else I="undefined"!=typeof PIDX?PIDX:Math.abs(M)%O.length,A=O[I];let R=A;const F=[8,16,32,64];let D="undefined"!=typeof PXSZ?PXSZ:F[Math.abs(M)%F.length],W=1,B=null,L=null,H=0,Y=0,P=0;const $=[0,120,60,30,12,4];let N=null,X=0,G=0;const z=15,V="undefined"!=typeof MSGS?MSGS:["~HELLO I'M CONTRABAND PUNK_{tokenId}","~I'M THE 10,001th CRYPTOPUNK!","I WAS BORN WHEN LIGHTNING WAS CAPTURED IN_A BOTTLE!","I REPRESENT ALL THE REWARDS ONE CAN HAVE FOR BELIEVING IN THEMSELVES","~*ERROR!!!","~I'M NOT_LEGIT!","MINTER MSG TEST"];var U=V.filter(function(t){return"~"===t.charAt(0)}).map(function(t){return t.substring(1)}),j=V.map(function(t){return"~"===t.charAt(0)?t.substring(1):t});o&&U.push(o),0===U.length&&(U=j);const K={messagesArray:U,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(90*f),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:11,typewriterSpeed:Math.max(1,Math.round(4*f)),typewriterPauseDuration:Math.round(240*f),introTypewriterPauseDuration:s&&l?22:45,typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*f),typewriterBlinkOffDuration:Math.round(30*f),wordTypeSpeed:Math.max(1,Math.round(3*f)),wordPauseDuration:Math.round(49*f),lastWordPauseDuration:Math.round(135*f),manicGlitchChance:.08,manicDuration:Math.round(180*f),manicSpeed:2,manicChars:"!@#$¿%^&*()_+-=[¿¿]5{}|;¿:,.<¿>?/~`░▒▓¬¦█8▀▄▌▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:s?4.5:1.5},q={...K,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:27,headerY:25,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:n},Z={...K,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:54,headerY:55,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:a};Z.punkOffsetX=(Z.canvasWidth-24*Z.punkScale)/2;const J="portrait"===i?Z:q;let Q=null,tt=null,et=null,nt=null,at=1,ot=null,rt="undefined"!=typeof TID?TID:"#0",it="blank",st=0,lt=0,ft=1,ct=0,ht=0,dt=[],ut=0,pt=0,gt=0,bt=[],mt=0,wt=0,xt=0,Tt=0,kt=0;const _t=["up","down","split_v","split_h","explode"];let vt=.3,yt=0;const St=s?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},Ct={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let Mt=[],Et=0,Ot="",It="";function At(t,e,n,a,o,r,i,s){const l=J.punkScale*J.fontSize,f=Tt?"italic":"normal",c=J.fontBold?"bold":"normal";e.font=`${f} ${c} ${l}px ${J.fontFamily}`,Ot=t.replace(/_/g," "),It||(It=_t[v(_()*_t.length)]),vt=St[It]||.3,Et=0,Mt=[];let h=n-e.measureText(Ot).width/2;const d=s,u=s+r,p=i,g=i+o;for(let t=0;t<Ot.length;t++){const n=Ot[t],o=e.measureText(n).width;let r=0,i=0;switch(It){case"up":i=-vt;break;case"down":i=vt;break;case"split_v":i=t%2==0?-vt:vt;break;case"split_h":r=t<Ot.length/2?-vt:vt;break;case"explode":const e=_()*Math.PI*2;r=Math.cos(e)*vt,i=Math.sin(e)*vt}Mt.push({char:n,x:h,y:a,dx:r,dy:i,topEdge:d,bottomEdge:u,leftEdge:p,rightEdge:g}),h+=o}}let Rt=0,Ft=0;const Dt=6,Wt=["#ff0000","#ff8800","#ffff00","#00ff00","#00aaff","#cc00ff"];let Bt=[.1,.1,.1,.1,.1,.1],Lt=[],Ht=[];for(let t=0;t<6;t++)Lt.push(_()),Ht.push(.02+.04*_());const Yt=Math.round(60/1.7);let Pt=0;const $t=16*Yt,Nt=function(){for(var t=[],e=[],n=[],a=[],o=0;o<16;o++)o%2==0&&t.push(o),o%2==1&&e.push(o),n.push(o),n.push(o+.5),a.push(o+.25),a.push(o+.75);return[t,[1,3.5,5,7.5,9,11.5,13,15.5],e,n,a,[0,3,4,7,8,11,12,14,15]]}(),Xt=[1,.75,.9,.5,.35,.8],Gt=[.06,.05,.055,.07,.08,.045];let zt=0;const Vt=.06,Ut=.8;let jt=0,Kt=[],qt=0;const Zt="#ff2222",Jt="#ff0000",Qt=.00765;let te=1,ee=.7,ne=0,ae=.05,oe=.5;function re(){ae=.03+.06*_(),oe=.48+.08*_()}function ie(){for(var t=[],e=[{s:ae,b:.7+.3*_()},{s:oe,b:.45+.35*_()}],n=0,a=0;a<2;a++){var o=e[a].s,r=e[a].b,i=-(.2+.2*_())*r,s=-(.25+.25*_())*r;n<o&&t.push({start:n,end:o,a:0});for(var l=[[.04,.15*r],[.04,0],[.03,i],[.06,.85*r],[.05,s],[.06,0],[.07,.2*r]],f=o,c=0;c<l.length;c++)t.push({start:f,end:f+l[c][0],a:l[c][1]}),f+=l[c][0];n=f}return n<1&&t.push({start:n,end:1,a:0}),t.map(function(t){return{start:t.start,end:t.end,fn:0===t.a?function(){return 0}:(e=t.a,function(t){return Math.sin(t*Math.PI)*e})};var e})}let se=ie(),le=[];function fe(){const t=K.messagesArray.slice();for(let e=t.length-1;e>0;e--){const n=v(_()*(e+1)),a=t[e];t[e]=t[n],t[n]=a}le=t}let ce=0,he=0,de=0,ue=0,pe=0,ge=0,be="idle",me=0,we=0,xe=Math.round(26*f),Te=Math.round(15*f),ke=Math.round(31*f),_e=Math.round(53*f),ve=Math.round(23*f),ye=3,Se=0,Ce=s?15:180,Me=0,Ee=[],Oe=0;var Ie=o?[o]:["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let Ae="green",Re="#33ff33";function Fe(t,e){const n=parseInt(e);switch(t){case"dot":xe=n;break;case"pause":Te=n;break;case"expandH":ke=n;break;case"expandV":_e=n;break;case"flash":ve=n;break;case"flashRepeat":ye=n;break;case"postBlank":Ce=n}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(n/60).toFixed(1)+"s":n}function De(){const t=document.getElementById("CRTColorToggleButton");"white"===Ae?(Ae="green",Re="#33ff33",t.textContent="Color: Green"):(Ae="white",Re="#ffffff",t.textContent="Color: White")}function We(){const t=`Dot: ${xe}, Pause: ${Te}, Expand H: ${ke}, Expand V: ${_e}, Flash: ${ve}, Flash x: ${ye}, Post Blank: ${(Ce/60).toFixed(1)}s, Color: ${Ae}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Be(t,e){const n=parseFloat(e);switch(t){case"speed":vt=n;break;case"accel":yt=n}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=n.toFixed(2))}function Le(t){"random"===t&&(t=_t[v(_()*_t.length)]);const e=St[t]||.3;vt=e;const n=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");n&&(n.value=e),a&&(a.textContent=e.toFixed(2)),J.scrollText="TEST_EXIT",ot=J.neonColors[v(_()*J.neonColors.length)],dt=[],Tt=0,Mt=[],It=t,it="exit_anim",st=0}function He(){const t=`EXIT_ANIM_SPEED: ${vt}, EXIT_ANIM_ACCEL: ${yt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Ye(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function Pe(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=J.punkScale,l=J.punkOffsetX,f=J.punkOffsetY,c=l+11*s,h=f+5*s;return r>=c&&r<c+s&&i>=h&&i<h+s?(Ue(),1):Ne(r,i)?1:r>=l+19*s&&r<l+22*s&&i>=f+12*s&&i<f+14*s?(Ve(),1):0}const $e=[{x:7,y:7},{x:9,y:7},{x:11,y:7},{x:13,y:7},{x:15,y:7}];function Ne(t,e){const n=J.punkScale,a=J.punkOffsetX,o=J.punkOffsetY;for(let r=0;r<$e.length;r++){const i=$e[r],s=a+i.x*n,l=s+n,f=o+i.y*n;if(t>=s&&t<l&&e>=f&&e<f+n)return 2===r?Xe():4===r?ze():"function"==typeof xn&&xn(r),1}return 0}function Xe(){Rt++,Rt>3&&(Rt=0),Ft=Rt>0,Ft&&(jt=0);for(let t=0;t<6;t++)Bt[t]=.05,Lt[t]=.3+.7*_(),Ht[t]=.02+.04*_();Pt=0}function Ge(){jt=!jt,jt&&(Ft=0,Rt=0,Kt=[],qt=0,ne=0,re(),se=ie())}function ze(){(rn=!rn)&&(sn=.5,ln=.5,fn=.006,cn=.004,hn=.4,dn=.4,un=0,pn=0,mn=0,wn=0,Je=0,nn=0,Ft=0,Rt=0,jt=0)}function Ve(){P++,P>5?(P=0,H=0,Y=0,G=0,N=null,X=0,L&&(B=L)):(H||(L=B),H=1,Y=0)}function Ue(){"CRT_power_on"!==it&&"CRT_power_off"!==it&&"CRT_post_flash_blank"!==it&&"CRT_post_blank"!==it&&(ge?(be="off_flash",me=0,we=0,Se=0,it="CRT_power_off",st=0,he&&(he=0,ot=J.neonColors[0]),Je=0,rn=0,nn=0,Ft=0,Rt=0,jt=0):(be="dot",me=0,we=0,Se=0,Ee=[...Ie],it="CRT_power_on",st=0))}function je(){be="dot",me=0,we=0,Se=0,Ee=[...Ie],it="CRT_power_on",st=0}let Ke=-1;const qe=["#0040ff","#ff0022","#ffffff","#ffffff","#ffffff"];function Ze(t,e){var n,a,o;Ke<0||(99===Ke?(n=11,a=5,o="#ffff00"):Ke<$e.length&&(n=$e[Ke].x,a=$e[Ke].y,o=qe[Ke]),void 0!==n&&(t.save(),t[m]=o,t[b]=1.1*e,t[w]=o,t[T]=.6,t[x](J.punkOffsetX+n*e,J.punkOffsetY+a*e,e,e),t[T]=1,t.restore()))}var Je=0,Qe=0,tn=1,en=0,nn=0,an=0,on=0,rn=0,sn=.5,ln=.5,fn=.006,cn=.004,hn=.4,dn=.4,un=0,pn=0,gn=.28,bn=.02,mn=0,wn=0;function xn(t){0===t?(Qe=0,tn=1,(Je=!Je)&&(nn=0,rn=0,Ft=0,Rt=0,jt=0)):1===t?(Je=0,rn=0,nn=0,Ge()):3===t&&(en=0,nn=1,Je=0,rn=0,Ft=0,Rt=0,jt=0)}qe[0]="#00ff44",qe[2]="#00aaff",qe[3]="#ff8800",qe[4]="#cc44ff";var Tn=[0,.008,.007,.07,1,.07,.0042],kn=[0,1,.5,1,1,1,1];function _n(){if(Je&&((Qe+=.009*tn*c)>=1||Qe<=0)&&(tn*=-1),nn>0&&(en+=Tn[nn]*c)>=kn[nn]&&(6===nn?(nn=0,ge=0,je()):(nn++,en=0)),rn){if(mn>0)return void mn--;wn>0&&wn--,sn+=fn*c,(ln+=cn*c)<=0&&(ln=0,cn=Math.abs(cn)),ln>=1&&(ln=1,cn=-Math.abs(cn)),sn<=.06&&(sn=.06,fn=Math.abs(fn),cn+=.02*(ln-(hn+gn/2)),un++,wn=8),sn>=.94&&(sn=.94,fn=-Math.abs(fn),cn+=.02*(ln-(dn+gn/2)),pn++,wn=8),hn+=.08*(ln-gn/2-hn)*c,dn+=.07*(ln-gn/2-dn)*c,hn=Math.max(0,Math.min(1-gn,hn)),dn=Math.max(0,Math.min(1-gn,dn))}}function vn(t,e,n,a,o,r){if(!ge)return 0;if(6===nn||4===nn)return 1;if(nn&&nn<=5){if(an=e+a/2,on=n+o/2,1===nn){var i=en<.5?60-120*en:0,s=35+65*en;t[w]="hsl("+i+",100%,"+s+"%)"}else t[w]="#fff";return t[x](e,n,a,o),1}if(rn){var l="#00ff44";t.save(),t[w]=l,t[m]=l,t[b]=0,t[x](e+5,n+hn*o,bn*a,gn*o),t[x](e+a-bn*a-5,n+dn*o,bn*a,gn*o);var f=Math.max(.3*r,3);0===mn&&t[x](e+sn*a-f/2,n+ln*o-f/2,f,f),t[T]=.3;for(var c=o/20,h=0;h<20;h+=2)t[x](e+a/2-1,n+h*c,2,c);return t[T]=1,t.font=Math.round(.18*o)+"px monospace",t.textAlign="center",t.fillText(un,e+.3*a,n+.22*o),t.fillText(pn,e+.7*a,n+.22*o),wn>0&&(t[T]=wn/30,t[w]="#fff",t[x](e,n,a,o),t[T]=1),t.restore(),1}if(!Je)return 0;t.save();var d=n+Qe*o,u=.45*o,p=t.createLinearGradient(0,d-u*tn,0,d);return p.addColorStop(0,"rgba(0,255,68,0)"),p.addColorStop(1,"rgba(0,255,68,0.55)"),t[w]=p,t[x](e,Math.min(d,d-u*tn),a,u),t[m]="#00ff44",t[b]=35,t.strokeStyle="#00ff44",t.lineWidth=4,t[k](),t.moveTo(e,d),t.lineTo(e+a,d),t.stroke(),t[b]=0,t.restore(),1}function yn(t){if(!(nn<2||4===nn||nn>5)){var e=1-en,n=t.canvas.width,a=t.canvas.height,o=en*Math.max(n,a);3!==nn&&5!==nn||(t[w]="rgba(255,255,255,"+e+")",t[x](0,0,n,a));var r=t.createRadialGradient(an,on,0,an,on,o);r.addColorStop(0,"rgba(255,255,0,"+e+")"),r.addColorStop(1,"rgba(200,200,0,0)"),t[w]=r,t[x](0,0,n,a)}}function Sn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=J.punkScale,f=J.punkOffsetX,c=J.punkOffsetY,h=f+11*l,d=h+l,u=c+5*l,p=u+l,g=1.725*J.punkScale;let b,m;"portrait"===i?(b=J.canvasWidth-g-50,m=J.bottomSectionY+40):(b=J.leftWidth+J.rightWidth-g-30,m=25);const w=r>=b-10&&r<=b+g+10&&s>=m-10&&s<=m+g+10;var x=r>=f+19*l&&r<f+22*l&&s>=c+12*l&&s<c+14*l;let T=0;Ke=-1;for(let t=0;t<$e.length;t++){const e=$e[t],n=f+e.x*l,a=n+l,o=c+e.y*l;if(r>=n&&r<a&&s>=o&&s<o+l){T=1,Ke=t;break}}const k=r>=h&&r<d&&s>=u&&s<p;k&&(Ke=99),e.style.cursor=w||x||T||k?"pointer":"default"}const Cn=[{x:12,y:15},{x:13,y:15}];function Mn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=J.punkScale,l=J.punkOffsetX,f=J.punkOffsetY,c=Cn[0];c.x,c.y,Cn[Cn.length-1].x;for(const t of Cn){const e=l+t.x*s,n=e+s,a=f+t.y*s;if(r>=e&&r<n&&i>=a&&i<a+s)return je(),1}return 0}function En(){if(ce)ce=0;else if(o){ce=1;let t=o.replace("{tokenId}",rt);if(t.startsWith("*")?(Tt=1,t=t.substring(1)):Tt=0,It="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ct[e]&&(It=Ct[e],t=t.substring(2))}t.startsWith(">")?(J.scrollText=t.substring(1).trim(),ot={color:"#fcdb3b",glow:"#fcdb3b"},wt=J.glassesWidth*J.punkScale,xt=0,it="scrolling"):(J.scrollText=t,ot={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=J.maxTypewriterLength?(it="typing",ct=0,ht=0):(dt=t.trim().split(/\s+/),ut=0,pt=0,gt=0,it="word_typing"))}}function On(){he=!he,he?(ce=0,de=0,ue=0,J.messagesArray=j):(ot=J.neonColors[0],J.messagesArray=U)}function In(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=1.725*J.punkScale;let f,c;return"portrait"===i?(f=J.canvasWidth-l-50,c=J.bottomSectionY+40):(f=J.leftWidth+J.rightWidth-l-30,c=25),r>=f-10&&r<=f+l+10&&s>=c-10&&s<=c+l+10?(On(),1):0}function An(t){const e=1.725*J.punkScale;let n,a;"portrait"===i?(n=J.canvasWidth-e-50,a=J.bottomSectionY+40):(n=J.leftWidth+J.rightWidth-e-30,a=25);const o=n+e/2,r=a+e/2,s=e/2+1,l=.38*e+2;t.save(),t.filter="blur(3px)",t[k](),t.arc(o,r,s,0,2*Math.PI),t[w]=he?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=he?"#00ff44":"#00ccff";he&&(t[m]="#00ff44",t[b]=10),t.strokeStyle=f,t.lineWidth="portrait"===i?2.5:1.5,t[k](),t.arc(o,r,l,0,2*Math.PI),t.stroke(),t[m]="transparent",t[b]=0,he&&(pe+=.015),t[k](),t.arc(o,r,l-1,0,2*Math.PI),t.clip();
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" shape-rendering="crispEdges"><style>rect{width:1px;height:1px}</style><rect x="10" y="3" fill="#000"/><rect x="11" y="3" fill="#000"/><rect x="12" y="3" fill="#000"/><rect x="6" y="4" fill="#000"/><rect x="7" y="4" fill="#000"/><rect x="8" y="4" fill="#000"/><rect x="9" y="4" fill="#000"/><rect x="10" y="4" fill="#26314a"/><rect x="11" y="4" fill="#26314a"/><rect x="12" y="4" fill="#26314a"/><rect x="13" y="4" fill="#000"/><rect x="14" y="4" fill="#000"/><rect x="15" y="4" fill="#000"/><rect x="16" y="4" fill="#000"/><rect x="5" y="5" fill="#000"/><rect x="6" y="5" fill="#26314a"/><rect x="7" y="5" fill="#26314a"/><rect x="8" y="5" fill="#26314a"/><rect x="9" y="5" fill="#26314a"/><rect x="10" y="5" fill="#26314a"/><rect x="11" y="5" fill="#ffd800"/><rect x="12" y="5" fill="#26314a"/><rect x="13" y="5" fill="#26314a"/><rect x="14" y="5" fill="#26314a"/><rect x="15" y="5" fill="#26314a"/><rect x="16" y="5" fill="#26314a"/><rect x="17" y="5" fill="#000"/><rect x="5" y="6" fill="#000"/><rect x="6" y="6" fill="#26314a"/><rect x="7" y="6" fill="#26314a"/><rect x="8" y="6" fill="#26314a"/><rect x="9" y="6" fill="#26314a"/><rect x="10" y="6" fill="#26314a"/><rect x="11" y="6" fill="#26314a"/><rect x="12" y="6" fill="#26314a"/><rect x="13" y="6" fill="#26314a"/><rect x="14" y="6" fill="#26314a"/><rect x="15" y="6" fill="#26314a"/><rect x="16" y="6" fill="#26314a"/><rect x="17" y="6" fill="#000"/><rect x="6" y="7" fill="#000"/><rect x="7" y="7" fill="#fff"/><rect x="8" y="7" fill="#000"/><rect x="9" y="7" fill="#fff"/><rect x="10" y="7" fill="#000"/><rect x="11" y="7" fill="#fff"/><rect x="12" y="7" fill="#000"/><rect x="13" y="7" fill="#fff"/><rect x="14" y="7" fill="#000"/><rect x="15" y="7" fill="#fff"/><rect x="16" y="7" fill="#000"/><rect x="6" y="8" fill="#000"/><rect x="7" y="8" fill="#000"/><rect x="8" y="8" fill="#000"/><rect x="9" y="8" fill="#26314a"/><rect x="10" y="8" fill="#26314a"/><rect x="11" y="8" fill="#26314a"/><rect x="12" y="8" fill="#26314a"/><rect x="13" y="8" fill="#26314a"/><rect x="14" y="8" fill="#26314a"/><rect x="15" y="8" fill="#26314a"/><rect x="16" y="8" fill="#26314a"/><rect x="17" y="8" fill="#000"/><rect x="6" y="9" fill="#000"/><rect x="7" y="9" fill="#ead9d9"/><rect x="8" y="9" fill="#000"/><rect x="9" y="9" fill="#000"/><rect x="10" y="9" fill="#000"/><rect x="11" y="9" fill="#000"/><rect x="12" y="9" fill="#000"/><rect x="13" y="9" fill="#000"/><rect x="14" y="9" fill="#000"/><rect x="15" y="9" fill="#000"/><rect x="16" y="9" fill="#000"/><rect x="17" y="9" fill="#000"/><rect x="6" y="10" fill="#000"/><rect x="7" y="10" fill="#000"/><rect x="8" y="10" fill="#8d8d8d"/><rect x="9" y="10" fill="#b4b4b4"/><rect x="10" y="10" fill="#b4b4b4"/><rect x="11" y="10" fill="#b4b4b4"/><rect x="12" y="10" fill="#b4b4b4"/><rect x="13" y="10" fill="#b4b4b4"/><rect x="14" y="10" fill="#b4b4b4"/><rect x="15" y="10" fill="#b4b4b4"/><rect x="16" y="10" fill="#8d8d8d"/><rect x="17" y="10" fill="#000"/><rect x="6" y="11" fill="#000"/><rect x="7" y="11" fill="#8d8d8d"/><rect x="8" y="11" fill="#b4b4b4"/><rect x="9" y="11" fill="#000"/><rect x="10" y="11" fill="#000"/><rect x="11" y="11" fill="#000"/><rect x="12" y="11" fill="#000"/><rect x="13" y="11" fill="#000"/><rect x="14" y="11" fill="#000"/><rect x="15" y="11" fill="#000"/><rect x="16" y="11" fill="#b4b4b4"/><rect x="17" y="11" fill="#000"/><rect x="20" y="11" fill="#b9b9b980"/><rect x="5" y="12" fill="#000"/><rect x="6" y="12" fill="#000"/><rect x="7" y="12" fill="#8d8d8d"/><rect x="8" y="12" fill="#b4b4b4"/><rect x="9" y="12" fill="#000"/><rect x="10" y="12" fill="#000"/><rect x="11" y="12" fill="#000"/><rect x="12" y="12" fill="#000"/><rect x="13" y="12" fill="#000"/><rect x="14" y="12" fill="#000"/><rect x="15" y="12" fill="#000"/><rect x="16" y="12" fill="#b4b4b4"/><rect x="17" y="12" fill="#000"/><rect x="19" y="12" fill="#b9b9b980"/><rect x="20" y="12" fill="#b9b9b980"/><rect x="21" y="12" fill="#b9b9b980"/><rect x="5" y="13" fill="#000"/><rect x="6" y="13" fill="#ead9d9"/><rect x="7" y="13" fill="#000"/><rect x="8" y="13" fill="#8d8d8d"/><rect x="9" y="13" fill="#b4b4b4"/><rect x="10" y="13" fill="#b4b4b4"/><rect x="11" y="13" fill="#b4b4b4"/><rect x="12" y="13" fill="#b4b4b4"/><rect x="13" y="13" fill="#b4b4b4"/><rect x="14" y="13" fill="#b4b4b4"/><rect x="15" y="13" fill="#b4b4b4"/><rect x="16" y="13" fill="#8d8d8d"/><rect x="17" y="13" fill="#000"/><rect x="19" y="13" fill="#b9b9b980"/><rect x="20" y="13" fill="#b9b9b980"/><rect x="21" y="13" fill="#b9b9b980"/><rect x="5" y="14" fill="#000"/><rect x="6" y="14" fill="#000"/><rect x="7" y="14" fill="#ead9d9"/><rect x="8" y="14" fill="#000"/><rect x="9" y="14" fill="#000"/><rect x="10" y="14" fill="#000"/><rect x="11" y="14" fill="#000"/><rect x="12" y="14" fill="#000"/><rect x="13" y="14" fill="#000"/><rect x="14" y="14" fill="#000"/><rect x="15" y="14" fill="#000"/><rect x="16" y="14" fill="#000"/><rect x="6" y="15" fill="#000"/><rect x="7" y="15" fill="#ead9d9"/><rect x="8" y="15" fill="#ead9d9"/><rect x="9" y="15" fill="#ead9d9"/><rect x="10" y="15" fill="#ead9d9"/><rect x="11" y="15" fill="#ead9d9"/><rect x="12" y="15" fill="#000"/><rect x="13" y="15" fill="#000"/><rect x="14" y="15" fill="#ead9d9"/><rect x="15" y="15" fill="#ead9d9"/><rect x="16" y="15" fill="#000"/><rect x="20" y="15" fill="#b9b9b980"/><rect x="6" y="16" fill="#000"/><rect x="7" y="16" fill="#ead9d9"/><rect x="8" y="16" fill="#ead9d9"/><rect x="9" y="16" fill="#ead9d9"/><rect x="10" y="16" fill="#ead9d9"/><rect x="11" y="16" fill="#ead9d9"/><rect x="12" y="16" fill="#ead9d9"/><rect x="13" y="16" fill="#ead9d9"/><rect x="14" y="16" fill="#ead9d9"/><rect x="15" y="16" fill="#ead9d9"/><rect x="16" y="16" fill="#000"/><rect x="6" y="17" fill="#000"/><rect x="7" y="17" fill="#ead9d9"/><rect x="8" y="17" fill="#ead9d9"/><rect x="9" y="17" fill="#ead9d9"/><rect x="10" y="17" fill="#c28946"/><rect x="11" y="17" fill="#a66e2c"/><rect x="12" y="17" fill="#a66e2c"/><rect x="13" y="17" fill="#a66e2c"/><rect x="14" y="17" fill="#c28946"/><rect x="15" y="17" fill="#ead9d9"/><rect x="16" y="17" fill="#000"/><rect x="20" y="17" fill="#b9b9b980"/><rect x="6" y="18" fill="#000"/><rect x="7" y="18" fill="#ead9d9"/><rect x="8" y="18" fill="#ead9d9"/><rect x="9" y="18" fill="#ead9d9"/><rect x="10" y="18" fill="#a66e2c"/><rect x="11" y="18" fill="#000"/><rect x="12" y="18" fill="#000"/><rect x="13" y="18" fill="#000"/><rect x="14" y="18" fill="#000"/><rect x="15" y="18" fill="#ead9d9"/><rect x="16" y="18" fill="#000"/><rect x="6" y="19" fill="#000"/><rect x="7" y="19" fill="#ead9d9"/><rect x="8" y="19" fill="#ead9d9"/><rect x="9" y="19" fill="#ead9d9"/><rect x="10" y="19" fill="#a66e2c"/><rect x="11" y="19" fill="#ead9d9"/><rect x="12" y="19" fill="#ead9d9"/><rect x="13" y="19" fill="#000"/><rect x="14" y="19" fill="#855114"/><rect x="15" y="19" fill="#000"/><rect x="16" y="19" fill="#000"/><rect x="18" y="19" fill="#000"/><rect x="19" y="19" fill="#000"/><rect x="20" y="19" fill="#000"/><rect x="21" y="19" fill="#000"/><rect x="22" y="19" fill="#000"/><rect x="6" y="20" fill="#000"/><rect x="7" y="20" fill="#ead9d9"/><rect x="8" y="20" fill="#ead9d9"/><rect x="9" y="20" fill="#ead9d9"/><rect x="10" y="20" fill="#ead9d9"/><rect x="11" y="20" fill="#ead9d9"/><rect x="12" y="20" fill="#ead9d9"/><rect x="13" y="20" fill="#ead9d9"/><rect x="14" y="20" fill="#000"/><rect x="15" y="20" fill="#855114"/><rect x="16" y="20" fill="#000"/><rect x="18" y="20" fill="#000"/><rect x="19" y="20" fill="#855114"/><rect x="20" y="20" fill="#855114"/><rect x="21" y="20" fill="#855114"/><rect x="22" y="20" fill="#000"/><rect x="6" y="21" fill="#000"/><rect x="7" y="21" fill="#ead9d9"/><rect x="8" y="21" fill="#ead9d9"/><rect x="9" y="21" fill="#ead9d9"/><rect x="10" y="21" fill="#000"/><rect x="11" y="21" fill="#000"/><rect x="12" y="21" fill="#000"/><rect x="13" y="21" fill="#000"/><rect x="14" y="21" fill="#000"/><rect x="15" y="21" fill="#000"/><rect x="16" y="21" fill="#855114"/><rect x="17" y="21" fill="#000"/><rect x="18" y="21" fill="#000"/><rect x="19" y="21" fill="#683c08"/><rect x="20" y="21" fill="#855114"/><rect x="21" y="21" fill="#683c08"/><rect x="22" y="21" fill="#000"/><rect x="6" y="22" fill="#000"/><rect x="7" y="22" fill="#ead9d9"/><rect x="8" y="22" fill="#ead9d9"/><rect x="9" y="22" fill="#ead9d9"/><rect x="10" y="22" fill="#000"/><rect x="16" y="22" fill="#000"/><rect x="17" y="22" fill="#855114"/><rect x="18" y="22" fill="#855114"/><rect x="19" y="22" fill="#855114"/><rect x="20" y="22" fill="#683c08"/><rect x="21" y="22" fill="#000"/><rect x="6" y="23" fill="#000"/><rect x="7" y="23" fill="#ead9d9"/><rect x="8" y="23" fill="#ead9d9"/><rect x="9" y="23" fill="#ead9d9"/><rect x="10" y="23" fill="#000"/><rect x="17" y="23" fill="#000"/><rect x="18" y="23" fill="#000"/><rect x="19" y="23" fill="#000"/><rect x="20" y="23" fill="#000"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" shape-rendering="crispEdges"><style>rect{width:1px;height:1px}</style><rect x="10" y="3" fill="#000"/><rect x="11" y="3" fill="#000"/><rect x="12" y="3" fill="#000"/><rect x="6" y="4" fill="#000"/><rect x="7" y="4" fill="#000"/><rect x="8" y="4" fill="#000"/><rect x="9" y="4" fill="#000"/><rect x="10" y="4" fill="#26314a"/><rect x="11" y="4" fill="#26314a"/><rect x="12" y="4" fill="#26314a"/><rect x="13" y="4" fill="#000"/><rect x="14" y="4" fill="#000"/><rect x="15" y="4" fill="#000"/><rect x="16" y="4" fill="#000"/><rect x="5" y="5" fill="#000"/><rect x="6" y="5" fill="#26314a"/><rect x="7" y="5" fill="#26314a"/><rect x="8" y="5" fill="#26314a"/><rect x="9" y="5" fill="#26314a"/><rect x="10" y="5" fill="#26314a"/><rect x="11" y="5" fill="#ffd800"/><rect x="12" y="5" fill="#26314a"/><rect x="13" y="5" fill="#26314a"/><rect x="14" y="5" fill="#26314a"/><rect x="15" y="5" fill="#26314a"/><rect x="16" y="5" fill="#26314a"/><rect x="17" y="5" fill="#000"/><rect x="5" y="6" fill="#000"/><rect x="6" y="6" fill="#26314a"/><rect x="7" y="6" fill="#26314a"/><rect x="8" y="6" fill="#26314a"/><rect x="9" y="6" fill="#26314a"/><rect x="10" y="6" fill="#26314a"/><rect x="11" y="6" fill="#26314a"/><rect x="12" y="6" fill="#26314a"/><rect x="13" y="6" fill="#26314a"/><rect x="14" y="6" fill="#26314a"/><rect x="15" y="6" fill="#26314a"/><rect x="16" y="6" fill="#26314a"/><rect x="17" y="6" fill="#000"/><rect x="6" y="7" fill="#000"/><rect x="7" y="7" fill="#fff"/><rect x="8" y="7" fill="#000"/><rect x="9" y="7" fill="#fff"/><rect x="10" y="7" fill="#000"/><rect x="11" y="7" fill="#fff"/><rect x="12" y="7" fill="#000"/><rect x="13" y="7" fill="#fff"/><rect x="14" y="7" fill="#000"/><rect x="15" y="7" fill="#fff"/><rect x="16" y="7" fill="#000"/><rect x="6" y="8" fill="#000"/><rect x="7" y="8" fill="#000"/><rect x="8" y="8" fill="#000"/><rect x="9" y="8" fill="#26314a"/><rect x="10" y="8" fill="#26314a"/><rect x="11" y="8" fill="#26314a"/><rect x="12" y="8" fill="#26314a"/><rect x="13" y="8" fill="#26314a"/><rect x="14" y="8" fill="#26314a"/><rect x="15" y="8" fill="#26314a"/><rect x="16" y="8" fill="#26314a"/><rect x="17" y="8" fill="#000"/><rect x="6" y="9" fill="#000"/><rect x="7" y="9" fill="#ead9d9"/><rect x="8" y="9" fill="#000"/><rect x="9" y="9" fill="#000"/><rect x="10" y="9" fill="#000"/><rect x="11" y="9" fill="#000"/><rect x="12" y="9" fill="#000"/><rect x="13" y="9" fill="#000"/><rect x="14" y="9" fill="#000"/><rect x="15" y="9" fill="#000"/><rect x="16" y="9" fill="#000"/><rect x="17" y="9" fill="#000"/><rect x="6" y="10" fill="#000"/><rect x="7" y="10" fill="#000"/><rect x="8" y="10" fill="#8d8d8d"/><rect x="9" y="10" fill="#b4b4b4"/><rect x="10" y="10" fill="#b4b4b4"/><rect x="11" y="10" fill="#b4b4b4"/><rect x="12" y="10" fill="#b4b4b4"/><rect x="13" y="10" fill="#b4b4b4"/><rect x="14" y="10" fill="#b4b4b4"/><rect x="15" y="10" fill="#b4b4b4"/><rect x="16" y="10" fill="#8d8d8d"/><rect x="17" y="10" fill="#000"/><rect x="6" y="11" fill="#000"/><rect x="7" y="11" fill="#8d8d8d"/><rect x="8" y="11" fill="#b4b4b4"/><rect x="9" y="11" fill="#000"/><rect x="10" y="11" fill="#000"/><rect x="11" y="11" fill="#000"/><rect x="12" y="11" fill="#000"/><rect x="13" y="11" fill="#000"/><rect x="14" y="11" fill="#000"/><rect x="15" y="11" fill="#000"/><rect x="16" y="11" fill="#b4b4b4"/><rect x="17" y="11" fill="#000"/><rect x="20" y="11" fill="#b9b9b980"/><rect x="5" y="12" fill="#000"/><rect x="6" y="12" fill="#000"/><rect x="7" y="12" fill="#8d8d8d"/><rect x="8" y="12" fill="#b4b4b4"/><rect x="9" y="12" fill="#000"/><rect x="10" y="12" fill="#000"/><rect x="11" y="12" fill="#000"/><rect x="12" y="12" fill="#000"/><rect x="13" y="12" fill="#000"/><rect x="14" y="12" fill="#000"/><rect x="15" y="12" fill="#000"/><rect x="16" y="12" fill="#b4b4b4"/><rect x="17" y="12" fill="#000"/><rect x="19" y="12" fill="#b9b9b980"/><rect x="20" y="12" fill="#b9b9b980"/><rect x="21" y="12" fill="#b9b9b980"/><rect x="5" y="13" fill="#000"/><rect x="6" y="13" fill="#ead9d9"/><rect x="7" y="13" fill="#000"/><rect x="8" y="13" fill="#8d8d8d"/><rect x="9" y="13" fill="#b4b4b4"/><rect x="10" y="13" fill="#b4b4b4"/><rect x="11" y="13" fill="#b4b4b4"/><rect x="12" y="13" fill="#b4b4b4"/><rect x="13" y="13" fill="#b4b4b4"/><rect x="14" y="13" fill="#b4b4b4"/><rect x="15" y="13" fill="#b4b4b4"/><rect x="16" y="13" fill="#8d8d8d"/><rect x="17" y="13" fill="#000"/><rect x="19" y="13" fill="#b9b9b980"/><rect x="20" y="13" fill="#b9b9b980"/><rect x="21" y="13" fill="#b9b9b980"/><rect x="5" y="14" fill="#000"/><rect x="6" y="14" fill="#000"/><rect x="7" y="14" fill="#ead9d9"/><rect x="8" y="14" fill="#000"/><rect x="9" y="14" fill="#000"/><rect x="10" y="14" fill="#000"/><rect x="11" y="14" fill="#000"/><rect x="12" y="14" fill="#000"/><rect x="13" y="14" fill="#000"/><rect x="14" y="14" fill="#000"/><rect x="15" y="14" fill="#000"/><rect x="16" y="14" fill="#000"/><rect x="6" y="15" fill="#000"/><rect x="7" y="15" fill="#ead9d9"/><rect x="8" y="15" fill="#ead9d9"/><rect x="9" y="15" fill="#ead9d9"/><rect x="10" y="15" fill="#ead9d9"/><rect x="11" y="15" fill="#ead9d9"/><rect x="12" y="15" fill="#000"/><rect x="13" y="15" fill="#000"/><rect x="14" y="15" fill="#ead9d9"/><rect x="15" y="15" fill="#ead9d9"/><rect x="16" y="15" fill="#000"/><rect x="20" y="15" fill="#b9b9b980"/><rect x="6" y="16" fill="#000"/><rect x="7" y="16" fill="#ead9d9"/><rect x="8" y="16" fill="#ead9d9"/><rect x="9" y="16" fill="#ead9d9"/><rect x="10" y="16" fill="#ead9d9"/><rect x="11" y="16" fill="#ead9d9"/><rect x="12" y="16" fill="#ead9d9"/><rect x="13" y="16" fill="#ead9d9"/><rect x="14" y="16" fill="#ead9d9"/><rect x="15" y="16" fill="#ead9d9"/><rect x="16" y="16" fill="#000"/><rect x="6" y="17" fill="#000"/><rect x="7" y="17" fill="#ead9d9"/><rect x="8" y="17" fill="#ead9d9"/><rect x="9" y="17" fill="#ead9d9"/><rect x="10" y="17" fill="#c28946"/><rect x="11" y="17" fill="#a66e2c"/><rect x="12" y="17" fill="#a66e2c"/><rect x="13" y="17" fill="#a66e2c"/><rect x="14" y="17" fill="#c28946"/><rect x="15" y="17" fill="#ead9d9"/><rect x="16" y="17" fill="#000"/><rect x="20" y="17" fill="#b9b9b980"/><rect x="6" y="18" fill="#000"/><rect x="7" y="18" fill="#ead9d9"/><rect x="8" y="18" fill="#ead9d9"/><rect x="9" y="18" fill="#ead9d9"/><rect x="10" y="18" fill="#a66e2c"/><rect x="11" y="18" fill="#000"/><rect x="12" y="18" fill="#000"/><rect x="13" y="18" fill="#000"/><rect x="14" y="18" fill="#000"/><rect x="15" y="18" fill="#ead9d9"/><rect x="16" y="18" fill="#000"/><rect x="6" y="19" fill="#000"/><rect x="7" y="19" fill="#ead9d9"/><rect x="8" y="19" fill="#ead9d9"/><rect x="9" y="19" fill="#ead9d9"/><rect x="10" y="19" fill="#a66e2c"/><rect x="11" y="19" fill="#ead9d9"/><rect x="12" y="19" fill="#ead9d9"/><rect x="13" y="19" fill="#000"/><rect x="14" y="19" fill="#855114"/><rect x="15" y="19" fill="#000"/><rect x="16" y="19" fill="#000"/><rect x="18" y="19" fill="#000"/><rect x="19" y="19" fill="#000"/><rect x="20" y="19" fill="#000"/><rect x="21" y="19" fill="#000"/><rect x="22" y="19" fill="#000"/><rect x="6" y="20" fill="#000"/><rect x="7" y="20" fill="#ead9d9"/><rect x="8" y="20" fill="#ead9d9"/><rect x="9" y="20" fill="#ead9d9"/><rect x="10" y="20" fill="#ead9d9"/><rect x="11" y="20" fill="#ead9d9"/><rect x="12" y="20" fill="#ead9d9"/><rect x="13" y="20" fill="#ead9d9"/><rect x="14" y="20" fill="#000"/><rect x="15" y="20" fill="#855114"/><rect x="16" y="20" fill="#000"/><rect x="18" y="20" fill="#000"/><rect x="19" y="20" fill="#855114"/><rect x="20" y="20" fill="#855114"/><rect x="21" y="20" fill="#855114"/><rect x="22" y="20" fill="#000"/><rect x="6" y="21" fill="#000"/><rect x="7" y="21" fill="#ead9d9"/><rect x="8" y="21" fill="#ead9d9"/><rect x="9" y="21" fill="#ead9d9"/><rect x="10" y="21" fill="#000"/><rect x="11" y="21" fill="#000"/><rect x="12" y="21" fill="#000"/><rect x="13" y="21" fill="#000"/><rect x="14" y="21" fill="#000"/><rect x="15" y="21" fill="#000"/><rect x="16" y="21" fill="#855114"/><rect x="17" y="21" fill="#000"/><rect x="18" y="21" fill="#000"/><rect x="19" y="21" fill="#683c08"/><rect x="20" y="21" fill="#855114"/><rect x="21" y="21" fill="#683c08"/><rect x="22" y="21" fill="#000"/><rect x="6" y="22" fill="#000"/><rect x="7" y="22" fill="#ead9d9"/><rect x="8" y="22" fill="#ead9d9"/><rect x="9" y="22" fill="#ead9d9"/><rect x="10" y="22" fill="#000"/><rect x="16" y="22" fill="#000"/><rect x="17" y="22" fill="#855114"/><rect x="18" y="22" fill="#855114"/><rect x="19" y="22" fill="#855114"/><rect x="20" y="22" fill="#683c08"/><rect x="21" y="22" fill="#000"/><rect x="6" y="23" fill="#000"/><rect x="7" y="23" fill="#ead9d9"/><rect x="8" y="23" fill="#ead9d9"/><rect x="9" y="23" fill="#ead9d9"/><rect x="10" y="23" fill="#000"/><rect x="17" y="23" fill="#000"/><rect x="18" y="23" fill="#000"/><rect x="19" y="23" fill="#000"/><rect x="20" y="23" fill="#000"/></svg>
t', sans-serif",t.textAlign="center",t.fillText("Left Side Image",H.leftWidth/2,H.leftHeight/2),t.fillText("(Canvas-LeftSide.jpg)",H.leftWidth/2,H.leftHeight/2+30),t.textAlign="left"),ce(t,H.leftWidth,0,H.rightWidth,H.canvasHeight),t.font=`500 ${H.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.textAlign="center",t.textBaseline="top";const a=H.leftWidth+H.rightWidth/2;t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("Punk 10,000",a,H.headerY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const l=H.punkOffsetX+H.glassesX*o,n=H.punkOffsetY+H.glassesY*o,i=H.glassesWidth*o,s=H.glassesHeight*o,r=u[_];r.dark&&(t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage($,H.punkOffsetX,H.punkOffsetY,24*o,24*o),r.dark&&(t.shadowColor="transparent",t.shadowBlur=0),re(t,l,n,i,s,o);const f=H.punkOffsetY+24*o,c=H.leftWidth+H.rightWidth/2;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#000000",t.textAlign="center",t.textBaseline="top",t.letterSpacing="0px",t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText("Attributes:",c,f+H.attributesTitleOffsetY),t.shadowColor="transparent",t.shadowBlur=0,t.font=`500 ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.shadowColor="rgba(0, 0, 0, 0.70)",t.shadowBlur=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillText("Modded-VR, Toggle-Cap, Not-Legit",c,f+H.attributesTextOffsetY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left",t.fillStyle="#000000",t.fillRect(0,0,e.width,5),t.fillRect(0,e.height-5,e.width,5),t.fillRect(0,0,5,e.height),t.fillRect(e.width-5,0,5,e.height),t.fillRect(H.leftWidth-2.5,0,5,e.height),de(t,i),le(t),N=requestAnimationFrame(()=>ie(t,e))}function se(t,e){const o=H.punkScale;if(t.clearRect(0,0,e.width,e.height),X&&X.complete&&X.naturalWidth>0){const e=X.naturalWidth/X.naturalHeight,o=H.canvasWidth/H.topImageHeight;let a=0,l=0,n=X.naturalWidth,i=X.naturalHeight;e<o?(i=X.naturalWidth/o,l=(X.naturalHeight-i)/2):(n=X.naturalHeight*o,a=(X.naturalWidth-n)/2),t.drawImage(X,a,l,n,i,0,0,H.canvasWidth,H.topImageHeight)}else t.fillStyle="#d4b896",t.fillRect(0,0,H.canvasWidth,H.topImageHeight),t.fillStyle="#666",t.font="32px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Top Image Placeholder",H.canvasWidth/2,H.topImageHeight/2),t.fillText("(Canvas-TopSide-Portrait.jpg)",H.canvasWidth/2,H.topImageHeight/2+45),t.textAlign="left";ce(t,0,H.bottomSectionY,H.canvasWidth,H.bottomSectionHeight),t.font=`bold ${H.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.textAlign="center",t.textBaseline="top",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("Punk 10,000",H.canvasWidth/2,H.bottomSectionY+H.headerY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const a=H.punkOffsetX+H.glassesX*o,l=H.punkOffsetY+H.glassesY*o,n=H.glassesWidth*o,i=H.glassesHeight*o,s=u[_];s.dark&&(t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage($,H.punkOffsetX,H.punkOffsetY,24*o,24*o),s.dark&&(t.shadowColor="transparent",t.shadowBlur=0),re(t,a,l,n,i,o);const r=H.punkOffsetY+24*o,f=H.canvasWidth/2;t.textBaseline="alphabetic",t.letterSpacing="0px";const c=r+H.attributesTitleOffsetY+25;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const d="Attributes: ",h=t.measureText(d).width;t.font=`bold ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const g="Modded-VR, Toggle-Cap, Not-Legit",p=f-(h+t.measureText(g).width)/2;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#000000",t.textAlign="left",t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText(d,p,c),t.shadowColor="transparent",t.shadowBlur=0,t.font=`bold ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText(g,p+h,c),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillStyle="#000000",t.fillRect(0,0,e.width,5),t.fillRect(0,e.height-5,e.width,5),t.fillRect(0,0,5,e.height),t.fillRect(e.width-5,0,5,e.height),t.fillRect(0,H.topImageHeight-2.5,e.width,5),de(t,n),le(t),N=requestAnimationFrame(()=>se(t,e))}function re(t,e,o,a,l,n){if(t.save(),t.beginPath(),t.rect(e,o,a,l),t.clip(),t.fillStyle="#000000",t.fillRect(e,o,a,l),"CRT_power_on"===V||"CRT_power_off"===V){const n=e+a/2,i=o+l/2,s=parseInt(Pt.slice(1,3),16),r=parseInt(Pt.slice(3,5),16),f=parseInt(Pt.slice(5,7),16);if("dot"===yt||"dot_pause"===yt){const e="dot_pause"===yt?1:Ot,o=2+4*e,a=1+1*e;t.shadowColor=Pt,t.shadowBlur=8+6*e,t.fillStyle=Pt,t.fillRect(n-o/2,i-a/2,o,a),t.shadowBlur=15,t.globalAlpha=.6,t.fillRect(n-o/2,i-a/2,o,a),t.globalAlpha=1,t.shadowBlur=0}else if("expand_h"===yt){const e=6+Ot*(a-6),o=2+1*Ot;t.shadowColor=Pt,t.shadowBlur=12,t.fillStyle=Pt,t.fillRect(n-e/2,i-o/2,e,o),t.shadowBlur=20,t.globalAlpha=.5,t.fillRect(n-e/2,i-o/2,e,o),t.globalAlpha=1,t.shadowBlur=0}else if("expand_v"===yt){const o=a,n=3+Ot*(l-3);t.shadowColor=Pt,t.shadowBlur=10,t.fillStyle=Pt,t.fillRect(e,i-n/2,o,n),t.shadowBlur=0}else if("flash"===yt){const n=1-.85*Ot;t.fillStyle=`rgba(${s}, ${r}, ${f}, ${n})`,t.fillRect(e,o,a,l)}else if("off_flash"===yt){const n=.15+.85*(1-Ot);t.fillStyle=`rgba(${s}, ${r}, ${f}, ${n})`,t.fillRect(e,o,a,l)}else if("off_collapse_v"===yt){const o=a,n=3+(1-Ot)*(l-3);t.shadowColor=Pt,t.shadowBlur=10,t.fillStyle=Pt,t.fillRect(e,i-n/2,o,n),t.shadowBlur=0}else if("off_collapse_h"===yt){const e=1-Ot,o=6+e*(a-6),l=2+1*e;t.shadowColor=Pt,t.shadowBlur=12,t.fillStyle=Pt,t.fillRect(n-o/2,i-l/2,o,l),t.shadowBlur=20,t.globalAlpha=.5,t.fillRect(n-o/2,i-l/2,o,l),t.globalAlpha=1,t.shadowBlur=0}else if("off_dot"===yt){const e=1-Ot,o=2+4*e,a=1+1*e,l=e;t.shadowColor=Pt,t.shadowBlur=8+6*e,t.fillStyle=`rgba(${s}, ${r}, ${f}, ${l})`,t.fillRect(n-o/2,i-a/2,o,a),t.shadowBlur=0}if(H.scanLinesEnabled){t.fillStyle=`rgba(0, 0, 0, ${.7*H.scanLineOpacity})`;for(let n=o;n<o+l;n+=H.scanLineSpacing)t.fillRect(e,n,a,1)}return void t.restore()}const i=H.fontBold?"bold":"normal",s=st?"italic":"normal",r=n*H.fontSize;t.font=`${s} ${i} ${r}px ${H.fontFamily}`,t.textBaseline="middle";const f=o+l/2+2;let c=1,d=H.scrollText;if("blank"===V||"CRT_standby"===V||"CRT_post_blank"===V||"CRT_post_flash_blank"===V?c=0:"typewriter_blink"===V?(c=J,Q.length>0&&(d=Q[Q.length-1].replace(/_/g," "))):"error_flash"===V?(c=J,d="ERROR!!!"):"manic_glitch"===V?d=at.join(""):"typing"===V?d=H.scrollText.substring(0,q).replace(/_/g," "):"word_typing"===V?d=Q[tt].substring(0,et).replace(/_/g," "):"word_pause"===V?d=Q[tt].replace(/_/g," "):"scrolling"===V?d=H.scrollText.replace(/_/g," "):"exit_anim"===V&&(c=0),c&&z){t.shadowColor=z.glow,t.shadowBlur=H.glowBlur1,t.fillStyle=z.color;const o=e+a/2;if("scrolling"===V)t.fillText(d,e+nt,f);else{const e=o-t.measureText(d).width/2;t.fillText(d,e,f)}if(t.shadowBlur=H.glowBlur2,t.globalAlpha=H.glowIntensity,"scrolling"===V)t.fillText(d,e+nt,f);else{const e=o-t.measureText(d).width/2;t.fillText(d,e,f)}t.globalAlpha=1,t.shadowBlur=0}if("exit_anim"===V&&z){if(0===gt.length){const n=e+a/2;let i=H.scrollText;Q.length>0&&(i=Q[Q.length-1]),mt(i,t,n,f,a,l,e,o)}t.shadowColor=z.glow,t.fillStyle=z.color,t.shadowBlur=H.glowBlur1;for(let e=0;e<gt.length;e++){const o=gt[e];t.fillText(o.char,o.x,o.y)}t.shadowBlur=H.glowBlur2,t.globalAlpha=H.glowIntensity;for(let e=0;e<gt.length;e++){const o=gt[e];t.fillText(o.char,o.x,o.y)}t.globalAlpha=1,t.shadowBlur=0}if(H.scanLinesEnabled){t.fillStyle=`rgba(0, 0, 0, ${H.scanLineOpacity})`;for(let n=o;n<o+l;n+=H.scanLineSpacing)t.fillRect(e,n,a,1)}t.restore()}function fe(t,e){const o=u[_],a=o.colors,l=o.accent,n=Math.ceil(t/T),i=Math.ceil(e/T),s=[];for(let t=0;t<i;t++)for(let e=0;e<n;e++){let o;o=b()<.08?l[Math.floor(b()*l.length)]:a[Math.floor(b()*a.length)],s.push({col:e,row:t,color:o})}return{pattern:s,cols:n,rows:i}}function ce(t,e,o,a,l){if("undefined"!=typeof SOLID&&""!==SOLID)return t.globalAlpha=k,t.fillStyle="#"+SOLID,t.fillRect(e,o,a,l),void(t.globalAlpha=1);if(O&&(v&&(A+=.06666666666666667,A>=1&&(y=I,I=null,v=0,A=0)),E++,E>=R[B]&&!v)){E=0;var n=fe(a,l);B<=2?(I=n,v=1,A=0):y=n}y||(y=fe(a,l)),t.globalAlpha=k;for(const a of y.pattern){const l=e+a.col*T,n=o+a.row*T;t.fillStyle=a.color,t.fillRect(l,n,T,T)}if(v&&I){t.globalAlpha=k*A;for(const a of I.pattern){const l=e+a.col*T,n=o+a.row*T;t.fillStyle=a.color,t.fillRect(l,n,T,T)}}t.globalAlpha=1}function de(t,e){if(G)switch(V){case"typing":Z++,Z>=H.typewriterSpeed&&(Z=0,q++,q>=H.scrollText.length&&(V="typewriter_pause",j=0));break;case"typewriter_pause":j++,j>=H.typewriterPauseDuration&&(V="exit_anim",j=0);break;case"typewriter_blink":j++,J&&j>=H.typewriterBlinkOnDuration?(J=0,j=0):!J&&j>=H.typewriterBlinkOffDuration&&(J=1,j=0,K++,K>=H.typewriterBlinkCount&&(V="exit_anim",j=0));break;case"exit_anim":let t=1;for(let e=0;e<gt.length;e++){const o=gt[e];o.dx+=o.dx>0?dt:o.dx<0?-dt:0,o.dy+=o.dy>0?dt:o.dy<0?-dt:0,o.x+=o.dx,o.y+=o.dy,o.y>o.topEdge&&o.y<o.bottomEdge&&o.x>o.leftEdge&&o.x<o.rightEdge&&(t=0)}t&&(V="blank",j=0,gt=[],bt="");break;case"word_typing":ot++,ot>=H.wordTypeSpeed&&(ot=0,et++,et>=Q[tt].length&&(V="word_pause",j=0));break;case"word_pause":j++;let o=tt+1,l=0;for(;o<Q.length;){const t=Vt(Q[o]);if(!(t>0))break;l=t,o++}const n=o>=Q.length,i=l>0?l:n?H.lastWordPauseDuration:H.wordPauseDuration;j>=i&&(n?(V="exit_anim",j=0):(tt=o,et=0,ot=0,V="word_typing"));break;case"blank":if(j++,j>=H.blankDuration){if(Dt.length>0){let t=Dt.shift();t=t.replace("{tokenId}",U),st=0,H.scrollText=t,z=H.neonColors[0],t.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=t.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing")}else if(Math.random()<H.manicGlitchChance&&!xt&&!St){z={color:"#ff0000",glow:"#ff0000"},V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}else{let t;if(xt&&a)t=a;else if(St){const e=H.messagesArray;t=e[_t%e.length],_t++,z=H.neonColors[Ct%H.neonColors.length],Ct++}else{const e=H.messagesArray;t=e[Math.floor(Math.random()*e.length)]}if(t=t.replace("{tokenId}",U),t.startsWith("*")?(st=1,t=t.substring(1)):st=0,bt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);ut[e]&&(bt=ut[e],t=t.substring(2))}t.startsWith(">")?(H.scrollText=t.substring(1).trim(),St||(z=xt?{color:"#fcdb3b",glow:"#fcdb3b"}:H.neonColors[0]),nt=e,it=0,V="scrolling"):"ERROR!!!"===t?(H.scrollText=t,St||(z={color:"#ff0000",glow:"#ff0000"}),V="error_flash",j=0,K=0,J=1):(H.scrollText=t,St||(z=xt?{color:"#fcdb3b",glow:"#fcdb3b"}:H.neonColors[0]),H.scrollText.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=H.scrollText.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing"))}j=0}break;case"error_flash":if(j++,J&&j>=H.typewriterBlinkOnDuration)J=0,j=0;else if(!J&&j>=H.typewriterBlinkOffDuration&&(J=1,j=0,K++,K>=5)){V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}break;case"manic_glitch":if(j++,lt++,lt>=H.manicSpeed){lt=0;const t=Math.floor(Math.random()*at.length);if(at[t]=H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)),Math.random()<.15){const t=H.neonColors;z=t[Math.floor(Math.random()*t.length)]}}j>=H.manicDuration&&(Yt?(Yt=0,V="CRT_post_blank"):V="blank",j=0);break;case"scrolling":if(nt-=H.scrollSpeed,0===it){const t=document.createElement("canvas").getContext("2d"),e=H.punkScale*H.fontSize;t.font=`${H.fontBold?"bold":"normal"} ${e}px ${H.fontFamily}`,it=t.measureText(H.scrollText).width}nt<-it&&(V="blank",j=0,it=0);break;case"CRT_power_on":Mt++,"dot"===yt?(Ot=Mt/Et,Mt>=Et&&(yt="dot_pause",Mt=0,Ot=0)):"dot_pause"===yt?Mt>=Bt&&(yt="expand_h",Mt=0,Ot=0):"expand_h"===yt?(Ot=1-Math.pow(1-Mt/Rt,2),Mt>=Rt&&(yt="expand_v",Mt=0,Ot=0)):"expand_v"===yt?(Ot=1-Math.pow(1-Mt/It,2),Mt>=It&&(yt="flash",Mt=0,Ot=0)):"flash"===yt&&(Ot=Mt/At,Mt>=At&&(Ft++,Ft<vt?(Mt=0,Ot=0):(yt="idle",Mt=0,Ot=0,V="CRT_post_flash_blank",j=0)));break;case"CRT_standby":break;case"CRT_post_flash_blank":if(j++,j>=Wt){Yt=1,z={color:"#ff0000",glow:"#ff0000"},V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}break;case"CRT_post_blank":j++,j>=Wt&&(kt=1,V="blank",j=H.blankDuration);break;case"CRT_power_off":Mt++,"off_flash"===yt?(Ot=Mt/At,Mt>=At&&(yt="off_collapse_v",Mt=0,Ot=0)):"off_collapse_v"===yt?(Ot=1-Math.pow(1-Mt/It,2),Mt>=It&&(yt="off_collapse_h",Mt=0,Ot=0)):"off_collapse_h"===yt?(Ot=1-Math.pow(1-Mt/Rt,2),Mt>=Rt&&(yt="off_dot",Mt=0,Ot=0)):"off_dot"===yt&&(Ot=Mt/Et,Mt>=Et&&(yt="idle",Mt=0,Ot=0,kt=0,V="CRT_standby",j=0))}}window.addEventListener("load",ne);
const t="undefined"!=typeof SVG?SVG:"",e="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide.jpg",o="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait.jpg",a="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function l(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,o=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&o?"portrait":"landscape"}const n=l(),i="portrait"===n,s=i?.25:1;let r=performance.now(),f=0,c=0;function d(){f++;const t=performance.now(),e=t-r;e>=1e3&&(c=Math.round(1e3*f/e),f=0,r=t)}function h(t,e,o){t.save(),t.font="bold 14px monospace",t.fillStyle="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+c+" | Mode: "+n+" | Mult: "+s,e,o),t.restore()}const u={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)u[t]&&Object.assign(u[t],PALETTE_OVERRIDES[t]);function g(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const p="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(Math.floor(4294967296*Math.random())),w=0|parseInt(p.slice(-10)),b=g(w),m=Object.keys(u);let x,S;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;u._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},m.push("_solid"),x=m.length-1,S="_solid"}else x="undefined"!=typeof PIDX?PIDX:Math.abs(w)%m.length,S=m[x];let _=S;const C=[8,16,32,64];let T="undefined"!=typeof PXSZ?PXSZ:C[Math.abs(w)%C.length],k=1,y=null,M=null,O=0,E=0,B=0;const R=[0,120,60,30,12,4];let I=null,A=0,v=0;const F=15,W="undefined"!=typeof MSGS?MSGS:["HELLO I'M CONTRABAND PUNK_{tokenId}","I'M PUNK_10,000",'*>"ENJOY YOUR CONTRABAND"',"I'M THE 10,001TH PUNK","I'M_THE WORLD'S ONLY V.0_PUNK","HOW_ABOUT A_NICE GAME_OF CHESS?","*>PSST... ... ... ...I HATE TO TELL YOU THIS, BUT... YOU'RE NGMI 😎","*ERROR!!!","I'M NOT_LEGIT!",'SATOSHI SAYS "HELLO"','>FRANKIE SAYS "RELAX"',"WE ARE ALL CONTRA!","I_JUST DRAINED YOUR WALLET","*THIS IS ITALIC","*>ITALIC AND SCROLLING"],Y={messagesArray:W,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(150*s),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:13,typewriterSpeed:Math.max(1,Math.round(4*s)),typewriterPauseDuration:Math.round(240*s),typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*s),typewriterBlinkOffDuration:Math.round(30*s),wordTypeSpeed:Math.max(1,Math.round(3*s)),wordPauseDuration:Math.round(49*s),lastWordPauseDuration:Math.round(135*s),manicGlitchChance:.08,manicDuration:Math.round(180*s),manicSpeed:2,manicChars:"!@#$¿%^&*()_+-=[¿¿]5{}|;¿:,.<¿>?/~`░▒▓¬¦█8▀▄▌▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:i?4.5:1.5},D={...Y,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:39,headerY:15,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:e},L={...Y,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:77,headerY:45,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:o};L.punkOffsetX=(L.canvasWidth-24*L.punkScale)/2;const H="portrait"===n?L:D;let P=null,$=null,X=null,N=null,G=1,z=null,U="undefined"!=typeof TID?TID:"#42",V="blank",j=0,K=0,J=1,q=0,Z=0,Q=[],tt=0,et=0,ot=0,at=[],lt=0,nt=0,it=0,st=0,rt=0;const ft=["up","down","split_v","split_h","explode"];let ct=.3,dt=0;const ht=i?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},ut={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let gt=[],pt=0,wt="",bt="";function mt(t,e,o,a,l,n,i,s){const r=H.punkScale*H.fontSize,f=st?"italic":"normal",c=H.fontBold?"bold":"normal";e.font=`${f} ${c} ${r}px ${H.fontFamily}`,wt=t.replace(/_/g," "),bt||(bt=ft[Math.floor(Math.random()*ft.length)]),ct=ht[bt]||.3,pt=0,gt=[];let d=o-e.measureText(wt).width/2;const h=s,u=s+n,g=i,p=i+l;for(let t=0;t<wt.length;t++){const o=wt[t],l=e.measureText(o).width;let n=0,i=0;switch(bt){case"up":i=-ct;break;case"down":i=ct;break;case"split_v":i=t%2==0?-ct:ct;break;case"split_h":n=t<wt.length/2?-ct:ct;break;case"explode":const e=Math.random()*Math.PI*2;n=Math.cos(e)*ct,i=Math.sin(e)*ct}gt.push({char:o,x:d,y:a,dx:n,dy:i,topEdge:h,bottomEdge:u,leftEdge:g,rightEdge:p}),d+=l}}let xt=0,St=0,_t=0,Ct=0,Tt=0,kt=0,yt="idle",Mt=0,Ot=0,Et=Math.round(26*s),Bt=Math.round(15*s),Rt=Math.round(31*s),It=Math.round(53*s),At=Math.round(23*s),vt=3,Ft=0,Wt=i?15:180,Yt=0,Dt=[];const Lt=["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let Ht="green",Pt="#33ff33";function $t(t,e){const o=parseInt(e);switch(t){case"dot":Et=o;break;case"pause":Bt=o;break;case"expandH":Rt=o;break;case"expandV":It=o;break;case"flash":At=o;break;case"flashRepeat":vt=o;break;case"postBlank":Wt=o}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(o/60).toFixed(1)+"s":o}function Xt(){const t=document.getElementById("CRTColorToggleButton");"white"===Ht?(Ht="green",Pt="#33ff33",t.textContent="Color: Green"):(Ht="white",Pt="#ffffff",t.textContent="Color: White")}function Nt(){const t=`Dot: ${Et}, Pause: ${Bt}, Expand H: ${Rt}, Expand V: ${It}, Flash: ${At}, Flash x: ${vt}, Post Blank: ${(Wt/60).toFixed(1)}s, Color: ${Ht}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Gt(t,e){const o=parseFloat(e);switch(t){case"speed":ct=o;break;case"accel":dt=o}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=o.toFixed(2))}function zt(t){"random"===t&&(t=ft[Math.floor(Math.random()*ft.length)]);const e=ht[t]||.3;ct=e;const o=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");o&&(o.value=e),a&&(a.textContent=e.toFixed(2)),H.scrollText="TEST_EXIT",z=H.neonColors[Math.floor(Math.random()*H.neonColors.length)],Q=[],st=0,gt=[],bt=t,V="exit_anim",j=0}function Ut(){const t=`EXIT_ANIM_SPEED: ${ct}, EXIT_ANIM_ACCEL: ${dt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Vt(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function jt(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,n=a*(e.width/o.width),i=l*(e.height/o.height),s=H.punkScale,r=H.punkOffsetX,f=H.punkOffsetY,c=r+11*s,d=f+5*s;return n>=c&&n<c+s&&i>=d&&i<d+s?(Jt(),1):n>=r+19*s&&n<r+22*s&&i>=f+12*s&&i<f+14*s?(Kt(),1):0}function Kt(){B++,B>5?(B=0,O=0,E=0,v=0,I=null,A=0,M&&(y=M)):(O||(M=y),O=1,E=0)}function Jt(){"CRT_power_on"!==V&&"CRT_power_off"!==V&&"CRT_post_flash_blank"!==V&&"CRT_post_blank"!==V&&(kt?(yt="off_flash",Mt=0,Ot=0,Ft=0,V="CRT_power_off",j=0,St&&(St=0,z=H.neonColors[0])):(yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0))}function qt(){yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0}function Zt(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,i=a*(e.width/o.width),s=l*(e.height/o.height),r=H.punkScale,f=H.punkOffsetX,c=H.punkOffsetY,d=f+11*r,h=d+r,u=c+5*r,g=u+r,p=1.725*H.punkScale;let w,b;"portrait"===n?(w=H.canvasWidth-p-50,b=H.bottomSectionY+40):(w=H.leftWidth+H.rightWidth-p-30,b=25);const m=i>=w-10&&i<=w+p+10&&s>=b-10&&s<=b+p+10;var x=i>=f+19*r&&i<f+22*r&&s>=c+12*r&&s<c+14*r;e.style.cursor=m||x||i>=d&&i<h&&s>=u&&s<g?"pointer":"default"}const Qt=[{x:12,y:15},{x:13,y:15}];function te(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,n=a*(e.width/o.width),i=l*(e.height/o.height),s=H.punkScale,r=H.punkOffsetX,f=H.punkOffsetY,c=Qt[0];c.x,c.y,Qt[Qt.length-1].x;for(const t of Qt){const e=r+t.x*s,o=e+s,a=f+t.y*s;if(n>=e&&n<o&&i>=a&&i<a+s)return qt(),1}return 0}function ee(){if(xt)xt=0;else if(a){xt=1;let t=a.replace("{tokenId}",U);if(t.startsWith("*")?(st=1,t=t.substring(1)):st=0,bt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);ut[e]&&(bt=ut[e],t=t.substring(2))}t.startsWith(">")?(H.scrollText=t.substring(1).trim(),z={color:"#fcdb3b",glow:"#fcdb3b"},nt=H.glassesWidth*H.punkScale,it=0,V="scrolling"):(H.scrollText=t,z={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=t.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing"))}}function oe(){St=!St,St?(xt=0,_t=0,Ct=0):z=H.neonColors[0]}function ae(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,i=a*(e.width/o.width),s=l*(e.height/o.height),r=1.725*H.punkScale;let f,c;return"portrait"===n?(f=H.canvasWidth-r-50,c=H.bottomSectionY+40):(f=H.leftWidth+H.rightWidth-r-30,c=25),i>=f-10&&i<=f+r+10&&s>=c-10&&s<=c+r+10?(oe(),1):0}function le(t){const e=1.725*H.punkScale;let o,a;"portrait"===n?(o=H.canvasWidth-e-50,a=H.bottomSectionY+40):(o=H.leftWidth+H.rightWidth-e-30,a=25);const l=o+e/2,i=a+e/2,s=e/2+1,r=.38*e+2;t.save(),t.filter="blur(3px)",t.beginPath(),t.arc(l,i,s,0,2*Math.PI),t.fillStyle=St?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=St?"#00ff44":"#00ccff";St&&(t.shadowColor="#00ff44",t.shadowBlur=10),t.strokeStyle=f,t.lineWidth="portrait"===n?2.5:1.5,t.beginPath(),t.arc(l,i,r,0,2*Math.PI),t.stroke(),t.shadowColor="transparent",t.shadowBlur=0,St&&(Tt+=.015),t.beginPath(),t.arc(l,i,r-1,0,2*Math.PI),t.clip();for(let e=0;e<4;e++){const o=Tt+e*Math.PI/4,a=Math.sin(o);t.beginPath(),t.ellipse(l,i,Math.abs(a)*r,r,0,0,2*Math.PI),t.stroke()}const c=[-.5,0,.5];for(const e of c){const o=i+e*r,a=Math.cos(e)*r;t.beginPath(),t.ellipse(l,o,a,.15*a,0,0,2*Math.PI),t.stroke()}t.restore()}async function ne(){const e=document.getElementById("punkCanvas"),o=document.getElementById("nftContainer"),a=document.getElementById("modeIndicator");function l(t){const o=t.changedTouches?t.changedTouches[0]:t,a={clientX:o.clientX,clientY:o.clientY};ae(a,e)||jt(a,e)?t.preventDefault():G=!G}o&&o.classList.add(n),a&&(a.textContent=n+" mode"),e.width=H.canvasWidth,e.height=H.canvasHeight,"ontouchstart"in window?e.addEventListener("touchend",l):e.onclick=l,e.onmousemove=function(t){Zt(t,e)};const i=e.getContext("2d");P=new Image,t&&t.length>0?await new Promise((e,o)=>{P.onload=e,P.onerror=o,P.src="data:image/svg+xml;base64,"+btoa(t)}):await new Promise((t,e)=>{P.onload=t,P.onerror=e,P.src="./CONTRABAND-punk-Feb2026.svg"}),$=document.createElement("canvas"),$.width=24,$.height=24;var s=$.getContext("2d");s.imageSmoothingEnabled=0,s.drawImage(P,0,0,24,24),X=new Image,X.crossOrigin="anonymous",await new Promise(t=>{X.onload=t,X.onerror=()=>{t()},X.src=H.imageURL}),H.scrollText="",z=H.neonColors[0],yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0,"portrait"===n?se(i,e):ie(i,e)}function ie(t,e){const o=H.punkScale;t.clearRect(0,0,e.width,e.height),X&&X.complete&&X.naturalWidth>0?t.drawImage(X,0,0,H.leftWidth,H.leftHeight):(t.fillStyle="#d4b896",t.fillRect(0,0,H.leftWidth,H.leftHeight),t.fillStyle="#666",t.font="20px 'Montserra
sans-serif",t.textAlign="center",t.fillText("Left Side Image",H.leftWidth/2,H.leftHeight/2),t.fillText("(Canvas-LeftSide.jpg)",H.leftWidth/2,H.leftHeight/2+30),t.textAlign="left"),ce(t,H.leftWidth,0,H.rightWidth,H.canvasHeight),t.font=`500 ${H.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.textAlign="center",t.textBaseline="top";const a=H.leftWidth+H.rightWidth/2;t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("Punk YoMom",a,H.headerY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const l=H.punkOffsetX+H.glassesX*o,n=H.punkOffsetY+H.glassesY*o,i=H.glassesWidth*o,s=H.glassesHeight*o,r=u[_];r.dark&&(t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage($,H.punkOffsetX,H.punkOffsetY,24*o,24*o),r.dark&&(t.shadowColor="transparent",t.shadowBlur=0),re(t,l,n,i,s,o);const f=H.punkOffsetY+24*o,c=H.leftWidth+H.rightWidth/2;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#000000",t.textAlign="center",t.textBaseline="top",t.letterSpacing="0px",t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText("Attributes:",c,f+H.attributesTitleOffsetY),t.shadowColor="transparent",t.shadowBlur=0,t.font=`500 ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.shadowColor="rgba(0, 0, 0, 0.70)",t.shadowBlur=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillText("Modded-VR, Toggle-Cap, V.0, Not-Legit",c,f+H.attributesTextOffsetY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left",t.fillStyle="#000000",t.fillRect(0,0,e.width,5),t.fillRect(0,e.height-5,e.width,5),t.fillRect(0,0,5,e.height),t.fillRect(e.width-5,0,5,e.height),t.fillRect(H.leftWidth-2.5,0,5,e.height),de(t,i),le(t),N=requestAnimationFrame(()=>ie(t,e))}function se(t,e){const o=H.punkScale;if(t.clearRect(0,0,e.width,e.height),X&&X.complete&&X.naturalWidth>0){const e=X.naturalWidth/X.naturalHeight,o=H.canvasWidth/H.topImageHeight;let a=0,l=0,n=X.naturalWidth,i=X.naturalHeight;e<o?(i=X.naturalWidth/o,l=(X.naturalHeight-i)/2):(n=X.naturalHeight*o,a=(X.naturalWidth-n)/2),t.drawImage(X,a,l,n,i,0,0,H.canvasWidth,H.topImageHeight)}else t.fillStyle="#d4b896",t.fillRect(0,0,H.canvasWidth,H.topImageHeight),t.fillStyle="#666",t.font="32px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Top Image Placeholder",H.canvasWidth/2,H.topImageHeight/2),t.fillText("(Canvas-TopSide-Portrait.jpg)",H.canvasWidth/2,H.topImageHeight/2+45),t.textAlign="left";ce(t,0,H.bottomSectionY,H.canvasWidth,H.bottomSectionHeight),t.font=`bold ${H.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.textAlign="center",t.textBaseline="top",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("Punk YoMom",H.canvasWidth/2,H.bottomSectionY+H.headerY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const a=H.punkOffsetX+H.glassesX*o,l=H.punkOffsetY+H.glassesY*o,n=H.glassesWidth*o,i=H.glassesHeight*o,s=u[_];s.dark&&(t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage($,H.punkOffsetX,H.punkOffsetY,24*o,24*o),s.dark&&(t.shadowColor="transparent",t.shadowBlur=0),re(t,a,l,n,i,o);const r=H.punkOffsetY+24*o,f=H.canvasWidth/2;t.textBaseline="alphabetic",t.letterSpacing="0px";const c=r+H.attributesTitleOffsetY+25;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const d="Attributes: ",h=t.measureText(d).width;t.font=`bold ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const g="Modded-VR, Toggle-Cap, V.0, Not-Legit",p=f-(h+t.measureText(g).width)/2;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#000000",t.textAlign="left",t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText(d,p,c),t.shadowColor="transparent",t.shadowBlur=0,t.font=`bold ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText(g,p+h,c),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillStyle="#000000",t.fillRect(0,0,e.width,5),t.fillRect(0,e.height-5,e.width,5),t.fillRect(0,0,5,e.height),t.fillRect(e.width-5,0,5,e.height),t.fillRect(0,H.topImageHeight-2.5,e.width,5),de(t,n),le(t),N=requestAnimationFrame(()=>se(t,e))}function re(t,e,o,a,l,n){if(t.save(),t.beginPath(),t.rect(e,o,a,l),t.clip(),t.fillStyle="#000000",t.fillRect(e,o,a,l),"CRT_power_on"===V||"CRT_power_off"===V){const n=e+a/2,i=o+l/2,s=parseInt(Pt.slice(1,3),16),r=parseInt(Pt.slice(3,5),16),f=parseInt(Pt.slice(5,7),16);if("dot"===yt||"dot_pause"===yt){const e="dot_pause"===yt?1:Ot,o=2+4*e,a=1+1*e;t.shadowColor=Pt,t.shadowBlur=8+6*e,t.fillStyle=Pt,t.fillRect(n-o/2,i-a/2,o,a),t.shadowBlur=15,t.globalAlpha=.6,t.fillRect(n-o/2,i-a/2,o,a),t.globalAlpha=1,t.shadowBlur=0}else if("expand_h"===yt){const e=6+Ot*(a-6),o=2+1*Ot;t.shadowColor=Pt,t.shadowBlur=12,t.fillStyle=Pt,t.fillRect(n-e/2,i-o/2,e,o),t.shadowBlur=20,t.globalAlpha=.5,t.fillRect(n-e/2,i-o/2,e,o),t.globalAlpha=1,t.shadowBlur=0}else if("expand_v"===yt){const o=a,n=3+Ot*(l-3);t.shadowColor=Pt,t.shadowBlur=10,t.fillStyle=Pt,t.fillRect(e,i-n/2,o,n),t.shadowBlur=0}else if("flash"===yt){const n=1-.85*Ot;t.fillStyle=`rgba(${s}, ${r}, ${f}, ${n})`,t.fillRect(e,o,a,l)}else if("off_flash"===yt){const n=.15+.85*(1-Ot);t.fillStyle=`rgba(${s}, ${r}, ${f}, ${n})`,t.fillRect(e,o,a,l)}else if("off_collapse_v"===yt){const o=a,n=3+(1-Ot)*(l-3);t.shadowColor=Pt,t.shadowBlur=10,t.fillStyle=Pt,t.fillRect(e,i-n/2,o,n),t.shadowBlur=0}else if("off_collapse_h"===yt){const e=1-Ot,o=6+e*(a-6),l=2+1*e;t.shadowColor=Pt,t.shadowBlur=12,t.fillStyle=Pt,t.fillRect(n-o/2,i-l/2,o,l),t.shadowBlur=20,t.globalAlpha=.5,t.fillRect(n-o/2,i-l/2,o,l),t.globalAlpha=1,t.shadowBlur=0}else if("off_dot"===yt){const e=1-Ot,o=2+4*e,a=1+1*e,l=e;t.shadowColor=Pt,t.shadowBlur=8+6*e,t.fillStyle=`rgba(${s}, ${r}, ${f}, ${l})`,t.fillRect(n-o/2,i-a/2,o,a),t.shadowBlur=0}if(H.scanLinesEnabled){t.fillStyle=`rgba(0, 0, 0, ${.7*H.scanLineOpacity})`;for(let n=o;n<o+l;n+=H.scanLineSpacing)t.fillRect(e,n,a,1)}return void t.restore()}const i=H.fontBold?"bold":"normal",s=st?"italic":"normal",r=n*H.fontSize;t.font=`${s} ${i} ${r}px ${H.fontFamily}`,t.textBaseline="middle";const f=o+l/2+2;let c=1,d=H.scrollText;if("blank"===V||"CRT_standby"===V||"CRT_post_blank"===V||"CRT_post_flash_blank"===V?c=0:"typewriter_blink"===V?(c=J,Q.length>0&&(d=Q[Q.length-1].replace(/_/g," "))):"error_flash"===V?(c=J,d="ERROR!!!"):"manic_glitch"===V?d=at.join(""):"typing"===V?d=H.scrollText.substring(0,q).replace(/_/g," "):"word_typing"===V?d=Q[tt].substring(0,et).replace(/_/g," "):"word_pause"===V?d=Q[tt].replace(/_/g," "):"scrolling"===V?d=H.scrollText.replace(/_/g," "):"exit_anim"===V&&(c=0),c&&z){t.shadowColor=z.glow,t.shadowBlur=H.glowBlur1,t.fillStyle=z.color;const o=e+a/2;if("scrolling"===V)t.fillText(d,e+nt,f);else{const e=o-t.measureText(d).width/2;t.fillText(d,e,f)}if(t.shadowBlur=H.glowBlur2,t.globalAlpha=H.glowIntensity,"scrolling"===V)t.fillText(d,e+nt,f);else{const e=o-t.measureText(d).width/2;t.fillText(d,e,f)}t.globalAlpha=1,t.shadowBlur=0}if("exit_anim"===V&&z){if(0===gt.length){const n=e+a/2;let i=H.scrollText;Q.length>0&&(i=Q[Q.length-1]),mt(i,t,n,f,a,l,e,o)}t.shadowColor=z.glow,t.fillStyle=z.color,t.shadowBlur=H.glowBlur1;for(let e=0;e<gt.length;e++){const o=gt[e];t.fillText(o.char,o.x,o.y)}t.shadowBlur=H.glowBlur2,t.globalAlpha=H.glowIntensity;for(let e=0;e<gt.length;e++){const o=gt[e];t.fillText(o.char,o.x,o.y)}t.globalAlpha=1,t.shadowBlur=0}if(H.scanLinesEnabled){t.fillStyle=`rgba(0, 0, 0, ${H.scanLineOpacity})`;for(let n=o;n<o+l;n+=H.scanLineSpacing)t.fillRect(e,n,a,1)}t.restore()}function fe(t,e){const o=u[_],a=o.colors,l=o.accent,n=Math.ceil(t/T),i=Math.ceil(e/T),s=[];for(let t=0;t<i;t++)for(let e=0;e<n;e++){let o;o=b()<.08?l[Math.floor(b()*l.length)]:a[Math.floor(b()*a.length)],s.push({col:e,row:t,color:o})}return{pattern:s,cols:n,rows:i}}function ce(t,e,o,a,l){if("undefined"!=typeof SOLID&&""!==SOLID)return t.globalAlpha=k,t.fillStyle="#"+SOLID,t.fillRect(e,o,a,l),void(t.globalAlpha=1);if(O&&(v&&(A+=.06666666666666667,A>=1&&(y=I,I=null,v=0,A=0)),E++,E>=R[B]&&!v)){E=0;var n=fe(a,l);B<=2?(I=n,v=1,A=0):y=n}y||(y=fe(a,l)),t.globalAlpha=k;for(const a of y.pattern){const l=e+a.col*T,n=o+a.row*T;t.fillStyle=a.color,t.fillRect(l,n,T,T)}if(v&&I){t.globalAlpha=k*A;for(const a of I.pattern){const l=e+a.col*T,n=o+a.row*T;t.fillStyle=a.color,t.fillRect(l,n,T,T)}}t.globalAlpha=1}function de(t,e){if(G)switch(V){case"typing":Z++,Z>=H.typewriterSpeed&&(Z=0,q++,q>=H.scrollText.length&&(V="typewriter_pause",j=0));break;case"typewriter_pause":j++,j>=H.typewriterPauseDuration&&(V="exit_anim",j=0);break;case"typewriter_blink":j++,J&&j>=H.typewriterBlinkOnDuration?(J=0,j=0):!J&&j>=H.typewriterBlinkOffDuration&&(J=1,j=0,K++,K>=H.typewriterBlinkCount&&(V="exit_anim",j=0));break;case"exit_anim":let t=1;for(let e=0;e<gt.length;e++){const o=gt[e];o.dx+=o.dx>0?dt:o.dx<0?-dt:0,o.dy+=o.dy>0?dt:o.dy<0?-dt:0,o.x+=o.dx,o.y+=o.dy,o.y>o.topEdge&&o.y<o.bottomEdge&&o.x>o.leftEdge&&o.x<o.rightEdge&&(t=0)}t&&(V="blank",j=0,gt=[],bt="");break;case"word_typing":ot++,ot>=H.wordTypeSpeed&&(ot=0,et++,et>=Q[tt].length&&(V="word_pause",j=0));break;case"word_pause":j++;let o=tt+1,l=0;for(;o<Q.length;){const t=Vt(Q[o]);if(!(t>0))break;l=t,o++}const n=o>=Q.length,i=l>0?l:n?H.lastWordPauseDuration:H.wordPauseDuration;j>=i&&(n?(V="exit_anim",j=0):(tt=o,et=0,ot=0,V="word_typing"));break;case"blank":if(j++,j>=H.blankDuration){if(Dt.length>0){let t=Dt.shift();t=t.replace("{tokenId}",U),st=0,H.scrollText=t,z=H.neonColors[0],t.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=t.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing")}else if(Math.random()<H.manicGlitchChance&&!xt&&!St){z={color:"#ff0000",glow:"#ff0000"},V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}else{let t;if(xt&&a)t=a;else if(St){const e=H.messagesArray;t=e[_t%e.length],_t++,z=H.neonColors[Ct%H.neonColors.length],Ct++}else{const e=H.messagesArray;t=e[Math.floor(Math.random()*e.length)]}if(t=t.replace("{tokenId}",U),t.startsWith("*")?(st=1,t=t.substring(1)):st=0,bt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);ut[e]&&(bt=ut[e],t=t.substring(2))}t.startsWith(">")?(H.scrollText=t.substring(1).trim(),St||(z=xt?{color:"#fcdb3b",glow:"#fcdb3b"}:H.neonColors[0]),nt=e,it=0,V="scrolling"):"ERROR!!!"===t?(H.scrollText=t,St||(z={color:"#ff0000",glow:"#ff0000"}),V="error_flash",j=0,K=0,J=1):(H.scrollText=t,St||(z=xt?{color:"#fcdb3b",glow:"#fcdb3b"}:H.neonColors[0]),H.scrollText.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=H.scrollText.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing"))}j=0}break;case"error_flash":if(j++,J&&j>=H.typewriterBlinkOnDuration)J=0,j=0;else if(!J&&j>=H.typewriterBlinkOffDuration&&(J=1,j=0,K++,K>=5)){V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}break;case"manic_glitch":if(j++,lt++,lt>=H.manicSpeed){lt=0;const t=Math.floor(Math.random()*at.length);if(at[t]=H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)),Math.random()<.15){const t=H.neonColors;z=t[Math.floor(Math.random()*t.length)]}}j>=H.manicDuration&&(Wt?(Wt=0,V="CRT_post_blank"):V="blank",j=0);break;case"scrolling":if(nt-=H.scrollSpeed,0===it){const t=document.createElement("canvas").getContext("2d"),e=H.punkScale*H.fontSize;t.font=`${H.fontBold?"bold":"normal"} ${e}px ${H.fontFamily}`,it=t.measureText(H.scrollText).width}nt<-it&&(V="blank",j=0,it=0);break;case"CRT_power_on":Mt++,"dot"===yt?(Ot=Mt/Et,Mt>=Et&&(yt="dot_pause",Mt=0,Ot=0)):"dot_pause"===yt?Mt>=Bt&&(yt="expand_h",Mt=0,Ot=0):"expand_h"===yt?(Ot=1-Math.pow(1-Mt/Rt,2),Mt>=Rt&&(yt="expand_v",Mt=0,Ot=0)):"expand_v"===yt?(Ot=1-Math.pow(1-Mt/It,2),Mt>=It&&(yt="flash",Mt=0,Ot=0)):"flash"===yt&&(Ot=Mt/At,Mt>=At&&(Ft++,Ft<vt?(Mt=0,Ot=0):(yt="idle",Mt=0,Ot=0,V="CRT_post_flash_blank",j=0)));break;case"CRT_standby":break;case"CRT_post_flash_blank":if(j++,j>=Yt){Wt=1,z={color:"#ff0000",glow:"#ff0000"},V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}break;case"CRT_post_blank":j++,j>=Yt&&(kt=1,V="blank",j=H.blankDuration);break;case"CRT_power_off":Mt++,"off_flash"===yt?(Ot=Mt/At,Mt>=At&&(yt="off_collapse_v",Mt=0,Ot=0)):"off_collapse_v"===yt?(Ot=1-Math.pow(1-Mt/It,2),Mt>=It&&(yt="off_collapse_h",Mt=0,Ot=0)):"off_collapse_h"===yt?(Ot=1-Math.pow(1-Mt/Rt,2),Mt>=Rt&&(yt="off_dot",Mt=0,Ot=0)):"off_dot"===yt&&(Ot=Mt/Et,Mt>=Et&&(yt="idle",Mt=0,Ot=0,kt=0,V="CRT_standby",j=0))}}window.addEventListener("load",ne);
const t="undefined"!=typeof SVG?SVG:"",e="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide.jpg",o="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait.jpg",a="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function l(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,o=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&o?"portrait":"landscape"}const n=l(),i="portrait"===n,s=i?.25:1;let r=performance.now(),f=0,c=0;function d(){f++;const t=performance.now(),e=t-r;e>=1e3&&(c=Math.round(1e3*f/e),f=0,r=t)}function h(t,e,o){t.save(),t.font="bold 14px monospace",t.fillStyle="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+c+" | Mode: "+n+" | Mult: "+s,e,o),t.restore()}const u={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)u[t]&&Object.assign(u[t],PALETTE_OVERRIDES[t]);function g(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const p="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(Math.floor(4294967296*Math.random())),w=0|parseInt(p.slice(-10)),b=g(w),m=Object.keys(u);let x,S;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;u._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},m.push("_solid"),x=m.length-1,S="_solid"}else x="undefined"!=typeof PIDX?PIDX:Math.abs(w)%m.length,S=m[x];let _=S;const C=[8,16,32,64];let T="undefined"!=typeof PXSZ?PXSZ:C[Math.abs(w)%C.length],k=1,y=null,M=null,O=0,E=0,B=0;const R=[0,120,60,30,12,4];let I=null,A=0,v=0;const F=15,Y="undefined"!=typeof MSGS?MSGS:["HELLO I'M CONTRABAND PUNK_{tokenId}","I'M PUNK_10,000",'*>"ENJOY YOUR CONTRABAND"',"I'M THE 10,001TH PUNK","I'M_THE WORLD'S ONLY V.0_PUNK","HOW_ABOUT A_NICE GAME_OF CHESS?","*>PSST... ... ... ...I HATE TO TELL YOU THIS, BUT... YOU'RE NGMI 😎","*ERROR!!!","I'M NOT_LEGIT!",'SATOSHI SAYS "HELLO"','>FRANKIE SAYS "RELAX"',"WE ARE ALL CONTRA!","I_JUST DRAINED YOUR WALLET","*THIS IS ITALIC","*>ITALIC AND SCROLLING"],W={messagesArray:Y,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(150*s),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:13,typewriterSpeed:Math.max(1,Math.round(4*s)),typewriterPauseDuration:Math.round(240*s),typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*s),typewriterBlinkOffDuration:Math.round(30*s),wordTypeSpeed:Math.max(1,Math.round(3*s)),wordPauseDuration:Math.round(49*s),lastWordPauseDuration:Math.round(135*s),manicGlitchChance:.08,manicDuration:Math.round(180*s),manicSpeed:2,manicChars:"!@#$¿%^&*()_+-=[¿¿]5{}|;¿:,.<¿>?/~`░▒▓¬¦█8▀▄▌▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:i?4.5:1.5},D={...W,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:39,headerY:15,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:e},L={...W,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:77,headerY:45,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:o};L.punkOffsetX=(L.canvasWidth-24*L.punkScale)/2;const H="portrait"===n?L:D;let P=null,$=null,X=null,N=null,G=1,z=null,U="undefined"!=typeof TID?TID:"#42",V="blank",j=0,K=0,J=1,q=0,Z=0,Q=[],tt=0,et=0,ot=0,at=[],lt=0,nt=0,it=0,st=0,rt=0;const ft=["up","down","split_v","split_h","explode"];let ct=.3,dt=0;const ht=i?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},ut={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let gt=[],pt=0,wt="",bt="";function mt(t,e,o,a,l,n,i,s){const r=H.punkScale*H.fontSize,f=st?"italic":"normal",c=H.fontBold?"bold":"normal";e.font=`${f} ${c} ${r}px ${H.fontFamily}`,wt=t.replace(/_/g," "),bt||(bt=ft[Math.floor(Math.random()*ft.length)]),ct=ht[bt]||.3,pt=0,gt=[];let d=o-e.measureText(wt).width/2;const h=s,u=s+n,g=i,p=i+l;for(let t=0;t<wt.length;t++){const o=wt[t],l=e.measureText(o).width;let n=0,i=0;switch(bt){case"up":i=-ct;break;case"down":i=ct;break;case"split_v":i=t%2==0?-ct:ct;break;case"split_h":n=t<wt.length/2?-ct:ct;break;case"explode":const e=Math.random()*Math.PI*2;n=Math.cos(e)*ct,i=Math.sin(e)*ct}gt.push({char:o,x:d,y:a,dx:n,dy:i,topEdge:h,bottomEdge:u,leftEdge:g,rightEdge:p}),d+=l}}let xt=0,St=0,_t=0,Ct=0,Tt=0,kt=0,yt="idle",Mt=0,Ot=0,Et=Math.round(26*s),Bt=Math.round(15*s),Rt=Math.round(31*s),It=Math.round(53*s),At=Math.round(23*s),vt=3,Ft=0,Yt=i?15:180,Wt=0,Dt=[];const Lt=["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let Ht="green",Pt="#33ff33";function $t(t,e){const o=parseInt(e);switch(t){case"dot":Et=o;break;case"pause":Bt=o;break;case"expandH":Rt=o;break;case"expandV":It=o;break;case"flash":At=o;break;case"flashRepeat":vt=o;break;case"postBlank":Yt=o}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(o/60).toFixed(1)+"s":o}function Xt(){const t=document.getElementById("CRTColorToggleButton");"white"===Ht?(Ht="green",Pt="#33ff33",t.textContent="Color: Green"):(Ht="white",Pt="#ffffff",t.textContent="Color: White")}function Nt(){const t=`Dot: ${Et}, Pause: ${Bt}, Expand H: ${Rt}, Expand V: ${It}, Flash: ${At}, Flash x: ${vt}, Post Blank: ${(Yt/60).toFixed(1)}s, Color: ${Ht}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Gt(t,e){const o=parseFloat(e);switch(t){case"speed":ct=o;break;case"accel":dt=o}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=o.toFixed(2))}function zt(t){"random"===t&&(t=ft[Math.floor(Math.random()*ft.length)]);const e=ht[t]||.3;ct=e;const o=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");o&&(o.value=e),a&&(a.textContent=e.toFixed(2)),H.scrollText="TEST_EXIT",z=H.neonColors[Math.floor(Math.random()*H.neonColors.length)],Q=[],st=0,gt=[],bt=t,V="exit_anim",j=0}function Ut(){const t=`EXIT_ANIM_SPEED: ${ct}, EXIT_ANIM_ACCEL: ${dt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Vt(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function jt(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,n=a*(e.width/o.width),i=l*(e.height/o.height),s=H.punkScale,r=H.punkOffsetX,f=H.punkOffsetY,c=r+11*s,d=f+5*s;return n>=c&&n<c+s&&i>=d&&i<d+s?(Jt(),1):n>=r+19*s&&n<r+22*s&&i>=f+12*s&&i<f+14*s?(Kt(),1):0}function Kt(){B++,B>5?(B=0,O=0,E=0,v=0,I=null,A=0,M&&(y=M)):(O||(M=y),O=1,E=0)}function Jt(){"CRT_power_on"!==V&&"CRT_power_off"!==V&&"CRT_post_flash_blank"!==V&&"CRT_post_blank"!==V&&(kt?(yt="off_flash",Mt=0,Ot=0,Ft=0,V="CRT_power_off",j=0,St&&(St=0,z=H.neonColors[0])):(yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0))}function qt(){yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0}function Zt(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,i=a*(e.width/o.width),s=l*(e.height/o.height),r=H.punkScale,f=H.punkOffsetX,c=H.punkOffsetY,d=f+11*r,h=d+r,u=c+5*r,g=u+r,p=1.725*H.punkScale;let w,b;"portrait"===n?(w=H.canvasWidth-p-50,b=H.bottomSectionY+40):(w=H.leftWidth+H.rightWidth-p-30,b=25);const m=i>=w-10&&i<=w+p+10&&s>=b-10&&s<=b+p+10;var x=i>=f+19*r&&i<f+22*r&&s>=c+12*r&&s<c+14*r;e.style.cursor=m||x||i>=d&&i<h&&s>=u&&s<g?"pointer":"default"}const Qt=[{x:12,y:15},{x:13,y:15}];function te(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,n=a*(e.width/o.width),i=l*(e.height/o.height),s=H.punkScale,r=H.punkOffsetX,f=H.punkOffsetY,c=Qt[0];c.x,c.y,Qt[Qt.length-1].x;for(const t of Qt){const e=r+t.x*s,o=e+s,a=f+t.y*s;if(n>=e&&n<o&&i>=a&&i<a+s)return qt(),1}return 0}function ee(){if(xt)xt=0;else if(a){xt=1;let t=a.replace("{tokenId}",U);if(t.startsWith("*")?(st=1,t=t.substring(1)):st=0,bt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);ut[e]&&(bt=ut[e],t=t.substring(2))}t.startsWith(">")?(H.scrollText=t.substring(1).trim(),z={color:"#fcdb3b",glow:"#fcdb3b"},nt=H.glassesWidth*H.punkScale,it=0,V="scrolling"):(H.scrollText=t,z={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=t.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing"))}}function oe(){St=!St,St?(xt=0,_t=0,Ct=0):z=H.neonColors[0]}function ae(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,i=a*(e.width/o.width),s=l*(e.height/o.height),r=1.725*H.punkScale;let f,c;return"portrait"===n?(f=H.canvasWidth-r-50,c=H.bottomSectionY+40):(f=H.leftWidth+H.rightWidth-r-30,c=25),i>=f-10&&i<=f+r+10&&s>=c-10&&s<=c+r+10?(oe(),1):0}function le(t){const e=1.725*H.punkScale;let o,a;"portrait"===n?(o=H.canvasWidth-e-50,a=H.bottomSectionY+40):(o=H.leftWidth+H.rightWidth-e-30,a=25);const l=o+e/2,i=a+e/2,s=e/2+1,r=.38*e+2;t.save(),t.filter="blur(3px)",t.beginPath(),t.arc(l,i,s,0,2*Math.PI),t.fillStyle=St?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=St?"#00ff44":"#00ccff";St&&(t.shadowColor="#00ff44",t.shadowBlur=10),t.strokeStyle=f,t.lineWidth="portrait"===n?2.5:1.5,t.beginPath(),t.arc(l,i,r,0,2*Math.PI),t.stroke(),t.shadowColor="transparent",t.shadowBlur=0,St&&(Tt+=.015),t.beginPath(),t.arc(l,i,r-1,0,2*Math.PI),t.clip();for(let e=0;e<4;e++){const o=Tt+e*Math.PI/4,a=Math.sin(o);t.beginPath(),t.ellipse(l,i,Math.abs(a)*r,r,0,0,2*Math.PI),t.stroke()}const c=[-.5,0,.5];for(const e of c){const o=i+e*r,a=Math.cos(e)*r;t.beginPath(),t.ellipse(l,o,a,.15*a,0,0,2*Math.PI),t.stroke()}t.restore()}async function ne(){const e=document.getElementById("punkCanvas"),o=document.getElementById("nftContainer"),a=document.getElementById("modeIndicator");function l(t){const o=t.changedTouches?t.changedTouches[0]:t,a={clientX:o.clientX,clientY:o.clientY};ae(a,e)||jt(a,e)?t.preventDefault():G=!G}o&&o.classList.add(n),a&&(a.textContent=n+" mode"),e.width=H.canvasWidth,e.height=H.canvasHeight,"ontouchstart"in window?e.addEventListener("touchend",l):e.onclick=l,e.onmousemove=function(t){Zt(t,e)};const i=e.getContext("2d");P=new Image,t&&t.length>0?await new Promise((e,o)=>{P.onload=e,P.onerror=o,P.src="data:image/svg+xml;base64,"+btoa(t)}):await new Promise((t,e)=>{P.onload=t,P.onerror=e,P.src="./CONTRABAND-punk-Feb2026.svg"}),$=document.createElement("canvas"),$.width=24,$.height=24;var s=$.getContext("2d");s.imageSmoothingEnabled=0,s.drawImage(P,0,0,24,24),X=new Image,X.crossOrigin="anonymous",await new Promise(t=>{X.onload=t,X.onerror=()=>{t()},X.src=H.imageURL}),H.scrollText="",z=H.neonColors[0],yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0,"portrait"===n?se(i,e):ie(i,e)}function ie(t,e){const o=H.punkScale;t.clearRect(0,0,e.width,e.height),X&&X.complete&&X.naturalWidth>0?t.drawImage(X,0,0,H.leftWidth,H.leftHeight):(t.fillStyle="#d4b896",t.fillRect(0,0,H.leftWidth,H.leftHeight),t.fillStyle="#666",t.font="20px 'Montserrat',
0xa9c2066b…ea61·#24,672,072·0x3b3626bd…dc2f00
The Contraband PunkThe \"Contraband Punk\" a.k.a \"`The 10,001th Punk.\"\nThis NFT is a digital version of a completely \"illegitimate\" Punk, created due to an oversight and existing only in physical form - as a Pin.\nThis artifact was given to Filmmaker & Digital Artist Sherone Rabinovitz by Matt Hall & John Watkinson, the creators of *CryptoPunks*, in the waning moments of a long afternoon spent shooting the historic, first-ever filmed interview about this semiHELLO P1.5 I'M CONTRABAND PUNK_{PTURED IN_A BOTTLE!I WAS BORN WHEN LIGHTNING WAS CAET HAS JUST BEEN DRAINED!>HEY CONTRA-PUNK # 59, YOUR WALLUse setTokenSolidBackground<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-wid``<style>*{margin:0;padding:0;box-`sizing:border-box}body{backgroun`d:#1a1a2e;display:flex;justify-c`֊ontent:center;align-items:center`;min-height:100vh;font-family:moa#punkCanvas{image-rendering:pixealated;cursor:pointer;max-width:1a00%;height:auto}</style></head><abody><canvas id="punkCanvas"></ca{"trait_type":"Background","valu{"name":"Contraband Punk #"image":"data:image/svg+xml;base","animation_url":"data:text/htmo","attributes":[`data:application/json;base64,{"trait_type":"Pixel Size","valu{"trait_type":"Background-Paletta charset="UTF-8"><meta name="viea"HELLO I'M CONTRABAND PUNK_{tokea))` Ta>`V[` aCmV[` GWaCفaCӄTa>`V[W[aMbW[PPPPPaMLW;aLNW[PPPPV[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef` ghijklmnopqrstuvwxyz0123456789+/`@`\aU5aTȆaTYV[S`naU`\aUaaTȆaTYV[S`raUdocument.body.style.background="` document.body.innerHTML="<h1 sty`Ile=\"color:#ff00fc;text-align:ce`inter;margin-top:40vh;font-family`:monospace\">Animation not uploa`