-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1096.413fb059.chunk.js
More file actions
1 lines (1 loc) · 26.6 KB
/
1096.413fb059.chunk.js
File metadata and controls
1 lines (1 loc) · 26.6 KB
1
"use strict";(self.webpackChunkfezcodex=self.webpackChunkfezcodex||[]).push([[1096],{3066(e,t,a){a.d(t,{A:()=>l});var n=a(9950);const l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,116h-4.72A100.21,100.21,0,0,0,140,28.72V24a12,12,0,0,0-24,0v4.72A100.21,100.21,0,0,0,28.72,116H24a12,12,0,0,0,0,24h4.72A100.21,100.21,0,0,0,116,227.28V232a12,12,0,0,0,24,0v-4.72A100.21,100.21,0,0,0,227.28,140H232a12,12,0,0,0,0-24Zm-92,87v-3a12,12,0,0,0-24,0v3a76.15,76.15,0,0,1-63-63h3a12,12,0,0,0,0-24H53a76.15,76.15,0,0,1,63-63v3a12,12,0,0,0,24,0V53a76.15,76.15,0,0,1,63,63h-3a12,12,0,0,0,0,24h3A76.15,76.15,0,0,1,140,203ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z",opacity:"0.2"}),n.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-32,16h7.6A80.15,80.15,0,0,1,136,207.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16Zm-32-8a40,40,0,1,1-40-40A40,40,0,0,1,168,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,122H221.8A94.13,94.13,0,0,0,134,34.2V24a6,6,0,0,0-12,0V34.2A94.13,94.13,0,0,0,34.2,122H24a6,6,0,0,0,0,12H34.2A94.13,94.13,0,0,0,122,221.8V232a6,6,0,0,0,12,0V221.8A94.13,94.13,0,0,0,221.8,134H232a6,6,0,0,0,0-12Zm-98,87.76V200a6,6,0,0,0-12,0v9.76A82.09,82.09,0,0,1,46.24,134H56a6,6,0,0,0,0-12H46.24A82.09,82.09,0,0,1,122,46.24V56a6,6,0,0,0,12,0V46.24A82.09,82.09,0,0,1,209.76,122H200a6,6,0,0,0,0,12h9.76A82.09,82.09,0,0,1,134,209.76ZM128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,124H219.91A92.13,92.13,0,0,0,132,36.09V24a4,4,0,0,0-8,0V36.09A92.13,92.13,0,0,0,36.09,124H24a4,4,0,0,0,0,8H36.09A92.13,92.13,0,0,0,124,219.91V232a4,4,0,0,0,8,0V219.91A92.13,92.13,0,0,0,219.91,132H232a4,4,0,0,0,0-8ZM132,211.9V200a4,4,0,0,0-8,0v11.9A84.11,84.11,0,0,1,44.1,132H56a4,4,0,0,0,0-8H44.1A84.11,84.11,0,0,1,124,44.1V56a4,4,0,0,0,8,0V44.1A84.11,84.11,0,0,1,211.9,124H200a4,4,0,0,0,0,8h11.9A84.11,84.11,0,0,1,132,211.9ZM128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Z"}))]])},6476(e,t,a){a.d(t,{A:()=>l});var n=a(9950);const l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,204H141l86.84-86.84a28,28,0,0,0,0-39.6L186.43,36.19a28,28,0,0,0-39.6,0L28.19,154.82a28,28,0,0,0,0,39.6l30.06,30.07A12,12,0,0,0,66.74,228H216a12,12,0,0,0,0-24ZM163.8,53.16a4,4,0,0,1,5.66,0l41.38,41.38a4,4,0,0,1,0,5.65L160,151l-47-47ZM71.71,204,45.16,177.45a4,4,0,0,1,0-5.65L96,121l47,47-36,36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,168l-48,48H66.75L36.69,185.94a16,16,0,0,1,0-22.63L96,104Z",opacity:"0.2"}),n.createElement("path",{d:"M225,80.4,183.6,39a24,24,0,0,0-33.94,0L31,157.66a24,24,0,0,0,0,33.94l30.06,30.06A8,8,0,0,0,66.74,224H216a8,8,0,0,0,0-16h-84.7L225,114.34A24,24,0,0,0,225,80.4ZM108.68,208H70.05L42.33,180.28a8,8,0,0,1,0-11.31L96,115.31,148.69,168Zm105-105L160,156.69,107.31,104,161,50.34a8,8,0,0,1,11.32,0l41.38,41.38a8,8,0,0,1,0,11.31Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225,80.4,183.6,39a24,24,0,0,0-33.94,0L31,157.66a24,24,0,0,0,0,33.94l30.06,30.06A8,8,0,0,0,66.74,224H216a8,8,0,0,0,0-16h-84.7L225,114.34A24,24,0,0,0,225,80.4ZM213.67,103,160,156.69,107.31,104,161,50.34a8,8,0,0,1,11.32,0l41.38,41.38a8,8,0,0,1,0,11.31Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.57,81.81,182.19,40.43a22,22,0,0,0-31.12,0L32.43,159.07a22,22,0,0,0,0,31.11L62.5,220.24A6,6,0,0,0,66.74,222H216a6,6,0,0,0,0-12H126.49l97.08-97.08A22,22,0,0,0,223.57,81.81ZM109.51,210H69.22l-28.3-28.3a10,10,0,0,1,0-14.15L96,112.48,151.52,168ZM215.08,104.44,160,159.51,104.48,104l55.08-55.07a10,10,0,0,1,14.14,0l41.38,41.37A10,10,0,0,1,215.08,104.44Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225,80.4,183.6,39a24,24,0,0,0-33.94,0L31,157.66a24,24,0,0,0,0,33.94l30.06,30.06A8,8,0,0,0,66.74,224H216a8,8,0,0,0,0-16h-84.7L225,114.34A24,24,0,0,0,225,80.4ZM108.68,208H70.05L42.33,180.28a8,8,0,0,1,0-11.31L96,115.31,148.69,168Zm105-105L160,156.69,107.31,104,161,50.34a8,8,0,0,1,11.32,0l41.38,41.38a8,8,0,0,1,0,11.31Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222.15,83.22,180.77,41.85a20,20,0,0,0-28.28,0L33.85,160.48a20,20,0,0,0,0,28.29l30.06,30.06A4,4,0,0,0,66.74,220H216a4,4,0,0,0,0-8H121.66L222.15,111.51A20,20,0,0,0,222.15,83.22ZM110.34,212H68.4L39.51,183.11a12,12,0,0,1,0-17L96,109.65,154.35,168ZM216.49,105.85,160,162.34,101.65,104l56.49-56.48a12,12,0,0,1,17,0l41.37,41.37A12,12,0,0,1,216.49,105.85Z"}))]])},29378(e,t,a){a.d(t,{B:()=>c,o:()=>o});var n=a(89379),l=a(9950),s=a(35507),r=a(3066);const o=l.forwardRef((e,t)=>l.createElement(s.A,(0,n.A)((0,n.A)({ref:t},e),{},{weights:r.A})));o.displayName="CrosshairIcon";const c=o},32526(e,t,a){a.d(t,{A:()=>l});var n=a(9950);const l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]])},39858(e,t,a){a.d(t,{A:()=>l});a(9950);var n=a(44414);const l=e=>{let{label:t,value:a,min:l=0,max:s=100,step:r=1,onChange:o,className:c="",variant:i="default"}=e;const d=(a-l)/(s-l)*100;return"cyberpunk"===i?(0,n.jsxs)("div",{className:"flex flex-col gap-2 w-full ".concat(c),children:[t&&(0,n.jsxs)("div",{className:"flex justify-between items-end",children:[(0,n.jsx)("label",{className:"font-mono text-[10px] uppercase tracking-widest text-cyan-700 font-bold",children:t}),(0,n.jsx)("span",{className:"font-mono text-xs text-cyan-400 font-bold",children:a})]}),(0,n.jsxs)("div",{className:"relative w-full h-4 flex items-center group",children:[(0,n.jsx)("div",{className:"absolute w-full h-1 bg-cyan-900/30 border border-cyan-900 overflow-hidden",children:(0,n.jsx)("div",{className:"h-full bg-cyan-500 shadow-[0_0_10px_#0ff]",style:{width:"".concat(d,"%")}})}),(0,n.jsx)("input",{type:"range",min:l,max:s,step:r,value:a,onChange:e=>o(Number(e.target.value)),className:"absolute w-full h-full opacity-0 cursor-pointer z-10"}),(0,n.jsx)("div",{className:"absolute h-4 w-2 bg-black border border-cyan-500 pointer-events-none transition-all duration-75 ease-out group-hover:bg-cyan-500",style:{left:"calc(".concat(d,"% - 4px)")}})]})]}):(0,n.jsxs)("div",{className:"flex flex-col gap-2 w-full ".concat(c),children:[t&&(0,n.jsxs)("div",{className:"flex justify-between items-end",children:[(0,n.jsx)("label",{className:"font-mono text-[10px] uppercase tracking-widest text-gray-500 font-bold",children:t}),(0,n.jsx)("span",{className:"font-mono text-xs text-emerald-500 font-bold",children:a})]}),(0,n.jsxs)("div",{className:"relative w-full h-6 flex items-center group",children:[(0,n.jsx)("div",{className:"absolute w-full h-1 bg-white/10 rounded-sm overflow-hidden",children:(0,n.jsx)("div",{className:"h-full bg-emerald-500 transition-all duration-75 ease-out",style:{width:"".concat(d,"%")}})}),(0,n.jsx)("input",{type:"range",min:l,max:s,step:r,value:a,onChange:e=>o(Number(e.target.value)),className:"absolute w-full h-full opacity-0 cursor-pointer z-10"}),(0,n.jsx)("div",{className:"absolute h-4 w-4 bg-[#050505] border-2 border-emerald-500 rounded-sm pointer-events-none transition-all duration-75 ease-out group-hover:scale-110 group-active:scale-95",style:{left:"calc(".concat(d,"% - 8px)")},children:(0,n.jsx)("div",{className:"absolute inset-1 bg-emerald-500 opacity-0 group-hover:opacity-100 transition-opacity"})})]})]})}},57142(e,t,a){a.d(t,{H:()=>c,Q:()=>o});var n=a(89379),l=a(9950),s=a(35507),r=a(32526);const o=l.forwardRef((e,t)=>l.createElement(s.A,(0,n.A)((0,n.A)({ref:t},e),{},{weights:r.A})));o.displayName="MinusIcon";const c=o},61096(e,t,a){a.r(t),a.d(t,{default:()=>v});var n=a(89379),l=a(9950),s=a(18905),r=a(4422),o=a(29378),c=a(30634),i=a(99636),d=a(57142),x=a(75009),h=a(84145),m=a(76508),p=a(89837),g=a(44374),u=a(80797),b=a(22195),f=a(39858),A=a(44414);const v=()=>{const e=(0,l.useRef)(null),t=(0,l.useRef)(null),{addToast:a}=(0,g.d)(),[v,F]=(0,l.useState)("pen"),[j,N]=(0,l.useState)("#00FF41"),[w,y]=(0,l.useState)(1.5),[E,k]=(0,l.useState)(18),[H,M]=(0,l.useState)(!1),[T,C]=(0,l.useState)([]),[S,Z]=(0,l.useState)([]),[L,R]=(0,l.useState)(null),[_,V]=(0,l.useState)(!0),[I,z]=(0,l.useState)(!0),[O,D]=(0,l.useState)(!0),[P,B]=(0,l.useState)(!1),[W,G]=(0,l.useState)(null),[U,Y]=(0,l.useState)(""),[X,J]=(0,l.useState)(!1),K=(0,l.useCallback)(()=>{const t=e.current;if(!t)return;const a=t.getContext("2d"),n=window.devicePixelRatio||1,l=t.width/n,s=t.height/n;if(a.clearRect(0,0,l,s),a.fillStyle="#050a05",a.fillRect(0,0,l,s),_){a.strokeStyle="rgba(0, 255, 65, 0.1)",a.lineWidth=1;const e=50;for(let t=0;t<=l;t+=e)a.beginPath(),a.moveTo(t,0),a.lineTo(t,s),a.stroke();for(let t=0;t<=s;t+=e)a.beginPath(),a.moveTo(0,t),a.lineTo(l,t),a.stroke();a.fillStyle="rgba(0, 255, 65, 0.3)",a.font='10px "JetBrains Mono", monospace';for(let t=0;t<=l;t+=2*e)a.fillText("".concat((t/10).toFixed(0),"\xb0E"),t+5,15);for(let t=0;t<=s;t+=2*e)a.fillText("".concat((t/10).toFixed(0),"\xb0N"),5,t+15)}const r=(e,t)=>{e.forEach(e=>{if(a.save(),a.strokeStyle=e.color,a.fillStyle=e.color,"path"===t){a.lineWidth=e.lineWidth||1.5;const t=e=>{a.beginPath(),e.forEach((e,t)=>{const n=Math.floor(e.x),l=Math.floor(e.y);0===t?a.moveTo(n,l):a.lineTo(n,l)}),a.stroke()};a.shadowBlur=12,a.shadowColor=e.color,a.globalAlpha=.4,t(e.points),a.shadowBlur=4,a.globalAlpha=.7,t(e.points),a.shadowBlur=0,a.globalAlpha=1,t(e.points)}else"text"===t&&(a.font="bold ".concat(e.size||18,'px "JetBrains Mono", "Courier New", monospace'),a.textBaseline="top",a.shadowBlur=8,a.shadowColor=e.color,a.fillText(e.text,e.x,e.y),a.shadowBlur=0,a.fillText(e.text,e.x,e.y),e.width=a.measureText(e.text).width,e.height=e.size||18);a.restore()})};r(T,"path"),r(S,"text"),L&&r([L],"path")},[T,S,L,_]);(0,l.useEffect)(()=>{const a=e.current,n=t.current;if(!a||!n)return;const l=()=>{const e=window.devicePixelRatio||1,t=n.getBoundingClientRect();a.width=t.width*e,a.height=t.height*e,a.style.width="".concat(t.width,"px"),a.style.height="".concat(t.height,"px");a.getContext("2d").scale(e,e),K()};return window.addEventListener("resize",l),l(),()=>window.removeEventListener("resize",l)},[K]);const Q=t=>{const a=e.current.getBoundingClientRect(),n=t.touches?t.touches[0].clientX:t.clientX,l=t.touches?t.touches[0].clientY:t.clientY;return{x:n-a.left,y:l-a.top}},q=(e,t,a,n,l,s)=>{const r=(l-a)**2+(s-n)**2;if(0===r)return Math.hypot(e-a,t-n);let o=((e-a)*(l-a)+(t-n)*(s-n))/r;return o=Math.max(0,Math.min(1,o)),Math.hypot(e-(a+o*(l-a)),t-(n+o*(s-n)))},$=e=>{const{x:t,y:a}=Q(e);"pen"===v||"line"===v?(M(!0),R({points:[{x:t,y:a}],color:j,lineWidth:w,tool:v})):"text"===v?(G({x:t,y:a}),B(!0)):"eraser"===v&&(C(e=>e.filter(e=>{for(let n=0;n<e.points.length-1;n++){if(q(t,a,e.points[n].x,e.points[n].y,e.points[n+1].x,e.points[n+1].y)<10+(e.lineWidth||1.5))return!1}return!0})),Z(e=>e.filter(e=>!(t>=e.x&&t<=e.x+(e.width||100)&&a>=e.y&&a<=e.y+(e.height||20)))))},ee=()=>{U&&W&&(Z(e=>[...e,{x:W.x,y:W.y,text:U.toUpperCase(),color:j,size:E}]),Y(""),G(null),B(!1))},te=e=>{if(!H)return;const{x:t,y:a}=Q(e);if("pen"===v){const e=L.points[L.points.length-1];Math.hypot(t-e.x,a-e.y)>4&&R(e=>(0,n.A)((0,n.A)({},e),{},{points:[...e.points,{x:t,y:a}]}))}else"line"===v&&R(e=>(0,n.A)((0,n.A)({},e),{},{points:[e.points[0],{x:t,y:a}]}))},ae=()=>{H&&(L&&L.points.length>1&&C(e=>[...e,L]),R(null),M(!1))};return(0,A.jsxs)("div",{className:"min-h-screen bg-[#020502] text-[#00FF41] font-mono selection:bg-[#00FF41]/30 overflow-hidden flex flex-col",children:[(0,A.jsx)(p.A,{title:"CRT Tactical Map | Fezcodex",description:"Immersive 80s cinema style CRT tactical map with glowing vectors and telemetry.",keywords:["80s","crt","tactical","map","cinema","glow","drawing"]}),(0,A.jsxs)("header",{className:"px-6 py-4 border-b border-[#00FF41]/20 flex justify-between items-center bg-[#050a05] z-20",children:[(0,A.jsxs)("div",{className:"flex items-center gap-6",children:[(0,A.jsxs)(s.N_,{to:"/apps",className:"flex items-center gap-2 text-xs hover:bg-[#00FF41] hover:text-black px-2 py-1 transition-colors",children:[(0,A.jsx)(r.A,{weight:"bold"}),(0,A.jsx)("span",{children:"EXIT_SYSTEM"})]}),(0,A.jsx)("div",{className:"h-4 w-px bg-[#00FF41]/20"}),(0,A.jsx)(u.A,{title:"TACTICAL_MAP",slug:"v1.0.8",variant:"brutalist"})]}),(0,A.jsxs)("div",{className:"hidden md:flex items-center gap-8 text-[10px] tracking-[0.2em]",children:[(0,A.jsxs)("div",{className:"flex items-center gap-2",children:[(0,A.jsx)("span",{className:"h-2 w-2 bg-[#00FF41] animate-pulse rounded-full"}),(0,A.jsx)("span",{children:"SIGNAL_LOCKED"})]}),(0,A.jsxs)("div",{className:"text-[#00FF41]/60",children:["TS: ",(new Date).toLocaleTimeString()]})]})]}),(0,A.jsxs)("main",{className:"flex-grow flex relative",children:[(0,A.jsxs)("aside",{className:"w-16 md:w-20 border-r border-[#00FF41]/20 flex flex-col items-center py-8 gap-6 bg-[#050a05] z-20",children:[(0,A.jsx)("button",{onClick:()=>F("pen"),className:"p-3 border ".concat("pen"===v?"bg-[#00FF41] text-black border-[#00FF41]":"border-[#00FF41]/20 text-[#00FF41] hover:border-[#00FF41]"),title:"Vector Pen",children:(0,A.jsx)(x.Z,{size:24,weight:"bold"})}),(0,A.jsx)("button",{onClick:()=>F("line"),className:"p-3 border ".concat("line"===v?"bg-[#00FF41] text-black border-[#00FF41]":"border-[#00FF41]/20 text-[#00FF41] hover:border-[#00FF41]"),title:"Vector Line",children:(0,A.jsx)(d.Q,{size:24,weight:"bold"})}),(0,A.jsx)("button",{onClick:()=>F("text"),className:"p-3 border ".concat("text"===v?"bg-[#00FF41] text-black border-[#00FF41]":"border-[#00FF41]/20 text-[#00FF41] hover:border-[#00FF41]"),title:"Telemetry Text",children:(0,A.jsx)(h.Z,{size:24,weight:"bold"})}),(0,A.jsx)("button",{onClick:()=>F("eraser"),className:"p-3 border ".concat("eraser"===v?"bg-[#00FF41] text-black border-[#00FF41]":"border-[#00FF41]/20 text-[#00FF41] hover:border-[#00FF41]"),title:"Scrub Data",children:(0,A.jsx)(i.A,{size:24,weight:"bold"})}),(0,A.jsx)("div",{className:"h-px w-8 bg-[#00FF41]/20 my-2"}),(0,A.jsx)("button",{onClick:()=>J(!0),className:"p-3 border border-red-500/20 text-red-500 hover:bg-red-500 hover:text-black transition-all",title:"Purge System",children:(0,A.jsx)(m.u,{size:24,weight:"bold"})}),(0,A.jsx)("button",{onClick:()=>{const t=e.current,n=document.createElement("a");n.download="tactical_map_".concat(Date.now(),".png"),n.href=t.toDataURL(),n.click(),a({title:"INTEL SECURED",message:"Map data exported to local drive."})},className:"p-3 border border-[#00FF41]/20 text-[#00FF41] hover:bg-[#00FF41] hover:text-black transition-all",title:"Export Intel",children:(0,A.jsx)(c.e,{size:24,weight:"bold"})})]}),(0,A.jsx)("div",{className:"flex-grow relative bg-black overflow-hidden flex items-center justify-center p-4 md:p-12",children:(0,A.jsx)("div",{className:"relative w-full h-full max-w-6xl aspect-[4/3] shadow-[0_0_100px_rgba(0,255,65,0.1)] rounded-[5%] overflow-hidden border-[20px] border-[#1a1a1a] ring-4 ring-[#333] z-10",children:(0,A.jsxs)("div",{ref:t,className:"relative w-full h-full bg-[#050a05] cursor-crosshair",style:{transform:"perspective(1000px) rotateX(0.5deg)"},children:[(0,A.jsx)("canvas",{ref:e,onMouseDown:$,onMouseMove:te,onMouseUp:ae,onMouseLeave:ae,onTouchStart:$,onTouchMove:te,onTouchEnd:ae,className:"w-full h-full touch-none"}),I&&(0,A.jsx)("div",{className:"absolute inset-0 pointer-events-none z-30 opacity-20",style:{background:"linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06))",backgroundSize:"100% 4px, 3px 100%"}}),O&&(0,A.jsx)("div",{className:"absolute inset-0 pointer-events-none z-40 opacity-[0.03] animate-pulse",style:{backgroundImage:'url("https://www.transparenttextures.com/patterns/stardust.png")'}}),(0,A.jsx)("div",{className:"absolute inset-0 pointer-events-none z-50 shadow-[inset_0_0_100px_rgba(0,0,0,0.8)] rounded-[4%]"}),(0,A.jsx)("div",{className:"absolute inset-0 pointer-events-none z-50 bg-[radial-gradient(circle,transparent_50%,rgba(0,0,0,0.4)_100%)] animate-[flicker_0.1s_infinite]"})]})})}),(0,A.jsxs)("aside",{className:"hidden lg:flex w-64 border-l border-[#00FF41]/20 flex-col p-6 gap-8 bg-[#050a05] z-20",children:[(0,A.jsxs)("div",{className:"space-y-4",children:[(0,A.jsx)("h3",{className:"text-xs font-bold tracking-[0.2em] border-b border-[#00FF41]/20 pb-2 text-white",children:"PHOSPHOR_CONTROL"}),(0,A.jsx)("div",{className:"grid grid-cols-5 gap-2",children:[{name:"P-Green",hex:"#00FF41"},{name:"Amber",hex:"#FFB000"},{name:"Cyan",hex:"#00F3FF"},{name:"Red-Alert",hex:"#FF0000"},{name:"White",hex:"#FFFFFF"}].map(e=>(0,A.jsx)("button",{onClick:()=>N(e.hex),className:"w-8 h-8 border-2 transition-all ".concat(j===e.hex?"border-white scale-110":"border-transparent opacity-50 hover:opacity-100"),style:{backgroundColor:e.hex}},e.hex))})]}),(0,A.jsxs)("div",{className:"space-y-4",children:[(0,A.jsx)("h3",{className:"text-xs font-bold tracking-[0.2em] border-b border-[#00FF41]/20 pb-2 text-white",children:"VECTOR_SETTINGS"}),(0,A.jsx)(f.A,{label:"LINE_WIDTH",value:w,min:1,max:10,step:.5,onChange:e=>y(e),variant:"brutalist"}),(0,A.jsx)(f.A,{label:"TEXT_SIZE",value:E,min:10,max:48,step:2,onChange:e=>k(e),variant:"brutalist"})]}),(0,A.jsxs)("div",{className:"space-y-4",children:[(0,A.jsx)("h3",{className:"text-xs font-bold tracking-[0.2em] border-b border-[#00FF41]/20 pb-2 text-white",children:"DISPLAY_MODS"}),(0,A.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer group",children:[(0,A.jsx)("input",{type:"checkbox",checked:_,onChange:e=>V(e.target.checked),className:"hidden"}),(0,A.jsx)("div",{className:"w-4 h-4 border ".concat(_?"bg-[#00FF41]":"bg-transparent"," border-[#00FF41]")}),(0,A.jsx)("span",{className:"text-[10px] group-hover:underline",children:"GRID_OVERLAY"})]}),(0,A.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer group",children:[(0,A.jsx)("input",{type:"checkbox",checked:I,onChange:e=>z(e.target.checked),className:"hidden"}),(0,A.jsx)("div",{className:"w-4 h-4 border ".concat(I?"bg-[#00FF41]":"bg-transparent"," border-[#00FF41]")}),(0,A.jsx)("span",{className:"text-[10px] group-hover:underline",children:"SCANLINES"})]}),(0,A.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer group",children:[(0,A.jsx)("input",{type:"checkbox",checked:O,onChange:e=>D(e.target.checked),className:"hidden"}),(0,A.jsx)("div",{className:"w-4 h-4 border ".concat(O?"bg-[#00FF41]":"bg-transparent"," border-[#00FF41]")}),(0,A.jsx)("span",{className:"text-[10px] group-hover:underline",children:"SIGNAL_NOISE"})]})]}),(0,A.jsxs)("div",{className:"mt-auto space-y-4",children:[(0,A.jsxs)("div",{className:"p-3 border border-[#00FF41]/20 bg-black/40 text-[9px] leading-relaxed",children:[(0,A.jsx)("div",{className:"text-[#00FF41] mb-1 font-bold",children:"SYSTEM_LOG:"}),T.length>0&&(0,A.jsxs)("div",{children:["- VECTORS: ",T.length]}),S.length>0&&(0,A.jsxs)("div",{children:["- LABELS: ",S.length]}),(0,A.jsx)("div",{className:"animate-pulse text-white mt-2",children:"- STANDBY..."})]}),(0,A.jsxs)("div",{className:"flex items-center gap-2 text-[10px] text-[#00FF41]/40",children:[(0,A.jsx)(o.o,{size:14}),(0,A.jsx)("span",{children:"RADAR_SWEEP_ACTIVE"})]})]})]})]}),(0,A.jsx)(b.A,{isOpen:P,onClose:()=>B(!1),title:"TELEMETRY_DATA_ENTRY",maxWidth:"max-w-md",children:(0,A.jsxs)("div",{className:"space-y-6",children:[(0,A.jsx)("p",{className:"text-xs text-white/60",children:"ENTER SECTOR DESIGNATION OR DATA STRING:"}),(0,A.jsx)("input",{type:"text",autoFocus:!0,value:U,onChange:e=>Y(e.target.value),onKeyDown:e=>"Enter"===e.key&&ee(),className:"w-full bg-black border border-[#00FF41]/30 p-4 text-[#00FF41] font-mono outline-none focus:border-[#00FF41] uppercase",placeholder:"TYPE_HERE..."}),(0,A.jsxs)("div",{className:"flex justify-end gap-4",children:[(0,A.jsx)("button",{onClick:()=>B(!1),className:"px-6 py-2 text-xs border border-white/10 hover:bg-white/5",children:"CANCEL"}),(0,A.jsx)("button",{onClick:ee,className:"px-6 py-2 text-xs bg-[#00FF41] text-black font-bold hover:bg-[#00FF41]/80",children:"COMMIT_DATA"})]})]})}),(0,A.jsx)(b.A,{isOpen:X,onClose:()=>J(!1),title:"SYSTEM_PURGE_WARNING",maxWidth:"max-w-sm",children:(0,A.jsxs)("div",{className:"space-y-6 text-center",children:[(0,A.jsx)("div",{className:"text-red-500 font-bold animate-pulse uppercase tracking-widest text-lg",children:"CRITICAL_WARNING"}),(0,A.jsx)("p",{className:"text-sm text-white/80",children:"YOU ARE ABOUT TO PURGE ALL TACTICAL DATA FROM THE CURRENT SESSION. THIS ACTION CANNOT BE UNDONE."}),(0,A.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,A.jsx)("button",{onClick:()=>{C([]),Z([]),J(!1),a({title:"DATA PURGED",message:"Tactical map cleared."})},className:"w-full py-4 bg-red-600 text-white font-black hover:bg-red-700 transition-colors uppercase tracking-tighter",children:"PURGE_ALL_DATA"}),(0,A.jsx)("button",{onClick:()=>J(!1),className:"w-full py-2 text-xs border border-white/10 hover:bg-white/5 uppercase",children:"ABORT_OPERATION"})]})]})}),(0,A.jsx)("style",{children:"\n @keyframes flicker {\n 0% { opacity: 0.98; }\n 50% { opacity: 1; }\n 100% { opacity: 0.99; }\n }\n canvas {\n image-rendering: pixelated;\n }\n "})]})}},80797(e,t,a){a.d(t,{A:()=>s});var n=a(9950),l=a(44414);const s=e=>{let{title:t,slug:a,breadcrumbs:s,gradient:r=!0,sansFont:o=!1,lightStyle:c=!0,variant:i="default"}=e;const d=s||(a?["fc","apps",a]:[]);return"brutalist"===i?(0,l.jsxs)("div",{className:"flex flex-col gap-2 mb-8",children:[(0,l.jsx)("div",{className:"flex items-center gap-2 font-mono text-[10px] uppercase tracking-[0.3em] text-gray-400",children:d.map((e,t)=>(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)("span",{className:t===d.length-1?"text-emerald-500 font-bold":"",children:e}),t<d.length-1&&(0,l.jsxs)("span",{className:"text-gray-600 font-bold ",children:[" ","//"]})]},t))}),(0,l.jsx)("h1",{className:"text-4xl md:text-6xl font-black tracking-tighter text-white uppercase leading-none",children:t})]}):(0,l.jsxs)("div",{className:"relative flex flex-col items-center justify-center mb-4 ".concat(o?"font-playfairDisplay":"font-mono"," "),children:[(0,l.jsx)("span",{className:"min-[1376px]:absolute min-[1376px]:left-0 min-[1376px]:top-1/2 min-[1376px]:-translate-y-1/2 text-xl md:text-2xl font-mono font-normal text-gray-500 tracking-tight mb-2 min-[1376px]:mb-0 opacity-75",children:d.map((e,t)=>(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)("span",{className:t===d.length-1?c?"text-primary-400":"text-rose-800":"",children:e}),t<d.length-1&&(0,l.jsx)("span",{className:"text-gray-700",children:"::"})]},t))}),(0,l.jsx)("h1",{className:"text-4xl md:text-6xl font-black tracking-tighter text-center",children:(0,l.jsx)("span",{className:r?c?"bg-clip-text text-transparent bg-gradient-to-r from-primary-400 to-secondary-400":"bg-clip-text text-transparent bg-gradient-to-r from-pink-800 to-teal-800":"text-white",children:t})})]})}},89837(e,t,a){a.d(t,{A:()=>r});a(9950);var n=a(18905),l=a(44414);const s="https://fezcode.com",r=e=>{let{title:t,description:a,image:r,keywords:o,ogImage:c,twitterImage:i,type:d}=e;const x=(0,n.zy)();if(!t||"Fezcodex"===t||"fezcodex"===t)return null;const h=s+x.pathname,m=x.pathname.startsWith("/apps"),p=r||c||i||(m?"/images/asset/ogtitle-apps.png":"/images/asset/ogtitle.png"),g=p.startsWith("http")?p:s+(p.startsWith("/")?"":"/")+p,u=Array.isArray(o)?o.join(", "):o,b=d||(x.pathname.startsWith("/blog")?"article":"website");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:a}),u&&(0,l.jsx)("meta",{name:"keywords",content:u}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:a}),(0,l.jsx)("meta",{property:"og:image",content:g}),(0,l.jsx)("meta",{property:"og:url",content:h}),(0,l.jsx)("meta",{property:"og:type",content:b}),(0,l.jsx)("meta",{property:"og:site_name",content:"Fezcodex"}),g.startsWith("https")&&(0,l.jsx)("meta",{property:"og:image:secure_url",content:g}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:a}),(0,l.jsx)("meta",{name:"twitter:image",content:g}),(0,l.jsx)("meta",{name:"twitter:url",content:h}),(0,l.jsx)("link",{rel:"canonical",href:h})]})}},99636(e,t,a){a.d(t,{A:()=>o,X:()=>c});var n=a(89379),l=a(9950),s=a(35507),r=a(6476);const o=l.forwardRef((e,t)=>l.createElement(s.A,(0,n.A)((0,n.A)({ref:t},e),{},{weights:r.A})));o.displayName="EraserIcon";const c=o}}]);