1const v={newline:10,reset:27};function T(t){if(!Number.isSafeInteger(t))throw new Error(`integer expected: ${t}`)}function N(t){if(!Number.isSafeInteger(t)||t<1||t>40)throw new Error(`Invalid version=${t}. Expected number [1..40]`)}function E(t,e){return t.toString(2).padStart(e,"0")}function A(t,e){const r=t%e;return r>=0?r:e+r}function b(t,e){return new Array(t).fill(e)}function I(...t){let e=0;for(const n of t)e=Math.max(e,n.length);const r=[];for(let n=0;n<e;n++)for(const i of t)n>=i.length||r.push(i[n]);return new Uint8Array(r)}function k(t,e,r){if(r<0||r+e.length>t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r+n])return!1;return!0}function U(){let t,e=1/0;return{add(r,n){r>=e||(t=n,e=r)},get:()=>t,score:()=>e}}function M(t){return{has:e=>t.includes(e),decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("alphabet.decode input should be array of strings");return e.map(r=>{if(typeof r!="string")throw new Error(`alphabet.decode: not string element=${r}`);const n=t.indexOf(r);if(n===-1)throw new Error(`Unknown letter: "${r}". Allowed: ${t}`);return n})},encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return e.map(r=>{if(T(r),r<0||r>=t.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${t.length})`);return t[r]})}}}class x{static size(e,r){if(typeof e=="number"&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw new Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw new Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return r!==void 0&&(e={width:Math.min(e.width,r.width),height:Math.min(e.height,r.height)}),e}static fromString(e){e=e.replace(/^\n+/g,"").replace(/\n+$/g,"");const r=e.split(String.fromCharCode(v.newline)),n=r.length,i=new Array(n);let o;for(const s of r){const h=s.split("").map(a=>{if(a==="X")return!0;if(a===" ")return!1;if(a!=="?")throw new Error(`Bitmap.fromString: unknown symbol=${a}`)});if(o&&h.length!==o)throw new Error(`Bitmap.fromString different row sizes: width=${o} cur=${h.length}`);o=h.length,i.push(h)}return o||(o=0),new x({height:n,width:o},i)}constructor(e,r){const{height:n,width:i}=x.size(e);this.data=r||Array.from({length:n},()=>b(i,void 0)),this.height=n,this.width=i}point(e){return this.data[e.y][e.x]}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};const{x:r,y:n}=this.xy(e);return{height:this.height-n,width:this.width-r}}xy(e){if(typeof e=="number"&&(e={x:e,y:e}),!Number.isSafeInteger(e.x))throw new Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw new Error(`Bitmap: invalid y=${e.y}`);return e.x=A(e.x,this.width),e.y=A(e.y,this.height),e}rect(e,r,n){const{x:i,y:o}=this.xy(e),{height:s,width:h}=x.size(r,this.size({x:i,y:o}));for(let a=0;a<s;a++)for(let d=0;d<h;d++)this.data[o+a][i+d]=typeof n=="function"?n({x:d,y:a},this.data[o+a][i+d]):n;return this}rectRead(e,r,n){return this.rect(e,r,(i,o)=>(n(i,o),o))}hLine(e,r,n){return this.rect(e,{width:r,height:1},n)}vLine(e,r,n){return this.rect(e,{width:1,height:r},n)}border(e=2,r){const n=this.height+2*e,i=this.width+2*e,o=b(e,r),s=Array.from({length:e},()=>b(i,r));return new x({height:n,width:i},[...s,...this.data.map(h=>[...o,...h,...o]),...s])}embed(e,r){return this.rect(e,r.size(),({x:n,y:i})=>r.data[i][n])}rectSlice(e,r=this.size()){const n=new x(x.size(r,this.size(this.xy(e))));return this.rect(e,r,({x:i,y:o},s)=>n.data[o][i]=s),n}inverse(){const{height:e,width:r}=this;return new x({height:r,width:e}).rect({x:0,y:0},1/0,({x:i,y:o})=>this.data[i][o])}scale(e){if(!Number.isSafeInteger(e)||e>1024)throw new Error(`invalid scale factor: ${e}`);const{height:r,width:n}=this;return new x({height:e*r,width:e*n}).rect({x:0,y:0},1/0,({x:o,y:s})=>this.data[Math.floor(s/e)][Math.floor(o/e)])}clone(){return new x(this.size()).rect({x:0,y:0},this.size(),({x:r,y:n})=>this.data[n][r])}
1assertDrawn(){this.rectRead(0,1/0,(e,r)=>{if(typeof r!="boolean")throw new Error(`Invalid color type=${typeof r}`)})}toString(){return this.data.map(e=>e.map(r=>r===void 0?"?":r?"X":" ").join("")).join(String.fromCharCode(v.newline))}toASCII(){const{height:e,width:r,data:n}=this;let i="";for(let o=0;o<e;o+=2){for(let s=0;s<r;s++){const h=n[o][s],a=o+1>=e?!0:n[o+1][s];!h&&!a?i+="â":!h&&a?i+="â":h&&!a?i+="â":h&&a&&(i+=" ")}i+=String.fromCharCode(v.newline)}return i}toTerm(){const e=String.fromCharCode(v.reset),r=e+"[0m",n=e+"[1;47m "+r,i=e+"[40m "+r;return this.data.map(o=>o.map(s=>s?i:n).join("")).join(String.fromCharCode(v.newline))}toSVG(){let e=`<svg xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 ${this.width} ${this.height}" version="1.1" xmlns="http://www.w3.org/2000/svg">`;return this.rectRead(0,1/0,({x:r,y:n},i)=>{i&&(e+=`<rect x="${r}" y="${n}" width="1" height="1" />`)}),e+="</svg>",e}toGIF(){const e=h=>[h&255,h>>>8&255],r=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(h,a)=>n.push(+(a===!0)));const i=126,o=[71,73,70,56,55,97,...r,246,0,0,255,255,255,...b(381,0),44,0,0,0,0,...r,0,7],s=Math.floor(n.length/i);for(let h=0;h<s;h++)o.push(i+1,128,...n.slice(i*h,i*(h+1)).map(a=>+a));return o.push(n.length%i+1,128,...n.slice(s*i).map(h=>+h)),o.push(1,129,0,59),new Uint8Array(o)}toImage(e=!1){const{height:r,width:n}=this.size(),i=new Uint8Array(r*n*(e?3:4));let o=0;for(let s=0;s<r;s++)for(let h=0;h<n;h++){const a=this.data[s][h]?0:255;i[o++]=a,i[o++]=a,i[o++]=a,e||(i[o++]=255)}return{height:r,width:n,data:i}}}const B=["low","medium","quartile","high"],L=["numeric","alphanumeric","byte","kanji","eci"],G=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],D={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},F={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},y={size:{encode:t=>21+4*(t-1),decode:t=>(t-17)/4},sizeType:t=>Math.floor((t+7)/17),alignmentPatterns(t){if(t===1)return[];const e=6,r=y.size.encode(t)-e-1,n=r-e,i=Math.ceil(n/28);let o=Math.floor(n/i);o%2?o+=1:n%i*2>=i&&(o+=2);const s=[e];for(let h=1;h<i;h++)s.push(r-(i-h)*o);return s.push(r),s},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(t,e){const r=y.ECCode[t]<<3|e;let n=r;for(let i=0;i<10;i++)n=n<<1^(n>>9)*1335;return(r<<10|n)^y.formatMask},versionBits(t){let e=t;for(let r=0;r<12;r++)e=e<<1^(e>>11)*7973;return t<<12|e},alphabet:{numeric:M("0123456789"),alphanumerc:M("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")},lengthBits(t,e){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[e][y.sizeType(t)]},modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(t,e){const r=G[t-1],n=D[e][t-1],i=F[e][t-1],o=Math.floor(r/i)-n,s=i-r%i;return{words:n,numBlocks:i,shortBlocks:s,blockLen:o,capacity:(r-n*i)*8,total:(n+o)*i+i-s}}},C=[(t,e)=>(t+e)%2==0,(t,e)=>e%2==0,(t,e)=>t%3==0,(t,e)=>(t+e)%3==0,(t,e)=>(Math.floor(e/2)+Math.floor(t/3))%2==0,(t,e)=>t*e%2+t*e%3==0,(t,e)=>(t*e%2+t*e%3)%2==0,(t,e)=>((t+e)%2+t*e%3)%2==0],f={tables:(t=>{const e=b(256,0),r=b(256,0);for(let n=0,i=1;n<256;n++)e[n]=i,r[i]=n,i<<=1,i&256&&(i^=t);return{exp:e,log:r}})(285),exp:t=>f.tables.exp[t],log(t){if(t===0)throw new Error(`GF.log: invalid arg=${t}`);return f.tables.log[t]%255},mul(t,e){return t===0||e===0?0:f.tables.exp[(f.tables.log[t]+f.tables.log[e])%255]},add:(t,e)=>t^e,pow:(t,e)=>f.tables.exp[f.tables.log[t]*e%255],inv(t){if(t===0)throw new Error(`GF.inverse: invalid arg=${t}`);return f.tables.exp[255-f.tables.log[t]]},polynomial(t){if(t.length==0)throw new Error("GF.polymomial: invalid length");if(t[0]!==0)return t;let e=0;for(;e<t.length-1&&t[e]==0;e++);return t.slice(e)},monomial(t,e){if(t<0)throw new Error(`GF.monomial: invalid degree=${t}`);if(e==0)return[0];
1let r=b(t+1,0);return r[0]=e,f.polynomial(r)},degree:t=>t.length-1,coefficient:(t,e)=>t[f.degree(t)-e],mulPoly(t,e){if(t[0]===0||e[0]===0)return[0];const r=b(t.length+e.length-1,0);for(let n=0;n<t.length;n++)for(let i=0;i<e.length;i++)r[n+i]=f.add(r[n+i],f.mul(t[n],e[i]));return f.polynomial(r)},mulPolyScalar(t,e){if(e==0)return[0];if(e==1)return t;const r=b(t.length,0);for(let n=0;n<t.length;n++)r[n]=f.mul(t[n],e);return f.polynomial(r)},mulPolyMonomial(t,e,r){if(e<0)throw new Error("GF.mulPolyMonomial: invalid degree");if(r==0)return[0];const n=b(t.length+e,0);for(let i=0;i<t.length;i++)n[i]=f.mul(t[i],r);return f.polynomial(n)},addPoly(t,e){if(t[0]===0)return e;if(e[0]===0)return t;let r=t,n=e;r.length>n.length&&([r,n]=[n,r]);let i=b(n.length,0),o=n.length-r.length,s=n.slice(0,o);for(let h=0;h<s.length;h++)i[h]=s[h];for(let h=o;h<n.length;h++)i[h]=f.add(r[h-o],n[h]);return f.polynomial(i)},remainderPoly(t,e){const r=Array.from(t);for(let n=0;n<t.length-e.length+1;n++){const i=r[n];if(i!==0)for(let o=1;o<e.length;o++)e[o]!==0&&(r[n+o]=f.add(r[n+o],f.mul(e[o],i)))}return r.slice(t.length-e.length+1,r.length)},divisorPoly(t){let e=[1];for(let r=0;r<t;r++)e=f.mulPoly(e,[1,f.pow(2,r)]);return e},evalPoly(t,e){if(e==0)return f.coefficient(t,0);let r=t[0];for(let n=1;n<t.length;n++)r=f.add(f.mul(e,r),t[n]);return r},euclidian(t,e,r){f.degree(t)<f.degree(e)&&([t,e]=[e,t]);let n=t,i=e,o=[0],s=[1];for(;2*f.degree(i)>=r;){let d=n,g=o;if(n=i,o=s,n[0]===0)throw new Error("rLast[0] === 0");i=d;let l=[0];const u=f.inv(n[0]);for(;f.degree(i)>=f.degree(n)&&i[0]!==0;){const c=f.degree(i)-f.degree(n),w=f.mul(i[0],u);l=f.addPoly(l,f.monomial(c,w)),i=f.addPoly(i,f.mulPolyMonomial(n,c,w))}if(l=f.mulPoly(l,o),s=f.addPoly(l,g),f.degree(i)>=f.degree(n))throw new Error(`Division failed r: ${i}, rLast: ${n}`)}const h=f.coefficient(s,0);if(h==0)throw new Error("sigmaTilde(0) was zero");const a=f.inv(h);return[f.mulPolyScalar(s,a),f.mulPolyScalar(i,a)]}};function z(t){return{encode(e){const r=f.divisorPoly(t),n=Array.from(e);return n.push(...r.slice(0,-1).fill(0)),Uint8Array.from(f.remainderPoly(n,r))},decode(e){const r=e.slice(),n=f.polynomial(Array.from(e));let i=b(t,0),o=!1;for(let l=0;l<t;l++){const u=f.evalPoly(n,f.exp(l));i[i.length-1-l]=u,u!==0&&(o=!0)}if(!o)return r;i=f.polynomial(i);const s=f.monomial(t,1),[h,a]=f.euclidian(s,i,t),d=b(f.degree(h),0);let g=0;for(let l=1;l<256&&g<d.length;l++)f.evalPoly(h,l)===0&&(d[g++]=f.inv(l));if(g!==d.length)throw new Error("RS.decode: invalid errors number");for(let l=0;l<d.length;l++){const u=r.length-1-f.log(d[l]);if(u<0)throw new Error("RS.decode: invalid error location");const c=f.inv(d[l]);let w=1;for(let m=0;m<d.length;m++)l!==m&&(w=f.mul(w,f.add(1,f.mul(d[m],c))));r[u]=f.add(r[u],f.mul(f.evalPoly(a,c),f.inv(w)))}return r}}}function O(t,e){const{words:r,shortBlocks:n,numBlocks:i,blockLen:o,total:s}=y.capacity(t,e),h=z(r);return{encode(a){const d=[],g=[];for(let w=0;w<i;w++){const m=w<n,p=o+(m?0:1);d.push(a.subarray(0,p)),g.push(h.encode(a.subarray(0,p))),a=a.subarray(p)}const l=I(...d),u=I(...g),c=new Uint8Array(l.length+u.length);return c.set(l),c.set(u,l.length),c},decode(a){if(a.length!==s)throw new Error(`interleave.decode: len(data)=${a.length}, total=${s}`);const d=[];for(let u=0;u<i;u++){const c=u<n;d.push(new Uint8Array(r+o+(c?0:1)))}let g=0;for(let u=0;u<o;u++)for(let c=0;c<i;c++)d[c][u]=a[g++];for(let u=n;u<i;u++)d[u][o]=a[g++];for(let u=o;u<o+r;u++)for(let c=0;c<i;c++){const w=c<n;d[c][u+(w?0:1)]=a[g++]}const l=[];for(const u of d)l.push(...Array.from(h.decode(u)).slice(0,-r));return Uint8Array.from(l)}}}function q(t,e,r,n=!1){const i=y.size.encode(t);let o=new x(i+2);const s=new x(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);o=o.embed(0,s).embed({x:-s.width,y:0},s).embed({x:0,y:-s.height},s),o=o.rectSlice(1,i);const h=new x(1).rect(0,1,!0).border(1,!1).border(1,!0),a=y.alignmentPatterns(t);for(const d of a)for(const g of a)o.data[d][g]===void 0&&o.embed({x:g-2,y:d-2},h);o=o.hLine({x:0,y:6},1/0,({x:d},g)=>g===void 0?d%2==0:g).vLine({x:6,y:0},1/0,({y:d},g)=>g===void 0?d%2==0:g);{const d=y.formatBits(e,r),g=l=>!n&&(d>>l&1)==1;for(let l=0;l<6;l++)o.data[l][8]=g(l);for(let l=6;l<8;l++)o.data[l+1][8]=g(l);for(let l=8;l<15;l++)o.data[i-15+l][8]=g(l);for(let l=0;l<8;l++)o.data[8][i-l-1]=g(l);for(let l=8;l<9;l++)o.data[8][15-l-1+1]=g(l);for(let l=9;l<15;l++)o.data[8][15-l-1]=g(l);o.data[i-8][8]=!n}if(t>=7){const d=y.versionBits(t);for(let g=0;g<18;g+=1){const l=!n&&(d>>g&1)==1,u=Math.floor(g/3),c=g%3+i-8-3;o.data[u][c]=l,o.data[c][u]=l}}return o}function Q(t,e,r){const n=t.height,i=C[e];let o=-1,s=n-1;for(let h=n-1;h>0;h-=2){for(h==6&&(h=5);;s+=o){for(let a=0;a<2;a+=1){const d=h-a;t.data[s][d]===void 0&&r(d,s,i(d,s))}if(s+o<0||s+o>=n)break}o=-o}}function V(t){let e="numeric";for(let r of t)if(!y.alphabet.numeric.has(r)&&(e="alphanumeric",!y.alphabet.alphanumerc.has(r)))return"byte";return e}function K(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function j(t,e,r,n){let i="",o=r.length;if(n==="numeric"){const l=y.alphabet.numeric.decode(r.split("")),u=l.length;for(let c=0;c<u-2;c+=3)i+=E(l[c]*100+l[c+1]*10+l[c+2],10);u%3===1?i+=E(l[u-1],4):u%3===2&&(i+=E(l[u-2]*10+l[u-1],7))}else if(n==="alphanumeric"){const l=y.alphabet.alphanumerc.decode(r.split("")),u=l.length;for(let c=0;c<u-1;c+=2)i+=E(l[c]*45+l[c+1],11);u%2==1&&(i+=E(l[u-1],6))}else if(n==="byte"){const l=K(r);o=l.length,i=Array.from(l).map(u=>E(u,8)).join("")}else throw new Error("encode: unsupported type");const{capacity:s}=y.capacity(t,e),h=E(o,y.lengthBits(t,n));let a=y.modeBits[n]+h+i;if(a.length>s)throw new Error("Capacity overflow");a+="0".repeat(Math.min(4,Math.max(0,s-a.length))),a.length%8&&(a+="0".repeat(8-a.length%8));const d="1110110000010001";for(let l=0;a.length!==s;l++)a+=d[l%d.length];const g=Uint8Array.from(a.match(/(.{8})/g).map(l=>+`0b${l}`));return O(t,e).encode(g)}function R(t,e,r,n,i=!1){const o=q(t,e,n,i);let s=0;const h=8*r.length;if(Q(o,n,(a,d,g)=>{let l=!1;s<h&&(l=(r[s>>>3]>>(7-s&7)&1)!==0,s++),o.data[d][a]=l!==g}),s!==h)throw new Error("QR: bytes left after draw");return o}function X(t){const e=t.inverse(),r=c=>{let w=0;for(let m=0,p=1,$=void 0;m<c.length;m++)$===c[m]&&(p++,m!==c.length-1)||(p>
1=5&&(w+=3+(p-5)),$=c[m],p=1);return w};let n=0;t.data.forEach(c=>n+=r(c)),e.data.forEach(c=>n+=r(c));let i=0,o=t.data;const s=t.width-1,h=t.height-1;for(let c=0;c<s;c++)for(let w=0;w<h;w++){const m=c+1,p=w+1;o[c][w]===o[m][w]&&o[m][w]===o[c][p]&&o[m][w]===o[m][p]&&(i+=3)}const a=c=>{const w=[!0,!1,!0,!0,!0,!1,!0],m=[!1,!1,!1,!1],p=[...w,...m],$=[...m,...w];let P=0;for(let S=0;S<c.length;S++)k(c,p,S)&&(P+=40),k(c,$,S)&&(P+=40);return P};let d=0;for(const c of t.data)d+=a(c);for(const c of e.data)d+=a(c);let g=0;t.rectRead(0,1/0,(c,w)=>g+=w?1:0);const l=g/(t.height*t.width)*100,u=10*Math.floor(Math.abs(l-50)/5);return n+i+d+u}function H(t,e,r,n){if(n===void 0){const i=U();for(let o=0;o<C.length;o++)i.add(X(R(t,e,r,o,!0)),o);n=i.get()}if(n===void 0)throw new Error("Cannot find mask");return R(t,e,r,n)}function Y(t){if(!B.includes(t))throw new Error(`Invalid error correction mode=${t}. Expected: ${B}`)}function Z(t){if(!L.includes(t))throw new Error(`Encoding: invalid mode=${t}. Expected: ${L}`);if(t==="kanji"||t==="eci")throw new Error(`Encoding: ${t} is not supported (yet?).`)}function J(t){if(![0,1,2,3,4,5,6,7].includes(t)||!C[t])throw new Error(`Invalid mask=${t}. Expected number [0..7]`)}function W(t,e="raw",r={}){const n=r.ecc!==void 0?r.ecc:"medium";Y(n);const i=r.encoding!==void 0?r.encoding:V(t);Z(i),r.mask!==void 0&&J(r.mask);let o=r.version,s,h=new Error("Unknown error");if(o!==void 0)N(o),s=j(o,n,t,i);else for(let g=1;g<=40;g++)try{s=j(g,n,t,i),o=g;break}catch(l){h=l}if(!o||!s)throw h;let a=H(o,n,s,r.mask);a.assertDrawn();const d=r.border===void 0?2:r.border;if(!Number.isSafeInteger(d))throw new Error(`invalid border type=${typeof d}`);if(a=a.border(d,!1),r.scale!==void 0&&(a=a.scale(r.scale)),e==="raw")return a.data;if(e==="ascii")return a.toASCII();if(e==="svg")return a.toSVG();if(e==="gif")return a.toGIF();if(e==="term")return a.toTerm();throw new Error(`Unknown output: ${e}`)}export{x as Bitmap,B as ECMode,L as Encoding,W as default,W as encodeQR,K as utf8ToBytes};
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.