PageSourceSearch

https://app.tinn.app/_next/static/chunks/7195-7c4053c05feafa55.js

js tinn.app collected 2026-10-02 01:15:56 UTC 10,369 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fae0cfe5-8571-4479-9b78-58c1c93d91c0",e._sentryDebugIdIdentifier="sentry-dbid-fae0cfe5-8571-4479-9b78-58c1c93d91c0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7195],{47195:function(e,n,t){t.d(n,{Z:function(){return j}});var i=t(57437),o=t(57818),r=t(2265),l=t(70518),a=t(87592),s=t(82616),d=t(44828),c=t(54817),p=t(37164),u=t(75134),x=t(23787),f=t(74697),g=t(81822);t(21883),t(16230);let h=(0,o.default)(()=>Promise.all([t.e(489),t.e(9109),t.e(7839)]).then(t.bind(t,37839)).then(e=>(e.pdfjs.GlobalWorkerOptions.workerSrc="/pdf.worker.min.mjs",{default:e.Document})),{loadableGenerated:{webpack:()=>[37839]},ssr:!1,loading:()=>(0,i.jsx)(b,{})}),y=(0,o.default)(()=>Promise.all([t.e(489),t.e(9109),t.e(7839)]).then(t.bind(t,37839)).then(e=>({default:e.Page})),{loadableGenerated:{webpack:()=>[37839]},ssr:!1});function b(){return(0,i.jsxs)("div",{style:{width:"100%",minHeight:320,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:14,color:"#8A8680",fontFamily:g.nb,fontSize:13},children:[(0,i.jsx)("div",{style:{width:36,height:36,border:"3px solid rgba(242,240,234,0.12)",borderTopColor:"#182A41",borderRadius:"50%",animation:"pdfSpin 0.8s linear infinite"}}),(0,i.jsx)("span",{children:"Loading document…"}),(0,i.jsx)("style",{children:"@keyframes pdfSpin { to { transform: rotate(360deg); } }"})]})}let m={background:"none",border:"1px solid #3A3A36",borderRadius:5,cursor:"pointer",color:"#C2BEB8",padding:"4px 7px",display:"flex",alignItems:"center",gap:4,fontFamily:g.nb,fontSize:12,flexShrink:0,lineHeight:1};function j(e){let{url:n,filename:t,onClose:o}=e,j=function(e){if(e.startsWith("r2://")){let n=e.replace("r2://","");return"/api/storage/proxy?key=".concat(encodeURIComponent(n))}try{let n=new URL(e);if(n.hostname.endsWith(".r2.cloudflarestorage.com")){let e=n.pathname.replace(/^\//,"").split("/").slice(1).join("/");if(e)return"/api/storage/proxy?key=".concat(encodeURIComponent(e))}if(n.origin===window.location.origin)return e;if("https:"===n.protocol)return"/api/pdf-proxy?url=".concat(encodeURIComponent(e))}catch(e){}return e}(n),k=/^https?:\/\//.test(j),[w,S]=(0,r.useState)(0),[v,C]=(0,r.useState)(1),[E,A]=(0,r.useState)("1"),[F,z]=(0,r.useState)(1.2),[D,I]=(0,r.useState)(!1),[R,Z]=(0,r.useState)(""),[_,P]=(0,r.useState)(!1),L=(0,r.useRef)({pageNumber:v,numPages:w,onClose:o});L.current={pageNumber:v,numPages:w,onClose:o},(0,r.useEffect)(()=>{function e(e){var n;if((null===(n=e.target)||void 0===n?void 0:n.tagName)==="INPUT")return;let{pageNumber:t,numPages:i,onClose:o}=L.current;if("Escape"===e.key){o();return}("ArrowRight"===e.key||"ArrowDown"===e.key)&&t<i&&(C(e=>e+1),A(String(t+1))),("ArrowLeft"===e.key||"ArrowUp"===e.key)&&t>1&&(C(e=>e-1),A(String(t-1)))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let T=(0,r.useCallback)(()=>{C(e=>{let n=Math.max(1,e-1);return A(String(n)),n})},[]),W=(0,r.useCallback)(()=>{C(e=>{let n=Math.min(L.current.numPages,e+1);return A(String(n)),n})},[]);function B(){let e=parseInt(E,10);!isNaN(e)&&e>=1&&e<=w?C(e):A(String(v))}function N(){var e,n;R&&(null===(e=(n=window).find)||void 0===e||e.call(n,R,!1,!1,!0,!1,!0,!1))}return(0,i.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"PDF viewer — ".concat(t),onClick:e=>{e.target===e.currentTarget&&o()},style:{position:"fixed",inset:0,zIndex:9500,background:"rgba(26,26,24,0.75)",display:"flex",alignItems:"center",justifyContent:"center",padding:"48px 32px 24px",touchAction:"pan-y"},children:[(0,i.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:960,height:"100%",maxHeight:"92vh",background:"#1A1A18",borderRadius:12,boxShadow:"0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,i.jsxs)("div",{style:{height:48,background:"#242420",borderBottom:"1px solid #3A3A36",display:"flex",alignItems:"center",padding:"0 12px",gap:6,flexShrink:0,borderRadius:"12px 12px 0 0"},children:[(0,i.jsx)("span",{style:{fontFamily:g.nb,fontSize:13,fontWeight:500,color:"#F2F0EA",flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:4,minWidth:0},children:t}),w>0&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,flexShrink:0},children:[(0,i.jsx)("button",{onClick:T,disabled:v<=1,"aria-label":"Previous page",style:{...m,opacity:v<=1?.3:1},children:(0,i.jsx)(l.Z,{size:13})}),(0,i.jsx)("input",{value:E,onChange:e=>A(e.target.value),onBlur:B,onKeyDown:e=>"Enter"===e.key&&B(),"aria-label":"Page number",style:{width:32,textAlign:"center",background:"#2A2A26",border:"1px solid #3A3A36",borderRadius:4,color:"#F2F0EA",fontFamily:"'Space Mono', monospace",fontSize:11,padding:"3px 2px",outline:"none"}}),(0,i.jsxs)("span",{style:{color:"#706E68",fontFamily:"'Space Mono', monospace",fontSize:11,whiteSpace:"nowrap"},children:["/ ",w]}),(0,i.jsx)("button",{onClick:W,disabled:v>=w,"aria-label":"Next page",style:{...m,opacity:v>=w?.3:1},children:(0,i.jsx)(a.Z,{size:13})})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:3,flexShrink:0},children:[(0,i.jsx)("button",{onClick:function(){z(e=>Math.max(.5,parseFloat((e-.25).toFixed(2))))},style:m,title:"Zoom out",children:(0,i.jsx)(s.Z,{size:13})}),(0,i.jsxs)("button",{onClick:()=>z(1.2),style:{...m,minWidth:40,justifyContent:"center"},title:"Reset zoom",children:[Math.round(100*F),"%"]}),(0,i.jsx)("button",{onClick:function(){z(e=>Math.min(3,parseFloat((e+.25).toFixed(2))))},style:m,title:"Zoom in",children:(0,i.jsx)(d.Z,{size:13})})]}),(0,i.jsx)("button",{onClick:()=>I(e=>!e),style:{...m,opacity:D?1:.6},title:"Search",children:(0,i.jsx)(c.Z,{size:13})}),(0,i.jsxs)("button",{onClick:function(){let e=document.createElement("a");e.href=j,e.download=t,e.target="_blank",e.click()},style:m,title:"Download",children:[(0,i.jsx)(p.Z,{size:13}),(0,i.jsx)("span",{className:"pdf-lbl",children:"Download"})]}),(0,i.jsx)("button",{onClick:function(){let e=document.createElement("iframe");e.style.display="none",e.src=j,document.body.appendChild(e),e.onload=()=>{var n;null===(n=e.contentWindow)||void 0===n||n.print(),setTimeout(()=>document.body.removeChild(e),2e3)}},style:m,title:"Print",children:(0,i.jsx)(u.Z,{size:13})}),(0,i.jsx)("a",{href:j,target:"_blank",rel:"noopener noreferrer",style:{...m,textDecoration:"none"},title:"Open in new tab",children:(0,i.jsx)(x.Z,{size:13})}),(0,i.jsx)("button",{onClick:o,style:{...m,border:"none",marginLeft:2,color:"#F2F0EA"},title:"Close (Esc)","aria-label":"Close",children:(0,i.jsx)(f.Z,{size:18})})]}),D&&(0,i.jsxs)("div",{style:{background:"#1E1E1C",borderBottom:"1px solid #3A3A36",padding:"6px 14px",display:"flex",alignItems:"center",gap:8},children:[(0,i.jsx)(c.Z,{size:12,color:"#706E68"}),(0,i.jsx)("input",{autoFocus:!0,placeholder:"Find in document… (Enter)",value:R,onChange:e=>Z(e.target.value),onKeyDown:e=>{"Enter"===e.key&&N(),"Escape"===e.key&&(I(!1),Z(""))},style:{flex:1,background:"transparent",border:"none",outline:"none",color:"#F2F0EA",fontFamily:g.nb,fontSize:13}}),(0,i.jsx)("button",{onClick:N,style:{...m,background:"#182A41",border:"none",color:"#fff"},children:"Find"}),(0,i.jsx)("button",{onClick:()=>{I(!1),Z("")},style:{background:"none",border:"none",color:"#706E68",cursor:"pointer",padding:2},children:(0,i.jsx)(f.Z,{size:14})})]}),(0,i.jsx)("div",{style:{flex:1,overflow:"auto",background:"#4A4A46",display:"flex",flexDirection:"column",alignItems:"center",padding:"24px 16px",gap:16,WebkitOverflowScrolling:"touch",borderRadius:"0 0 12px 12px"},children:k?(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:14,padding:"60px 32px",color:"#C2BEB8",fontFamily:g.nb,textAlign:"center"},children:[(0,i.jsx)("span",{style:{fontSize:36,lineHeight:1},children:"\uD83D\uDD17"}),(0,i.jsx)("p",{style:{fontSize:14,margin:0},children:"This PDF is hosted on an external site."}),(0,i.jsx)("p",{style:{fontSize:12,color:"#8A8680",margin:0},children:"It can't be displayed inline — click below to open it in a new tab."}),(0,i.jsx)("a",{href:j,target:"_blank",rel:"noopener noreferrer",style:{marginTop:4,color:"#E8EBF0",fontWeight:600,fontSize:13,textDecoration:"underline"},children:"Open in new tab →"})]}):_?(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:14,padding:"60px 32px",color:"#C2BEB8",fontFamily:g.nb,textAlign:"center"},children:[(0,i.jsx)("span",{style:{fontSize:36,lineHeight:1},children:"⚠️"}),(0,i.jsx)("p",{style:{fontSize:14,margin:0},children:"Couldn't load this PDF in the viewer."}),(0,i.jsx)("p",{style:{fontSize:12,color:"#8A8680",margin:0},children:"This can happen with very large files or unsupported formats."}),(0,i.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",style:{marginTop:4,color:"#E8EBF0",fontWeight:600,fontSize:13,textDecoration:"underline"},children:"Open in new tab →"})]}):(0,i.jsx)("div",{style:{maxWidth:"100%",boxShadow:"0 4px 32px rgba(0,0,0,0.5)"},children:(0,i.jsx)(h,{file:j,onLoadSuccess:function(e){let{numPages:n}=e;S(n),C(1),A("1"),P(!1)},onLoadError:()=>P(!0),loading:(0,i.jsx)(b,{}),children:(0,i.jsx)(y,{pageNumber:v,scale:F,renderTextLayer:!0,renderAnnotationLayer:!1,loading:(0,i.jsx)(b,{})})})})}),w>1&&(0,i.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",bottom:36,left:"50%",transform:"translateX(-50%)",background:"rgba(26,26,24,0.8)",borderRadius:6,padding:"3px 10px",fontSize:10,
1color:"#706E68",fontFamily:"'Space Mono', monospace",pointerEvents:"none",whiteSpace:"nowrap",letterSpacing:"0.04em"},children:"← → navigate \xb7 Esc close"})]}),(0,i.jsx)("style",{children:"\n        .pdf-lbl { display: inline; }\n        @media (max-width: 600px) { .pdf-lbl { display: none; } }\n        .react-pdf__Page { position: relative; line-height: 0; }\n        /* Official TextLayer.css already sets color: transparent on spans — we\n           only tint the highlight colour so selection is readable on dark bg. */\n        .textLayer ::selection { background: rgba(45,74,62,0.35); }\n      "})]})}}}]);

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.