PageSourceSearch

https://www.mybiohack.com/_next/static/chunks/74818.c197d313fb6ec062.js

js mybiohack.com collected 2026-09-28 12:11:26 UTC 3,214 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e593c048-6a01-4ac7-9925-26b11f29b39a",e._sentryDebugIdIdentifier="sentry-dbid-e593c048-6a01-4ac7-9925-26b11f29b39a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74818],{74818:(e,t,l)=>{l.r(t),l.d(t,{generateArtifactPDF:()=>o});let a={protocol:"PROTOCOL",diet_plan:"DIET PLAN",supplement_stack:"SUPPLEMENT STACK",recovery_plan:"RECOVERY PLAN",general:"PLAN"};function r(e){return e.replace(/[–—]/g,"-").replace(/[‘’‚]/g,"'").replace(/[“”„]/g,'"').replace(/…/g,"...").replace(/·/g,"-").replace(/[•◦‣]/g,"*").replace(/[^\x00-\x7F]/g,"")}async function o(e,t){let{jsPDF:o}=await Promise.all([l.e(70293),l.e(53930),l.e(54233)]).then(l.bind(l,18831)),n=new o({orientation:"portrait",format:"a4"}),i=n.internal.pageSize.getWidth(),s=n.internal.pageSize.getHeight(),c=i-40,p=0,g=1,f=[26,18,9],d=[200,169,110],u=[138,128,112];function h(e){p+e>s-18&&(_(),n.addPage(),g+=1,p=20)}function _(){n.setTextColor(...u),n.setFontSize(7),n.setFont("helvetica","normal"),n.text("Educational information from MyBioHack. Not medical advice. Discuss changes with your healthcare provider.",20,s-10),n.text(`Page ${g}`,i-20,s-10,{align:"right"})}n.setFillColor(...f),n.rect(0,0,i,45,"F"),n.setTextColor(...d),n.setFontSize(8),n.setFont("helvetica","bold"),n.text(`MYBIOHACK \xb7 ${a[e.type]}`,20,16),n.setTextColor(255,255,255),n.setFontSize(18);let b=n.splitTextToSize(r(e.title),c);n.text(b[0]??"Untitled",20,30),n.setFontSize(9),n.setFont("helvetica","normal"),n.setTextColor(180,180,180);let x=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});if(n.text(`Generated ${x}`,20,40),p=58,t)try{n.addImage(t,"PNG",(i-90)/2,p,90,90),p+=104}catch(e){console.error("[artifact-pdf] failed to embed cover:",e)}for(let t of e.sections){h(30),n.setTextColor(...d),n.setFontSize(9),n.setFont("helvetica","bold"),n.text(r(t.label.toUpperCase()),20,p),p+=3,n.setDrawColor(...d),n.setLineWidth(.3),n.line(20,p,50,p),p+=7,n.setTextColor(...f),n.setFontSize(10),n.setFont("helvetica","normal");let e=r(t.content.replace(/```[\s\S]*?```/g,e=>e.replace(/```/g,"")).replace(/^\s{0,3}#{1,6}\s+/gm,"").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/__([^_]+)__/g,"$1").replace(/(?<!\*)\*([^*\n]+)\*(?!\*)/g,"$1").replace(/(?<!_)_([^_\n]+)_(?!_)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1 ($2)").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{0,3}[-*+]\s+/gm,"* ").replace(/\r\n/g,"\n").replace(/\n{3,}/g,"\n\n")).split(/\n\n+/);for(let t=0;t<e.length;t++){let l=e[t].trim();if(!l)continue;let a=/^\*\s/.test(l);for(let e of l.split("\n")){let t=e.trim();if(!t)continue;let l=/^\*\s/.test(t),a=l?t.replace(/^\*\s+/,""):t,r=l?25:20,o=l?c-5:c,i=n.splitTextToSize(a,o);for(let e=0;e<i.length;e++)h(6),l&&0===e&&(n.setTextColor(...d),n.text("•",20,p),n.setTextColor(...f)),n.text(i[e],r,p),p+=5}t<e.length-1&&!a&&(p+=3)}p+=9}_();let m=e.title.replace(/[^a-z0-9\-_ ]/gi,"").slice(0,60).trim()||"plan";n.save(`${m}.pdf`)}}}]);

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.