PageSourceSearch

https://textkits.org/_next/static/chunks/8709.6d5899708958cfc5.js

js textkits.org collected 2026-09-24 10:23:11 UTC 24,758 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8709],{13786:(e,t,l)=>{l.d(t,{Ap:()=>g,BT:()=>u,Cf:()=>b,Si:()=>d,U_:()=>c,mq:()=>s,up:()=>f,yx:()=>m});let r=Array.from([781,782,772,773,831,785,774,784,850,855,849,775,776,778,834,835,836,842,843,844,771,770,780,848,768,769,779,783,786,787,788,829,777,867,868,869,870,871,872,873,874,875,876,877,878,879,830,859,838,794],e=>String.fromCodePoint(e)),a=Array.from([789,795,832,833,856,801,802,807,808,820,821,822,847,860,861,862,863,864,866,824,823,865,1161],e=>String.fromCodePoint(e)),n=Array.from([790,791,792,793,796,797,798,799,800,804,805,806,809,810,811,812,813,814,815,816,817,818,819,825,826,827,828,837,839,840,841,845,846,851,852,853,854,857,858,803],e=>String.fromCodePoint(e)),o=RegExp("[\\p{L}\\p{N}]","u"),i=/[\u0300-\u036f\u0489]/gu,s=[{value:"mild",label:"Mild",description:"Light readable noise",defaultIntensity:24,activation:.52,counts:{above:[0,3],middle:[0,1],below:[0,1]}},{value:"glitch",label:"Glitch",description:"Broken digital marks",defaultIntensity:52,activation:.78,counts:{above:[1,6],middle:[1,3],below:[1,3]}},{value:"heavy",label:"Heavy",description:"Dense unstable stacks",defaultIntensity:72,activation:.9,counts:{above:[3,10],middle:[2,5],below:[2,7]}},{value:"cursed",label:"Cursed",description:"Maximum zalgo chaos",defaultIntensity:92,activation:1,counts:{above:[7,16],middle:[3,8],below:[5,14]}}],d=[{value:"balanced",label:"Balanced",multipliers:{above:1,middle:1,below:1}},{value:"top-heavy",label:"Rising",multipliers:{above:1.35,middle:.82,below:.9}},{value:"down-heavy",label:"Dripping",multipliers:{above:.86,middle:.9,below:1.45}},{value:"chaotic",label:"Chaotic",multipliers:{above:1.1,middle:1.25,below:1.12}}],c=["haunted username","ghost mode","spooky bio","do not enter"];function u(e){let t=b(e);return t<36?{label:"Readable",risk:"Low paste risk",advice:"Best for bios, usernames, and longer chat text."}:t<76?{label:"Haunted",risk:"Medium paste risk",advice:"Good for short captions, game names, and spooky replies."}:{label:"Cursed",risk:"High paste risk",advice:"Use for short titles; dense marks may be clipped or stripped."}}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"undefined"!=typeof TextEncoder?new TextEncoder().encode(e).length:Array.from(String(e)).reduce((e,t)=>{let l=t.codePointAt(0);return l<=127?e+1:l<=2047?e+2:l<=65535?e+3:e+4},0)}function h(e,t,l){return l<=t?t:Math.floor(e()*(l-t+1))+t}function x(e,t,l){let r=b(t),a=.18+r/75,n=r>=90?1+(r-90)/18:1,o=Math.max(.45,l),i=Math.max(0,Math.round(e[0]*a*n*Math.min(o,1.25))),s=Math.max(i,Math.round(e[1]*a*n*o));return[i,s]}function p(e,t,l){let r="";for(let a=0;a<t;a+=1)r+=e[h(l,0,e.length-1)];return r}function b(e){let t=Number(e);return Number.isFinite(t)?Math.min(100,Math.max(0,Math.round(t))):56}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(i,"")}function g(e){var t,l;let i,{text:c="",preset:u="glitch",intensity:m=56,style:f="balanced",seed:g=0}=e;if(!c)return"";let v=b(m),w=null!=(t=s.find(e=>e.value===u))?t:s[1],y=null!=(l=d.find(e=>e.value===f))?l:d[0],k=(i=function(e){let t=0x811c9dc5;for(let l of e)t^=l.codePointAt(0),t=Math.imul(t,0x1000193);return t>>>0||1}("".concat(g,":").concat(u,":").concat(f,":").concat(v,":").concat(c))>>>0||1,()=>{let e=i+=0x6d2b79f5;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000}),j=Math.min(1,w.activation+v/180);return Array.from(c,e=>{if(!(!/\s/u.test(e)&&o.test(e))||k()>j)return e;let t=x(w.counts.above,v,y.multipliers.above),l=x(w.counts.middle,v,y.multipliers.middle),i=x(w.counts.below,v,y.multipliers.below),s=p(r,h(k,t[0],t[1]),k),d=p(a,h(k,l[0],l[1]),k),c=p(n,h(k,i[0],i[1]),k);return"".concat(e).concat(s).concat(d).concat(c)}).join("")}},13804:(e,t,l)=>{l.d(t,{A:()=>r});let r=(0,l(19904).A)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},39867:(e,t,l)=>{l.d(t,{A:()=>r});let r=(0,l(19904).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},56367:(e,t,l)=>{l.d(t,{T:()=>s});var r=l(95155),a=l(12115),n=l(65229),o=l(49498);let i="flex min-h-[120px] w-full rounded-[1.8rem] border border-slate-200 bg-white px-5 py-4 text-base text-slate-900 shadow-[0_8px_24px_-18px_rgba(15,23,42,0.28)] outline-none transition placeholder:text-slate-400 focus-visible:border-emerald-200 focus-visible:ring-2 focus-visible:ring-emerald-500/20 disabled:cursor-not-allowed disabled:opacity-50",s=a.forwardRef((e,t)=>
1{var l;let{className:s,value:d,defaultValue:c,onChange:u,onFocus:m,readOnly:h,disabled:x,placeholder:p,"data-mobile-full-height":b,...f}=e,[g,v]=a.useState(!1),w=a.useRef(null),y=a.useRef(null),k=!h&&!x&&!b,j=null!=(l=null!=d?d:c)?l:"",N="string"==typeof s&&s.includes("convert-normal-input-attention");function C(){return window.matchMedia("(max-width: 639px)").matches}return(a.useImperativeHandle(t,()=>({get element(){return w.current},focus:()=>{var e;if(k&&C())return void v(!0);null==(e=w.current)||e.focus()},blur:()=>{var e;return null==(e=w.current)?void 0:e.blur()},select:()=>{var e;return null==(e=w.current)?void 0:e.select()},setSelectionRange:function(){for(var e,t,l=arguments.length,r=Array(l),a=0;a<l;a++)r[a]=arguments[a];return null==(t=w.current)||null==(e=t.setSelectionRange)?void 0:e.call(t,...r)},get selectionStart(){var e,t;return null!=(t=null==(e=w.current)?void 0:e.selectionStart)?t:0},get selectionEnd(){var l,r;return null!=(r=null==(l=w.current)?void 0:l.selectionEnd)?r:0},get value(){var a;return null==(a=w.current)?void 0:a.value}})),a.useEffect(()=>{if(!g)return;let e=document.body.style.overflow;function t(e){"Escape"===e.key&&v(!1)}return document.body.style.overflow="hidden",window.requestAnimationFrame(()=>{var e;null==(e=y.current)||e.focus()}),window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[g]),k)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>v(!0),className:(0,o.cn)("block min-h-40 w-full rounded-[1.4rem] border border-slate-200 bg-white px-4 py-4 text-left shadow-[0_8px_24px_-18px_rgba(15,23,42,0.28)] sm:hidden",N?"convert-normal-input-attention border-emerald-500":""),"aria-label":"Open text editor",children:(0,r.jsx)("span",{className:(0,o.cn)("line-clamp-5 block text-xl font-black leading-tight",j?"text-slate-900":"text-slate-300"),children:j||p||"Tap to enter text..."})}),(0,r.jsx)("textarea",{ref:w,value:d,defaultValue:c,onChange:u,onFocus:function(e){null==m||m(e),k&&C()&&(e.currentTarget.blur(),v(!0))},readOnly:h,disabled:x,placeholder:p,className:(0,o.cn)(i,"hidden sm:flex",s),...f}),g?(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end bg-slate-950/55 px-3 py-4 backdrop-blur-sm sm:hidden",role:"dialog","aria-modal":"true","aria-label":"Text input editor",children:[(0,r.jsx)("button",{type:"button",className:"absolute inset-0","aria-label":"Close text editor",onClick:()=>v(!1)}),(0,r.jsxs)("div",{className:"relative w-full rounded-[2rem] border-4 border-slate-100 bg-white p-4 shadow-2xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.08em] text-slate-500",children:"Text"}),(0,r.jsx)("p",{className:"text-lg font-black tracking-tight text-slate-950",children:"Edit input"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>v(!1),className:"inline-flex size-10 items-center justify-center rounded-full border-2 border-slate-100 bg-white text-slate-700","aria-label":"Close text editor",children:(0,r.jsx)(n.A,{className:"size-5"})})]}),(0,r.jsx)("textarea",{ref:y,value:d,defaultValue:c,onChange:u,onFocus:m,placeholder:p,maxLength:f.maxLength,className:(0,o.cn)(i,"mt-3 min-h-[45vh] resize-none rounded-[1.4rem] border-2 border-slate-100 bg-slate-50 p-4 text-xl font-bold leading-tight text-slate-900 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-200 focus-visible:ring-2 focus-visible:ring-emerald-500/20"),"data-mobile-full-height":"true"}),(0,r.jsxs)("div",{className:"mt-3 grid grid-cols-[1fr_auto] gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>v(!1),className:"inline-flex h-12 items-center justify-center rounded-full border-4 border-emerald-800 bg-emerald-700 px-6 text-base font-black text-white shadow-[0_6px_0_0_#065f46] active:translate-y-1.5 active:shadow-none",children:"Done"}),(0,r.jsx)("button",{type:"button",onClick:()=>{null==u||u({target:{value:""},currentTarget:{value:""}})},className:"inline-flex h-12 items-center justify-center rounded-full border-2 border-slate-200 bg-white px-5 text-base font-black text-slate-700",children:"Clear"})]})]})]}):null]}):(0,r.jsx)("textarea",{ref:w,value:d,defaultValue:c,onChange:u,onFocus:m,readOnly:h,disabled:x,placeholder:p,"data-mobile-full-height":b,className:(0,o.cn)(i,s),...f})});s.displayName="Textarea"},58709:(e,t,l)=>{l.r(t),l.d(t,{default:()=>S});var r=l(95155),a=l(12115),n=l(5917),o=l(75426),i=l(39867),s=l(95740),d=l(13804),c=l(73161),u=l(27329),m=l(71724),h=l(56367),x=l(13786);let p="spooky night",b=["spooky night","do not read"];function f(e){let t=Number(e);return Number.isFinite(t)?Math.min(10,Math.max(1,Math.round(t))):7}var g=l(49498),v=l(70517);
1function w(e){return Number(e).toLocaleString()}function y(e,t,l,r,a,n){let o=Math.min(n,r/2,a/2);e.beginPath(),e.moveTo(t+o,l),e.lineTo(t+r-o,l),e.quadraticCurveTo(t+r,l,t+r,l+o),e.lineTo(t+r,l+a-o),e.quadraticCurveTo(t+r,l+a,t+r-o,l+a),e.lineTo(t+o,l+a),e.quadraticCurveTo(t,l+a,t,l+a-o),e.lineTo(t,l+o),e.quadraticCurveTo(t,l,t+o,l),e.closePath()}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=Number.parseFloat(e);return Number.isFinite(l)?l:t}function j(e,t){var l;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(null==(l=t.lines)?void 0:l.length)return void t.lines.forEach(t=>{e.fillText(t.text,t.left+r,t.top+a)});e.fillText(t.text,t.clip.x+r,t.clip.y+a)}async function N(e){let{text:t,previewFrameElement:r,previewTextElement:a,onProgress:n,onDone:o,onError:i}=e;try{let e=(await l.e(45).then(l.t.bind(l,40045,23))).default,s=function(e){let{frameElement:t,textElement:l,text:r}=e,a=null==t?void 0:t.getBoundingClientRect(),n=t?window.getComputedStyle(t):null,o=l?window.getComputedStyle(l):null,i=null==l?void 0:l.getBoundingClientRect(),s=t&&l?function(e){let{textElement:t,frameElement:l,text:r}=e,a=null==t?void 0:t.firstChild;if(!a||a.nodeType!==Node.TEXT_NODE)return null;let n=l.getBoundingClientRect(),o=t.getBoundingClientRect(),i=document.createRange(),s=[];return(function(e){let t=[],l=null,r=0;return Array.from(String(e||"")).forEach(e=>{var a;let n=r,o=n+e.length;if(r=o,a=e,RegExp("\\p{M}","u").test(a)&&l){l.text+=e,l.end=o;return}l={text:e,start:n,end:o},t.push(l)}),t})(r).forEach(e=>{i.setStart(a,e.start),i.setEnd(a,e.end);let t=Array.from(i.getClientRects()).find(e=>e.width>0||e.height>0);if(!t){s.length>0&&(s[s.length-1].text+=e.text);return}if(t.bottom<o.top||t.top>o.bottom)return;let l=t.top-n.top,r=s.find(e=>4>Math.abs(e.top-l));r||(r={text:"",left:t.left-n.left,top:l},s.push(r)),r.text+=e.text,r.left=Math.min(r.left,t.left-n.left),r.top=Math.min(r.top,l)}),i.detach(),s.sort((e,t)=>e.top-t.top)}({frameElement:t,textElement:l,text:r}):null;return{width:Math.max(1,Math.round((null==a?void 0:a.width)||560)),height:Math.max(1,Math.round((null==a?void 0:a.height)||300)),text:String(r||""),lines:s,frame:{backgroundColor:(null==n?void 0:n.backgroundColor)||"#151e33",borderColor:(null==n?void 0:n.borderTopColor)||"rgba(255,255,255,0.1)",borderWidth:(null==n?void 0:n.borderTopWidth)||"1px",borderRadius:(null==n?void 0:n.borderTopLeftRadius)||"18px",paddingTop:(null==n?void 0:n.paddingTop)||"16px",paddingRight:(null==n?void 0:n.paddingRight)||"16px",paddingBottom:(null==n?void 0:n.paddingBottom)||"16px",paddingLeft:(null==n?void 0:n.paddingLeft)||"16px"},clip:{x:Math.max(0,Math.round(((null==i?void 0:i.left)||0)-((null==a?void 0:a.left)||0))),y:Math.max(0,Math.round(((null==i?void 0:i.top)||0)-((null==a?void 0:a.top)||0))),width:Math.max(1,Math.round((null==i?void 0:i.width)||(null==a?void 0:a.width)||560)),height:Math.max(1,Math.round((null==i?void 0:i.height)||(null==a?void 0:a.height)||300))},textStyle:{color:(null==o?void 0:o.color)||"#f8fafc",fontFamily:(null==o?void 0:o.fontFamily)||"'Courier New', Courier, monospace",fontSize:(null==o?void 0:o.fontSize)||"34px",fontWeight:(null==o?void 0:o.fontWeight)||"900",lineHeight:(null==o?void 0:o.lineHeight)||"1.5",letterSpacing:(null==o?void 0:o.letterSpacing)||"normal"}}}({frameElement:r,textElement:a,text:t}),d=document.createElement("canvas");d.width=s.width,d.height=s.height;let c=d.getContext("2d",{willReadFrequently:!0});if(!c)throw Error("Canvas context unavailable.");let u=new e({workers:2,quality:8,width:s.width,height:s.height,workerScript:"/gif.worker.js"});for(let e=0;e<16;e+=1)!function(e,t,l){let r=.92+.08*Math.sin(.85*l),a=2+2*Math.max(0,Math.sin(.85*l)),n=l%16/16,o=Math.max(34,.36*t.clip.height);e.clearRect(0,0,t.width,t.height),e.fillStyle="#0f172a",e.fillRect(0,0,t.width,t.height),e.fillStyle=t.frame.backgroundColor,y(e,0,0,t.width,t.height,k(t.frame.borderRadius,18)),e.fill();let i=k(t.frame.borderWidth,1);i>0&&(e.strokeStyle=t.frame.borderColor,e.lineWidth=i,y(e,i/2,i/2,t.width-i,t.height-i,k(t.frame.borderRadius,18)),e.stroke()),e.save(),e.beginPath(),e.rect(t.clip.x,t.clip.y,t.clip.width,t.clip.height),e.clip(),e.font="".concat(t.textStyle.fontWeight," ").concat(t.textStyle.fontSize," ").concat(t.textStyle.fontFamily),e.textAlign="left",e.textBaseline="top",e.globalCompositeOperation="screen";for(let r=2;r>=0;r-=1){let a=(n+.24*r)%1,i=1-.68*a,s=Math.sin((l+2.1*r)*.76)*(1.2+.7*r),d=7+a*o;e.fillStyle="rgba(167,243,208,0.88)",e.globalAlpha=Math.max(.035,(.2-.035*r)*i),e.shadowBlur=7+2*r,e.shadowColor="rgba(16,185,129,0.5)",j(e,t,s,d)}e.globalCompositeOperation="source-over",e.fillStyle=t.textStyle.color,e.globalAlpha=r,e.shadowBlur=a,e.shadowColor="rgba(16,185,129,0.42)",j(e,t),e.restore(
1)}(c,s,e),u.addFrame(c,{delay:90,copy:!0}),n(Math.round(e/16*45));u.on("progress",e=>{n(45+Math.round(55*e))}),u.on("finished",e=>{let t=URL.createObjectURL(e),l=document.createElement("a");l.href=t,l.download="creepy-zalgo-text-generator.gif",document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(t),o()}),u.on("error",e=>i(String(e))),u.render()}catch(e){i(String(e))}}function C(e){let{value:t,onClick:l}=e;return(0,r.jsx)("button",{type:"button",onClick:l,className:"rounded-[0.9rem] border border-slate-200 bg-white px-3 py-2 text-sm font-black text-slate-700 transition hover:border-emerald-200 hover:bg-emerald-50 hover:text-emerald-700",children:t})}function M(e){let{label:t,value:l,tone:a="slate"}=e;return(0,r.jsxs)("span",{className:(0,g.cn)("rounded-full px-2.5 py-1 text-[0.68rem] font-black uppercase tracking-[0.1em] sm:text-xs","emerald"===a?"bg-emerald-50 text-emerald-700":"amber"===a?"bg-amber-50 text-amber-700":"bg-slate-100 text-slate-500"),children:[t,": ",l]})}function S(){let e=(0,a.useRef)(null),t=(0,a.useRef)(null),l=(0,a.useRef)(null),[g,y]=(0,a.useState)(p),[k,j]=(0,a.useState)(7),[S,T]=(0,a.useState)(0),[R,A]=(0,a.useState)(!1),[E,_]=(0,a.useState)(""),[F,z]=(0,a.useState)(0),[L,B]=(0,a.useState)(!1),I=g.trim().length>0,G=f(k),H=(0,a.useMemo)(()=>I?function(){let{text:e="",chaos:t=7,seed:l=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return"";let r=function(e){let t=f(e);return t>=9?3:t>=6?2:1}(t),a=function(e){let t=f(e);return(0,x.Cf)(4+9*t)}(t),n=e;for(let e=0;e<r;e+=1)n=(0,x.Ap)({text:n,preset:"cursed",style:"balanced",intensity:a,seed:"creepy-zalgo:".concat(l,":").concat(t,":").concat(e)});return n}({text:g,chaos:G,seed:S}):"",[I,g,G,S]),O=(0,a.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e);return{characters:t.length,bytes:(0,x.yx)(t),marks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e).match(/[\u0300-\u036f\u0489]/gu);return t?t.length:0}(t)}})(H),[H]),P=function(){let{chaos:e=7}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f(e);return t<=3?{label:"Readable",risk:"Low paste risk",advice:"Use this level when the words still need to stay clear."}:t<=7?{label:"Haunted",risk:"Medium paste risk",advice:"Good for short scary names, captions, and labels."}:{label:"Cursed",risk:"High paste risk",advice:"Best for tiny phrases; dense marks may clip or be stripped."}}({chaos:G});async function q(){if(H)try{await navigator.clipboard.writeText(H),A(!0),_("Creepy Zalgo text copied."),(0,v.nj)({action:"copy",path:"/creepy-zalgo-text-generator/",text:H}),e.current&&window.clearTimeout(e.current),e.current=window.setTimeout(()=>{A(!1)},1800)}catch(e){_("Copy failed in this browser. You can still select the output manually.")}}return(0,a.useEffect)(()=>{let e=(0,v.wF)();e&&y(e)},[]),(0,a.useEffect)(()=>()=>{e.current&&window.clearTimeout(e.current)},[]),(0,r.jsx)("section",{className:"mx-auto mt-2 w-full max-w-[78rem] pb-16 sm:mt-4 sm:pb-24 lg:mt-6 lg:pb-0",id:"tool",children:(0,r.jsxs)("div",{className:"rounded-[1.6rem] border-2 border-slate-950 bg-white p-2.5 shadow-[0_34px_90px_-52px_rgba(15,23,42,0.28)] sm:rounded-[2.3rem] sm:border-[3px] sm:p-4 lg:p-5",children:[(0,r.jsxs)("div",{className:"grid min-w-0 gap-2 sm:gap-3 xl:grid-cols-[minmax(0,0.95fr)_minmax(0,0.86fr)_minmax(0,1fr)]",children:[(0,r.jsxs)("section",{className:"min-w-0 rounded-[1.2rem] border border-slate-200 bg-white p-3 sm:rounded-[1.55rem] sm:p-4",children:[(0,r.jsxs)("div",{className:"flex items-end justify-between gap-4",children:[(0,r.jsx)("p",{className:"text-xl font-black tracking-tight text-slate-950 sm:text-[1.65rem]",children:"Input"}),(0,r.jsxs)("p",{className:"shrink-0 text-xs font-medium text-slate-500 sm:text-sm",children:[w(g.length)," chars"]})]}),(0,r.jsx)(h.T,{value:g,onChange:function(e){y(e.target.value),A(!1)},placeholder:"Type short text to make it creepy...","data-mobile-full-height":"true",className:"mt-2 min-h-[112px] resize-none rounded-[1rem] border border-slate-200 bg-white px-3 py-3 font-mono text-lg font-medium leading-tight text-slate-900 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-300 sm:mt-4 sm:min-h-[170px] sm:rou
1nded-[1.35rem] sm:px-4 sm:py-4 sm:text-2xl"}),(0,r.jsx)("div",{className:"mt-3 flex flex-wrap gap-2 sm:mt-4",children:b.map(e=>(0,r.jsx)(C,{value:e,onClick:()=>{y(e),T(e=>e+1),_("Example loaded.")}},e))})]}),(0,r.jsxs)("section",{className:"min-w-0 rounded-[1.2rem] border border-slate-200 bg-white p-3 sm:rounded-[1.55rem] sm:p-4",children:[(0,r.jsxs)("div",{className:"flex items-end justify-between gap-4",children:[(0,r.jsx)("p",{className:"text-xl font-black tracking-tight text-slate-950 sm:text-[1.65rem]",children:"Chaos"}),(0,r.jsxs)("p",{className:"text-base font-black text-emerald-700 sm:text-lg",children:[G," / 10"]})]}),(0,r.jsx)("input",{type:"range",min:"1",max:"10",step:"1",value:G,onChange:e=>{j(Number(e.target.value)),A(!1)},className:"tool-range mt-3 sm:mt-5","aria-label":"Zalgo chaos level"}),(0,r.jsxs)("div",{className:"mt-3 rounded-[1rem] border border-slate-200 bg-slate-50 px-3 py-3 sm:mt-5 sm:rounded-[1.2rem] sm:px-4",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsx)("p",{className:"text-sm font-black tracking-tight text-slate-900 sm:text-base",children:P.label}),(0,r.jsx)("p",{className:"rounded-full border border-white bg-white px-2.5 py-1 text-[0.68rem] font-black uppercase tracking-[0.12em] text-amber-700 shadow-sm sm:text-xs",children:P.risk})]}),(0,r.jsx)("p",{className:"mt-1 text-xs font-medium leading-relaxed text-slate-500 sm:text-sm",children:P.advice})]}),(0,r.jsx)("div",{className:"mt-3 sm:mt-5",children:(0,r.jsxs)("div",{className:"rounded-[1rem] border border-amber-100 bg-amber-50 px-3 py-3 text-center",children:[(0,r.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-amber-700",children:"GIF"}),(0,r.jsx)("p",{className:"mt-1 text-lg font-black tracking-tight text-slate-950",children:L?"".concat(F,"%"):"Ready"})]})})]}),(0,r.jsxs)("section",{"aria-live":"polite",className:"min-w-0 rounded-[1.2rem] border border-slate-900 bg-slate-900 p-3 sm:rounded-[1.55rem] sm:p-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsx)("p",{className:"text-xl font-black tracking-tight text-white sm:text-[1.65rem]",children:"Output"}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-wrap justify-end gap-1.5",children:[(0,r.jsx)(M,{label:"bytes",value:w(O.bytes)}),(0,r.jsx)(M,{label:"marks",value:w(O.marks),tone:"emerald"})]})]}),(0,r.jsx)("div",{ref:t,className:"mt-3 min-w-0 rounded-[1.1rem] border border-white/10 bg-white/[0.03] p-3 sm:mt-4 sm:rounded-[1.35rem] sm:p-4",children:(0,r.jsx)("div",{ref:l,className:"max-h-[9rem] min-h-[116px] w-full overflow-auto whitespace-pre-wrap break-words font-mono text-[1.2rem] font-black leading-[1.35] text-slate-100 sm:max-h-[18rem] sm:min-h-[170px] sm:text-[2.15rem] sm:leading-[1.5]",children:H||"Your creepy Zalgo text will appear here."})}),(0,r.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:mt-4",children:[(0,r.jsxs)(c.$,{onClick:q,disabled:!H,className:"h-12 rounded-[1rem] border border-emerald-800 bg-emerald-700 px-3 text-sm font-black text-white hover:bg-emerald-800 sm:h-14 sm:text-base",children:[R?(0,r.jsx)(n.A,{className:"size-4"}):(0,r.jsx)(o.A,{className:"size-4"}),R?"Copied":"Copy Text"]}),(0,r.jsxs)(c.$,{onClick:function(){H&&!L&&(B(!0),z(1),_("Generating animated GIF..."),N({text:H,previewFrameElement:t.current,previewTextElement:l.current,onProgress:e=>z(e),onDone:()=>{B(!1),z(100),_("GIF downloaded."),(0,v.nj)({action:"download",path:"/creepy-zalgo-text-generator/",text:H}),window.setTimeout(()=>z(0),2500)},onError:e=>{B(!1),z(0),_("GIF export failed: ".concat(e))}}))},disabled:!H||L,variant:"outline",className:"h-12 rounded-[1rem] border border-emerald-400 bg-slate-950 px-3 text-sm font-black text-white hover:bg-slate-800 hover:text-white disabled:opacity-50 sm:h-14 sm:text-base",children:[(0,r.jsx)(i.A,{className:"size-4"}),L?"GIF ".concat(F,"%"):"Download GIF"]})]})]})]}),(0,r.jsxs)("div",{className:"mt-2 grid min-w-0 grid-cols-1 gap-2 sm:mt-3 sm:grid-cols-[1fr_0.72fr] sm:gap-3",children:[(0,r.jsxs)(c.$,{onClick:function(){I&&(T(e=>e+1),_("Fresh Zalgo pattern generated."))},disabled:!I,className:"h-12 rounded-[1rem] border border-emerald-800 bg-emerald-700 text-sm font-black text-white shadow-[0_10px_28px_-18px_rgba(4,120,87,0.55)] hover:bg-emerald-800 sm:h-14 sm:text-base",children:[(0,r.jsx)(s.A,{className:"size-4"}),"Generate Zalgo"]}),(0,r.jsxs)(c.$,{variant:"outline",onClick:function(){y(p),j(7),T(0),A(!1),z(0),_("Draft reset.")},className:"h-12 rounded-[1rem] border border-slate-200 bg-white text-sm font-black text-slate-800 hover:bg-slate-50 sm:h-14 sm:text-base",children:[(0,r.jsx)(d.A,{className:"size-4"}),"Reset"]})]}),F>0&&F<100?(0,r.jsx)("div",{className:"mt-3 rounded-full bg-emerald-50 p-1",children:(0,r.jsx)("div",{className:"h-2 rounded-full bg-emerald-600 transition-all",style:{width:"".concat(F,"%")}})}):null,(0,r.jsx)("p",{className:"mt-3 rounded-[1rem] border border-slate-200 bg-slate-50 px-3 py-2 text-xs font-bold leading-relaxed text-slate-500 sm:text-sm",children:"One Zalgo function only. Higher cha
1os adds denser marks. Copy gives Unicode text; GIF gives an animated image."}),(0,r.jsx)(u.Ay,{currentPath:"/creepy-zalgo-text-generator/"}),(0,r.jsx)("p",{"aria-live":"polite",className:"sr-only",children:E}),(0,r.jsx)(m.A,{})]})})}},65229:(e,t,l)=>{l.d(t,{A:()=>r});let r=(0,l(19904).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71724:(e,t,l)=>{l.d(t,{A:()=>a});var r=l(95155);function a(e){let{saves:t=!1,className:l=""}=e;return(0,r.jsx)("p",{className:"mt-4 text-center text-3xl font-medium leading-tight text-slate-500 sm:text-[2.625rem] ".concat(l).trim(),children:t?"Runs and saves in your browser.":"Runs locally in your browser."})}},75426:(e,t,l)=>{l.d(t,{A:()=>r});let r=(0,l(19904).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.