1"use strict";(globalThis.webpackChunkflabs_frontend||=[]).push([[2709],{62709(t,e,i){i.d(e,{Ay:()=>kn});var n=i(84608),s=i(88191),r=i(34266),o=i(67988),h=i(91743),a=i(99390);class l{constructor(){this._listeners=Object.create(null)}on(t,e){return(this._listeners[t]||(this._listeners[t]=[])).push(e),this}once(t,e){var i=this;const n=function(){i.off(t,n),e(...arguments)};return this.on(t,n)}off(t,e){const i=this._listeners[t];if(i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}return this}emit(t){const e=this._listeners[t];if(!e)return!1;for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];for(const t of e.slice())t(...n);return e.length>0}}class c extends l{constructor(){super(),this._buffer=[],this._flowing=!1,this._scheduled=!1,this._finished=!1,this._endEmitted=!1}on(t,e){return super.on(t,e),"data"===t&&this.resume(),this}push(t){return null===t?this._finished=!0:this._buffer.push(t),this._schedule(),!0}resume(){return this._flowing=!0,this._schedule(),this}pause(){return this._flowing=!1,this}pipe(t){return this.on("data",e=>{!1===t.write(e)&&(this.pause(),t.once("drain",()=>this.resume()))}),this.on("end",()=>t.end()),t}_schedule(){!this._scheduled&&this._flowing&&(this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1,this._drain()}))}_drain(){for(;this._flowing&&this._buffer.length>0;)this.emit("data",this._buffer.shift());this._flowing&&this._finished&&!this._endEmitted&&(this._endEmitted=!0,this.emit("end"))}async*[Symbol.asyncIterator](){const t=[];let e=!1,i=null;const n=()=>{const t=i;i=null,t&&t()};for(this.on("data",e=>{t.push(e),n()}),this.on("end",()=>{e=!0,n()});;){for(;t.length>0;)yield t.shift();if(e)return;await new Promise(t=>{i=t})}}}
1class d{toString(){throw new Error("Must be implemented by subclasses")}}class u{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._items={},this.limits="boolean"!=typeof t.limits||t.limits}add(t,e){return this._items[t]=e}get(t){return this._items[t]}toString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=Object.keys(this._items).sort((t,e)=>this._compareKeys(t,e)),i=["<<"];if(this.limits&&e.length>1){const n=e[0],s=e[e.length-1];i.push(` /Limits ${T.convert([this._dataForKey(n),this._dataForKey(s)],t)}`)}i.push(` /${this._keysName()} [`);for(let n of e)i.push(` ${T.convert(this._dataForKey(n),t)} ${T.convert(this._items[n],t)}`);return i.push("]"),i.push(">>"),i.join("\n")}_compareKeys(){throw new Error("Must be implemented by subclasses")}_keysName(){throw new Error("Must be implemented by subclasses")}_dataForKey(){throw new Error("Must be implemented by subclasses")}}class f{constructor(t,e,i,n,s,r){this.id="CS"+Object.keys(t.spotColors).length,this.name=e,this.values=[i,n,s,r],this.ref=t.ref(["Separation",v(this.name),"DeviceCMYK",{Range:[0,1,0,1,0,1,0,1],C0:[0,0,0,0],C1:this.values.map(t=>t/100),FunctionType:2,Domain:[0,1],N:1}]),this.ref.end()}toString(){return`${this.ref.id} 0 R`}}const g=t=>{let e="";for(let i=0;i<t.length;i+=32768){const n=Math.min(i+32768,t.length);e+=String.fromCharCode.apply(null,t.subarray(i,n))}return e},p=t=>{const e=new Uint8Array(t.length);for(let i=0;i<t.length;i++)e[i]=255&t.charCodeAt(i);return e},A=t=>{const e=atob(t),i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);return i},m=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<8|t[e+1])>>>0},y=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e+1]<<8|t[e])>>>0},b=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 16777216*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0},w=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]>>>0},_=(t,e)=>(Array(e+1).join("0")+t).slice(-e),S=t=>t>127||t>32&&127!==t&&35!==t&&37!==t&&40!==t&&41!==t&&47!==t&&60!==t&&62!==t&&91!==t&&93!==t&&123!==t&&125!==t,C=/[\n\r\t\b\f()\\]/g,x={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},v=function(t){let e="";for(const i of t){const t=i.charCodeAt(0);S(t)?e+=i:e+=`#${t.toString(16).toUpperCase().padStart(2,"0")}`}return e};class T{static convert(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t)return`/${t}`;if(t instanceof String){let i,n=t,s=!1;for(let t=0,e=n.length;t<e;t++)if(n.charCodeAt(t)>127){s=!0;break}return i=s?(t=>{const e=new Uint8Array(2*(t.length+1));e[0]=254,e[1]=255;for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);e[2*i+2]=n>>8,e[2*i+3]=255&n}return e})(n.valueOf()):p(n.valueOf()),e&&(i=e(i)),n=g(i),n=n.replace(C,t=>x[t]),`(${n})`}if(t instanceof Uint8Array)return`<${(0,n.My)(t)}>`;if(t instanceof u)return t.toString(e);if(t instanceof d||t instanceof f)return t.toString();if(t instanceof Date){let i=`D:${_(t.getUTCFullYear(),4)}`+_(t.getUTCMonth()+1,2)+_(t.getUTCDate(),2)+_(t.getUTCHours(),2)+_(t.getUTCMinutes(),2)+_(t.getUTCSeconds(),2)+"Z";return e&&(i=g(e(p(i))),i=i.replace(C,t=>x[t])),`(${i})`}if(Array.isArray(t)){const i=[];for(let n=0;n<t.length;n++){const s=t[n];i.push(T.convert(void 0===s?null:s,e))}return`[${i.join(" ")}]`}if("[object Object]"==={}.toString.call(t)){const i=["<<"];for(let n in t){const s=t[n];void 0!==s&&i.push(`/${n} ${T.convert(s,e)}`)}return i.push(">>"),i.join("\n")}return"number"==typeof t?T.number(t):`${t}`}static number(t){if(t>-1e21&&t<1e21)return Math.round(1e6*t)/1e6;throw new Error(`unsupported number: ${t}`)}}var k=t=>(0,s.$)(t);class P extends d{constructor(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(),this.document=t,this.id=e,this.data=i,this.gen=0,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.buffer=[]}write(t){t instanceof Uint8Array||(t=p(t+"\n")),this.uncompressedLength+=t.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(t),this.data.Length+=t.length,this.compress&&(this.data.Filter="FlateDecode")}end(t){t&&this.write(t),this.finalize()}finalize(){this.offset=this.document._offset;const t=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=(t=>{let e=0;for(const i of t)e+=i.length;const i=new Uint8Array(e);let n=0;for(const e of t)i.set(e,n),n+=e.length;return i})(this.buffer),this.compress&&(this.buffer=k(this.buffer)),t&&(this.buffer=t(this.buffer)),this.data.Length=this.buffer.length),this.document._write(`${this.id} ${this.gen} obj`),this.document._write(T.convert(this.data,t)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}toString(){return`${this.id} ${this.gen} R`}}const F=new Float32Array(1),M=new Uint32Array(F.buffer);function D(t){const e=Math.fround(t);return e<=t?e:(F[0]=t,t<=0?M[0]+=1:M[0]-=1,F[0])}function E(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t=>t;return(null==t||"object"==typeof t&&0===Object.keys(t).length)&&(t=e),null==t||"object"!=typeof t?t={top:t,right:t,bottom:t,left:t}:Array.isArray(t)&&(t=2===t.length?{vertical:t[0],horizontal:t[1]}:{top:t[0],right:t[1],bottom:t[2],left:t[3]}),("vertical"in t||"horizontal"in t)&&(t={top:t.vertical,right:t.horizontal,bottom:t.vertical,left:t.horizontal}),{top:i(t.top),right:i(t.right),bottom:i(t.bottom),left:i(t.left)}}const B=1/2.54;function I(t){return 0===t?1:90===t?0:180===t?-1:270===t?0:Math.cos(t*Math.PI/180)}function O(t){return 0===t?0:90===t?1:180===t?0:270===t?-1:Math.sin(t*Math.PI/180)}const U={top:72,left:72,bottom:72,right:72},R={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};class L{constructor(t,e){this.document=t,this._options=e,this.size=e.size||"letter",this.layout=e.layout||"portrait",this.userUnit=e.userUnit||1;const i=Array.isArray(this.size)?this.size:R[this.size.toUpperCase()];this.width=i["portrait"===this.layout?0:1],this.height=i["portrait"===this.layout?1:0],this.content=this.document.ref(),this.margins=E(e.margin??e.margins,U,e=>t.sizeToPoint(e,0,this)),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources,UserUnit:this.userUnit}),this.markings=[]}get fonts(){const t=this.resources.data;return null!=t.Font?t.Font:t.Font={}}get xobjects(){const t=this.resources.data;return null!=t.XObject?t.XObject:t.XObject={}}get ext_gstates(){const t=this.resources.data;return null!=t.ExtGState?t.ExtGState:t.ExtGState={}}get patterns(){const t=this.resources.data;return null!=t.Pattern?t.Pattern:t.Pattern={}}get colorSpaces(){const t=this.resources.data;
1return t.ColorSpace||(t.ColorSpace={})}get annotations(){const t=this.dictionary.data;return null!=t.Annots?t.Annots:t.Annots=[]}get structParentTreeKey(){const t=this.dictionary.data;return null!=t.StructParents?t.StructParents:t.StructParents=this.document.createStructParentTreeNextKey()}get contentWidth(){return this.width-this.margins.left-this.margins.right}get contentHeight(){return this.height-this.margins.top-this.margins.bottom}maxY(){return this.height-this.margins.bottom}write(t){return this.content.write(t)}_setTabOrder(){!this.dictionary.Tabs&&this.document.hasMarkInfoDictionary()&&(this.dictionary.data.Tabs="S")}end(){this._setTabOrder(),this.dictionary.end(),this.resources.data.ColorSpace=this.resources.data.ColorSpace||{};for(let t of Object.values(this.document.spotColors))this.resources.data.ColorSpace[t.id]=t;return this.resources.end(),this.content.end()}}class z extends u{_compareKeys(t,e){return t.localeCompare(e)}_keysName(){return"Names"}_dataForKey(t){return new String(t)}}function W(t){if(!((e=t)instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw new Error("Uint8Array expected");for(var e,i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];if(n.length>0&&!n.includes(t.length))throw new Error("Uint8Array expected of length "+n+", got length="+t.length)}function G(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function $(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];for(let t=0;t<e.length;t++)e[t].fill(0)}function H(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function j(t,e){return t<<32-e|t>>>e}function N(t,e){return t<<e|t>>>32-e>>>0}function K(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}(t)),W(t),t}new Uint8Array(new Uint32Array([287454020]).buffer)[0],"function"==typeof Uint8Array.from([]).toHex&&Uint8Array.fromHex,Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));class Y{}function q(t){const e=e=>t().update(K(e)).digest(),i=t();return e.outputLen=i.outputLen,e.blockLen=i.blockLen,e.create=()=>t(),e}function Q(t,e,i){return t&e^~t&i}function X(t,e,i){return t&e^t&i^e&i}class V extends Y{constructor(t,e,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=H(this.buffer)}update(t){G(this),W(t=K(t));const{view:e,buffer:i,blockLen:n}=this,s=t.length;for(let r=0;r<s;){const o=Math.min(n-this.pos,s-r);if(o===n){const e=H(t);for(;n<=s-r;r+=n)this.process(e,r);continue}i.set(t.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===n&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){G(this),function(t,e){W(t);const i=e.outputLen;if(t.length<i)throw new Error("digestInto() expects output buffer of length at least "+i)}(t,this),this.finished=!0;const{buffer:e,view:i,blockLen:n,isLE:s}=this;let{pos:r}=this;e[r++]=128,$(this.buffer.subarray(r)),this.padOffset>n-r&&(this.process(i,0),r=0);for(let t=r;t<n;t++)e[t]=0;!function(t,e,i,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,i,n);const s=BigInt(32),r=BigInt(4294967295),o=Number(i>>s&r),h=Number(i&r),a=n?4:0,l=n?0:4;t.setUint32(e+a,o,n),t.setUint32(e+l,h,n)}(i,n-8,BigInt(8*this.length),s),this.process(i,0);const o=H(t),h=this.outputLen;if(h%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const a=h/4,l=this.get();if(a>l.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<a;t++)o.setUint32(4*t,l[t],s)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const i=t.slice(0,e);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:i,length:n,finished:s,destroyed:r,pos:o}=this;return t.destroyed=r,t.finished=s,t.length=n,t.pos=o,n%e&&t.buffer.set(i),t}clone(){return this._cloneInto()}}const Z=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),tt=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),et=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),it=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),nt=new Uint32Array(80);class st extends V{constructor(){super(64,20,8,!1),this.A=0|it[0],this.B=0|it[1],this.C=0|it[2],this.D=0|it[3],this.E=0|it[4]}get(){const{A:t,B:e,C:i,D:n,E:s}=this;return[t,e,i,n,s]}set(t,e,i,n,s){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n,this.E=0|s}process(t,e){for(let i=0;i<16;i++,e+=4)nt[i]=t.getUint32(e,!1);for(let t=16;t<80;t++)nt[t]=N(nt[t-3]^nt[t-8]^nt[t-14]^nt[t-16],1);let{A:i,B:n,C:s,D:r,E:o}=this;for(let t=0;t<80;t++){let e,h;t<20?(e=Q(n,s,r),h=1518500249):t<40?(e=n^s^r,h=1859775393):t<60?(e=X(n,s,r),h=2400959708):(e=n^s^r,h=3395469782);const a=N(i,5)+e+o+h+nt[t]|0;o=r,r=s,s=N(n,30),n=i,i=a}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,r=r+this.D|0,o=o+this.E|0,this.set(i,n,s,r,o)}roundClean(){$(nt)}destroy(){this.set(0,0,0,0,0),$(this.buffer)}}q(()=>new st);const rt=Math.pow(2,32),ot=Array.from({length:64},(t,e)=>
1Math.floor(rt*Math.abs(Math.sin(e+1)))),ht=it.slice(0,4),at=new Uint32Array(16);class lt extends V{constructor(){super(64,16,8,!0),this.A=0|ht[0],this.B=0|ht[1],this.C=0|ht[2],this.D=0|ht[3]}get(){const{A:t,B:e,C:i,D:n}=this;return[t,e,i,n]}set(t,e,i,n){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n}process(t,e){for(let i=0;i<16;i++,e+=4)at[i]=t.getUint32(e,!0);let{A:i,B:n,C:s,D:r}=this;for(let t=0;t<64;t++){let e,o,h;t<16?(e=Q(n,s,r),o=t,h=[7,12,17,22]):t<32?(e=Q(r,n,s),o=(5*t+1)%16,h=[5,9,14,20]):t<48?(e=n^s^r,o=(3*t+5)%16,h=[4,11,16,23]):(e=s^(n|~r),o=7*t%16,h=[6,10,15,21]),e=e+i+ot[t]+at[o],i=r,r=s,s=n,n+=N(e,h[t%4])}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,r=r+this.D|0,this.set(i,n,s,r)}roundClean(){$(at)}destroy(){this.set(0,0,0,0),$(this.buffer)}}const ct=q(()=>new lt),dt=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),ut=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ft=ut.map(t=>(9*t+5)%16),gt=(()=>{const t=[[ut],[ft]];for(let e=0;e<4;e++)for(let i of t)i.push(i[e].map(t=>dt[t]));return t})(),pt=gt[0],At=gt[1],mt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),yt=pt.map((t,e)=>t.map(t=>mt[e][t])),bt=At.map((t,e)=>t.map(t=>mt[e][t])),wt=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),_t=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function St(t,e,i,n){return 0===t?e^i^n:1===t?e&i|~e&n:2===t?(e|~i)^n:3===t?e&n|i&~n:e^(i|~n)}const Ct=new Uint32Array(16);class xt extends V{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:e,h2:i,h3:n,h4:s}=this;return[t,e,i,n,s]}set(t,e,i,n,s){this.h0=0|t,this.h1=0|e,this.h2=0|i,this.h3=0|n,this.h4=0|s}process(t,e){for(let i=0;i<16;i++,e+=4)Ct[i]=t.getUint32(e,!0);let i=0|this.h0,n=i,s=0|this.h1,r=s,o=0|this.h2,h=o,a=0|this.h3,l=a,c=0|this.h4,d=c;for(let t=0;t<5;t++){const e=4-t,u=wt[t],f=_t[t],g=pt[t],p=At[t],A=yt[t],m=bt[t];for(let e=0;e<16;e++){const n=N(i+St(t,s,o,a)+Ct[g[e]]+u,A[e])+c|0;i=c,c=a,a=0|N(o,10),o=s,s=n}for(let t=0;t<16;t++){const i=N(n+St(e,r,h,l)+Ct[p[t]]+f,m[t])+d|0;n=d,d=l,l=0|N(h,10),h=r,r=i}}this.set(this.h1+o+l|0,this.h2+a+d|0,this.h3+c+n|0,this.h4+i+r|0,this.h0+s+h|0)}roundClean(){$(Ct)}destroy(){this.destroyed=!0,$(this.buffer),this.set(0,0,0,0,0)}}function vt(t){return ct.create().update(t).digest()}q(()=>new xt);const Tt=BigInt(2**32-1),kt=BigInt(32);function Pt(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(t&Tt),l:Number(t>>kt&Tt)}:{h:0|Number(t>>kt&Tt),l:0|Number(t&Tt)}}const Ft=(t,e,i)=>t>>>i,Mt=(t,e,i)=>t<<32-i|e>>>i,Dt=(t,e,i)=>t>>>i|e<<32-i,Et=(t,e,i)=>t<<32-i|e>>>i,Bt=(t,e,i)=>t<<64-i|e>>>i-32,It=(t,e,i)=>t>>>i-32|e<<64-i;function Ot(t,e,i,n){const s=(e>>>0)+(n>>>0);return{h:t+i+(s/2**32|0)|0,l:0|s}}const Ut=(t,e,i)=>(t>>>0)+(e>>>0)+(i>>>0),Rt=(t,e,i,n)=>e+i+n+(t/2**32|0)|0,Lt=(t,e,i,n)=>(t>>>0)+(e>>>0)+(i>>>0)+(n>>>0),zt=(t,e,i,n,s)=>e+i+n+s+(t/2**32|0)|0,Wt=(t,e,i,n,s)=>(t>>>0)+(e>>>0)+(i>>>0)+(n>>>0)+(s>>>0),Gt=(t,e,i,n,s,r)=>e+i+n+s+r+(t/2**32|0)|0,$t=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ht=new Uint32Array(64);class jt extends V{constructor(){super(64,arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,8,!1),this.A=0|Z[0],this.B=0|Z[1],this.C=0|Z[2],this.D=0|Z[3],this.E=0|Z[4],this.F=0|Z[5],this.G=0|Z[6],this.H=0|Z[7]}get(){const{A:t,B:e,C:i,D:n,E:s,F:r,G:o,H:h}=this;return[t,e,i,n,s,r,o,h]}set(t,e,i,n,s,r,o,h){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n,this.E=0|s,this.F=0|r,this.G=0|o,this.H=0|h}process(t,e){for(let i=0;i<16;i++,e+=4)Ht[i]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=Ht[t-15],i=Ht[t-2],n=j(e,7)^j(e,18)^e>>>3,s=j(i,17)^j(i,19)^i>>>10;Ht[t]=s+Ht[t-7]+n+Ht[t-16]|0}let{A:i,B:n,C:s,D:r,E:o,F:h,G:a,H:l}=this;for(let t=0;t<64;t++){const e=l+(j(o,6)^j(o,11)^j(o,25))+Q(o,h,a)+$t[t]+Ht[t]|0,c=(j(i,2)^j(i,13)^j(i,22))+X(i,n,s)|0;l=a,a=h,h=o,o=r+e|0,r=s,s=n,n=i,i=e+c|0}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,r=r+this.D|0,o=o+this.E|0,h=h+this.F|0,a=a+this.G|0,l=l+this.H|0,this.set(i,n,s,r,o,h,a,l)}roundClean(){$(Ht)}destroy(){this.set(0,0,0,0,0,0,0,0),$(this.buffer)}}class Nt extends jt{constructor(){super(28),this.A=0|J[0],this.B=0|J[1],this.C=0|J[2],this.D=0|J[3],this.E=0|J[4],this.F=0|J[5],this.G=0|J[6],this.H=0|J[7]}}const Kt=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=t.length;let n=new Uint32Array(i),s=new Uint32Array(i);for(let r=0;r<i;r++){const{h:i,l:o}=Pt(t[r],e);[n[r],s[r]]=[i,o]}return[n,s]}(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Yt=Kt[0],qt=Kt[1],Qt=new Uint32Array(80),Xt=new Uint32Array(80);class Vt extends V{constructor(){super(128,arguments.length>0&&void 0!==arguments[0]?arguments[0]:64,16,!1),this.Ah=0|et[0],this.Al=0|et[1],this.Bh=0|et[2],this.Bl=0|et[3],this.Ch=0|et[4],this.Cl=0|et[5],this.Dh=0|et[6],this.Dl=0|et[7],this.Eh=0|et[8],this.El=0|et[9],this.Fh=0|et[10],this.Fl=0|et[11],this.Gh=0|et[12],this.Gl=0|et[13],this.Hh=0|et[14],this.Hl=0|et[15]}get(){const{Ah:t,Al:e,Bh:i,Bl:n,Ch:s,Cl:r,Dh:o,Dl:h,Eh:a,El:l,Fh:c,Fl:d,Gh:u,Gl:f,Hh:g,Hl:p}=this;return[t,e,i,n,s,r,o,h,a,l,c,d,u,f,g,p]}set(t,e,i,n,s,r,o,h,a,l,c,d,u,f,g,p){this.Ah=0|t,this.Al=0|e,this.Bh=0|i,this.Bl=0|n,this.Ch=0|s,this.Cl=0|r,this.Dh=0|o,this.Dl=0|h,this.Eh=0|a,this.El=0|l,this.Fh=0|c,this.Fl=0|d,this.Gh=0|u,this.Gl=0|f,this.Hh=0|g,this.Hl=0|p}process(t,e){for(let i=0;i<16;i++,e+=4)Qt[i]=t.getUint32(e),Xt[i]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|Qt[t-15],i=0|Xt[t-15],n=Dt(e,i,1)^Dt(e,i,8)^Ft(e,0,7),s=Et(e,i,1)^Et(e,i,8)^Mt(e,i,7),r=0|Qt[t-2],o=0|Xt[t-2],h=Dt(r,o,19)^Bt(r,o,61)^Ft(r,0,6),a=Et(r,o,19)^It(r,o,61)^Mt(r,o,6),l=Lt(s,a,Xt[t-7],Xt[t-16]),c=zt(l,n,h,Qt[t-7],Qt[t-16]);Qt[t]=0|c,Xt[t]=0|l}let{Ah:i,Al:n,Bh:s,Bl:r,Ch:o,Cl:h,Dh:a,Dl:l,Eh:c,El:d,Fh:u,Fl:f,Gh:g,Gl:p,Hh:A,Hl:m}=this;for(let t=0;t<80;t++){const e=Dt(c,d,14)^Dt(c,d,18)^Bt(c,d,41),y=Et(c,d,14)^Et(c,d,18)^It(c,d,41),b=c&u^~c&g,w=Wt(m,y,d&f^~d&p,qt[t],Xt[t]),_=Gt(w,A,e,b,Yt[t],Qt[t]),S=0|w,C=Dt(i,n,28)^Bt(i,n,34)^Bt(i,n,39),x=Et(i,n,28)^It(i,n,34)^It(i,n,39),v=i&s^i&o^s&o,T=n&r^n&h^r&h;A=0|g,m=0|p,g=0|u,p=0|f,u=0|c,f=0|d,({h:c,l:d}=Ot(0|a,0|l,0|_,0|S)),a=0|o,l=0|h,o=0|s,h=0|r,s=0|i,r=0|n;const k=Ut(S,x,T);i=Rt(k,_,C,v),n=0|k}({h:i,l:n}=Ot(0|this.Ah,0|this.Al,0|i,0|n)),({h:s,l:r}=Ot(0|this.Bh,0|this.Bl,0|s,0|r)),({h:o,l:h}=Ot(0|this.Ch,0|this.Cl,0|o,0|h)),({h:a,l}=Ot(0|this.Dh,0|this.Dl,0|a,0|l)),({h:c,l:d}=Ot(0|this.Eh,0|this.El,0|c,0|d)),({h:u,l:f}=Ot(0|this.Fh,0|this.Fl,0|u,0|f)),({h:g,l:p}=Ot(0|this.Gh,0|this.Gl,0|g,0|p)),({h:A,l:m}=Ot(0|this.Hh,0|this.Hl,0|A,0|m)),this.set(i,n,s,r,o,h,a,l,c,d,u,f,g,p,A,m)}roundClean(){$(Qt,Xt)}destroy(){$(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Zt extends Vt{constructor(){super(48),this.Ah=0|tt[0],this.Al=0|tt[1],this.Bh=0|tt[2],this.Bl=0|tt[3],this.Ch=0|tt[4],this.Cl=0|tt[5],this.Dh=0|tt[6],this.Dl=0|tt[7],this.Eh=0|tt[8],this.El=0|tt[9],this.Fh=0|tt[10],this.Fl=0|tt[11],this.Gh=0|tt[12],this.Gl=0|tt[13],this.Hh=0|tt[14],this.Hl=0|tt[15]}}const Jt=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),te=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,28279439
107,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class ee extends Vt{constructor(){super(28),this.Ah=0|Jt[0],this.Al=0|Jt[1],this.Bh=0|Jt[2],this.Bl=0|Jt[3],this.Ch=0|Jt[4],this.Cl=0|Jt[5],this.Dh=0|Jt[6],this.Dl=0|Jt[7],this.Eh=0|Jt[8],this.El=0|Jt[9],this.Fh=0|Jt[10],this.Fl=0|Jt[11],this.Gh=0|Jt[12],this.Gl=0|Jt[13],this.Hh=0|Jt[14],this.Hl=0|Jt[15]}}class ie extends Vt{constructor(){super(32),this.Ah=0|te[0],this.Al=0|te[1],this.Bh=0|te[2],this.Bl=0|te[3],this.Ch=0|te[4],this.Cl=0|te[5],this.Dh=0|te[6],this.Dl=0|te[7],this.Eh=0|te[8],this.El=0|te[9],this.Fh=0|te[10],this.Fl=0|te[11],this.Gh=0|te[12],this.Gl=0|te[13],this.Hh=0|te[14],this.Hl=0|te[15]}}const ne=q(()=>new jt);function se(t){return ne(t)}function re(t,e,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(0,r.zd)(e,i,{disablePadding:!n}).encrypt(t)}function oe(t,e){const i=new Uint8Array(256);for(let t=0;t<256;t++)i[t]=t;let n=0;for(let t=0;t<256;t++)n=n+i[t]+e[t%e.length]&255,[i[t],i[n]]=[i[n],i[t]];const s=new Uint8Array(t.length);for(let e=0,n=0,r=0;r<t.length;r++)e=e+1&255,n=n+i[e]&255,[i[e],i[n]]=[i[n],i[e]],s[r]=t[r]^i[i[e]+i[n]&255];return s}function he(t,e){if(t<e[0])return!1;let i=0,n=e.length/2;for(;i<=n;){const s=Math.floor((i+n)/2),r=2*s;if(t>=e[r]&&t<=e[r+1])return!0;t>e[r+1]?i=s+1:n=s-1}return!1}q(()=>new Nt),q(()=>new Vt),q(()=>new Zt),q(()=>new ie),q(()=>new ee);const ae=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,12
10137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],le=t=>he(t,ae),ce=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],de=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],ue=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],fe=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],ge=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],pe=t=>he(t,de)||he(t,ge)||he(t,ue)||he(t,fe),Ae=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],me=t=>he(t,Ae),ye=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12
1686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],be=t=>he(t,ye),we=t=>he(t,de),_e=t=>he(t,ce),Se=t=>t.codePointAt(0);function Ce(t){const e=[],i=t.length;for(let n=0;n<i;n+=1){const s=t.charCodeAt(n);if(s>=55296&&s<=56319&&i>n+1){const i=t.charCodeAt(n+1);if(i>=56320&&i<=57343){e.push(1024*(s-55296)+i-56320+65536),n+=1;continue}}e.push(s)}return e}class xe{static generateFileID(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=`${t.CreationDate.getTime()}\n`;for(let i in t)t.hasOwnProperty(i)&&(e+=`${i}: ${t[i].valueOf()}\n`);return vt(e)}static generateRandomWordArray(t){return function(t){const e=new Uint8Array(t);return globalThis.crypto.getRandomValues(e),e}(t)}static create(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.ownerPassword||e.userPassword?new xe(t,e):null}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.ownerPassword&&!e.userPassword)throw new Error("None of owner password and user password is defined.");this.document=t,this._setupEncryption(e)}_setupEncryption(t){switch(t.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}const e={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,e,t);break;case 5:this._setupEncryptionV5(e,t)}this.dictionary=this.document.ref(e)}_setupEncryptionV1V2V4(t,e,i){let s,r;switch(t){case 1:s=2,this.keyBits=40,r=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=-64;t.printing&&(e|=4);t.modifying&&(e|=8);t.copying&&(e|=16);t.annotating&&(e|=32);return e}(i.permissions);break;case 2:s=3,this.keyBits=128,r=ve(i.permissions);break;case 4:s=4,this.keyBits=128,r=ve(i.permissions)}const o=Te(i.userPassword),h=i.ownerPassword?Te(i.ownerPassword):o,a=function(t,e,i,n){let s=n,r=t>=3?51:1;for(let t=0;t<r;t++)s=vt(s);const o=e/8;let h=s.slice(0,o),a=i;r=t>=3?20:1;for(let t=0;t<r;t++){const e=new Uint8Array(o);for(let i=0;i<o;i++)e[i]=h[i]^t;a=oe(a,e)}return a}(s,this.keyBits,o,h);let l;var c;this.encryptionKey=function(t,e,i,s,r,o){const h=new Uint8Array([255&o,o>>8&255,o>>16&255,o>>24&255]);let a=(0,n.Id)(s,r,h,new Uint8Array(i));const l=t>=3?51:1,c=e/8;for(let t=0;t<l;t++)a=vt(a),a=a.slice(0,c);return a}(s,this.keyBits,this.document._id,o,a,r),2===s?(c=this.encryptionKey,l=oe(Te(),c)):l=function(t,e){const i=e.slice();let s=vt((0,n.Id)(Te(),new Uint8Array(t)));for(let t=0;t<20;t++){const n=new Uint8Array(i.length);for(let s=0;s<i.length;s++)n[s]=e[s]^t;s=oe(s,n)}const r=new Uint8Array(32);return r.set(s),r}(this.document._id,this.encryptionKey),e.V=t,t>=2&&(e.Length=this.keyBits),4===t&&(e.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},e.StmF="StdCF",e.StrF="StdCF"),e.R=s,e.O=a,e.U=l,e.P=r}_setupEncryptionV5(t,e){this.keyBits=256;const i=ve(e.permissions),s=ke(e.userPassword),o=e.ownerPassword?ke(e.ownerPassword):s;this.encryptionKey=(0,xe.generateRandomWordArray)(32);const h=function(t,e){const i=e(8),s=e(8),r=se((0,n.Id)(t,i));return(0,n.Id)(r,i,s)}(s,xe.generateRandomWordArray),a=function(t,e,i){const s=se((0,n.Id)(t,e)),r=new Uint8Array(16);return re(i,s,r,!1)}(s,h.slice(40,48),this.encryptionKey),l=function(t,e,i){const s=i(8),r=i(8),o=se((0,n.Id)(t,s,e));return(0,n.Id)(o,s,r)}
1(o,h,xe.generateRandomWordArray),c=function(t,e,i,s){const r=se((0,n.Id)(t,e,i)),o=new Uint8Array(16);return re(s,r,o,!1)}(o,l.slice(40,48),h,this.encryptionKey),d=function(t,e,i){const n=new Uint8Array(16);n[0]=255&t,n[1]=t>>8&255,n[2]=t>>16&255,n[3]=t>>24&255,n[4]=255,n[5]=255,n[6]=255,n[7]=255,n[8]=84,n[9]=97,n[10]=100,n[11]=98;const s=i(4);return n.set(s,12),function(t,e){return(0,r.Zi)(e,{disablePadding:!0}).encrypt(t)}(n,e)}(i,this.encryptionKey,xe.generateRandomWordArray);t.V=5,t.Length=this.keyBits,t.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},t.StmF="StdCF",t.StrF="StdCF",t.R=5,t.O=l,t.OE=c,t.U=h,t.UE=a,t.P=i,t.Perms=d}getEncryptFn(t,e){let i,s;if(this.version<5){const s=new Uint8Array([255&t,t>>8&255,t>>16&255,255&e,e>>8&255]);i=(0,n.Id)(this.encryptionKey,s)}if(1===this.version||2===this.version){let t=vt(i);const e=Math.min(16,this.keyBits/8+5);return t=t.slice(0,e),e=>oe(e,t)}if(4===this.version){const t=new Uint8Array([115,65,108,84]);s=vt((0,n.Id)(i,t))}else s=this.encryptionKey;const r=xe.generateRandomWordArray(16);return t=>{const e=re(t,s,r,!0);return(0,n.Id)(r,e)}}end(){this.dictionary.end()}}function ve(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=-3904;return"lowResolution"===t.printing&&(e|=4),"highResolution"===t.printing&&(e|=2052),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),t.fillingForms&&(e|=256),t.contentAccessibility&&(e|=512),t.documentAssembly&&(e|=1024),e}function Te(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const e=new Uint8Array(32),i=t.length;let n=0;for(;n<i&&n<32;){const i=t.charCodeAt(n);if(i>255)throw new Error("Password contains one or more invalid characters.");e[n]=i,n++}for(;n<32;)e[n]=Pe[n-i],n++;return e}function ke(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t=unescape(encodeURIComponent(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw new TypeError("Expected string.");if(0===t.length)return"";const i=Ce(t).map(t=>we(t)?32:t).filter(t=>!_e(t)),n=String.fromCodePoint.apply(null,i).normalize("NFKC"),s=Ce(n);if(s.some(pe))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==e.allowUnassigned&&s.some(le))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const r=s.some(me),o=s.some(be);if(r&&o)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const h=me(Se(n[0])),a=me(Se((l=n,l[l.length-1])));var l;if(r&&(!h||!a))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return n}(t)));const e=Math.min(127,t.length),i=new Uint8Array(e);for(let n=0;n<e;n++)i[n]=t.charCodeAt(n);return i}const Pe=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],{number:Fe}=T;let Me=class{constructor(t){this.doc=t,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}stop(t,e,i){if(null==i&&(i=1),e=this.doc._normalizeColor(e),0===this.stops.length)if(3===e.length)this._colorSpace
vendor: 4,127 bytes, line 1
1="DeviceRGB";else if(4===e.length)this._colorSpace="DeviceCMYK";else{if(1!==e.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==e.length||"DeviceCMYK"===this._colorSpace&&4!==e.length||"DeviceGray"===this._colorSpace&&1!==e.length)throw new Error("All gradient stops must use the same color space");return i=Math.max(0,Math.min(1,i)),this.stops.push([t,e,i]),this}setTransform(t,e,i,n,s,r){return this.transform=[t,e,i,n,s,r],this}embed(t){let e;const i=this.stops.length;if(0===i)return;this.embedded=!0,this.matrix=t;const n=this.stops[i-1];n[0]<1&&this.stops.push([1,n[1],n[2]]);const s=[],r=[],o=[];for(let t=0;t<i-1;t++)r.push(0,1),t+2!==i&&s.push(this.stops[t+1][0]),e=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[t+0][1],C1:this.stops[t+1][1],N:1}),o.push(e),e.end();1===i?e=o[0]:(e=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:o,Bounds:s,Encode:r}),e.end()),this.id="Sh"+ ++this.doc._gradCount;const h=this.shader(e);h.end();const a=this.doc.ref({Type:"Pattern",PatternType:2,Shading:h,Matrix:this.matrix.map(Fe)});if(a.end(),this.stops.some(t=>t[2]<1)){let t=this.opacityGradient();t._colorSpace="DeviceGray";for(let e of this.stops)t.stop(e[0],[e[2]]);t=t.embed(this.matrix);const e=[0,0,this.doc.page.width,this.doc.page.height],i=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:e,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:t}}});i.write("/Pattern cs /Sh1 scn"),i.end(`${e.join(" ")} re f`);const n=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:i}});n.end();const s=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:e,XStep:e[2],YStep:e[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:a},ExtGState:{Gs1:n}}});s.write("/Gs1 gs /Pattern cs /Sh1 scn"),s.end(`${e.join(" ")} re f`),this.doc.page.patterns[this.id]=s}else this.doc.page.patterns[this.id]=a;return a}apply(t){const[e,i,n,s,r,o]=this.doc._ctm,[h,a,l,c,d,u]=this.transform,f=[e*h+n*a,i*h+s*a,e*l+n*c,i*l+s*c,e*d+n*u+r,i*d+s*u+o];this.embedded&&f.join(" ")===this.matrix.join(" ")||this.embed(f),this.doc._setColorSpace("Pattern",t);const g=t?"SCN":"scn";return this.doc.addContent(`/${this.id} ${g}`)}};var De={PDFGradient:Me,PDFLinearGradient:class t extends Me{constructor(t,e,i,n,s){super(t),this.x1=e,this.y1=i,this.x2=n,this.y2=s}shader(t){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:t,Extend:[!0,!0]})}opacityGradient(){return new t(this.doc,this.x1,this.y1,this.x2,this.y2)}},PDFRadialGradient:class t extends Me{constructor(t,e,i,n,s,r,o){super(t),this.doc=t,this.x1=e,this.y1=i,this.r1=n,this.x2=s,this.y2=r,this.r2=o}shader(t){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:t,Extend:[!0,!0]})}opacityGradient(){return new t(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)}}};const Ee=["DeviceCMYK","DeviceRGB"];var Be={PDFTilingPattern:class{constructor(t,e,i,n,s){this.doc=t,this.bBox=e,this.xStep=i,this.yStep=n,this.stream=s}createPattern(){const t=this.doc.ref();t.end();const[e,i,n,s,r,o]=this.doc._ctm,[h,a,l,c,d,u]=[1,0,0,1,0,0],f=[e*h+n*a,i*h+s*a,e*l+n*c,i*l+s*c,e*d+n*u+r,i*d+s*u+o],g=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:2,TilingType:2,BBox:this.bBox,XStep:this.xStep,YStep:this.yStep,Matrix:f.map(t=>+t.toFixed(5)),Resources:t});return g.end(this.stream),g}embedPatternColorSpaces(){Ee.forEach(t=>{const e=this.getPatternColorSpaceId(t);if(this.doc.page.colorSpaces[e])return;const i=this.doc.ref(["Pattern",t]);i.end(),this.doc.page.colorSpaces[e]=i})}getPatternColorSpaceId(t){return`CsP${t}`}embed(){this.id||(this.doc._patternCount=this.doc._patternCount+1,this.id="P"+this.doc._patternCount,this.pattern=this.createPattern()),this.doc.page.patterns[this.id]||(this.doc.page.patterns[this.id]=this.pattern)}apply(t,e){this.embedPatternColorSpaces(),this.embed();const i=this.doc._normalizeColor(e);
vendor: 4,775 bytes, line 1
1if(!i)throw Error(`invalid pattern color. (value: ${e})`);const n=this.getPatternColorSpaceId(this.doc._getColorSpace(i));this.doc._setColorSpace(n,t);const s=t?"SCN":"scn";return this.doc.addContent(`${i.join(" ")} /${this.id} ${s}`)}}};const{PDFGradient:Ie,PDFLinearGradient:Oe,PDFRadialGradient:Ue}=De,{PDFTilingPattern:Re}=Be;var Le={initColor(){this.spotColors={},this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor(t){if("string"==typeof t)if("#"===t.charAt(0)){4===t.length&&(t=t.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));const e=parseInt(t.slice(1),16);t=[e>>16,e>>8&255,255&e]}else if(ze[t])t=ze[t];else if(this.spotColors[t])return this.spotColors[t];return Array.isArray(t)?(3===t.length?t=t.map(t=>t/255):4===t.length&&(t=t.map(t=>t/100)),t):null},_setColor(t,e){return t instanceof Ie?(t.apply(e),!0):Array.isArray(t)&&t[0]instanceof Re?(t[0].apply(e,t[1]),!0):this._setColorCore(t,e)},_setColorCore(t,e){if(!(t=this._normalizeColor(t)))return!1;const i=e?"SCN":"scn",n=this._getColorSpace(t);return this._setColorSpace(n,e),t instanceof f?(this.page.colorSpaces[t.id]=t.ref,this.addContent(`1 ${i}`)):this.addContent(`${t.join(" ")} ${i}`),!0},_setColorSpace(t,e){const i=e?"CS":"cs";return this.addContent(`/${t} ${i}`)},_getColorSpace:t=>t instanceof f?t.id:4===t.length?"DeviceCMYK":"DeviceRGB",fillColor(t,e){return this._setColor(t,!1)&&this.fillOpacity(e),this._fillColor=[t,e],this},strokeColor(t,e){return this._setColor(t,!0)&&this.strokeOpacity(e),this},opacity(t){return this._doOpacity(t,t),this},fillOpacity(t){return this._doOpacity(t,null),this},strokeOpacity(t){return this._doOpacity(null,t),this},_doOpacity(t,e){let i,n;if(null==t&&null==e)return;null!=t&&(t=Math.max(0,Math.min(1,t))),null!=e&&(e=Math.max(0,Math.min(1,e)));const s=`${t}_${e}`;if(this._opacityRegistry[s])[i,n]=this._opacityRegistry[s];else{i={Type:"ExtGState"},null!=t&&(i.ca=t),null!=e&&(i.CA=e),i=this.ref(i),i.end();n=`Gs${++this._opacityCount}`,this._opacityRegistry[s]=[i,n]}return this.page.ext_gstates[n]=i,this.addContent(`/${n} gs`)},linearGradient(t,e,i,n){return new Oe(this,t,e,i,n)},radialGradient(t,e,i,n,s,r){return new Ue(this,t,e,i,n,s,r)},pattern(t,e,i,n){return new Re(this,t,e,i,n)},addSpotColor(t,e,i,n,s){const r=new f(this,t,e,i,n,s);return this.spotColors[t]=r,this}},ze={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 9,284 bytes, line 1
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let We,Ge,$e,He,je,Ne;We=Ge=$e=He=je=Ne=0;const Ke={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},Ye=function(t){return t in Ke},qe=function(t){const e=t.codePointAt(0);return 32===e||9===e||13===e||10===e},Qe=function(t){const e=t.codePointAt(0);return null!=e&&(48<=e&&e<=57)},Xe=function(t,e){let i=e,n="",s="none";for(;i<t.length;i+=1){const e=t[i];if("+"===e||"-"===e){if("none"===s){s="sign",n+=e;continue}if("e"===s){s="exponent_sign",n+=e;continue}}if(Qe(e)){if("none"===s||"sign"===s||"whole"===s){s="whole",n+=e;continue}if("decimal_point"===s||"decimal"===s){s="decimal",n+=e;continue}if("e"===s||"exponent_sign"===s||"exponent"===s){s="exponent",n+=e;continue}}if("."!==e||"none"!==s&&"sign"!==s&&"whole"!==s){if("E"!==e&&"e"!==e||"whole"!==s&&"decimal_point"!==s&&"decimal"!==s)break;s="e",n+=e}else s="decimal_point",n+=e}const r=Number.parseFloat(n);return Number.isNaN(r)?[e,null]:[i-1,r]},Ve={M:(t,e)=>(We=e[0],Ge=e[1],$e=He=null,je=We,Ne=Ge,t.moveTo(We,Ge)),m:(t,e)=>(We+=e[0],Ge+=e[1],$e=He=null,je=We,Ne=Ge,t.moveTo(We,Ge)),C:(t,e)=>(We=e[4],Ge=e[5],$e=e[2],He=e[3],t.bezierCurveTo(...e)),c:(t,e)=>(t.bezierCurveTo(e[0]+We,e[1]+Ge,e[2]+We,e[3]+Ge,e[4]+We,e[5]+Ge),$e=We+e[2],He=Ge+e[3],We+=e[4],Ge+=e[5]),S:(t,e)=>(null===$e&&($e=We,He=Ge),t.bezierCurveTo(We-($e-We),Ge-(He-Ge),e[0],e[1],e[2],e[3]),$e=e[0],He=e[1],We=e[2],Ge=e[3]),s:(t,e)=>(null===$e&&($e=We,He=Ge),t.bezierCurveTo(We-($e-We),Ge-(He-Ge),We+e[0],Ge+e[1],We+e[2],Ge+e[3]),$e=We+e[0],He=Ge+e[1],We+=e[2],Ge+=e[3]),Q:(t,e)=>($e=e[0],He=e[1],We=e[2],Ge=e[3],t.quadraticCurveTo(e[0],e[1],We,Ge)),q:(t,e)=>(t.quadraticCurveTo(e[0]+We,e[1]+Ge,e[2]+We,e[3]+Ge),$e=We+e[0],He=Ge+e[1],We+=e[2],Ge+=e[3]),T:(t,e)=>(null===$e?($e=We,He=Ge):($e=We-($e-We),He=Ge-(He-Ge)),t.quadraticCurveTo($e,He,e[0],e[1]),$e=We-($e-We),He=Ge-(He-Ge),We=e[0],Ge=e[1]),t:(t,e)=>(null===$e?($e=We,He=Ge):($e=We-($e-We),He=Ge-(He-Ge)),t.quadraticCurveTo($e,He,We+e[0],Ge+e[1]),We+=e[0],Ge+=e[1]),A:(t,e)=>(Ze(t,We,Ge,e),We=e[5],Ge=e[6]),a:(t,e)=>(e[5]+=We,e[6]+=Ge,Ze(t,We,Ge,e),We=e[5],Ge=e[6]),L:(t,e)=>(We=e[0],Ge=e[1],$e=He=null,t.lineTo(We,Ge)),l:(t,e)=>(We+=e[0],Ge+=e[1],$e=He=null,t.lineTo(We,Ge)),H:(t,e)=>(We=e[0],$e=He=null,t.lineTo(We,Ge)),h:(t,e)=>(We+=e[0],$e=He=null,t.lineTo(We,Ge)),V:(t,e)=>(Ge=e[0],$e=He=null,t.lineTo(We,Ge)),v:(t,e)=>(Ge+=e[0],$e=He=null,t.lineTo(We,Ge)),Z:t=>(t.closePath(),We=je,Ge=Ne),z:t=>(t.closePath(),We=je,Ge=Ne)},Ze=function(t,e,i,n){const[s,r,o,h,a,l,c]=n,d=Je(l,c,s,r,h,a,o,e,i);for(let e of d){const i=ti(...e);t.bezierCurveTo(...i)}},Je=function(t,e,i,n,s,r,o,h,a){const l=o*(Math.PI/180),c=Math.sin(l),d=Math.cos(l);i=Math.abs(i),n=Math.abs(n),$e=d*(h-t)*.5+c*(a-e)*.5,He=d*(a-e)*.5-c*(h-t)*.5;let u=$e*$e/(i*i)+He*He/(n*n);u>1&&(u=Math.sqrt(u),i*=u,n*=u);const f=d/i,g=c/i,p=-c/n,A=d/n,m=f*h+g*a,y=p*h+A*a,b=f*t+g*e,w=p*t+A*e;let _=1/((b-m)*(b-m)+(w-y)*(w-y))-.25;_<0&&(_=0);let S=Math.sqrt(_);r===s&&(S=-S);const C=.5*(m+b)-S*(w-y),x=.5*(y+w)+S*(b-m),v=Math.atan2(y-x,m-C);let T=Math.atan2(w-x,b-C)-v;T<0&&1===r?T+=2*Math.PI:T>0&&0===r&&(T-=2*Math.PI);const k=Math.ceil(Math.abs(T/(.5*Math.PI+.001))),P=[];for(let t=0;t<k;t++){const e=v+t*T/k,s=v+(t+1)*T/k;P[t]=[C,x,e,s,i,n,c,d]}return P},ti=function(t,e,i,n,s,r,o,h){const a=h*s,l=-o*r,c=o*s,d=h*r,u=.5*(n-i),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),g=t+Math.cos(i)-f*Math.sin(i),p=e+Math.sin(i)+f*Math.cos(i),A=t+Math.cos(n),m=e+Math.sin(n),y=A+f*Math.sin(n),b=m-f*Math.cos(n);return[a*g+l*p,c*g+d*p,a*y+l*b,c*y+d*b,a*A+l*m,c*A+d*m]};class ei{static apply(t,e){const i=function(t){const e=[];let i=null,n=[],s=0,r=!1,o=!1;for(let h=0;h<t.length;h+=1){const a=t.charAt(h);if(qe(a))continue;if(r&&","===a){if(o)break;o=!0;continue}if(Ye(a)){if(o)return e;if(null==i){if("M"!==a&&"m"!==a)return e}else if(0!==n.length)return e;i=a,n=[],s=Ke[i],r=!1,0===s&&e.push({command:i,args:n});continue}if(null==i)return e;let l=h,c=null;if("A"===i||"a"===i){const e=n.length;0!==e&&1!==e||"+"!==a&&"-"!==a&&([l,c]=Xe(t,h)),2!==e&&5!==e&&6!==e||([l,c]=Xe(t,h)),3!==e&&4!==e||("0"===a&&(c=0),"1"===a&&(c=1))}else[l,c]=Xe(t,h);if(null==c)return e;n.push(c),r=!0,o=!1,h=l,n.length===s&&(e.push({command:i,args:n}),"M"===i&&(i="L"),"m"===i&&(i="l"),n=[])}return e}(e);!function(t,e){We=Ge=$e=He=je=Ne=0;for(let i=0;i<t.length;i++){const n=t[i];"function"==typeof Ve[n.command]&&Ve[n.command](e,n.args)}}(i,t)}}const{number:ii}=T,ni=(Math.sqrt(2)-1)/3*4;var si={initVector(){this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath(){return this.addContent("h")},lineWidth(t){return this.addContent(`${ii(t)} w`)},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap(t){return"string"==typeof t&&(t=this._CAP_STYLES[t.toUpperCase()]),this.addContent(`${t} J`)},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin(t){return"string"==typeof t&&(t=this._JOIN_STYLES[t.toUpperCase()]),this.addContent(`${t} j`)},miterLimit(t){return this.addContent(`${ii(t)} M`)},dash(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t;Array.isArray(t)||(t=[t,e.space||t]);if(!t.every(t=>Number.isFinite(t)&&t>0))throw new Error(`dash(${JSON.stringify(i)}, ${JSON.stringify(e)}) invalid, lengths must be numeric and greater than zero`);return t=t.map(ii).join(" "),this.addContent(`[${t}] ${ii(e.phase||0)} d`)},undash(){return this.addContent("[] 0 d")},moveTo(t,e){return this.addContent(`${ii(t)} ${ii(e)} m`)},lineTo(t,e){return this.addContent(`${ii(t)} ${ii(e)} l`)},bezierCurveTo(t,e,i,n,s,r){return this.addContent(`${ii(t)} ${ii(e)} ${ii(i)} ${ii(n)} ${ii(s)} ${ii(r)} c`)},quadraticCurveTo(t,e,i,n){return this.addContent(`${ii(t)} ${ii(e)} ${ii(i)} ${ii(n)} v`)},rect(t,e,i,n){return this.addContent(`${ii(t)} ${ii(e)} ${ii(i)} ${ii(n)} re`)},roundedRect(t,e,i,n,s){let r;null==s&&(s=0),r=Array.isArray(s)?s.slice(0,4):[s,s,s,s];const o=Math.min(.5*i,.5*n),h=Math.max(0,Math.min(r[0]||0,o)),a=Math.max(0,Math.min(r[1]||0,o)),l=Math.max(0,Math.min(r[2]||0,o)),c=Math.max(0,Math.min(r[3]||0,o)),d=a*(1-ni),u=l*(1-ni),f=c*(1-ni),g=h*(1-ni);return this.moveTo(t+h,e),this.lineTo(t+i-a,e),a>0&&this.bezierCurveTo(t+i-d,e,t+i,e+d,t+i,e+a),this.lineTo(t+i,e+n-l),l>0&&this.bezierCurveTo(t+i,e+n-u,t+i-u,e+n,t+i-l,e+n),this.lineTo(t+c,e+n),c>0&&this.bezierCurveTo(t+f,e+n,t,e+n-f,t,e+n-c),this.lineTo(t,e+h),h>0&&this.bezierCurveTo(t,e+g,t+g,e,t+h,e),this.closePath()},ellipse(t,e,i,n){null==n&&(n=i);const s=i*ni,r=n*ni,o=(t-=i)+2*i,h=(e-=n)+2*n,a=t+i,l=e+n;return this.moveTo(t,l),this.bezierCurveTo(t,l-r,a-s,e,a,e),this.bezierCurveTo(a+s,e,o,l-r,o,l),this.bezierCurveTo(o,l+r,a+s,h,a,h),this.bezierCurveTo(a-s,h,t,l+r,t,l),this.closePath()},circle(t,e,i){return this.ellipse(t,e,i)},arc(t,e,i,n,s,r){null==r&&(r=!1);const o=2*Math.PI,h=.5*Math.PI;let a=s-n;if(Math.abs(a)>o)a=o;else if(0!==a&&r!==a<0){a=(r?-1:1)*o+a}const l=Math.ceil(Math.abs(a)/h),c=a/l,d=c/h*ni*i;let u=n,f=-Math.sin(u)*d,g=Math.cos(u)*d,p=t+Math.cos(u)*i,A=e+Math.sin(u)*i;this.moveTo(p,A);for(let n=0;n<l;n++){const n=p+f,s=A+g;u+=c,p=t+Math.cos(u)*i,A=e+Math.sin(u)*i,f=-Math.sin(u)*d,g=Math.cos(u)*d;const r=p-f,o=A-g;this.bezierCurveTo(n,s,r,o,p,A)}return this},polygon(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.moveTo(...e.shift()||[]);for(let t of e)this.lineTo(...t||[]);return this.closePath()},path(t){return ei.apply(this,t),this},_windingRule:t=>/even-?odd/.test(t)?"*":"",fill(t,e){return/(even-?odd)|(non-?zero)/.test(t)&&(e=t,t=null),t&&this.fillColor(t),this.addContent(`f${this._windingRule(e)}`)},stroke(t){return t&&this.strokeColor(t),this.addContent("S")},fillAndStroke(t,e,i){null==e&&(e=t);const n=/(even-?odd)|(non-?zero)/;return n.test(t)&&(i=t,t=null),n.test(e)&&(i=e,e=t),t&&(this.fillColor(t),this.strokeColor(e)),this.addContent(`B${this._windingRule(i)}`)},clip(t){return this.addContent(`W${this._windingRule(t)} n`)},transform(t,e,i,n,s,r){if(1===t&&0===e&&0===i&&1===n&&0===s&&0===r)return this;const o=this._ctm,[h,a,l,c,d,u]=o;o[0]=h*t+l*e,o[1]=a*t+c*e,o[2]=h*i+l*n,o[3]=a*i+c*n,o[4]=h*s+l*r+d,o[5]=a*s+c*r+u;const f=[t,e,i,n,s,r].map(t=>ii(t)).join(" ");return this.addContent(`${f} cm`)},translate(t,e){return this.transform(1,0,0,1,t,e)}
1,rotate(t){let e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t*Math.PI/180,s=Math.cos(n),r=Math.sin(n);let o=e=0;if(null!=i.origin){[o,e]=i.origin;const t=o*r+e*s;o-=o*s-e*r,e-=t}return this.transform(s,r,-r,s,o,e)},scale(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==e&&(e=t),"object"==typeof e&&(n=e,e=t);let s=i=0;return null!=n.origin&&([s,i]=n.origin,s-=t*s,i-=e*i),this.transform(t,0,0,e,s,i)}};const ri=t=>{throw new Error(`Cannot read '${t}': file paths are not supported outside of Node. Pass a Uint8Array, ArrayBuffer or a data URL instead.`)},oi=new Map,hi=(t,e,i)=>{if(void 0===t)return i;if(!(t instanceof Date)||Number.isNaN(t.getTime()))throw new TypeError(`Expected options.${e} to be a valid Date`);return t.getTime()};var ai={readFileSync:t=>oi.has(t)?oi.get(t).data:ri(t),statSync(t){if(oi.has(t)){const{birthtime:e,ctime:i}=oi.get(t);return{birthtime:new Date(e),ctime:new Date(i)}}return ri(t)}};const li={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},ci=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/);class di{constructor(t){this.name=t.name,this.bbox=t.bbox.slice(),this.ascender=t.ascender,this.descender=t.descender,this.xHeight=t.xHeight,this.capHeight=t.capHeight,this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender);const e=t.glyphNames.split(" ");this.glyphWidths=Object.fromEntries(e.map((e,i)=>[e,t.glyphWidths[i]])),this.kernPairs={};for(let i=0;i<t.kernPairs.length;i+=2){const n=t.kernPairs[i];let s=0;for(const r of t.kernPairs[i+1]){s+=r;const t=Math.floor(s/e.length),i=s%e.length;this.kernPairs[`${e[t]}\0${e[i]}`]=n}}}encodeText(t){const e=[];for(let i=0,n=t.length;i<n;i++){let n=t.charCodeAt(i);n=li[n]||n,e.push(n.toString(16))}return e}glyphsForString(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t.charCodeAt(i);e.push(this.characterToGlyph(n))}return e}characterToGlyph(t){return ci[li[t]||t]||".notdef"}widthOfGlyph(t){return this.glyphWidths[t]||0}getKernPair(t,e){return this.kernPairs[t+"\0"+e]||0}advancesForGlyphs(t){const e=[];for(let i=0;i<t.length;i++){const n=t[i],s=t[i+1];e.push(this.widthOfGlyph(n)+this.getKernPair(n,s))}return e}}class ui{constructor(){}
vendor: 5,716 bytes, line 1
1encode(){throw new Error("Must be implemented by subclasses")}widthOfString(){throw new Error("Must be implemented by subclasses")}ref(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()}finalize(){this.embedded||null==this.dictionary||(this.embed(),this.embedded=!0)}embed(){throw new Error("Must be implemented by subclasses")}lineHeight(t){const e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.lineGap:0;return(this.ascender+e-this.descender)/1e3*t}}class fi extends ui{constructor(t,e,i){super(),this.document=t,this.name=e.name,this.id=i,this.font=new di(e),({ascender:this.ascender,descender:this.descender,bbox:this.bbox,lineGap:this.lineGap,xHeight:this.xHeight,capHeight:this.capHeight}=this.font)}embed(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()}encode(t){const e=this.font.encodeText(t),i=this.font.glyphsForString(`${t}`),n=this.font.advancesForGlyphs(i),s=[];for(let t=0;t<i.length;t++){const e=i[t];s.push({xAdvance:n[t],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(e)})}return[e,s]}widthOfString(t,e){const i=this.font.glyphsForString(`${t}`),n=this.font.advancesForGlyphs(i);let s=0;for(let t of n)s+=t;return s*(e/1e3)}}const gi=function(t){return`0000${t.toString(16)}`.slice(-4)};class pi extends ui{constructor(t,e,i){super(),this.document=t,this.font=e,this.id=i,this.subset=this.font.createSubset(),this.unicode=[[0]],this.widths=[this.font.getGlyph(0).advanceWidth],this.name=this.font.postscriptName,this.scale=1e3/this.font.unitsPerEm,this.ascender=this.font.ascent*this.scale,this.descender=this.font.descent*this.scale,this.xHeight=this.font.xHeight*this.scale,this.capHeight=this.font.capHeight*this.scale,this.lineGap=this.font.lineGap*this.scale,this.bbox=this.font.bbox,!1!==t.options.fontLayoutCache&&(this.layoutCache=Object.create(null))}layoutRun(t,e){const i=this.font.layout(t,e);for(let t=0;t<i.positions.length;t++){const e=i.positions[t];for(let t in e)e[t]*=this.scale;e.advanceWidth=i.glyphs[t].advanceWidth*this.scale}return i}layoutCached(t){if(!this.layoutCache)return this.layoutRun(t);let e;if(e=this.layoutCache[t])return e;const i=this.layoutRun(t);return this.layoutCache[t]=i,i}layout(t,e,i){if(e)return this.layoutRun(t,e);let n=i?null:[],s=i?null:[],r=0,o=0,h=0;for(;h<=t.length;){var a;if(h===t.length&&o<h||(a=t.charAt(h),[" ","\t"].includes(a))){const e=this.layoutCached(t.slice(o,++h));i||(n=n.concat(e.glyphs),s=s.concat(e.positions)),r+=e.advanceWidth,o=h}else h++}return{glyphs:n,positions:s,advanceWidth:r}}encode(t,e){const{glyphs:i,positions:n}=this.layout(t,e),s=[];for(let t=0;t<i.length;t++){const e=i[t],n=this.subset.includeGlyph(e.id);s.push(`0000${n.toString(16)}`.slice(-4)),null==this.widths[n]&&(this.widths[n]=e.advanceWidth*this.scale),null==this.unicode[n]&&(this.unicode[n]=e.codePoints)}return[s,n]}widthOfString(t,e,i){return this.layout(t,i,!0).advanceWidth*(e/1e3)}embed(){const t=null!=this.subset.cff,e=this.document.ref();t&&(e.data.Subtype="CIDFontType0C"),e.end(this.subset.encode());const i=((null!=this.font["OS/2"]?this.font["OS/2"].sFamilyClass:void 0)||0)>>8;let n=0;this.font.post.isFixedPitch&&(n|=1),1<=i&&i<=7&&(n|=2),n|=4,10===i&&(n|=8),this.font.head.macStyle.italic&&(n|=64);const s=[1,2,3,4,5,6].map(t=>String.fromCharCode((this.id.charCodeAt(t)||73)+17)).join("")+"+"+this.font.postscriptName?.replaceAll(" ","_"),{bbox:r}=this.font,o=this.document.ref({Type:"FontDescriptor",FontName:s,Flags:n,FontBBox:[r.minX*this.scale,r.minY*this.scale,r.maxX*this.scale,r.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});if(t?o.data.FontFile3=e:o.data.FontFile2=e,this.document.subset&&1===this.document.subset){const t=this.widths.length-1,e=new Uint8Array(Math.ceil((t+1)/8));for(let i=0;i<=t;i++)null!=this.widths[i]&&(e[Math.floor(i/8)]|=128>>i%8);const i=this.document.ref();i.write(e),i.end(),o.data.CIDSet=i}o.end();const h={Type:"Font",Subtype:"CIDFontType0",BaseFont:s,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:o,W:[0,this.widths]};t||(h.Subtype="CIDFontType2",h.CIDToGIDMap="Identity");const a=this.document.ref(h);return a.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:s,Encoding:"Identity-H",DescendantFonts:[a],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}toUnicodeCmap(){const t=this.document.ref(),e=[];for(let t of this.unicode){const i=[];for(let e of t)e>65535&&(e-=65536,i.push(gi(e>>>10&1023|55296)),e=56320|1023&e),i.push(gi(e));e.push(`<${i.join(" ")}>`)}const i=Math.ceil(e.length/256),n=[];for(let t=0;t<i;t++){const i=256*t,s=Math.min(256*(t+1),e.length);n.push(`<${gi(i)}> <${gi(s-1)}> [${e.slice(i,s).join(" ")}]`)}return t.end(`/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n${n.length} beginbfrange\n${n.join("\n")}\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend`),t}}const Ai=new Set(["Courier","Courier-Bold","Courier-BoldOblique","Courier-Oblique","Helvetica","Helvetica-Bold","Helvetica-BoldOblique","Helvetica-Oblique","Symbol","Times-Bold","Times-BoldItalic","Times-Italic","Times-Roman","ZapfDingbats"]),mi=(t,e)=>{if(null==t||"object"!=typeof t||!Ai.has(t.name)||null!=e&&t.name!==e)throw new TypeError("Invalid standard font data.")},yi=new Map;
1class bi{static open(t,e,i,n){let s;if("string"==typeof e){if(r=e,Ai.has(r))return new fi(t,(t=>{if(!Ai.has(t))return null;const e=yi.get(t);if(null==e)throw new Error(`Standard font "${t}" is not registered. Call registerStdFonts() before using it.`);if("function"!=typeof e)return e;const i=e();return mi(i,t),yi.set(t,i),i})(e),n);e=ai.readFileSync(e)}var r;if(e instanceof Uint8Array?s=(0,o.vt)(e,i):e instanceof ArrayBuffer?s=(0,o.vt)(new Uint8Array(e),i):"function"==typeof e?.layout&&(s=e),null==s)throw new Error("Not a supported font format or standard PDF font.");return new pi(t,s,n)}}var wi={initFonts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12;this._fontFamilies={},this._fontCount=0,this._fontSource=t,this._fontFamily=e,this._fontSize=i,this._font=null,this._remSize=i,this._registeredFonts={},t&&this.font(t,e)},font(t,e,i){let n,s;if("number"==typeof e&&(i=e,e=null),"string"==typeof t&&this._registeredFonts[t]?(n=t,({src:t,family:e}=this._registeredFonts[t])):(n=e||t,"string"!=typeof n&&(n=null)),this._fontSource=t,this._fontFamily=e,null!=i&&this.fontSize(i),s=this._fontFamilies[n])return this._font=s,this;const r="F"+ ++this._fontCount;return this._font=bi.open(this,t,e,r),(s=this._fontFamilies[this._font.name])&&(o=this._font,h=s,o.font._tables?.head?.checkSumAdjustment===h.font._tables?.head?.checkSumAdjustment&&JSON.stringify(o.font._tables?.name?.records)===JSON.stringify(h.font._tables?.name?.records))?(this._font=s,this):(n&&(this._fontFamilies[n]=this._font),this._font.name&&!this._fontFamilies[this._font.name]&&(this._fontFamilies[this._font.name]=this._font),n||this._font.name&&this._fontFamilies[this._font.name]===this._font||(this._fontFamilies[this._font.id]=this._font),this);var o,h},fontSize(t){return this._fontSize=this.sizeToPoint(t),this},currentLineHeight(t){return this._font.lineHeight(this._fontSize,t)},registerFont(t,e,i){return this._registeredFonts[t]={src:e,family:i},this},sizeToPoint(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.page,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;if(n||(n=this._fontSize),"number"!=typeof e&&(e=this.sizeToPoint(e)),void 0===t)return e;if("number"==typeof t)return t;if("boolean"==typeof t)return Number(t);const s=String(t).match(/((\d+)?(\.\d+)?)(em|in|px|cm|mm|pc|ex|ch|rem|vw|vh|vmin|vmax|%|pt)?/);if(!s)throw new Error(`Unsupported size '${t}'`);let r;switch(s[4]){case"em":r=this._fontSize;break;case"in":r=72;break;case"px":r=.75;break;case"cm":r=72*B;break;case"mm":r=.1*B*72;break;case"pc":r=12;break;case"ex":r=this.currentLineHeight();break;case"ch":r=this.widthOfString("0");break;case"rem":r=this._remSize;break;case"vw":r=i.width/100;break;case"vh":r=i.height/100;break;case"vmin":r=Math.min(i.width,i.height)/100;break;case"vmax":r=Math.max(i.width,i.height)/100;break;case"%":r=n/100;break;default:r=1}return r*Number(s[1])}};class _i extends l{constructor(t,e){super(),this.document=t,this.horizontalScaling=e.horizontalScaling||100,this.indent=(e.indent||0)*this.horizontalScaling/100,this.indentAllLines=e.indentAllLines||!1,this.characterSpacing=(e.characterSpacing||0)*this.horizontalScaling/100,this.wordSpacing=(0===e.wordSpacing)*this.horizontalScaling/100,this.columns=e.columns||1,this.columnGap=(null!=e.columnGap?e.columnGap:18)*this.horizontalScaling/100,this.lineWidth=(e.width*this.horizontalScaling/100-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=e.ellipsis,this.continuedX=0,this.indentApplied=!1,this.features=e.features,null!=e.height?(this.height=e.height,this.maxY=D(this.startY+e.height)):this.maxY=D(this.document.page.maxY()),this.on("firstLine",t=>{const e=this.continuedX,i=e||this.indent;!e&&this.indentApplied||(this.document.x+=i,this.lineWidth-=i,this.indentApplied=!0),t.indentAllLines?e&&this.once("line",()=>{this.document.x-=e,this.lineWidth+=e}):this.once("line",()=>
vendor: 4,498 bytes, line 1
1{this.document.x-=i,this.lineWidth+=i,this.indentApplied=!1,t.continued&&!this.continuedX&&(this.continuedX=this.indent),t.continued||(this.continuedX=0)})}),this.on("lastLine",t=>{const{align:e}=t;"justify"===e&&(t.align="left"),this.lastLine=!0,this.once("line",()=>(this.document.y+=t.paragraphGap||0,t.align=e,this.lastLine=!1))})}wordWidth(t){return D(this.document.widthOfString(t,this)+this.characterSpacing+this.wordSpacing)}canFit(t,e){return"Â"!=t[t.length-1]?e<=this.spaceLeft:e+this.wordWidth("-")<=this.spaceLeft}eachWord(t,e){let i;const n=new h.A(t);let s=null;const r=Object.create(null);for(;i=n.nextBreak();){var o;let n=t.slice((null!=s?s.position:void 0)||0,i.position),h=null!=r[n]?r[n]:r[n]=this.wordWidth(n);if(h>this.lineWidth+this.continuedX){let t=s;const r={};for(;n.length;){var a,l;h>this.spaceLeft?(a=Math.ceil(this.spaceLeft/(h/n.length)),h=this.wordWidth(n.slice(0,a)),l=h<=this.spaceLeft&&a<n.length):a=n.length;let s=h>this.spaceLeft&&a>0;for(;s||l;)s?(h=this.wordWidth(n.slice(0,--a)),s=h>this.spaceLeft&&a>0):(h=this.wordWidth(n.slice(0,++a)),s=h>this.spaceLeft&&a>0,l=h<=this.spaceLeft&&a<n.length);if(0===a&&this.spaceLeft===this.lineWidth&&(a=1),r.required=i.required||a<n.length,o=e(n.slice(0,a),h,r,t),t={required:!1},n=n.slice(a),h=this.wordWidth(n),!1===o)break}}else o=e(n,h,i,s);if(!1===o)break;s=i}}wrap(t,e){const{document:i}=this;this.horizontalScaling=e.horizontalScaling||100,null!=e.indent&&(this.indent=e.indent*this.horizontalScaling/100),null!=e.characterSpacing&&(this.characterSpacing=e.characterSpacing*this.horizontalScaling/100),null!=e.wordSpacing&&(this.wordSpacing=e.wordSpacing*this.horizontalScaling/100),null!=e.ellipsis&&(this.ellipsis=e.ellipsis);const n=i.y+i.currentLineHeight(!0);(i.y>this.maxY||n>this.maxY)&&this.nextSection();let s="",r=0,o=0,h=0,a=i.y;const l=()=>(e.textWidth=r+this.wordSpacing*(o-1),e.wordCount=o,e.lineWidth=this.lineWidth,a=i.y,this.emit("line",s,e,this),h++);this.emit("sectionStart",e,this),this.eachWord(t,(t,n,h,a)=>{if((null==a||a.required)&&(this.emit("firstLine",e,this),this.spaceLeft=this.lineWidth),this.canFit(t,n)&&(s+=t,r+=n,o++),h.required||!this.canFit(t,n)){const a=i.currentLineHeight(!0);if(null!=this.height&&this.ellipsis&&D(i.y+2*a)>this.maxY&&this.column>=this.columns){for(!0===this.ellipsis&&(this.ellipsis="â¦"),s=s.replace(/\s+$/,""),r=this.wordWidth(s+this.ellipsis);s&&r>this.lineWidth;)s=s.slice(0,-1).replace(/\s+$/,""),r=this.wordWidth(s+this.ellipsis);r<=this.lineWidth&&(s+=this.ellipsis),r=this.wordWidth(s)}if(h.required&&(n>this.spaceLeft&&(l(),s=t,r=n,o=1),this.emit("lastLine",e,this)),"Â"==s[s.length-1]&&(s=s.slice(0,-1)+"-",this.spaceLeft-=this.wordWidth("-")),l(),D(i.y+a)>this.maxY){this.emit("sectionEnd",e,this);if(!this.nextSection())return o=0,s="",!1;this.emit("sectionStart",e,this)}return h.required?(this.spaceLeft=this.lineWidth,s="",r=0,o=0):(this.spaceLeft=this.lineWidth-n,s=t,r=n,o=1)}return this.spaceLeft-=n}),o>0&&(this.emit("lastLine",e,this),l()),this.emit("sectionEnd",e,this),!0===e.continued?(h>1&&(this.continuedX=0),this.continuedX+=e.textWidth||0,i.y=a):i.x=this.startX}nextSection(t){if(++this.column>this.columns){if(null!=this.height)return!1;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.indentAllLines?this.indentApplied&&(this.document.x+=this.continuedX||this.indent):this.document.x=this.startX,this.document._fillColor&&this.document.fillColor(...this.document._fillColor),this.emit("pageBreak",t,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",t,this);return!0}}const{number:Si}=T;var Ci={initText(){this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap(t){return this._lineGap=t,this},moveDown(t){return null==t&&(t=1),this.y+=this.currentLineHeight(!0)*t+this._lineGap,this},moveUp(t){return null==t&&(t=1),this.y-=this.currentLineHeight(!0)*t+this._lineGap,this},_text(t,e,i,n,s){t=null==t?"":`${t}`,(n=this._initOptions(e,i,n)).wordSpacing&&(t=t.replace(/\s{2,}/g," "));const r=()=>{n.structParent&&n.structParent.add(this.struct(n.structType||"P",[this.markStructureContent(n.structType||"P")]))};if(0!==n.rotation&&(this.save(),this.rotate(-n.rotation,{origin:[this.x,this.y]})),n.width){let e=this._wrapper;e||(e=new _i(this,n),e.on("line",s),e.on("firstLine",r)),this._wrapper=n.continued?e:null,this._textOptions=n.continued?n:null,e.wrap(t,n)}
vendor: 5,703 bytes, line 1
1else for(let e of t.split("\n"))r(),s(e,n);return 0!==n.rotation&&this.restore(),this},text(t,e,i,n){return this._text(t,e,i,n,this._line)},widthOfString(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.horizontalScaling||100;return(this._font.widthOfString(t,this._fontSize,e.features)+(e.characterSpacing||0)*(t.length-1))*i/100},boundsOfString(t,e,i,n){n=this._initOptions(e,i,n),({x:e,y:i}=this);const s=n.lineGap??this._lineGap??0,r=this.currentLineHeight(!0)+s;let o=0;if(t=String(t??""),n.wordSpacing&&(t=t.replace(/\s{2,}/g," ")),n.width){let e=new _i(this,n);e.on("line",(t,e)=>{if(this.y+=r,(t=t.replace(/\n/g,"")).length){let i=e.wordSpacing??0;const n=e.characterSpacing??0;if(e.width&&"justify"===e.align){const s=t.trim().split(/\s+/),r=this.widthOfString(t.replace(/\s+/g,""),e),o=this.widthOfString(" ")+n;i=Math.max(0,(e.lineWidth-r)/Math.max(1,s.length-1)-o)}o=Math.max(o,e.textWidth+i*(e.wordCount-1)+n*(t.length-1))}}),e.wrap(t,n)}else for(let e of t.split("\n")){const t=this.widthOfString(e,n);this.y+=r,o=Math.max(o,t)}let h=this.y-i;if(n.height&&(h=Math.min(h,n.height)),this.x=e,this.y=i,0===n.rotation)return{x:e,y:i,width:o,height:h};if(90===n.rotation)return{x:e,y:i-o,width:h,height:o};if(180===n.rotation)return{x:e-o,y:i-h,width:o,height:h};if(270===n.rotation)return{x:e-h,y:i,width:h,height:o};const a=I(n.rotation),l=O(n.rotation),c=e,d=i,u=e+o*a,f=i-o*l,g=e+o*a+h*l,p=i-o*l+h*a,A=e+h*l,m=i+h*a,y=Math.min(c,u,g,A),b=Math.max(c,u,g,A),w=Math.min(d,f,p,m);return{x:y,y:w,width:b-y,height:Math.max(d,f,p,m)-w}},heightOfString(t,e){const{x:i,y:n}=this;(e=this._initOptions(e)).height=1/0;const s=e.lineGap||this._lineGap||0;this._text(t,this.x,this.y,e,()=>{this.y+=this.currentLineHeight(!0)+s});const r=this.y-n;return this.x=i,this.y=n,r},list(t,e,i,n){const s=(n=this._initOptions(e,i,n)).listType||"bullet",r=Math.round(this._font.ascender/1e3*this._fontSize),o=r/2,h=n.bulletRadius||r/3,a=n.textIndent||("bullet"===s?5*h:2*r),l=n.bulletIndent||("bullet"===s?8*h:2*r);let c=1;const d=[],u=[],f=[];var g=function(t){let e=1;for(let i=0;i<t.length;i++){const n=t[i];Array.isArray(n)?(c++,g(n),c--):(d.push(n),u.push(c),"bullet"!==s&&f.push(e++))}};g(t);const p=function(t,e){const i=new _i(this,n);i.on("line",this._line),c=1,i.once("firstLine",()=>{let t,r,d,g,p;if(n.structParent&&(n.structTypes?[r,d,g]=n.structTypes:[r,d,g]=["LI","Lbl","LBody"]),r?(t=this.struct(r),n.structParent.add(t)):n.structParent&&(t=n.structParent),(p=u[e++])!==c){const t=l*(p-c);this.x+=t,i.lineWidth-=t,c=p}switch(t&&(d||g)&&t.add(this.struct(d||g,[this.markStructureContent(d||g)])),s){case"bullet":this.circle(this.x-a+h,this.y+o,h),this.fill();break;case"numbered":case"lettered":var A=function(t,e){if("numbered"===e)return`${t}.`;var i=String.fromCharCode((t-1)%26+65),n=Math.floor((t-1)/26+1);return`${Array(n+1).join(i)}.`}(f[e-1],s);this._fragment(A,this.x-a,this.y,n)}t&&d&&g&&t.add(this.struct(g,[this.markStructureContent(g)])),t&&t!==n.structParent&&t.end()}),i.on("sectionStart",()=>{const t=a+l*(c-1);this.x+=t,i.lineWidth-=t}),i.on("sectionEnd",()=>{const t=a+l*(c-1);this.x-=t,i.lineWidth+=t}),i.wrap(t,n)};for(let t=0;t<d.length;t++)p.call(this,d[t],t);return this},_initOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t&&"object"==typeof t&&(i=t,t=null);const n=Object.assign({},i);if(this._textOptions)for(let t in this._textOptions){const e=this._textOptions[t];"continued"!==t&&void 0===n[t]&&(n[t]=e)}return null!=t&&(this.x=t),null!=e&&(this.y=e),!1!==n.lineBreak&&(null==n.width&&(n.width=this.page.width-this.x-this.page.margins.right),n.width=Math.max(n.width,0)),n.columns||(n.columns=0),null==n.columnGap&&(n.columnGap=18),n.rotation=Number(n.rotation??0)%360,n.rotation<0&&(n.rotation+=360),n},_line(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(this._fragment(t,this.x,this.y,e),i){const t=e.lineGap||this._lineGap||0;this.y+=this.currentLineHeight(!0)+t}else this.x+=this.widthOfString(t,e)},_fragment(t,e,i,n){let s,r,o,h,a,l;if(0===(t=`${t}`.replace(/\n/g,"")).length)return;const c=n.align||"left";let d=n.wordSpacing||0;const u=n.characterSpacing||0,f=n.horizontalScaling||100;if(n.width)switch(c){case"right":a=this.widthOfString(t.replace(/\s+$/,""),n),e+=n.lineWidth-a;break;case"center":e+=n.lineWidth/2-n.textWidth/2;break;case"justify":l=t.trim().split(/\s+/),a=this.widthOfString(t.replace(/\s+/g,""),n);var g=this.widthOfString(" ")+u;d=Math.max(0,(n.lineWidth-a)/Math.max(1,l.length-1)-g)}if("number"==typeof n.baseline)s=-n.baseline;else{switch(n.baseline){case"svg-middle":s=.5*this._font.xHeight;break;case"middle":case"svg-central":s=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":s=this._font.descender;break;case"alphabetic":s=0;break;case"mathematical":s=.5*this._font.ascender;break;case"hanging":s=.8*this._font.ascender;break;default:s=this._font.ascender}s=s/1e3*this._fontSize}const p=n.textWidth+d*(n.wordCount-1)+u*(t.length-1);if(null!=n.link){const t={};this._currentStructureElement&&"Link"===this._currentStructureElement.dictionary.data.S&&(t.structParent=this._currentStructureElement),this.link(e,i,p,this.currentLineHeight(),n.link,t)}if(null!=n.goTo&&this.goTo(e,i,p,this.currentLineHeight(),n.goTo),null!=n.destination&&this.addNamedDestination(n.destination,"XYZ",e,i,null),n.underline){this.save(),n.stroke||this.strokeColor(...this._fillColor||[]);const t=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(t);let s=i+this.currentLineHeight()-t;
1this.moveTo(e,s),this.lineTo(e+p,s),this.stroke(),this.restore()}if(n.strike){this.save(),n.stroke||this.strokeColor(...this._fillColor||[]);const t=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(t);let s=i+this.currentLineHeight()/2;this.moveTo(e,s),this.lineTo(e+p,s),this.stroke(),this.restore()}if(this.save(),n.oblique){let t;t="number"==typeof n.oblique?-Math.tan(n.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,e,i),this.transform(1,0,t,1,-t*s,0),this.transform(1,0,0,1,-e,-i)}this.transform(1,0,0,-1,0,this.page.height),i=this.page.height-i-s,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent(`1 0 0 1 ${Si(e)} ${Si(i)} Tm`),this.addContent(`/${this._font.id} ${Si(this._fontSize)} Tf`);const A=n.fill&&n.stroke?2:n.stroke?1:0;if(A&&this.addContent(`${A} Tr`),u&&this.addContent(`${Si(u)} Tc`),100!==f&&this.addContent(`${f} Tz`),d){l=t.trim().split(/\s+/),d+=this.widthOfString(" ")+u,d*=1e3/this._fontSize,r=[],h=[];for(let t of l){const[e,i]=this._font.encode(t,n.features);r=r.concat(e),h=h.concat(i);const s={},o=h[h.length-1];for(let t in o){const e=o[t];s[t]=e}s.xAdvance+=d,h[h.length-1]=s}}else[r,h]=this._font.encode(t,n.features);const m=this._fontSize/1e3,y=[];let b=0,w=!1;const _=t=>{if(b<t){const e=r.slice(b,t).join(""),i=h[t-1].xAdvance-h[t-1].advanceWidth;y.push(`<${e}> ${Si(-i)}`)}b=t},S=t=>{_(t),y.length>0&&(this.addContent(`[${y.join(" ")}] TJ`),y.length=0)};for(o=0;o<h.length;o++){const t=h[o];t.xOffset||t.yOffset?(S(o),this.addContent(`1 0 0 1 ${Si(e+t.xOffset*m)} ${Si(i+t.yOffset*m)} Tm`),S(o+1),w=!0):(w&&(this.addContent(`1 0 0 1 ${Si(e)} ${Si(i)} Tm`),w=!1),t.xAdvance-t.advanceWidth!==0&&_(o+1)),e+=t.xAdvance*m}S(o),this.addContent("ET"),this.restore()}};const xi=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],vi={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"};class Ti{constructor(t,e){let i;if(this.data=t,this.label=e,65496!==m(this.data,0))throw"SOI not found in JPEG";this.orientation=(t=>{if(!t||t.length<20)return null;let e=2;for(;e<t.length-4;){for(;e<t.length&&255!==t[e];)e++;if(e>=t.length-4)return null;const i=m(t,e);if(e+=2,65498===i)return null;if(i>=65488&&i<=65497||65281===i)continue;if(e+2>t.length)return null;const n=m(t,e);if(65505===i&&e+8<=t.length&&"Exif\0\0"===g(t.subarray(e+2,e+8))){const i=e+8;if(i+8>t.length)return null;const n=g(t.subarray(i,i+2)),s="II"===n;if(!s&&"MM"!==n)return null;const r=s?e=>y(t,e):e=>m(t,e),o=s?e=>w(t,e):e=>b(t,e);if(42!==r(i+2))return null;const h=i+o(i+4);if(h+2>t.length)return null;const a=r(h);for(let e=0;e<a;e++){const i=h+2+12*e;if(i+12>t.length)return null;if(274===r(i)){const t=r(i+8);return t>=1&&t<=8?t:null}}return null}e+=n}return null})(this.data)||1;let n=2;for(;n<this.data.length;){for(;n<this.data.length&&255!==this.data[n];)n++;if(n>=this.data.length)break;if(i=m(this.data,n),n+=2,xi.includes(i))break;n+=m(this.data,n)}if(!xi.includes(i))throw"Invalid JPEG.";n+=2,this.bits=this.data[n++],this.height=m(this.data,n),n+=2,this.width=m(this.data,n),n+=2;const s=this.data[n];this.colorSpace=vi[s],this.obj=null}embed(t){if(!this.obj)return this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null}}class ki{constructor(t,e){this.label=e,this.image=new a.A(t),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}embed(t){if(this.document=t,this.obj)return;const{image:e,height:i,width:n}=this,s=e.hasAlphaChannel,r=1===e.interlaceMethod,o=this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:s?8:e.bits,Width:n,Height:i,Filter:"FlateDecode"});if(!s){const i=t.ref({Predictor:r?1:15,Colors:e.colors,BitsPerComponent:e.bits,Columns:n});o.data.DecodeParms=i,i.end()}
1if(0===e.palette.length)o.data.ColorSpace=e.colorSpace;else{const i=t.ref();i.end(new Uint8Array(e.palette)),o.data.ColorSpace=["Indexed","DeviceRGB",e.palette.length/3-1,i]}if(null!=e.transparency.grayscale){const t=e.transparency.grayscale;o.data.Mask=[t,t]}else if(e.transparency.rgb){const{rgb:t}=e.transparency,i=[];for(let e of t)i.push(e,e);o.data.Mask=i}else{if(e.transparency.indexed)return this.loadIndexedAlphaChannel();if(s)return this.splitAlphaChannel()}if(r)return this.decodeData();this.finalize()}finalize(){if(this.alphaChannel){const t=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});t.end(this.alphaChannel),this.obj.data.SMask=t}return this.obj.end(this.imgData),this.image=null,this.imgData=null}splitAlphaChannel(){return this.image.decodePixels(t=>{let e,i;const n=this.image.colors,s=this.width*this.height,r=new Uint8Array(s*n),o=new Uint8Array(s);let h=i=e=0;const a=t.length,l=16===this.image.bits?1:0;for(;h<a;){for(let e=0;e<n;e++)r[i++]=t[h++],h+=l;o[e++]=t[h++],h+=l}return this.imgData=k(r),this.alphaChannel=k(o),this.finalize()})}loadIndexedAlphaChannel(){const t=this.image.transparency.indexed,e=1===this.image.interlaceMethod;return this.image.decodePixels(i=>{const n=new Uint8Array(this.width*this.height);let s=0;for(let e=0,r=i.length;e<r;e++)n[s++]=t[i[e]];return e&&(this.imgData=k(i)),this.alphaChannel=k(n),this.finalize()})}decodeData(){this.image.decodePixels(t=>{this.imgData=k(t),this.finalize()})}}class Pi{static open(t,e){let i;if(t instanceof Uint8Array)i=t;else if(t instanceof ArrayBuffer)i=new Uint8Array(t);else{const e=/^data:.+?;base64,(.*)$/.exec(t);if(e)i=A(e[1]);else if(i=ai.readFileSync(t),!i)return}if(255===i[0]&&216===i[1])return new Ti(i,e);if(137===i[0]&&80===i[1]&&78===i[2]&&71===i[3])return new ki(i,e);throw new Error("Unknown image format.")}}var Fi={initImages(){this._imageRegistry={},this._imageCount=0},image(t,e,i){let n,s,r,o,h,a,l,c,d,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof e&&(u=e,e=null);const f=u.ignoreOrientation||!1!==u.ignoreOrientation&&this.options.ignoreOrientation,g="number"!=typeof i;e=null!=(a=null!=e?e:u.x)?a:this.x,i=null!=(l=null!=i?i:u.y)?l:this.y,"string"==typeof t&&(o=this._imageRegistry[t]),o||(o=t.width&&t.height?t:this.openImage(t)),o.obj||o.embed(this),null==this.page.xobjects[o.label]&&(this.page.xobjects[o.label]=o.obj);let{width:p,height:A}=o;!f&&o.orientation>4&&([p,A]=[A,p]);let m=u.width||p,y=u.height||A;if(u.width&&!u.height){const t=m/p;m=p*t,y=A*t}else if(u.height&&!u.width){const t=y/A;m=p*t,y=A*t}else u.scale?(m=p*u.scale,y=A*u.scale):u.fit?([r,n]=u.fit,s=r/n,h=p/A,h>s?(m=r,y=r/h):(y=n,m=n*h)):u.cover&&([r,n]=u.cover,s=r/n,h=p/A,h>s?(y=n,m=n*h):(m=r,y=r/h));(u.fit||u.cover)&&("center"===u.align?e=e+r/2-m/2:"right"===u.align&&(e=e+r-m),"center"===u.valign?i=i+n/2-y/2:"bottom"===u.valign&&(i=i+n-y));let b=0,w=e,_=i,S=y,C=m;if(f)S=-y,_+=y;else switch(o.orientation){default:case 1:S=-y,_+=y;break;case 2:C=-m,S=-y,w+=m,_+=y;break;case 3:c=e,d=i,S=-y,w-=m,b=180;break;case 4:break;case 5:c=e,d=i,C=y,S=m,_-=S,b=90;break;case 6:c=e,d=i,C=y,S=-m,b=90;break;case 7:c=e,d=i,S=-m,C=-y,w+=y,b=90;break;case 8:c=e,d=i,C=y,S=-m,w-=y,_+=m,b=-90}return null!=u.link&&this.link(e,i,m,y,u.link),null!=u.goTo&&this.goTo(e,i,m,y,u.goTo),null!=u.destination&&this.addNamedDestination(u.destination,"XYZ",e,i,null),g&&(this.y+=y),this.save(),null!=u.opacity&&this._doOpacity(u.opacity,null),b&&this.rotate(b,{origin:[c,d]}),this.transform(C,0,0,S,w,_),this.addContent(`/${o.label} Do`),this.restore(),this},openImage(t){let e;return"string"==typeof t&&(e=this._imageRegistry[t]),e||(e=Pi.open(t,"I"+ ++this._imageCount),"string"==typeof t&&(this._imageRegistry[t]=e)),e}};class Mi{constructor(t){this.annotationRef=t}}var Di={annotate(t,e,i,n,s){const{structParent:r,color:o,...h}=s;h.Type="Annot",h.Rect=this._convertRect(t,e,i,n),h.Border=[0,0,0],"Link"===h.Subtype&&void 0===h.F&&(h.F=4),"Link"!==h.Subtype&&null==h.C&&(h.C=this._normalizeColor(o||[0,0,0])),"string"==typeof h.Dest&&(h.Dest=new String(h.Dest));const a=this.ref(h);if(this.page.annotations.push(a),"function"==typeof r?.add){const t=new Mi(a);r.add(t)}return a.end(),this},note(t,e,i,n,s,r){const o={...r,Subtype:"Text",Contents:new String(s)};return null==o.Name&&(o.Name="Comment"),null==o.color&&(o.color=[243,223,92]),this.annotate(t,e,i,n,o)},goTo(t,e,i,n,s,r){const o={...r,Subtype:"Link",A:this.ref({S:"GoTo",D:new String(s)})};return o.A.end(),this.annotate(t,e,i,n,o)},link(t,e,i,n,s,r){const o={...r,Subtype:"Link"};if("number"==typeof s){const t=this._root.data.Pages.data;if(!(s>=0&&s<t.Kids.length))throw new Error(`The document has no page ${s}`);o.A=this.ref({S:"GoTo",D:[t.Kids[s],"XYZ",null,null,null]}),o.A.end()}else o.A=this.ref({S:"URI",URI:new String(s)}),o.A.end();return o.structParent&&!o.Contents&&(o.Contents=new String("")),this.annotate(t,e,i,n,o)},_markup(t,e,i,n,s){const[r,o,h,a]=this._convertRect(t,e,i,n);return this.annotate(t,e,i,n,{...s,QuadPoints:[r,a,h,a,r,o,h,o],Contents:new String})},highlight(t,e,i,n,s){const r={...s,Subtype:"Highlight"};return null==r.color&&(r.color=[241,238,148]),this._markup(t,e,i,n,r)},underline(t,e,i,n,s){const r={...s,Subtype:"Underline"};return this._markup(t,e,i,n,r)},strike(t,e,i,n,s){const r={...s,Subtype:"StrikeOut"};return this._markup(t,e,i,n,r)}
1,lineAnnotation(t,e,i,n,s){const r={...s,Subtype:"Line",Contents:new String,L:[t,this.page.height-e,i,this.page.height-n]};return this.annotate(t,e,i,n,r)},rectAnnotation(t,e,i,n,s){const r={...s,Subtype:"Square",Contents:new String};return this.annotate(t,e,i,n,r)},ellipseAnnotation(t,e,i,n,s){const r={...s,Subtype:"Circle",Contents:new String};return this.annotate(t,e,i,n,r)},textAnnotation(t,e,i,n,s,r){const o={...r,Subtype:"FreeText",Contents:new String(s),DA:new String};return this.annotate(t,e,i,n,o)},fileAnnotation(t,e,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5?arguments[5]:void 0;const o=this.file(s.src,Object.assign({hidden:!0},s)),h={...r,Subtype:"FileAttachment",FS:o};return h.Contents?h.Contents=new String(h.Contents):o.data.Desc&&(h.Contents=new String(o.data.Desc)),this.annotate(t,e,i,n,h)},_convertRect(t,e,i,n){let s=e;e+=n;let r=t+i;const[o,h,a,l,c,d]=this._ctm;return r=o*r+a*s+c,s=h*r+l*s+d,[t=o*t+a*e+c,e=h*t+l*e+d,r,s]}};const Ei={top:0,left:0,zoom:0,fit:!0,pageNumber:null,expanded:!1};class Bi{constructor(t,e,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ei;if(this.document=t,this.options=s,this.outlineData={},null!==n){const t=n.data.MediaBox[2],e=n.data.MediaBox[3]-(s.top||0),i=t-(s.left||0),r=s.zoom||0;this.outlineData.Dest=s.fit?[n,"Fit"]:[n,"XYZ",i,e,r]}null!==e&&(this.outlineData.Parent=e),null!==i&&(this.outlineData.Title=new String(i)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}addItem(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei;const i=this.document._root.data.Pages.data.Kids,n=null!=e.pageNumber?i[e.pageNumber]:this.document.page.dictionary,s=new Bi(this.document,this.dictionary,t,n,e);return this.children.push(s),s}endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);const t=this.children[0],e=this.children[this.children.length-1];this.outlineData.First=t.dictionary,this.outlineData.Last=e.dictionary;for(let t=0,e=this.children.length;t<e;t++){const e=this.children[t];t>0&&(e.outlineData.Prev=this.children[t-1].dictionary),t<this.children.length-1&&(e.outlineData.Next=this.children[t+1].dictionary),e.endOutline()}}return this.dictionary.end()}}var Ii={initOutline(){this.outline=new Bi(this,null,null,null)},endOutline(){if(this.outline.endOutline(),this.outline.children.length>0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode=this._root.data.PageMode||"UseOutlines"}};class Oi{constructor(t,e){this.refs=[{pageRef:t,mcid:e}]}push(t){t.refs.forEach(t=>this.refs.push(t))}}class Ui{constructor(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.document=t,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=t.ref({S:e});const s=this.dictionary.data;(Array.isArray(i)||this._isValidChild(i))&&(n=i,i={}),i.title&&(s.T=new String(i.title)),i.lang&&(s.Lang=new String(i.lang)),i.alt&&(s.Alt=new String(i.alt)),i.expanded&&(s.E=new String(i.expanded)),i.actual&&(s.ActualText=new String(i.actual));const r=Array.isArray(i.bbox)&&4===i.bbox.length,o="string"==typeof i.placement;if(r||o){const e={O:"Layout"};if(e.Placement=o?i.placement:"Block",r){const n=t.page.height;e.BBox=[i.bbox[0],n-i.bbox[3],i.bbox[2],n-i.bbox[1]]}s.A=e}i.scope&&(s.A={...s.A||{},O:"Table",Scope:i.scope}),this._children=[],n&&(Array.isArray(n)||(n=[n]),n.forEach(t=>this.add(t)),this.end())}add(t){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(t))throw new Error("Invalid structure element child");return t instanceof Ui&&(t.setParent(this.dictionary),this._attached&&t.setAttached()),t instanceof Oi&&this._addContentToParentTree(t),t instanceof Mi&&this._addAnnotationToParentTree(t.annotationRef),"function"==typeof t&&this._attached&&(t=this._contentForClosure(t)),this._children.push(t),this}_addContentToParentTree(t){t.refs.forEach(t=>{let{pageRef:e,mcid:i}=t;this.document.getStructParentTree().get(e.data.StructParents)[i]=this.dictionary})}_addAnnotationToParentTree(t){const e=this.document.createStructParentTreeNextKey();t.data.StructParent=e;this.document.getStructParentTree().add(e,this.dictionary)}setParent(t){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=t,this._flush()}
1setAttached(){this._attached||(this._children.forEach((t,e)=>{t instanceof Ui&&t.setAttached(),"function"==typeof t&&(this._children[e]=this._contentForClosure(t))}),this._attached=!0,this._flush())}end(){this._ended||(this._children.filter(t=>t instanceof Ui).forEach(t=>t.end()),this._ended=!0,this._flush())}_isValidChild(t){return t instanceof Ui||t instanceof Oi||t instanceof Mi||"function"==typeof t}_contentForClosure(t){const e=this.document.markStructureContent(this.dictionary.data.S),i=this.document._currentStructureElement;this.document._currentStructureElement=this;const n=this._ended;return this._ended=!1,t(),this._ended=n,this.document._currentStructureElement=i,this.document.endMarkedContent(),this._addContentToParentTree(e),e}_isFlushable(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(t=>"function"!=typeof t&&(!(t instanceof Ui)||t._isFlushable()))}_flush(){!this._flushed&&this._isFlushable()&&(this.dictionary.data.K=[],this._children.forEach(t=>this._flushChild(t)),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}_flushChild(t){if(t instanceof Ui&&this.dictionary.data.K.push(t.dictionary),t instanceof Oi&&t.refs.forEach(t=>{let{pageRef:e,mcid:i}=t;this.dictionary.data.Pg||(this.dictionary.data.Pg=e),this.dictionary.data.Pg===e?this.dictionary.data.K.push(i):this.dictionary.data.K.push({Type:"MCR",Pg:e,MCID:i})}),t instanceof Mi){const e=this.document.page.dictionary,i={Type:"OBJR",Obj:t.annotationRef,Pg:e};this.dictionary.data.K.push(i)}}}class Ri extends u{_compareKeys(t,e){return parseInt(t)-parseInt(e)}_keysName(){return"Nums"}_dataForKey(t){return parseInt(t)}}var Li={initMarkings(t){this.structChildren=[],t.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===t||e&&e.mcid){let t=0;
vendor: 3,178 bytes, line 1
1for(this.page.markings.forEach(e=>{(t||e.structContent||"Artifact"===e.tag)&&t++});t--;)this.endMarkedContent()}if(!e)return this.page.markings.push({tag:t}),this.addContent(`/${t} BMC`),this;this.page.markings.push({tag:t,options:e});const i={};return void 0!==e.mcid&&(i.MCID=e.mcid),"Artifact"===t&&("string"==typeof e.type&&(i.Type=e.type),Array.isArray(e.bbox)&&(i.BBox=[e.bbox[0],this.page.height-e.bbox[3],e.bbox[2],this.page.height-e.bbox[1]]),Array.isArray(e.attached)&&e.attached.every(t=>"string"==typeof t)&&(i.Attached=e.attached)),"Span"===t&&(e.lang&&(i.Lang=new String(e.lang)),e.alt&&(i.Alt=new String(e.alt)),e.expanded&&(i.E=new String(e.expanded)),e.actual&&(i.ActualText=new String(e.actual))),this.addContent(`/${t} ${T.convert(i)} BDC`),this},markStructureContent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this.getStructParentTree().get(this.page.structParentTreeKey),n=i.length;i.push(null),this.markContent(t,{...e,mcid:n});const s=new Oi(this.page.dictionary,n);return this.page.markings.slice(-1)[0].structContent=s,s},endMarkedContent(){return this.page.markings.pop(),this.addContent("EMC"),this._textOptions&&(delete this._textOptions.link,delete this._textOptions.goTo,delete this._textOptions.destination,delete this._textOptions.underline,delete this._textOptions.strike),this},struct(t){return new Ui(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure(t){const e=this.getStructTreeRoot();return t.setParent(e),t.setAttached(),this.structChildren.push(t),e.data.K||(e.data.K=[]),e.data.K.push(t.dictionary),this},initPageMarkings(t){t.forEach(t=>{if(t.structContent){const e=t.structContent,i=this.markStructureContent(t.tag,t.options);e.push(i),this.page.markings.slice(-1)[0].structContent=e}else this.markContent(t.tag,t.options)})},endPageMarkings(t){const e=t.markings;return e.forEach(()=>t.write("EMC")),t.markings=[],e},getMarkInfoDictionary(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},hasMarkInfoDictionary(){return!!this._root.data.MarkInfo},getStructTreeRoot(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Ri,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey(){this.getMarkInfoDictionary();const t=this.getStructTreeRoot(),e=t.data.ParentTreeNextKey++;return t.data.ParentTree.add(e,[]),e},endMarkings(){const t=this._root.data.StructTreeRoot;t&&(t.end(),this.structChildren.forEach(t=>t.end())),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}};const zi={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},Wi={left:0,center:1,right:2},Gi={value:"V",defaultValue:"DV"},$i={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},Hi={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},ji={nDec:0,sepComma:!1};
1var Ni={initForm(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();let t={Fields:[],NeedAppearances:!0,DA:new String(`/${this._font.id} 0 Tf 0 g`),DR:{Font:{}}};t.DR.Font[this._font.id]=this._font.ref();const e=this.ref(t);return this._root.data.AcroForm=e,this},endAcroForm(){if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");let t=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(e=>{t[e]=this._acroform.fonts[e]}),this._root.data.AcroForm.data.Fields.forEach(t=>{this._endChild(t)}),this._root.data.AcroForm.end()}return this},_endChild(t){return Array.isArray(t.data.Kids)&&(t.data.Kids.forEach(t=>{this._endChild(t)}),t.end()),this},formField(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._fieldDict(t,null,e),n=this.ref(i);return this._addToParent(n),n},formAnnotation(t,e,i,n,s,r){let o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},h=this._fieldDict(t,e,o);h.Subtype="Widget",void 0===h.F&&(h.F=4),this.annotate(i,n,s,r,h);let a=this.page.annotations[this.page.annotations.length-1];return this._addToParent(a)},formText(t,e,i,n,s){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(t,"text",e,i,n,s,r)},formPushButton(t,e,i,n,s){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(t,"pushButton",e,i,n,s,r)},formCombo(t,e,i,n,s){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(t,"combo",e,i,n,s,r)},formList(t,e,i,n,s){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(t,"list",e,i,n,s,r)},formRadioButton(t,e,i,n,s){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(t,"radioButton",e,i,n,s,r)},formCheckbox(t,e,i,n,s){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(t,"checkbox",e,i,n,s,r)},_addToParent(t){let e=t.data.Parent;return e?(e.data.Kids||(e.data.Kids=[]),e.data.Kids.push(t)):this._root.data.AcroForm.data.Fields.push(t),this},_fieldDict(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForm() method before adding form elements to document");const n={};return function(t,e,i){let n=e.Ff??0;if("text"===t)i.FT="Tx";else if("pushButton"===t)i.FT="Btn",n|=zi.pushButton;else if("radioButton"===t)i.FT="Btn",n|=zi.radioButton;else if("checkbox"===t)i.FT="Btn";else if("combo"===t)i.FT="Ch",n|=zi.combo;else if("list"===t)i.FT="Ch";else if(t)throw new Error(`Invalid form annotation type '${t}'`);Object.keys(e).forEach(t=>{zi[t]&&e[t]&&(n|=zi[t])}),0!==n&&(i.Ff=n)}(e,i,n),function(t,e){const i=Wi[t.align];"number"==typeof i&&0!==i&&(e.Q=i)}(i,n),this._mapFont(i,n),function(t,e){Array.isArray(t.select)&&t.select.length&&(e.Opt=t.select.map(t=>"string"==typeof t?new String(t):t)),Object.keys(Gi).forEach(i=>{if(i in t){const n=t[i]??"";e[Gi[i]]="string"==typeof n?new String(n):n}}),t.MK?.CA&&(e.MK={CA:new String(t.MK.CA)}),t.label&&(e.MK=t.MK??{},e.MK.CA=new String(t.label))}(i,n),this._mapColors(i,n),function(t,e){const i=t.format;if(i?.type){let n,s,r="";if(void 0!==$i[i.type])n="AFSpecial_Keystroke",s="AFSpecial_Format",r=$i[i.type];else{let t=i.type.charAt(0).toUpperCase()+i.type.slice(1);if(n=`AF${t}_Keystroke`,s=`AF${t}_Format`,"date"===i.type)n+="Ex",s+="Ex",r='"'+String(i.param)+'"';else if("time"===i.type)r=String(i.param);else if("number"===i.type){let t=Object.assign({},Hi,i);r=String([String(t.nDec),t.sepComma?"0":"1",'"'+t.negStyle+'"',"null",'"'+t.currency+'"',String(t.currencyPrepend)].join(","))}else if("percent"===i.type){let t=Object.assign({},ji,i);r=String([String(t.nDec),t.sepComma?"0":"1"].join(","))}}e.AA=t.AA??{},e.AA.K={S:"JavaScript",JS:new String(`${n}(${r});`)},e.AA.F={S:"JavaScript",JS:new String(`${s}(${r});`)}}}(i,n),n.T=new String(t),i.parent&&(n.Parent=i.parent),n},_mapColors(t,e){let i=this._normalizeColor(t.backgroundColor);i&&(e.MK=e.MK?e.MK:{},e.MK.BG=i),i=this._normalizeColor(t.borderColor),i&&(e.MK||(e.MK={}),e.MK.BC=i)},_mapFont(t,e){const{_acroform:i,_font:n}=this;if(null==i.fonts[n.id]&&(i.fonts[n.id]=n.ref()),i.defaultFont!==n.name){e.DR={Font:{}};const i=t.fontSize||0;e.DR.Font[n.id]=n.ref(),e.DA=new String(`/${n.id} ${i} Tf 0 g`)}}},Ki={file(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t,e.relationship=e.relationship||"Unspecified";const i={Type:"EmbeddedFile",Params:{}};let s;if(!t)throw new Error("No src specified");if(t instanceof Uint8Array)s=t;else if(t instanceof ArrayBuffer)s=new Uint8Array(t);else{const e=/^data:(.*?);base64,(.*)$/.exec(t);if(e)e[1]&&(i.Subtype=v(e[1])),s=A(e[2]);else{if(s=ai.readFileSync(t),!s)throw new Error(`Could not read contents of file at filepath ${t}`);const{birthtime:e,ctime:n}=ai.statSync(t);i.Params.CreationDate=e,i.Params.ModDate=n}}
1e.creationDate instanceof Date&&(i.Params.CreationDate=e.creationDate),e.modifiedDate instanceof Date&&(i.Params.ModDate=e.modifiedDate),e.type&&(i.Subtype=v(e.type));const r=function(t){return(0,n.My)(vt(t))}(new Uint8Array(s));let o;i.Params.CheckSum=new String(r),i.Params.Size=s.byteLength,this._fileRegistry||(this._fileRegistry={});let h=this._fileRegistry[e.name];var a,l;h&&(l=h,(a=i).Subtype===l.Subtype&&a.Params.CheckSum.toString()===l.Params.CheckSum.toString()&&a.Params.Size===l.Params.Size&&a.Params.CreationDate.getTime()===l.Params.CreationDate.getTime()&&(void 0===a.Params.ModDate&&void 0===l.Params.ModDate||a.Params.ModDate.getTime()===l.Params.ModDate.getTime()))?o=h.ref:(o=this.ref(i),o.end(s),this._fileRegistry[e.name]={...i,ref:o});const c={Type:"Filespec",AFRelationship:e.relationship,F:new String(e.name),EF:{F:o},UF:new String(e.name)};e.description&&(c.Desc=new String(e.description));const d=this.ref(c);return d.end(),e.hidden||this.addNamedEmbeddedFile(e.name,d),this._root.data.AF?this._root.data.AF.push(d):this._root.data.AF=[d],d}};const Yi=new URL(i(30278),i.b).href;let qi;var Qi={initPDFA(t){"-"===t.charAt(t.length-3)?(this.subset_conformance=t.charAt(t.length-1).toUpperCase(),this.subset=parseInt(t.charAt(t.length-2))):(this.subset_conformance="B",this.subset=parseInt(t.charAt(t.length-1)))},endSubset(){this._addPdfaMetadata(),this._addColorOutputIntent()},_addColorOutputIntent(){qi||(qi=ai.readFileSync(Yi));const t=this.ref({Length:qi.length,N:3});t.write(qi),t.end();const e=this.ref({Type:"OutputIntent",S:"GTS_PDFA1",Info:new String("sRGB IEC61966-2.1"),OutputConditionIdentifier:new String("sRGB IEC61966-2.1"),DestOutputProfile:t});e.end(),this._root.data.OutputIntents=[e]},_getPdfaid(){return`\n <rdf:Description xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" rdf:about="">\n <pdfaid:part>${this.subset}</pdfaid:part>\n <pdfaid:conformance>${this.subset_conformance}</pdfaid:conformance>\n </rdf:Description>\n `},_addPdfaMetadata(){this.appendXML(this._getPdfaid())}},Xi={initPDFUA(){this.subset=1},endSubset(){this._addPdfuaMetadata()},_addPdfuaMetadata(){this.appendXML(this._getPdfuaid())},_getPdfuaid(){return`\n <rdf:Description xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/" rdf:about="">\n <pdfuaid:part>${this.subset}</pdfuaid:part>\n </rdf:Description>\n `}},Vi={_importSubset(t){Object.assign(this,t)},initSubset(t){switch(t.subset){case"PDF/A-1":case"PDF/A-1a":case"PDF/A-1b":case"PDF/A-2":case"PDF/A-2a":case"PDF/A-2b":case"PDF/A-3":case"PDF/A-3a":case"PDF/A-3b":this._importSubset(Qi),this.initPDFA(t.subset);break;case"PDF/UA":this._importSubset(Xi),this.initPDFUA()}}};const Zi=["height","minHeight","maxHeight"],Ji=["width","minWidth","maxWidth"];function tn(t,e){const i=new Map;return function(){const n=arguments.length<=0?void 0:arguments[0];return i.has(n)||(i.set(n,t(...arguments)),i.size>e&&i.delete(i.keys().next())),i.get(n)}}function en(t){return t&&"object"==typeof t&&!Array.isArray(t)}function nn(t){if(!en(t))return t;t=sn(t);for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(const e of i)if(en(e))for(const i in e)en(e[i])?(i in t||(t[i]={}),t[i]=nn(t[i],e[i])):void 0!==e[i]&&(t[i]=sn(e[i]));return t}function sn(t){let e=t;if(t&&"object"==typeof t){e=Array.isArray(t)?[]:{};for(const i in t)e[i]=sn(t[i])}return e}function rn(t,e,i){let n=e(i);null!=n&&"object"==typeof n||(n={height:n}),n.padding=E(n.padding),n.border=E(n.border),n.borderColor=E(n.borderColor),n.align=hn(n.align),n=nn(t,n);const s=this.document,r=s.page,o=r.contentHeight;return null==n.height||"auto"===n.height?n.height="auto":n.height=s.sizeToPoint(n.height,0,r,o),n.minHeight=s.sizeToPoint(n.minHeight,0,r,o),n.maxHeight=s.sizeToPoint(n.maxHeight,0,r,o),n}function on(t,e,i){let n=e(i);return null!=n&&"object"==typeof n||(n={width:n}),n.padding=E(n.padding),n.border=E(n.border),n.borderColor=E(n.borderColor),n.align=hn(n.align),n=nn(t,n),null==n.width||"*"===n.width?n.width="*":n.width=this.document.sizeToPoint(n.width,0,this.document.page,this._maxWidth),n.minWidth=this.document.sizeToPoint(n.minWidth,0,this.document.page,this._maxWidth),n.maxWidth=this.document.sizeToPoint(n.maxWidth,0,this.document.page,this._maxWidth),n}function hn(t){return null==t||"string"==typeof t?{x:t,y:t}:t}function an(){const t=this.document,e=this.opts;let i=t._tableIndex++;this._id=new String(e.id??`table-${i}`),this._position={x:t.sizeToPoint(e.position?.x,t.x),y:t.sizeToPoint(e.position?.y,t.y)},this._maxWidth=t.sizeToPoint(e.maxWidth,t.page.width-t.page.margins.right-this._position.x);const{defaultStyle:n,defaultColStyle:s,defaultRowStyle:r}=function(t){let e=t;"object"!=typeof e&&(e={text:e});const i=Object.fromEntries(Object.entries(e).filter(t=>{let[e]=t;return Zi.includes(e)})),n=Object.fromEntries(Object.entries(e).filter(t=>{let[e]=t;return Ji.includes(e)}));return e.padding=E(e.padding),e.border=E(e.border),e.borderColor=E(e.borderColor),e.align=hn(e.align),{defaultStyle:e,defaultRowStyle:i,defaultColStyle:n}}(e.defaultStyle);let o,h;this._defaultStyle=n,e.columnStyles&&(Array.isArray(e.columnStyles)?o=t=>e.columnStyles[t]:"function"==typeof e.columnStyles?o=tn(t=>e.columnStyles(t),1/0):"object"==typeof e.columnStyles&&(o=()=>e.columnStyles)),o||(o=()=>({})),this._colStyle=on.bind(this,s,o),e.rowStyles&&(Array.isArray(e.rowStyles)?h=t=>e.rowStyles[t]:"function"==typeof e.rowStyles?h=tn(t=>e.rowStyles(t),10):"object"==typeof e.rowStyles&&(h=()=>e.rowStyles)),h||(h=()=>({})),this._rowStyle=rn.bind(this,r,h)}function ln(t,e,i){const n=this._colStyle(i);let s=this._rowStyle(e);const r={};for(const e of[n.font,s.font,t.font])null!=e&&(null!=e.src?(r.src=e.src,r.family=e.family):null!=e.family&&(r.fam
vendor: 5,046 bytes, line 1
1ily=e.family),null!=e.size&&(r.size=e.size));const o=Object.values(r).filter(t=>null!=t).length>0,h=this.document,a=h._fontSource,l=h._fontSize,c=h._fontFamily;o&&(r.src&&h.font(r.src,r.family),r.size&&h.fontSize(r.size),s=this._rowStyle(e)),t.padding=E(t.padding),t.border=E(t.border),t.borderColor=E(t.borderColor);const d=nn(this._defaultStyle,n,s,t);var u;return d.rowIndex=e,d.colIndex=i,d.font=r??{},d.customFont=o,d.text=(null!=(u=d.text)&&(u=`${u}`),u),d.rowSpan=d.rowSpan??1,d.colSpan=d.colSpan??1,d.padding=E(d.padding,"0.25em",t=>h.sizeToPoint(t,"0.25em")),d.border=E(d.border,1,t=>h.sizeToPoint(t,1)),d.borderColor=E(d.borderColor,"black",t=>t??"black"),d.align=hn(d.align),d.align.x=d.align.x??"left",d.align.y=d.align.y??"top",d.textStroke=h.sizeToPoint(d.textStroke,0),d.textStrokeColor=d.textStrokeColor??"black",d.textColor=d.textColor??"black",d.textOptions=d.textOptions??{},d.id=new String(d.id??`${this._id}-${e}-${i}`),d.type="TH"===d.type?.toUpperCase()?"TH":"TD",d.scope&&(d.scope=d.scope.toLowerCase(),"row"===d.scope?d.scope="Row":"both"===d.scope?d.scope="Both":"column"===d.scope&&(d.scope="Column")),"boolean"==typeof this.opts.debug&&(d.debug=this.opts.debug),o&&h.font(a,c,l),d}function cn(t,e){this._cellClaim||(this._cellClaim=new Set);let i=0;return t.map(t=>{for(null!=t&&"object"==typeof t||(t={text:t});this._cellClaim.has(`${e},${i}`);)i++;t=ln.call(this,t,e,i);for(let n=0;n<t.rowSpan;n++)for(let s=0;s<t.colSpan;s++)this._cellClaim.add(`${e+n},${i+s}`);return i+=t.colSpan,t})}function dn(t){this._columnWidths=[],un.call(this,t.reduce((t,e)=>t+e.colSpan,0)),this._rowHeights=[],this._rowYPos=[this._position.y],this._rowBuffer=new Set}function un(t){let e=[],i=0,n=this._maxWidth;for(let s=0;s<t;s++){let t=this._colStyle(s);"*"===t.width?(e[s]=t,i+=t.minWidth):(n-=t.width,this._columnWidths[s]=t.width)}let s=e.reduce(t=>t+1,0);i>=n?e.forEach((t,e)=>{this._columnWidths[e]=t.minWidth}):s>0&&e.forEach((t,e)=>{let i=n/s;this._columnWidths[e]=Math.max(i,t.minWidth),t.maxWidth>0&&(this._columnWidths[e]=Math.min(this._columnWidths[e],t.maxWidth)),n-=this._columnWidths[e],s--});let r=this._position.x;this._columnXPos=Array.from(this._columnWidths,t=>{const e=r;return r+=t,e})}function fn(t,e){t.forEach(t=>this._rowBuffer.add(t)),e>0&&(this._rowYPos[e]=this._rowYPos[e-1]+this._rowHeights[e-1]);const i=this._rowStyle(e);let n=[];this._rowBuffer.forEach(t=>{t.rowIndex+t.rowSpan-1===e&&(n.push(gn.call(this,t,i.height)),this._rowBuffer.delete(t))});let s=i.height;"auto"===s&&(s=n.reduce((t,e)=>{let i=e.textBounds.height+e.padding.top+e.padding.bottom;for(let t=0;t<e.rowSpan-1;t++)i-=this._rowHeights[e.rowIndex+t];return Math.max(t,i)},0)),s=Math.max(s,i.minHeight),i.maxHeight>0&&(s=Math.min(s,i.maxHeight)),this._rowHeights[e]=s;let r=!1;return s>this.document.page.contentHeight?this._rowHeights[e]=this.document.page.maxY()-this._rowYPos[e]:this._rowYPos[e]+s>=this.document.page.maxY()&&(this._rowYPos[e]=this.document.page.margins.top,r=!0),{newPage:r,toRender:n.map(t=>gn.call(this,t,s))}}function gn(t,e){let i=0;for(let e=0;e<t.colSpan;e++)i+=this._columnWidths[t.colIndex+e];let n=e;if("auto"===n)n=this.document.page.contentHeight;else for(let e=0;e<t.rowSpan-1;e++)n+=this._rowHeights[t.rowIndex+e];const s=i-t.padding.left-t.padding.right,r=n-t.padding.top-t.padding.bottom,o=t.textOptions.rotation??0,{width:h,height:a}=function(t,e,i){let n,s;const r=I(t),o=O(t);0===t||180===t?(n=e,s=i):90===t||270===t?(n=i,s=e):t<90||t>180&&t<270?(n=e/(2*r),s=e/(2*o)):(s=e/(2*r),n=e/(2*o));const h=o*n,a=r*s;if(h+a>i){const h=r*r-o*o;0===t||180===t?(n=e,s=i):90===t||270===t?(n=i,s=e):t<90||t>180&&t<270?(n=(e*r-i*o)/h,s=(i*r-e*o)/h):(s=(e*r-i*o)/h,n=(i*r-e*o)/h)}return{width:Math.abs(n),height:Math.abs(s)}}(o,s,r),l={align:t.align.x,ellipsis:!0,stroke:t.textStroke>0,fill:!0,width:h,height:a,rotation:o,...t.textOptions};let c={x:0,y:0,width:0,height:0};if(t.text){const e=this.document._fontSource,i=this.document._fontSize,n=this.document._fontFamily;t.font?.src&&this.document.font(t.font.src,t.font?.family),t.font?.size&&this.document.fontSize(t.font.size);const s=this.document.boundsOfString(t.text,0,0,{...l,rotation:0});l.width=s.width,l.height=s.height,c=this.document.boundsOfString(t.text,0,0,l),this.document.font(e,n,i)}return{...t,textOptions:l,x:this._columnXPos[t.colIndex],y:this._rowYPos[t.rowIndex],textX:this._columnXPos[t.colIndex]+t.padding.left,textY:this._rowYPos[t.rowIndex]+t.padding.top,width:i,height:n,textAllocatedHeight:r,textAllocatedWidth:s,textBounds:c}}function pn(){const t=this.opts.structParent;t&&(this._tableStruct=this.document.struct("Table"),this._tableStruct.dictionary.data.ID=this._id,t instanceof Ui?t.add(this._tableStruct):t instanceof kn&&t.addStructure(this._tableStruct),this._headerRowLookup={},this._headerColumnLookup={})}function An(){this._tableStruct&&this._tableStruct.end()}function mn(t,e,i){const n=this.document.struct("TR");n.dictionary.data.ID=new String(`${this._id}-${e}`),this._tableStruct.add(n),t.forEach(t=>i(t,n)),n.end()}
vendor: 1,057 bytes, line 1
1function yn(t,e,i){const n=this.document,s=n.struct(t.type,{title:t.title});s.dictionary.data.ID=t.id,e.add(s);const r=t.padding,o=t.border,h={O:"Table",Width:t.width,Height:t.height,Padding:[r.top,r.bottom,r.left,r.right],RowSpan:t.rowSpan>1?t.rowSpan:void 0,ColSpan:t.colSpan>1?t.colSpan:void 0,BorderThickness:[o.top,o.bottom,o.left,o.right]};if("TH"===t.type){if("Row"===t.scope||"Both"===t.scope){for(let e=0;e<t.rowSpan;e++)this._headerRowLookup[t.rowIndex+e]||(this._headerRowLookup[t.rowIndex+e]=[]),this._headerRowLookup[t.rowIndex+e].push(t.id);h.Scope=t.scope}if("Column"===t.scope||"Both"===t.scope){for(let e=0;e<t.colSpan;e++)this._headerColumnLookup[t.colIndex+e]||(this._headerColumnLookup[t.colIndex+e]=[]),this._headerColumnLookup[t.colIndex+e].push(t.id);h.Scope=t.scope}}const a=new Set([...Array.from({length:t.colSpan},(e,i)=>this._headerColumnLookup[t.colIndex+i]).flat(),...Array.from({length:t.rowSpan},(e,i)=>this._headerRowLookup[t.rowIndex+i]).flat()].filter(Boolean));a.size&&(h.Headers=Array.from(a));const l=n._normalizeColor;
vendor: 8,244 bytes, line 1
1null!=t.backgroundColor&&(h.BackgroundColor=l(t.backgroundColor));const c=[o.top,o.bottom,o.left,o.right];if(c.some(t=>t)){const e=t.borderColor;h.BorderColor=[c[0]?l(e.top):null,c[1]?l(e.bottom):null,c[2]?l(e.left):null,c[3]?l(e.right):null]}Object.keys(h).forEach(t=>void 0===h[t]&&delete h[t]),s.dictionary.data.A=n.ref(h),s.add(i),s.end(),s.dictionary.data.A.end()}function bn(t,e){return this._tableStruct?mn.call(this,t,e,wn.bind(this)):t.forEach(t=>wn.call(this,t)),this._rowYPos[e]+this._rowHeights[e]}function wn(t,e){const i=()=>{null!=t.backgroundColor&&this.document.save().fillColor(t.backgroundColor).rect(t.x,t.y,t.width,t.height).fill().restore(),Sn.call(this,t.border,t.borderColor,t.x,t.y,t.width,t.height),t.debug&&(this.document.save(),this.document.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),this.document.rect(t.x,t.y,t.width,t.height).stroke("green"),this.document.restore()),t.text&&_n.call(this,t)};e?yn.call(this,t,e,i):i()}function _n(t){const e=this.document,i=e._fontSource,n=e._fontSize,s=e._fontFamily;t.customFont&&(t.font.src&&e.font(t.font.src,t.font.family),t.font.size&&e.fontSize(t.font.size));const r=t.textX,o=t.textY,h=t.textAllocatedHeight,a=t.textAllocatedWidth,l=t.textBounds.width,c=t.textBounds.height,d=-t.textBounds.x,u=-t.textBounds.y,f=(a-l)*("right"===t.align.x?1:"center"===t.align.x?.5:0),g=(h-c)*("bottom"===t.align.y?1:"center"===t.align.y?.5:0),p=f+d,A=g+u;t.debug&&(e.save(),e.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),t.text&&e.moveTo(r+f,o).lineTo(r+f,o+h).moveTo(r+f+l,o).lineTo(r+f+l,o+h).stroke("blue").moveTo(r,o+g).lineTo(r+a,o+g).moveTo(r,o+g+c).lineTo(r+a,o+g+c).stroke("green"),e.rect(r,o,a,h).stroke("orange"),e.restore()),e.save().rect(r,o,a,h).clip(),e.fillColor(t.textColor).strokeColor(t.textStrokeColor),t.textStroke>0&&e.lineWidth(t.textStroke),e.text(t.text,r+p,o+A,t.textOptions),e.restore(),t.font&&e.font(i,s,n)}function Sn(t,e,i,n,s,r,o){t=Object.fromEntries(Object.entries(t).map(t=>{let[e,i]=t;return[e,o&&!o[e]?0:i]}));const h=this.document;[t.right,t.bottom,t.left].every(e=>e===t.top)?t.top>0&&h.save().lineWidth(t.top).strokeColor(e.top).rect(i,n,s,r).stroke().restore():(t.top>0&&h.save().lineWidth(t.top).moveTo(i,n).strokeColor(e.top).lineTo(i+s,n).stroke().restore(),t.right>0&&h.save().lineWidth(t.right).moveTo(i+s,n).strokeColor(e.right).lineTo(i+s,n+r).stroke().restore(),t.bottom>0&&h.save().lineWidth(t.bottom).moveTo(i+s,n+r).strokeColor(e.bottom).lineTo(i,n+r).stroke().restore(),t.left>0&&h.save().lineWidth(t.left).moveTo(i,n+r).strokeColor(e.left).lineTo(i,n).stroke().restore())}class Cn{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.document=t,this.opts=Object.freeze(e),an.call(this),pn.call(this),this._currRowIndex=0,this._ended=!1,e.data){for(const t of e.data)this.row(t);return this.end()}}row(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._ended)throw new Error(`Table was marked as ended on row ${this._currRowIndex}`);t=Array.from(t),t=cn.call(this,t,this._currRowIndex),0===this._currRowIndex&&dn.call(this,t);const{newPage:i,toRender:n}=fn.call(this,t,this._currRowIndex);i&&this.document.continueOnNewPage();const s=bn.call(this,n,this._currRowIndex);return this.document.x=this._position.x,this.document.y=s,e?this.end():(this._currRowIndex++,this)}end(){for(;this._rowBuffer?.size;)this.row([]);return this._ended=!0,An.call(this),this.document}}var xn={initTables(){this._tableIndex=0},table(t){return new Cn(this,t)}};class vn{constructor(){this._metadata='\n <?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?>\n <x:xmpmeta xmlns:x="adobe:ns:meta/">\n <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n '}_closeTags(){this._metadata=this._metadata.concat('\n </rdf:RDF>\n </x:xmpmeta>\n <?xpacket end="w"?>\n ')}append(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._metadata=this._metadata.concat(t),e&&(this._metadata=this._metadata.concat("\n"))}getXML(){return this._metadata}getLength(){return this._metadata.length}end(){this._closeTags(),this._metadata=this._metadata.trim()}}var Tn={initMetadata(){this.metadata=new vn},appendXML(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.metadata.append(t,e)},_addInfo(){this.appendXML(`\n <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">\n <xmp:CreateDate>${this.info.CreationDate.toISOString().split(".")[0]+"Z"}</xmp:CreateDate>\n <xmp:CreatorTool>${this.info.Creator}</xmp:CreatorTool>\n </rdf:Description>\n `),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML('\n <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">\n '),this.info.Title&&this.appendXML(`\n <dc:title>\n <rdf:Alt>\n <rdf:li xml:lang="x-default">${this.info.Title}</rdf:li>\n </rdf:Alt>\n </dc:title>\n `),this.info.Author&&this.appendXML(`\n <dc:creator>\n <rdf:Seq>\n <rdf:li>${this.info.Author}</rdf:li>\n </rdf:Seq>\n </dc:creator>\n `),this.info.Subject&&this.appendXML(`\n <dc:description>\n <rdf:Alt>\n <rdf:li xml:lang="x-default">${this.info.Subject}</rdf:li>\n </rdf:Alt>\n </dc:description>\n `),this.appendXML("\n </rdf:Description>\n ")),this.appendXML(`\n <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">\n <pdf:Producer>${this.info.Producer}</pdf:Producer>`,!1),this.info.Keywords&&this.appendXML(`\n <pdf:Keywords>${this.info.Keywords}</pdf:Keywords>`,!1),this.appendXML("\n </rdf:Description>\n ")},endMetadata(){this._addInfo(),this.metadata.end(),1.3!=this.version&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write((new TextEncoder).encode(this.metadata.getXML())),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}};class kn extends c{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(super(t),this.options=t,t.pdfVersion){case"1.4":this.version=1.4;break;case"1.5":this.version=1.5;break;case"1.6":this.version=1.6;break;case"1.7":case"1.7ext3":this.version=1.7;break;default:this.version=1.3}this.compress=null==this.options.compress||this.options.compress,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0;const e=this.ref({Type:"Pages",Count:0,Kids:[]}),i=this.ref({Dests:new z});if(this._root=this.ref({Type:"Catalog",Pages:e,Names:i}),this.options.lang&&(this._root.data.Lang=new String(this.options.lang)),this.options.pageLayout){const t=this.options.pageLayout;this._root.data.PageLayout=t.charAt(0).toUpperCase()+t.slice(1)}if(this.page=null,this.initMetadata(),this.initColor(),this.initVector(),this.initFonts(t.font),this.initText(),this.initImages(),this.initOutline(),this.initMarkings(t),this.initTables(),this.initSubset(t),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info)for(let t in this.options.info){const e=this.options.info[t];this.info[t]=e}this.options.displayTitle&&(this._root.data.ViewerPreferences=this.ref({DisplayDocTitle:!0})),this._id=xe.generateFileID(this.info),this._security=xe.create(this,t),this._write(`%PDF-${this.version}`),this._write("%ÿÿÿÿ"),!1!==this.options.autoFirstPage&&this.addPage()}addPage(t){const e=this.options;e.bufferPages||this.flushPages();const i=t?.font;i&&this.font(i,t.fontFamily);const n=t?.fontSize;n&&this.fontSize(n),this.page=new L(this,t||e),this._pageBuffer.push(this.page);const s=this._root.data.Pages.data;return s.Kids.push(this.page.dictionary),s.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit
1("pageAdded"),this}continueOnNewPage(t){const e=this.endPageMarkings(this.page);return this.addPage(t??this.page._options),this.initPageMarkings(e),this}bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}switchToPage(t){let e;if(!(e=this._pageBuffer[t-this._pageBufferStart]))throw new Error(`switchToPage(${t}) out of bounds, current buffer covers pages ${this._pageBufferStart} to ${this._pageBufferStart+this._pageBuffer.length-1}`);return this.page=e}flushPages(){const t=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=t.length;for(let e of t)this.endPageMarkings(e),e.end()}addNamedDestination(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];0===i.length&&(i=["XYZ",null,null,null]),"XYZ"===i[0]&&null!==i[2]&&(i[2]=this.page.height-i[2]),i.unshift(this.page.dictionary),this._root.data.Names.data.Dests.add(t,i)}addNamedEmbeddedFile(t,e){if(!e)throw new Error(`No ref specified for embedded file ${t}`);this._root.data.Names.data.EmbeddedFiles||(this._root.data.Names.data.EmbeddedFiles=new z({limits:!1})),this._root.data.Names.data.EmbeddedFiles.add(t,e)}addNamedJavaScript(t,e){this._root.data.Names.data.JavaScript||(this._root.data.Names.data.JavaScript=new z);let i={JS:new String(e),S:"JavaScript"};this._root.data.Names.data.JavaScript.add(t,i)}ref(t){const e=new P(this,this._offsets.length+1,t);return this._offsets.push(null),this._waiting++,e}_read(){}_write(t){t instanceof Uint8Array||(t=p(t+"\n")),this.push(t),this._offset+=t.length}addContent(t){return this.page.write(t),this}_refEnd(t){this._offsets[t.id-1]=t.offset,0===--this._waiting&&this._ended&&(this._finalize(),this._ended=!1)}end(){this.flushPages(),this._info=this.ref();for(let t in this.info){let e=this.info[t];"string"==typeof e&&(e=new String(e));let i=this.ref(e);i.end(),this._info.data[t]=i}this._info.end();for(let t in this._fontFamilies){this._fontFamilies[t].finalize()}this.endOutline(),this.endMarkings(),this.subset&&this.endSubset(),this.endMetadata(),this._root.end(),this._root.data.Pages.end(),this._root.data.Names.end(),this.endAcroForm(),this._root.data.ViewerPreferences&&this._root.data.ViewerPreferences.end(),this._security&&this._security.end(),0===this._waiting?this._finalize():this._ended=!0}_finalize(){const t=this._offset;this._write("xref"),this._write(`0 ${this._offsets.length+1}`),this._write("0000000000 65535 f ");for(let t of this._offsets)t=`0000000000${t}`.slice(-10),this._write(t+" 00000 n ");const e={Size:this._offsets.length+1,Root:this._root,Info:this._info,ID:[this._id,this._id]};this._security&&(e.Encrypt=this._security.dictionary),this._write("trailer"),this._write(T.convert(e)),this._write("startxref"),this._write(`${t}`),this._write("%%EOF"),this.push(null)}toString(){return"[object PDFDocument]"}}const Pn=t=>{Object.assign(kn.prototype,t)};Pn(Tn),Pn(Le),Pn(si),Pn(wi),Pn(Ci),Pn(Fi),Pn(Di),Pn(Ii),Pn(Li),Pn(Ni),Pn(Ki),Pn(Vi),Pn(xn);!function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof t)throw new TypeError("Expected a string for path, got "+typeof t);if(void 0===e)return void oi.delete(t);if(!(e instanceof Uint8Array))throw new TypeError("Expected a Uint8Array or undefined for data, got "+typeof e);if(null===i||"object"!=typeof i)throw new TypeError("Expected options to be an object");const n=Date.now();oi.set(t,{data:e,birthtime:hi(i.birthtime,"birthtime",n),ctime:hi(i.ctime,"ctime",n)})}(Yi,A("AAAL0AAAAAACAAAAbW50clJHQiBYWVogB98AAgAPAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAPbWAAEAAAAA0y0AAAAAPQ6y3q6Tl76bZybOjApDzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQZGVzYwAAAUQAAABjYlhZWgAAAagAAAAUYlRSQwAAAbwAAAgMZ1RSQwAAAbwAAAgMclRSQwAAAbwAAAgMZG
11kZAAACcgAAACIZ1hZWgAAClAAAAAUbHVtaQAACmQAAAAUbWVhcwAACngAAAAkYmtwdAAACpwAAAAUclhZWgAACrAAAAAUdGVjaAAACsQAAAAMdnVlZAAACtAAAACHd3RwdAAAC1gAAAAUY3BydAAAC2wAAAA3Y2hhZAAAC6QAAAAsZGVzYwAAAAAAAAAJc1JHQjIwMTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAQAAAAABQAKAA8AFAAZAB4AIwAoAC0AMgA3ADsAQABFAEoATwBUAFkAXgBjAGgAbQByAHcAfACBAIYAiwCQAJUAmgCfAKQAqQCuALIAtwC8AMEAxgDLANAA1QDbAOAA5QDrAPAA9gD7AQEBBwENARMBGQEfASUBKwEyATgBPgFFAUwBUgFZAWABZwFuAXUBfAGDAYsBkgGaAaEBqQGxAbkBwQHJAdEB2QHhAekB8gH6AgMCDAIUAh0CJgIvAjgCQQJLAlQCXQJnAnECegKEAo4CmAKiAqwCtgLBAssC1QLgAusC9QMAAwsDFgMhAy0DOANDA08DWgNmA3IDfgOKA5YDogOuA7oDxwPTA+AD7AP5BAYEEwQgBC0EOwRIBFUEYwRxBH4EjASaBKgEtgTEBNME4QTwBP4FDQUcBSsFOgVJBVgFZwV3BYYFlgWmBbUFxQXVBeUF9gYGBhYGJwY3BkgGWQZqBnsGjAadBq8GwAbRBuMG9QcHBxkHKwc9B08HYQd0B4YHmQesB78H0gflB/gICwgfCDIIRghaCG4IggiWCKoIvgjSCOcI+wkQCSUJOglPCWQJeQmPCaQJugnPCeUJ+woRCicKPQpUCmoKgQqYCq4KxQrcCvMLCwsiCzkLUQtpC4ALmAuwC8gL4Qv5DBIMKgxDDFwMdQyODKcMwAzZDPMNDQ0mDUANWg10DY4NqQ3DDd4N+A4TDi4OSQ5kDn8Omw62DtIO7g8JDyUPQQ9eD3oPlg+zD88P7BAJECYQQxBhEH4QmxC5ENcQ9RETETERTxFtEYwRqhHJEegSBxImEkUSZBKEEqMSwxLjEwMTIxNDE2MTgxOkE8UT5RQGFCcUSRRqFIsUrRTOFPAVEhU0FVYVeBWbFb0V4BYDFiYWSRZsFo8WshbWFvoXHRdBF2UXiReuF9IX9xgbGEAYZRiKGK8Y1Rj6GSAZRRlrGZEZtxndGgQaKhpRGncanhrFGuwbFBs7G2MbihuyG9ocAhwqHFIcexyjHMwc9R0eHUcdcB2ZHcMd7B4WHkAeah6UHr4e6R8THz4faR+UH78f6iAVIEEgbCCYIMQg8CEcIUghdSGhIc4h+yInIlUigiKvIt0jCiM4I2YjlCPCI/AkHyRNJHwkqyTaJQklOCVoJZclxyX3JicmVyaHJrcm6CcYJ0kneierJ9woDSg/KHEooijUKQYpOClrKZ0p0CoCKjUqaCqbKs8rAis2K2krnSvRLAUsOSxuLKIs1y0MLUEtdi2rLeEuFi5MLoIuty7uLyQvWi+RL8cv/jA1MGwwpDDbMRIxSjGCMbox8jIqMmMymzLUMw0zRjN/M7gz8TQrNGU0njTYNRM1TTWHNcI1/TY3NnI2rjbpNyQ3YDecN9c4FDhQOIw4yDkFOUI5fzm8Ofk6Njp0OrI67zstO2s7qjvoPCc8ZTykPOM9Ij1hPaE94D4gPmA+oD7gPyE/YT+iP+JAI0BkQKZA50EpQWpBrEHuQjBCckK1QvdDOkN9Q8BEA0RHRIpEzkUSRVVFmkXeRiJGZ0arRvBHNUd7R8BIBUhLSJFI10kdSWNJqUnwSjdKfUrESwxLU0uaS+JMKkxyTLpNAk1KTZNN3E4lTm5Ot08AT0lPk0/dUCdQcVC7UQZRUFGbUeZSMVJ8UsdTE1NfU6pT9lRCVI9U21UoVXVVwlYPVlxWqVb3V0RXklfgWC9YfVjLWRpZaVm4WgdaVlqmWvVbRVuVW+VcNVyGXNZdJ114XcleGl5sXr1fD19hX7NgBWBXYKpg/GFPYaJh9WJJYpxi8GNDY5dj62RAZJRk6WU9ZZJl52Y9ZpJm6Gc9Z5Nn6Wg/aJZo7GlDaZpp8WpIap9q92tPa6dr/2xXbK9tCG1gbbluEm5rbsRvHm94b9FwK3CGcOBxOnGVcfByS3KmcwFzXXO4dBR0cHTMdSh1hXXhdj52m3b4d1Z3s3gReG54zHkqeYl553pGeqV7BHtje8J8IXyBfOF9QX2hfgF+Yn7CfyN/hH/lgEeAqIEKgWuBzYIwgpKC9INXg7qEHYSAhOOFR4Wrhg6GcobXhzuHn4gEiGmIzokziZmJ/opkisqLMIuWi/yMY4zKjTGNmI3/jmaOzo82j56QBpBukNaRP5GokhGSepLjk02TtpQglIqU9JVflcmWNJaflwqXdZfgmEyYuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//9kZXNjAAAAAAAAAC5JRUMgNjE5NjYtMi0xIERlZmF1bHQgUkdCIENvbG91ciBTcGFjZSAtIHNSR0IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAAAAAUAAAAAAAAG1lYXMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlhZWiAAAAAAAAAAngAAAKQAAACHWFlaIAAAAAAAAG+iAAA49QAAA5BzaWcgAAAAAENSVCBkZXNjAAAAAAAAAC1SZWZlcmVuY2UgVmlld2luZyBDb25kaXRpb24gaW4gSUVDIDYxOTY2LTItMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y10ZXh0AAAAAENvcHlyaWdodCBJbnRlcm5hdGlvbmFsIENvbG9yIENvbnNvcnRpdW0sIDIwMTUAAHNmMzIAAAAAAAEMRAAABd////MmAAAHlAAA/Y////uh///9ogAAA9sAAMB1")),i.d(e,["Lx",0,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];for(const t of e)mi(t),yi.set(t.name,t)}])}}]);
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.