1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jspdf.es.min-BC_XTvhz.js","assets/index-BuF13C9R.js","assets/index-B811haHf.css"])))=>i.map(i=>d[i]); 2import{aQ as m}from"./index-BuF13C9R.js";const i={w:210,h:297,margin:8};async function _(e,d="×××"){if(!e)throw new Error("no node");const[{default:o},{default:l}]=await Promise.all([m(()=>import("./html2canvas.esm-QH1iLAAe.js"),[]),m(()=>import("./jspdf.es.min-BC_XTvhz.js").then(n=>n.j),__vite__mapDeps([0,1,2]))]),t=await o(e,{scale:Math.min(2,window.devicePixelRatio||1)*1.5,backgroundColor:"#ffffff",useCORS:!0,logging:!1,ignoreElements:n=>{var r;return(r=n.classList)==null?void 0:r.contains("no-print")}}),c=new l("p","mm","a4"),a=i.w-i.margin*2,g=i.h-i.margin*2,w=t.width/a,h=Math.floor(g*w);let s=0,f=0;for(;s<t.height;){const n=Math.min(h,t.height-s),r=document.createElement("canvas");r.width=t.width,r.height=n,r.getContext("2d").drawImage(t,0,s,t.width,n,0,0,t.width,n),f>0&&c.addPage(),c.addImage(r.toDataURL("image/jpeg",.92),"JPEG",i.margin,i.margin,a,n/w),s+=n,f+=1}return c.save(`${String(d||"×××").replace(/[\\/:*?"<>|]/g,"_")}.pdf`),f}async function u(e,{scale:d}={}){var c;if(!(e!=null&&e.length))throw new Error("no pages");const[{nodeToCanvas:o},{default:l}]=await Promise.all([m(()=>import("./nodeToCanvas-zcvDbxEf.js"),[]),m(()=>import("./jspdf.es.min-BC_XTvhz.js").then(a=>a.j),__vite__mapDeps([0,1,2]))]);try{await((c=document.fonts)==null?void 0:c.ready)}catch{}const t=new l("p","mm","a4");for(let a=0;a<e.length;a+=1){const g=await o(e[a],{scale:d||Math.min(2,Math.max(1.5,window.devicePixelRatio||1))*1.4});a>0&&t.addPage(),t.addImage(g.toDataURL("image/jpeg",.94),"JPEG",0,0,i.w,i.h)}return t.output("blob")}function P(e,d="×××"){const o=URL.createObjectURL(e);if(!window.open(o,"_blank")){const t=document.createElement("a");t.href=o,t.download=`${String(d).replace(/[\\/:*?"<>|]/g,"_")}.pdf`,t.click()}return setTimeout(()=>URL.revokeObjectURL(o),6e4),o}export{_ as exportNodePdf,u as nodesToPdfBlob,P as openPdfBlob};
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.