PageSourceSearch

https://toolbreezy.com/_next/static/chunks/97750-c3fc6b60da80d0b9.js

js toolbreezy.com collected 2026-09-24 14:55:06 UTC 8,278 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97750],{97750:(e,t,a)=>{a.d(t,{g:()=>y,c:()=>b});var n=a(95155),s=a(12115),i=a(97003),r=a(90235),l=a(25016);let o=e=>{let t=e.name.lastIndexOf(".");return -1===t?"":e.name.slice(t).toLowerCase()},c=(e,t)=>""!==e.type&&e.type.startsWith(t),f=e=>t=>e.includes(o(t)),p=[".png",".jpg",".jpeg",".gif",".bmp",".webp",".avif",".heic",".heif",".tif",".tiff",".ico",".psd",".ai",".eps",".raw",".cr2",".nef",".arw",".dng",".mp3",".wav",".flac",".aac",".ogg",".oga",".opus",".m4a",".wma",".aiff",".mid",".midi",".mp4",".m4v",".mov",".avi",".mkv",".webm",".wmv",".flv",".mpg",".mpeg",".3gp",".zip",".rar",".7z",".gz",".bz2",".xz",".tar",".tgz",".jar",".iso",".dmg",".exe",".dll",".so",".dylib",".bin",".msi",".deb",".rpm",".apk",".class",".wasm",".ttf",".otf",".woff",".woff2",".eot",".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".odt",".ods",".odp",".sqlite",".db",".mdb",".pyc",".o",".a",".lib",".pak",".blend",".fbx",".glb"],m=e=>""===e.type&&!p.includes(o(e)),d=[".txt",".text",".md",".markdown",".log",".csv",".tsv",".json",".jsonl",".ndjson",".xml",".yaml",".yml",".html",".htm",".css",".js",".ts",".ini",".conf",".env",".srt",".vtt",".edl",".sql",".rtf",".tex",".list",".dat"],u={text:{accept:".txt,.text,.md,.markdown,.log,.csv,.tsv,.json,.xml,.yaml,.yml,.html,.htm,.ini,.conf,.env,text/*",formats:"TXT, MD, CSV, JSON, or any plain text file",noun:"a text file",nouns:"text files",matches:e=>c(e,"text/")||d.includes(o(e))||m(e),text:!0},list:{accept:".txt,.text,.csv,.tsv,.md,.log,.edl,text/*",formats:"TXT or CSV, one entry per line",noun:"a list file",nouns:"list files",matches:e=>c(e,"text/")||d.includes(o(e))||m(e),text:!0},csv:{accept:".csv,.tsv,.txt,text/csv,text/tab-separated-values,text/plain",formats:"CSV, TSV, or TXT",noun:"a CSV file",nouns:"CSV files",matches:e=>c(e,"text/")||[".csv",".tsv",".txt",".text"].includes(o(e))||"application/vnd.ms-excel"===e.type||m(e),text:!0},json:{accept:".json,.jsonl,.ndjson,.txt,application/json,text/plain",formats:"JSON, JSONL, or TXT",noun:"a JSON file",nouns:"JSON files",matches:e=>"application/json"===e.type||c(e,"text/")||[".json",".jsonl",".ndjson",".txt"].includes(o(e))||m(e),text:!0},xml:{accept:".xml,.txt,text/xml,application/xml,text/plain",formats:"XML or TXT",noun:"an XML file",nouns:"XML files",matches:e=>e.type.includes("xml")||c(e,"text/")||[".xml",".txt",".text"].includes(o(e))||m(e),text:!0},subtitle:{accept:".srt,.vtt,.sbv,.txt,text/vtt,text/plain",formats:"SRT, VTT, or TXT",noun:"a subtitle file",nouns:"subtitle files",matches:e=>c(e,"text/")||[".srt",".vtt",".sbv",".txt"].includes(o(e))||m(e),text:!0},image:{accept:"image/*",formats:"PNG, JPG, WebP, or GIF",noun:"an image",nouns:"images",matches:e=>c(e,"image/")||f([".png",".jpg",".jpeg",".jfif",".pjpeg",".pjp",".webp",".gif",".apng",".bmp",".dib",".avif",".svg",".svgz",".heic",".heif",".tif",".tiff",".ico",".cur"])(e),text:!1},audio:{accept:"audio/*",formats:"MP3, WAV, M4A, or OGG",noun:"an audio file",nouns:"audio files",matches:e=>c(e,"audio/")||f([".mp3",".wav",".m4a",".ogg",".oga",".flac",".aac",".opus",".weba"])(e),text:!1},video:{accept:"video/*",formats:"MP4, WebM, or MOV",noun:"a video",nouns:"videos",matches:e=>c(e,"video/")||f([".mp4",".webm",".mov",".m4v",".mkv",".avi",".ogv"])(e),text:!1},pdf:{accept:".pdf,application/pdf",formats:"PDF",noun:"a PDF",nouns:"PDFs",matches:e=>"application/pdf"===e.type||".pdf"===o(e),text:!1},any:{accept:"",formats:"any file",noun:"a file",nouns:"files",matches:()=>!0,text:!1}},x=e=>u[e];var v=a(51851),g=a(81322);let h=e=>e?Array.from(e.types):[];function y({kind:e,arity:t,maxBytes:a,maxFiles:i,onFile:o,onFiles:c,folders:f="reject",label:p,title:m,hint:d,id:u,pickerAccept:g,className:y}){let b=x(e),w=t??(c?"many":"one"),D=(0,s.useRef)(null),[k,T]=(0,s.useState)(!1),[N,C]=(0,s.useState)(""),S=(0,s.useId)(),E=u??`drop-${S}`,A=(0,s.useCallback)((e,t)=>{if(0===e.length)return void C((0,v.NV)(t,b,f));let n=(0,v.HU)(e,{kind:b,arity:w,maxBytes:a,maxFiles:i});C(n.notice),0!==n.accepted.length&&(c?c(n.accepted):o&&n.accepted[0]&&o(n.accepted[0]))},[b,w,a,i,o,c,f]);(0,s.useEffect)(()=>{let e=e=>{let t=Array.from(e.clipboardData?.files??[]);if(0===t.length)return;let a=e.target;if(a instanceof HTMLElement){if(a.isContentEditable)return;let e=a.tagName;if("TEXTAREA"===e||"INPUT"===e||"SELECT"===e)return}e.preventDefault(),A(t,Array.from(e.clipboardData?.types??[]))};return window.addEventListener("paste",e),()=>window.removeEventListener("paste",e)},[A]);let P=(0,s.useCallback)(e=>{e.preventDefault(),T(!1);let t=e.dataTransfer,a=h(t),n=Array.from(t.files);if("accept"===f){let e=[];for(let a=0;a<t.items.length;a+=1){let n=t.items[a];if(!n||"file"!==n.kind)continue;let s="function"==typeof n.webkitGetAsEntry?n.webkitGetAsEntry():null;s&&e.push(s)}if(e.some(e=>e.isDirectory))return void j(e).then(e=>A(e,a))}A(n,a)},[f,A]);
1return(0,n.jsxs)("div",{className:(0,l.cn)("space-y-1.5",y),children:[p&&(0,n.jsx)(r.J,{htmlFor:E,children:p}),(0,n.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>D.current?.click(),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D.current?.click())},onDragOver:e=>{e.preventDefault(),T(!0)},onDragLeave:()=>T(!1),onDrop:P,onPaste:e=>{let t=Array.from(e.clipboardData?.files??[]);0!==t.length&&(e.preventDefault(),A(t,h(e.clipboardData)))},className:(0,l.cn)("flex cursor-pointer flex-col items-center justify-center gap-1 rounded-md border border-dashed px-4 py-8 text-center text-sm transition-colors",k?"border-primary bg-accent":"border-input hover:bg-accent"),children:[(0,n.jsx)("span",{className:"font-medium",children:m??(0,v.W2)(b,w)}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:d??`${b.formats}, nothing is uploaded`}),(0,n.jsx)("input",{ref:D,id:E,type:"file",accept:g??(b.accept||void 0),multiple:"many"===w,className:"hidden",onChange:e=>{A(Array.from(e.target.files??[]),[]),e.target.value=""}})]}),N&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:N})]})}function b({kind:e,arity:t="one",maxBytes:a,maxFiles:r,onText:o,onTexts:c,children:f,hint:p,className:m}){let d=x(e),u=(0,s.useRef)(null),[y,b]=(0,s.useState)(!1),[j,w]=(0,s.useState)(""),D=(0,s.useCallback)((e,n)=>{if(0===e.length)return void w((0,v.NV)(n,d,"reject"));let s=(0,v.HU)(e,{kind:d,arity:t,maxBytes:a,maxFiles:r});if(0===s.accepted.length)return void w(s.notice);Promise.all(s.accepted.map(async e=>{let t=await (0,g.G)(e);return{text:t.text,file:e,note:t.note}})).then(e=>{let t=e.map(e=>e.note).filter(e=>""!==e);if(w([s.notice,...new Set(t)].filter(e=>""!==e).join(" ")),c)c(e.map(e=>({text:e.text,file:e.file})));else{let t=e[0];o&&t&&o(t.text,t.file)}},e=>{w(e instanceof Error?e.message:"That file could not be read as text.")})},[d,t,a,r,o,c]);return(0,n.jsxs)("div",{className:(0,l.cn)("space-y-1.5",m),children:[(0,n.jsx)("div",{onDragOver:e=>{e.preventDefault(),b(!0)},onDragLeave:()=>b(!1),onDrop:e=>{e.preventDefault(),b(!1),D(Array.from(e.dataTransfer.files),h(e.dataTransfer))},onPaste:e=>{let t=Array.from(e.clipboardData?.files??[]);0!==t.length&&(e.preventDefault(),D(t,h(e.clipboardData)))},className:(0,l.cn)("rounded-md transition-colors",y&&"ring-2 ring-primary ring-offset-2"),children:f}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)(i.$,{type:"button",variant:"outline",size:"sm",onClick:()=>u.current?.click(),children:(0,v.iJ)(d,t)}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:p??(0,v.Y_)(d,t)})]}),(0,n.jsx)("input",{ref:u,type:"file",accept:d.accept||void 0,multiple:"many"===t,className:"hidden",onChange:e=>{D(Array.from(e.target.files??[]),[]),e.target.value=""}}),j&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:j})]})}async function j(e){let t=[],a=async e=>{if(e.isFile){let a=await new Promise(t=>{e.file(e=>t(e),()=>t(null))});a&&t.push(a);return}if(!e.isDirectory)return;let n=e.createReader(),s=[];for(;;){let e=await new Promise(e=>{n.readEntries(t=>e(t),()=>e([]))});if(0===e.length)break;s.push(...e)}for(let e of(s.sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0})),s))await a(e)};for(let t of[...e].sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0})))await a(t);return t}}}]);

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.