1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BrUlYJYU.js","./Cpj98o6Y.js"])))=>i.map(i=>d[i]); 2import{a1 as f}from"./DTWPx-xc.js";const h=9525,u=240,g=120;function w(r){try{const n=typeof atob=="function"?atob(r):Buffer.from(r,"base64").toString("binary"),t=new Uint8Array(n.length);for(let e=0;e<n.length;e++)t[e]=n.charCodeAt(e);return t}catch{return null}}function y(r){const n=r.split(",")[1];if(!n)return null;const t=w(n);if(!t||t.length<24||t[0]!==137||t[1]!==80||t[2]!==78||t[3]!==71)return null;const e=c=>(t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3])>>>0,s=e(16),i=e(20);return s&&i?{width:s,height:i}:null}function $(r){const n=Math.min(1,u/r.width,g/r.height);return{width:Math.round(r.width*n),height:Math.round(r.height*n)}}function b(r){return Math.round((r-5)/7*100)/100}const k=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function _(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(k,"")}const l='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',x="http://schemas.openxmlformats.org/spreadsheetml/2006/main",d="http://schemas.openxmlformats.org/officeDocument/2006/relationships",m="http://schemas.openxmlformats.org/package/2006/relationships";function P(r,n){const t=r.map((e,s)=>{const i=Math.round(e.displayHeightPx*.75)+6;return`<row r="${s+2}" ht="${i}" customHeight="1"><c r="A${s+2}" t="inlineStr"><is><t>${_(e.value)}</t></is></c></row>`}).join("");return l+`<worksheet xmlns="${x}" xmlns:r="${d}"><cols><col min="1" max="1" width="24" customWidth="1"/><col min="2" max="2" width="${n}" customWidth="1"/></cols><sheetData><row r="1"><c r="A1" t="inlineStr"><is><t>Code</t></is></c><c r="B1" t="inlineStr"><is><t>Barcode</t></is></c></row>`+t+'</sheetData><drawing r:id="rId1"/></worksheet>'}function R(r){const n=r.map((t,e)=>{const s=t.width*h,i=t.height*h;return`<xdr:oneCellAnchor><xdr:from><xdr:col>1</xdr:col><xdr:colOff>38100</xdr:colOff><xdr:row>${e+1}</xdr:row><xdr:rowOff>38100</xdr:rowOff></xdr:from><xdr:ext cx="${s}" cy="${i}"/><xdr:pic><xdr:nvPicPr><xdr:cNvPr id="${e+2}" name="Barcode ${e+1}"/><xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr></xdr:nvPicPr><xdr:blipFill><a:blip xmlns:r="${d}" r:embed="rId${e+1}"/><a:stretch><a:fillRect/></a:stretch></xdr:blipFill><xdr:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${s}" cy="${i}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></xdr:spPr></xdr:pic><xdr:clientData/></xdr:oneCellAnchor>`}).join("");return l+'<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">'+n+"</xdr:wsDr>"}async function T(r){const{default:n}=await f(async()=>{const{default:o}=await import("./BrUlYJYU.js").then(a=>a.j);return{default:o}},__vite__mapDeps([0,1]),import.meta.url),t=r.map(o=>{const a=y(o.pngDataUrl)??{width:200,height:80};return{code:o,size:$(a)}}),e=new n,s=t.reduce((o,a)=>Math.max(o,a.size.width),100);e.file("[Content_Types].xml",l+'<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Default Extension="png" ContentType="image/png"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/drawings/drawing1.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/></Types>'),e.file("_rels/.rels",l+`<Relationships xmlns="${m}"><Relationship Id="rId1" Type="${d}/officeDocument" Target="xl/workbook.xml"/></Relationships>`),e.file("xl/workbook.xml",l+`<workbook xmlns="${x}" xmlns:r="${d}"><sheets><sheet name="Barcodes" sheetId="1" r:id="rId1"/></sheets></workbook>`),e.file("xl/_rels/workbook.xml.rels",l+`<Relationships xmlns="${m}"><Relationship Id="rId1" Type="${d}/worksheet" Target="worksheets/sheet1.xml"/></Relationships>`),e.file("xl/worksheets/sheet1.xml",P(t.map(o=>({value:o.code.row.value,displayHeightPx:o.size.height})),b(s+12))),e.file("xl/worksheets/_rels/sheet1.xml.rels",l+`<Relationships xmlns="${m}"><Relationship Id="rId1" Type="${d}/drawing" Target="../drawings/drawing1.xml"/></Relationships>`),e.file("xl/drawings/drawing1.xml",R(t.map(o=>o.size))),e.file("xl/drawings/_rels/drawing1.xml.rels",l+`<Relationships xmlns="${m}">`+t.map((o,a)=>`<Relationship Id="rId${a+1}" Type="${d}/image" Target="../media/image${a+1}.png"/>`).join("")+"</Relationships>"),t.forEach((o,a)=>{e.file(`xl/media/image${a+1}
2.png`,o.code.pngDataUrl.split(",")[1]??"",{base64:!0})});const i=await e.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),c=URL.createObjectURL(i),p=document.createElement("a");p.href=c,p.download="unio24-barcodes.xlsx",p.click(),URL.revokeObjectURL(c)}export{h as EMU_PER_PX,R as buildDrawingXml,P as buildSheetXml,b as columnWidthChars,$ as displaySize,T as exportXlsx,y as pngPixelSize};
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.