@taco-ai/sidecar 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/taco-sidecar.cjs +4 -3
- package/lib/sidecar-pdf-edit.mjs +57 -0
- package/lib/sidecar-pdf-read.mjs +120 -0
- package/lib/sidecar.mjs +793 -955
- package/package.json +9 -7
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
var Qu=Object.defineProperty;var d=(t,e)=>Qu(t,"name",{value:e,configurable:!0});var Hg=(t,e,i)=>()=>{if(i)throw i[0];try{return t&&(e=t(t=0)),e}catch(a){throw i=[a],a}};var Ng=(t,e)=>{for(var i in e)Qu(t,i,{get:e[i],enumerable:!0})};var Sg={};Ng(Sg,{AbortException:()=>ms,AnnotationEditorLayer:()=>qg,AnnotationEditorParamsType:()=>ge,AnnotationEditorType:()=>ie,AnnotationEditorUIManager:()=>dr,AnnotationLayer:()=>hg,AnnotationMode:()=>ls,AnnotationType:()=>ze,CSSConstants:()=>Im,ColorPicker:()=>Bu,DOMSVGFactory:()=>Sl,DrawLayer:()=>xg,FeatureTest:()=>Te,GlobalWorkerOptions:()=>ar,ImageKind:()=>ol,InvalidPDFException:()=>Ho,MathClamp:()=>Oe,OPS:()=>Ia,OutputScale:()=>Xa,PDFDataRangeTransport:()=>Pu,PDFDateString:()=>Lo,PDFWorker:()=>Go,PasswordException:()=>Oo,PasswordResponses:()=>vm,PermissionFlag:()=>km,PixelsPerInch:()=>An,RenderingCancelledException:()=>df,ResponseException:()=>xl,SignatureExtractor:()=>hn,SupportedImageMimeTypes:()=>zo,TextLayer:()=>Uo,TextLayerImages:()=>Ag,TouchManager:()=>Fu,Util:()=>qt,VerbosityLevel:()=>_l,XfaLayer:()=>_u,applyOpacity:()=>Tm,build:()=>ig,createValidAbsoluteUrl:()=>Cu,fetchData:()=>uf,findContrastColor:()=>Mm,getDocument:()=>Zm,getFilenameFromUrl:()=>Sm,getPdfFilenameFromUrl:()=>Cm,getRGB:()=>br,getRGBA:()=>_n,getUuid:()=>Tu,isDataScheme:()=>El,isPdfFile:()=>pf,isValidExplicitDest:()=>Bm,makeArr:()=>Mn,makeMap:()=>cf,makeObj:()=>No,makeSet:()=>qm,noContextMenu:()=>va,normalizeUnicode:()=>jm,renderRichText:()=>Eu,setLayerDimensions:()=>zs,shadow:()=>Tt,stopEvent:()=>ai,updateUrlHash:()=>Iu,version:()=>eg});function Lg(){globalThis.DOMMatrix===void 0&&(globalThis.DOMMatrix=class{static{d(this,"DOMMatrix")}constructor(e){Array.isArray(e)&&e.length===6?(this.a=e[0],this.b=e[1],this.c=e[2],this.d=e[3],this.e=e[4],this.f=e[5]):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}translateSelf(e,i=0){return this.e=this.a*e+this.c*i+this.e,this.f=this.b*e+this.d*i+this.f,this}scaleSelf(e,i=e){return this.a*=e,this.b*=e,this.c*=i,this.d*=i,this}})}function Wg(t){Number.isInteger(t)&&(Uc=t)}function de(t){Uc>=zc.INFOS&&console.info(`Info: ${t}`)}function E(t){Uc>=zc.WARNINGS&&console.warn(`Warning: ${t}`)}function te(t){throw Error(t)}function Le(t,e){t||te(e)}function Vg(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Io(t,e=null,i=null){if(!t)return null;if(i&&typeof t=="string"&&(i.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),i.tryConvertEncoding))try{t=sr(t)}catch{}let a=e?URL.parse(t,e):URL.parse(t);return Vg(a)?a:null}function Kg(t){return t.substring(t.lastIndexOf("/")+1)}function ht(t,e,i,a=!1){return Object.defineProperty(t,e,{value:i,enumerable:!a,configurable:!0,writable:!1}),i}function Bi(t){(typeof t!="object"||t?.length===void 0)&&te("Invalid argument for bytesToString");let e=t.length,i=8192;if(e<i)return String.fromCharCode.apply(null,t);let a=[];for(let s=0;s<e;s+=i){let n=Math.min(s+i,e),r=t.subarray(s,n);a.push(String.fromCharCode.apply(null,r))}return a.join("")}function Be(t){typeof t!="string"&&te("Invalid argument for stringToBytes");let e=t.length,i=new Uint8Array(e);for(let a=0;a<e;++a)i[a]=t.charCodeAt(a)&255;return i}function sr(t){return decodeURIComponent(escape(t))}function dh(t){return unescape(encodeURIComponent(t))}function jn(t,e){if(t.length!==e.length)return!1;for(let i=0,a=t.length;i<a;i++)if(t[i]!==e[i])return!1;return!0}function Xg(t){return Af||(Af=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,id=new Map([["\uFB05","\u017Ft"]])),t.replaceAll(Af,(e,i,a)=>i?i.normalize("NFKC"):id.get(a))}function Yg(t,e,i){if(!Array.isArray(i)||i.length<2)return!1;let[a,s,...n]=i;if(!t(a)&&!Number.isInteger(a)||!e(s))return!1;let r=n.length,l=!0;switch(s.name){case"XYZ":if(r<2||r>3)return!1;break;case"Fit":case"FitB":return r===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(r>1)return!1;break;case"FitR":if(r!==4)return!1;l=!1;break;default:return!1}for(let o of n)if(!(typeof o=="number"||l&&o===null))return!1;return!0}function tb(){ph.clear(),mh.clear(),Or.clear()}function Ht(t,e){return t instanceof Z&&(e===void 0||t.name===e)}function ci(t,e){return t instanceof hi&&(e===void 0||t.cmd===e)}function nr(t,e){return t instanceof _&&(e===void 0||Ht(t.get("Type"),e))}function rr(t,e){return t.num===e.num&&t.gen===e.gen}function eb(t){let e=t[0];if(t.length<2||e!=='"'&&e!=="'"||t.at(-1)!==e)return!1;let i=t.length-1;for(let a=1;a<i;a++){let s=t[a];if(s===e||bh.test(s)||s==="\\"&&(++a>=i||bh.test(t[a])))return!1}return!0}function ad(t){return eb(t)?t:`"${t.replaceAll(/["\\\p{Cc}]/gu,e=>e==='"'||e==="\\"?`\\${e}`:`\\${e.codePointAt(0).toString(16)} `)}"`}function ib(t){return typeof t=="string"&&(!t||/^[\x00-\x7F]*$/.test(t))}function ui(t){return t==null||ib(t)?t:rp(t,!0)}function ab(t){let e=[];for(let i=0,a=t.length;i<a;i++){let s=t.charCodeAt(i);e.push(oe.hexNums[s>>8&255],oe.hexNums[s&255])}return e.join("")}function rp(t,e=!1){let i=[];e&&i.push("\xFE\xFF");for(let a=0,s=t.length;a<s;a++){let n=t.charCodeAt(a);i.push(String.fromCharCode(n>>8&255),String.fromCharCode(n&255))}return i.join("")}function Wt(t,e=!1){if(t[0]>="\xEF"){let a;if(t[0]==="\xFE"&&t[1]==="\xFF"?(a="utf-16be",t.length%2==1&&(t=t.slice(0,-1))):t[0]==="\xFF"&&t[1]==="\xFE"?(a="utf-16le",t.length%2==1&&(t=t.slice(0,-1))):t[0]==="\xEF"&&t[1]==="\xBB"&&t[2]==="\xBF"&&(a="utf-8"),a)try{let s=nb[a]??=new TextDecoder(a,{fatal:!0}),n=Be(t),r=s.decode(n);return e||!r.includes("\x1B")?r:r.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,"")}catch(s){E(`stringToPDFString: "${s}".`)}}let i=[];for(let a=0,s=t.length;a<s;a++){let n=t.charCodeAt(a);if(!e&&n===27){for(;++a<s&&t.charCodeAt(a)!==27;);continue}let r=sb[n];i.push(r?String.fromCharCode(r):t.charAt(a))}return i.join("")}function Re(t,e=!1){let i;return function(){return t&&=(i=e?[]:Object.create(null),t(i),null),i}}function op(t){let e=t.length;if(e===0)return new Uint8Array;if(e===1)return new Uint8Array(t[0]);let i=0;for(let n=0;n<e;n++)i+=t[n].byteLength;let a=new Uint8Array(i),s=0;for(let n=0;n<e;n++){let r=new Uint8Array(t[n]);a.set(r,s),s+=r.byteLength}return a}async function nd(t){let e=await fetch(t);if(!e.ok)throw Error(`Failed to fetch file "${t}" with "${e.statusText}".`);return e.bytes()}function gi({dict:t,key:e,getArray:i=!1,stopWhenFound:a=!0}){let s,n=new we;for(;t instanceof _&&!(t.objId&&n.has(t.objId));){t.objId&&n.put(t.objId);let r=i?t.getArray(e):t.get(e);if(r!==void 0){if(a)return r;(s||=[]).push(r)}t=t.get("Parent")}return s}function rb(t,e,i){let a=new we,s=t,n={dict:null,ref:null};for(;t instanceof _&&!a.has(e)&&(a.put(e),!t.has("T"));){if(e=t.getRaw("Parent"),!(e instanceof it))return n;t=i.fetch(e)}return t instanceof _&&t!==s&&(n.dict=t,n.ref=e),n}function vh(t,e){if(t===e)return!0;if(t instanceof it&&e instanceof it)return rr(t,e);if(t instanceof Z&&e instanceof Z)return t.name===e.name;if(t instanceof _&&e instanceof _){if(t.size!==e.size)return!1;for(let[i,a]of t.getRawEntries()){let s=e.getRaw(i);if(s===void 0||!vh(a,s))return!1}return!0}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0,a=t.length;i<a;i++)if(!vh(t[i],e[i]))return!1;return!0}return!1}function lb(t,e=!1){Le(Number.isInteger(t)&&t>0,"The number should be a positive integer.");let i="M".repeat(t/1e3|0)+Sf[t%1e3/100|0]+Sf[10+(t%100/10|0)]+Sf[20+t%10];return e?i.toLowerCase():i}function ya(t){return t===32||t===9||t===13||t===10}function ob(t,e){return Array.isArray(t)&&(e===null||t.length===e)&&t.every(i=>typeof i=="boolean")}function Ne(t,e){return Array.isArray(t)?(e===null||t.length===e)&&t.every(i=>typeof i=="number"):ArrayBuffer.isView(t)&&!(t instanceof BigInt64Array||t instanceof BigUint64Array)&&(e===null||t.length===e)}function os(t,e){return Ne(t,6)?t:e}function ul(t,e){return Ne(t,4)?t:e}function Ya(t,e){return Ne(t,4)?oe.normalizeRect(t):e}function fp(t){let e=/^(.+)\[(\d+)\]$/;return t.split(".").map(i=>{let a=i.match(e);return a?{name:a[1],pos:parseInt(a[2],10)}:{name:i,pos:0}})}function Gc(t){let e=[],i=0;for(let a=0,s=t.length;a<s;a++){let n=t.charCodeAt(a);(n<33||n>126||n===35||n===40||n===41||n===60||n===62||n===91||n===93||n===123||n===125||n===47||n===37)&&(i<a&&e.push(t.substring(i,a)),e.push(`#${n.toString(16).padStart(2,"0")}`),i=a+1)}return e.length===0?t:(i<t.length&&e.push(t.substring(i)),e.join(""))}function lr(t){return t.replaceAll(/([()\\\n\r])/g,e=>e===`
|
|
2
|
+
`?"\\n":e==="\r"?"\\r":`\\${e}`)}function jh(t,e,i,a){if(!t)return;let s=null;if(t instanceof it){if(a.has(t))return;s=t,a.put(s),t=e.fetch(t)}if(Array.isArray(t))for(let n of t)jh(n,e,i,a);else if(t instanceof _){if(Ht(t.get("S"),"JavaScript")){let n=t.get("JS"),r;n instanceof Bt?r=n.getString():typeof n=="string"&&(r=n),r&&=Wt(r,!0).replaceAll("\0",""),r&&i.push(r.trim())}jh(t.getRaw("Next"),e,i,a)}s&&a.remove(s)}function rd(t,e,i,a){let s=[];jh(t,i,s,new we),s.length&&a.set(e,s)}function $o(t,e,i){let a=new Map,s=gi({dict:e,key:"AA",stopWhenFound:!1});if(s)for(let n=s.length-1;n>=0;n--){let r=s[n];if(r instanceof _)for(let[l,o]of r.getRawEntries()){let f=i[l];f&&rd(o,f,t,a)}}return e.has("A")&&rd(e.get("A"),"Action",t,a),a.size?a:null}function*hb(t){for(let e=0,i=t.length;e<i;e++){let a=t.codePointAt(e);a>55295&&(a<57344||a>65533)&&e++,yield a}}function er(t){let e=[],i=0;for(let a=0,s=t.length;a<s;a++){let n=t.codePointAt(a);if(32<=n&&n<=126){let r=fb[n];r&&(i<a&&e.push(t.substring(i,a)),e.push(r),i=a+1)}else i<a&&e.push(t.substring(i,a)),e.push(`&#x${n.toString(16).toUpperCase()};`),n>65535&&a++,i=a+1}return e.length===0?t:(i<t.length&&e.push(t.substring(i)),e.join(""))}function qh(t,e=!1){let i=/^("|').*("|')$/.exec(t);if(i&&i[1]===i[2]){if(RegExp(`[^\\\\]${i[1]}`).test(t.slice(1,-1)))return e&&E(`FontFamily contains unescaped ${i[1]}: ${t}.`),!1;if(bh.test(t))return e&&E(`FontFamily contains control characters: ${t}.`),!1}else for(let a of t.split(/[ \t]+/))if(/^(?:\d|-[\d-])/.test(a)||!/^[\w\\-]+$/.test(a))return e&&E(`FontFamily contains invalid <custom-ident>: ${t}.`),!1;return!0}function cb(t){return t.replaceAll(/( +)(\d)?/g,(e,i,a)=>a??" ")}function ub(t){let e=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:i,fontWeight:a,italicAngle:s}=t;if(!qh(i,!0))return!1;let n=a?a.toString():"";t.fontWeight=e.has(n)?n:"400";let r=parseFloat(s);return t.italicAngle=isNaN(r)||r<-90||r>90?"14":s.toString(),!0}function hp(t){let e=RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(t);return e?.[2]?{url:e[2],newWindow:e[1]==="app.launchURL"&&e[3]==="true"}:null}function qe(t){if(Number.isInteger(t))return t.toString();let e=Math.round(t*100);return e%100==0?(e/100).toString():e%10==0?t.toFixed(1):t.toFixed(2)}function $c(t){if(!t)return null;let e=new Map;for(let[i,a]of t)i.startsWith(Q1)&&e.getOrInsertComputed(a.pageIndex,Ps).push(a);return e.size>0?e:null}function Bs(t=new Date){return t instanceof Date||(t=new Date(t)),[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")}function To(t,e,i){switch(t){case 90:return[0,1,-1,0,e,0];case 180:return[-1,0,0,-1,e,i];case 270:return[0,-1,1,0,0,i];default:throw Error("Invalid rotation")}}function ld(t){return Math.ceil(Math.ceil(Math.log2(1+t))/8)}function pb(t,e){let{_destBuffer:i,_destOffset:a,_keepAlpha:s,_memoryArray:n}=Aa;if(!s){i.set(n.subarray(t,t+e),a);return}let r=e>>2,l=i.byteOffset+a;if((l|t)&3)for(let o=t,f=t+e,h=a;o<f;o+=4,h+=4)i[h]=n[o],i[h+1]=n[o+1],i[h+2]=n[o+2];else{let o=new Uint32Array(i.buffer,l,r),f=new Uint32Array(Aa._memory.buffer,t,r);for(let h=0;h<r;h++)o[h]=o[h]&cp|f[h]&db}}function od(t,e,i){let a=dp(e,Oi.__wbindgen_malloc),s=Wc;Oi.qcms_convert_array(t,a,s,i)}function gb(t,e,i,a,s){return Oi.qcms_convert_four(t,e,i,a,s)>>>0}function bb(t,e){return Oi.qcms_convert_one(t,e)>>>0}function wb(t,e,i,a){return Oi.qcms_convert_three(t,e,i,a)>>>0}function yb(t){Oi.qcms_drop_transformer(t)}function kb(t,e,i){let a=dp(t,Oi.__wbindgen_malloc),s=Wc;return Oi.qcms_transformer_from_memory(a,s,e,i)>>>0}function vb(){return{__proto__:null,"./qcms_bg.js":{__proto__:null,__wbg___wbindgen_throw_344f42d3211c4765:d(function(t,e){throw Error(jb(t,e))},"__wbg___wbindgen_throw_344f42d3211c4765"),__wbg_copy_result_0d15f3bf9d9012ae:d(function(t,e){pb(t>>>0,e>>>0)},"__wbg_copy_result_0d15f3bf9d9012ae"),__wbindgen_init_externref_table:d(function(){let t=Oi.__wbindgen_externrefs,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},"__wbindgen_init_externref_table")}}}function jb(t,e){return qb(t>>>0,e)}function up(){return(Hr===null||Hr.byteLength===0)&&(Hr=new Uint8Array(Oi.memory.buffer)),Hr}function dp(t,e){let i=e(t.length*1,1)>>>0;return up().set(t,i/1),Wc=t.length,i}function qb(t,e){return If+=e,If>=2146435072&&(uo=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),uo.decode(),If=e),uo.decode(up().subarray(t,t+e))}function xb(t,e){return Oi=t.exports,Hr=null,Oi.__wbindgen_start(),Oi}function Ab(t){if(Oi!==void 0)return Oi;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=vb();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),xb(new WebAssembly.Instance(t,e),t)}function Fe(t,e,i){return Math.min(Math.max(t,e),i)}function Sb(t,e,i,a,s,n,r){r=r===1?r:0;let l=i/s,o=a/n,f=0,h,c=new Uint16Array(s),u=i*3;for(let p=0;p<s;p++)c[p]=Math.floor(p*l)*3;for(let p=0;p<n;p++){let m=Math.floor(p*o)*u;for(let g=0;g<s;g++)h=m+c[g],e[f++]=t[h++],e[f++]=t[h++],e[f++]=t[h++],f+=r}}function Cb(t,e,i,a,s,n,r){let l=i/s,o=a/n,f=0,h=new Uint16Array(s);if(r===1){for(let m=0;m<s;m++)h[m]=Math.floor(m*l);let c=new Uint32Array(t.buffer),u=new Uint32Array(e.buffer),p=Ni.isLittleEndian?16777215:4294967040;for(let m=0;m<n;m++){let g=c.subarray(Math.floor(m*o)*i);for(let b=0;b<s;b++)u[f++]|=g[h[b]]&p}}else{let c=i*4;for(let u=0;u<s;u++)h[u]=Math.floor(u*l)*4;for(let u=0;u<n;u++){let p=t.subarray(Math.floor(u*o)*c);for(let m=0;m<s;m++){let g=h[m];e[f++]=p[g],e[f++]=p[g+1],e[f++]=p[g+2]}}}}function Ib(t,e,i){if(i===1){let a=new Uint32Array(t.buffer),s=new Uint32Array(e.buffer),n=Ni.isLittleEndian?16777215:4294967040;for(let r=0,l=a.length;r<l;r++)s[r]|=a[r]&n}else{let a=0;for(let s=0,n=t.length;s<n;s+=4)e[a++]=t[s],e[a++]=t[s+1],e[a++]=t[s+2]}}function pp(t,e){if(!Array.isArray(t))return!0;let i=t.length;return i<e?(E("Decode map length is too short."),!0):(i>e&&(de("Truncating too long decode map."),t.length=e),!1)}function gp(t){let e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),e.response}function wp(t){switch(t.kind){case pi.GRAYSCALE_1BPP:return Ih(t);case pi.RGB_24BPP:return Hb(t)}return null}function Ih({src:t,srcPos:e=0,dest:i,width:a,height:s,nonBlackColor:n=4294967295,inverseDecode:r=!1}){let l=Ni.isLittleEndian?4278190080:255,[o,f]=r?[n,l]:[l,n],h=a>>3,c=a&7,u=o^f,p=t.length;i=new Uint32Array(i.buffer);let m=0;for(let g=0;g<s;++g){for(let w=e+h;e<w;++e,m+=8){let v=t[e];i[m]=o^-(v>>7&1)&u,i[m+1]=o^-(v>>6&1)&u,i[m+2]=o^-(v>>5&1)&u,i[m+3]=o^-(v>>4&1)&u,i[m+4]=o^-(v>>3&1)&u,i[m+5]=o^-(v>>2&1)&u,i[m+6]=o^-(v>>1&1)&u,i[m+7]=o^-(v&1)&u}if(c===0)continue;let b=e<p?t[e++]:255;for(let w=0;w<c;++w,++m)i[m]=o^-(b>>7-w&1)&u}return{srcPos:e,destPos:m}}function Hb({src:t,srcPos:e=0,dest:i,destPos:a=0,width:s,height:n}){let r=0,l=s*n*3,o=l>>2,f=new Uint32Array(t.buffer,e,o),h=Ni.isLittleEndian?4278190080:255;if(Ni.isLittleEndian){for(;r<o-2;r+=3,a+=4){let c=f[r],u=f[r+1],p=f[r+2];i[a]=c|h,i[a+1]=c>>>24|u<<8|h,i[a+2]=u>>>16|p<<16|h,i[a+3]=p>>>8|h}for(let c=e+r*4,u=e+l;c<u;c+=3)i[a++]=t[c]|t[c+1]<<8|t[c+2]<<16|h}else{for(;r<o-2;r+=3,a+=4){let c=f[r],u=f[r+1],p=f[r+2];i[a]=c|h,i[a+1]=c<<24|u>>>8|h,i[a+2]=u<<16|p>>>16|h,i[a+3]=p<<8|h}for(let c=e+r*4,u=e+l;c<u;c+=3)i[a++]=t[c]<<24|t[c+1]<<16|t[c+2]<<8|h}return{srcPos:e+l,destPos:a}}function Nb(t,e){if(Ni.isLittleEndian)for(let i=0,a=t.length;i<a;i++)e[i]=t[i]*65793|4278190080;else for(let i=0,a=t.length;i<a;i++)e[i]=t[i]*16843008|255}function Ub(t,e){let i=0,a,s,n=16;for(;n>0&&!t[n-1];)n--;let r=[{children:[],index:0}],l=r[0],o;for(a=0;a<n;a++){for(s=0;s<t[a];s++){for(l=r.pop(),l.children[l.index]=e[i];l.index>0;)l=r.pop();for(l.index++,r.push(l);r.length<=a;)r.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o;i++}a+1<n&&(r.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o)}return r[0].children}function Mh(t,e,i){return 64*((t.blocksPerLine+1)*e+i)}function Gb(t,e,i,a,s,n,r,l,o,f,h=!1){let c=a.mcusPerLine,u=a.progressive,p=i,m=0,g=0;function b(){if(g>0)return g--,m>>g&1;if(m=t[i++],m===255){let H=t[i++];if(H){if(H===220&&h){i+=2;let J=e.getUint16(i);if(i+=2,J>0&&J!==a.scanLines)throw new Th("Found DNL marker (0xFFDC) while parsing scan data",J)}else if(H===217){if(h){let J=P*(a.precision===8?8:0);if(J>0&&Math.round(a.scanLines/J)>=5)throw new Th("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",J)}throw new yp("Found EOI marker (0xFFD9) while parsing scan data")}throw new da(`unexpected marker ${(m<<8|H).toString(16)}`)}}return g=7,m>>>7}d(b,"readBit");function w(H){let J=H;for(;;){switch(J=J[b()],typeof J){case"number":return J;case"object":continue}throw new da("invalid huffman sequence")}}d(w,"decodeHuffman");function v(H){let J=0;for(;H>0;)J=J<<1|b(),H--;return J}d(v,"receive");function y(H){if(H===1)return b()===1?1:-1;let J=v(H);return J>=1<<H-1?J:J+(-1<<H)+1}d(y,"receiveAndExtend");function x(H,J){let ft=w(H.huffmanTableDC),ot=ft===0?0:y(ft);H.blockData[J]=H.pred+=ot;let at=1;for(;at<64;){let At=w(H.huffmanTableAC),$t=At&15,ut=At>>4;if($t===0){if(ut<15)break;at+=16;continue}at+=ut;let bt=Zr[at];H.blockData[J+bt]=y($t),at++}}d(x,"decodeBaseline");function q(H,J){let ft=w(H.huffmanTableDC),ot=ft===0?0:y(ft)<<f;H.blockData[J]=H.pred+=ot}d(q,"decodeDCFirst");function j(H,J){H.blockData[J]|=b()<<f}d(j,"decodeDCSuccessive");let A=0;function S(H,J){if(A>0){A--;return}let ft=r,ot=l;for(;ft<=ot;){let at=w(H.huffmanTableAC),At=at&15,$t=at>>4;if(At===0){if($t<15){A=v($t)+(1<<$t)-1;break}ft+=16;continue}ft+=$t;let ut=Zr[ft];H.blockData[J+ut]=y(At)*(1<<f),ft++}}d(S,"decodeACFirst");let C=0,M;function O(H,J){let ft=r,ot=l,at=0,At,$t;for(;ft<=ot;){let ut=J+Zr[ft],bt=H.blockData[ut]<0?-1:1;switch(C){case 0:if($t=w(H.huffmanTableAC),At=$t&15,at=$t>>4,At===0)at<15?(A=v(at)+(1<<at),C=4):(at=16,C=1);else{if(At!==1)throw new da("invalid ACn encoding");M=y(At),C=at?2:3}continue;case 1:case 2:H.blockData[ut]?H.blockData[ut]+=bt*(b()<<f):(at--,at===0&&(C=C===2?3:0));break;case 3:H.blockData[ut]?H.blockData[ut]+=bt*(b()<<f):(H.blockData[ut]=M<<f,C=0);break;case 4:H.blockData[ut]&&(H.blockData[ut]+=bt*(b()<<f))}ft++}C===4&&(A--,A===0&&(C=0))}d(O,"decodeACSuccessive");let P=0;function $(H,J,ft,ot,at){let At=ft/c|0,$t=ft%c;P=At*H.v+ot;let ut=$t*H.h+at;J(H,Mh(H,P,ut))}d($,"decodeMcu");function tt(H,J,ft){P=ft/H.blocksPerLine|0;let ot=ft%H.blocksPerLine;J(H,Mh(H,P,ot))}d(tt,"decodeBlock");let K=s.length,z,B,G,Q,yt,It;It=u?r===0?o===0?q:j:o===0?S:O:x;let Lt=0,Pt,X=K===1?s[0].blocksPerLine*s[0].blocksPerColumn:c*a.mcusPerColumn,et,L;for(;Lt<=X;){let H=n?Math.min(X-Lt,n):X;if(H>0){for(B=0;B<K;B++)s[B].pred=0;if(A=0,K===1)for(z=s[0],yt=0;yt<H;yt++)tt(z,It,Lt),Lt++;else for(yt=0;yt<H;yt++){for(B=0;B<K;B++)for(z=s[B],et=z.h,L=z.v,G=0;G<L;G++)for(Q=0;Q<et;Q++)$(z,It,Lt,G,Q);Lt++}}if(g=0,Pt=Wo(t,e,i),!Pt)break;if(Pt.invalid&&(E(`decodeScan - ${H>0?"unexpected":"excessive"} MCU data, current marker is: ${Pt.invalid}`),i=Pt.offset),Pt.marker>=65488&&Pt.marker<=65495)i+=2;else break}return i-p}function $b(t,e,i){let a=t.quantizationTable,s=t.blockData,n,r,l,o,f,h,c,u,p,m,g,b,w,v,y,x,q;if(!a)throw new da("missing required Quantization Table.");for(let j=0;j<64;j+=8)p=s[e+j],m=s[e+j+1],g=s[e+j+2],b=s[e+j+3],w=s[e+j+4],v=s[e+j+5],y=s[e+j+6],x=s[e+j+7],p*=a[j],(m|g|b|w|v|y|x)===0?(q=Pn*p+512>>10,i[j]=q,i[j+1]=q,i[j+2]=q,i[j+3]=q,i[j+4]=q,i[j+5]=q,i[j+6]=q,i[j+7]=q):(m*=a[j+1],g*=a[j+2],b*=a[j+3],w*=a[j+4],v*=a[j+5],y*=a[j+6],x*=a[j+7],n=Pn*p+128>>8,r=Pn*w+128>>8,l=g,o=y,f=Ul*(m-x)+128>>8,u=Ul*(m+x)+128>>8,h=b<<4,c=v<<4,n=n+r+1>>1,r=n-r,q=l*zl+o*Ll+128>>8,l=l*Ll-o*zl+128>>8,o=q,f=f+c+1>>1,c=f-c,u=u+h+1>>1,h=u-h,n=n+o+1>>1,o=n-o,r=r+l+1>>1,l=r-l,q=f*Nl+u*Hl+2048>>12,f=f*Hl-u*Nl+2048>>12,u=q,q=h*799+c*Ol+2048>>12,h=h*Ol-c*799+2048>>12,c=q,i[j]=n+u,i[j+7]=n-u,i[j+1]=r+c,i[j+6]=r-c,i[j+2]=l+h,i[j+5]=l-h,i[j+3]=o+f,i[j+4]=o-f);for(let j=0;j<8;++j)p=i[j],m=i[j+8],g=i[j+16],b=i[j+24],w=i[j+32],v=i[j+40],y=i[j+48],x=i[j+56],(m|g|b|w|v|y|x)===0?(q=Pn*p+8192>>14,q=q<-2040?0:q>=2024?255:q+2056>>4,s[e+j]=q,s[e+j+8]=q,s[e+j+16]=q,s[e+j+24]=q,s[e+j+32]=q,s[e+j+40]=q,s[e+j+48]=q,s[e+j+56]=q):(n=Pn*p+2048>>12,r=Pn*w+2048>>12,l=g,o=y,f=Ul*(m-x)+2048>>12,u=Ul*(m+x)+2048>>12,h=b,c=v,n=(n+r+1>>1)+4112,r=n-r,q=l*zl+o*Ll+2048>>12,l=l*Ll-o*zl+2048>>12,o=q,f=f+c+1>>1,c=f-c,u=u+h+1>>1,h=u-h,n=n+o+1>>1,o=n-o,r=r+l+1>>1,l=r-l,q=f*Nl+u*Hl+2048>>12,f=f*Hl-u*Nl+2048>>12,u=q,q=h*799+c*Ol+2048>>12,h=h*Ol-c*799+2048>>12,c=q,p=n+u,x=n-u,m=r+c,y=r-c,g=l+h,v=l-h,b=o+f,w=o-f,p<16?p=0:p>=4080?p=255:p>>=4,m<16?m=0:m>=4080?m=255:m>>=4,g<16?g=0:g>=4080?g=255:g>>=4,b<16?b=0:b>=4080?b=255:b>>=4,w<16?w=0:w>=4080?w=255:w>>=4,v<16?v=0:v>=4080?v=255:v>>=4,y<16?y=0:y>=4080?y=255:y>>=4,x<16?x=0:x>=4080?x=255:x>>=4,s[e+j]=p,s[e+j+8]=m,s[e+j+16]=g,s[e+j+24]=b,s[e+j+32]=w,s[e+j+40]=v,s[e+j+48]=y,s[e+j+56]=x)}function Wb(t,e){let i=e.blocksPerLine,a=e.blocksPerColumn,s=new Int16Array(64);for(let n=0;n<a;n++)for(let r=0;r<i;r++)$b(e,Mh(e,n,r),s);return e.blockData}function Wo(t,e,i,a=i){let s=t.length-1,n=a<i?a:i;if(i>=s)return null;let r=e.getUint16(i);if(r>=65472&&r<=65534)return{invalid:null,marker:r,offset:i};let l=e.getUint16(n);for(;!(l>=65472&&l<=65534);){if(++n>=s)return null;l=e.getUint16(n)}return{invalid:r.toString(16),marker:l,offset:n}}function Vb(t){let e=Math.ceil(t.samplesPerLine/8/t.maxH),i=Math.ceil(t.scanLines/8/t.maxV);for(let a of t.components){let s=Math.ceil(Math.ceil(t.samplesPerLine/8)*a.h/t.maxH),n=Math.ceil(Math.ceil(t.scanLines/8)*a.v/t.maxV),r=e*a.h,l=64*(i*a.v)*(r+1);a.blockData=new Int16Array(l),a.blocksPerLine=s,a.blocksPerColumn=n}t.mcusPerLine=e,t.mcusPerColumn=i}function cd(t,e,i){let a=e.getUint16(i);i+=2;let s=i+a-2,n=Wo(t,e,s,i);n?.invalid&&(E("readDataBlock - incorrect length, current marker is: "+n.invalid),s=n.offset);let r=t.subarray(i,s);return{appData:r,oldOffset:i,newOffset:i+r.length}}function Kb(t,e,i){let a=e.getUint16(i);i+=2;let s=i+a-2,n=Wo(t,e,s,i);return n?.invalid?n.offset:s}function kr(t,e,i,a,s){let n=t;for(let r=0,l=e.length-1;r<l;r++){let o=e[r];n=n[o]||=[]}n[e.at(-1)]={checkFn:i,iterateFn:a,processFn:s}}function jp(t,e){return Fe(Math.floor(65536/e),1,t)}function Vc(t,e,i,a){let s=e.create(t,!0);if(s.numInputs!==i||s.numOutputs!==a)throw new V(`Invalid shading function: expected ${i}-in ${a}-out, got ${s.numInputs}-in ${s.numOutputs}-out.`);return s}function Jb(t){let e=t.coords[0][0],i=t.coords[0][1],a=e,s=i;for(let n=1,r=t.coords.length;n<r;n++){let l=t.coords[n][0],o=t.coords[n][1];e=e>l?l:e,i=i>o?o:i,a=a<l?l:a,s=s<o?o:s}t.bounds=[e,i,a,s]}function Qb(t){let e,i,a,s=t.coords,n=new Float32Array(s.length*2);for(e=0,i=0,a=s.length;e<a;e++){let o=s[e];n[i++]=o[0],n[i++]=o[1]}t.coords=n;let r=t.colors,l=new Uint8Array(r.length*4);for(e=0,i=0,a=r.length;e<a;e++){let o=r[e];l[i++]=o[0],l[i++]=o[1],l[i++]=o[2],i++}t.colors=l;for(let o of t.figures)o.coords=new Uint32Array(o.coords),o.colors=new Uint32Array(o.colors)}function xp(t,e,i){let a=0;for(let f of i)if(f.type===Ta.TRIANGLES)a+=f.coords.length;else if(f.type===Ta.LATTICE){let h=f.verticesPerRow;a+=(Math.floor(f.coords.length/h)-1)*(h-1)*6}let s=new Float32Array(a*2),n=new Uint8Array(a*4),r=0,l=0,o=d((f,h)=>{s[r++]=t[f*2],s[r++]=t[f*2+1],n[l++]=e[h*4],n[l++]=e[h*4+1],n[l++]=e[h*4+2],l++},"addVertex");for(let f of i){let h=f.coords,c=f.colors;if(f.type===Ta.TRIANGLES)for(let u=0,p=h.length;u<p;u++)o(h[u],c[u]);else if(f.type===Ta.LATTICE){let u=f.verticesPerRow,p=Math.floor(h.length/u)-1,m=u-1;for(let g=0;g<p;g++){let b=g*u;for(let w=0;w<m;w++,b++)o(h[b],c[b]),o(h[b+1],c[b+1]),o(h[b+u],c[b+u]),o(h[b+u+1],c[b+u+1]),o(h[b+1],c[b+1]),o(h[b+u],c[b+u])}}}return{posData:s,colData:n,vertexCount:a}}function pd(t){return(Ap??=new Map).getOrInsertComputed(t,()=>Array.from({length:t+1},(e,i)=>{let a=i/t,s=1-a;return new Float32Array([s**3,3*a*s**2,3*a**2*s,a**3])}))}function ew(){Ap?.clear()}function md(t,e,i,a=!0){let s=os(e.getArray("Matrix"),wa),n=Ya(e.getArray("BBox"),null);if(!n||n[2]-n[0]===0||n[3]-n[1]===0)throw new V("Invalid getTilingPatternIR /BBox array.");let r=e.get("XStep");if(typeof r!="number")throw new V("Invalid getTilingPatternIR /XStep value.");let l=e.get("YStep");if(typeof l!="number")throw new V("Invalid getTilingPatternIR /YStep value.");let o=e.get("PaintType");if(!Number.isInteger(o))throw new V("Invalid getTilingPatternIR /PaintType value.");let f=e.get("TilingType");if(!Number.isInteger(f))throw new V("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",i,t,s,n,r,l,o,f,a]}function Ai(t,e){let i=0;for(let a=0;a<=e;a++)i=i<<8|t[a];return i>>>0}function Gl(t,e){return e===1?String.fromCharCode(t[0],t[1]):e===3?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode(...t.subarray(0,e+1))}function Ei(t,e,i){let a=0;for(let s=i;s>=0;s--)a+=t[s]+e[s],t[s]=a&255,a>>=8}function Ws(t,e){let i=1;for(let a=e;a>=0&&i>0;a--)i+=t[a],t[a]=i&255,i>>=8}async function cw(t={}){var e=t,i=!0,a=import.meta.url;if(i)try{new URL(".",a).href}catch{}console.log.bind(console),console.error.bind(console);function s(){var g=e.preRun;g&&(typeof g=="function"&&(g=[g]),h.push(...g)),o(h)}d(s,"preRun");function n(){m.j()}d(n,"initRuntime");function r(){var g=e.postRun;g&&(typeof g=="function"&&(g=[g]),f.push(...g)),o(f)}d(r,"postRun");var l,o=d(g=>{for(;g.length>0;)g.shift()(e)},"callRuntimeCallbacks"),f=[],h=[],c=d((g,b)=>{l.set(g,b)},"writeArrayToMemory");e.noExitRuntime&&e.noExitRuntime,e.print&&e.print,e.printErr&&e.printErr,e.arguments&&e.arguments,e.thisProgram&&e.thisProgram;var u=e.preInit;if(u)for(typeof u=="function"&&(e.preInit=u=[u]);u.length>0;)u.shift()();e.writeArrayToMemory=c;async function p(){s();var g=e.setStatus;g&&(g("Running..."),await new Promise(b=>setTimeout(b,1)),setTimeout(g,1,"")),n(),e.onRuntimeInitialized?.(),r()}d(p,"run");var m={}();return await p(),e}async function yw(t={}){var e=t,i=!0,a=import.meta.url;if(i)try{new URL(".",a).href}catch{}console.log.bind(console),console.error.bind(console);function s(){var g=e.preRun;g&&(typeof g=="function"&&(g=[g]),h.push(...g)),o(h)}d(s,"preRun");function n(){m.s()}d(n,"initRuntime");function r(){var g=e.postRun;g&&(typeof g=="function"&&(g=[g]),f.push(...g)),o(f)}d(r,"postRun");var l,o=d(g=>{for(;g.length>0;)g.shift()(e)},"callRuntimeCallbacks"),f=[],h=[];globalThis.TextDecoder&&new TextDecoder;var c=d((g,b)=>{l.set(g,b)},"writeArrayToMemory");e.noExitRuntime&&e.noExitRuntime,e.print&&e.print,e.printErr&&e.printErr,e.arguments&&e.arguments,e.thisProgram&&e.thisProgram;var u=e.preInit;if(u)for(typeof u=="function"&&(e.preInit=u=[u]);u.length>0;)u.shift()();e.writeArrayToMemory=c;async function p(){s();var g=e.setStatus;g&&(g("Running..."),await new Promise(b=>setTimeout(b,1)),setTimeout(g,1,"")),n(),e.onRuntimeInitialized?.(),r()}d(p,"run");var m={}();return await p(),e}function qw(t){let e=[],i=t.length,a=0;for(;a<i-1;)e.push(t[a++]<<8|t[a++]);return a<i&&e.push(t[a]),i+"_"+String.fromCharCode.apply(null,e)}function Tf(t){return t>=48&&t<=57?t&15:t>=65&&t<=70||t>=97&&t<=102?(t&15)+9:-1}function Os(t){let e=0;for(let i=0;i<t.length;i++)e=e<<8|t.charCodeAt(i);return e>>>0}function qn(t){if(typeof t!="string")throw new V("Malformed CMap: expected string.")}function Mp(t){if(!Number.isInteger(t))throw new V("Malformed CMap: expected int.")}function Cw(t,e){for(;;){let i=e.getObj();if(i===ki)break;if(ci(i,"endbfchar"))return;qn(i);let a=Os(i);i=e.getObj(),qn(i);let s=i;t.mapOne(a,s)}}function Iw(t,e){for(;;){let i=e.getObj();if(i===ki)break;if(ci(i,"endbfrange"))return;qn(i);let a=Os(i);i=e.getObj(),qn(i);let s=Os(i);if(i=e.getObj(),Number.isInteger(i)||typeof i=="string"){let n=Number.isInteger(i)?String.fromCharCode(i):i;t.mapBfRange(a,s,n)}else if(ci(i,"[")){i=e.getObj();let n=[];for(;!ci(i,"]")&&i!==ki;)n.push(i),i=e.getObj();t.mapBfRangeToArray(a,s,n)}else break}throw new V("Invalid bf range.")}function Tw(t,e){for(;;){let i=e.getObj();if(i===ki)break;if(ci(i,"endcidchar"))return;qn(i);let a=Os(i);i=e.getObj(),Mp(i);let s=i;t.mapOne(a,s)}}function Mw(t,e){for(;;){let i=e.getObj();if(i===ki)break;if(ci(i,"endcidrange"))return;qn(i);let a=Os(i);i=e.getObj(),qn(i);let s=Os(i);i=e.getObj(),Mp(i);let n=i;t.mapCidRange(a,s,n)}}function _w(t,e){for(;;){let i=e.getObj();if(i===ki)break;if(ci(i,"endcodespacerange"))return;if(typeof i!="string")break;let a=Os(i);if(i=e.getObj(),typeof i!="string")break;let s=Os(i);t.addCodespaceRange(i.length,a,s)}throw new V("Invalid codespace range.")}function Ew(t,e){let i=e.getObj();Number.isInteger(i)&&(t.vertical=!!i)}function Fw(t,e){let i=e.getObj();i instanceof Z&&(t.name=i.name)}async function _p(t,e,i,a){let s,n;t:for(;;)try{let r=e.getObj();if(r===ki)break;if(r instanceof Z)r.name==="WMode"?Ew(t,e):r.name==="CMapName"&&Fw(t,e),s=r;else if(r instanceof hi)switch(r.cmd){case"endcmap":break t;case"usecmap":s instanceof Z&&(n=s.name);break;case"begincodespacerange":_w(t,e);break;case"beginbfchar":Cw(t,e);break;case"begincidchar":Tw(t,e);break;case"beginbfrange":Iw(t,e);break;case"begincidrange":Mw(t,e)}}catch(r){if(r instanceof xe)throw r;E("Invalid cMap data: "+r);continue}return!a&&n&&(a=n),a?Ep(t,i,a):t}async function Ep(t,e,i){if(t.useCMap=await Fh(i,e),t.numCodespaceRanges===0){let a=t.useCMap.codespaceRanges;for(let s=0;s<a.length;s++)t.codespaceRanges[s]=a[s].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach((a,s)=>{t.contains(a)||t.mapOne(a,s)}),t}async function Fh(t,e){if(t==="Identity-H")return new tl(!1,2);if(t==="Identity-V")return new tl(!0,2);if(!Aw.has(t))throw Error("Unknown CMap name: "+t);if(!e)throw Error("Built-in CMap parameters are not provided.");let{cMapData:i,isCompressed:a}=await e(t),s=new Kc(!0);return a?new nw().process(i,s,n=>Ep(s,e,n)):_p(s,new Ma(new Me(i)),e,null)}function ml(t){switch(t){case"WinAnsiEncoding":return pl;case"StandardEncoding":return cs;case"MacRomanEncoding":return Xc;case"SymbolSetEncoding":return Xo;case"ZapfDingbatsEncoding":return Yc;case"ExpertEncoding":return Fp;case"MacExpertEncoding":return Rw;default:return null}}function Bw(t){return t>=65520&&t<=65535?0:t>=62976&&t<=63743?Pw()[t]||t:t===173?45:t}function or(t,e){let i=e[t];if(i!==void 0)return i;if(!t)return-1;if(t[0]==="u"){let a=t.length,s;if(a===7&&t[1]==="n"&&t[2]==="i")s=t.substring(3);else if(a>=5&&a<=7)s=t.substring(1);else return-1;if(s===s.toUpperCase()&&(i=parseInt(s,16),i>=0))return i}return-1}function Ow(t,e=-1){if(e!==-1){let i=Mf[e];for(let a=0,s=i.length;a<s;a+=2)if(t>=i[a]&&t<=i[a+1])return e}for(let i=0,a=Mf.length;i<a;i++){let s=Mf[i];for(let n=0,r=s.length;n<r;n+=2)if(t>=s[n]&&t<=s[n+1])return i}return-1}function Nw(t){let e=Rh.get(t);if(e)return e;let i=t.match(Hw),a={isWhitespace:!!i?.[1],isZeroWidthDiacritic:!!i?.[2],isInvisibleFormatMark:!!i?.[3]};return Rh.set(t,a),a}function Lw(){Rh.clear()}function Rp(t,e){if(e[t]!==void 0)return t;let i=or(t,e);if(i!==-1){for(let a in e)if(e[a]===i)return a}return de("Unable to recover a standard glyph name for: "+t),t}function Dp(t,e,i){let a=new Map,s,n,r=!!(t.flags&ia.Symbolic);if(t.isInternalFont){n=e;for(let o=0;o<n.length;o++)s=i.indexOf(n[o]),a.set(o,s>=0?s:0)}else if(t.baseEncodingName){n=ml(t.baseEncodingName);for(let o=0;o<n.length;o++)s=i.indexOf(n[o]),a.set(o,s>=0?s:0)}else if(r)for(let o in e)a.set(+o,e[o]);else{n=cs;for(let o=0;o<n.length;o++)s=i.indexOf(n[o]),a.set(o,s>=0?s:0)}let l;if(t.differences)for(let[o,f]of t.differences){if(s=i.indexOf(f),s===-1){l??=Ea();let h=Rp(f,l);h!==f&&(s=i.indexOf(h))}a.set(o,s>=0?s:0)}return a}function Hs(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}function Uw({data:t,width:e,height:i}){if(e>vd||i>vd)return null;let a=1e3,s=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),n=e+1,r=new Uint8Array(n*(i+1)),l,o,f,h=e+7&-8,c=new Uint8Array(h*i),u=0;for(let j of t){let A=128;for(;A>0;)c[u++]=j&A?0:255,A>>=1}let p=0;for(u=0,c[u]!==0&&(r[0]=1,++p),o=1;o<e;o++)c[u]!==c[u+1]&&(r[o]=c[u]?2:1,++p),u++;for(c[u]!==0&&(r[o]=2,++p),l=1;l<i;l++){u=l*h,f=l*n,c[u-h]!==c[u]&&(r[f]=c[u]?1:8,++p);let j=(c[u]?4:0)+(c[u-h]?8:0);for(o=1;o<e;o++)j=(j>>2)+(c[u+1]?4:0)+(c[u-h+1]?8:0),s[j]&&(r[f+o]=s[j],++p),u++;if(c[u-h]!==c[u]&&(r[f+o]=c[u]?2:4,++p),p>a)return null}for(u=h*(i-1),f=l*n,c[u]!==0&&(r[f]=8,++p),o=1;o<e;o++)c[u]!==c[u+1]&&(r[f+o]=c[u]?4:8,++p),u++;if(c[u]!==0&&(r[f+o]=4,++p),p>a)return null;let m=new Int32Array([0,n,-1,0,-n,0,0,0,1]),g=[],{a:b,b:w,c:v,d:y,e:x,f:q}=new DOMMatrix().scaleSelf(1/e,-1/i).translateSelf(0,-i);for(l=0;p&&l<=i;l++){let j=l*n,A=j+e;for(;j<A&&!r[j];)j++;if(j===A)continue;let S=j%n,C=l;g.push(Ee.moveTo,b*S+v*C+x,w*S+y*C+q);let M=j,O=r[j];do{let P=m[O];do j+=P;while(!r[j]);let $=r[j];$!==5&&$!==10?(O=$,r[j]=0):(O=$&51*O>>4,r[j]&=O>>2|O<<2),S=j%n,C=j/n|0,g.push(Ee.lineTo,b*S+v*C+x,w*S+y*C+q),r[j]||--p}while(M!==j);--l}return[T.rawFillPath,[new Float32Array(g)],new Float32Array([0,0,e,i])]}function go(t){return t>32767&&t<=65535}function _f(t,e=!1){return oe.normalizeRect(t.map((i,a)=>(!e||a<2)&&go(i)?i-65536:i))}function Ff(t){let e=Hs(t);return gl()[e]}function xd(t){let e=Hs(t);return!!(gl()[e]||Oh()[e]||tu()[e]||Hh()[e])}function o2(t,e,i){let a=new DataView(t.buffer,t.byteOffset,t.byteLength),s=Array(i);for(let o=0;o<i;o++){let f=e[o].offset,h=Math.min(e[o].endOffset,a.byteLength);if(h-f<=10||a.getInt16(f)>=0)continue;let c=[],u=f+10;for(;u+4<=h;){let p=a.getUint16(u),m=a.getUint16(u+2),g=4+(p&1?4:2);if(p&8?g+=2:p&64?g+=4:p&128&&(g+=8),c.push({gid:m,offset:u,size:g,flags:p}),u+=g,!(p&32))break}c.length&&(s[o]=c)}let n=new Uint8Array(i),r=new Map;for(let o=0;o<i;o++){if(n[o]!==0||!s[o])continue;let f=[{node:o,idx:0}];for(n[o]=1;f.length>0;){let h=f.at(-1),c=s[h.node];if(!c||h.idx>=c.length){n[h.node]=2,f.pop();continue}let u=h.idx++,p=c[u].gid;p>=i||n[p]===2||(n[p]===0?(n[p]=1,f.push({node:p,idx:0})):r.getOrInsertComputed(h.node,ip).add(u))}}let l=new Set;for(let[o,f]of r){let h=s[o],c=[];for(let g=0;g<h.length;g++)f.has(g)||c.push(h[g]);if(c.length===0){l.add(o);continue}let u=e[o].offset,p=Math.min(e[o].endOffset,a.byteLength),m=u+10;for(let g=0;g<c.length;g++){let b=c[g],w=g===c.length-1,v=b.flags&-257;v=w?v&-33:v|32,m!==b.offset&&t.copyWithin(m,b.offset,b.offset+b.size),a.setUint16(m,v),m+=b.size}m<p&&t.fill(0,m,p)}return l}function _o(t,e){let{encoder:i}=c2,a=new Map,s=0;for(let n of t){let r=i.encode(e[n]),l=r.length;a.set(r,l),s+=4+l}return{encodedStrings:a,stringsLength:s}}function Eo(t,e,i,a=0){for(let[s,n]of t)i.setUint32(a,n),e.set(s,a+4),a+=4+n;return a}function u2(t){let{encodedStrings:e,stringsLength:i}=_o(f2.strings,t),a=new ArrayBuffer(i);return Le(Eo(e,new Uint8Array(a),new DataView(a))===a.byteLength,"compileCssFontInfo: Buffer overflow"),a}function d2(t){let{encodedStrings:e,stringsLength:i}=_o(h2.strings,t),a,s=0;t.style&&({encodedStrings:a,stringsLength:s}=_o(["style","weight"],t.style));let n=4+i+s,r=new ArrayBuffer(n),l=new Uint8Array(r),o=new DataView(r),f=0;return o.setUint32(f,i),f=Eo(e,l,o,f+4),a&&(f=Eo(a,l,o,f)),Le(f<=r.byteLength,"compileSystemFontInfo: Buffer overflow"),r.transferToFixedLength(f)}function p2(t){function e(g,b,w,v){if(g){h.setUint8(c++,b);for(let y of g)h[w](c,y,!0),c+=v}else h.setUint8(c++,0),c+=v*b}d(e,"writeArray");function i(g,b){if(!g){h.setUint32(c,0),c+=4;return}let w=g.byteLength;h.setUint32(c,w),Le(c+4+w<=o.byteLength,`compileFontInfo: Buffer overflow at ${b}`),f.set(new Uint8Array(g),c+4),c+=4+w}d(i,"writeBuffer");let a=t.systemFontInfo?d2(t.systemFontInfo):null,s=t.cssFontInfo?u2(t.cssFontInfo):null,{encodedStrings:n,stringsLength:r}=_o(Vs.strings,t),l=Vs.OFFSET_STRINGS+4+r+4+(a?.byteLength??0)+4+(s?.byteLength??0)+4+(t.data?.length??0),o=new ArrayBuffer(l),f=new Uint8Array(o),h=new DataView(o),c=0,u=Vs.bools.length,p=0,m=0;for(let g=0;g<u;g++){let b=t[Vs.bools[g]];p|=(b===void 0?0:b?2:1)<<m,m+=2,(m===8||g===u-1)&&(h.setUint8(c++,p),p=0,m=0)}return Le(c===Vs.OFFSET_BBOX,"compileFontInfo: Boolean properties offset mismatch"),e(t.bbox,4,"setInt16",2),Le(c===Vs.OFFSET_FONT_MATRIX,"compileFontInfo: BBox properties offset mismatch"),e(t.fontMatrix,6,"setFloat64",8),Le(c===Vs.OFFSET_STRINGS,"compileFontInfo: FontMatrix properties offset mismatch"),h.setUint32(c,r),c=Eo(n,f,h,c+4),i(a,"systemFontInfo"),i(s,"cssFontInfo"),t.data===void 0?(h.setUint32(c,0),c+=4):(h.setUint32(c,t.data.length),f.set(t.data,c+4),c+=4+t.data.length),Le(c<=o.byteLength,"compileFontInfo: Buffer overflow"),o.transferToFixedLength(c)}function m2(t){let e,i=null,a=[],s=[],n=[],r=null,l=null;switch(t[0]){case"RadialAxial":e=t[1]==="axial"?1:2,i=t[2],n=t[3],e===1?a.push(...t[4],...t[5]):a.push(t[4][0],t[4][1],t[6],t[5][0],t[5][1],t[7]);break;case"Mesh":e=3,r=t[1],a=t[2],s=t[3],i=t[6],l=t[7];break;default:throw Error(`Unsupported pattern type: ${t[0]}`)}let o=Math.floor(a.length/2),f=Math.floor(s.length/4),h=n.length,c=20+o*8+f*4+h*8+(i?16:0)+(l?3:0),u=new ArrayBuffer(c),p=new DataView(u),m=new Uint8Array(u);p.setUint8(ys.KIND,e),p.setUint8(ys.HAS_BBOX,+!!i),p.setUint8(ys.HAS_BACKGROUND,+!!l),p.setUint8(ys.SHADING_TYPE,r),p.setUint32(ys.N_COORD,o,!0),p.setUint32(ys.N_COLOR,f,!0),p.setUint32(ys.N_STOP,h,!0),p.setUint32(ys.N_FIGURES,0,!0);let g=20;new Float32Array(u,g,o*2).set(a),g+=o*8,m.set(s,g),g+=f*4;for(let[b,w]of n)p.setFloat32(g,b,!0),g+=4,p.setUint32(g,parseInt(w.slice(1),16),!0),g+=4;if(i)for(let b of i)p.setFloat32(g,b,!0),g+=4;return l&&m.set(l,g),u}function g2(t){return t.slice().buffer}function Ks(t,e){return t.getInt16(e)/16384}function Lh(t){let e=t.length;return e>=33900?32768:e<1240?107:1131}function b2(t,e,i){let a=new DataView(t.buffer,t.byteOffset,t.byteLength),s=a.getUint16(e+2)===1?a.getUint32(e+8):a.getUint32(e+16),n=a.getUint16(e+s),r,l,o;if(n===4){let f=a.getUint16(e+s+6)>>1;for(l=e+s+14,r=[],o=0;o<f;o++,l+=2)r[o]={end:a.getUint16(l)};for(l+=2,o=0;o<f;o++,l+=2)r[o].start=a.getUint16(l);for(o=0;o<f;o++,l+=2)r[o].idDelta=a.getUint16(l);for(o=0;o<f;o++,l+=2){let h=a.getUint16(l);if(h!==0){r[o].ids=[];for(let c=0,u=r[o].end-r[o].start+1;c<u;c++)r[o].ids[c]=a.getUint16(l+h),h+=2}}return r}if(n===12){let f=a.getUint32(e+s+12);for(l=e+s+16,r=[],o=0;o<f;o++)e=a.getUint32(l),r.push({start:e,end:a.getUint32(l+4),idDelta:a.getUint32(l+8)-e}),l+=12;return r}throw new V(`unsupported cmap: ${n}`)}function w2(t,e,i,a){let s=new Jc(new Me(t,e,i-e),{},a).parse();return{glyphs:s.charStrings.objects,subrs:s.topDict.privateDict?.subrsIndex?.objects,gsubrs:s.globalSubrIndex?.objects,isCFFCIDFont:s.isCIDFont,fdSelect:s.fdSelect,fdArray:s.fdArray}}function y2(t,e,i){let a=new DataView(e.buffer,e.byteOffset,e.byteLength),s,n;i?(s=4,n=d((o,f)=>o.getUint32(f),"itemDecode")):(s=2,n=d((o,f)=>2*o.getUint16(f),"itemDecode"));let r=[],l=n(a,0);for(let o=s;o<e.length;o+=s){let f=n(a,o);r.push(t.subarray(l,f)),l=f}return r}function zh(t,e){let i=e.codePointAt(0),a=0,s=0,n=t.length-1;for(;s<n;){let r=s+n+1>>1;i<t[r].start?n=r-1:s=r}return t[s].start<=i&&i<=t[s].end&&(a=t[s].idDelta+(t[s].ids?t[s].ids[i-t[s].start]:i)&65535),{charCode:i,glyphId:a}}function Wp(t,e,i,a=new Set){if(!t?.length)return;if(a.has(t)){E("compileGlyf: skipping recursive composite glyph reference.");return}a.add(t);function s(m,g){c&&e.add(Ee.lineTo,c),c=[m,g],e.add(Ee.moveTo,[m,g])}d(s,"moveTo");function n(m,g){e.add(Ee.lineTo,[m,g])}d(n,"lineTo");function r(m,g,b,w){e.add(Ee.quadraticCurveTo,[m,g,b,w])}d(r,"quadraticCurveTo");let l=new DataView(t.buffer,t.byteOffset,t.byteLength),o=0,f=l.getInt16(o),h,c=null,u=0,p=0;if(o+=10,f<0)do{h=l.getUint16(o);let m=l.getUint16(o+2);o+=4;let g,b;h&1?(h&2?(g=l.getInt16(o),b=l.getInt16(o+2)):(g=l.getUint16(o),b=l.getUint16(o+2)),o+=4):h&2?(g=l.getInt8(o++),b=l.getInt8(o++)):(g=t[o++],b=t[o++]),h&2?(u=g,p=b):(u=0,p=0);let w=1,v=1,y=0,x=0;h&8?(w=v=Ks(l,o),o+=2):h&64?(w=Ks(l,o),v=Ks(l,o+2),o+=4):h&128&&(w=Ks(l,o),y=Ks(l,o+2),x=Ks(l,o+4),v=Ks(l,o+6),o+=8);let q=i.glyphs[m];q&&(e.save(),e.transform([w,y,x,v,u,p]),h&2,Wp(q,e,i,a),e.restore())}while(h&32);else{let m=[],g,b;for(g=0;g<f;g++)m.push(l.getUint16(o)),o+=2;let w=l.getUint16(o);o+=2+w;let v=m.at(-1)+1,y=[];for(;y.length<v;){h=t[o++];let q=1;for(h&8&&(q+=t[o++]);q-- >0;)y.push({flags:h})}for(g=0;g<v;g++){switch(y[g].flags&18){case 0:u+=l.getInt16(o),o+=2;break;case 2:u-=t[o++];break;case 18:u+=t[o++]}y[g].x=u}for(g=0;g<v;g++){switch(y[g].flags&36){case 0:p+=l.getInt16(o),o+=2;break;case 4:p-=t[o++];break;case 36:p+=t[o++]}y[g].y=p}let x=0;for(o=0;o<f;o++){let q=m[o],j=y.slice(x,q+1);if(j[0].flags&1)j.push(j[0]);else if(j.at(-1).flags&1)j.unshift(j.at(-1));else{let A={flags:1,x:(j[0].x+j.at(-1).x)/2,y:(j[0].y+j.at(-1).y)/2};j.unshift(A),j.push(A)}for(s(j[0].x,j[0].y),g=1,b=j.length;g<b;g++)j[g].flags&1?n(j[g].x,j[g].y):j[g+1].flags&1?(r(j[g].x,j[g].y,j[g+1].x,j[g+1].y),g++):r(j[g].x,j[g].y,(j[g].x+j[g+1].x)/2,(j[g].y+j[g+1].y)/2);x=q+1}}a.delete(t)}function Uh(t,e,i,a){function s(p,m){c&&e.add(Ee.lineTo,c),c=[p,m],e.add(Ee.moveTo,[p,m])}d(s,"moveTo");function n(p,m){e.add(Ee.lineTo,[p,m])}d(n,"lineTo");function r(p,m,g,b,w,v){e.add(Ee.curveTo,[p,m,g,b,w,v])}d(r,"bezierCurveTo");let l=[],o=0,f=0,h=0,c=null;function u(p){let m=new DataView(p.buffer,p.byteOffset,p.byteLength),g=0;for(;g<p.length;){let b=!1,w=p[g++],v,y,x,q,j,A,S,C,M;switch(w){case 1:h+=l.length>>1,b=!0;break;case 3:h+=l.length>>1,b=!0;break;case 4:f+=l.pop(),s(o,f),b=!0;break;case 5:for(;l.length>0;)o+=l.shift(),f+=l.shift(),n(o,f);break;case 6:for(;l.length>0&&(o+=l.shift(),n(o,f),l.length!==0);)f+=l.shift(),n(o,f);break;case 7:for(;l.length>0&&(f+=l.shift(),n(o,f),l.length!==0);)o+=l.shift(),n(o,f);break;case 8:for(;l.length>0;)v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+l.shift(),r(v,x,y,q,o,f);break;case 10:if(C=l.pop(),M=null,i.isCFFCIDFont){let O=i.fdSelect.getFDIndex(a);if(O>=0&&O<i.fdArray.length){let P=i.fdArray[O],$;P.privateDict?.subrsIndex&&($=P.privateDict.subrsIndex.objects),$&&(C+=Lh($),M=$[C])}else E("Invalid fd index for glyph index.")}else M=i.subrs[C+i.subrsBias];M&&u(M);break;case 11:return;case 12:switch(w=p[g++],w){case 34:v=o+l.shift(),y=v+l.shift(),j=f+l.shift(),o=y+l.shift(),r(v,f,y,j,o,j),v=o+l.shift(),y=v+l.shift(),o=y+l.shift(),r(v,j,y,f,o,f);break;case 35:v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+l.shift(),r(v,x,y,q,o,f),v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+l.shift(),r(v,x,y,q,o,f),l.pop();break;case 36:v=o+l.shift(),j=f+l.shift(),y=v+l.shift(),A=j+l.shift(),o=y+l.shift(),r(v,j,y,A,o,A),v=o+l.shift(),y=v+l.shift(),S=A+l.shift(),o=y+l.shift(),r(v,A,y,S,o,f);break;case 37:let O=o,P=f;v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+l.shift(),r(v,x,y,q,o,f),v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y,f=q,Math.abs(o-O)>Math.abs(f-P)?o+=l.shift():f+=l.shift(),r(v,x,y,q,o,f);break;default:throw new V(`unknown operator: 12 ${w}`)}break;case 14:if(l.length>=4){let O=l.pop(),P=l.pop();f=l.pop(),o=l.pop(),e.save(),e.translate(o,f);let $=zh(i.cmap,String.fromCharCode(i.glyphNameMap[cs[O]]));Uh(i.glyphs[$.glyphId],e,i,$.glyphId),e.restore(),$=zh(i.cmap,String.fromCharCode(i.glyphNameMap[cs[P]])),Uh(i.glyphs[$.glyphId],e,i,$.glyphId)}return;case 18:h+=l.length>>1,b=!0;break;case 19:h+=l.length>>1,g+=h+7>>3,b=!0;break;case 20:h+=l.length>>1,g+=h+7>>3,b=!0;break;case 21:f+=l.pop(),o+=l.pop(),s(o,f),b=!0;break;case 22:o+=l.pop(),s(o,f),b=!0;break;case 23:h+=l.length>>1,b=!0;break;case 24:for(;l.length>2;)v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+l.shift(),r(v,x,y,q,o,f);o+=l.shift(),f+=l.shift(),n(o,f);break;case 25:for(;l.length>6;)o+=l.shift(),f+=l.shift(),n(o,f);v=o+l.shift(),x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+l.shift(),r(v,x,y,q,o,f);break;case 26:for(l.length%2&&(o+=l.shift());l.length>0;)v=o,x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y,f=q+l.shift(),r(v,x,y,q,o,f);break;case 27:for(l.length%2&&(f+=l.shift());l.length>0;)v=o+l.shift(),x=f,y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q,r(v,x,y,q,o,f);break;case 28:l.push(m.getInt16(g)),g+=2;break;case 29:C=l.pop()+i.gsubrsBias,M=i.gsubrs[C],M&&u(M);break;case 30:for(;l.length>0&&(v=o,x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+(l.length===1?l.shift():0),r(v,x,y,q,o,f),l.length!==0);)v=o+l.shift(),x=f,y=v+l.shift(),q=x+l.shift(),f=q+l.shift(),o=y+(l.length===1?l.shift():0),r(v,x,y,q,o,f);break;case 31:for(;l.length>0&&(v=o+l.shift(),x=f,y=v+l.shift(),q=x+l.shift(),f=q+l.shift(),o=y+(l.length===1?l.shift():0),r(v,x,y,q,o,f),l.length!==0);)v=o,x=f+l.shift(),y=v+l.shift(),q=x+l.shift(),o=y+l.shift(),f=q+(l.length===1?l.shift():0),r(v,x,y,q,o,f);break;default:if(w<32)throw new V(`unknown operator: ${w}`);w<247?l.push(w-139):w<251?l.push((w-247)*256+p[g++]+108):w<255?l.push(-(w-251)*256-p[g++]-108):(l.push(m.getInt32(g)/65536),g+=4)}b&&(l.length=0)}}d(u,"parse"),u(t)}function Sa(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Id(t,e,i){if(i>=t.length)return new Uint8Array;let a=52845,s=22719,n=e|0,r,l;for(r=0;r<i;r++)n=(t[r]+n)*a+s&65535;let o=t.length-i,f=new Uint8Array(o);for(r=i,l=0;l<o;r++,l++){let h=t[r];f[l]=h^n>>8,n=(h+n)*a+s&65535}return f}function S2(t,e,i){let a=e|0,s=t.length,n=s>>>1,r=new Uint8Array(n),l,o;for(l=0,o=0;l<s;l++){let f=t[l];if(!Sa(f))continue;l++;let h;for(;l<s&&!Sa(h=t[l]);)l++;if(l<s){let c=parseInt(String.fromCharCode(f,h),16);r[o++]=c^a>>8,a=(c+a)*52845+22719&65535}}return r.slice(i,o)}function Td(t){return t===47||t===91||t===93||t===123||t===125||t===40||t===41}function Md(t,e,i){let a=t.length,s=e.length,n=a-s,r=i,l=!1;for(;r<n;){let o=0;for(;o<s&&t[r+o]===e[o];)o++;if(o>=s){for(r+=o;r<a&&ya(t[r]);)r++;l=!0;break}r++}return{found:l,length:r}}function C2(t,e){let i=[101,101,120,101,99],a=t.pos,s,n,r;try{s=t.getBytes(e),n=s.length}catch{}if(n===e&&(r=Md(s,i,e-2*i.length),r.found&&r.length===e))return{stream:new Me(s),length:e};E('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=a;let l;for(;r=Md(t.peekBytes(2048),i,0),r.length!==0;)if(t.pos+=r.length,r.found){l=t.pos-a;break}return t.pos=a,l?{stream:new Me(t.getBytes(l)),length:l}:(E('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new Me(t.getBytes(e)),length:e})}function I2(t,e){let i=t.getBytes();if(i.length===0)throw new V("getEexecBlock - no font program found.");return{stream:new Me(i),length:i.length}}function T2(t){let e=t.peekBytes(2048);if(e.length<2||e[0]!==37||e[1]!==33)return!1;let i=Bi(e);return i.includes("Resource-CIDFont")||/\/CIDFontType\s+0\b/.test(i)}function _d(t){if(!t.fontMatrix||t.fontMatrix[0]===pn[0])return;let e=.001/t.fontMatrix[0],i=t.widths;for(let a in i)i[a]*=e;t.defaultWidth*=e}function F2(t,e,i){if(t.isInternalFont||t.hasIncludedToUnicodeMap||t.hasEncoding||t.toUnicode instanceof ga||!e||i.length===0||t.defaultEncoding===pl)return;for(let r of i)if(!Jp(r))return;let a=pl,s=new Map,n=Ea();for(let r in a){let l=a[r];if(l==="")continue;let o=n[l];o!==void 0&&s.set(+r,String.fromCharCode(o))}t.toUnicode.amend(s)}function R2(t,e){if(t.isInternalFont||t.hasIncludedToUnicodeMap||e===t.defaultEncoding||t.toUnicode instanceof ga)return;let i=new Map,a=Ea();for(let s in e){if(t.hasEncoding&&(t.baseEncodingName||t.differences.has(+s)))continue;let n=e[s],r=or(n,a);r!==-1&&i.set(+s,String.fromCharCode(r))}t.toUnicode.amend(i)}function Ed(t){if(!t.fallbackToUnicode||t.toUnicode instanceof ga)return;let e=new Map;for(let[i,a]of t.fallbackToUnicode)t.toUnicode.has(i)||e.set(i,a);t.toUnicode.amend(e)}function jr(t,e){return(t<<8)+e}function qr(t,e,i){t[e+1]=i,t[e]=i>>>8}function Ri(t,e){let i=(t<<8)+e;return i&32768?i-65536:i}function Fd(t,e,i){t[e+3]=i&255,t[e+2]=i>>>8,t[e+1]=i>>>16,t[e]=i>>>24}function P2(t){let e=Bi(t.peekBytes(4));return e==="\0\0\0"||e==="true"}function Yp(t){return Bi(t.peekBytes(4))==="ttcf"}function B2(t){return Bi(t.peekBytes(4))==="OTTO"}function O2(t){let e=t.peekBytes(2);return e[0]===37&&e[1]===33||e[0]===128&&e[1]===1}function H2(t){let e=t.peekBytes(4);return e[0]>=1&&e[3]>=1&&e[3]<=4}function N2(t,{type:e,subtype:i,composite:a}){let s,n;return P2(t)||Yp(t)?s=a?"CIDFontType2":"TrueType":B2(t)?s=a?"CIDFontType2":"OpenType":O2(t)?s=a?"CIDFontType0":e==="MMType1"?"MMType1":"Type1":H2(t)?a?(s="CIDFontType0",n="CIDFontType0C"):(s=e==="MMType1"?"MMType1":"Type1",n="Type1C"):(E("getFontFileType: Unable to detect correct font file Type/Subtype."),s=e,n=i),[s,n]}function Hn(t,e){for(let i in e)t.set(+i,e[i])}function Pf(t,e,i){let a=new Map,s;for(let n=0,r=t.length;n<r;n++)s=or(t[n],e),s!==-1&&a.set(n,s);for(let[n,r]of i)s=or(r,e),s!==-1&&a.set(n,s);return a}function z2(t){return t.platform===1&&t.encoding===0&&t.language===0}function Jp(t){return t.platform===3&&t.encoding===1&&t.language===1033}function Bf(t,e,i=!1){switch(e.length){case 1:return e.charCodeAt(0);case 2:return e.charCodeAt(0)<<8|e.charCodeAt(1)}let a=`Unsupported CID string (charCode ${t}): "${e}".`;if(i)throw new V(a);return E(a),e}function Rd(t,e,i,a){let s=new Map,n=new Map,r=new Map,l=new Set,o=0,f=ts[o][0],h=ts[o][1],c=d(p=>ts[0][0]<=p&&p<=ts[0][1]||ts[1][0]<=p&&p<=ts[1][1],"isInPrivateArea"),u=null;for(let[p,m]of t){if(!e(m))continue;if(f>h){if(o++,o>=ts.length){E("Ran out of space in font private use area.");break}f=ts[o][0],h=ts[o][1]}let g=f++,b=m===0?i:m,w=a.get(p);if(typeof w=="string")if(w.length===1)w=w.codePointAt(0);else{if(!u){u=new Map;for(let v=64256;v<=64335;v++){let y=String.fromCharCode(v).normalize("NFKD");y.length>1&&u.set(y,v)}}w=u.get(w)||w.codePointAt(0)}w&&!c(w)&&!l.has(b)&&(n.set(w,b),l.add(b)),s.set(g,b),r.set(p,g)}return{toFontChar:r,charCodeToGlyphId:s,toUnicodeExtraMap:n,nextAvailableFontCharCode:f}}function U2(t,e,i){let a=[];for(let[r,l]of t)l>=i||a.push({fontCharCode:r,glyphId:l});if(e)for(let[r,l]of e)l>=i||a.push({fontCharCode:r,glyphId:l});a.length===0&&a.push({fontCharCode:0,glyphId:0}),a.sort((r,l)=>r.fontCharCode-l.fontCharCode);let s=[],n=a.length;for(let r=0;r<n;){let l=a[r].fontCharCode,o=[a[r].glyphId];++r;let f=l;for(;r<n&&f+1===a[r].fontCharCode&&(o.push(a[r].glyphId),++f,++r,f!==65535););s.push([l,f,o])}return s}function Dd(t,e,i){let a=U2(t,e,i),s=a.at(-1)[1]>65535,n,r,l;for(n=a.length-1;n>=0&&!(a[n][0]<=65535);--n);let o=n+1;a[n][0]<65535&&a[n][1]===65535&&(a[n][1]=65534);let f=+(a[n][1]<65535),h=o+f,c=Gh.getSearchParams(h,2),u=o*2+f*2,p=new ei({exactLength:u}),m=new ei({exactLength:u}),g=new ei({exactLength:u}),b=new ei({exactLength:u}),w=new ei({}),v=0,y=!1;for(n=0;n<o;n++){let[K,z,B]=a[n];p.setInt16(K),m.setInt16(z);let G=!0;for(r=1,l=B.length;r<l;++r)if(B[r]!==B[r-1]+1){G=!1;break}if(G){let Q=B[0];g.setInt16(Q-K&65535),b.skip(2)}else{let Q=(h-n)*2+v*2;for(v+=z-K+1,g.skip(2),Q>65535?(y=!0,b.skip(2)):b.setInt16(Q),r=0,l=B.length;r<l;++r)w.setInt16(B[r])}}f>0&&(m.setArray([255,255]),p.setArray([255,255]),g.setArray([0,1]),b.skip(2));let x=new ei({exactLength:12+p.length+m.length+g.length+b.length+w.length});x.skip(2),x.setInt16(2*h),x.setInt16(c.range),x.setInt16(c.entry),x.setInt16(c.rangeShift),x.setArray(m.data),x.skip(2),x.setArray(p.data),x.setArray(g.data),x.setArray(b.data),x.setArray(w.data);let q=!y&&x.length+4<=65535,j=s||!q,A=+!!q+ +!!j,S=null,C=null;if(j){S=new ei({});for(let K of a){let z=K[0],B=K[2],G=B[0];for(r=1,l=B.length;r<l;++r)if(B[r]!==B[r-1]+1){let Q=K[0]+r-1;S.setInt32(z),S.setInt32(Q),S.setInt32(G),z=Q+1,G=B[r]}S.setInt32(z),S.setInt32(K[1]),S.setInt32(G)}C=new ei({exactLength:16}),C.setArray([0,12]),C.skip(2),C.setInt32(S.length+16),C.skip(4),C.setInt32(S.length/12)}let M=4+A*8,O=q?4+x.length:0,P=new ei({exactLength:M});P.skip(2),P.setInt16(A);let $=M;q&&(P.setArray([0,3]),P.setArray([0,1]),P.setInt32($),$+=O),j&&(P.setArray([0,3]),P.setArray([0,10]),P.setInt32($));let tt=new ei({exactLength:P.length+O+(C?.length??0)+(S?.length??0)});return tt.setArray(P.data),q&&(tt.setArray([0,4]),tt.setInt16(x.length+4),tt.setArray(x.data)),j&&(tt.setArray(C.data),tt.setArray(S.data)),tt.data}function G2(t,e){e.pos=(e.start||0)+t.offset;let i=e.getUint16(),a=[78,86,96,96,96,100][i];if(a===void 0||t.length<a)return!1;e.skip(60);let s=e.getUint16();return i<4&&s&768||e.getUint16()>e.getUint16()||(e.skip(6),e.getUint16()===0)?!1:(t.data[8]=t.data[9]=0,!0)}function Pd(t,e,i){i||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let a=0,s=0,n=0,r=0,l=null,o=0,f=-1;if(e){for(let v of e.keys())if((l>v||!l)&&(l=v),o<v&&(o=v),f=Ow(v,f),f<32)a|=1<<f;else if(f<64)s|=1<<f-32;else if(f<96)n|=1<<f-64;else if(f<123)r|=1<<f-96;else throw new V("Unicode ranges Bits > 123 are reserved for internal usage");o>65535&&(o=65535)}else l=0,o=255;let h=t.bbox||[0,0,0,0],c=i.unitsPerEm||(t.fontMatrix?1/Math.max(...t.fontMatrix.slice(0,4).map(Math.abs)):1e3),u=t.ascentScaled?1:c/an,p=i.ascent||Math.round(u*(t.ascent||h[3])),m=i.descent||Math.round(u*(t.descent||h[1]));m>0&&t.descent>0&&h[1]<0&&(m=-m);let g=i.yMax||p,b=-i.yMin||-m,w=new ei({exactLength:96});return w.setArray([0,3]),w.setArray([2,36]),w.setArray([1,244]),w.setArray([0,5]),w.skip(2),w.setArray([2,138]),w.setArray([2,187]),w.skip(2),w.setArray([0,140]),w.setArray([2,138]),w.setArray([2,187]),w.skip(2),w.setArray([1,223]),w.setArray([0,49]),w.setArray([1,2]),w.skip(2),w.setArray([0,0,6,t.fixedPitch?9:0,0,0,0,0,0,0]),w.setInt32(a),w.setInt32(s),w.setInt32(n),w.setInt32(r),w.setArray([42,50,49,42]),w.setInt16(+!!t.italicAngle),w.setInt16(l||t.firstChar),w.setInt16(o||t.lastChar),w.setInt16(p),w.setInt16(m),w.setArray([0,100]),w.setInt16(g),w.setInt16(b),w.skip(8),w.setInt16(t.xHeight),w.setInt16(t.capHeight),w.skip(2),w.setInt16(l||t.firstChar),w.setArray([0,3]),w.data}function Bd(t){let e=new ei({exactLength:32});return e.setArray([0,3,0,0]),e.setInt32(Math.floor(t.italicAngle*2**16)),e.skip(4),e.setInt32(+!!t.fixedPitch),e.skip(16),e.data}function $2(t){return t.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function Of(t,e){e||=[[],[]];let i=[e[0][0]||"Original licence",e[0][1]||t,e[0][2]||"Unknown",e[0][3]||"uniqueID",e[0][4]||t,e[0][5]||"Version 0.11",e[0][6]||$2(t),e[0][7]||"Unknown",e[0][8]||"Unknown",e[0][9]||"Unknown"],a=i.map(Be),s=Array(i.length),n,r,l,o,f;for(n=0,r=i.length;n<r;n++){f=e[1][n]||i[n];let v=new ei({exactLength:f.length*2});for(l=0,o=f.length;l<o;l++)v.setInt16(f.charCodeAt(l));s[n]=v.data}let h=[a,s],c=[[0,1],[0,3]],u=[[0,0],[0,1]],p=[[0,0],[4,9]],m=[],g=0;for(n=0,r=c.length;n<r;n++){let v=h[n];for(l=0,o=v.length;l<o;l++){f=v[l];let y=new ei({exactLength:6+c[n].length+u[n].length+p[n].length});y.setArray(c[n]),y.setArray(u[n]),y.setArray(p[n]),y.setInt16(l),y.setInt16(f.length),y.setInt16(g),m.push(y.data),g+=f.length}}let b=a.length*c.length,w=new ei({exactLength:6+Math.sumPrecise(m.map(v=>v.length))+Math.sumPrecise(a.map(v=>v.length))+Math.sumPrecise(s.map(v=>v.length))});w.skip(2),w.setInt16(b),w.setInt16(b*12+6);for(let v of m)w.setArray(v);for(let v of a)w.setArray(v);for(let v of s)w.setArray(v);return w.data}function eu(t){let e=Hs(t);return x9()[e]}function A9(t){let e=eu(t);if(!e)return null;let{baseWidths:i,baseMapping:a,factors:s}=e,n=s?i.map((f,h)=>f*s[h]):i,r=-2,l,o=[];for(let[f,h]of a.map((c,u)=>[c,u]).sort(([c],[u])=>c-u))f!==-1&&(f===r+1?(l.push(n[h]),r+=1):(r=f,l=[n[h]],o.push(f,l)));return o}function Qp(t){let e=A9(t),i=new _(null);i.set("BaseFont",Z.get(t)),i.set("Type",Z.get("Font")),i.set("Subtype",Z.get("CIDFontType2")),i.set("Encoding",Z.get("Identity-H")),i.set("CIDToGIDMap",Z.get("Identity")),i.set("W",e),i.set("FirstChar",e[0]),i.set("LastChar",e.at(-2)+e.at(-1).length-1);let a=new _(null);i.set("FontDescriptor",a);let s=new _(null);return s.set("Ordering","Identity"),s.set("Registry","Adobe"),s.set("Supplement",0),i.set("CIDSystemInfo",s),i}function t0(t){return new P9(new S9(t)).parse()}function Ci(t,e){if(t===e)return!0;if(t.type!==e.type)return!1;switch(t.type){case Rt.arg:return t.index===e.index;case Rt.const:return t.value===e.value;case Rt.unary:return t.op===e.op&&Ci(t.operand,e.operand);case Rt.binary:return t.op===e.op&&Ci(t.first,e.first)&&Ci(t.second,e.second);case Rt.ternary:return Ci(t.cond,e.cond)&&Ci(t.then,e.then)&&Ci(t.otherwise,e.otherwise);default:return!1}}function B9(t,e,i){switch(t){case I.add:return e+i;case I.sub:return e-i;case I.mul:return e*i;case I.div:return i===0?0:e/i;case I.idiv:return i===0?0:Math.trunc(e/i);case I.mod:return i===0?0:e-Math.trunc(e/i)*i;case I.exp:{let a=e**i;return Number.isFinite(a)?a:void 0}case I.atan:{let a=180/Math.PI*Math.atan2(e,i);return a<0&&(a+=360),a}case I.eq:return e===i;case I.ne:return e!==i;case I.gt:return e>i;case I.ge:return e>=i;case I.lt:return e<i;case I.le:return e<=i;case I.and:return typeof e=="boolean"?e&&i:e&i|0;case I.or:return typeof e=="boolean"?e||i:e|i|0;case I.xor:return typeof e=="boolean"?e!==i:e^i|0;case I.bitshift:return i>=0?e<<i|0:e>>-i|0;case I.min:return Math.min(e,i);case I.max:return Math.max(e,i);default:return}}function O9(t,e){switch(t){case I.abs:return Math.abs(e);case I.neg:return-e;case I.ceiling:return Math.ceil(e);case I.floor:return Math.floor(e);case I.round:return Math.round(e);case I.truncate:return Math.trunc(e);case I.sqrt:{let i=Math.sqrt(e);return Number.isFinite(i)?i:void 0}case I.sin:return Math.sin(e%360*Math.PI/180);case I.cos:return Math.cos(e%360*Math.PI/180);case I.ln:{let i=Math.log(e);return Number.isFinite(i)?i:void 0}case I.log:{let i=Math.log10(e);return Number.isFinite(i)?i:void 0}case I.cvi:return Math.trunc(e);case I.cvr:return e;case I.not:return typeof e=="boolean"?!e:~e;default:return}}function H9(t,e){return t===I.not?e:Ve.numeric}function N9(t,e,i){switch(t){case I.eq:case I.ne:case I.gt:case I.ge:case I.lt:case I.le:return Ve.boolean;case I.and:case I.or:case I.xor:return e===i&&e!==Ve.unknown?e:Ve.unknown;default:return Ve.numeric}}function z9(t,e,i,a=!1){let s=t0(t),n=!a&&new Ld(e,i).compile(s);return n?(r,l,o,f)=>{Ld.execute(n,r,l,o,f)}:L9.build(s,e,i)}function cn(t){let e=[];do{let i=t&127;t>>>=7,t!==0&&(i|=128),e.push(i)}while(t!==0);return e}function Wl(t){return[...cn(t.length),...Be(t)]}function Ln(t,e){return[t,...cn(e.length),...e]}function qa(t){let e=cn(t.length);for(let i of t)if(typeof i=="number")e.push(i);else for(let a of i)e.push(a);return e}function $9(t,e,i){return new G9(e,i).compile(t0(t))}function W9(t,e,i){let{fn:a,mem:s}=t,n=new Float64Array(s.buffer,0,i),r;switch(i){case 1:r=d((l,o)=>{l[o]=n[0]},"writeOut");break;case 2:r=d((l,o)=>{l[o]=n[0],l[o+1]=n[1]},"writeOut");break;case 3:r=d((l,o)=>{l[o]=n[0],l[o+1]=n[1],l[o+2]=n[2]},"writeOut");break;case 4:r=d((l,o)=>{l[o]=n[0],l[o+1]=n[1],l[o+2]=n[2],l[o+3]=n[3]},"writeOut");break;default:r=d((l,o)=>{for(let f=0;f<i;f++)l[o+f]=n[f]},"writeOut")}switch(e){case 1:return(l,o,f,h)=>{a(l[o]),r(f,h)};case 2:return(l,o,f,h)=>{a(l[o],l[o+1]),r(f,h)};case 3:return(l,o,f,h)=>{a(l[o],l[o+1],l[o+2]),r(f,h)};case 4:return(l,o,f,h)=>{a(l[o],l[o+1],l[o+2],l[o+3]),r(f,h)};default:{let l=new Float64Array(e);return(o,f,h,c)=>{for(let u=0;u<e;u++)l[u]=o[f+u];a(...l),r(h,c)}}}}function V9(t,e,i){let a=$9(t,e,i);if(!a)return null;try{return W9(new WebAssembly.Instance(new WebAssembly.Module(a),U9).exports,e.length>>1,i.length>>1)}catch{return null}}function Zi(t){return Array.isArray(t)?Ne(t,null)?t:t.map(e=>+e):null}function zn(t,e,i){return t.numInputs=e,t.numOutputs=i,t}function Hf(t,e,i,a,s){return e===i?a:a+(t-e)*((s-a)/(i-e))}function Nf(t){let e;if(t instanceof _)e=t;else if(t instanceof Bt)e=t.dict;else return!1;return e.has("FunctionType")}function $d(t){let e=t?null:Promise.resolve();return{enqueueInvoked:!1,enqueue(i,a){this.enqueueInvoked=!0,t?.enqueue(i,a)},get desiredSize(){return t?.desiredSize??100},get ready(){return t?.ready??e}}}function r0(t,e,i,a){if(++i>10){E("Visibility expression is too deeply nested");return}let s=e.length,n=t.fetchIfRef(e[0]);if(s<2||!(n instanceof Z))E("Invalid visibility expression");else{switch(n.name){case"And":case"Or":case"Not":a.push(n.name);break;default:E(`Invalid operator ${n.name} in visibility expression`);return}for(let r=1;r<s;r++){let l=e[r],o=t.fetchIfRef(l);if(Array.isArray(o)){let f=[];a.push(f),r0(t,o,i,f)}else l instanceof it&&a.push(l.toString())}}}function l0(t,e,i){let a;if(e instanceof Z)a=i.get("Properties").get(e.name);else if(e instanceof _)a=e;else throw new V("Optional content properties malformed.");let s=a.get("Type")?.name;if(s==="OCG")return{type:s,id:a.objId};if(s==="OCMD"){let n=a.get("VE");if(Array.isArray(n)){let l=[];if(r0(t,n,0,l),l.length>0)return{type:"OCMD",expression:l}}let r=a.get("OCGs");if(Array.isArray(r)||r instanceof _){let l=[];if(Array.isArray(r))for(let f of r)l.push(f.toString());else l.push(r.objId);let o=a.get("P");return{type:s,ids:l,policy:o instanceof Z?o.name:null,expression:null}}if(r instanceof it)return{type:s,id:r.toString()}}return null}function Wd(t){return!!(t&1)}function e5(t){return!(t&1)}function i5(t,e,i){let a,s;for(a=e,s=t.length;a<s;++a)if(t[a]!==i)return a;return a}function Vd(t,e,i){for(let a=e,s=i-1;a<s;++a,--s){let n=t[a];t[a]=t[s],t[s]=n}}function Lf(t,e,i=!1){let a="ltr";return i?a="ttb":e||(a="rtl"),{str:t,dir:a}}function au(t,e=-1,i=!1){let a=!0,s=t.length;if(s===0||i)return Lf(t,a,i);ks.length=s,pe.length=s;let n=0,r,l;for(r=0;r<s;++r){ks[r]=t.charAt(r);let w=t.charCodeAt(r),v="L";w<=255?v=Z9[w]:1424<=w&&w<=1524?v="R":1536<=w&&w<=1791?(v=t5[w&255],v||E("Bidi: invalid Unicode character "+w.toString(16))):(1792<=w&&w<=2220||64336<=w&&w<=65023||65136<=w&&w<=65279)&&(v="AL"),(v==="R"||v==="AL"||v==="AN")&&n++,pe[r]=v}if(n===0)return a=!0,Lf(t,a);e===-1&&(n/s<.3&&s>4?(a=!0,e=0):(a=!1,e=1));let o=[];for(r=0;r<s;++r)o[r]=e;let f=Wd(e)?"R":"L",h=f,c=h,u=h;for(r=0;r<s;++r)pe[r]==="NSM"?pe[r]=u:u=pe[r];u=h;let p;for(r=0;r<s;++r)p=pe[r],p==="EN"?pe[r]=u==="AL"?"AN":"EN":(p==="R"||p==="L"||p==="AL")&&(u=p);for(r=0;r<s;++r)p=pe[r],p==="AL"&&(pe[r]="R");for(r=1;r<s-1;++r)pe[r]==="ES"&&pe[r-1]==="EN"&&pe[r+1]==="EN"&&(pe[r]="EN"),pe[r]==="CS"&&(pe[r-1]==="EN"||pe[r-1]==="AN")&&pe[r+1]===pe[r-1]&&(pe[r]=pe[r-1]);for(r=0;r<s;++r)if(pe[r]==="EN"){for(let w=r-1;w>=0&&pe[w]==="ET";--w)pe[w]="EN";for(let w=r+1;w<s&&pe[w]==="ET";++w)pe[w]="EN"}for(r=0;r<s;++r)p=pe[r],(p==="WS"||p==="ES"||p==="ET"||p==="CS")&&(pe[r]="ON");for(u=h,r=0;r<s;++r)p=pe[r],p==="EN"?pe[r]=u==="L"?"L":"EN":(p==="R"||p==="L")&&(u=p);for(r=0;r<s;++r)if(pe[r]==="ON"){let w=i5(pe,r+1,"ON"),v=h;for(let x=r-1;x>=0;x--){let q=pe[x];if(q==="L"){v="L";break}if(q==="R"||q==="EN"||q==="AN"){v="R";break}}let y=c;for(let x=w;x<s;x++){let q=pe[x];if(q==="L"){y="L";break}if(q==="R"||q==="EN"||q==="AN"){y="R";break}}v===y&&pe.fill(v,r,w),r=w-1}for(r=0;r<s;++r)pe[r]==="ON"&&(pe[r]=f);for(r=0;r<s;++r)p=pe[r],e5(o[r])?p==="R"?o[r]+=1:(p==="AN"||p==="EN")&&(o[r]+=2):(p==="L"||p==="AN"||p==="EN")&&(o[r]+=1);let m=-1,g=99,b;for(r=0,l=o.length;r<l;++r)b=o[r],m<b&&(m=b),g>b&&Wd(b)&&(g=b);for(b=m;b>=g;--b){let w=-1;for(r=0,l=o.length;r<l;++r)o[r]<b?w>=0&&(Vd(ks,w,r),w=-1):w<0&&(w=r);w>=0&&Vd(ks,w,o.length)}for(r=0,l=ks.length;r<l;++r){let w=ks[r];(w==="<"||w===">")&&(ks[r]="")}return Lf(ks.join(""),a)}function s5(t){switch(t){case ns:return"Bold";case on:return"Italic";case fn:return"Bold Italic";default:if(t?.weight==="bold")return"Bold";if(t?.style==="italic")return"Italic"}return""}function Kd(t){let e=new Set("thin.extralight.ultralight.demilight.semilight.light.book.regular.normal.medium.demibold.semibold.bold.extrabold.ultrabold.black.heavy.extrablack.ultrablack.roman.italic.oblique.ultracondensed.extracondensed.condensed.semicondensed.normal.semiexpanded.expanded.extraexpanded.ultraexpanded.bolditalic".split("."));return t.split(/[- ,+]+/g).filter(i=>!e.has(i.toLowerCase())).join(" ")}function $h({alias:t,local:e,path:i,fallback:a,style:s,ultimate:n},r,l,o=!0,f=!0,h=""){let c={style:null,ultimate:null};if(e){let u=h?` ${h}`:"";for(let p of e)r.push(`local(${p}${u})`)}if(t){let u=el.get(t),p=h||s5(s);Object.assign(c,$h(u,r,l,o&&!a,f&&!i,p))}if(s&&(c.style=s),n&&(c.ultimate=n),o&&a){let{ultimate:u}=$h(el.get(a),r,l,o,f&&!i,h);c.ultimate||=u}return f&&i&&l&&r.push(`url(${l}${i})`),c}function zf(t,e,i,a,s,n){if(a.startsWith("InvalidPDFjsFont_"))return null;(n==="TrueType"||n==="Type1")&&/^[A-Z]{6}\+/.test(a)&&(a=a.slice(7)),a=Hs(a);let r=a,l=t.get(r);if(l)return l;let o=el.get(a);if(!o){for(let[b,w]of a5)if(a.startsWith(b)){a=`${w}${a.substring(b.length)}`,o=el.get(a);break}}let f=!1;o||(o=el.get(s),f=!0);let h=`${e.getDocId()}_s${e.createFontId()}`;if(!o){if(!qh(a))return E(`Cannot substitute the font because of its name: ${a}`),t.set(r,null),null;let b=/bold/i.test(a),w=/oblique|italic/i.test(a),v=b&&w&&fn||b&&ns||w&&on||Si;return l={css:`"${Kd(a)}",${h}`,guessFallback:!0,loadedName:h,baseFontName:a,src:`local(${a})`,style:v},t.set(r,l),l}let c=[];f&&qh(a)&&c.push(`local(${a})`);let{style:u,ultimate:p}=$h(o,c,i),m=p===null,g=m?"":`,${p}`;return l={css:`"${Kd(a)}",${h}${g}`,guessFallback:m,loadedName:h,baseFontName:a,src:c.join(","),style:u},t.set(r,l),l}function f0(t,e=!1){if(Array.isArray(t)){for(let i of t){let a=f0(i,!0);if(a)return a}return E(`Unsupported blend mode Array: ${t}`),"source-over"}if(t instanceof Z){switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}E(`Unsupported blend mode: ${t.name}`)}return e?null:"source-over"}function $f(t,{objId:e,fn:i,args:a,optionalContent:s,hasMask:n}){e&&t.addDependency(e),t.addImageOps(i,a,s,n),i===T.paintImageMaskXObject&&a[0]?.count>0&&a[0].count++}function nu(t){return new l5(t).parse()}function f5(t,e,i){return new o5(t,e,i).parse()}function Ja(t,e){return t[0]===t[1]&&t[1]===t[2]?`${qe(t[0]/255)} ${e?"g":"G"}`:Array.from(t,i=>qe(i/255)).join(" ")+` ${e?"rg":"RG"}`}function h5({fontSize:t,fontName:e,fontColor:i}){return`/${Gc(e)} ${t} Tf ${Ja(i,!0)}`}function ru(){ew(),tb(),Lw(),Ko.cleanup()}function Vn(t,e){let i=t[e];return i===" "||i===`
|
|
3
|
+
`||i==="\r"||i===" "}function d5(t){for(let e=0,i=t.length;e<i;e++)if(!Vn(t,e))return!1;return!0}function m0(t){if(!t||t.has("CO"))return null;let e=t.get("R");if(!Number.isInteger(e)||e<=0)return null;let i=t.get("C")??1;if(!Number.isInteger(i)||i<1||i>2)return null;let a=t.get("B")??8;if(a!==8&&a!==16)return null;let s=t.get("E"),n="Raw";return s!==void 0&&(n=s instanceof Z?s.name:null),n!=="Raw"&&n!=="Signed"?null:{channels:i,sampleRate:e,bitsPerSample:a,encoding:n}}function m5(t,e){let i=m0(t.dict);if(!i)return null;let{channels:a,sampleRate:s,bitsPerSample:n,encoding:r}=i,l=a*(n>>3),o=e.length-e.length%l;if(o===0)return null;let f=new Uint8Array(44+o),h=new DataView(f.buffer);if(f.set(Be("RIFF"),0),h.setUint32(4,36+o,!0),f.set(Be("WAVE"),8),f.set(Be("fmt "),12),h.setUint32(16,16,!0),h.setUint16(20,1,!0),h.setUint16(22,a,!0),h.setUint32(24,s,!0),h.setUint32(28,s*l,!0),h.setUint16(32,l,!0),h.setUint16(34,n,!0),f.set(Be("data"),36),h.setUint32(40,o,!0),n===16){let c=r==="Signed";for(let u=0;u<o;u+=2){let p=e[u]<<8|e[u+1];c?p>=32768&&(p-=65536):p-=32768,h.setInt16(44+u,p,!0)}}else if(r==="Signed")for(let c=0;c<o;c++)f[44+c]=e[c]+128&255;else f.set(e.subarray(0,o),44);return f}function Vf(t){return t instanceof _&&(t=t.get("D")),Do(t)?t:null}function Zd(t){let e=t.get("D");if(e){if(e instanceof Z&&(e=e.name),typeof e=="string")return Wt(e,!0);if(Do(e))return JSON.stringify(e)}return null}function Yl(t,e,i,a){let s=new _(t);return s.set("Type",Z.get("XObject")),s.set("Subtype",Z.get("Image")),s.set("BitsPerComponent",8),s.setIfName("ColorSpace",a),s.set("Width",e),s.set("Height",i),s}function al(t,e){return new Me(t,0,t.length,e)}function y5(t,e,i){let a=t+e-i,s=Math.abs(a-t),n=Math.abs(a-e),r=Math.abs(a-i);return s<=n&&s<=r?t:n<=r?e:i}function k5(t,e,i,a){let s=e*a,n=new Uint8Array(i*(s+1)),r=[new Uint8Array(s),new Uint8Array(s),new Uint8Array(s),new Uint8Array(s),new Uint8Array(s)];for(let l=0;l<i;l++){let o=l*s,f=o-s,h=[0,0,0,0,0];for(let p=0;p<s;p++){let m=o+p,g=t[m],b=p>=a?t[m-a]:0,w=l>0?t[f+p]:0,v=l>0&&p>=a?t[f+p-a]:0;r[0][p]=g,r[1][p]=g-b&255,r[2][p]=g-w&255,r[3][p]=g-(b+w>>1)&255,r[4][p]=g-y5(b,w,v)&255;for(let y=0;y<5;y++){let x=r[y][p];h[y]+=x<128?x:256-x}}let c=0;for(let p=1;p<5;p++)h[p]<h[c]&&(c=p);let u=l*(s+1);n[u]=c,n.set(r[c],u+1)}return n}async function v5(t){let e=new CompressionStream("deflate"),i=e.writable.getWriter(),a=(async()=>{try{await i.ready,await i.write(t),await i.ready,await i.close()}catch(n){throw await i.abort(n).catch(()=>{}),n}})(),[s]=await Promise.all([new Response(e.readable).bytes(),a.then(()=>null)]);return s}async function t1(t,e,i,a){let s=t.length/(e*i),n;if(typeof CompressionStream=="function")try{n=await v5(k5(t,e,i,s))}catch{}if(!n)return al(t,a);a.setIfName("Filter","FlateDecode");let r=new _(a.xref);return r.set("Predictor",15),r.set("Columns",e),r.set("Colors",s),r.set("BitsPerComponent",8),a.set("DecodeParms",r),al(n,a)}async function b0(t,e,{closeBitmap:i=!1}={}){let{width:a,height:s}=t;if(!Number.isInteger(a)||!Number.isInteger(s)||a<=0||s<=0)throw i&&t.close?.(),Error(`createImage: invalid bitmap dimensions ${a}x${s}`);let n=new OffscreenCanvas(a,s),r=n.getContext("2d",{alpha:!0,willReadFrequently:!0}),l;try{r.drawImage(t,0,0),l=r.getImageData(0,0,a,s).data}finally{i&&t.close?.()}let o=new Uint32Array(l.buffer,l.byteOffset,l.byteLength>>2),f=Ni.isLittleEndian,h=f?16777215:4294967040,c=new Set,u=!1,p=!0;for(let q of o){if((f?q>>>24:q&255)!=255){u=!0;break}p&&(c.add((q&h)>>>0),c.size>16384&&(p=!1,c.clear()))}u&&(p=!0);let m=Yl(e,a,s,"DeviceRGB"),g,b=null;if(p){let q=new Uint8Array(a*s*3);for(let j=0,A=0,S=l.length;j<S;j+=4,A+=3)q[A]=l[j],q[A+1]=l[j+1],q[A+2]=l[j+2];g=t1(q,a,s,m),b=al(q,Yl(e,a,s,"DeviceRGB"))}else m.setIfName("Filter","DCTDecode"),g=n.convertToBlob({type:"image/jpeg",quality:1}).then(q=>q.bytes()).then(q=>al(q,m));let w=Promise.resolve(null),v=null;if(u){let q=new Uint8Array(o.length);if(f)for(let S=0,C=o.length;S<C;S++)q[S]=o[S]>>>24;else for(let S=0,C=o.length;S<C;S++)q[S]=o[S]&255;let j=Yl(e,a,s,"DeviceGray"),A=Yl(e,a,s,"DeviceGray");w=t1(q,a,s,j),v=al(q,A)}let[y,x]=await Promise.all([g,w]);return{imageStream:y,imageRenderStream:b,smaskStream:x,smaskRenderStream:v,width:a,height:s}}function j5(t){return t instanceof it||t instanceof _||t instanceof Bt||Array.isArray(t)}function q5(t,e){if(t instanceof _)t=t.getRawValues();else if(t instanceof Bt)t=t.dict.getRawValues();else if(!Array.isArray(t))return;for(let i of t)j5(i)&&e.push(i)}function Zo(t){return t.startsWith("'")||t.startsWith('"')?t.slice(1,-1):t}function Gt({data:t,defaultValue:e,validate:i}){if(!t)return e;t=t.trim();let a=parseInt(t,10);return!isNaN(a)&&i(a)?a:e}function Bo({data:t,defaultValue:e,validate:i}){if(!t)return e;t=t.trim();let a=parseFloat(t);return!isNaN(a)&&i(a)?a:e}function tf({data:t,defaultValue:e,validate:i}){return t?(t=t.trim(),i(t)?t:e):e}function nt(t,e){return tf({data:t,defaultValue:e[0],validate:d(i=>e.includes(i),"validate")})}function vt(t,e="0"){if(e||="0",!t)return vt(e);let i=t.trim().match(S5);if(!i)return vt(e);let[,a,s]=i,n=parseFloat(a);if(isNaN(n))return vt(e);if(n===0)return 0;let r=A5[s];return r?r(n):n}function e1(t){if(!t)return{num:1,den:1};let e=t.split(":",2).map(s=>parseFloat(s.trim())).filter(s=>!isNaN(s));if(e.length===1&&e.push(1),e.length===0)return{num:1,den:1};let[i,a]=e;return{num:i,den:a}}function Oa(t){return t?t.trim().split(/\s+/).map(e=>({excluded:e[0]==="-",viewname:e.substring(1)})):[]}function C5(t,e=[0,0,0]){let[i,a,s]=e;if(!t)return{r:i,g:a,b:s};let n=t.split(",",3).map(r=>(r=parseInt(r.trim(),10),isNaN(r)?0:Fe(r,0,255)));return n.length<3||([i,a,s]=n),{r:i,g:a,b:s}}function I5(t){if(!t)return{x:-1,y:-1,width:-1,height:-1};let e=t.split(",",4).map(r=>vt(r.trim(),"-1"));if(e.length<4||e[2]<0||e[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[i,a,s,n]=e;return{x:i,y:a,width:s,height:n}}function hu(t,e){return t.posture==="italic"?t.weight==="bold"?e.bolditalic:e.italic:t.weight==="bold"?e.bold:e.regular}function M5(t,e=!1){let i=null;if(t){let r=Zo(t.typeface);i=hu(t,t[Ce].fontFinder.find(r))}if(!i)return{lineHeight:12,lineGap:2,lineNoGap:10};let a=t.size||10,s=i.lineHeight?Math.max(e?0:1.2,i.lineHeight):1.2,n=i.lineGap===void 0?.2:i.lineGap;return{lineHeight:s*a,lineGap:n*a,lineNoGap:Math.max(1,s-n)*a}}function D5(t){return t=t.trim(),t==="*"?1/0:parseInt(t,10)||0}function x0(t,e,i=!0){let a=t.match(a1);if(!a)return null;let[s]=a,n=[{name:s,cacheName:"."+s,index:0,js:null,formCalc:null,operator:ra.dot}],r=s.length;for(;r<t.length;){let l=r;if(t.charAt(r++)==="["){if(a=t.slice(r).match(F5),!a)return E("XFA - Invalid index in SOM expression"),null;n.at(-1).index=D5(a[0]),r+=a[0].length+1;continue}let o;switch(t.charAt(r)){case".":if(!e)return null;r++,o=ra.dotDot;break;case"#":r++,o=ra.dotHash;break;case"[":if(i)return E("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;o=ra.dotBracket;break;case"(":if(i)return E("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;o=ra.dotParen;break;default:o=ra.dot}if(a=t.slice(r).match(a1),!a)break;[s]=a,r+=s.length,n.push({name:s,cacheName:t.slice(l,r),operator:o,index:0,js:null,formCalc:null})}return n}function Ts(t,e,i,a=!0,s=!0){let n=x0(i,a);if(!n)return null;let r=q0.get(n[0].name),l=0,o;r?(o=!0,t=[r(t,e)],l=1):(o=e===null,t=[e||t]);for(let f=n.length;l<f;l++){let{name:h,cacheName:c,operator:u,index:p}=n[l],m=[];for(let g of t){if(!g.isXFAObject)continue;let b,w;if(s&&(w=R5.getOrInsertComputed(g,Jg),b=w.get(c)),!b){switch(u){case ra.dot:b=g[wl](h,!1);break;case ra.dotDot:b=g[wl](h,!0);break;case ra.dotHash:b=g[Qo](h),b=b.isXFAObjectArray?b.children:[b]}s&&w.set(c,b)}b.length>0&&m.push(b)}if(m.length===0&&!o&&l===0){if(e=e[Vt](),!e)return null;l=-1,t=[e]}else t=isFinite(p)?m.filter(g=>p<g.length).map(g=>g[p]):m.flat()}return t.length===0?null:t}function P5(t,e,i){let a=x0(i);if(!a||a.some(r=>r.operator===ra.dotDot))return null;let s=q0.get(a[0].name),n=0;s?(t=s(t,e),n=1):t=e||t;for(let r=a.length;n<r;n++){let{name:l,operator:o,index:f}=a[n];if(!isFinite(f))return a[n].index=0,t.createNodes(a.slice(n));let h;switch(o){case ra.dot:h=t[wl](l,!1);break;case ra.dotDot:h=t[wl](l,!0);break;case ra.dotHash:h=t[Qo](l),h=h.isXFAObjectArray?h.children:[h]}if(h.length===0)return t.createNodes(a.slice(n));if(f<h.length){let c=h[f];if(!c.isXFAObject)return E("XFA - Cannot create a node."),null;t=c}else return a[n].index=f-h.length,t.createNodes(a.slice(n))}return null}function Ut(t){return typeof t=="string"?"0px":Number.isInteger(t)?`${t}px`:`${t.toFixed(2)}px`}function I0(t,e){t[Ye]().layout==="position"&&(t.minW>0&&(e.minWidth=Ut(t.minW)),t.maxW>0&&(e.maxWidth=Ut(t.maxW)),t.minH>0&&(e.minHeight=Ut(t.minH)),t.maxH>0&&(e.maxHeight=Ut(t.maxH)))}function l1(t,e,i,a,s,n){let r=new E5(e,i,a,s);return typeof t=="string"?r.addString(t):t[Qa](r),r.compute(n)}function uu(t,e){let i=null,a=null,s=!1;if((!t.w||!t.h)&&t.value){let n=0,r=0;t.margin&&(n=t.margin.leftInset+t.margin.rightInset,r=t.margin.topInset+t.margin.bottomInset);let l=null,o=null;t.para&&(o=Object.create(null),l=t.para.lineHeight===""?null:t.para.lineHeight,o.top=t.para.spaceAbove===""?0:t.para.spaceAbove,o.bottom=t.para.spaceBelow===""?0:t.para.spaceBelow,o.left=t.para.marginLeft===""?0:t.para.marginLeft,o.right=t.para.marginRight===""?0:t.para.marginRight);let f=t.font;if(!f){let u=t[We](),p=t[Vt]();for(;p&&p!==u;){if(p.font){f=p.font;break}p=p[Vt]()}}let h=(t.w||e.width)-n,c=t[Ce].fontFinder;if(t.value.exData&&t.value.exData[st]&&t.value.exData.contentType==="text/html"){let u=l1(t.value.exData[st],f,o,l,c,h);a=u.width,i=u.height,s=u.isBroken}else{let u=t.value[si]();if(u){let p=l1(u,f,o,l,c,h);a=p.width,i=p.height,s=p.isBroken}}a!==null&&!t.w&&(a+=n),i!==null&&!t.h&&(i+=r)}return{w:a,h:i,isBroken:s}}function T0(t,e,i){let a;if(t.w!==""&&t.h!=="")a=[t.x,t.y,t.w,t.h];else{if(!i)return null;let s=t.w;if(s===""){if(t.maxW===0){let r=t[Ye]();s=r.layout==="position"&&r.w!==""?0:t.minW}else s=Math.min(t.maxW,i.width);e.attributes.style.width=Ut(s)}let n=t.h;if(n===""){if(t.maxH===0){let r=t[Ye]();n=r.layout==="position"&&r.h!==""?0:t.minH}else n=Math.min(t.maxH,i.height);e.attributes.style.height=Ut(n)}a=[t.x,t.y,s,n]}return a}function ef(t){let e=t[Ye]();if(e.layout?.includes("row")){let i=e[W],a=t.colSpan,s;s=a===-1?Math.sumPrecise(i.columnWidths.slice(i.currentColumn)):Math.sumPrecise(i.columnWidths.slice(i.currentColumn,i.currentColumn+a)),isNaN(s)||(t.w=s)}e.layout&&e.layout!=="position"&&(t.x=t.y=0),t.layout==="table"&&t.w===""&&Array.isArray(t.columnWidths)&&(t.w=Math.sumPrecise(t.columnWidths))}function M0(t){switch(t.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function zi(t,...e){let i=Object.create(null);for(let a of e){let s=t[a];if(s!==null){if(Object.hasOwn(r1,a))r1[a](t,i);else if(s instanceof Y){let n=s[ce]();n?Object.assign(i,n):E(`(DEBUG) - XFA - style for ${a} not implemented yet`)}}}return i}function kn(t,e){let{attributes:i}=e,{style:a}=i,s={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(i.class.push("xfaWrapped"),t.border){let{widths:n,insets:r}=t.border[W],l,o,f=r[0],h=r[3],c=r[0]+r[2],u=r[1]+r[3];switch(t.border.hand){case"even":f-=n[0]/2,h-=n[3]/2,l=`calc(100% + ${(n[1]+n[3])/2-u}px)`,o=`calc(100% + ${(n[0]+n[2])/2-c}px)`;break;case"left":f-=n[0],h-=n[3],l=`calc(100% + ${n[1]+n[3]-u}px)`,o=`calc(100% + ${n[0]+n[2]-c}px)`;break;case"right":l=u?`calc(100% - ${u}px)`:"100%",o=c?`calc(100% - ${c}px)`:"100%"}let p=["xfaBorder"];mr(t.border)&&p.push("xfaPrintOnly");let m={name:"div",attributes:{class:p,style:{top:`${f}px`,left:`${h}px`,width:l,height:o}},children:[]};for(let g of["border","borderWidth","borderColor","borderRadius","borderStyle"])a[g]!==void 0&&(m.attributes.style[g]=a[g],delete a[g]);s.children.push(m,e)}else s.children.push(e);for(let n of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])a[n]!==void 0&&(s.attributes.style[n]=a[n],delete a[n]);return s.attributes.style.position=a.position==="absolute"?"absolute":"relative",delete a.position,a.alignSelf&&(s.attributes.style.alignSelf=a.alignSelf,delete a.alignSelf),s}function _0(t){let e=vt(t.textIndent,"0px");if(e>=0)return;let i="padding"+((t.textAlign==="right"?"right":"left")=="left"?"Left":"Right");t[i]=`${vt(t[i],"0px")-e}px`}function du(t,e){switch(t.access){case"nonInteractive":e.push("xfaNonInteractive");break;case"readOnly":e.push("xfaReadOnly");break;case"protected":e.push("xfaDisabled")}}function mr(t){return t.relevant.length>0&&!t.relevant[0].excluded&&t.relevant[0].viewname==="print"}function E0(t){let e=t[We]()[W].paraStack;return e.length?e.at(-1):null}function F0(t,e,i){if(i.attributes.class?.includes("xfaRich")){e&&(t.h===""&&(e.height="auto"),t.w===""&&(e.width="auto"));let a=E0(t);if(a){let s=i.attributes.style;switch(s.display="flex",s.flexDirection="column",a.vAlign){case"top":s.justifyContent="start";break;case"bottom":s.justifyContent="end";break;case"middle":s.justifyContent="center"}let n=a[ce]();for(let[r,l]of Object.entries(n))r in s||(s[r]=l)}}}function R0(t,e,i,a){if(!i){delete a.fontFamily;return}let s=Zo(t.typeface);a.fontFamily=ad(s);let n=i.find(s);if(n){let{fontFamily:r}=n.regular.cssFontInfo;r!==s&&(a.fontFamily=ad(r));let l=E0(e);if(l&&l.lineHeight!==""||a.lineHeight)return;let o=hu(t,n);o&&(a.lineHeight=Math.max(1.2,o.lineHeight))}}function D0(t){let e=Io(t,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return e?e.href:null}function P0(t,e){return{name:"div",attributes:{class:[t.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:e}}function B0(t){if(!t[W])return null;let e={name:"div",attributes:t[W].attributes,children:t[W].children};if(t[W].failingNode){let i=t[W].failingNode[Cl]();i&&(t.layout.endsWith("-tb")?e.children.push(P0(t,[i])):e.children.push(i))}return e.children.length===0?null:e}function O0(t,e,i){let a=t[W],s=a.availableSpace,[n,r,l,o]=i;switch(t.layout){case"position":a.width=Math.max(a.width,n+l),a.height=Math.max(a.height,r+o),a.children.push(e);break;case"lr-tb":case"rl-tb":(!a.line||a.attempt===1)&&(a.line=P0(t,[]),a.children.push(a.line),a.numberInLine=0),a.numberInLine+=1,a.line.children.push(e),a.attempt===0?(a.currentWidth+=l,a.height=Math.max(a.height,a.prevHeight+o)):(a.currentWidth=l,a.prevHeight=a.height,a.height+=o,a.attempt=0),a.width=Math.max(a.width,a.currentWidth);break;case"rl-row":case"row":{a.children.push(e),a.width+=l,a.height=Math.max(a.height,o);let f=Ut(a.height);for(let h of a.children)h.attributes.style.height=f;break}case"table":a.width=Fe(l,a.width,s.width),a.height+=o,a.children.push(e);break;case"tb":a.width=Fe(l,a.width,s.width),a.height+=o,a.children.push(e)}}function H0(t){let e=t[W].availableSpace,i=t.margin?t.margin.topInset+t.margin.bottomInset:0,a=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return t[W].attempt===0?{width:e.width-a-t[W].currentWidth,height:e.height-i-t[W].prevHeight}:{width:e.width-a,height:e.height-i-t[W].height};case"rl-row":case"row":return{width:Math.sumPrecise(t[W].columnWidths.slice(t[W].currentColumn)),height:e.height-a};case"table":case"tb":return{width:e.width-a,height:e.height-i-t[W].height};default:return e}}function B5(t){let e=t.w===""?NaN:t.w,i=t.h===""?NaN:t.h,[a,s]=[0,0];switch(t.anchorType||""){case"bottomCenter":[a,s]=[e/2,i];break;case"bottomLeft":[a,s]=[0,i];break;case"bottomRight":[a,s]=[e,i];break;case"middleCenter":[a,s]=[e/2,i/2];break;case"middleLeft":[a,s]=[0,i/2];break;case"middleRight":[a,s]=[e,i/2];break;case"topCenter":[a,s]=[e/2,0];break;case"topRight":[a,s]=[e,0]}let n,r;switch(t.rotate||0){case 0:[n,r]=[-a,-s];break;case 90:[n,r]=[-s,a],[e,i]=[i,-e];break;case 180:[n,r]=[a,s],[e,i]=[-e,-i];break;case 270:[n,r]=[s,-a],[e,i]=[-i,e]}return[t.x+n+Math.min(0,e),t.y+r+Math.min(0,i),Math.abs(e),Math.abs(i)]}function af(t,e){if(t[We]()[W].firstUnsplittable===null||t.w===0||t.h===0)return!0;let i=t[Ye](),a=i[W]?.attempt||0,[,s,n,r]=B5(t);switch(i.layout){case"lr-tb":case"rl-tb":return a===0?t[We]()[W].noLayoutFailure?t.w===""?e.width>2:Math.round(n-e.width)<=2:t.h!==""&&Math.round(r-e.height)>2?!1:t.w===""?e.width>2:Math.round(n-e.width)<=2||i[W].numberInLine===0&&e.height>2:t[We]()[W].noLayoutFailure?!0:t.h!==""&&Math.round(r-e.height)>2?!1:(t.w===""||Math.round(n-e.width)<=2||!i[ps]())&&e.height>2;case"table":case"tb":return t[We]()[W].noLayoutFailure?!0:t.h!==""&&!t[us]()?Math.round(r-e.height)<=2:(t.w===""||Math.round(n-e.width)<=2||!i[ps]())&&e.height>2;case"position":if(t[We]()[W].noLayoutFailure||t.h===""||Math.round(r+s-e.height)<=2)return!0;let l=t[We]()[W].currentContentArea;return r+s>l.h;case"rl-row":case"row":return t[We]()[W].noLayoutFailure?!0:t.h===""||Math.round(r-e.height)<=2;default:return!0}}function o1(t){if(!t||!t.border)return{w:0,h:0};let e=t.border[ji]();return e?{w:e.widths[0]+e.widths[2]+e.insets[0]+e.insets[2],h:e.widths[1]+e.widths[3]+e.insets[1]+e.insets[3]}:{w:0,h:0}}function pu(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function mu(t,e){if(!t.value){let i=new ju({});t[Ue](i),t.value=i}t.value[Xi](e)}function*gu(t){for(let e of t[Ti]())e instanceof yu?yield*e[hr]():yield e}function Il(t){return t.validate?.nullTest==="error"}function sf(t){for(;t;){if(!t.traversal){t[Ca]=t[Vt]()[Ca];return}if(t[Ca])return;let e=null;for(let s of t.traversal[Ti]())if(s.operation==="next"){e=s;break}if(!e||!e.ref){t[Ca]=t[Vt]()[Ca];return}let i=t[We]();t[Ca]=++i[Ca];let a=i[fs](e.ref,t);if(!a)return;t=a[0]}}function nf(t,e){let i=t.assist;if(i){let a=i[Ot]();a&&(e.title=a);let s=i.role.match(O5);if(s){let n=s[1];e.role="heading",e["aria-level"]=n}}if(t.layout==="table")e.role="table";else if(t.layout==="row")e.role="row";else{let a=t[Vt]();a.layout==="row"&&(e.role=a.assist?.role==="TH"?"columnheader":"cell")}}function xn(t){if(!t.assist)return null;let e=t.assist;return e.speak&&e.speak[st]!==""?e.speak[st]:e.toolTip?e.toolTip[st]:null}function Us(t){return Dt.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function rf(t){let e=t[We]();e[W].firstUnsplittable===null&&(e[W].firstUnsplittable=t,e[W].noLayoutFailure=!0)}function lf(t){let e=t[We]();e[W].firstUnsplittable===t&&(e[W].noLayoutFailure=!1)}function f1(t){if(t[W]||(t[W]=Object.create(null),t.targetType==="auto"))return!1;let e=t[We](),i=null;if(t.target){if(i=e[fs](t.target,t[Vt]()),!i)return!1;i=i[0]}let{currentPageArea:a,currentContentArea:s}=e[W];if(t.targetType==="pageArea")return i instanceof cr||(i=null),t.startNew?(t[W].target=i||a,!0):i&&i!==a?(t[W].target=i,!0):!1;i instanceof bu||(i=null);let n=i&&i[Vt](),r,l=n;if(t.startNew)if(i){let o=n.contentArea.children,f=o.indexOf(s),h=o.indexOf(i);f!==-1&&f<h&&(l=null),r=h-1}else r=a.contentArea.children.indexOf(s);else if(i&&i!==s)r=n.contentArea.children.indexOf(i)-1,l=n===a?null:n;else return!1;return t[W].target=l,t[W].index=r,!0}function h1(t,e,i){let a=t[We](),s=a[W].noLayoutFailure,n=e[Ye];e[Ye]=()=>t,a[W].noLayoutFailure=!0;let r=e[Ot](i);t[bn](r.html,r.bbox),a[W].noLayoutFailure=s,e[Ye]=n}function to(t){let e=new tm({});return e[st]=t,e}function iy(t,e,i){let a=Object.create(null);if(!t)return a;let s=Object.create(null);for(let[n,r]of t.split(";").map(l=>l.split(":",2))){let l=Q7.get(n);if(l==="")continue;let o=r;l&&(o=typeof l=="string"?l:l(r,s)),n.endsWith("scale")?a.transform=a.transform?`${a[n]} ${o}`:o:a[n.replaceAll(/-([a-z])/gi,(f,h)=>h.toUpperCase())]=o}if(a.fontFamily&&R0({typeface:a.fontFamily,weight:a.fontWeight||"normal",posture:a.fontStyle||"normal",size:s.fontSize||0},e,e[Ce].fontFinder,a),i&&a.verticalAlign&&a.verticalAlign!=="0px"&&a.fontSize){let n=vt(a.fontSize);a.fontSize=Ut(n*.583),a.verticalAlign=Ut(Math.sign(vt(a.verticalAlign))*n*.333)}return i&&a.fontSize&&(a.fontSize=`calc(${a.fontSize} * var(--total-scale-factor))`),_0(a),a}function ay(t){return t.style?t.style.split(";").filter(e=>!!e.trim()).map(e=>e.split(":",2).map(i=>i.trim())).filter(([e,i])=>(e==="font-family"&&t[Ce].usedTypefaces.add(i),J7.has(e))).map(e=>e.join(":")).join(";"):""}function vn(t,e=new Uint8ClampedArray(3)){if(!Array.isArray(t))return e;let i=e||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:return fe.gray.getRgbItem(t,0,i,0),i;case 3:return fe.rgb.getRgbItem(t,0,i,0),i;case 4:return fe.cmyk.getRgbItem(t,0,i,0),i;default:return e}}function xi(t,e=null){return t&&Array.from(t,i=>i/255)||e}function Ml(t,e){let i=t.getArray("QuadPoints");if(!Ne(i,null)||i.length===0||i.length%8>0)return null;let a=new Float32Array(i.length);for(let s=0,n=i.length;s<n;s+=8){let[r,l,o,f,h,c,u,p]=i.slice(s,s+8),m=Math.min(r,o,h,u),g=Math.max(r,o,h,u),b=Math.min(l,f,c,p),w=Math.max(l,f,c,p);if(e!==null&&(m<e[0]||g>e[2]||b<e[1]||w>e[3]))return null;a.set([m,w,g,w,m,b,g,b],s)}return a}function bc(t,e,i){let a=Co.slice();oe.axialAlignedBoundingBox(e,i,a);let[s,n,r,l]=a;if(s===r||n===l)return[1,0,0,1,t[0],t[1]];let o=(t[2]-t[0])/(r-s),f=(t[3]-t[1])/(l-n);return[o,0,0,f,t[0]-s*o,t[1]-n*f]}function wc(t,e,i=!1){e.push(`${qe(t[4])} ${qe(t[5])} m`);for(let a=6,s=t.length;a<s;a+=6)if(isNaN(t[a]))e.push(`${qe(t[a+4])} ${qe(t[a+5])} l`);else{let n=t.slice(a,a+6);e.push(`${n.map(qe).join(" ")} c`)}i&&t.length===6&&e.push(`${qe(t[4])} ${qe(t[5])} l`)}function Ms(t,e,i){let a=1732584193,s=-271733879,n=-1732584194,r=271733878,l=i+72&-64,o=new Uint8Array(l),f,h;for(f=0;f<i;++f)o[f]=t[e++];o[f++]=128;let c=l-8;f<c&&(f=c),o[f++]=i<<3&255,o[f++]=i>>5&255,o[f++]=i>>13&255,o[f++]=i>>21&255,o[f++]=i>>>29&255,f+=3;let u=new Int32Array(16),{k:p,r:m}=Oy;for(f=0;f<l;){for(h=0;h<16;++h,f+=4)u[h]=o[f]|o[f+1]<<8|o[f+2]<<16|o[f+3]<<24;let g=a,b=s,w=n,v=r,y,x;for(h=0;h<64;++h){h<16?(y=b&w|~b&v,x=h):h<32?(y=v&b|~v&w,x=5*h+1&15):h<48?(y=b^w^v,x=3*h+5&15):(y=w^(b|~v),x=7*h&15);let q=v,j=g+y+p[h]+u[x]|0,A=m[h];v=w,w=b,b=b+(j<<A|j>>>32-A)|0,g=q}a=a+g|0,s=s+b|0,n=n+w|0,r=r+v|0}return new Uint8Array([a&255,a>>8&255,a>>16&255,a>>>24&255,s&255,s>>8&255,s>>16&255,s>>>24&255,n&255,n>>8&255,n>>16&255,n>>>24&255,r&255,r>>8&255,r>>16&255,r>>>24&255])}function p1(t){try{return sr(t)}catch(e){return E(`UTF-8 decoding failed: "${e}".`),t}}function Gy(t,e,i,a,s){t.assign(e),t.and(i),s.assign(e),s.not(),s.and(a),t.xor(s)}function $y(t,e,i,a,s){t.assign(e),t.and(i),s.assign(e),s.and(a),t.xor(s),s.assign(i),s.and(a),t.xor(s)}function Wy(t,e,i){t.assign(e),t.rotateRight(28),i.assign(e),i.rotateRight(34),t.xor(i),i.assign(e),i.rotateRight(39),t.xor(i)}function Vy(t,e,i){t.assign(e),t.rotateRight(14),i.assign(e),i.rotateRight(18),t.xor(i),i.assign(e),i.rotateRight(41),t.xor(i)}function Ky(t,e,i){t.assign(e),t.rotateRight(1),i.assign(e),i.rotateRight(8),t.xor(i),i.assign(e),i.shiftRight(7),t.xor(i)}function Xy(t,e,i){t.assign(e),t.rotateRight(19),i.assign(e),i.rotateRight(61),t.xor(i),i.assign(e),i.shiftRight(6),t.xor(i)}function fm(t,e,i,a=!1){let s,n,r,l,o,f,h,c;a?(s=new mt(3418070365,3238371032),n=new mt(1654270250,914150663),r=new mt(2438529370,812702999),l=new mt(355462360,4144912697),o=new mt(1731405415,4290775857),f=new mt(2394180231,1750603025),h=new mt(3675008525,1694076839),c=new mt(1203062813,3204075428)):(s=new mt(1779033703,4089235720),n=new mt(3144134277,2227873595),r=new mt(1013904242,4271175723),l=new mt(2773480762,1595750129),o=new mt(1359893119,2917565137),f=new mt(2600822924,725511199),h=new mt(528734635,4215389547),c=new mt(1541459225,327033209));let u=Math.ceil((i+17)/128)*128,p=new Uint8Array(u),m,g;for(m=0;m<i;++m)p[m]=t[e++];p[m++]=128;let b=u-16;m<b&&(m=b),m+=11,p[m++]=i>>>29&255,p[m++]=i>>21&255,p[m++]=i>>13&255,p[m++]=i>>5&255,p[m++]=i<<3&255;let w=Array(80);for(m=0;m<80;m++)w[m]=new mt(0,0);let{k:v}=Uy,y=new mt(0,0),x=new mt(0,0),q=new mt(0,0),j=new mt(0,0),A=new mt(0,0),S=new mt(0,0),C=new mt(0,0),M=new mt(0,0),O=new mt(0,0),P=new mt(0,0),$=new mt(0,0),tt=new mt(0,0),K;for(m=0;m<u;){for(g=0;g<16;++g)w[g].high=p[m]<<24|p[m+1]<<16|p[m+2]<<8|p[m+3],w[g].low=p[m+4]<<24|p[m+5]<<16|p[m+6]<<8|p[m+7],m+=8;for(g=16;g<80;++g)K=w[g],Xy(K,w[g-2],tt),K.add(w[g-7]),Ky($,w[g-15],tt),K.add($),K.add(w[g-16]);for(y.assign(s),x.assign(n),q.assign(r),j.assign(l),A.assign(o),S.assign(f),C.assign(h),M.assign(c),g=0;g<80;++g)O.assign(M),Vy($,A,tt),O.add($),Gy($,A,S,C,tt),O.add($),O.add(v[g]),O.add(w[g]),Wy(P,y,tt),$y($,y,x,q,tt),P.add($),K=M,M=C,C=S,S=A,j.add(O),A=j,j=q,q=x,x=y,K.assign(O),K.add(P),y=K;s.add(y),n.add(x),r.add(q),l.add(j),o.add(A),f.add(S),h.add(C),c.add(M)}let z;return a?(z=new Uint8Array(48),s.copyTo(z,0),n.copyTo(z,8),r.copyTo(z,16),l.copyTo(z,24),o.copyTo(z,32),f.copyTo(z,40)):(z=new Uint8Array(64),s.copyTo(z,0),n.copyTo(z,8),r.copyTo(z,16),l.copyTo(z,24),o.copyTo(z,32),f.copyTo(z,40),h.copyTo(z,48),c.copyTo(z,56)),z}function Yy(t,e,i){return fm(t,e,i,!0)}function Ka(t,e){return t>>>e|t<<32-e}function Qy(t,e,i){return t&e^~t&i}function Zy(t,e,i){return t&e^t&i^e&i}function tk(t){return Ka(t,2)^Ka(t,13)^Ka(t,22)}function ek(t){return Ka(t,6)^Ka(t,11)^Ka(t,25)}function ik(t){return Ka(t,7)^Ka(t,18)^t>>>3}function ak(t){return Ka(t,17)^Ka(t,19)^t>>>10}function kc(t,e,i){let a=1779033703,s=3144134277,n=1013904242,r=2773480762,l=1359893119,o=2600822924,f=528734635,h=1541459225,c=Math.ceil((i+9)/64)*64,u=new Uint8Array(c),p,m;for(p=0;p<i;++p)u[p]=t[e++];u[p++]=128;let g=c-8;p<g&&(p=g),p+=3,u[p++]=i>>>29&255,u[p++]=i>>21&255,u[p++]=i>>13&255,u[p++]=i>>5&255,u[p++]=i<<3&255;let b=new Uint32Array(64),{k:w}=Jy;for(p=0;p<c;){for(m=0;m<16;++m)b[m]=u[p]<<24|u[p+1]<<16|u[p+2]<<8|u[p+3],p+=4;for(m=16;m<64;++m)b[m]=ak(b[m-2])+b[m-7]+ik(b[m-15])+b[m-16]|0;let v=a,y=s,x=n,q=r,j=l,A=o,S=f,C=h,M,O;for(m=0;m<64;++m)M=C+ek(j)+Qy(j,A,S)+w[m]+b[m],O=tk(v)+Zy(v,y,x),C=S,S=A,A=j,j=q+M|0,q=x,x=y,y=v,v=M+O|0;a=a+v|0,s=s+y|0,n=n+x|0,r=r+q|0,l=l+j|0,o=o+A|0,f=f+S|0,h=h+C|0}return new Uint8Array([a>>24&255,a>>16&255,a>>8&255,a&255,s>>24&255,s>>16&255,s>>8&255,s&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,l>>24&255,l>>16&255,l>>8&255,l&255,o>>24&255,o>>16&255,o>>8&255,o&255,f>>24&255,f>>16&255,f>>8&255,f&255,h>>24&255,h>>16&255,h>>8&255,h&255])}function lk(t){let e="";for(let i of t){let a=i.codePointAt(0);nk.has(a)?e+=" ":rk.has(a)||(e+=i)}return e.normalize("NFKC")}function eh(t){try{t=dh(t)}catch{E("CipherTransformFactory: Unable to convert UTF8 encoded password.")}return Be(t)}function ih(t,e,i=1024,a=!1){let s=e.length,n=t.peekBytes(i),r=n.length-s;if(r<=0)return!1;if(a){let l=s-1,o=n.length-1;for(;o>=l;){let f=0;for(;f<s&&n[o-f]===e[l-f];)f++;if(f>=s)return t.pos+=o-l,!0;o--}}else{let l=0;for(;l<=r;){let o=0;for(;o<s&&n[l+o]===e[o];)o++;if(o>=s)return t.pos+=l,!0;l++}}return!1}function pk(t){if(t){let e=Io(t);if(e)return e.href;E(`Invalid absolute docBaseUrl: "${t}".`)}return null}function k1(){}function ta(t){if(t instanceof yi||t instanceof cl||t instanceof hs||t instanceof ed||t instanceof xf)return t;switch(t instanceof Error||typeof t=="object"&&t||te('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new yi(t.message);case"InvalidPDFException":return new cl(t.message);case"PasswordException":return new hs(t.message,t.code);case"ResponseException":return new ed(t.message,t.status,t.missing);case"UnknownErrorException":return new xf(t.message,t.details)}return new xf(t.message,t.toString())}async function mm(t,e,i,{encrypt:a=null,encryptRef:s=null}){let n=a&&s!==t?a.createCipherTransform(t.num,t.gen):null;i.push(`${t.num} ${t.gen} obj
|
|
4
|
+
`),await ql(e,i,n),i.push(`
|
|
5
|
+
endobj
|
|
6
|
+
`)}async function Su(t,e,i){e.push("<<");for(let[a,s]of t.getRawEntries())e.push(` /${Gc(a)} `),await ql(s,e,i);e.push(">>")}async function gk(t,e,i){t=t.getOriginalStream(),t.reset();let a=t.getBytes(),{dict:s}=t,[n,r]=await Promise.all([s.getAsync("Filter"),s.getAsync("DecodeParms")]),l=Array.isArray(n)?await s.xref.fetchIfRefAsync(n[0]):n,o=Ht(l,"FlateDecode"),f=Ht(l,"DCTDecode")||Ht(l,"JPXDecode")||Ht(l,"JBIG2Decode")||Ht(l,"CCITTFaxDecode")||Ht(l,"LZWDecode");if(!(o||f||Ht(l,"BrotliDecode"))&&a.length>=256)try{let c=new CompressionStream("deflate"),u=c.writable.getWriter();await u.ready,u.write(a).then(async()=>{await u.ready,await u.close()}).catch(()=>{}),a=await new Response(c.readable).bytes();let p,m;n?o||(p=Array.isArray(n)?[Z.get("FlateDecode"),...n]:[Z.get("FlateDecode"),n],r&&(m=Array.isArray(r)?[null,...r]:[null,r])):p=Z.get("FlateDecode"),p&&s.set("Filter",p),m&&s.set("DecodeParms",m)}catch(c){de(`writeStream - cannot compress data: "${c}".`)}let h=Bi(a);i&&(h=i.encryptString(h)),s.set("Length",h.length),await Su(s,e,i),e.push(` stream
|
|
7
|
+
`,h,`
|
|
8
|
+
endstream`)}async function bk(t,e,i){e.push("[");for(let a=0,s=t.length;a<s;a++)await ql(t[a],e,i),a<s-1&&e.push(" ");e.push("]")}function wk(t){if(Number.isInteger(t)&&Math.abs(t)>=1e21)return BigInt(t).toString();let e=t.toFixed(10),i=e.length;for(;e[i-1]==="0";)i--;return e[i-1]==="."&&i--,e.slice(0,i)}async function ql(t,e,i){t instanceof Z?e.push(`/${Gc(t.name)}`):t instanceof it?e.push(`${t.num} ${t.gen} R`):Array.isArray(t)||ArrayBuffer.isView(t)?await bk(t,e,i):typeof t=="string"?(i&&(t=i.encryptString(t)),e.push(`(${lr(t)})`)):typeof t=="number"?e.push(wk(t)):typeof t=="boolean"?e.push(t.toString()):t instanceof _?await Su(t,e,i):t instanceof Bt?await gk(t,e,i):t===null?e.push("null"):E(`Unhandled value in writer: ${typeof t}, please file a bug.`)}function sh(t,e,i,a){for(let s=e+i-1;s>i-1;s--)a[s]=t&255,t>>=8;return i+e}function gm(t,e,i){let a=t.length;for(let s=0;s<a;s++)i[e+s]=t.charCodeAt(s)&255;return e+a}function yk(t,e){let i=Math.floor(Date.now()/1e3),a=e.filename||"",s=[i.toString(),a,t.toString(),...e.infoMap.values()],n=Math.sumPrecise(s.map(o=>o.length)),r=new Uint8Array(n),l=0;for(let o of s)l=gm(o,l,r);return Bi(Ms(r,0,r.length))}function kk(t,e){let i=new Yo({hasAttributes:!0}).parseFromString(t);for(let{xfa:s}of e){if(!s)continue;let{path:n,value:r}=s;if(!n||r===null)continue;let l=fp(n),o=i.documentElement.searchNode(l,0);!o&&l.length>1&&(o=i.documentElement.searchNode([l.at(-1)],0)),o?o.childNodes=Array.isArray(r)?r.map(f=>new il("value",f)):[new il("#text",r)]:E(`Node not found for path: ${n}`)}let a=[];return i.documentElement.dump(a),a.join("")}async function vk({xref:t,acroForm:e,acroFormRef:i,hasXfa:a,hasXfaDatasetsEntry:s,xfaDatasetsRef:n,needAppearances:r,changes:l}){if(a&&!s&&!n&&E("XFA - Cannot save it"),!r&&(!a||!n||s))return;let o=e.clone();if(a&&!s){let f=e.get("XFA").slice();f.splice(2,0,"datasets"),f.splice(3,0,n),o.set("XFA",f)}r&&o.set("NeedAppearances",!0),l.put(i,{data:o})}function jk({xfaData:t,xfaDatasetsRef:e,changes:i,xref:a}){t===null&&(t=kk(a.fetchIfRef(e).getString(),i));let s=new qi(t,new _(a));s.dict.setIfName("Type","EmbeddedFile"),i.put(e,{data:s})}async function qk(t,e,i,a,s){s.push(`xref
|
|
9
|
+
`);let n=bm(i),r=0;for(let{ref:l,data:o}of i)l.num===n[r]&&(s.push(`${n[r]} ${n[r+1]}
|
|
10
|
+
`),r+=2),o===null?s.push(`0000000000 ${Math.min(l.gen+1,65535).toString().padStart(5,"0")} f\r
|
|
11
|
+
`):(s.push(`${e.toString().padStart(10,"0")} ${Math.min(l.gen,65535).toString().padStart(5,"0")} n\r
|
|
12
|
+
`),e+=o.length);wm(e,t,a),s.push(`trailer
|
|
13
|
+
`),await Su(a,s,null),s.push(`
|
|
14
|
+
startxref
|
|
15
|
+
`,e.toString(),`
|
|
16
|
+
%%EOF
|
|
17
|
+
`)}function bm(t){let e=[];for(let{ref:i}of t)i.num===e.at(-2)+e.at(-1)?e[e.length-1]+=1:e.push(i.num,1);return e}async function xk(t,e,i,a,s){let n=[],r=0,l=0;for(let{ref:p,data:m,objStreamRef:g,index:b}of i){let w;r=Math.max(r,e),g?(w=b,n.push([2,g.num,w])):m===null?(w=Math.min(p.gen+1,65535),n.push([0,0,w])):(w=Math.min(p.gen,65535),n.push([1,e,w]),e+=m.length),l=Math.max(l,w)}a.set("Index",bm(i));let o=[1,ld(r),ld(l)];a.set("W",o),wm(e,t,a);let f=Math.sumPrecise(o),h=new Uint8Array(f*n.length),c=new Me(h);c.dict=a;let u=0;for(let[p,m,g]of n)u=sh(p,o[0],u,h),u=sh(m,o[1],u,h),u=sh(g,o[2],u,h);await mm(t.newRef,c,s,{}),s.push(`startxref
|
|
18
|
+
`,e.toString(),`
|
|
19
|
+
%%EOF
|
|
20
|
+
`)}function wm(t,e,i){if(Array.isArray(e.fileIds)&&e.fileIds.length>0){let a=yk(t,e);i.set("ID",[e.fileIds[0]||a,a])}}function Ak(t,e,i){let a=new _(null);a.setIfDefined("Prev",t?.startXRef);let s=t.newRef;return i?(e.put(s,{data:""}),a.set("Size",s.num+1),a.setIfName("Type","XRef")):a.set("Size",s.num),a.setIfDefined("Root",t?.rootRef),a.setIfDefined("Info",t?.infoRef),a.setIfDefined("Encrypt",t?.encryptRef),a}async function Sk(t,e,i=[]){let a=[];for(let[s,{data:n,objStreamRef:r,index:l}]of t.items())r?a.push({ref:s,data:n,objStreamRef:r,index:l}):n===null||typeof n=="string"?a.push({ref:s,data:n}):(await mm(s,n,i,e),a.push({ref:s,data:i.join("")}),i.length=0);return a.sort((s,n)=>s.ref.num-n.ref.num)}async function ym({originalData:t,xrefInfo:e,changes:i,xref:a=null,hasXfa:s=!1,xfaDatasetsRef:n=null,hasXfaDatasetsEntry:r=!1,needAppearances:l,acroFormRef:o=null,acroForm:f=null,xfaData:h=null,useXrefStream:c=!1}){await vk({xref:a,acroForm:f,acroFormRef:o,hasXfa:s,hasXfaDatasetsEntry:r,xfaDatasetsRef:n,needAppearances:l,changes:i}),s&&jk({xfaData:h,xfaDatasetsRef:n,changes:i,xref:a});let u=Ak(e,i,c),p=[],m=await Sk(i,a,p),g=t.length,b=t.at(-1);b!==10&&b!==13&&(p.push(`
|
|
21
|
+
`),g+=1);for(let{data:x}of m)x!==null&&p.push(x);await(c?xk(e,g,m,u,p):qk(e,g,m,u,p));let w=t.length+Math.sumPrecise(p.map(x=>x.length)),v=new Uint8Array(w);v.set(t);let y=t.length;for(let x of p)y=gm(x,y,v);return v}function Ok(t){Number.isInteger(t)&&(of=t)}function Hk(){return of}function ff(t){of>=_l.INFOS&&console.info(`Info: ${t}`)}function le(t){of>=_l.WARNINGS&&console.warn(`Warning: ${t}`)}function Ae(t){throw Error(t)}function Xe(t,e){t||Ae(e)}function Nk(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Cu(t,e=null,i=null){if(!t)return null;if(i&&typeof t=="string"&&(i.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),i.tryConvertEncoding))try{t=Uk(t)}catch{}let a=e?URL.parse(t,e):URL.parse(t);return Nk(a)?a:null}function Iu(t,e,i=!1){let a=URL.parse(t);return a?(a.hash=e,a.href):i&&Cu(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:""}function qc(t){return t.substring(t.lastIndexOf("/")+1)}function Tt(t,e,i,a=!1){return Object.defineProperty(t,e,{value:i,enumerable:!a,configurable:!0,writable:!1}),i}function zk(t){(typeof t!="object"||t?.length===void 0)&&Ae("Invalid argument for bytesToString");let e=t.length,i=8192;if(e<i)return String.fromCharCode.apply(null,t);let a=[];for(let s=0;s<e;s+=i){let n=Math.min(s+i,e),r=t.subarray(s,n);a.push(String.fromCharCode.apply(null,r))}return a.join("")}function hf(t){typeof t!="string"&&Ae("Invalid argument for stringToBytes");let e=t.length,i=new Uint8Array(e);for(let a=0;a<e;++a)i[a]=t.charCodeAt(a)&255;return i}function Uk(t){return decodeURIComponent(escape(t))}function jm(t){return rh||(rh=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,j1=new Map([["\uFB05","\u017Ft"]])),t.replaceAll(rh,(e,i,a)=>i?i.normalize("NFKC"):j1.get(a))}function Tu(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();let t=new Uint8Array(32);return crypto.getRandomValues(t),zk(t)}function Gk(t,e,i){if(!Array.isArray(i)||i.length<2)return!1;let[a,s,...n]=i;if(!t(a)&&!Number.isInteger(a)||!e(s))return!1;let r=n.length,l=!0;switch(s.name){case"XYZ":if(r<2||r>3)return!1;break;case"Fit":case"FitB":return r===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(r>1)return!1;break;case"FitR":if(r!==4)return!1;l=!1;break;default:return!1}for(let o of n)if(!(typeof o=="number"||l&&o===null))return!1;return!0}function Oe(t,e,i){return Math.min(Math.max(t,e),i)}async function uf(t,e="text"){if(fl(t,document.baseURI)){let i=await fetch(t);if(!i.ok)throw Error(i.statusText);switch(e){case"blob":return i.blob();case"bytes":return i.bytes();case"json":return i.json()}return i.text()}return new Promise((i,a)=>{let s=new XMLHttpRequest;s.open("GET",t,!0),s.responseType=e==="bytes"?"arraybuffer":e,s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE)if(s.status===200||s.status===0){switch(e){case"bytes":i(new Uint8Array(s.response));return;case"blob":case"json":i(s.response);return}i(s.responseText)}else a(Error(s.statusText))},s.send(null)})}function El(t){let e=t.length,i=0;for(;i<e&&t[i].trim()==="";)i++;return t.substring(i,i+5).toLowerCase()==="data:"}function pf(t){return typeof t=="string"&&/\.pdf$/i.test(t)}function Sm(t){return[t]=t.split(/[#?]/,1),qc(t)}function Cm(t,e="document.pdf"){if(typeof t!="string")return e;if(El(t))return le('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;let i=d(l=>{try{return new URL(l)}catch{}try{return new URL(decodeURIComponent(l))}catch{}try{return new URL(l,"https://foo.bar")}catch{}try{return new URL(decodeURIComponent(l),"https://foo.bar")}catch{}return null},"getURL"),a=i(t);if(!a)return e;let s=d(l=>{try{let o=decodeURIComponent(l);return o.includes("/")&&(o=qc(o),o.length===4&&n.test(o))?l:o}catch{return l}},"decode"),n=/\.pdf$/i,r=qc(a.pathname);if(n.test(r))return s(r);if(a.searchParams.size>0){let l=d(f=>[...f].findLast(h=>n.test(h)),"getLast"),o=l(a.searchParams.values())??l(a.searchParams.keys());if(o)return s(o)}if(a.hash){let{hash:l}=a,o=-1;for(let{index:f}of l.matchAll(/\.pdf\b/gi))o=f;if(o>0){let f=o;for(;f>0&&!"/?#=".includes(l[f-1]);)f--;if(f<o)return s(l.slice(f,o+4))}}return e}function fl(t,e){let i=e?URL.parse(t,e):URL.parse(t);return/https?:/.test(i?.protocol??"")}function va(t){t.preventDefault()}function ai(t){t.preventDefault(),t.stopPropagation()}function _n(t){if(t.startsWith("#")){let i=t.slice(1);return[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16),i.length>=8?parseInt(i.slice(6,8),16)/255:1]}if(t.startsWith("rgb(")){let[i,a,s]=t.slice(4,-1).split(",").map(n=>parseInt(n,10));return[i,a,s,1]}if(t.startsWith("rgba(")){let i=t.slice(5,-1).split(",");return[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10),parseFloat(i[3])]}let e=t.match(/^color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+|none))?\)$/);return e?[Math.round(parseFloat(e[1])*255),Math.round(parseFloat(e[2])*255),Math.round(parseFloat(e[3])*255),e[4]!==void 0&&e[4]!=="none"?parseFloat(e[4]):1]:null}function br(t){let e=_n(t);return e?e.slice(0,3):(le(`Not a valid color format: "${t}"`),[0,0,0])}function Vk(t){let e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(let i of t.keys()){e.style.color=i;let a=window.getComputedStyle(e).color;t.set(i,br(a))}e.remove()}function Pe(t){let{a:e,b:i,c:a,d:s,e:n,f:r}=t.getTransform();return[e,i,a,s,n,r]}function La(t){let{a:e,b:i,c:a,d:s,e:n,f:r}=t.getTransform().invertSelf();return[e,i,a,s,n,r]}function zs(t,e,i=!1,a=!0){if(e instanceof Mu){let{pageWidth:s,pageHeight:n}=e.rawDims,{style:r}=t,l=`round(down, var(--total-scale-factor) * ${s}px, var(--scale-round-x))`,o=`round(down, var(--total-scale-factor) * ${n}px, var(--scale-round-y))`;!i||e.rotation%180==0?(r.width=l,r.height=o):(r.width=o,r.height=l)}a&&t.setAttribute("data-main-rotation",e.rotation)}function Tm(t,e){e=Oe(e??1,0,1);let i=255*(1-e);return t.map(a=>Math.round(a*e+i))}function x1(t,e){let i=t[0]/255,a=t[1]/255,s=t[2]/255,n=Math.max(i,a,s),r=Math.min(i,a,s),l=(n+r)/2;if(n===r)e[0]=e[1]=0;else{let o=n-r;switch(e[1]=l<.5?o/(n+r):o/(2-n-r),n){case i:e[0]=((a-s)/o+(a<s?6:0))*60;break;case a:e[0]=((s-i)/o+2)*60;break;case s:e[0]=((i-a)/o+4)*60}}e[2]=l}function Sc(t,e){let i=t[0],a=t[1],s=t[2],n=(1-Math.abs(2*s-1))*a,r=n*(1-Math.abs(i/60%2-1)),l=s-n/2;switch(Math.floor(i/60)){case 0:e[0]=n+l,e[1]=r+l,e[2]=l;break;case 1:e[0]=r+l,e[1]=n+l,e[2]=l;break;case 2:e[0]=l,e[1]=n+l,e[2]=r+l;break;case 3:e[0]=l,e[1]=r+l,e[2]=n+l;break;case 4:e[0]=r+l,e[1]=l,e[2]=n+l;break;case 5:case 6:e[0]=n+l,e[1]=l,e[2]=r+l}}function Cc(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function A1(t,e,i){Sc(t,i),i.map(Cc);let a=.2126*i[0]+.7152*i[1]+.0722*i[2];Sc(e,i),i.map(Cc);let s=.2126*i[0]+.7152*i[1]+.0722*i[2];return a>s?(a+.05)/(s+.05):(s+.05)/(a+.05)}function Mm(t,e){let i=t[0]+t[1]*256+t[2]*65536+e[0]*16777216+e[1]*4294967296+e[2]*1099511627776,a=S1.get(i);if(a)return a;let s=new Float32Array(9),n=s.subarray(0,3),r=s.subarray(3,6);x1(t,r);let l=s.subarray(6,9);x1(e,l);let o=l[2]<.5,f=o?12:4.5;if(r[2]=o?Math.sqrt(r[2]):1-Math.sqrt(1-r[2]),A1(r,l,n)<f){let h,c;for(o?(h=r[2],c=1):(h=0,c=r[2]);c-h>.005;){let u=r[2]=(h+c)/2;o===A1(r,l,n)<f?h=u:c=u}r[2]=o?c:h}return Sc(r,n),a=qt.makeHexColor(Math.round(n[0]*255),Math.round(n[1]*255),Math.round(n[2]*255)),S1.set(i,a),a}function Eu({html:t,dir:e,className:i},a){let s=document.createDocumentFragment();if(typeof t=="string"){let n=document.createElement("p");n.dir=e||"auto";let r=t.split(/\r\n?|\n/);for(let l=0,o=r.length;l<o;++l){let f=r[l];n.append(document.createTextNode(f)),l<o-1&&n.append(document.createElement("br"))}s.append(n)}else _u.render({xfaHtml:t,div:s,intent:"richText"});s.firstElementChild.classList.add("richText",i),a.append(s)}function _m(t){let e=new Path2D;if(!t)return e;for(let i=0,a=t.length;i<a;)switch(t[i++]){case Pr.moveTo:e.moveTo(t[i++],t[i++]);break;case Pr.lineTo:e.lineTo(t[i++],t[i++]);break;case Pr.curveTo:e.bezierCurveTo(t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]);break;case Pr.quadraticCurveTo:e.quadraticCurveTo(t[i++],t[i++],t[i++],t[i++]);break;case Pr.closePath:e.closePath();break;default:le(`Unrecognized drawing path operator: ${t[i-1]}`)}return e}function Em(t,e,i){for(let a of i)e.addEventListener(a,t[a].bind(t))}function I1(t){t.preventDefault()}function oh(t){return t.cancelable?(ai(t),!0):(t.stopPropagation(),!1)}function F1(t,e,i,a,s,n){t[e*4+0]=Math.min(t[e*4+0],i),t[e*4+1]=Math.min(t[e*4+1],a),t[e*4+2]=Math.max(t[e*4+2],s),t[e*4+3]=Math.max(t[e*4+3],n)}function iv(t,e,i,a,s){let n;t?(t<0&&(n=s[0],s[0]=s[2],s[2]=n),s[0]*=t,s[2]*=t,e<0&&(n=s[1],s[1]=s[3],s[3]=n),s[1]*=e,s[3]*=e):s.fill(0),s[0]+=i,s[1]+=a,s[2]+=i,s[3]+=a}function lv(t){let e=t[0];if(t.length<2||e!=='"'&&e!=="'"||t.at(-1)!==e)return!1;let i=t.length-1;for(let a=1;a<i;a++){let s=t[a];if(s===e||D1.test(s)||s==="\\"&&(++a>=i||D1.test(t[a])))return!1}return!0}function P1(t){return lv(t)?t:`"${t.replaceAll(/["\\\p{Cc}]/gu,e=>e==='"'||e==="\\"?`\\${e}`:`\\${e.codePointAt(0).toString(16)} `)}"`}function hl(t,e,i,a=0){let{decoder:s}=uv;for(let r=0;r<i;r++)a+=e.getUint32(a)+4;let n=e.getUint32(a);return s.decode(new Uint8Array(t,a+4,n))}function wv(t){if(t instanceof URL)return t;if(typeof t=="string"){if(ma){if(/^[a-z][a-z0-9\-+.]+:/i.test(t))return new URL(t);let i=process.getBuiltinModule("url");return new URL(i.pathToFileURL(t))}let e=URL.parse(t,window.location);if(e)return e}throw Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function yv(t){if(ma&&typeof Buffer<"u"&&t instanceof Buffer)throw Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return hf(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t?.length))return new Uint8Array(t);throw Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function so(t){if(typeof t!="string")return null;if(t.endsWith("/"))return t;throw Error(`Invalid factory url: "${t}" must include trailing slash.`)}function B1(){}function Wi(t){if(t instanceof ms||t instanceof Ho||t instanceof Oo||t instanceof xl||t instanceof nh)return t;switch(t instanceof Error||typeof t=="object"&&t||Ae('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new ms(t.message);case"InvalidPDFException":return new Ho(t.message);case"PasswordException":return new Oo(t.message,t.code);case"ResponseException":return new xl(t.message,t.status,t.missing);case"UnknownErrorException":return new nh(t.message,t.details)}return new nh(t.message,t.toString())}function fh(t,e,i){return Math.round(i*t+(1-i)*e)}async function xv(t){let e=await process.getBuiltinModule("fs/promises").readFile(t);return new Uint8Array(e)}function Lm({src:t,srcPos:e=0,dest:i,width:a,height:s,nonBlackColor:n=4294967295,inverseDecode:r=!1}){let l=Te.isLittleEndian?4278190080:255,[o,f]=r?[n,l]:[l,n],h=a>>3,c=a&7,u=o^f,p=t.length;i=new Uint32Array(i.buffer);let m=0;for(let g=0;g<s;++g){for(let w=e+h;e<w;++e,m+=8){let v=t[e];i[m]=o^-(v>>7&1)&u,i[m+1]=o^-(v>>6&1)&u,i[m+2]=o^-(v>>5&1)&u,i[m+3]=o^-(v>>4&1)&u,i[m+4]=o^-(v>>3&1)&u,i[m+5]=o^-(v>>2&1)&u,i[m+6]=o^-(v>>1&1)&u,i[m+7]=o^-(v&1)&u}if(c===0)continue;let b=e<p?t[e++]:255;for(let w=0;w<c;++w,++m)i[m]=o^-(b>>7-w&1)&u}return{srcPos:e,destPos:m}}function Iv({src:t,srcPos:e=0,dest:i,destPos:a=0,width:s,height:n}){let r=0,l=s*n*3,o=l>>2,f=new Uint32Array(t.buffer,e,o),h=Te.isLittleEndian?4278190080:255;if(Te.isLittleEndian){for(;r<o-2;r+=3,a+=4){let c=f[r],u=f[r+1],p=f[r+2];i[a]=c|h,i[a+1]=c>>>24|u<<8|h,i[a+2]=u>>>16|p<<16|h,i[a+3]=p>>>8|h}for(let c=e+r*4,u=e+l;c<u;c+=3)i[a++]=t[c]|t[c+1]<<8|t[c+2]<<16|h}else{for(;r<o-2;r+=3,a+=4){let c=f[r],u=f[r+1],p=f[r+2];i[a]=c|h,i[a+1]=c<<24|u>>>8|h,i[a+2]=u<<16|p>>>16|h,i[a+3]=p<<8|h}for(let c=e+r*4,u=e+l;c<u;c+=3)i[a++]=t[c]<<24|t[c+1]<<16|t[c+2]<<8|h}return{srcPos:e+l,destPos:a}}function Mv(){return mf.init()}function _v(){return mf.isReady}function Ev(){mf.loadMeshShader()}function Fv(t,e,i,a,s,n,r,l){return mf.draw(t,e,i,a,s,n,r,l)}function Ao(t,e){if(!e)return;let i=e[2]-e[0],a=e[3]-e[1],s=new Path2D;s.rect(e[0],e[1],i,a),t.clip(s)}function Dv(t,e,i,a,s,n,r,l){let o=e.coords,f=e.colors,h=t.data,c=t.width*4,u;o[i*2+1]>o[a*2+1]&&(u=i,i=a,a=u,u=n,n=r,r=u),o[a*2+1]>o[s*2+1]&&(u=a,a=s,s=u,u=r,r=l,l=u),o[i*2+1]>o[a*2+1]&&(u=i,i=a,a=u,u=n,n=r,r=u);let p=(o[i*2]+e.offsetX)*e.scaleX,m=(o[i*2+1]+e.offsetY)*e.scaleY,g=(o[a*2]+e.offsetX)*e.scaleX,b=(o[a*2+1]+e.offsetY)*e.scaleY,w=(o[s*2]+e.offsetX)*e.scaleX,v=(o[s*2+1]+e.offsetY)*e.scaleY;if(m>=v)return;let y=f[n*4],x=f[n*4+1],q=f[n*4+2],j=f[r*4],A=f[r*4+1],S=f[r*4+2],C=f[l*4],M=f[l*4+1],O=f[l*4+2],P=Math.round(m),$=Math.round(v),tt,K,z,B,G,Q,yt,It;for(let Lt=P;Lt<=$;Lt++){if(Lt<b){let H=Lt<m?0:(m-Lt)/(m-b);tt=p-(p-g)*H,K=y-(y-j)*H,z=x-(x-A)*H,B=q-(q-S)*H}else{let H;H=Lt>v?1:b===v?0:(b-Lt)/(b-v),tt=g-(g-w)*H,K=j-(j-C)*H,z=A-(A-M)*H,B=S-(S-O)*H}let Pt;Pt=Lt<m?0:Lt>v?1:(m-Lt)/(m-v),G=p-(p-w)*Pt,Q=y-(y-C)*Pt,yt=x-(x-M)*Pt,It=q-(q-O)*Pt;let X=Math.round(Math.min(tt,G)),et=Math.round(Math.max(tt,G)),L=c*Lt+X*4;for(let H=X;H<=et;H++)Pt=(tt-H)/(tt-G),Pt<0?Pt=0:Pt>1&&(Pt=1),h[L++]=K-(K-Q)*Pt|0,h[L++]=z-(z-yt)*Pt|0,h[L++]=B-(B-It)*Pt|0,h[L++]=255}}function Ov(t){switch(t[0]){case"RadialAxial":return new Rv(t);case"Mesh":return new Pv(t);case"Dummy":return new Bv}throw Error(`Unknown IR type: ${t[0]}`)}function N1(t,e){if(t._removeMirroring)throw Error("Context is already forwarding operations.");let i=new Map;for(let a of["save","restore","rotate","scale","translate","transform","setTransform","resetTransform","clip","moveTo","lineTo","bezierCurveTo","quadraticCurveTo","arc","arcTo","ellipse","rect","roundRect","closePath","beginPath"]){let s=t[a];typeof s=="function"&&typeof e[a]=="function"&&(i.set(a,s),t[a]=function(...n){return e[a](...n),s.apply(this,n)})}t._removeMirroring=()=>{for(let[a,s]of i)t[a]=s;delete t._removeMirroring}}function ro(t,e,i,a,s,n,r,l,o,f){let[h,c,u,p,m,g]=Pe(t);if(c===0&&u===0){let v=r*h+m,y=Math.round(v),x=l*p+g,q=Math.round(x),j=(r+o)*h+m,A=Math.abs(Math.round(j)-y)||1,S=(l+f)*p+g,C=Math.abs(Math.round(S)-q)||1;return t.setTransform(Math.sign(h),0,0,Math.sign(p),y,q),t.drawImage(e,i,a,s,n,0,0,A,C),t.setTransform(h,c,u,p,m,g),[A,C]}if(h===0&&p===0){let v=l*u+m,y=Math.round(v),x=r*c+g,q=Math.round(x),j=(l+f)*u+m,A=Math.abs(Math.round(j)-y)||1,S=(r+o)*c+g,C=Math.abs(Math.round(S)-q)||1;return t.setTransform(0,Math.sign(c),Math.sign(u),0,y,q),t.drawImage(e,i,a,s,n,0,0,C,A),t.setTransform(h,c,u,p,m,g),[C,A]}t.drawImage(e,i,a,s,n,r,l,o,f);let b=Math.hypot(h,c),w=Math.hypot(u,p);return[b*o,w*f]}function z1(t,e){let{width:i,height:a,kind:s}=e,n=a%16,r=(a-n)/16,l=n===0?r:r+1,o=t.createImageData(i,16),f=0,h=e.data,c=o.data,u;if(s===ol.GRAYSCALE_1BPP)for(u=0;u<l;u++)({srcPos:f}=Lm({src:h,srcPos:f,dest:c,width:i,height:u<r?16:n})),t.putImageData(o,0,u*16);else if(s===ol.RGBA_32BPP){let p=0,m=i*16*4;for(u=0;u<r;u++)c.set(h.subarray(f,f+m)),f+=m,t.putImageData(o,0,p),p+=16;u<l&&(m=i*n*4,c.set(h.subarray(f,f+m)),t.putImageData(o,0,p))}else if(s===ol.RGB_24BPP)for(u=0;u<l;u++)({srcPos:f}=Iv({src:h,srcPos:f,dest:new Uint32Array(c.buffer),width:i,height:u<r?16:n})),t.putImageData(o,0,u*16);else throw Error(`bad image kind: ${s}`)}function U1(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}let{width:i,height:a}=e,s=a%16,n=(a-s)/16,r=s===0?n:n+1,l=t.createImageData(i,16),o=0,f=e.data,h=l.data;for(let c=0;c<r;c++)({srcPos:o}=Lm({src:f,srcPos:o,dest:h,width:i,height:c<n?16:s,nonBlackColor:0})),t.putImageData(l,0,c*16)}function Zs(t,e){for(let i of["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"])t[i]!==void 0&&(e[i]=t[i]);t.setLineDash!==void 0&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function lo(t){t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",t.setLineDash!==void 0&&(t.setLineDash([]),t.lineDashOffset=0);let{filter:e}=t;e!=="none"&&e!==""&&(t.filter="none")}function G1(t,e){if(e)return!0;qt.singularValueDecompose2dScale(t,na);let i=Math.fround(Xa.pixelRatio*An.PDF_TO_CSS_UNITS);return na[0]<=i&&na[1]<=i}function Uv(t){let e=!0,i=a("filename\\*","i").exec(t);if(i){i=i[1];let h=l(i);return h=unescape(h),h=o(h),h=f(h),n(h)}if(i=r(t),i)return n(f(i));if(i=a("filename","i").exec(t),i){i=i[1];let h=l(i);return h=f(h),n(h)}function a(h,c){return RegExp("(?:^|;)\\s*"+h+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',c)}d(a,"toParamRegExp");function s(h,c){if(h){if(!/^[\x00-\xFF]+$/.test(c))return c;try{let u=new TextDecoder(h,{fatal:!0}),p=hf(c);c=u.decode(p),e=!1}catch{}}return c}d(s,"textdecode");function n(h){return e&&/[\x80-\xff]/.test(h)&&(h=s("utf-8",h),e&&(h=s("iso-8859-1",h))),h}d(n,"fixupEncoding");function r(h){let c=[],u,p=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(u=p.exec(h))!==null;){let[,g,b,w]=u;if(g=parseInt(g,10),g in c){if(g===0)break}else c[g]=[b,w]}let m=[];for(let g=0;g<c.length&&g in c;++g){let[b,w]=c[g];w=l(w),b&&(w=unescape(w),g===0&&(w=o(w))),m.push(w)}return m.join("")}d(r,"rfc2231getparam");function l(h){if(h.startsWith('"')){let c=h.slice(1).split('\\"');for(let u=0;u<c.length;++u){let p=c[u].indexOf('"');p!==-1&&(c[u]=c[u].slice(0,p),c.length=u+1),c[u]=c[u].replaceAll(/\\(.)/g,"$1")}h=c.join('"')}return h}d(l,"rfc2616unquote");function o(h){let c=h.indexOf("'");return c===-1?h:s(h.slice(0,c),h.slice(c+1).replace(/^[^']*'/,""))}d(o,"rfc5987decode");function f(h){return!h.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(h)?h:h.replaceAll(/=\?([\w-]*)\?([QB])\?((?:[^?]|\?(?!=))*)\?=/gi,function(c,u,p,m){if(p==="q"||p==="Q")return m=m.replaceAll("_"," ").replaceAll(/=([0-9a-f]{2})/gi,(g,b)=>String.fromCharCode(parseInt(b,16))),s(u,m);try{m=atob(m)}catch{}return s(u,m)})}return d(f,"rfc2047decode"),""}function Gm(t,e){let i=new Headers;if(!t||!e||typeof e!="object")return i;for(let a in e){let s=e[a];s!==void 0&&i.append(a,s)}return i}function Gv(t){let e=t.length;for(;e>0&&t[e-1]!==" "&&/\s/.test(t[e-1]);)e--;return t.slice(0,e)}function yf(t){return URL.parse(t)?.origin??null}function $m({responseHeaders:t,isHttp:e,rangeChunkSize:i,disableRange:a}){let s={contentLength:0,isRangeSupported:!1},n=parseInt(t.get("Content-Length"),10);return!Number.isInteger(n)||(s.contentLength=n,n<=2*i)||a||!e||t.get("Accept-Ranges")!=="bytes"||(t.get("Content-Encoding")||"identity")==="identity"&&(s.isRangeSupported=!0),s}function Wm(t){let e=t.get("Content-Disposition");if(e){let i=Uv(e);if(i.includes("%"))try{i=decodeURIComponent(i)}catch{}if(pf(i))return i}return null}function kf(t,e){return new xl(`Unexpected server response (${t}) while retrieving PDF "${e.href}".`,t,t===404||t===0&&e.protocol==="file:")}function Vm(t,e){if(t!==e)throw Error(`Expected range response-origin "${t}" to match "${e}".`)}function Km(t,e,i,a){return fetch(t,{method:"GET",headers:e,signal:a.signal,mode:"cors",credentials:i?"include":"same-origin",redirect:"follow"})}function Xm(t,e){if(t!==200&&t!==206)throw kf(t,e)}function vf(t){if(t instanceof Uint8Array)return t.buffer;if(t instanceof ArrayBuffer)return t;throw Error(`getArrayBuffer - unexpected data: ${t}`)}function W1(t){return t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer}function jf(){for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}function Jv(t){return typeof t=="string"?hf(t).buffer:t}function Ym(t,e=null){let i=process.getBuiltinModule("fs"),{Readable:a}=process.getBuiltinModule("stream"),s=i.createReadStream(t,e);return a.toWeb(s)}function sj(t){return fl(t)?$v:ma?ej:Qv}function Zm(t={}){let e=new fj,{docId:i}=e,a=t.url?wv(t.url):null,s=t.data?yv(t.data):null,n=t.httpHeaders||null,r=t.withCredentials===!0,l=t.password??null,o=t.range instanceof Pu?t.range:null,f=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:2**16,h=t.worker instanceof Go?t.worker:null,c=t.verbosity,u=typeof t.docBaseUrl=="string"&&!El(t.docBaseUrl)?t.docBaseUrl:null,p=so(t.cMapUrl),m=t.cMapPacked!==!1,g=so(t.iccUrl),b=so(t.standardFontDataUrl),w=so(t.wasmUrl),v=t.stopAtErrors!==!0,y=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,x=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!ma,q=typeof t.isImageDecoderSupported=="boolean"?t.isImageDecoderSupported:!ma,j=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,A=typeof t.disableFontFace=="boolean"?t.disableFontFace:ma,S=t.fontExtraProperties===!0,C=t.enableXfa===!0,M=t.ownerDocument||globalThis.document,O=t.disableRange===!0,P=t.disableStream===!0,$=t.disableAutoFetch===!0,tt=t.pdfBug===!0,K=t.CanvasFactory||(ma?Sv:jv),z=t.FilterFactory||(ma?Av:qv),B=t.BinaryDataFactory||(ma?Cv:O1),G=t.enableHWA===!0,Q=t.enableWebGPU===!0?Mv():Promise.resolve(!1),yt=t.useWasm!==!1,It=t.pagesMapper||new oj,Lt=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!ma&&!A,Pt=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:!!(B===O1&&p&&m&&b&&w&&fl(p,document.baseURI)&&fl(b,document.baseURI)&&fl(w,document.baseURI));Ok(c);let X={canvasFactory:new K({ownerDocument:M,enableHWA:G}),filterFactory:new z({docId:i,ownerDocument:M}),binaryDataFactory:Pt?null:new B({cMapUrl:p,standardFontDataUrl:b,wasmUrl:w})};h||(h=Go.create({verbosity:c,port:ar.workerPort}),e._worker=h);let et={docId:i,apiVersion:"6.4.299",data:s,password:l,disableAutoFetch:$,rangeChunkSize:f,docBaseUrl:u,enableXfa:C,evaluatorOptions:{maxImageSize:y,disableFontFace:A,ignoreErrors:v,isOffscreenCanvasSupported:x,isImageDecoderSupported:q,canvasMaxAreaInBytes:j,fontExtraProperties:S,useSystemFonts:Lt,useWasm:yt,useWorkerFetch:Pt,cMapUrl:p,cMapPacked:m,iccUrl:g,standardFontDataUrl:b,wasmUrl:w,hasGPU:!1}},L={ownerDocument:M,pdfBug:tt,styleElement:null,enableHWA:G,loadingParams:{disableAutoFetch:$,enableXfa:C}};return Promise.all([h.promise,Q]).then(function([,H]){if(h.destroyed)throw Error("Worker was destroyed");et.evaluatorOptions.hasGPU=H;let J=h.messageHandler.sendWithPromise("GetDocRequest",et,s?[s.buffer]:null),ft;if(!s)if(o)ft=new Kv({pdfDataRangeTransport:o,disableRange:O,disableStream:P});else if(a)ft=new(sj(a))({url:a,httpHeaders:n,withCredentials:r,rangeChunkSize:f,disableRange:O,disableStream:P});else throw Error("getDocument - expected either `data`, `range`, or `url` parameter.");return J.then(ot=>{if(h.destroyed)throw Error("Worker was destroyed");let at=new Yr(i,ot,h.port),At=new uj(at,e,ft,L,X,It);if(e._transport=At,e.destroyed)throw Error("Loading aborted");at.send("Ready",null)})}).catch(e._capability.reject).finally(e._setupCapability.resolve),e}function K1(t){return Math.floor(Oe(t,0,1)*255).toString(16).padStart(2,"0")}function Br(t){return Oe(t,0,1)*255}function pg(t){return{bbox:t.box,root:{viewBox:"0 0 1 1"},rootClass:{highlight:!0,free:t.isFree},path:{d:t.toSVGPath()}}}function mg(t,e){let{focusOutline:i}=t;return{bbox:Ft._rotateBox(i.box,e),root:{"data-main-rotation":e},rootClass:{highlightOutline:!0,free:t.isFree},path:{d:i.toSVGPath()}}}function $j(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function fo(t){return t?t.nodeType===Node.ELEMENT_NODE?t.closest(".textLayer"):t.parentElement?.closest(".textLayer")||null:null}function Wj(t,e,i,a){if(t===i)return e<=a;let s=t.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?!0:s&Node.DOCUMENT_POSITION_PRECEDING?!1:null}function J1(t,e,i){if(t.nodeType!==Node.ELEMENT_NODE||!t.classList.contains("textLayer")||e!==t.childNodes.length)return{container:t,offset:e};let a=t.lastChild;return a?.nodeType===Node.ELEMENT_NODE&&a.classList.contains("endOfContent")&&(a=a.previousSibling),!a||!i.contains(a)?null:a.nodeType===Node.TEXT_NODE?{container:a,offset:a.textContent.length}:{container:a,offset:a.childNodes.length}}function ho(t){return`${(t*100).toFixed(2)}%`}var zg,Ds,Co,pn,Zu,mn,mi,Q1,Na,Ug,Ta,Z1,pi,tp,uh,td,De,Ra,Dn,ep,Gg,$g,zc,T,Ee,co,Uc,Li,hs,xf,cl,ed,V,yi,Ni,oe,Af,id,Ps,Jg,Qg,ip,Zg,ki,ph,mh,Or,Z,hi,np,_,it,we,ii,Bt,bh,sb,nb,lp,sd,wa,wh,yh,xe,kh,Es,gn,Sf,fb,cp,db,Aa,Cf,mb,Hr,uo,If,Wc,Oi,Hi,Tb,fd,Mb,_b,Eb,Fb,mp,Rb,Db,Pb,dl,Ah,Me,qi,Ch,Bb,Ob,hd,Ga,Lb,Mi,zb,fe,da,Th,yp,Zr,Ol,Hl,Nl,Ll,zl,Pn,Ul,ud,Vo,ln,vp,Xb,Da,dd,Ii,qp,ir,Yb,Zb,tw,Ap,iw,aw,sw,nw,rw,lw,ow,fw,hw,uw,Ko,gd,Sp,dw,bd,pw,mw,gw,bw,wd,ww,kw,$l,Ip,vw,yd,kd,jw,Is,Bn,Ma,xw,Aw,Sw,Kc,tl,vr,Fp,Rw,Xc,cs,pl,Xo,Yc,Ea,Dw,Pw,Mf,Hw,Rh,ia,Mo,zw,vd,Gw,$w,Ww,ei,bo,Dh,Pp,On,Vw,Jc,Bp,Op,Qc,Fs,Hp,Kw,Ph,Xw,Bh,Ef,Lr,Yw,Jw,jd,Zc,gl,Qw,Oh,tu,Hh,Zw,qd,t2,e2,i2,a2,Ad,s2,n2,r2,l2,zr,ga,Rf,f2,h2,Vs,ys,c2,k2,Vp,v2,j2,q2,x2,A2,Gh,Fi,Sd,Cd,Df,M2,ts,an,_2,E2,D2,L2,Od,Hd,W2,V2,K2,X2,Y2,J2,Q2,Z2,t9,e9,i9,a9,s9,n9,r9,l9,xr,Ar,Sr,Cr,Ir,Tr,Mr,_r,o9,f9,h9,c9,u9,d9,p9,m9,g9,b9,w9,y9,k9,v9,j9,q9,x9,I,Xs,S9,Ve,Rt,Pa,C9,I9,T9,M9,_9,E9,F9,Gi,R9,Nd,D9,P9,e0,St,Fo,i0,Ld,L9,wt,Nn,Wn,U9,G9,Cn,zd,a0,K9,Ud,X9,Y9,J9,Q9,Vl,iu,Gd,Z9,t5,ks,pe,Si,Kl,ns,on,fn,el,a5,Xd,ha,vs,o0,Uf,n5,Yd,Jd,Gf,Qd,su,Wf,wo,r5,h0,Ro,l5,o5,Kh,c5,u5,c0,is,bl,la,Vi,d0,il,Yo,p5,g5,sa,Xh,b5,Xl,g0,w5,Do,lu,Po,Jo,bn,Ue,Ns,ka,Qn,vo,Fa,$a,st,ba,fr,W,Ie,Cl,Yh,y0,wn,Qo,wl,sl,ou,ji,nl,Ti,hr,rs,Ye,Vt,We,Ce,yl,Kn,Jh,jo,fu,In,Zn,_s,rl,us,ps,kl,vl,x5,Ke,me,un,Va,Qh,ds,Qa,Ki,pr,Rs,k0,Wr,fs,Zh,v0,Xi,Ca,si,j0,Ot,ll,ce,ke,Ba,ni,A5,S5,Dt,T5,i1,_5,E5,a1,F5,ra,q0,R5,Jl,Ys,Un,ne,Kf,js,Xf,s1,Yf,n1,Jf,Kr,Ql,pa,Er,Fr,Qf,tc,A0,Y,F,cu,yn,Ge,ve,ae,Ha,ri,C0,r1,pt,O5,H5,N5,L5,N0,z5,U5,G5,$5,ic,W5,V5,L0,K5,z0,U0,X5,Y5,J5,Q5,Z5,G0,$0,t3,e3,i3,bu,W0,a3,s3,n3,r3,l3,o3,f3,h3,V0,Tl,c3,u3,d3,p3,m3,g3,b3,w3,y3,k3,K0,v3,j3,wu,q3,x3,A3,S3,C3,I3,T3,X0,M3,_3,E3,ac,F3,R3,D3,P3,B3,O3,H3,N3,L3,z3,U3,G3,$3,W3,Y0,cr,sc,V3,K3,X3,Y3,J3,Q3,Z3,t6,Q0,e6,i6,nc,a6,s6,n6,r6,l6,o6,Z0,yu,f6,h6,c6,ku,tm,em,u6,d6,p6,m6,g6,vu,b6,ju,w6,y6,Zl,k6,v6,lt,j6,q6,x6,A6,S6,C6,I6,T6,M6,_6,E6,F6,R6,D6,P6,B6,O6,H6,N6,L6,z6,U6,G6,$6,W6,V6,K6,X6,Y6,J6,Q6,Z6,t4,e4,i4,a4,s4,n4,r4,l4,o4,f4,h4,c4,u4,d4,p4,m4,g4,b4,w4,y4,k4,v4,j4,q4,x4,A4,S4,C4,I4,T4,M4,_4,E4,F4,R4,D4,P4,B4,O4,H4,N4,L4,z4,U4,G4,$4,W4,V4,K4,X4,Y4,J4,Q4,Z4,t8,e8,i8,a8,s8,n8,r8,l8,o8,f8,h8,c8,u8,d8,p8,m8,g8,b8,w8,y8,k8,v8,j8,q8,x8,A8,S8,C8,I8,T8,M8,_8,E8,F8,R8,D8,P8,B8,O8,H8,N8,L8,z8,U8,G8,$8,W8,V8,K8,X8,Y8,J8,Q8,Z8,ja,t7,e7,i7,a7,s7,n7,r7,l7,o7,f7,h7,c7,u7,fc,d7,p7,m7,$e,g7,b7,w7,y7,k7,v7,j7,q7,x7,A7,S7,C7,I7,T7,M7,_7,E7,F7,R7,D7,P7,B7,O7,H7,N7,L7,z7,U7,G7,$7,W7,V7,K7,X7,Y7,eo,J7,Q7,Z7,ty,ey,sy,oa,ny,ry,ly,oy,fy,hy,cy,uy,dy,py,my,gy,by,mc,c1,u1,wy,yy,ky,d1,qu,_a,gr,vy,Yi,Ls,jy,qy,xy,sm,Ay,Sy,xu,Zf,Cy,Iy,Ty,nm,rm,My,Rr,th,_y,Ey,Fy,Dr,Ry,jl,Dy,Py,By,Oy,Hy,Ny,Ly,zy,mt,Uy,Jy,sk,nk,rk,Js,ok,Au,hm,vc,cm,fk,hk,m1,ck,uk,um,g1,b1,w1,y1,dk,dm,pm,ah,mk,io,Ze,v1,Ck,Ik,Tk,Mk,_k,Ek,Fk,Rk,Dk,Pk,es,Bk,ma,Wa,dn,jc,Pi,aa,ls,tr,ur,ie,ge,km,fi,ol,ze,Yn,_l,Ia,Pr,vm,of,Tn,Oo,nh,Ho,xl,Lk,ms,Te,qt,rh,j1,Mn,cf,No,qm,Mu,xc,$k,Wk,_u,An,df,q1,Lo,Xa,zo,Kk,Im,S1,Xk,Yk,lh,$i,Jk,Qk,Zk,Fl,tv,dr,C1,ao,T1,Fu,He,ev,M1,ca,qs,Tc,Al,Ru,Dm,Gn,_1,E1,Mc,av,R1,sv,nv,_c,ua,rv,D1,ov,fv,hv,cv,$n,Qs,uv,dv,pv,mv,gv,bv,Fc,kv,Bm,vv,no,ti,Yr,Om,O1,Hm,jv,Nm,qv,Av,Sv,Cv,Tv,mf,vi,Du,Rv,Pv,Bv,H1,hh,na,L1,Hv,Nv,Lv,zv,$1,So,gf,bf,wf,$v,Wv,Vv,Kv,Xv,Yv,Qv,Zv,tj,ej,ij,aj,ar,nj,rn,rj,lj,oj,Jn,V1,Qm,Uo,fj,Pu,hj,cj,Go,uj,dj,pj,eg,ig,Bu,ag,X1,mj,Sl,Sn,gj,ch,Je,bj,Ou,wj,En,yj,kj,vj,jj,qj,xj,Bc,Aj,ng,Sj,Cj,Ij,rg,Tj,Mj,Hu,lg,_j,Ej,Fj,og,Rj,fg,hg,oo,Dj,Nu,Lu,Ft,ug,dg,Oc,Hc,zu,Pj,Bj,Oj,Y1,Hj,Rl,wg,Nj,Nc,hn,Lj,zj,Uj,Gj,qg,xg,Ag,Cg=Hg(()=>{d(Lg,"polyfillDOMMatrix");if(Lg(),globalThis.FinalizationRegistry===void 0&&(globalThis.FinalizationRegistry=class{static{d(this,"FinalizationRegistry")}register(){}unregister(){}}),globalThis.navigator??={},globalThis.navigator.platform??="",globalThis.navigator.userAgent??="",Promise.withResolvers===void 0&&(Promise.withResolvers=function(){let t,e;return{promise:new Promise((i,a)=>{t=i,e=a}),resolve:t,reject:e}}),Promise.try===void 0&&(Promise.try=function(t,...e){return new Promise(i=>i(t(...e)))}),Map.prototype.getOrInsertComputed===void 0&&Object.defineProperty(Map.prototype,"getOrInsertComputed",{value(t,e){if(this.has(t))return this.get(t);let i=e(t);return this.set(t,i),i},writable:!0,configurable:!0}),Map.prototype.getOrInsert===void 0&&Object.defineProperty(Map.prototype,"getOrInsert",{value(t,e){return this.has(t)?this.get(t):(this.set(t,e),e)},writable:!0,configurable:!0}),Uint8Array.prototype.toHex===void 0&&Object.defineProperty(Uint8Array.prototype,"toHex",{value(){let t="";for(let e=0;e<this.length;e++)t+=this[e].toString(16).padStart(2,"0");return t},writable:!0,configurable:!0}),Math.sumPrecise===void 0&&Object.defineProperty(Math,"sumPrecise",{value(t){let e=0;for(let i of t)e+=i;return e},writable:!0,configurable:!0}),typeof ReadableStream<"u"&&ReadableStream.prototype[Symbol.asyncIterator]===void 0){let t=d(function({preventCancel:e=!1}={}){let i=this.getReader(),a=!1,s=Promise.resolve(),n=d(()=>a?Promise.resolve({value:void 0,done:!0}):i.read().then(l=>(l.done&&(a=!0,i.releaseLock()),l),l=>{throw a=!0,i.releaseLock(),l}),"next"),r=d(l=>{if(a)return Promise.resolve({value:l,done:!0});if(a=!0,e)return i.releaseLock(),Promise.resolve({value:l,done:!0});let o=i.cancel(l);return i.releaseLock(),o.then(()=>({value:l,done:!0}))},"doReturn");return{next(){return s=s.then(n,n)},return(l){return s=s.then(()=>r(l),()=>r(l))},[Symbol.asyncIterator](){return this}}},"asyncIterator");for(let e of[Symbol.asyncIterator,"values"])Object.defineProperty(ReadableStream.prototype,e,{value:t,writable:!0,configurable:!0})}zg=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Ds=[1/0,1/0,-1/0,-1/0],Co=new Float32Array(Ds),pn=[.001,0,0,.001,0,0],Zu=.35/1.35,mn="http://www.w3.org/2000/svg",mi={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},Q1="pdfjs_internal_editor_",Na={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},Ug={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Ta={TRIANGLES:1,LATTICE:2,PATCH:3},Z1={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},pi={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},tp={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26,RICHMEDIA:27},uh={GROUP:"Group",REPLY:"R"},td={PLAY_OR_RESUME:0,STOP:1,PAUSE:2,RESUME:3,PLAY:4},De={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},Ra={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},Dn={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},ep={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},Gg={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},$g={O:"PageOpen",C:"PageClose"},zc={ERRORS:0,WARNINGS:1,INFOS:5},T={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},Ee={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},co={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},Uc=zc.WARNINGS;d(Wg,"setVerbosityLevel$1");d(de,"info$1");d(E,"warn$1");d(te,"unreachable$1");d(Le,"assert$1");d(Vg,"_isValidProtocol$1");d(Io,"createValidAbsoluteUrl$1");d(Kg,"stripPath$1");d(ht,"shadow$1");Li=d(function(){function e(i,a){this.message=i,this.name=a}return d(e,"BaseException"),e.prototype=Error(),e.constructor=e,e},"BaseExceptionClosure")(),hs=class extends Li{static{d(this,"PasswordException$1")}constructor(t,e){super(t,"PasswordException"),this.code=e}},xf=class extends Li{static{d(this,"UnknownErrorException$1")}constructor(t,e){super(t,"UnknownErrorException"),this.details=e}},cl=class extends Li{static{d(this,"InvalidPDFException$1")}constructor(t){super(t,"InvalidPDFException")}},ed=class extends Li{static{d(this,"ResponseException$1")}constructor(t,e,i){super(t,"ResponseException"),this.status=e,this.missing=i}},V=class extends Li{static{d(this,"FormatError$1")}constructor(t){super(t,"FormatError")}},yi=class extends Li{static{d(this,"AbortException$1")}constructor(t){super(t,"AbortException")}};d(Bi,"bytesToString$1");d(Be,"stringToBytes$1");Ni=class{static{d(this,"FeatureTest$1")}static get isLittleEndian(){let t=new Uint8Array(4);t[0]=1;let e=new Uint32Array(t.buffer,0,1);return ht(this,"isLittleEndian",e[0]===1)}static get isOffscreenCanvasSupported(){return ht(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return ht(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return ht(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return ht(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){let{platform:t,userAgent:e}=navigator;return ht(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")})}static get isCanvasFilterSupported(){let t;return this.isOffscreenCanvasSupported&&(t=new OffscreenCanvas(1,1).getContext("2d")),ht(this,"isCanvasFilterSupported",t?.filter!==void 0)}static get isAlphaColorInputSupported(){return ht(this,"isAlphaColorInputSupported",!1)}static get isBackdropFilterSupported(){return ht(this,"isBackdropFilterSupported",typeof CSS<"u"&&CSS.supports("backdrop-filter","blur(1px)"))}},oe=class{static{d(this,"Util$1")}static get hexNums(){return ht(this,"hexNums",Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")))}static makeHexColor(t,e,i){return`#${this.hexNums[t]}${this.hexNums[e]}${this.hexNums[i]}`}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static multiplyByDOMMatrix(t,e){return[t[0]*e.a+t[2]*e.b,t[1]*e.a+t[3]*e.b,t[0]*e.c+t[2]*e.d,t[1]*e.c+t[3]*e.d,t[0]*e.e+t[2]*e.f+t[4],t[1]*e.e+t[3]*e.f+t[5]]}static applyTransform(t,e,i=0){let a=t[i],s=t[i+1];t[i]=a*e[0]+s*e[2]+e[4],t[i+1]=a*e[1]+s*e[3]+e[5]}static applyTransformToBezier(t,e,i=0){let a=e[0],s=e[1],n=e[2],r=e[3],l=e[4],o=e[5];for(let f=0;f<6;f+=2){let h=t[i+f],c=t[i+f+1];t[i+f]=h*a+c*n+l,t[i+f+1]=h*s+c*r+o}}static applyInverseTransform(t,e){let i=t[0],a=t[1],s=e[0]*e[3]-e[1]*e[2];t[0]=(i*e[3]-a*e[2]+e[2]*e[5]-e[4]*e[3])/s,t[1]=(-i*e[1]+a*e[0]+e[4]*e[1]-e[5]*e[0])/s}static axialAlignedBoundingBox(t,e,i){let a=e[0],s=e[1],n=e[2],r=e[3],l=e[4],o=e[5],f=t[0],h=t[1],c=t[2],u=t[3],p=a*f+l,m=p,g=a*c+l,b=g,w=r*h+o,v=w,y=r*u+o,x=y;if(s!==0||n!==0){let q=s*f,j=s*c,A=n*h,S=n*u;p+=A,b+=A,g+=S,m+=S,w+=q,x+=q,y+=j,v+=j}i[0]=Math.min(i[0],p,g,m,b),i[1]=Math.min(i[1],w,y,v,x),i[2]=Math.max(i[2],p,g,m,b),i[3]=Math.max(i[3],w,y,v,x)}static inverseTransform(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t,e){let i=t[0],a=t[1],s=t[2],n=t[3],r=i**2+a**2,l=i*s+a*n,o=s**2+n**2,f=(r+o)/2,h=Math.sqrt(f**2-(r*o-l**2));e[0]=Math.sqrt(f+h||1),e[1]=Math.sqrt(f-h||1)}static normalizeRect(t){let e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){let i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>a)return null;let s=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),n=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return s>n?null:[i,s,a,n]}static pointBoundingBox(t,e,i){i[0]=Math.min(i[0],t),i[1]=Math.min(i[1],e),i[2]=Math.max(i[2],t),i[3]=Math.max(i[3],e)}static rectBoundingBox(t,e,i,a,s){s[0]=Math.min(s[0],t,i),s[1]=Math.min(s[1],e,a),s[2]=Math.max(s[2],t,i),s[3]=Math.max(s[3],e,a)}static#t(t,e,i,a,s,n,r,l,o,f){if(o<=0||o>=1)return;let h=1-o,c=o*o,u=c*o,p=h*(h*(h*t+3*o*e)+3*c*i)+u*a,m=h*(h*(h*s+3*o*n)+3*c*r)+u*l;f[0]=Math.min(f[0],p),f[1]=Math.min(f[1],m),f[2]=Math.max(f[2],p),f[3]=Math.max(f[3],m)}static#e(t,e,i,a,s,n,r,l,o,f,h,c){if(Math.abs(o)<1e-12){Math.abs(f)>=1e-12&&this.#t(t,e,i,a,s,n,r,l,-h/f,c);return}let u=f**2-4*h*o;if(u<0)return;let p=Math.sqrt(u),m=2*o;this.#t(t,e,i,a,s,n,r,l,(-f+p)/m,c),this.#t(t,e,i,a,s,n,r,l,(-f-p)/m,c)}static bezierBoundingBox(t,e,i,a,s,n,r,l,o){o[0]=Math.min(o[0],t,r),o[1]=Math.min(o[1],e,l),o[2]=Math.max(o[2],t,r),o[3]=Math.max(o[3],e,l),this.#e(t,i,s,r,e,a,n,l,3*(-t+3*(i-s)+r),6*(t-2*i+s),3*(i-t),o),this.#e(t,i,s,r,e,a,n,l,3*(-e+3*(a-n)+l),6*(e-2*a+n),3*(a-e),o)}};d(sr,"stringToUTF8String$1");d(dh,"utf8StringToString");d(jn,"isArrayEqual");Af=null,id=null;d(Xg,"normalizeUnicode$1");d(Yg,"_isValidExplicitDest$1");Ps=d(()=>[],"makeArr$1"),Jg=d(()=>new Map,"makeMap$1"),Qg=d(()=>Object.create(null),"makeObj$1"),ip=d(()=>new Set,"makeSet$1");typeof Iterator.prototype.join!="function"&&(Iterator.prototype.join=function(t){return[...this].join(t)});Zg=Symbol("CIRCULAR_REF"),ki=Symbol("EOF"),ph=new Map,mh=new Map,Or=new Map;d(tb,"clearPrimitiveCaches");Z=class ap{static{d(this,"Name")}constructor(e){this.name=e}static get(e){let i=mh.get(e);return i||(i=new ap(e),mh.set(e,i)),i}},hi=class sp{static{d(this,"Cmd")}constructor(e){this.cmd=e}static get(e){let i=ph.get(e);return i||(i=new sp(e),ph.set(e,i)),i}},np=d(()=>np,"nonSerializable"),_=class za{static{d(this,"Dict")}__nonSerializable__=np;#t=new Map;objId=null;suppressEncryption=!1;xref;constructor(e=null){this.xref=e}assignXref(e){this.xref=e}get size(){return this.#t.size}#e(e,i,a){let s=this.#t.get(i);return s===void 0&&a!==void 0&&(s=this.#t.get(a)),s instanceof it&&this.xref?e?this.xref.fetchAsync(s,this.suppressEncryption):this.xref.fetch(s,this.suppressEncryption):s}get(e,i){return this.#e(!1,e,i)}async getAsync(e,i){return this.#e(!0,e,i)}getArray(e,i){let a=this.#e(!1,e,i);if(Array.isArray(a)){a=a.slice();for(let s=0,n=a.length;s<n;s++)a[s]instanceof it&&this.xref&&(a[s]=this.xref.fetch(a[s],this.suppressEncryption))}return a}getRaw(e){return this.#t.get(e)}getKeys(){return this.#t.keys()}getRawValues(){return this.#t.values()}getRawEntries(){return this.#t.entries()}set(e,i){this.#t.set(e,i)}setIfNotExists(e,i){this.has(e)||this.set(e,i)}setIfNumber(e,i){typeof i=="number"&&this.set(e,i)}setIfArray(e,i){(Array.isArray(i)||ArrayBuffer.isView(i))&&this.set(e,i)}setIfDefined(e,i){i!=null&&this.set(e,i)}setIfName(e,i){typeof i=="string"?this.set(e,Z.get(i)):i instanceof Z&&this.set(e,i)}setIfDict(e,i){i instanceof za&&this.set(e,i)}has(e){return this.#t.has(e)}*[Symbol.iterator](){for(let[e,i]of this.#t)yield[e,i instanceof it&&this.xref?this.xref.fetch(i,this.suppressEncryption):i]}static get empty(){let e=new za(null);return e.set=(i,a)=>{te("Should not call `set` on the empty dictionary.")},ht(this,"empty",e)}static merge({xref:e,dictArray:i,mergeSubDicts:a=!1}){let s=new za(e),n=new Map;for(let r of i)if(r instanceof za)for(let[l,o]of r.getRawEntries()){let f=n.getOrInsertComputed(l,Ps);(!f.length||a&&o instanceof za)&&f.push(o)}for(let[r,l]of n){if(l.length===1||!(l[0]instanceof za)){s.set(r,l[0]);continue}let o=new za(e);for(let f of l)for(let[h,c]of f.getRawEntries())o.setIfNotExists(h,c);o.size>0&&s.set(r,o)}return n.clear(),s.size>0?s:za.empty}clone(){let e=new za(this.xref);for(let[i,a]of this.#t)e.set(i,a);return e}delete(e){this.#t.delete(e)}},it=class gh{static{d(this,"Ref")}#t;constructor(e,i,a){this.#t=e,this.num=i,this.gen=a}toString(){return this.#t}static fromString(e){let i=Or.get(e);if(i)return i;let a=/^([1-9]\d*)R([1-9]\d*)?$/.exec(e);return a?(i=new gh(e,parseInt(a[1],10),a[2]?parseInt(a[2],10):0),Or.set(e,i),i):null}static get(e,i){let a=i===0?`${e}R`:`${e}R${i}`,s=Or.get(a);return s||(s=new gh(a,e,i),Or.set(a,s)),s}},we=class{static{d(this,"RefSet")}#t=new Set;constructor(t=null){if(t)for(let e of t)this.#t.add(e)}has(t){return this.#t.has(t.toString())}put(t){this.#t.add(t.toString())}remove(t){this.#t.delete(t.toString())}[Symbol.iterator](){return this.#t.keys()}clear(){this.#t.clear()}},ii=class{static{d(this,"RefMap")}#t=new Map;get size(){return this.#t.size}get(t){return this.#t.get(t.toString())}has(t){return this.#t.has(t.toString())}put(t,e){this.#t.set(t.toString(),e)}putAlias(t,e){this.#t.set(t.toString(),this.get(e))}getOrPutComputed(t,e){let i=this.#t,a=t.toString();return i.has(a)||i.set(a,e(t)),i.get(a)}[Symbol.iterator](){return this.#t.values()}clear(){this.#t.clear()}*values(){yield*this.#t.values()}*items(){for(let[t,e]of this.#t)yield[it.fromString(t),e]}*keys(){for(let t of this.#t.keys())yield it.fromString(t)}};d(Ht,"isName");d(ci,"isCmd");d(nr,"isDict");d(rr,"isRefsEqual");Bt=class{static{d(this,"BaseStream")}get length(){te("Abstract getter `length` accessed")}get isEmpty(){te("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return ht(this,"isDataLoaded",!0)}getByte(){te("Abstract method `getByte` called")}getBytes(t){te("Abstract method `getBytes` called")}async getImageData(t,e){return this.getBytes(t,e)}async asyncGetBytes(){te("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get isImageStream(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(t,e){return null}peekByte(){let t=this.getByte();return t!==-1&&this.pos--,t}peekBytes(t){let e=this.getBytes(t);return this.pos-=e.length,e}getUint16(){let t=this.getByte(),e=this.getByte();return t===-1||e===-1?-1:(t<<8)+e}getInt32(){let t=this.getByte(),e=this.getByte(),i=this.getByte(),a=this.getByte();return(t<<24)+(e<<16)+(i<<8)+a}getByteRange(t,e){te("Abstract method `getByteRange` called")}getString(t){return Bi(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){te("Abstract method `reset` called")}moveStart(){te("Abstract method `moveStart` called")}makeSubStream(t,e,i=null){te("Abstract method `makeSubStream` called")}clone(){te("Abstract method `clone` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}},bh=new RegExp("\\p{Cc}","u");d(eb,"isCSSString$1");d(ad,"serializeFontFamily$1");d(ib,"isAscii");d(ui,"stringToAsciiOrUTF16BE");d(ab,"stringToUTF16HexString");d(rp,"stringToUTF16String");sb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],nb=Object.create(null);d(Wt,"stringToPDFString");lp=/^[1-9]\.\d$/,sd=2**31-1,wa=[1,0,0,1,0,0],wh=["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],yh=["ExtGState","Font","Properties","XObject"];d(Re,"getLookupTableFactory");xe=class extends Li{static{d(this,"MissingDataException")}constructor(t,e){super(`Missing data [${t}, ${e})`,"MissingDataException"),this.begin=t,this.end=e}},kh=class extends Li{static{d(this,"ParserEOFException")}constructor(t){super(t,"ParserEOFException")}},Es=class extends Li{static{d(this,"XRefEntryException")}constructor(t){super(t,"XRefEntryException")}},gn=class extends Li{static{d(this,"XRefParseException")}constructor(t){super(t,"XRefParseException")}};d(op,"arrayBuffersToBytes");d(nd,"fetchBinaryData");d(gi,"getInheritableProperty");d(rb,"getParentToUpdate");d(vh,"deepCompare");Sf=".C.CC.CCC.CD.D.DC.DCC.DCCC.CM..X.XX.XXX.XL.L.LX.LXX.LXXX.XC..I.II.III.IV.V.VI.VII.VIII.IX".split(".");d(lb,"toRomanNumerals");d(ya,"isWhiteSpace");d(ob,"isBooleanArray");d(Ne,"isNumberArray");d(os,"lookupMatrix");d(ul,"lookupRect");d(Ya,"lookupNormalRect");d(fp,"parseXFAPath");d(Gc,"escapePDFName");d(lr,"escapeString");d(jh,"_collectJS");d(rd,"_collectAction");d($o,"collectActions");fb={60:"<",62:">",38:"&",34:""",39:"'"};d(hb,"codePointIter");d(er,"encodeToXmlString");d(qh,"validateFontName");d(cb,"normalizeCSSFontFamily");d(ub,"validateCSSFont");d(hp,"recoverJsURL");d(qe,"numberToString");d($c,"getNewAnnotationsMap");d(Bs,"getModificationDate");d(To,"getRotationMatrix");d(ld,"getSizeInBytes");cp=new Uint8Array(new Uint32Array([1]).buffer)[0]===1?4278190080:255,db=~cp,Aa=class{static{d(this,"QCMS")}static#t=null;static _memory=null;static _destBuffer=null;static _destOffset=0;static _keepAlpha=!1;static get _memoryArray(){let t=this.#t;return t?.byteLength?t:this.#t=new Uint8Array(this._memory.buffer)}};d(pb,"copy_result");Cf=Object.freeze({RGB8:0,0:"RGB8",RGBA8:1,1:"RGBA8",BGRA8:2,2:"BGRA8",Gray8:3,3:"Gray8",GrayA8:4,4:"GrayA8",CMYK:5,5:"CMYK"}),mb=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});d(od,"qcms_convert_array");d(gb,"qcms_convert_four");d(bb,"qcms_convert_one");d(wb,"qcms_convert_three");d(yb,"qcms_drop_transformer");d(kb,"qcms_transformer_from_memory");d(vb,"__wbg_get_imports");d(jb,"getStringFromWasm0");Hr=null;d(up,"getUint8ArrayMemory0");d(dp,"passArray8ToWasm0");uo=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});uo.decode();If=0;d(qb,"decodeText");Wc=0;d(xb,"__wbg_finalize_init");d(Ab,"initSync");d(Fe,"MathClamp$1");d(Sb,"resizeRgbImage");d(Cb,"resizeRgbaImage");d(Ib,"copyRgbaImage");d(pp,"isDefaultDecodeHelper");Hi=class xh{static{d(this,"ColorSpace")}static#t=new Uint8ClampedArray(3);constructor(e,i){this.name=e,this.numComps=i}getRgb(e,i,a=new Uint8ClampedArray(3)){return this.getRgbItem(e,i,a,0),a}getRgbHex(e,i){let a=this.getRgb(e,i,xh.#t);return oe.makeHexColor(a[0],a[1],a[2])}getRgbItem(e,i,a,s){te("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,i,a,s,n,r,l){te("Should not call ColorSpace.getRgbBuffer")}getRgbItems(e,i,a,s,n){let{numComps:r}=this;for(let l=0,o=0;l<i;l++,o+=r)this.getRgbItem(e,o,a,s),s+=3+n}isPassthrough(e){return!1}isDefaultDecode(e,i){return xh.isDefaultDecode(e,this.numComps)}fillRgb(e,i,a,s,n,r,l,o,f){let h=i*a,c=null,u=1<<l,p=a!==n||i!==s;if(this.isPassthrough(l))c=o;else if(this.numComps===1&&h>u&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){let m=l<=8?new Uint8Array(u):new Uint16Array(u);for(let b=0;b<u;b++)m[b]=b;let g=new Uint8ClampedArray(u*3);if(this.getRgbBuffer(m,0,u,g,0,l,0),p){c=new Uint8Array(h*3);let b=0;for(let w=0;w<h;++w){let v=o[w]*3;c[b++]=g[v],c[b++]=g[v+1],c[b++]=g[v+2]}}else{let b=0;for(let w=0;w<h;++w){let v=o[w]*3;e[b++]=g[v],e[b++]=g[v+1],e[b++]=g[v+2],b+=f}}}else p?(c=new Uint8ClampedArray(h*3),this.getRgbBuffer(o,0,h,c,0,l,0)):this.getRgbBuffer(o,0,s*r,e,0,l,f);if(c)if(p)Sb(c,e,i,a,s,n,f);else{let m=0,g=0;for(let b=0,w=s*r;b<w;b++)e[m++]=c[g++],e[m++]=c[g++],e[m++]=c[g++],m+=f}}get usesZeroToOneRange(){return ht(this,"usesZeroToOneRange",!0)}static isDefaultDecode(e,i){if(pp(e,i*2))return!0;for(let a=0,s=e.length;a<s;a+=2)if(e[a]!==0||e[a+1]!==1)return!1;return!0}},Tb=class extends Hi{static{d(this,"AlternateCS")}constructor(t,e,i){super("Alternate",t),this.base=e,this.tintFn=i,this.tmpBuf=new Float32Array(e.numComps)}getRgbItem(t,e,i,a){let s=this.tmpBuf;this.tintFn(t,e,s,0),this.base.getRgbItem(s,0,i,a)}getRgbItems(t,e,i,a,s){let{base:n,numComps:r,tintFn:l}=this,o=n.numComps,f=new Float32Array(e*o);for(let h=0,c=0,u=0;h<e;h++)l(t,c,f,u),c+=r,u+=o;n.getRgbItems(f,e,i,a,s)}getRgbBuffer(t,e,i,a,s,n,r){let l=this.tintFn,o=this.base,f=1/((1<<n)-1),h=o.numComps,c=o.usesZeroToOneRange,u=(o.isPassthrough(8)||!c)&&r===0,p=u?s:0,m=u?a:new Uint8ClampedArray(h*i),g=this.numComps,b=new Float32Array(g),w=new Float32Array(h),v,y;for(v=0;v<i;v++){for(y=0;y<g;y++)b[y]=t[e++]*f;if(l(b,0,w,0),c)for(y=0;y<h;y++)m[p++]=w[y]*255;else o.getRgbItem(w,0,m,p),p+=h}u||o.getRgbBuffer(m,0,i,a,s,8,r)}},fd=class extends Hi{static{d(this,"PatternCS")}constructor(t){super("Pattern",null),this.base=t}isDefaultDecode(t,e){te("Should not call PatternCS.isDefaultDecode")}},Mb=class extends Hi{static{d(this,"IndexedCS")}#t;constructor(t,e,i){super("Indexed",1),this.highVal=e;let a=e+1,s=t.numComps*a,n=new Uint8Array(s);if(i instanceof Bt)n.set(i.getBytes(s));else if(typeof i=="string")for(let r=0;r<s;++r)n[r]=i.charCodeAt(r);else throw new V(`IndexedCS - unrecognized lookup table: ${i}`);this.#t=new Uint8ClampedArray(a*3),t.getRgbBuffer(n,0,a,this.#t,0,8,0)}getRgbItem(t,e,i,a){let s=this.#t,n=Fe(Math.round(t[e]),0,this.highVal)*3;i[a]=s[n],i[a+1]=s[n+1],i[a+2]=s[n+2]}getRgbBuffer(t,e,i,a,s,n,r){let{highVal:l}=this,o=this.#t;for(let f=0;f<i;++f){let h=Fe(Math.round(t[e++]),0,l)*3;a[s++]=o[h],a[s++]=o[h+1],a[s++]=o[h+2],s+=r}}isDefaultDecode(t,e){return pp(t,2)?!0:!Number.isInteger(e)||e<1?(E("Bits per component is not correct"),!0):t[0]===0&&t[1]===(1<<e)-1}},_b=class extends Hi{static{d(this,"DeviceGrayCS")}constructor(){super("DeviceGray",1)}getRgbItem(t,e,i,a){let s=t[e]*255;i[a]=i[a+1]=i[a+2]=s}getRgbBuffer(t,e,i,a,s,n,r){let l=255/((1<<n)-1),o=e,f=s;for(let h=0;h<i;++h){let c=l*t[o++];a[f++]=c,a[f++]=c,a[f++]=c,f+=r}}},Eb=class extends Hi{static{d(this,"DeviceRgbCS")}constructor(){super("DeviceRGB",3)}getRgbItem(t,e,i,a){i[a]=t[e]*255,i[a+1]=t[e+1]*255,i[a+2]=t[e+2]*255}getRgbBuffer(t,e,i,a,s,n,r){if(n===8&&r===0){a.set(t.subarray(e,e+i*3),s);return}let l=255/((1<<n)-1),o=e,f=s;for(let h=0;h<i;++h)a[f++]=l*t[o++],a[f++]=l*t[o++],a[f++]=l*t[o++],f+=r}isPassthrough(t){return t===8}},Fb=class extends Hi{static{d(this,"DeviceRgbaCS")}constructor(){super("DeviceRGBA",4)}isPassthrough(t){return t===8}fillRgb(t,e,i,a,s,n,r,l,o){i!==s||e!==a?Cb(l,t,e,i,a,s,o):Ib(l,t,o)}},mp=class extends Hi{static{d(this,"DeviceCmykCS")}constructor(){super("DeviceCMYK",4)}#t(t,e,i,a,s){let n=t[e]*i,r=t[e+1]*i,l=t[e+2]*i,o=t[e+3]*i;a[s]=255+n*(-4.387332384609988*n+54.48615194189176*r+18.82290502165302*l+212.25662451639585*o+-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*l+-17.873870861415444*o-5.497006427196366)+l*(-2.5217340131683033*l-21.248923337353073*o+17.5119270841813)+o*(-21.86122147463605*o-189.48180835922747),a[s+1]=255+n*(8.841041422036149*n+60.118027045597366*r+6.871425592049007*l+31.159100130055922*o+-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*l+131.35250912493976*o-190.9453302588951)+l*(4.444339102852739*l+9.8632861493405*o-24.86741582555878)+o*(-20.737325471181034*o-187.80453709719578),a[s+2]=255+n*(.8842522430003296*n+8.078677503112928*r+30.89978309703729*l-.23883238689178934*o+-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*l+50.606957656360734*o-112.23884253719248)+l*(.03296041114873217*l+115.60384449646641*o+-193.58209356861505)+o*(-22.33816807309886*o-180.12613974708367)}getRgbItem(t,e,i,a){this.#t(t,e,1,i,a)}getRgbBuffer(t,e,i,a,s,n,r){let l=1/((1<<n)-1);for(let o=0;o<i;o++)this.#t(t,e,l,a,s),e+=4,s+=3+r}},Rb=class extends Hi{static{d(this,"CalGrayCS")}constructor(t,e,i){if(super("CalGray",1),!t)throw new V("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=t,[this.XB,this.YB,this.ZB]=e||[0,0,0],this.G=i||1,this.XW<0||this.ZW<0||this.YW!==1)throw new V(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(de(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),(this.XB!==0||this.YB!==0||this.ZB!==0)&&E(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(de(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#t(t,e,i,a,s){let n=(t[e]*s)**this.G,r=this.YW*n,l=Math.max(295.8*r**.3333333333333333-40.8,0);i[a]=l,i[a+1]=l,i[a+2]=l}getRgbItem(t,e,i,a){this.#t(t,e,i,a,1)}getRgbBuffer(t,e,i,a,s,n,r){let l=1/((1<<n)-1);for(let o=0;o<i;++o)this.#t(t,e,a,s,l),e+=1,s+=3+r}},Db=class Di extends Hi{static{d(this,"CalRGBCS")}static#t=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#e=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#i=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#a=new Float32Array([1,1,1]);static#s=new Float32Array(3);static#n=new Float32Array(3);static#r=new Float32Array(3);static#l=(24/116)**3/8;constructor(e,i,a,s){if(super("CalRGB",3),!e)throw new V("WhitePoint missing - required for color space CalRGB");let[n,r,l]=this.whitePoint=e,[o,f,h]=this.blackPoint=i||new Float32Array(3);if([this.GR,this.GG,this.GB]=a||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=s||new Float32Array([1,0,0,0,1,0,0,0,1]),n<0||l<0||r!==1)throw new V(`Invalid WhitePoint components for ${this.name}, no fallback available`);(o<0||f<0||h<0)&&(de(`Invalid BlackPoint for ${this.name} [${o}, ${f}, ${h}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(de(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#o(e,i,a){a[0]=e[0]*i[0]+e[1]*i[1]+e[2]*i[2],a[1]=e[3]*i[0]+e[4]*i[1]+e[5]*i[2],a[2]=e[6]*i[0]+e[7]*i[1]+e[8]*i[2]}#f(e,i,a){a[0]=i[0]*1/e[0],a[1]=i[1]*1/e[1],a[2]=i[2]*1/e[2]}#u(e,i,a){a[0]=i[0]*.95047/e[0],a[1]=i[1]*1/e[1],a[2]=i[2]*1.08883/e[2]}#h(e){return e<=.0031308?Fe(12.92*e,0,1):e>=.99554525?1:Fe(1.055*e**(1/2.4)-.055,0,1)}#d(e){return e<0?-this.#d(-e):e>8?((e+16)/116)**3:e*Di.#l}#p(e,i,a){if(e[0]===0&&e[1]===0&&e[2]===0){a[0]=i[0],a[1]=i[1],a[2]=i[2];return}let s=this.#d(0),n=s,r=this.#d(e[0]),l=s,o=this.#d(e[1]),f=s,h=this.#d(e[2]),c=(1-n)/(1-r),u=1-c,p=(1-l)/(1-o),m=1-p,g=(1-f)/(1-h),b=1-g;a[0]=i[0]*c+u,a[1]=i[1]*p+m,a[2]=i[2]*g+b}#g(e,i,a){if(e[0]===1&&e[2]===1){a[0]=i[0],a[1]=i[1],a[2]=i[2];return}let s=a;this.#o(Di.#t,i,s);let n=Di.#s;this.#f(e,s,n),this.#o(Di.#e,n,a)}#c(e,i,a){let s=a;this.#o(Di.#t,i,s);let n=Di.#s;this.#u(e,s,n),this.#o(Di.#e,n,a)}#m(e,i,a,s,n){let r=Fe(e[i]*n,0,1),l=Fe(e[i+1]*n,0,1),o=Fe(e[i+2]*n,0,1),f=r===1?1:r**this.GR,h=l===1?1:l**this.GG,c=o===1?1:o**this.GB,u=this.MXA*f+this.MXB*h+this.MXC*c,p=this.MYA*f+this.MYB*h+this.MYC*c,m=this.MZA*f+this.MZB*h+this.MZC*c,g=Di.#n;g[0]=u,g[1]=p,g[2]=m;let b=Di.#r;this.#g(this.whitePoint,g,b);let w=Di.#n;this.#p(this.blackPoint,b,w);let v=Di.#r;this.#c(Di.#a,w,v);let y=Di.#n;this.#o(Di.#i,v,y),a[s]=this.#h(y[0])*255,a[s+1]=this.#h(y[1])*255,a[s+2]=this.#h(y[2])*255}getRgbItem(e,i,a,s){this.#m(e,i,a,s,1)}getRgbBuffer(e,i,a,s,n,r,l){let o=1/((1<<r)-1);for(let f=0;f<a;++f)this.#m(e,i,s,n,o),i+=3,n+=3+l}},Pb=class extends Hi{static{d(this,"LabCS")}constructor(t,e,i){if(super("Lab",3),!t)throw new V("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=t,[this.amin,this.amax,this.bmin,this.bmax]=i||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=e||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new V("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&(de("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(de("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#t(t){return t>=6/29?t**3:108/841*(t-4/29)}#e(t,e,i,a){return i+t*(a-i)/e}#i(t,e,i,a,s){let n=t[e],r=t[e+1],l=t[e+2];i!==!1&&(n=this.#e(n,i,0,100),r=this.#e(r,i,this.amin,this.amax),l=this.#e(l,i,this.bmin,this.bmax)),r>this.amax?r=this.amax:r<this.amin&&(r=this.amin),l>this.bmax?l=this.bmax:l<this.bmin&&(l=this.bmin);let o=(n+16)/116,f=o+r/500,h=o-l/200,c=this.XW*this.#t(f),u=this.YW*this.#t(o),p=this.ZW*this.#t(h),m,g,b;this.ZW<1?(m=c*3.1339+u*-1.617+p*-.4906,g=c*-.9785+u*1.916+p*.0333,b=c*.072+u*-.229+p*1.4057):(m=c*3.2406+u*-1.5372+p*-.4986,g=c*-.9689+u*1.8758+p*.0415,b=c*.0557+u*-.204+p*1.057),a[s]=Math.sqrt(m)*255,a[s+1]=Math.sqrt(g)*255,a[s+2]=Math.sqrt(b)*255}getRgbItem(t,e,i,a){this.#i(t,e,!1,i,a)}getRgbBuffer(t,e,i,a,s,n,r){let l=(1<<n)-1;for(let o=0;o<i;o++)this.#i(t,e,l,a,s),e+=3,s+=3+r}isDefaultDecode(t,e){return!0}get usesZeroToOneRange(){return ht(this,"usesZeroToOneRange",!1)}};d(gp,"fetchSync");dl=class po extends Hi{static{d(this,"IccColorSpace")}#t;#e;static#i=!0;static#a=null;static#s=null;constructor(e,i,a){if(!po.isUsable)throw Error("No ICC color space support");super(i,a);let s;switch(a){case 1:s=Cf.Gray8,this.#e=(n,r)=>bb(this.#t,n[r]*255);break;case 3:s=Cf.RGB8,this.#e=(n,r)=>wb(this.#t,n[r]*255,n[r+1]*255,n[r+2]*255);break;case 4:s=Cf.CMYK,this.#e=(n,r)=>gb(this.#t,n[r]*255,n[r+1]*255,n[r+2]*255,n[r+3]*255);break;default:throw Error(`Unsupported number of components: ${a}`)}if(this.#t=kb(e,s,mb.Perceptual),!this.#t)throw Error("Failed to create ICC color space");po.#s||=new FinalizationRegistry(n=>{yb(n)}),po.#s.register(this,this.#t)}getRgbHex(e,i){let a=this.#e(e,i);return oe.makeHexColor(a>>16,a>>8&255,a&255)}getRgbItem(e,i,a,s){let n=this.#e(e,i);a[s]=n>>16,a[s+1]=n>>8&255,a[s+2]=n&255}getRgbItems(e,i,a,s,n){let{numComps:r}=this,l=i*r,o=new Uint8Array(l);for(let f=0;f<l;f++)o[f]=e[f]*255;Aa._destBuffer=a,Aa._destOffset=s,Aa._keepAlpha=n===1,od(this.#t,o,n===1),Aa._destBuffer=null}getRgbBuffer(e,i,a,s,n,r,l){if(e=e.subarray(i,i+a*this.numComps),r!==8){let o=255/((1<<r)-1);for(let f=0,h=e.length;f<h;f++)e[f]*=o}Aa._destBuffer=s,Aa._destOffset=n,Aa._keepAlpha=l===1&&s.buffer!==e.buffer,od(this.#t,e,l===1),Aa._destBuffer=null}static setOptions({useWasm:e,useWorkerFetch:i,wasmUrl:a}){i?(this.#i=e,this.#a=a):this.#i=!1}static get isUsable(){let e=!1;if(this.#i)if(this.#a)try{this._module=Ab({module:gp(`${this.#a}qcms_bg.wasm`)}),e=!!this._module,Aa._memory=this._module.memory}catch(i){E(`ICCBased color space: "${i}".`)}else E("No ICC color space support due to missing `wasmUrl` API option");return ht(this,"isUsable",e)}},Ah=class bp extends dl{static{d(this,"CmykICCBasedCS")}static#t;constructor(){let e=new Uint8Array(gp(`${bp.#t}CGATS001Compat-v2-micro.icc`));super(e,"DeviceCMYK",4)}static setOptions({iccUrl:e}){this.#t=e}static get isUsable(){let e=!1;return dl.isUsable&&(this.#t?e=!0:E("No CMYK ICC profile support due to missing `iccUrl` API option")),ht(this,"isUsable",e)}},Me=class Sh extends Bt{static{d(this,"Stream")}constructor(e,i,a,s){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=i||0,this.pos=this.start,this.end=i+a||this.bytes.length,this.dict=s}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){let i=this.pos,a=e?Math.min(i+e,this.end):this.end;return this.pos=a,this.bytes.subarray(i,a)}getByteRange(e,i){return e<0&&(e=0),i>this.end&&(i=this.end),this.bytes.subarray(e,i)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,i,a=null){return new Sh(this.bytes.buffer,e,i,a)}clone(){return new Sh(this.bytes.buffer,this.start,this.length,this.dict?.clone())}},qi=class extends Me{static{d(this,"StringStream")}constructor(t,e=null){super(Be(t),NaN,NaN,e)}},Ch=class extends Me{static{d(this,"NullStream")}constructor(){super(new Uint8Array)}},Bb=class extends Me{static{d(this,"ChunkedStream")}progressiveDataLength=0;_lastSuccessfulEnsureByteChunk=-1;_loadedChunks=new Set;constructor(t,e,i){super(new Uint8Array(t),0,t,null),this.chunkSize=e,this.numChunks=Math.ceil(t/e),this.manager=i}getMissingChunks(){let t=[];for(let e=0,i=this.numChunks;e<i;++e)this._loadedChunks.has(e)||t.push(e);return t}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(t,e){let i=this.chunkSize;if(t%i!==0)throw Error(`Bad begin offset: ${t}`);let a=t+e.byteLength;if(a%i!==0&&a!==this.bytes.length)throw Error(`Bad end offset: ${a}`);this.bytes.set(new Uint8Array(e),t);let s=Math.floor(t/i),n=Math.floor((a-1)/i)+1;for(let r=s;r<n;++r)this._loadedChunks.add(r)}onReceiveProgressiveData(t){let e=this.progressiveDataLength,i=Math.floor(e/this.chunkSize);this.bytes.set(new Uint8Array(t),e),e+=t.byteLength,this.progressiveDataLength=e;let a=e>=this.end?this.numChunks:Math.floor(e/this.chunkSize);for(let s=i;s<a;++s)this._loadedChunks.add(s)}ensureByte(t){if(t<this.progressiveDataLength)return;let e=Math.floor(t/this.chunkSize);if(!(e>this.numChunks||e===this._lastSuccessfulEnsureByteChunk)){if(!this._loadedChunks.has(e))throw new xe(t,t+1);this._lastSuccessfulEnsureByteChunk=e}}ensureRange(t,e){if(t>=e||e<=this.progressiveDataLength)return;let i=Math.floor(t/this.chunkSize);if(i>this.numChunks)return;let a=Math.min(Math.floor((e-1)/this.chunkSize)+1,this.numChunks);for(let s=i;s<a;++s)if(!this._loadedChunks.has(s))throw new xe(t,e)}nextEmptyChunk(t){let e=this.numChunks;for(let i=0;i<e;++i){let a=(t+i)%e;if(!this._loadedChunks.has(a))return a}return null}hasChunk(t){return this._loadedChunks.has(t)}getByte(){let t=this.pos;return t>=this.end?-1:(t>=this.progressiveDataLength&&this.ensureByte(t),this.bytes[this.pos++])}getBytes(t){let e=this.pos,i=t?Math.min(e+t,this.end):this.end;return i>this.progressiveDataLength&&this.ensureRange(e,i),this.pos=i,this.bytes.subarray(e,i)}getByteRange(t,e){return t<0&&(t=0),e>this.end&&(e=this.end),e>this.progressiveDataLength&&this.ensureRange(t,e),this.bytes.subarray(t,e)}makeSubStream(t,e,i=null){e?t+e>this.progressiveDataLength&&this.ensureRange(t,t+e):t>=this.progressiveDataLength&&this.ensureByte(t);function a(){}d(a,"ChunkedStreamSubstream"),a.prototype=Object.create(this),a.prototype.getMissingChunks=function(){let n=this.chunkSize,r=Math.floor(this.start/n),l=Math.floor((this.end-1)/n)+1,o=[];for(let f=r;f<l;++f)this._loadedChunks.has(f)||o.push(f);return o},Object.defineProperty(a.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||this.getMissingChunks().length===0},configurable:!0});let s=new a;return s.pos=s.start=t,s.end=t+e||this.end,s.dict=i,s}getBaseStreams(){return[this]}},Ob=class{static{d(this,"ChunkedStreamManager")}#t=!1;#e=0;#i=new Map;#a=Promise.withResolvers();_promisesByRequest=new Map;_requestsByChunk=new Map;constructor(t,e){this.length=e.length,this.chunkSize=e.rangeChunkSize,this.stream=new Bb(this.length,this.chunkSize,this),this.pdfStream=t,this.disableAutoFetch=e.disableAutoFetch,this.msgHandler=e.msgHandler}async sendRequest(t,e){let i=this.pdfStream.getRangeReader(t,e),a=[];for(;;){let{value:n,done:r}=await i.read();if(this.#t){a=null;return}if(r)break;a.push(n)}if(a.length===0&&this.disableAutoFetch)return;let s=op(a);a=null,this.onReceiveData({chunk:s.buffer,begin:t})}requestAllChunks(t=!1){if(!t){let e=this.stream.getMissingChunks();this._requestChunks(e)}return this.#a.promise}_requestChunks(t){let e=new Set;for(let n of t)this.stream.hasChunk(n)||e.add(n);if(e.size===0)return Promise.resolve();let i=this.#e++;this.#i.set(i,e);let a=Promise.withResolvers();this._promisesByRequest.set(i,a);let s=[];for(let n of e)this._requestsByChunk.getOrInsertComputed(n,()=>(s.push(n),[])).push(i);if(s.length>0){let n=this.groupChunks(s);for(let r of n){let l=r.beginChunk*this.chunkSize,o=Math.min(r.endChunk*this.chunkSize,this.length);this.sendRequest(l,o).catch(a.reject)}}return a.promise.catch(n=>{if(!this.#t)throw n})}getStream(){return this.stream}requestRange(t,e){e=Math.min(e,this.length);let i=this.getBeginChunk(t),a=this.getEndChunk(e),s=[];for(let n=i;n<a;++n)s.push(n);return this._requestChunks(s)}requestRanges(t=[]){let e=[];for(let i of t){let a=this.getBeginChunk(i.begin),s=this.getEndChunk(i.end);for(let n=a;n<s;++n)e.includes(n)||e.push(n)}return e.sort((i,a)=>i-a),this._requestChunks(e)}groupChunks(t){let e=[],i=-1,a=-1;for(let s=0,n=t.length;s<n;++s){let r=t[s];i<0&&(i=r),a>=0&&a+1!==r&&(e.push({beginChunk:i,endChunk:a+1}),i=r),s+1===t.length&&e.push({beginChunk:i,endChunk:r+1}),a=r}return e}onReceiveData(t){let{chunkSize:e,length:i,stream:a}=this,s=t.chunk,n=t.begin===void 0,r=n?a.progressiveDataLength:t.begin,l=r+s.byteLength,o=Math.floor(r/e),f=l<i?Math.floor(l/e):Math.ceil(l/e);n?a.onReceiveProgressiveData(s):a.onReceiveData(r,s),a.isDataLoaded&&this.#a.resolve(a);let h=[];for(let c=o;c<f;++c){let u=this._requestsByChunk.get(c);if(u){this._requestsByChunk.delete(c);for(let p of u){let m=this.#i.get(p);m.has(c)&&m.delete(c),!(m.size>0)&&h.push(p)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let c;if(a.numChunksLoaded===1){let u=a.numChunks-1;a.hasChunk(u)||(c=u)}else c=a.nextEmptyChunk(f);Number.isInteger(c)&&this._requestChunks([c])}for(let c of h){let u=this._promisesByRequest.get(c);this._promisesByRequest.delete(c),u.resolve()}this.msgHandler.send("DocProgress",{loaded:Fe(a.numChunksLoaded*e,a.progressiveDataLength,i),total:i})}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){this.#t=!0,this.pdfStream?.cancelAllRequests(t);for(let e of this._promisesByRequest.values())e.reject(t);this.#a.reject(t)}};d(wp,"convertToRGBA");d(Ih,"convertBlackAndWhiteToRGBA$1");d(Hb,"convertRGBToRGBA$1");d(Nb,"grayToRGBA");hd=2048,Ga=class Nr{static{d(this,"ImageResizer")}static#t=hd;static#e=Ni.isImageDecoderSupported;constructor(e,i){this._imgData=e,this._isMask=i}static get canUseImageDecoder(){return ht(this,"canUseImageDecoder",this.#e?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(e,i){if(e<=this.#t&&i<=this.#t)return!1;let{MAX_DIM:a}=this;if(e>a||i>a)return!0;let s=e*i;return this._hasMaxArea?s>this.MAX_AREA:s<this.#t**2?!1:this._areGoodDims(e,i)?(this.#t=Math.max(this.#t,Math.floor(Math.sqrt(e*i))),!1):(this.#t=this._guessMax(this.#t,a,128,0),s>(this.MAX_AREA=this.#t**2))}static getReducePower(e,i,a=1/0){if(!Number.isInteger(e)||e<=0||!Number.isInteger(i)||i<=0)return 0;let s=e*i;if(!this.needsToBeResized(e,i))return s>a?Math.ceil(Math.log2(s/a)):0;let{MAX_DIM:n,MAX_AREA:r}=this,l=Math.max(e/n,i/n,Math.sqrt(s/Math.min(a,r)));return Math.max(0,Math.ceil(Math.log2(l)))}static getReducePowerForJPX(e,i,a){return this.getReducePower(e,i,2**30/(a*4))}static get MAX_DIM(){return ht(this,"MAX_DIM",this._guessMax(hd,32768,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,ht(this,"MAX_AREA",this._guessMax(this.#t,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){e>=0&&(this._hasMaxArea=!0,ht(this,"MAX_AREA",e))}static setOptions({canvasMaxAreaInBytes:e=-1,isImageDecoderSupported:i=!1}){this._hasMaxArea||(this.MAX_AREA=e>>2),this.#e=i}static _areGoodDims(e,i){try{let a=new OffscreenCanvas(e,i),s=a.getContext("2d");s.fillRect(0,0,1,1);let n=s.getImageData(0,0,1,1).data[3];return a.width=a.height=1,n!==0}catch{return!1}}static _guessMax(e,i,a,s){for(;e+a+1<i;){let n=Math.floor((e+i)/2),r=s||n;this._areGoodDims(n,r)?e=n:i=n}return e}static async createImage(e,i=!1){return new Nr(e,i)._createImage()}async _createImage(){let{_imgData:e}=this,{width:i,height:a}=e;if(i*a*4>sd){let v=this.#i();if(v)return v}let s=this._encodeBMP(),n,r;await Nr.canUseImageDecoder?(n=new ImageDecoder({data:s,type:"image/bmp",preferAnimation:!1,transfer:[s.buffer]}),r=n.decode().catch(v=>(E(`BMP image decoding failed: ${v}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"})))).finally(()=>{n.close()})):r=createImageBitmap(new Blob([s.buffer],{type:"image/bmp"}));let{MAX_AREA:l,MAX_DIM:o}=Nr,f=Math.max(i/o,a/o,Math.sqrt(i*a/l)),h=Math.max(f,2),c=Math.round(10*(f+1.25))/10/h,u=Math.floor(Math.log2(c)),p=Array(u+2).fill(2);p[0]=h,p.splice(-1,1,c/(1<<u));let m=i,g=a,b=await r,w=b.image||b;for(let v of p){let y=m,x=g;m=Math.floor(m/v),g=Math.floor(g/v);let q=new OffscreenCanvas(m,g);q.getContext("2d").drawImage(w,0,0,y,x,0,0,m,g),w.close(),w=q.transferToImageBitmap()}return e.data=null,e.bitmap=w,e.width=m,e.height=g,e}#i(){let{_imgData:e}=this,{data:i,width:a,height:s,kind:n}=e,r=a*s*4,l=Math.ceil(Math.log2(r/sd)),o=a>>l,f=s>>l,h,c=s;try{h=new Uint8Array(r)}catch{let y=Math.floor(Math.log2(r+1));for(;;)try{h=new Uint8Array(2**y-1);break}catch{--y}c=Math.floor((2**y-1)/(a*4));let x=a*c*4;x<h.length&&(h=new Uint8Array(x))}let u=new Uint32Array(h.buffer),p=new Uint32Array(o*f),m=0,g=0,b=Math.ceil(s/c),w=s%c===0?s:s%c;for(let y=0;y<b;y++){let x=y<b-1?c:w;({srcPos:m}=wp({kind:n,src:i,dest:u,width:a,height:x,inverseDecode:this._isMask,srcPos:m}));for(let q=0,j=x>>l;q<j;q++){let A=u.subarray((q<<l)*a);for(let S=0;S<o;S++)p[g++]=A[S<<l]}}if(Nr.needsToBeResized(o,f))return e.data=p,e.width=o,e.height=f,e.kind=pi.RGBA_32BPP,null;let v=new OffscreenCanvas(o,f);return v.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(p.buffer),o,f),0,0),e.data=null,e.bitmap=v.transferToImageBitmap(),e.width=o,e.height=f,e}_encodeBMP(){let{width:e,height:i,kind:a}=this._imgData,s=this._imgData.data,n,r=new Uint8Array,l=r,o=0;switch(a){case pi.GRAYSCALE_1BPP:{n=1,r=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let g=e+7>>3,b=g+3&-4;if(g!==b){let w=new Uint8Array(b*i),v=0;for(let y=0,x=i*g;y<x;y+=g,v+=b)w.set(s.subarray(y,y+g),v);s=w}break}case pi.RGB_24BPP:if(n=24,e&3){let g=3*e,b=g+3&-4,w=b-g,v=new Uint8Array(b*i),y=0;for(let x=0,q=i*g;x<q;x+=g){let j=s.subarray(x,x+g);for(let A=0;A<g;A+=3)v[y++]=j[A+2],v[y++]=j[A+1],v[y++]=j[A];y+=w}s=v}else for(let g=0,b=s.length;g<b;g+=3){let w=s[g];s[g]=s[g+2],s[g+2]=w}break;case pi.RGBA_32BPP:n=32,o=3,l=new Uint8Array(68);let m=new DataView(l.buffer);Ni.isLittleEndian?(m.setUint32(0,255,!0),m.setUint32(4,65280,!0),m.setUint32(8,16711680,!0),m.setUint32(12,4278190080,!0)):(m.setUint32(0,4278190080,!0),m.setUint32(4,16711680,!0),m.setUint32(8,65280,!0),m.setUint32(12,255,!0));break;default:throw Error("invalid format")}let f=0,h=40+l.length,c=14+h+r.length+s.length,u=new Uint8Array(c),p=new DataView(u.buffer);return p.setUint16(f,19778,!0),f+=2,p.setUint32(f,c,!0),f+=4,p.setUint32(f,0,!0),f+=4,p.setUint32(f,14+h+r.length,!0),f+=4,p.setUint32(f,h,!0),f+=4,p.setInt32(f,e,!0),f+=4,p.setInt32(f,-i,!0),f+=4,p.setUint16(f,1,!0),f+=2,p.setUint16(f,n,!0),f+=2,p.setUint32(f,o,!0),f+=4,p.setUint32(f,0,!0),f+=4,p.setInt32(f,0,!0),f+=4,p.setInt32(f,0,!0),f+=4,p.setUint32(f,r.length/4,!0),f+=4,p.setUint32(f,0,!0),f+=4,u.set(l,f),f+=l.length,u.set(r,f),f+=r.length,u.set(s,f),u}},Lb=new Uint8Array,Mi=class extends Bt{static{d(this,"DecodeStream")}buffer=Lb;bufferLength=0;eof=!1;minBufferLength=512;pos=0;constructor(t){if(super(),this._rawMinBufferLength=t||0,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}readBlock(){te("Abstract method `readBlock` called")}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(t){let e=this.buffer;if(t<=e.byteLength)return e;let i=this.minBufferLength;for(;i<t;)i*=2;let a=new Uint8Array(i);return a.set(e),this.buffer=a}getByte(){let t=this.pos;for(;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(t,e=null){let i=this.pos,a;if(t){for(this.ensureBuffer(i+t),a=i+t;!this.eof&&this.bufferLength<a;)this.readBlock(e);let s=this.bufferLength;a>s&&(a=s)}else{for(;!this.eof;)this.readBlock(e);a=this.bufferLength}return this.pos=a,this.buffer.subarray(i,a)}async getImageData(t,e){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,t,e):this.getBytes(t,e);let i=await this.stream.asyncGetBytes();return this.decodeImage(i,t,e)}async asyncGetBytesFromDecompressionStream(t){this.stream.reset();let e=this.stream.isAsync?await this.stream.asyncGetBytes():this.stream.getBytes();try{let{readable:i,writable:a}=new DecompressionStream(t),s=a.getWriter();await s.ready,s.write(e).then(async()=>{await s.ready,await s.close()}).catch(()=>{});let n=[],r=0;for await(let f of i)n.push(f),r+=f.byteLength;let l=new Uint8Array(r),o=0;for(let f of n)l.set(f,o),o+=f.byteLength;return{decompressed:l,compressed:e}}catch{return{decompressed:null,compressed:e}}}reset(){this.pos=0}makeSubStream(t,e,i=null){if(e===void 0)for(;!this.eof;)this.readBlock();else{let a=t+e;for(;this.bufferLength<=a&&!this.eof;)this.readBlock()}return new Me(this.buffer,t,e,i)}clone(){for(;!this.eof;)this.readBlock();return new Me(this.buffer,0,this.bufferLength,this.dict?.clone())}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}},zb=class extends Mi{static{d(this,"StreamsSequenceStream")}constructor(t,e=null){t=t.filter(a=>a instanceof Bt&&!a.isImageStream);let i=0;for(let a of t)i+=a instanceof Mi?a._rawMinBufferLength:a.length;super(i),this.streams=t,this._onError=e}readBlock(){let t=this.streams;if(t.length===0){this.eof=!0;return}let e=t.shift(),i;try{i=e.getBytes()}catch(n){if(this._onError){this._onError(n,e.dict?.objId);return}throw n}let a=this.bufferLength,s=a+i.length;this.ensureBuffer(s).set(i,a),this.bufferLength=s}getBaseStreams(){let t=[];for(let e of this.streams){let i=e.getBaseStreams();i&&t.push(...i)}return t.length>0?t:null}},fe=class{static{d(this,"ColorSpaceUtils")}static parse({cs:t,xref:e,resources:i=null,pdfFunctionFactory:a,globalColorSpaceCache:s,localColorSpaceCache:n,asyncIfNotCached:r=!1}){let l={xref:e,resources:i,pdfFunctionFactory:a,globalColorSpaceCache:s,localColorSpaceCache:n},o,f,h;if(t instanceof it){f=t;let c=s.getByRef(f)||n.getByRef(f);if(c)return c;t=e.fetch(t)}if(t instanceof Z){o=t.name;let c=n.getByName(o);if(c)return c}try{h=this.#e(t,l)}catch(c){if(r&&!(c instanceof xe))return Promise.reject(c);throw c}return(o||f)&&(n.set(o,f,h),f&&s.set(null,f,h)),r?Promise.resolve(h):h}static#t(t,e){let{globalColorSpaceCache:i}=e,a;if(t instanceof it){a=t;let n=i.getByRef(a);if(n)return n}let s=this.#e(t,e);return a&&i.set(null,a,s),s}static#e(t,e){let{xref:i,resources:a,pdfFunctionFactory:s,globalColorSpaceCache:n}=e;if(t=i.fetchIfRef(t),t instanceof Z)switch(t.name){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"DeviceRGBA":return this.rgba;case"CMYK":case"DeviceCMYK":return this.cmyk;case"Pattern":return new fd(null);default:if(a instanceof _){let r=a.get("ColorSpace");if(r instanceof _){let l=r.get(t.name);if(l){if(l instanceof Z)return this.#e(l,e);t=l;break}}}return E(`Unrecognized ColorSpace: ${t.name}`),this.gray}if(Array.isArray(t)){let r=i.fetchIfRef(t[0]).name,l,o,f,h,c,u;switch(r){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"CMYK":case"DeviceCMYK":return this.cmyk;case"CalGray":return l=i.fetchIfRef(t[1]),h=l.getArray("WhitePoint"),c=l.getArray("BlackPoint"),u=l.get("Gamma"),new Rb(h,c,u);case"CalRGB":l=i.fetchIfRef(t[1]),h=l.getArray("WhitePoint"),c=l.getArray("BlackPoint"),u=l.getArray("Gamma");let p=l.getArray("Matrix");return new Db(h,c,u,p);case"ICCBased":let m=t[1]instanceof it;if(m){let A=n.getByRef(t[1]);if(A)return A}let g=i.fetchIfRef(t[1]),b=g.dict;if(o=b.get("N"),dl.isUsable)try{let A=new dl(g.getBytes(),"ICCBased",o);return m&&n.set(null,t[1],A),A}catch(A){if(A instanceof xe)throw A;E(`ICCBased color space (${t[1]}): "${A}".`)}let w=b.getRaw("Alternate");if(w){let A=this.#t(w,e);if(A.numComps===o)return A;E("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(o===1)return this.gray;if(o===3)return this.rgb;if(o===4)return this.cmyk;break;case"Pattern":return f=t[1]||null,f&&=this.#t(f,e),new fd(f);case"I":case"Indexed":f=this.#t(t[1],e);let v=Fe(i.fetchIfRef(t[2]),0,255),y=i.fetchIfRef(t[3]);return new Mb(f,v,y);case"Separation":case"DeviceN":let x=i.fetchIfRef(t[1]);o=Array.isArray(x)?x.length:1,f=this.#t(t[2],e);let q=s.create(t[3]);return new Tb(o,f,q);case"Lab":l=i.fetchIfRef(t[1]),h=l.getArray("WhitePoint"),c=l.getArray("BlackPoint");let j=l.getArray("Range");return new Pb(h,c,j);default:return E(`Unimplemented ColorSpace object: ${r}`),this.gray}}return E(`Unrecognized ColorSpace object: ${t}`),this.gray}static get gray(){return ht(this,"gray",new _b)}static get rgb(){return ht(this,"rgb",new Eb)}static get rgba(){return ht(this,"rgba",new Fb)}static get cmyk(){if(Ah.isUsable)try{return ht(this,"cmyk",new Ah)}catch{E("CMYK fallback: DeviceCMYK")}return ht(this,"cmyk",new mp)}},da=class extends Li{static{d(this,"JpegError")}constructor(t){super(t,"JpegError")}},Th=class extends Li{static{d(this,"DNLMarkerError")}constructor(t,e){super(t,"DNLMarkerError"),this.scanLines=e}},yp=class extends Li{static{d(this,"EOIMarkerError")}constructor(t){super(t,"EOIMarkerError")}},Zr=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),Ol=4017,Hl=3406,Nl=2276,Ll=1567,zl=3784,Pn=5793,Ul=2896;d(Ub,"buildHuffmanTable");d(Mh,"getBlockBufferOffset");d(Gb,"decodeScan");d($b,"quantizeAndInverse");d(Wb,"buildComponentData");d(Wo,"findNextFileMarker");d(Vb,"prepareComponents");d(cd,"readDataBlock");d(Kb,"skipData");ud=class{static{d(this,"JpegImage")}constructor(t){this._colorTransform=t?.colorTransform??-1}static canUseImageDecoder(t,e=-1){let i=new DataView(t.buffer,t.byteOffset,t.byteLength),a={width:0,height:0,exifStart:0,exifEnd:0},s=0,n=null,r=i.getUint16(s);if(s+=2,r!==65496)throw new da("SOI not found");r=i.getUint16(s),s+=2;t:for(;r!==65497;){switch(r){case 65505:let{appData:l,oldOffset:o,newOffset:f}=cd(t,i,s);if(s=f,l[0]===69&&l[1]===120&&l[2]===105&&l[3]===102&&l[4]===0&&l[5]===0){if(a.exifStart)throw new da("Duplicate EXIF-blocks found.");a.exifStart=o+6,a.exifEnd=f}r=i.getUint16(s),s+=2;continue;case 65472:case 65473:case 65474:a.height=i.getUint16(s+3),a.width=i.getUint16(s+5),n=t[s+7];break t;case 65535:t[s]!==255&&s--}s=Kb(t,i,s),r=i.getUint16(s),s+=2}return n===4||n===3&&e===0?null:a}parse(t,{dnlScanLines:e=null}={}){let i=new DataView(t.buffer,t.byteOffset,t.byteLength),a=t.length-1,s=0,n=null,r=null,l,o,f=0,h=[],c=[],u=[],p=i.getUint16(s);if(s+=2,p!==65496)throw new da("SOI not found");p=i.getUint16(s),s+=2;t:for(;p!==65497;){let m,g,b;switch(p){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:let{appData:w,newOffset:v}=cd(t,i,s);s=v,p===65504&&w[0]===74&&w[1]===70&&w[2]===73&&w[3]===70&&w[4]===0&&(n={version:{major:w[5],minor:w[6]},densityUnits:w[7],xDensity:w[8]<<8|w[9],yDensity:w[10]<<8|w[11],thumbWidth:w[12],thumbHeight:w[13],thumbData:w.subarray(14,14+3*w[12]*w[13])}),p===65518&&w[0]===65&&w[1]===100&&w[2]===111&&w[3]===98&&w[4]===101&&(r={version:w[5]<<8|w[6],flags0:w[7]<<8|w[8],flags1:w[9]<<8|w[10],transformCode:w[11]});break;case 65499:let y=i.getUint16(s);s+=2;let x=y+s-2,q;for(;s<x;){let G=t[s++],Q=new Uint16Array(64);if(G>>4)if(G>>4==1)for(g=0;g<64;g++)q=Zr[g],Q[q]=i.getUint16(s),s+=2;else throw new da("DQT - invalid table spec");else for(g=0;g<64;g++)q=Zr[g],Q[q]=t[s++];h[G&15]=Q}break;case 65472:case 65473:case 65474:if(l)throw new da("Only single frame JPEGs supported");s+=2,l={},l.extended=p===65473,l.progressive=p===65474,l.precision=t[s++];let j=i.getUint16(s);s+=2,l.scanLines=e||j,l.samplesPerLine=i.getUint16(s),s+=2,l.components=[],l.componentIds={};let A=t[s++],S=0,C=0;for(m=0;m<A;m++){let G=t[s],Q=t[s+1]>>4,yt=t[s+1]&15;S<Q&&(S=Q),C<yt&&(C=yt);let It=t[s+2];b=l.components.push({h:Q,v:yt,quantizationId:It,quantizationTable:null}),l.componentIds[G]=b-1,s+=3}l.maxH=S,l.maxV=C,Vb(l);break;case 65476:let M=i.getUint16(s);for(s+=2,m=2;m<M;){let G=t[s++],Q=new Uint8Array(16),yt=0;for(g=0;g<16;g++,s++)yt+=Q[g]=t[s];let It=new Uint8Array(yt);for(g=0;g<yt;g++,s++)It[g]=t[s];m+=17+yt,(G>>4?c:u)[G&15]=Ub(Q,It)}break;case 65501:s+=2,o=i.getUint16(s),s+=2;break;case 65498:let O=++f===1&&!e;s+=2;let P=t[s++],$=[];for(m=0;m<P;m++){let G=t[s++],Q=l.componentIds[G],yt=l.components[Q];yt.index=G;let It=t[s++];yt.huffmanTableDC=u[It>>4],yt.huffmanTableAC=c[It&15],$.push(yt)}let tt=t[s++],K=t[s++],z=t[s++];try{let G=Gb(t,i,s,l,$,o,tt,K,z>>4,z&15,O);s+=G}catch(G){if(G instanceof Th)return E(`${G.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:G.scanLines});if(G instanceof yp){E(`${G.message} -- ignoring the rest of the image data.`);break t}throw G}break;case 65500:s+=4;break;case 65535:t[s]!==255&&s--;break;default:let B=Wo(t,i,s-2,s-3);if(B?.invalid){E("JpegImage.parse - unexpected data, current marker is: "+B.invalid),s=B.offset;break}if(!B||s>=a){E("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break t}throw new da("JpegImage.parse - unknown marker: "+p.toString(16))}s<a?(p=i.getUint16(s),s+=2):p=0}if(!l)throw new da("JpegImage.parse - no frame data found.");this.width=l.samplesPerLine,this.height=l.scanLines,this.jfif=n,this.adobe=r,this.components=[];for(let m of l.components){let g=h[m.quantizationId];g&&(m.quantizationTable=g),this.components.push({index:m.index,output:Wb(l,m),scaleX:m.h/l.maxH,scaleY:m.v/l.maxV,blocksPerLine:m.blocksPerLine,blocksPerColumn:m.blocksPerColumn})}this.numComponents=this.components.length}#t(t,e){let i=this.width/t,a=this.height/e,s,n,r,l,o,f,h,c,u=0,p=this.components.length,m=t*e*p,g=new Uint8ClampedArray(m),b=new Uint32Array(t),w=4294967288,v;for(h=0;h<p;h++){s=this.components[h],n=s.scaleX*i,r=s.scaleY*a,u=h;let y=s.output;if(l=s.blocksPerLine+1<<3,n!==v){for(o=0;o<t;o++)c=0|o*n,b[o]=(c&w)<<3|c&7;v=n}for(f=0;f<e;f++){c=0|f*r;let x=l*(c&w)|(c&7)<<3;for(o=0;o<t;o++)g[u]=y[x+b[o]],u+=p}}return g}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?!(this._colorTransform===0||this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(t){let e,i,a;for(let s=0,n=t.length;s<n;s+=3)e=t[s],i=t[s+1],a=t[s+2],t[s]=e-179.456+1.402*a,t[s+1]=e+135.459-.344*i-.714*a,t[s+2]=e-226.816+1.772*i;return t}_convertYccToRgba(t,e){for(let i=0,a=0,s=t.length;i<s;i+=3,a+=4){let n=t[i],r=t[i+1],l=t[i+2];e[a]=n-179.456+1.402*l,e[a+1]=n+135.459-.344*r-.714*l,e[a+2]=n-226.816+1.772*r,e[a+3]=255}return e}_convertYcckToRgb(t){return this._convertYcckToCmyk(t),this._convertCmykToRgb(t)}_convertYcckToRgba(t){return this._convertYcckToCmyk(t),this._convertCmykToRgba(t)}_convertYcckToCmyk(t){let e,i,a;for(let s=0,n=t.length;s<n;s+=4)e=t[s],i=t[s+1],a=t[s+2],t[s]=434.456-e-1.402*a,t[s+1]=119.541-e+.344*i+.714*a,t[s+2]=481.816-e-1.772*i;return t}_convertCmykToRgb(t){let e=t.length/4;return fe.cmyk.getRgbBuffer(t,0,e,t,0,8,0),t.subarray(0,e*3)}_convertCmykToRgba(t){if(fe.cmyk.getRgbBuffer(t,0,t.length/4,t,0,8,1),fe.cmyk instanceof mp)for(let e=3,i=t.length;e<i;e+=4)t[e]=255;return t}getData({width:t,height:e,forceRGBA:i=!1,forceRGB:a=!1}){if(this.numComponents>4)throw new da("Unsupported color mode");let s=this.#t(t,e);if(this.numComponents===1&&(i||a)){let n=s.length*(i?4:3),r=new Uint8ClampedArray(n);if(i)Nb(s,new Uint32Array(r.buffer));else{let l=0;for(let o of s)r[l++]=o,r[l++]=o,r[l++]=o}return r}if(this.numComponents===3&&this._isColorConversionNeeded){if(i){let n=new Uint8ClampedArray(s.length/3*4);return this._convertYccToRgba(s,n)}return this._convertYccToRgb(s)}if(this.numComponents===4){if(this._isColorConversionNeeded)return i?this._convertYcckToRgba(s):a?this._convertYcckToRgb(s):this._convertYcckToCmyk(s);if(i)return this._convertCmykToRgba(s);if(a)return this._convertCmykToRgb(s)}return s}},Vo=class kp extends Mi{static{d(this,"JpegStream")}static#t=Ni.isImageDecoderSupported;constructor(e,i,a){super(i),this.stream=e,this.dict=e.dict,this.maybeLength=i,this.params=a}static get canUseImageDecoder(){return ht(this,"canUseImageDecoder",this.#t?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:e=!1}){this.#t=e}get bytes(){return ht(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}get jpegOptions(){let e={colorTransform:void 0};if(this.params instanceof _){let i=this.params.get("ColorTransform");Number.isInteger(i)&&(e.colorTransform=i)}return ht(this,"jpegOptions",e)}#e(e){for(let i=0,a=e.length-1;i<a;i++)if(e[i]===255&&e[i+1]===216){i>0&&(e=e.subarray(i));break}return e}decodeImage(e){if(this.eof)return this.buffer;e=this.#e(e||this.bytes);let i=new ud(this.jpegOptions);i.parse(e);let a=i.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB});return this.buffer=a,this.bufferLength=a.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(e,i){if(!await kp.canUseImageDecoder)return null;let a=this.jpegOptions,s;try{let n=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!n)return null;let r=this.#e(n),l=ud.canUseImageDecoder(r,a.colorTransform);if(!l)return null;let{width:o,height:f}=l,h=Ga.getReducePower(o,f);if((o!==e||f!==i)&&(h||!f))return null;l.exifStart&&(r=r.slice(),r.fill(0,l.exifStart,l.exifEnd));let c={data:r,type:"image/jpeg",preferAnimation:!1};if(h){let u=2**h;c.desiredWidth=Math.ceil(o/u),c.desiredHeight=Math.ceil(f/u)}return s=new ImageDecoder(c),(await s.decode()).image}catch(n){return E(`getTransferableImage - failed: "${n}".`),null}finally{s?.close()}}get isImageStream(){return!0}};d(kr,"addState");ln=[];kr(ln,[T.save,T.transform,T.paintInlineImageXObject,T.restore],null,d(function(e,i){let a=e.fnArray,s=(i-(e.iCurr-3))%4;switch(s){case 0:return a[i]===T.save;case 1:return a[i]===T.transform;case 2:return a[i]===T.paintInlineImageXObject;case 3:return a[i]===T.restore}throw Error(`iterateInlineImageGroup - invalid pos: ${s}`)},"iterateInlineImageGroup"),d(function(e,i){let a=e.fnArray,s=e.argsArray,n=e.iCurr,r=n-3,l=n-2,o=n-1,f=Math.min(Math.floor((i-r)/4),200);if(f<10)return i-(i-r)%4;let h=0,c=[],u=0,p=1,m=1;for(let x=0;x<f;x++){let q=s[l+(x<<2)],j=s[o+(x<<2)][0];p+j.width>1e3&&(h=Math.max(h,p),m+=u+2,p=0,u=0),c.push({transform:q,x:p,y:m,w:j.width,h:j.height}),p+=j.width+2,u=Math.max(u,j.height)}let g=Math.max(h,p)+1,b=m+u+1,w=new Uint8Array(g*b*4),v=g<<2;for(let x=0;x<f;x++){let q=s[o+(x<<2)][0].data,j=c[x].w<<2,A=0,S=c[x].x+c[x].y*g<<2;w.set(q.subarray(0,j),S-v);for(let C=0,M=c[x].h;C<M;C++)w.set(q.subarray(A,A+j),S),A+=j,S+=v;for(w.set(q.subarray(A-j,A),S);S>=0;)q[S-4]=q[S],q[S-3]=q[S+1],q[S-2]=q[S+2],q[S-1]=q[S+3],q[S+j]=q[S+j-4],q[S+j+1]=q[S+j-3],q[S+j+2]=q[S+j-2],q[S+j+3]=q[S+j-1],S-=v}let y={width:g,height:b};if(e.isOffscreenCanvasSupported){let x=new OffscreenCanvas(g,b);x.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(w.buffer),g,b),0,0),y.bitmap=x.transferToImageBitmap(),y.data=null}else y.kind=pi.RGBA_32BPP,y.data=w;return a.splice(r,f*4,T.paintInlineImageXObjectGroup),s.splice(r,f*4,[y,c]),r+1},"foundInlineImageGroup")),kr(ln,[T.save,T.transform,T.paintImageMaskXObject,T.restore],null,d(function(e,i){let a=e.fnArray,s=(i-(e.iCurr-3))%4;switch(s){case 0:return a[i]===T.save;case 1:return a[i]===T.transform;case 2:return a[i]===T.paintImageMaskXObject;case 3:return a[i]===T.restore}throw Error(`iterateImageMaskGroup - invalid pos: ${s}`)},"iterateImageMaskGroup"),d(function(e,i){let a=e.fnArray,s=e.argsArray,n=e.iCurr,r=n-3,l=n-2,o=n-1,f=Math.floor((i-r)/4);if(f<10)return i-(i-r)%4;let h=!1,c,u,p=s[o][0],m=s[l][0],g=s[l][1],b=s[l][2],w=s[l][3];if(g===b){h=!0,c=l+4;let v=o+4;for(let y=1;y<f;y++,c+=4,v+=4)if(u=s[c],s[v][0]!==p||u[0]!==m||u[1]!==g||u[2]!==b||u[3]!==w){y<10?h=!1:f=y;break}}if(h){f=Math.min(f,1e3);let v=new Float32Array(f*2);c=l;for(let y=0;y<f;y++,c+=4)u=s[c],v[y<<1]=u[4],v[(y<<1)+1]=u[5];a.splice(r,f*4,T.paintImageMaskXObjectRepeat),s.splice(r,f*4,[p,m,g,b,w,v])}else{f=Math.min(f,100);let v=[];for(let y=0;y<f;y++){u=s[l+(y<<2)];let x=s[o+(y<<2)][0];v.push({data:x.data,width:x.width,height:x.height,interpolate:x.interpolate,count:x.count,transform:u})}a.splice(r,f*4,T.paintImageMaskXObjectGroup),s.splice(r,f*4,[v])}return r+1},"foundImageMaskGroup")),kr(ln,[T.save,T.transform,T.paintImageXObject,T.restore],function(t){let e=t.argsArray,i=t.iCurr-2;return e[i][1]===0&&e[i][2]===0},d(function(e,i){let a=e.fnArray,s=e.argsArray,n=(i-(e.iCurr-3))%4;switch(n){case 0:return a[i]===T.save;case 1:if(a[i]!==T.transform)return!1;let r=e.iCurr-2,l=s[r][0],o=s[r][3];return s[i][0]===l&&s[i][1]===0&&s[i][2]===0&&s[i][3]===o;case 2:if(a[i]!==T.paintImageXObject)return!1;let f=s[e.iCurr-1][0];return s[i][0]===f;case 3:return a[i]===T.restore}throw Error(`iterateImageGroup - invalid pos: ${n}`)},"iterateImageGroup"),function(t,e){let i=t.fnArray,a=t.argsArray,s=t.iCurr,n=s-3,r=s-2,l=a[s-1][0],o=a[r][0],f=a[r][3],h=Math.min(Math.floor((e-n)/4),1e3);if(h<3)return e-(e-n)%4;let c=new Float32Array(h*2),u=r;for(let m=0;m<h;m++,u+=4){let g=a[u];c[m<<1]=g[4],c[(m<<1)+1]=g[5]}let p=[l,o,f,c];return i.splice(n,h*4,T.paintImageXObjectRepeat),a.splice(n,h*4,p),n+1}),kr(ln,[T.beginText,T.setFont,T.setTextMatrix,T.showText,T.endText],null,d(function(e,i){let a=e.fnArray,s=e.argsArray,n=(i-(e.iCurr-4))%5;switch(n){case 0:return a[i]===T.beginText;case 1:return a[i]===T.setFont;case 2:return a[i]===T.setTextMatrix;case 3:if(a[i]!==T.showText)return!1;let r=e.iCurr-3,l=s[r][0],o=s[r][1];return s[i][0]===l&&s[i][1]===o;case 4:return a[i]===T.endText}throw Error(`iterateShowTextGroup - invalid pos: ${n}`)},"iterateShowTextGroup"),function(t,e){let i=t.fnArray,a=t.argsArray,s=t.iCurr,n=s-4,r=s-3,l=s-2,o=s-1,f=s,h=a[r][0],c=a[r][1],u=Math.min(Math.floor((e-n)/5),1e3);if(u<3)return e-(e-n)%5;let p=n;n>=4&&i[n-4]===i[r]&&i[n-3]===i[l]&&i[n-2]===i[o]&&i[n-1]===i[f]&&a[n-4][0]===h&&a[n-4][1]===c&&(u++,p-=5);let m=p+4;for(let g=1;g<u;g++)i.splice(m,3),a.splice(m,3),m+=2;return m+1}),kr(ln,[T.save,T.transform,T.constructPath,T.restore],t=>{let e=t.argsArray,i=e[t.iCurr-1][0];if(i!==T.stroke&&i!==T.closeStroke&&i!==T.fillStroke&&i!==T.eoFillStroke&&i!==T.closeFillStroke&&i!==T.closeEOFillStroke)return!0;let a=e[t.iCurr-2];return a[0]===1&&a[1]===0&&a[2]===0&&a[3]===1},()=>!1,(t,e)=>{let{fnArray:i,argsArray:a}=t,s=t.iCurr,n=s-3,r=s-2,l=a[s-1],o=a[r],[,[f],h]=l;if(h){let c=Co.slice();oe.axialAlignedBoundingBox(h,o,c),h.set(c);for(let u=0,p=f.length;u<p;)switch(f[u++]){case Ee.moveTo:case Ee.lineTo:oe.applyTransform(f,o,u),u+=2;break;case Ee.curveTo:oe.applyTransformToBezier(f,o,u),u+=6}}return i.splice(n,4,T.constructPath),a.splice(n,4,l),n+1});vp=class{static{d(this,"NullOptimizer")}constructor(t){this.queue=t}_optimize(){}push(t,e){this.queue.fnArray.push(t),this.queue.argsArray.push(e),this._optimize()}flush(){}reset(){}},Xb=class extends vp{static{d(this,"QueueOptimizer")}constructor(t){super(t),this.state=null,this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:Da.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let t=this.queue.fnArray,e=this.lastProcessed,i=t.length,a=this.state,s=this.match;if(!a&&!s&&e+1===i&&!ln[t[e]]){this.lastProcessed=i;return}let n=this.context;for(;e<i;){if(s){if((0,s.iterateFn)(n,e)){e++;continue}if(e=(0,s.processFn)(n,e+1),i=t.length,s=null,a=null,e>=i)break}a=(a||ln)[t[e]],!a||Array.isArray(a)?e++:(n.iCurr=e,e++,a.checkFn&&!(0,a.checkFn)(n)||(s=a),a=null)}this.state=a,this.match=s,this.lastProcessed=e}flush(){for(;this.match;){let t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}},Da=class mo{static{d(this,"OperatorList")}static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(e=0,i){this._streamSink=i,this.fnArray=[],this.argsArray=[],this.optimizer=i&&!(e&mi.OPLIST)?new Xb(this):new vp(this),this.dependencies=new Set,this.weight=0,this._resolved=i?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:e}){this.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}addOp(e,i){this.optimizer.push(e,i),this.weight++,this._streamSink&&(this.weight>=mo.CHUNK_SIZE||this.weight>=mo.CHUNK_SIZE_ABOUT&&(e===T.restore||e===T.endText))&&this.flush()}addImageOps(e,i,a,s=!1){s&&(this.addOp(T.save),this.addOp(T.setGState,[[["SMask",!1]]])),a!==void 0&&this.addOp(T.beginMarkedContentProps,["OC",a]),this.addOp(e,i),a!==void 0&&this.addOp(T.endMarkedContent,[]),s&&this.addOp(T.restore)}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(T.dependency,[e]))}addDependencies(e){for(let i of e)this.addDependency(i)}addOpList(e){if(!(e instanceof mo))E('addOpList - ignoring invalid "opList" parameter.');else{for(let i of e.dependencies)this.dependencies.add(i);for(let i=0,a=e.length;i<a;i++)this.addOp(e.fnArray[i],e.argsArray[i])}}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let e=[],{fnArray:i,argsArray:a,length:s}=this;for(let n=0;n<s;n++)switch(i[n]){case T.paintInlineImageXObject:case T.paintInlineImageXObjectGroup:case T.paintImageMaskXObject:{let{bitmap:o,data:f}=a[n][0];(o||f?.buffer)&&e.push(o||f.buffer);break}case T.constructPath:{let[,[o],f]=a[n];o&&e.push(o.buffer,f.buffer);break}case T.paintFormXObjectBegin:let[r,l]=a[n];r&&e.push(r.buffer),l&&e.push(l.buffer);break;case T.setTextMatrix:e.push(a[n][0].buffer)}return e}flush(e=!1,i=null){this.optimizer.flush(),this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:i,length:this.length},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},dd=class extends Da{static{d(this,"CheckedOperatorList")}needsIsolation=!1;hasSoftMask=!1;addOp(t,e){if(!this.needsIsolation||!this.hasSoftMask){if(t===T.beginGroup)this.needsIsolation||=e[0].needsIsolation,this.hasSoftMask||=e[0].hasSoftMask;else if(t===T.setGState)for(let[i,a]of e[0])i==="BM"&&a!=="source-over"?this.needsIsolation=!0:i==="SMask"&&a!==!1&&(this.needsIsolation=!0,this.hasSoftMask=!0)}super.addOp(t,e)}},Ii={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};d(jp,"getColorConversionBatchSize");d(Vc,"parseShadingFunction");qp=class{static{d(this,"Pattern")}static#t=!1;constructor(){te("Cannot initialize Pattern.")}static setOptions({hasGPU:t}){this.#t=t}static parseShading(t,e,i,a,s,n){let r=t instanceof Bt?t.dict:t,l=r.get("ShadingType");try{switch(l){case Ii.FUNCTION_BASED:return new Zb(r,e,i,a,s,n);case Ii.AXIAL:case Ii.RADIAL:return new Yb(r,e,i,a,s,n);case Ii.FREE_FORM_MESH:case Ii.LATTICE_FORM_MESH:case Ii.COONS_PATCH_MESH:case Ii.TENSOR_PATCH_MESH:return new iw(t,e,i,a,s,n);default:throw new V("Unsupported ShadingType: "+l)}}catch(o){if(o instanceof xe)throw o;return E(o),new aw}}},ir=class{static{d(this,"BaseShading")}static SMALL_NUMBER=1e-6;getIR(){te("Abstract method `getIR` called.")}},Yb=class extends ir{static{d(this,"RadialAxialShading")}constructor(t,e,i,a,s,n){super(),this.shadingType=t.get("ShadingType");let r=0;if(this.shadingType===Ii.AXIAL?r=4:this.shadingType===Ii.RADIAL&&(r=6),this.coordsArr=t.getArray("Coords"),!Ne(this.coordsArr,r))throw new V("RadialAxialShading: Invalid /Coords array.");let l=fe.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:e,resources:i,pdfFunctionFactory:a,globalColorSpaceCache:s,localColorSpaceCache:n});this.bbox=Ya(t.getArray("BBox"),null);let o=t.getArray("Domain"),[f,h]=Ne(o,2)?o:[0,1],c=t.getArray("Extend"),[u,p]=ob(c,2)?c:[!1,!1],m=Vc(t.getRaw("Function"),a,1,l.numComps),g=(h-f)/840,b=this.colorStops=[];if(f>=h||g<=0){de("Bad shading domain.");return}let{numComps:w}=l,v=new Float32Array(1),y=jp(840,w),x=new Float32Array(y*w),q=new Uint8ClampedArray(2520);for(let It=0;It<840;It+=y){let Lt=Math.min(y,840-It);for(let Pt=0,X=0;Pt<Lt;Pt++,X+=w)v[0]=f+(It+Pt)*g,m(v,0,x,X);l.getRgbItems(x,Lt,q,It*3,0)}let j=0,A=q[0],S=q[1],C=q[2];b.push([0,oe.makeHexColor(A,S,C)]);let M=1,O=q[3],P=q[4],$=q[5],tt=O-A+1,K=P-S+1,z=$-C+1,B=O-A-1,G=P-S-1,Q=$-C-1;for(let It=2;It<840;It++){let Lt=It*3,Pt=q[Lt],X=q[Lt+1],et=q[Lt+2],L=It-j;if(tt=Math.min(tt,(Pt-A+1)/L),K=Math.min(K,(X-S+1)/L),z=Math.min(z,(et-C+1)/L),B=Math.max(B,(Pt-A-1)/L),G=Math.max(G,(X-S-1)/L),Q=Math.max(Q,(et-C-1)/L),!(B<=tt&&G<=K&&Q<=z)){let H=oe.makeHexColor(O,P,$);b.push([M/840,H]),tt=Pt-O+1,K=X-P+1,z=et-$+1,B=Pt-O-1,G=X-P-1,Q=et-$-1,j=M,A=O,S=P,C=$}M=It,O=Pt,P=X,$=et}b.push([1,oe.makeHexColor(O,P,$)]);let yt=t.has("Background")?l.getRgbHex(t.get("Background"),0):"transparent";u||(b.unshift([0,yt]),b[1][0]+=ir.SMALL_NUMBER),p||(b.at(-1)[0]-=ir.SMALL_NUMBER,b.push([1,yt]))}getIR(){let{coordsArr:t,shadingType:e}=this,i,a,s,n,r;return e===Ii.AXIAL?(a=[t[0],t[1]],s=[t[2],t[3]],n=null,r=null,i="axial"):e===Ii.RADIAL?(a=[t[0],t[1]],s=[t[3],t[4]],n=t[2],r=t[5],i="radial"):te(`getPattern type unknown: ${e}`),["RadialAxial",i,this.bbox,this.colorStops,a,s,n,r]}};d(Jb,"meshUpdateBounds");d(Qb,"meshPackData");d(xp,"buildMeshVertexData");Zb=class _h extends ir{static{d(this,"FunctionBasedShading")}static MAX_STEP_COUNT=512;constructor(e,i,a,s,n,r){super(),this.bbox=Ya(e.getArray("BBox"),null);let l=fe.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:i,resources:a,pdfFunctionFactory:s,globalColorSpaceCache:n,localColorSpaceCache:r});this.background=e.has("Background")?l.getRgb(e.get("Background"),0):null;let o=e.getRaw("Function");if(!o)throw new V("FunctionBasedShading: missing /Function");let f=Vc(o,s,2,l.numComps),[h,c,u,p]=ul(e.getArray("Domain"),[0,1,0,1]),m=os(e.getArray("Matrix"),wa);this.bounds=Ds.slice(),oe.axialAlignedBoundingBox([h,u,c,p],m,this.bounds);let g=this.bounds[2]-this.bounds[0],b=this.bounds[3]-this.bounds[1],w=Fe(Math.ceil(g),1,_h.MAX_STEP_COUNT),v=Fe(Math.ceil(b),1,_h.MAX_STEP_COUNT),y=w+1,x=(v+1)*y,q=this.coords=new Float32Array(x*2),j=this.colors=new Uint8ClampedArray(x*4),{numComps:A}=l,S=new Float32Array(2),C=jp(x,A),M=new Float32Array(C*A),O=(c-h)/w,P=(p-u)/v,$=O/2,tt=P/2,K=0,z=0,B=0,G=0;for(let yt=0;yt<=v;yt++){let It=u+P*yt;S[1]=yt===v?It-tt:It;for(let Lt=0;Lt<=w;Lt++){let Pt=h+O*Lt;S[0]=Lt===w?Pt-$:Pt,f(S,0,M,z),z+=A,B++,q[K]=Pt,q[K+1]=It,oe.applyTransform(q,m,K),K+=2,B===C&&(l.getRgbItems(M,B,j,G,1),G+=B*4,z=B=0)}}B>0&&l.getRgbItems(M,B,j,G,1);let Q=new Uint32Array(x);for(let yt=0;yt<x;yt++)Q[yt]=yt;this.figures=[{type:Ta.LATTICE,coords:Q,colors:new Uint32Array(Q),verticesPerRow:y}]}getIR(){let{posData:e,colData:i,vertexCount:a}=xp(this.coords,this.colors,this.figures);return["Mesh",Ii.FUNCTION_BASED,e,i,a,this.bounds,this.bbox,this.background]}},tw=class{static{d(this,"MeshStreamReader")}constructor(t,e){this.stream=t,this.context=e,this.buffer=0,this.bufferLength=0;let i=e.numComps;this.tmpCompsBuf=new Float32Array(i);let a=e.colorSpace.numComps;this.tmpCsCompsBuf=e.colorFn?new Float32Array(a):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;let t=this.stream.getByte();return t<0?!1:(this.buffer=t,this.bufferLength=8,!0)}readBits(t){let{stream:e}=this,{buffer:i,bufferLength:a}=this;if(t===32){if(a===0)return e.getInt32()>>>0;i=i<<24|e.getByte()<<16|e.getByte()<<8|e.getByte();let s=e.getByte();return this.buffer=s&(1<<a)-1,(i<<8-a|(s&255)>>a)>>>0}if(t===8&&a===0)return e.getByte();for(;a<t;)i=i<<8|e.getByte(),a+=8;return a-=t,this.bufferLength=a,this.buffer=i&(1<<a)-1,i>>a}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:t,decode:e}=this.context,i=this.readBits(t),a=this.readBits(t),s=t<32?1/((1<<t)-1):23283064365386963e-26;return[i*s*(e[1]-e[0])+e[0],a*s*(e[3]-e[2])+e[2]]}readComponents(){let{bitsPerComponent:t,colorFn:e,colorSpace:i,decode:a,numComps:s}=this.context,n=t<32?1/((1<<t)-1):23283064365386963e-26,r=this.tmpCompsBuf;for(let o=0,f=4;o<s;o++,f+=2){let h=this.readBits(t);r[o]=h*n*(a[f+1]-a[f])+a[f]}let l=this.tmpCsCompsBuf;return e?.(r,0,l,0),i.getRgb(l,0)}},Ap=null;d(pd,"getB");d(ew,"clearPatternCaches");iw=class tn extends ir{static{d(this,"MeshShading")}static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(e,i,a,s,n,r){if(super(),!(e instanceof Bt))throw new V("Mesh data is not a stream");let l=e.dict;this.shadingType=l.get("ShadingType"),this.bbox=Ya(l.getArray("BBox"),null);let o=fe.parse({cs:l.getRaw("CS")||l.getRaw("ColorSpace"),xref:i,resources:a,pdfFunctionFactory:s,globalColorSpaceCache:n,localColorSpaceCache:r});this.background=l.has("Background")?o.getRgb(l.get("Background"),0):null;let f=l.getRaw("Function"),h=f?Vc(f,s,1,o.numComps):null;this.coords=[],this.colors=[],this.figures=[];let c=new tw(e,{bitsPerCoordinate:l.get("BitsPerCoordinate"),bitsPerComponent:l.get("BitsPerComponent"),bitsPerFlag:l.get("BitsPerFlag"),decode:l.getArray("Decode"),colorFn:h,colorSpace:o,numComps:h?1:o.numComps}),u=!1;switch(this.shadingType){case Ii.FREE_FORM_MESH:this._decodeType4Shading(c);break;case Ii.LATTICE_FORM_MESH:let p=l.get("VerticesPerRow")|0;if(p<2)throw new V("Invalid VerticesPerRow");this._decodeType5Shading(c,p);break;case Ii.COONS_PATCH_MESH:this._decodeType6Shading(c),u=!0;break;case Ii.TENSOR_PATCH_MESH:this._decodeType7Shading(c),u=!0;break;default:te("Unsupported mesh type.")}if(u){this._updateBounds();for(let p=0,m=this.figures.length;p<m;p++)this._buildFigureFromPatch(p)}this._updateBounds(),this._packData()}_decodeType4Shading(e){let i=this.coords,a=this.colors,s=[],n=[],r=0;for(;e.hasData;){let l=e.readFlag(),o=e.readCoordinate(),f=e.readComponents();if(r===0){if(!(0<=l&&l<=2))throw new V("Unknown type4 flag");switch(l){case 0:r=3;break;case 1:n.push(n.at(-2),n.at(-1)),r=1;break;case 2:n.push(n.at(-3),n.at(-1)),r=1}s.push(l)}n.push(i.length),i.push(o),a.push(f),r--,e.align()}this.figures.push({type:Ta.TRIANGLES,coords:new Int32Array(n),colors:new Int32Array(n)})}_decodeType5Shading(e,i){let a=this.coords,s=this.colors,n=[];for(;e.hasData;){let r=e.readCoordinate(),l=e.readComponents();n.push(a.length),a.push(r),s.push(l)}this.figures.push({type:Ta.LATTICE,coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:i})}_decodeType6Shading(e){let i=this.coords,a=this.colors,s=new Int32Array(16),n=new Int32Array(4);for(;e.hasData;){let r=e.readFlag();if(!(0<=r&&r<=3))throw new V("Unknown type6 flag");let l=i.length;for(let p=0,m=r===0?12:8;p<m;p++)i.push(e.readCoordinate());let o=a.length;for(let p=0,m=r===0?4:2;p<m;p++)a.push(e.readComponents());let f,h,c,u;switch(r){case 0:s[12]=l+3,s[13]=l+4,s[14]=l+5,s[15]=l+6,s[8]=l+2,s[11]=l+7,s[4]=l+1,s[7]=l+8,s[0]=l,s[1]=l+11,s[2]=l+10,s[3]=l+9,n[2]=o+1,n[3]=o+2,n[0]=o,n[1]=o+3;break;case 1:f=s[12],h=s[13],c=s[14],u=s[15],s[12]=u,s[13]=l+0,s[14]=l+1,s[15]=l+2,s[8]=c,s[11]=l+3,s[4]=h,s[7]=l+4,s[0]=f,s[1]=l+7,s[2]=l+6,s[3]=l+5,f=n[2],h=n[3],n[2]=h,n[3]=o,n[0]=f,n[1]=o+1;break;case 2:f=s[15],h=s[11],s[12]=s[3],s[13]=l+0,s[14]=l+1,s[15]=l+2,s[8]=s[7],s[11]=l+3,s[4]=h,s[7]=l+4,s[0]=f,s[1]=l+7,s[2]=l+6,s[3]=l+5,f=n[3],n[2]=n[1],n[3]=o,n[0]=f,n[1]=o+1;break;case 3:s[12]=s[0],s[13]=l+0,s[14]=l+1,s[15]=l+2,s[8]=s[1],s[11]=l+3,s[4]=s[2],s[7]=l+4,s[0]=s[3],s[1]=l+7,s[2]=l+6,s[3]=l+5,n[2]=n[0],n[3]=o,n[0]=n[1],n[1]=o+1}s[5]=i.length,i.push([(-4*i[s[0]][0]-i[s[15]][0]+6*(i[s[4]][0]+i[s[1]][0])-2*(i[s[12]][0]+i[s[3]][0])+3*(i[s[13]][0]+i[s[7]][0]))/9,(-4*i[s[0]][1]-i[s[15]][1]+6*(i[s[4]][1]+i[s[1]][1])-2*(i[s[12]][1]+i[s[3]][1])+3*(i[s[13]][1]+i[s[7]][1]))/9]),s[6]=i.length,i.push([(-4*i[s[3]][0]-i[s[12]][0]+6*(i[s[2]][0]+i[s[7]][0])-2*(i[s[0]][0]+i[s[15]][0])+3*(i[s[4]][0]+i[s[14]][0]))/9,(-4*i[s[3]][1]-i[s[12]][1]+6*(i[s[2]][1]+i[s[7]][1])-2*(i[s[0]][1]+i[s[15]][1])+3*(i[s[4]][1]+i[s[14]][1]))/9]),s[9]=i.length,i.push([(-4*i[s[12]][0]-i[s[3]][0]+6*(i[s[8]][0]+i[s[13]][0])-2*(i[s[0]][0]+i[s[15]][0])+3*(i[s[11]][0]+i[s[1]][0]))/9,(-4*i[s[12]][1]-i[s[3]][1]+6*(i[s[8]][1]+i[s[13]][1])-2*(i[s[0]][1]+i[s[15]][1])+3*(i[s[11]][1]+i[s[1]][1]))/9]),s[10]=i.length,i.push([(-4*i[s[15]][0]-i[s[0]][0]+6*(i[s[11]][0]+i[s[14]][0])-2*(i[s[12]][0]+i[s[3]][0])+3*(i[s[2]][0]+i[s[8]][0]))/9,(-4*i[s[15]][1]-i[s[0]][1]+6*(i[s[11]][1]+i[s[14]][1])-2*(i[s[12]][1]+i[s[3]][1])+3*(i[s[2]][1]+i[s[8]][1]))/9]),this.figures.push({type:Ta.PATCH,coords:new Int32Array(s),colors:new Int32Array(n)})}}_decodeType7Shading(e){let i=this.coords,a=this.colors,s=new Int32Array(16),n=new Int32Array(4);for(;e.hasData;){let r=e.readFlag();if(!(0<=r&&r<=3))throw new V("Unknown type7 flag");let l=i.length;for(let p=0,m=r===0?16:12;p<m;p++)i.push(e.readCoordinate());let o=a.length;for(let p=0,m=r===0?4:2;p<m;p++)a.push(e.readComponents());let f,h,c,u;switch(r){case 0:s[12]=l+3,s[13]=l+4,s[14]=l+5,s[15]=l+6,s[8]=l+2,s[9]=l+13,s[10]=l+14,s[11]=l+7,s[4]=l+1,s[5]=l+12,s[6]=l+15,s[7]=l+8,s[0]=l,s[1]=l+11,s[2]=l+10,s[3]=l+9,n[2]=o+1,n[3]=o+2,n[0]=o,n[1]=o+3;break;case 1:f=s[12],h=s[13],c=s[14],u=s[15],s[12]=u,s[13]=l+0,s[14]=l+1,s[15]=l+2,s[8]=c,s[9]=l+9,s[10]=l+10,s[11]=l+3,s[4]=h,s[5]=l+8,s[6]=l+11,s[7]=l+4,s[0]=f,s[1]=l+7,s[2]=l+6,s[3]=l+5,f=n[2],h=n[3],n[2]=h,n[3]=o,n[0]=f,n[1]=o+1;break;case 2:f=s[15],h=s[11],s[12]=s[3],s[13]=l+0,s[14]=l+1,s[15]=l+2,s[8]=s[7],s[9]=l+9,s[10]=l+10,s[11]=l+3,s[4]=h,s[5]=l+8,s[6]=l+11,s[7]=l+4,s[0]=f,s[1]=l+7,s[2]=l+6,s[3]=l+5,f=n[3],n[2]=n[1],n[3]=o,n[0]=f,n[1]=o+1;break;case 3:s[12]=s[0],s[13]=l+0,s[14]=l+1,s[15]=l+2,s[8]=s[1],s[9]=l+9,s[10]=l+10,s[11]=l+3,s[4]=s[2],s[5]=l+8,s[6]=l+11,s[7]=l+4,s[0]=s[3],s[1]=l+7,s[2]=l+6,s[3]=l+5,n[2]=n[0],n[3]=o,n[0]=n[1],n[1]=o+1}this.figures.push({type:Ta.PATCH,coords:new Int32Array(s),colors:new Int32Array(n)})}}_buildFigureFromPatch(e){let i=this.figures[e];Le(i.type===Ta.PATCH,"Unexpected patch mesh figure");let a=this.coords,s=this.colors,n=i.coords,r=i.colors,l=Math.min(a[n[0]][0],a[n[3]][0],a[n[12]][0],a[n[15]][0]),o=Math.min(a[n[0]][1],a[n[3]][1],a[n[12]][1],a[n[15]][1]),f=Math.max(a[n[0]][0],a[n[3]][0],a[n[12]][0],a[n[15]][0]),h=Math.max(a[n[0]][1],a[n[3]][1],a[n[12]][1],a[n[15]][1]),c=Math.ceil((f-l)*tn.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));c=Fe(c,tn.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,tn.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let u=Math.ceil((h-o)*tn.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));u=Fe(u,tn.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,tn.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let p=c+1,m=new Int32Array((u+1)*p),g=new Int32Array((u+1)*p),b=0,w=new Uint8Array(3),v=new Uint8Array(3),y=s[r[0]],x=s[r[1]],q=s[r[2]],j=s[r[3]],A=pd(u),S=pd(c);for(let C=0;C<=u;C++){w[0]=(y[0]*(u-C)+q[0]*C)/u|0,w[1]=(y[1]*(u-C)+q[1]*C)/u|0,w[2]=(y[2]*(u-C)+q[2]*C)/u|0,v[0]=(x[0]*(u-C)+j[0]*C)/u|0,v[1]=(x[1]*(u-C)+j[1]*C)/u|0,v[2]=(x[2]*(u-C)+j[2]*C)/u|0;for(let M=0;M<=c;M++,b++){if((C===0||C===u)&&(M===0||M===c))continue;let O=0,P=0,$=0;for(let K=0;K<=3;K++)for(let z=0;z<=3;z++,$++){let B=A[C][K]*S[M][z];O+=a[n[$]][0]*B,P+=a[n[$]][1]*B}m[b]=a.length,a.push([O,P]),g[b]=s.length;let tt=new Uint8Array(3);tt[0]=(w[0]*(c-M)+v[0]*M)/c|0,tt[1]=(w[1]*(c-M)+v[1]*M)/c|0,tt[2]=(w[2]*(c-M)+v[2]*M)/c|0,s.push(tt)}}m[0]=n[0],g[0]=r[0],m[c]=n[3],g[c]=r[1],m[p*u]=n[12],g[p*u]=r[2],m[p*u+c]=n[15],g[p*u+c]=r[3],this.figures[e]={type:Ta.LATTICE,coords:m,colors:g,verticesPerRow:p}}_updateBounds(){Jb(this)}_packData(){Qb(this)}getIR(){let{posData:e,colData:i,vertexCount:a}=xp(this.coords,this.colors,this.figures);return["Mesh",this.shadingType,e,i,a,this.bounds,this.bbox,this.background]}},aw=class extends ir{static{d(this,"DummyShading")}getIR(){return["Dummy"]}};d(md,"getTilingPatternIR");d(Ai,"hexToInt");d(Gl,"hexToStr");d(Ei,"addHex");d(Ws,"incHex");sw=class extends Me{static{d(this,"BinaryCMapStream")}tmpBuf=new Uint8Array(19);constructor(t){super(t,0,t.length,null)}readNumber(){let t=0,e;do{let i=this.getByte();if(i<0)throw new V("unexpected EOF in bcmap");e=!(i&128),t=t<<7|i&127}while(!e);return t}readSigned(){let t=this.readNumber();return t&1?~(t>>>1):t>>>1}readHex(t,e){t.set(this.getBytes(e+1))}readHexNumber(t,e){let i,a=this.tmpBuf,s=0;do{let o=this.getByte();if(o<0)throw new V("unexpected EOF in bcmap");i=!(o&128),a[s++]=o&127}while(!i);let n=e,r=0,l=0;for(;n>=0;){for(;l<8&&a.length>0;)r|=a[--s]<<l,l+=7;t[n]=r&255,n--,r>>=8,l-=8}}readHexSigned(t,e){this.readHexNumber(t,e);let i=t[e]&1?255:0,a=0;for(let s=0;s<=e;s++)a=(a&1)<<8|t[s],t[s]=a>>1^i}readString(){let t=this.readNumber(),e=Array(t);for(let i=0;i<t;i++)e[i]=this.readNumber();return String.fromCharCode(...e)}},nw=class{static{d(this,"BinaryCMapReader")}async process(t,e,i){let a=new sw(t);e.vertical=!!(a.getByte()&1);let s=null,n=new Uint8Array(16),r=new Uint8Array(16),l=new Uint8Array(16),o=new Uint8Array(16),f=new Uint8Array(16),h,c;for(;(c=a.getByte())>=0;){let u=c>>5;if(u===7){switch(c&31){case 0:a.readString();break;case 1:s=a.readString()}continue}let p=!!(c&16),m=c&15;if(m+1>16)throw Error("BinaryCMapReader.process: Invalid dataSize.");let g=a.readNumber();switch(u){case 0:a.readHex(n,m),a.readHexNumber(r,m),Ei(r,n,m),e.addCodespaceRange(m+1,Ai(n,m),Ai(r,m));for(let b=1;b<g;b++)Ws(r,m),a.readHexNumber(n,m),Ei(n,r,m),a.readHexNumber(r,m),Ei(r,n,m),e.addCodespaceRange(m+1,Ai(n,m),Ai(r,m));break;case 1:a.readHex(n,m),a.readHexNumber(r,m),Ei(r,n,m),a.readNumber();for(let b=1;b<g;b++)Ws(r,m),a.readHexNumber(n,m),Ei(n,r,m),a.readHexNumber(r,m),Ei(r,n,m),a.readNumber();break;case 2:a.readHex(l,m),h=a.readNumber(),e.mapOne(Ai(l,m),h);for(let b=1;b<g;b++)Ws(l,m),p||(a.readHexNumber(f,m),Ei(l,f,m)),h=a.readSigned()+(h+1),e.mapOne(Ai(l,m),h);break;case 3:a.readHex(n,m),a.readHexNumber(r,m),Ei(r,n,m),h=a.readNumber(),e.mapCidRange(Ai(n,m),Ai(r,m),h);for(let b=1;b<g;b++)Ws(r,m),p?n.set(r):(a.readHexNumber(n,m),Ei(n,r,m)),a.readHexNumber(r,m),Ei(r,n,m),h=a.readNumber(),e.mapCidRange(Ai(n,m),Ai(r,m),h);break;case 4:a.readHex(l,1),a.readHex(o,m),e.mapOne(Ai(l,1),Gl(o,m));for(let b=1;b<g;b++)Ws(l,1),p||(a.readHexNumber(f,1),Ei(l,f,1)),Ws(o,m),a.readHexSigned(f,m),Ei(o,f,m),e.mapOne(Ai(l,1),Gl(o,m));break;case 5:a.readHex(n,1),a.readHexNumber(r,1),Ei(r,n,1),a.readHex(o,m),e.mapBfRange(Ai(n,1),Ai(r,1),Gl(o,m));for(let b=1;b<g;b++)Ws(r,1),p?n.set(r):(a.readHexNumber(n,1),Ei(n,r,1)),a.readHexNumber(r,1),Ei(r,n,1),a.readHex(o,m),e.mapBfRange(Ai(n,1),Ai(r,1),Gl(o,m));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${u}`)}}return s?i(s):e}},rw=class extends Mi{static{d(this,"Ascii85Stream")}#t=new Uint8Array(5);constructor(t,e){e&&(e*=.8),super(e),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream,e=t.getByte();for(;ya(e);)e=t.getByte();if(e===-1||e===126){this.eof=!0;return}let i=this.bufferLength,a,s;if(e===122)a=this.ensureBuffer(i+4),a.fill(0,i,i+4),this.bufferLength+=4;else{let n=this.#t;for(n[0]=e,s=1;s<5;++s){for(e=t.getByte();ya(e);)e=t.getByte();if(n[s]=e,e===-1||e===126)break}a=this.ensureBuffer(i+s-1),this.bufferLength+=s-1,s<5&&(n.fill(117,s,5),this.eof=!0);let r=0;for(s=0;s<5;++s)r=r*85+(n[s]-33);for(s=3;s>=0;--s)a[i+s]=r&255,r>>=8}}},lw=class extends Mi{static{d(this,"AsciiHexStream")}constructor(t,e){e&&(e*=.5),super(e),this.stream=t,this.dict=t.dict,this.firstDigit=-1}readBlock(){let t=this.stream.getBytes(8e3);if(!t.length){this.eof=!0;return}let e=t.length+1>>1,i=this.ensureBuffer(this.bufferLength+e),a=this.bufferLength,s=this.firstDigit;for(let n of t){let r;if(n>=48&&n<=57)r=n&15;else if(n>=65&&n<=70||n>=97&&n<=102)r=(n&15)+9;else if(n===62){this.eof=!0;break}else continue;s<0?s=r:(i[a++]=s<<4|r,s=-1)}s>=0&&this.eof&&(i[a++]=s<<4,s=-1),this.firstDigit=s,this.bufferLength=a}},ow=d(()=>{let t=Int32Array.from([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]),e=Int32Array.from([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),i=Int32Array.from([0,3,2,1,0,0,0,0,0,0,3,3,3,3,3,3]),a=Int32Array.from([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),s=Int32Array.from([131072,131076,131075,196610,131072,131076,131075,262145,131072,131076,131075,196610,131072,131076,131075,262149]),n=Int32Array.from([1,5,9,13,17,25,33,41,49,65,81,97,113,145,177,209,241,305,369,497,753,1265,2289,4337,8433,16625]),r=Int32Array.from([2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,7,8,9,10,11,12,13,24]),l=Int16Array.from([0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,12,14,24]),o=Int16Array.from([0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,24]),f=new Int16Array(2816);p(f);function h(k){let R=-1,D=16,U=k;for(;D>0;){let N=U>>D;N!==0&&(R+=D,U=N),D>>=1}return R+U}d(h,"log2floor");function c(k,R,D){return 16+R+2*(D<<k)}d(c,"calculateDistanceAlphabetSize");function u(k,R,D,U){if(R<U+(2<<D))return ye(k,-23);let N=(R-U>>D)+4,rt=h(N)-1;return((rt-1<<1|N>>rt&1)-1<<D)+(1<<D)+U+16}d(u,"calculateDistanceAlphabetLimit");function p(k){let R=new Int32Array(24),D=new Int32Array(24);D[0]=2;for(let U=0;U<23;++U)R[U+1]=R[U]+(1<<l[U]),D[U+1]=D[U]+(1<<o[U]);for(let U=0;U<704;++U){let N=U>>6,rt=-4;N>=2&&(N-=2,rt=0);let gt=(170064>>N*2&3)<<3|U>>3&7,Ct=(156228>>N*2&3)<<3|U&7,Nt=D[Ct],Jt=rt+Math.min(Nt,5)-2,Xt=U*4;k[Xt]=l[gt]|o[Ct]<<8,k[Xt+1]=R[gt],k[Xt+2]=D[Ct],k[Xt+3]=Jt}}d(p,"unpackCommandLookupTable");function m(k){let R=k.isLargeWindow;if(k.isLargeWindow=0,k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),xt(k,1)===0)return 16;let D=xt(k,3);return D===0?(D=xt(k,3),D===0?17:D===1?R===0||(k.isLargeWindow=1,xt(k,1)===1)||(D=xt(k,6),D<10||D>30)?-1:D:8+D):17+D}d(m,"decodeWindowBits");function g(k,R){return k.runningState===1?(k.cdNumChunks===0&&(k.cdChunks=Array(16),k.cdChunkOffsets=new Int32Array(16),k.cdBlockBits=-1),k.cdNumChunks===15?ye(k,-27):(k.cdChunks[k.cdNumChunks]=R,k.cdNumChunks++,k.cdTotalSize+=R.length,k.cdChunkOffsets[k.cdNumChunks]=k.cdTotalSize,0)):ye(k,-24)}d(g,"attachDictionaryChunk");function b(k){if(k.runningState!==0)return ye(k,-26);k.blockTrees=new Int32Array(3091),k.blockTrees[0]=7,k.distRbIdx=3;let R=u(k,2147483644,3,120);if(R<0)return R;let D=R;return k.distExtraBits=new Int8Array(D),k.distOffset=new Int32Array(D),R=Zt(k),R<0?R:(k.runningState=1,0)}d(b,"initState");function w(k){return k.runningState===0?ye(k,-25):(k.runningState>0&&(k.runningState=11),0)}d(w,"close");function v(k){if(k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),xt(k,1)!==0){let R=xt(k,3);return R===0?1:xt(k,R)+(1<<R)}return 0}d(v,"decodeVarLenUnsignedByte");function y(k){if(k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),k.inputEnd=xt(k,1),k.metaBlockLength=0,k.isUncompressed=0,k.isMetadata=0,k.inputEnd!==0&&xt(k,1)!==0)return 0;let R=xt(k,2)+4;if(R===7){if(k.isMetadata=1,xt(k,1)!==0)return ye(k,-6);let D=xt(k,2);if(D===0)return 0;for(let U=0;U<D;++U){k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let N=xt(k,8);if(N===0&&U+1===D&&D>1)return ye(k,-8);k.metaBlockLength+=N<<U*8}}else for(let D=0;D<R;++D){k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let U=xt(k,4);if(U===0&&D+1===R&&R>4)return ye(k,-8);k.metaBlockLength+=U<<D*4}return k.metaBlockLength++,k.inputEnd===0&&(k.isUncompressed=xt(k,1)),0}d(y,"decodeMetaBlockLength");function x(k,R,D){let U=k[R],N=D.accumulator32>>>D.bitOffset;U+=N&255;let rt=k[U]>>16,gt=k[U]&65535;if(rt<=8)return D.bitOffset+=rt,gt;U+=gt;let Ct=(1<<rt)-1;return U+=(N&Ct)>>>8,D.bitOffset+=(k[U]>>16)+8,k[U]&65535}d(x,"readSymbol");function q(k,R,D){D.bitOffset>=16&&(D.accumulator32=D.shortBuffer[D.halfOffset++]<<16|D.accumulator32>>>16,D.bitOffset-=16);let U=x(k,R,D),N=r[U];return D.bitOffset>=16&&(D.accumulator32=D.shortBuffer[D.halfOffset++]<<16|D.accumulator32>>>16,D.bitOffset-=16),n[U]+(N<=16?xt(D,N):Mt(D,N))}d(q,"readBlockLength");function j(k,R){let D=R,U=k[D];for(;D>0;)k[D]=k[D-1],D--;k[0]=U}d(j,"moveToFront");function A(k,R){let D=new Int32Array(256);for(let U=0;U<256;++U)D[U]=U;for(let U=0;U<R;++U){let N=k[U]&255;k[U]=D[N],N!==0&&j(D,N)}}d(A,"inverseMoveToFrontTransform");function S(k,R,D,U){let N=0,rt=8,gt=0,Ct=0,Nt=32768,Jt=new Int32Array(33);for(kt(Jt,Jt.length-1,5,k,18);N<R&&Nt>0;){if(U.halfOffset>2030){let he=jt(U);if(he<0)return he}U.bitOffset>=16&&(U.accumulator32=U.shortBuffer[U.halfOffset++]<<16|U.accumulator32>>>16,U.bitOffset-=16);let Xt=U.accumulator32>>>U.bitOffset&31;U.bitOffset+=Jt[Xt]>>16;let ee=Jt[Xt]&65535;if(ee<16)gt=0,D[N++]=ee,ee!==0&&(rt=ee,Nt-=32768>>ee);else{let he=ee-14,be=0;ee===16&&(be=rt),Ct!==be&&(gt=0,Ct=be);let di=gt;gt>0&&(gt-=2,gt<<=he),U.bitOffset>=16&&(U.accumulator32=U.shortBuffer[U.halfOffset++]<<16|U.accumulator32>>>16,U.bitOffset-=16),gt+=xt(U,he)+3;let Ji=gt-di;if(N+Ji>R)return ye(U,-2);for(let fa=0;fa<Ji;++fa)D[N++]=Ct;Ct!==0&&(Nt-=Ji<<15-Ct)}}return Nt===0?(D.fill(0,N,R),0):ye(U,-18)}d(S,"readHuffmanCodeLengths");function C(k,R,D){for(let U=0;U<D-1;++U)for(let N=U+1;N<D;++N)if(R[U]===R[N])return ye(k,-7);return 0}d(C,"checkDupes");function M(k,R,D,U,N){let rt=new Int32Array(R),gt=new Int32Array(4),Ct=1+h(k-1),Nt=xt(N,2)+1;for(let ee=0;ee<Nt;++ee){N.bitOffset>=16&&(N.accumulator32=N.shortBuffer[N.halfOffset++]<<16|N.accumulator32>>>16,N.bitOffset-=16);let he=xt(N,Ct);if(he>=R)return ye(N,-15);gt[ee]=he}let Jt=C(N,gt,Nt);if(Jt<0)return Jt;let Xt=Nt;switch(Nt===4&&(Xt+=xt(N,1)),Xt){case 1:rt[gt[0]]=1;break;case 2:rt[gt[0]]=1,rt[gt[1]]=1;break;case 3:rt[gt[0]]=1,rt[gt[1]]=2,rt[gt[2]]=2;break;case 4:rt[gt[0]]=2,rt[gt[1]]=2,rt[gt[2]]=2,rt[gt[3]]=2;break;case 5:rt[gt[0]]=1,rt[gt[1]]=2,rt[gt[2]]=3,rt[gt[3]]=3}return kt(D,U,8,rt,R)}d(M,"readSimpleHuffmanCode");function O(k,R,D,U,N){let rt=new Int32Array(k),gt=new Int32Array(18),Ct=32,Nt=0;for(let Xt=R;Xt<18;++Xt){let ee=e[Xt];N.bitOffset>=16&&(N.accumulator32=N.shortBuffer[N.halfOffset++]<<16|N.accumulator32>>>16,N.bitOffset-=16);let he=N.accumulator32>>>N.bitOffset&15;N.bitOffset+=s[he]>>16;let be=s[he]&65535;if(gt[ee]=be,be!==0&&(Ct-=32>>be,Nt++,Ct<=0))break}if(Ct!==0&&Nt!==1)return ye(N,-4);let Jt=S(gt,k,rt,N);return Jt<0?Jt:kt(D,U,8,rt,k)}d(O,"readComplexHuffmanCode");function P(k,R,D,U,N){if(N.halfOffset>2030){let gt=jt(N);if(gt<0)return gt}N.bitOffset>=16&&(N.accumulator32=N.shortBuffer[N.halfOffset++]<<16|N.accumulator32>>>16,N.bitOffset-=16);let rt=xt(N,2);return rt===1?M(k,R,D,U,N):O(R,rt,D,U,N)}d(P,"readHuffmanCode");function $(k,R,D){let U;if(D.halfOffset>2030&&(U=jt(D),U<0))return U;let N=v(D)+1;if(N===1)return R.fill(0,0,k),N;D.bitOffset>=16&&(D.accumulator32=D.shortBuffer[D.halfOffset++]<<16|D.accumulator32>>>16,D.bitOffset-=16);let rt=xt(D,1),gt=0;rt!==0&&(gt=xt(D,4)+1);let Ct=N+gt,Nt=t[Ct+31>>5],Jt=new Int32Array(Nt+1),Xt=Jt.length-1;if(U=P(Ct,Ct,Jt,Xt,D),U<0)return U;let ee=0;for(;ee<k;){if(D.halfOffset>2030&&(U=jt(D),U<0))return U;D.bitOffset>=16&&(D.accumulator32=D.shortBuffer[D.halfOffset++]<<16|D.accumulator32>>>16,D.bitOffset-=16);let he=x(Jt,Xt,D);if(he===0)R[ee]=0,ee++;else if(he<=gt){D.bitOffset>=16&&(D.accumulator32=D.shortBuffer[D.halfOffset++]<<16|D.accumulator32>>>16,D.bitOffset-=16);let be=(1<<he)+xt(D,he);for(;be!==0;){if(ee>=k)return ye(D,-3);R[ee]=0,ee++,be--}}else R[ee]=he-gt,ee++}return D.bitOffset>=16&&(D.accumulator32=D.shortBuffer[D.halfOffset++]<<16|D.accumulator32>>>16,D.bitOffset-=16),xt(D,1)===1&&A(R,k),N}d($,"decodeContextMap");function tt(k,R,D){let U=k.rings,N=4+R*2;k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let rt=x(k.blockTrees,2*R,k),gt=q(k.blockTrees,2*R+1,k);return rt===1?rt=U[N+1]+1:rt===0?rt=U[N]:rt-=2,rt>=D&&(rt-=D),U[N]=U[N+1],U[N+1]=rt,gt}d(tt,"decodeBlockTypeAndLength");function K(k){k.literalBlockLength=tt(k,0,k.numLiteralBlockTypes);let R=k.rings[5];k.contextMapSlice=R<<6,k.literalTreeIdx=k.contextMap[k.contextMapSlice]&255,k.contextLookupOffset1=k.contextModes[R]<<9,k.contextLookupOffset2=k.contextLookupOffset1+256}d(K,"decodeLiteralBlockSwitch");function z(k){k.commandBlockLength=tt(k,1,k.numCommandBlockTypes),k.commandTreeIdx=k.rings[7]}d(z,"decodeCommandBlockSwitch");function B(k){k.distanceBlockLength=tt(k,2,k.numDistanceBlockTypes),k.distContextMapSlice=k.rings[9]<<2}d(B,"decodeDistanceBlockSwitch");function G(k){let R=k.maxRingBufferSize;if(R>k.expectedTotalSize){let rt=k.expectedTotalSize;for(;R>>1>rt;)R>>=1;k.inputEnd===0&&R<16384&&k.maxRingBufferSize>=16384&&(R=16384)}if(R<=k.ringBufferSize)return;let D=R+37,U=new Int8Array(D),N=k.ringBuffer;N.length!==0&&U.set(N.subarray(0,k.ringBufferSize),0),k.ringBuffer=U,k.ringBufferSize=R}d(G,"maybeReallocateRingBuffer");function Q(k){if(k.inputEnd!==0)return k.nextRunningState=10,k.runningState=12,0;k.literalTreeGroup=new Int32Array,k.commandTreeGroup=new Int32Array,k.distanceTreeGroup=new Int32Array;let R;if(k.halfOffset>2030&&(R=jt(k),R<0)||(R=y(k),R<0))return R;if(k.metaBlockLength===0&&k.isMetadata===0)return 0;if(k.isUncompressed!==0||k.isMetadata!==0){if(R=re(k),R<0)return R;k.runningState=k.isMetadata===0?6:5}else k.runningState=3;return k.isMetadata===0&&(k.expectedTotalSize+=k.metaBlockLength,k.expectedTotalSize>1<<30&&(k.expectedTotalSize=1<<30),k.ringBufferSize<k.maxRingBufferSize&&G(k)),0}d(Q,"readNextMetablockHeader");function yt(k,R,D){let U=k.blockTrees[2*R];if(D<=1)return k.blockTrees[2*R+1]=U,k.blockTrees[2*R+2]=U,1<<28;let N=D+2,rt=P(N,N,k.blockTrees,2*R,k);return rt<0?rt:(U+=rt,k.blockTrees[2*R+1]=U,rt=P(26,26,k.blockTrees,2*R+1,k),rt<0?rt:(U+=rt,k.blockTrees[2*R+2]=U,q(k.blockTrees,2*R+1,k)))}d(yt,"readMetablockPartition");function It(k,R){let D=k.distExtraBits,U=k.distOffset,N=k.distancePostfixBits,rt=k.numDirectDistanceCodes,gt=1<<N,Ct=1,Nt=0,Jt=16;for(let Xt=0;Xt<rt;++Xt)D[Jt]=0,U[Jt]=Xt+1,++Jt;for(;Jt<R;){let Xt=rt+((2+Nt<<Ct)-4<<N)+1;for(let ee=0;ee<gt;++ee)D[Jt]=Ct,U[Jt]=Xt+ee,++Jt;Ct+=Nt,Nt^=1}}d(It,"calculateDistanceLut");function Lt(k){k.numLiteralBlockTypes=v(k)+1;let R=yt(k,0,k.numLiteralBlockTypes);if(R<0||(k.literalBlockLength=R,k.numCommandBlockTypes=v(k)+1,R=yt(k,1,k.numCommandBlockTypes),R<0)||(k.commandBlockLength=R,k.numDistanceBlockTypes=v(k)+1,R=yt(k,2,k.numDistanceBlockTypes),R<0)||(k.distanceBlockLength=R,k.halfOffset>2030&&(R=jt(k),R<0)))return R;k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),k.distancePostfixBits=xt(k,2),k.numDirectDistanceCodes=xt(k,4)<<k.distancePostfixBits,k.contextModes=new Int8Array(k.numLiteralBlockTypes);let D=0;for(;D<k.numLiteralBlockTypes;){let Nt=Math.min(D+96,k.numLiteralBlockTypes);for(;D<Nt;)k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),k.contextModes[D]=xt(k,2),D++;if(k.halfOffset>2030&&(R=jt(k),R<0))return R}let U=k.numLiteralBlockTypes<<6;if(k.contextMap=new Int8Array(U),R=$(U,k.contextMap,k),R<0)return R;let N=R;k.trivialLiteralContext=1;for(let Nt=0;Nt<U;++Nt)if(k.contextMap[Nt]!==Nt>>6){k.trivialLiteralContext=0;break}if(k.distContextMap=new Int8Array(k.numDistanceBlockTypes<<2),R=$(k.numDistanceBlockTypes<<2,k.distContextMap,k),R<0)return R;let rt=R;if(k.literalTreeGroup=new Int32Array(et(256,N)),R=L(256,256,N,k,k.literalTreeGroup),R<0||(k.commandTreeGroup=new Int32Array(et(704,k.numCommandBlockTypes)),R=L(704,704,k.numCommandBlockTypes,k,k.commandTreeGroup),R<0))return R;let gt=c(k.distancePostfixBits,k.numDirectDistanceCodes,24),Ct=gt;if(k.isLargeWindow===1){if(gt=c(k.distancePostfixBits,k.numDirectDistanceCodes,62),R=u(k,2147483644,k.distancePostfixBits,k.numDirectDistanceCodes),R<0)return R;Ct=R}return k.distanceTreeGroup=new Int32Array(et(Ct,rt)),R=L(gt,Ct,rt,k,k.distanceTreeGroup),R<0?R:(It(k,Ct),k.contextMapSlice=0,k.distContextMapSlice=0,k.contextLookupOffset1=k.contextModes[0]*512,k.contextLookupOffset2=k.contextLookupOffset1+256,k.literalTreeIdx=0,k.commandTreeIdx=0,k.rings[4]=1,k.rings[5]=0,k.rings[6]=1,k.rings[7]=0,k.rings[8]=1,k.rings[9]=0,0)}d(Lt,"readMetablockHuffmanCodesAndContextMaps");function Pt(k){let R=k.ringBuffer,D;if(k.metaBlockLength<=0)return D=Et(k),D<0?D:(k.runningState=2,0);let U=Math.min(k.ringBufferSize-k.pos,k.metaBlockLength);return D=li(k,R,k.pos,U),D<0?D:(k.metaBlockLength-=U,k.pos+=U,k.pos===k.ringBufferSize?(k.nextRunningState=6,k.runningState=12,0):(D=Et(k),D<0?D:(k.runningState=2,0)))}d(Pt,"copyUncompressedData");function X(k){let R=Math.min(k.outputLength-k.outputUsed,k.ringBufferBytesReady-k.ringBufferBytesWritten);return R!==0&&(k.output.set(k.ringBuffer.subarray(k.ringBufferBytesWritten,k.ringBufferBytesWritten+R),k.outputOffset+k.outputUsed),k.outputUsed+=R,k.ringBufferBytesWritten+=R),k.outputUsed<k.outputLength?0:2}d(X,"writeRingBuffer");function et(k,R){return R+R*t[k+31>>5]}d(et,"huffmanTreeGroupAllocSize");function L(k,R,D,U,N){let rt=D;for(let gt=0;gt<D;++gt){N[gt]=rt;let Ct=P(k,R,N,gt,U);if(Ct<0)return Ct;rt+=Ct}return 0}d(L,"decodeHuffmanTreeGroup");function H(k){let R=k.ringBufferSize;return k.isEager!==0&&(R=Math.min(R,k.ringBufferBytesWritten+k.outputLength-k.outputUsed)),R}d(H,"calculateFence");function J(k,R){if(k.distance>2147483644)return ye(k,-9);let D=k.distance-k.maxDistance-1-k.cdTotalSize;if(D<0){let U=ot(k,-D-1,k.copyLength);if(U<0)return U;k.runningState=14}else{let U=wr,N=k.copyLength;if(N>31)return ye(k,-9);let rt=$u[N];if(rt===0)return ye(k,-9);let gt=Gu[N],Ct=D&(1<<rt)-1,Nt=D>>rt;gt+=Ct*N;let Jt=ut;if(Nt>=Jt.numTransforms)return ye(k,-9);let Xt=ct(k.ringBuffer,k.pos,U,gt,N,Jt,Nt);if(k.pos+=Xt,k.metaBlockLength-=Xt,k.pos>=R)return k.nextRunningState=4,k.runningState=12,0;k.runningState=4}return 0}d(J,"doUseDictionary");function ft(k){k.cdBlockMap=new Int8Array(256);let R=8;for(;k.cdTotalSize-1>>R;)R++;R-=8,k.cdBlockBits=R;let D=0,U=0;for(;D<k.cdTotalSize;){for(;k.cdChunkOffsets[U+1]<D;)U++;k.cdBlockMap[D>>R]=U,D+=1<<R}}d(ft,"initializeCompoundDictionary");function ot(k,R,D){k.cdBlockBits===-1&&ft(k);let U=k.cdBlockMap[R>>k.cdBlockBits];for(;R>=k.cdChunkOffsets[U+1];)U++;return k.cdTotalSize>R+D?ye(k,-9):(k.distRbIdx=k.distRbIdx+1&3,k.rings[k.distRbIdx]=k.distance,k.metaBlockLength-=D,k.cdBrIndex=U,k.cdBrOffset=R-k.cdChunkOffsets[U],k.cdBrLength=D,k.cdBrCopied=0,0)}d(ot,"initializeCompoundDictionaryCopy");function at(k,R){let D=k.pos,U=D;for(;k.cdBrLength!==k.cdBrCopied;){let N=R-D,rt=k.cdChunkOffsets[k.cdBrIndex+1]-k.cdChunkOffsets[k.cdBrIndex]-k.cdBrOffset,gt=k.cdBrLength-k.cdBrCopied;if(gt>rt&&(gt=rt),gt>N&&(gt=N),k.ringBuffer.set(k.cdChunks[k.cdBrIndex].subarray(k.cdBrOffset,k.cdBrOffset+gt),D),D+=gt,k.cdBrOffset+=gt,k.cdBrCopied+=gt,gt===rt&&(k.cdBrIndex++,k.cdBrOffset=0),D>=R)break}return D-U}d(at,"copyFromCompoundDictionary");function At(k){let R;if(k.runningState===0)return ye(k,-25);if(k.runningState<0)return ye(k,-28);if(k.runningState===11)return ye(k,-22);if(k.runningState===1){let rt=m(k);if(rt===-1)return ye(k,-11);k.maxRingBufferSize=1<<rt,k.maxBackwardDistance=k.maxRingBufferSize-16,k.runningState=2}let D=H(k),U=k.ringBufferSize-1,N=k.ringBuffer;for(;k.runningState!==10;)switch(k.runningState){case 2:if(k.metaBlockLength<0)return ye(k,-10);if(R=Q(k),R<0)return R;D=H(k),U=k.ringBufferSize-1,N=k.ringBuffer;continue;case 3:if(R=Lt(k),R<0)return R;k.runningState=4;continue;case 4:if(k.metaBlockLength<=0){k.runningState=2;continue}if(k.halfOffset>2030&&(R=jt(k),R<0))return R;k.commandBlockLength===0&&z(k),k.commandBlockLength--,k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let rt=x(k.commandTreeGroup,k.commandTreeIdx,k)<<2,gt=f[rt],Ct=f[rt+1],Nt=f[rt+2];k.distanceCode=f[rt+3],k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let Jt=gt&255;k.insertLength=Ct+(Jt<=16?xt(k,Jt):Mt(k,Jt)),k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let Xt=gt>>8;k.copyLength=Nt+(Xt<=16?xt(k,Xt):Mt(k,Xt)),k.j=0,k.runningState=7;continue;case 7:if(k.trivialLiteralContext!==0)for(;k.j<k.insertLength;){if(k.halfOffset>2030&&(R=jt(k),R<0))return R;if(k.literalBlockLength===0&&K(k),k.literalBlockLength--,k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),N[k.pos]=x(k.literalTreeGroup,k.literalTreeIdx,k),k.pos++,k.j++,k.pos>=D){k.nextRunningState=7,k.runningState=12;break}}else{let _i=N[k.pos-1&U]&255,Qt=N[k.pos-2&U]&255;for(;k.j<k.insertLength;){if(k.halfOffset>2030&&(R=jt(k),R<0))return R;k.literalBlockLength===0&&K(k);let Qi=Fn[k.contextLookupOffset1+_i]|Fn[k.contextLookupOffset2+Qt],Rn=k.contextMap[k.contextMapSlice+Qi]&255;if(k.literalBlockLength--,Qt=_i,k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),_i=x(k.literalTreeGroup,Rn,k),N[k.pos]=_i,k.pos++,k.j++,k.pos>=D){k.nextRunningState=7,k.runningState=12;break}}}if(k.runningState!==7)continue;if(k.metaBlockLength-=k.insertLength,k.metaBlockLength<=0){k.runningState=4;continue}let ee=k.distanceCode;if(ee<0)k.distance=k.rings[k.distRbIdx];else{if(k.halfOffset>2030&&(R=jt(k),R<0))return R;k.distanceBlockLength===0&&B(k),k.distanceBlockLength--,k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);let _i=k.distContextMap[k.distContextMapSlice+ee]&255;if(ee=x(k.distanceTreeGroup,_i,k),ee<16){let Qt=k.distRbIdx+i[ee]&3;if(k.distance=k.rings[Qt]+a[ee],k.distance<0)return ye(k,-12)}else{let Qt=k.distExtraBits[ee],Qi;k.bitOffset+Qt<=32?Qi=xt(k,Qt):(k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),Qi=Qt<=16?xt(k,Qt):Mt(k,Qt)),k.distance=k.distOffset[ee]+(Qi<<k.distancePostfixBits)}}if(k.maxDistance=k.maxDistance!==k.maxBackwardDistance&&k.pos<k.maxBackwardDistance?k.pos:k.maxBackwardDistance,k.distance>k.maxDistance){k.runningState=9;continue}if(ee>0&&(k.distRbIdx=k.distRbIdx+1&3,k.rings[k.distRbIdx]=k.distance),k.copyLength>k.metaBlockLength)return ye(k,-9);k.j=0,k.runningState=8;continue;case 8:let he=k.pos-k.distance&U,be=k.pos,di=k.copyLength-k.j,Ji=he+di,fa=be+di;if(Ji<U&&fa<U){if(di<12||Ji>be&&fa>he){let _i=di+3>>2;for(let Qt=0;Qt<_i;++Qt)N[be++]=N[he++],N[be++]=N[he++],N[be++]=N[he++],N[be++]=N[he++]}else N.copyWithin(be,he,Ji);k.j+=di,k.metaBlockLength-=di,k.pos+=di}else for(;k.j<k.copyLength;)if(N[k.pos]=N[k.pos-k.distance&U],k.metaBlockLength--,k.pos++,k.j++,k.pos>=D){k.nextRunningState=8,k.runningState=12;break}k.runningState===8&&(k.runningState=4);continue;case 9:if(R=J(k,D),R<0)return R;continue;case 14:if(k.pos+=at(k,D),k.pos>=D)return k.nextRunningState=14,k.runningState=12,2;k.runningState=4;continue;case 5:for(;k.metaBlockLength>0;){if(k.halfOffset>2030&&(R=jt(k),R<0))return R;k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16),xt(k,8),k.metaBlockLength--}k.runningState=2;continue;case 6:if(R=Pt(k),R<0)return R;continue;case 12:k.ringBufferBytesReady=Math.min(k.pos,k.ringBufferSize),k.runningState=13;continue;case 13:if(R=X(k),R!==0)return R;k.pos>=k.maxBackwardDistance&&(k.maxDistance=k.maxBackwardDistance),k.pos>=k.ringBufferSize&&(k.pos>k.ringBufferSize&&N.copyWithin(0,k.ringBufferSize,k.pos),k.pos&=U,k.ringBufferBytesWritten=0),k.runningState=k.nextRunningState;continue;default:return ye(k,-28)}return k.runningState===10?k.metaBlockLength<0?ye(k,-10):(R=re(k),R!==0||(R=dt(k,1),R!==0)?R:1):ye(k,-29)}d(At,"decompress");function $t(k,R,D){this.numTransforms=0,this.triplets=new Int32Array,this.prefixSuffixStorage=new Int8Array,this.prefixSuffixHeads=new Int32Array,this.params=new Int16Array,this.numTransforms=k,this.triplets=new Int32Array(k*3),this.params=new Int16Array(k),this.prefixSuffixStorage=new Int8Array(R),this.prefixSuffixHeads=new Int32Array(D+1)}d($t,"Transforms");let ut=new $t(121,167,50);function bt(k,R,D,U,N){let rt=Xu(U),gt=rt.length,Ct=1,Nt=0;for(let Jt=0;Jt<gt;++Jt){let Xt=rt[Jt];Xt===35?R[Ct++]=Nt:k[Nt++]=Xt}for(let Jt=0;Jt<363;++Jt)D[Jt]=N.charCodeAt(Jt)-32}d(bt,"unpackTransforms"),bt(ut.prefixSuffixStorage,ut.prefixSuffixHeads,ut.triplets,`# #s #, #e #.# the #.com/#\xC2\xA0# of # and # in # to #"#">#
|
|
22
|
+
#]# for # a # that #. # with #'# from # by #. The # on # as # is #ing #
|
|
23
|
+
#:#ed #(# at #ly #="# of the #. This #,# not #er #al #='#ful #ive #less #est #ize #ous #`,` !! ! , *! &! " ! ) * * - ! # ! #!*! + ,$ ! - % . / # 0 1 . " 2 3!* 4% ! # / 5 6 7 8 0 1 & $ 9 + : ; < ' != > ?! 4 @ 4 2 & A *# ( B C& ) % ) !*# *-% A +! *. D! %' & E *6 F G% ! *A *% H! D I!+! J!+ K +- *4! A L!*4 M N +6 O!*% +.! K *G P +%( ! G *D +D Q +# *K!*G!+D!+# +G +A +4!+% +K!+4!*D!+K!*K`);function ct(k,R,D,U,N,rt,gt){let Ct=R,Nt=rt.triplets,Jt=rt.prefixSuffixStorage,Xt=rt.prefixSuffixHeads,ee=3*gt,he=Nt[ee],be=Nt[ee+1],di=Nt[ee+2],Ji=Xt[he],fa=Xt[he+1],_i=Xt[di],Qt=Xt[di+1],Qi=be-11,Rn=be;for((Qi<1||Qi>9)&&(Qi=0),(Rn<1||Rn>9)&&(Rn=0);Ji!==fa;)k[Ct++]=Jt[Ji++];let Qe=N;Qi>Qe&&(Qi=Qe);let Og=U+Qi;Qe-=Qi,Qe-=Rn;let Yu=Qe;for(;Yu>0;)k[Ct++]=D[Og++],Yu--;if(be===10||be===11){let _e=Ct-Qe;for(be===10&&(Qe=1);Qe>0;){let $s=k[_e]&255;$s<192?($s>=97&&$s<=122&&(k[_e]=k[_e]^32),_e+=1,--Qe):$s<224?(k[_e+1]=k[_e+1]^32,_e+=2,Qe-=2):(k[_e+2]=k[_e+2]^5,_e+=3,Qe-=3)}}else if(be===21||be===22){let _e=Ct-Qe,$s=rt.params[gt],Ui=($s&32767)+(16777216-($s&32768));for(;Qe>0;){let bs=1,Za=k[_e]&255;if(Za<128)Ui+=Za,k[_e]=Ui&127;else if(!(Za<192)){if(Za<224)if(Qe>=2){let ws=k[_e+1];Ui+=ws&63|(Za&31)<<6,k[_e]=192|Ui>>6&31,k[_e+1]=ws&192|Ui&63,bs=2}else bs=Qe;else if(Za<240)if(Qe>=3){let ws=k[_e+1],yr=k[_e+2];Ui+=yr&63|(ws&63)<<6|(Za&15)<<12,k[_e]=224|Ui>>12&15,k[_e+1]=ws&192|Ui>>6&63,k[_e+2]=yr&192|Ui&63,bs=3}else bs=Qe;else if(Za<248)if(Qe>=4){let ws=k[_e+1],yr=k[_e+2],Ju=k[_e+3];Ui+=Ju&63|(yr&63)<<6|(ws&63)<<12|(Za&7)<<18,k[_e]=240|Ui>>18&7,k[_e+1]=ws&192|Ui>>12&63,k[_e+2]=yr&192|Ui>>6&63,k[_e+3]=Ju&192|Ui&63,bs=4}else bs=Qe}_e+=bs,Qe-=bs,be===21&&(Qe=0)}}for(;_i!==Qt;)k[Ct++]=Jt[_i++];return Ct-R}d(ct,"transformDictionaryWord");function _t(k,R){let D=1<<R-1;for(;(k&D)!==0;)D>>=1;return(k&D-1)+D}d(_t,"getNextKey");function zt(k,R,D,U,N){let rt=U;for(;rt>0;)rt-=D,k[R+rt]=N}d(zt,"replicateValue");function Yt(k,R,D){let U=R,N=1<<U-D;for(;U<15&&(N-=k[U],!(N<=0));)U++,N<<=1;return U-D}d(Yt,"nextTableBitSize");function kt(k,R,D,U,N){let rt=k[R],gt=new Int32Array(N),Ct=new Int32Array(16),Nt=new Int32Array(16);for(let Qt=0;Qt<N;++Qt)Ct[U[Qt]]++;Nt[1]=0;for(let Qt=1;Qt<15;++Qt)Nt[Qt+1]=Nt[Qt]+Ct[Qt];for(let Qt=0;Qt<N;++Qt)U[Qt]!==0&&(gt[Nt[U[Qt]]++]=Qt);let Jt=D,Xt=1<<Jt,ee=Xt;if(Nt[15]===1){for(let Qt=0;Qt<ee;++Qt)k[rt+Qt]=gt[0];return ee}let he=0,be=0,di=1;for(let Qt=1;Qt<=D;++Qt)for(di<<=1;Ct[Qt]>0;)zt(k,rt+he,di,Xt,Qt<<16|gt[be++]),he=_t(he,Qt),Ct[Qt]--;let Ji=ee-1,fa=-1,_i=rt;di=1;for(let Qt=D+1;Qt<=15;++Qt)for(di<<=1;Ct[Qt]>0;)(he&Ji)!==fa&&(_i+=Xt,Jt=Yt(Ct,Qt,D),Xt=1<<Jt,ee+=Xt,fa=he&Ji,k[rt+fa]=Jt+D<<16|_i-rt-fa),zt(k,_i+(he>>D),di,Xt,Qt-D<<16|gt[be++]),he=_t(he,Qt),Ct[Qt]--;return ee}d(kt,"buildHuffmanTable");function jt(k){if(k.endOfStreamReached!==0)return ue(k)>=-2?0:ye(k,-16);let R=k.halfOffset<<1,D=4096-R;for(k.byteBuffer.copyWithin(0,R,4096),k.halfOffset=0;D<4096;){let U=4096-D,N=Ku(k,k.byteBuffer,D,U);if(N<-1)return N;if(N<=0){k.endOfStreamReached=1,k.tailBytes=D,D+=1;break}D+=N}return gs(k,D),0}d(jt,"readMoreInput");function dt(k,R){if(k.endOfStreamReached===0)return 0;let D=(k.halfOffset<<1)+(k.bitOffset+7>>3)-4;return D>k.tailBytes?ye(k,-13):R!==0&&D!==k.tailBytes?ye(k,-17):0}d(dt,"checkHealth");function xt(k,R){let D=k.accumulator32>>>k.bitOffset&(1<<R)-1;return k.bitOffset+=R,D}d(xt,"readFewBits");function Mt(k,R){let D=xt(k,16);return k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16,D|xt(k,R-16)<<16}d(Mt,"readManyBits");function Zt(k){return k.byteBuffer=new Int8Array(4160),k.accumulator32=0,k.shortBuffer=new Int16Array(2080),k.bitOffset=32,k.halfOffset=2048,k.endOfStreamReached=0,Kt(k)}d(Zt,"initBitReader");function Kt(k){if(k.halfOffset>2030){let D=jt(k);if(D!==0)return D}let R=dt(k,0);return R===0?(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16,k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16,0):R}d(Kt,"prepare");function Et(k){return k.bitOffset===32?Kt(k):0}d(Et,"reload");function re(k){let R=32-k.bitOffset&7;return R!==0&&xt(k,R)!==0?ye(k,-5):0}d(re,"jumpToByteBoundary");function ue(k){let R=2048;return k.endOfStreamReached!==0&&(R=k.tailBytes+1>>1),R-k.halfOffset}d(ue,"halfAvailable");function li(k,R,D,U){let N=D,rt=U;if(k.bitOffset&7)return ye(k,-30);for(;k.bitOffset!==32&&rt!==0;)R[N++]=k.accumulator32>>>k.bitOffset,k.bitOffset+=8,rt--;if(rt===0)return 0;let gt=Math.min(ue(k),rt>>1);if(gt>0){let Ct=k.halfOffset<<1,Nt=gt<<1;R.set(k.byteBuffer.subarray(Ct,Ct+Nt),N),N+=Nt,rt-=Nt,k.halfOffset+=gt}if(rt===0)return 0;if(ue(k)>0){for(k.bitOffset>=16&&(k.accumulator32=k.shortBuffer[k.halfOffset++]<<16|k.accumulator32>>>16,k.bitOffset-=16);rt!==0;)R[N++]=k.accumulator32>>>k.bitOffset,k.bitOffset+=8,rt--;return dt(k,0)}for(;rt>0;){let Ct=Ku(k,R,N,rt);if(Ct<-1)return Ct;if(Ct<=0)return ye(k,-16);N+=Ct,rt-=Ct}return 0}d(li,"copyRawBytes");function gs(k,R){let D=k.byteBuffer,U=R>>1,N=k.shortBuffer;for(let rt=0;rt<U;++rt)N[rt]=D[rt*2]&255|(D[rt*2+1]&255)<<8}d(gs,"bytesToNibbles");let Fn=new Int32Array(2048);function Pl(k,R,D){for(let N=0;N<256;++N)k[N]=N&63,k[512+N]=N>>2,k[1792+N]=2+(N>>6);for(let N=0;N<128;++N)k[1024+N]=4*(R.charCodeAt(N)-32);for(let N=0;N<64;++N)k[1152+N]=N&1,k[1216+N]=2+(N&1);let U=1280;for(let N=0;N<19;++N){let rt=N&3,gt=D.charCodeAt(N)-32;for(let Ct=0;Ct<gt;++Ct)k[U++]=rt}for(let N=0;N<16;++N)k[1792+N]=1,k[2032+N]=6;k[1792]=0,k[2047]=7;for(let N=0;N<256;++N)k[1536+N]=k[1792+N]<<3}d(Pl,"unpackLookupTable"),Pl(Fn,` !! ! "#$##%#$&'##(#)#++++++++++((&*'##,---,---,-----,-----,-----&#'###.///.///./////./////./////&#'# `,"A/* ': & : $ \x81 @");function Bl(){this.ringBuffer=new Int8Array,this.contextModes=new Int8Array,this.contextMap=new Int8Array,this.distContextMap=new Int8Array,this.distExtraBits=new Int8Array,this.output=new Int8Array,this.byteBuffer=new Int8Array,this.shortBuffer=new Int16Array,this.intBuffer=new Int32Array,this.rings=new Int32Array,this.blockTrees=new Int32Array,this.literalTreeGroup=new Int32Array,this.commandTreeGroup=new Int32Array,this.distanceTreeGroup=new Int32Array,this.distOffset=new Int32Array,this.accumulator64=0,this.runningState=0,this.nextRunningState=0,this.accumulator32=0,this.bitOffset=0,this.halfOffset=0,this.tailBytes=0,this.endOfStreamReached=0,this.metaBlockLength=0,this.inputEnd=0,this.isUncompressed=0,this.isMetadata=0,this.literalBlockLength=0,this.numLiteralBlockTypes=0,this.commandBlockLength=0,this.numCommandBlockTypes=0,this.distanceBlockLength=0,this.numDistanceBlockTypes=0,this.pos=0,this.maxDistance=0,this.distRbIdx=0,this.trivialLiteralContext=0,this.literalTreeIdx=0,this.commandTreeIdx=0,this.j=0,this.insertLength=0,this.contextMapSlice=0,this.distContextMapSlice=0,this.contextLookupOffset1=0,this.contextLookupOffset2=0,this.distanceCode=0,this.numDirectDistanceCodes=0,this.distancePostfixBits=0,this.distance=0,this.copyLength=0,this.maxBackwardDistance=0,this.maxRingBufferSize=0,this.ringBufferSize=0,this.expectedTotalSize=0,this.outputOffset=0,this.outputLength=0,this.outputUsed=0,this.ringBufferBytesWritten=0,this.ringBufferBytesReady=0,this.isEager=0,this.isLargeWindow=0,this.cdNumChunks=0,this.cdTotalSize=0,this.cdBrIndex=0,this.cdBrOffset=0,this.cdBrLength=0,this.cdBrCopied=0,this.cdChunks=[],this.cdChunkOffsets=new Int32Array,this.cdBlockBits=0,this.cdBlockMap=new Int8Array,this.input=new qf(new Int8Array),this.ringBuffer=new Int8Array,this.rings=new Int32Array(10),this.rings[0]=16,this.rings[1]=15,this.rings[2]=11,this.rings[3]=4}d(Bl,"State");let wr=new Int8Array,Gu=new Int32Array(32),$u=new Int32Array(32);function Fg(k,R){let D=Gu,U=$u;for(let rt=0;rt<R.length;++rt)U[rt]=R[rt];let N=0;for(let rt=0;rt<R.length;++rt){D[rt]=N;let gt=U[rt];gt!==0&&(N+=rt<<(gt&31))}for(let rt=R.length;rt<32;++rt)D[rt]=N;wr=k}d(Fg,"setData");function Rg(k,R,D,U,N,rt){let gt=Pg(R+D),Ct=Xu(U),Nt=0,Jt=Ct.length>>1;for(let Xt=0;Xt<Jt;++Xt){let ee=Ct[2*Xt]-36,he=Ct[2*Xt+1]-36;for(let be=0;be<ee;++be)gt[Nt]=gt[Nt]^3,Nt++;for(let be=0;be<he;++be)gt[Nt]=gt[Nt]^236,Nt++}for(let Xt=0;Xt<rt.length;++Xt)N[Xt]=rt.charCodeAt(Xt)-65;k.set(gt)}d(Rg,"unpackDictionaryData");let Wu=new Int8Array(122784),Vu=new Int32Array(25);Rg(Wu,'wjnfgltmojefofewab`h`lgfgbwbpkltlmozpjwf`jwzlsfmivpwojhfeqfftlqhwf{wzfbqlufqalgzolufelqnallhsobzojufojmfkfosklnfpjgfnlqftlqgolmdwkfnujftejmgsbdfgbzpevookfbgwfqnfb`kbqfbeqlnwqvfnbqhbaofvslmkjdkgbwfobmgmftpfufmmf{w`bpfalwkslpwvpfgnbgfkbmgkfqftkbwmbnfOjmhaoldpjyfabpfkfognbhfnbjmvpfq$*#(klogfmgptjwkMftpqfbgtfqfpjdmwbhfkbufdbnfpffm`boosbwktfoosovpnfmvejonsbqwiljmwkjpojpwdllgmffgtbzptfpwilapnjmgboploldlqj`kvpfpobpwwfbnbqnzellghjmdtjoofbpwtbqgafpwejqfSbdfhmltbtbz-smdnlufwkbmolbgdjufpfoemlwfnv`keffgnbmzql`hj`lmlm`follhkjgfgjfgKlnfqvofklpwbib{jmel`ovaobtpofppkboeplnfpv`kylmf233&lmfp`bqfWjnfqb`faovfelvqtffheb`fklsfdbufkbqgolpwtkfmsbqhhfswsbpppkjsqllnKWNOsobmWzsfglmfpbufhffseobdojmhplogejufwllhqbwfwltmivnswkvpgbqh`bqgejofefbqpwbzhjoowkbweboobvwlfufq-`lnwbohpklsulwfgffsnlgfqfpwwvqmalqmabmgefooqlpfvqo+phjmqlof`lnfb`wpbdfpnffwdlog-isdjwfnubqzefowwkfmpfmggqlsUjft`lsz2-3!?,b=pwlsfopfojfpwlvqsb`h-djesbpw`pp<dqbznfbm%dw8qjgfpklwobwfpbjgqlbgubq#effoilkmqj`hslqwebpw$VB.gfbg?,a=sllqajoowzsfV-P-tllgnvpw1s{8JmelqbmhtjgftbmwtbooofbgX3^8sbvotbufpvqf\'+$ tbjwnbppbqnpdlfpdbjmobmdsbjg"..#ol`hvmjwqllwtbohejqntjef{no!plmdwfpw13s{hjmgqltpwlloelmwnbjopbefpwbqnbsp`lqfqbjmeoltabazpsbmpbzp7s{85s{8bqwpellwqfbotjhjkfbwpwfswqjslqd,obhftfbhwlogElqn`bpwebmpabmhufqzqvmpivozwbph2s{8dlbodqftpoltfgdfjg>!pfwp6s{8-ip<73s{je#+pllmpfbwmlmfwvafyfqlpfmwqffgeb`wjmwldjewkbqn2;s{`bnfkjooalogyllnuljgfbpzqjmdejoosfbhjmjw`lpw0s{8ib`hwbdpajwpqloofgjwhmftmfbq?"..dqltIPLMgvwzMbnfpbofzlv#olwpsbjmibyy`logfzfpejpkttt-qjphwbapsqfu23s{qjpf16s{Aovfgjmd033/abooelqgfbqmtjogal{-ebjqob`hufqpsbjqivmfwf`kje+"sj`hfujo\'+! tbqnolqgglfpsvoo/333jgfbgqbtkvdfpslwevmgavqmkqfe`foohfzpwj`hklvqolppevfo21s{pvjwgfboQPP!bdfgdqfzDFW!fbpfbjnpdjqobjgp;s{8mbuzdqjgwjsp :::tbqpobgz`bqp*8#~sks<kfoowbootklnyk9 ), #233kboo- B4s{8svpk`kbw3s{8`qft),?,kbpk46s{eobwqbqf#%%#wfoo`bnslmwlobjgnjppphjswfmwejmfnbofdfwpsolw733/ `lloeffw-sks?aq=fqj`nlpwdvjgafoogfp`kbjqnbwkbwln,jnd% ;1ov`h`fmw3338wjmzdlmfkwnopfoogqvdEQFFmlgfmj`h<jg>olpfmvooubpwtjmgQPP#tfbqqfozaffmpbnfgvhfmbpb`bsftjpkdvoeW109kjwppolwdbwfhj`haovqwkfz26s{$$*8*8!=npjftjmpajqgplqwafwbpffhW2;9lqgpwqffnboo53s{ebqnlupalzpX3^-$*8!SLPWafbqhjgp*8~~nbqzwfmg+VH*rvbgyk9\n.pjy....sqls$*8ojewW2:9uj`fbmgzgfaw=QPPsllomf`haoltW259gllqfuboW249ofwpebjolqbosloomlub`lopdfmf#lxplewqlnfwjooqlpp?k0=slvqebgfsjmh?wq=njmj*\x7F"+njmfyk9abqpkfbq33*8njoh#..=jqlmeqfggjphtfmwpljosvwp,ip,klozW119JPAMW139bgbnpffp?k1=iplm$/#$`lmwW129#QPPollsbpjbnllm?,s=plvoOJMFelqw`bqwW279?k2=;3s{"..?:s{8W379njhf975Ymj`fjm`kZlqhqj`fyk9\b$**8svqfnbdfsbqbwlmfalmg904Y\\le\\$^*8333/yk9\vwbmhzbqgaltoavpk965YIbub03s{ \x7F~ &@0&907YifeeF[SJ`bpkujpbdloepmltyk9rvfq-`pppj`hnfbwnjm-ajmggfookjqfsj`pqfmw905YKWWS.132elwltloeFMG#{al{967YALGZgj`h8 ~ f{jw906Yubqpafbw$~*8gjfw:::8bmmf~~?,Xj^-Obmdhn.^tjqfwlzpbggppfbobof{8 \n~f`klmjmf-lqd336*wlmziftppbmgofdpqlle333*#133tjmfdfbqgldpallwdbqz`vwpwzofwfnswjlm-{no`l`hdbmd\'+$-63s{Sk-Gnjp`bobmolbmgfphnjofqzbmvmj{gjp`*8~ gvpw`ojs*- 43s{.133GUGp4^=?wbsfgfnlj((*tbdffvqlskjolswpklofEBRpbpjm.15WobapsfwpVQO#avoh`llh8~ KFBGX3^*baaqivbm+2:;ofpkwtjm?,j=plmzdvzpev`hsjsf\x7F. "331*mgltX2^8X^8 Old#pbow \n\nabmdwqjnabwk*x 33s{ ~*8hl9\0effpbg=p9,,#X^8wloosovd+*x x #-ip$133sgvboalbw-ISD*8 ~rvlw*8 $*8 ~1327132613251324132;132:13131312131113101317131613151314131;131:130313021301130013071306130513041320132113221323133:133;133413351336133713301331133213332:::2::;2::42::52::62::72::02::12::22::32:;:2:;;2:;42:;52:;62:;72:;02:;12:;22:;32:4:2:4;2:442:452:462:472:402:412:422:432:5:2:5;2:542:552:562:572:502:512:522:532:6:2:6;2:642:652:662:672:602:612:622:632333231720:73333::::`lnln/Mpfpwffpwbsfqlwlglkb`f`bgbb/]lajfmg/Abbp/Aujgb`bpllwqlelqlplollwqb`vbogjilpjgldqbmwjslwfnbgfafbodlrv/Efpwlmbgbwqfpsl`l`bpbabilwlgbpjmlbdvbsvfpvmlpbmwfgj`fovjpfoobnbzlylmbbnlqsjpllaqb`oj`foolgjlpklqb`bpj<[<\\<Q<\\<R<P=l<\\=l=o=n<\\<Q<Y<S<R<R=n<T<[<Q<R<X<R=n<R<Z<Y<R<Q<T=i<q<\\<Y<Y<]=g<P=g<~=g=m<R<^=g<^<R<q<R<R<]<s<R<W<T<Q<T<L<H<q<Y<p=g=n=g<r<Q<T<P<X<\\<{<\\<x<\\<q=o<r<]=n<Y<t<[<Y<U<Q=o<P<P<N=g=o<Z5m5f4O5j5i4K5i4U5o5h4O5d4]4C5f4K5m5e5k5d5h5i5h5o4K5d5h5k4D4_4K5h4I5j5k5f4O5f5n4C5k5h4G5i4D5k5h5d5h5f4D5h4K5f4D5o4X5f4K5i4O5i5j4F4D5f5h5j4A4D5k5i5i4X5d4Xejqpwujgflojdkwtlqognfgjbtkjwf`olpfaob`hqjdkwpnbooallhpsob`fnvpj`ejfoglqgfqsljmwubovfofufowbaofalbqgklvpfdqlvstlqhpzfbqppwbwfwlgbztbwfqpwbqwpwzofgfbwksltfqsklmfmjdkwfqqlqjmsvwbalvwwfqnpwjwofwllopfufmwol`bowjnfpobqdftlqgpdbnfppklqwpsb`fel`vp`ofbqnlgfoaol`hdvjgfqbgjlpkbqftlnfmbdbjmnlmfzjnbdfmbnfpzlvmdojmfpobwfq`lolqdqffmeqlmw%bns8tbw`kelq`fsqj`fqvofpafdjmbewfqujpjwjppvfbqfbpafoltjmgf{wlwboklvqpobafosqjmwsqfppavjowojmhppsffgpwvgzwqbgfelvmgpfmpfvmgfqpkltmelqnpqbmdfbggfgpwjoonlufgwbhfmbalufeobpkej{fglewfmlwkfqujftp`kf`hofdboqjufqjwfnprvj`hpkbsfkvnbmf{jpwdljmdnlujfwkjqgabpj`sfb`fpwbdftjgwkoldjmjgfbptqlwfsbdfpvpfqpgqjufpwlqfaqfbhplvwkulj`fpjwfpnlmwktkfqfavjogtkj`kfbqwkelqvnwkqffpslqwsbqwz@oj`holtfqojufp`obppobzfqfmwqzpwlqzvpbdfplvmg`lvqwzlvq#ajqwkslsvswzsfpbssozJnbdfafjmdvssfqmlwfpfufqzpkltpnfbmpf{wqbnbw`kwqb`hhmltmfbqozafdbmpvsfqsbsfqmlqwkofbqmdjufmmbnfgfmgfgWfqnpsbqwpDqlvsaqbmgvpjmdtlnbmebopfqfbgzbvgjlwbhfptkjof-`ln,ojufg`bpfpgbjoz`kjogdqfbwivgdfwklpfvmjwpmfufqaqlbg`lbpw`lufqbssofejofp`z`ofp`fmfsobmp`oj`htqjwfrvffmsjf`ffnbjoeqbnflogfqsklwlojnjw`b`kf`jujop`boffmwfqwkfnfwkfqfwlv`kalvmgqlzbobphfgtklofpjm`fpwl`h#mbnfebjwkkfbqwfnswzleefqp`lsfltmfgnjdkwboavnwkjmhaollgbqqbznbilqwqvpw`bmlmvmjlm`lvmwubojgpwlmfPwzofOldjmkbsszl``vqofew9eqfpkrvjwfejonpdqbgfmffgpvqabmejdkwabpjpklufqbvwl8qlvwf-kwnonj{fgejmboZlvq#pojgfwlsj`aqltmbolmfgqbtmpsojwqfb`kQjdkwgbwfpnbq`krvlwfdllgpOjmhpglvawbpzm`wkvnaboolt`kjfezlvwkmlufo23s{8pfqufvmwjokbmgp@kf`hPsb`frvfqzibnfpfrvbowtj`f3/333Pwbqwsbmfoplmdpqlvmgfjdkwpkjewtlqwkslpwpofbgptffhpbuljgwkfpfnjofpsobmfpnbqwboskbsobmwnbqhpqbwfpsobzp`objnpbofpwf{wppwbqptqlmd?,k0=wkjmd-lqd,nvowjkfbqgSltfqpwbmgwlhfmplojg+wkjpaqjmdpkjsppwbeewqjfg`boopevoozeb`wpbdfmwWkjp#,,..=bgnjmfdzswFufmw26s{8Fnbjowqvf!`qlpppsfmwaoldpal{!=mlwfgofbuf`kjmbpjyfpdvfpw?,k7=qlalwkfbuzwqvf/pfufmdqbmg`qjnfpjdmpbtbqfgbm`fskbpf=?"..fm\\VP% 0:8133s{\\mbnfobwjmfmilzbib{-bwjlmpnjwkV-P-#klogpsfwfqjmgjbmbu!=`kbjmp`lqf`lnfpgljmdsqjlqPkbqf2::3pqlnbmojpwpibsbmeboopwqjboltmfqbdqff?,k1=bavpfbofqwlsfqb!.,,T`bqgpkjoopwfbnpSklwlwqvwk`ofbm-sks<pbjmwnfwboolvjpnfbmwsqlleaqjfeqlt!=dfmqfwqv`hollhpUbovfEqbnf-mfw,..= ?wqz#x ubq#nbhfp`lpwpsobjmbgvowrvfpwwqbjmobalqkfosp`bvpfnbdj`nlwlqwkfjq163s{ofbpwpwfsp@lvmw`lvogdobpppjgfpevmgpklwfobtbqgnlvwknlufpsbqjpdjufpgvw`kwf{bpeqvjwmvoo/\x7F\x7FX^8wls!= ?"..SLPW!l`fbm?aq,=eollqpsfbhgfswk#pjyfabmhp`bw`k`kbqw13s{8bojdmgfboptlvog63s{8vqo>!sbqhpnlvpfNlpw#---?,bnlmdaqbjmalgz#mlmf8abpfg`bqqzgqbewqfefqsbdf\\klnf-nfwfqgfobzgqfbnsqlufiljmw?,wq=gqvdp?"..#bsqjojgfboboofmf{b`welqwk`lgfpoldj`Ujft#pffnpaobmhslqwp#+133pbufg\\ojmhdlbopdqbmwdqffhklnfpqjmdpqbwfg03s{8tklpfsbqpf+*8!#Aol`hojmv{ilmfpsj{fo$*8!=*8je+.ofewgbujgklqpfEl`vpqbjpfal{fpWqb`hfnfmw?,fn=abq!=-pq`>wltfqbow>!`baofkfmqz17s{8pfwvsjwbozpkbqsnjmlqwbpwftbmwpwkjp-qfpfwtkffodjqop,`pp,233&8`ovappwveeajaofulwfp#2333hlqfb~*8 abmgprvfvf>#x~8;3s{8`hjmdx \n\nbkfbg`ol`hjqjpkojhf#qbwjlpwbwpElqn!zbkll*X3^8Balvwejmgp?,k2=gfavdwbphpVQO#>`foop~*+*821s{8sqjnfwfoopwvqmp3{533-isd!psbjmafb`kwb{fpnj`qlbmdfo..=?,djewppwfuf.ojmhalgz-~*8 \nnlvmw#+2::EBR?,qldfqeqbmh@obpp1;s{8effgp?k2=?p`lwwwfpwp11s{8gqjmh*#\x7F\x7F#oftjppkboo 30:8#elq#olufgtbpwf33s{8ib9npjnlm?elmwqfsoznffwpvmwfq`kfbswjdkwAqbmg*#">#gqfpp`ojspqllnplmhfznlajonbjm-Mbnf#sobwfevmmzwqffp`ln,!2-isdtnlgfsbqbnPWBQWofew#jggfm/#132*8 ~ elqn-ujqvp`kbjqwqbmptlqpwSbdfpjwjlmsbw`k?".. l.`b`ejqnpwlvqp/333#bpjbmj((*xbglaf$*X3^jg>23alwk8nfmv#-1-nj-smd!hfujm`lb`k@kjogaqv`f1-isdVQO*(-isd\x7Fpvjwfpoj`fkbqqz213!#ptffwwq= mbnf>gjfdlsbdf#ptjpp..= eee8!=Old-`ln!wqfbwpkffw*#%%#27s{8poffsmwfmwejofgib9ojg>!`Mbnf!tlqpfpklwp.al{.gfowb %ow8afbqp97;Y?gbwb.qvqbo?,b=#psfmgabhfqpklsp>#!!8sks!=`wjlm20s{8aqjbmkfoolpjyf>l>&1E#iljmnbzaf?jnd#jnd!=/#eipjnd!#!*X3^NWlsAWzsf!mftozGbmph`yf`kwqbjohmltp?,k6=ebr!=yk.`m23*8 .2!*8wzsf>aovfpwqvozgbujp-ip$8= ?"pwffo#zlv#k1= elqn#ifpvp233&#nfmv- \n tbofpqjphpvnfmwggjmda.ojhwfb`kdje!#ufdbpgbmphffpwjpkrjspvlnjplaqfgfpgffmwqfwlglpsvfgfb/]lpfpw/Mwjfmfkbpwblwqlpsbqwfglmgfmvfulkb`fqelqnbnjpnlnfilqnvmglbrv/Ag/Abpp/_olbzvgbef`kbwlgbpwbmwlnfmlpgbwlplwqbppjwjlnv`klbklqbovdbqnbzlqfpwlpklqbpwfmfqbmwfpelwlpfpwbpsb/Apmvfubpbovgelqlpnfgjlrvjfmnfpfpslgfq`kjofpfq/Muf`fpgf`jqilp/Efpwbqufmwbdqvslkf`klfoolpwfmdlbnjdl`lpbpmjufodfmwfnjpnbbjqfpivojlwfnbpkb`jbebulqivmjlojaqfsvmwlavfmlbvwlqbaqjoavfmbwf{wlnbqylpbafqojpwbovfdl`/_nlfmfqlivfdlsfq/Vkbafqfpwlzmvm`bnvifqubolqevfqbojaqldvpwbjdvboulwlp`bplpdv/Absvfglplnlpbujplvpwfggfafmml`kfavp`bebowbfvqlppfqjfgj`kl`vqpl`obuf`bpbpof/_msobylobqdllaqbpujpwbbslzlivmwlwqbwbujpwl`qfbq`bnslkfnlp`jm`l`bqdlsjplplqgfmkb`fm/Mqfbgjp`lsfgql`fq`bsvfgbsbsfonfmlq/Vwjo`obqlilqdf`boofslmfqwbqgfmbgjfnbq`bpjdvffoobppjdol`l`kfnlwlpnbgqf`obpfqfpwlmj/]lrvfgbsbpbqabm`lkjilpujbifsbaol/Epwfujfmfqfjmlgfibqelmgl`bmbomlqwfofwqb`bvpbwlnbqnbmlpovmfpbvwlpujoobufmglsfpbqwjslpwfmdbnbq`loofubsbgqfvmjglubnlpylmbpbnalpabmgbnbqjbbavplnv`kbpvajqqjlibujujqdqbgl`kj`bboo/Ailufmgj`kbfpwbmwbofppbojqpvfolsfplpejmfpoobnbavp`l/Epwboofdbmfdqlsobybkvnlqsbdbqivmwbglaofjpobpalopbab/]lkbaobov`kb/mqfbgj`fmivdbqmlwbpuboofboo/M`bqdbglolqbabilfpw/Edvpwlnfmwfnbqjlejqnb`lpwlej`kbsobwbkldbqbqwfpofzfpbrvfonvpflabpfpsl`lpnjwbg`jfol`kj`lnjfgldbmbqpbmwlfwbsbgfafpsobzbqfgfppjfwf`lqwf`lqfbgvgbpgfpflujfilgfpfbbdvbp%rvlw8glnbjm`lnnlmpwbwvpfufmwpnbpwfqpzpwfnb`wjlmabmmfqqfnlufp`qloovsgbwfdolabonfgjvnejowfqmvnafq`kbmdfqfpvowsvaoj`p`qffm`kllpfmlqnbowqbufojppvfpplvq`fwbqdfwpsqjmdnlgvofnlajofptjw`ksklwlpalqgfqqfdjlmjwpfoepl`jbob`wjuf`lovnmqf`lqgelooltwjwof=fjwkfqofmdwkebnjozeqjfmgobzlvwbvwklq`qfbwfqfujftpvnnfqpfqufqsobzfgsobzfqf{sbmgsloj`zelqnbwglvaofsljmwppfqjfpsfqplmojujmdgfpjdmnlmwkpelq`fpvmjrvftfjdkwsflsoffmfqdzmbwvqfpfbq`kejdvqfkbujmd`vpwlnleepfwofwwfqtjmgltpvanjwqfmgfqdqlvspvsolbgkfbowknfwklgujgflpp`klloevwvqfpkbgltgfabwfubovfpLaif`wlwkfqpqjdkwpofbdvf`kqlnfpjnsofmlwj`fpkbqfgfmgjmdpfbplmqfslqwlmojmfprvbqfavwwlmjnbdfpfmbaofnlujmdobwfpwtjmwfqEqbm`fsfqjlgpwqlmdqfsfbwOlmglmgfwbjoelqnfggfnbmgpf`vqfsbppfgwlddofsob`fpgfuj`fpwbwj``jwjfppwqfbnzfooltbwwb`hpwqffweojdkwkjggfmjmel!=lsfmfgvpfevouboofz`bvpfpofbgfqpf`qfwpf`lmggbnbdfpslqwpf{`fswqbwjmdpjdmfgwkjmdpfeef`wejfogppwbwfpleej`fujpvbofgjwlqulovnfQfslqwnvpfvnnlujfpsbqfmwb``fppnlpwoznlwkfq!#jg>!nbqhfwdqlvmg`kbm`fpvqufzafelqfpznalonlnfmwpsff`knlwjlmjmpjgfnbwwfq@fmwfqlaif`wf{jpwpnjggofFvqlsfdqltwkofdb`znbmmfqfmlvdk`bqffqbmptfqlqjdjmslqwbo`ojfmwpfof`wqbmgln`olpfgwlsj`p`lnjmdebwkfqlswjlmpjnsozqbjpfgfp`bsf`klpfm`kvq`kgfejmfqfbplm`lqmfqlvwsvwnfnlqzjeqbnfsloj`fnlgfopMvnafqgvqjmdleefqppwzofphjoofgojpwfg`boofgpjoufqnbqdjmgfofwfafwwfqaqltpfojnjwpDolabopjmdoftjgdfw`fmwfqavgdfwmltqbs`qfgjw`objnpfmdjmfpbefwz`klj`fpsjqjw.pwzofpsqfbgnbhjmdmffgfgqvppjbsofbpff{wfmwP`qjswaqlhfmbooltp`kbqdfgjujgfeb`wlqnfnafq.abpfgwkflqz`lmejdbqlvmgtlqhfgkfosfg@kvq`kjnsb`wpklvogbotbzpoldl!#alwwlnojpw!=*xubq#sqfej{lqbmdfKfbgfq-svpk+`lvsofdbqgfmaqjgdfobvm`kQfujftwbhjmdujpjlmojwwofgbwjmdAvwwlmafbvwzwkfnfpelqdlwPfbq`kbm`klqbonlpwolbgfg@kbmdfqfwvqmpwqjmdqfolbgNlajofjm`lnfpvssozPlvq`flqgfqpujftfg%maps8`lvqpfBalvw#jpobmg?kwno#`llhjfmbnf>!bnbylmnlgfqmbguj`fjm?,b=9#Wkf#gjboldklvpfpAFDJM#Nf{j`lpwbqwp`fmwqfkfjdkwbggjmdJpobmgbppfwpFnsjqfP`kllofeelqwgjqf`wmfbqoznbmvboPfof`w- Lmfiljmfgnfmv!=SkjojsbtbqgpkbmgofjnslqwLeej`fqfdbqgphjoopmbwjlmPslqwpgfdqfftffhoz#+f-d-afkjmggl`wlqolddfgvmjwfg?,a=?,afdjmpsobmwpbppjpwbqwjpwjppvfg033s{\x7F`bmbgbbdfm`zp`kfnfqfnbjmAqbyjopbnsofoldl!=afzlmg.p`bofb``fswpfqufgnbqjmfEllwfq`bnfqb?,k2= \\elqn!ofbufppwqfpp!#,= -dje!#lmolbgolbgfqL{elqgpjpwfqpvqujuojpwfmefnbofGfpjdmpjyf>!bssfbowf{w!=ofufopwkbmhpkjdkfqelq`fgbmjnbobmzlmfBeqj`bbdqffgqf`fmwSflsof?aq#,=tlmgfqsqj`fpwvqmfg\x7F\x7F#x~8nbjm!=jmojmfpvmgbztqbs!=ebjofg`fmpvpnjmvwfafb`lmrvlwfp263s{\x7Ffpwbwfqfnlwffnbjo!ojmhfgqjdkw8pjdmboelqnbo2-kwnopjdmvssqjm`feolbw9-smd!#elqvn-B``fppsbsfqpplvmgpf{wfmgKfjdkwpojgfqVWE.;!%bns8#Afelqf-#TjwkpwvgjlltmfqpnbmbdfsqlejwiRvfqzbmmvbosbqbnpalvdkwebnlvpdlldofolmdfqj((*#xjpqbfopbzjmdgf`jgfklnf!=kfbgfqfmpvqfaqbm`ksjf`fpaol`h8pwbwfgwls!=?qb`jmdqfpjyf..%dw8sb`jwzpf{vboavqfbv-isd!#23/333lawbjmwjwofpbnlvmw/#Jm`-`lnfgznfmv!#ozqj`pwlgbz-jmgffg`lvmwz\\oldl-EbnjozollhfgNbqhfwopf#jeSobzfqwvqhfz*8ubq#elqfpwdjujmdfqqlqpGlnbjm~fopfxjmpfqwAold?,ellwfqoldjm-ebpwfqbdfmwp?algz#23s{#3sqbdnbeqjgbzivmjlqgloobqsob`fg`lufqpsovdjm6/333#sbdf!=alpwlm-wfpw+bubwbqwfpwfg\\`lvmwelqvnpp`kfnbjmgf{/ejoofgpkbqfpqfbgfqbofqw+bssfbqPvanjwojmf!=algz!= )#WkfWklvdkpffjmdifqpfzMftp?,ufqjezf{sfqwjmivqztjgwk>@llhjfPWBQW#b`qlpp\\jnbdfwkqfbgmbwjufsl`hfwal{!= Pzpwfn#Gbujg`bm`fqwbaofpsqlufgBsqjo#qfboozgqjufqjwfn!=nlqf!=albqgp`lolqp`bnsvpejqpw#\x7F\x7F#X^8nfgjb-dvjwbqejmjpktjgwk9pkltfgLwkfq#-sks!#bppvnfobzfqptjoplmpwlqfpqfojfeptfgfm@vpwlnfbpjoz#zlvq#Pwqjmd Tkjowbzolq`ofbq9qfplqweqfm`kwklvdk!*#(#!?algz=avzjmdaqbmgpNfnafqmbnf!=lssjmdpf`wlq6s{8!=upsb`fslpwfqnbilq#`leeffnbqwjmnbwvqfkbssfm?,mbu=hbmpbpojmh!=Jnbdfp>ebopftkjof#kpsb`f3%bns8# Jm##sltfqSlophj.`lolqilqgbmAlwwlnPwbqw#.`lvmw1-kwnomftp!=32-isdLmojmf.qjdkwnjoofqpfmjlqJPAM#33/333#dvjgfpubovf*f`wjlmqfsbjq-{no!##qjdkwp-kwno.aol`hqfdF{s9klufqtjwkjmujqdjmsklmfp?,wq=vpjmd# \nubq#=$*8 \n?,wg= ?,wq= abkbpbaqbpjodbofdlnbdzbqslophjpqsphj4]4C5d\bTA\nzk\vBl\bQ\x7F\vUmGx\bSM\nmC\bTA wQ\nd}\bW@\bTl\bTF i@ cT\vBM\v|jBV qw cC\bWI\npa fM\n{Z{X\bTF\bVV\bVK \x7FmkF []\bPm\bTv\nsI\vpg [I\bQpmx\v_W\n^M\npe\vQ}\vGu\nel\npeChBV\bTA So\nzk\vGL\vxD\nd[JzMY\bQpli\nfl\npC{BNt\vwT i_\bTgQQ\n|p\vXN\bQS\vxDQC\bWZ pD\vVS\bTWNtYh\nzuKjN} wr Ha\n_D j`\vQ}\vWp\nxZ{c ji BU\nbDa| Tn pV\nZd\nmC\vEV{X c} To\bWl\bUd IQ cg\vxs\nXW wR\vek c} ]y Jn\nrp\neg\npV\nz\\{W\npl\nz\\\nzU Pc `{\bV@\nc|\bRw i_\bVb\nwX HvSu\bTF\v_W\vWs\vsIm\x7F\nTT\ndc US }f iZ\bWz c}MD Be iD\v@@\bTl\bPv }tSwM`\vnU kW\ved\nqo\vxY A|\bTz\vy`BRBM iaXU\nyun^ fL iI\nXW fD\bWz\bW@ yj \x7Fm av BN\vb\\ pD\bTf\nY[ Jn\bQy [^\vWc\vyuDlCJ\vWj\vHR `V\vuW Qy\np@\vGuplJm\bW[\nLP\nxC\n`m wQui\x7FR\nbI wQ BZ WVBR\npg cgtiCW\n_y Rg\bQa\vQB\vWc\nYble\ngESu\nL[ Q\x7F ea dj\v]W\nb~M` wL\bTV\bVH\nt\x7F\npl |bs_\bU|\bTaoQlvSkM`\bTv\vK}\nfl cCoQBR Hk |d\bQp HK BZ\vHR\bPv\vLx\vEZ\bT\x7F\bTv iDoDMU\vwBSuk`St\ntC Pl Kg\noi jY\vxYh}\nzk\bWZ \x7Fm\ve` TB fE\nzk `zYh\nV| HK AJ AJ\bUL p\\ ql\nYcKd\nfyYh [I\vDgJm\n]n\nlb\bUd\n{Z lu fsoQ\bTWJm\vwB eaYhBC sb Tn\nzU\n_y\vxY Q]\ngwmt O\\\ntb\bWW\bQy mI V[\ny\\\naB\vRb wQ\n]QQJ\bWg\vWa\bQj\ntC\bVH\nYm\vxs\bVK\nel\bWI\vxYCq\ntR\vHV\bTl\bVw ay\bQa\bVV }t dj\nr| p\\ wR\n{i\nTT [I i[ AJ\vxs\v_W d{\vQ} cg Tz A| Cj\vLmN}m\x7F\nbK dZ p\\ `V sV\np@ iD wQ\vQ}\bTfkaJm\v@@\bV` zp\n@NSw iI cg\noiSu\bVwloCy c}\vb\\ sUBA\bWI\bTf\nxS Vp\nd|\bTV\vbC NoJu\nTC |`\n{Z D]\bU| c}lm\bTl Bv Pl c}\bQp \x7Fm\nLk kj\n@NSbKO j_ p\\\nzU\bTl\bTg\bWI cfXO\bWW\ndzli BN\nd[\bWOMD\vKC dj I_\bVV\ny\\\vLmxl xB kV\vb\\\vJW\vVS Vx\vxD d{MD\bTa |`\vPzR}\vWsBM\nsICN\bTaJm\npe i_\npV\nrh Rd Hv\n~A\nxR\vWh\vWk\nxS\vAz\vwX\nbIoQ fw\nqI\nV|\nunz\x7F\vpg d\\\voA{D i_xB\bT\x7F `Vqr TTg]CA\vuR VJ T`\npw\vRb I_\nCxRo\vsICjKh Bv WVBBoD{D\nhcKm\v^R QE\n{I\np@\nc|Gt c}Dl\nzUqN sVk} Hh\v|j\nqou| Q]\vek\x7FZM`St\npe dj\bVG\veE \x7Fm\vWc|I\n[W fL\bT\x7F BZSu\vKaCqNtY[\nqI\bTv fM i@ }fB\\ Qy\vBl\bWgXDkc\vx[\bVV Q] \x7Fa Py\vxD\nfI }foD dj SGls ~DCN\n{Z \\v\n_D\nhc\vx_C[ AJ\nLM VxCI bj c^ cF\ntCSx wrXA\bU\\ |a\vK\\\bTV\bVj\nd| fsCX\ntb\bRw Vx AE A|\bT\x7FNt\vDg Vc\bTld@\npo \x7FM cF\npe iZ Bo\bSq\nfHl`\bTx\bWf HE\vF{ cO fD\nlm\vfZ\nlm\veU dGBH\bTV SiMW\nwX\nz\\ \\cCX\nd} l}\bQp\bTV F~\bQ\x7F `i\ng@nO\bUd\bTl\nL[ wQ ji\ntC |J\nLU\naB\vxYKj AJuN i[\npeSk\vDg\vx]\bVb\bVV\nea kV\nqI\bTaSk\nAO pD\ntb\nts\nyi\bVg i_\v_W\nLkNt yj fMR\x7F iI\bTl\vwX sV\vMl\nyu AJ\bVjKO WV\vA}\vW\x7F\nrp iD\v|olv\vsIBM d~ CU\bVbeV\npC\vwT j` c}\vxs\vps\vvh WV\vGg\vAe\vVK\v]W rg\vWcF` Br\vb\\ dZ\bQp\nqIkF\nLk\vAR\bWI\bTg bs dw\n{L\n_y iZ\bTA lg\bVV\bTl dk\n`k a{ i_{Awj wN\v@@\bTe i_\n_D wL\nAH\viK\vek\n[] p_ yj\bTv US [r\n{I\npsGt\vVK\nplS}\vWP |dMD\vHV\bT\x7FR}M`\bTV\bVHlvCh\bW[Ke R{\v^R ab BZ VA B`\nd|\nhsKe BeOi R{ d\\nB\bWZ dZ VJOs \x7FmuQ\vhZQ@QQ\nfI\bW[B\\li\nzU\nMdM`\nxS\bVV\n\\}\vxD \x7Fm\bTpIS\nc| kVi~ V{\vhZ |b\bWt\n@R\voA\vnU\bWI ea B` iD c} TzBR\vQBNj CP [I\bTv `WuN\vpg\vpg\vWc iT bs wL U_ c\\ |h\vKa Nr fL\nq|\nzu\nz\\ Nr\bUg |bm`\bTv\nyd\nrp\bWf UXBV\nzk\nd} wQ }fCe\ved\bTW\bSB\nxU cn\bTb\ne\x7F a\\ SG\bU|\npV\nN\\Kn\vnU At pD\v^R\vIrb[ R{ dE\vxD\vWK\vWA\bQL\bW@Su\bUd\nDM PcCADloQ Hswiub\n\x7Fa\bQpOb\nLP\bTlY[\vK} AJ\bQ\x7Fn^\vsA\bSM\nqM\bWZ\n^W\vz{S| fD\bVK\bTv\bPvBB CPdF id\vxsmx\vws cC\ntC ycM`\vW\x7F\nrh\bQp\vxD\\o\nsI_k\nzukF fDXsXO jp\bTvBS{B Br\nzQ\nbI c{BDBVnO\bTF caJd fL PV I_\nlK`o wX\npa gu\bP}{^\bWf\n{I BN\npaKl\vpg cn fL\vvhCq\bTl\vnU\bSqCm wR\bUJ\npe\nyd\nYgCy\vKW fD\neaoQ j_ BvnM\vID\bTa\nzApl\n]n\bTa R{ fr\n_y\bUg{Xkk\vxD|Ixl\nfyCe\vwB\nLk\vd]\noi\n}h Q]\npe\bVwHkOQ\nzk AJ\npV\bPv\ny\\ A{Oi\bSBXA\veE jp\nq} iDqN\v^R \x7Fm iZ Br\bVg\noi\n\\X U_\nc|\vHV\bTf Tn\\N\\N\nuBlv\nyu Td\bTf\bPL\v]W dG\nA`\nw^\ngI\npe dw\nz\\ia\bWZ cFJm\n{Z\bWO_kDfRR d\\\bVV\vxsBNtilm Td ]y\vHV So\v|jXX A|\vZ^\vGu\bTWM`kF\vhZ\vVK dG\vBl ay\nxUqEnO\bVw\nqICX\ne\x7F Pl\bWO\vLm dLuHCm dTfn\vwBka\vnU\n@M\nyT Hv \\}Kh d~Yhk}\neR d\\\bWI |b HK iD\bTWMY\npl\bQ_ wr\vAx HE\bTg\bSqvp\vb\\\bWO\nOl\nsI\nfy\vID \\c\n{Z\n^~\npe\nAO TT\vxvk_\bWO\v|j\vwB Qy i@ Pl Ha dZk}ra UT\vJc\ved\np@ QN\nd| kj HkM`\noi wr d\\\nlq\no_\nlb\nL[ acBBBHCm\npl IQ\bVK\vxs\n`e\viK\npaOi US\bTp fD\nPGkkXA\nz\\\neg\vWh wRqN\nqS cnlo\nxS\n^W BU\nt\x7F HE p\\ fF fw\bVV\bW@ ak\vVKls VJ\bVV\veE\\o\nyX\nYmM`lL\nd|\nzk A{sE wQXT\nt\x7F Pl ]y\vwT{pMD\vb\\ Q]Kj Jn\nAH\vRb BU HK \\c\nfIm\x7F\nqM\n@R So\noiBT Hv\n_yKh BZ ]i\bUJ V{Sr\nbI\vGg a_\bTR\nfI\nfl [K IIS|\vuW iI\bWI\nqI\v|jBV\bVg\bWZkF\vx]\bTA ab fr i@ Jd Jd\vps\nAO\bTaxu iD\nzk |d |`\bW[ lP dG\bVV\vw}\vqO i[\bQ\x7F\bTz\vVF wNts dw\bTv\neS\ngi NryS\npe\bVV\bSq\n`m yj BZ\vWX\bSB c\\\nUR [J c_nM\bWQ\vAx\nMd Brui\vxY\bSM\vWc\v|j\vxs }Q BO\bPL\bWW fM\nAO Pc\veUe^\bTg\nqI ac\bPv cFoQ Q\x7F\vhZka\nz\\ iK BU\n`k CPS|M`\n{I S{_O BZZiSk ps p\\\nYu\n]s\nxC\bWt\nbD kV\vGuyS\nqA [r\neKM` dZlL\bUg\bTl\nbD US\vb\\ pV\nccS\\ ct `z\bPL\vWs\nA`\neg\bSquECR\vDg `W\vz{\vWcSkSk bW\bUg ea\nxZ iI UX VJ\nqn S{\vRb\bTQ\nplGt\vuWuj\npF\nqI fL [I iaXO\nyu\vDg\ved q{VG\bQ\x7Fka Vj kV xB\nd|\np@ QN Pc ps]j kV oU\bTp\nzUnB\vB] a{\bV@\n]nm` cz R{m`\bQa\vwT\bSMMYqN dj~s\vQ}MY\vMB Bv wR\bRg\vQ} ql\vKC\nrmxuCC\vwB\vvh BqXq\npV i_ObuE\nbd\nqo\v{i\nC~ BL\veEuH\bVjEyGz\vzR\v{i cf\n{Z\n]nXA\vGu\vnU hS\vGI\nCc HE\bTA HBBHCj\nCc\bTF HE\nXI A{\bQ\x7F c\\\vmO\vWX\nfH\np@MY\bTF\nlK Bt\nzU TTKm\vwT\npV\ndt\vyI Vx Q\x7F Rg Td\nzU\bRS\nLM wAnM Tn\ndS ]g\nLc\vwB }t [I CPkX\vFm\vhZm\x7F i[\np@\vQ}\vW\x7F |d\nMO\nMd f_ fD cJ Hz\vRb io PyY[\nxU ct\v@@ ww\bPvBMFF\ntbv|\vKm Bq BqKh`o\nZdXU i] |` StB\\\bQ\x7F\v_W TJ\nqI |a A{\vuPMD Pl\nxR fL\vws c{ d\\\bV`\neg HKkc\nd|\bVV\ny\\kc i]\bVG `V ss I_ AE bs du\nel pD\vW\x7F\nqslv\bSMZi\vVKia\vQB Q\x7F\n{Z\bPt\vKl\nlK\nhs\ndS\bVKmf\nd^ kV cO\nc|\bVH \\]\bTv\bSq mI\vDg VJ cn\ny\\\bVg\bTv\nyX\bTF ]]\bTp\noi\nhs\veU\nBf djMr\n|p \\g ]r\bVb{D\nd[XN fM O\\s_ cf iZXN\vWc qv\n`m U^oD\nd|\vGg dE\vwflou}\nd|oQ `iOi\vxD\ndZ\nCxYw\nzk\ntb\ngw yj B`\nyX\vps\ntC\vpP\vqw\bPu\bPX Dm\npwNj ss aG\vxs\bPt\noLGz Ok i@ i]eC IQ ii dj\v@J |duh\bWZ\veU\vnU\bTa cCg]\nzkYh\bVK\nLU\np@\ntb\ntR Cj\vNP i@\bP{\n\\}\n{c\nwX fL\bVG c{ |` AJ |C fDln |d bs\nqI{B\vAx\np@\nzk\vRbOs\vWSe^\vD_ Bv\vWd\bVb\vxs\veE\bRw\n]n\n|p\vg| fwkc\bTIka\n\\TSp ju\vps\npeu|\vGr\bVe CU]MXU\vxD\bTa IQ\vWq CU am dj\bSoSw\vnUCh Q]s_\bPt fS\bTa \\}\n@OYc UZ\bTx\npe\vnU\nzU |} iD\nz\\\bSM\vxDBR\nzQ QN]MYh\nLP\vFm\vLXvc\vqlka HK\bVb\ntC\nCy\bTv\nuVoQ `z [I B`\vRb yj sb\vWs\bTl kV\ved\ne\x7FlL\vxN \x7Fm\nJn jY\vxD\bVb\bSq\vyu wL\vXL\bTA pg At nDXX wR\npl\nhwyS\nps cO\bW[\v|jXN sV p\\ Be\nb~\nAJ\n]ek`qN dw WV HE\vEVJz id B` zhE] fD\bTgqN\bTa jaCv\bSM\nhc\bUet_ ieg] wQ\nPn\bVB jw\bVg\vbE BZ\vRH\bP{ jp\n\\} a_ cC |a\vD] BZ i[ fD\vxW\no_ d\\\n_D\ntb \\c AJ\nlKoQlo\vLx\vM@\bWZKn\vpg\nTi\nIv\n|r\v@}JzLmWhk}ln\vxD\n]sgc\vps Br\bTW\vBMtZ\nBYDW jf\vSWC}\nqo dE mv IQ\bPP\bUblvBC\nzQ [I\vgl\nig\bUsBT\vbC\bSq sU iW\nJn SY HK rg\npV\vID\v|jKO `S |a`vbmglfmujbqnbgqjgavp`bqjmj`jlwjfnslslqrvf`vfmwbfpwbglsvfgfmivfdlp`lmwqbfpw/Mmmlnaqfwjfmfmsfqejonbmfqbbnjdlp`jvgbg`fmwqlbvmrvfsvfgfpgfmwqlsqjnfqsqf`jlpfd/Vmavfmlpuloufqsvmwlppfnbmbkba/Abbdlpwlmvfulpvmjglp`bqolpfrvjslmj/]lpnv`klpbodvmb`lqqfljnbdfmsbqwjqbqqjabnbq/Abklnaqffnsoflufqgbg`bnajlnv`kbpevfqlmsbpbglo/Amfbsbqf`fmvfubp`vqplpfpwbabrvjfqlojaqlp`vbmwlb``fplnjdvfoubqjlp`vbwqlwjfmfpdqvslppfq/Mmfvqlsbnfgjlpeqfmwfb`fq`bgfn/Mplefqwb`l`kfpnlgfoljwbojbofwqbpbod/Vm`lnsqb`vbofpf{jpwf`vfqslpjfmglsqfmpboofdbqujbifpgjmfqlnvq`jbslgq/Msvfpwlgjbqjlsvfaolrvjfqfnbmvfosqlsjl`qjpjp`jfqwlpfdvqlnvfqwfevfmwf`fqqbqdqbmgffef`wlsbqwfpnfgjgbsqlsjbleqf`fwjfqqbf.nbjoubqjbpelqnbpevwvqllaifwlpfdvjqqjfpdlmlqnbpnjpnlp/Vmj`l`bnjmlpjwjlpqby/_mgfajglsqvfabwlofglwfm/Abifp/Vpfpsfql`l`jmblqjdfmwjfmgb`jfmwl`/Mgjykbaobqpfq/Abobwjmbevfqybfpwjoldvfqqbfmwqbq/E{jwlo/_sfybdfmgbu/Agflfujwbqsbdjmbnfwqlpibujfqsbgqfpe/M`jo`bafyb/Mqfbppbojgbfmu/Alibs/_mbavplpajfmfpwf{wlpoofubqsvfgbmevfqwf`ln/Vm`obpfpkvnbmlwfmjglajoablvmjgbgfpw/Mpfgjwbq`qfbgl<X<W=c=k=n<R<V<\\<V<T<W<T=a=n<R<^=m<Y<Y<_<R<S=l<T=n<\\<V<Y=e<Y=o<Z<Y<v<\\<V<]<Y<[<]=g<W<R<Q<T<~=m<Y<S<R<X<A=n<R=n<R<P=k<Y<P<Q<Y=n<W<Y=n=l<\\<[<R<Q<\\<_<X<Y<P<Q<Y<x<W=c<s=l<T<Q<\\=m<Q<T=i=n<Y<P<V=n<R<_<R<X<^<R=n=n<\\<P<M<D<|<P<\\=c<K=n<R<^<\\=m<^<\\<P<Y<P=o<N<\\<V<X<^<\\<Q<\\<P=a=n<T=a=n=o<~<\\<P=n<Y=i<S=l<R=n=o=n<Q<\\<X<X<Q=c<~<R=n=n=l<T<Q<Y<U<~<\\=m<Q<T<P=m<\\<P=n<R=n=l=o<]<r<Q<T<P<T=l<Q<Y<Y<r<r<r<W<T=j=a=n<\\<r<Q<\\<Q<Y<P<X<R<P<P<R<U<X<^<Y<R<Q<R=m=o<X\fHy\fIk\fHU\fId\fHy\fIl\fHT\fIk\fHy\fHR\fHy\fIg\fHx\fH\\\fHF\fH\\\fHD\fIk\fHc\fHy\fHy\fHS\fHA\fIl\fHk\fHT\fHy\fH\\\fHH\fIg\fHU\fIg\fHj\fHF\fHU\fIl\fHC\fHU\fHC\fHR\fHH\fHy\fHI\fHRibdqbm\fHj\fHp\fHp\fIg\fHi\fH@\fHJ\fIg\fH{\fHd\fHp\fHR\fH{\fHc\fHU\fHB\fHk\fHD\fHY\fHU\fHC\fIk\fHI\fIk\fHI\fIl\fHt\fH\\\fHp\fH@\fHJ\fIl\fHy\fHd\fHp\fIl\fHY\fIk\fHD\fHd\fHD\fHc\fHU\fH\\\fHe\fHT\fHB\fIk\fHy\fHB\fHY\fIg\fH^\fIk\fHT\fH@\fHB\fHd\fHJ\fIk\fH\x7F\fH\\\fHj\fHB\fH@\fHT\fHA\fH\\\fH@\fHD\fHv\fH^\fHB\fHD\fHj\fH{\fHT\fIl\fH^\fIl4U5h5e4I5h5e5k4\\4K4N4B4]4U4C4C4K5h5e5k4\\5k4Y5d4]4V5f4]5o4K5j5d5h4K4D5f5j4U4]4Z4\\5h5o5k5j4K5f5d5i5n4K5h4U5h5f4K5j4K5h5o5j4A4F5e5n4D5h5d4A4E4K4B4]5m5n4[4U4D4C4]5o5j4I4\\4K5o5i4K4K4A4C4I5h4K5m5f5k4D4U4Z5o5f5m4D4A4G5d5i5j5d5k5d4O5j4K4@4C4K5h5k4K4_5h5i4U5j4C5h5f4_4U4D4]4Y5h5e5i5j4\\4D5k4K4O5j5k5i4G5h5o5j4F4K5h4K4A5f4G5i4Y4]4X4]4A4A5d5h5d5m5f4K4\\4K5h5o5h5i4]4E4K5j4F4K5h5m4O4D5d4B4K4Y4O5j4F4K5j5k4K5h5f4U4Z5d5d5n4C4K4D5j4B5f4]4D5j4F5h5o5i4X4K4M5d5k5f4K4D5d5n4Y4Y5d5i4K4]5n5i4O4A4C5j4A5j4U4C5i4]4O5f4K4A4E5o4F4D4C5d5j5f4@4D5i5j5k4F4A4F4@5k4E4_5j4E5f4F5i5o4]4E4V4^4E5j5m4_4D5f4F5h5h5k5h5j4K4F5h5o5n5h4D5h5i4K4U5j5k4O5d5h4X5f4M5j5d4]4O5i4K5m5f5o4D5o5h4\\4K4F4]4F4D4D4O5j5k5i4_4K5j5o4D5f4U5m5n4C4A4_5j5h5k5i4X4U4]4O5k5h4X5k4]5n4[4]4[5h4Dsqlejofpfquj`fgfebvowkjnpfoegfwbjop`lmwfmwpvsslqwpwbqwfgnfppbdfpv``fppebpkjlm?wjwof=`lvmwqzb``lvmw`qfbwfgpwlqjfpqfpvowpqvmmjmdsql`fpptqjwjmdlaif`wpujpjaoftfo`lnfbqwj`ofvmhmltmmfwtlqh`lnsbmzgzmbnj`aqltpfqsqjub`zsqlaofnPfquj`fqfpsf`wgjpsobzqfrvfpwqfpfquftfapjwfkjpwlqzeqjfmgplswjlmptlqhjmdufqpjlmnjoojlm`kbmmfotjmglt-bggqfppujpjwfgtfbwkfq`lqqf`wsqlgv`wfgjqf`welqtbqgzlv#`bmqfnlufgpvaif`w`lmwqlobq`kjuf`vqqfmwqfbgjmdojaqbqzojnjwfgnbmbdfqevqwkfqpvnnbqznb`kjmfnjmvwfpsqjubwf`lmwf{wsqldqbnpl`jfwzmvnafqptqjwwfmfmbaofgwqjddfqplvq`fpolbgjmdfofnfmwsbqwmfqejmboozsfqef`wnfbmjmdpzpwfnphffsjmd`vowvqf%rvlw8/ilvqmbosqlif`wpvqeb`fp%rvlw8f{sjqfpqfujftpabobm`fFmdojpk@lmwfmwwkqlvdkSofbpf#lsjmjlm`lmwb`wbufqbdfsqjnbqzujoobdfPsbmjpkdboofqzgf`ojmfnffwjmdnjppjlmslsvobqrvbojwznfbpvqfdfmfqbopsf`jfppfppjlmpf`wjlmtqjwfqp`lvmwfqjmjwjboqfslqwpejdvqfpnfnafqpklogjmdgjpsvwffbqojfqf{sqfppgjdjwbosj`wvqfBmlwkfqnbqqjfgwqbeej`ofbgjmd`kbmdfg`fmwqbouj`wlqzjnbdfp,qfbplmppwvgjfpefbwvqfojpwjmdnvpw#afp`kllopUfqpjlmvpvboozfsjplgfsobzjmddqltjmdlaujlvplufqobzsqfpfmwb`wjlmp?,vo= tqbssfqboqfbgz`fqwbjmqfbojwzpwlqbdfbmlwkfqgfphwlsleefqfgsbwwfqmvmvpvboGjdjwbo`bsjwboTfapjwfebjovqf`lmmf`wqfgv`fgBmgqljggf`bgfpqfdvobq#%bns8#bmjnbopqfofbpfBvwlnbwdfwwjmdnfwklgpmlwkjmdSlsvobq`bswjlmofwwfqp`bswvqfp`jfm`foj`fmpf`kbmdfpFmdobmg>2%bns8Kjpwlqz#>#mft#@fmwqbovsgbwfgPsf`jboMfwtlqhqfrvjqf`lnnfmwtbqmjmd@loofdfwlloabqqfnbjmpaf`bvpffof`wfgGfvwp`kejmbm`ftlqhfqprvj`hozafwtffmf{b`wozpfwwjmdgjpfbpfPl`jfwztfbslmpf{kjajw%ow8"..@lmwqlo`obppfp`lufqfglvwojmfbwwb`hpgfuj`fp+tjmgltsvqslpfwjwof>!Nlajof#hjoojmdpkltjmdJwbojbmgqlssfgkfbujozfeef`wp.2$^*8 `lmejqn@vqqfmwbgubm`fpkbqjmdlsfmjmdgqbtjmdajoojlmlqgfqfgDfqnbmzqfobwfg?,elqn=jm`ovgftkfwkfqgfejmfgP`jfm`f`bwboldBqwj`ofavwwlmpobqdfpwvmjelqnilvqmfzpjgfabq@kj`bdlklojgbzDfmfqbosbppbdf/%rvlw8bmjnbwfeffojmdbqqjufgsbppjmdmbwvqboqlvdkoz- Wkf#avw#mlwgfmpjwzAqjwbjm@kjmfpfob`h#lewqjavwfJqfobmg!#gbwb.eb`wlqpqf`fjufwkbw#jpOjaqbqzkvpabmgjm#eb`wbeebjqp@kbqofpqbgj`boaqlvdkwejmgjmdobmgjmd9obmd>!qfwvqm#ofbgfqpsobmmfgsqfnjvnsb`hbdfBnfqj`bFgjwjlm^%rvlw8Nfppbdfmffg#wlubovf>!`lnsof{ollhjmdpwbwjlmafojfufpnboofq.nlajofqf`lqgptbmw#wlhjmg#leEjqfel{zlv#bqfpjnjobqpwvgjfgnb{jnvnkfbgjmdqbsjgoz`ojnbwfhjmdglnfnfqdfgbnlvmwpelvmgfgsjlmffqelqnvobgzmbpwzklt#wl#Pvsslqwqfufmvff`lmlnzQfpvowpaqlwkfqplogjfqobqdfoz`boojmd-%rvlw8B``lvmwFgtbqg#pfdnfmwQlafqw#feelqwpSb`jej`ofbqmfgvs#tjwkkfjdkw9tf#kbufBmdfofpmbwjlmp\\pfbq`kbssojfgb`rvjqfnbppjufdqbmwfg9#ebopfwqfbwfgajddfpwafmfejwgqjujmdPwvgjfpnjmjnvnsfqkbspnlqmjmdpfoojmdjp#vpfgqfufqpfubqjbmw#qlof>!njppjmdb`kjfufsqlnlwfpwvgfmwplnflmff{wqfnfqfpwlqfalwwln9fuloufgboo#wkfpjwfnbsfmdojpktbz#wl##Bvdvpwpznalop@lnsbmznbwwfqpnvpj`bobdbjmpwpfqujmd~*+*8 sbznfmwwqlvaof`lm`fsw`lnsbqfsbqfmwpsobzfqpqfdjlmpnlmjwlq#$$Wkf#tjmmjmdf{solqfbgbswfgDboofqzsqlgv`fbajojwzfmkbm`f`bqffqp*-#Wkf#`loof`wPfbq`k#bm`jfmwf{jpwfgellwfq#kbmgofqsqjmwfg`lmplofFbpwfqmf{slqwptjmgltp@kbmmfojoofdbomfvwqbopvddfpw\\kfbgfqpjdmjmd-kwno!=pfwwofgtfpwfqm`bvpjmd.tfahjw`objnfgIvpwj`f`kbswfquj`wjnpWklnbp#nlyjoobsqlnjpfsbqwjfpfgjwjlmlvwpjgf9ebopf/kvmgqfgLoznsj`\\avwwlmbvwklqpqfb`kfg`kqlmj`gfnbmgppf`lmgpsqlwf`wbglswfgsqfsbqfmfjwkfqdqfbwozdqfbwfqlufqboojnsqluf`lnnbmgpsf`jbopfbq`k-tlqpkjsevmgjmdwklvdkwkjdkfpwjmpwfbgvwjojwzrvbqwfq@vowvqfwfpwjmd`ofbqozf{slpfgAqltpfqojafqbo~#`bw`kSqlif`wf{bnsofkjgf+*8EolqjgbbmptfqpbooltfgFnsfqlqgfefmpfpfqjlvpeqffglnPfufqbo.avwwlmEvqwkfqlvw#le#">#mvoowqbjmfgGfmnbqhuljg+3*,boo-ipsqfufmwQfrvfpwPwfskfm Tkfm#lapfquf?,k1= Nlgfqm#sqlujgf!#bow>!alqgfqp- Elq# Nbmz#bqwjpwpsltfqfgsfqelqnej`wjlmwzsf#lenfgj`bowj`hfwplsslpfg@lvm`jotjwmfppivpwj`fDflqdf#Afodjvn---?,b=wtjwwfqmlwbaoztbjwjmdtbqebqf#Lwkfq#qbmhjmdskqbpfpnfmwjlmpvqujufp`klobq?,s= #@lvmwqzjdmlqfgolpp#leivpw#bpDflqdjbpwqbmdf?kfbg=?pwlssfg2$^*8 jpobmgpmlwbaofalqgfq9ojpw#le`bqqjfg233/333?,k0= #pfufqboaf`lnfppfof`w#tfggjmd33-kwnonlmbq`klee#wkfwfb`kfqkjdkoz#ajloldzojef#lelq#fufmqjpf#le%qbrvl8sovplmfkvmwjmd+wklvdkGlvdobpiljmjmd`jq`ofpElq#wkfBm`jfmwUjfwmbnufkj`ofpv`k#bp`qzpwboubovf#>Tjmgltpfmilzfgb#pnboobppvnfg?b#jg>!elqfjdm#Boo#qjklt#wkfGjpsobzqfwjqfgkltfufqkjggfm8abwwofppffhjmd`bajmfwtbp#mlwollh#bw`lmgv`wdfw#wkfIbmvbqzkbssfmpwvqmjmdb9klufqLmojmf#Eqfm`k#ob`hjmdwzsj`bof{wqb`wfmfnjfpfufm#jedfmfqbwgf`jgfgbqf#mlw,pfbq`kafojfep.jnbdf9ol`bwfgpwbwj`-oldjm!=`lmufqwujlofmwfmwfqfgejqpw!=`jq`vjwEjmobmg`kfnjpwpkf#tbp23s{8!=bp#pv`kgjujgfg?,psbm=tjoo#afojmf#leb#dqfbwnzpwfqz,jmgf{-eboojmdgvf#wl#qbjotbz`loofdfnlmpwfqgfp`fmwjw#tjwkmv`ofbqIftjpk#sqlwfpwAqjwjpkeoltfqpsqfgj`wqfelqnpavwwlm#tkl#tbpof`wvqfjmpwbmwpvj`jgfdfmfqj`sfqjlgpnbqhfwpPl`jbo#ejpkjmd`lnajmfdqbskj`tjmmfqp?aq#,=?az#wkf#MbwvqboSqjub`z`llhjfplvw`lnfqfploufPtfgjpkaqjfeozSfqpjbmpl#nv`k@fmwvqzgfsj`wp`lovnmpklvpjmdp`qjswpmf{w#wlafbqjmdnbssjmdqfujpfgiRvfqz+.tjgwk9wjwof!=wllowjsPf`wjlmgfpjdmpWvqhjpkzlvmdfq-nbw`k+~*+*8 avqmjmdlsfqbwfgfdqffpplvq`f>Qj`kbqg`olpfozsobpwj`fmwqjfp?,wq= `lolq9 vo#jg>!slppfppqloojmdskzpj`pebjojmdf{f`vwf`lmwfpwojmh#wlGfebvow?aq#,= 9#wqvf/`kbqwfqwlvqjpn`obppj`sql`ffgf{sobjm?,k2= lmojmf-<{no#ufkfosjmdgjbnlmgvpf#wkfbjqojmffmg#..=*-bwwq+qfbgfqpklpwjmd eeeeeeqfbojyfUjm`fmwpjdmbop#pq`>!,Sqlgv`wgfpsjwfgjufqpfwfoojmdSvaoj`#kfog#jmIlpfsk#wkfbwqfbeef`wp?pwzof=b#obqdfglfpm$wobwfq/#Fofnfmwebuj`lm`qfbwlqKvmdbqzBjqslqwpff#wkfpl#wkbwNj`kbfoPzpwfnpSqldqbnp/#bmg##tjgwk>f%rvlw8wqbgjmdofew!= sfqplmpDlogfm#Beebjqpdqbnnbqelqnjmdgfpwqlzjgfb#le`bpf#lelogfpw#wkjp#jp-pq`#>#`bqwllmqfdjpwq@lnnlmpNvpojnpTkbw#jpjm#nbmznbqhjmdqfufbopJmgffg/frvbooz,pklt\\blvwgllqfp`bsf+Bvpwqjbdfmfwj`pzpwfn/Jm#wkf#pjwwjmdKf#boplJpobmgpB`bgfnz \n\n?"..Gbmjfo#ajmgjmdaol`h!=jnslpfgvwjojyfBaqbkbn+f{`fswxtjgwk9svwwjmd*-kwno+\x7F\x7F#X^8 GBWBX#)hjw`kfmnlvmwfgb`wvbo#gjbof`wnbjmoz#\\aobmh$jmpwboof{sfqwpje+wzsfJw#bopl%`lsz8#!=Wfqnpalqm#jmLswjlmpfbpwfqmwbohjmd`lm`fqmdbjmfg#lmdljmdivpwjez`qjwj`peb`wlqzjwp#ltmbppbvowjmujwfgobpwjmdkjp#ltmkqfe>!,!#qfo>!gfufols`lm`fqwgjbdqbngloobqp`ovpwfqsks<jg>bo`lklo*8~*+*8vpjmd#b=?psbm=ufppfopqfujuboBggqfppbnbwfvqbmgqljgboofdfgjoomfpptbohjmd`fmwfqprvbojeznbw`kfpvmjejfgf{wjm`wGfefmpfgjfg#jm \n?"..#`vpwlnpojmhjmdOjwwof#Allh#lefufmjmdnjm-ip<bqf#wkfhlmwbhwwlgbz$p-kwno!#wbqdfw>tfbqjmdBoo#Qjd8 ~*+*8qbjpjmd#Bopl/#`qv`jbobalvw!=gf`obqf..= ?p`ejqfel{bp#nv`kbssojfpjmgf{/#p/#avw#wzsf#># ?"..wltbqgpQf`lqgpSqjubwfElqfjdmSqfnjfq`klj`fpUjqwvboqfwvqmp@lnnfmwSltfqfgjmojmf8slufqwz`kbnafqOjujmd#ulovnfpBmwklmzoldjm!#QfobwfgF`lmlnzqfb`kfp`vwwjmddqbujwzojef#jm@kbswfq.pkbgltMlwbaof?,wg= #qfwvqmpwbgjvntjgdfwpubqzjmdwqbufopkfog#aztkl#bqftlqh#jmeb`vowzbmdvobqtkl#kbgbjqslqwwltm#le Plnf#$`oj`h$`kbqdfphfztlqgjw#tjoo`jwz#le+wkjp*8Bmgqft#vmjrvf#`kf`hfglq#nlqf033s{8#qfwvqm8qpjlm>!sovdjmptjwkjm#kfqpfoePwbwjlmEfgfqboufmwvqfsvaojpkpfmw#wlwfmpjlmb`wqfpp`lnf#wlejmdfqpGvhf#lesflsof/f{soljwtkbw#jpkbqnlmzb#nbilq!9!kwwsjm#kjp#nfmv!= nlmwkozleej`fq`lvm`jodbjmjmdfufm#jmPvnnbqzgbwf#leolzbowzejwmfppbmg#tbpfnsfqlqpvsqfnfPf`lmg#kfbqjmdQvppjbmolmdfpwBoafqwbobwfqbopfw#le#pnboo!=-bssfmggl#tjwkefgfqboabmh#leafmfbwkGfpsjwf@bsjwbodqlvmgp*/#bmg#sfq`fmwjw#eqln`olpjmd`lmwbjmJmpwfbgejewffmbp#tfoo-zbkll-qfpslmgejdkwfqlap`vqfqfeof`wlqdbmj`>#Nbwk-fgjwjmdlmojmf#sbggjmdb#tkloflmfqqlqzfbq#lefmg#le#abqqjfqtkfm#jwkfbgfq#klnf#leqfpvnfgqfmbnfgpwqlmd=kfbwjmdqfwbjmp`olvgeqtbz#le#Nbq`k#2hmltjmdjm#sbqwAfwtffmofpplmp`olpfpwujqwvboojmhp!=`qlppfgFMG#..=ebnlvp#btbqgfgOj`fmpfKfbowk#ebjqoz#tfbowkznjmjnboBeqj`bm`lnsfwfobafo!=pjmdjmdebqnfqpAqbpjo*gjp`vppqfsob`fDqfdlqzelmw#`lsvqpvfgbssfbqpnbhf#vsqlvmgfgalwk#leaol`hfgpbt#wkfleej`fp`lolvqpje+gl`vtkfm#kffmelq`fsvpk+evBvdvpw#VWE.;!=Ebmwbpzjm#nlpwjmivqfgVpvboozebqnjmd`olpvqflaif`w#gfefm`fvpf#le#Nfgj`bo?algz= fujgfmwaf#vpfghfz@lgfpj{wffmJpobnj` 333333fmwjqf#tjgfoz#b`wjuf#+wzsflelmf#`bm`lolq#>psfbhfqf{wfmgpSkzpj`pwfqqbjm?walgz=evmfqboujftjmdnjggof#`qj`hfwsqlskfwpkjewfggl`wlqpQvppfoo#wbqdfw`lnsb`wbodfaqbpl`jbo.avoh#lenbm#bmg?,wg= #kf#ofew*-ubo+*ebopf*8oldj`boabmhjmdklnf#wlmbnjmd#Bqjylmb`qfgjwp*8 ~*8 elvmgfqjm#wvqm@loojmpafelqf#Avw#wkf`kbqdfgWjwof!=@bswbjmpsfoofgdlggfppWbd#..=Bggjmd9avw#tbpQf`fmw#sbwjfmwab`h#jm>ebopf%Ojm`lomtf#hmlt@lvmwfqIvgbjpnp`qjsw#bowfqfg$^*8 ##kbp#wkfvm`ofbqFufmw$/alwk#jmmlw#boo ?"..#sob`jmdkbqg#wl#`fmwfqplqw#le`ojfmwppwqffwpAfqmbqgbppfqwpwfmg#wlebmwbpzgltm#jmkbqalvqEqffglniftfoqz,balvw--pfbq`kofdfmgpjp#nbgfnlgfqm#lmoz#lmlmoz#wljnbdf!#ojmfbq#sbjmwfqbmg#mlwqbqfoz#b`qlmzngfojufqpklqwfq33%bns8bp#nbmztjgwk>!,)#?"X@wjwof#>le#wkf#oltfpw#sj`hfg#fp`bsfgvpfp#lesflsofp#Svaoj`Nbwwkftwb`wj`pgbnbdfgtbz#elqobtp#lefbpz#wl#tjmgltpwqlmd##pjnsof~`bw`k+pfufmwkjmelal{tfmw#wlsbjmwfg`jwjyfmJ#glm$wqfwqfbw-#Plnf#tt-!*8 alnajmdnbjowl9nbgf#jm-#Nbmz#`bqqjfp\x7F\x7Fx~8tjtlqh#lepzmlmzngfefbwpebulqfglswj`bosbdfWqbvmofpp#pfmgjmdofew!=?`lnP`lqBoo#wkfiRvfqz-wlvqjpw@obppj`ebopf!#Tjokfonpvavqapdfmvjmfajpklsp-psojw+dolabo#elooltpalgz#lemlnjmbo@lmwb`wpf`vobqofew#wl`kjfeoz.kjggfm.abmmfq?,oj= -#Tkfm#jm#alwkgjpnjppF{solqfbotbzp#ujb#wkfpsb/]lotfoebqfqvojmd#bqqbmdf`bswbjmkjp#plmqvof#lekf#wllhjwpfoe/>3%bns8+`boofgpbnsofpwl#nbhf`ln,sbdNbqwjm#Hfmmfgzb``fswpevoo#lekbmgofgAfpjgfp,,..=?,baof#wlwbqdfwpfppfm`fkjn#wl#jwp#az#`lnnlm-njmfqbowl#wbhftbzp#wlp-lqd,obgujpfgsfmbowzpjnsof9je#wkfzOfwwfqpb#pklqwKfqafqwpwqjhfp#dqlvsp-ofmdwkeojdkwplufqobspoltoz#ofppfq#pl`jbo#?,s= \n\njw#jmwlqbmhfg#qbwf#levo= ##bwwfnswsbjq#lenbhf#jwHlmwbhwBmwlmjlkbujmd#qbwjmdp#b`wjufpwqfbnpwqbssfg!*-`pp+klpwjofofbg#wlojwwof#dqlvsp/Sj`wvqf..= #qltp>!#laif`wjmufqpf?ellwfq@vpwlnU=?_,p`qploujmd@kbnafqpobufqztlvmgfgtkfqfbp">#$vmgelq#boosbqwoz#.qjdkw9Bqbajbmab`hfg#`fmwvqzvmjw#lenlajof.Fvqlsf/jp#klnfqjph#legfpjqfg@ojmwlm`lpw#lebdf#le#af`lnf#mlmf#les%rvlw8Njggof#fbg$*X3@qjwj`ppwvgjlp=%`lsz8dqlvs!=bppfnaonbhjmd#sqfppfgtjgdfw-sp9!#<#qfavjowaz#plnfElqnfq#fgjwlqpgfobzfg@bmlmj`kbg#wkfsvpkjmd`obpp>!avw#bqfsbqwjboAbazolmalwwln#`bqqjfq@lnnbmgjwp#vpfBp#tjwk`lvqpfpb#wkjqggfmlwfpbopl#jmKlvpwlm13s{8!=b``vpfgglvaof#dlbo#leEbnlvp#*-ajmg+sqjfpwp#Lmojmfjm#Ivozpw#(#!d`lmpvowgf`jnbokfosevoqfujufgjp#ufqzq$($jswolpjmd#efnbofpjp#boplpwqjmdpgbzp#lebqqjuboevwvqf#?laif`welq`jmdPwqjmd+!#,= \n\nkfqf#jpfm`lgfg-##Wkf#aboollmglmf#az,`lnnlmad`lolqobt#le#Jmgjbmbbuljgfgavw#wkf1s{#0s{irvfqz-bewfq#bsloj`z-nfm#bmgellwfq.>#wqvf8elq#vpfp`qffm-Jmgjbm#jnbdf#>ebnjoz/kwws9,,#%maps8gqjufqpfwfqmbopbnf#bpmlwj`fgujftfqp~*+*8 #jp#nlqfpfbplmpelqnfq#wkf#mftjp#ivpw`lmpfmw#Pfbq`ktbp#wkftkz#wkfpkjssfgaq=?aq=tjgwk9#kfjdkw>nbgf#le`vjpjmfjp#wkbwb#ufqz#Bgnjqbo#ej{fg8mlqnbo#NjppjlmSqfpp/#lmwbqjl`kbqpfwwqz#wl#jmubgfg>!wqvf!psb`jmdjp#nlpwb#nlqf#wlwboozeboo#le~*8 ##jnnfmpfwjnf#jmpfw#lvwpbwjpezwl#ejmggltm#wlolw#le#Sobzfqpjm#Ivmfrvbmwvnmlw#wkfwjnf#wlgjpwbmwEjmmjpkpq`#>#+pjmdof#kfos#leDfqnbm#obt#bmgobafofgelqfpwp`llhjmdpsb`f!=kfbgfq.tfoo#bpPwbmofzaqjgdfp,dolabo@qlbwjb#Balvw#X3^8 ##jw/#bmgdqlvsfgafjmd#b*xwkqltkf#nbgfojdkwfqfwkj`boEEEEEE!alwwln!ojhf#b#fnsolzpojuf#jmbp#pffmsqjmwfqnlpw#leva.ojmhqfif`wpbmg#vpfjnbdf!=pv``ffgeffgjmdMv`ofbqjmelqnbwl#kfosTlnfm$pMfjwkfqNf{j`bmsqlwfjm?wbaof#az#nbmzkfbowkzobtpvjwgfujpfg-svpk+xpfoofqppjnsoz#Wkqlvdk-`llhjf#Jnbdf+logfq!=vp-ip!=#Pjm`f#vmjufqpobqdfq#lsfm#wl"..#fmgojfp#jm$^*8 ##nbqhfwtkl#jp#+!GLN@lnbmbdfglmf#elqwzsfle#Hjmdglnsqlejwpsqlslpfwl#pklt`fmwfq8nbgf#jwgqfppfgtfqf#jmnj{wvqfsqf`jpfbqjpjmdpq`#>#$nbhf#b#pf`vqfgAbswjpwulwjmd# \n\nubq#Nbq`k#1dqft#vs@ojnbwf-qfnlufphjoofgtbz#wkf?,kfbg=eb`f#leb`wjmd#qjdkw!=wl#tlqhqfgv`fpkbp#kbgfqf`wfgpklt+*8b`wjlm>allh#lebm#bqfb>>#!kww?kfbgfq ?kwno=`lmelqneb`jmd#`llhjf-qfoz#lmklpwfg#-`vpwlnkf#tfmwavw#elqpsqfbg#Ebnjoz#b#nfbmplvw#wkfelqvnp-ellwbdf!=Nlajo@ofnfmwp!#jg>!bp#kjdkjmwfmpf..=?"..efnbof#jp#pffmjnsojfgpfw#wkfb#pwbwfbmg#kjpebpwfpwafpjgfpavwwlm\\alvmgfg!=?jnd#Jmelal{fufmwp/b#zlvmdbmg#bqfMbwjuf#`kfbsfqWjnflvwbmg#kbpfmdjmfptlm#wkf+nlpwozqjdkw9#ejmg#b#.alwwlnSqjm`f#bqfb#lenlqf#lepfbq`k\\mbwvqf/ofdboozsfqjlg/obmg#lelq#tjwkjmgv`fgsqlujmdnjppjofol`boozBdbjmpwwkf#tbzh%rvlw8s{8!= svpkfg#babmglmmvnfqbo@fqwbjmJm#wkjpnlqf#jmlq#plnfmbnf#jpbmg/#jm`qltmfgJPAM#3.`qfbwfpL`wlafqnbz#mlw`fmwfq#obwf#jmGfefm`ffmb`wfgtjpk#wlaqlbgoz`llojmdlmolbg>jw-#Wkfqf`lufqNfnafqpkfjdkw#bppvnfp?kwno= sflsof-jm#lmf#>tjmgltellwfq\\b#dllg#qfhobnblwkfqp/wl#wkjp\\`llhjfsbmfo!=Olmglm/gfejmfp`qvpkfgabswjpn`lbpwbopwbwvp#wjwof!#nluf#wlolpw#jmafwwfq#jnsojfpqjuboqzpfqufqp#PzpwfnSfqkbspfp#bmg#`lmwfmgeoltjmdobpwfg#qjpf#jmDfmfpjpujft#leqjpjmd#pffn#wlavw#jm#ab`hjmdkf#tjoodjufm#bdjujmd#`jwjfp-eolt#le#Obwfq#boo#avwKjdktbzlmoz#azpjdm#lekf#glfpgjeefqpabwwfqz%bns8obpjmdofpwkqfbwpjmwfdfqwbhf#lmqfevpfg`boofg#>VP%bnsPff#wkfmbwjufpaz#wkjppzpwfn-kfbg#le9klufq/ofpajbmpvqmbnfbmg#boo`lnnlm,kfbgfq\\\\sbqbnpKbqubqg,sj{fo-qfnlubopl#olmdqlof#leiljmwozphzp`qbVmj`lgfaq#,= Bwobmwbmv`ofvp@lvmwz/svqfoz#`lvmw!=fbpjoz#avjog#blm`oj`hb#djufmsljmwfqk%rvlw8fufmwp#fopf#x gjwjlmpmlt#wkf/#tjwk#nbm#tkllqd,Tfalmf#bmg`buboqzKf#gjfgpfbwwof33/333#xtjmgltkbuf#wlje+tjmgbmg#jwpplofoz#n%rvlw8qfmftfgGfwqljwbnlmdpwfjwkfq#wkfn#jmPfmbwlqVp?,b=?Hjmd#leEqbm`jp.sqlgv`kf#vpfgbqw#bmgkjn#bmgvpfg#azp`lqjmdbw#klnfwl#kbufqfobwfpjajojwzeb`wjlmAveebolojmh!=?tkbw#kfeqff#wl@jwz#le`lnf#jmpf`wlqp`lvmwfglmf#gbzmfqulvpprvbqf#~8je+dljm#tkbwjnd!#bojp#lmozpfbq`k,wvfpgbzollpfozPlolnlmpf{vbo#.#?b#kqnfgjvn!GL#MLW#Eqbm`f/tjwk#b#tbq#bmgpf`lmg#wbhf#b#= nbqhfw-kjdktbzglmf#jm`wjujwz!obpw!=laojdfgqjpf#wl!vmgfejnbgf#wl#Fbqoz#sqbjpfgjm#jwp#elq#kjpbwkofwfIvsjwfqZbkll"#wfqnfg#pl#nbmzqfbooz#p-#Wkf#b#tlnbm<ubovf>gjqf`w#qjdkw!#aj`z`ofb`jmd>!gbz#bmgpwbwjmdQbwkfq/kjdkfq#Leej`f#bqf#mltwjnfp/#tkfm#b#sbz#elqlm#wkjp.ojmh!=8alqgfqbqlvmg#bmmvbo#wkf#Mftsvw#wkf-`ln!#wbhjm#wlb#aqjfe+jm#wkfdqlvsp-8#tjgwkfmyznfppjnsof#jm#obwfxqfwvqmwkfqbszb#sljmwabmmjmdjmhp!= +*8!#qfb#sob`f_v330@bbalvw#bwq= \n\n``lvmw#djufp#b?P@QJSWQbjotbzwkfnfp,wlloal{AzJg+!{kvnbmp/tbw`kfpjm#plnf#je#+tj`lnjmd#elqnbwp#Vmgfq#avw#kbpkbmgfg#nbgf#azwkbm#jmefbq#legfmlwfg,jeqbnfofew#jmulowbdfjm#fb`kb%rvlw8abpf#leJm#nbmzvmgfqdlqfdjnfpb`wjlm#?,s= ?vpwlnUb8%dw8?,jnslqwplq#wkbwnlpwoz#%bns8qf#pjyf>!?,b=?,kb#`obppsbppjufKlpw#>#TkfwkfqefqwjofUbqjlvp>X^8+ev`bnfqbp,=?,wg=b`wp#bpJm#plnf= ?"lqdbmjp#?aq#,=Afjijmd`bwbo/Lgfvwp`kfvqlsfvfvphbqbdbfjodfpufmphbfpsb/]bnfmpbifvpvbqjlwqbabiln/E{j`ls/Mdjmbpjfnsqfpjpwfnbl`wvaqfgvqbmwfb/]bgjqfnsqfpbnlnfmwlmvfpwqlsqjnfqbwqbu/Epdqb`jbpmvfpwqbsql`fplfpwbglp`bojgbgsfqplmbm/Vnfqlb`vfqgln/Vpj`bnjfnaqllefqwbpbodvmlpsb/Apfpfifnsolgfqf`klbgfn/Mpsqjubglbdqfdbqfmob`fpslpjaofklwfofppfujoobsqjnfql/Vowjnlfufmwlpbq`kjul`vowvqbnvifqfpfmwqbgbbmvm`jlfnabqdlnfq`bgldqbmgfpfpwvgjlnfilqfpefaqfqlgjpf/]lwvqjpnl`/_gjdlslqwbgbfpsb`jlebnjojbbmwlmjlsfqnjwfdvbqgbqbodvmbpsqf`jlpbodvjfmpfmwjglujpjwbpw/Awvol`lml`fqpfdvmgl`lmpfileqbm`jbnjmvwlppfdvmgbwfmfnlpfef`wlpn/Mobdbpfpj/_mqfujpwbdqbmbgb`lnsqbqjmdqfpldbq`/Abb``j/_mf`vbglqrvjfmfpjm`ovplgfafq/Mnbwfqjbklnaqfpnvfpwqbslgq/Abnb/]bmb/Vowjnbfpwbnlplej`jbowbnajfmmjmd/Vmpbovglpslgfnlpnfilqbqslpjwjlmavpjmfppklnfsbdfpf`vqjwzobmdvbdfpwbmgbqg`bnsbjdmefbwvqfp`bwfdlqzf{wfqmbo`kjogqfmqfpfqufgqfpfbq`kf{`kbmdfebulqjwfwfnsobwfnjojwbqzjmgvpwqzpfquj`fpnbwfqjbosqlgv`wpy.jmgf{9`lnnfmwpplewtbqf`lnsofwf`bofmgbqsobwelqnbqwj`ofpqfrvjqfgnlufnfmwrvfpwjlmavjogjmdslojwj`pslppjaofqfojdjlmskzpj`boeffgab`hqfdjpwfqsj`wvqfpgjpbaofgsqlwl`lobvgjfm`fpfwwjmdpb`wjujwzfofnfmwpofbqmjmdbmzwkjmdbapwqb`wsqldqfpplufqujftnbdbyjmff`lmlnj`wqbjmjmdsqfppvqfubqjlvp#?pwqlmd=sqlsfqwzpklssjmdwldfwkfqbgubm`fgafkbujlqgltmolbgefbwvqfgellwaboopfof`wfgObmdvbdfgjpwbm`fqfnfnafqwqb`hjmdsbpptlqgnlgjejfgpwvgfmwpgjqf`wozejdkwjmdmlqwkfqmgbwbabpfefpwjuboaqfbhjmdol`bwjlmjmwfqmfwgqlsgltmsqb`wj`ffujgfm`fevm`wjlmnbqqjbdfqfpslmpfsqlaofnpmfdbwjufsqldqbnpbmbozpjpqfofbpfgabmmfq!=svq`kbpfsloj`jfpqfdjlmbo`qfbwjufbqdvnfmwallhnbqhqfefqqfq`kfnj`bogjujpjlm`booab`hpfsbqbwfsqlif`wp`lmeoj`wkbqgtbqfjmwfqfpwgfojufqznlvmwbjmlawbjmfg>#ebopf8elq+ubq#b``fswfg`bsb`jwz`lnsvwfqjgfmwjwzbjq`qbewfnsolzfgsqlslpfgglnfpwj`jm`ovgfpsqlujgfgklpsjwboufqwj`bo`loobspfbssqlb`ksbqwmfqpoldl!=?bgbvdkwfqbvwklq!#`vowvqboebnjojfp,jnbdfp,bppfnaozsltfqevowfb`kjmdejmjpkfggjpwqj`w`qjwj`bo`dj.ajm,svqslpfpqfrvjqfpfof`wjlmaf`lnjmdsqlujgfpb`bgfnj`f{fq`jpfb`wvbooznfgj`jmf`lmpwbmwb``jgfmwNbdbyjmfgl`vnfmwpwbqwjmdalwwln!=lapfqufg9#%rvlw8f{wfmgfgsqfujlvpPlewtbqf`vpwlnfqgf`jpjlmpwqfmdwkgfwbjofgpojdkwozsobmmjmdwf{wbqfb`vqqfm`zfufqzlmfpwqbjdkwwqbmpefqslpjwjufsqlgv`fgkfqjwbdfpkjssjmdbaplovwfqf`fjufgqfofubmwavwwlm!#ujlofm`fbmztkfqfafmfejwpobvm`kfgqf`fmwozboojbm`felooltfgnvowjsofavoofwjmjm`ovgfgl``vqqfgjmwfqmbo\'+wkjp*-qfsvaoj`=?wq=?wg`lmdqfppqf`lqgfgvowjnbwfplovwjlm?vo#jg>!gjp`lufqKlnf?,b=tfapjwfpmfwtlqhpbowklvdkfmwjqfoznfnlqjbonfppbdfp`lmwjmvfb`wjuf!=plnftkbwuj`wlqjbTfpwfqm##wjwof>!Ol`bwjlm`lmwqb`wujpjwlqpGltmolbgtjwklvw#qjdkw!= nfbpvqfptjgwk#>#ubqjbaofjmuloufgujqdjmjbmlqnboozkbssfmfgb``lvmwppwbmgjmdmbwjlmboQfdjpwfqsqfsbqfg`lmwqlopb``vqbwfajqwkgbzpwqbwfdzleej`jbodqbskj`p`qjnjmboslppjaoz`lmpvnfqSfqplmbopsfbhjmdubojgbwfb`kjfufg-isd!#,=nb`kjmfp?,k1= ##hfztlqgpeqjfmgozaqlwkfqp`lnajmfglqjdjmbo`lnslpfgf{sf`wfgbgfrvbwfsbhjpwbmeloolt!#ubovbaof?,obafo=qfobwjufaqjmdjmdjm`qfbpfdlufqmlqsovdjmp,Ojpw#le#Kfbgfq!=!#mbnf>!#+%rvlw8dqbgvbwf?,kfbg= `lnnfq`fnbobzpjbgjqf`wlqnbjmwbjm8kfjdkw9p`kfgvof`kbmdjmdab`h#wl#`bwkloj`sbwwfqmp`lolq9# dqfbwfpwpvssojfpqfojbaof?,vo= \n\n?pfof`w#`jwjyfmp`olwkjmdtbw`kjmd?oj#jg>!psf`jej``bqqzjmdpfmwfm`f?`fmwfq=`lmwqbpwwkjmhjmd`bw`k+f*plvwkfqmNj`kbfo#nfq`kbmw`bqlvpfosbggjmd9jmwfqjlq-psojw+!ojybwjlmL`wlafq#*xqfwvqmjnsqlufg..%dw8 `lufqbdf`kbjqnbm-smd!#,=pvaif`wpQj`kbqg#tkbwfufqsqlabaozqf`lufqzabpfabooivgdnfmw`lmmf`w--`pp!#,=#tfapjwfqfslqwfggfebvow!,=?,b= fof`wqj`p`lwobmg`qfbwjlmrvbmwjwz-#JPAM#3gjg#mlw#jmpwbm`f.pfbq`k.!#obmd>!psfbhfqp@lnsvwfq`lmwbjmpbq`kjufpnjmjpwfqqfb`wjlmgjp`lvmwJwbojbml`qjwfqjbpwqlmdoz9#$kwws9$p`qjsw$`lufqjmdleefqjmdbssfbqfgAqjwjpk#jgfmwjezEb`fallhmvnfqlvpufkj`ofp`lm`fqmpBnfqj`bmkbmgojmdgju#jg>!Tjoojbn#sqlujgfq\\`lmwfmwb``vqb`zpf`wjlm#bmgfqplmeof{jaof@bwfdlqzobtqfm`f?p`qjsw=obzlvw>!bssqlufg#nb{jnvnkfbgfq!=?,wbaof=Pfquj`fpkbnjowlm`vqqfmw#`bmbgjbm`kbmmfop,wkfnfp,,bqwj`oflswjlmboslqwvdboubovf>!!jmwfqubotjqfofppfmwjwofgbdfm`jfpPfbq`k!#nfbpvqfgwklvpbmgpsfmgjmd%kfoojs8mft#Gbwf!#pjyf>!sbdfMbnfnjggof!#!#,=?,b=kjggfm!=pfrvfm`fsfqplmbolufqeoltlsjmjlmpjoojmljpojmhp!= \n?wjwof=ufqpjlmppbwvqgbzwfqnjmbojwfnsqlsfmdjmffqpf`wjlmpgfpjdmfqsqlslpbo>!ebopf!Fpsb/]loqfofbpfppvanjw!#fq%rvlw8bggjwjlmpznswlnplqjfmwfgqfplvq`fqjdkw!=?sofbpvqfpwbwjlmpkjpwlqz-ofbujmd##alqgfq>`lmwfmwp`fmwfq!=- Plnf#gjqf`wfgpvjwbaofavodbqjb-pklt+*8gfpjdmfgDfmfqbo#`lm`fswpF{bnsofptjoojbnpLqjdjmbo!=?psbm=pfbq`k!=lsfqbwlqqfrvfpwpb#%rvlw8booltjmdGl`vnfmwqfujpjlm-# Wkf#zlvqpfoe@lmwb`w#nj`kjdbmFmdojpk#`lovnajbsqjlqjwzsqjmwjmdgqjmhjmdeb`jojwzqfwvqmfg@lmwfmw#leej`fqpQvppjbm#dfmfqbwf.;;6:.2!jmgj`bwfebnjojbq#rvbojwznbqdjm93#`lmwfmwujftslqw`lmwb`wp.wjwof!=slqwbaof-ofmdwk#fojdjaofjmuloufpbwobmwj`lmolbg>!gfebvow-pvssojfgsbznfmwpdolppbqz Bewfq#dvjgbm`f?,wg=?wgfm`lgjmdnjggof!=`bnf#wl#gjpsobzpp`lwwjpkilmbwkbmnbilqjwztjgdfwp-`ojmj`bowkbjobmgwfb`kfqp?kfbg= \nbeef`wfgpvsslqwpsljmwfq8wlPwqjmd?,pnboo=lhobklnbtjoo#af#jmufpwlq3!#bow>!klojgbzpQfplvq`foj`fmpfg#+tkj`k#-#Bewfq#`lmpjgfqujpjwjmdf{solqfqsqjnbqz#pfbq`k!#bmgqljg!rvj`hoz#nffwjmdpfpwjnbwf8qfwvqm#8`lolq9 #kfjdkw>bssqlubo/#%rvlw8#`kf`hfg-njm-ip!nbdmfwj`=?,b=?,kelqf`bpw-#Tkjof#wkvqpgbzgufqwjpf%fb`vwf8kbp@obppfubovbwflqgfqjmdf{jpwjmdsbwjfmwp#Lmojmf#`lolqbglLswjlmp!`bnsafoo?"..#fmg?,psbm=??aq#,= \\slsvsp\x7Fp`jfm`fp/%rvlw8#rvbojwz#Tjmgltp#bppjdmfgkfjdkw9#?a#`obppof%rvlw8#ubovf>!#@lnsbmzf{bnsofp?jeqbnf#afojfufpsqfpfmwpnbqpkboosbqw#le#sqlsfqoz*- Wkf#wb{lmlnznv`k#le#?,psbm= !#gbwb.pqwvdv/Fpp`qlooWl#sqlif`w?kfbg= bwwlqmfzfnskbpjppslmplqpebm`zal{tlqog$p#tjogojef`kf`hfg>pfppjlmpsqldqbnns{8elmw.#Sqlif`wilvqmbopafojfufgub`bwjlmwklnsplmojdkwjmdbmg#wkf#psf`jbo#alqgfq>3`kf`hjmd?,walgz=?avwwlm#@lnsofwf`ofbqej{ ?kfbg= bqwj`of#?pf`wjlmejmgjmdpqlof#jm#slsvobq##L`wlafqtfapjwf#f{slpvqfvpfg#wl##`kbmdfplsfqbwfg`oj`hjmdfmwfqjmd`lnnbmgpjmelqnfg#mvnafqp##?,gju=`qfbwjmdlmPvanjwnbqzobmg`loofdfpbmbozwj`ojpwjmdp`lmwb`w-olddfgJmbgujplqzpjaojmdp`lmwfmw!p%rvlw8*p-#Wkjp#sb`hbdfp`kf`hal{pvddfpwpsqfdmbmwwlnlqqltpsb`jmd>j`lm-smdibsbmfpf`lgfabpfavwwlm!=dbnaojmdpv`k#bp#/#tkjof#?,psbm=#njpplvqjpslqwjmdwls92s{#-?,psbm=wfmpjlmptjgwk>!1obyzolbgmlufnafqvpfg#jm#kfjdkw>!`qjsw!= %maps8?,?wq=?wg#kfjdkw91,sqlgv`w`lvmwqz#jm`ovgf#ellwfq!#%ow8"..#wjwof!=?,irvfqz-?,elqn= +\vBl\bQ\x7F*+\vUmGx*kqubwphjjwbojbmlqln/Nm(ow/Pqh/Kf4K4]4C5dwbnaj/Emmlwj`jbpnfmpbifpsfqplmbpgfqf`klpmb`jlmbopfquj`jl`lmwb`wlvpvbqjlpsqldqbnbdlajfqmlfnsqfpbpbmvm`jlpubofm`jb`lolnajbgfpsv/Epgfslqwfpsqlzf`wlsqlgv`wls/Vaoj`lmlplwqlpkjpwlqjbsqfpfmwfnjoolmfpnfgjbmwfsqfdvmwbbmwfqjlqqf`vqplpsqlaofnbpbmwjbdlmvfpwqlplsjmj/_mjnsqjnjqnjfmwqbpbn/Eqj`bufmgfglqpl`jfgbgqfpsf`wlqfbojybqqfdjpwqlsbobaqbpjmwfq/Epfmwlm`fpfpsf`jbonjfnaqlpqfbojgbg`/_qglabybqbdlybs/Mdjmbppl`jbofpaolrvfbqdfpwj/_mborvjofqpjpwfnbp`jfm`jbp`lnsofwlufqpj/_m`lnsofwbfpwvgjlps/Vaoj`blaifwjulboj`bmwfavp`bglq`bmwjgbgfmwqbgbpb``jlmfpbq`kjulppvsfqjlqnbzlq/Abbofnbmjbevm`j/_m/Vowjnlpkb`jfmglbrvfoolpfgj`j/_mefqmbmglbnajfmwfeb`fallhmvfpwqbp`ojfmwfpsql`fplpabpwbmwfsqfpfmwbqfslqwbq`lmdqfplsvaoj`bq`lnfq`jl`lmwqbwli/_ufmfpgjpwqjwlw/E`mj`b`lmivmwlfmfqd/Abwqbabibqbpwvqjbpqf`jfmwfvwjojybqalofw/Ampboubglq`lqqf`wbwqbabilpsqjnfqlpmfdl`jlpojafqwbggfwboofpsbmwboobsq/_{jnlbonfq/Abbmjnbofprvj/Emfp`lqby/_mpf``j/_mavp`bmglls`jlmfpf{wfqjlq`lm`fswlwlgbu/Abdbofq/Abfp`qjajqnfgj`jmboj`fm`jb`lmpvowbbpsf`wlp`q/Awj`bg/_obqfpivpwj`jbgfafq/Mmsfq/Alglmf`fpjwbnbmwfmfqsfrvf/]lqf`jajgbwqjavmbowfmfqjef`bm`j/_m`bmbqjbpgfp`bqdbgjufqplpnboolq`bqfrvjfqfw/E`mj`lgfafq/Abujujfmgbejmbmybpbgfobmwfevm`jlmb`lmpfilpgje/A`jo`jvgbgfpbmwjdvbpbubmybgbw/Eqnjmlvmjgbgfpp/Mm`kfy`bnsb/]bplewlmj`qfujpwbp`lmwjfmfpf`wlqfpnlnfmwlpeb`vowbg`q/Egjwlgjufqpbppvsvfpwleb`wlqfppfdvmglpsfrvf/]b<_<R<X<\\<Y=m<W<T<Y=m=n=`<]=g<W<R<]=g=n=`=a=n<R<P<y=m<W<T=n<R<_<R<P<Y<Q=c<^=m<Y=i=a=n<R<U<X<\\<Z<Y<]=g<W<T<_<R<X=o<X<Y<Q=`=a=n<R=n<]=g<W<\\=m<Y<]=c<R<X<T<Q=m<Y<]<Y<Q<\\<X<R=m<\\<U=n=h<R=n<R<Q<Y<_<R=m<^<R<T=m<^<R<U<T<_=l=g=n<R<Z<Y<^=m<Y<P=m<^<R=b<W<T=d=`=a=n<T=i<S<R<V<\\<X<Q<Y<U<X<R<P<\\<P<T=l<\\<W<T<]<R=n<Y<P=o=i<R=n=c<X<^=o=i=m<Y=n<T<W=b<X<T<X<Y<W<R<P<T=l<Y=n<Y<]=c=m<^<R<Y<^<T<X<Y=k<Y<_<R=a=n<T<P=m=k<Y=n=n<Y<P=g=j<Y<Q=g=m=n<\\<W<^<Y<X=`=n<Y<P<Y<^<R<X=g=n<Y<]<Y<^=g=d<Y<Q<\\<P<T=n<T<S<\\=n<R<P=o<S=l<\\<^<W<T=j<\\<R<X<Q<\\<_<R<X=g<[<Q<\\=b<P<R<_=o<X=l=o<_<^=m<Y<U<T<X<Y=n<V<T<Q<R<R<X<Q<R<X<Y<W<\\<X<Y<W<Y=m=l<R<V<T=b<Q=c<^<Y=m=`<y=m=n=`=l<\\<[<\\<Q<\\=d<T4K5h5h5k4K5h4F5f4@5i5f4U4B4K4Y4E4K5h4\\5f4U5h5f5k4@4C5f4C4K5h4N5j4K5h4]4C4F4A5o5i4Y5m4A4E5o4K5j4F4K5h5h5f5f5o5d5j4X4D5o4E5m5f5k4K4D5j4K4F4A5d4K4M4O5o4G4]4B5h4K5h4K5h4A4D4C5h5f5h4C4]5d4_4K4Z4V4[4F5o5d5j5k5j4K5o4_4K4A4E5j4K4C5f4K5h4[4D4U5h5f5o4X5o4]4K5f5i5o5j5i5j5k4K4X4]5o4E4]4J5f4_5j4X5f4[5i4K4\\4K4K5h5m5j4X4D4K4D4F4U4D4]4]4A5i4E5o4K5m4E5f5n5d5h5i4]5o4^5o5h5i4E4O4A5i4C5n5h4D5f5f4U5j5f4Y5d4]4E4[4]5f5n4X4K4]5o4@5d4K5h4O4B4]5e5i4U5j4K4K4D4A4G4U4]5d4Z4D4X5o5h5i4_4@5h4D5j4K5j4B4K5h4C5o4F4K4D5o5h5f4E4D4C5d5j4O5f4Z4K5f5d4@4C5m4]5f5n5o4F4D4F4O5m4Z5h5i4[4D4B4K5o4G4]4D4K4]5o4K5m4Z5h4K4A5h5e5j5m4_5k4O5f4K5i4]4C5d4C4O5j5k4K4C5f5j4K4K5h4K5j5i4U4]4Z4F4U5h5i4C4K4B5h5i5i5o5j\x07\x07\x07\x07\0\x07\x07\0\v\n \b\r\f\f\r\b \n\v\x1B\x1B\0\v\v\v\v\0\x07qfplvq`fp`lvmwqjfprvfpwjlmpfrvjsnfmw`lnnvmjwzbubjobaofkjdkojdkwGWG,{kwnonbqhfwjmdhmltofgdfplnfwkjmd`lmwbjmfqgjqf`wjlmpvap`qjafbgufqwjpf`kbqb`wfq!#ubovf>!?,pfof`w=Bvpwqbojb!#`obpp>!pjwvbwjlmbvwklqjwzelooltjmdsqjnbqjozlsfqbwjlm`kboofmdfgfufolsfgbmlmznlvpevm`wjlm#evm`wjlmp`lnsbmjfppwqv`wvqfbdqffnfmw!#wjwof>!slwfmwjbofgv`bwjlmbqdvnfmwppf`lmgbqz`lszqjdkwobmdvbdfpf{`ovpjuf`lmgjwjlm?,elqn= pwbwfnfmwbwwfmwjlmAjldqbskz~#fopf#x plovwjlmptkfm#wkf#Bmbozwj`pwfnsobwfpgbmdfqlvppbwfoojwfgl`vnfmwpsvaojpkfqjnslqwbmwsqlwlwzsfjmeovfm`f%qbrvl8?,feef`wjufdfmfqboozwqbmpelqnafbvwjevowqbmpslqwlqdbmjyfgsvaojpkfgsqlnjmfmwvmwjo#wkfwkvnambjoMbwjlmbo#-el`vp+*8lufq#wkf#njdqbwjlmbmmlvm`fgellwfq!= f{`fswjlmofpp#wkbmf{sfmpjufelqnbwjlmeqbnftlqhwfqqjwlqzmgj`bwjlm`vqqfmwoz`obppMbnf`qjwj`jpnwqbgjwjlmfopftkfqfBof{bmgfqbssljmwfgnbwfqjbopaqlbg`bpwnfmwjlmfgbeejojbwf?,lswjlm=wqfbwnfmwgjeefqfmw,gfebvow-Sqfpjgfmwlm`oj`h>!ajldqbskzlwkfqtjpfsfqnbmfmwEqbm/KbjpKlooztllgf{sbmpjlmpwbmgbqgp?,pwzof= qfgv`wjlmGf`fnafq#sqfefqqfg@bnaqjgdflsslmfmwpAvpjmfpp#`lmevpjlm= ?wjwof=sqfpfmwfgf{sobjmfgglfp#mlw#tlqogtjgfjmwfqeb`fslpjwjlmpmftpsbsfq?,wbaof= nlvmwbjmpojhf#wkf#fppfmwjboejmbm`jbopfof`wjlmb`wjlm>!,babmglmfgFgv`bwjlmsbqpfJmw+pwbajojwzvmbaof#wl?,wjwof= qfobwjlmpMlwf#wkbwfeej`jfmwsfqelqnfgwtl#zfbqpPjm`f#wkfwkfqfelqftqbssfq!=bowfqmbwfjm`qfbpfgAbwwof#lesfq`fjufgwqzjmd#wlmf`fppbqzslqwqbzfgfof`wjlmpFojybafwk?,jeqbnf=gjp`lufqzjmpvqbm`fp-ofmdwk8ofdfmgbqzDfldqbskz`bmgjgbwf`lqslqbwfplnfwjnfppfquj`fp-jmkfqjwfg?,pwqlmd=@lnnvmjwzqfojdjlvpol`bwjlmp@lnnjwwffavjogjmdpwkf#tlqogml#olmdfqafdjmmjmdqfefqfm`f`bmmlw#afeqfrvfm`zwzsj`boozjmwl#wkf#qfobwjuf8qf`lqgjmdsqfpjgfmwjmjwjboozwf`kmjrvfwkf#lwkfqjw#`bm#aff{jpwfm`fvmgfqojmfwkjp#wjnfwfofsklmfjwfnp`lsfsqb`wj`fpbgubmwbdf*8qfwvqm#Elq#lwkfqsqlujgjmdgfnl`qb`zalwk#wkf#f{wfmpjufpveefqjmdpvsslqwfg`lnsvwfqp#evm`wjlmsqb`wj`bopbjg#wkbwjw#nbz#afFmdojpk?,eqln#wkf#p`kfgvofggltmolbgp?,obafo= pvpsf`wfgnbqdjm9#3psjqjwvbo?,kfbg= nj`qlplewdqbgvboozgjp`vppfgkf#af`bnff{f`vwjufirvfqz-ipklvpfklog`lmejqnfgsvq`kbpfgojwfqboozgfpwqlzfgvs#wl#wkfubqjbwjlmqfnbjmjmdjw#jp#mlw`fmwvqjfpIbsbmfpf#bnlmd#wkf`lnsofwfgbodlqjwknjmwfqfpwpqfafoojlmvmgfejmfgfm`lvqbdfqfpjybaofjmuloujmdpfmpjwjufvmjufqpbosqlujpjlm+bowklvdkefbwvqjmd`lmgv`wfg*/#tkj`k#`lmwjmvfg.kfbgfq!=Efaqvbqz#mvnfqlvp#lufqeolt9`lnslmfmweqbdnfmwpf{`foofmw`lopsbm>!wf`kmj`bomfbq#wkf#Bgubm`fg#plvq`f#lef{sqfppfgKlmd#Hlmd#Eb`fallhnvowjsof#nf`kbmjpnfofubwjlmleefmpjuf?,elqn= \npslmplqfggl`vnfmw-lq#%rvlw8wkfqf#bqfwklpf#tklnlufnfmwpsql`fppfpgjeej`vowpvanjwwfgqf`lnnfmg`lmujm`fgsqlnlwjmd!#tjgwk>!-qfsob`f+`obppj`bo`lbojwjlmkjp#ejqpwgf`jpjlmpbppjpwbmwjmgj`bwfgfulovwjlm.tqbssfq!fmlvdk#wlbolmd#wkfgfojufqfg..= ?"..Bnfqj`bm#sqlwf`wfgMlufnafq#?,pwzof=?evqmjwvqfJmwfqmfw##lmaovq>!pvpsfmgfgqf`jsjfmwabpfg#lm#Nlqflufq/balojpkfg`loof`wfgtfqf#nbgffnlwjlmbofnfqdfm`zmbqqbwjufbgul`bwfps{8alqgfq`lnnjwwfggjq>!owq!fnsolzffpqfpfbq`k-#pfof`wfgpv``fpplq`vpwlnfqpgjpsobzfgPfswfnafqbgg@obpp+Eb`fallh#pvddfpwfgbmg#obwfqlsfqbwjmdfobalqbwfPlnfwjnfpJmpwjwvwf`fqwbjmozjmpwboofgelooltfqpIfqvpbofnwkfz#kbuf`lnsvwjmddfmfqbwfgsqlujm`fpdvbqbmwffbqajwqbqzqf`ldmjyftbmwfg#wls{8tjgwk9wkflqz#leafkbujlvqTkjof#wkffpwjnbwfgafdbm#wl#jw#af`bnfnbdmjwvgfnvpw#kbufnlqf#wkbmGjqf`wlqzf{wfmpjlmpf`qfwbqzmbwvqboozl``vqqjmdubqjbaofpdjufm#wkfsobwelqn-?,obafo=?ebjofg#wl`lnslvmgphjmgp#le#pl`jfwjfpbolmdpjgf#..%dw8 plvwktfpwwkf#qjdkwqbgjbwjlmnbz#kbuf#vmfp`bsf+pslhfm#jm!#kqfe>!,sqldqbnnflmoz#wkf#`lnf#eqlngjqf`wlqzavqjfg#jmb#pjnjobqwkfz#tfqf?,elmw=?,Mlqtfdjbmpsf`jejfgsqlgv`jmdsbppfmdfq+mft#Gbwfwfnslqbqzej`wjlmboBewfq#wkffrvbwjlmpgltmolbg-qfdvobqozgfufolsfqbaluf#wkfojmhfg#wlskfmlnfmbsfqjlg#lewllowjs!=pvapwbm`fbvwlnbwj`bpsf`w#leBnlmd#wkf`lmmf`wfgfpwjnbwfpBjq#Elq`fpzpwfn#lelaif`wjufjnnfgjbwfnbhjmd#jwsbjmwjmdp`lmrvfqfgbqf#pwjoosql`fgvqfdqltwk#lekfbgfg#azFvqlsfbm#gjujpjlmpnlof`vofpeqbm`kjpfjmwfmwjlmbwwqb`wfg`kjogkllgbopl#vpfggfgj`bwfgpjmdbslqfgfdqff#leebwkfq#le`lmeoj`wp?,b=?,s= `bnf#eqlntfqf#vpfgmlwf#wkbwqf`fjujmdF{f`vwjuffufm#nlqfb``fpp#wl`lnnbmgfqSlojwj`bonvpj`jbmpgfoj`jlvpsqjplmfqpbgufmw#leVWE.;!#,=?"X@GBWBX!=@lmwb`wPlvwkfqm#ad`lolq>!pfqjfp#le-#Jw#tbp#jm#Fvqlsfsfqnjwwfgubojgbwf-bssfbqjmdleej`jboppfqjlvpoz.obmdvbdfjmjwjbwfgf{wfmgjmdolmd.wfqnjmeobwjlmpv`k#wkbwdfw@llhjfnbqhfg#az?,avwwlm=jnsofnfmwavw#jw#jpjm`qfbpfpgltm#wkf#qfrvjqjmdgfsfmgfmw..= ?"..#jmwfqujftTjwk#wkf#`lsjfp#le`lmpfmpvptbp#avjowUfmfyvfob+elqnfqozwkf#pwbwfsfqplmmfopwqbwfdj`ebulvq#lejmufmwjlmTjhjsfgjb`lmwjmfmwujqwvbooztkj`k#tbpsqjm`jsof@lnsofwf#jgfmwj`bopklt#wkbwsqjnjwjufbtbz#eqlnnlof`vobqsqf`jpfozgjpploufgVmgfq#wkfufqpjlm>!=%maps8?,Jw#jp#wkf#Wkjp#jp#tjoo#kbuflqdbmjpnpplnf#wjnfEqjfgqj`ktbp#ejqpwwkf#lmoz#eb`w#wkbwelqn#jg>!sqf`fgjmdWf`kmj`boskzpj`jpwl``vqp#jmmbujdbwlqpf`wjlm!=psbm#jg>!plvdkw#wlafolt#wkfpvqujujmd~?,pwzof=kjp#gfbwkbp#jm#wkf`bvpfg#azsbqwjboozf{jpwjmd#vpjmd#wkftbp#djufmb#ojpw#leofufop#lemlwjlm#leLeej`jbo#gjpnjppfgp`jfmwjpwqfpfnaofpgvsoj`bwff{solpjufqf`lufqfgboo#lwkfqdboofqjfpxsbggjmd9sflsof#leqfdjlm#lebggqfppfpbppl`jbwfjnd#bow>!jm#nlgfqmpklvog#afnfwklg#leqfslqwjmdwjnfpwbnsmffgfg#wlwkf#Dqfbwqfdbqgjmdpffnfg#wlujftfg#bpjnsb`w#lmjgfb#wkbwwkf#Tlqogkfjdkw#lef{sbmgjmdWkfpf#bqf`vqqfmw!=`bqfevooznbjmwbjmp`kbqdf#le@obppj`bobggqfppfgsqfgj`wfgltmfqpkjs?gju#jg>!qjdkw!= qfpjgfm`fofbuf#wkf`lmwfmw!=bqf#lewfm##~*+*8 sqlabaoz#Sqlefpplq.avwwlm!#qfpslmgfgpbzp#wkbwkbg#wl#afsob`fg#jmKvmdbqjbmpwbwvp#lepfqufp#bpVmjufqpbof{f`vwjlmbddqfdbwfelq#tkj`kjmef`wjlmbdqffg#wlkltfufq/#slsvobq!=sob`fg#lm`lmpwqv`wfof`wlqbopznalo#lejm`ovgjmdqfwvqm#wlbq`kjwf`w@kqjpwjbmsqfujlvp#ojujmd#jmfbpjfq#wlsqlefpplq %ow8"..#feef`w#lebmbozwj`ptbp#wbhfmtkfqf#wkfwllh#lufqafojfe#jmBeqjhbbmpbp#ebq#bpsqfufmwfgtlqh#tjwkb#psf`jbo?ejfogpfw@kqjpwnbpQfwqjfufg Jm#wkf#ab`h#jmwlmlqwkfbpwnbdbyjmfp=?pwqlmd=`lnnjwwffdlufqmjmddqlvsp#lepwlqfg#jmfpwbaojpkb#dfmfqbojwp#ejqpwwkfjq#ltmslsvobwfgbm#laif`w@bqjaafbmboolt#wkfgjpwqj`wptjp`lmpjmol`bwjlm-8#tjgwk9#jmkbajwfgPl`jbojpwIbmvbqz#2?,ellwfq=pjnjobqoz`klj`f#lewkf#pbnf#psf`jej`#avpjmfpp#Wkf#ejqpw-ofmdwk8#gfpjqf#wlgfbo#tjwkpjm`f#wkfvpfqBdfmw`lm`fjufgjmgf{-sksbp#%rvlw8fmdbdf#jmqf`fmwoz/eft#zfbqptfqf#bopl ?kfbg= ?fgjwfg#azbqf#hmltm`jwjfp#jmb``fpphfz`lmgfnmfgbopl#kbufpfquj`fp/ebnjoz#leP`kllo#le`lmufqwfgmbwvqf#le#obmdvbdfnjmjpwfqp?,laif`w=wkfqf#jp#b#slsvobqpfrvfm`fpbgul`bwfgWkfz#tfqfbmz#lwkfqol`bwjlm>fmwfq#wkfnv`k#nlqfqfeof`wfgtbp#mbnfglqjdjmbo#b#wzsj`botkfm#wkfzfmdjmffqp`lvog#mlwqfpjgfmwptfgmfpgbzwkf#wkjqg#sqlgv`wpIbmvbqz#1tkbw#wkfzb#`fqwbjmqfb`wjlmpsql`fpplqbewfq#kjpwkf#obpw#`lmwbjmfg!=?,gju= ?,b=?,wg=gfsfmg#lmpfbq`k!= sjf`fp#le`lnsfwjmdQfefqfm`fwfmmfppfftkj`k#kbp#ufqpjlm>?,psbm=#??,kfbgfq=djufp#wkfkjpwlqjbmubovf>!!=sbggjmd93ujft#wkbwwldfwkfq/wkf#nlpw#tbp#elvmgpvapfw#lebwwb`h#lm`kjogqfm/sljmwp#lesfqplmbo#slpjwjlm9boofdfgoz@ofufobmgtbp#obwfqbmg#bewfqbqf#djufmtbp#pwjoop`qloojmdgfpjdm#lenbhfp#wkfnv`k#ofppBnfqj`bmp- Bewfq#/#avw#wkfNvpfvn#leolvjpjbmb+eqln#wkfnjmmfplwbsbqwj`ofpb#sql`fppGlnjmj`bmulovnf#leqfwvqmjmdgfefmpjuf33s{\x7Fqjdknbgf#eqlnnlvpflufq!#pwzof>!pwbwfp#le+tkj`k#jp`lmwjmvfpEqbm`jp`lavjogjmd#tjwklvw#btjwk#plnftkl#tlvogb#elqn#leb#sbqw#leafelqf#jwhmltm#bp##Pfquj`fpol`bwjlm#bmg#lewfmnfbpvqjmdbmg#jw#jpsbsfqab`hubovfp#le ?wjwof=>#tjmglt-gfwfqnjmffq%rvlw8#sobzfg#azbmg#fbqoz?,`fmwfq=eqln#wkjpwkf#wkqffsltfq#bmgle#%rvlw8jmmfqKWNO?b#kqfe>!z9jmojmf8@kvq`k#lewkf#fufmwufqz#kjdkleej`jbo#.kfjdkw9#`lmwfmw>!,`dj.ajm,wl#`qfbwfbeqjhbbmpfpsfqbmwleqbm/Kbjpobwujf)Mvojfwvuj)_(`f)Mwjmb(af)Mwjmb\fUh\fT{\fTN\n{I\np@Fr\vBl\bQ\x7F A{\vUmGx A{ypYA\0zX\bTV\bWl\bUdBM\vB{\npV\v@xB\\\np@DbGz al\npa fM uD\bV~mx\vQ}\ndS p\\\bVK\bS]\bU|oD kV\ved\vHR\nb~M`\nJpoD|Q\nLPSw\bTl\nAI\nxC\bWt BqF`Cm\vLm Kx }t\bPv\ny\\\naB V\x7F\nZdXUli fr i@ BHBDBV `V\n[] p_ Tn\n~A\nxR uD `{\bV@ Tn HK AJ\vxsZf\nqIZf\vBM\v|j }t\bSM\nmC\vQ}pfquj`jlpbqw/A`volbqdfmwjmbabq`folmb`vborvjfqsvaoj`bglsqlgv`wlpslo/Awj`bqfpsvfpwbtjhjsfgjbpjdvjfmwfa/Vprvfgb`lnvmjgbgpfdvqjgbgsqjm`jsbosqfdvmwbp`lmwfmjglqfpslmgfqufmfyvfobsqlaofnbpgj`jfnaqfqfob`j/_mmlujfnaqfpjnjobqfpsqlzf`wlpsqldqbnbpjmpwjwvwlb`wjujgbgfm`vfmwqbf`lmln/Abjn/Mdfmfp`lmwb`wbqgfp`bqdbqmf`fpbqjlbwfm`j/_mwfo/Eelml`lnjpj/_m`bm`jlmfp`bsb`jgbgfm`lmwqbqbm/Mojpjpebulqjwlpw/Eqnjmlpsqlujm`jbfwjrvfwbpfofnfmwlpevm`jlmfpqfpvowbgl`bq/M`wfqsqlsjfgbgsqjm`jsjlmf`fpjgbgnvmj`jsbo`qfb`j/_mgfp`bqdbpsqfpfm`jb`lnfq`jbolsjmjlmfpfifq`j`jlfgjwlqjbopbobnbm`bdlmy/Mofygl`vnfmwlsfo/A`vobqf`jfmwfpdfmfqbofpwbqqbdlmbsq/M`wj`bmlufgbgfpsqlsvfpwbsb`jfmwfpw/E`mj`bplaifwjulp`lmwb`wlp\fHB\fIk\fHn\fH^\fHS\fHc\fHU\fId\fHn\fH{\fHC\fHR\fHT\fHR\fHI\fHc\fHY\fHn\fH\\\fHU\fIk\fHy\fIg\fHd\fHy\fIm\fHw\fH\\\fHU\fHR\fH@\fHR\fHJ\fHy\fHU\fHR\fHT\fHA\fIl\fHU\fIm\fHc\fH\\\fHU\fIl\fHB\fId\fHn\fHJ\fHS\fHD\fH@\fHR\fHHgjsolgl`p\fHT\fHB\fHC\fH\\\fIn\fHF\fHD\fHR\fHB\fHF\fHH\fHR\fHG\fHS\fH\\\fHx\fHT\fHH\fHH\fH\\\fHU\fH^\fIg\fH{\fHU\fIm\fHj\fH@\fHR\fH\\\fHJ\fIk\fHZ\fHU\fIm\fHd\fHz\fIk\fH^\fHC\fHJ\fHS\fHy\fHR\fHB\fHY\fIk\fH@\fHH\fIl\fHD\fH@\fIl\fHv\fHB\fI`\fHH\fHT\fHR\fH^\fH^\fIk\fHz\fHp\fIe\fH@\fHB\fHJ\fHJ\fHH\fHI\fHR\fHD\fHU\fIl\fHZ\fHU\fH\\\fHi\fH^\fH{\fHy\fHA\fIl\fHD\fH{\fH\\\fHF\fHR\fHT\fH\\\fHR\fHH\fHy\fHS\fHc\fHe\fHT\fIk\fH{\fHC\fIl\fHU\fIn\fHm\fHj\fH{\fIk\fHs\fIl\fHB\fHz\fIg\fHp\fHy\fHR\fH\\\fHi\fHA\fIl\fH{\fHC\fIk\fHH\fIm\fHB\fHY\fIg\fHs\fHJ\fIk\fHn\fHi\fH{\fH\\\fH|\fHT\fIk\fHB\fIk\fH^\fH^\fH{\fHR\fHU\fHR\fH^\fHf\fHF\fH\\\fHv\fHR\fH\\\fH|\fHT\fHR\fHJ\fIk\fH\\\fHp\fHS\fHT\fHJ\fHS\fH^\fH@\fHn\fHJ\fH@\fHD\fHR\fHU\fIn\fHn\fH^\fHR\fHz\fHp\fIl\fHH\fH@\fHs\fHD\fHB\fHS\fH^\fHk\fHT\fIk\fHj\fHD\fIk\fHD\fHC\fHR\fHy\fIm\fH^\fH^\fIe\fH{\fHA\fHR\fH{\fH\\\fIk\fH^\fHp\fH{\fHU\fH\\\fHR\fHB\fH^\fH{\fIk\fHF\fIk\fHp\fHU\fHR\fHI\fHk\fHT\fIl\fHT\fHU\fIl\fHy\fH^\fHR\fHL\fIl\fHy\fHU\fHR\fHm\fHJ\fIn\fH\\\fHH\fHU\fHH\fHT\fHR\fHH\fHC\fHR\fHJ\fHj\fHC\fHR\fHF\fHR\fHy\fHy\fI`\fHD\fHZ\fHR\fHB\fHJ\fIk\fHz\fHC\fHU\fIl\fH\\\fHR\fHC\fHz\fIm\fHJ\fH^\fH{\fIl`bwfdlqjfpf{sfqjfm`f?,wjwof= @lszqjdkw#ibubp`qjsw`lmgjwjlmpfufqzwkjmd?s#`obpp>!wf`kmloldzab`hdqlvmg?b#`obpp>!nbmbdfnfmw%`lsz8#132ibubP`qjsw`kbqb`wfqpaqfbg`qvnawkfnpfoufpklqjylmwbodlufqmnfmw@bojelqmjbb`wjujwjfpgjp`lufqfgMbujdbwjlmwqbmpjwjlm`lmmf`wjlmmbujdbwjlmbssfbqbm`f?,wjwof=?n`kf`hal{!#wf`kmjrvfpsqlwf`wjlmbssbqfmwozbp#tfoo#bpvmw$/#$VB.qfplovwjlmlsfqbwjlmpwfofujpjlmwqbmpobwfgTbpkjmdwlmmbujdbwlq-#>#tjmglt-jnsqfppjlm%ow8aq%dw8ojwfqbwvqfslsvobwjlmad`lolq>! fpsf`jbooz#`lmwfmw>!sqlgv`wjlmmftpofwwfqsqlsfqwjfpgfejmjwjlmofbgfqpkjsWf`kmloldzSbqojbnfmw`lnsbqjplmvo#`obpp>!-jmgf{Le+!`lm`ovpjlmgjp`vppjlm`lnslmfmwpajloldj`boQfulovwjlm\\`lmwbjmfqvmgfqpwllgmlp`qjsw=?sfqnjppjlmfb`k#lwkfqbwnlpskfqf#lmel`vp>!?elqn#jg>!sql`fppjmdwkjp-ubovfdfmfqbwjlm@lmefqfm`fpvapfrvfmwtfoo.hmltmubqjbwjlmpqfsvwbwjlmskfmlnfmlmgjp`jsojmfoldl-smd!#+gl`vnfmw/alvmgbqjfpf{sqfppjlmpfwwofnfmwAb`hdqlvmglvw#le#wkffmwfqsqjpf+!kwwsp9!#vmfp`bsf+!sbpptlqg!#gfnl`qbwj`?b#kqfe>!,tqbssfq!= nfnafqpkjsojmdvjpwj`s{8sbggjmdskjolplskzbppjpwbm`fvmjufqpjwzeb`jojwjfpqf`ldmjyfgsqfefqfm`fje#+wzsflenbjmwbjmfgul`bavobqzkzslwkfpjp-pvanjw+*8%bns8maps8bmmlwbwjlmafkjmg#wkfElvmgbwjlmsvaojpkfq!bppvnswjlmjmwqlgv`fg`lqqvswjlmp`jfmwjpwpf{soj`jwozjmpwfbg#legjnfmpjlmp#lm@oj`h>!`lmpjgfqfggfsbqwnfmwl``vsbwjlmpllm#bewfqjmufpwnfmwsqlmlvm`fgjgfmwjejfgf{sfqjnfmwNbmbdfnfmwdfldqbskj`!#kfjdkw>!ojmh#qfo>!-qfsob`f+,gfsqfppjlm`lmefqfm`fsvmjpknfmwfojnjmbwfgqfpjpwbm`fbgbswbwjlmlsslpjwjlmtfoo#hmltmpvssofnfmwgfwfqnjmfgk2#`obpp>!3s{8nbqdjmnf`kbmj`bopwbwjpwj`p`fofaqbwfgDlufqmnfmw Gvqjmd#wgfufolsfqpbqwjej`jbofrvjubofmwlqjdjmbwfg@lnnjppjlmbwwb`knfmw?psbm#jg>!wkfqf#tfqfMfgfqobmgpafzlmg#wkfqfdjpwfqfgilvqmbojpweqfrvfmwozboo#le#wkfobmd>!fm!#?,pwzof= baplovwf8#pvsslqwjmdf{wqfnfoz#nbjmpwqfbn?,pwqlmd=#slsvobqjwzfnsolznfmw?,wbaof= #`lopsbm>!?,elqn= ##`lmufqpjlmbalvw#wkf#?,s=?,gju=jmwfdqbwfg!#obmd>!fmSlqwvdvfpfpvapwjwvwfjmgjujgvbojnslppjaofnvowjnfgjbbonlpw#boos{#plojg# bsbqw#eqlnpvaif`w#wljm#Fmdojpk`qjwj`jyfgf{`fsw#elqdvjgfojmfplqjdjmboozqfnbqhbaofwkf#pf`lmgk1#`obpp>!?b#wjwof>!+jm`ovgjmdsbqbnfwfqpsqlkjajwfg>#!kwws9,,gj`wjlmbqzsfq`fswjlmqfulovwjlmelvmgbwjlms{8kfjdkw9pv``fppevopvsslqwfqpnjoofmmjvnkjp#ebwkfqwkf#%rvlw8ml.qfsfbw8`lnnfq`jbojmgvpwqjbofm`lvqbdfgbnlvmw#le#vmleej`jbofeej`jfm`zQfefqfm`fp`llqgjmbwfgjp`objnfqf{sfgjwjlmgfufolsjmd`bo`vobwfgpjnsojejfgofdjwjnbwfpvapwqjmd+3!#`obpp>!`lnsofwfozjoovpwqbwfejuf#zfbqpjmpwqvnfmwSvaojpkjmd2!#`obpp>!spz`kloldz`lmejgfm`fmvnafq#le#bapfm`f#leel`vpfg#lmiljmfg#wkfpwqv`wvqfpsqfujlvpoz=?,jeqbnf=lm`f#bdbjmavw#qbwkfqjnnjdqbmwple#`lvqpf/b#dqlvs#leOjwfqbwvqfVmojhf#wkf?,b=%maps8 evm`wjlm#jw#tbp#wkf@lmufmwjlmbvwlnlajofSqlwfpwbmwbddqfppjufbewfq#wkf#Pjnjobqoz/!#,=?,gju=`loof`wjlm evm`wjlmujpjajojwzwkf#vpf#leulovmwffqpbwwqb`wjlmvmgfq#wkf#wkqfbwfmfg)?"X@GBWBXjnslqwbm`fjm#dfmfqbowkf#obwwfq?,elqn= ?,-jmgf{Le+$j#>#38#j#?gjeefqfm`fgfulwfg#wlwqbgjwjlmppfbq`k#elqvowjnbwfozwlvqmbnfmwbwwqjavwfppl.`boofg#~ ?,pwzof=fubovbwjlmfnskbpjyfgb``fppjaof?,pf`wjlm=pv``fppjlmbolmd#tjwkNfbmtkjof/jmgvpwqjfp?,b=?aq#,=kbp#af`lnfbpsf`wp#leWfofujpjlmpveej`jfmwabphfwabooalwk#pjgfp`lmwjmvjmdbm#bqwj`of?jnd#bow>!bgufmwvqfpkjp#nlwkfqnbm`kfpwfqsqjm`jsofpsbqwj`vobq`lnnfmwbqzfeef`wp#legf`jgfg#wl!=?pwqlmd=svaojpkfqpIlvqmbo#legjeej`vowzeb`jojwbwfb``fswbaofpwzof-`pp!\nevm`wjlm#jmmlubwjlm=@lszqjdkwpjwvbwjlmptlvog#kbufavpjmfppfpGj`wjlmbqzpwbwfnfmwplewfm#vpfgsfqpjpwfmwjm#Ibmvbqz`lnsqjpjmd?,wjwof= \ngjsolnbwj``lmwbjmjmdsfqelqnjmdf{wfmpjlmpnbz#mlw#af`lm`fsw#le#lm`oj`h>!Jw#jp#boplejmbm`jbo#nbhjmd#wkfOv{fnalvqdbggjwjlmbobqf#`boofgfmdbdfg#jm!p`qjsw!*8avw#jw#tbpfof`wqlmj`lmpvanjw>! ?"..#Fmg#fof`wqj`boleej`jboozpvddfpwjlmwls#le#wkfvmojhf#wkfBvpwqbojbmLqjdjmboozqfefqfm`fp ?,kfbg= qf`ldmjpfgjmjwjbojyfojnjwfg#wlBof{bmgqjbqfwjqfnfmwBgufmwvqfpelvq#zfbqp %ow8"..#jm`qfbpjmdgf`lqbwjlmk0#`obpp>!lqjdjmp#lelaojdbwjlmqfdvobwjlm`obppjejfg+evm`wjlm+bgubmwbdfpafjmd#wkf#kjpwlqjbmp?abpf#kqfeqfsfbwfgoztjoojmd#wl`lnsbqbaofgfpjdmbwfgmlnjmbwjlmevm`wjlmbojmpjgf#wkfqfufobwjlmfmg#le#wkfp#elq#wkf#bvwklqjyfgqfevpfg#wlwbhf#sob`fbvwlmlnlvp`lnsqlnjpfslojwj`bo#qfpwbvqbmwwtl#le#wkfEfaqvbqz#1rvbojwz#leptelaif`w-vmgfqpwbmgmfbqoz#bootqjwwfm#azjmwfqujftp!#tjgwk>!2tjwkgqbtboeolbw9ofewjp#vpvbooz`bmgjgbwfpmftpsbsfqpnzpwfqjlvpGfsbqwnfmwafpw#hmltmsbqojbnfmwpvssqfppfg`lmufmjfmwqfnfnafqfggjeefqfmw#pzpwfnbwj`kbp#ofg#wlsqlsbdbmgb`lmwqloofgjmeovfm`fp`fqfnlmjbosql`objnfgSqlwf`wjlmoj#`obpp>!P`jfmwjej``obpp>!ml.wqbgfnbqhpnlqf#wkbm#tjgfpsqfbgOjafqbwjlmwllh#sob`fgbz#le#wkfbp#olmd#bpjnsqjplmfgBggjwjlmbo ?kfbg= ?nObalqbwlqzMlufnafq#1f{`fswjlmpJmgvpwqjboubqjfwz#leeolbw9#ofeGvqjmd#wkfbppfppnfmwkbuf#affm#gfbop#tjwkPwbwjpwj`pl``vqqfm`f,vo=?,gju=`ofbqej{!=wkf#svaoj`nbmz#zfbqptkj`k#tfqflufq#wjnf/pzmlmznlvp`lmwfmw!= sqfpvnbaozkjp#ebnjozvpfqBdfmw-vmf{sf`wfgjm`ovgjmd#`kboofmdfgb#njmlqjwzvmgfejmfg!afolmdp#wlwbhfm#eqlnjm#L`wlafqslpjwjlm9#pbjg#wl#afqfojdjlvp#Efgfqbwjlm#qltpsbm>!lmoz#b#eftnfbmw#wkbwofg#wl#wkf..= ?gju#?ejfogpfw=Bq`kajpkls#`obpp>!mlafjmd#vpfgbssqlb`kfpsqjujofdfpmlp`qjsw= qfpvowp#jmnbz#af#wkfFbpwfq#fddnf`kbmjpnpqfbplmbaofSlsvobwjlm@loof`wjlmpfof`wfg!=mlp`qjsw=,jmgf{-sksbqqjubo#le.ippgh$**8nbmbdfg#wljm`lnsofwf`bpvbowjfp`lnsofwjlm@kqjpwjbmpPfswfnafq#bqjwknfwj`sql`fgvqfpnjdkw#kbufSqlgv`wjlmjw#bssfbqpSkjolplskzeqjfmgpkjsofbgjmd#wldjujmd#wkfwltbqg#wkfdvbqbmwffggl`vnfmwfg`lolq9 333ujgfl#dbnf`lnnjppjlmqfeof`wjmd`kbmdf#wkfbppl`jbwfgpbmp.pfqjelmhfzsqfpp8#sbggjmd9Kf#tbp#wkfvmgfqozjmdwzsj`booz#/#bmg#wkf#pq`Fofnfmwpv``fppjufpjm`f#wkf#pklvog#af#mfwtlqhjmdb``lvmwjmdvpf#le#wkfoltfq#wkbmpkltp#wkbw?,psbm= \n\n`lnsobjmwp`lmwjmvlvprvbmwjwjfpbpwqlmlnfqkf#gjg#mlwgvf#wl#jwpbssojfg#wlbm#bufqbdffeelqwp#wlwkf#evwvqfbwwfnsw#wlWkfqfelqf/`bsbajojwzQfsvaoj`bmtbp#elqnfgFof`wqlmj`hjolnfwfqp`kboofmdfpsvaojpkjmdwkf#elqnfqjmgjdfmlvpgjqf`wjlmppvapjgjbqz`lmpsjqb`zgfwbjop#lebmg#jm#wkfbeelqgbaofpvapwbm`fpqfbplm#elq`lmufmwjlmjwfnwzsf>!baplovwfozpvsslpfgozqfnbjmfg#bbwwqb`wjufwqbufoojmdpfsbqbwfozel`vpfp#lmfofnfmwbqzbssoj`baofelvmg#wkbwpwzofpkffwnbmvp`qjswpwbmgp#elq#ml.qfsfbw+plnfwjnfp@lnnfq`jbojm#Bnfqj`bvmgfqwbhfmrvbqwfq#lebm#f{bnsofsfqplmboozjmgf{-sks<?,avwwlm= sfq`fmwbdfafpw.hmltm`qfbwjmd#b!#gjq>!owqOjfvwfmbmw ?gju#jg>!wkfz#tlvogbajojwz#lenbgf#vs#lemlwfg#wkbw`ofbq#wkbwbqdvf#wkbwwl#bmlwkfq`kjogqfm$psvqslpf#leelqnvobwfgabpfg#vslmwkf#qfdjlmpvaif`w#lesbppfmdfqpslppfppjlm- Jm#wkf#Afelqf#wkfbewfqtbqgp`vqqfmwoz#b`qlpp#wkfp`jfmwjej``lnnvmjwz-`bsjwbojpnjm#Dfqnbmzqjdkw.tjmdwkf#pzpwfnPl`jfwz#leslojwj`jbmgjqf`wjlm9tfmw#lm#wlqfnlubo#le#Mft#Zlqh#bsbqwnfmwpjmgj`bwjlmgvqjmd#wkfvmofpp#wkfkjpwlqj`bokbg#affm#bgfejmjwjufjmdqfgjfmwbwwfmgbm`f@fmwfq#elqsqlnjmfm`fqfbgzPwbwfpwqbwfdjfpavw#jm#wkfbp#sbqw#le`lmpwjwvwf`objn#wkbwobalqbwlqz`lnsbwjaofebjovqf#le/#pv`k#bp#afdbm#tjwkvpjmd#wkf#wl#sqlujgfefbwvqf#leeqln#tkj`k,!#`obpp>!dfloldj`bopfufqbo#legfojafqbwfjnslqwbmw#klogp#wkbwjmd%rvlw8#ubojdm>wlswkf#Dfqnbmlvwpjgf#lemfdlwjbwfgkjp#`bqffqpfsbqbwjlmjg>!pfbq`ktbp#`boofgwkf#elvqwkqf`qfbwjlmlwkfq#wkbmsqfufmwjlmtkjof#wkf#fgv`bwjlm/`lmmf`wjmdb``vqbwfoztfqf#avjowtbp#hjoofgbdqffnfmwpnv`k#nlqf#Gvf#wl#wkftjgwk9#233plnf#lwkfqHjmdgln#lewkf#fmwjqfebnlvp#elqwl#`lmmf`wlaif`wjufpwkf#Eqfm`ksflsof#bmgefbwvqfg!=jp#pbjg#wlpwqv`wvqboqfefqfmgvnnlpw#lewfmb#pfsbqbwf.= ?gju#jg#Leej`jbo#tlqogtjgf-bqjb.obafowkf#sobmfwbmg#jw#tbpg!#ubovf>!ollhjmd#bwafmfej`jbobqf#jm#wkfnlmjwlqjmdqfslqwfgozwkf#nlgfqmtlqhjmd#lmbooltfg#wltkfqf#wkf#jmmlubwjuf?,b=?,gju=plvmgwqb`hpfbq`kElqnwfmg#wl#afjmsvw#jg>!lsfmjmd#leqfpwqj`wfgbglswfg#azbggqfppjmdwkfloldjbmnfwklgp#leubqjbmw#le@kqjpwjbm#ufqz#obqdfbvwlnlwjufaz#ebq#wkfqbmdf#eqlnsvqpvjw#leeloolt#wkfaqlvdkw#wljm#Fmdobmgbdqff#wkbwb``vpfg#le`lnfp#eqlnsqfufmwjmdgju#pwzof>kjp#lq#kfqwqfnfmglvpeqffgln#le`lm`fqmjmd3#2fn#2fn8Abphfwaboo,pwzof-`ppbm#fbqojfqfufm#bewfq,!#wjwof>!-`ln,jmgf{wbhjmd#wkfsjwwpavqdk`lmwfmw!=?p`qjsw=+ewvqmfg#lvwkbujmd#wkf?,psbm= #l``bpjlmboaf`bvpf#jwpwbqwfg#wlskzpj`booz=?,gju= ##`qfbwfg#az@vqqfmwoz/#ad`lolq>!wbajmgf{>!gjpbpwqlvpBmbozwj`p#bopl#kbp#b=?gju#jg>!?,pwzof= ?`boofg#elqpjmdfq#bmg-pq`#>#!,,ujlobwjlmpwkjp#sljmw`lmpwbmwozjp#ol`bwfgqf`lqgjmdpg#eqln#wkfmfgfqobmgpslqwvdv/Fp;N;};D;u;F5m4K4]4_7`gfpbqqlool`lnfmwbqjlfgv`b`j/_mpfswjfnaqfqfdjpwqbglgjqf``j/_mvaj`b`j/_msvaoj`jgbgqfpsvfpwbpqfpvowbglpjnslqwbmwfqfpfqubglpbqw/A`volpgjefqfmwfppjdvjfmwfpqfs/Vaoj`bpjwvb`j/_mnjmjpwfqjlsqjub`jgbggjqf`wlqjlelqnb`j/_mslaob`j/_msqfpjgfmwf`lmw','fmjglpb``fplqjlpwf`kmlqbwjsfqplmbofp`bwfdlq/Abfpsf`jbofpgjpslmjaofb`wvbojgbgqfefqfm`jbuboobglojgajaojlwf`bqfob`jlmfp`bofmgbqjlslo/Awj`bpbmwfqjlqfpgl`vnfmwlpmbwvqbofybnbwfqjbofpgjefqfm`jbf`lm/_nj`bwqbmpslqwfqlgq/Advfysbqwj`jsbqfm`vfmwqbmgjp`vpj/_mfpwqv`wvqbevmgb`j/_meqf`vfmwfpsfqnbmfmwfwlwbonfmwf<P<R<Z<Q<R<]=o<X<Y=n<P<R<Z<Y=n<^=l<Y<P=c=n<\\<V<Z<Y=k=n<R<]=g<]<R<W<Y<Y<R=k<Y<Q=`=a=n<R<_<R<V<R<_<X<\\<S<R=m<W<Y<^=m<Y<_<R=m<\\<U=n<Y=k<Y=l<Y<[<P<R<_=o=n=m<\\<U=n<\\<Z<T<[<Q<T<P<Y<Z<X=o<]=o<X=o=n<s<R<T=m<V<[<X<Y=m=`<^<T<X<Y<R=m<^=c<[<T<Q=o<Z<Q<R=m<^<R<Y<U<W=b<X<Y<U<S<R=l<Q<R<P<Q<R<_<R<X<Y=n<Y<U=m<^<R<T=i<S=l<\\<^<\\=n<\\<V<R<U<P<Y=m=n<R<T<P<Y<Y=n<Z<T<[<Q=`<R<X<Q<R<U<W=o=k=d<Y<S<Y=l<Y<X=k<\\=m=n<T=k<\\=m=n=`=l<\\<]<R=n<Q<R<^=g=i<S=l<\\<^<R=m<R<]<R<U<S<R=n<R<P<P<Y<Q<Y<Y=k<T=m<W<Y<Q<R<^=g<Y=o=m<W=o<_<R<V<R<W<R<Q<\\<[<\\<X=n<\\<V<R<Y=n<R<_<X<\\<S<R=k=n<T<s<R=m<W<Y=n<\\<V<T<Y<Q<R<^=g<U=m=n<R<T=n=n<\\<V<T=i=m=l<\\<[=o<M<\\<Q<V=n=h<R=l=o<P<v<R<_<X<\\<V<Q<T<_<T=m<W<R<^<\\<Q<\\=d<Y<U<Q<\\<U=n<T=m<^<R<T<P=m<^=c<[=`<W=b<]<R<U=k<\\=m=n<R=m=l<Y<X<T<v=l<R<P<Y<H<R=l=o<P=l=g<Q<V<Y=m=n<\\<W<T<S<R<T=m<V=n=g=m=c=k<P<Y=m=c=j=j<Y<Q=n=l=n=l=o<X<\\=m<\\<P=g=i=l=g<Q<V<\\<q<R<^=g<U=k<\\=m<R<^<P<Y=m=n<\\=h<T<W=`<P<P<\\=l=n<\\=m=n=l<\\<Q<P<Y=m=n<Y=n<Y<V=m=n<Q<\\=d<T=i<P<T<Q=o=n<T<P<Y<Q<T<T<P<Y=b=n<Q<R<P<Y=l<_<R=l<R<X=m<\\<P<R<P=a=n<R<P=o<V<R<Q=j<Y=m<^<R<Y<P<V<\\<V<R<U<|=l=i<T<^5i5j4F4C5e4I4]4_4K5h4]4_4K5h4E4K5h4U4K5i5o4F4D5k4K4D4]4K5i4@4K5h5f5d5i4K5h4Y5d4]4@4C5f4C4E4K5h4U4Z5d4I4Z4K5m4E4K5h5n4_5i4K5h4U4K4D4F4A5i5f5h5i5h5m4K4F5i5h4F5n5e4F4U4C5f5h4K5h4X4U4]4O4B4D4K4]4F4[5d5f4]4U5h5f5o5i4I4]5m4K5n4[5h4D4K4F4K5h5h4V4E4F4]4F5f4D4K5h5j4K4_4K5h4X5f4B5i5j4F4C5f4K5h4U4]4D4K5h5n4Y4Y4K5m5h4K5i4U5h5f5k4K4F4A4C5f4G4K5h5h5k5i4K5h4U5i5h5i5o4F4D4E5f5i5o5j5o4K5h4[5m5h5m5f4C5f5d4I4C4K4]4E4F4K4]5f4B4K5h4Y4A4E4F4_4@5f5h4K5h5d5n4F4U5j4C5i4K5i4C5f5j4E4F4Y5i5f5i4O4]4X5f5m4K5h4\\5f5j4U4]4D5f4E4D5d4K4D4E4O5h4U4K4D4K5h4_5m4]5i4X4K5o5h4F4U4K5h5e4K5h4O5d5h4K5h4_5j4E4@4K5i4U4E4K5h4Y4A5m4K5h4C5f5j5o5h5i4K4F4K5h4B4K4Y4K5h5i5h5m4O4U4Z4K4M5o4F4K4D4E4K5h4B5f4]4]4_4K4J5h4K5h5n5h4D4K5h4O4C4D5i5n4K4[4U5i4]4K4_5h5i5j4[5n4E4K5h5o4F4D4K5h4]4@5h4K4X4F4]5o4K5h5n4C5i5f4U4[5f5opAzWbdMbnf+-isd!#bow>!2s{#plojg# -dje!#bow>!wqbmpsbqfmwjmelqnbwjlmbssoj`bwjlm!#lm`oj`h>!fpwbaojpkfgbgufqwjpjmd-smd!#bow>!fmujqlmnfmwsfqelqnbm`fbssqlsqjbwf%bns8ngbpk8jnnfgjbwfoz?,pwqlmd=?,qbwkfq#wkbmwfnsfqbwvqfgfufolsnfmw`lnsfwjwjlmsob`fklogfqujpjajojwz9`lszqjdkw!=3!#kfjdkw>!fufm#wklvdkqfsob`fnfmwgfpwjmbwjlm@lqslqbwjlm?vo#`obpp>!Bppl`jbwjlmjmgjujgvbopsfqpsf`wjufpfwWjnflvw+vqo+kwws9,,nbwkfnbwj`pnbqdjm.wls9fufmwvbooz#gfp`qjswjlm*#ml.qfsfbw`loof`wjlmp-ISD\x7Fwkvna\x7Fsbqwj`jsbwf,kfbg=?algzeolbw9ofew8?oj#`obpp>!kvmgqfgp#le Kltfufq/#`lnslpjwjlm`ofbq9alwk8`llsfqbwjlmtjwkjm#wkf#obafo#elq>!alqgfq.wls9Mft#Yfbobmgqf`lnnfmgfgsklwldqbskzjmwfqfpwjmd%ow8pvs%dw8`lmwqlufqpzMfwkfqobmgpbowfqmbwjufnb{ofmdwk>!ptjwyfqobmgGfufolsnfmwfppfmwjbooz Bowklvdk#?,wf{wbqfb=wkvmgfqajqgqfsqfpfmwfg%bns8mgbpk8psf`vobwjlm`lnnvmjwjfpofdjpobwjlmfof`wqlmj`p \n?gju#jg>!joovpwqbwfgfmdjmffqjmdwfqqjwlqjfpbvwklqjwjfpgjpwqjavwfg5!#kfjdkw>!pbmp.pfqje8`bsbaof#le#gjpbssfbqfgjmwfqb`wjufollhjmd#elqjw#tlvog#afBedkbmjpwbmtbp#`qfbwfgNbwk-eollq+pvqqlvmgjmd`bm#bopl#aflapfqubwjlmnbjmwfmbm`ffm`lvmwfqfg?k1#`obpp>!nlqf#qf`fmwjw#kbp#affmjmubpjlm#le*-dfwWjnf+*evmgbnfmwboGfpsjwf#wkf!=?gju#jg>!jmpsjqbwjlmf{bnjmbwjlmsqfsbqbwjlmf{sobmbwjlm?jmsvw#jg>!?,b=?,psbm=ufqpjlmp#lejmpwqvnfmwpafelqf#wkf##>#$kwws9,,Gfp`qjswjlmqfobwjufoz#-pvapwqjmd+fb`k#le#wkff{sfqjnfmwpjmeovfmwjbojmwfdqbwjlmnbmz#sflsofgvf#wl#wkf#`lnajmbwjlmgl#mlw#kbufNjggof#Fbpw?mlp`qjsw=?`lszqjdkw!#sfqkbsp#wkfjmpwjwvwjlmjm#Gf`fnafqbqqbmdfnfmwnlpw#ebnlvpsfqplmbojwz`qfbwjlm#leojnjwbwjlmpf{`ovpjufozplufqfjdmwz.`lmwfmw!= ?wg#`obpp>!vmgfqdqlvmgsbqboofo#wlgl`wqjmf#lel``vsjfg#azwfqnjmloldzQfmbjppbm`fb#mvnafq#lepvsslqw#elqf{solqbwjlmqf`ldmjwjlmsqfgf`fpplq?jnd#pq`>!,?k2#`obpp>!svaoj`bwjlmnbz#bopl#afpsf`jbojyfg?,ejfogpfw=sqldqfppjufnjoojlmp#lepwbwfp#wkbwfmelq`fnfmwbqlvmg#wkf#lmf#bmlwkfq-sbqfmwMlgfbdqj`vowvqfBowfqmbwjufqfpfbq`kfqpwltbqgp#wkfNlpw#le#wkfnbmz#lwkfq#+fpsf`jbooz?wg#tjgwk>!8tjgwk9233&jmgfsfmgfmw?k0#`obpp>!#lm`kbmdf>!*-bgg@obpp+jmwfqb`wjlmLmf#le#wkf#gbvdkwfq#leb``fpplqjfpaqbm`kfp#le ?gju#jg>!wkf#obqdfpwgf`obqbwjlmqfdvobwjlmpJmelqnbwjlmwqbmpobwjlmgl`vnfmwbqzjm#lqgfq#wl!= ?kfbg= ?!#kfjdkw>!2b`qlpp#wkf#lqjfmwbwjlm*8?,p`qjsw=jnsofnfmwfg`bm#af#pffmwkfqf#tbp#bgfnlmpwqbwf`lmwbjmfq!=`lmmf`wjlmpwkf#Aqjwjpktbp#tqjwwfm"jnslqwbmw8s{8#nbqdjm.elooltfg#azbajojwz#wl#`lnsoj`bwfggvqjmd#wkf#jnnjdqbwjlmbopl#`boofg?k7#`obpp>!gjpwjm`wjlmqfsob`fg#azdlufqmnfmwpol`bwjlm#lejm#Mlufnafqtkfwkfq#wkf?,s= ?,gju=b`rvjpjwjlm`boofg#wkf#sfqpf`vwjlmgfpjdmbwjlmxelmw.pjyf9bssfbqfg#jmjmufpwjdbwff{sfqjfm`fgnlpw#ojhfoztjgfoz#vpfggjp`vppjlmpsqfpfm`f#le#+gl`vnfmw-f{wfmpjufozJw#kbp#affmjw#glfp#mlw`lmwqbqz#wljmkbajwbmwpjnsqlufnfmwp`klobqpkjs`lmpvnswjlmjmpwqv`wjlmelq#f{bnsoflmf#lq#nlqfs{8#sbggjmdwkf#`vqqfmwb#pfqjfp#lebqf#vpvboozqlof#jm#wkfsqfujlvpoz#gfqjubwjufpfujgfm`f#lef{sfqjfm`fp`lolqp`kfnfpwbwfg#wkbw`fqwjej`bwf?,b=?,gju= #pfof`wfg>!kjdk#p`klloqfpslmpf#wl`lnelqwbaofbglswjlm#lewkqff#zfbqpwkf#`lvmwqzjm#Efaqvbqzpl#wkbw#wkfsflsof#tkl#sqlujgfg#az?sbqbn#mbnfbeef`wfg#azjm#wfqnp#lebssljmwnfmwJPL.;;6:.2!tbp#alqm#jmkjpwlqj`bo#qfdbqgfg#bpnfbpvqfnfmwjp#abpfg#lm#bmg#lwkfq#9#evm`wjlm+pjdmjej`bmw`fofaqbwjlmwqbmpnjwwfg,ip,irvfqz-jp#hmltm#bpwkflqfwj`bo#wbajmgf{>!jw#`lvog#af?mlp`qjsw= kbujmd#affm ?kfbg= ?#%rvlw8Wkf#`lnsjobwjlmkf#kbg#affmsqlgv`fg#azskjolplskfq`lmpwqv`wfgjmwfmgfg#wlbnlmd#lwkfq`lnsbqfg#wlwl#pbz#wkbwFmdjmffqjmdb#gjeefqfmwqfefqqfg#wlgjeefqfm`fpafojfe#wkbwsklwldqbskpjgfmwjezjmdKjpwlqz#le#Qfsvaoj`#lemf`fppbqjozsqlabajojwzwf`kmj`boozofbujmd#wkfpsf`wb`vobqeqb`wjlm#lefof`wqj`jwzkfbg#le#wkfqfpwbvqbmwpsbqwmfqpkjsfnskbpjp#lmnlpw#qf`fmwpkbqf#tjwk#pbzjmd#wkbwejoofg#tjwkgfpjdmfg#wljw#jp#lewfm!=?,jeqbnf=bp#elooltp9nfqdfg#tjwkwkqlvdk#wkf`lnnfq`jbo#sljmwfg#lvwlsslqwvmjwzujft#le#wkfqfrvjqfnfmwgjujpjlm#lesqldqbnnjmdkf#qf`fjufgpfwJmwfqubo!=?,psbm=?,jm#Mft#Zlqhbggjwjlmbo#`lnsqfppjlm ?gju#jg>!jm`lqslqbwf8?,p`qjsw=?bwwb`kFufmwaf`bnf#wkf#!#wbqdfw>!\\`bqqjfg#lvwPlnf#le#wkfp`jfm`f#bmgwkf#wjnf#le@lmwbjmfq!=nbjmwbjmjmd@kqjpwlskfqNv`k#le#wkftqjwjmdp#le!#kfjdkw>!1pjyf#le#wkfufqpjlm#le#nj{wvqf#le#afwtffm#wkfF{bnsofp#lefgv`bwjlmbo`lnsfwjwjuf#lmpvanjw>!gjqf`wlq#legjpwjm`wjuf,GWG#[KWNO#qfobwjmd#wlwfmgfm`z#wlsqlujm`f#letkj`k#tlvoggfpsjwf#wkfp`jfmwjej`#ofdjpobwvqf-jmmfqKWNO#boofdbwjlmpBdqj`vowvqftbp#vpfg#jmbssqlb`k#wljmwfoojdfmwzfbqp#obwfq/pbmp.pfqjegfwfqnjmjmdSfqelqnbm`fbssfbqbm`fp/#tkj`k#jp#elvmgbwjlmpbaaqfujbwfgkjdkfq#wkbmp#eqln#wkf#jmgjujgvbo#`lnslpfg#lepvsslpfg#wl`objnp#wkbwbwwqjavwjlmelmw.pjyf92fofnfmwp#leKjpwlqj`bo#kjp#aqlwkfqbw#wkf#wjnfbmmjufqpbqzdlufqmfg#azqfobwfg#wl#vowjnbwfoz#jmmlubwjlmpjw#jp#pwjoo`bm#lmoz#afgfejmjwjlmpwlDNWPwqjmdB#mvnafq#lejnd#`obpp>!Fufmwvbooz/tbp#`kbmdfgl``vqqfg#jmmfjdkalqjmdgjpwjmdvjpktkfm#kf#tbpjmwqlgv`jmdwfqqfpwqjboNbmz#le#wkfbqdvfp#wkbwbm#Bnfqj`bm`lmrvfpw#letjgfpsqfbg#tfqf#hjoofgp`qffm#bmg#Jm#lqgfq#wlf{sf`wfg#wlgfp`fmgbmwpbqf#ol`bwfgofdjpobwjufdfmfqbwjlmp#ab`hdqlvmgnlpw#sflsofzfbqp#bewfqwkfqf#jp#mlwkf#kjdkfpweqfrvfmwoz#wkfz#gl#mlwbqdvfg#wkbwpkltfg#wkbwsqfglnjmbmwwkfloldj`boaz#wkf#wjnf`lmpjgfqjmdpklqw.ojufg?,psbm=?,b=`bm#af#vpfgufqz#ojwwoflmf#le#wkf#kbg#boqfbgzjmwfqsqfwfg`lnnvmj`bwfefbwvqfp#ledlufqmnfmw/?,mlp`qjsw=fmwfqfg#wkf!#kfjdkw>!0Jmgfsfmgfmwslsvobwjlmpobqdf.p`bof-#Bowklvdk#vpfg#jm#wkfgfpwqv`wjlmslppjajojwzpwbqwjmd#jmwtl#lq#nlqff{sqfppjlmppvalqgjmbwfobqdfq#wkbmkjpwlqz#bmg?,lswjlm= @lmwjmfmwbofojnjmbwjmdtjoo#mlw#afsqb`wj`f#lejm#eqlmw#lepjwf#le#wkffmpvqf#wkbwwl#`qfbwf#bnjppjppjssjslwfmwjboozlvwpwbmgjmdafwwfq#wkbmtkbw#jp#mltpjwvbwfg#jmnfwb#mbnf>!WqbgjwjlmbopvddfpwjlmpWqbmpobwjlmwkf#elqn#lebwnlpskfqj`jgfloldj`bofmwfqsqjpfp`bo`vobwjmdfbpw#le#wkfqfnmbmwp#lesovdjmpsbdf,jmgf{-sks<qfnbjmfg#jmwqbmpelqnfgKf#tbp#bopltbp#boqfbgzpwbwjpwj`bojm#ebulq#leNjmjpwqz#lenlufnfmw#leelqnvobwjlmjp#qfrvjqfg?ojmh#qfo>!Wkjp#jp#wkf#?b#kqfe>!,slsvobqjyfgjmuloufg#jmbqf#vpfg#wlbmg#pfufqbonbgf#az#wkfpffnp#wl#afojhfoz#wkbwSbofpwjmjbmmbnfg#bewfqjw#kbg#affmnlpw#`lnnlmwl#qfefq#wlavw#wkjp#jp`lmpf`vwjufwfnslqbqjozJm#dfmfqbo/`lmufmwjlmpwbhfp#sob`fpvagjujpjlmwfqqjwlqjbolsfqbwjlmbosfqnbmfmwoztbp#obqdfozlvwaqfbh#lejm#wkf#sbpwelooltjmd#b#{nomp9ld>!=?b#`obpp>!`obpp>!wf{w@lmufqpjlm#nbz#af#vpfgnbmveb`wvqfbewfq#afjmd`ofbqej{!= rvfpwjlm#letbp#fof`wfgwl#af`lnf#baf`bvpf#le#plnf#sflsofjmpsjqfg#azpv``fppevo#b#wjnf#tkfmnlqf#`lnnlmbnlmdpw#wkfbm#leej`jbotjgwk9233&8wf`kmloldz/tbp#bglswfgwl#hffs#wkfpfwwofnfmwpojuf#ajqwkpjmgf{-kwno!@lmmf`wj`vwbppjdmfg#wl%bns8wjnfp8b``lvmw#elqbojdm>qjdkwwkf#`lnsbmzbotbzp#affmqfwvqmfg#wljmuloufnfmwAf`bvpf#wkfwkjp#sfqjlg!#mbnf>!r!#`lmejmfg#wlb#qfpvow#leubovf>!!#,=jp#b`wvboozFmujqlmnfmw ?,kfbg= @lmufqpfoz/= ?gju#jg>!3!#tjgwk>!2jp#sqlabaozkbuf#af`lnf`lmwqloojmdwkf#sqlaofn`jwjyfmp#leslojwj`jbmpqfb`kfg#wkfbp#fbqoz#bp9mlmf8#lufq?wbaof#`fooubojgjwz#legjqf`woz#wllmnlvpfgltmtkfqf#jw#jptkfm#jw#tbpnfnafqp#le#qfobwjlm#wlb``lnnlgbwfbolmd#tjwk#Jm#wkf#obwfwkf#Fmdojpkgfoj`jlvp!=wkjp#jp#mlwwkf#sqfpfmwje#wkfz#bqfbmg#ejmboozb#nbwwfq#le \n?,gju= ?,p`qjsw=ebpwfq#wkbmnbilqjwz#lebewfq#tkj`k`lnsbqbwjufwl#nbjmwbjmjnsqluf#wkfbtbqgfg#wkffq!#`obpp>!eqbnfalqgfqqfpwlqbwjlmjm#wkf#pbnfbmbozpjp#lewkfjq#ejqpwGvqjmd#wkf#`lmwjmfmwbopfrvfm`f#leevm`wjlm+*xelmw.pjyf9#tlqh#lm#wkf?,p`qjsw= ?afdjmp#tjwkibubp`qjsw9`lmpwjwvfmwtbp#elvmgfgfrvjojaqjvnbppvnf#wkbwjp#djufm#azmffgp#wl#af`llqgjmbwfpwkf#ubqjlvpbqf#sbqw#lelmoz#jm#wkfpf`wjlmp#lejp#b#`lnnlmwkflqjfp#legjp`lufqjfpbppl`jbwjlmfgdf#le#wkfpwqfmdwk#leslpjwjlm#jmsqfpfmw.gbzvmjufqpboozwl#elqn#wkfavw#jmpwfbg`lqslqbwjlmbwwb`kfg#wljp#`lnnlmozqfbplmp#elq#%rvlw8wkf#`bm#af#nbgftbp#baof#wltkj`k#nfbmpavw#gjg#mlwlmNlvpfLufqbp#slppjaoflsfqbwfg#az`lnjmd#eqlnwkf#sqjnbqzbggjwjlm#leelq#pfufqbowqbmpefqqfgb#sfqjlg#lebqf#baof#wlkltfufq/#jwpklvog#kbufnv`k#obqdfq \n?,p`qjsw=bglswfg#wkfsqlsfqwz#legjqf`wfg#azfeef`wjufoztbp#aqlvdkw`kjogqfm#leSqldqbnnjmdolmdfq#wkbmnbmvp`qjswptbq#bdbjmpwaz#nfbmp#lebmg#nlpw#lepjnjobq#wl#sqlsqjfwbqzlqjdjmbwjmdsqfpwjdjlvpdqbnnbwj`bof{sfqjfm`f-wl#nbhf#wkfJw#tbp#bopljp#elvmg#jm`lnsfwjwlqpjm#wkf#V-P-qfsob`f#wkfaqlvdkw#wkf`bo`vobwjlmeboo#le#wkfwkf#dfmfqbosqb`wj`boozjm#klmlq#leqfofbpfg#jmqfpjgfmwjbobmg#plnf#lehjmd#le#wkfqfb`wjlm#wl2pw#Fbqo#le`vowvqf#bmgsqjm`jsbooz?,wjwof= ##wkfz#`bm#afab`h#wl#wkfplnf#le#kjpf{slpvqf#wlbqf#pjnjobqelqn#le#wkfbggEbulqjwf`jwjyfmpkjssbqw#jm#wkfsflsof#tjwkjm#sqb`wj`fwl#`lmwjmvf%bns8njmvp8bssqlufg#az#wkf#ejqpw#booltfg#wkfbmg#elq#wkfevm`wjlmjmdsobzjmd#wkfplovwjlm#wlkfjdkw>!3!#jm#kjp#allhnlqf#wkbm#belooltp#wkf`qfbwfg#wkfsqfpfm`f#jm%maps8?,wg=mbwjlmbojpwwkf#jgfb#leb#`kbqb`wfqtfqf#elq`fg#`obpp>!awmgbzp#le#wkfefbwvqfg#jmpkltjmd#wkfjmwfqfpw#jmjm#sob`f#lewvqm#le#wkfwkf#kfbg#leOlqg#le#wkfslojwj`boozkbp#jwp#ltmFgv`bwjlmbobssqlubo#leplnf#le#wkffb`k#lwkfq/afkbujlq#lebmg#af`bvpfbmg#bmlwkfqbssfbqfg#lmqf`lqgfg#jmaob`h%rvlw8nbz#jm`ovgfwkf#tlqog$p`bm#ofbg#wlqfefqp#wl#balqgfq>!3!#dlufqmnfmw#tjmmjmd#wkfqfpvowfg#jm#tkjof#wkf#Tbpkjmdwlm/wkf#pvaif`w`jwz#jm#wkf=?,gju= \n\nqfeof`w#wkfwl#`lnsofwfaf`bnf#nlqfqbgjlb`wjufqfif`wfg#aztjwklvw#bmzkjp#ebwkfq/tkj`k#`lvog`lsz#le#wkfwl#jmgj`bwfb#slojwj`bob``lvmwp#le`lmpwjwvwfptlqhfg#tjwkfq?,b=?,oj=le#kjp#ojefb``lnsbmjfg`ojfmwTjgwksqfufmw#wkfOfdjpobwjufgjeefqfmwozwldfwkfq#jmkbp#pfufqboelq#bmlwkfqwf{w#le#wkfelvmgfg#wkff#tjwk#wkf#jp#vpfg#elq`kbmdfg#wkfvpvbooz#wkfsob`f#tkfqftkfqfbp#wkf=#?b#kqfe>!!=?b#kqfe>!wkfnpfoufp/bowklvdk#kfwkbw#`bm#afwqbgjwjlmboqlof#le#wkfbp#b#qfpvowqfnluf@kjoggfpjdmfg#aztfpw#le#wkfPlnf#sflsofsqlgv`wjlm/pjgf#le#wkfmftpofwwfqpvpfg#az#wkfgltm#wl#wkfb``fswfg#azojuf#jm#wkfbwwfnswp#wllvwpjgf#wkfeqfrvfm`jfpKltfufq/#jmsqldqbnnfqpbw#ofbpw#jmbssql{jnbwfbowklvdk#jwtbp#sbqw#lebmg#ubqjlvpDlufqmlq#lewkf#bqwj`ofwvqmfg#jmwl=?b#kqfe>!,wkf#f`lmlnzjp#wkf#nlpwnlpw#tjgfoztlvog#obwfqbmg#sfqkbspqjpf#wl#wkfl``vqp#tkfmvmgfq#tkj`k`lmgjwjlmp-wkf#tfpwfqmwkflqz#wkbwjp#sqlgv`fgwkf#`jwz#lejm#tkj`k#kfpffm#jm#wkfwkf#`fmwqboavjogjmd#lenbmz#le#kjpbqfb#le#wkfjp#wkf#lmoznlpw#le#wkfnbmz#le#wkfwkf#TfpwfqmWkfqf#jp#mlf{wfmgfg#wlPwbwjpwj`bo`lopsbm>1#\x7Fpklqw#pwlqzslppjaof#wlwlsloldj`bo`qjwj`bo#leqfslqwfg#wlb#@kqjpwjbmgf`jpjlm#wljp#frvbo#wlsqlaofnp#leWkjp#`bm#afnfq`kbmgjpfelq#nlpw#leml#fujgfm`ffgjwjlmp#lefofnfmwp#jm%rvlw8-#Wkf`ln,jnbdfp,tkj`k#nbhfpwkf#sql`fppqfnbjmp#wkfojwfqbwvqf/jp#b#nfnafqwkf#slsvobqwkf#bm`jfmwsqlaofnp#jmwjnf#le#wkfgfefbwfg#azalgz#le#wkfb#eft#zfbqpnv`k#le#wkfwkf#tlqh#le@bojelqmjb/pfqufg#bp#bdlufqmnfmw-`lm`fswp#lenlufnfmw#jm\n\n?gju#jg>!jw!#ubovf>!obmdvbdf#lebp#wkfz#bqfsqlgv`fg#jmjp#wkbw#wkff{sobjm#wkfgju=?,gju= Kltfufq#wkfofbg#wl#wkf\n?b#kqfe>!,tbp#dqbmwfgsflsof#kbuf`lmwjmvbooztbp#pffm#bpbmg#qfobwfgwkf#qlof#lesqlslpfg#azle#wkf#afpwfb`k#lwkfq-@lmpwbmwjmfsflsof#eqlngjbof`wp#lewl#qfujpjlmtbp#qfmbnfgb#plvq`f#lewkf#jmjwjboobvm`kfg#jmsqlujgf#wkfwl#wkf#tfpwtkfqf#wkfqfbmg#pjnjobqafwtffm#wtljp#bopl#wkfFmdojpk#bmg`lmgjwjlmp/wkbw#jw#tbpfmwjwofg#wlwkfnpfoufp-rvbmwjwz#leqbmpsbqfm`zwkf#pbnf#bpwl#iljm#wkf`lvmwqz#bmgwkjp#jp#wkfWkjp#ofg#wlb#pwbwfnfmw`lmwqbpw#wlobpwJmgf{Lewkqlvdk#kjpjp#gfpjdmfgwkf#wfqn#jpjp#sqlujgfgsqlwf`w#wkfmd?,b=?,oj=Wkf#`vqqfmwwkf#pjwf#lepvapwbmwjbof{sfqjfm`f/jm#wkf#Tfpwwkfz#pklvogpolufm(ajmb`lnfmwbqjlpvmjufqpjgbg`lmgj`jlmfpb`wjujgbgfpf{sfqjfm`jbwf`mlold/Absqlgv``j/_msvmwvb`j/_mbsoj`b`j/_m`lmwqbpf/]b`bwfdlq/Abpqfdjpwqbqpfsqlefpjlmbowqbwbnjfmwlqfd/Apwqbwfpf`qfwbq/Absqjm`jsbofpsqlwf``j/_mjnslqwbmwfpjnslqwbm`jbslpjajojgbgjmwfqfpbmwf`qf`jnjfmwlmf`fpjgbgfppvp`qjajqpfbpl`jb`j/_mgjpslmjaofpfubovb`j/_mfpwvgjbmwfpqfpslmpbaofqfplov`j/_mdvbgbobibqbqfdjpwqbglplslqwvmjgbg`lnfq`jbofpelwldqbe/Abbvwlqjgbgfpjmdfmjfq/Abwfofujpj/_m`lnsfwfm`jblsfqb`jlmfpfpwbaof`jglpjnsofnfmwfb`wvbonfmwfmbufdb`j/_m`lmelqnjgbgojmf.kfjdkw9elmw.ebnjoz9!#9#!kwws9,,bssoj`bwjlmpojmh!#kqfe>!psf`jej`booz,,?"X@GBWBX Lqdbmjybwjlmgjpwqjavwjlm3s{8#kfjdkw9qfobwjlmpkjsgfuj`f.tjgwk?gju#`obpp>!?obafo#elq>!qfdjpwqbwjlm?,mlp`qjsw= ,jmgf{-kwno!tjmglt-lsfm+#"jnslqwbmw8bssoj`bwjlm,jmgfsfmgfm`f,,ttt-dlldoflqdbmjybwjlmbvwl`lnsofwfqfrvjqfnfmwp`lmpfqubwjuf?elqn#mbnf>!jmwfoof`wvbonbqdjm.ofew92;wk#`fmwvqzbm#jnslqwbmwjmpwjwvwjlmpbaaqfujbwjlm?jnd#`obpp>!lqdbmjpbwjlm`jujojybwjlm2:wk#`fmwvqzbq`kjwf`wvqfjm`lqslqbwfg13wk#`fmwvqz.`lmwbjmfq!=nlpw#mlwbaoz,=?,b=?,gju=mlwjej`bwjlm$vmgfejmfg$*Evqwkfqnlqf/afojfuf#wkbwjmmfqKWNO#>#sqjlq#wl#wkfgqbnbwj`boozqfefqqjmd#wlmfdlwjbwjlmpkfbgrvbqwfqpPlvwk#Beqj`bvmpv``fppevoSfmmpzoubmjbBp#b#qfpvow/?kwno#obmd>!%ow8,pvs%dw8gfbojmd#tjwkskjobgfoskjbkjpwlqj`booz*8?,p`qjsw= sbggjmd.wls9f{sfqjnfmwbodfwBwwqjavwfjmpwqv`wjlmpwf`kmloldjfpsbqw#le#wkf#>evm`wjlm+*xpvap`qjswjlmo-gwg!= ?kwdfldqbskj`bo@lmpwjwvwjlm$/#evm`wjlm+pvsslqwfg#azbdqj`vowvqbo`lmpwqv`wjlmsvaoj`bwjlmpelmw.pjyf9#2b#ubqjfwz#le?gju#pwzof>!Fm`z`olsfgjbjeqbnf#pq`>!gfnlmpwqbwfgb``lnsojpkfgvmjufqpjwjfpGfnldqbskj`p*8?,p`qjsw=?gfgj`bwfg#wlhmltofgdf#lepbwjpeb`wjlmsbqwj`vobqoz?,gju=?,gju=Fmdojpk#+VP*bssfmg@kjog+wqbmpnjppjlmp-#Kltfufq/#jmwfoojdfm`f!#wbajmgf{>!eolbw9qjdkw8@lnnlmtfbowkqbmdjmd#eqlnjm#tkj`k#wkfbw#ofbpw#lmfqfsqlgv`wjlmfm`z`olsfgjb8elmw.pjyf92ivqjpgj`wjlmbw#wkbw#wjnf!=?b#`obpp>!Jm#bggjwjlm/gfp`qjswjlm(`lmufqpbwjlm`lmwb`w#tjwkjp#dfmfqboozq!#`lmwfmw>!qfsqfpfmwjmd%ow8nbwk%dw8sqfpfmwbwjlml``bpjlmbooz?jnd#tjgwk>!mbujdbwjlm!=`lnsfmpbwjlm`kbnsjlmpkjsnfgjb>!boo!#ujlobwjlm#leqfefqfm`f#wlqfwvqm#wqvf8Pwqj`w,,FM!#wqbmpb`wjlmpjmwfqufmwjlmufqjej`bwjlmJmelqnbwjlm#gjeej`vowjfp@kbnsjlmpkjs`bsbajojwjfp?"Xfmgje^..=~ ?,p`qjsw= @kqjpwjbmjwzelq#f{bnsof/Sqlefppjlmboqfpwqj`wjlmppvddfpw#wkbwtbp#qfofbpfg+pv`k#bp#wkfqfnluf@obpp+vmfnsolznfmwwkf#Bnfqj`bmpwqv`wvqf#le,jmgf{-kwno#svaojpkfg#jmpsbm#`obpp>!!=?b#kqfe>!,jmwqlgv`wjlmafolmdjmd#wl`objnfg#wkbw`lmpfrvfm`fp?nfwb#mbnf>!Dvjgf#wl#wkflufqtkfonjmdbdbjmpw#wkf#`lm`fmwqbwfg/ -mlmwlv`k#lapfqubwjlmp?,b= ?,gju= e#+gl`vnfmw-alqgfq9#2s{#xelmw.pjyf92wqfbwnfmw#le3!#kfjdkw>!2nlgjej`bwjlmJmgfsfmgfm`fgjujgfg#jmwldqfbwfq#wkbmb`kjfufnfmwpfpwbaojpkjmdIbubP`qjsw!#mfufqwkfofpppjdmjej`bm`fAqlbg`bpwjmd=%maps8?,wg=`lmwbjmfq!= pv`k#bp#wkf#jmeovfm`f#leb#sbqwj`vobqpq`>$kwws9,,mbujdbwjlm!#kboe#le#wkf#pvapwbmwjbo#%maps8?,gju=bgubmwbdf#legjp`lufqz#leevmgbnfmwbo#nfwqlslojwbmwkf#lsslpjwf!#{no9obmd>!gfojafqbwfozbojdm>`fmwfqfulovwjlm#lesqfpfqubwjlmjnsqlufnfmwpafdjmmjmd#jmIfpvp#@kqjpwSvaoj`bwjlmpgjpbdqffnfmwwf{w.bojdm9q/#evm`wjlm+*pjnjobqjwjfpalgz=?,kwno=jp#`vqqfmwozboskbafwj`bojp#plnfwjnfpwzsf>!jnbdf,nbmz#le#wkf#eolt9kjggfm8bubjobaof#jmgfp`qjaf#wkff{jpwfm`f#leboo#lufq#wkfwkf#Jmwfqmfw\n?vo#`obpp>!jmpwboobwjlmmfjdkalqkllgbqnfg#elq`fpqfgv`jmd#wkf`lmwjmvfp#wlMlmfwkfofpp/wfnsfqbwvqfp \n\n?b#kqfe>!`olpf#wl#wkff{bnsofp#le#jp#balvw#wkf+pff#afolt*-!#jg>!pfbq`ksqlefppjlmbojp#bubjobaofwkf#leej`jbo\n\n?,p`qjsw= \n\n?gju#jg>!b``fofqbwjlmwkqlvdk#wkf#Kboo#le#Ebnfgfp`qjswjlmpwqbmpobwjlmpjmwfqefqfm`f#wzsf>$wf{w,qf`fmw#zfbqpjm#wkf#tlqogufqz#slsvobqxab`hdqlvmg9wqbgjwjlmbo#plnf#le#wkf#`lmmf`wfg#wlf{soljwbwjlmfnfqdfm`f#le`lmpwjwvwjlmB#Kjpwlqz#lepjdmjej`bmw#nbmveb`wvqfgf{sf`wbwjlmp=?mlp`qjsw=?`bm#af#elvmgaf`bvpf#wkf#kbp#mlw#affmmfjdkalvqjmdtjwklvw#wkf#bggfg#wl#wkf\n?oj#`obpp>!jmpwqvnfmwboPlujfw#Vmjlmb`hmltofgdfgtkj`k#`bm#afmbnf#elq#wkfbwwfmwjlm#wlbwwfnswp#wl#gfufolsnfmwpJm#eb`w/#wkf?oj#`obpp>!bjnsoj`bwjlmppvjwbaof#elqnv`k#le#wkf#`lolmjybwjlmsqfpjgfmwjbo`bm`foAvaaof#Jmelqnbwjlmnlpw#le#wkf#jp#gfp`qjafgqfpw#le#wkf#nlqf#lq#ofppjm#PfswfnafqJmwfoojdfm`fpq`>!kwws9,,s{8#kfjdkw9#bubjobaof#wlnbmveb`wvqfqkvnbm#qjdkwpojmh#kqfe>!,bubjobajojwzsqlslqwjlmbolvwpjgf#wkf#bpwqlmlnj`bokvnbm#afjmdpmbnf#le#wkf#bqf#elvmg#jmbqf#abpfg#lmpnboofq#wkbmb#sfqplm#tklf{sbmpjlm#lebqdvjmd#wkbwmlt#hmltm#bpJm#wkf#fbqozjmwfqnfgjbwfgfqjufg#eqlnP`bmgjmbujbm?,b=?,gju= `lmpjgfq#wkfbm#fpwjnbwfgwkf#Mbwjlmbo?gju#jg>!sbdqfpvowjmd#jm`lnnjppjlmfgbmboldlvp#wlbqf#qfrvjqfg,vo= ?,gju= tbp#abpfg#lmbmg#af`bnf#b%maps8%maps8w!#ubovf>!!#tbp#`bswvqfgml#nlqf#wkbmqfpsf`wjufoz`lmwjmvf#wl#= ?kfbg= ?tfqf#`qfbwfgnlqf#dfmfqbojmelqnbwjlm#vpfg#elq#wkfjmgfsfmgfmw#wkf#Jnsfqjbo`lnslmfmw#lewl#wkf#mlqwkjm`ovgf#wkf#@lmpwqv`wjlmpjgf#le#wkf#tlvog#mlw#afelq#jmpwbm`fjmufmwjlm#lenlqf#`lnsof{`loof`wjufozab`hdqlvmg9#wf{w.bojdm9#jwp#lqjdjmbojmwl#b``lvmwwkjp#sql`fppbm#f{wfmpjufkltfufq/#wkfwkfz#bqf#mlwqfif`wfg#wkf`qjwj`jpn#legvqjmd#tkj`ksqlabaoz#wkfwkjp#bqwj`of+evm`wjlm+*xJw#pklvog#afbm#bdqffnfmwb``jgfmwboozgjeefqp#eqlnBq`kjwf`wvqfafwwfq#hmltmbqqbmdfnfmwpjmeovfm`f#lmbwwfmgfg#wkfjgfmwj`bo#wlplvwk#le#wkfsbpp#wkqlvdk{no!#wjwof>!tfjdkw9alog8`qfbwjmd#wkfgjpsobz9mlmfqfsob`fg#wkf?jnd#pq`>!,jkwwsp9,,ttt-Tlqog#Tbq#JJwfpwjnlmjbopelvmg#jm#wkfqfrvjqfg#wl#bmg#wkbw#wkfafwtffm#wkf#tbp#gfpjdmfg`lmpjpwp#le#`lmpjgfqbaozsvaojpkfg#azwkf#obmdvbdf@lmpfqubwjlm`lmpjpwfg#leqfefq#wl#wkfab`h#wl#wkf#`pp!#nfgjb>!Sflsof#eqln#bubjobaof#lmsqlufg#wl#afpvddfpwjlmp!tbp#hmltm#bpubqjfwjfp#leojhfoz#wl#af`lnsqjpfg#lepvsslqw#wkf#kbmgp#le#wkf`lvsofg#tjwk`lmmf`w#bmg#alqgfq9mlmf8sfqelqnbm`fpafelqf#afjmdobwfq#af`bnf`bo`vobwjlmplewfm#`boofgqfpjgfmwp#lenfbmjmd#wkbw=?oj#`obpp>!fujgfm`f#elqf{sobmbwjlmpfmujqlmnfmwp!=?,b=?,gju=tkj`k#booltpJmwqlgv`wjlmgfufolsfg#azb#tjgf#qbmdflm#afkboe#leubojdm>!wls!sqjm`jsof#lebw#wkf#wjnf/?,mlp`qjsw=pbjg#wl#kbufjm#wkf#ejqpwtkjof#lwkfqpkzslwkfwj`boskjolplskfqpsltfq#le#wkf`lmwbjmfg#jmsfqelqnfg#azjmbajojwz#wltfqf#tqjwwfmpsbm#pwzof>!jmsvw#mbnf>!wkf#rvfpwjlmjmwfmgfg#elqqfif`wjlm#lejnsojfp#wkbwjmufmwfg#wkfwkf#pwbmgbqgtbp#sqlabaozojmh#afwtffmsqlefpplq#lejmwfqb`wjlmp`kbmdjmd#wkfJmgjbm#L`fbm#`obpp>!obpwtlqhjmd#tjwk$kwws9,,ttt-zfbqp#afelqfWkjp#tbp#wkfqf`qfbwjlmbofmwfqjmd#wkfnfbpvqfnfmwpbm#f{wqfnfozubovf#le#wkfpwbqw#le#wkf ?,p`qjsw= bm#feelqw#wljm`qfbpf#wkfwl#wkf#plvwkpsb`jmd>!3!=pveej`jfmwozwkf#Fvqlsfbm`lmufqwfg#wl`ofbqWjnflvwgjg#mlw#kbuf`lmpfrvfmwozelq#wkf#mf{wf{wfmpjlm#lef`lmlnj`#bmgbowklvdk#wkfbqf#sqlgv`fgbmg#tjwk#wkfjmpveej`jfmwdjufm#az#wkfpwbwjmd#wkbwf{sfmgjwvqfp?,psbm=?,b= wklvdkw#wkbwlm#wkf#abpjp`foosbggjmd>jnbdf#le#wkfqfwvqmjmd#wljmelqnbwjlm/pfsbqbwfg#azbppbppjmbwfgp!#`lmwfmw>!bvwklqjwz#lemlqwktfpwfqm?,gju= ?gju#!=?,gju= ##`lmpvowbwjlm`lnnvmjwz#lewkf#mbwjlmbojw#pklvog#afsbqwj`jsbmwp#bojdm>!ofewwkf#dqfbwfpwpfof`wjlm#lepvsfqmbwvqbogfsfmgfmw#lmjp#nfmwjlmfgbooltjmd#wkftbp#jmufmwfgb``lnsbmzjmdkjp#sfqplmbobubjobaof#bwpwvgz#le#wkflm#wkf#lwkfqf{f`vwjlm#leKvnbm#Qjdkwpwfqnp#le#wkfbppl`jbwjlmpqfpfbq`k#bmgpv``ffgfg#azgfefbwfg#wkfbmg#eqln#wkfavw#wkfz#bqf`lnnbmgfq#lepwbwf#le#wkfzfbqp#le#bdfwkf#pwvgz#le?vo#`obpp>!psob`f#jm#wkftkfqf#kf#tbp?oj#`obpp>!ewkfqf#bqf#mltkj`k#af`bnfkf#svaojpkfgf{sqfppfg#jmwl#tkj`k#wkf`lnnjppjlmfqelmw.tfjdkw9wfqqjwlqz#lef{wfmpjlmp!=Qlnbm#Fnsjqffrvbo#wl#wkfJm#`lmwqbpw/kltfufq/#bmgjp#wzsj`boozbmg#kjp#tjef+bopl#`boofg=?vo#`obpp>!feef`wjufoz#fuloufg#jmwlpffn#wl#kbuftkj`k#jp#wkfwkfqf#tbp#mlbm#f{`foofmwboo#le#wkfpfgfp`qjafg#azJm#sqb`wj`f/aqlbg`bpwjmd`kbqdfg#tjwkqfeof`wfg#jmpvaif`wfg#wlnjojwbqz#bmgwl#wkf#sljmwf`lmlnj`boozpfwWbqdfwjmdbqf#b`wvboozuj`wlqz#lufq+*8?,p`qjsw=`lmwjmvlvpozqfrvjqfg#elqfulovwjlmbqzbm#feef`wjufmlqwk#le#wkf/#tkj`k#tbp#eqlmw#le#wkflq#lwkfqtjpfplnf#elqn#lekbg#mlw#affmdfmfqbwfg#azjmelqnbwjlm-sfqnjwwfg#wljm`ovgfp#wkfgfufolsnfmw/fmwfqfg#jmwlwkf#sqfujlvp`lmpjpwfmwozbqf#hmltm#bpwkf#ejfog#lewkjp#wzsf#ledjufm#wl#wkfwkf#wjwof#le`lmwbjmp#wkfjmpwbm`fp#lejm#wkf#mlqwkgvf#wl#wkfjqbqf#gfpjdmfg`lqslqbwjlmptbp#wkbw#wkflmf#le#wkfpfnlqf#slsvobqpv``ffgfg#jmpvsslqw#eqlnjm#gjeefqfmwglnjmbwfg#azgfpjdmfg#elqltmfqpkjs#lebmg#slppjaozpwbmgbqgjyfgqfpslmpfWf{wtbp#jmwfmgfgqf`fjufg#wkfbppvnfg#wkbwbqfbp#le#wkfsqjnbqjoz#jmwkf#abpjp#lejm#wkf#pfmpfb``lvmwp#elqgfpwqlzfg#azbw#ofbpw#wtltbp#gf`obqfg`lvog#mlw#afPf`qfwbqz#lebssfbq#wl#afnbqdjm.wls92,]_p(\x7F_p(\',df*xwkqlt#f~8wkf#pwbqw#lewtl#pfsbqbwfobmdvbdf#bmgtkl#kbg#affmlsfqbwjlm#legfbwk#le#wkfqfbo#mvnafqp\n?ojmh#qfo>!sqlujgfg#wkfwkf#pwlqz#le`lnsfwjwjlmpfmdojpk#+VH*fmdojpk#+VP*<p<R<Q<_<R<W<M=l<S=m<V<T=m=l<S=m<V<T=m=l<S=m<V<R5h4U4]4D5f4E\nAOGx\bTA\nzk\vBl\bQ\x7F\bTA\nzk\vUm\bQ\x7F\bTA\nzk\npeu| i@ cT\bVV\n\\}\nxS VptSk` [X [X\vHR\bPv\bTW\bUe\n\x7Fa\bQp\v_W\vWs\nxS\vAz\n_yKhjmelqnb`j/_mkfqqbnjfmwbpfof`wq/_mj`lgfp`qjs`j/_m`obpjej`bglp`lml`jnjfmwlsvaoj`b`j/_mqfob`jlmbgbpjmelqn/Mwj`bqfob`jlmbglpgfsbqwbnfmwlwqbabibglqfpgjqf`wbnfmwfbzvmwbnjfmwlnfq`bglOjaqf`lmw/M`wfmlpkbajwb`jlmfp`vnsojnjfmwlqfpwbvqbmwfpgjpslpj`j/_m`lmpf`vfm`jbfof`wq/_mj`bbsoj`b`jlmfpgfp`lmf`wbgljmpwbob`j/_mqfbojyb`j/_mvwjojyb`j/_mfm`j`olsfgjbfmefqnfgbgfpjmpwqvnfmwlpf{sfqjfm`jbpjmpwjwv`j/_msbqwj`vobqfppva`bwfdlqjb=n<R<W=`<V<R<L<R=m=m<T<T=l<\\<]<R=n=g<]<R<W=`=d<Y<S=l<R=m=n<R<P<R<Z<Y=n<Y<X=l=o<_<T=i=m<W=o=k<\\<Y=m<Y<U=k<\\=m<^=m<Y<_<X<\\<L<R=m=m<T=c<p<R=m<V<^<Y<X=l=o<_<T<Y<_<R=l<R<X<\\<^<R<S=l<R=m<X<\\<Q<Q=g=i<X<R<W<Z<Q=g<T<P<Y<Q<Q<R<p<R=m<V<^=g=l=o<]<W<Y<U<p<R=m<V<^<\\=m=n=l<\\<Q=g<Q<T=k<Y<_<R=l<\\<]<R=n<Y<X<R<W<Z<Y<Q=o=m<W=o<_<T=n<Y<S<Y=l=`<r<X<Q<\\<V<R<S<R=n<R<P=o=l<\\<]<R=n=o<\\<S=l<Y<W=c<^<R<R<]=e<Y<R<X<Q<R<_<R=m<^<R<Y<_<R=m=n<\\=n=`<T<X=l=o<_<R<U=h<R=l=o<P<Y=i<R=l<R=d<R<S=l<R=n<T<^=m=m=g<W<V<\\<V<\\<Z<X=g<U<^<W<\\=m=n<T<_=l=o<S<S=g<^<P<Y=m=n<Y=l<\\<]<R=n<\\=m<V<\\<[<\\<W<S<Y=l<^=g<U<X<Y<W<\\=n=`<X<Y<Q=`<_<T<S<Y=l<T<R<X<]<T<[<Q<Y=m<R=m<Q<R<^<Y<P<R<P<Y<Q=n<V=o<S<T=n=`<X<R<W<Z<Q<\\=l<\\<P<V<\\=i<Q<\\=k<\\<W<R<L<\\<]<R=n<\\<N<R<W=`<V<R=m<R<^=m<Y<P<^=n<R=l<R<U<Q<\\=k<\\<W<\\=m<S<T=m<R<V=m<W=o<Z<]=g=m<T=m=n<Y<P<S<Y=k<\\=n<T<Q<R<^<R<_<R<S<R<P<R=e<T=m<\\<U=n<R<^<S<R=k<Y<P=o<S<R<P<R=e=`<X<R<W<Z<Q<R=m=m=g<W<V<T<]=g=m=n=l<R<X<\\<Q<Q=g<Y<P<Q<R<_<T<Y<S=l<R<Y<V=n<M<Y<U=k<\\=m<P<R<X<Y<W<T=n<\\<V<R<_<R<R<Q<W<\\<U<Q<_<R=l<R<X<Y<^<Y=l=m<T=c=m=n=l<\\<Q<Y=h<T<W=`<P=g=o=l<R<^<Q=c=l<\\<[<Q=g=i<T=m<V<\\=n=`<Q<Y<X<Y<W=b=c<Q<^<\\=l=c<P<Y<Q=`=d<Y<P<Q<R<_<T=i<X<\\<Q<Q<R<U<[<Q<\\=k<T=n<Q<Y<W=`<[=c=h<R=l=o<P<\\<N<Y<S<Y=l=`<P<Y=m=c=j<\\<[<\\=e<T=n=g<w=o=k=d<T<Y\fHD\fHU\fIl\fHn\fHy\fH\\\fHD\fIk\fHi\fHF\fHD\fIk\fHy\fHS\fHC\fHR\fHy\fH\\\fIk\fHn\fHi\fHD\fIa\fHC\fHy\fIa\fHC\fHR\fH{\fHR\fHk\fHM\fH@\fHR\fH\\\fIk\fHy\fHS\fHT\fIl\fHJ\fHS\fHC\fHR\fHF\fHU\fH^\fIk\fHT\fHS\fHn\fHU\fHA\fHR\fH\\\fHH\fHi\fHF\fHD\fIl\fHY\fHR\fH^\fIk\fHT\fIk\fHY\fHR\fHy\fH\\\fHH\fIk\fHB\fIk\fH\\\fIk\fHU\fIg\fHD\fIk\fHT\fHy\fHH\fIk\fH@\fHU\fIm\fHH\fHT\fHR\fHk\fHs\fHU\fIg\fH{\fHR\fHp\fHR\fHD\fIk\fHB\fHS\fHD\fHs\fHy\fH\\\fHH\fHR\fHy\fH\\\fHD\fHR\fHe\fHD\fHy\fIk\fHC\fHU\fHR\fHm\fHT\fH@\fHT\fIk\fHA\fHR\fH[\fHR\fHj\fHF\fHy\fIk\fH^\fHS\fHC\fIk\fHZ\fIm\fH\\\fIn\fHk\fHT\fHy\fIk\fHt\fHn\fHs\fIk\fHB\fIk\fH\\\fIl\fHT\fHy\fHH\fHR\fHB\fIk\fH\\\fHR\fH^\fIk\fHy\fH\\\fHi\fHK\fHS\fHy\fHi\fHF\fHD\fHR\fHT\fHB\fHR\fHp\fHB\fIm\fHq\fIk\fHy\fHR\fH\\\fHO\fHU\fIg\fHH\fHR\fHy\fHM\fHP\fIl\fHC\fHU\fHR\fHn\fHU\fIg\fHs\fH^\fHZ\fH@\fIa\fHJ\fH^\fHS\fHC\fHR\fHp\fIl\fHY\fHD\fHp\fHR\fHH\fHR\fHy\fId\fHT\fIk\fHj\fHF\fHy\fHR\fHY\fHR\fH^\fIl\fHJ\fIk\fHD\fIk\fHF\fIn\fH\\\fIl\fHF\fHR\fHD\fIl\fHe\fHT\fHy\fIk\fHU\fIg\fH{\fIl\fH@\fId\fHL\fHy\fHj\fHF\fHy\fIl\fHY\fH\\\fIa\fH[\fH{\fHR\fHn\fHY\fHj\fHF\fHy\fIg\fHp\fHS\fH^\fHR\fHp\fHR\fHD\fHR\fHT\fHU\fHB\fHH\fHU\fHB\fIk\fHn\fHe\fHD\fHy\fIl\fHC\fHR\fHU\fIn\fHJ\fH\\\fIa\fHp\fHT\fIn\fHv\fIl\fHF\fHT\fHn\fHJ\fHT\fHY\fHR\fH^\fHU\fIg\fHD\fHR\fHU\fIg\fHH\fIl\fHp\fId\fHT\fIk\fHY\fHR\fHF\fHT\fHp\fHD\fHH\fHR\fHD\fIk\fHH\fHR\fHp\fHR\fH\\\fIl\fHt\fHR\fHC\fH^\fHp\fHS\fH^\fIk\fHD\fIl\fHv\fIk\fHp\fHR\fHn\fHv\fHF\fHH\fIa\fH\\\fH{\fIn\fH{\fH^\fHp\fHR\fHH\fIk\fH@\fHR\fHU\fH\\\fHj\fHF\fHD\fIk\fHY\fHR\fHU\fHD\fHk\fHT\fHy\fHR\fHT\fIm\fH@\fHU\fH\\\fHU\fHD\fIk\fHk\fHT\fHT\fIk\fHT\fHU\fHS\fHH\fH@\fHM\fHP\fIk\fHt\fHs\fHD\fHR\fHH\fH^\fHR\fHZ\fHF\fHR\fHn\fHv\fHZ\fIa\fH\\\fIl\fH@\fHM\fHP\fIl\fHU\fIg\fHH\fIk\fHT\fHR\fHd\fHs\fHZ\fHR\fHC\fHJ\fHT\fHy\fHH\fIl\fHp\fHR\fHH\fIl\fHY\fHR\fH^\fHR\fHU\fHp\fHR\fH\\\fHF\fHs\fHD\fHR\fH\\\fHz\fHD\fIk\fHT\fHM\fHP\fHy\fHB\fHS\fH^\fHR\fHe\fHT\fHy\fIl\fHy\fIk\fHY\fH^\fH^\fH{\fHH\fHR\fHz\fHR\fHD\fHR\fHi\fH\\\fIa\fHI\fHp\fHU\fHR\fHn\fHJ\fIk\fHz\fHR\fHF\fHU\fH^\fIl\fHD\fHS\fHC\fHB\fH@\fHS\fHD\fHR\fH@\fId\fHn\fHy\fHy\fHU\fIl\fHn\fHy\fHU\fHD\fHR\fHJ\fIk\fHH\fHR\fHU\fHB\fH^\fIk\fHy\fHR\fHG\fIl\fHp\fH@\fHy\fHS\fHH\fIm\fH\\\fHH\fHB\fHR\fHn\fH{\fHY\fHU\fIl\fHn\fH\\\fIg\fHp\fHP\fHB\fHS\fH^\fIl\fHj\fH\\\fIg\fHF\fHT\fIk\fHD\fHR\fHC\fHR\fHJ\fHY\fH^\fIk\fHD\fIk\fHz\fHR\fHH\fHR\fHy\fH\\\fIl\fH@\fHe\fHD\fHy\fHR\fHp\fHY\fHR\fH@\fHF\fIn\fH\\\fHR\fH@\fHM\fHP\fHR\fHT\fI`\fHJ\fHR\fHZ\fIk\fHC\fH\\\fHy\fHS\fHC\fIk\fHy\fHU\fHR\fHn\fHi\fHy\fHT\fH\\\fH@\fHD\fHR\fHc\fHY\fHU\fHR\fHn\fHT\fIa\fHI\fH^\fHB\fHS\fH^\fIk\fH^\fIk\fHz\fHy\fHY\fHS\fH[\fHC\fHy\fIa\fH\\\fHn\fHT\fHB\fIn\fHU\fHI\fHR\fHD\fHR4F4_4F4[5f4U5i4X4K4]5o4E4D5d4K4_4[4E4K5h4Y5m4A4E5i5d4K4Z5f4U4K5h4B4K4Y4E4K5h5i4^5f4C4K5h4U4K5i4E4K5h5o4K4F4D4K5h4]4C5d4C4D4]5j4K5i4@4K5h4C5d5h4E4K5h4U4K5h5i4K5h5i5d5n4U4K5h4U4]4D5f4K5h4_4]5f4U4K5h4@5d4K5h4K5h4\\5k4K4D4K5h4A5f4K4E4K5h4A5n5d5n4K5h5o4]5f5i4K5h4U4]4K5n5i4A5m5d4T4E4K5h4G4K5j5f5i4X4K5k4C4E4K5h5i4]4O4E4K5h5n4]4N5j4K5h4X4D4K4D4K5h4A5d4K4]4K5h4@4C5f4C4K5h4O4_4]4E4K5h4U5h5d5i5i4@5i5d4U4E4K5h4]4A5i5j4K5h5j5n4K4[5m5h4_4[5f5j4K5h5o5d5f4F4K5h4C5j5f4K4D4]5o4K4F5k4K5h4]5f4K4Z4F4A5f4K4F5f4D4F5d5n5f4F4K5h4O5d5h5e4K5h4D4]5f4C4K5h5o5h4K5i4K5h4]4K4D4[4K5h4X4B4Y5f4_5f4K4]4K4F4K5h4G4K5h4G4K5h4Y5h4K4E4K5h4A4C5f4G4K5h4^5d4K4]4K5h4B5h5f4@4K5h4@5i5f4U4K5h4U4K5i5k4K5h4@5i4K5h4K5h4_4K4U4E5i4X4K5k4C5k4K5h4]4J5f4_4K5h4C4B5d5h4K5h5m5j5f4E4K5h5o4F4K4D4K5h4C5d4]5f4K5h4C4]5d4_4K4_4F4V4]5n4F4Y4K5i5f5i4K5h4D5j4K4F4K5h4U4T5f5ifmwfqwbjmnfmwvmgfqpwbmgjmd#>#evm`wjlm+*-isd!#tjgwk>!`lmejdvqbwjlm-smd!#tjgwk>!?algz#`obpp>!Nbwk-qbmgln+*`lmwfnslqbqz#Vmjwfg#Pwbwfp`jq`vnpwbm`fp-bssfmg@kjog+lqdbmjybwjlmp?psbm#`obpp>!!=?jnd#pq`>!,gjpwjmdvjpkfgwklvpbmgp#le#`lnnvmj`bwjlm`ofbq!=?,gju=jmufpwjdbwjlmebuj`lm-j`l!#nbqdjm.qjdkw9abpfg#lm#wkf#Nbppb`kvpfwwpwbaof#alqgfq>jmwfqmbwjlmbobopl#hmltm#bpsqlmvm`jbwjlmab`hdqlvmg9 esbggjmd.ofew9Elq#f{bnsof/#njp`foobmflvp%ow8,nbwk%dw8spz`kloldj`bojm#sbqwj`vobqfbq`k!#wzsf>!elqn#nfwklg>!bp#lsslpfg#wlPvsqfnf#@lvqwl``bpjlmbooz#Bggjwjlmbooz/Mlqwk#Bnfqj`bs{8ab`hdqlvmglsslqwvmjwjfpFmwfqwbjmnfmw-wlOltfq@bpf+nbmveb`wvqjmdsqlefppjlmbo#`lnajmfg#tjwkElq#jmpwbm`f/`lmpjpwjmd#le!#nb{ofmdwk>!qfwvqm#ebopf8`lmp`jlvpmfppNfgjwfqqbmfbmf{wqblqgjmbqzbppbppjmbwjlmpvapfrvfmwoz#avwwlm#wzsf>!wkf#mvnafq#lewkf#lqjdjmbo#`lnsqfkfmpjufqfefqp#wl#wkf?,vo= ?,gju= skjolplskj`bool`bwjlm-kqfetbp#svaojpkfgPbm#Eqbm`jp`l+evm`wjlm+*x ?gju#jg>!nbjmplskjpwj`bwfgnbwkfnbwj`bo#,kfbg= ?algzpvddfpwp#wkbwgl`vnfmwbwjlm`lm`fmwqbwjlmqfobwjlmpkjspnbz#kbuf#affm+elq#f{bnsof/Wkjp#bqwj`of#jm#plnf#`bpfpsbqwp#le#wkf#gfejmjwjlm#leDqfbw#Aqjwbjm#`foosbggjmd>frvjubofmw#wlsob`fklogfq>!8#elmw.pjyf9#ivpwjej`bwjlmafojfufg#wkbwpveefqfg#eqlnbwwfnswfg#wl#ofbgfq#le#wkf`qjsw!#pq`>!,+evm`wjlm+*#xbqf#bubjobaof \n?ojmh#qfo>!#pq`>$kwws9,,jmwfqfpwfg#jm`lmufmwjlmbo#!#bow>!!#,=?,bqf#dfmfqboozkbp#bopl#affmnlpw#slsvobq#`lqqfpslmgjmd`qfgjwfg#tjwkwzof>!alqgfq9?,b=?,psbm=?,-dje!#tjgwk>!?jeqbnf#pq`>!wbaof#`obpp>!jmojmf.aol`h8b``lqgjmd#wl#wldfwkfq#tjwkbssql{jnbwfozsbqojbnfmwbqznlqf#bmg#nlqfgjpsobz9mlmf8wqbgjwjlmboozsqfglnjmbmwoz%maps8\x7F%maps8%maps8?,psbm=#`foopsb`jmd>?jmsvw#mbnf>!lq!#`lmwfmw>!`lmwqlufqpjbosqlsfqwz>!ld9,{.pkl`htbuf.gfnlmpwqbwjlmpvqqlvmgfg#azMfufqwkfofpp/tbp#wkf#ejqpw`lmpjgfqbaof#Bowklvdk#wkf#`loobalqbwjlmpklvog#mlw#afsqlslqwjlm#le?psbm#pwzof>!hmltm#bp#wkf#pklqwoz#bewfqelq#jmpwbm`f/gfp`qjafg#bp#,kfbg= ?algz#pwbqwjmd#tjwkjm`qfbpjmdoz#wkf#eb`w#wkbwgjp`vppjlm#lenjggof#le#wkfbm#jmgjujgvbogjeej`vow#wl#sljmw#le#ujftklnlpf{vbojwzb``fswbm`f#le?,psbm=?,gju=nbmveb`wvqfqplqjdjm#le#wkf`lnnlmoz#vpfgjnslqwbm`f#legfmlnjmbwjlmpab`hdqlvmg9# ofmdwk#le#wkfgfwfqnjmbwjlmb#pjdmjej`bmw!#alqgfq>!3!=qfulovwjlmbqzsqjm`jsofp#lejp#`lmpjgfqfgtbp#gfufolsfgJmgl.Fvqlsfbmuvomfqbaof#wlsqlslmfmwp#lebqf#plnfwjnfp`olpfq#wl#wkfMft#Zlqh#@jwz#mbnf>!pfbq`kbwwqjavwfg#wl`lvqpf#le#wkfnbwkfnbwj`jbmaz#wkf#fmg#lebw#wkf#fmg#le!#alqgfq>!3!#wf`kmloldj`bo-qfnluf@obpp+aqbm`k#le#wkffujgfm`f#wkbw"Xfmgje^..= Jmpwjwvwf#le#jmwl#b#pjmdofqfpsf`wjufoz-bmg#wkfqfelqfsqlsfqwjfp#lejp#ol`bwfg#jmplnf#le#tkj`kWkfqf#jp#bopl`lmwjmvfg#wl#bssfbqbm`f#le#%bns8mgbpk8#gfp`qjafp#wkf`lmpjgfqbwjlmbvwklq#le#wkfjmgfsfmgfmwozfrvjssfg#tjwkglfp#mlw#kbuf?,b=?b#kqfe>!`lmevpfg#tjwk?ojmh#kqfe>!,bw#wkf#bdf#lebssfbq#jm#wkfWkfpf#jm`ovgfqfdbqgofpp#le`lvog#af#vpfg#pwzof>%rvlw8pfufqbo#wjnfpqfsqfpfmw#wkfalgz= ?,kwno=wklvdkw#wl#afslsvobwjlm#leslppjajojwjfpsfq`fmwbdf#leb``fpp#wl#wkfbm#bwwfnsw#wlsqlgv`wjlm#leirvfqz,irvfqzwtl#gjeefqfmwafolmd#wl#wkffpwbaojpknfmwqfsob`jmd#wkfgfp`qjswjlm!#gfwfqnjmf#wkfbubjobaof#elqB``lqgjmd#wl#tjgf#qbmdf#le\n?gju#`obpp>!nlqf#`lnnlmozlqdbmjpbwjlmpevm`wjlmbojwztbp#`lnsofwfg#%bns8ngbpk8#sbqwj`jsbwjlmwkf#`kbqb`wfqbm#bggjwjlmbobssfbqp#wl#afeb`w#wkbw#wkfbm#f{bnsof#lepjdmjej`bmwozlmnlvpflufq>!af`bvpf#wkfz#bpzm`#>#wqvf8sqlaofnp#tjwkpffnp#wl#kbufwkf#qfpvow#le#pq`>!kwws9,,ebnjojbq#tjwkslppfppjlm#leevm`wjlm#+*#xwllh#sob`f#jmbmg#plnfwjnfppvapwbmwjbooz?psbm=?,psbm=jp#lewfm#vpfgjm#bm#bwwfnswdqfbw#gfbo#leFmujqlmnfmwbopv``fppevooz#ujqwvbooz#boo13wk#`fmwvqz/sqlefppjlmbopmf`fppbqz#wl#gfwfqnjmfg#az`lnsbwjajojwzaf`bvpf#jw#jpGj`wjlmbqz#lenlgjej`bwjlmpWkf#elooltjmdnbz#qfefq#wl9@lmpfrvfmwoz/Jmwfqmbwjlmbobowklvdk#plnfwkbw#tlvog#aftlqog$p#ejqpw`obppjejfg#bpalwwln#le#wkf+sbqwj`vobqozbojdm>!ofew!#nlpw#`lnnlmozabpjp#elq#wkfelvmgbwjlm#le`lmwqjavwjlmpslsvobqjwz#le`fmwfq#le#wkfwl#qfgv`f#wkfivqjpgj`wjlmpbssql{jnbwjlm#lmnlvpflvw>!Mft#Wfpwbnfmw`loof`wjlm#le?,psbm=?,b=?,jm#wkf#Vmjwfgejon#gjqf`wlq.pwqj`w-gwg!=kbp#affm#vpfgqfwvqm#wl#wkfbowklvdk#wkjp`kbmdf#jm#wkfpfufqbo#lwkfqavw#wkfqf#bqfvmsqf`fgfmwfgjp#pjnjobq#wlfpsf`jbooz#jmtfjdkw9#alog8jp#`boofg#wkf`lnsvwbwjlmbojmgj`bwf#wkbwqfpwqj`wfg#wl\n?nfwb#mbnf>!bqf#wzsj`booz`lmeoj`w#tjwkKltfufq/#wkf#Bm#f{bnsof#le`lnsbqfg#tjwkrvbmwjwjfp#leqbwkfq#wkbm#b`lmpwfoobwjlmmf`fppbqz#elqqfslqwfg#wkbwpsf`jej`bwjlmslojwj`bo#bmg%maps8%maps8?qfefqfm`fp#wlwkf#pbnf#zfbqDlufqmnfmw#ledfmfqbwjlm#lekbuf#mlw#affmpfufqbo#zfbqp`lnnjwnfmw#wl\n\n?vo#`obpp>!ujpvbojybwjlm2:wk#`fmwvqz/sqb`wjwjlmfqpwkbw#kf#tlvogbmg#`lmwjmvfgl``vsbwjlm#lejp#gfejmfg#bp`fmwqf#le#wkfwkf#bnlvmw#le=?gju#pwzof>!frvjubofmw#legjeefqfmwjbwfaqlvdkw#balvwnbqdjm.ofew9#bvwlnbwj`boozwklvdkw#le#bpPlnf#le#wkfpf ?gju#`obpp>!jmsvw#`obpp>!qfsob`fg#tjwkjp#lmf#le#wkffgv`bwjlm#bmgjmeovfm`fg#azqfsvwbwjlm#bp ?nfwb#mbnf>!b``lnnlgbwjlm?,gju= ?,gju=obqdf#sbqw#leJmpwjwvwf#elqwkf#pl.`boofg#bdbjmpw#wkf#Jm#wkjp#`bpf/tbp#bssljmwfg`objnfg#wl#afKltfufq/#wkjpGfsbqwnfmw#lewkf#qfnbjmjmdfeef`w#lm#wkfsbqwj`vobqoz#gfbo#tjwk#wkf ?gju#pwzof>!bonlpw#botbzpbqf#`vqqfmwozf{sqfppjlm#leskjolplskz#leelq#nlqf#wkbm`jujojybwjlmplm#wkf#jpobmgpfof`wfgJmgf{`bm#qfpvow#jm!#ubovf>!!#,=wkf#pwqv`wvqf#,=?,b=?,gju=Nbmz#le#wkfpf`bvpfg#az#wkfle#wkf#Vmjwfgpsbm#`obpp>!n`bm#af#wqb`fgjp#qfobwfg#wlaf`bnf#lmf#lejp#eqfrvfmwozojujmd#jm#wkfwkflqfwj`boozElooltjmd#wkfQfulovwjlmbqzdlufqmnfmw#jmjp#gfwfqnjmfgwkf#slojwj`bojmwqlgv`fg#jmpveej`jfmw#wlgfp`qjswjlm!=pklqw#pwlqjfppfsbqbwjlm#lebp#wl#tkfwkfqhmltm#elq#jwptbp#jmjwjboozgjpsobz9aol`hjp#bm#f{bnsofwkf#sqjm`jsbo`lmpjpwp#le#bqf`ldmjyfg#bp,algz=?,kwno=b#pvapwbmwjboqf`lmpwqv`wfgkfbg#le#pwbwfqfpjpwbm`f#wlvmgfqdqbgvbwfWkfqf#bqf#wtldqbujwbwjlmbobqf#gfp`qjafgjmwfmwjlmboozpfqufg#bp#wkf`obpp>!kfbgfqlsslpjwjlm#wlevmgbnfmwboozglnjmbwfg#wkfbmg#wkf#lwkfqboojbm`f#tjwktbp#elq`fg#wlqfpsf`wjufoz/bmg#slojwj`bojm#pvsslqw#lesflsof#jm#wkf13wk#`fmwvqz-bmg#svaojpkfgolbg@kbqwafbwwl#vmgfqpwbmgnfnafq#pwbwfpfmujqlmnfmwboejqpw#kboe#le`lvmwqjfp#bmgbq`kjwf`wvqboaf#`lmpjgfqfg`kbqb`wfqjyfg`ofbqJmwfqubobvwklqjwbwjufEfgfqbwjlm#letbp#pv``ffgfgbmg#wkfqf#bqfb#`lmpfrvfm`fwkf#Sqfpjgfmwbopl#jm`ovgfgeqff#plewtbqfpv``fppjlm#legfufolsfg#wkftbp#gfpwqlzfgbtbz#eqln#wkf8 ?,p`qjsw= ?bowklvdk#wkfzelooltfg#az#bnlqf#sltfqevoqfpvowfg#jm#bVmjufqpjwz#leKltfufq/#nbmzwkf#sqfpjgfmwKltfufq/#plnfjp#wklvdkw#wlvmwjo#wkf#fmgtbp#bmmlvm`fgbqf#jnslqwbmwbopl#jm`ovgfp=?jmsvw#wzsf>wkf#`fmwfq#le#GL#MLW#BOWFQvpfg#wl#qfefqwkfnfp,<plqw>wkbw#kbg#affmwkf#abpjp#elqkbp#gfufolsfgjm#wkf#pvnnfq`lnsbqbwjufozgfp`qjafg#wkfpv`k#bp#wklpfwkf#qfpvowjmdjp#jnslppjaofubqjlvp#lwkfqPlvwk#Beqj`bmkbuf#wkf#pbnffeef`wjufmfppjm#tkj`k#`bpf8#wf{w.bojdm9pwqv`wvqf#bmg8#ab`hdqlvmg9qfdbqgjmd#wkfpvsslqwfg#wkfjp#bopl#hmltmpwzof>!nbqdjmjm`ovgjmd#wkfabkbpb#Nfobzvmlqph#alhn/Iomlqph#mzmlqphpolufm)M(ajmbjmwfqmb`jlmbo`bojej`b`j/_m`lnvmj`b`j/_m`lmpwqv``j/_m!=?gju#`obpp>!gjpbnajdvbwjlmGlnbjmMbnf$/#$bgnjmjpwqbwjlmpjnvowbmflvpozwqbmpslqwbwjlmJmwfqmbwjlmbo#nbqdjm.alwwln9qfpslmpjajojwz?"Xfmgje^..= ?,=?nfwb#mbnf>!jnsofnfmwbwjlmjmeqbpwqv`wvqfqfsqfpfmwbwjlmalqgfq.alwwln9?,kfbg= ?algz=>kwws&0B&1E&1E?elqn#nfwklg>!nfwklg>!slpw!#,ebuj`lm-j`l!#~*8 ?,p`qjsw= -pfwBwwqjavwf+Bgnjmjpwqbwjlm>#mft#Bqqbz+*8?"Xfmgje^..= gjpsobz9aol`h8Vmelqwvmbwfoz/!=%maps8?,gju=,ebuj`lm-j`l!=>$pwzofpkffw$#jgfmwjej`bwjlm/#elq#f{bnsof/?oj=?b#kqfe>!,bm#bowfqmbwjufbp#b#qfpvow#lesw!=?,p`qjsw= wzsf>!pvanjw!# +evm`wjlm+*#xqf`lnnfmgbwjlmelqn#b`wjlm>!,wqbmpelqnbwjlmqf`lmpwqv`wjlm-pwzof-gjpsobz#B``lqgjmd#wl#kjggfm!#mbnf>!bolmd#tjwk#wkfgl`vnfmw-algz-bssql{jnbwfoz#@lnnvmj`bwjlmpslpw!#b`wjlm>!nfbmjmd#%rvlw8..?"Xfmgje^..=Sqjnf#Njmjpwfq`kbqb`wfqjpwj`?,b=#?b#`obpp>wkf#kjpwlqz#le#lmnlvpflufq>!wkf#dlufqmnfmwkqfe>!kwwsp9,,tbp#lqjdjmbooztbp#jmwqlgv`fg`obppjej`bwjlmqfsqfpfmwbwjufbqf#`lmpjgfqfg?"Xfmgje^..= gfsfmgp#lm#wkfVmjufqpjwz#le#jm#`lmwqbpw#wl#sob`fklogfq>!jm#wkf#`bpf#lejmwfqmbwjlmbo#`lmpwjwvwjlmbopwzof>!alqgfq.9#evm`wjlm+*#xAf`bvpf#le#wkf.pwqj`w-gwg!= ?wbaof#`obpp>!b``lnsbmjfg#azb``lvmw#le#wkf?p`qjsw#pq`>!,mbwvqf#le#wkf#wkf#sflsof#jm#jm#bggjwjlm#wlp*8#ip-jg#>#jg!#tjgwk>!233&!qfdbqgjmd#wkf#Qlnbm#@bwkloj`bm#jmgfsfmgfmwelooltjmd#wkf#-dje!#tjgwk>!2wkf#elooltjmd#gjp`qjnjmbwjlmbq`kbfloldj`bosqjnf#njmjpwfq-ip!=?,p`qjsw=`lnajmbwjlm#le#nbqdjmtjgwk>!`qfbwfFofnfmw+t-bwwb`kFufmw+?,b=?,wg=?,wq=pq`>!kwwsp9,,bJm#sbqwj`vobq/#bojdm>!ofew!#@yf`k#Qfsvaoj`Vmjwfg#Hjmdgln`lqqfpslmgfm`f`lm`ovgfg#wkbw-kwno!#wjwof>!+evm`wjlm#+*#x`lnfp#eqln#wkfbssoj`bwjlm#le?psbm#`obpp>!pafojfufg#wl#affnfmw+$p`qjsw$?,b= ?,oj= ?ojufqz#gjeefqfmw=?psbm#`obpp>!lswjlm#ubovf>!+bopl#hmltm#bp\n?oj=?b#kqfe>!=?jmsvw#mbnf>!pfsbqbwfg#eqlnqfefqqfg#wl#bp#ubojdm>!wls!=elvmgfq#le#wkfbwwfnswjmd#wl#`bqalm#gjl{jgf ?gju#`obpp>!`obpp>!pfbq`k.,algz= ?,kwno=lsslqwvmjwz#wl`lnnvmj`bwjlmp?,kfbg= ?algz#pwzof>!tjgwk9Wj\rVSmd#Uj\rWkw`kbmdfp#jm#wkfalqgfq.`lolq9 3!#alqgfq>!3!#?,psbm=?,gju=?tbp#gjp`lufqfg!#wzsf>!wf{w!#*8 ?,p`qjsw= Gfsbqwnfmw#le#f``ofpjbpwj`bowkfqf#kbp#affmqfpvowjmd#eqln?,algz=?,kwno=kbp#mfufq#affmwkf#ejqpw#wjnfjm#qfpslmpf#wlbvwlnbwj`booz#?,gju= ?gju#jtbp#`lmpjgfqfgsfq`fmw#le#wkf!#,=?,b=?,gju=`loof`wjlm#le#gfp`fmgfg#eqlnpf`wjlm#le#wkfb``fsw.`kbqpfwwl#af#`lmevpfgnfnafq#le#wkf#sbggjmd.qjdkw9wqbmpobwjlm#lejmwfqsqfwbwjlm#kqfe>$kwws9,,tkfwkfq#lq#mlwWkfqf#bqf#boplwkfqf#bqf#nbmzb#pnboo#mvnafqlwkfq#sbqwp#lejnslppjaof#wl##`obpp>!avwwlmol`bwfg#jm#wkf-#Kltfufq/#wkfbmg#fufmwvboozBw#wkf#fmg#le#af`bvpf#le#jwpqfsqfpfmwp#wkf?elqn#b`wjlm>!#nfwklg>!slpw!jw#jp#slppjaofnlqf#ojhfoz#wlbm#jm`qfbpf#jmkbuf#bopl#affm`lqqfpslmgp#wlbmmlvm`fg#wkbwbojdm>!qjdkw!=nbmz#`lvmwqjfpelq#nbmz#zfbqpfbqojfpw#hmltmaf`bvpf#jw#tbpsw!=?,p`qjsw=#ubojdm>!wls!#jmkbajwbmwp#leelooltjmd#zfbq ?gju#`obpp>!njoojlm#sflsof`lmwqlufqpjbo#`lm`fqmjmd#wkfbqdvf#wkbw#wkfdlufqmnfmw#bmgb#qfefqfm`f#wlwqbmpefqqfg#wlgfp`qjajmd#wkf#pwzof>!`lolq9bowklvdk#wkfqfafpw#hmltm#elqpvanjw!#mbnf>!nvowjsoj`bwjlmnlqf#wkbm#lmf#qf`ldmjwjlm#le@lvm`jo#le#wkffgjwjlm#le#wkf##?nfwb#mbnf>!Fmwfqwbjmnfmw#btbz#eqln#wkf#8nbqdjm.qjdkw9bw#wkf#wjnf#lejmufpwjdbwjlmp`lmmf`wfg#tjwkbmg#nbmz#lwkfqbowklvdk#jw#jpafdjmmjmd#tjwk#?psbm#`obpp>!gfp`fmgbmwp#le?psbm#`obpp>!j#bojdm>!qjdkw!?,kfbg= ?algz#bpsf`wp#le#wkfkbp#pjm`f#affmFvqlsfbm#Vmjlmqfnjmjp`fmw#lenlqf#gjeej`vowUj`f#Sqfpjgfmw`lnslpjwjlm#lesbppfg#wkqlvdknlqf#jnslqwbmwelmw.pjyf922s{f{sobmbwjlm#lewkf#`lm`fsw#letqjwwfm#jm#wkf\n?psbm#`obpp>!jp#lmf#le#wkf#qfpfnaobm`f#wllm#wkf#dqlvmgptkj`k#`lmwbjmpjm`ovgjmd#wkf#gfejmfg#az#wkfsvaoj`bwjlm#lenfbmp#wkbw#wkflvwpjgf#le#wkfpvsslqw#le#wkf?jmsvw#`obpp>!?psbm#`obpp>!w+Nbwk-qbmgln+*nlpw#sqlnjmfmwgfp`qjswjlm#le@lmpwbmwjmlsoftfqf#svaojpkfg?gju#`obpp>!pfbssfbqp#jm#wkf2!#kfjdkw>!2!#nlpw#jnslqwbmwtkj`k#jm`ovgfptkj`k#kbg#affmgfpwqv`wjlm#lewkf#slsvobwjlm \n?gju#`obpp>!slppjajojwz#leplnfwjnfp#vpfgbssfbq#wl#kbufpv``fpp#le#wkfjmwfmgfg#wl#afsqfpfmw#jm#wkfpwzof>!`ofbq9a ?,p`qjsw= ?tbp#elvmgfg#jmjmwfqujft#tjwk\\jg!#`lmwfmw>!`bsjwbo#le#wkf ?ojmh#qfo>!pqfofbpf#le#wkfsljmw#lvw#wkbw{NOKwwsQfrvfpwbmg#pvapfrvfmwpf`lmg#obqdfpwufqz#jnslqwbmwpsf`jej`bwjlmppvqeb`f#le#wkfbssojfg#wl#wkfelqfjdm#sloj`z\\pfwGlnbjmMbnffpwbaojpkfg#jmjp#afojfufg#wlJm#bggjwjlm#wlnfbmjmd#le#wkfjp#mbnfg#bewfqwl#sqlwf`w#wkfjp#qfsqfpfmwfgGf`obqbwjlm#lenlqf#feej`jfmw@obppjej`bwjlmlwkfq#elqnp#lekf#qfwvqmfg#wl?psbm#`obpp>!`sfqelqnbm`f#le+evm`wjlm+*#xje#bmg#lmoz#jeqfdjlmp#le#wkfofbgjmd#wl#wkfqfobwjlmp#tjwkVmjwfg#Mbwjlmppwzof>!kfjdkw9lwkfq#wkbm#wkfzsf!#`lmwfmw>!Bppl`jbwjlm#le ?,kfbg= ?algzol`bwfg#lm#wkfjp#qfefqqfg#wl+jm`ovgjmd#wkf`lm`fmwqbwjlmpwkf#jmgjujgvbobnlmd#wkf#nlpwwkbm#bmz#lwkfq,= ?ojmh#qfo>!#qfwvqm#ebopf8wkf#svqslpf#lewkf#bajojwz#wl8`lolq9 eee~ - ?psbm#`obpp>!wkf#pvaif`w#legfejmjwjlmp#le= ?ojmh#qfo>!`objn#wkbw#wkfkbuf#gfufolsfg?wbaof#tjgwk>!`fofaqbwjlm#leElooltjmd#wkf#wl#gjpwjmdvjpk?psbm#`obpp>!awbhfp#sob`f#jmvmgfq#wkf#mbnfmlwfg#wkbw#wkf=?"Xfmgje^..= pwzof>!nbqdjm.jmpwfbg#le#wkfjmwqlgv`fg#wkfwkf#sql`fpp#lejm`qfbpjmd#wkfgjeefqfm`fp#jmfpwjnbwfg#wkbwfpsf`jbooz#wkf,gju=?gju#jg>!tbp#fufmwvboozwkqlvdklvw#kjpwkf#gjeefqfm`fplnfwkjmd#wkbwpsbm=?,psbm=?,pjdmjej`bmwoz#=?,p`qjsw= fmujqlmnfmwbo#wl#sqfufmw#wkfkbuf#affm#vpfgfpsf`jbooz#elqvmgfqpwbmg#wkfjp#fppfmwjbooztfqf#wkf#ejqpwjp#wkf#obqdfpwkbuf#affm#nbgf!#pq`>!kwws9,,jmwfqsqfwfg#bppf`lmg#kboe#le`qloojmd>!ml!#jp#`lnslpfg#leJJ/#Kloz#Qlnbmjp#f{sf`wfg#wlkbuf#wkfjq#ltmgfejmfg#bp#wkfwqbgjwjlmbooz#kbuf#gjeefqfmwbqf#lewfm#vpfgwl#fmpvqf#wkbwbdqffnfmw#tjwk`lmwbjmjmd#wkfbqf#eqfrvfmwozjmelqnbwjlm#lmf{bnsof#jp#wkfqfpvowjmd#jm#b?,b=?,oj=?,vo=#`obpp>!ellwfqbmg#fpsf`jboozwzsf>!avwwlm!#?,psbm=?,psbm=tkj`k#jm`ovgfg= ?nfwb#mbnf>!`lmpjgfqfg#wkf`bqqjfg#lvw#azKltfufq/#jw#jpaf`bnf#sbqw#lejm#qfobwjlm#wlslsvobq#jm#wkfwkf#`bsjwbo#letbp#leej`jbooztkj`k#kbp#affmwkf#Kjpwlqz#lebowfqmbwjuf#wlgjeefqfmw#eqlnwl#pvsslqw#wkfpvddfpwfg#wkbwjm#wkf#sql`fpp##?gju#`obpp>!wkf#elvmgbwjlmaf`bvpf#le#kjp`lm`fqmfg#tjwkwkf#vmjufqpjwzlsslpfg#wl#wkfwkf#`lmwf{w#le?psbm#`obpp>!swf{w!#mbnf>!r!\n\n?gju#`obpp>!wkf#p`jfmwjej`qfsqfpfmwfg#aznbwkfnbwj`jbmpfof`wfg#az#wkfwkbw#kbuf#affm=?gju#`obpp>!`gju#jg>!kfbgfqjm#sbqwj`vobq/`lmufqwfg#jmwl*8 ?,p`qjsw= ?skjolplskj`bo#pqsphlkqubwphjwj\rVSmd#Uj\rWkw<L=o=m=m<V<T<U=l=o=m=m<V<T<Ujmufpwjdb`j/_msbqwj`jsb`j/_m<V<R=n<R=l=g<Y<R<]<W<\\=m=n<T<V<R=n<R=l=g<U=k<Y<W<R<^<Y<V=m<T=m=n<Y<P=g<q<R<^<R=m=n<T<V<R=n<R=l=g=i<R<]<W<\\=m=n=`<^=l<Y<P<Y<Q<T<V<R=n<R=l<\\=c=m<Y<_<R<X<Q=c=m<V<\\=k<\\=n=`<Q<R<^<R=m=n<T<O<V=l<\\<T<Q=g<^<R<S=l<R=m=g<V<R=n<R=l<R<U=m<X<Y<W<\\=n=`<S<R<P<R=e=`=b=m=l<Y<X=m=n<^<R<]=l<\\<[<R<P=m=n<R=l<R<Q=g=o=k<\\=m=n<T<Y=n<Y=k<Y<Q<T<Y<\x7F<W<\\<^<Q<\\=c<T=m=n<R=l<T<T=m<T=m=n<Y<P<\\=l<Y=d<Y<Q<T=c<M<V<\\=k<\\=n=`<S<R=a=n<R<P=o=m<W<Y<X=o<Y=n=m<V<\\<[<\\=n=`=n<R<^<\\=l<R<^<V<R<Q<Y=k<Q<R=l<Y=d<Y<Q<T<Y<V<R=n<R=l<R<Y<R=l<_<\\<Q<R<^<V<R=n<R=l<R<P<L<Y<V<W<\\<P<\\4K5h5i5j4F4C5e5i5j4F4C5f4K4F4K5h5i5d4Z5d4U4K5h4D4]4K5i4@4K5h5i5d4K5n4U4K5h4]4_4K4J5h5i4X4K4]5o4K4F4K5h4O4U4Z4K4M4K5h4]5f4K4Z4E4K5h4F4Y5i5f5i4K5h4K4U4Z4K4M4K5h5j4F4K4J4@4K5h4O5h4U4K4D4K5h4F4_4@5f5h4K5h4O5n4_4K5i4K5h4Z4V4[4K4F4K5h5m5f4C5f5d4K5h4F4]4A5f4D4K5h4@4C5f4C4E4K5h4F4U5h5f5i4K5h4O4B4D4K4]4K5h4K5m5h4K5i4K5h4O5m5h4K5i4K5h4F4K4]5f4B4K5h4F5n5j5f4E4K5h4K5h4U4K4D4K5h4B5d4K4[4]4K5h5i4@4F5i4U4K5h4C5f5o5d4]4K5h4_5f4K4A4E4U4D4C4K5h5h5k4K5h4F4]4D5f4E4K5h4]5d4K4D4[4K5h4O4C4D5f4E4K5h4K4B4D4K4]4K5h5i4F4A4C4E4K5h4K4V4K5j5f`vqplq9sljmwfq8?,wjwof= ?nfwb#!#kqfe>!kwws9,,!=?psbm#`obpp>!nfnafqp#le#wkf#tjmglt-ol`bwjlmufqwj`bo.bojdm9,b=#\x7F#?b#kqfe>!?"gl`wzsf#kwno=nfgjb>!p`qffm!#?lswjlm#ubovf>!ebuj`lm-j`l!#,= \n\n?gju#`obpp>!`kbqb`wfqjpwj`p!#nfwklg>!dfw!#,algz= ?,kwno= pklqw`vw#j`lm!#gl`vnfmw-tqjwf+sbggjmd.alwwln9qfsqfpfmwbwjufppvanjw!#ubovf>!bojdm>!`fmwfq!#wkqlvdklvw#wkf#p`jfm`f#ej`wjlm ##?gju#`obpp>!pvanjw!#`obpp>!lmf#le#wkf#nlpw#ubojdm>!wls!=?tbp#fpwbaojpkfg*8 ?,p`qjsw= qfwvqm#ebopf8!=*-pwzof-gjpsobzaf`bvpf#le#wkf#gl`vnfmw-`llhjf?elqn#b`wjlm>!,~algzxnbqdjm938Fm`z`olsfgjb#leufqpjlm#le#wkf#-`qfbwfFofnfmw+mbnf!#`lmwfmw>!?,gju= ?,gju= bgnjmjpwqbwjuf#?,algz= ?,kwno=kjpwlqz#le#wkf#!=?jmsvw#wzsf>!slqwjlm#le#wkf#bp#sbqw#le#wkf#%maps8?b#kqfe>!lwkfq#`lvmwqjfp!= ?gju#`obpp>!?,psbm=?,psbm=?Jm#lwkfq#tlqgp/gjpsobz9#aol`h8`lmwqlo#le#wkf#jmwqlgv`wjlm#le,= ?nfwb#mbnf>!bp#tfoo#bp#wkf#jm#qf`fmw#zfbqp \n?gju#`obpp>!?,gju= \n?,gju= jmpsjqfg#az#wkfwkf#fmg#le#wkf#`lnsbwjaof#tjwkaf`bnf#hmltm#bp#pwzof>!nbqdjm9-ip!=?,p`qjsw=?#Jmwfqmbwjlmbo#wkfqf#kbuf#affmDfqnbm#obmdvbdf#pwzof>!`lolq9 @lnnvmjpw#Sbqwz`lmpjpwfmw#tjwkalqgfq>!3!#`foo#nbqdjmkfjdkw>!wkf#nbilqjwz#le!#bojdm>!`fmwfqqfobwfg#wl#wkf#nbmz#gjeefqfmw#Lqwklgl{#@kvq`kpjnjobq#wl#wkf#,= ?ojmh#qfo>!ptbp#lmf#le#wkf#vmwjo#kjp#gfbwk~*+*8 ?,p`qjsw=lwkfq#obmdvbdfp`lnsbqfg#wl#wkfslqwjlmp#le#wkfwkf#Mfwkfqobmgpwkf#nlpw#`lnnlmab`hdqlvmg9vqo+bqdvfg#wkbw#wkfp`qloojmd>!ml!#jm`ovgfg#jm#wkfMlqwk#Bnfqj`bm#wkf#mbnf#le#wkfjmwfqsqfwbwjlmpwkf#wqbgjwjlmbogfufolsnfmw#le#eqfrvfmwoz#vpfgb#`loof`wjlm#leufqz#pjnjobq#wlpvqqlvmgjmd#wkff{bnsof#le#wkjpbojdm>!`fmwfq!=tlvog#kbuf#affmjnbdf\\`bswjlm#>bwwb`kfg#wl#wkfpvddfpwjmd#wkbwjm#wkf#elqn#le#jmuloufg#jm#wkfjp#gfqjufg#eqlnmbnfg#bewfq#wkfJmwqlgv`wjlm#wlqfpwqj`wjlmp#lm#pwzof>!tjgwk9#`bm#af#vpfg#wl#wkf#`qfbwjlm#lenlpw#jnslqwbmw#jmelqnbwjlm#bmgqfpvowfg#jm#wkf`loobspf#le#wkfWkjp#nfbmp#wkbwfofnfmwp#le#wkftbp#qfsob`fg#azbmbozpjp#le#wkfjmpsjqbwjlm#elqqfdbqgfg#bp#wkfnlpw#pv``fppevohmltm#bp#%rvlw8b#`lnsqfkfmpjufKjpwlqz#le#wkf#tfqf#`lmpjgfqfgqfwvqmfg#wl#wkfbqf#qfefqqfg#wlVmplvq`fg#jnbdf= \n?gju#`obpp>!`lmpjpwp#le#wkfpwlsSqlsbdbwjlmjmwfqfpw#jm#wkfbubjobajojwz#lebssfbqp#wl#kbuffof`wqlnbdmfwj`fmbaofPfquj`fp+evm`wjlm#le#wkfJw#jp#jnslqwbmw?,p`qjsw=?,gju=evm`wjlm+*xubq#qfobwjuf#wl#wkfbp#b#qfpvow#le#wkf#slpjwjlm#leElq#f{bnsof/#jm#nfwklg>!slpw!#tbp#elooltfg#az%bns8ngbpk8#wkfwkf#bssoj`bwjlmip!=?,p`qjsw= vo=?,gju=?,gju=bewfq#wkf#gfbwktjwk#qfpsf`w#wlpwzof>!sbggjmd9jp#sbqwj`vobqozgjpsobz9jmojmf8#wzsf>!pvanjw!#jp#gjujgfg#jmwl\bTA\nzk#+\vBl\bQ\x7F*qfpslmpbajojgbgbgnjmjpwqb`j/_mjmwfqmb`jlmbofp`lqqfpslmgjfmwf\fHe\fHF\fHC\fIg\fH{\fHF\fIn\fH\\\fIa\fHY\fHU\fHB\fHR\fH\\\fIk\fH^\fIg\fH{\fIg\fHn\fHv\fIm\fHD\fHR\fHY\fH^\fIk\fHy\fHS\fHD\fHT\fH\\\fHy\fHR\fH\\\fHF\fIm\fH^\fHS\fHT\fHz\fIg\fHp\fIk\fHn\fHv\fHR\fHU\fHS\fHc\fHA\fIk\fHp\fIk\fHn\fHZ\fHR\fHB\fHS\fH^\fHU\fHB\fHR\fH\\\fIl\fHp\fHR\fH{\fH\\\fHO\fH@\fHD\fHR\fHD\fIk\fHy\fIm\fHB\fHR\fH\\\fH@\fIa\fH^\fIe\fH{\fHB\fHR\fH^\fHS\fHy\fHB\fHU\fHS\fH^\fHR\fHF\fIo\fH[\fIa\fHL\fH@\fHN\fHP\fHH\fIk\fHA\fHR\fHp\fHF\fHR\fHy\fIa\fH^\fHS\fHy\fHs\fIa\fH\\\fIk\fHD\fHz\fHS\fH^\fHR\fHG\fHJ\fI`\fH\\\fHR\fHD\fHB\fHR\fHB\fH^\fIk\fHB\fHH\fHJ\fHR\fHD\fH@\fHR\fHp\fHR\fH\\\fHY\fHS\fHy\fHR\fHT\fHy\fIa\fHC\fIg\fHn\fHv\fHR\fHU\fHH\fIk\fHF\fHU\fIm\fHm\fHv\fH@\fHH\fHR\fHC\fHR\fHT\fHn\fHY\fHR\fHJ\fHJ\fIk\fHz\fHD\fIk\fHF\fHS\fHw\fH^\fIk\fHY\fHS\fHZ\fIk\fH[\fH\\\fHR\fHp\fIa\fHC\fHe\fHH\fIa\fHH\fH\\\fHB\fIm\fHn\fH@\fHd\fHJ\fIg\fHD\fIg\fHn\fHe\fHF\fHy\fH\\\fHO\fHF\fHN\fHP\fIk\fHn\fHT\fIa\fHI\fHS\fHH\fHG\fHS\fH^\fIa\fHB\fHB\fIm\fHz\fIa\fHC\fHi\fHv\fIa\fHw\fHR\fHw\fIn\fHs\fHH\fIl\fHT\fHn\fH{\fIl\fHH\fHp\fHR\fHc\fH{\fHR\fHY\fHS\fHA\fHR\fH{\fHt\fHO\fIa\fHs\fIk\fHJ\fIn\fHT\fH\\\fIk\fHJ\fHS\fHD\fIg\fHn\fHU\fHH\fIa\fHC\fHR\fHT\fIk\fHy\fIa\fHT\fH{\fHR\fHn\fHK\fIl\fHY\fHS\fHZ\fIa\fHY\fH\\\fHR\fHH\fIk\fHn\fHJ\fId\fHs\fIa\fHT\fHD\fHy\fIa\fHZ\fHR\fHT\fHR\fHB\fHD\fIk\fHi\fHJ\fHR\fH^\fHH\fH@\fHS\fHp\fH^\fIl\fHF\fIm\fH\\\fIn\fH[\fHU\fHS\fHn\fHJ\fIl\fHB\fHS\fHH\fIa\fH\\\fHy\fHY\fHS\fHH\fHR\fH\\\fIm\fHF\fHC\fIk\fHT\fIa\fHI\fHR\fHD\fHy\fH\\\fIg\fHM\fHP\fHB\fIm\fHy\fIa\fHH\fHC\fIg\fHp\fHD\fHR\fHy\fIo\fHF\fHC\fHR\fHF\fIg\fHT\fIa\fHs\fHt\fH\\\fIk\fH^\fIn\fHy\fHR\fH\\\fIa\fHC\fHY\fHS\fHv\fHR\fH\\\fHT\fIn\fHv\fHD\fHR\fHB\fIn\fH^\fIa\fHC\fHJ\fIk\fHz\fIk\fHn\fHU\fHB\fIk\fHZ\fHR\fHT\fIa\fHy\fIn\fH^\fHB\fId\fHn\fHD\fIk\fHH\fId\fHC\fHR\fH\\\fHp\fHS\fHT\fHy\fIkqpp({no!#wjwof>!.wzsf!#`lmwfmw>!wjwof!#`lmwfmw>!bw#wkf#pbnf#wjnf-ip!=?,p`qjsw= ?!#nfwklg>!slpw!#?,psbm=?,b=?,oj=ufqwj`bo.bojdm9w,irvfqz-njm-ip!=-`oj`h+evm`wjlm+#pwzof>!sbggjmd.~*+*8 ?,p`qjsw= ?,psbm=?b#kqfe>!?b#kqfe>!kwws9,,*8#qfwvqm#ebopf8wf{w.gf`lqbwjlm9#p`qloojmd>!ml!#alqgfq.`loobspf9bppl`jbwfg#tjwk#Abkbpb#JmglmfpjbFmdojpk#obmdvbdf?wf{w#{no9psb`f>-dje!#alqgfq>!3!?,algz= ?,kwno= lufqeolt9kjggfm8jnd#pq`>!kwws9,,bggFufmwOjpwfmfqqfpslmpjaof#elq#p-ip!=?,p`qjsw= ,ebuj`lm-j`l!#,=lsfqbwjmd#pzpwfn!#pwzof>!tjgwk92wbqdfw>!\\aobmh!=Pwbwf#Vmjufqpjwzwf{w.bojdm9ofew8 gl`vnfmw-tqjwf+/#jm`ovgjmd#wkf#bqlvmg#wkf#tlqog*8 ?,p`qjsw= ?!#pwzof>!kfjdkw98lufqeolt9kjggfmnlqf#jmelqnbwjlmbm#jmwfqmbwjlmbob#nfnafq#le#wkf#lmf#le#wkf#ejqpw`bm#af#elvmg#jm#?,gju= \n\n?,gju= gjpsobz9#mlmf8!=!#,= ?ojmh#qfo>! ##+evm`wjlm+*#xwkf#26wk#`fmwvqz-sqfufmwGfebvow+obqdf#mvnafq#le#Azybmwjmf#Fnsjqf-isd\x7Fwkvna\x7Fofew\x7Fubpw#nbilqjwz#lenbilqjwz#le#wkf##bojdm>!`fmwfq!=Vmjufqpjwz#Sqfppglnjmbwfg#az#wkfPf`lmg#Tlqog#Tbqgjpwqjavwjlm#le#pwzof>!slpjwjlm9wkf#qfpw#le#wkf#`kbqb`wfqjyfg#az#qfo>!mleloolt!=gfqjufp#eqln#wkfqbwkfq#wkbm#wkf#b#`lnajmbwjlm#lepwzof>!tjgwk9233Fmdojpk.psfbhjmd`lnsvwfq#p`jfm`falqgfq>!3!#bow>!wkf#f{jpwfm`f#leGfnl`qbwj`#Sbqwz!#pwzof>!nbqdjm.Elq#wkjp#qfbplm/-ip!=?,p`qjsw= \npAzWbdMbnf+p*X3^ip!=?,p`qjsw= ?-ip!=?,p`qjsw= ojmh#qfo>!j`lm!#$#bow>$$#`obpp>$elqnbwjlm#le#wkfufqpjlmp#le#wkf#?,b=?,gju=?,gju=,sbdf= ##?sbdf= ?gju#`obpp>!`lmwaf`bnf#wkf#ejqpwabkbpb#Jmglmfpjbfmdojpk#+pjnsof*"y"W"W"["Q"U"V"@=i=l<^<\\=n=m<V<T<V<R<P<S<\\<Q<T<T=c<^<W=c<Y=n=m=c<x<R<]<\\<^<T=n=`=k<Y<W<R<^<Y<V<\\=l<\\<[<^<T=n<T=c<t<Q=n<Y=l<Q<Y=n<r=n<^<Y=n<T=n=`<Q<\\<S=l<T<P<Y=l<T<Q=n<Y=l<Q<Y=n<V<R=n<R=l<R<_<R=m=n=l<\\<Q<T=j=g<V<\\=k<Y=m=n<^<Y=o=m<W<R<^<T=c=i<S=l<R<]<W<Y<P=g<S<R<W=o=k<T=n=`=c<^<W=c=b=n=m=c<Q<\\<T<]<R<W<Y<Y<V<R<P<S<\\<Q<T=c<^<Q<T<P<\\<Q<T<Y=m=l<Y<X=m=n<^<\\4K5h5i5d4K4Z5f4U4K5h4]4J5f4_5f4E4K5h4K5j4F5n4K5h5i4X4K4]5o4K4F5o4K5h4_5f4K4]4K4F4K5h5i5o4F5d4D4E4K5h4_4U5d4C5f4E4K4A4Y4K4J5f4K4F4K5h4U4K5h5i5f4E4K5h4Y5d4F5f4K4F4K5h4K5j4F4]5j4F4K5h4F4Y4K5i5f5i4K5h4I4_5h4K5i5f4K5h5i4X4K4]5o4E4K5h5i4]4J5f4K4Fqlalwp!#`lmwfmw>!?gju#jg>!ellwfq!=wkf#Vmjwfg#Pwbwfp?jnd#pq`>!kwws9,,-isd\x7Fqjdkw\x7Fwkvna\x7F-ip!=?,p`qjsw= ?ol`bwjlm-sqlwl`loeqbnfalqgfq>!3!#p!#,= ?nfwb#mbnf>!?,b=?,gju=?,gju=?elmw.tfjdkw9alog8%rvlw8#bmg#%rvlw8gfsfmgjmd#lm#wkf#nbqdjm938sbggjmd9!#qfo>!mleloolt!#Sqfpjgfmw#le#wkf#wtfmwjfwk#`fmwvqzfujpjlm= ##?,sbdfJmwfqmfw#F{solqfqb-bpzm`#>#wqvf8 jmelqnbwjlm#balvw?gju#jg>!kfbgfq!=!#b`wjlm>!kwws9,,?b#kqfe>!kwwsp9,,?gju#jg>!`lmwfmw!?,gju= ?,gju= ?gfqjufg#eqln#wkf#?jnd#pq`>$kwws9,,b``lqgjmd#wl#wkf# ?,algz= ?,kwno= pwzof>!elmw.pjyf9p`qjsw#obmdvbdf>!Bqjbo/#Kfoufwj`b/?,b=?psbm#`obpp>!?,p`qjsw=?p`qjsw#slojwj`bo#sbqwjfpwg=?,wq=?,wbaof=?kqfe>!kwws9,,ttt-jmwfqsqfwbwjlm#leqfo>!pwzofpkffw!#gl`vnfmw-tqjwf+$?`kbqpfw>!vwe.;!= afdjmmjmd#le#wkf#qfufbofg#wkbw#wkfwfofujpjlm#pfqjfp!#qfo>!mleloolt!=#wbqdfw>!\\aobmh!=`objnjmd#wkbw#wkfkwws&0B&1E&1Ettt-nbmjefpwbwjlmp#leSqjnf#Njmjpwfq#lejmeovfm`fg#az#wkf`obpp>!`ofbqej{!=,gju= ?,gju= wkqff.gjnfmpjlmbo@kvq`k#le#Fmdobmgle#Mlqwk#@bqlojmbprvbqf#hjolnfwqfp-bggFufmwOjpwfmfqgjpwjm`w#eqln#wkf`lnnlmoz#hmltm#bpSklmfwj`#Boskbafwgf`obqfg#wkbw#wkf`lmwqloofg#az#wkfAfmibnjm#Eqbmhojmqlof.sobzjmd#dbnfwkf#Vmjufqpjwz#lejm#Tfpwfqm#Fvqlsfsfqplmbo#`lnsvwfqSqlif`w#Dvwfmafqdqfdbqgofpp#le#wkfkbp#affm#sqlslpfgwldfwkfq#tjwk#wkf=?,oj=?oj#`obpp>!jm#plnf#`lvmwqjfpnjm-ip!=?,p`qjsw=le#wkf#slsvobwjlmleej`jbo#obmdvbdf?jnd#pq`>!jnbdfp,jgfmwjejfg#az#wkfmbwvqbo#qfplvq`fp`obppjej`bwjlm#le`bm#af#`lmpjgfqfgrvbmwvn#nf`kbmj`pMfufqwkfofpp/#wkfnjoojlm#zfbqp#bdl?,algz= ?,kwno="y"W"W"["Q"U"V"@ wbhf#bgubmwbdf#lebmg/#b``lqgjmd#wlbwwqjavwfg#wl#wkfNj`qlplew#Tjmgltpwkf#ejqpw#`fmwvqzvmgfq#wkf#`lmwqlogju#`obpp>!kfbgfqpklqwoz#bewfq#wkfmlwbaof#f{`fswjlmwfmp#le#wklvpbmgppfufqbo#gjeefqfmwbqlvmg#wkf#tlqog-qfb`kjmd#njojwbqzjplobwfg#eqln#wkflsslpjwjlm#wl#wkfwkf#Log#WfpwbnfmwBeqj`bm#Bnfqj`bmpjmpfqwfg#jmwl#wkfpfsbqbwf#eqln#wkfnfwqlslojwbm#bqfbnbhfp#jw#slppjaofb`hmltofgdfg#wkbwbqdvbaoz#wkf#nlpwwzsf>!wf{w,`pp!= wkf#JmwfqmbwjlmboB``lqgjmd#wl#wkf#sf>!wf{w,`pp!#,= `ljm`jgf#tjwk#wkfwtl.wkjqgp#le#wkfGvqjmd#wkjp#wjnf/gvqjmd#wkf#sfqjlgbmmlvm`fg#wkbw#kfwkf#jmwfqmbwjlmbobmg#nlqf#qf`fmwozafojfufg#wkbw#wkf`lmp`jlvpmfpp#bmgelqnfqoz#hmltm#bppvqqlvmgfg#az#wkfejqpw#bssfbqfg#jml``bpjlmbooz#vpfgslpjwjlm9baplovwf8!#wbqdfw>!\\aobmh!#slpjwjlm9qfobwjuf8wf{w.bojdm9`fmwfq8ib{,ojap,irvfqz,2-ab`hdqlvmg.`lolq9 wzsf>!bssoj`bwjlm,bmdvbdf!#`lmwfmw>!?nfwb#kwws.frvju>!Sqjub`z#Sloj`z?,b=f+!&0@p`qjsw#pq`>$!#wbqdfw>!\\aobmh!=Lm#wkf#lwkfq#kbmg/-isd\x7Fwkvna\x7Fqjdkw\x7F1?,gju=?gju#`obpp>!?gju#pwzof>!eolbw9mjmfwffmwk#`fmwvqz?,algz= ?,kwno= ?jnd#pq`>!kwws9,,p8wf{w.bojdm9`fmwfqelmw.tfjdkw9#alog8#B``lqgjmd#wl#wkf#gjeefqfm`f#afwtffm!#eqbnfalqgfq>!3!#!#pwzof>!slpjwjlm9ojmh#kqfe>!kwws9,,kwno7,ollpf-gwg!= gvqjmd#wkjp#sfqjlg?,wg=?,wq=?,wbaof=`olpfoz#qfobwfg#wlelq#wkf#ejqpw#wjnf8elmw.tfjdkw9alog8jmsvw#wzsf>!wf{w!#?psbm#pwzof>!elmw.lmqfbgzpwbwf`kbmdf\n?gju#`obpp>!`ofbqgl`vnfmw-ol`bwjlm-#Elq#f{bnsof/#wkf#b#tjgf#ubqjfwz#le#?"GL@WZSF#kwno= ?%maps8%maps8%maps8!=?b#kqfe>!kwws9,,pwzof>!eolbw9ofew8`lm`fqmfg#tjwk#wkf>kwws&0B&1E&1Ettt-jm#slsvobq#`vowvqfwzsf>!wf{w,`pp!#,=jw#jp#slppjaof#wl#Kbqubqg#Vmjufqpjwzwzofpkffw!#kqfe>!,wkf#nbjm#`kbqb`wfqL{elqg#Vmjufqpjwz##mbnf>!hfztlqgp!#`pwzof>!wf{w.bojdm9wkf#Vmjwfg#Hjmdglnefgfqbo#dlufqmnfmw?gju#pwzof>!nbqdjm#gfsfmgjmd#lm#wkf#gfp`qjswjlm#le#wkf?gju#`obpp>!kfbgfq-njm-ip!=?,p`qjsw=gfpwqv`wjlm#le#wkfpojdkwoz#gjeefqfmwjm#b``lqgbm`f#tjwkwfof`lnnvmj`bwjlmpjmgj`bwfp#wkbw#wkfpklqwoz#wkfqfbewfqfpsf`jbooz#jm#wkf#Fvqlsfbm#`lvmwqjfpKltfufq/#wkfqf#bqfpq`>!kwws9,,pwbwj`pvddfpwfg#wkbw#wkf!#pq`>!kwws9,,ttt-b#obqdf#mvnafq#le#Wfof`lnnvmj`bwjlmp!#qfo>!mleloolt!#wKloz#Qlnbm#Fnsfqlqbonlpw#f{`ovpjufoz!#alqgfq>!3!#bow>!Pf`qfwbqz#le#Pwbwf`vonjmbwjmd#jm#wkf@JB#Tlqog#Eb`wallhwkf#nlpw#jnslqwbmwbmmjufqpbqz#le#wkfpwzof>!ab`hdqlvmg.?oj=?fn=?b#kqfe>!,wkf#Bwobmwj`#L`fbmpwqj`woz#psfbhjmd/pklqwoz#afelqf#wkfgjeefqfmw#wzsfp#lewkf#Lwwlnbm#Fnsjqf=?jnd#pq`>!kwws9,,Bm#Jmwqlgv`wjlm#wl`lmpfrvfm`f#le#wkfgfsbqwvqf#eqln#wkf@lmefgfqbwf#Pwbwfpjmgjdfmlvp#sflsofpSql`ffgjmdp#le#wkfjmelqnbwjlm#lm#wkfwkflqjfp#kbuf#affmjmuloufnfmw#jm#wkfgjujgfg#jmwl#wkqffbgib`fmw#`lvmwqjfpjp#qfpslmpjaof#elqgjpplovwjlm#le#wkf`loobalqbwjlm#tjwktjgfoz#qfdbqgfg#bpkjp#`lmwfnslqbqjfpelvmgjmd#nfnafq#leGlnjmj`bm#Qfsvaoj`dfmfqbooz#b``fswfgwkf#slppjajojwz#lebqf#bopl#bubjobaofvmgfq#`lmpwqv`wjlmqfpwlqbwjlm#le#wkfwkf#dfmfqbo#svaoj`jp#bonlpw#fmwjqfozsbppfp#wkqlvdk#wkfkbp#affm#pvddfpwfg`lnsvwfq#bmg#ujgflDfqnbmj`#obmdvbdfp#b``lqgjmd#wl#wkf#gjeefqfmw#eqln#wkfpklqwoz#bewfqtbqgpkqfe>!kwwsp9,,ttt-qf`fmw#gfufolsnfmwAlbqg#le#Gjqf`wlqp?gju#`obpp>!pfbq`k\x7F#?b#kqfe>!kwws9,,Jm#sbqwj`vobq/#wkfNvowjsof#ellwmlwfplq#lwkfq#pvapwbm`fwklvpbmgp#le#zfbqpwqbmpobwjlm#le#wkf?,gju= ?,gju= ?b#kqfe>!jmgf{-skstbp#fpwbaojpkfg#jmnjm-ip!=?,p`qjsw= sbqwj`jsbwf#jm#wkfb#pwqlmd#jmeovfm`fpwzof>!nbqdjm.wls9qfsqfpfmwfg#az#wkfdqbgvbwfg#eqln#wkfWqbgjwjlmbooz/#wkfFofnfmw+!p`qjsw!*8Kltfufq/#pjm`f#wkf,gju= ?,gju= ?gju#ofew8#nbqdjm.ofew9sqlwf`wjlm#bdbjmpw38#ufqwj`bo.bojdm9Vmelqwvmbwfoz/#wkfwzsf>!jnbdf,{.j`lm,gju= ?gju#`obpp>!#`obpp>!`ofbqej{!=?gju#`obpp>!ellwfq\n\n?,gju= \n\n?,gju= wkf#nlwjlm#sj`wvqf<}=f<W<_<\\=l=m<V<T<]=f<W<_<\\=l=m<V<T<H<Y<X<Y=l<\\=j<T<T<Q<Y=m<V<R<W=`<V<R=m<R<R<]=e<Y<Q<T<Y=m<R<R<]=e<Y<Q<T=c<S=l<R<_=l<\\<P<P=g<r=n<S=l<\\<^<T=n=`<]<Y=m<S<W<\\=n<Q<R<P<\\=n<Y=l<T<\\<W=g<S<R<[<^<R<W=c<Y=n<S<R=m<W<Y<X<Q<T<Y=l<\\<[<W<T=k<Q=g=i<S=l<R<X=o<V=j<T<T<S=l<R<_=l<\\<P<P<\\<S<R<W<Q<R=m=n=`=b<Q<\\=i<R<X<T=n=m=c<T<[<]=l<\\<Q<Q<R<Y<Q<\\=m<Y<W<Y<Q<T=c<T<[<P<Y<Q<Y<Q<T=c<V<\\=n<Y<_<R=l<T<T<|<W<Y<V=m<\\<Q<X=l\fHJ\fIa\fHY\fHR\fH\\\fHR\fHB\fId\fHD\fIm\fHi\fH^\fHF\fIa\fH\\\fHJ\fHR\fHD\fHA\fHR\fH\\\fHH\fIl\fHC\fHi\fHD\fIm\fHJ\fIk\fHZ\fHU\fHS\fHD\fIa\fHJ\fIl\fHk\fHn\fHM\fHS\fHC\fHR\fHJ\fHS\fH^\fIa\fH^\fIl\fHi\fHK\fHS\fHy\fHR\fH\\\fHY\fIl\fHM\fHS\fHC\fIg\fHv\fHS\fHs\fIa\fHL\fIk\fHT\fHB\fHR\fHv\fHR\fH\\\fHp\fHn\fHy\fIa\fHZ\fHD\fHJ\fIm\fHD\fHS\fHC\fHR\fHF\fIa\fH\\\fHC\fIg\fH{\fHi\fHD\fIm\fHT\fHR\fH\\\fH}\fHD\fH^\fHR\fHk\fHD\fHF\fHR\fH\\\fIa\fHs\fIl\fHZ\fH\\\fIa\fHH\fIg\fHn\fH^\fIg\fHy\fHT\fHA\fHR\fHG\fHP\fIa\fH^\fId\fHZ\fHZ\fH\\\fIa\fHH\fIk\fHn\fHF\fIa\fH\\\fHJ\fIk\fHZ\fHF\fIa\fH^\fIk\fHC\fH\\\fHy\fIk\fHn\fHJ\fIa\fH\\\fHT\fIa\fHI\fHS\fHH\fHS\fHe\fHH\fIa\fHF\fHR\fHJ\fHe\fHD\fIa\fHU\fIk\fHn\fHv\fHS\fHs\fIa\fHL\fHR\fHC\fHR\fHH\fIa\fH\\\fHR\fHp\fIa\fHC\fHR\fHJ\fHR\fHF\fIm\fH\\\fHR\fHD\fIk\fHp\fIg\fHM\fHP\fIk\fHn\fHi\fHD\fIm\fHY\fHR\fHJ\fHZ\fIa\fH\\\fIk\fHO\fIl\fHZ\fHS\fHy\fIa\fH[\fHR\fHT\fH\\\fHy\fHR\fH\\\fIl\fHT\fHn\fH{\fIa\fH\\\fHU\fHF\fH\\\fHS\fHO\fHR\fHB\fH@\fIa\fH\\\fHR\fHn\fHM\fH@\fHv\fIa\fHv\fIg\fHn\fHe\fHF\fH^\fH@\fIa\fHK\fHB\fHn\fHH\fIa\fH\\\fIl\fHT\fHn\fHF\fH\\\fIa\fHy\fHe\fHB\fIa\fHB\fIl\fHJ\fHB\fHR\fHK\fIa\fHC\fHB\fHT\fHU\fHR\fHC\fHH\fHR\fHZ\fH@\fIa\fHJ\fIg\fHn\fHB\fIl\fHM\fHS\fHC\fHR\fHj\fHd\fHF\fIl\fHc\fH^\fHB\fIg\fH@\fHR\fHk\fH^\fHT\fHn\fHz\fIa\fHC\fHR\fHj\fHF\fH\\\fIk\fHZ\fHD\fHi\fHD\fIm\fH@\fHn\fHK\fH@\fHR\fHp\fHP\fHR\fH\\\fHD\fHY\fIl\fHD\fHH\fHB\fHF\fIa\fH\\\fHB\fIm\fHz\fHF\fIa\fH\\\fHZ\fIa\fHD\fHF\fH\\\fHS\fHY\fHR\fH\\\fHD\fIm\fHy\fHT\fHR\fHD\fHT\fHB\fH\\\fIa\fHI\fHD\fHj\fHC\fIg\fHp\fHS\fHH\fHT\fIg\fHB\fHY\fHR\fH\\4K5h5i4X4K4]5o4K4F4K5h5i5j4F4C5f4K4F4K5h5o5i4D5f5d4F4]4K5h5i4X4K5k4C4K4F4U4C4C4K5h4^5d4K4]4U4C4C4K5h4]4C5d4C4K5h4I4_5h4K5i5f4E4K5h5m5d4F5d4X5d4D4K5h5i4_4K4D5n4K4F4K5h5i4U5h5d5i4K4F4K5h5i4_5h4_5h4K4F4K5h4@4]4K5m5f5o4_4K5h4K4_5h4K5i5f4E4K5h4K4F4Y4K5h4K4Fhfztlqgp!#`lmwfmw>!t0-lqd,2:::,{kwno!=?b#wbqdfw>!\\aobmh!#wf{w,kwno8#`kbqpfw>!#wbqdfw>!\\aobmh!=?wbaof#`foosbggjmd>!bvwl`lnsofwf>!lee!#wf{w.bojdm9#`fmwfq8wl#obpw#ufqpjlm#az#ab`hdqlvmg.`lolq9# !#kqfe>!kwws9,,ttt-,gju=?,gju=?gju#jg>?b#kqfe>! !#`obpp>!!=?jnd#pq`>!kwws9,,`qjsw!#pq`>!kwws9,, ?p`qjsw#obmdvbdf>!,,FM!#!kwws9,,ttt-tfm`lgfVQJ@lnslmfmw+!#kqfe>!ibubp`qjsw9?gju#`obpp>!`lmwfmwgl`vnfmw-tqjwf+$?p`slpjwjlm9#baplovwf8p`qjsw#pq`>!kwws9,,#pwzof>!nbqdjm.wls9-njm-ip!=?,p`qjsw= ?,gju= ?gju#`obpp>!t0-lqd,2:::,{kwno!# ?,algz= ?,kwno=gjpwjm`wjlm#afwtffm,!#wbqdfw>!\\aobmh!=?ojmh#kqfe>!kwws9,,fm`lgjmd>!vwe.;!<= t-bggFufmwOjpwfmfq<b`wjlm>!kwws9,,ttt-j`lm!#kqfe>!kwws9,,#pwzof>!ab`hdqlvmg9wzsf>!wf{w,`pp!#,= nfwb#sqlsfqwz>!ld9w?jmsvw#wzsf>!wf{w!##pwzof>!wf{w.bojdm9wkf#gfufolsnfmw#le#wzofpkffw!#wzsf>!wfkwno8#`kbqpfw>vwe.;jp#`lmpjgfqfg#wl#afwbaof#tjgwk>!233&!#Jm#bggjwjlm#wl#wkf#`lmwqjavwfg#wl#wkf#gjeefqfm`fp#afwtffmgfufolsnfmw#le#wkf#Jw#jp#jnslqwbmw#wl#?,p`qjsw= ?p`qjsw##pwzof>!elmw.pjyf92=?,psbm=?psbm#jg>daOjaqbqz#le#@lmdqfpp?jnd#pq`>!kwws9,,jnFmdojpk#wqbmpobwjlmB`bgfnz#le#P`jfm`fpgju#pwzof>!gjpsobz9`lmpwqv`wjlm#le#wkf-dfwFofnfmwAzJg+jg*jm#`lmivm`wjlm#tjwkFofnfmw+$p`qjsw$*8#?nfwb#sqlsfqwz>!ld9<}=f<W<_<\\=l=m<V<T #wzsf>!wf{w!#mbnf>!=Sqjub`z#Sloj`z?,b=bgnjmjpwfqfg#az#wkffmbaofPjmdofQfrvfpwpwzof>%rvlw8nbqdjm9?,gju=?,gju=?,gju=?=?jnd#pq`>!kwws9,,j#pwzof>%rvlw8eolbw9qfefqqfg#wl#bp#wkf#wlwbo#slsvobwjlm#lejm#Tbpkjmdwlm/#G-@-#pwzof>!ab`hdqlvmg.bnlmd#lwkfq#wkjmdp/lqdbmjybwjlm#le#wkfsbqwj`jsbwfg#jm#wkfwkf#jmwqlgv`wjlm#lejgfmwjejfg#tjwk#wkfej`wjlmbo#`kbqb`wfq#L{elqg#Vmjufqpjwz#njpvmgfqpwbmgjmd#leWkfqf#bqf/#kltfufq/pwzofpkffw!#kqfe>!,@lovnajb#Vmjufqpjwzf{sbmgfg#wl#jm`ovgfvpvbooz#qfefqqfg#wljmgj`bwjmd#wkbw#wkfkbuf#pvddfpwfg#wkbwbeejojbwfg#tjwk#wkf`lqqfobwjlm#afwtffmmvnafq#le#gjeefqfmw=?,wg=?,wq=?,wbaof=Qfsvaoj`#le#Jqfobmg ?,p`qjsw= ?p`qjsw#vmgfq#wkf#jmeovfm`f`lmwqjavwjlm#wl#wkfLeej`jbo#tfapjwf#lekfbgrvbqwfqp#le#wkf`fmwfqfg#bqlvmg#wkfjnsoj`bwjlmp#le#wkfkbuf#affm#gfufolsfgEfgfqbo#Qfsvaoj`#leaf`bnf#jm`qfbpjmdoz`lmwjmvbwjlm#le#wkfMlwf/#kltfufq/#wkbwpjnjobq#wl#wkbw#le#`bsbajojwjfp#le#wkfb``lqgbm`f#tjwk#wkfsbqwj`jsbmwp#jm#wkfevqwkfq#gfufolsnfmwvmgfq#wkf#gjqf`wjlmjp#lewfm#`lmpjgfqfgkjp#zlvmdfq#aqlwkfq?,wg=?,wq=?,wbaof=?b#kwws.frvju>![.VB.skzpj`bo#sqlsfqwjfple#Aqjwjpk#@lovnajbkbp#affm#`qjwj`jyfg+tjwk#wkf#f{`fswjlmrvfpwjlmp#balvw#wkfsbppjmd#wkqlvdk#wkf3!#`foosbggjmd>!3!#wklvpbmgp#le#sflsofqfgjqf`wp#kfqf-#Elqkbuf#`kjogqfm#vmgfq&0F&0@,p`qjsw&0F!**8?b#kqfe>!kwws9,,ttt-?oj=?b#kqfe>!kwws9,,pjwf\\mbnf!#`lmwfmw>!wf{w.gf`lqbwjlm9mlmfpwzof>!gjpsobz9#mlmf?nfwb#kwws.frvju>![.mft#Gbwf+*-dfwWjnf+*#wzsf>!jnbdf,{.j`lm!?,psbm=?psbm#`obpp>!obmdvbdf>!ibubp`qjswtjmglt-ol`bwjlm-kqfe?b#kqfe>!ibubp`qjsw9..= ?p`qjsw#wzsf>!w?b#kqfe>$kwws9,,ttt-klqw`vw#j`lm!#kqfe>!?,gju= ?gju#`obpp>!?p`qjsw#pq`>!kwws9,,!#qfo>!pwzofpkffw!#w?,gju= ?p`qjsw#wzsf>,b=#?b#kqfe>!kwws9,,#booltWqbmpsbqfm`z>![.VB.@lnsbwjaof!#`lmqfobwjlmpkjs#afwtffm ?,p`qjsw= ?p`qjsw#?,b=?,oj=?,vo=?,gju=bppl`jbwfg#tjwk#wkf#sqldqbnnjmd#obmdvbdf?,b=?b#kqfe>!kwws9,,?,b=?,oj=?oj#`obpp>!elqn#b`wjlm>!kwws9,,?gju#pwzof>!gjpsobz9wzsf>!wf{w!#mbnf>!r!?wbaof#tjgwk>!233&!#ab`hdqlvmg.slpjwjlm9!#alqgfq>!3!#tjgwk>!qfo>!pklqw`vw#j`lm!#k5=?vo=?oj=?b#kqfe>!##?nfwb#kwws.frvju>!`pp!#nfgjb>!p`qffm!#qfpslmpjaof#elq#wkf#!#wzsf>!bssoj`bwjlm,!#pwzof>!ab`hdqlvmg.kwno8#`kbqpfw>vwe.;!#booltwqbmpsbqfm`z>!pwzofpkffw!#wzsf>!wf ?nfwb#kwws.frvju>!=?,psbm=?psbm#`obpp>!3!#`foopsb`jmd>!3!=8 ?,p`qjsw= ?p`qjsw#plnfwjnfp#`boofg#wkfglfp#mlw#mf`fppbqjozElq#nlqf#jmelqnbwjlmbw#wkf#afdjmmjmd#le#?"GL@WZSF#kwno=?kwnosbqwj`vobqoz#jm#wkf#wzsf>!kjggfm!#mbnf>!ibubp`qjsw9uljg+3*8!feef`wjufmfpp#le#wkf#bvwl`lnsofwf>!lee!#dfmfqbooz#`lmpjgfqfg=?jmsvw#wzsf>!wf{w!#!=?,p`qjsw= ?p`qjswwkqlvdklvw#wkf#tlqog`lnnlm#njp`lm`fswjlmbppl`jbwjlm#tjwk#wkf?,gju= ?,gju= ?gju#`gvqjmd#kjp#ojefwjnf/`lqqfpslmgjmd#wl#wkfwzsf>!jnbdf,{.j`lm!#bm#jm`qfbpjmd#mvnafqgjsolnbwj`#qfobwjlmpbqf#lewfm#`lmpjgfqfgnfwb#`kbqpfw>!vwe.;!#?jmsvw#wzsf>!wf{w!#f{bnsofp#jm`ovgf#wkf!=?jnd#pq`>!kwws9,,jsbqwj`jsbwjlm#jm#wkfwkf#fpwbaojpknfmw#le ?,gju= ?gju#`obpp>!%bns8maps8%bns8maps8wl#gfwfqnjmf#tkfwkfqrvjwf#gjeefqfmw#eqlnnbqhfg#wkf#afdjmmjmdgjpwbm`f#afwtffm#wkf`lmwqjavwjlmp#wl#wkf`lmeoj`w#afwtffm#wkftjgfoz#`lmpjgfqfg#wltbp#lmf#le#wkf#ejqpwtjwk#ubqzjmd#gfdqffpkbuf#psf`vobwfg#wkbw+gl`vnfmw-dfwFofnfmwsbqwj`jsbwjmd#jm#wkflqjdjmbooz#gfufolsfgfwb#`kbqpfw>!vwe.;!=#wzsf>!wf{w,`pp!#,= jmwfq`kbmdfbaoz#tjwknlqf#`olpfoz#qfobwfgpl`jbo#bmg#slojwj`bowkbw#tlvog#lwkfqtjpfsfqsfmgj`vobq#wl#wkfpwzof#wzsf>!wf{w,`ppwzsf>!pvanjw!#mbnf>!ebnjojfp#qfpjgjmd#jmgfufolsjmd#`lvmwqjfp`lnsvwfq#sqldqbnnjmdf`lmlnj`#gfufolsnfmwgfwfqnjmbwjlm#le#wkfelq#nlqf#jmelqnbwjlmlm#pfufqbo#l``bpjlmpslqwvdv/Fp#+Fvqlsfv*<O<V=l<\\={<Q=m=`<V<\\=o<V=l<\\={<Q=m=`<V<\\<L<R=m=m<T<U=m<V<R<U<P<\\=n<Y=l<T<\\<W<R<^<T<Q=h<R=l<P<\\=j<T<T=o<S=l<\\<^<W<Y<Q<T=c<Q<Y<R<]=i<R<X<T<P<R<T<Q=h<R=l<P<\\=j<T=c<t<Q=h<R=l<P<\\=j<T=c<L<Y=m<S=o<]<W<T<V<T<V<R<W<T=k<Y=m=n<^<R<T<Q=h<R=l<P<\\=j<T=b=n<Y=l=l<T=n<R=l<T<T<X<R=m=n<\\=n<R=k<Q<R4K5h5i4F5d4K4@4C5d5j4K5h4K4X4F4]4K5o4K4F4K5h4K5n4F4]4K4A4K4Fkwno8#`kbqpfw>VWE.;!#pfwWjnflvw+evm`wjlm+*gjpsobz9jmojmf.aol`h8?jmsvw#wzsf>!pvanjw!#wzsf#>#$wf{w,ibubp`qj?jnd#pq`>!kwws9,,ttt-!#!kwws9,,ttt-t0-lqd,pklqw`vw#j`lm!#kqfe>!!#bvwl`lnsofwf>!lee!#?,b=?,gju=?gju#`obpp>?,b=?,oj= ?oj#`obpp>!`pp!#wzsf>!wf{w,`pp!#?elqn#b`wjlm>!kwws9,,{w,`pp!#kqfe>!kwws9,,ojmh#qfo>!bowfqmbwf!# ?p`qjsw#wzsf>!wf{w,#lm`oj`h>!ibubp`qjsw9+mft#Gbwf*-dfwWjnf+*~kfjdkw>!2!#tjgwk>!2!#Sflsof$p#Qfsvaoj`#le##?b#kqfe>!kwws9,,ttt-wf{w.gf`lqbwjlm9vmgfqwkf#afdjmmjmd#le#wkf#?,gju= ?,gju= ?,gju= fpwbaojpknfmw#le#wkf#?,gju=?,gju=?,gju=?,g ujftslqwxnjm.kfjdkw9 ?p`qjsw#pq`>!kwws9,,lswjlm=?lswjlm#ubovf>lewfm#qfefqqfg#wl#bp#,lswjlm= ?lswjlm#ubov?"GL@WZSF#kwno= ?"..XJmwfqmbwjlmbo#Bjqslqw= ?b#kqfe>!kwws9,,ttt?,b=?b#kqfe>!kwws9,,t\fTL\fT^\fTE\fT^\fUh\fT{\fTN\roI\ro|\roL\ro{\roO\rov\rot\nAOGx\bTA\nzk#+\vUmGx*\fHD\fHS\fH\\\fIa\fHJ\fIk\fHZ\fHM\fHR\fHe\fHD\fH^\fIg\fHM\fHy\fIa\fH[\fIk\fHH\fIa\fH\\\fHp\fHR\fHD\fHy\fHR\fH\\\fIl\fHT\fHn\fH@\fHn\fHK\fHS\fHH\fHT\fIa\fHI\fHR\fHF\fHD\fHR\fHT\fIa\fHY\fIl\fHy\fHR\fH\\\fHT\fHn\fHT\fIa\fHy\fH\\\fHO\fHT\fHR\fHB\fH{\fIa\fH\\\fIl\fHv\fHS\fHs\fIa\fHL\fIg\fHn\fHY\fHS\fHp\fIa\fHr\fHR\fHD\fHi\fHB\fIk\fH\\\fHS\fHy\fHR\fHY\fHS\fHA\fHS\fHD\fIa\fHD\fH{\fHR\fHM\fHS\fHC\fHR\fHm\fHy\fIa\fHC\fIg\fHn\fHy\fHS\fHT\fIm\fH\\\fHy\fIa\fH[\fHR\fHF\fHU\fIm\fHm\fHv\fHH\fIl\fHF\fIa\fH\\\fH@\fHn\fHK\fHD\fHs\fHS\fHF\fIa\fHF\fHO\fIl\fHy\fIa\fH\\\fHS\fHy\fIk\fHs\fHF\fIa\fH\\\fHR\fH\\\fHn\fHA\fHF\fIa\fH\\\fHR\fHF\fIa\fHH\fHB\fHR\fH^\fHS\fHy\fIg\fHn\fH\\\fHG\fHP\fIa\fHH\fHR\fH\\\fHD\fHS\fH\\\fIa\fHB\fHR\fHO\fH^\fHS\fHB\fHS\fHs\fIk\fHMgfp`qjswjlm!#`lmwfmw>!gl`vnfmw-ol`bwjlm-sqlw-dfwFofnfmwpAzWbdMbnf+?"GL@WZSF#kwno= ?kwno#?nfwb#`kbqpfw>!vwe.;!=9vqo!#`lmwfmw>!kwws9,,-`pp!#qfo>!pwzofpkffw!pwzof#wzsf>!wf{w,`pp!=wzsf>!wf{w,`pp!#kqfe>!t0-lqd,2:::,{kwno!#{nowzsf>!wf{w,ibubp`qjsw!#nfwklg>!dfw!#b`wjlm>!ojmh#qfo>!pwzofpkffw!##>#gl`vnfmw-dfwFofnfmwwzsf>!jnbdf,{.j`lm!#,=`foosbggjmd>!3!#`foops-`pp!#wzsf>!wf{w,`pp!#?,b=?,oj=?oj=?b#kqfe>!!#tjgwk>!2!#kfjdkw>!2!!=?b#kqfe>!kwws9,,ttt-pwzof>!gjpsobz9mlmf8!=bowfqmbwf!#wzsf>!bssoj.,,T0@,,GWG#[KWNO#2-3#foopsb`jmd>!3!#`foosbg#wzsf>!kjggfm!#ubovf>!,b=%maps8?psbm#qlof>!p ?jmsvw#wzsf>!kjggfm!#obmdvbdf>!IbubP`qjsw!##gl`vnfmw-dfwFofnfmwpAd>!3!#`foopsb`jmd>!3!#zsf>!wf{w,`pp!#nfgjb>!wzsf>$wf{w,ibubp`qjsw$tjwk#wkf#f{`fswjlm#le#zsf>!wf{w,`pp!#qfo>!pw#kfjdkw>!2!#tjgwk>!2!#>$(fm`lgfVQJ@lnslmfmw+?ojmh#qfo>!bowfqmbwf!# algz/#wq/#jmsvw/#wf{wnfwb#mbnf>!qlalwp!#`lmnfwklg>!slpw!#b`wjlm>!= ?b#kqfe>!kwws9,,ttt-`pp!#qfo>!pwzofpkffw!#?,gju=?,gju=?gju#`obppobmdvbdf>!ibubp`qjsw!=bqjb.kjggfm>!wqvf!=.[?qjsw!#wzsf>!wf{w,ibubpo>38~*+*8 +evm`wjlm+*xab`hdqlvmg.jnbdf9#vqo+,b=?,oj=?oj=?b#kqfe>!k\n\n?oj=?b#kqfe>!kwws9,,bwlq!#bqjb.kjggfm>!wqv=#?b#kqfe>!kwws9,,ttt-obmdvbdf>!ibubp`qjsw!#,lswjlm= ?lswjlm#ubovf,gju=?,gju=?gju#`obpp>qbwlq!#bqjb.kjggfm>!wqf>+mft#Gbwf*-dfwWjnf+*slqwvdv/Fp#+gl#Aqbpjo*<R=l<_<\\<Q<T<[<\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n=`<R<]=l<\\<[<R<^<\\<Q<T=c=l<Y<_<T=m=n=l<\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n<T<R<]=c<[<\\=n<Y<W=`<Q<\\?"GL@WZSF#kwno#SVAOJ@#!mw.Wzsf!#`lmwfmw>!wf{w,?nfwb#kwws.frvju>!@lmwfqbmpjwjlmbo,,FM!#!kwws9?kwno#{nomp>!kwws9,,ttt.,,T0@,,GWG#[KWNO#2-3#WGWG,{kwno2.wqbmpjwjlmbo,,ttt-t0-lqd,WQ,{kwno2,sf#>#$wf{w,ibubp`qjsw$8?nfwb#mbnf>!gfp`qjswjlmsbqfmwMlgf-jmpfqwAfelqf?jmsvw#wzsf>!kjggfm!#mbip!#wzsf>!wf{w,ibubp`qj+gl`vnfmw*-qfbgz+evm`wjp`qjsw#wzsf>!wf{w,ibubpjnbdf!#`lmwfmw>!kwws9,,VB.@lnsbwjaof!#`lmwfmw>wno8#`kbqpfw>vwe.;!#,= ojmh#qfo>!pklqw`vw#j`lm?ojmh#qfo>!pwzofpkffw!#?,p`qjsw= ?p`qjsw#wzsf>>#gl`vnfmw-`qfbwfFofnfm?b#wbqdfw>!\\aobmh!#kqfe>#gl`vnfmw-dfwFofnfmwpAjmsvw#wzsf>!wf{w!#mbnf>b-wzsf#>#$wf{w,ibubp`qjmsvw#wzsf>!kjggfm!#mbnfkwno8#`kbqpfw>vwe.;!#,=gwg!= ?kwno#{nomp>!kwws.,,T0@,,GWG#KWNO#7-32#WfmwpAzWbdMbnf+$p`qjsw$*jmsvw#wzsf>!kjggfm!#mbn?p`qjsw#wzsf>!wf{w,ibubp!#pwzof>!gjpsobz9mlmf8!=gl`vnfmw-dfwFofnfmwAzJg+>gl`vnfmw-`qfbwfFofnfmw+$#wzsf>$wf{w,ibubp`qjsw$jmsvw#wzsf>!wf{w!#mbnf>!g-dfwFofnfmwpAzWbdMbnf+pmj`bo!#kqfe>!kwws9,,ttt-@,,GWG#KWNO#7-32#Wqbmpjw?pwzof#wzsf>!wf{w,`pp!= ?pwzof#wzsf>!wf{w,`pp!=jlmbo-gwg!= ?kwno#{nomp>kwws.frvju>!@lmwfmw.Wzsfgjmd>!3!#`foopsb`jmd>!3!kwno8#`kbqpfw>vwe.;!#,= #pwzof>!gjpsobz9mlmf8!=??oj=?b#kqfe>!kwws9,,ttt-#wzsf>$wf{w,ibubp`qjsw$=<X<Y=c=n<Y<W=`<Q<R=m=n<T=m<R<R=n<^<Y=n=m=n<^<T<T<S=l<R<T<[<^<R<X=m=n<^<\\<]<Y<[<R<S<\\=m<Q<R=m=n<T\fHF\fIm\fHT\fIa\fHH\fHS\fHy\fHR\fHy\fHR\fHn\fH{\fIa\fH\\\fIk\fHT\fHe\fHD\fIa\fHU\fIg\fHn\fHD\fIk\fHY\fHS\fHK\fHR\fHD\fHT\fHA\fHR\fHG\fHS\fHy\fIa\fHT\fHS\fHn\fH{\fHT\fIm\fH\\\fHy\fIa\fH[\fHS\fHH\fHy\fIe\fHF\fIl\fH\\\fHR\fHk\fHs\fHY\fHS\fHp\fIa\fHr\fHR\fHF\fHD\fHy\fHR\fH\\\fIa\fH\\\fHY\fHR\fHd\fHT\fHy\fIa\fH\\\fHS\fHC\fHH\fHR',"\u06F7%\u018C'T%\x85'W%\xD7%O%g%\xA6&\u0193%\u01E5&>&*&'&^&\x88\u0178\u0C3E&\u01AD&\u0192&)&^&%&'&\x82&P&1&\xB1&3&]&m&u&E&t&C&\xCF&V&V&/&>&6&\u0F76\u177Co&p&@&E&M&P&x&@&F&e&\xCC&7&:&(&D&0&C&)&.&F&-&1&(&L&F&1\u025E*\u03EA\u21F3&\u1372&K&;&)&E&H&P&0&?&9&V&\x81&-&v&a&,&E&)&?&=&'&'&B&\u0D2E&\u0503&\u0316*&*8&%&%&&&%,)&\x9A&>&\x86&7&]&F&2&>&J&6&n&2&%&?&\x8E&2&6&J&g&-&0&,&*&J&*&O&)&6&(&<&B&N&.&P&@&2&.&W&M&%\u053C\x84(,(<&,&\u03DA&\u18C7&-&,(%&(&%&(\u013B0&X&D&\x81&j&'&J&(&.&B&3&Z&R&h&3&E&E&<\xC6-\u0360\u1EF3&%8?&@&,&Z&@&0&J&,&^&x&_&6&C&6&C\u072C\u2A25&f&-&-&-&-&,&J&2&8&z&8&C&Y&8&-&d&\u1E78\xCC-&7&1&F&7&t&W&7&I&.&.&^&=\u0F9C\u19D3&8(>&/&/&\u077B')'\u1065')'%@/&0&%\u043E\u09C0*&*@&C\u053D\u05D4\u0274\u05EB4\u0DD7\u071A\u04D16\u0D84&/\u0178\u0303Z&*%\u0246\u03FF&\u0134&1\xA8\u04B4\u0174",Vu,"AAAAKKLLKKKKKJJIHHIHHGGFF"),Fg(Wu,Vu);function qf(k){this.data=new Int8Array,this.offset=0,this.data=k}d(qf,"InputStream");function Ku(k,R,D,U){if(k.input===null)return-1;let N=k.input,rt=Math.min(N.offset+U,N.data.length),gt=rt-N.offset;return R.set(N.data.subarray(N.offset,rt),D),N.offset+=gt,gt}d(Ku,"readInput");function Dg(k){k.input=new qf(new Int8Array)}d(Dg,"closeInput");function Pg(k){let R=k.length,D=new Int8Array(R);for(let U=0;U<R;++U)D[U]=k.charCodeAt(U);return D}d(Pg,"toUsAsciiBytes");function Xu(k){let R=k.length,D=new Int32Array(R);for(let U=0;U<R;++U)D[U]=k.charCodeAt(U);return D}d(Xu,"toUtf8Runes");function ye(k,R){if(R>=0)return R;throw k.runningState>=0&&(k.runningState=R),Error("Brotli error code: "+R)}d(ye,"makeError");function Bg(k,R){let D=new Bl;if(D.input=new qf(k),b(D),R){let Ct=R.customDictionary;Ct&&g(D,Ct)}let U=0,N=[];for(;;){let Ct=new Int8Array(16384);if(N.push(Ct),D.output=Ct,D.outputOffset=0,D.outputLength=16384,D.outputUsed=0,At(D),U+=D.outputUsed,D.outputUsed<16384)break}w(D),Dg(D);let rt=new Int8Array(U),gt=0;for(let Ct=0;Ct<N.length;++Ct){let Nt=N[Ct],Jt=Math.min(U,gt+16384)-gt;Jt<16384?rt.set(Nt.subarray(0,Jt),gt):rt.set(Nt,gt),gt+=Jt}return rt}return d(Bg,"decode"),Bg},"makeBrotliDecode"),fw=ow(),hw=class extends Mi{static{d(this,"BrotliStream")}#t=!0;constructor(t,e){super(e),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(),e=fw(new Int8Array(t.buffer,t.byteOffset,t.length));this.buffer=new Uint8Array(e.buffer,e.byteOffset,e.length),this.bufferLength=this.buffer.length,this.eof=!0}async getImageData(t,e){let i=await this.asyncGetBytes();return i?i.length<=t?i:i.subarray(0,t):this.getBytes(t)}async asyncGetBytes(){let{decompressed:t,compressed:e}=await this.asyncGetBytesFromDecompressionStream("brotli");return t||(this.#t=!1,this.stream=new Me(e,0,e.length,this.stream.dict),this.reset(),null)}get isAsync(){return this.#t}};d(cw,"JBig2");uw=cw,Ko=class en{static{d(this,"WasmImage")}static#t=null;static#e=new Set;static#i=!0;static#a=!0;static#s=null;#n=null;_filename=null;_noWasmFilename=null;static setOptions({handler:e,useWasm:i,useWorkerFetch:a,wasmUrl:s}){en.#i=i,en.#a=a,en.#s=s,a||(en.#t=e)}static get instance(){te("Abstract getter `instance` accessed")}static cleanup(){for(let e of en.#e)e.#n=null}constructor(e=!1){e&&en.#e.add(this)}_getModule(e){return this.#n}async decode(e,i){te("Abstract method `decode` called")}},gd=class extends Li{static{d(this,"Jbig2Error")}constructor(t){super(t,"Jbig2Error")}},Sp=class Cp extends Ko{static{d(this,"JBig2CCITTFaxImage")}_filename="jbig2.wasm";_noWasmFilename="jbig2_nowasm_fallback.js";static get instance(){return ht(this,"instance",new Cp(!0))}async decode(e,i,a,s,n){let r=await this._getModule(uw);if(!r)throw new gd("JBig2 failed to initialize");let l,o;try{let f=e.length;if(l=r._malloc(f),r.writeArrayToMemory(e,l),n)r._ccitt_decode(l,f,i,a,n.K,+!!n.EndOfLine,+!!n.EncodedByteAlign,+!!n.BlackIs1,n.Columns,n.Rows);else{let c=s?s.length:0;c>0&&(o=r._malloc(c),r.writeArrayToMemory(s,o)),r._jbig2_decode(l,f,i,a,o,c)}if(!r.imageData)throw new gd("Unknown error");let{imageData:h}=r;return r.imageData=null,h}finally{l&&r._free(l),o&&r._free(o)}}},dw=class extends Mi{static{d(this,"CCITTFaxStream")}constructor(t,e,i){super(e),this.stream=t,this.maybeLength=e,this.dict=t.dict,i instanceof _||(i=_.empty),this.params={K:i.get("K")||0,EndOfLine:!!i.get("EndOfLine"),EncodedByteAlign:!!i.get("EncodedByteAlign"),Columns:i.get("Columns")||1728,Rows:i.get("Rows")||0,EndOfBlock:!!(i.get("EndOfBlock")??!0),BlackIs1:!!i.get("BlackIs1")}}get bytes(){return ht(this,"bytes",this.stream.getBytes(this.maybeLength))}get isImageStream(){return!0}get isAsyncDecoder(){return!0}async decodeImage(t,e,i){return this.eof||=(t??=this.stream.isAsync&&await this.stream.asyncGetBytes()||this.bytes,this.buffer=await Sp.instance.decode(t,this.dict.get("W","Width"),this.dict.get("H","Height"),null,this.params),this.bufferLength=this.buffer.length,!0),this.buffer}},bd=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pw=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),mw=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),gw=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],bw=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],wd=class extends Mi{static{d(this,"FlateStream")}#t=!0;constructor(t,e){super(e),this.stream=t,this.dict=t.dict;let i=t.getByte(),a=t.getByte();if(i===-1||a===-1)throw new V(`Invalid header in flate stream: ${i}, ${a}`);if((i&15)!=8)throw new V(`Unknown compression method in flate stream: ${i}, ${a}`);if(((i<<8)+a)%31!=0)throw new V(`Bad FCHECK in flate stream: ${i}, ${a}`);if(a&32)throw new V(`FDICT bit set in flate stream: ${i}, ${a}`);this.codeSize=0,this.codeBuf=0}async getImageData(t,e){let i=await this.asyncGetBytes();return i?i.length<=t?i:i.subarray(0,t):this.getBytes(t)}async asyncGetBytes(){let{decompressed:t,compressed:e}=await this.asyncGetBytesFromDecompressionStream("deflate");return t||(this.#t=!1,this.stream=new Me(e,2,e.length,this.stream.dict),this.reset(),null)}get isAsync(){return this.#t}getBits(t){let e=this.stream,i=this.codeSize,a=this.codeBuf,s;for(;i<t;){if((s=e.getByte())===-1)throw new V("Bad encoding in flate stream");a|=s<<i,i+=8}return s=a&(1<<t)-1,this.codeBuf=a>>t,this.codeSize=i-=t,s}getCode(t){let e=this.stream,i=t[0],a=t[1],s=this.codeSize,n=this.codeBuf,r;for(;s<a&&(r=e.getByte())!==-1;)n|=r<<s,s+=8;let l=i[n&(1<<a)-1],o=l>>16,f=l&65535;if(o<1||s<o)throw new V("Bad encoding in flate stream");return this.codeBuf=n>>o,this.codeSize=s-o,f}generateHuffmanTable(t){let e=t.length,i=0,a=0;for(;a<e;++a)t[a]>i&&(i=t[a]);let s=1<<i,n=new Int32Array(s);for(let r=1,l=0,o=2;r<=i;++r,l<<=1,o<<=1)for(let f=0;f<e;++f)if(t[f]===r){let h=0,c=l;for(a=0;a<r;++a)h=h<<1|c&1,c>>=1;for(a=h;a<s;a+=o)n[a]=r<<16|f;++l}return[n,i]}#e(t){de(t),this.eof=!0}readBlock(){let t,e,i,a=this.stream;try{e=this.getBits(3)}catch(o){this.#e(o.message);return}if(e&1&&(this.eof=!0),e>>=1,e===0){let o;if((o=a.getByte())===-1){this.#e("Bad block header in flate stream");return}let f=o;if((o=a.getByte())===-1||(f|=o<<8,(o=a.getByte())===-1)){this.#e("Bad block header in flate stream");return}let h=o;if((o=a.getByte())===-1){this.#e("Bad block header in flate stream");return}if(h|=o<<8,h!==(~f&65535)&&(f!==0||h!==0))throw new V("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;let c=this.bufferLength,u=c+f;if(t=this.ensureBuffer(u),this.bufferLength=u,f===0)a.peekByte()===-1&&(this.eof=!0);else{let p=a.getBytes(f);t.set(p,c),p.length<f&&(this.eof=!0)}return}let s,n;if(e===1)s=gw,n=bw;else if(e===2){let o=this.getBits(5)+257,f=this.getBits(5)+1,h=this.getBits(4)+4,c=new Uint8Array(bd.length),u=0;for(;u<h;++u)c[bd[u]]=this.getBits(3);let p=this.generateHuffmanTable(c);i=0,u=0;let m=o+f,g=new Uint8Array(m),b,w,v;for(;u<m;){let y=this.getCode(p);if(y===16)b=2,w=3,v=i;else if(y===17)b=3,w=3,v=i=0;else if(y===18)b=7,w=11,v=i=0;else{g[u++]=i=y;continue}let x=this.getBits(b)+w;for(;x-- >0;)g[u++]=v}s=this.generateHuffmanTable(g.subarray(0,o)),n=this.generateHuffmanTable(g.subarray(o,m))}else throw new V("Unknown block type in flate stream");t=this.buffer;let r=t?t.length:0,l=this.bufferLength;for(;;){let o=this.getCode(s);if(o<256){l+1>=r&&(t=this.ensureBuffer(l+1),r=t.length),t[l++]=o;continue}if(o===256){this.bufferLength=l;return}o-=257,o=pw[o];let f=o>>16;f>0&&(f=this.getBits(f)),i=(o&65535)+f,o=this.getCode(n),o=mw[o],f=o>>16,f>0&&(f=this.getBits(f));let h=(o&65535)+f;l+i>=r&&(t=this.ensureBuffer(l+i),r=t.length);for(let c=0;c<i;++c,++l)t[l]=t[l-h]}}},ww=class Eh extends Mi{static{d(this,"Jbig2Stream")}constructor(e,i,a){super(i),this.stream=e,this.dict=e.dict,this.maybeLength=i,this.params=a}get bytes(){return ht(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}get isAsyncDecoder(){return!0}get isImageStream(){return!0}static stripFileHeader(e){if(e.length>=9&&e[0]===151&&e[1]===74&&e[2]===66&&e[3]===50&&e[4]===13&&e[5]===10&&e[6]===26&&e[7]===10){let i=e[8]&2?9:13;return e.subarray(i)}return e}async decodeImage(e,i,a){if(this.eof)return this.buffer;e=Eh.stripFileHeader(e||this.bytes);let s=null;if(this.params instanceof _){let n=this.params.get("JBIG2Globals");n instanceof Bt&&(s=Eh.stripFileHeader(n.getBytes()))}return this.buffer=await Sp.instance.decode(e,this.dict.get("Width"),this.dict.get("Height"),s),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}};d(yw,"OpenJPEG");kw=yw,$l=class extends Li{static{d(this,"JpxError")}constructor(t){super(t,"JpxError")}},Ip=class Tp extends Ko{static{d(this,"JpxImage")}_filename="openjpeg.wasm";_noWasmFilename="openjpeg_nowasm_fallback.js";static get instance(){return ht(this,"instance",new Tp(!0))}async decode(e,{numComponents:i=4,isIndexedColormap:a=!1,smaskInData:s=!1,reducePower:n=0}={}){let r=await this._getModule(kw);if(!r)throw new $l("OpenJPEG failed to initialize");let l;try{let o=e.length;if(l=r._malloc(o),r.writeArrayToMemory(e,l),r._jp2_decode(l,o,i>0?i:0,!!a,!!s,n)){let{errorMessages:h}=r;throw h?(delete r.errorMessages,new $l(h)):new $l("Unknown error")}let{imageData:f}=r;return r.imageData=null,f}finally{l&&r._free(l)}}static parseImageProperties(e){let i=e.getByte();for(;i>=0;){let a=i;if(i=e.getByte(),(a<<8|i)==65361){e.skip(4);let s=e.getInt32()>>>0,n=e.getInt32()>>>0,r=e.getInt32()>>>0,l=e.getInt32()>>>0;e.skip(16);let o=e.getUint16();return{width:s-r,height:n-l,bitsPerComponent:8,componentsCount:o}}}throw new $l("No size marker found in JPX stream")}},vw=class extends Mi{static{d(this,"JpxStream")}constructor(t,e){super(e),this.stream=t,this.dict=t.dict,this.maybeLength=e}get bytes(){return ht(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}get isAsyncDecoder(){return!0}async decodeImage(t,e,i){return this.eof||=(t||=this.bytes,this.buffer=await Ip.instance.decode(t,i),this.bufferLength=this.buffer.length,!0),this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}get isImageStream(){return!0}},yd=class extends Mi{static{d(this,"LZWStream")}constructor(t,e,i){super(e),this.stream=t,this.dict=t.dict,this.cachedData=0,this.bitsCached=0;let a=4096,s={earlyChange:i,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(a),dictionaryLengths:new Uint16Array(a).fill(1,0,256),dictionaryPrevCodes:new Uint16Array(a),currentSequence:new Uint8Array(a),currentSequenceLength:0};for(let n=0;n<256;++n)s.dictionaryValues[n]=n;this.lzwState=s}readBits(t){let e=this.bitsCached,i=this.cachedData;for(;e<t;){let a=this.stream.getByte();if(a===-1)return this.eof=!0,null;i=i<<8|a,e+=8}return this.bitsCached=e-=t,this.cachedData=i,i>>>e&(1<<t)-1}readBlock(){let t=1024,e,i,a,{lzwState:s}=this,n=s.earlyChange,r=s.nextCode,l=s.dictionaryValues,o=s.dictionaryLengths,f=s.dictionaryPrevCodes,h=s.codeLength,c=s.prevCode,u=s.currentSequence,p=s.currentSequenceLength,m=0,g=this.bufferLength,b=this.ensureBuffer(this.bufferLength+t);for(e=0;e<512;e++){let w=this.readBits(h),v=p>0;if(w<256)u[0]=w,p=1;else if(w>=258)if(w<r)for(p=o[w],i=p-1,a=w;i>=0;i--)u[i]=l[a],a=f[a];else u[p++]=u[0];else if(w===256){h=9,r=258,p=0;continue}else{this.eof=!0,delete this.lzwState;break}if(v&&(f[r]=c,o[r]=o[c]+1,l[r]=u[0],r++,h=r+n&r+n-1?h:Math.min(Math.log(r+n)/.6931471805599453+1,12)|0),c=w,m+=p,t<m){do t+=512;while(t<m);b=this.ensureBuffer(this.bufferLength+t)}for(i=0;i<p;i++)b[g++]=u[i]}s.nextCode=r,s.codeLength=h,s.prevCode=c,s.currentSequenceLength=p,this.bufferLength=g}},kd=class extends Mi{static{d(this,"PredictorStream")}constructor(t,e,i){if(super(e),!(i instanceof _))return t;let a=this.predictor=i.get("Predictor")||1;if(a<=1)return t;if(a!==2&&(a<10||a>15))throw new V(`Unsupported predictor: ${a}`);this.readBlock=a===2?this.readBlockTiff:this.readBlockPng,this.stream=t,this.dict=t.dict;let s=this.colors=i.get("Colors")||1,n=this.bits=i.get("BPC","BitsPerComponent")||8,r=this.columns=i.get("Columns")||1;return this.pixBytes=s*n+7>>3,this.rowBytes=r*s*n+7>>3,this}readBlockTiff(){let t=this.rowBytes,e=this.bufferLength,i=this.ensureBuffer(e+t),a=this.bits,s=this.colors,n=this.stream.getBytes(t);if(this.eof=!n.length,this.eof)return;let r=0,l=0,o=0,f=0,h=e,c;if(a===1&&s===1)for(c=0;c<t;++c){let u=n[c]^r;u^=u>>1,u^=u>>2,u^=u>>4,r=(u&1)<<7,i[h++]=u}else if(a===8){for(c=0;c<s;++c)i[h++]=n[c];for(;c<t;++c)i[h]=i[h-s]+n[c],h++}else if(a===16){let u=s*2;for(c=0;c<u;++c)i[h++]=n[c];for(;c<t;c+=2){let p=((n[c]&255)<<8)+(n[c+1]&255)+((i[h-u]&255)<<8)+(i[h-u+1]&255);i[h++]=p>>8&255,i[h++]=p&255}}else{let u=new Uint8Array(s+1),p=(1<<a)-1,m=0,g=e,b=this.columns;for(c=0;c<b;++c)for(let w=0;w<s;++w)o<a&&(r=r<<8|n[m++]&255,o+=8),u[w]=u[w]+(r>>o-a)&p,o-=a,l=l<<a|u[w],f+=a,f>=8&&(i[g++]=l>>f-8&255,f-=8);f>0&&(i[g++]=(l<<8-f)+(r&(1<<8-f)-1))}this.bufferLength+=t}readBlockPng(){let t=this.rowBytes,e=this.pixBytes,i=this.stream.getByte(),a=this.stream.getBytes(t);if(this.eof=!a.length,this.eof)return;let s=this.bufferLength,n=this.ensureBuffer(s+t),r=n.subarray(s-t,s);r.length===0&&(r=new Uint8Array(t));let l,o=s,f,h;switch(i){case 0:for(l=0;l<t;++l)n[o++]=a[l];break;case 1:for(l=0;l<e;++l)n[o++]=a[l];for(;l<t;++l)n[o]=n[o-e]+a[l]&255,o++;break;case 2:for(l=0;l<t;++l)n[o++]=r[l]+a[l]&255;break;case 3:for(l=0;l<e;++l)n[o++]=(r[l]>>1)+a[l];for(;l<t;++l)n[o]=(r[l]+n[o-e]>>1)+a[l]&255,o++;break;case 4:for(l=0;l<e;++l)f=r[l],h=a[l],n[o++]=f+h;for(;l<t;++l){f=r[l];let c=r[l-e],u=n[o-e],p=u+f-c,m=p-u;m<0&&(m=-m);let g=p-f;g<0&&(g=-g);let b=p-c;b<0&&(b=-b),h=a[l],m<=g&&m<=b?n[o++]=u+h:g<=b?n[o++]=f+h:n[o++]=c+h}break;default:throw new V(`Unsupported predictor: ${i}`)}this.bufferLength+=t}},jw=class extends Mi{static{d(this,"RunLengthStream")}constructor(t,e){super(e),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(2);if(t.length<2||t[0]===128){this.eof=!0;return}let e,i=this.bufferLength,a=t[0];if(a<128){if(e=this.ensureBuffer(i+a+1),e[i++]=t[1],a>0){let s=this.stream.getBytes(a);e.set(s,i),i+=a}}else a=257-a,e=this.ensureBuffer(i+a+1),e.fill(t[1],i,i+a),i+=a;this.bufferLength=i}};d(qw,"getInlineImageCacheKey");Is=class{static{d(this,"Parser")}#t=null;#e=0;constructor({lexer:t,xref:e,allowStreams:i=!1,recoveryMode:a=!1}){this.lexer=t,this.xref=e,this.allowStreams=i,this.recoveryMode=a,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof hi&&this.buf2.cmd==="ID"?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(t){if(t instanceof xe)throw t;return!1}}getObj(t=null){let e=this.buf1;if(this.shift(),e instanceof hi)switch(e.cmd){case"BI":return this.makeInlineImage(t);case"[":let i=[];for(;!ci(this.buf1,"]")&&this.buf1!==ki;)i.push(this.getObj(t));if(this.buf1===ki){if(this.recoveryMode)return i;throw new kh("End of file inside array.")}return this.shift(),i;case"<<":let a=new _(this.xref);for(;!ci(this.buf1,">>")&&this.buf1!==ki;){if(!(this.buf1 instanceof Z)){de("Malformed dictionary: key must be a name object"),this.shift();continue}let s=this.buf1.name;if(this.shift(),this.buf1===ki)break;a.set(s,this.getObj(t))}if(this.buf1===ki){if(this.recoveryMode)return a;throw new kh("End of file inside dictionary.")}return ci(this.buf2,"stream")?this.allowStreams?this.makeStream(a,t):a:(this.shift(),a);default:return e}if(Number.isInteger(e)){if(Number.isInteger(this.buf1)&&ci(this.buf2,"R")){let i=it.get(e,this.buf1);return this.shift(),this.shift(),i}return e}return typeof e=="string"&&t?t.decryptString(e):e}findDefaultInlineStreamEnd(t){let{knownCommands:e}=this.lexer,i=t.pos,a=0,s,n;for(;(s=t.getByte())!==-1;)if(a===0)a=+(s===69);else if(a===1)a=s===73?2:0;else if(s===32||s===10||s===13){n=t.pos;let l=t.peekBytes(15),o=l.length;if(o===0)break;for(let c=0;c<o;c++)if(s=l[c],(s!==0||l[c+1]===0)&&s!==10&&s!==13&&(s<32||s>127)){a=0;break}if(a!==2)continue;if(!e){E("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let f=new Ma(new Me(t.peekBytes(75)),e);f._hexStringWarn=()=>{};let h=0;for(;;){let c=f.getObj();if(c===ki){a=0;break}if(c instanceof hi){let u=e[c.cmd];if(!u){a=0;break}if(u.variableArgs?h<=u.numArgs:h===u.numArgs)break;h=0}else h++}if(a===2)break}else a=0;s===-1&&(E("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),n&&(E('... trying to recover by using the last "EI" occurrence.'),t.skip(-(t.pos-n))));let r=4;return t.skip(-r),s=t.peekByte(),t.skip(r),ya(s)||r--,t.pos-r-i}findDCTDecodeInlineStreamEnd(t){let e=t.pos,i=!1,a,s;for(;(a=t.getByte())!==-1;)if(a===255){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:s=t.getUint16(),s>2?t.skip(s-2):t.skip(-2)}if(i)break}let n=t.pos-e;return a===-1?(E("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),t.skip(-n),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),n)}findASCII85DecodeInlineStreamEnd(t){let e=t.pos,i;for(;(i=t.getByte())!==-1;)if(i===126){let s=t.pos;for(i=t.peekByte();ya(i);)t.skip(),i=t.peekByte();if(i===62){t.skip();break}if(t.pos>s){let n=t.peekBytes(2);if(n[0]===69&&n[1]===73)break}}let a=t.pos-e;return i===-1?(E("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-a),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),a)}findASCIIHexDecodeInlineStreamEnd(t){let e=t.pos,i;for(;(i=t.getByte())!==-1&&i!==62;);let a=t.pos-e;return i===-1?(E("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-a),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),a)}inlineStreamSkipEI(t){let e=0,i;for(;(i=t.getByte())!==-1;)if(e===0)e=+(i===69);else if(e===1)e=i===73?2:0;else if(e===2)break}makeInlineImage(t){let e=this.lexer,i=e.stream,a=new _(this.xref),s;for(;!ci(this.buf1,"ID")&&this.buf1!==ki;){if(!(this.buf1 instanceof Z))throw new V("Dictionary key must be a name object");let c=this.buf1.name;if(this.shift(),this.buf1===ki)break;a.set(c,this.getObj(t))}e.beginInlineImagePos!==-1&&(s=i.pos-e.beginInlineImagePos);let n=a.get("F","Filter"),r;if(n instanceof Z)r=n.name;else if(Array.isArray(n)){let c=this.#i(n[0]);c instanceof Z&&(r=c.name)}let l=i.pos,o;switch(r){case"DCT":case"DCTDecode":o=this.findDCTDecodeInlineStreamEnd(i);break;case"A85":case"ASCII85Decode":o=this.findASCII85DecodeInlineStreamEnd(i);break;case"AHx":case"ASCIIHexDecode":o=this.findASCIIHexDecodeInlineStreamEnd(i);break;default:o=this.findDefaultInlineStreamEnd(i)}let f;if(o<1e3&&s>0){let c=i.pos;i.pos=e.beginInlineImagePos,f=qw(i.getBytes(s+o)),i.pos=c;let u=this.#t?.get(f);if(u)return this.buf2=hi.get("EI"),this.shift(),u.reset(),u}let h=i.makeSubStream(l,o,a);return t&&!this.#a(n)&&(h=t.createStream(h,o)),h=this.filter(h,a,o,t),h.dict=a,f&&(h.cacheKey=`inline_img_${++this.#e}`,(this.#t??=new Map).set(f,h)),this.buf2=hi.get("EI"),this.shift(),h}#i(t){return this.xref?this.xref.fetchIfRef(t):t}#a(t){return Array.isArray(t)?t.some(e=>Ht(this.#i(e),"Crypt")):Ht(t,"Crypt")}#s(t){let{stream:e}=this.lexer;e.pos=t;let i=new Uint8Array([101,110,100]),a=i.length,s=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],n=9-a;for(;e.pos<e.end;){let r=e.peekBytes(2048),l=r.length-9;if(l<=0)break;let o=0;for(;o<l;){let f=0;for(;f<a&&r[o+f]===i[f];)f++;if(f>=a){let h=!1;for(let c of s){let u=c.length,p=0;for(;p<u&&r[o+f+p]===c[p];)p++;if(p>=n){h=!0;break}if(p>=u){let m=r[o+f+p];ya(m)&&(de(`Found "${Bi([...i,...c])}" when searching for endstream command.`),h=!0);break}}if(h)return e.pos+=o,e.pos-t}o++}e.pos+=l}return-1}makeStream(t,e){let i=this.lexer,a=i.stream;i.skipToNextLine();let s=a.pos-1,n=t.get("Length");if(Number.isInteger(n)||(de(`Bad length "${n&&n.toString()}" in stream.`),n=0),a.pos=s+n,i.nextChar(),this.tryShift()&&ci(this.buf2,"endstream"))this.shift();else{if(n=this.#s(s),n<0)throw new V("Missing endstream command.");i.nextChar(),this.shift(),this.shift()}this.shift(),a=a.makeSubStream(s,n,t);let r=t.get("F","Filter");return e&&!this.#a(r)&&(a=e.createStream(a,n)),a=this.filter(a,t,n,e),a.dict=t,a}filter(t,e,i,a=null){let s=e.get("F","Filter"),n=e.get("DP","DecodeParms");if(s instanceof Z)return Array.isArray(n)&&E("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(t,s.name,i,n,a);let r=i;if(Array.isArray(s)){let l=s,o=n;for(let f=0,h=l.length;f<h;++f){if(s=this.#i(l[f]),!(s instanceof Z))throw new V(`Bad filter name "${s}"`);n=null,Array.isArray(o)&&f in o&&(n=this.#i(o[f])),t=this.makeFilter(t,s.name,r,n,a),r=null}}return t}makeFilter(t,e,i,a,s=null){if(i===0)return E(`Empty "${e}" stream.`),new Ch;try{switch(e){case"Fl":case"FlateDecode":return a?new kd(new wd(t,i),i,a):new wd(t,i);case"LZW":case"LZWDecode":let n=1;return a?(a.has("EarlyChange")&&(n=a.get("EarlyChange")),new kd(new yd(t,i,n),i,a)):new yd(t,i,n);case"DCT":case"DCTDecode":return new Vo(t,i,a);case"JPX":case"JPXDecode":return new vw(t,i);case"A85":case"ASCII85Decode":return new rw(t,i);case"AHx":case"ASCIIHexDecode":return new lw(t,i);case"CCF":case"CCITTFaxDecode":return new dw(t,i,a);case"RL":case"RunLengthDecode":return new jw(t,i);case"JBIG2Decode":return new ww(t,i,a);case"BrotliDecode":return new hw(t,i);case"Crypt":{if(!s)return E('Filter "Crypt" is missing a cipher transform.'),t;let r=a instanceof _?a.get("Name"):null,l=r instanceof Z?r:Z.get("Identity");return s.createStream(t,i,l)}}return E(`Filter "${e}" is not supported.`),t}catch(n){if(n instanceof xe)throw n;return E(`Invalid stream: "${n}"`),new Ch}}},Bn=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];d(Tf,"toHexDigit");Ma=class{static{d(this,"Lexer")}constructor(t,e=null){this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=e,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar,e=0,i=1;if(t===45?(i=-1,t=this.nextChar(),t===45&&(t=this.nextChar())):t===43&&(t=this.nextChar()),t===10||t===13)do t=this.nextChar();while(t===10||t===13);if(t===46&&(e=10,t=this.nextChar()),t<48||t>57){let s=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if(ya(t)||t===40||t===60||t===-1)return de(`Lexer.getNumber - "${s}".`),0;throw new V(s)}let a=t-48;for(;(t=this.nextChar())>=0;)if(t>=48&&t<=57){let s=t-48;e!==0&&(e*=10),a=a*10+s}else if(t===46)if(e===0)e=1;else break;else if(t===45)E("Badly formatted number: minus sign in the middle");else break;return e!==0&&(a/=e),i*a}getString(){let t=1,e=!1,i=this.strBuf;i.length=0;let a=this.nextChar();for(;;){let s=!1;switch(a|0){case-1:E("Unterminated string"),e=!0;break;case 40:++t,i.push("(");break;case 41:--t===0?(this.nextChar(),e=!0):i.push(")");break;case 92:switch(a=this.nextChar(),a){case-1:E("Unterminated string"),e=!0;break;case 110:i.push(`
|
|
24
|
+
`);break;case 114:i.push("\r");break;case 116:i.push(" ");break;case 98:i.push("\b");break;case 102:i.push("\f");break;case 92:case 40:case 41:i.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let n=a&15;a=this.nextChar(),s=!0,a>=48&&a<=55&&(n=(n<<3)+(a&15),a=this.nextChar(),a>=48&&a<=55&&(s=!1,n=(n<<3)+(a&15))),i.push(String.fromCharCode(n));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:i.push(String.fromCharCode(a))}break;default:i.push(String.fromCharCode(a))}if(e)break;s||(a=this.nextChar())}return i.join("")}getName(){let t,e,i=this.strBuf;for(i.length=0;(t=this.nextChar())>=0&&!Bn[t];)if(t===35){if(t=this.nextChar(),Bn[t]){E("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),i.push("#");break}let a=Tf(t);if(a!==-1){e=t,t=this.nextChar();let s=Tf(t);if(s===-1){if(E(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) in hexadecimal number.`),i.push("#",String.fromCharCode(e)),Bn[t])break;i.push(String.fromCharCode(t));continue}i.push(String.fromCharCode(a<<4|s))}else i.push("#",String.fromCharCode(t))}else i.push(String.fromCharCode(t));return i.length>127&&E(`Name token is longer than allowed by the spec: ${i.length}`),Z.get(i.join(""))}_hexStringWarn(t){this._hexStringNumWarn++===5?E("getHexString - ignoring additional invalid characters."):this._hexStringNumWarn>5||E(`getHexString - ignoring invalid character: ${t}`)}getHexString(){let t=this.strBuf;t.length=0;let e=this.currentChar,i=-1,a=-1;for(this._hexStringNumWarn=0;;)if(e<0){E("Unterminated hex string");break}else if(e===62){this.nextChar();break}else if(Bn[e]===1){e=this.nextChar();continue}else a=Tf(e),a===-1?this._hexStringWarn(e):i===-1?i=a:(t.push(String.fromCharCode(i<<4|a)),i=-1),e=this.nextChar();return i!==-1&&t.push(String.fromCharCode(i<<4)),t.join("")}getObj(){let t=!1,e=this.currentChar;for(;;){if(e<0)return ki;if(t)(e===10||e===13)&&(t=!1);else if(e===37)t=!0;else if(Bn[e]!==1)break;e=this.nextChar()}switch(e|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),hi.get("[");case 93:return this.nextChar(),hi.get("]");case 60:return e=this.nextChar(),e===60?(this.nextChar(),hi.get("<<")):this.getHexString();case 62:return e=this.nextChar(),e===62?(this.nextChar(),hi.get(">>")):hi.get(">");case 123:return this.nextChar(),hi.get("{");case 125:return this.nextChar(),hi.get("}");case 41:throw this.nextChar(),new V(`Illegal character: ${e}`)}let i=String.fromCharCode(e);if(e<32||e>127){let n=this.peekChar();if(n>=32&&n<=127)return this.nextChar(),hi.get(i)}let a=this.knownCommands,s=a?.[i]!==void 0;for(;(e=this.nextChar())>=0&&!Bn[e];){let n=i+String.fromCharCode(e);if(s&&a[n]===void 0)break;if(i.length===128)throw new V(`Command token too long: ${i.length}`);i=n,s=a?.[i]!==void 0}return i==="true"?!0:i==="false"?!1:i==="null"?null:(i==="BI"&&(this.beginInlineImagePos=this.stream.pos),hi.get(i))}skipToNextLine(){let t=this.currentChar;for(;t>=0;){if(t===13){t=this.nextChar(),t===10&&this.nextChar();break}if(t===10){this.nextChar();break}t=this.nextChar()}}},xw=class{static{d(this,"Linearization")}static create(t){function e(h,c,u=!1){let p=h.get(c);if(Number.isInteger(p)&&(u?p>=0:p>0))return p;throw Error(`The "${c}" parameter in the linearization dictionary is invalid.`)}d(e,"getInt");function i(h){let c=h.get("H"),u;if(Array.isArray(c)&&((u=c.length)===2||u===4)){for(let p=0;p<u;p++){let m=c[p];if(!(Number.isInteger(m)&&m>0))throw Error(`Hint (${p}) in the linearization dictionary is invalid.`)}return c}throw Error("Hint array in the linearization dictionary is invalid.")}d(i,"getHints");let a=new Is({lexer:new Ma(t),xref:null}),s=a.getObj(),n=a.getObj(),r=a.getObj(),l=a.getObj(),o,f;if(!(Number.isInteger(s)&&Number.isInteger(n)&&ci(r,"obj")&&l instanceof _&&typeof(o=l.get("Linearized"))=="number"&&o>0))return null;if((f=e(l,"L"))!==t.length)throw Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:f,hints:i(l),objectNumberFirst:e(l,"O"),endFirst:e(l,"E"),numPages:e(l,"N"),mainXRefEntriesOffset:e(l,"T"),pageFirst:l.has("P")?e(l,"P",!0):0}}},Aw=new Set("Adobe-GB1-UCS2.Adobe-CNS1-UCS2.Adobe-Japan1-UCS2.Adobe-Korea1-UCS2.78-EUC-H.78-EUC-V.78-H.78-RKSJ-H.78-RKSJ-V.78-V.78ms-RKSJ-H.78ms-RKSJ-V.83pv-RKSJ-H.90ms-RKSJ-H.90ms-RKSJ-V.90msp-RKSJ-H.90msp-RKSJ-V.90pv-RKSJ-H.90pv-RKSJ-V.Add-H.Add-RKSJ-H.Add-RKSJ-V.Add-V.Adobe-CNS1-0.Adobe-CNS1-1.Adobe-CNS1-2.Adobe-CNS1-3.Adobe-CNS1-4.Adobe-CNS1-5.Adobe-CNS1-6.Adobe-GB1-0.Adobe-GB1-1.Adobe-GB1-2.Adobe-GB1-3.Adobe-GB1-4.Adobe-GB1-5.Adobe-Japan1-0.Adobe-Japan1-1.Adobe-Japan1-2.Adobe-Japan1-3.Adobe-Japan1-4.Adobe-Japan1-5.Adobe-Japan1-6.Adobe-Korea1-0.Adobe-Korea1-1.Adobe-Korea1-2.B5-H.B5-V.B5pc-H.B5pc-V.CNS-EUC-H.CNS-EUC-V.CNS1-H.CNS1-V.CNS2-H.CNS2-V.ETHK-B5-H.ETHK-B5-V.ETen-B5-H.ETen-B5-V.ETenms-B5-H.ETenms-B5-V.EUC-H.EUC-V.Ext-H.Ext-RKSJ-H.Ext-RKSJ-V.Ext-V.GB-EUC-H.GB-EUC-V.GB-H.GB-V.GBK-EUC-H.GBK-EUC-V.GBK2K-H.GBK2K-V.GBKp-EUC-H.GBKp-EUC-V.GBT-EUC-H.GBT-EUC-V.GBT-H.GBT-V.GBTpc-EUC-H.GBTpc-EUC-V.GBpc-EUC-H.GBpc-EUC-V.H.HKdla-B5-H.HKdla-B5-V.HKdlb-B5-H.HKdlb-B5-V.HKgccs-B5-H.HKgccs-B5-V.HKm314-B5-H.HKm314-B5-V.HKm471-B5-H.HKm471-B5-V.HKscs-B5-H.HKscs-B5-V.Hankaku.Hiragana.KSC-EUC-H.KSC-EUC-V.KSC-H.KSC-Johab-H.KSC-Johab-V.KSC-V.KSCms-UHC-H.KSCms-UHC-HW-H.KSCms-UHC-HW-V.KSCms-UHC-V.KSCpc-EUC-H.KSCpc-EUC-V.Katakana.NWP-H.NWP-V.RKSJ-H.RKSJ-V.Roman.UniCNS-UCS2-H.UniCNS-UCS2-V.UniCNS-UTF16-H.UniCNS-UTF16-V.UniCNS-UTF32-H.UniCNS-UTF32-V.UniCNS-UTF8-H.UniCNS-UTF8-V.UniGB-UCS2-H.UniGB-UCS2-V.UniGB-UTF16-H.UniGB-UTF16-V.UniGB-UTF32-H.UniGB-UTF32-V.UniGB-UTF8-H.UniGB-UTF8-V.UniJIS-UCS2-H.UniJIS-UCS2-HW-H.UniJIS-UCS2-HW-V.UniJIS-UCS2-V.UniJIS-UTF16-H.UniJIS-UTF16-V.UniJIS-UTF32-H.UniJIS-UTF32-V.UniJIS-UTF8-H.UniJIS-UTF8-V.UniJIS2004-UTF16-H.UniJIS2004-UTF16-V.UniJIS2004-UTF32-H.UniJIS2004-UTF32-V.UniJIS2004-UTF8-H.UniJIS2004-UTF8-V.UniJISPro-UCS2-HW-V.UniJISPro-UCS2-V.UniJISPro-UTF8-V.UniJISX0213-UTF32-H.UniJISX0213-UTF32-V.UniJISX02132004-UTF32-H.UniJISX02132004-UTF32-V.UniKS-UCS2-H.UniKS-UCS2-V.UniKS-UTF16-H.UniKS-UTF16-V.UniKS-UTF32-H.UniKS-UTF32-V.UniKS-UTF8-H.UniKS-UTF8-V.V.WP-Symbol".split(".")),Sw=2**24-1,Kc=class{static{d(this,"CMap")}#t=new Map;#e=0;constructor(t=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}addCodespaceRange(t,e,i){this.codespaceRanges[t-1].push(e,i),this.numCodespaceRanges++}#i(t,e){if(!(t<=0)){if(this.#e+t>Sw)throw Error(`${e} - ignoring data above MAX_MAP_RANGE.`);this.#e+=t}}mapCidRange(t,e,i){for(this.#i(e-t+1,"mapCidRange");t<=e;)this.#t.set(t++,i++)}mapBfRange(t,e,i){this.#i(e-t+1,"mapBfRange");let a=i.length-1;for(;t<=e;){this.#t.set(t++,i);let s=i.charCodeAt(a)+1;i=s>255?i.substring(0,a-1)+String.fromCharCode(i.charCodeAt(a-1)+1)+"\0":i.substring(0,a)+String.fromCharCode(s)}}mapBfRangeToArray(t,e,i){let a=i.length;this.#i(Math.min(e-t+1,a),"mapBfRangeToArray");let s=0;for(;t<=e&&s<a;)this.#t.set(t++,i[s++])}mapOne(t,e){this.#t.set(t,e)}lookup(t){return this.#t.get(t)}contains(t){return this.#t.has(t)}forEach(t){for(let[e,i]of this.#t)t(e,i)}charCodeOf(t){for(let[e,i]of this.#t)if(i===t)return e;return-1}getMap(){return new Map(this.#t)}readCharCode(t,e,i){let a=0,s=this.codespaceRanges;for(let n=0,r=s.length;n<r;n++){a=(a<<8|t.charCodeAt(e+n))>>>0;let l=s[n];for(let o=0,f=l.length;o<f;){let h=l[o++],c=l[o++];if(a>=h&&a<=c){i.charcode=a,i.length=n+1;return}}}i.charcode=0,i.length=1}getCharCodeLength(t){let e=this.codespaceRanges;for(let i=0,a=e.length;i<a;i++){let s=e[i];for(let n=0,r=s.length;n<r;){let l=s[n++],o=s[n++];if(t>=l&&t<=o)return i+1}}return 1}get size(){return this.#t.size}get isIdentityCMap(){if(this.name!=="Identity-H"&&this.name!=="Identity-V"||this.#t.size!==65536)return!1;for(let t=0;t<65536;t++)if(this.#t.get(t)!==t)return!1;return!0}},tl=class extends Kc{static{d(this,"IdentityCMap")}constructor(t,e){super(),this.vertical=t,this.addCodespaceRange(e,0,65535)}mapCidRange(t,e,i){te("should not call mapCidRange")}mapBfRange(t,e,i){te("should not call mapBfRange")}mapBfRangeToArray(t,e,i){te("should not call mapBfRangeToArray")}mapOne(t,e){te("should not call mapCidOne")}lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}contains(t){return Number.isInteger(t)&&t<=65535}forEach(t){for(let e=0;e<=65535;e++)t(e,e)}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){te("should not call getMap")}get size(){return 65536}get isIdentityCMap(){te("should not access .isIdentityCMap")}};d(Os,"strToInt");d(qn,"expectString");d(Mp,"expectInt");d(Cw,"parseBfChar");d(Iw,"parseBfRange");d(Tw,"parseCidChar");d(Mw,"parseCidRange");d(_w,"parseCodespaceRange");d(Ew,"parseWMode");d(Fw,"parseCMapName");d(_p,"parseCMap");d(Ep,"extendCMap");d(Fh,"createBuiltInCMap");vr=class{static{d(this,"CMapFactory")}static async create({encoding:t,fetchBuiltInCMap:e,useCMap:i}){if(t instanceof Z)return Fh(t.name,e);if(t instanceof Bt){if(t.isAsync){let s=await t.asyncGetBytes();s&&(t=new Me(s,0,s.length,t.dict))}let a=await _p(new Kc,new Ma(t),e,i);return a.isIdentityCMap?Fh(a.name,e):a}throw Error("Encoding required.")}},Fp="................................space.exclamsmall.Hungarumlautsmall..dollaroldstyle.dollarsuperior.ampersandsmall.Acutesmall.parenleftsuperior.parenrightsuperior.twodotenleader.onedotenleader.comma.hyphen.period.fraction.zerooldstyle.oneoldstyle.twooldstyle.threeoldstyle.fouroldstyle.fiveoldstyle.sixoldstyle.sevenoldstyle.eightoldstyle.nineoldstyle.colon.semicolon.commasuperior.threequartersemdash.periodsuperior.questionsmall..asuperior.bsuperior.centsuperior.dsuperior.esuperior....isuperior...lsuperior.msuperior.nsuperior.osuperior...rsuperior.ssuperior.tsuperior..ff.fi.fl.ffi.ffl.parenleftinferior..parenrightinferior.Circumflexsmall.hyphensuperior.Gravesmall.Asmall.Bsmall.Csmall.Dsmall.Esmall.Fsmall.Gsmall.Hsmall.Ismall.Jsmall.Ksmall.Lsmall.Msmall.Nsmall.Osmall.Psmall.Qsmall.Rsmall.Ssmall.Tsmall.Usmall.Vsmall.Wsmall.Xsmall.Ysmall.Zsmall.colonmonetary.onefitted.rupiah.Tildesmall...................................exclamdownsmall.centoldstyle.Lslashsmall...Scaronsmall.Zcaronsmall.Dieresissmall.Brevesmall.Caronsmall..Dotaccentsmall...Macronsmall...figuredash.hypheninferior...Ogoneksmall.Ringsmall.Cedillasmall....onequarter.onehalf.threequarters.questiondownsmall.oneeighth.threeeighths.fiveeighths.seveneighths.onethird.twothirds...zerosuperior.onesuperior.twosuperior.threesuperior.foursuperior.fivesuperior.sixsuperior.sevensuperior.eightsuperior.ninesuperior.zeroinferior.oneinferior.twoinferior.threeinferior.fourinferior.fiveinferior.sixinferior.seveninferior.eightinferior.nineinferior.centinferior.dollarinferior.periodinferior.commainferior.Agravesmall.Aacutesmall.Acircumflexsmall.Atildesmall.Adieresissmall.Aringsmall.AEsmall.Ccedillasmall.Egravesmall.Eacutesmall.Ecircumflexsmall.Edieresissmall.Igravesmall.Iacutesmall.Icircumflexsmall.Idieresissmall.Ethsmall.Ntildesmall.Ogravesmall.Oacutesmall.Ocircumflexsmall.Otildesmall.Odieresissmall.OEsmall.Oslashsmall.Ugravesmall.Uacutesmall.Ucircumflexsmall.Udieresissmall.Yacutesmall.Thornsmall.Ydieresissmall".split("."),Rw="................................space.exclamsmall.Hungarumlautsmall.centoldstyle.dollaroldstyle.dollarsuperior.ampersandsmall.Acutesmall.parenleftsuperior.parenrightsuperior.twodotenleader.onedotenleader.comma.hyphen.period.fraction.zerooldstyle.oneoldstyle.twooldstyle.threeoldstyle.fouroldstyle.fiveoldstyle.sixoldstyle.sevenoldstyle.eightoldstyle.nineoldstyle.colon.semicolon..threequartersemdash..questionsmall.....Ethsmall...onequarter.onehalf.threequarters.oneeighth.threeeighths.fiveeighths.seveneighths.onethird.twothirds.......ff.fi.fl.ffi.ffl.parenleftinferior..parenrightinferior.Circumflexsmall.hypheninferior.Gravesmall.Asmall.Bsmall.Csmall.Dsmall.Esmall.Fsmall.Gsmall.Hsmall.Ismall.Jsmall.Ksmall.Lsmall.Msmall.Nsmall.Osmall.Psmall.Qsmall.Rsmall.Ssmall.Tsmall.Usmall.Vsmall.Wsmall.Xsmall.Ysmall.Zsmall.colonmonetary.onefitted.rupiah.Tildesmall...asuperior.centsuperior.....Aacutesmall.Agravesmall.Acircumflexsmall.Adieresissmall.Atildesmall.Aringsmall.Ccedillasmall.Eacutesmall.Egravesmall.Ecircumflexsmall.Edieresissmall.Iacutesmall.Igravesmall.Icircumflexsmall.Idieresissmall.Ntildesmall.Oacutesmall.Ogravesmall.Ocircumflexsmall.Odieresissmall.Otildesmall.Uacutesmall.Ugravesmall.Ucircumflexsmall.Udieresissmall..eightsuperior.fourinferior.threeinferior.sixinferior.eightinferior.seveninferior.Scaronsmall..centinferior.twoinferior..Dieresissmall..Caronsmall.osuperior.fiveinferior..commainferior.periodinferior.Yacutesmall..dollarinferior...Thornsmall..nineinferior.zeroinferior.Zcaronsmall.AEsmall.Oslashsmall.questiondownsmall.oneinferior.Lslashsmall.......Cedillasmall......OEsmall.figuredash.hyphensuperior.....exclamdownsmall..Ydieresissmall..onesuperior.twosuperior.threesuperior.foursuperior.fivesuperior.sixsuperior.sevensuperior.ninesuperior.zerosuperior..esuperior.rsuperior.tsuperior...isuperior.ssuperior.dsuperior......lsuperior.Ogoneksmall.Brevesmall.Macronsmall.bsuperior.nsuperior.msuperior.commasuperior.periodsuperior.Dotaccentsmall.Ringsmall....".split("."),Xc="................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quotesingle.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.grave.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde..Adieresis.Aring.Ccedilla.Eacute.Ntilde.Odieresis.Udieresis.aacute.agrave.acircumflex.adieresis.atilde.aring.ccedilla.eacute.egrave.ecircumflex.edieresis.iacute.igrave.icircumflex.idieresis.ntilde.oacute.ograve.ocircumflex.odieresis.otilde.uacute.ugrave.ucircumflex.udieresis.dagger.degree.cent.sterling.section.bullet.paragraph.germandbls.registered.copyright.trademark.acute.dieresis.notequal.AE.Oslash.infinity.plusminus.lessequal.greaterequal.yen.mu.partialdiff.summation.product.pi.integral.ordfeminine.ordmasculine.Omega.ae.oslash.questiondown.exclamdown.logicalnot.radical.florin.approxequal.Delta.guillemotleft.guillemotright.ellipsis.space.Agrave.Atilde.Otilde.OE.oe.endash.emdash.quotedblleft.quotedblright.quoteleft.quoteright.divide.lozenge.ydieresis.Ydieresis.fraction.currency.guilsinglleft.guilsinglright.fi.fl.daggerdbl.periodcentered.quotesinglbase.quotedblbase.perthousand.Acircumflex.Ecircumflex.Aacute.Edieresis.Egrave.Iacute.Icircumflex.Idieresis.Igrave.Oacute.Ocircumflex.apple.Ograve.Uacute.Ucircumflex.Ugrave.dotlessi.circumflex.tilde.macron.breve.dotaccent.ring.cedilla.hungarumlaut.ogonek.caron".split("."),cs="................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quoteright.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.quoteleft.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde...................................exclamdown.cent.sterling.fraction.yen.florin.section.currency.quotesingle.quotedblleft.guillemotleft.guilsinglleft.guilsinglright.fi.fl..endash.dagger.daggerdbl.periodcentered..paragraph.bullet.quotesinglbase.quotedblbase.quotedblright.guillemotright.ellipsis.perthousand..questiondown..grave.acute.circumflex.tilde.macron.breve.dotaccent.dieresis..ring.cedilla..hungarumlaut.ogonek.caron.emdash.................AE..ordfeminine.....Lslash.Oslash.OE.ordmasculine......ae....dotlessi...lslash.oslash.oe.germandbls....".split("."),pl="................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quotesingle.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.grave.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde.bullet.Euro.bullet.quotesinglbase.florin.quotedblbase.ellipsis.dagger.daggerdbl.circumflex.perthousand.Scaron.guilsinglleft.OE.bullet.Zcaron.bullet.bullet.quoteleft.quoteright.quotedblleft.quotedblright.bullet.endash.emdash.tilde.trademark.scaron.guilsinglright.oe.bullet.zcaron.Ydieresis.space.exclamdown.cent.sterling.currency.yen.brokenbar.section.dieresis.copyright.ordfeminine.guillemotleft.logicalnot.hyphen.registered.macron.degree.plusminus.twosuperior.threesuperior.acute.mu.paragraph.periodcentered.cedilla.onesuperior.ordmasculine.guillemotright.onequarter.onehalf.threequarters.questiondown.Agrave.Aacute.Acircumflex.Atilde.Adieresis.Aring.AE.Ccedilla.Egrave.Eacute.Ecircumflex.Edieresis.Igrave.Iacute.Icircumflex.Idieresis.Eth.Ntilde.Ograve.Oacute.Ocircumflex.Otilde.Odieresis.multiply.Oslash.Ugrave.Uacute.Ucircumflex.Udieresis.Yacute.Thorn.germandbls.agrave.aacute.acircumflex.atilde.adieresis.aring.ae.ccedilla.egrave.eacute.ecircumflex.edieresis.igrave.iacute.icircumflex.idieresis.eth.ntilde.ograve.oacute.ocircumflex.otilde.odieresis.divide.oslash.ugrave.uacute.ucircumflex.udieresis.yacute.thorn.ydieresis".split("."),Xo="................................space.exclam.universal.numbersign.existential.percent.ampersand.suchthat.parenleft.parenright.asteriskmath.plus.comma.minus.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.congruent.Alpha.Beta.Chi.Delta.Epsilon.Phi.Gamma.Eta.Iota.theta1.Kappa.Lambda.Mu.Nu.Omicron.Pi.Theta.Rho.Sigma.Tau.Upsilon.sigma1.Omega.Xi.Psi.Zeta.bracketleft.therefore.bracketright.perpendicular.underscore.radicalex.alpha.beta.chi.delta.epsilon.phi.gamma.eta.iota.phi1.kappa.lambda.mu.nu.omicron.pi.theta.rho.sigma.tau.upsilon.omega1.omega.xi.psi.zeta.braceleft.bar.braceright.similar..................................Euro.Upsilon1.minute.lessequal.fraction.infinity.florin.club.diamond.heart.spade.arrowboth.arrowleft.arrowup.arrowright.arrowdown.degree.plusminus.second.greaterequal.multiply.proportional.partialdiff.bullet.divide.notequal.equivalence.approxequal.ellipsis.arrowvertex.arrowhorizex.carriagereturn.aleph.Ifraktur.Rfraktur.weierstrass.circlemultiply.circleplus.emptyset.intersection.union.propersuperset.reflexsuperset.notsubset.propersubset.reflexsubset.element.notelement.angle.gradient.registerserif.copyrightserif.trademarkserif.product.radical.dotmath.logicalnot.logicaland.logicalor.arrowdblboth.arrowdblleft.arrowdblup.arrowdblright.arrowdbldown.lozenge.angleleft.registersans.copyrightsans.trademarksans.summation.parenlefttp.parenleftex.parenleftbt.bracketlefttp.bracketleftex.bracketleftbt.bracelefttp.braceleftmid.braceleftbt.braceex..angleright.integral.integraltp.integralex.integralbt.parenrighttp.parenrightex.parenrightbt.bracketrighttp.bracketrightex.bracketrightbt.bracerighttp.bracerightmid.bracerightbt.".split("."),Yc="................................space.a1.a2.a202.a3.a4.a5.a119.a118.a117.a11.a12.a13.a14.a15.a16.a105.a17.a18.a19.a20.a21.a22.a23.a24.a25.a26.a27.a28.a6.a7.a8.a9.a10.a29.a30.a31.a32.a33.a34.a35.a36.a37.a38.a39.a40.a41.a42.a43.a44.a45.a46.a47.a48.a49.a50.a51.a52.a53.a54.a55.a56.a57.a58.a59.a60.a61.a62.a63.a64.a65.a66.a67.a68.a69.a70.a71.a72.a73.a74.a203.a75.a204.a76.a77.a78.a79.a81.a82.a83.a84.a97.a98.a99.a100..a89.a90.a93.a94.a91.a92.a205.a85.a206.a86.a87.a88.a95.a96....................a101.a102.a103.a104.a106.a107.a108.a112.a111.a110.a109.a120.a121.a122.a123.a124.a125.a126.a127.a128.a129.a130.a131.a132.a133.a134.a135.a136.a137.a138.a139.a140.a141.a142.a143.a144.a145.a146.a147.a148.a149.a150.a151.a152.a153.a154.a155.a156.a157.a158.a159.a160.a161.a163.a164.a196.a165.a192.a166.a167.a168.a169.a170.a171.a172.a173.a162.a174.a175.a176.a177.a178.a179.a193.a180.a199.a181.a200.a182..a201.a183.a184.a197.a185.a194.a198.a186.a195.a187.a188.a189.a190.a191.".split(".");d(ml,"getEncoding");Ea=Re(function(t){t.A=65,t.AE=198,t.AEacute=508,t.AEmacron=482,t.AEsmall=63462,t.Aacute=193,t.Aacutesmall=63457,t.Abreve=258,t.Abreveacute=7854,t.Abrevecyrillic=1232,t.Abrevedotbelow=7862,t.Abrevegrave=7856,t.Abrevehookabove=7858,t.Abrevetilde=7860,t.Acaron=461,t.Acircle=9398,t.Acircumflex=194,t.Acircumflexacute=7844,t.Acircumflexdotbelow=7852,t.Acircumflexgrave=7846,t.Acircumflexhookabove=7848,t.Acircumflexsmall=63458,t.Acircumflextilde=7850,t.Acute=63177,t.Acutesmall=63412,t.Acyrillic=1040,t.Adblgrave=512,t.Adieresis=196,t.Adieresiscyrillic=1234,t.Adieresismacron=478,t.Adieresissmall=63460,t.Adotbelow=7840,t.Adotmacron=480,t.Agrave=192,t.Agravesmall=63456,t.Ahookabove=7842,t.Aiecyrillic=1236,t.Ainvertedbreve=514,t.Alpha=913,t.Alphatonos=902,t.Amacron=256,t.Amonospace=65313,t.Aogonek=260,t.Aring=197,t.Aringacute=506,t.Aringbelow=7680,t.Aringsmall=63461,t.Asmall=63329,t.Atilde=195,t.Atildesmall=63459,t.Aybarmenian=1329,t.B=66,t.Bcircle=9399,t.Bdotaccent=7682,t.Bdotbelow=7684,t.Becyrillic=1041,t.Benarmenian=1330,t.Beta=914,t.Bhook=385,t.Blinebelow=7686,t.Bmonospace=65314,t.Brevesmall=63220,t.Bsmall=63330,t.Btopbar=386,t.C=67,t.Caarmenian=1342,t.Cacute=262,t.Caron=63178,t.Caronsmall=63221,t.Ccaron=268,t.Ccedilla=199,t.Ccedillaacute=7688,t.Ccedillasmall=63463,t.Ccircle=9400,t.Ccircumflex=264,t.Cdot=266,t.Cdotaccent=266,t.Cedillasmall=63416,t.Chaarmenian=1353,t.Cheabkhasiancyrillic=1212,t.Checyrillic=1063,t.Chedescenderabkhasiancyrillic=1214,t.Chedescendercyrillic=1206,t.Chedieresiscyrillic=1268,t.Cheharmenian=1347,t.Chekhakassiancyrillic=1227,t.Cheverticalstrokecyrillic=1208,t.Chi=935,t.Chook=391,t.Circumflexsmall=63222,t.Cmonospace=65315,t.Coarmenian=1361,t.Csmall=63331,t.D=68,t.DZ=497,t.DZcaron=452,t.Daarmenian=1332,t.Dafrican=393,t.Dcaron=270,t.Dcedilla=7696,t.Dcircle=9401,t.Dcircumflexbelow=7698,t.Dcroat=272,t.Ddotaccent=7690,t.Ddotbelow=7692,t.Decyrillic=1044,t.Deicoptic=1006,t.Delta=8710,t.Deltagreek=916,t.Dhook=394,t.Dieresis=63179,t.DieresisAcute=63180,t.DieresisGrave=63181,t.Dieresissmall=63400,t.Digammagreek=988,t.Djecyrillic=1026,t.Dlinebelow=7694,t.Dmonospace=65316,t.Dotaccentsmall=63223,t.Dslash=272,t.Dsmall=63332,t.Dtopbar=395,t.Dz=498,t.Dzcaron=453,t.Dzeabkhasiancyrillic=1248,t.Dzecyrillic=1029,t.Dzhecyrillic=1039,t.E=69,t.Eacute=201,t.Eacutesmall=63465,t.Ebreve=276,t.Ecaron=282,t.Ecedillabreve=7708,t.Echarmenian=1333,t.Ecircle=9402,t.Ecircumflex=202,t.Ecircumflexacute=7870,t.Ecircumflexbelow=7704,t.Ecircumflexdotbelow=7878,t.Ecircumflexgrave=7872,t.Ecircumflexhookabove=7874,t.Ecircumflexsmall=63466,t.Ecircumflextilde=7876,t.Ecyrillic=1028,t.Edblgrave=516,t.Edieresis=203,t.Edieresissmall=63467,t.Edot=278,t.Edotaccent=278,t.Edotbelow=7864,t.Efcyrillic=1060,t.Egrave=200,t.Egravesmall=63464,t.Eharmenian=1335,t.Ehookabove=7866,t.Eightroman=8551,t.Einvertedbreve=518,t.Eiotifiedcyrillic=1124,t.Elcyrillic=1051,t.Elevenroman=8554,t.Emacron=274,t.Emacronacute=7702,t.Emacrongrave=7700,t.Emcyrillic=1052,t.Emonospace=65317,t.Encyrillic=1053,t.Endescendercyrillic=1186,t.Eng=330,t.Enghecyrillic=1188,t.Enhookcyrillic=1223,t.Eogonek=280,t.Eopen=400,t.Epsilon=917,t.Epsilontonos=904,t.Ercyrillic=1056,t.Ereversed=398,t.Ereversedcyrillic=1069,t.Escyrillic=1057,t.Esdescendercyrillic=1194,t.Esh=425,t.Esmall=63333,t.Eta=919,t.Etarmenian=1336,t.Etatonos=905,t.Eth=208,t.Ethsmall=63472,t.Etilde=7868,t.Etildebelow=7706,t.Euro=8364,t.Ezh=439,t.Ezhcaron=494,t.Ezhreversed=440,t.F=70,t.Fcircle=9403,t.Fdotaccent=7710,t.Feharmenian=1366,t.Feicoptic=996,t.Fhook=401,t.Fitacyrillic=1138,t.Fiveroman=8548,t.Fmonospace=65318,t.Fourroman=8547,t.Fsmall=63334,t.G=71,t.GBsquare=13191,t.Gacute=500,t.Gamma=915,t.Gammaafrican=404,t.Gangiacoptic=1002,t.Gbreve=286,t.Gcaron=486,t.Gcedilla=290,t.Gcircle=9404,t.Gcircumflex=284,t.Gcommaaccent=290,t.Gdot=288,t.Gdotaccent=288,t.Gecyrillic=1043,t.Ghadarmenian=1346,t.Ghemiddlehookcyrillic=1172,t.Ghestrokecyrillic=1170,t.Gheupturncyrillic=1168,t.Ghook=403,t.Gimarmenian=1331,t.Gjecyrillic=1027,t.Gmacron=7712,t.Gmonospace=65319,t.Grave=63182,t.Gravesmall=63328,t.Gsmall=63335,t.Gsmallhook=667,t.Gstroke=484,t.H=72,t.H18533=9679,t.H18543=9642,t.H18551=9643,t.H22073=9633,t.HPsquare=13259,t.Haabkhasiancyrillic=1192,t.Hadescendercyrillic=1202,t.Hardsigncyrillic=1066,t.Hbar=294,t.Hbrevebelow=7722,t.Hcedilla=7720,t.Hcircle=9405,t.Hcircumflex=292,t.Hdieresis=7718,t.Hdotaccent=7714,t.Hdotbelow=7716,t.Hmonospace=65320,t.Hoarmenian=1344,t.Horicoptic=1e3,t.Hsmall=63336,t.Hungarumlaut=63183,t.Hungarumlautsmall=63224,t.Hzsquare=13200,t.I=73,t.IAcyrillic=1071,t.IJ=306,t.IUcyrillic=1070,t.Iacute=205,t.Iacutesmall=63469,t.Ibreve=300,t.Icaron=463,t.Icircle=9406,t.Icircumflex=206,t.Icircumflexsmall=63470,t.Icyrillic=1030,t.Idblgrave=520,t.Idieresis=207,t.Idieresisacute=7726,t.Idieresiscyrillic=1252,t.Idieresissmall=63471,t.Idot=304,t.Idotaccent=304,t.Idotbelow=7882,t.Iebrevecyrillic=1238,t.Iecyrillic=1045,t.Ifraktur=8465,t.Igrave=204,t.Igravesmall=63468,t.Ihookabove=7880,t.Iicyrillic=1048,t.Iinvertedbreve=522,t.Iishortcyrillic=1049,t.Imacron=298,t.Imacroncyrillic=1250,t.Imonospace=65321,t.Iniarmenian=1339,t.Iocyrillic=1025,t.Iogonek=302,t.Iota=921,t.Iotaafrican=406,t.Iotadieresis=938,t.Iotatonos=906,t.Ismall=63337,t.Istroke=407,t.Itilde=296,t.Itildebelow=7724,t.Izhitsacyrillic=1140,t.Izhitsadblgravecyrillic=1142,t.J=74,t.Jaarmenian=1345,t.Jcircle=9407,t.Jcircumflex=308,t.Jecyrillic=1032,t.Jheharmenian=1355,t.Jmonospace=65322,t.Jsmall=63338,t.K=75,t.KBsquare=13189,t.KKsquare=13261,t.Kabashkircyrillic=1184,t.Kacute=7728,t.Kacyrillic=1050,t.Kadescendercyrillic=1178,t.Kahookcyrillic=1219,t.Kappa=922,t.Kastrokecyrillic=1182,t.Kaverticalstrokecyrillic=1180,t.Kcaron=488,t.Kcedilla=310,t.Kcircle=9408,t.Kcommaaccent=310,t.Kdotbelow=7730,t.Keharmenian=1364,t.Kenarmenian=1343,t.Khacyrillic=1061,t.Kheicoptic=998,t.Khook=408,t.Kjecyrillic=1036,t.Klinebelow=7732,t.Kmonospace=65323,t.Koppacyrillic=1152,t.Koppagreek=990,t.Ksicyrillic=1134,t.Ksmall=63339,t.L=76,t.LJ=455,t.LL=63167,t.Lacute=313,t.Lambda=923,t.Lcaron=317,t.Lcedilla=315,t.Lcircle=9409,t.Lcircumflexbelow=7740,t.Lcommaaccent=315,t.Ldot=319,t.Ldotaccent=319,t.Ldotbelow=7734,t.Ldotbelowmacron=7736,t.Liwnarmenian=1340,t.Lj=456,t.Ljecyrillic=1033,t.Llinebelow=7738,t.Lmonospace=65324,t.Lslash=321,t.Lslashsmall=63225,t.Lsmall=63340,t.M=77,t.MBsquare=13190,t.Macron=63184,t.Macronsmall=63407,t.Macute=7742,t.Mcircle=9410,t.Mdotaccent=7744,t.Mdotbelow=7746,t.Menarmenian=1348,t.Mmonospace=65325,t.Msmall=63341,t.Mturned=412,t.Mu=924,t.N=78,t.NJ=458,t.Nacute=323,t.Ncaron=327,t.Ncedilla=325,t.Ncircle=9411,t.Ncircumflexbelow=7754,t.Ncommaaccent=325,t.Ndotaccent=7748,t.Ndotbelow=7750,t.Nhookleft=413,t.Nineroman=8552,t.Nj=459,t.Njecyrillic=1034,t.Nlinebelow=7752,t.Nmonospace=65326,t.Nowarmenian=1350,t.Nsmall=63342,t.Ntilde=209,t.Ntildesmall=63473,t.Nu=925,t.O=79,t.OE=338,t.OEsmall=63226,t.Oacute=211,t.Oacutesmall=63475,t.Obarredcyrillic=1256,t.Obarreddieresiscyrillic=1258,t.Obreve=334,t.Ocaron=465,t.Ocenteredtilde=415,t.Ocircle=9412,t.Ocircumflex=212,t.Ocircumflexacute=7888,t.Ocircumflexdotbelow=7896,t.Ocircumflexgrave=7890,t.Ocircumflexhookabove=7892,t.Ocircumflexsmall=63476,t.Ocircumflextilde=7894,t.Ocyrillic=1054,t.Odblacute=336,t.Odblgrave=524,t.Odieresis=214,t.Odieresiscyrillic=1254,t.Odieresissmall=63478,t.Odotbelow=7884,t.Ogoneksmall=63227,t.Ograve=210,t.Ogravesmall=63474,t.Oharmenian=1365,t.Ohm=8486,t.Ohookabove=7886,t.Ohorn=416,t.Ohornacute=7898,t.Ohorndotbelow=7906,t.Ohorngrave=7900,t.Ohornhookabove=7902,t.Ohorntilde=7904,t.Ohungarumlaut=336,t.Oi=418,t.Oinvertedbreve=526,t.Omacron=332,t.Omacronacute=7762,t.Omacrongrave=7760,t.Omega=8486,t.Omegacyrillic=1120,t.Omegagreek=937,t.Omegaroundcyrillic=1146,t.Omegatitlocyrillic=1148,t.Omegatonos=911,t.Omicron=927,t.Omicrontonos=908,t.Omonospace=65327,t.Oneroman=8544,t.Oogonek=490,t.Oogonekmacron=492,t.Oopen=390,t.Oslash=216,t.Oslashacute=510,t.Oslashsmall=63480,t.Osmall=63343,t.Ostrokeacute=510,t.Otcyrillic=1150,t.Otilde=213,t.Otildeacute=7756,t.Otildedieresis=7758,t.Otildesmall=63477,t.P=80,t.Pacute=7764,t.Pcircle=9413,t.Pdotaccent=7766,t.Pecyrillic=1055,t.Peharmenian=1354,t.Pemiddlehookcyrillic=1190,t.Phi=934,t.Phook=420,t.Pi=928,t.Piwrarmenian=1363,t.Pmonospace=65328,t.Psi=936,t.Psicyrillic=1136,t.Psmall=63344,t.Q=81,t.Qcircle=9414,t.Qmonospace=65329,t.Qsmall=63345,t.R=82,t.Raarmenian=1356,t.Racute=340,t.Rcaron=344,t.Rcedilla=342,t.Rcircle=9415,t.Rcommaaccent=342,t.Rdblgrave=528,t.Rdotaccent=7768,t.Rdotbelow=7770,t.Rdotbelowmacron=7772,t.Reharmenian=1360,t.Rfraktur=8476,t.Rho=929,t.Ringsmall=63228,t.Rinvertedbreve=530,t.Rlinebelow=7774,t.Rmonospace=65330,t.Rsmall=63346,t.Rsmallinverted=641,t.Rsmallinvertedsuperior=694,t.S=83,t.SF010000=9484,t.SF020000=9492,t.SF030000=9488,t.SF040000=9496,t.SF050000=9532,t.SF060000=9516,t.SF070000=9524,t.SF080000=9500,t.SF090000=9508,t.SF100000=9472,t.SF110000=9474,t.SF190000=9569,t.SF200000=9570,t.SF210000=9558,t.SF220000=9557,t.SF230000=9571,t.SF240000=9553,t.SF250000=9559,t.SF260000=9565,t.SF270000=9564,t.SF280000=9563,t.SF360000=9566,t.SF370000=9567,t.SF380000=9562,t.SF390000=9556,t.SF400000=9577,t.SF410000=9574,t.SF420000=9568,t.SF430000=9552,t.SF440000=9580,t.SF450000=9575,t.SF460000=9576,t.SF470000=9572,t.SF480000=9573,t.SF490000=9561,t.SF500000=9560,t.SF510000=9554,t.SF520000=9555,t.SF530000=9579,t.SF540000=9578,t.Sacute=346,t.Sacutedotaccent=7780,t.Sampigreek=992,t.Scaron=352,t.Scarondotaccent=7782,t.Scaronsmall=63229,t.Scedilla=350,t.Schwa=399,t.Schwacyrillic=1240,t.Schwadieresiscyrillic=1242,t.Scircle=9416,t.Scircumflex=348,t.Scommaaccent=536,t.Sdotaccent=7776,t.Sdotbelow=7778,t.Sdotbelowdotaccent=7784,t.Seharmenian=1357,t.Sevenroman=8550,t.Shaarmenian=1351,t.Shacyrillic=1064,t.Shchacyrillic=1065,t.Sheicoptic=994,t.Shhacyrillic=1210,t.Shimacoptic=1004,t.Sigma=931,t.Sixroman=8549,t.Smonospace=65331,t.Softsigncyrillic=1068,t.Ssmall=63347,t.Stigmagreek=986,t.T=84,t.Tau=932,t.Tbar=358,t.Tcaron=356,t.Tcedilla=354,t.Tcircle=9417,t.Tcircumflexbelow=7792,t.Tcommaaccent=354,t.Tdotaccent=7786,t.Tdotbelow=7788,t.Tecyrillic=1058,t.Tedescendercyrillic=1196,t.Tenroman=8553,t.Tetsecyrillic=1204,t.Theta=920,t.Thook=428,t.Thorn=222,t.Thornsmall=63486,t.Threeroman=8546,t.Tildesmall=63230,t.Tiwnarmenian=1359,t.Tlinebelow=7790,t.Tmonospace=65332,t.Toarmenian=1337,t.Tonefive=444,t.Tonesix=388,t.Tonetwo=423,t.Tretroflexhook=430,t.Tsecyrillic=1062,t.Tshecyrillic=1035,t.Tsmall=63348,t.Twelveroman=8555,t.Tworoman=8545,t.U=85,t.Uacute=218,t.Uacutesmall=63482,t.Ubreve=364,t.Ucaron=467,t.Ucircle=9418,t.Ucircumflex=219,t.Ucircumflexbelow=7798,t.Ucircumflexsmall=63483,t.Ucyrillic=1059,t.Udblacute=368,t.Udblgrave=532,t.Udieresis=220,t.Udieresisacute=471,t.Udieresisbelow=7794,t.Udieresiscaron=473,t.Udieresiscyrillic=1264,t.Udieresisgrave=475,t.Udieresismacron=469,t.Udieresissmall=63484,t.Udotbelow=7908,t.Ugrave=217,t.Ugravesmall=63481,t.Uhookabove=7910,t.Uhorn=431,t.Uhornacute=7912,t.Uhorndotbelow=7920,t.Uhorngrave=7914,t.Uhornhookabove=7916,t.Uhorntilde=7918,t.Uhungarumlaut=368,t.Uhungarumlautcyrillic=1266,t.Uinvertedbreve=534,t.Ukcyrillic=1144,t.Umacron=362,t.Umacroncyrillic=1262,t.Umacrondieresis=7802,t.Umonospace=65333,t.Uogonek=370,t.Upsilon=933,t.Upsilon1=978,t.Upsilonacutehooksymbolgreek=979,t.Upsilonafrican=433,t.Upsilondieresis=939,t.Upsilondieresishooksymbolgreek=980,t.Upsilonhooksymbol=978,t.Upsilontonos=910,t.Uring=366,t.Ushortcyrillic=1038,t.Usmall=63349,t.Ustraightcyrillic=1198,t.Ustraightstrokecyrillic=1200,t.Utilde=360,t.Utildeacute=7800,t.Utildebelow=7796,t.V=86,t.Vcircle=9419,t.Vdotbelow=7806,t.Vecyrillic=1042,t.Vewarmenian=1358,t.Vhook=434,t.Vmonospace=65334,t.Voarmenian=1352,t.Vsmall=63350,t.Vtilde=7804,t.W=87,t.Wacute=7810,t.Wcircle=9420,t.Wcircumflex=372,t.Wdieresis=7812,t.Wdotaccent=7814,t.Wdotbelow=7816,t.Wgrave=7808,t.Wmonospace=65335,t.Wsmall=63351,t.X=88,t.Xcircle=9421,t.Xdieresis=7820,t.Xdotaccent=7818,t.Xeharmenian=1341,t.Xi=926,t.Xmonospace=65336,t.Xsmall=63352,t.Y=89,t.Yacute=221,t.Yacutesmall=63485,t.Yatcyrillic=1122,t.Ycircle=9422,t.Ycircumflex=374,t.Ydieresis=376,t.Ydieresissmall=63487,t.Ydotaccent=7822,t.Ydotbelow=7924,t.Yericyrillic=1067,t.Yerudieresiscyrillic=1272,t.Ygrave=7922,t.Yhook=435,t.Yhookabove=7926,t.Yiarmenian=1349,t.Yicyrillic=1031,t.Yiwnarmenian=1362,t.Ymonospace=65337,t.Ysmall=63353,t.Ytilde=7928,t.Yusbigcyrillic=1130,t.Yusbigiotifiedcyrillic=1132,t.Yuslittlecyrillic=1126,t.Yuslittleiotifiedcyrillic=1128,t.Z=90,t.Zaarmenian=1334,t.Zacute=377,t.Zcaron=381,t.Zcaronsmall=63231,t.Zcircle=9423,t.Zcircumflex=7824,t.Zdot=379,t.Zdotaccent=379,t.Zdotbelow=7826,t.Zecyrillic=1047,t.Zedescendercyrillic=1176,t.Zedieresiscyrillic=1246,t.Zeta=918,t.Zhearmenian=1338,t.Zhebrevecyrillic=1217,t.Zhecyrillic=1046,t.Zhedescendercyrillic=1174,t.Zhedieresiscyrillic=1244,t.Zlinebelow=7828,t.Zmonospace=65338,t.Zsmall=63354,t.Zstroke=437,t.a=97,t.aabengali=2438,t.aacute=225,t.aadeva=2310,t.aagujarati=2694,t.aagurmukhi=2566,t.aamatragurmukhi=2622,t.aarusquare=13059,t.aavowelsignbengali=2494,t.aavowelsigndeva=2366,t.aavowelsigngujarati=2750,t.abbreviationmarkarmenian=1375,t.abbreviationsigndeva=2416,t.abengali=2437,t.abopomofo=12570,t.abreve=259,t.abreveacute=7855,t.abrevecyrillic=1233,t.abrevedotbelow=7863,t.abrevegrave=7857,t.abrevehookabove=7859,t.abrevetilde=7861,t.acaron=462,t.acircle=9424,t.acircumflex=226,t.acircumflexacute=7845,t.acircumflexdotbelow=7853,t.acircumflexgrave=7847,t.acircumflexhookabove=7849,t.acircumflextilde=7851,t.acute=180,t.acutebelowcmb=791,t.acutecmb=769,t.acutecomb=769,t.acutedeva=2388,t.acutelowmod=719,t.acutetonecmb=833,t.acyrillic=1072,t.adblgrave=513,t.addakgurmukhi=2673,t.adeva=2309,t.adieresis=228,t.adieresiscyrillic=1235,t.adieresismacron=479,t.adotbelow=7841,t.adotmacron=481,t.ae=230,t.aeacute=509,t.aekorean=12624,t.aemacron=483,t.afii00208=8213,t.afii08941=8356,t.afii10017=1040,t.afii10018=1041,t.afii10019=1042,t.afii10020=1043,t.afii10021=1044,t.afii10022=1045,t.afii10023=1025,t.afii10024=1046,t.afii10025=1047,t.afii10026=1048,t.afii10027=1049,t.afii10028=1050,t.afii10029=1051,t.afii10030=1052,t.afii10031=1053,t.afii10032=1054,t.afii10033=1055,t.afii10034=1056,t.afii10035=1057,t.afii10036=1058,t.afii10037=1059,t.afii10038=1060,t.afii10039=1061,t.afii10040=1062,t.afii10041=1063,t.afii10042=1064,t.afii10043=1065,t.afii10044=1066,t.afii10045=1067,t.afii10046=1068,t.afii10047=1069,t.afii10048=1070,t.afii10049=1071,t.afii10050=1168,t.afii10051=1026,t.afii10052=1027,t.afii10053=1028,t.afii10054=1029,t.afii10055=1030,t.afii10056=1031,t.afii10057=1032,t.afii10058=1033,t.afii10059=1034,t.afii10060=1035,t.afii10061=1036,t.afii10062=1038,t.afii10063=63172,t.afii10064=63173,t.afii10065=1072,t.afii10066=1073,t.afii10067=1074,t.afii10068=1075,t.afii10069=1076,t.afii10070=1077,t.afii10071=1105,t.afii10072=1078,t.afii10073=1079,t.afii10074=1080,t.afii10075=1081,t.afii10076=1082,t.afii10077=1083,t.afii10078=1084,t.afii10079=1085,t.afii10080=1086,t.afii10081=1087,t.afii10082=1088,t.afii10083=1089,t.afii10084=1090,t.afii10085=1091,t.afii10086=1092,t.afii10087=1093,t.afii10088=1094,t.afii10089=1095,t.afii10090=1096,t.afii10091=1097,t.afii10092=1098,t.afii10093=1099,t.afii10094=1100,t.afii10095=1101,t.afii10096=1102,t.afii10097=1103,t.afii10098=1169,t.afii10099=1106,t.afii10100=1107,t.afii10101=1108,t.afii10102=1109,t.afii10103=1110,t.afii10104=1111,t.afii10105=1112,t.afii10106=1113,t.afii10107=1114,t.afii10108=1115,t.afii10109=1116,t.afii10110=1118,t.afii10145=1039,t.afii10146=1122,t.afii10147=1138,t.afii10148=1140,t.afii10192=63174,t.afii10193=1119,t.afii10194=1123,t.afii10195=1139,t.afii10196=1141,t.afii10831=63175,t.afii10832=63176,t.afii10846=1241,t.afii299=8206,t.afii300=8207,t.afii301=8205,t.afii57381=1642,t.afii57388=1548,t.afii57392=1632,t.afii57393=1633,t.afii57394=1634,t.afii57395=1635,t.afii57396=1636,t.afii57397=1637,t.afii57398=1638,t.afii57399=1639,t.afii57400=1640,t.afii57401=1641,t.afii57403=1563,t.afii57407=1567,t.afii57409=1569,t.afii57410=1570,t.afii57411=1571,t.afii57412=1572,t.afii57413=1573,t.afii57414=1574,t.afii57415=1575,t.afii57416=1576,t.afii57417=1577,t.afii57418=1578,t.afii57419=1579,t.afii57420=1580,t.afii57421=1581,t.afii57422=1582,t.afii57423=1583,t.afii57424=1584,t.afii57425=1585,t.afii57426=1586,t.afii57427=1587,t.afii57428=1588,t.afii57429=1589,t.afii57430=1590,t.afii57431=1591,t.afii57432=1592,t.afii57433=1593,t.afii57434=1594,t.afii57440=1600,t.afii57441=1601,t.afii57442=1602,t.afii57443=1603,t.afii57444=1604,t.afii57445=1605,t.afii57446=1606,t.afii57448=1608,t.afii57449=1609,t.afii57450=1610,t.afii57451=1611,t.afii57452=1612,t.afii57453=1613,t.afii57454=1614,t.afii57455=1615,t.afii57456=1616,t.afii57457=1617,t.afii57458=1618,t.afii57470=1607,t.afii57505=1700,t.afii57506=1662,t.afii57507=1670,t.afii57508=1688,t.afii57509=1711,t.afii57511=1657,t.afii57512=1672,t.afii57513=1681,t.afii57514=1722,t.afii57519=1746,t.afii57534=1749,t.afii57636=8362,t.afii57645=1470,t.afii57658=1475,t.afii57664=1488,t.afii57665=1489,t.afii57666=1490,t.afii57667=1491,t.afii57668=1492,t.afii57669=1493,t.afii57670=1494,t.afii57671=1495,t.afii57672=1496,t.afii57673=1497,t.afii57674=1498,t.afii57675=1499,t.afii57676=1500,t.afii57677=1501,t.afii57678=1502,t.afii57679=1503,t.afii57680=1504,t.afii57681=1505,t.afii57682=1506,t.afii57683=1507,t.afii57684=1508,t.afii57685=1509,t.afii57686=1510,t.afii57687=1511,t.afii57688=1512,t.afii57689=1513,t.afii57690=1514,t.afii57694=64298,t.afii57695=64299,t.afii57700=64331,t.afii57705=64287,t.afii57716=1520,t.afii57717=1521,t.afii57718=1522,t.afii57723=64309,t.afii57793=1460,t.afii57794=1461,t.afii57795=1462,t.afii57796=1467,t.afii57797=1464,t.afii57798=1463,t.afii57799=1456,t.afii57800=1458,t.afii57801=1457,t.afii57802=1459,t.afii57803=1474,t.afii57804=1473,t.afii57806=1465,t.afii57807=1468,t.afii57839=1469,t.afii57841=1471,t.afii57842=1472,t.afii57929=700,t.afii61248=8453,t.afii61289=8467,t.afii61352=8470,t.afii61573=8236,t.afii61574=8237,t.afii61575=8238,t.afii61664=8204,t.afii63167=1645,t.afii64937=701,t.agrave=224,t.agujarati=2693,t.agurmukhi=2565,t.ahiragana=12354,t.ahookabove=7843,t.aibengali=2448,t.aibopomofo=12574,t.aideva=2320,t.aiecyrillic=1237,t.aigujarati=2704,t.aigurmukhi=2576,t.aimatragurmukhi=2632,t.ainarabic=1593,t.ainfinalarabic=65226,t.aininitialarabic=65227,t.ainmedialarabic=65228,t.ainvertedbreve=515,t.aivowelsignbengali=2504,t.aivowelsigndeva=2376,t.aivowelsigngujarati=2760,t.akatakana=12450,t.akatakanahalfwidth=65393,t.akorean=12623,t.alef=1488,t.alefarabic=1575,t.alefdageshhebrew=64304,t.aleffinalarabic=65166,t.alefhamzaabovearabic=1571,t.alefhamzaabovefinalarabic=65156,t.alefhamzabelowarabic=1573,t.alefhamzabelowfinalarabic=65160,t.alefhebrew=1488,t.aleflamedhebrew=64335,t.alefmaddaabovearabic=1570,t.alefmaddaabovefinalarabic=65154,t.alefmaksuraarabic=1609,t.alefmaksurafinalarabic=65264,t.alefmaksurainitialarabic=65267,t.alefmaksuramedialarabic=65268,t.alefpatahhebrew=64302,t.alefqamatshebrew=64303,t.aleph=8501,t.allequal=8780,t.alpha=945,t.alphatonos=940,t.amacron=257,t.amonospace=65345,t.ampersand=38,t.ampersandmonospace=65286,t.ampersandsmall=63270,t.amsquare=13250,t.anbopomofo=12578,t.angbopomofo=12580,t.angbracketleft=12296,t.angbracketright=12297,t.angkhankhuthai=3674,t.angle=8736,t.anglebracketleft=12296,t.anglebracketleftvertical=65087,t.anglebracketright=12297,t.anglebracketrightvertical=65088,t.angleleft=9001,t.angleright=9002,t.angstrom=8491,t.anoteleia=903,t.anudattadeva=2386,t.anusvarabengali=2434,t.anusvaradeva=2306,t.anusvaragujarati=2690,t.aogonek=261,t.apaatosquare=13056,t.aparen=9372,t.apostrophearmenian=1370,t.apostrophemod=700,t.apple=63743,t.approaches=8784,t.approxequal=8776,t.approxequalorimage=8786,t.approximatelyequal=8773,t.araeaekorean=12686,t.araeakorean=12685,t.arc=8978,t.arighthalfring=7834,t.aring=229,t.aringacute=507,t.aringbelow=7681,t.arrowboth=8596,t.arrowdashdown=8675,t.arrowdashleft=8672,t.arrowdashright=8674,t.arrowdashup=8673,t.arrowdblboth=8660,t.arrowdbldown=8659,t.arrowdblleft=8656,t.arrowdblright=8658,t.arrowdblup=8657,t.arrowdown=8595,t.arrowdownleft=8601,t.arrowdownright=8600,t.arrowdownwhite=8681,t.arrowheaddownmod=709,t.arrowheadleftmod=706,t.arrowheadrightmod=707,t.arrowheadupmod=708,t.arrowhorizex=63719,t.arrowleft=8592,t.arrowleftdbl=8656,t.arrowleftdblstroke=8653,t.arrowleftoverright=8646,t.arrowleftwhite=8678,t.arrowright=8594,t.arrowrightdblstroke=8655,t.arrowrightheavy=10142,t.arrowrightoverleft=8644,t.arrowrightwhite=8680,t.arrowtableft=8676,t.arrowtabright=8677,t.arrowup=8593,t.arrowupdn=8597,t.arrowupdnbse=8616,t.arrowupdownbase=8616,t.arrowupleft=8598,t.arrowupleftofdown=8645,t.arrowupright=8599,t.arrowupwhite=8679,t.arrowvertex=63718,t.asciicircum=94,t.asciicircummonospace=65342,t.asciitilde=126,t.asciitildemonospace=65374,t.ascript=593,t.ascriptturned=594,t.asmallhiragana=12353,t.asmallkatakana=12449,t.asmallkatakanahalfwidth=65383,t.asterisk=42,t.asteriskaltonearabic=1645,t.asteriskarabic=1645,t.asteriskmath=8727,t.asteriskmonospace=65290,t.asterisksmall=65121,t.asterism=8258,t.asuperior=63209,t.asymptoticallyequal=8771,t.at=64,t.atilde=227,t.atmonospace=65312,t.atsmall=65131,t.aturned=592,t.aubengali=2452,t.aubopomofo=12576,t.audeva=2324,t.augujarati=2708,t.augurmukhi=2580,t.aulengthmarkbengali=2519,t.aumatragurmukhi=2636,t.auvowelsignbengali=2508,t.auvowelsigndeva=2380,t.auvowelsigngujarati=2764,t.avagrahadeva=2365,t.aybarmenian=1377,t.ayin=1506,t.ayinaltonehebrew=64288,t.ayinhebrew=1506,t.b=98,t.babengali=2476,t.backslash=92,t.backslashmonospace=65340,t.badeva=2348,t.bagujarati=2732,t.bagurmukhi=2604,t.bahiragana=12400,t.bahtthai=3647,t.bakatakana=12496,t.bar=124,t.barmonospace=65372,t.bbopomofo=12549,t.bcircle=9425,t.bdotaccent=7683,t.bdotbelow=7685,t.beamedsixteenthnotes=9836,t.because=8757,t.becyrillic=1073,t.beharabic=1576,t.behfinalarabic=65168,t.behinitialarabic=65169,t.behiragana=12409,t.behmedialarabic=65170,t.behmeeminitialarabic=64671,t.behmeemisolatedarabic=64520,t.behnoonfinalarabic=64621,t.bekatakana=12505,t.benarmenian=1378,t.bet=1489,t.beta=946,t.betasymbolgreek=976,t.betdagesh=64305,t.betdageshhebrew=64305,t.bethebrew=1489,t.betrafehebrew=64332,t.bhabengali=2477,t.bhadeva=2349,t.bhagujarati=2733,t.bhagurmukhi=2605,t.bhook=595,t.bihiragana=12403,t.bikatakana=12499,t.bilabialclick=664,t.bindigurmukhi=2562,t.birusquare=13105,t.blackcircle=9679,t.blackdiamond=9670,t.blackdownpointingtriangle=9660,t.blackleftpointingpointer=9668,t.blackleftpointingtriangle=9664,t.blacklenticularbracketleft=12304,t.blacklenticularbracketleftvertical=65083,t.blacklenticularbracketright=12305,t.blacklenticularbracketrightvertical=65084,t.blacklowerlefttriangle=9699,t.blacklowerrighttriangle=9698,t.blackrectangle=9644,t.blackrightpointingpointer=9658,t.blackrightpointingtriangle=9654,t.blacksmallsquare=9642,t.blacksmilingface=9787,t.blacksquare=9632,t.blackstar=9733,t.blackupperlefttriangle=9700,t.blackupperrighttriangle=9701,t.blackuppointingsmalltriangle=9652,t.blackuppointingtriangle=9650,t.blank=9251,t.blinebelow=7687,t.block=9608,t.bmonospace=65346,t.bobaimaithai=3610,t.bohiragana=12412,t.bokatakana=12508,t.bparen=9373,t.bqsquare=13251,t.braceex=63732,t.braceleft=123,t.braceleftbt=63731,t.braceleftmid=63730,t.braceleftmonospace=65371,t.braceleftsmall=65115,t.bracelefttp=63729,t.braceleftvertical=65079,t.braceright=125,t.bracerightbt=63742,t.bracerightmid=63741,t.bracerightmonospace=65373,t.bracerightsmall=65116,t.bracerighttp=63740,t.bracerightvertical=65080,t.bracketleft=91,t.bracketleftbt=63728,t.bracketleftex=63727,t.bracketleftmonospace=65339,t.bracketlefttp=63726,t.bracketright=93,t.bracketrightbt=63739,t.bracketrightex=63738,t.bracketrightmonospace=65341,t.bracketrighttp=63737,t.breve=728,t.brevebelowcmb=814,t.brevecmb=774,t.breveinvertedbelowcmb=815,t.breveinvertedcmb=785,t.breveinverteddoublecmb=865,t.bridgebelowcmb=810,t.bridgeinvertedbelowcmb=826,t.brokenbar=166,t.bstroke=384,t.bsuperior=63210,t.btopbar=387,t.buhiragana=12406,t.bukatakana=12502,t.bullet=8226,t.bulletinverse=9688,t.bulletoperator=8729,t.bullseye=9678,t.c=99,t.caarmenian=1390,t.cabengali=2458,t.cacute=263,t.cadeva=2330,t.cagujarati=2714,t.cagurmukhi=2586,t.calsquare=13192,t.candrabindubengali=2433,t.candrabinducmb=784,t.candrabindudeva=2305,t.candrabindugujarati=2689,t.capslock=8682,t.careof=8453,t.caron=711,t.caronbelowcmb=812,t.caroncmb=780,t.carriagereturn=8629,t.cbopomofo=12568,t.ccaron=269,t.ccedilla=231,t.ccedillaacute=7689,t.ccircle=9426,t.ccircumflex=265,t.ccurl=597,t.cdot=267,t.cdotaccent=267,t.cdsquare=13253,t.cedilla=184,t.cedillacmb=807,t.cent=162,t.centigrade=8451,t.centinferior=63199,t.centmonospace=65504,t.centoldstyle=63394,t.centsuperior=63200,t.chaarmenian=1401,t.chabengali=2459,t.chadeva=2331,t.chagujarati=2715,t.chagurmukhi=2587,t.chbopomofo=12564,t.cheabkhasiancyrillic=1213,t.checkmark=10003,t.checyrillic=1095,t.chedescenderabkhasiancyrillic=1215,t.chedescendercyrillic=1207,t.chedieresiscyrillic=1269,t.cheharmenian=1395,t.chekhakassiancyrillic=1228,t.cheverticalstrokecyrillic=1209,t.chi=967,t.chieuchacirclekorean=12919,t.chieuchaparenkorean=12823,t.chieuchcirclekorean=12905,t.chieuchkorean=12618,t.chieuchparenkorean=12809,t.chochangthai=3594,t.chochanthai=3592,t.chochingthai=3593,t.chochoethai=3596,t.chook=392,t.cieucacirclekorean=12918,t.cieucaparenkorean=12822,t.cieuccirclekorean=12904,t.cieuckorean=12616,t.cieucparenkorean=12808,t.cieucuparenkorean=12828,t.circle=9675,t.circlecopyrt=169,t.circlemultiply=8855,t.circleot=8857,t.circleplus=8853,t.circlepostalmark=12342,t.circlewithlefthalfblack=9680,t.circlewithrighthalfblack=9681,t.circumflex=710,t.circumflexbelowcmb=813,t.circumflexcmb=770,t.clear=8999,t.clickalveolar=450,t.clickdental=448,t.clicklateral=449,t.clickretroflex=451,t.club=9827,t.clubsuitblack=9827,t.clubsuitwhite=9831,t.cmcubedsquare=13220,t.cmonospace=65347,t.cmsquaredsquare=13216,t.coarmenian=1409,t.colon=58,t.colonmonetary=8353,t.colonmonospace=65306,t.colonsign=8353,t.colonsmall=65109,t.colontriangularhalfmod=721,t.colontriangularmod=720,t.comma=44,t.commaabovecmb=787,t.commaaboverightcmb=789,t.commaaccent=63171,t.commaarabic=1548,t.commaarmenian=1373,t.commainferior=63201,t.commamonospace=65292,t.commareversedabovecmb=788,t.commareversedmod=701,t.commasmall=65104,t.commasuperior=63202,t.commaturnedabovecmb=786,t.commaturnedmod=699,t.compass=9788,t.congruent=8773,t.contourintegral=8750,t.control=8963,t.controlACK=6,t.controlBEL=7,t.controlBS=8,t.controlCAN=24,t.controlCR=13,t.controlDC1=17,t.controlDC2=18,t.controlDC3=19,t.controlDC4=20,t.controlDEL=127,t.controlDLE=16,t.controlEM=25,t.controlENQ=5,t.controlEOT=4,t.controlESC=27,t.controlETB=23,t.controlETX=3,t.controlFF=12,t.controlFS=28,t.controlGS=29,t.controlHT=9,t.controlLF=10,t.controlNAK=21,t.controlNULL=0,t.controlRS=30,t.controlSI=15,t.controlSO=14,t.controlSOT=2,t.controlSTX=1,t.controlSUB=26,t.controlSYN=22,t.controlUS=31,t.controlVT=11,t.copyright=169,t.copyrightsans=63721,t.copyrightserif=63193,t.cornerbracketleft=12300,t.cornerbracketlefthalfwidth=65378,t.cornerbracketleftvertical=65089,t.cornerbracketright=12301,t.cornerbracketrighthalfwidth=65379,t.cornerbracketrightvertical=65090,t.corporationsquare=13183,t.cosquare=13255,t.coverkgsquare=13254,t.cparen=9374,t.cruzeiro=8354,t.cstretched=663,t.curlyand=8911,t.curlyor=8910,t.currency=164,t.cyrBreve=63185,t.cyrFlex=63186,t.cyrbreve=63188,t.cyrflex=63189,t.d=100,t.daarmenian=1380,t.dabengali=2470,t.dadarabic=1590,t.dadeva=2342,t.dadfinalarabic=65214,t.dadinitialarabic=65215,t.dadmedialarabic=65216,t.dagesh=1468,t.dageshhebrew=1468,t.dagger=8224,t.daggerdbl=8225,t.dagujarati=2726,t.dagurmukhi=2598,t.dahiragana=12384,t.dakatakana=12480,t.dalarabic=1583,t.dalet=1491,t.daletdagesh=64307,t.daletdageshhebrew=64307,t.dalethebrew=1491,t.dalfinalarabic=65194,t.dammaarabic=1615,t.dammalowarabic=1615,t.dammatanaltonearabic=1612,t.dammatanarabic=1612,t.danda=2404,t.dargahebrew=1447,t.dargalefthebrew=1447,t.dasiapneumatacyrilliccmb=1157,t.dblGrave=63187,t.dblanglebracketleft=12298,t.dblanglebracketleftvertical=65085,t.dblanglebracketright=12299,t.dblanglebracketrightvertical=65086,t.dblarchinvertedbelowcmb=811,t.dblarrowleft=8660,t.dblarrowright=8658,t.dbldanda=2405,t.dblgrave=63190,t.dblgravecmb=783,t.dblintegral=8748,t.dbllowline=8215,t.dbllowlinecmb=819,t.dbloverlinecmb=831,t.dblprimemod=698,t.dblverticalbar=8214,t.dblverticallineabovecmb=782,t.dbopomofo=12553,t.dbsquare=13256,t.dcaron=271,t.dcedilla=7697,t.dcircle=9427,t.dcircumflexbelow=7699,t.dcroat=273,t.ddabengali=2465,t.ddadeva=2337,t.ddagujarati=2721,t.ddagurmukhi=2593,t.ddalarabic=1672,t.ddalfinalarabic=64393,t.dddhadeva=2396,t.ddhabengali=2466,t.ddhadeva=2338,t.ddhagujarati=2722,t.ddhagurmukhi=2594,t.ddotaccent=7691,t.ddotbelow=7693,t.decimalseparatorarabic=1643,t.decimalseparatorpersian=1643,t.decyrillic=1076,t.degree=176,t.dehihebrew=1453,t.dehiragana=12391,t.deicoptic=1007,t.dekatakana=12487,t.deleteleft=9003,t.deleteright=8998,t.delta=948,t.deltaturned=397,t.denominatorminusonenumeratorbengali=2552,t.dezh=676,t.dhabengali=2471,t.dhadeva=2343,t.dhagujarati=2727,t.dhagurmukhi=2599,t.dhook=599,t.dialytikatonos=901,t.dialytikatonoscmb=836,t.diamond=9830,t.diamondsuitwhite=9826,t.dieresis=168,t.dieresisacute=63191,t.dieresisbelowcmb=804,t.dieresiscmb=776,t.dieresisgrave=63192,t.dieresistonos=901,t.dihiragana=12386,t.dikatakana=12482,t.dittomark=12291,t.divide=247,t.divides=8739,t.divisionslash=8725,t.djecyrillic=1106,t.dkshade=9619,t.dlinebelow=7695,t.dlsquare=13207,t.dmacron=273,t.dmonospace=65348,t.dnblock=9604,t.dochadathai=3598,t.dodekthai=3604,t.dohiragana=12393,t.dokatakana=12489,t.dollar=36,t.dollarinferior=63203,t.dollarmonospace=65284,t.dollaroldstyle=63268,t.dollarsmall=65129,t.dollarsuperior=63204,t.dong=8363,t.dorusquare=13094,t.dotaccent=729,t.dotaccentcmb=775,t.dotbelowcmb=803,t.dotbelowcomb=803,t.dotkatakana=12539,t.dotlessi=305,t.dotlessj=63166,t.dotlessjstrokehook=644,t.dotmath=8901,t.dottedcircle=9676,t.doubleyodpatah=64287,t.doubleyodpatahhebrew=64287,t.downtackbelowcmb=798,t.downtackmod=725,t.dparen=9375,t.dsuperior=63211,t.dtail=598,t.dtopbar=396,t.duhiragana=12389,t.dukatakana=12485,t.dz=499,t.dzaltone=675,t.dzcaron=454,t.dzcurl=677,t.dzeabkhasiancyrillic=1249,t.dzecyrillic=1109,t.dzhecyrillic=1119,t.e=101,t.eacute=233,t.earth=9793,t.ebengali=2447,t.ebopomofo=12572,t.ebreve=277,t.ecandradeva=2317,t.ecandragujarati=2701,t.ecandravowelsigndeva=2373,t.ecandravowelsigngujarati=2757,t.ecaron=283,t.ecedillabreve=7709,t.echarmenian=1381,t.echyiwnarmenian=1415,t.ecircle=9428,t.ecircumflex=234,t.ecircumflexacute=7871,t.ecircumflexbelow=7705,t.ecircumflexdotbelow=7879,t.ecircumflexgrave=7873,t.ecircumflexhookabove=7875,t.ecircumflextilde=7877,t.ecyrillic=1108,t.edblgrave=517,t.edeva=2319,t.edieresis=235,t.edot=279,t.edotaccent=279,t.edotbelow=7865,t.eegurmukhi=2575,t.eematragurmukhi=2631,t.efcyrillic=1092,t.egrave=232,t.egujarati=2703,t.eharmenian=1383,t.ehbopomofo=12573,t.ehiragana=12360,t.ehookabove=7867,t.eibopomofo=12575,t.eight=56,t.eightarabic=1640,t.eightbengali=2542,t.eightcircle=9319,t.eightcircleinversesansserif=10129,t.eightdeva=2414,t.eighteencircle=9329,t.eighteenparen=9349,t.eighteenperiod=9369,t.eightgujarati=2798,t.eightgurmukhi=2670,t.eighthackarabic=1640,t.eighthangzhou=12328,t.eighthnotebeamed=9835,t.eightideographicparen=12839,t.eightinferior=8328,t.eightmonospace=65304,t.eightoldstyle=63288,t.eightparen=9339,t.eightperiod=9359,t.eightpersian=1784,t.eightroman=8567,t.eightsuperior=8312,t.eightthai=3672,t.einvertedbreve=519,t.eiotifiedcyrillic=1125,t.ekatakana=12456,t.ekatakanahalfwidth=65396,t.ekonkargurmukhi=2676,t.ekorean=12628,t.elcyrillic=1083,t.element=8712,t.elevencircle=9322,t.elevenparen=9342,t.elevenperiod=9362,t.elevenroman=8570,t.ellipsis=8230,t.ellipsisvertical=8942,t.emacron=275,t.emacronacute=7703,t.emacrongrave=7701,t.emcyrillic=1084,t.emdash=8212,t.emdashvertical=65073,t.emonospace=65349,t.emphasismarkarmenian=1371,t.emptyset=8709,t.enbopomofo=12579,t.encyrillic=1085,t.endash=8211,t.endashvertical=65074,t.endescendercyrillic=1187,t.eng=331,t.engbopomofo=12581,t.enghecyrillic=1189,t.enhookcyrillic=1224,t.enspace=8194,t.eogonek=281,t.eokorean=12627,t.eopen=603,t.eopenclosed=666,t.eopenreversed=604,t.eopenreversedclosed=606,t.eopenreversedhook=605,t.eparen=9376,t.epsilon=949,t.epsilontonos=941,t.equal=61,t.equalmonospace=65309,t.equalsmall=65126,t.equalsuperior=8316,t.equivalence=8801,t.erbopomofo=12582,t.ercyrillic=1088,t.ereversed=600,t.ereversedcyrillic=1101,t.escyrillic=1089,t.esdescendercyrillic=1195,t.esh=643,t.eshcurl=646,t.eshortdeva=2318,t.eshortvowelsigndeva=2374,t.eshreversedloop=426,t.eshsquatreversed=645,t.esmallhiragana=12359,t.esmallkatakana=12455,t.esmallkatakanahalfwidth=65386,t.estimated=8494,t.esuperior=63212,t.eta=951,t.etarmenian=1384,t.etatonos=942,t.eth=240,t.etilde=7869,t.etildebelow=7707,t.etnahtafoukhhebrew=1425,t.etnahtafoukhlefthebrew=1425,t.etnahtahebrew=1425,t.etnahtalefthebrew=1425,t.eturned=477,t.eukorean=12641,t.euro=8364,t.evowelsignbengali=2503,t.evowelsigndeva=2375,t.evowelsigngujarati=2759,t.exclam=33,t.exclamarmenian=1372,t.exclamdbl=8252,t.exclamdown=161,t.exclamdownsmall=63393,t.exclammonospace=65281,t.exclamsmall=63265,t.existential=8707,t.ezh=658,t.ezhcaron=495,t.ezhcurl=659,t.ezhreversed=441,t.ezhtail=442,t.f=102,t.fadeva=2398,t.fagurmukhi=2654,t.fahrenheit=8457,t.fathaarabic=1614,t.fathalowarabic=1614,t.fathatanarabic=1611,t.fbopomofo=12552,t.fcircle=9429,t.fdotaccent=7711,t.feharabic=1601,t.feharmenian=1414,t.fehfinalarabic=65234,t.fehinitialarabic=65235,t.fehmedialarabic=65236,t.feicoptic=997,t.female=9792,t.ff=64256,t.f_f=64256,t.ffi=64259,t.f_f_i=64259,t.ffl=64260,t.f_f_l=64260,t.fi=64257,t.f_i=64257,t.fifteencircle=9326,t.fifteenparen=9346,t.fifteenperiod=9366,t.figuredash=8210,t.filledbox=9632,t.filledrect=9644,t.finalkaf=1498,t.finalkafdagesh=64314,t.finalkafdageshhebrew=64314,t.finalkafhebrew=1498,t.finalmem=1501,t.finalmemhebrew=1501,t.finalnun=1503,t.finalnunhebrew=1503,t.finalpe=1507,t.finalpehebrew=1507,t.finaltsadi=1509,t.finaltsadihebrew=1509,t.firsttonechinese=713,t.fisheye=9673,t.fitacyrillic=1139,t.five=53,t.fivearabic=1637,t.fivebengali=2539,t.fivecircle=9316,t.fivecircleinversesansserif=10126,t.fivedeva=2411,t.fiveeighths=8541,t.fivegujarati=2795,t.fivegurmukhi=2667,t.fivehackarabic=1637,t.fivehangzhou=12325,t.fiveideographicparen=12836,t.fiveinferior=8325,t.fivemonospace=65301,t.fiveoldstyle=63285,t.fiveparen=9336,t.fiveperiod=9356,t.fivepersian=1781,t.fiveroman=8564,t.fivesuperior=8309,t.fivethai=3669,t.fl=64258,t.f_l=64258,t.florin=402,t.fmonospace=65350,t.fmsquare=13209,t.fofanthai=3615,t.fofathai=3613,t.fongmanthai=3663,t.forall=8704,t.four=52,t.fourarabic=1636,t.fourbengali=2538,t.fourcircle=9315,t.fourcircleinversesansserif=10125,t.fourdeva=2410,t.fourgujarati=2794,t.fourgurmukhi=2666,t.fourhackarabic=1636,t.fourhangzhou=12324,t.fourideographicparen=12835,t.fourinferior=8324,t.fourmonospace=65300,t.fournumeratorbengali=2551,t.fouroldstyle=63284,t.fourparen=9335,t.fourperiod=9355,t.fourpersian=1780,t.fourroman=8563,t.foursuperior=8308,t.fourteencircle=9325,t.fourteenparen=9345,t.fourteenperiod=9365,t.fourthai=3668,t.fourthtonechinese=715,t.fparen=9377,t.fraction=8260,t.franc=8355,t.g=103,t.gabengali=2455,t.gacute=501,t.gadeva=2327,t.gafarabic=1711,t.gaffinalarabic=64403,t.gafinitialarabic=64404,t.gafmedialarabic=64405,t.gagujarati=2711,t.gagurmukhi=2583,t.gahiragana=12364,t.gakatakana=12460,t.gamma=947,t.gammalatinsmall=611,t.gammasuperior=736,t.gangiacoptic=1003,t.gbopomofo=12557,t.gbreve=287,t.gcaron=487,t.gcedilla=291,t.gcircle=9430,t.gcircumflex=285,t.gcommaaccent=291,t.gdot=289,t.gdotaccent=289,t.gecyrillic=1075,t.gehiragana=12370,t.gekatakana=12466,t.geometricallyequal=8785,t.gereshaccenthebrew=1436,t.gereshhebrew=1523,t.gereshmuqdamhebrew=1437,t.germandbls=223,t.gershayimaccenthebrew=1438,t.gershayimhebrew=1524,t.getamark=12307,t.ghabengali=2456,t.ghadarmenian=1394,t.ghadeva=2328,t.ghagujarati=2712,t.ghagurmukhi=2584,t.ghainarabic=1594,t.ghainfinalarabic=65230,t.ghaininitialarabic=65231,t.ghainmedialarabic=65232,t.ghemiddlehookcyrillic=1173,t.ghestrokecyrillic=1171,t.gheupturncyrillic=1169,t.ghhadeva=2394,t.ghhagurmukhi=2650,t.ghook=608,t.ghzsquare=13203,t.gihiragana=12366,t.gikatakana=12462,t.gimarmenian=1379,t.gimel=1490,t.gimeldagesh=64306,t.gimeldageshhebrew=64306,t.gimelhebrew=1490,t.gjecyrillic=1107,t.glottalinvertedstroke=446,t.glottalstop=660,t.glottalstopinverted=662,t.glottalstopmod=704,t.glottalstopreversed=661,t.glottalstopreversedmod=705,t.glottalstopreversedsuperior=740,t.glottalstopstroke=673,t.glottalstopstrokereversed=674,t.gmacron=7713,t.gmonospace=65351,t.gohiragana=12372,t.gokatakana=12468,t.gparen=9378,t.gpasquare=13228,t.gradient=8711,t.grave=96,t.gravebelowcmb=790,t.gravecmb=768,t.gravecomb=768,t.gravedeva=2387,t.gravelowmod=718,t.gravemonospace=65344,t.gravetonecmb=832,t.greater=62,t.greaterequal=8805,t.greaterequalorless=8923,t.greatermonospace=65310,t.greaterorequivalent=8819,t.greaterorless=8823,t.greateroverequal=8807,t.greatersmall=65125,t.gscript=609,t.gstroke=485,t.guhiragana=12368,t.guillemotleft=171,t.guillemotright=187,t.guilsinglleft=8249,t.guilsinglright=8250,t.gukatakana=12464,t.guramusquare=13080,t.gysquare=13257,t.h=104,t.haabkhasiancyrillic=1193,t.haaltonearabic=1729,t.habengali=2489,t.hadescendercyrillic=1203,t.hadeva=2361,t.hagujarati=2745,t.hagurmukhi=2617,t.haharabic=1581,t.hahfinalarabic=65186,t.hahinitialarabic=65187,t.hahiragana=12399,t.hahmedialarabic=65188,t.haitusquare=13098,t.hakatakana=12495,t.hakatakanahalfwidth=65418,t.halantgurmukhi=2637,t.hamzaarabic=1569,t.hamzalowarabic=1569,t.hangulfiller=12644,t.hardsigncyrillic=1098,t.harpoonleftbarbup=8636,t.harpoonrightbarbup=8640,t.hasquare=13258,t.hatafpatah=1458,t.hatafpatah16=1458,t.hatafpatah23=1458,t.hatafpatah2f=1458,t.hatafpatahhebrew=1458,t.hatafpatahnarrowhebrew=1458,t.hatafpatahquarterhebrew=1458,t.hatafpatahwidehebrew=1458,t.hatafqamats=1459,t.hatafqamats1b=1459,t.hatafqamats28=1459,t.hatafqamats34=1459,t.hatafqamatshebrew=1459,t.hatafqamatsnarrowhebrew=1459,t.hatafqamatsquarterhebrew=1459,t.hatafqamatswidehebrew=1459,t.hatafsegol=1457,t.hatafsegol17=1457,t.hatafsegol24=1457,t.hatafsegol30=1457,t.hatafsegolhebrew=1457,t.hatafsegolnarrowhebrew=1457,t.hatafsegolquarterhebrew=1457,t.hatafsegolwidehebrew=1457,t.hbar=295,t.hbopomofo=12559,t.hbrevebelow=7723,t.hcedilla=7721,t.hcircle=9431,t.hcircumflex=293,t.hdieresis=7719,t.hdotaccent=7715,t.hdotbelow=7717,t.he=1492,t.heart=9829,t.heartsuitblack=9829,t.heartsuitwhite=9825,t.hedagesh=64308,t.hedageshhebrew=64308,t.hehaltonearabic=1729,t.heharabic=1607,t.hehebrew=1492,t.hehfinalaltonearabic=64423,t.hehfinalalttwoarabic=65258,t.hehfinalarabic=65258,t.hehhamzaabovefinalarabic=64421,t.hehhamzaaboveisolatedarabic=64420,t.hehinitialaltonearabic=64424,t.hehinitialarabic=65259,t.hehiragana=12408,t.hehmedialaltonearabic=64425,t.hehmedialarabic=65260,t.heiseierasquare=13179,t.hekatakana=12504,t.hekatakanahalfwidth=65421,t.hekutaarusquare=13110,t.henghook=615,t.herutusquare=13113,t.het=1495,t.hethebrew=1495,t.hhook=614,t.hhooksuperior=689,t.hieuhacirclekorean=12923,t.hieuhaparenkorean=12827,t.hieuhcirclekorean=12909,t.hieuhkorean=12622,t.hieuhparenkorean=12813,t.hihiragana=12402,t.hikatakana=12498,t.hikatakanahalfwidth=65419,t.hiriq=1460,t.hiriq14=1460,t.hiriq21=1460,t.hiriq2d=1460,t.hiriqhebrew=1460,t.hiriqnarrowhebrew=1460,t.hiriqquarterhebrew=1460,t.hiriqwidehebrew=1460,t.hlinebelow=7830,t.hmonospace=65352,t.hoarmenian=1392,t.hohipthai=3627,t.hohiragana=12411,t.hokatakana=12507,t.hokatakanahalfwidth=65422,t.holam=1465,t.holam19=1465,t.holam26=1465,t.holam32=1465,t.holamhebrew=1465,t.holamnarrowhebrew=1465,t.holamquarterhebrew=1465,t.holamwidehebrew=1465,t.honokhukthai=3630,t.hookabovecomb=777,t.hookcmb=777,t.hookpalatalizedbelowcmb=801,t.hookretroflexbelowcmb=802,t.hoonsquare=13122,t.horicoptic=1001,t.horizontalbar=8213,t.horncmb=795,t.hotsprings=9832,t.house=8962,t.hparen=9379,t.hsuperior=688,t.hturned=613,t.huhiragana=12405,t.huiitosquare=13107,t.hukatakana=12501,t.hukatakanahalfwidth=65420,t.hungarumlaut=733,t.hungarumlautcmb=779,t.hv=405,t.hyphen=45,t.hypheninferior=63205,t.hyphenmonospace=65293,t.hyphensmall=65123,t.hyphensuperior=63206,t.hyphentwo=8208,t.i=105,t.iacute=237,t.iacyrillic=1103,t.ibengali=2439,t.ibopomofo=12583,t.ibreve=301,t.icaron=464,t.icircle=9432,t.icircumflex=238,t.icyrillic=1110,t.idblgrave=521,t.ideographearthcircle=12943,t.ideographfirecircle=12939,t.ideographicallianceparen=12863,t.ideographiccallparen=12858,t.ideographiccentrecircle=12965,t.ideographicclose=12294,t.ideographiccomma=12289,t.ideographiccommaleft=65380,t.ideographiccongratulationparen=12855,t.ideographiccorrectcircle=12963,t.ideographicearthparen=12847,t.ideographicenterpriseparen=12861,t.ideographicexcellentcircle=12957,t.ideographicfestivalparen=12864,t.ideographicfinancialcircle=12950,t.ideographicfinancialparen=12854,t.ideographicfireparen=12843,t.ideographichaveparen=12850,t.ideographichighcircle=12964,t.ideographiciterationmark=12293,t.ideographiclaborcircle=12952,t.ideographiclaborparen=12856,t.ideographicleftcircle=12967,t.ideographiclowcircle=12966,t.ideographicmedicinecircle=12969,t.ideographicmetalparen=12846,t.ideographicmoonparen=12842,t.ideographicnameparen=12852,t.ideographicperiod=12290,t.ideographicprintcircle=12958,t.ideographicreachparen=12867,t.ideographicrepresentparen=12857,t.ideographicresourceparen=12862,t.ideographicrightcircle=12968,t.ideographicsecretcircle=12953,t.ideographicselfparen=12866,t.ideographicsocietyparen=12851,t.ideographicspace=12288,t.ideographicspecialparen=12853,t.ideographicstockparen=12849,t.ideographicstudyparen=12859,t.ideographicsunparen=12848,t.ideographicsuperviseparen=12860,t.ideographicwaterparen=12844,t.ideographicwoodparen=12845,t.ideographiczero=12295,t.ideographmetalcircle=12942,t.ideographmooncircle=12938,t.ideographnamecircle=12948,t.ideographsuncircle=12944,t.ideographwatercircle=12940,t.ideographwoodcircle=12941,t.ideva=2311,t.idieresis=239,t.idieresisacute=7727,t.idieresiscyrillic=1253,t.idotbelow=7883,t.iebrevecyrillic=1239,t.iecyrillic=1077,t.ieungacirclekorean=12917,t.ieungaparenkorean=12821,t.ieungcirclekorean=12903,t.ieungkorean=12615,t.ieungparenkorean=12807,t.igrave=236,t.igujarati=2695,t.igurmukhi=2567,t.ihiragana=12356,t.ihookabove=7881,t.iibengali=2440,t.iicyrillic=1080,t.iideva=2312,t.iigujarati=2696,t.iigurmukhi=2568,t.iimatragurmukhi=2624,t.iinvertedbreve=523,t.iishortcyrillic=1081,t.iivowelsignbengali=2496,t.iivowelsigndeva=2368,t.iivowelsigngujarati=2752,t.ij=307,t.ikatakana=12452,t.ikatakanahalfwidth=65394,t.ikorean=12643,t.ilde=732,t.iluyhebrew=1452,t.imacron=299,t.imacroncyrillic=1251,t.imageorapproximatelyequal=8787,t.imatragurmukhi=2623,t.imonospace=65353,t.increment=8710,t.infinity=8734,t.iniarmenian=1387,t.integral=8747,t.integralbottom=8993,t.integralbt=8993,t.integralex=63733,t.integraltop=8992,t.integraltp=8992,t.intersection=8745,t.intisquare=13061,t.invbullet=9688,t.invcircle=9689,t.invsmileface=9787,t.iocyrillic=1105,t.iogonek=303,t.iota=953,t.iotadieresis=970,t.iotadieresistonos=912,t.iotalatin=617,t.iotatonos=943,t.iparen=9380,t.irigurmukhi=2674,t.ismallhiragana=12355,t.ismallkatakana=12451,t.ismallkatakanahalfwidth=65384,t.issharbengali=2554,t.istroke=616,t.isuperior=63213,t.iterationhiragana=12445,t.iterationkatakana=12541,t.itilde=297,t.itildebelow=7725,t.iubopomofo=12585,t.iucyrillic=1102,t.ivowelsignbengali=2495,t.ivowelsigndeva=2367,t.ivowelsigngujarati=2751,t.izhitsacyrillic=1141,t.izhitsadblgravecyrillic=1143,t.j=106,t.jaarmenian=1393,t.jabengali=2460,t.jadeva=2332,t.jagujarati=2716,t.jagurmukhi=2588,t.jbopomofo=12560,t.jcaron=496,t.jcircle=9433,t.jcircumflex=309,t.jcrossedtail=669,t.jdotlessstroke=607,t.jecyrillic=1112,t.jeemarabic=1580,t.jeemfinalarabic=65182,t.jeeminitialarabic=65183,t.jeemmedialarabic=65184,t.jeharabic=1688,t.jehfinalarabic=64395,t.jhabengali=2461,t.jhadeva=2333,t.jhagujarati=2717,t.jhagurmukhi=2589,t.jheharmenian=1403,t.jis=12292,t.jmonospace=65354,t.jparen=9381,t.jsuperior=690,t.k=107,t.kabashkircyrillic=1185,t.kabengali=2453,t.kacute=7729,t.kacyrillic=1082,t.kadescendercyrillic=1179,t.kadeva=2325,t.kaf=1499,t.kafarabic=1603,t.kafdagesh=64315,t.kafdageshhebrew=64315,t.kaffinalarabic=65242,t.kafhebrew=1499,t.kafinitialarabic=65243,t.kafmedialarabic=65244,t.kafrafehebrew=64333,t.kagujarati=2709,t.kagurmukhi=2581,t.kahiragana=12363,t.kahookcyrillic=1220,t.kakatakana=12459,t.kakatakanahalfwidth=65398,t.kappa=954,t.kappasymbolgreek=1008,t.kapyeounmieumkorean=12657,t.kapyeounphieuphkorean=12676,t.kapyeounpieupkorean=12664,t.kapyeounssangpieupkorean=12665,t.karoriisquare=13069,t.kashidaautoarabic=1600,t.kashidaautonosidebearingarabic=1600,t.kasmallkatakana=12533,t.kasquare=13188,t.kasraarabic=1616,t.kasratanarabic=1613,t.kastrokecyrillic=1183,t.katahiraprolongmarkhalfwidth=65392,t.kaverticalstrokecyrillic=1181,t.kbopomofo=12558,t.kcalsquare=13193,t.kcaron=489,t.kcedilla=311,t.kcircle=9434,t.kcommaaccent=311,t.kdotbelow=7731,t.keharmenian=1412,t.kehiragana=12369,t.kekatakana=12465,t.kekatakanahalfwidth=65401,t.kenarmenian=1391,t.kesmallkatakana=12534,t.kgreenlandic=312,t.khabengali=2454,t.khacyrillic=1093,t.khadeva=2326,t.khagujarati=2710,t.khagurmukhi=2582,t.khaharabic=1582,t.khahfinalarabic=65190,t.khahinitialarabic=65191,t.khahmedialarabic=65192,t.kheicoptic=999,t.khhadeva=2393,t.khhagurmukhi=2649,t.khieukhacirclekorean=12920,t.khieukhaparenkorean=12824,t.khieukhcirclekorean=12906,t.khieukhkorean=12619,t.khieukhparenkorean=12810,t.khokhaithai=3586,t.khokhonthai=3589,t.khokhuatthai=3587,t.khokhwaithai=3588,t.khomutthai=3675,t.khook=409,t.khorakhangthai=3590,t.khzsquare=13201,t.kihiragana=12365,t.kikatakana=12461,t.kikatakanahalfwidth=65399,t.kiroguramusquare=13077,t.kiromeetorusquare=13078,t.kirosquare=13076,t.kiyeokacirclekorean=12910,t.kiyeokaparenkorean=12814,t.kiyeokcirclekorean=12896,t.kiyeokkorean=12593,t.kiyeokparenkorean=12800,t.kiyeoksioskorean=12595,t.kjecyrillic=1116,t.klinebelow=7733,t.klsquare=13208,t.kmcubedsquare=13222,t.kmonospace=65355,t.kmsquaredsquare=13218,t.kohiragana=12371,t.kohmsquare=13248,t.kokaithai=3585,t.kokatakana=12467,t.kokatakanahalfwidth=65402,t.kooposquare=13086,t.koppacyrillic=1153,t.koreanstandardsymbol=12927,t.koroniscmb=835,t.kparen=9382,t.kpasquare=13226,t.ksicyrillic=1135,t.ktsquare=13263,t.kturned=670,t.kuhiragana=12367,t.kukatakana=12463,t.kukatakanahalfwidth=65400,t.kvsquare=13240,t.kwsquare=13246,t.l=108,t.labengali=2482,t.lacute=314,t.ladeva=2354,t.lagujarati=2738,t.lagurmukhi=2610,t.lakkhangyaothai=3653,t.lamaleffinalarabic=65276,t.lamalefhamzaabovefinalarabic=65272,t.lamalefhamzaaboveisolatedarabic=65271,t.lamalefhamzabelowfinalarabic=65274,t.lamalefhamzabelowisolatedarabic=65273,t.lamalefisolatedarabic=65275,t.lamalefmaddaabovefinalarabic=65270,t.lamalefmaddaaboveisolatedarabic=65269,t.lamarabic=1604,t.lambda=955,t.lambdastroke=411,t.lamed=1500,t.lameddagesh=64316,t.lameddageshhebrew=64316,t.lamedhebrew=1500,t.lamfinalarabic=65246,t.lamhahinitialarabic=64714,t.laminitialarabic=65247,t.lamjeeminitialarabic=64713,t.lamkhahinitialarabic=64715,t.lamlamhehisolatedarabic=65010,t.lammedialarabic=65248,t.lammeemhahinitialarabic=64904,t.lammeeminitialarabic=64716,t.largecircle=9711,t.lbar=410,t.lbelt=620,t.lbopomofo=12556,t.lcaron=318,t.lcedilla=316,t.lcircle=9435,t.lcircumflexbelow=7741,t.lcommaaccent=316,t.ldot=320,t.ldotaccent=320,t.ldotbelow=7735,t.ldotbelowmacron=7737,t.leftangleabovecmb=794,t.lefttackbelowcmb=792,t.less=60,t.lessequal=8804,t.lessequalorgreater=8922,t.lessmonospace=65308,t.lessorequivalent=8818,t.lessorgreater=8822,t.lessoverequal=8806,t.lesssmall=65124,t.lezh=622,t.lfblock=9612,t.lhookretroflex=621,t.lira=8356,t.liwnarmenian=1388,t.lj=457,t.ljecyrillic=1113,t.ll=63168,t.lladeva=2355,t.llagujarati=2739,t.llinebelow=7739,t.llladeva=2356,t.llvocalicbengali=2529,t.llvocalicdeva=2401,t.llvocalicvowelsignbengali=2531,t.llvocalicvowelsigndeva=2403,t.lmiddletilde=619,t.lmonospace=65356,t.lmsquare=13264,t.lochulathai=3628,t.logicaland=8743,t.logicalnot=172,t.logicalnotreversed=8976,t.logicalor=8744,t.lolingthai=3621,t.longs=383,t.lowlinecenterline=65102,t.lowlinecmb=818,t.lowlinedashed=65101,t.lozenge=9674,t.lparen=9383,t.lslash=322,t.lsquare=8467,t.lsuperior=63214,t.ltshade=9617,t.luthai=3622,t.lvocalicbengali=2444,t.lvocalicdeva=2316,t.lvocalicvowelsignbengali=2530,t.lvocalicvowelsigndeva=2402,t.lxsquare=13267,t.m=109,t.mabengali=2478,t.macron=175,t.macronbelowcmb=817,t.macroncmb=772,t.macronlowmod=717,t.macronmonospace=65507,t.macute=7743,t.madeva=2350,t.magujarati=2734,t.magurmukhi=2606,t.mahapakhhebrew=1444,t.mahapakhlefthebrew=1444,t.mahiragana=12414,t.maichattawalowleftthai=63637,t.maichattawalowrightthai=63636,t.maichattawathai=3659,t.maichattawaupperleftthai=63635,t.maieklowleftthai=63628,t.maieklowrightthai=63627,t.maiekthai=3656,t.maiekupperleftthai=63626,t.maihanakatleftthai=63620,t.maihanakatthai=3633,t.maitaikhuleftthai=63625,t.maitaikhuthai=3655,t.maitholowleftthai=63631,t.maitholowrightthai=63630,t.maithothai=3657,t.maithoupperleftthai=63629,t.maitrilowleftthai=63634,t.maitrilowrightthai=63633,t.maitrithai=3658,t.maitriupperleftthai=63632,t.maiyamokthai=3654,t.makatakana=12510,t.makatakanahalfwidth=65423,t.male=9794,t.mansyonsquare=13127,t.maqafhebrew=1470,t.mars=9794,t.masoracirclehebrew=1455,t.masquare=13187,t.mbopomofo=12551,t.mbsquare=13268,t.mcircle=9436,t.mcubedsquare=13221,t.mdotaccent=7745,t.mdotbelow=7747,t.meemarabic=1605,t.meemfinalarabic=65250,t.meeminitialarabic=65251,t.meemmedialarabic=65252,t.meemmeeminitialarabic=64721,t.meemmeemisolatedarabic=64584,t.meetorusquare=13133,t.mehiragana=12417,t.meizierasquare=13182,t.mekatakana=12513,t.mekatakanahalfwidth=65426,t.mem=1502,t.memdagesh=64318,t.memdageshhebrew=64318,t.memhebrew=1502,t.menarmenian=1396,t.merkhahebrew=1445,t.merkhakefulahebrew=1446,t.merkhakefulalefthebrew=1446,t.merkhalefthebrew=1445,t.mhook=625,t.mhzsquare=13202,t.middledotkatakanahalfwidth=65381,t.middot=183,t.mieumacirclekorean=12914,t.mieumaparenkorean=12818,t.mieumcirclekorean=12900,t.mieumkorean=12609,t.mieumpansioskorean=12656,t.mieumparenkorean=12804,t.mieumpieupkorean=12654,t.mieumsioskorean=12655,t.mihiragana=12415,t.mikatakana=12511,t.mikatakanahalfwidth=65424,t.minus=8722,t.minusbelowcmb=800,t.minuscircle=8854,t.minusmod=727,t.minusplus=8723,t.minute=8242,t.miribaarusquare=13130,t.mirisquare=13129,t.mlonglegturned=624,t.mlsquare=13206,t.mmcubedsquare=13219,t.mmonospace=65357,t.mmsquaredsquare=13215,t.mohiragana=12418,t.mohmsquare=13249,t.mokatakana=12514,t.mokatakanahalfwidth=65427,t.molsquare=13270,t.momathai=3617,t.moverssquare=13223,t.moverssquaredsquare=13224,t.mparen=9384,t.mpasquare=13227,t.mssquare=13235,t.msuperior=63215,t.mturned=623,t.mu=181,t.mu1=181,t.muasquare=13186,t.muchgreater=8811,t.muchless=8810,t.mufsquare=13196,t.mugreek=956,t.mugsquare=13197,t.muhiragana=12416,t.mukatakana=12512,t.mukatakanahalfwidth=65425,t.mulsquare=13205,t.multiply=215,t.mumsquare=13211,t.munahhebrew=1443,t.munahlefthebrew=1443,t.musicalnote=9834,t.musicalnotedbl=9835,t.musicflatsign=9837,t.musicsharpsign=9839,t.mussquare=13234,t.muvsquare=13238,t.muwsquare=13244,t.mvmegasquare=13241,t.mvsquare=13239,t.mwmegasquare=13247,t.mwsquare=13245,t.n=110,t.nabengali=2472,t.nabla=8711,t.nacute=324,t.nadeva=2344,t.nagujarati=2728,t.nagurmukhi=2600,t.nahiragana=12394,t.nakatakana=12490,t.nakatakanahalfwidth=65413,t.napostrophe=329,t.nasquare=13185,t.nbopomofo=12555,t.nbspace=160,t.ncaron=328,t.ncedilla=326,t.ncircle=9437,t.ncircumflexbelow=7755,t.ncommaaccent=326,t.ndotaccent=7749,t.ndotbelow=7751,t.nehiragana=12397,t.nekatakana=12493,t.nekatakanahalfwidth=65416,t.newsheqelsign=8362,t.nfsquare=13195,t.ngabengali=2457,t.ngadeva=2329,t.ngagujarati=2713,t.ngagurmukhi=2585,t.ngonguthai=3591,t.nhiragana=12435,t.nhookleft=626,t.nhookretroflex=627,t.nieunacirclekorean=12911,t.nieunaparenkorean=12815,t.nieuncieuckorean=12597,t.nieuncirclekorean=12897,t.nieunhieuhkorean=12598,t.nieunkorean=12596,t.nieunpansioskorean=12648,t.nieunparenkorean=12801,t.nieunsioskorean=12647,t.nieuntikeutkorean=12646,t.nihiragana=12395,t.nikatakana=12491,t.nikatakanahalfwidth=65414,t.nikhahitleftthai=63641,t.nikhahitthai=3661,t.nine=57,t.ninearabic=1641,t.ninebengali=2543,t.ninecircle=9320,t.ninecircleinversesansserif=10130,t.ninedeva=2415,t.ninegujarati=2799,t.ninegurmukhi=2671,t.ninehackarabic=1641,t.ninehangzhou=12329,t.nineideographicparen=12840,t.nineinferior=8329,t.ninemonospace=65305,t.nineoldstyle=63289,t.nineparen=9340,t.nineperiod=9360,t.ninepersian=1785,t.nineroman=8568,t.ninesuperior=8313,t.nineteencircle=9330,t.nineteenparen=9350,t.nineteenperiod=9370,t.ninethai=3673,t.nj=460,t.njecyrillic=1114,t.nkatakana=12531,t.nkatakanahalfwidth=65437,t.nlegrightlong=414,t.nlinebelow=7753,t.nmonospace=65358,t.nmsquare=13210,t.nnabengali=2467,t.nnadeva=2339,t.nnagujarati=2723,t.nnagurmukhi=2595,t.nnnadeva=2345,t.nohiragana=12398,t.nokatakana=12494,t.nokatakanahalfwidth=65417,t.nonbreakingspace=160,t.nonenthai=3603,t.nonuthai=3609,t.noonarabic=1606,t.noonfinalarabic=65254,t.noonghunnaarabic=1722,t.noonghunnafinalarabic=64415,t.nooninitialarabic=65255,t.noonjeeminitialarabic=64722,t.noonjeemisolatedarabic=64587,t.noonmedialarabic=65256,t.noonmeeminitialarabic=64725,t.noonmeemisolatedarabic=64590,t.noonnoonfinalarabic=64653,t.notcontains=8716,t.notelement=8713,t.notelementof=8713,t.notequal=8800,t.notgreater=8815,t.notgreaternorequal=8817,t.notgreaternorless=8825,t.notidentical=8802,t.notless=8814,t.notlessnorequal=8816,t.notparallel=8742,t.notprecedes=8832,t.notsubset=8836,t.notsucceeds=8833,t.notsuperset=8837,t.nowarmenian=1398,t.nparen=9385,t.nssquare=13233,t.nsuperior=8319,t.ntilde=241,t.nu=957,t.nuhiragana=12396,t.nukatakana=12492,t.nukatakanahalfwidth=65415,t.nuktabengali=2492,t.nuktadeva=2364,t.nuktagujarati=2748,t.nuktagurmukhi=2620,t.numbersign=35,t.numbersignmonospace=65283,t.numbersignsmall=65119,t.numeralsigngreek=884,t.numeralsignlowergreek=885,t.numero=8470,t.nun=1504,t.nundagesh=64320,t.nundageshhebrew=64320,t.nunhebrew=1504,t.nvsquare=13237,t.nwsquare=13243,t.nyabengali=2462,t.nyadeva=2334,t.nyagujarati=2718,t.nyagurmukhi=2590,t.o=111,t.oacute=243,t.oangthai=3629,t.obarred=629,t.obarredcyrillic=1257,t.obarreddieresiscyrillic=1259,t.obengali=2451,t.obopomofo=12571,t.obreve=335,t.ocandradeva=2321,t.ocandragujarati=2705,t.ocandravowelsigndeva=2377,t.ocandravowelsigngujarati=2761,t.ocaron=466,t.ocircle=9438,t.ocircumflex=244,t.ocircumflexacute=7889,t.ocircumflexdotbelow=7897,t.ocircumflexgrave=7891,t.ocircumflexhookabove=7893,t.ocircumflextilde=7895,t.ocyrillic=1086,t.odblacute=337,t.odblgrave=525,t.odeva=2323,t.odieresis=246,t.odieresiscyrillic=1255,t.odotbelow=7885,t.oe=339,t.oekorean=12634,t.ogonek=731,t.ogonekcmb=808,t.ograve=242,t.ogujarati=2707,t.oharmenian=1413,t.ohiragana=12362,t.ohookabove=7887,t.ohorn=417,t.ohornacute=7899,t.ohorndotbelow=7907,t.ohorngrave=7901,t.ohornhookabove=7903,t.ohorntilde=7905,t.ohungarumlaut=337,t.oi=419,t.oinvertedbreve=527,t.okatakana=12458,t.okatakanahalfwidth=65397,t.okorean=12631,t.olehebrew=1451,t.omacron=333,t.omacronacute=7763,t.omacrongrave=7761,t.omdeva=2384,t.omega=969,t.omega1=982,t.omegacyrillic=1121,t.omegalatinclosed=631,t.omegaroundcyrillic=1147,t.omegatitlocyrillic=1149,t.omegatonos=974,t.omgujarati=2768,t.omicron=959,t.omicrontonos=972,t.omonospace=65359,t.one=49,t.onearabic=1633,t.onebengali=2535,t.onecircle=9312,t.onecircleinversesansserif=10122,t.onedeva=2407,t.onedotenleader=8228,t.oneeighth=8539,t.onefitted=63196,t.onegujarati=2791,t.onegurmukhi=2663,t.onehackarabic=1633,t.onehalf=189,t.onehangzhou=12321,t.oneideographicparen=12832,t.oneinferior=8321,t.onemonospace=65297,t.onenumeratorbengali=2548,t.oneoldstyle=63281,t.oneparen=9332,t.oneperiod=9352,t.onepersian=1777,t.onequarter=188,t.oneroman=8560,t.onesuperior=185,t.onethai=3665,t.onethird=8531,t.oogonek=491,t.oogonekmacron=493,t.oogurmukhi=2579,t.oomatragurmukhi=2635,t.oopen=596,t.oparen=9386,t.openbullet=9702,t.option=8997,t.ordfeminine=170,t.ordmasculine=186,t.orthogonal=8735,t.oshortdeva=2322,t.oshortvowelsigndeva=2378,t.oslash=248,t.oslashacute=511,t.osmallhiragana=12361,t.osmallkatakana=12457,t.osmallkatakanahalfwidth=65387,t.ostrokeacute=511,t.osuperior=63216,t.otcyrillic=1151,t.otilde=245,t.otildeacute=7757,t.otildedieresis=7759,t.oubopomofo=12577,t.overline=8254,t.overlinecenterline=65098,t.overlinecmb=773,t.overlinedashed=65097,t.overlinedblwavy=65100,t.overlinewavy=65099,t.overscore=175,t.ovowelsignbengali=2507,t.ovowelsigndeva=2379,t.ovowelsigngujarati=2763,t.p=112,t.paampssquare=13184,t.paasentosquare=13099,t.pabengali=2474,t.pacute=7765,t.padeva=2346,t.pagedown=8671,t.pageup=8670,t.pagujarati=2730,t.pagurmukhi=2602,t.pahiragana=12401,t.paiyannoithai=3631,t.pakatakana=12497,t.palatalizationcyrilliccmb=1156,t.palochkacyrillic=1216,t.pansioskorean=12671,t.paragraph=182,t.parallel=8741,t.parenleft=40,t.parenleftaltonearabic=64830,t.parenleftbt=63725,t.parenleftex=63724,t.parenleftinferior=8333,t.parenleftmonospace=65288,t.parenleftsmall=65113,t.parenleftsuperior=8317,t.parenlefttp=63723,t.parenleftvertical=65077,t.parenright=41,t.parenrightaltonearabic=64831,t.parenrightbt=63736,t.parenrightex=63735,t.parenrightinferior=8334,t.parenrightmonospace=65289,t.parenrightsmall=65114,t.parenrightsuperior=8318,t.parenrighttp=63734,t.parenrightvertical=65078,t.partialdiff=8706,t.paseqhebrew=1472,t.pashtahebrew=1433,t.pasquare=13225,t.patah=1463,t.patah11=1463,t.patah1d=1463,t.patah2a=1463,t.patahhebrew=1463,t.patahnarrowhebrew=1463,t.patahquarterhebrew=1463,t.patahwidehebrew=1463,t.pazerhebrew=1441,t.pbopomofo=12550,t.pcircle=9439,t.pdotaccent=7767,t.pe=1508,t.pecyrillic=1087,t.pedagesh=64324,t.pedageshhebrew=64324,t.peezisquare=13115,t.pefinaldageshhebrew=64323,t.peharabic=1662,t.peharmenian=1402,t.pehebrew=1508,t.pehfinalarabic=64343,t.pehinitialarabic=64344,t.pehiragana=12410,t.pehmedialarabic=64345,t.pekatakana=12506,t.pemiddlehookcyrillic=1191,t.perafehebrew=64334,t.percent=37,t.percentarabic=1642,t.percentmonospace=65285,t.percentsmall=65130,t.period=46,t.periodarmenian=1417,t.periodcentered=183,t.periodhalfwidth=65377,t.periodinferior=63207,t.periodmonospace=65294,t.periodsmall=65106,t.periodsuperior=63208,t.perispomenigreekcmb=834,t.perpendicular=8869,t.perthousand=8240,t.peseta=8359,t.pfsquare=13194,t.phabengali=2475,t.phadeva=2347,t.phagujarati=2731,t.phagurmukhi=2603,t.phi=966,t.phi1=981,t.phieuphacirclekorean=12922,t.phieuphaparenkorean=12826,t.phieuphcirclekorean=12908,t.phieuphkorean=12621,t.phieuphparenkorean=12812,t.philatin=632,t.phinthuthai=3642,t.phisymbolgreek=981,t.phook=421,t.phophanthai=3614,t.phophungthai=3612,t.phosamphaothai=3616,t.pi=960,t.pieupacirclekorean=12915,t.pieupaparenkorean=12819,t.pieupcieuckorean=12662,t.pieupcirclekorean=12901,t.pieupkiyeokkorean=12658,t.pieupkorean=12610,t.pieupparenkorean=12805,t.pieupsioskiyeokkorean=12660,t.pieupsioskorean=12612,t.pieupsiostikeutkorean=12661,t.pieupthieuthkorean=12663,t.pieuptikeutkorean=12659,t.pihiragana=12404,t.pikatakana=12500,t.pisymbolgreek=982,t.piwrarmenian=1411,t.planckover2pi=8463,t.planckover2pi1=8463,t.plus=43,t.plusbelowcmb=799,t.pluscircle=8853,t.plusminus=177,t.plusmod=726,t.plusmonospace=65291,t.plussmall=65122,t.plussuperior=8314,t.pmonospace=65360,t.pmsquare=13272,t.pohiragana=12413,t.pointingindexdownwhite=9759,t.pointingindexleftwhite=9756,t.pointingindexrightwhite=9758,t.pointingindexupwhite=9757,t.pokatakana=12509,t.poplathai=3611,t.postalmark=12306,t.postalmarkface=12320,t.pparen=9387,t.precedes=8826,t.prescription=8478,t.primemod=697,t.primereversed=8245,t.product=8719,t.projective=8965,t.prolongedkana=12540,t.propellor=8984,t.propersubset=8834,t.propersuperset=8835,t.proportion=8759,t.proportional=8733,t.psi=968,t.psicyrillic=1137,t.psilipneumatacyrilliccmb=1158,t.pssquare=13232,t.puhiragana=12407,t.pukatakana=12503,t.pvsquare=13236,t.pwsquare=13242,t.q=113,t.qadeva=2392,t.qadmahebrew=1448,t.qafarabic=1602,t.qaffinalarabic=65238,t.qafinitialarabic=65239,t.qafmedialarabic=65240,t.qamats=1464,t.qamats10=1464,t.qamats1a=1464,t.qamats1c=1464,t.qamats27=1464,t.qamats29=1464,t.qamats33=1464,t.qamatsde=1464,t.qamatshebrew=1464,t.qamatsnarrowhebrew=1464,t.qamatsqatanhebrew=1464,t.qamatsqatannarrowhebrew=1464,t.qamatsqatanquarterhebrew=1464,t.qamatsqatanwidehebrew=1464,t.qamatsquarterhebrew=1464,t.qamatswidehebrew=1464,t.qarneyparahebrew=1439,t.qbopomofo=12561,t.qcircle=9440,t.qhook=672,t.qmonospace=65361,t.qof=1511,t.qofdagesh=64327,t.qofdageshhebrew=64327,t.qofhebrew=1511,t.qparen=9388,t.quarternote=9833,t.qubuts=1467,t.qubuts18=1467,t.qubuts25=1467,t.qubuts31=1467,t.qubutshebrew=1467,t.qubutsnarrowhebrew=1467,t.qubutsquarterhebrew=1467,t.qubutswidehebrew=1467,t.question=63,t.questionarabic=1567,t.questionarmenian=1374,t.questiondown=191,t.questiondownsmall=63423,t.questiongreek=894,t.questionmonospace=65311,t.questionsmall=63295,t.quotedbl=34,t.quotedblbase=8222,t.quotedblleft=8220,t.quotedblmonospace=65282,t.quotedblprime=12318,t.quotedblprimereversed=12317,t.quotedblright=8221,t.quoteleft=8216,t.quoteleftreversed=8219,t.quotereversed=8219,t.quoteright=8217,t.quoterightn=329,t.quotesinglbase=8218,t.quotesingle=39,t.quotesinglemonospace=65287,t.r=114,t.raarmenian=1404,t.rabengali=2480,t.racute=341,t.radeva=2352,t.radical=8730,t.radicalex=63717,t.radoverssquare=13230,t.radoverssquaredsquare=13231,t.radsquare=13229,t.rafe=1471,t.rafehebrew=1471,t.ragujarati=2736,t.ragurmukhi=2608,t.rahiragana=12425,t.rakatakana=12521,t.rakatakanahalfwidth=65431,t.ralowerdiagonalbengali=2545,t.ramiddlediagonalbengali=2544,t.ramshorn=612,t.ratio=8758,t.rbopomofo=12566,t.rcaron=345,t.rcedilla=343,t.rcircle=9441,t.rcommaaccent=343,t.rdblgrave=529,t.rdotaccent=7769,t.rdotbelow=7771,t.rdotbelowmacron=7773,t.referencemark=8251,t.reflexsubset=8838,t.reflexsuperset=8839,t.registered=174,t.registersans=63720,t.registerserif=63194,t.reharabic=1585,t.reharmenian=1408,t.rehfinalarabic=65198,t.rehiragana=12428,t.rekatakana=12524,t.rekatakanahalfwidth=65434,t.resh=1512,t.reshdageshhebrew=64328,t.reshhebrew=1512,t.reversedtilde=8765,t.reviahebrew=1431,t.reviamugrashhebrew=1431,t.revlogicalnot=8976,t.rfishhook=638,t.rfishhookreversed=639,t.rhabengali=2525,t.rhadeva=2397,t.rho=961,t.rhook=637,t.rhookturned=635,t.rhookturnedsuperior=693,t.rhosymbolgreek=1009,t.rhotichookmod=734,t.rieulacirclekorean=12913,t.rieulaparenkorean=12817,t.rieulcirclekorean=12899,t.rieulhieuhkorean=12608,t.rieulkiyeokkorean=12602,t.rieulkiyeoksioskorean=12649,t.rieulkorean=12601,t.rieulmieumkorean=12603,t.rieulpansioskorean=12652,t.rieulparenkorean=12803,t.rieulphieuphkorean=12607,t.rieulpieupkorean=12604,t.rieulpieupsioskorean=12651,t.rieulsioskorean=12605,t.rieulthieuthkorean=12606,t.rieultikeutkorean=12650,t.rieulyeorinhieuhkorean=12653,t.rightangle=8735,t.righttackbelowcmb=793,t.righttriangle=8895,t.rihiragana=12426,t.rikatakana=12522,t.rikatakanahalfwidth=65432,t.ring=730,t.ringbelowcmb=805,t.ringcmb=778,t.ringhalfleft=703,t.ringhalfleftarmenian=1369,t.ringhalfleftbelowcmb=796,t.ringhalfleftcentered=723,t.ringhalfright=702,t.ringhalfrightbelowcmb=825,t.ringhalfrightcentered=722,t.rinvertedbreve=531,t.rittorusquare=13137,t.rlinebelow=7775,t.rlongleg=636,t.rlonglegturned=634,t.rmonospace=65362,t.rohiragana=12429,t.rokatakana=12525,t.rokatakanahalfwidth=65435,t.roruathai=3619,t.rparen=9389,t.rrabengali=2524,t.rradeva=2353,t.rragurmukhi=2652,t.rreharabic=1681,t.rrehfinalarabic=64397,t.rrvocalicbengali=2528,t.rrvocalicdeva=2400,t.rrvocalicgujarati=2784,t.rrvocalicvowelsignbengali=2500,t.rrvocalicvowelsigndeva=2372,t.rrvocalicvowelsigngujarati=2756,t.rsuperior=63217,t.rtblock=9616,t.rturned=633,t.rturnedsuperior=692,t.ruhiragana=12427,t.rukatakana=12523,t.rukatakanahalfwidth=65433,t.rupeemarkbengali=2546,t.rupeesignbengali=2547,t.rupiah=63197,t.ruthai=3620,t.rvocalicbengali=2443,t.rvocalicdeva=2315,t.rvocalicgujarati=2699,t.rvocalicvowelsignbengali=2499,t.rvocalicvowelsigndeva=2371,t.rvocalicvowelsigngujarati=2755,t.s=115,t.sabengali=2488,t.sacute=347,t.sacutedotaccent=7781,t.sadarabic=1589,t.sadeva=2360,t.sadfinalarabic=65210,t.sadinitialarabic=65211,t.sadmedialarabic=65212,t.sagujarati=2744,t.sagurmukhi=2616,t.sahiragana=12373,t.sakatakana=12469,t.sakatakanahalfwidth=65403,t.sallallahoualayhewasallamarabic=65018,t.samekh=1505,t.samekhdagesh=64321,t.samekhdageshhebrew=64321,t.samekhhebrew=1505,t.saraaathai=3634,t.saraaethai=3649,t.saraaimaimalaithai=3652,t.saraaimaimuanthai=3651,t.saraamthai=3635,t.saraathai=3632,t.saraethai=3648,t.saraiileftthai=63622,t.saraiithai=3637,t.saraileftthai=63621,t.saraithai=3636,t.saraothai=3650,t.saraueeleftthai=63624,t.saraueethai=3639,t.saraueleftthai=63623,t.sarauethai=3638,t.sarauthai=3640,t.sarauuthai=3641,t.sbopomofo=12569,t.scaron=353,t.scarondotaccent=7783,t.scedilla=351,t.schwa=601,t.schwacyrillic=1241,t.schwadieresiscyrillic=1243,t.schwahook=602,t.scircle=9442,t.scircumflex=349,t.scommaaccent=537,t.sdotaccent=7777,t.sdotbelow=7779,t.sdotbelowdotaccent=7785,t.seagullbelowcmb=828,t.second=8243,t.secondtonechinese=714,t.section=167,t.seenarabic=1587,t.seenfinalarabic=65202,t.seeninitialarabic=65203,t.seenmedialarabic=65204,t.segol=1462,t.segol13=1462,t.segol1f=1462,t.segol2c=1462,t.segolhebrew=1462,t.segolnarrowhebrew=1462,t.segolquarterhebrew=1462,t.segoltahebrew=1426,t.segolwidehebrew=1462,t.seharmenian=1405,t.sehiragana=12379,t.sekatakana=12475,t.sekatakanahalfwidth=65406,t.semicolon=59,t.semicolonarabic=1563,t.semicolonmonospace=65307,t.semicolonsmall=65108,t.semivoicedmarkkana=12444,t.semivoicedmarkkanahalfwidth=65439,t.sentisquare=13090,t.sentosquare=13091,t.seven=55,t.sevenarabic=1639,t.sevenbengali=2541,t.sevencircle=9318,t.sevencircleinversesansserif=10128,t.sevendeva=2413,t.seveneighths=8542,t.sevengujarati=2797,t.sevengurmukhi=2669,t.sevenhackarabic=1639,t.sevenhangzhou=12327,t.sevenideographicparen=12838,t.seveninferior=8327,t.sevenmonospace=65303,t.sevenoldstyle=63287,t.sevenparen=9338,t.sevenperiod=9358,t.sevenpersian=1783,t.sevenroman=8566,t.sevensuperior=8311,t.seventeencircle=9328,t.seventeenparen=9348,t.seventeenperiod=9368,t.seventhai=3671,t.sfthyphen=173,t.shaarmenian=1399,t.shabengali=2486,t.shacyrillic=1096,t.shaddaarabic=1617,t.shaddadammaarabic=64609,t.shaddadammatanarabic=64606,t.shaddafathaarabic=64608,t.shaddakasraarabic=64610,t.shaddakasratanarabic=64607,t.shade=9618,t.shadedark=9619,t.shadelight=9617,t.shademedium=9618,t.shadeva=2358,t.shagujarati=2742,t.shagurmukhi=2614,t.shalshelethebrew=1427,t.shbopomofo=12565,t.shchacyrillic=1097,t.sheenarabic=1588,t.sheenfinalarabic=65206,t.sheeninitialarabic=65207,t.sheenmedialarabic=65208,t.sheicoptic=995,t.sheqel=8362,t.sheqelhebrew=8362,t.sheva=1456,t.sheva115=1456,t.sheva15=1456,t.sheva22=1456,t.sheva2e=1456,t.shevahebrew=1456,t.shevanarrowhebrew=1456,t.shevaquarterhebrew=1456,t.shevawidehebrew=1456,t.shhacyrillic=1211,t.shimacoptic=1005,t.shin=1513,t.shindagesh=64329,t.shindageshhebrew=64329,t.shindageshshindot=64300,t.shindageshshindothebrew=64300,t.shindageshsindot=64301,t.shindageshsindothebrew=64301,t.shindothebrew=1473,t.shinhebrew=1513,t.shinshindot=64298,t.shinshindothebrew=64298,t.shinsindot=64299,t.shinsindothebrew=64299,t.shook=642,t.sigma=963,t.sigma1=962,t.sigmafinal=962,t.sigmalunatesymbolgreek=1010,t.sihiragana=12375,t.sikatakana=12471,t.sikatakanahalfwidth=65404,t.siluqhebrew=1469,t.siluqlefthebrew=1469,t.similar=8764,t.sindothebrew=1474,t.siosacirclekorean=12916,t.siosaparenkorean=12820,t.sioscieuckorean=12670,t.sioscirclekorean=12902,t.sioskiyeokkorean=12666,t.sioskorean=12613,t.siosnieunkorean=12667,t.siosparenkorean=12806,t.siospieupkorean=12669,t.siostikeutkorean=12668,t.six=54,t.sixarabic=1638,t.sixbengali=2540,t.sixcircle=9317,t.sixcircleinversesansserif=10127,t.sixdeva=2412,t.sixgujarati=2796,t.sixgurmukhi=2668,t.sixhackarabic=1638,t.sixhangzhou=12326,t.sixideographicparen=12837,t.sixinferior=8326,t.sixmonospace=65302,t.sixoldstyle=63286,t.sixparen=9337,t.sixperiod=9357,t.sixpersian=1782,t.sixroman=8565,t.sixsuperior=8310,t.sixteencircle=9327,t.sixteencurrencydenominatorbengali=2553,t.sixteenparen=9347,t.sixteenperiod=9367,t.sixthai=3670,t.slash=47,t.slashmonospace=65295,t.slong=383,t.slongdotaccent=7835,t.smileface=9786,t.smonospace=65363,t.sofpasuqhebrew=1475,t.softhyphen=173,t.softsigncyrillic=1100,t.sohiragana=12381,t.sokatakana=12477,t.sokatakanahalfwidth=65407,t.soliduslongoverlaycmb=824,t.solidusshortoverlaycmb=823,t.sorusithai=3625,t.sosalathai=3624,t.sosothai=3595,t.sosuathai=3626,t.space=32,t.spacehackarabic=32,t.spade=9824,t.spadesuitblack=9824,t.spadesuitwhite=9828,t.sparen=9390,t.squarebelowcmb=827,t.squarecc=13252,t.squarecm=13213,t.squarediagonalcrosshatchfill=9641,t.squarehorizontalfill=9636,t.squarekg=13199,t.squarekm=13214,t.squarekmcapital=13262,t.squareln=13265,t.squarelog=13266,t.squaremg=13198,t.squaremil=13269,t.squaremm=13212,t.squaremsquared=13217,t.squareorthogonalcrosshatchfill=9638,t.squareupperlefttolowerrightfill=9639,t.squareupperrighttolowerleftfill=9640,t.squareverticalfill=9637,t.squarewhitewithsmallblack=9635,t.srsquare=13275,t.ssabengali=2487,t.ssadeva=2359,t.ssagujarati=2743,t.ssangcieuckorean=12617,t.ssanghieuhkorean=12677,t.ssangieungkorean=12672,t.ssangkiyeokkorean=12594,t.ssangnieunkorean=12645,t.ssangpieupkorean=12611,t.ssangsioskorean=12614,t.ssangtikeutkorean=12600,t.ssuperior=63218,t.sterling=163,t.sterlingmonospace=65505,t.strokelongoverlaycmb=822,t.strokeshortoverlaycmb=821,t.subset=8834,t.subsetnotequal=8842,t.subsetorequal=8838,t.succeeds=8827,t.suchthat=8715,t.suhiragana=12377,t.sukatakana=12473,t.sukatakanahalfwidth=65405,t.sukunarabic=1618,t.summation=8721,t.sun=9788,t.superset=8835,t.supersetnotequal=8843,t.supersetorequal=8839,t.svsquare=13276,t.syouwaerasquare=13180,t.t=116,t.tabengali=2468,t.tackdown=8868,t.tackleft=8867,t.tadeva=2340,t.tagujarati=2724,t.tagurmukhi=2596,t.taharabic=1591,t.tahfinalarabic=65218,t.tahinitialarabic=65219,t.tahiragana=12383,t.tahmedialarabic=65220,t.taisyouerasquare=13181,t.takatakana=12479,t.takatakanahalfwidth=65408,t.tatweelarabic=1600,t.tau=964,t.tav=1514,t.tavdages=64330,t.tavdagesh=64330,t.tavdageshhebrew=64330,t.tavhebrew=1514,t.tbar=359,t.tbopomofo=12554,t.tcaron=357,t.tccurl=680,t.tcedilla=355,t.tcheharabic=1670,t.tchehfinalarabic=64379,t.tchehinitialarabic=64380,t.tchehmedialarabic=64381,t.tcircle=9443,t.tcircumflexbelow=7793,t.tcommaaccent=355,t.tdieresis=7831,t.tdotaccent=7787,t.tdotbelow=7789,t.tecyrillic=1090,t.tedescendercyrillic=1197,t.teharabic=1578,t.tehfinalarabic=65174,t.tehhahinitialarabic=64674,t.tehhahisolatedarabic=64524,t.tehinitialarabic=65175,t.tehiragana=12390,t.tehjeeminitialarabic=64673,t.tehjeemisolatedarabic=64523,t.tehmarbutaarabic=1577,t.tehmarbutafinalarabic=65172,t.tehmedialarabic=65176,t.tehmeeminitialarabic=64676,t.tehmeemisolatedarabic=64526,t.tehnoonfinalarabic=64627,t.tekatakana=12486,t.tekatakanahalfwidth=65411,t.telephone=8481,t.telephoneblack=9742,t.telishagedolahebrew=1440,t.telishaqetanahebrew=1449,t.tencircle=9321,t.tenideographicparen=12841,t.tenparen=9341,t.tenperiod=9361,t.tenroman=8569,t.tesh=679,t.tet=1496,t.tetdagesh=64312,t.tetdageshhebrew=64312,t.tethebrew=1496,t.tetsecyrillic=1205,t.tevirhebrew=1435,t.tevirlefthebrew=1435,t.thabengali=2469,t.thadeva=2341,t.thagujarati=2725,t.thagurmukhi=2597,t.thalarabic=1584,t.thalfinalarabic=65196,t.thanthakhatlowleftthai=63640,t.thanthakhatlowrightthai=63639,t.thanthakhatthai=3660,t.thanthakhatupperleftthai=63638,t.theharabic=1579,t.thehfinalarabic=65178,t.thehinitialarabic=65179,t.thehmedialarabic=65180,t.thereexists=8707,t.therefore=8756,t.theta=952,t.theta1=977,t.thetasymbolgreek=977,t.thieuthacirclekorean=12921,t.thieuthaparenkorean=12825,t.thieuthcirclekorean=12907,t.thieuthkorean=12620,t.thieuthparenkorean=12811,t.thirteencircle=9324,t.thirteenparen=9344,t.thirteenperiod=9364,t.thonangmonthothai=3601,t.thook=429,t.thophuthaothai=3602,t.thorn=254,t.thothahanthai=3607,t.thothanthai=3600,t.thothongthai=3608,t.thothungthai=3606,t.thousandcyrillic=1154,t.thousandsseparatorarabic=1644,t.thousandsseparatorpersian=1644,t.three=51,t.threearabic=1635,t.threebengali=2537,t.threecircle=9314,t.threecircleinversesansserif=10124,t.threedeva=2409,t.threeeighths=8540,t.threegujarati=2793,t.threegurmukhi=2665,t.threehackarabic=1635,t.threehangzhou=12323,t.threeideographicparen=12834,t.threeinferior=8323,t.threemonospace=65299,t.threenumeratorbengali=2550,t.threeoldstyle=63283,t.threeparen=9334,t.threeperiod=9354,t.threepersian=1779,t.threequarters=190,t.threequartersemdash=63198,t.threeroman=8562,t.threesuperior=179,t.threethai=3667,t.thzsquare=13204,t.tihiragana=12385,t.tikatakana=12481,t.tikatakanahalfwidth=65409,t.tikeutacirclekorean=12912,t.tikeutaparenkorean=12816,t.tikeutcirclekorean=12898,t.tikeutkorean=12599,t.tikeutparenkorean=12802,t.tilde=732,t.tildebelowcmb=816,t.tildecmb=771,t.tildecomb=771,t.tildedoublecmb=864,t.tildeoperator=8764,t.tildeoverlaycmb=820,t.tildeverticalcmb=830,t.timescircle=8855,t.tipehahebrew=1430,t.tipehalefthebrew=1430,t.tippigurmukhi=2672,t.titlocyrilliccmb=1155,t.tiwnarmenian=1407,t.tlinebelow=7791,t.tmonospace=65364,t.toarmenian=1385,t.tohiragana=12392,t.tokatakana=12488,t.tokatakanahalfwidth=65412,t.tonebarextrahighmod=741,t.tonebarextralowmod=745,t.tonebarhighmod=742,t.tonebarlowmod=744,t.tonebarmidmod=743,t.tonefive=445,t.tonesix=389,t.tonetwo=424,t.tonos=900,t.tonsquare=13095,t.topatakthai=3599,t.tortoiseshellbracketleft=12308,t.tortoiseshellbracketleftsmall=65117,t.tortoiseshellbracketleftvertical=65081,t.tortoiseshellbracketright=12309,t.tortoiseshellbracketrightsmall=65118,t.tortoiseshellbracketrightvertical=65082,t.totaothai=3605,t.tpalatalhook=427,t.tparen=9391,t.trademark=8482,t.trademarksans=63722,t.trademarkserif=63195,t.tretroflexhook=648,t.triagdn=9660,t.triaglf=9668,t.triagrt=9658,t.triagup=9650,t.ts=678,t.tsadi=1510,t.tsadidagesh=64326,t.tsadidageshhebrew=64326,t.tsadihebrew=1510,t.tsecyrillic=1094,t.tsere=1461,t.tsere12=1461,t.tsere1e=1461,t.tsere2b=1461,t.tserehebrew=1461,t.tserenarrowhebrew=1461,t.tserequarterhebrew=1461,t.tserewidehebrew=1461,t.tshecyrillic=1115,t.tsuperior=63219,t.ttabengali=2463,t.ttadeva=2335,t.ttagujarati=2719,t.ttagurmukhi=2591,t.tteharabic=1657,t.ttehfinalarabic=64359,t.ttehinitialarabic=64360,t.ttehmedialarabic=64361,t.tthabengali=2464,t.tthadeva=2336,t.tthagujarati=2720,t.tthagurmukhi=2592,t.tturned=647,t.tuhiragana=12388,t.tukatakana=12484,t.tukatakanahalfwidth=65410,t.tusmallhiragana=12387,t.tusmallkatakana=12483,t.tusmallkatakanahalfwidth=65391,t.twelvecircle=9323,t.twelveparen=9343,t.twelveperiod=9363,t.twelveroman=8571,t.twentycircle=9331,t.twentyhangzhou=21316,t.twentyparen=9351,t.twentyperiod=9371,t.two=50,t.twoarabic=1634,t.twobengali=2536,t.twocircle=9313,t.twocircleinversesansserif=10123,t.twodeva=2408,t.twodotenleader=8229,t.twodotleader=8229,t.twodotleadervertical=65072,t.twogujarati=2792,t.twogurmukhi=2664,t.twohackarabic=1634,t.twohangzhou=12322,t.twoideographicparen=12833,t.twoinferior=8322,t.twomonospace=65298,t.twonumeratorbengali=2549,t.twooldstyle=63282,t.twoparen=9333,t.twoperiod=9353,t.twopersian=1778,t.tworoman=8561,t.twostroke=443,t.twosuperior=178,t.twothai=3666,t.twothirds=8532,t.u=117,t.uacute=250,t.ubar=649,t.ubengali=2441,t.ubopomofo=12584,t.ubreve=365,t.ucaron=468,t.ucircle=9444,t.ucircumflex=251,t.ucircumflexbelow=7799,t.ucyrillic=1091,t.udattadeva=2385,t.udblacute=369,t.udblgrave=533,t.udeva=2313,t.udieresis=252,t.udieresisacute=472,t.udieresisbelow=7795,t.udieresiscaron=474,t.udieresiscyrillic=1265,t.udieresisgrave=476,t.udieresismacron=470,t.udotbelow=7909,t.ugrave=249,t.ugujarati=2697,t.ugurmukhi=2569,t.uhiragana=12358,t.uhookabove=7911,t.uhorn=432,t.uhornacute=7913,t.uhorndotbelow=7921,t.uhorngrave=7915,t.uhornhookabove=7917,t.uhorntilde=7919,t.uhungarumlaut=369,t.uhungarumlautcyrillic=1267,t.uinvertedbreve=535,t.ukatakana=12454,t.ukatakanahalfwidth=65395,t.ukcyrillic=1145,t.ukorean=12636,t.umacron=363,t.umacroncyrillic=1263,t.umacrondieresis=7803,t.umatragurmukhi=2625,t.umonospace=65365,t.underscore=95,t.underscoredbl=8215,t.underscoremonospace=65343,t.underscorevertical=65075,t.underscorewavy=65103,t.union=8746,t.universal=8704,t.uogonek=371,t.uparen=9392,t.upblock=9600,t.upperdothebrew=1476,t.upsilon=965,t.upsilondieresis=971,t.upsilondieresistonos=944,t.upsilonlatin=650,t.upsilontonos=973,t.uptackbelowcmb=797,t.uptackmod=724,t.uragurmukhi=2675,t.uring=367,t.ushortcyrillic=1118,t.usmallhiragana=12357,t.usmallkatakana=12453,t.usmallkatakanahalfwidth=65385,t.ustraightcyrillic=1199,t.ustraightstrokecyrillic=1201,t.utilde=361,t.utildeacute=7801,t.utildebelow=7797,t.uubengali=2442,t.uudeva=2314,t.uugujarati=2698,t.uugurmukhi=2570,t.uumatragurmukhi=2626,t.uuvowelsignbengali=2498,t.uuvowelsigndeva=2370,t.uuvowelsigngujarati=2754,t.uvowelsignbengali=2497,t.uvowelsigndeva=2369,t.uvowelsigngujarati=2753,t.v=118,t.vadeva=2357,t.vagujarati=2741,t.vagurmukhi=2613,t.vakatakana=12535,t.vav=1493,t.vavdagesh=64309,t.vavdagesh65=64309,t.vavdageshhebrew=64309,t.vavhebrew=1493,t.vavholam=64331,t.vavholamhebrew=64331,t.vavvavhebrew=1520,t.vavyodhebrew=1521,t.vcircle=9445,t.vdotbelow=7807,t.vecyrillic=1074,t.veharabic=1700,t.vehfinalarabic=64363,t.vehinitialarabic=64364,t.vehmedialarabic=64365,t.vekatakana=12537,t.venus=9792,t.verticalbar=124,t.verticallineabovecmb=781,t.verticallinebelowcmb=809,t.verticallinelowmod=716,t.verticallinemod=712,t.vewarmenian=1406,t.vhook=651,t.vikatakana=12536,t.viramabengali=2509,t.viramadeva=2381,t.viramagujarati=2765,t.visargabengali=2435,t.visargadeva=2307,t.visargagujarati=2691,t.vmonospace=65366,t.voarmenian=1400,t.voicediterationhiragana=12446,t.voicediterationkatakana=12542,t.voicedmarkkana=12443,t.voicedmarkkanahalfwidth=65438,t.vokatakana=12538,t.vparen=9393,t.vtilde=7805,t.vturned=652,t.vuhiragana=12436,t.vukatakana=12532,t.w=119,t.wacute=7811,t.waekorean=12633,t.wahiragana=12431,t.wakatakana=12527,t.wakatakanahalfwidth=65436,t.wakorean=12632,t.wasmallhiragana=12430,t.wasmallkatakana=12526,t.wattosquare=13143,t.wavedash=12316,t.wavyunderscorevertical=65076,t.wawarabic=1608,t.wawfinalarabic=65262,t.wawhamzaabovearabic=1572,t.wawhamzaabovefinalarabic=65158,t.wbsquare=13277,t.wcircle=9446,t.wcircumflex=373,t.wdieresis=7813,t.wdotaccent=7815,t.wdotbelow=7817,t.wehiragana=12433,t.weierstrass=8472,t.wekatakana=12529,t.wekorean=12638,t.weokorean=12637,t.wgrave=7809,t.whitebullet=9702,t.whitecircle=9675,t.whitecircleinverse=9689,t.whitecornerbracketleft=12302,t.whitecornerbracketleftvertical=65091,t.whitecornerbracketright=12303,t.whitecornerbracketrightvertical=65092,t.whitediamond=9671,t.whitediamondcontainingblacksmalldiamond=9672,t.whitedownpointingsmalltriangle=9663,t.whitedownpointingtriangle=9661,t.whiteleftpointingsmalltriangle=9667,t.whiteleftpointingtriangle=9665,t.whitelenticularbracketleft=12310,t.whitelenticularbracketright=12311,t.whiterightpointingsmalltriangle=9657,t.whiterightpointingtriangle=9655,t.whitesmallsquare=9643,t.whitesmilingface=9786,t.whitesquare=9633,t.whitestar=9734,t.whitetelephone=9743,t.whitetortoiseshellbracketleft=12312,t.whitetortoiseshellbracketright=12313,t.whiteuppointingsmalltriangle=9653,t.whiteuppointingtriangle=9651,t.wihiragana=12432,t.wikatakana=12528,t.wikorean=12639,t.wmonospace=65367,t.wohiragana=12434,t.wokatakana=12530,t.wokatakanahalfwidth=65382,t.won=8361,t.wonmonospace=65510,t.wowaenthai=3623,t.wparen=9394,t.wring=7832,t.wsuperior=695,t.wturned=653,t.wynn=447,t.x=120,t.xabovecmb=829,t.xbopomofo=12562,t.xcircle=9447,t.xdieresis=7821,t.xdotaccent=7819,t.xeharmenian=1389,t.xi=958,t.xmonospace=65368,t.xparen=9395,t.xsuperior=739,t.y=121,t.yaadosquare=13134,t.yabengali=2479,t.yacute=253,t.yadeva=2351,t.yaekorean=12626,t.yagujarati=2735,t.yagurmukhi=2607,t.yahiragana=12420,t.yakatakana=12516,t.yakatakanahalfwidth=65428,t.yakorean=12625,t.yamakkanthai=3662,t.yasmallhiragana=12419,t.yasmallkatakana=12515,t.yasmallkatakanahalfwidth=65388,t.yatcyrillic=1123,t.ycircle=9448,t.ycircumflex=375,t.ydieresis=255,t.ydotaccent=7823,t.ydotbelow=7925,t.yeharabic=1610,t.yehbarreearabic=1746,t.yehbarreefinalarabic=64431,t.yehfinalarabic=65266,t.yehhamzaabovearabic=1574,t.yehhamzaabovefinalarabic=65162,t.yehhamzaaboveinitialarabic=65163,t.yehhamzaabovemedialarabic=65164,t.yehinitialarabic=65267,t.yehmedialarabic=65268,t.yehmeeminitialarabic=64733,t.yehmeemisolatedarabic=64600,t.yehnoonfinalarabic=64660,t.yehthreedotsbelowarabic=1745,t.yekorean=12630,t.yen=165,t.yenmonospace=65509,t.yeokorean=12629,t.yeorinhieuhkorean=12678,t.yerahbenyomohebrew=1450,t.yerahbenyomolefthebrew=1450,t.yericyrillic=1099,t.yerudieresiscyrillic=1273,t.yesieungkorean=12673,t.yesieungpansioskorean=12675,t.yesieungsioskorean=12674,t.yetivhebrew=1434,t.ygrave=7923,t.yhook=436,t.yhookabove=7927,t.yiarmenian=1397,t.yicyrillic=1111,t.yikorean=12642,t.yinyang=9775,t.yiwnarmenian=1410,t.ymonospace=65369,t.yod=1497,t.yoddagesh=64313,t.yoddageshhebrew=64313,t.yodhebrew=1497,t.yodyodhebrew=1522,t.yodyodpatahhebrew=64287,t.yohiragana=12424,t.yoikorean=12681,t.yokatakana=12520,t.yokatakanahalfwidth=65430,t.yokorean=12635,t.yosmallhiragana=12423,t.yosmallkatakana=12519,t.yosmallkatakanahalfwidth=65390,t.yotgreek=1011,t.yoyaekorean=12680,t.yoyakorean=12679,t.yoyakthai=3618,t.yoyingthai=3597,t.yparen=9396,t.ypogegrammeni=890,t.ypogegrammenigreekcmb=837,t.yr=422,t.yring=7833,t.ysuperior=696,t.ytilde=7929,t.yturned=654,t.yuhiragana=12422,t.yuikorean=12684,t.yukatakana=12518,t.yukatakanahalfwidth=65429,t.yukorean=12640,t.yusbigcyrillic=1131,t.yusbigiotifiedcyrillic=1133,t.yuslittlecyrillic=1127,t.yuslittleiotifiedcyrillic=1129,t.yusmallhiragana=12421,t.yusmallkatakana=12517,t.yusmallkatakanahalfwidth=65389,t.yuyekorean=12683,t.yuyeokorean=12682,t.yyabengali=2527,t.yyadeva=2399,t.z=122,t.zaarmenian=1382,t.zacute=378,t.zadeva=2395,t.zagurmukhi=2651,t.zaharabic=1592,t.zahfinalarabic=65222,t.zahinitialarabic=65223,t.zahiragana=12374,t.zahmedialarabic=65224,t.zainarabic=1586,t.zainfinalarabic=65200,t.zakatakana=12470,t.zaqefgadolhebrew=1429,t.zaqefqatanhebrew=1428,t.zarqahebrew=1432,t.zayin=1494,t.zayindagesh=64310,t.zayindageshhebrew=64310,t.zayinhebrew=1494,t.zbopomofo=12567,t.zcaron=382,t.zcircle=9449,t.zcircumflex=7825,t.zcurl=657,t.zdot=380,t.zdotaccent=380,t.zdotbelow=7827,t.zecyrillic=1079,t.zedescendercyrillic=1177,t.zedieresiscyrillic=1247,t.zehiragana=12380,t.zekatakana=12476,t.zero=48,t.zeroarabic=1632,t.zerobengali=2534,t.zerodeva=2406,t.zerogujarati=2790,t.zerogurmukhi=2662,t.zerohackarabic=1632,t.zeroinferior=8320,t.zeromonospace=65296,t.zerooldstyle=63280,t.zeropersian=1776,t.zerosuperior=8304,t.zerothai=3664,t.zerowidthjoiner=65279,t.zerowidthnonjoiner=8204,t.zerowidthspace=8203,t.zeta=950,t.zhbopomofo=12563,t.zhearmenian=1386,t.zhebrevecyrillic=1218,t.zhecyrillic=1078,t.zhedescendercyrillic=1175,t.zhedieresiscyrillic=1245,t.zihiragana=12376,t.zikatakana=12472,t.zinorhebrew=1454,t.zlinebelow=7829,t.zmonospace=65370,t.zohiragana=12382,t.zokatakana=12478,t.zparen=9397,t.zretroflexhook=656,t.zstroke=438,t.zuhiragana=12378,t.zukatakana=12474,t[".notdef"]=0,t.angbracketleftbig=9001,t.angbracketleftBig=9001,t.angbracketleftbigg=9001,t.angbracketleftBigg=9001,t.angbracketrightBig=9002,t.angbracketrightbig=9002,t.angbracketrightBigg=9002,t.angbracketrightbigg=9002,t.arrowhookleft=8618,t.arrowhookright=8617,t.arrowlefttophalf=8636,t.arrowleftbothalf=8637,t.arrownortheast=8599,t.arrownorthwest=8598,t.arrowrighttophalf=8640,t.arrowrightbothalf=8641,t.arrowsoutheast=8600,t.arrowsouthwest=8601,t.backslashbig=8726,t.backslashBig=8726,t.backslashBigg=8726,t.backslashbigg=8726,t.bardbl=8214,t.bracehtipdownleft=65079,t.bracehtipdownright=65079,t.bracehtipupleft=65080,t.bracehtipupright=65080,t.braceleftBig=123,t.braceleftbig=123,t.braceleftbigg=123,t.braceleftBigg=123,t.bracerightBig=125,t.bracerightbig=125,t.bracerightbigg=125,t.bracerightBigg=125,t.bracketleftbig=91,t.bracketleftBig=91,t.bracketleftbigg=91,t.bracketleftBigg=91,t.bracketrightBig=93,t.bracketrightbig=93,t.bracketrightbigg=93,t.bracketrightBigg=93,t.ceilingleftbig=8968,t.ceilingleftBig=8968,t.ceilingleftBigg=8968,t.ceilingleftbigg=8968,t.ceilingrightbig=8969,t.ceilingrightBig=8969,t.ceilingrightbigg=8969,t.ceilingrightBigg=8969,t.circledotdisplay=8857,t.circledottext=8857,t.circlemultiplydisplay=8855,t.circlemultiplytext=8855,t.circleplusdisplay=8853,t.circleplustext=8853,t.contintegraldisplay=8750,t.contintegraltext=8750,t.coproductdisplay=8720,t.coproducttext=8720,t.floorleftBig=8970,t.floorleftbig=8970,t.floorleftbigg=8970,t.floorleftBigg=8970,t.floorrightbig=8971,t.floorrightBig=8971,t.floorrightBigg=8971,t.floorrightbigg=8971,t.hatwide=770,t.hatwider=770,t.hatwidest=770,t.intercal=7488,t.integraldisplay=8747,t.integraltext=8747,t.intersectiondisplay=8898,t.intersectiontext=8898,t.logicalanddisplay=8743,t.logicalandtext=8743,t.logicalordisplay=8744,t.logicalortext=8744,t.parenleftBig=40,t.parenleftbig=40,t.parenleftBigg=40,t.parenleftbigg=40,t.parenrightBig=41,t.parenrightbig=41,t.parenrightBigg=41,t.parenrightbigg=41,t.prime=8242,t.productdisplay=8719,t.producttext=8719,t.radicalbig=8730,t.radicalBig=8730,t.radicalBigg=8730,t.radicalbigg=8730,t.radicalbt=8730,t.radicaltp=8730,t.radicalvertex=8730,t.slashbig=47,t.slashBig=47,t.slashBigg=47,t.slashbigg=47,t.summationdisplay=8721,t.summationtext=8721,t.tildewide=732,t.tildewider=732,t.tildewidest=732,t.uniondisplay=8899,t.unionmultidisplay=8846,t.unionmultitext=8846,t.unionsqdisplay=8852,t.unionsqtext=8852,t.uniontext=8899,t.vextenddouble=8741,t.vextendsingle=8739}),Dw=Re(function(t){t.space=32,t.a1=9985,t.a2=9986,t.a202=9987,t.a3=9988,t.a4=9742,t.a5=9990,t.a119=9991,t.a118=9992,t.a117=9993,t.a11=9755,t.a12=9758,t.a13=9996,t.a14=9997,t.a15=9998,t.a16=9999,t.a105=1e4,t.a17=10001,t.a18=10002,t.a19=10003,t.a20=10004,t.a21=10005,t.a22=10006,t.a23=10007,t.a24=10008,t.a25=10009,t.a26=10010,t.a27=10011,t.a28=10012,t.a6=10013,t.a7=10014,t.a8=10015,t.a9=10016,t.a10=10017,t.a29=10018,t.a30=10019,t.a31=10020,t.a32=10021,t.a33=10022,t.a34=10023,t.a35=9733,t.a36=10025,t.a37=10026,t.a38=10027,t.a39=10028,t.a40=10029,t.a41=10030,t.a42=10031,t.a43=10032,t.a44=10033,t.a45=10034,t.a46=10035,t.a47=10036,t.a48=10037,t.a49=10038,t.a50=10039,t.a51=10040,t.a52=10041,t.a53=10042,t.a54=10043,t.a55=10044,t.a56=10045,t.a57=10046,t.a58=10047,t.a59=10048,t.a60=10049,t.a61=10050,t.a62=10051,t.a63=10052,t.a64=10053,t.a65=10054,t.a66=10055,t.a67=10056,t.a68=10057,t.a69=10058,t.a70=10059,t.a71=9679,t.a72=10061,t.a73=9632,t.a74=10063,t.a203=10064,t.a75=10065,t.a204=10066,t.a76=9650,t.a77=9660,t.a78=9670,t.a79=10070,t.a81=9687,t.a82=10072,t.a83=10073,t.a84=10074,t.a97=10075,t.a98=10076,t.a99=10077,t.a100=10078,t.a101=10081,t.a102=10082,t.a103=10083,t.a104=10084,t.a106=10085,t.a107=10086,t.a108=10087,t.a112=9827,t.a111=9830,t.a110=9829,t.a109=9824,t.a120=9312,t.a121=9313,t.a122=9314,t.a123=9315,t.a124=9316,t.a125=9317,t.a126=9318,t.a127=9319,t.a128=9320,t.a129=9321,t.a130=10102,t.a131=10103,t.a132=10104,t.a133=10105,t.a134=10106,t.a135=10107,t.a136=10108,t.a137=10109,t.a138=10110,t.a139=10111,t.a140=10112,t.a141=10113,t.a142=10114,t.a143=10115,t.a144=10116,t.a145=10117,t.a146=10118,t.a147=10119,t.a148=10120,t.a149=10121,t.a150=10122,t.a151=10123,t.a152=10124,t.a153=10125,t.a154=10126,t.a155=10127,t.a156=10128,t.a157=10129,t.a158=10130,t.a159=10131,t.a160=10132,t.a161=8594,t.a163=8596,t.a164=8597,t.a196=10136,t.a165=10137,t.a192=10138,t.a166=10139,t.a167=10140,t.a168=10141,t.a169=10142,t.a170=10143,t.a171=10144,t.a172=10145,t.a173=10146,t.a162=10147,t.a174=10148,t.a175=10149,t.a176=10150,t.a177=10151,t.a178=10152,t.a179=10153,t.a193=10154,t.a180=10155,t.a199=10156,t.a181=10157,t.a200=10158,t.a182=10159,t.a201=10161,t.a183=10162,t.a184=10163,t.a197=10164,t.a185=10165,t.a194=10166,t.a198=10167,t.a186=10168,t.a195=10169,t.a187=10170,t.a188=10171,t.a189=10172,t.a190=10173,t.a191=10174,t.a89=10088,t.a90=10089,t.a93=10090,t.a94=10091,t.a91=10092,t.a92=10093,t.a205=10094,t.a85=10095,t.a206=10096,t.a86=10097,t.a87=10098,t.a88=10099,t.a95=10100,t.a96=10101,t[".notdef"]=0}),Pw=Re(function(t){t[63721]=169,t[63193]=169,t[63720]=174,t[63194]=174,t[63722]=8482,t[63195]=8482,t[63718]=9168,t[63719]=9135,t[63733]=9134,t[63729]=9127,t[63730]=9128,t[63731]=9129,t[63740]=9131,t[63741]=9132,t[63742]=9133,t[63726]=9121,t[63727]=9122,t[63728]=9123,t[63737]=9124,t[63738]=9125,t[63739]=9126,t[63723]=9115,t[63724]=9116,t[63725]=9117,t[63734]=9118,t[63735]=9119,t[63736]=9120});d(Bw,"mapSpecialUnicodeValues");d(or,"getUnicodeForGlyph");Mf=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];d(Ow,"getUnicodeRangeFor");Hw=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),Rh=new Map;d(Nw,"getCharUnicodeCategory");d(Lw,"clearUnicodeCaches");ia={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144},Mo=".notdef,.null,nonmarkingreturn,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quotesingle,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,grave,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,Adieresis,Aring,Ccedilla,Eacute,Ntilde,Odieresis,Udieresis,aacute,agrave,acircumflex,adieresis,atilde,aring,ccedilla,eacute,egrave,ecircumflex,edieresis,iacute,igrave,icircumflex,idieresis,ntilde,oacute,ograve,ocircumflex,odieresis,otilde,uacute,ugrave,ucircumflex,udieresis,dagger,degree,cent,sterling,section,bullet,paragraph,germandbls,registered,copyright,trademark,acute,dieresis,notequal,AE,Oslash,infinity,plusminus,lessequal,greaterequal,yen,mu,partialdiff,summation,product,pi,integral,ordfeminine,ordmasculine,Omega,ae,oslash,questiondown,exclamdown,logicalnot,radical,florin,approxequal,Delta,guillemotleft,guillemotright,ellipsis,nonbreakingspace,Agrave,Atilde,Otilde,OE,oe,endash,emdash,quotedblleft,quotedblright,quoteleft,quoteright,divide,lozenge,ydieresis,Ydieresis,fraction,currency,guilsinglleft,guilsinglright,fi,fl,daggerdbl,periodcentered,quotesinglbase,quotedblbase,perthousand,Acircumflex,Ecircumflex,Aacute,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Oacute,Ocircumflex,apple,Ograve,Uacute,Ucircumflex,Ugrave,dotlessi,circumflex,tilde,macron,breve,dotaccent,ring,cedilla,hungarumlaut,ogonek,caron,Lslash,lslash,Scaron,scaron,Zcaron,zcaron,brokenbar,Eth,eth,Yacute,yacute,Thorn,thorn,minus,multiply,onesuperior,twosuperior,threesuperior,onehalf,onequarter,threequarters,franc,Gbreve,gbreve,Idotaccent,Scedilla,scedilla,Cacute,cacute,Ccaron,ccaron,dcroat".split(",");d(Rp,"recoverGlyphName");d(Dp,"type1FontGlyphMapping");d(Hs,"normalizeFontName");zw=Re(t=>{t[8211]=65074,t[8212]=65073,t[8229]=65072,t[8230]=65049,t[12289]=65041,t[12290]=65042,t[12296]=65087,t[12297]=65088,t[12298]=65085,t[12299]=65086,t[12300]=65089,t[12301]=65090,t[12302]=65091,t[12303]=65092,t[12304]=65083,t[12305]=65084,t[12308]=65081,t[12309]=65082,t[12310]=65047,t[12311]=65048,t[65103]=65076,t[65281]=65045,t[65288]=65077,t[65289]=65078,t[65292]=65040,t[65306]=65043,t[65307]=65044,t[65311]=65046,t[65339]=65095,t[65341]=65096,t[65343]=65075,t[65371]=65079,t[65373]=65080}),vd=1e3;d(Uw,"compileType3Glyph");Gw=".notdef,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quoteright,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,quoteleft,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,exclamdown,cent,sterling,fraction,yen,florin,section,currency,quotesingle,quotedblleft,guillemotleft,guilsinglleft,guilsinglright,fi,fl,endash,dagger,daggerdbl,periodcentered,paragraph,bullet,quotesinglbase,quotedblbase,quotedblright,guillemotright,ellipsis,perthousand,questiondown,grave,acute,circumflex,tilde,macron,breve,dotaccent,dieresis,ring,cedilla,hungarumlaut,ogonek,caron,emdash,AE,ordfeminine,Lslash,Oslash,OE,ordmasculine,ae,dotlessi,lslash,oslash,oe,germandbls,onesuperior,logicalnot,mu,trademark,Eth,onehalf,plusminus,Thorn,onequarter,divide,brokenbar,degree,thorn,threequarters,twosuperior,registered,minus,eth,multiply,threesuperior,copyright,Aacute,Acircumflex,Adieresis,Agrave,Aring,Atilde,Ccedilla,Eacute,Ecircumflex,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Ntilde,Oacute,Ocircumflex,Odieresis,Ograve,Otilde,Scaron,Uacute,Ucircumflex,Udieresis,Ugrave,Yacute,Ydieresis,Zcaron,aacute,acircumflex,adieresis,agrave,aring,atilde,ccedilla,eacute,ecircumflex,edieresis,egrave,iacute,icircumflex,idieresis,igrave,ntilde,oacute,ocircumflex,odieresis,ograve,otilde,scaron,uacute,ucircumflex,udieresis,ugrave,yacute,ydieresis,zcaron".split(","),$w=".notdef,space,exclamsmall,Hungarumlautsmall,dollaroldstyle,dollarsuperior,ampersandsmall,Acutesmall,parenleftsuperior,parenrightsuperior,twodotenleader,onedotenleader,comma,hyphen,period,fraction,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,colon,semicolon,commasuperior,threequartersemdash,periodsuperior,questionsmall,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,fi,fl,ffi,ffl,parenleftinferior,parenrightinferior,Circumflexsmall,hyphensuperior,Gravesmall,Asmall,Bsmall,Csmall,Dsmall,Esmall,Fsmall,Gsmall,Hsmall,Ismall,Jsmall,Ksmall,Lsmall,Msmall,Nsmall,Osmall,Psmall,Qsmall,Rsmall,Ssmall,Tsmall,Usmall,Vsmall,Wsmall,Xsmall,Ysmall,Zsmall,colonmonetary,onefitted,rupiah,Tildesmall,exclamdownsmall,centoldstyle,Lslashsmall,Scaronsmall,Zcaronsmall,Dieresissmall,Brevesmall,Caronsmall,Dotaccentsmall,Macronsmall,figuredash,hypheninferior,Ogoneksmall,Ringsmall,Cedillasmall,onequarter,onehalf,threequarters,questiondownsmall,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,onesuperior,twosuperior,threesuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior,Agravesmall,Aacutesmall,Acircumflexsmall,Atildesmall,Adieresissmall,Aringsmall,AEsmall,Ccedillasmall,Egravesmall,Eacutesmall,Ecircumflexsmall,Edieresissmall,Igravesmall,Iacutesmall,Icircumflexsmall,Idieresissmall,Ethsmall,Ntildesmall,Ogravesmall,Oacutesmall,Ocircumflexsmall,Otildesmall,Odieresissmall,OEsmall,Oslashsmall,Ugravesmall,Uacutesmall,Ucircumflexsmall,Udieresissmall,Yacutesmall,Thornsmall,Ydieresissmall".split(","),Ww=".notdef,space,dollaroldstyle,dollarsuperior,parenleftsuperior,parenrightsuperior,twodotenleader,onedotenleader,comma,hyphen,period,fraction,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,colon,semicolon,commasuperior,threequartersemdash,periodsuperior,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,fi,fl,ffi,ffl,parenleftinferior,parenrightinferior,hyphensuperior,colonmonetary,onefitted,rupiah,centoldstyle,figuredash,hypheninferior,onequarter,onehalf,threequarters,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,onesuperior,twosuperior,threesuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior".split(","),ei=class{static{d(this,"DataBuilder")}#t;#e=1024;#i=!1;#a=0;#s;constructor({exactLength:t=0,minLength:e=0}){this.#i=!!t,this.#n(t||e)}#n(t){if(this.#i)this.#e=t;else for(;this.#e<t;)this.#e*=2;let e=new Uint8Array(this.#e);this.#t&&e.set(this.#t,0),this.#t=e,this.#s=new DataView(e.buffer)}get data(){return this.#t.subarray(0,this.#a)}get length(){return this.#a}skip(t){this.#a+=t}setArray(t){let e=this.#a+t.length;!this.#i&&e>this.#e&&this.#n(e),this.#t.set(t,this.#a),this.#a=e}setInt16(t){let e=this.#a+2;!this.#i&&e>this.#e&&this.#n(e),this.#s.setInt16(this.#a,t),this.#a=e}setSafeInt16(t){let e=this.#a+2;!this.#i&&e>this.#e&&this.#n(e),this.#s.setInt16(this.#a,Fe(t,-32768,32767)),this.#a=e}setInt32(t){let e=this.#a+4;!this.#i&&e>this.#e&&this.#n(e),this.#s.setInt32(this.#a,t),this.#a=e}};d(go,"looksLikeUnsigned16BitNegative");d(_f,"recoverSigned16BitBBox");bo=".notdef,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quoteright,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,quoteleft,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,exclamdown,cent,sterling,fraction,yen,florin,section,currency,quotesingle,quotedblleft,guillemotleft,guilsinglleft,guilsinglright,fi,fl,endash,dagger,daggerdbl,periodcentered,paragraph,bullet,quotesinglbase,quotedblbase,quotedblright,guillemotright,ellipsis,perthousand,questiondown,grave,acute,circumflex,tilde,macron,breve,dotaccent,dieresis,ring,cedilla,hungarumlaut,ogonek,caron,emdash,AE,ordfeminine,Lslash,Oslash,OE,ordmasculine,ae,dotlessi,lslash,oslash,oe,germandbls,onesuperior,logicalnot,mu,trademark,Eth,onehalf,plusminus,Thorn,onequarter,divide,brokenbar,degree,thorn,threequarters,twosuperior,registered,minus,eth,multiply,threesuperior,copyright,Aacute,Acircumflex,Adieresis,Agrave,Aring,Atilde,Ccedilla,Eacute,Ecircumflex,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Ntilde,Oacute,Ocircumflex,Odieresis,Ograve,Otilde,Scaron,Uacute,Ucircumflex,Udieresis,Ugrave,Yacute,Ydieresis,Zcaron,aacute,acircumflex,adieresis,agrave,aring,atilde,ccedilla,eacute,ecircumflex,edieresis,egrave,iacute,icircumflex,idieresis,igrave,ntilde,oacute,ocircumflex,odieresis,ograve,otilde,scaron,uacute,ucircumflex,udieresis,ugrave,yacute,ydieresis,zcaron,exclamsmall,Hungarumlautsmall,dollaroldstyle,dollarsuperior,ampersandsmall,Acutesmall,parenleftsuperior,parenrightsuperior,twodotenleader,onedotenleader,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,commasuperior,threequartersemdash,periodsuperior,questionsmall,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,ffi,ffl,parenleftinferior,parenrightinferior,Circumflexsmall,hyphensuperior,Gravesmall,Asmall,Bsmall,Csmall,Dsmall,Esmall,Fsmall,Gsmall,Hsmall,Ismall,Jsmall,Ksmall,Lsmall,Msmall,Nsmall,Osmall,Psmall,Qsmall,Rsmall,Ssmall,Tsmall,Usmall,Vsmall,Wsmall,Xsmall,Ysmall,Zsmall,colonmonetary,onefitted,rupiah,Tildesmall,exclamdownsmall,centoldstyle,Lslashsmall,Scaronsmall,Zcaronsmall,Dieresissmall,Brevesmall,Caronsmall,Dotaccentsmall,Macronsmall,figuredash,hypheninferior,Ogoneksmall,Ringsmall,Cedillasmall,questiondownsmall,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior,Agravesmall,Aacutesmall,Acircumflexsmall,Atildesmall,Adieresissmall,Aringsmall,AEsmall,Ccedillasmall,Egravesmall,Eacutesmall,Ecircumflexsmall,Edieresissmall,Igravesmall,Iacutesmall,Icircumflexsmall,Idieresissmall,Ethsmall,Ntildesmall,Ogravesmall,Oacutesmall,Ocircumflexsmall,Otildesmall,Odieresissmall,OEsmall,Oslashsmall,Ugravesmall,Uacutesmall,Ucircumflexsmall,Udieresissmall,Yacutesmall,Thornsmall,Ydieresissmall,001.000,001.001,001.002,001.003,Black,Bold,Book,Light,Medium,Regular,Roman,Semibold".split(","),Dh=.039625,Pp=.06,On=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1},{id:"return",min:0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],Vw=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]+t[e-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]-t[e-1]}},{id:"div",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]/t[e-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(t,e){t[e-1]=-t[e-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]*t[e-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],Jc=class{static{d(this,"CFFParser")}constructor(t,e,i){this.bytes=t.getBytes(),this.properties=e,this.seacAnalysisEnabled=!!i}parse(){let t=this.properties,e=new Bp(this.bytes.length);this.cff=e;let i=this.parseHeader(),a=this.parseIndex(i.endPos),s=this.parseIndex(a.endPos),n=this.parseIndex(s.endPos),r=this.parseIndex(n.endPos),l=this.parseDict(s.obj.get(0)),o=this.createDict(Ph,l,e.strings);e.header=i.obj,e.names=this.parseNameIndex(a.obj),e.strings=this.parseStringIndex(n.obj),e.topDict=o,e.globalSubrIndex=r.obj,this.parsePrivateDict(e.topDict),e.isCIDFont=o.hasName("ROS");let f=o.getByName("CharStrings"),h=this.parseIndex(f).obj;e.charStringCount=h.count;let c=o.getByName("FontMatrix");c&&(t.fontMatrix=c);let u=o.getByName("FontBBox"),p=t.bbox?.some(y=>y!==0)?_f(t.bbox):null,m=u?.slice(0,2).some(go),g=u?.some(go);if(u?.every(y=>y===0)&&p)u=p,o.setByName("FontBBox",u);else if(g){let y=_f(u),x=p&&t.bbox.some(q=>q<0)&&!t.bbox.some(go)&&jn(y,p);(x||m)&&(u=x?y:_f(u,!0),o.setByName("FontBBox",u))}u?.some(y=>y!==0)&&(t.ascent=Math.max(u[3],u[1]),t.descent=Math.min(u[1],u[3]),t.ascentScaled=!0);let b,w;if(e.isCIDFont){let y=this.parseIndex(o.getByName("FDArray")).obj,x=y.count;x>256&&(E(`CFFParser.parse: too many FDArray entries (${x}).`),x=256);for(let q=0;q<x;++q){let j=y.get(q),A=this.createDict(Ph,this.parseDict(j),e.strings);this.parsePrivateDict(A),e.fdArray.push(A)}w=null,b=this.parseCharsets(o.getByName("charset"),h.count,e.strings,!0),e.fdSelect=this.parseFDSelect(o.getByName("FDSelect"),h.count)}else b=this.parseCharsets(o.getByName("charset"),h.count,e.strings,!1),w=this.parseEncoding(o.getByName("Encoding"),t,e.strings,b.charset);e.charset=b,e.encoding=w;let v=this.parseCharStrings({charStrings:h,localSubrIndex:o.privateDict.subrsIndex,globalSubrIndex:r.obj,fdSelect:e.fdSelect,fdArray:e.fdArray,privateDict:o.privateDict});return e.charStrings=v.charStrings,e.seacs=v.seacs,e.widths=v.widths,e}parseHeader(){let t=this.bytes,e=t.length,i=0;for(;i<e&&t[i]!==1;)++i;if(i>=e)throw new V("Invalid CFF header");i!==0&&(de("cff data is shifted"),t=t.subarray(i),this.bytes=t);let a=t[0],s=t[1],n=t[2],r=t[3];return{obj:new Op(a,s,n,r),endPos:n}}parseDict(t){let e=new DataView(t.buffer,t.byteOffset,t.bytesLength),i=0;function a(){let o=t[i++];return o===30?s():o===28?(o=e.getInt16(i),i+=2,o):o===29?(o=e.getInt32(i),i+=4,o):o>=32&&o<=246?o-139:o>=247&&o<=250?(o-247)*256+t[i++]+108:o>=251&&o<=254?-((o-251)*256)-t[i++]-108:(E(`CFFParser.parseDict: "${o}" is a reserved command.`),NaN)}d(a,"parseOperand");function s(){let o="",f=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],h=t.length;for(;i<h;){let c=t[i++],u=c>>4,p=c&15;if(u===15||(o+=f[u],p===15))break;o+=f[p]}return parseFloat(o)}d(s,"parseFloatOperand");let n=[],r=[];i=0;let l=t.length;for(;i<l;){let o=t[i];o<=21?(o===12&&(o=o<<8|t[++i]),r.push([o,n]),n=[],++i):n.push(a())}return r}parseIndex(t){let e=new Fs,i=this.bytes,a=i[t++]<<8|i[t++],s=[],n=t,r,l;if(a!==0){let o=i[t++];if(o<1||o>4)throw new V(`Invalid CFF INDEX offset size: ${o}`);let f=t+(a+1)*o-1,h=i.length,c=f;for(r=0,l=a+1;r<l;++r){let u=0;for(let p=0;p<o;++p)u=u<<8|i[t++];c=Fe(f+u,c,h),s.push(c)}n=s[a]}for(r=0,l=s.length-1;r<l;++r){let o=s[r],f=s[r+1];e.add(i.subarray(o,f))}return{obj:e,endPos:n}}parseNameIndex(t){let e=[];for(let i=0,a=t.count;i<a;++i){let s=t.get(i);e.push(Bi(s))}return e}parseStringIndex(t){let e=new Qc;for(let i=0,a=t.count;i<a;++i){let s=t.get(i);e.add(Bi(s))}return e}createDict(t,e,i){let a=new t(i);for(let[s,n]of e)a.setByKey(s,n);return a}parseCharString(t,e,i,a){if(!e||t.callDepth>10)return!1;let s=new DataView(e.buffer,e.byteOffset,e.bytesLength),n=t.stackSize,r=t.stack,l=e.length;for(let o=0;o<l;){let f=e[o++],h=null;if(f===12){let c=e[o++];c===0?(e[o-2]=139,e[o-1]=22,n=0):h=Vw[c]}else if(f===28)r[n]=s.getInt16(o),o+=2,n++;else if(f===14){if(n>=4&&(n-=4,this.seacAnalysisEnabled))return t.seac=r.slice(n,n+4),!1;h=On[f]}else if(f>=32&&f<=246)r[n]=f-139,n++;else if(f>=247&&f<=254)r[n]=f<251?(f-247<<8)+e[o]+108:-(f-251<<8)-e[o]-108,o++,n++;else if(f===255)r[n]=s.getInt32(o)/65536,o+=4,n++;else if(f===19||f===20){if(t.hints+=n>>1,t.hints===0){e.copyWithin(o-1,o,-1),--o,--l;continue}o+=t.hints+7>>3,n%=2,h=On[f]}else if(f===10||f===29){let c=f===10?i:a;if(!c)return h=On[f],E("Missing subrsIndex for "+h.id),!1;let u=32768;c.count<1240?u=107:c.count<33900&&(u=1131);let p=r[--n]+u;if(p<0||p>=c.count||isNaN(p))return h=On[f],E("Out of bounds subrIndex for "+h.id),!1;if(t.stackSize=n,t.callDepth++,!this.parseCharString(t,c.get(p),i,a))return!1;t.callDepth--,n=t.stackSize;continue}else{if(f===11)return t.stackSize=n,!0;if(f===0&&o===e.length)e[o-1]=14,h=On[14];else if(f===9){e.copyWithin(o-1,o,-1),--o,--l;continue}else h=On[f]}if(h){if(h.stem&&(t.hints+=n>>1,f===3||f===23?t.hasVStems=!0:t.hasVStems&&(f===1||f===18)&&(E("CFF stem hints are in wrong order"),e[o-1]=f===1?3:23)),n<h.min)return E("Not enough parameters for "+h.id+"; actual: "+n+", expected: "+h.min),n===0&&(e[o-1]=14,!0);t.firstStackClearing&&h.stackClearing&&(t.firstStackClearing=!1,n-=h.min,n>=2&&h.stem?n%=2:n>1&&E("Found too many parameters for stack-clearing command"),n>0&&(t.width=r[n-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(r,n),n+=h.stackDelta):(h.stackClearing||h.resetStack)&&(n=0)}}return l<e.length&&e.fill(14,l),t.stackSize=n,!0}parseCharStrings({charStrings:t,localSubrIndex:e,globalSubrIndex:i,fdSelect:a,fdArray:s,privateDict:n}){let r=new Map,l=[],o=t.count;for(let f=0;f<o;f++){let h=t.get(f),c={callDepth:0,stackSize:0,stack:[],hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},u=!0,p=null,m=n;if(a&&s.length){let g=a.getFDIndex(f);g===-1&&(E("Glyph index is not in fd select."),u=!1),g>=s.length&&(E("Invalid fd index for glyph index."),u=!1),u&&(m=s[g].privateDict,p=m.subrsIndex)}else e&&(p=e);if(u&&=this.parseCharString(c,h,p,i),c.width!==null){let g=m.getByName("nominalWidthX");l[f]=g+c.width}else{let g=m.getByName("defaultWidthX");l[f]=g}c.seac!==null&&r.set(f,c.seac),u||t.set(f,new Uint8Array([14]))}return{charStrings:t,seacs:r,widths:l}}emptyPrivateDictionary(t){let e=this.createDict(Bh,[],t.strings);t.setByKey(18,[0,0]),t.privateDict=e}parsePrivateDict(t){if(!t.hasName("Private")){this.emptyPrivateDictionary(t);return}let e=t.getByName("Private");if(!Array.isArray(e)||e.length!==2){t.removeByName("Private");return}let i=e[0],a=e[1];if(i===0||a>=this.bytes.length){this.emptyPrivateDictionary(t);return}if(a+i>this.bytes.length)throw new V("CFF Private DICT extends past end of font");let s=a+i,n=this.bytes.subarray(a,s),r=this.parseDict(n),l=this.createDict(Bh,r,t.strings);t.privateDict=l;let o=l.getByName("BlueScale"),f=l.getByName("BlueShift"),h=l.getByName("BlueFuzz"),c=l.getByName("ExpansionFactor");if(o===0&&f===0&&h===0&&c===0&&(l.setByName("BlueScale",Dh),l.setByName("BlueShift",7),l.setByName("BlueFuzz",1)),c===0&&l.setByName("ExpansionFactor",Pp),o>0){let m=0;for(let g of[l.getByName("BlueValues"),l.getByName("OtherBlues")])if(g)for(let b=1;b<g.length;b+=2)g[b]>m&&(m=g[b]);if(m>0){let g=1e5,b=.5/m,w=Fe(o,b<=Dh?Math.ceil(b*g)/g:-1/0,Math.floor(g/m)/g);w!==o&&l.setByName("BlueScale",w)}}if(!l.getByName("Subrs"))return;let u=l.getByName("Subrs"),p=a+u;u===0||p>=this.bytes.length?this.emptyPrivateDictionary(t):l.subrsIndex=this.parseIndex(p).obj}parseCharsets(t,e,i,a){if(t===0)return new Lr(!0,Ef.ISO_ADOBE,Gw);if(t===1)return new Lr(!0,Ef.EXPERT,$w);if(t===2)return new Lr(!0,Ef.EXPERT_SUBSET,Ww);let{bytes:s}=this,n=s[t++],r=[a?0:".notdef"],l,o,f;switch(--e,n){case 0:for(f=0;f<e;f++)l=s[t++]<<8|s[t++],r.push(a?l:i.get(l));break;case 1:for(;r.length<=e;)for(l=s[t++]<<8|s[t++],o=s[t++],f=0;f<=o;f++)r.push(a?l++:i.get(l++));break;case 2:for(;r.length<=e;)for(l=s[t++]<<8|s[t++],o=s[t++]<<8|s[t++],f=0;f<=o;f++)r.push(a?l++:i.get(l++));break;default:throw new V("Unknown charset format")}return new Lr(!1,n,r)}parseEncoding(t,e,i,a){let s=Object.create(null),n=this.bytes,r=!1,l,o,f,h=null;function c(){let u=n[t++];for(o=0;o<u;o++){let p=n[t++],m=(n[t++]<<8)+(n[t++]&255);s[p]=a.indexOf(i.get(m))}}if(d(c,"readSupplement"),t===0||t===1){r=!0,l=t;let u=t?Fp:cs;for(o=0,f=a.length;o<f;o++){let p=u.indexOf(a[o]);p!==-1&&(s[p]=o)}}else{let u=t;switch(l=n[t++],l&127){case 0:let m=n[t++];for(o=1;o<=m;o++)s[n[t++]]=o;break;case 1:let g=n[t++],b=1;for(o=0;o<g;o++){let w=n[t++],v=n[t++];for(let y=w;y<=w+v;y++)s[y]=b++}break;default:throw new V(`Unknown encoding format: ${l} in CFF`)}let p=t;l&128&&(n[u]&=127,c()),h=n.subarray(u,p)}return l&=127,new Yw(r,l,s,h)}parseFDSelect(t,e){let i=this.bytes,a=i[t++],s=[],n;switch(a){case 0:for(n=0;n<e;++n){let l=i[t++];s.push(l)}break;case 3:let r=i[t++]<<8|i[t++];for(n=0;n<r;++n){let l=i[t++]<<8|i[t++];n===0&&l!==0&&(E("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),l=0);let o=i[t++],f=i[t]<<8|i[t+1];if(f-l>e-s.length)throw new V("parseFDSelect: Invalid font data.");for(let h=l;h<f;++h)s.push(o)}t+=2;break;default:throw new V(`parseFDSelect: Unknown format "${a}".`)}if(s.length!==e)throw new V("parseFDSelect: Invalid font data.");return new Jw(a,s)}},Bp=class{static{d(this,"CFF")}header=null;names=[];topDict=null;strings=new Qc;globalSubrIndex=null;encoding=null;charset=null;charStrings=null;fdArray=[];fdSelect=null;isCIDFont=!1;charStringCount=0;constructor(t=0){this.rawFileLength=t}duplicateFirstGlyph(){if(this.charStrings.count>=65535){E("Not enough space in charstrings to duplicate first glyph.");return}let t=this.charStrings.get(0);this.charStrings.add(t),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(t){return t<0||t>=this.charStrings.count?!1:this.charStrings.get(t).length>0}},Op=class{static{d(this,"CFFHeader")}constructor(t,e,i,a){this.major=t,this.minor=e,this.hdrSize=i,this.offSize=a}},Qc=class{static{d(this,"CFFStrings")}strings=[];get(t){return t>=0&&t<=390?bo[t]:t-391<=this.strings.length?this.strings[t-391]:bo[0]}getSID(t){let e=bo.indexOf(t);return e===-1?(e=this.strings.indexOf(t),e===-1?-1:e+391):e}add(t){this.strings.push(t)}get count(){return this.strings.length}},Fs=class{static{d(this,"CFFIndex")}objects=[];length=0;add(t){this.length+=t.length,this.objects.push(t)}set(t,e){this.length+=e.length-this.objects[t].length,this.objects[t]=e}get(t){return this.objects[t]}get count(){return this.objects.length}},Hp=class{static{d(this,"CFFDict")}values=new Map;constructor(t,e){this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=e}setByKey(t,e){if(!this.keyToNameMap.has(t))return!1;if(e.length===0)return!0;for(let a of e)if(isNaN(a))return E(`Invalid CFFDict value: "${e}" for key "${t}".`),!0;let i=this.types.get(t);return(i==="num"||i==="sid"||i==="offset")&&(e=e[0]),this.values.set(t,e),!0}setByName(t,e){if(!this.nameToKeyMap.has(t))throw new V(`Invalid dictionary name "${t}"`);let i=this.nameToKeyMap.get(t);this.values.set(i,e)}hasName(t){let e=this.nameToKeyMap.get(t);return this.values.has(e)}getByName(t){if(!this.nameToKeyMap.has(t))throw new V(`Invalid dictionary name ${t}"`);let e=this.nameToKeyMap.get(t);return this.values.has(e)?this.values.get(e):this.defaults.get(e)}removeByName(t){let e=this.nameToKeyMap.get(t);this.values.delete(e)}static createTables(t){let e={keyToNameMap:new Map,nameToKeyMap:new Map,defaults:new Map,types:new Map,opcodes:new Map,order:[]};for(let i of t){let a=Array.isArray(i[0])?(i[0][0]<<8)+i[0][1]:i[0];e.keyToNameMap.set(a,i[1]),e.nameToKeyMap.set(i[1],a),e.types.set(a,i[2]),e.defaults.set(a,i[3]),e.opcodes.set(a,Array.isArray(i[0])?i[0]:[i[0]]),e.order.push(a)}return e}},Kw=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],Ph=class Np extends Hp{static{d(this,"CFFTopDict")}static get tables(){return ht(this,"tables",this.createTables(Kw))}privateDict=null;constructor(e){super(Np.tables,e)}},Xw=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",Dh],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",Pp],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],Bh=class Lp extends Hp{static{d(this,"CFFPrivateDict")}static get tables(){return ht(this,"tables",this.createTables(Xw))}subrsIndex=null;constructor(e){super(Lp.tables,e)}},Ef={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},Lr=class{static{d(this,"CFFCharset")}constructor(t,e,i){this.predefined=t,this.format=e,this.charset=i}},Yw=class{static{d(this,"CFFEncoding")}constructor(t,e,i,a){this.predefined=t,this.format=e,this.encoding=i,this.raw=a}},Jw=class{static{d(this,"CFFFDSelect")}constructor(t,e){this.format=t,this.fdSelect=e}getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}},jd=class{static{d(this,"CFFOffsetTracker")}#t=new Map;isTracking(t){return this.#t.has(t)}track(t,e){if(this.#t.has(t))throw new V(`Already tracking location of ${t}`);this.#t.set(t,e)}offset(t){for(let[e,i]of this.#t)this.#t.set(e,i+t)}setEntryLocation(t,e,i){if(!this.#t.has(t))throw new V(`Not tracking location of ${t}`);let a=i.data,s=this.#t.get(t);for(let n=0,r=e.length;n<r;++n){let l=n*5+s,o=l+1,f=l+2,h=l+3,c=l+4;if(a[l]!==29||a[o]!==0||a[f]!==0||a[h]!==0||a[c]!==0)throw new V("writing to an offset that is not empty");let u=e[n];a[l]=29,a[o]=u>>24&255,a[f]=u>>16&255,a[h]=u>>8&255,a[c]=u&255}}},Zc=class zp{static{d(this,"CFFCompiler")}constructor(e){this.cff=e}compile(){let e=this.cff,i=new ei({minLength:e.rawFileLength}),a=this.compileHeader(e.header);i.setArray(a);let s=this.compileNameIndex(e.names);if(i.setArray(s),e.isCIDFont&&e.topDict.hasName("FontMatrix")){let c=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(let u of e.fdArray){let p=c.slice(0);u.hasName("FontMatrix")&&(p=oe.transform(p,u.getByName("FontMatrix"))),u.setByName("FontMatrix",p)}}e.topDict.getByName("XUID")?.length>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);let n=this.compileTopDicts([e.topDict],i.length,e.isCIDFont);i.setArray(n.output);let r=n.trackers[0],l=this.compileStringIndex(e.strings.strings);i.setArray(l);let o=this.compileIndex(e.globalSubrIndex);if(i.setArray(o),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)r.setEntryLocation("Encoding",[e.encoding.format],i);else{let c=this.compileEncoding(e.encoding);r.setEntryLocation("Encoding",[i.length],i),i.setArray(c)}let f=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);r.setEntryLocation("charset",[i.length],i),i.setArray(f);let h=this.compileCharStrings(e.charStrings);if(r.setEntryLocation("CharStrings",[i.length],i),i.setArray(h),e.isCIDFont){r.setEntryLocation("FDSelect",[i.length],i);let c=this.compileFDSelect(e.fdSelect);i.setArray(c),n=this.compileTopDicts(e.fdArray,i.length,!0),r.setEntryLocation("FDArray",[i.length],i),i.setArray(n.output);let u=n.trackers;this.compilePrivateDicts(e.fdArray,u,i)}return this.compilePrivateDicts([e.topDict],[r],i),i.setArray([0]),i.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return ht(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let i=e.toString(),a=zp.EncodeFloatRegExp.exec(i);if(a){let o=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));i=(Math.round(e*o)/o).toString()}let s="",n,r;for(n=0,r=i.length;n<r;++n){let o=i[n];s+=o==="e"?i[++n]==="-"?"c":"b":o==="."?"a":o==="-"?"e":o}s+=s.length&1?"f":"ff";let l=[30];for(n=0,r=s.length;n<r;n+=2)l.push(parseInt(s.substring(n,n+2),16));return l}encodeInteger(e){let i;return e>=-107&&e<=107?i=[e+139]:e>=108&&e<=1131?(e-=108,i=[(e>>8)+247,e&255]):e>=-1131&&e<=-108?(e=-e-108,i=[(e>>8)+251,e&255]):i=e>=-32768&&e<=32767?[28,e>>8&255,e&255]:[29,e>>24&255,e>>16&255,e>>8&255,e&255],i}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){let i=new Fs;for(let a of e){let s=Math.min(a.length,127),n=Array(s);for(let r=0;r<s;r++){let l=a[r];(l<"!"||l>"~"||l==="["||l==="]"||l==="("||l===")"||l==="{"||l==="}"||l==="<"||l===">"||l==="/"||l==="%")&&(l="_"),n[r]=l}n=n.join(""),n===""&&(n="Bad_Font_Name"),i.add(Be(n))}return this.compileIndex(i)}compileTopDicts(e,i,a){let s=[],n=new Fs;for(let r of e){a&&(r.removeByName("CIDFontVersion"),r.removeByName("CIDFontRevision"),r.removeByName("CIDFontType"),r.removeByName("CIDCount"),r.removeByName("UIDBase"));let l=new jd,o=this.compileDict(r,l);s.push(l),n.add(o),l.offset(i)}return n=this.compileIndex(n,s),{trackers:s,output:n}}compilePrivateDicts(e,i,a){for(let s=0,n=e.length;s<n;++s){let r=e[s],l=r.privateDict;if(!l||!r.hasName("Private"))throw new V("There must be a private dictionary.");let o=new jd,f=this.compileDict(l,o),h=a.length;if(o.offset(h),f.length||(h=0),i[s].setEntryLocation("Private",[f.length,h],a),a.setArray(f),l.subrsIndex&&l.hasName("Subrs")){let c=this.compileIndex(l.subrsIndex);o.setEntryLocation("Subrs",[f.length],a),a.setArray(c)}}}compileDict(e,i){let a=[];for(let s of e.order){if(!e.values.has(s))continue;let n=e.values.get(s),r=e.types.get(s);if(Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]),n.length!==0){for(let l=0,o=r.length;l<o;++l){let f=r[l],h=n[l];switch(f){case"num":case"sid":a.push(...this.encodeNumber(h));break;case"offset":let c=e.keyToNameMap.get(s);i.isTracking(c)||i.track(c,a.length),a.push(29,0,0,0,0);break;case"array":case"delta":a.push(...this.encodeNumber(h));for(let u=1,p=n.length;u<p;++u)a.push(...this.encodeNumber(n[u]));break;default:throw new V(`Unknown data type of ${f}`)}}a.push(...e.opcodes.get(s))}}return a}compileStringIndex(e){let i=new Fs;for(let a of e)i.add(Be(a));return this.compileIndex(i)}compileCharStrings(e){let i=new Fs;for(let a=0;a<e.count;a++){let s=e.get(a);s.length===0?i.add(new Uint8Array([139,14])):i.add(s)}return this.compileIndex(i)}compileCharset(e,i,a,s){let n,r=i-1;if(s){let l=r-1;n=new Uint8Array([2,0,1,l>>8&255,l&255])}else{let l=1+r*2;n=new Uint8Array(l);let o=0,f=e.charset.length,h=!1;for(let c=1;c<n.length;c+=2){let u=0;if(o<f){let p=e.charset[o++];u=a.getSID(p),u===-1&&(u=0,h||(h=!0,E(`Couldn't find ${p} in CFF strings`)))}n[c]=u>>8&255,n[c+1]=u&255}}return n}compileEncoding(e){return e.raw}compileFDSelect(e){let i=e.format,a,s;switch(i){case 0:a=new Uint8Array(1+e.fdSelect.length),a[0]=i,a.set(e.fdSelect,1);break;case 3:let n=e.fdSelect[0],r=[i,0,0,0,0,n];for(s=1;s<e.fdSelect.length;s++){let o=e.fdSelect[s];o!==n&&(r.push(s>>8&255,s&255,o),n=o)}let l=(r.length-3)/3;r[1]=l>>8&255,r[2]=l&255,r.push(s>>8&255,s&255),a=new Uint8Array(r)}return a}compileIndex(e,i=[]){let a=e.objects,s=a.length;if(s===0)return new Uint8Array(2);let n=1,r=0;for(;r<s;++r)n+=a[r].length;let l;l=n<256?1:n<65536?2:n<16777216?3:4;let o=new Uint8Array(2+l*(s+1)+n),f=0;o[f++]=s>>8&255,o[f++]=s&255,o[f++]=l;let h=1;for(r=0;r<s+1;r++)l===1?o[f++]=h&255:l===2?(o[f++]=h>>8&255,o[f++]=h&255):l===3?(o[f++]=h>>16&255,o[f++]=h>>8&255,o[f++]=h&255):(o[f++]=h>>>24&255,o[f++]=h>>16&255,o[f++]=h>>8&255,o[f++]=h&255),a[r]&&(h+=a[r].length);for(r=0;r<s;r++)i[r]?.offset(f),o.set(a[r],f),f+=a[r].length;return o}},gl=Re(function(t){t["Times-Roman"]="Times-Roman",t.Helvetica="Helvetica",t.Courier="Courier",t.Symbol="Symbol",t["Times-Bold"]="Times-Bold",t["Helvetica-Bold"]="Helvetica-Bold",t["Courier-Bold"]="Courier-Bold",t.ZapfDingbats="ZapfDingbats",t["Times-Italic"]="Times-Italic",t["Helvetica-Oblique"]="Helvetica-Oblique",t["Courier-Oblique"]="Courier-Oblique",t["Times-BoldItalic"]="Times-BoldItalic",t["Helvetica-BoldOblique"]="Helvetica-BoldOblique",t["Courier-BoldOblique"]="Courier-BoldOblique",t.ArialNarrow="Helvetica",t["ArialNarrow-Bold"]="Helvetica-Bold",t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",t["ArialNarrow-Italic"]="Helvetica-Oblique",t.ArialBlack="Helvetica",t["ArialBlack-Bold"]="Helvetica-Bold",t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",t["ArialBlack-Italic"]="Helvetica-Oblique",t["Arial-Black"]="Helvetica",t["Arial-Black-Bold"]="Helvetica-Bold",t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Black-Italic"]="Helvetica-Oblique",t.Arial="Helvetica",t["Arial-Bold"]="Helvetica-Bold",t["Arial-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Italic"]="Helvetica-Oblique",t.ArialMT="Helvetica",t["Arial-BoldItalicMT"]="Helvetica-BoldOblique",t["Arial-BoldMT"]="Helvetica-Bold",t["Arial-ItalicMT"]="Helvetica-Oblique",t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",t["Arial-BoldMT-Bold"]="Helvetica-Bold",t["Arial-ItalicMT-Italic"]="Helvetica-Oblique",t.ArialUnicodeMS="Helvetica",t["ArialUnicodeMS-Bold"]="Helvetica-Bold",t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",t["ArialUnicodeMS-Italic"]="Helvetica-Oblique",t["Courier-BoldItalic"]="Courier-BoldOblique",t["Courier-Italic"]="Courier-Oblique",t.CourierNew="Courier",t["CourierNew-Bold"]="Courier-Bold",t["CourierNew-BoldItalic"]="Courier-BoldOblique",t["CourierNew-Italic"]="Courier-Oblique",t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",t["CourierNewPS-BoldMT"]="Courier-Bold",t["CourierNewPS-ItalicMT"]="Courier-Oblique",t.CourierNewPSMT="Courier",t["Helvetica-BoldItalic"]="Helvetica-BoldOblique",t["Helvetica-Italic"]="Helvetica-Oblique",t["HelveticaLTStd-Bold"]="Helvetica-Bold",t["Symbol-Bold"]="Symbol",t["Symbol-BoldItalic"]="Symbol",t["Symbol-Italic"]="Symbol",t.TimesNewRoman="Times-Roman",t["TimesNewRoman-Bold"]="Times-Bold",t["TimesNewRoman-BoldItalic"]="Times-BoldItalic",t["TimesNewRoman-Italic"]="Times-Italic",t.TimesNewRomanPS="Times-Roman",t["TimesNewRomanPS-Bold"]="Times-Bold",t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",t["TimesNewRomanPS-BoldMT"]="Times-Bold",t["TimesNewRomanPS-Italic"]="Times-Italic",t["TimesNewRomanPS-ItalicMT"]="Times-Italic",t.TimesNewRomanPSMT="Times-Roman",t["TimesNewRomanPSMT-Bold"]="Times-Bold",t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPSMT-Italic"]="Times-Italic"}),Qw=Re(function(t){t.Courier="FoxitFixed.pfb",t["Courier-Bold"]="FoxitFixedBold.pfb",t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",t["Courier-Oblique"]="FoxitFixedItalic.pfb",t.Helvetica="LiberationSans-Regular.ttf",t["Helvetica-Bold"]="LiberationSans-Bold.ttf",t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",t["Helvetica-Oblique"]="LiberationSans-Italic.ttf",t["Times-Roman"]="FoxitSerif.pfb",t["Times-Bold"]="FoxitSerifBold.pfb",t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",t["Times-Italic"]="FoxitSerifItalic.pfb",t.Symbol="FoxitSymbol.pfb",t.ZapfDingbats="FoxitDingbats.pfb",t["LiberationSans-Regular"]="LiberationSans-Regular.ttf",t["LiberationSans-Bold"]="LiberationSans-Bold.ttf",t["LiberationSans-Italic"]="LiberationSans-Italic.ttf",t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}),Oh=Re(function(t){t.Calibri="Helvetica",t["Calibri-Bold"]="Helvetica-Bold",t["Calibri-BoldItalic"]="Helvetica-BoldOblique",t["Calibri-Italic"]="Helvetica-Oblique",t.CenturyGothic="Helvetica",t["CenturyGothic-Bold"]="Helvetica-Bold",t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",t["CenturyGothic-Italic"]="Helvetica-Oblique",t.ComicSansMS="Comic Sans MS",t["ComicSansMS-Bold"]="Comic Sans MS-Bold",t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",t["ComicSansMS-Italic"]="Comic Sans MS-Italic",t.GillSansMT="Helvetica",t["GillSansMT-Bold"]="Helvetica-Bold",t["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",t["GillSansMT-Italic"]="Helvetica-Oblique",t.Impact="Helvetica",t["ItcSymbol-Bold"]="Helvetica-Bold",t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",t["ItcSymbol-Book"]="Helvetica",t["ItcSymbol-BookItalic"]="Helvetica-Oblique",t["ItcSymbol-Medium"]="Helvetica",t["ItcSymbol-MediumItalic"]="Helvetica-Oblique",t.LucidaConsole="Courier",t["LucidaConsole-Bold"]="Courier-Bold",t["LucidaConsole-BoldItalic"]="Courier-BoldOblique",t["LucidaConsole-Italic"]="Courier-Oblique",t["LucidaSans-Demi"]="Helvetica-Bold",t["MS-Gothic"]="MS Gothic",t["MS-Gothic-Bold"]="MS Gothic-Bold",t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",t["MS-Gothic-Italic"]="MS Gothic-Italic",t["MS-Mincho"]="MS Mincho",t["MS-Mincho-Bold"]="MS Mincho-Bold",t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",t["MS-Mincho-Italic"]="MS Mincho-Italic",t["MS-PGothic"]="MS PGothic",t["MS-PGothic-Bold"]="MS PGothic-Bold",t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",t["MS-PGothic-Italic"]="MS PGothic-Italic",t["MS-PMincho"]="MS PMincho",t["MS-PMincho-Bold"]="MS PMincho-Bold",t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",t["MS-PMincho-Italic"]="MS PMincho-Italic",t.NuptialScript="Times-Italic",t.SegoeUISymbol="Helvetica",t.TrebuchetMS="Helvetica",t["TrebuchetMS-Bold"]="Helvetica-Bold",t["TrebuchetMS-BoldItalic"]="Helvetica-BoldOblique",t["TrebuchetMS-Italic"]="Helvetica-Oblique"}),tu=Re(function(t){t["Adobe Jenson"]=!0,t["Adobe Text"]=!0,t.Albertus=!0,t.Aldus=!0,t.Alexandria=!0,t.Algerian=!0,t["American Typewriter"]=!0,t.Antiqua=!0,t.Apex=!0,t.Arno=!0,t.Aster=!0,t.Aurora=!0,t.Baskerville=!0,t.Bell=!0,t.Bembo=!0,t["Bembo Schoolbook"]=!0,t.Benguiat=!0,t["Berkeley Old Style"]=!0,t["Bernhard Modern"]=!0,t["Berthold City"]=!0,t.Bodoni=!0,t["Bauer Bodoni"]=!0,t["Book Antiqua"]=!0,t.Bookman=!0,t["Bordeaux Roman"]=!0,t["Californian FB"]=!0,t.Calisto=!0,t.Calvert=!0,t.Capitals=!0,t.Cambria=!0,t.Cartier=!0,t.Caslon=!0,t.Catull=!0,t.Centaur=!0,t["Century Old Style"]=!0,t["Century Schoolbook"]=!0,t.Chaparral=!0,t["Charis SIL"]=!0,t.Cheltenham=!0,t["Cholla Slab"]=!0,t.Clarendon=!0,t.Clearface=!0,t.Cochin=!0,t.Colonna=!0,t["Computer Modern"]=!0,t["Concrete Roman"]=!0,t.Constantia=!0,t["Cooper Black"]=!0,t.Corona=!0,t.Ecotype=!0,t.Egyptienne=!0,t.Elephant=!0,t.Excelsior=!0,t.Fairfield=!0,t["FF Scala"]=!0,t.Folkard=!0,t.Footlight=!0,t.FreeSerif=!0,t["Friz Quadrata"]=!0,t.Garamond=!0,t.Gentium=!0,t.Georgia=!0,t.Gloucester=!0,t["Goudy Old Style"]=!0,t["Goudy Schoolbook"]=!0,t["Goudy Pro Font"]=!0,t.Granjon=!0,t["Guardian Egyptian"]=!0,t.Heather=!0,t.Hercules=!0,t["High Tower Text"]=!0,t.Hiroshige=!0,t["Hoefler Text"]=!0,t["Humana Serif"]=!0,t.Imprint=!0,t["Ionic No. 5"]=!0,t.Janson=!0,t.Joanna=!0,t.Korinna=!0,t.Lexicon=!0,t.LiberationSerif=!0,t["Liberation Serif"]=!0,t["Linux Libertine"]=!0,t.Literaturnaya=!0,t.Lucida=!0,t["Lucida Bright"]=!0,t.Melior=!0,t.Memphis=!0,t.Miller=!0,t.Minion=!0,t.Modern=!0,t["Mona Lisa"]=!0,t["Mrs Eaves"]=!0,t["MS Serif"]=!0,t["Museo Slab"]=!0,t["New York"]=!0,t["Nimbus Roman"]=!0,t["NPS Rawlinson Roadway"]=!0,t.NuptialScript=!0,t.Palatino=!0,t.Perpetua=!0,t.Plantin=!0,t["Plantin Schoolbook"]=!0,t.Playbill=!0,t["Poor Richard"]=!0,t["Rawlinson Roadway"]=!0,t.Renault=!0,t.Requiem=!0,t.Rockwell=!0,t.Roman=!0,t["Rotis Serif"]=!0,t.Sabon=!0,t.Scala=!0,t.Seagull=!0,t.Sistina=!0,t.Souvenir=!0,t.STIX=!0,t["Stone Informal"]=!0,t["Stone Serif"]=!0,t.Sylfaen=!0,t.Times=!0,t.Trajan=!0,t.Trinit\u00E9=!0,t["Trump Mediaeval"]=!0,t.Utopia=!0,t["Vale Type"]=!0,t["Bitstream Vera"]=!0,t["Vera Serif"]=!0,t.Versailles=!0,t.Wanted=!0,t.Weiss=!0,t["Wide Latin"]=!0,t.Windsor=!0,t.XITS=!0}),Hh=Re(function(t){t.Dingbats=!0,t.Symbol=!0,t.ZapfDingbats=!0,t.Wingdings=!0,t["Wingdings-Bold"]=!0,t["Wingdings-Regular"]=!0}),Zw=Re(function(t){let e=Ea();t[2]=10;for(let i=3;i<Mo.length;i++){let a=e[Mo[i]];a!==void 0&&(t[i]=a)}}),qd=Re(function(t){t[2]=10,t[3]=32,t[4]=33,t[5]=34,t[6]=35,t[7]=36,t[8]=37,t[9]=38,t[10]=39,t[11]=40,t[12]=41,t[13]=42,t[14]=43,t[15]=44,t[16]=45,t[17]=46,t[18]=47,t[19]=48,t[20]=49,t[21]=50,t[22]=51,t[23]=52,t[24]=53,t[25]=54,t[26]=55,t[27]=56,t[28]=57,t[29]=58,t[30]=894,t[31]=60,t[32]=61,t[33]=62,t[34]=63,t[35]=64,t[36]=65,t[37]=66,t[38]=67,t[39]=68,t[40]=69,t[41]=70,t[42]=71,t[43]=72,t[44]=73,t[45]=74,t[46]=75,t[47]=76,t[48]=77,t[49]=78,t[50]=79,t[51]=80,t[52]=81,t[53]=82,t[54]=83,t[55]=84,t[56]=85,t[57]=86,t[58]=87,t[59]=88,t[60]=89,t[61]=90,t[62]=91,t[63]=92,t[64]=93,t[65]=94,t[66]=95,t[67]=96,t[68]=97,t[69]=98,t[70]=99,t[71]=100,t[72]=101,t[73]=102,t[74]=103,t[75]=104,t[76]=105,t[77]=106,t[78]=107,t[79]=108,t[80]=109,t[81]=110,t[82]=111,t[83]=112,t[84]=113,t[85]=114,t[86]=115,t[87]=116,t[88]=117,t[89]=118,t[90]=119,t[91]=120,t[92]=121,t[93]=122,t[94]=123,t[95]=124,t[96]=125,t[97]=126,t[98]=196,t[99]=197,t[100]=199,t[101]=201,t[102]=209,t[103]=214,t[104]=220,t[105]=225,t[106]=224,t[107]=226,t[108]=228,t[109]=227,t[110]=229,t[111]=231,t[112]=233,t[113]=232,t[114]=234,t[115]=235,t[116]=237,t[117]=236,t[118]=238,t[119]=239,t[120]=241,t[121]=243,t[122]=242,t[123]=244,t[124]=246,t[125]=245,t[126]=250,t[127]=249,t[128]=251,t[129]=252,t[130]=8224,t[131]=176,t[132]=162,t[133]=163,t[134]=167,t[135]=8226,t[136]=182,t[137]=223,t[138]=174,t[139]=169,t[140]=8482,t[141]=180,t[142]=168,t[143]=8800,t[144]=198,t[145]=216,t[146]=8734,t[147]=177,t[148]=8804,t[149]=8805,t[150]=165,t[151]=181,t[152]=8706,t[153]=8721,t[154]=8719,t[156]=8747,t[157]=170,t[158]=186,t[159]=8486,t[160]=230,t[161]=248,t[162]=191,t[163]=161,t[164]=172,t[165]=8730,t[166]=402,t[167]=8776,t[168]=8710,t[169]=171,t[170]=187,t[171]=8230,t[179]=8220,t[180]=8221,t[181]=8216,t[182]=8217,t[200]=193,t[203]=205,t[207]=211,t[210]=218,t[223]=711,t[224]=321,t[225]=322,t[226]=352,t[227]=353,t[228]=381,t[229]=382,t[233]=221,t[234]=253,t[252]=263,t[253]=268,t[254]=269,t[258]=258,t[260]=260,t[261]=261,t[265]=280,t[266]=281,t[267]=282,t[268]=283,t[269]=313,t[275]=323,t[276]=324,t[278]=328,t[283]=344,t[284]=345,t[285]=346,t[286]=347,t[292]=367,t[295]=377,t[296]=378,t[298]=380,t[305]=963,t[306]=964,t[307]=966,t[308]=8215,t[309]=8252,t[310]=8319,t[311]=8359,t[312]=8592,t[313]=8593,t[337]=9552,t[493]=1039,t[494]=1040,t[570]=1040,t[571]=1041,t[572]=1042,t[573]=1043,t[574]=1044,t[575]=1045,t[576]=1046,t[577]=1047,t[578]=1048,t[579]=1049,t[580]=1050,t[581]=1051,t[582]=1052,t[583]=1053,t[584]=1054,t[585]=1055,t[586]=1056,t[587]=1057,t[588]=1058,t[589]=1059,t[590]=1060,t[591]=1061,t[592]=1062,t[593]=1063,t[594]=1064,t[595]=1065,t[596]=1066,t[597]=1067,t[598]=1068,t[599]=1069,t[600]=1070,t[601]=1071,t[602]=1072,t[603]=1073,t[604]=1074,t[605]=1075,t[606]=1076,t[607]=1077,t[608]=1078,t[609]=1079,t[610]=1080,t[611]=1081,t[612]=1082,t[613]=1083,t[614]=1084,t[615]=1085,t[616]=1086,t[617]=1087,t[618]=1088,t[619]=1089,t[620]=1090,t[621]=1091,t[622]=1092,t[623]=1093,t[624]=1094,t[625]=1095,t[626]=1096,t[627]=1097,t[628]=1098,t[629]=1099,t[630]=1100,t[631]=1101,t[632]=1102,t[633]=1103,t[672]=1488,t[673]=1489,t[674]=1490,t[675]=1491,t[676]=1492,t[677]=1493,t[678]=1494,t[679]=1495,t[680]=1496,t[681]=1497,t[682]=1498,t[683]=1499,t[684]=1500,t[685]=1501,t[686]=1502,t[687]=1503,t[688]=1504,t[689]=1505,t[690]=1506,t[691]=1507,t[692]=1508,t[693]=1509,t[694]=1510,t[695]=1511,t[696]=1512,t[697]=1513,t[698]=1514,t[705]=1524,t[706]=8362,t[710]=64288,t[711]=64298,t[759]=1617,t[761]=1776,t[763]=1778,t[775]=1652,t[777]=1764,t[778]=1780,t[779]=1781,t[780]=1782,t[782]=771,t[783]=64726,t[786]=8363,t[788]=8532,t[790]=768,t[791]=769,t[792]=768,t[795]=803,t[797]=64336,t[798]=64337,t[799]=64342,t[800]=64343,t[801]=64344,t[802]=64345,t[803]=64362,t[804]=64363,t[805]=64364,t[2424]=7821,t[2425]=7822,t[2426]=7823,t[2427]=7824,t[2428]=7825,t[2429]=7826,t[2430]=7827,t[2433]=7682,t[2678]=8045,t[2679]=8046,t[2830]=1552,t[2838]=686,t[2840]=751,t[2842]=753,t[2843]=754,t[2844]=755,t[2846]=757,t[2856]=767,t[2857]=848,t[2858]=849,t[2862]=853,t[2863]=854,t[2864]=855,t[2865]=861,t[2866]=862,t[2906]=7460,t[2908]=7462,t[2909]=7463,t[2910]=7464,t[2912]=7466,t[2913]=7467,t[2914]=7468,t[2916]=7470,t[2917]=7471,t[2918]=7472,t[2920]=7474,t[2921]=7475,t[2922]=7476,t[2924]=7478,t[2925]=7479,t[2926]=7480,t[2928]=7482,t[2929]=7483,t[2930]=7484,t[2932]=7486,t[2933]=7487,t[2934]=7488,t[2936]=7490,t[2937]=7491,t[2938]=7492,t[2940]=7494,t[2941]=7495,t[2942]=7496,t[2944]=7498,t[2946]=7500,t[2948]=7502,t[2950]=7504,t[2951]=7505,t[2952]=7506,t[2954]=7508,t[2955]=7509,t[2956]=7510,t[2958]=7512,t[2959]=7513,t[2960]=7514,t[2962]=7516,t[2963]=7517,t[2964]=7518,t[2966]=7520,t[2967]=7521,t[2968]=7522,t[2970]=7524,t[2971]=7525,t[2972]=7526,t[2974]=7528,t[2975]=7529,t[2976]=7530,t[2978]=1537,t[2979]=1538,t[2980]=1539,t[2982]=1549,t[2983]=1551,t[2984]=1552,t[2986]=1554,t[2987]=1555,t[2988]=1556,t[2990]=1623,t[2991]=1624,t[2995]=1775,t[2999]=1791,t[3002]=64290,t[3003]=64291,t[3004]=64292,t[3006]=64294,t[3007]=64295,t[3008]=64296,t[3011]=1900,t[3014]=8223,t[3015]=8244,t[3017]=7532,t[3018]=7533,t[3019]=7534,t[3075]=7590,t[3076]=7591,t[3079]=7594,t[3080]=7595,t[3083]=7598,t[3084]=7599,t[3087]=7602,t[3088]=7603,t[3091]=7606,t[3092]=7607,t[3095]=7610,t[3096]=7611,t[3099]=7614,t[3100]=7615,t[3103]=7618,t[3104]=7619,t[3107]=8337,t[3108]=8338,t[3116]=1884,t[3119]=1885,t[3120]=1885,t[3123]=1886,t[3124]=1886,t[3127]=1887,t[3128]=1887,t[3131]=1888,t[3132]=1888,t[3135]=1889,t[3136]=1889,t[3139]=1890,t[3140]=1890,t[3143]=1891,t[3144]=1891,t[3147]=1892,t[3148]=1892,t[3153]=580,t[3154]=581,t[3157]=584,t[3158]=585,t[3161]=588,t[3162]=589,t[3165]=891,t[3166]=892,t[3169]=1274,t[3170]=1275,t[3173]=1278,t[3174]=1279,t[3181]=7622,t[3182]=7623,t[3282]=11799,t[3316]=578,t[3379]=42785,t[3393]=1159,t[3416]=8377}),t2=Re(function(t){t[151]=956,t[159]=937,t[168]=916,t[189]=8364,t[195]=8729,t[218]=713,t[236]=222,t[237]=254,t[238]=8722,t[239]=185,t[240]=178,t[241]=179,t[242]=189,t[243]=188,t[244]=190,t[245]=181,t[246]=8486,t[247]=8710,t[248]=253,t[249]=215,t[250]=173,t[253]=8355,t[254]=286,t[255]=287,t[256]=304,t[257]=350,t[258]=351,t[259]=262,t[260]=263,t[261]=268,t[262]=269,t[263]=273,t[264]=175,t[266]=183,t[267]=258,t[268]=259,t[269]=260,t[270]=261,t[271]=270,t[272]=271,t[273]=272,t[274]=280,t[275]=281,t[276]=282,t[277]=283,t[278]=313,t[279]=314,t[280]=317,t[281]=318,t[282]=319,t[283]=320,t[284]=323,t[285]=324,t[286]=327,t[287]=328,t[288]=336,t[289]=337,t[290]=340,t[291]=341,t[292]=344,t[293]=345,t[294]=346,t[295]=347,t[296]=538,t[297]=539,t[298]=356,t[299]=357,t[300]=366,t[301]=367,t[302]=368,t[303]=369,t[304]=377,t[305]=378,t[306]=379,t[307]=380}),e2=Re(function(t){t[227]=322,t[264]=261,t[291]=346}),i2=Re(function(t){t[1]=32,t[4]=65,t[5]=192,t[6]=193,t[9]=196,t[17]=66,t[18]=67,t[21]=268,t[24]=68,t[28]=69,t[29]=200,t[30]=201,t[32]=282,t[38]=70,t[39]=71,t[44]=72,t[47]=73,t[48]=204,t[49]=205,t[58]=74,t[60]=75,t[62]=76,t[68]=77,t[69]=78,t[75]=79,t[76]=210,t[80]=214,t[87]=80,t[89]=81,t[90]=82,t[92]=344,t[94]=83,t[97]=352,t[100]=84,t[104]=85,t[109]=220,t[115]=86,t[116]=87,t[121]=88,t[122]=89,t[124]=221,t[127]=90,t[129]=381,t[258]=97,t[259]=224,t[260]=225,t[263]=228,t[268]=261,t[271]=98,t[272]=99,t[273]=263,t[275]=269,t[282]=100,t[286]=101,t[287]=232,t[288]=233,t[290]=283,t[295]=281,t[296]=102,t[336]=103,t[346]=104,t[349]=105,t[350]=236,t[351]=237,t[361]=106,t[364]=107,t[367]=108,t[371]=322,t[373]=109,t[374]=110,t[381]=111,t[382]=242,t[383]=243,t[386]=246,t[393]=112,t[395]=113,t[396]=114,t[398]=345,t[400]=115,t[401]=347,t[403]=353,t[410]=116,t[437]=117,t[442]=252,t[448]=118,t[449]=119,t[454]=120,t[455]=121,t[457]=253,t[460]=122,t[462]=382,t[463]=380,t[853]=44,t[855]=58,t[856]=46,t[876]=47,t[878]=45,t[882]=45,t[894]=40,t[895]=41,t[896]=91,t[897]=93,t[923]=64,t[940]=163,t[1004]=48,t[1005]=49,t[1006]=50,t[1007]=51,t[1008]=52,t[1009]=53,t[1010]=54,t[1011]=55,t[1012]=56,t[1013]=57,t[1081]=37,t[1085]=43,t[1086]=45});d(Ff,"getStandardFontName");d(xd,"isKnownFontName");a2=class{static{d(this,"GlyfTable")}constructor({glyfTable:t,isGlyphLocationsLong:e,locaTable:i,numGlyphs:a}){this.glyphs=[];let s=new DataView(i.buffer,i.byteOffset,i.byteLength),n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=e?4:2,l=e?s.getUint32(0):2*s.getUint16(0),o=0;for(let f=0;f<a;f++){o+=r;let h=e?s.getUint32(o):2*s.getUint16(o);if(h===l){this.glyphs.push(new Ad({}));continue}let c=Ad.parse(l,n);this.glyphs.push(c),l=h}}getSize(){return Math.sumPrecise(this.glyphs.map(t=>t.getSize()+3&-4))}write(){let t=this.getSize(),e=new DataView(new ArrayBuffer(t)),i=t>131070,a=i?4:2,s=new DataView(new ArrayBuffer((this.glyphs.length+1)*a));i?s.setUint32(0,0):s.setUint16(0,0);let n=0,r=0;for(let l of this.glyphs)n+=l.write(n,e),n=n+3&-4,r+=a,i?s.setUint32(r,n):s.setUint16(r,n>>1);return{isLocationLong:i,loca:new Uint8Array(s.buffer),glyf:new Uint8Array(e.buffer)}}scale(t){for(let e=0,i=this.glyphs.length;e<i;e++)this.glyphs[e].scale(t[e])}},Ad=class Nh{static{d(this,"Glyph")}constructor({header:e=null,simple:i=null,composites:a=null}){this.header=e,this.simple=i,this.composites=a}static parse(e,i){let[a,s]=s2.parse(e,i);if(e+=a,s.numberOfContours<0){let r=[];for(;;){let[l,o]=l2.parse(e,i);if(e+=l,r.push(o),!(o.flags&32))break}return new Nh({header:s,composites:r})}let n=r2.parse(e,i,s.numberOfContours);return new Nh({header:s,simple:n})}getSize(){if(!this.header)return 0;let e=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map(i=>i.getSize()));return this.header.getSize()+e}write(e,i){if(!this.header)return 0;let a=e;if(e+=this.header.write(e,i),this.simple)e+=this.simple.write(e,i);else for(let s of this.composites)e+=s.write(e,i);return e-a}scale(e){if(!this.header)return;let i=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(i,e),this.simple)this.simple.scale(i,e);else for(let a of this.composites)a.scale(i,e)}},s2=class Up{static{d(this,"GlyphHeader")}constructor({numberOfContours:e,xMin:i,yMin:a,xMax:s,yMax:n}){this.numberOfContours=e,this.xMin=i,this.yMin=a,this.xMax=s,this.yMax=n}static parse(e,i){return[10,new Up({numberOfContours:i.getInt16(e),xMin:i.getInt16(e+2),yMin:i.getInt16(e+4),xMax:i.getInt16(e+6),yMax:i.getInt16(e+8)})]}getSize(){return 10}write(e,i){return i.setInt16(e,this.numberOfContours),i.setInt16(e+2,this.xMin),i.setInt16(e+4,this.yMin),i.setInt16(e+6,this.xMax),i.setInt16(e+8,this.yMax),10}scale(e,i){this.xMin=Math.round(e+(this.xMin-e)*i),this.xMax=Math.round(e+(this.xMax-e)*i)}},n2=class{static{d(this,"Contour")}constructor({flags:t,xCoordinates:e,yCoordinates:i}){this.xCoordinates=e,this.yCoordinates=i,this.flags=t}},r2=class Gp{static{d(this,"SimpleGlyph")}constructor({contours:e,instructions:i}){this.contours=e,this.instructions=i}static parse(e,i,a){let s=[];for(let b=0;b<a;b++){let w=i.getUint16(e);e+=2,s.push(w)}let n=s[a-1]+1,r=i.getUint16(e);e+=2;let l=new Uint8Array(i).slice(e,e+r);e+=r;let o=[];for(let b=0;b<n;e++,b++){let w=i.getUint8(e);if(o.push(w),w&8){let v=i.getUint8(++e);w^=8;for(let y=0;y<v;y++)o.push(w);b+=v}}let f=[],h=[],c=[],u=[],p=[],m=0,g=0;for(let b=0;b<n;b++){let w=o[b];if(w&2){let v=i.getUint8(e++);g+=w&16?v:-v,h.push(g)}else w&16||(g+=i.getInt16(e),e+=2),h.push(g);s[m]===b&&(m++,f.push(h),h=[])}g=0,m=0;for(let b=0;b<n;b++){let w=o[b];if(w&4){let v=i.getUint8(e++);g+=w&32?v:-v,c.push(g)}else w&32||(g+=i.getInt16(e),e+=2),c.push(g);u.push(w&1|w&64),s[m]===b&&(h=f[m],m++,p.push(new n2({flags:u,xCoordinates:h,yCoordinates:c})),c=[],u=[])}return new Gp({contours:p,instructions:l})}getSize(){let e=this.contours.length*2+2+this.instructions.length,i=0,a=0;for(let s of this.contours){e+=s.flags.length;for(let n=0,r=s.xCoordinates.length;n<r;n++){let l=s.xCoordinates[n],o=s.yCoordinates[n],f=Math.abs(l-i);f>255?e+=2:f>0&&(e+=1),i=l,f=Math.abs(o-a),f>255?e+=2:f>0&&(e+=1),a=o}}return e}write(e,i){let a=e,s=[],n=[],r=[],l=0,o=0;for(let f of this.contours){for(let h=0,c=f.xCoordinates.length;h<c;h++){let u=f.flags[h],p=f.xCoordinates[h],m=p-l;if(m===0)u|=16,s.push(0);else{let b=Math.abs(m);b<=255?(u|=m>=0?18:2,s.push(b)):s.push(m)}l=p;let g=f.yCoordinates[h];if(m=g-o,m===0)u|=32,n.push(0);else{let b=Math.abs(m);b<=255?(u|=m>=0?36:4,n.push(b)):n.push(m)}o=g,r.push(u)}i.setUint16(e,s.length-1),e+=2}i.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(i.buffer,0,i.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(let f of r)i.setUint8(e++,f);for(let f=0,h=s.length;f<h;f++){let c=s[f],u=r[f];u&2?i.setUint8(e++,c):u&16||(i.setInt16(e,c),e+=2)}for(let f=0,h=n.length;f<h;f++){let c=n[f],u=r[f];u&4?i.setUint8(e++,c):u&32||(i.setInt16(e,c),e+=2)}return e-a}scale(e,i){for(let a of this.contours)if(a.xCoordinates.length!==0)for(let s=0,n=a.xCoordinates.length;s<n;s++)a.xCoordinates[s]=Math.round(e+(a.xCoordinates[s]-e)*i)}},l2=class $p{static{d(this,"CompositeGlyph")}constructor({flags:e,glyphIndex:i,argument1:a,argument2:s,transf:n,instructions:r}){this.flags=e,this.glyphIndex=i,this.argument1=a,this.argument2=s,this.transf=n,this.instructions=r}static parse(e,i){let a=e,s=[],n=i.getUint16(e),r=i.getUint16(e+2);e+=4;let l,o;n&1?(n&2?(l=i.getInt16(e),o=i.getInt16(e+2)):(l=i.getUint16(e),o=i.getUint16(e+2)),e+=4,n^=1):(n&2?(l=i.getInt8(e),o=i.getInt8(e+1)):(l=i.getUint8(e),o=i.getUint8(e+1)),e+=2),n&8?(s.push(i.getUint16(e)),e+=2):n&64?(s.push(i.getUint16(e),i.getUint16(e+2)),e+=4):n&128&&(s.push(i.getUint16(e),i.getUint16(e+2),i.getUint16(e+4),i.getUint16(e+6)),e+=8);let f=null;if(n&256){let h=i.getUint16(e);e+=2,f=new Uint8Array(i).slice(e,e+h),e+=h}return[e-a,new $p({flags:n,glyphIndex:r,argument1:l,argument2:o,transf:s,instructions:f})]}getSize(){let e=4+this.transf.length*2;return this.flags&256&&(e+=2+this.instructions.length),e+=2,this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}write(e,i){let a=e;return this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),i.setUint16(e,this.flags),i.setUint16(e+2,this.glyphIndex),e+=4,this.flags&1?(this.flags&2?(i.setInt16(e,this.argument1),i.setInt16(e+2,this.argument2)):(i.setUint16(e,this.argument1),i.setUint16(e+2,this.argument2)),e+=4):(i.setUint8(e,this.argument1),i.setUint8(e+1,this.argument2),e+=2),this.flags&256&&(i.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(i.buffer,0,i.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-a}scale(e,i){}};d(o2,"pruneCompositeGlyphCycles");zr=class{static{d(this,"ToUnicodeMap")}#t;constructor(t){this.#t=t}get size(){return this.#t.size}forEach(t){for(let[e,i]of this.#t)t(e,i.codePointAt(0))}has(t){return this.#t.has(t)}get(t){return this.#t.get(t)}charCodeOf(t){for(let[e,i]of this.#t)if(i===t)return e;return-1}amend(t){for(let[e,i]of t)this.#t.set(e,i)}},ga=class{static{d(this,"IdentityToUnicodeMap")}constructor(t,e){this.firstChar=t,this.lastChar=e}get size(){return this.lastChar+1-this.firstChar}forEach(t){for(let e=this.firstChar,i=this.lastChar;e<=i;e++)t(e,e)}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){return this.firstChar<=t&&t<=this.lastChar?String.fromCharCode(t):void 0}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){te("Should not call amend()")}},Rf=class{static{d(this,"CFFFont")}constructor(t,e){this.properties=e;let i=new Jc(t,e,!0);this.cff=i.parse(),this.cff.duplicateFirstGlyph();let a=new Zc(this.cff);this.seacs=this.cff.seacs;try{this.data=a.compile()}catch(s){E(`Failed to compile font "${e.loadedName}": "${s}".`),t.reset(),this.data=t.getBytes()}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let t=this.cff,e=this.properties,{cidToGidMap:i,cMap:a}=e,s=t.charset.charset;if(e.composite){let r;if(i?.size){r=new Map;for(let[h,c]of i)r.set(c,h)}let l=new Map,o,f;if(t.isCIDFont)for(f=0;f<s.length;f++){let h=s[f];o=a.charCodeOf(h),r?.has(o)&&(o=r.get(o)),l.set(o,f)}else for(f=0;f<t.charStrings.count;f++)o=a.charCodeOf(f),l.set(o,f);return l}let n=t.encoding?t.encoding.encoding:null;return e.isInternalFont&&(n=e.defaultEncoding),Dp(e,n,s)}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){let{charset:t,encoding:e}=this.cff;if(!t||!e)return;let i=t.charset,a=e.encoding,s=[];for(let n in a){let r=a[n];if(r>=0){let l=i[r];l&&(s[n]=l)}}s.length>0&&(this.properties.builtInEncoding=s)}},f2=class{static{d(this,"CSS_FONT_INFO$1")}static strings=["fontFamily","fontWeight","italicAngle"]},h2=class{static{d(this,"SYSTEM_FONT_INFO$1")}static strings=["css","loadedName","baseFontName","src"]},Vs=class{static{d(this,"FONT_INFO$1")}static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static strings=["fallbackName","loadedName"];static OFFSET_BBOX=Math.ceil(this.bools.length*2/8);static OFFSET_FONT_MATRIX=this.OFFSET_BBOX+1+8;static OFFSET_STRINGS=this.OFFSET_FONT_MATRIX+1+48},ys=class{static{d(this,"PATTERN_INFO$1")}static KIND=0;static HAS_BBOX=1;static HAS_BACKGROUND=2;static SHADING_TYPE=3;static N_COORD=4;static N_COLOR=8;static N_STOP=12;static N_FIGURES=16},c2=class{static{d(this,"InfoUtils$1")}static get decoder(){return ht(this,"decoder",new TextDecoder)}static get encoder(){return ht(this,"encoder",new TextEncoder)}};d(_o,"encodeStrings");d(Eo,"writeStrings");d(u2,"compileCssFontInfo");d(d2,"compileSystemFontInfo");d(p2,"compileFontInfo");d(m2,"compilePatternInfo");d(g2,"compileFontPathInfo");d(Ks,"getFloat214");d(Lh,"getSubroutineBias");d(b2,"parseCmap");d(w2,"parseCff");d(y2,"parseGlyfTable");d(zh,"lookupCmap");d(Wp,"compileGlyf");d(Uh,"compileCharString");k2=class{static{d(this,"Commands")}cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(t,e){if(e){let{currentTransform:i}=this;for(let a=0,s=e.length;a<s;a+=2)oe.applyTransform(e,i,a);this.cmds.push(t,...e)}else this.cmds.push(t)}transform(t){this.currentTransform=oe.transform(this.currentTransform,t)}translate(t,e){this.transform([1,0,0,1,t,e])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return Ni.isFloat16ArraySupported?new Float16Array(this.cmds):new Float32Array(this.cmds)}},Vp=class Kp{static{d(this,"CompiledFont")}#t=new Set;#e=new Map;constructor(e){this.fontMatrix=e}static get NOOP(){return ht(this,"NOOP",Ni.isFloat16ArraySupported?new Float16Array(0):new Float32Array)}getPath(e){let{charCode:i,glyphId:a}=zh(this.cmap,e);if(this.#e.has(a)&&this.#t.has(i))return null;let s=this.#e.getOrInsertComputed(a,()=>{try{return this.compileGlyph(this.glyphs[a],a)}catch(n){return n}});if(this.#t.add(i),s instanceof Error)throw s;return g2(s)}compileGlyph(e,i){if(!e?.length||e[0]===14)return Kp.NOOP;let a=this.fontMatrix;if(this.isCFFCIDFont){let n=this.fdSelect.getFDIndex(i);n>=0&&n<this.fdArray.length?a=this.fdArray[n].getByName("FontMatrix")||pn:E("Invalid fd index for glyph index.")}Le(Ne(a,6),"Expected a valid fontMatrix.");let s=new k2;return s.transform(a.slice()),this.compileGlyphImpl(e,s,i),s.add(Ee.closePath),s.getPath()}compileGlyphImpl(){te("Children classes should implement this.")}},v2=class extends Vp{static{d(this,"TrueTypeCompiled")}constructor(t,e,i){super(i||[488e-6,0,0,488e-6,0,0]),this.glyphs=t,this.cmap=e}compileGlyphImpl(t,e){Wp(t,e,this)}},j2=class extends Vp{static{d(this,"Type2Compiled")}constructor(t,e,i){super(i||[.001,0,0,.001,0,0]),this.glyphs=t.glyphs,this.gsubrs=t.gsubrs||[],this.subrs=t.subrs||[],this.cmap=e,this.glyphNameMap=Ea(),this.gsubrsBias=Lh(this.gsubrs),this.subrsBias=Lh(this.subrs),this.isCFFCIDFont=t.isCFFCIDFont,this.fdSelect=t.fdSelect,this.fdArray=t.fdArray}compileGlyphImpl(t,e,i){Uh(t,e,this,i)}},q2=class{static{d(this,"FontRendererFactory")}static create(t,e){let i=new Uint8Array(t.data),a=new DataView(i.buffer),s,n,r,l,o,f,h=a.getUint16(4);for(let c=0,u=12;c<h;c++,u+=16){let p=Bi(i.subarray(u,u+4)),m=a.getUint32(u+8),g=a.getUint32(u+12);switch(p){case"cmap":s=b2(i,m,m+g);break;case"glyf":n=i.subarray(m,m+g);break;case"loca":r=i.subarray(m,m+g);break;case"head":f=a.getUint16(m+18),o=a.getUint16(m+50);break;case"CFF ":l=w2(i,m,m+g,e)}}if(n){let c=f?[1/f,0,0,1/f,0,0]:t.fontMatrix;return new v2(y2(n,r,o),s,c)}return new j2(l,s,t.fontMatrix)}},x2=Re(function(t){t.Courier=600,t["Courier-Bold"]=600,t["Courier-BoldOblique"]=600,t["Courier-Oblique"]=600,t.Helvetica=Re(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-Bold"]=Re(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-BoldOblique"]=Re(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-Oblique"]=Re(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),t.Symbol=Re(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),t["Times-Roman"]=Re(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-Bold"]=Re(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-BoldItalic"]=Re(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-Italic"]=Re(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),t.ZapfDingbats=Re(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})}),A2=Re(function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}),Gh=class Xp{static{d(this,"OpenTypeFileBuilder")}#t=new Map;constructor(e){this.sfnt=e}static getSearchParams(e,i){let a=1,s=0;for(;(a^e)>a;)a<<=1,s++;let n=a*i;return{range:n,entry:s,rangeShift:i*e-n}}toArray(){let e=this.sfnt,i=this.#t,a=[...i.keys()].sort(),s=a.length,n=12+s*16,r=[n];for(let h=0;h<s;h++){let c=(i.get(a[h]).length+3&-4)>>>0;n+=c,r.push(n)}let l=new Uint8Array(n),o=new DataView(l.buffer);for(let h=0;h<s;h++){let c=i.get(a[h]);l.set(c,r[h])}e==="true"&&(e="\0\0\0"),l.set(Be(e),0),o.setInt16(4,s);let f=Xp.getSearchParams(s,16);o.setInt16(6,f.range),o.setInt16(8,f.entry),o.setInt16(10,f.rangeShift),n=12;for(let h=0;h<s;h++){let c=a[h];l.set(Be(c),n);let u=0;for(let p=r[h],m=r[h+1];p<m;p+=4){let g=o.getUint32(p);u=u+g>>>0}o.setInt32(n+4,u),o.setInt32(n+8,r[h]),o.setInt32(n+12,i.get(c).length),n+=16}return this.#t.clear(),l}addTable(e,i){if(this.#t.has(e))throw Error(`Table ${e} already exists`);this.#t.set(e,i)}},Fi={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]},Sd=class{static{d(this,"Type1CharString")}width=0;lsb=0;flexing=!1;output=[];stack=[];convert(t,e,i){let a=t.length,s=!1,n,r,l;for(let o=0;o<a;o++){let f=t[o];if(f<32){switch(f===12&&(f=(f<<8)+t[++o]),f){case 1:this.stack=[];break;case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){s=!0;break}let m=this.stack.pop();this.stack.push(0,m);break}s=this.executeCommand(1,Fi.vmoveto);break;case 5:s=this.executeCommand(2,Fi.rlineto);break;case 6:s=this.executeCommand(1,Fi.hlineto);break;case 7:s=this.executeCommand(1,Fi.vlineto);break;case 8:s=this.executeCommand(6,Fi.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1||(l=this.stack.pop(),!e[l])){s=!0;break}s=this.convert(e[l],e,i);break;case 11:return s;case 13:if(this.stack.length<2){s=!0;break}n=this.stack.pop(),r=this.stack.pop(),this.lsb=r,this.width=n,this.stack.push(n,r),s=this.executeCommand(2,Fi.hmoveto);break;case 14:this.output.push(Fi.endchar[0]);break;case 21:if(this.flexing)break;s=this.executeCommand(2,Fi.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}s=this.executeCommand(1,Fi.hmoveto);break;case 30:s=this.executeCommand(4,Fi.vhcurveto);break;case 31:s=this.executeCommand(4,Fi.hvcurveto);break;case 3072:this.stack=[];break;case 3073:this.stack=[];break;case 3074:this.stack=[];break;case 3078:if(i){let m=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-m,s=this.executeCommand(0,Fi.endchar)}else s=this.executeCommand(4,Fi.endchar);break;case 3079:if(this.stack.length<4){s=!0;break}this.stack.pop(),n=this.stack.pop();let h=this.stack.pop();r=this.stack.pop(),this.lsb=r,this.width=n,this.stack.push(n,r,h),s=this.executeCommand(3,Fi.rmoveto);break;case 3084:if(this.stack.length<2){s=!0;break}let c=this.stack.pop(),u=this.stack.pop();this.stack.push(u/c);break;case 3088:if(this.stack.length<2){s=!0;break}l=this.stack.pop();let p=this.stack.pop();if(l===0&&p===3){let m=this.stack.splice(-17,17);this.stack.push(m[2]+m[0],m[3]+m[1],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14]),s=this.executeCommand(13,Fi.flex,!0),this.flexing=!1,this.stack.push(m[15],m[16])}else l===1&&p===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:E('Unknown type 1 charstring command of "'+f+'"')}if(s)break}else f<=246?f-=139:f=f<=250?(f-247)*256+t[++o]+108:f<=254?-((f-251)*256)-t[++o]-108:(t[++o]&255)<<24|(t[++o]&255)<<16|(t[++o]&255)<<8|t[++o]&255,this.stack.push(f)}return s}executeCommand(t,e,i){let a=this.stack.length;if(t>a)return!0;let s=a-t;for(let n=s;n<a;n++){let r=this.stack[n];Number.isInteger(r)?this.output.push(28,r>>8&255,r&255):(r=65536*r|0,this.output.push(255,r>>24&255,r>>16&255,r>>8&255,r&255))}return this.output.push(...e),i?this.stack.splice(s,t):this.stack.length=0,!1}},Cd=55665;d(Sa,"isHexDigit");d(Id,"decrypt");d(S2,"decryptAscii");d(Td,"isSpecial");Df=class{static{d(this,"Type1Parser")}constructor(t,e,i){if(e){let a=t.getBytes();t=new Me((Sa(a[0])||ya(a[0]))&&Sa(a[1])&&Sa(a[2])&&Sa(a[3])&&Sa(a[4])&&Sa(a[5])&&Sa(a[6])&&Sa(a[7])?S2(a,Cd,4):Id(a,Cd,4))}this.seacAnalysisEnabled=!!i,this.stream=t,this.nextChar()}readNumberArray(){this.getToken();let t=[];for(;;){let e=this.getToken();if(e===null||e==="]"||e==="}")break;t.push(parseFloat(e||0))}return t}readNumber(){let t=this.getToken();return parseFloat(t||0)}readInt(){let t=this.getToken();return parseInt(t||0,10)|0}readBoolean(){return+(this.getToken()==="true")}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let t=!1,e=this.currentChar;for(;;){if(e===-1)return null;if(t)(e===10||e===13)&&(t=!1);else if(e===37)t=!0;else if(!ya(e))break;e=this.nextChar()}if(Td(e))return this.nextChar(),String.fromCharCode(e);let i="";do i+=String.fromCharCode(e),e=this.nextChar();while(e>=0&&!ya(e)&&!Td(e));return i}readCharStrings(t,e){return e===-1?t:Id(t,4330,e)}extractFontProgram(t){let e=this.stream,i=[],a=[],s=new Map([["lenIV",4]]),n={subrs:[],charstrings:[],properties:{privateData:s}},r,l,o,f=!1,h=!1;for(;(r=this.getToken())!==null;)if(r==="/")switch(r=this.getToken(),r){case"CharStrings":if(h)break;for(h=!0,this.getToken(),this.getToken(),this.getToken(),this.getToken();r=this.getToken(),r!==null&&r!=="end";){if(r!=="/")continue;let c=this.getToken();l=this.readInt(),this.getToken(),o=l>0?e.getBytes(l):new Uint8Array;let u=this.readCharStrings(o,s.get("lenIV"));this.nextChar(),r=this.getToken(),r==="noaccess"?this.getToken():r==="/"&&this.prevChar(),a.push({glyph:c,encoded:u})}break;case"Subrs":if(f)break;for(f=!0,this.readInt(),this.getToken();this.getToken()==="dup";){let c=this.readInt();l=this.readInt(),this.getToken(),o=l>0?e.getBytes(l):new Uint8Array;let u=this.readCharStrings(o,s.get("lenIV"));this.nextChar(),r=this.getToken(),r==="noaccess"&&this.getToken(),i[c]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":this.readNumberArray();break;case"StemSnapH":case"StemSnapV":s.set(r,this.readNumberArray());break;case"StdHW":case"StdVW":s.set(r,this.readNumberArray()[0]);break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":s.set(r,this.readNumber());break;case"ExpansionFactor":s.set(r,this.readNumber()||.06);break;case"ForceBold":s.set(r,this.readBoolean())}for(let{encoded:c,glyph:u}of a){let p=new Sd,m={glyphName:u,charstring:p.convert(c,i,this.seacAnalysisEnabled)?[14]:p.output,width:p.width,lsb:p.lsb,seac:p.seac};if(u===".notdef"?n.charstrings.unshift(m):n.charstrings.push(m),t.builtInEncoding){let g=t.builtInEncoding.indexOf(u);g>-1&&t.widths[g]===void 0&&g>=t.firstChar&&g<=t.lastChar&&(t.widths[g]=p.width)}}return n}extractCidKeyedFontProgram(t){let e=this.stream,i=new Map([["lenIV",4]]),a={subrs:[],charstrings:[],properties:{privateData:i}},s=0,n=-1,r=1,l=0,o=-1,f=0,h=0,c=0,u=!1,p=!1,m=[];function g(C){m.push(C),m.length>4&&m.shift()}d(g,"rememberToken");let b;for(;(b=this.getToken())!==null;){if(b==="StartData"){let C=m.at(-3),M=m.at(-1);if(m.at(-4)!=="("||m.at(-2)!==")"||C!=="Binary"&&C!=="Hex"||!/^\d+$/.test(M)||(c=parseInt(M,10),c<=0))return null;u=C==="Hex",p=!0;break}if(g(b),b==="/")switch(b=this.getToken(),g(b),b){case"FontMatrix":t.fontMatrix=this.readNumberArray();break;case"FontBBox":let C=this.readNumberArray();t.ascent=Math.max(C[3],C[1]),t.descent=Math.min(C[1],C[3]),t.ascentScaled=!0;break;case"CIDCount":s=this.readInt();break;case"CIDMapOffset":n=this.readInt();break;case"FDBytes":r=this.readInt();break;case"GDBytes":l=this.readInt();break;case"SubrMapOffset":o=this.readInt();break;case"SDBytes":f=this.readInt();break;case"SubrCount":h=this.readInt();break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":this.readNumberArray();break;case"StemSnapH":case"StemSnapV":i.set(b,this.readNumberArray());break;case"StdHW":case"StdVW":i.set(b,this.readNumberArray()[0]);break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":i.set(b,this.readNumber());break;case"ExpansionFactor":i.set(b,this.readNumber()||.06);break;case"ForceBold":i.set(b,this.readBoolean())}}if(!p||s<=0||n<0||r<0||r>4||l<1||l>4)return null;let w=e.end-e.pos;if(c>w){if(!u)c=w;else if(c>2*w)return null}let v=e.getBytes(u?void 0:c);if(u){let C=new Uint8Array(c),M=-1,O=0;for(let P=0,$=v.length;P<$&&O<c;P++){let tt=v[P];Sa(tt)&&(M<0?M=tt:(C[O++]=parseInt(String.fromCharCode(M,tt),16),M=-1))}if(O!==c)return null;v=C}let y=i.get("lenIV"),x=r+l,q=[];function j(C,M){let O=0;for(let P=0;P<M;P++)O=O<<8|v[C+P];return O>>>0}if(d(j,"readUint"),n+(s+1)*x>v.length||h>0&&(o<0||f<1||f>4||o+(h+1)*f>v.length))return null;if(r>0){for(let C=0;C<s;C++)if(j(n+C*x,r)!==0)return null}if(h>0){let C=Array(h+1);for(let M=0;M<=h;M++)C[M]=j(o+M*f,f);for(let M=0;M<h;M++){let O=C[M],P=C[M+1];P>v.length||P<O?q[M]=new Uint8Array:q[M]=this.readCharStrings(v.subarray(O,P),y)}}let A=[],S=j(n+r,l);for(let C=0;C<s;C++){let M=j(n+(C+1)*x+r,l),O=C===0?".notdef":`cid${C}`;if(M>S&&M<=v.length){let P=this.readCharStrings(v.subarray(S,M),y),$=new Sd,tt=$.convert(P,q,this.seacAnalysisEnabled);A.push({glyphName:O,charstring:tt?[14]:$.output,width:$.width,lsb:$.lsb,seac:$.seac})}else{let P=A[0];A.push({glyphName:O,charstring:P?.charstring.slice()||[139,14],width:P?.width||0,lsb:P?.lsb||0})}S=M}return a.subrs=q,a.charstrings=A,a}extractFontHeader(t){let e;for(;(e=this.getToken())!==null;)if(e==="/")switch(e=this.getToken(),e){case"FontMatrix":t.fontMatrix=this.readNumberArray();break;case"Encoding":let i=this.getToken(),a;if(!/^\d+$/.test(i))a=ml(i);else{a=[];let n=parseInt(i,10)|0;this.getToken();for(let r=0;r<n;r++){for(e=this.getToken();e!=="dup"&&e!=="def";)if(e=this.getToken(),e===null)return;if(e==="def")break;let l=this.readInt();this.getToken();let o=this.getToken();a[l]=o,this.getToken()}}t.builtInEncoding=a;break;case"FontBBox":let s=this.readNumberArray();t.ascent=Math.max(s[3],s[1]),t.descent=Math.min(s[1],s[3]),t.ascentScaled=!0}}};d(Md,"findBlock");d(C2,"getHeaderBlock");d(I2,"getEexecBlock");d(T2,"isCidKeyedType1File");M2=class{static{d(this,"Type1Font")}#t;constructor(t,e,i){let a;i.composite&&T2(e)&&(a=this.#i(e,i)),a||=this.#e(e,i);for(let l in a.properties)i[l]=a.properties[l];let s=a.charstrings,n=this.getType2Charstrings(s),r=this.getType2Subrs(a.subrs);this.charstrings=s,this.data=this.wrap(t,n,this.charstrings,r,i),this.seacs=this.getSeacs(a.charstrings)}#e(t,e){let i=e.length1,a=e.length2,s=t.peekBytes(6),n=s[0]===128&&s[1]===1;n&&(t.skip(6),i=s[5]<<24|s[4]<<16|s[3]<<8|s[2]);let r=C2(t,i);new Df(r.stream,!1,!0).extractFontHeader(e),n&&(s=t.getBytes(6),a=s[5]<<24|s[4]<<16|s[3]<<8|s[2]);let l=I2(t,a),o=new Df(l.stream,!0,!0).extractFontProgram(e);return this.#t=r.length+l.length,o}#i(t,e){let i=t.pos,a=t.end-i,s=new Df(t,!1,!0).extractCidKeyedFontProgram(e);return s?(this.#t=a,s):(t.pos=i,E("Type1Font: unable to parse CID-keyed Type 1 font."),null)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let t=[".notdef"];for(let{glyphName:e}of this.charstrings)t.push(e);return t}getGlyphMapping(t){let e=this.charstrings;if(t.composite){let r=new Map;for(let l=0,o=e.length;l<o;l++){let f=t.cMap.charCodeOf(l);r.set(f,l+1)}return r}let i=[".notdef"],a,s=0;for(;s<e.length;s++)i.push(e[s].glyphName);let n=t.builtInEncoding;if(n){a=Object.create(null);for(let r in n)s=i.indexOf(n[r]),s>=0&&(a[r]=s)}return Dp(t,a,i)}hasGlyphId(t){return t<0||t>=this.numGlyphs?!1:t===0||this.charstrings[t-1].charstring.length>0}getSeacs(t){let e=new Map;for(let i=0,a=t.length;i<a;i++){let{seac:s}=t[i];s&&e.set(i+1,s)}return e}getType2Charstrings(t){let e=[];for(let i of t)e.push(i.charstring);return e}getType2Subrs(t){let e=0,i=t.length;e=i<1133?107:i<33769?1131:32768;let a=[],s=0;for(;s<e;s++)a.push([11]);for(s=0;s<i;s++)a.push(t[s]);return a}wrap(t,e,i,a,s){let n=new Bp(this.#t);n.header=new Op(1,0,4,4),n.names=[t];let r=new Ph;r.setByName("version",391),r.setByName("Notice",392),r.setByName("FullName",393),r.setByName("FamilyName",394),r.setByName("Weight",395),r.setByName("Encoding",null),r.setByName("FontMatrix",s.fontMatrix),r.setByName("FontBBox",s.bbox),r.setByName("charset",null),r.setByName("CharStrings",null),r.setByName("Private",null),n.topDict=r;let l=new Qc;l.add("Version 0.11"),l.add("See original notice"),l.add(t),l.add(t),l.add("Medium"),n.strings=l,n.globalSubrIndex=new Fs;let o=e.length,f=[".notdef"];for(let p=0;p<o;p++){let{glyphName:m}=i[p];bo.indexOf(m)===-1&&l.add(m),f.push(m)}n.charset=new Lr(!1,0,f);let h=new Fs;h.add([139,14]);for(let p=0;p<o;p++)h.add(e[p]);n.charStrings=h;let c=new Bh;c.setByName("Subrs",null);for(let p of["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"]){if(!s.privateData.has(p))continue;let m=s.privateData.get(p);if(Array.isArray(m))for(let g=m.length-1;g>0;g--)m[g]-=m[g-1];c.setByName(p,m)}n.topDict.privateDict=c;let u=new Fs;for(let p of a)u.add(p);return c.subrsIndex=u,new Zc(n).compile()}},ts=[[57344,63743],[1048576,1114109]],an=1e3,_2=["bbox","black","bold","cssFontInfo","data","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","missingFile","remeasure","systemFontInfo","vertical"],E2=["ascent","composite","defaultEncoding","defaultVMetrics","defaultWidth","descent","differences","isMonospace","isSerifFont","isSymbolicFont","name","seacMap","subtype","toFontChar","type","vmetrics","widths"];d(_d,"adjustWidths");d(F2,"adjustTrueTypeToUnicode");d(R2,"adjustType1ToUnicode");d(Ed,"amendFallbackToUnicode");D2=class{static{d(this,"fonts_Glyph")}constructor(t,e,i,a,s,n,r,l,o){this.originalCharCode=t,this.fontChar=e,this.unicode=i,this.accent=a,this.width=s,this.vmetric=n,this.operatorListId=r,this.isSpace=l,this.isInFont=o}get category(){return ht(this,"category",Nw(this.unicode),!0)}};d(jr,"int16");d(qr,"writeSignedInt16");d(Ri,"signedInt16");d(Fd,"writeUint32");d(P2,"isTrueTypeFile");d(Yp,"isTrueTypeCollectionFile");d(B2,"isOpenTypeFile");d(O2,"isType1File");d(H2,"isCFFFile");d(N2,"getFontFileType");d(Hn,"applyStandardFontGlyphMap");L2=Re(t=>{let e=3;for(let[i,a]of[[32,126],[161,254]])for(let s=i;s<=a;s++)t[e++]=Xo[s]},!0);d(Pf,"buildToFontChar");d(z2,"isMacNameRecord");d(Jp,"isWinNameRecord");d(Bf,"convertCidString");d(Rd,"adjustMapping");d(U2,"getRanges");d(Dd,"createCmapTable");d(G2,"validateOS2Table");d(Pd,"createOS2Table");d(Bd,"createPostTable");d($2,"createPostscriptName");d(Of,"createNameTable");Od=class{static{d(this,"Font")}#t=new Map;#e=new Map;charProcOperatorList;toFontChar=new Map;constructor(t,e,i,a){this.name=t,this.psName=null,this.disableFontFace=a.disableFontFace,this.fontExtraProperties=a.fontExtraProperties,this.loadedName=i.loadedName,this.isType3Font=i.isType3Font,this.missingFile=!1,this.cssFontInfo=i.cssFontInfo;let s=!!(i.flags&ia.Serif);if(!s&&!i.isSimulatedFlags){let f=gl(),h=Oh(),c=tu();for(let u of t.split("+")){let p=Hs(u);if(p=f[p]||h[p]||p,p=p.split("-",1)[0],c[p]){s=!0;break}}}this.isSerifFont=s,this.isSymbolicFont=!!(i.flags&ia.Symbolic),this.isMonospace=!!(i.flags&ia.FixedPitch);let{type:n,subtype:r}=i;this.type=n,this.subtype=r,this.systemFontInfo=i.systemFontInfo;let l=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!l,this.fallbackName=this.isInvalidPDFjsFont?l[1]:this.isMonospace?"monospace":this.isSerifFont?"serif":"sans-serif",this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=i.differences,this.widths=i.widths,this.defaultWidth=i.defaultWidth,this.composite=i.composite,this.cMap=i.cMap,this.capHeight=i.capHeight/an,this.ascent=i.ascent/an,this.descent=i.descent/an,this.lineHeight=this.ascent-this.descent,this.fontMatrix=i.fontMatrix,this.bbox=i.bbox,this.defaultEncoding=i.defaultEncoding,this.toUnicode=i.toUnicode,i.type==="Type3"){for(let f=0;f<256;f++)this.toFontChar.set(f,this.differences.get(f)||i.defaultEncoding[f]);return}if(this.cidEncoding=i.cidEncoding||"",this.vertical=!!i.vertical,this.vertical&&(this.vmetrics=i.vmetrics,this.defaultVMetrics=i.defaultVMetrics),!e||e.isEmpty){e&&E('Font file is empty in "'+t+'" ('+this.loadedName+")"),this.fallbackToSystemFont(i);return}[n,r]=N2(e,i),(n!==this.type||r!==this.subtype)&&de(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${n}/${r}.`);let o;try{switch(n){case"MMType1":de("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":let f=r==="Type1C"||r==="CIDFontType0C"?new Rf(e,i):new M2(t,e,i);_d(i),o=this.convert(t,f,i);break;case"OpenType":case"TrueType":case"CIDFontType2":o=this.checkAndRepair(t,e,i),_d(i),this.isOpenType&&(n="OpenType");break;default:throw new V(`Font ${n} is not supported`)}}catch(f){E(f),this.fallbackToSystemFont(i);return}Ed(i),this.data=o,this.type=n,this.subtype=r,this.fontMatrix=i.fontMatrix,this.widths=i.widths,this.defaultWidth=i.defaultWidth,this.toUnicode=i.toUnicode,this.seacMap=i.seacMap}get renderer(){let t=q2.create(this,!0);return ht(this,"renderer",t)}#i(t){let e=Object.create(null);for(let i of t){let a=this[i];a!==void 0&&(e[i]=a)}return e}exportData(){return{buffer:p2(this.#i(_2)),charProcOperatorList:this.charProcOperatorList,extra:this.fontExtraProperties?this.#i(E2):void 0}}fallbackToSystemFont(t){this.missingFile=!0;let{name:e,type:i}=this,a=Hs(e),s=gl(),n=Oh(),r=!!s[a],l=!!(n[a]&&s[n[a]]);a=s[a]||n[a]||a;let o=A2()[a];o&&(isNaN(this.ascent)&&(this.ascent=o.ascent/an),isNaN(this.descent)&&(this.descent=o.descent/an),isNaN(this.capHeight)&&(this.capHeight=o.capHeight/an)),this.bold=/bold/i.test(a),this.italic=/oblique|italic/i.test(a),this.black=/Black/.test(e);let f=/Narrow/.test(e);if(this.remeasure=(!r||f)&&Object.keys(this.widths).length>0,(r||l)&&i==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){let h=t.cidToGidMap,c=new Map;if(/Trebuchet/i.test(e)?(Hn(c,Zw()),Hn(c,t2())):(Hn(c,qd()),/Arial-?Black/i.test(e)?Hn(c,e2()):/Calibri/i.test(e)&&Hn(c,i2())),h){for(let[u,p]of c)h.has(p)&&c.set(u,h.get(p));if(h.size!==this.toUnicode.size&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof ga)for(let[u,p]of c)!h.has(p)&&this.toUnicode.has(u)&&c.delete(u)}this.toUnicode instanceof ga||this.toUnicode.forEach((u,p)=>{c.set(u,p)}),this.toFontChar=c,this.toUnicode=new zr(new Map(c))}else if(/Symbol/i.test(a)){let h=this.composite&&this.cidEncoding.startsWith("Identity-");this.toFontChar=Pf(h?L2():Xo,Ea(),this.differences)}else if(/Dingbats/i.test(a))this.toFontChar=Pf(Yc,Dw(),this.differences);else if(r||l){let h=Pf(this.defaultEncoding,Ea(),this.differences);i==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof ga)&&this.toUnicode.forEach((c,u)=>{h.set(c,u)}),this.toFontChar=h}else{let h=Ea(),c=new Map;this.toUnicode.forEach((u,p)=>{if(!this.composite){let m=or(this.differences.get(u)||this.defaultEncoding[u],h);m!==-1&&(p=m)}c.set(u,p)}),this.composite&&this.toUnicode instanceof ga&&/Tahoma|Verdana/i.test(e)&&Hn(c,qd()),this.toFontChar=c}Ed(t),this.loadedName=a.split("-",1)[0]}checkAndRepair(t,e,i){let a=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function s(X,et){let L=Object.create(null);L["OS/2"]=null,L.cmap=null,L.head=null,L.hhea=null,L.hmtx=null,L.maxp=null,L.name=null,L.post=null;for(let H=0;H<et;H++){let J=n(X);a.includes(J.tag)&&J.length!==0&&(L[J.tag]=J)}return L}d(s,"readTables");function n(X){let et=X.getString(4),L=X.getInt32()>>>0,H=X.getInt32()>>>0,J=X.getInt32()>>>0,ft=X.pos;X.pos=X.start||0,X.skip(H);let ot=X.getBytes(J);return X.pos=ft,et==="head"&&(ot[8]=ot[9]=ot[10]=ot[11]=0,ot[17]|=32),{tag:et,checksum:L,length:J,offset:H,data:ot,view:et==="CFF "?null:new DataView(ot.buffer,ot.byteOffset,ot.byteLength)}}d(n,"readTableEntry");function r(X){return{version:X.getString(4),numTables:X.getUint16(),searchRange:X.getUint16(),entrySelector:X.getUint16(),rangeShift:X.getUint16()}}d(r,"readOpenTypeHeader");function l(X){let et=X.getString(4);Le(et==="ttcf","Must be a TrueType Collection font.");let L=X.getUint16(),H=X.getUint16(),J=X.getInt32()>>>0,ft=[];for(let at=0;at<J;at++)ft.push(X.getInt32()>>>0);let ot={ttcTag:et,majorVersion:L,minorVersion:H,numFonts:J,offsetTable:ft};switch(L){case 1:return ot;case 2:return ot.dsigTag=X.getInt32()>>>0,ot.dsigLength=X.getInt32()>>>0,ot.dsigOffset=X.getInt32()>>>0,ot}throw new V(`Invalid TrueType Collection majorVersion: ${L}.`)}d(l,"readTrueTypeCollectionHeader");function o(X,et){let{numFonts:L,offsetTable:H}=l(X),J=et.split("+"),ft;for(let ot=0;ot<L;ot++){X.pos=(X.start||0)+H[ot];let at=r(X),At=s(X,at.numTables);if(!At.name)throw new V('TrueType Collection font must contain a "name" table.');let[$t]=g(At.name);for(let ut of $t)for(let bt of ut){let ct=bt?.replaceAll(/\s/g,"");if(ct){if(ct===et)return{header:at,tables:At};if(!(J.length<2))for(let _t of J)ct===_t&&(ft={name:_t,header:at,tables:At})}}}if(ft)return E(`TrueType Collection does not contain "${et}" font, falling back to "${ft.name}" font instead.`),{header:ft.header,tables:ft.tables};throw new V(`TrueType Collection does not contain "${et}" font.`)}d(o,"readTrueTypeCollectionData");function f(X,et,L,H){if(!X)return E("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let J,ft=(et.start||0)+X.offset;et.pos=ft,et.skip(2);let ot=et.getUint16(),at,At=!1;for(let kt=0;kt<ot;kt++){let jt=et.getUint16(),dt=et.getUint16(),xt=et.getInt32()>>>0,Mt=!1;if(at?.platformId!==jt||at?.encodingId!==dt){if(jt===0&&(dt===0||dt===1||dt===3))Mt=!0;else if(jt===1&&dt===0)Mt=!0;else if(jt===3&&dt===1&&(H||!at))Mt=!0,L||(At=!0);else if(L&&jt===3&&dt===0){Mt=!0;let Zt=!0;if(kt<ot-1){let Kt=et.peekBytes(2);jr(Kt[0],Kt[1])<jt&&(Zt=!1)}Zt&&(At=!0)}if(Mt&&(at={platformId:jt,encodingId:dt,offset:xt}),At)break}}if(at&&(et.pos=ft+at.offset),!at||et.peekByte()===-1)return E("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let $t=et.getUint16(),ut=!1,bt=[],ct,_t;if($t===0){for(et.skip(4),ct=0;ct<256;ct++){let kt=et.getByte();kt&&bt.push({charCode:ct,glyphId:kt})}ut=!0}else if($t===2){et.skip(4);let kt=[],jt=0;for(let xt=0;xt<256;xt++){let Mt=et.getUint16()>>3;kt.push(Mt),jt=Math.max(Mt,jt)}let dt=[];for(let xt=0;xt<=jt;xt++)dt.push({firstCode:et.getUint16(),entryCount:et.getUint16(),idDelta:Ri(et.getByte(),et.getByte()),idRangePos:et.pos+et.getUint16()});for(let xt=0;xt<256;xt++)if(kt[xt]===0)et.pos=dt[0].idRangePos+2*xt,_t=et.getUint16(),bt.push({charCode:xt,glyphId:_t});else{let Mt=dt[kt[xt]];for(ct=0;ct<Mt.entryCount;ct++){let Zt=(xt<<8)+ct+Mt.firstCode;et.pos=Mt.idRangePos+2*ct,_t=et.getUint16(),_t!==0&&(_t=(_t+Mt.idDelta)%65536),bt.push({charCode:Zt,glyphId:_t})}}}else if($t===4){et.skip(4);let kt=et.getUint16()>>1;et.skip(6);let jt=[],dt=0;for(;dt<kt;dt++)jt.push({end:et.getUint16()});for(et.skip(2),dt=0;dt<kt;dt++)jt[dt].start=et.getUint16();for(dt=0;dt<kt;dt++)jt[dt].delta=et.getUint16();let xt=0,Mt;for(dt=0;dt<kt;dt++){J=jt[dt];let Kt=et.getUint16();Kt?(Mt=(Kt>>1)-(kt-dt),J.offsetIndex=Mt,xt=Math.max(xt,Mt+J.end-J.start+1)):J.offsetIndex=-1}let Zt=[];for(ct=0;ct<xt;ct++)Zt.push(et.getUint16());for(dt=0;dt<kt;dt++){J=jt[dt],ft=J.start;let Kt=J.end,Et=J.delta;for(Mt=J.offsetIndex,ct=ft;ct<=Kt;ct++)ct!==65535&&(_t=Mt<0?ct:Zt[Mt+ct-ft],_t=_t+Et&65535,bt.push({charCode:ct,glyphId:_t}))}}else if($t===6){et.skip(4);let kt=et.getUint16(),jt=et.getUint16();for(ct=0;ct<jt;ct++){_t=et.getUint16();let dt=kt+ct;bt.push({charCode:dt,glyphId:_t})}}else if($t===12){et.skip(10);let kt=et.getInt32()>>>0;for(ct=0;ct<kt;ct++){let jt=et.getInt32()>>>0,dt=et.getInt32()>>>0,xt=et.getInt32()>>>0;for(let Mt=jt;Mt<=dt;Mt++)bt.push({charCode:Mt,glyphId:xt++})}}else return E("cmap table has unsupported format: "+$t),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let zt=[],Yt=new Set;for(let kt of bt){let{charCode:jt}=kt;Yt.has(jt)||(Yt.add(jt),zt.push(kt))}return{platformId:at.platformId,encodingId:at.encodingId,mappings:zt.sort((kt,jt)=>kt.charCode-jt.charCode),hasShortCmap:ut}}d(f,"readCmapTable");function h(X,et,L,H,J,ft){if(!et){L&&(L.data=null);return}X.pos=(X.start||0)+et.offset,X.pos+=4,X.pos+=2,X.pos+=2,X.pos+=2,X.pos+=2,X.pos+=2,X.pos+=2,X.pos+=2,X.pos+=2,X.pos+=2;let ot=X.getUint16();X.pos+=8,X.pos+=2;let at=X.getUint16();ot!==0&&(jr(H.data[44],H.data[45])&2||(et.data[22]=0,et.data[23]=0)),at>J&&(de(`The numOfMetrics (${at}) should not be greater than the numGlyphs (${J}).`),at=J,et.data[34]=(at&65280)>>8,et.data[35]=at&255);let At=J-at-(L.length-at*4>>1);if(At>0){let $t=new Uint8Array(L.length+At*2);$t.set(L.data),ft&&($t[L.length]=L.data[2],$t[L.length+1]=L.data[3]),L.data=$t}}d(h,"sanitizeMetrics");function c(X,et,L,H,J,ft){let ot={length:0,sizeOfInstructions:0};if(et<0||et>=X.length||L>X.length||L-et<=12)return ot;let at=X.subarray(et,L),At=Ri(at[2],at[3]),$t=Ri(at[4],at[5]),ut=Ri(at[6],at[7]),bt=Ri(at[8],at[9]);At>ut&&(qr(at,2,ut),qr(at,6,At)),$t>bt&&(qr(at,4,bt),qr(at,8,$t));let ct=Ri(at[0],at[1]);if(ct<0)return ct<-1||(H.set(at,J),ot.length=at.length),ot;let _t,zt=10,Yt=0;for(_t=0;_t<ct;_t++)Yt=(at[zt]<<8|at[zt+1])+1,zt+=2;let kt=zt,jt=at[zt]<<8|at[zt+1];ot.sizeOfInstructions=jt,zt+=2+jt;let dt=zt,xt=0;for(_t=0;_t<Yt;_t++){let Zt=at[zt++];Zt&192&&(at[zt-1]=Zt&63);let Kt=2;Zt&2?Kt=1:Zt&16&&(Kt=0);let Et=2;Zt&4?Et=1:Zt&32&&(Et=0);let re=Kt+Et;if(xt+=re,Zt&8){let ue=at[zt++];ue===0&&(at[zt-1]^=8),_t+=ue,xt+=ue*re}}if(xt===0)return ot;let Mt=zt+xt;return Mt>at.length?ot:!ft&&jt>0?(H.set(at.subarray(0,kt),J),H.set([0,0],J+kt),H.set(at.subarray(dt,Mt),J+kt+2),Mt-=jt,at.length-Mt>3&&(Mt=Mt+3&-4),ot.length=Mt,ot):at.length-Mt>3?(Mt=Mt+3&-4,H.set(at.subarray(0,Mt),J),ot.length=Mt,ot):(H.set(at,J),ot.length=at.length,ot)}d(c,"sanitizeGlyph");function u(X,et,L){let{data:H,view:J}=X,ft=J.getInt32(0);ft>>16!=1&&(de("Attempting to fix invalid version in head table: "+ft),J.setInt32(0,65536));let ot=Ri(H[50],H[51]);if(ot<0||ot>1){de("Attempting to fix invalid indexToLocFormat in head table: "+ot);let at=et+1;if(L===at<<1)H[50]=0,H[51]=0;else if(L===at<<2)H[50]=0,H[51]=1;else throw new V("Could not fix indexToLocFormat: "+ot)}}d(u,"sanitizeHead");function p(X,et,L,H,J,ft,ot){let at,At,$t;H?(at=4,At=d(function(re,ue){return re[ue]<<24|re[ue+1]<<16|re[ue+2]<<8|re[ue+3]},"fontItemDecodeLong"),$t=d(function(re,ue,li){re[ue]=li>>>24&255,re[ue+1]=li>>16&255,re[ue+2]=li>>8&255,re[ue+3]=li&255},"fontItemEncodeLong")):(at=2,At=d(function(re,ue){return re[ue]<<9|re[ue+1]<<1},"fontItemDecode"),$t=d(function(re,ue,li){re[ue]=li>>9&255,re[ue+1]=li>>1&255},"fontItemEncode"));let ut=ft?L+1:L,bt=at*(1+ut),ct=new Uint8Array(bt);ct.set(X.data.subarray(0,bt)),X.data=ct;let _t=et.data,zt=_t.length,Yt=new Uint8Array(zt),kt,jt,dt=[];for(kt=0,jt=0;kt<L+1;kt++,jt+=at){let Et=At(ct,jt);Et>zt&&(Et=zt),dt.push({index:kt,offset:Et,endOffset:0})}for(dt.sort((Et,re)=>Et.offset-re.offset),kt=0;kt<L;kt++)dt[kt].endOffset=dt[kt+1].offset;for(dt.sort((Et,re)=>Et.index-re.index),kt=0;kt<L;kt++){let{offset:Et,endOffset:re}=dt[kt];if(Et!==0||re!==0)break;let ue=dt[kt+1].offset;if(ue!==0){dt[kt].endOffset=ue;break}}let xt=dt.at(-2);xt.offset!==0&&xt.endOffset===0&&(xt.endOffset=zt);let Mt=o2(_t,dt,L),Zt=new Uint8Array(L),Kt=0;for($t(ct,0,Kt),kt=0,jt=at;kt<L;kt++,jt+=at){let Et=Mt.has(kt)?{length:0,sizeOfInstructions:0}:c(_t,dt[kt].offset,dt[kt].endOffset,Yt,Kt,J),re=Et.length;re===0&&(Zt[kt]=1),Et.sizeOfInstructions>ot&&(ot=Et.sizeOfInstructions),Kt+=re,$t(ct,jt,Kt)}if(Kt===0){let Et=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(kt=0,jt=at;kt<ut;kt++,jt+=at)$t(ct,jt,Et.length);et.data=Et}else if(ft){let Et=At(ct,at);Yt.length>Et+Kt?et.data=Yt.subarray(0,Et+Kt):(et.data=new Uint8Array(Et+Kt),et.data.set(Yt.subarray(0,Kt))),et.data.set(Yt.subarray(0,Et),Kt),$t(X.data,ct.length-at,Kt+Et)}else et.data=Yt.subarray(0,Kt);return{missingGlyphs:Zt,maxSizeOfInstructions:ot}}d(p,"sanitizeGlyphLocations");function m(X,et,L){let H=(e.start||0)+X.offset;e.pos=H;let J=H+X.length,ft=e.getInt32();e.skip(28);let ot,at=!0,At;switch(ft){case 65536:ot=Mo;break;case 131072:let $t=e.getUint16();if($t!==L){at=!1;break}let ut=[];for(At=0;At<$t;++At){let ct=e.getUint16();if(ct>=32768){at=!1;break}ut.push(ct)}if(!at)break;let bt=[];for(;e.pos<J;){let ct=e.getByte(),_t=e.getString(ct);bt.push(_t)}for(ot=[],At=0;At<$t;++At){let ct=ut[At];ct<258?ot.push(Mo[ct]):ot.push(bt[ct-258])}break;case 196608:break;default:E("Unknown/unsupported post table version "+ft),at=!1,et.defaultEncoding&&(ot=et.defaultEncoding)}return et.glyphNames=ot,at}d(m,"readPostScriptTable");function g(X){let et=(e.start||0)+X.offset;e.pos=et;let L=[[],[]],H=[],J=X.length,ft=et+J;if(e.getUint16()!==0||J<6)return[L,H];let ot=e.getUint16(),at=e.getUint16(),At,$t;for(At=0;At<ot&&e.pos+12<=ft;At++){let ut={platform:e.getUint16(),encoding:e.getUint16(),language:e.getUint16(),name:e.getUint16(),length:e.getUint16(),offset:e.getUint16()};(z2(ut)||Jp(ut))&&H.push(ut)}for(At=0,$t=H.length;At<$t;At++){let ut=H[At];if(ut.length<=0)continue;let bt=et+at+ut.offset;if(bt+ut.length>ft)continue;e.pos=bt;let ct=ut.name;if(ut.encoding){let _t="";for(let zt=0,Yt=ut.length;zt<Yt;zt+=2)_t+=String.fromCharCode(e.getUint16());L[1][ct]=_t}else L[0][ct]=e.getString(ut.length)}return[L,H]}d(g,"readNameTable");let b=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function w(X,et){let L=X.data,H=0,J,ft,ot,at,At,$t=0,ut=0,bt=[],ct=[],_t=[],zt=et.tooComplexToFollowFunctions,Yt=!1,kt=0,jt=0;for(let xt=L.length;H<xt;){let Mt=L[H++];if(Mt===64)if(ft=L[H++],Yt||jt)H+=ft;else for(J=0;J<ft;J++)bt.push(L[H++]);else if(Mt===65)if(ft=L[H++],Yt||jt)H+=ft*2;else for(J=0;J<ft;J++)ot=L[H++],bt.push(Ri(ot,L[H++]));else if((Mt&248)==176)if(ft=Mt-176+1,Yt||jt)H+=ft;else for(J=0;J<ft;J++)bt.push(L[H++]);else if((Mt&248)==184)if(ft=Mt-184+1,Yt||jt)H+=ft*2;else for(J=0;J<ft;J++)ot=L[H++],bt.push(Ri(ot,L[H++]));else if(Mt===43&&!zt){if(!Yt&&!jt){if(at=bt.at(-1),isNaN(at))de("TT: CALL empty stack (or invalid entry).");else if(et.functionsUsed[at]=!0,at in et.functionsStackDeltas){let Zt=bt.length+et.functionsStackDeltas[at];if(Zt<0){E("TT: CALL invalid functions stack delta."),et.hintsValid=!1;return}bt.length=Zt}else if(at in et.functionsDefined&&!_t.includes(at)){if(ct.push({data:L,i:H,stackTop:bt.length-1}),_t.push(at),At=et.functionsDefined[at],!At){E("TT: CALL non-existent function"),et.hintsValid=!1;return}L=At.data,H=At.i}}}else if(Mt===44&&!zt)(Yt||jt)&&(E("TT: nested FDEFs not allowed"),zt=!0),Yt=!0,ut=H,at=bt.pop(),et.functionsDefined[at]={data:L,i:H};else if(Mt===45)if(Yt)Yt=!1,$t=H;else{if(At=ct.pop(),!At){E("TT: ENDF bad stack"),et.hintsValid=!1;return}at=_t.pop(),L=At.data,H=At.i,et.functionsStackDeltas[at]=bt.length-At.stackTop}else if(Mt===137)(Yt||jt)&&(E("TT: nested IDEFs not allowed"),zt=!0),Yt=!0,ut=H;else if(Mt===88)++kt;else if(Mt===27)jt=kt;else if(Mt===89)jt===kt&&(jt=0),--kt;else if(Mt===28&&!Yt&&!jt){let Zt=bt.at(-1);Zt>0&&(H+=Zt-1)}if(!Yt&&!jt){let Zt=0;for(Mt<=142?Zt=b[Mt]:Mt>=192&&Mt<=223?Zt=-1:Mt>=224&&(Zt=-2),Mt>=113&&Mt<=117&&(ft=bt.pop(),isNaN(ft)||(Zt=-ft*2));Zt<0&&bt.length>0;)bt.pop(),Zt++;for(;Zt>0;)bt.push(NaN),Zt--}}et.tooComplexToFollowFunctions=zt;let dt=[L];H>L.length&&dt.push(new Uint8Array(H-L.length)),ut>$t&&(E("TT: complementing a missing function tail"),dt.push(new Uint8Array([34,45]))),y(X,dt)}d(w,"sanitizeTTProgram");function v(X,et){if(!X.tooComplexToFollowFunctions)if(X.functionsDefined.length>et)E("TT: more functions defined than expected"),X.hintsValid=!1;else for(let L=0,H=X.functionsUsed.length;L<H;L++){if(L>et){E("TT: invalid function id: "+L),X.hintsValid=!1;return}if(X.functionsUsed[L]&&!X.functionsDefined[L]){E("TT: undefined function: "+L),X.hintsValid=!1;return}}}d(v,"checkInvalidFunctions");function y(X,et){if(et.length>1){let L=0,H,J;for(H=0,J=et.length;H<J;H++)L+=et[H].length;L=L+3&-4;let ft=new Uint8Array(L),ot=0;for(H=0,J=et.length;H<J;H++)ft.set(et[H],ot),ot+=et[H].length;X.data=ft,X.length=L}}d(y,"foldTTTable");function x(X,et,L,H){let J={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(X&&w(X,J),et&&w(et,J),X&&v(J,H),L&&L.length&1){let ft=new Uint8Array(L.length+1);ft.set(L.data),L.data=ft}return J.hintsValid}d(x,"sanitizeTTPrograms"),e=new Me(new Uint8Array(e.getBytes()));let q,j;if(Yp(e)){let X=o(e,this.name);q=X.header,j=X.tables}else q=r(e),j=s(e,q.numTables);let A=!j["CFF "],S=null;if(A){if(!j.loca)throw new V('Required "loca" table is not found');j.glyf||(E('Required "glyf" table is not found -- trying to recover.'),j.glyf={tag:"glyf",data:new Uint8Array}),this.isOpenType=!1}else{try{S=new Jc(new Me(j["CFF "].data),i,!0).parse()}catch{E("Failed to parse font "+i.loadedName)}if(q.version==="OTTO"&&(!i.composite||i.fontFileN==="FontFile3"&&S?.isCIDFont)||!j.head||!j.hhea||!j.maxp||!j.post)return this.convert(t,new Rf(new Me(j["CFF "].data),i),i);delete j.glyf,delete j.loca,delete j.fpgm,delete j.prep,delete j["cvt "],this.isOpenType=!0}if(!j.maxp)throw new V('Required "maxp" table is not found');let C;if(S)try{S.duplicateFirstGlyph(),j["CFF "].data=new Zc(S).compile(),C=S.charStringCount}catch{E("Failed to compile font "+i.loadedName)}e.pos=(e.start||0)+j.maxp.offset;let M=e.getInt32(),O=C??e.getUint16();if(M===20480&&j.maxp.length!==6&&(j.maxp.data=j.maxp.data.subarray(0,6),j.maxp.length=6),M!==65536&&M!==20480){if(j.maxp.length===6)M=20480;else if(j.maxp.length>=32)M=65536;else throw new V('"maxp" table has a wrong version number');Fd(j.maxp.data,0,M)}let P=jr(j.head.data[50],j.head.data[51]);if(j.loca){let X=P?(O+1)*4:(O+1)*2;if(j.loca.length!==X){E("Incorrect 'loca' table length -- attempting to fix it.");let et=Object.values(j).filter(Boolean).sort((H,J)=>H.offset-J.offset),L=et[et.indexOf(j.loca)+1]||null;if(L&&j.loca.offset+X<L.offset){let H=e.pos;e.pos=e.start||0,e.skip(j.loca.offset),j.loca.data=e.getBytes(X),j.loca.length=X,e.pos=H}}}if(i.scaleFactors?.length===O&&A){let{scaleFactors:X}=i,et=new a2({glyfTable:j.glyf.data,isGlyphLocationsLong:P,locaTable:j.loca.data,numGlyphs:O});et.scale(X);let{glyf:L,loca:H,isLocationLong:J}=et.write();j.glyf.data=L,j.loca.data=H,J!==!!P&&(j.head.data[50]=0,P=j.head.data[51]=+!!J);let ft=j.hmtx.data;for(let ot=0;ot<O;ot++){let at=4*ot,At=Math.round(X[ot]*jr(ft[at],ft[at+1]));ft[at]=At>>8&255,ft[at+1]=At&255;let $t=Math.round(X[ot]*Ri(ft[at+2],ft[at+3]));qr(ft,at+2,$t)}}let $=O+1,tt=!0;$>65535&&(tt=!1,$=O,E("Not enough space in glyfs to duplicate first glyph."));let K=0,z=0;if(M>=65536&&j.maxp.length>=32)e.pos+=8,e.getUint16()>2&&(j.maxp.data[14]=0,j.maxp.data[15]=2),e.pos+=4,K=e.getUint16(),e.pos+=4,z=e.getUint16();else if(A&&M===20480){let X=new Uint8Array(32);Fd(X,0,65536),X[4]=O>>8&255,X[5]=O&255,X.fill(255,6,14),X[15]=2,X[28]=255,X[29]=255,X[31]=16,j.maxp.data=X,j.maxp.length=32,M=65536}j.maxp.data[4]=$>>8,j.maxp.data[5]=$&255;let B=x(j.fpgm,j.prep,j["cvt "],K);if(B||(delete j.fpgm,delete j.prep,delete j["cvt "]),h(e,j.hhea,j.hmtx,j.head,$,tt),!j.head)throw new V('Required "head" table is not found');u(j.head,O,A?j.loca.length:0);let G=null;if(A){let X=p(j.loca,j.glyf,O,P,B,tt,z);G=X.missingGlyphs,M>=65536&&j.maxp.length>=32&&(j.maxp.data[26]=X.maxSizeOfInstructions>>8,j.maxp.data[27]=X.maxSizeOfInstructions&255)}if(!j.hhea)throw new V('Required "hhea" table is not found');j.hhea.data[10]===0&&j.hhea.data[11]===0&&(j.hhea.data[10]=255,j.hhea.data[11]=255);let Q={unitsPerEm:jr(j.head.data[18],j.head.data[19]),yMax:Ri(j.head.data[42],j.head.data[43]),yMin:Ri(j.head.data[38],j.head.data[39]),ascent:Ri(j.hhea.data[4],j.hhea.data[5]),descent:Ri(j.hhea.data[6],j.hhea.data[7]),lineGap:Ri(j.hhea.data[8],j.hhea.data[9])};this.ascent=Q.ascent/Q.unitsPerEm,this.descent=Q.descent/Q.unitsPerEm,this.lineGap=Q.lineGap/Q.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,j.post&&m(j.post,i,O),j.post={tag:"post",data:Bd(i)};let yt=new Map;function It(X){return!G?.[X]}if(d(It,"hasGlyph"),i.composite){let{cidToGidMap:X,cMap:et}=i,L=!X?.size;et.forEach((H,J)=>{if(typeof J=="string"&&(J=Bf(H,J,!0)),J>65535)throw new V("Max size of CID is 65,535");let ft=L?J:X.get(J)??-1;ft>=0&&ft<O&&It(ft)&&yt.set(H,ft)})}else{let X=f(j.cmap,e,this.isSymbolicFont,i.hasEncoding),et=X.platformId,L=X.encodingId,H=X.mappings,J=[],ft=!1;if(i.hasEncoding&&(i.baseEncodingName==="MacRomanEncoding"||i.baseEncodingName==="WinAnsiEncoding")&&(J=ml(i.baseEncodingName)),i.hasEncoding&&!this.isSymbolicFont&&(et===3&&L===1||et===1&&L===0)){let ot=Ea();for(let at=0;at<256;at++){let At;if(At=this.differences.has(at)?this.differences.get(at):J.length&&J[at]!==""?J[at]:cs[at],!At)continue;let $t=Rp(At,ot),ut;if(et===3&&L===1?ut=ot[$t]:et===1&&L===0&&(ut=Xc.indexOf($t)),ut===void 0){if(!i.glyphNames&&i.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof ga)){let bt=this.toUnicode.get(at);bt&&(ut=bt.codePointAt(0))}if(ut===void 0)continue}for(let bt of H)if(bt.charCode===ut){yt.set(at,bt.glyphId);break}}}else if(et===0){for(let ot of H)yt.set(ot.charCode,ot.glyphId);ft=!0}else if(et===3&&L===0)for(let ot of H){let at=ot.charCode;at>=61440&&at<=61695&&(at&=255),yt.set(at,ot.glyphId)}else for(let ot of H)yt.set(ot.charCode,ot.glyphId);if(i.glyphNames&&(J.length||this.differences.size))for(let ot=0;ot<256;++ot){if(!ft&&yt.has(ot))continue;let at=this.differences.get(ot)||J[ot];if(!at)continue;let At=i.glyphNames.indexOf(at);At>0&&It(At)&&yt.set(ot,At)}!i.isInternalFont&&!yt.has(0)&&It(0)&&yt.set(0,0)}yt.size||yt.set(0,0);let Lt=tt?$-1:0;if(!i.cssFontInfo){let X=Rd(yt,It,Lt,this.toUnicode);this.toFontChar=X.toFontChar,j.cmap={tag:"cmap",data:Dd(X.charCodeToGlyphId,X.toUnicodeExtraMap,$)},(!j["OS/2"]||!G2(j["OS/2"],e))&&(j["OS/2"]={tag:"OS/2",data:Pd(i,X.charCodeToGlyphId,Q)})}if(!j.name)j.name={tag:"name",data:Of(this.name)};else{let[X,et]=g(j.name);j.name.data=Of(t,X),this.psName=X[0][6]||null,i.composite||F2(i,this.isSymbolicFont,et)}let Pt=new Gh(q.version);for(let X in j)Pt.addTable(X,j[X].data);return Pt.toArray()}convert(t,e,i){i.fixedPitch=!1,i.builtInEncoding&&R2(i,i.builtInEncoding);let a=e instanceof Rf?e.numGlyphs-1:1,s=e.getGlyphMapping(i),n=null,r=s,l=null;i.cssFontInfo||(n=Rd(s,e.hasGlyphId.bind(e),a,this.toUnicode),this.toFontChar=n.toFontChar,r=n.charCodeToGlyphId,l=n.toUnicodeExtraMap);let{numGlyphs:o,seacs:f}=e;function h(m,g){let b=null;for(let[w,v]of m)g===v&&(b??=[]).push(w);return b}d(h,"getCharCodes");function c(m,g){for(let[b,w]of m)if(g===w)return b;return n.charCodeToGlyphId.set(n.nextAvailableFontCharCode,g),n.nextAvailableFontCharCode++}if(d(c,"createCharCode"),n&&f?.size){let m=i.fontMatrix||pn,g=e.getCharset(),b=new Map;for(let[w,v]of f){let y=cs[v[2]],x=cs[v[3]],q=g.indexOf(y),j=g.indexOf(x);if(q<0||j<0)continue;let A={x:v[0]*m[0]+v[1]*m[2]+m[4],y:v[0]*m[1]+v[1]*m[3]+m[5]},S=h(s,w);if(S)for(let C of S){let{charCodeToGlyphId:M}=n,O=c(M,q),P=c(M,j);b.set(C,{baseFontCharCode:O,accentFontCharCode:P,accentOffset:A})}}i.seacMap=b}let u=i.fontMatrix?1/Math.max(...i.fontMatrix.slice(0,4).map(Math.abs)):1e3,p=new Gh("OTTO");return p.addTable("CFF ",e.data),p.addTable("OS/2",Pd(i,r)),p.addTable("cmap",Dd(r,l,o)),p.addTable("head",d(function(){let g=[0,0,0,0,158,11,126,39],b=new ei({exactLength:54});return b.setArray([0,1,0,0]),b.setArray([0,0,16,0]),b.skip(4),b.setArray([95,15,60,245]),b.skip(2),b.setSafeInt16(u),b.setArray(g),b.setArray(g),b.skip(2),b.setSafeInt16(i.descent),b.setArray([15,255]),b.setSafeInt16(i.ascent),b.setInt16(i.italicAngle?2:0),b.setArray([0,17]),b.skip(6),b.data},"fontTableHead")()),p.addTable("hhea",d(function(){let g=new ei({exactLength:36});return g.setArray([0,1,0,0]),g.setSafeInt16(i.ascent),g.setSafeInt16(i.descent),g.skip(2),g.setArray([255,255]),g.skip(6),g.setSafeInt16(i.capHeight),g.setSafeInt16(Math.tan(i.italicAngle)*i.xHeight),g.skip(12),g.setInt16(o),g.data},"fontTableHhea")()),p.addTable("hmtx",d(function(){let g=e.charstrings,b=e.cff?.widths??null,w=new ei({exactLength:o*4});w.skip(4);for(let v=1;v<o;v++){let y=0;g?y=g[v-1].width||0:b&&(y=Math.ceil(b[v]||0)),w.setInt16(y),w.skip(2)}return w.data},"fontTableHmtx")()),p.addTable("maxp",d(function(){let g=new ei({exactLength:6});return g.setArray([0,0,80,0]),g.setInt16(o),g.data},"fontTableMaxp")()),p.addTable("name",Of(t)),p.addTable("post",Bd(i)),p.toArray()}get _spaceWidth(){let t=["space","minus","one","i","I"],e;for(let i of t){if(i in this.widths){e=this.widths[i];break}let a=Ea()[i],s=0;if(this.composite&&this.cMap.contains(a)&&(s=this.cMap.lookup(a),typeof s=="string"&&(s=Bf(a,s))),!s&&this.toUnicode&&(s=this.toUnicode.charCodeOf(a)),s<=0&&(s=a),e=this.widths[s],e)break}return ht(this,"_spaceWidth",e||this.defaultWidth)}_charToGlyph(t,e=!1){let i=this.#e.get(t);if(i?.isSpace===e)return i;let a,s,n,r=t;this.cMap?.contains(t)&&(r=this.cMap.lookup(t),typeof r=="string"&&(r=Bf(t,r))),s=this.widths[r],typeof s!="number"&&(s=this.defaultWidth);let l=this.vmetrics?.[r];if(!l&&this.defaultVMetrics){let[p,,m]=this.defaultVMetrics;l=[p,s*.5,m]}let o=this.toUnicode.get(t)||t;typeof o=="number"&&(o=String.fromCharCode(o));let f=this.toFontChar.has(t);if(a=this.toFontChar.get(t)||t,this.missingFile){let p=this.differences.get(t)||this.defaultEncoding[t];(p===".notdef"||p==="")&&this.type==="Type1"&&(a=32,p===""&&(s||=this._spaceWidth,this.toUnicode.has(t)||(o=String.fromCharCode(a)))),a=Bw(a)}this.isType3Font&&(n=a);let h=null,c=this.seacMap?.get(t);c&&(f=!0,a=c.baseFontCharCode,h={fontChar:String.fromCodePoint(c.accentFontCharCode),offset:c.accentOffset});let u="";if(typeof a=="number"&&(a<=1114111?u=String.fromCodePoint(a):E(`charToGlyph - invalid fontCharCode: ${a}`)),this.missingFile&&this.vertical&&u.length===1){let p=zw()[u.charCodeAt(0)];p&&(u=o=String.fromCharCode(p))}return i=new D2(t,u,o,h,s,l,n,e,f),this.#e.set(t,i),i}charsToGlyphs(t){let e=this.#t.get(t);if(e)return e;if(e=[],this.cMap){let i=Object.create(null),a=t.length,s=0;for(;s<a;){this.cMap.readCharCode(t,s,i);let{charcode:n,length:r}=i;s+=r;let l=this._charToGlyph(n,r===1&&t.charCodeAt(s-1)===32);e.push(l)}}else for(let i=0,a=t.length;i<a;++i){let s=t.charCodeAt(i),n=this._charToGlyph(s,s===32);e.push(n)}return this.#t.set(t,e),e}getCharPositions(t){let e=[];if(this.cMap){let i=Object.create(null),a=0;for(;a<t.length;){this.cMap.readCharCode(t,a,i);let s=i.length;e.push([a,a+s]),a+=s}}else for(let i=0,a=t.length;i<a;++i)e.push([i,i+1]);return e}get glyphCacheValues(){return this.#e.values()}encodeString(t){let e=[],i=[],a=d(()=>e.length%2==1,"hasCurrentBufErrors"),s=this.toUnicode instanceof ga?n=>this.toUnicode.charCodeOf(n):n=>this.toUnicode.charCodeOf(String.fromCodePoint(n));for(let n=0,r=t.length;n<r;n++){let l=t.codePointAt(n);if(l>65535&&n++,this.toUnicode){let o=s(l);if(o!==-1){a()&&(e.push(i.join("")),i.length=0);let f=this.cMap?this.cMap.getCharCodeLength(o):1;for(let h=f-1;h>=0;h--)i.push(String.fromCharCode(o>>8*h&255));continue}}a()||(e.push(i.join("")),i.length=0),i.push(String.fromCodePoint(l))}return e.push(i.join("")),e}},Hd=class{static{d(this,"ErrorFont")}constructor(t){this.error=t,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(){return{error:this.error}}},W2=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],V2={lineHeight:1.2207,lineGap:.2207},K2=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],X2={lineHeight:1.2207,lineGap:.2207},Y2=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],J2={lineHeight:1.2207,lineGap:.2207},Q2=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],Z2={lineHeight:1.2207,lineGap:.2207},t9=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],e9={lineHeight:1.2,lineGap:.2},i9=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],a9={lineHeight:1.35,lineGap:.2},s9=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],n9={lineHeight:1.35,lineGap:.2},r9=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],l9={lineHeight:1.2,lineGap:.2},xr=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Ar=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Sr=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Cr=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ir=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Tr=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Mr=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],_r=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],o9=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],f9={lineHeight:1.2,lineGap:.2},h9=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],c9={lineHeight:1.2,lineGap:.2},u9=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],d9={lineHeight:1.2,lineGap:.2},p9=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],m9={lineHeight:1.2,lineGap:.2},g9=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],b9={lineHeight:1.33008,lineGap:0},w9=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],y9={lineHeight:1.33008,lineGap:0},k9=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],v9={lineHeight:1.33008,lineGap:0},j9=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],q9={lineHeight:1.33008,lineGap:0},x9=Re(function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:p9,baseWidths:Mr,baseMapping:_r,metrics:m9},t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:o9,baseWidths:xr,baseMapping:Ar,metrics:f9},t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:u9,baseWidths:Ir,baseMapping:Tr,metrics:d9},t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:h9,baseWidths:Sr,baseMapping:Cr,metrics:c9},t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:Mr,baseMapping:_r},t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:xr,baseMapping:Ar},t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:Ir,baseMapping:Tr},t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:Sr,baseMapping:Cr},t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:Q2,baseWidths:Mr,baseMapping:_r,metrics:Z2},t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:W2,baseWidths:xr,baseMapping:Ar,metrics:V2},t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:Y2,baseWidths:Ir,baseMapping:Tr,metrics:J2},t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:K2,baseWidths:Sr,baseMapping:Cr,metrics:X2},t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:j9,baseWidths:Mr,baseMapping:_r,metrics:q9},t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:g9,baseWidths:xr,baseMapping:Ar,metrics:b9},t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:k9,baseWidths:Ir,baseMapping:Tr,metrics:v9},t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:w9,baseWidths:Sr,baseMapping:Cr,metrics:y9},t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:r9,baseWidths:Mr,baseMapping:_r,metrics:l9},t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:t9,baseWidths:xr,baseMapping:Ar,metrics:e9},t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:s9,baseWidths:Ir,baseMapping:Tr,metrics:n9},t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i9,baseWidths:Sr,baseMapping:Cr,metrics:a9}});d(eu,"getXfaFontName");d(A9,"getXfaFontWidths");d(Qp,"getXfaFontDict");I={number:0,lbrace:1,rbrace:2,true:3,false:4,add:5,sub:6,mul:7,div:8,idiv:9,mod:10,exp:11,eq:12,ne:13,gt:14,ge:15,lt:16,le:17,and:18,or:19,xor:20,bitshift:21,abs:22,neg:23,ceiling:24,floor:25,round:26,truncate:27,not:28,sqrt:29,sin:30,cos:31,ln:32,log:33,atan:34,cvi:35,cvr:36,dup:37,exch:38,pop:39,copy:40,index:41,roll:42,if:43,ifelse:44,eof:45,min:46,max:47},Xs=class{static{d(this,"Token")}constructor(t,e=null){this.id=t,this.value=e}},S9=class sn{static{d(this,"lexer_Lexer")}static#t=null;static#e=null;static#i(){let e=Object.create(null),i=Object.create(null);for(let[a,s]of Object.entries(I)){if(a==="number")continue;let n=s>=I.true&&s<=I.ifelse,r=new Xs(s,n?a:null);e[a]=r,n&&(i[a]=r)}this.#t=e,this.#e=i}constructor(e){sn.#t||sn.#i(),this.data=e,this.pos=0,this.len=e.length,this._numberPattern=/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iy,this._identifierPattern=/[a-z]+/y}_skipComment(){let e=this.data.indexOf(`
|
|
25
|
+
`,this.pos),i=this.data.indexOf("\r",this.pos),a=Math.min(e<0?this.len:e,i<0?this.len:i);this.pos=Math.min(a+1,this.len)}_getNumber(){this._numberPattern.lastIndex=this.pos;let e=this._numberPattern.exec(this.data);if(!e)return new Xs(I.number,0);let i=parseFloat(e[0]);return Number.isFinite(i)?(this.pos=this._numberPattern.lastIndex,new Xs(I.number,i)):new Xs(I.number,0)}_getOperator(){this._identifierPattern.lastIndex=this.pos;let e=this._identifierPattern.exec(this.data);if(!e)return new Xs(I.number,0);this.pos=this._identifierPattern.lastIndex;let i=e[0];return sn.#e[i]??new Xs(I.number,0)}next(){for(;this.pos<this.len;){let e=this.data.charCodeAt(this.pos++);switch(e){case 0:case 9:case 10:case 12:case 13:case 32:break;case 37:this._skipComment();break;case 123:return sn.#t.lbrace;case 125:return sn.#t.rbrace;case 43:case 45:return this.pos--,this._getNumber();case 46:return this.pos--,this._getNumber();default:return e>=48&&e<=57?(this.pos--,this._getNumber()):e>=97&&e<=122?(this.pos--,this._getOperator()):new Xs(I.number,0)}}return sn.#t.eof}},Ve={numeric:0,boolean:1,unknown:2},Rt={program:0,block:1,number:2,operator:3,if:4,ifelse:5,arg:6,const:7,unary:8,binary:9,ternary:10},Pa=class{static{d(this,"PsNode")}constructor(t){this.type=t}},C9=class extends Pa{static{d(this,"PsProgram")}constructor(t){super(Rt.program),this.body=t}},I9=class extends Pa{static{d(this,"PsBlock")}constructor(t){super(Rt.block),this.instructions=t}},T9=class extends Pa{static{d(this,"PsNumber")}constructor(t){super(Rt.number),this.value=t}},M9=class extends Pa{static{d(this,"PsOperator")}constructor(t){super(Rt.operator),this.op=t}},_9=class extends Pa{static{d(this,"PsIf")}constructor(t){super(Rt.if),this.then=t}},E9=class extends Pa{static{d(this,"PsIfElse")}constructor(t,e){super(Rt.ifelse),this.then=t,this.otherwise=e}},F9=class extends Pa{static{d(this,"PsArgNode")}constructor(t){super(Rt.arg),this.index=t,this.valueType=Ve.numeric}},Gi=class extends Pa{static{d(this,"PsConstNode")}constructor(t){super(Rt.const),this.value=t,this.valueType=typeof t=="boolean"?Ve.boolean:Ve.numeric}},R9=class extends Pa{static{d(this,"PsUnaryNode")}constructor(t,e,i=Ve.unknown){super(Rt.unary),this.op=t,this.operand=e,this.valueType=i}},Nd=class extends Pa{static{d(this,"PsBinaryNode")}constructor(t,e,i,a=Ve.unknown){super(Rt.binary),this.op=t,this.first=e,this.second=i,this.valueType=a}},D9=class extends Pa{static{d(this,"PsTernaryNode")}constructor(t,e,i,a=Ve.unknown){super(Rt.ternary),this.cond=t,this.then=e,this.otherwise=i,this.valueType=a}},P9=class Zp{static{d(this,"ast_Parser")}constructor(e){this.lexer=e,this._token=null}static _isRegularOperator(e){return e>=I.true&&e<I.if}_advance(){this._token=this.lexer.next()}_expect(e){if(this._token.id!==e)throw new V(`PostScript function: expected token id ${e}, got ${this._token.id}.`);let i=this._token;return this._advance(),i}parse(){this._advance(),this._expect(I.lbrace);let e=this._parseBlock();return this._expect(I.rbrace),this._token.id!==I.eof&&E("PostScript function: unexpected content after closing brace."),new C9(e)}_parseBlock(){let e=[];for(;;){let i=this._token;switch(i.id){case I.number:e.push(new T9(i.value)),this._advance();break;case I.lbrace:{this._advance();let a=this._parseBlock();if(this._expect(I.rbrace),this._token.id===I.if)this._advance(),e.push(new _9(a));else if(this._token.id===I.lbrace){this._advance();let s=this._parseBlock();this._expect(I.rbrace),this._expect(I.ifelse),e.push(new E9(a,s))}else throw new V("PostScript function: a procedure block must be followed by 'if' or '{\u2026} ifelse'.");break}case I.rbrace:case I.eof:return new I9(e);case I.if:case I.ifelse:throw new V(`PostScript function: unexpected '${i.value}' operator.`);default:if(Zp._isRegularOperator(i.id)){e.push(new M9(i.id)),this._advance();break}throw new V(`PostScript function: unexpected token id ${i.id}.`)}}}};d(t0,"parsePostScriptFunction");d(Ci,"_nodesEqual");d(B9,"_evalBinaryConst");d(O9,"_evalUnaryConst");d(H9,"_unaryValueType");d(N9,"_binaryValueType");e0=class xs{static{d(this,"PSStackToTree")}static#t=null;static#e=null;static#i=null;static#a=null;static#s(){this.#t=new Set([I.add,I.sub,I.mul,I.div,I.idiv,I.mod,I.exp,I.atan,I.eq,I.ne,I.gt,I.ge,I.lt,I.le,I.and,I.or,I.xor,I.bitshift]),this.#e=new Set([I.abs,I.neg,I.ceiling,I.floor,I.round,I.truncate,I.sqrt,I.sin,I.cos,I.ln,I.log,I.cvi,I.cvr,I.not]),this.#i=new Set([I.abs,I.ceiling,I.cvi,I.cvr,I.floor,I.round,I.truncate]),this.#a=new Map([[I.eq,I.ne],[I.ne,I.eq],[I.lt,I.ge],[I.le,I.gt],[I.gt,I.le],[I.ge,I.lt]])}evaluate(e,i){if(xs.#t||xs.#s(),this._failed=!1,i>100)return null;let a=[];for(let s=0;s<i;s++)a.push(new F9(s));return this._evalBlock(e.body,a),this._failed?null:(xs.#n(a),a)}static#n(e){let i=new Map,a=d(s=>{if(!s||s.type===Rt.arg||s.type===Rt.const)return;let n=i.get(s)??0;if(i.set(s,n+1),!(n>0))switch(s.type){case Rt.unary:a(s.operand);break;case Rt.binary:a(s.first),a(s.second);break;case Rt.ternary:a(s.cond),a(s.then),a(s.otherwise)}},"visit");for(let s of e)a(s);for(let[s,n]of i)n>1&&(s.shared=!0,s.sharedCount=n)}_evalBlock(e,i){this._evalBlockFrom(e.instructions,0,i)}_evalBlockFrom(e,i,a){for(let s=i;s<e.length&&!this._failed;s++){let n=e[s];switch(n.type){case Rt.number:a.push(new Gi(n.value)),a.length>100&&(this._failed=!0);break;case Rt.operator:this._evalOp(n.op,a);break;case Rt.if:{if(a.length<1){this._failed=!0;break}let r=a.pop(),l=a.slice();if(this._evalBlock(n.then,a),this._failed)break;if(a.length===l.length)for(let o=0;o<a.length;o++)a[o]!==l[o]&&(a[o]=this._makeTernary(r,a[o],l[o]));else if(a.length>l.length){if(r.type===Rt.const){r.value||(a.length=0,a.push(...l));break}let o=a.slice();if(this._evalBlockFrom(e,s+1,o),this._failed)break;let f=l;if(this._evalBlockFrom(e,s+1,f),this._failed)break;if(o.length!==f.length){let h=new Gi(0);for(;o.length<f.length;)o.push(h);for(;f.length<o.length;)f.push(h)}a.length=0;for(let h=0;h<o.length;h++)a.push(this._makeTernary(r,o[h],f[h]));return}else this._failed=!0;break}case Rt.ifelse:{if(a.length<1){this._failed=!0;break}let r=a.pop(),l=a.slice(),o=l.slice();if(this._evalBlock(n.then,o),this._failed)break;let f=l.slice();if(this._evalBlock(n.otherwise,f),this._failed)break;if(o.length!==f.length){let h=new Gi(0);for(;o.length<f.length;)o.push(h);for(;f.length<o.length;)f.push(h)}a.length=0;for(let h=0;h<o.length;h++)a.push(this._makeTernary(r,o[h],f[h]));break}}}}_evalOp(e,i){if(xs.#t.has(e)){if(i.length<2){this._failed=!0;return}let a=i.pop(),s=i.pop();i.push(this._makeBinary(e,a,s))}else if(xs.#e.has(e)){if(i.length<1){this._failed=!0;return}i.push(this._makeUnary(e,i.pop()))}else switch(e){case I.true:i.push(new Gi(!0)),i.length>100&&(this._failed=!0);break;case I.false:i.push(new Gi(!1)),i.length>100&&(this._failed=!0);break;case I.dup:if(i.length<1){this._failed=!0;break}i.push(i.at(-1)),i.length>100&&(this._failed=!0);break;case I.exch:{if(i.length<2){this._failed=!0;break}let a=i.pop(),s=i.pop();i.push(a,s);break}case I.pop:if(i.length<1){this._failed=!0;break}i.pop();break;case I.copy:{if(i.length<1){this._failed=!0;break}let a=i.pop();if(a.type===Rt.const){let s=a.value|0;s===0||(s<0||s>i.length?this._failed=!0:(i.push(...i.slice(-s)),i.length>100&&(this._failed=!0)))}else this._failed=!0;break}case I.index:{if(i.length<1){this._failed=!0;break}let a=i.pop();if(a.type===Rt.const){let s=a.value|0;s<0||s>=i.length?this._failed=!0:i.push(i.at(-s-1))}else this._failed=!0;break}case I.roll:{if(i.length<2){this._failed=!0;break}let a=i.pop(),s=i.pop();if(s.type===Rt.const&&a.type===Rt.const){let n=s.value|0;if(n!==0)if(n<0||n>i.length)this._failed=!0;else{let r=((a.value|0)%n+n)%n;if(r>0){let l=i.splice(-n,n);i.push(...l.slice(n-r),...l.slice(0,n-r))}}}else this._failed=!0;break}default:this._failed=!0}}_makeBinary(e,i,a){if(i.type===Rt.const&&a.type===Rt.const){let s=B9(e,a.value,i.value);if(s!==void 0)return new Gi(s)}if(Ci(i,a))switch(e){case I.sub:return new Gi(0);case I.xor:return new Gi(i.valueType!==Ve.boolean&&0);case I.and:case I.or:return i;case I.min:case I.max:return i;case I.eq:case I.ge:case I.le:return new Gi(!0);case I.ne:case I.gt:case I.lt:return new Gi(!1)}if(i.type===Rt.const){let s=i.value;switch(e){case I.add:if(s===0)return a;break;case I.sub:if(s===0)return a;break;case I.mul:if(s===1)return a;if(s===0)return i;if(s===-1)return this._makeUnary(I.neg,a);break;case I.div:if(s!==0)return this._makeBinary(I.mul,new Gi(1/s),a);break;case I.idiv:if(s===1)return a;break;case I.exp:if(s===1)return a;if(s===-1)return this._makeBinary(I.div,a,new Gi(1));if(s===.5)return this._makeUnary(I.sqrt,a);if(s===.25){let n=this._makeUnary(I.sqrt,a);return this._makeUnary(I.sqrt,n)}if(s===2)return this._makeBinary(I.mul,a,a);if(s===3)return this._makeBinary(I.mul,this._makeBinary(I.mul,a,a),a);if(s===4){let n=this._makeBinary(I.mul,a,a);return this._makeBinary(I.mul,n,n)}if(s===0)return new Gi(1);break;case I.and:if(s===!0)return a;if(s===!1)return i;break;case I.or:if(s===!1)return a;if(s===!0)return i;break;case I.min:if(a.type===Rt.binary&&a.op===I.max&&a.first.type===Rt.const&&a.first.value>=s)return i;break;case I.max:if(a.type===Rt.binary&&a.op===I.min&&a.first.type===Rt.const&&a.first.value<=s)return i}}if(a.type===Rt.const){let s=a.value;switch(e){case I.add:if(s===0)return i;break;case I.sub:if(s===0)return this._makeUnary(I.neg,i);break;case I.mul:if(s===1)return i;if(s===0)return a;if(s===-1)return this._makeUnary(I.neg,i);break;case I.and:if(s===!0)return i;if(s===!1)return a;break;case I.or:if(s===!1)return i;if(s===!0)return a}}return new Nd(e,i,a,N9(e,i.valueType,a.valueType))}_makeUnary(e,i){if(i.type===Rt.const){let a=O9(e,i.value);if(a!==void 0)return new Gi(a)}if(e===I.not&&i.type===Rt.binary){let a=xs.#a.get(i.op);if(a!==void 0)return new Nd(a,i.first,i.second,Ve.boolean)}if(e===I.neg&&i.type===Rt.binary&&i.op===I.sub)return this._makeBinary(I.sub,i.second,i.first);if(i.type===Rt.unary){if(e===I.neg&&i.op===I.neg||e===I.not&&i.op===I.not)return i.operand;if(e===I.abs&&i.op===I.neg)return this._makeUnary(I.abs,i.operand);if(xs.#i.has(e)&&e===i.op)return i}return new R9(e,i,H9(e,i.valueType))}_makeTernary(e,i,a){if(e.type===Rt.const)return e.value?i:a;if(Ci(i,a))return i;if(i.type===Rt.const&&a.type===Rt.const){if(i.value===!0&&a.value===!1)return e;if(i.value===!1&&a.value===!0)return this._makeUnary(I.not,e)}if(e.type===Rt.binary){let{op:s,first:n,second:r}=e;if(s===I.gt||s===I.ge){if(Ci(i,n)&&Ci(a,r))return this._makeBinary(I.min,n,r);if(Ci(i,r)&&Ci(a,n))return this._makeBinary(I.max,n,r)}else if(s===I.lt||s===I.le){if(Ci(i,n)&&Ci(a,r))return this._makeBinary(I.max,n,r);if(Ci(i,r)&&Ci(a,n))return this._makeBinary(I.min,n,r)}}return new D9(e,i,a,i.valueType===a.valueType?i.valueType:Ve.unknown)}},St={ARG:0,CONST:1,STORE:2,IF:3,JUMP:4,ABS:5,NEG:6,CEIL:7,FLOOR:8,ROUND:9,TRUNC:10,NOT_B:11,NOT_N:12,SQRT:13,SIN:14,COS:15,LN:16,LOG10:17,CVI:18,SHIFT:19,ADD:20,SUB:21,MUL:22,DIV:23,IDIV:24,MOD:25,POW:26,EQ:27,NE:28,GT:29,GE:30,LT:31,LE:32,AND:33,OR:34,XOR:35,ATAN:36,MIN:37,MAX:38,TEE_TMP:39,LOAD_TMP:40},Fo=Math.PI/180,i0=180/Math.PI,Ld=class{static{d(this,"PsJsCompiler")}static#t=new Float64Array(64);static#e=new Float64Array(64);constructor(t,e){this.nIn=t.length>>1,this.nOut=e.length>>1,this.range=e,this.ir=[],this._tmpMap=new Map,this._nextTmp=0}_compileNode(t){if(t.shared){let e=this._tmpMap.get(t);if(e!==void 0)return this.ir.push(St.LOAD_TMP,e),!0;if(!this._compileNodeImpl(t))return!1;let i=this._nextTmp++;return this._tmpMap.set(t,i),this.ir.push(St.TEE_TMP,i),!0}return this._compileNodeImpl(t)}_compileNodeImpl(t){switch(t.type){case Rt.arg:return this.ir.push(St.ARG,t.index),!0;case Rt.const:{let e=t.value;return this.ir.push(St.CONST,typeof e=="boolean"?Number(e):e),!0}case Rt.unary:return this._compileUnary(t);case Rt.binary:return this._compileBinary(t);case Rt.ternary:return this._compileTernary(t);default:return!1}}_compileUnary(t){let{op:e,operand:i,valueType:a}=t;if(e===I.cvr)return this._compileNode(i);if(!this._compileNode(i))return!1;switch(e){case I.abs:this.ir.push(St.ABS);break;case I.neg:this.ir.push(St.NEG);break;case I.ceiling:this.ir.push(St.CEIL);break;case I.floor:this.ir.push(St.FLOOR);break;case I.round:this.ir.push(St.ROUND);break;case I.truncate:this.ir.push(St.TRUNC);break;case I.sqrt:this.ir.push(St.SQRT);break;case I.sin:this.ir.push(St.SIN);break;case I.cos:this.ir.push(St.COS);break;case I.ln:this.ir.push(St.LN);break;case I.log:this.ir.push(St.LOG10);break;case I.cvi:this.ir.push(St.CVI);break;case I.not:if(a===Ve.boolean)this.ir.push(St.NOT_B);else if(a===Ve.numeric)this.ir.push(St.NOT_N);else return!1;break;default:return!1}return!0}_compileBinary(t){let{op:e,first:i,second:a}=t;if(e===I.bitshift)return i.type!==Rt.const||!Number.isInteger(i.value)||!this._compileNode(a)?!1:(this.ir.push(St.SHIFT,i.value),!0);if(!this._compileNode(a)||!this._compileNode(i))return!1;switch(e){case I.add:this.ir.push(St.ADD);break;case I.sub:this.ir.push(St.SUB);break;case I.mul:this.ir.push(St.MUL);break;case I.div:this.ir.push(St.DIV);break;case I.idiv:this.ir.push(St.IDIV);break;case I.mod:this.ir.push(St.MOD);break;case I.exp:this.ir.push(St.POW);break;case I.eq:this.ir.push(St.EQ);break;case I.ne:this.ir.push(St.NE);break;case I.gt:this.ir.push(St.GT);break;case I.ge:this.ir.push(St.GE);break;case I.lt:this.ir.push(St.LT);break;case I.le:this.ir.push(St.LE);break;case I.and:this.ir.push(St.AND);break;case I.or:this.ir.push(St.OR);break;case I.xor:this.ir.push(St.XOR);break;case I.atan:this.ir.push(St.ATAN);break;case I.min:this.ir.push(St.MIN);break;case I.max:this.ir.push(St.MAX);break;default:return!1}return!0}_compileTernary(t){if(!this._compileNode(t.cond))return!1;this.ir.push(St.IF,0);let e=this.ir.length-1;if(!this._compileNode(t.then))return!1;this.ir.push(St.JUMP,0);let i=this.ir.length-1;return this.ir[e]=this.ir.length,this._compileNode(t.otherwise)?(this.ir[i]=this.ir.length,!0):!1}compile(t){let e=new e0().evaluate(t,this.nIn);if(!e||e.length<this.nOut)return null;for(let i=0;i<this.nOut;i++){if(!this._compileNode(e[i]))return null;let a=this.range[i*2],s=this.range[i*2+1];this.ir.push(St.STORE,i,a,s)}return new Float64Array(this.ir)}static execute(t,e,i,a,s){let n=0,r=0,l=t.length,o=this.#t,f=this.#e;for(;n<l;)switch(t[n++]|0){case St.ARG:o[r++]=e[i+(t[n++]|0)];break;case St.CONST:o[r++]=t[n++];break;case St.STORE:{let h=t[n++]|0,c=t[n++],u=t[n++];a[s+h]=Fe(o[--r],c,u);break}case St.IF:{let h=t[n++];o[--r]===0&&(n=h);break}case St.JUMP:n=t[n];break;case St.ABS:o[r-1]=Math.abs(o[r-1]);break;case St.NEG:o[r-1]=-o[r-1];break;case St.CEIL:o[r-1]=Math.ceil(o[r-1]);break;case St.FLOOR:o[r-1]=Math.floor(o[r-1]);break;case St.ROUND:o[r-1]=Math.floor(o[r-1]+.5);break;case St.TRUNC:o[r-1]=Math.trunc(o[r-1]);break;case St.NOT_B:o[r-1]=+(o[r-1]===0);break;case St.NOT_N:o[r-1]=~(o[r-1]|0);break;case St.SQRT:o[r-1]=Math.sqrt(o[r-1]);break;case St.SIN:o[r-1]=Math.sin(o[r-1]%360*Fo);break;case St.COS:o[r-1]=Math.cos(o[r-1]%360*Fo);break;case St.LN:o[r-1]=Math.log(o[r-1]);break;case St.LOG10:o[r-1]=Math.log10(o[r-1]);break;case St.CVI:o[r-1]=Math.trunc(o[r-1])|0;break;case St.SHIFT:{let h=t[n++],c=o[r-1]|0;h>0?o[r-1]=c<<h:h<0?o[r-1]=c>>-h:o[r-1]=c;break}case St.ADD:{let h=o[--r];o[r-1]+=h;break}case St.SUB:{let h=o[--r];o[r-1]-=h;break}case St.MUL:{let h=o[--r];o[r-1]*=h;break}case St.DIV:{let h=o[--r];o[r-1]=h===0?0:o[r-1]/h;break}case St.IDIV:{let h=o[--r];o[r-1]=h===0?0:Math.trunc(o[r-1]/h);break}case St.MOD:{let h=o[--r];o[r-1]=h===0?0:o[r-1]%h;break}case St.POW:{let h=o[--r];o[r-1]**=h;break}case St.EQ:{let h=o[--r];o[r-1]=+(o[r-1]===h);break}case St.NE:{let h=o[--r];o[r-1]=o[r-1]===h?0:1;break}case St.GT:{let h=o[--r];o[r-1]=+(o[r-1]>h);break}case St.GE:{let h=o[--r];o[r-1]=+(o[r-1]>=h);break}case St.LT:{let h=o[--r];o[r-1]=+(o[r-1]<h);break}case St.LE:{let h=o[--r];o[r-1]=+(o[r-1]<=h);break}case St.AND:{let h=o[--r]|0;o[r-1]=(o[r-1]|0)&h;break}case St.OR:{let h=o[--r]|0;o[r-1]=o[r-1]|0|h;break}case St.XOR:{let h=o[--r]|0;o[r-1]=(o[r-1]|0)^h;break}case St.ATAN:{let h=o[--r],c=Math.atan2(o[r-1],h)*i0;o[r-1]=c<0?c+360:c;break}case St.MIN:{let h=o[--r];o[r-1]=Math.min(o[r-1],h);break}case St.MAX:{let h=o[--r];o[r-1]=Math.max(o[r-1],h);break}case St.TEE_TMP:f[t[n++]|0]=o[r-1];break;case St.LOAD_TMP:o[r++]=f[t[n++]|0]}}},L9=class{static{d(this,"PSStackBasedInterpreter")}static#t=new Float64Array(100);static#e=0;static#i(t){this.#e<this.#t.length&&(this.#t[this.#e++]=t)}static#a(t){let e=this.#t;switch(t){case I.true:this.#i(1);break;case I.false:this.#i(0);break;case I.abs:e[this.#e-1]=Math.abs(e[this.#e-1]);break;case I.neg:e[this.#e-1]=-e[this.#e-1];break;case I.ceiling:e[this.#e-1]=Math.ceil(e[this.#e-1]);break;case I.floor:e[this.#e-1]=Math.floor(e[this.#e-1]);break;case I.round:e[this.#e-1]=Math.floor(e[this.#e-1]+.5);break;case I.truncate:e[this.#e-1]=Math.trunc(e[this.#e-1]);break;case I.sqrt:e[this.#e-1]=Math.sqrt(e[this.#e-1]);break;case I.sin:e[this.#e-1]=Math.sin(e[this.#e-1]%360*Fo);break;case I.cos:e[this.#e-1]=Math.cos(e[this.#e-1]%360*Fo);break;case I.ln:e[this.#e-1]=Math.log(e[this.#e-1]);break;case I.log:e[this.#e-1]=Math.log10(e[this.#e-1]);break;case I.cvi:e[this.#e-1]=Math.trunc(e[this.#e-1])|0;break;case I.cvr:break;case I.not:{let i=e[this.#e-1];e[this.#e-1]=i===0||i===1?1-i:~(i|0);break}case I.add:{let i=e[--this.#e];e[this.#e-1]+=i;break}case I.sub:{let i=e[--this.#e];e[this.#e-1]-=i;break}case I.mul:{let i=e[--this.#e];e[this.#e-1]*=i;break}case I.div:{let i=e[--this.#e];e[this.#e-1]=i===0?0:e[this.#e-1]/i;break}case I.idiv:{let i=e[--this.#e];e[this.#e-1]=i===0?0:Math.trunc(e[this.#e-1]/i);break}case I.mod:{let i=e[--this.#e];e[this.#e-1]=i===0?0:e[this.#e-1]%i;break}case I.exp:{let i=e[--this.#e];e[this.#e-1]**=i;break}case I.atan:{let i=e[--this.#e],a=Math.atan2(e[this.#e-1],i)*i0;e[this.#e-1]=a<0?a+360:a;break}case I.eq:{let i=e[--this.#e];e[this.#e-1]=+(e[this.#e-1]===i);break}case I.ne:{let i=e[--this.#e];e[this.#e-1]=e[this.#e-1]===i?0:1;break}case I.gt:{let i=e[--this.#e];e[this.#e-1]=+(e[this.#e-1]>i);break}case I.ge:{let i=e[--this.#e];e[this.#e-1]=+(e[this.#e-1]>=i);break}case I.lt:{let i=e[--this.#e];e[this.#e-1]=+(e[this.#e-1]<i);break}case I.le:{let i=e[--this.#e];e[this.#e-1]=+(e[this.#e-1]<=i);break}case I.and:{let i=e[--this.#e]|0;e[this.#e-1]=(e[this.#e-1]|0)&i;break}case I.or:{let i=e[--this.#e]|0;e[this.#e-1]=e[this.#e-1]|0|i;break}case I.xor:{let i=e[--this.#e]|0;e[this.#e-1]=(e[this.#e-1]|0)^i;break}case I.bitshift:{let i=e[--this.#e]|0,a=e[this.#e-1]|0;e[this.#e-1]=i>0?a<<i:a>>-i;break}case I.min:{let i=e[--this.#e];e[this.#e-1]=Math.min(e[this.#e-1],i);break}case I.max:{let i=e[--this.#e];e[this.#e-1]=Math.max(e[this.#e-1],i);break}case I.dup:this.#i(e[this.#e-1]);break;case I.exch:{let i=e[--this.#e],a=e[--this.#e];this.#i(i),this.#i(a);break}case I.pop:this.#e--;break;case I.copy:{let i=Math.trunc(e[--this.#e]),a=this.#e-i;for(let s=0;s<i;s++)this.#i(e[a+s]);break}case I.index:{let i=Math.trunc(e[--this.#e]);this.#i(e[this.#e-1-i]);break}case I.roll:{let i=Math.trunc(e[--this.#e]),a=Math.trunc(e[--this.#e]);if(a>1&&i!==0){let s=(i%a+a)%a;if(s!==0){let n=this.#e-a,r=e.slice(n,this.#e);for(let l=0;l<a;l++)e[n+l]=r[(l-s+a)%a]}}break}}}static#s(t){for(let e of t)switch(e.type){case Rt.number:this.#i(e.value);break;case Rt.operator:this.#a(e.op);break;case Rt.if:this.#t[--this.#e]!==0&&this.#s(e.then.instructions);break;case Rt.ifelse:this.#t[--this.#e]===0?this.#s(e.otherwise.instructions):this.#s(e.then.instructions)}}static build(t,e,i){let a=e.length>>1,s=i.length>>1,{instructions:n}=t.body;return(r,l,o,f)=>{this.#e=0;for(let c=0;c<a;c++)this.#i(r[l+c]);this.#s(n);let h=this.#e-s;for(let c=0;c<s;c++){let u=h+c>=0?this.#t[h+c]:0;o[f+c]=Fe(u,i[c*2],i[c*2+1])}}}};d(z9,"buildPostScriptJsFunction");wt={if:4,else:5,end:11,select:27,call:16,local_get:32,local_set:33,local_tee:34,i32_const:65,i32_eqz:69,i32_and:113,i32_or:114,i32_xor:115,i32_shl:116,i32_shr_s:117,i32_trunc_f64_s:170,f64_const:68,f64_eq:97,f64_ne:98,f64_lt:99,f64_gt:100,f64_le:101,f64_ge:102,f64_abs:153,f64_neg:154,f64_ceil:155,f64_floor:156,f64_trunc:157,f64_nearest:158,f64_sqrt:159,f64_add:160,f64_sub:161,f64_mul:162,f64_div:163,f64_min:164,f64_max:165,f64_convert_i32_s:183,f64_store:57},Nn={type:1,import:2,function:3,memory:5,export:7,code:10};d(cn,"unsignedLEB128");d(Wl,"encodeASCIIString");d(Ln,"section");d(qa,"vec");Wn=[["sin","Math","sin",[124],[124]],["cos","Math","cos",[124],[124]],["atan2","Math","atan2",[124,124],[124]],["log","Math","log",[124],[124]],["log10","Math","log10",[124],[124]],["pow","Math","pow",[124,124],[124]]],U9={Math:Object.fromEntries(Wn.map(([t])=>[t,Math[t]]))},G9=class oi{static{d(this,"PsWasmCompiler")}static#t=!1;static#e=null;static#i=null;static#a=0;static#s=0;static#n=null;static#r=null;static#l=null;static#o=null;static#f=null;static#u=null;static#h=null;static#d=null;static#p(){this.#e=new Map([[I.eq,wt.f64_eq],[I.ne,wt.f64_ne],[I.lt,wt.f64_lt],[I.le,wt.f64_le],[I.gt,wt.f64_gt],[I.ge,wt.f64_ge]]),this.#i=Object.create(null);for(let i=0;i<Wn.length;i++)this.#i[Wn[i][0]]=i;this.#a=Math.PI/180,this.#s=180/Math.PI,this.#n=Wn.map(([,,,i,a])=>[96,...qa(i),...qa(a)]),this.#r=new Uint8Array(Ln(Nn.import,qa(Wn.map(([,i,a],s)=>[...Wl(i),...Wl(a),0,...cn(s+1)])))),this.#l=new Uint8Array(Ln(Nn.function,qa([[0]]))),this.#o=new Uint8Array(Ln(Nn.memory,qa([[0,1]]))),this.#f=new Uint8Array(Ln(Nn.export,qa([[...Wl("fn"),0,...cn(Wn.length)],[...Wl("mem"),2,0]]))),this.#u=new Uint8Array([0,97,115,109,1,0,0,0]);let e=new ArrayBuffer(8);this.#h=new DataView(e),this.#d=new Uint8Array(e),this.#t=!0}constructor(e,i){oi.#t||oi.#p(),this._nIn=e.length>>1,this._nOut=i.length>>1,this._range=i,this._code=[],this._nextLocal=this._nIn,this._freeLocals=[],this._sharedLocals=new Map}_allocLocal(){return this._freeLocals.pop()??this._nextLocal++}_releaseLocal(e){this._freeLocals.push(e)}_emitULEB128(e){do{let i=e&127;e>>>=7,e!==0&&(i|=128),this._code.push(i)}while(e!==0)}_emitSLEB128(e){for(;;){let i=e&127;if(e>>=7,e===0&&!(i&64)||e===-1&&i&64){this._code.push(i);return}this._code.push(i|128)}}_emitF64Const(e){this._code.push(wt.f64_const),oi.#h.setFloat64(0,e,!0);for(let i=0;i<8;i++)this._code.push(oi.#d[i])}_emitLocalGet(e){this._code.push(wt.local_get),this._emitULEB128(e)}_emitLocalSet(e){this._code.push(wt.local_set),this._emitULEB128(e)}_emitLocalTee(e){this._code.push(wt.local_tee),this._emitULEB128(e)}_compileNode(e){if(e.shared){let i=this._sharedLocals.get(e);if(i!==void 0)return this._emitLocalGet(i.local),--i.remaining===0&&this._releaseLocal(i.local),!0;if(!this._compileNodeImpl(e))return!1;let a=this._allocLocal();return this._sharedLocals.set(e,{local:a,remaining:e.sharedCount-1}),this._emitLocalTee(a),!0}return this._compileNodeImpl(e)}_compileNodeImpl(e){switch(e.type){case Rt.arg:return this._emitLocalGet(e.index),!0;case Rt.const:{let i=e.value;return typeof i=="boolean"&&(i=+!!i),this._emitF64Const(i),!0}case Rt.unary:return this._compileUnaryNode(e);case Rt.binary:return this._compileBinaryNode(e);case Rt.ternary:return this._compileTernaryNode(e);default:return!1}}_compileSinCosNode(e){let i=this._allocLocal();try{if(!this._compileNode(e.operand))return!1;let a=this._code;return this._emitLocalSet(i),this._emitLocalGet(i),this._emitLocalGet(i),this._emitF64Const(360),a.push(wt.f64_div,wt.f64_trunc),this._emitF64Const(360),a.push(wt.f64_mul,wt.f64_sub),this._emitF64Const(oi.#a),a.push(wt.f64_mul,wt.call),this._emitULEB128(oi.#i[e.op===I.sin?"sin":"cos"]),!0}finally{this._releaseLocal(i)}}_compileUnaryNode(e){let i=this._code;if(e.op===I.sin||e.op===I.cos)return this._compileSinCosNode(e);if(e.op===I.not)return e.valueType===Ve.boolean?this._compileNodeAsBoolI32(e.operand)?(i.push(wt.i32_eqz,wt.f64_convert_i32_s),!0):!1:e.valueType===Ve.numeric&&this._compileNode(e.operand)?(i.push(wt.i32_trunc_f64_s,wt.i32_const,127,wt.i32_xor,wt.f64_convert_i32_s),!0):!1;if(!this._compileNode(e.operand))return!1;switch(e.op){case I.abs:i.push(wt.f64_abs);break;case I.neg:i.push(wt.f64_neg);break;case I.sqrt:i.push(wt.f64_sqrt);break;case I.floor:i.push(wt.f64_floor);break;case I.ceiling:i.push(wt.f64_ceil);break;case I.round:this._emitF64Const(.5),i.push(wt.f64_add,wt.f64_floor);break;case I.truncate:i.push(wt.f64_trunc);break;case I.cvi:i.push(wt.i32_trunc_f64_s,wt.f64_convert_i32_s);break;case I.cvr:break;case I.ln:i.push(wt.call),this._emitULEB128(oi.#i.log);break;case I.log:i.push(wt.call),this._emitULEB128(oi.#i.log10);break;default:return!1}return!0}_compileSafeDivNode(e,i){let a=this._allocLocal();try{if(!this._compileNode(i)||!this._compileNode(e))return!1;let s=this._code;return this._emitLocalTee(a),s.push(wt.f64_div),this._emitF64Const(0),this._emitLocalGet(a),this._emitF64Const(0),s.push(wt.f64_ne,wt.select),!0}finally{this._releaseLocal(a)}}_compileSafeIdivNode(e,i){let a=this._allocLocal();try{if(!this._compileNode(i)||!this._compileNode(e))return!1;let s=this._code;return this._emitLocalTee(a),s.push(wt.f64_div,wt.f64_trunc),this._emitF64Const(0),this._emitLocalGet(a),this._emitF64Const(0),s.push(wt.f64_ne,wt.select),!0}finally{this._releaseLocal(a)}}_compileBitshiftNode(e,i){if(e.type!==Rt.const||!Number.isInteger(e.value)||!this._compileNode(i))return!1;let a=this._code;a.push(wt.i32_trunc_f64_s);let s=e.value;return s>0?(a.push(wt.i32_const),this._emitSLEB128(s),a.push(wt.i32_shl)):s<0&&(a.push(wt.i32_const),this._emitSLEB128(-s),a.push(wt.i32_shr_s)),a.push(wt.f64_convert_i32_s),!0}_compileModNode(e,i){if(e.type===Rt.const&&e.value===0)return this._compileNode(i)?(this._code.push(wt.drop),this._emitF64Const(0),!0):!1;let a=this._allocLocal();try{if(!this._compileNode(i))return!1;this._emitLocalTee(a);let s=this._code;if(e.type===Rt.const)this._emitLocalGet(a),this._emitF64Const(e.value),s.push(wt.f64_div,wt.f64_trunc),this._emitF64Const(e.value),s.push(wt.f64_mul,wt.f64_sub);else{let n=this._allocLocal();try{if(!this._compileNode(e))return!1;this._emitLocalSet(n),this._emitLocalGet(a),this._emitLocalGet(n),s.push(wt.f64_div,wt.f64_trunc),this._emitLocalGet(n),s.push(wt.f64_mul,wt.f64_sub),this._emitF64Const(0),this._emitLocalGet(n),this._emitF64Const(0),s.push(wt.f64_ne,wt.select)}finally{this._releaseLocal(n)}}return!0}finally{this._releaseLocal(a)}}_compileAtanNode(e,i){let a=this._allocLocal();try{if(!this._compileNode(i)||!this._compileNode(e))return!1;let s=this._code;return s.push(wt.call),this._emitULEB128(oi.#i.atan2),this._emitF64Const(oi.#s),s.push(wt.f64_mul),this._emitLocalTee(a),this._emitF64Const(0),s.push(wt.f64_lt,wt.if,124),this._emitLocalGet(a),this._emitF64Const(360),s.push(wt.f64_add,wt.else),this._emitLocalGet(a),s.push(wt.end),!0}finally{this._releaseLocal(a)}}_compileBitwiseNode(e,i,a){if(!this._compileBitwiseOperandI32(a)||!this._compileBitwiseOperandI32(i))return!1;let s=this._code;switch(e){case I.and:s.push(wt.i32_and);break;case I.or:s.push(wt.i32_or);break;case I.xor:s.push(wt.i32_xor);break;default:return!1}return s.push(wt.f64_convert_i32_s),!0}_compileBitwiseOperandI32(e){return e.valueType===Ve.boolean?this._compileNodeAsBoolI32(e):this._compileNode(e)?(this._code.push(wt.i32_trunc_f64_s),!0):!1}_compileStandardBinaryNode(e,i,a){if(i===a&&i.type!==Rt.arg&&i.type!==Rt.const&&!i.shared){let n=this._allocLocal();try{if(!this._compileNode(i))return!1;this._emitLocalTee(n),this._emitLocalGet(n)}finally{this._releaseLocal(n)}}else if(!this._compileNode(a)||!this._compileNode(i))return!1;let s=this._code;switch(e){case I.add:s.push(wt.f64_add);break;case I.sub:s.push(wt.f64_sub);break;case I.mul:s.push(wt.f64_mul);break;case I.exp:s.push(wt.call),this._emitULEB128(oi.#i.pow);break;case I.eq:s.push(wt.f64_eq,wt.f64_convert_i32_s);break;case I.ne:s.push(wt.f64_ne,wt.f64_convert_i32_s);break;case I.lt:s.push(wt.f64_lt,wt.f64_convert_i32_s);break;case I.le:s.push(wt.f64_le,wt.f64_convert_i32_s);break;case I.gt:s.push(wt.f64_gt,wt.f64_convert_i32_s);break;case I.ge:s.push(wt.f64_ge,wt.f64_convert_i32_s);break;case I.min:s.push(wt.f64_min);break;case I.max:s.push(wt.f64_max);break;default:return!1}return!0}_compileBinaryNode(e){let{op:i,first:a,second:s}=e;return i===I.bitshift?this._compileBitshiftNode(a,s):i===I.div?this._compileSafeDivNode(a,s):i===I.idiv?this._compileSafeIdivNode(a,s):i===I.mod?this._compileModNode(a,s):i===I.atan?this._compileAtanNode(a,s):i===I.and||i===I.or||i===I.xor?this._compileBitwiseNode(i,a,s):this._compileStandardBinaryNode(i,a,s)}_compileNodeAsBoolI32(e){if(e.type===Rt.binary){let i=oi.#e.get(e.op);if(i!==void 0)return!this._compileNode(e.second)||!this._compileNode(e.first)?!1:(this._code.push(i),!0);if(e.valueType===Ve.boolean&&(e.op===I.and||e.op===I.or||e.op===I.xor)){if(!this._compileNodeAsBoolI32(e.second)||!this._compileNodeAsBoolI32(e.first))return!1;switch(e.op){case I.and:this._code.push(wt.i32_and);break;case I.or:this._code.push(wt.i32_or);break;case I.xor:this._code.push(wt.i32_xor)}return!0}}return e.type===Rt.unary&&e.op===I.not&&e.valueType===Ve.boolean?this._compileNodeAsBoolI32(e.operand)?(this._code.push(wt.i32_eqz),!0):!1:this._compileNode(e)?(e.valueType===Ve.boolean?this._code.push(wt.i32_trunc_f64_s):(this._emitF64Const(0),this._code.push(wt.f64_ne)),!0):!1}_compileTernaryNode(e){return!this._compileNodeAsBoolI32(e.cond)||(this._code.push(wt.if,124),!this._compileNode(e.then))||(this._code.push(wt.else),!this._compileNode(e.otherwise))?!1:(this._code.push(wt.end),!0)}compile(e){let i=new e0().evaluate(e,this._nIn);if(!i||i.length<this._nOut)return null;let a=this._code;for(let q=0;q<this._nOut;q++){let j=this._range[q*2],A=this._range[q*2+1];if(a.push(wt.i32_const),this._emitSLEB128(q*8),!this._compileNode(i[q]))return null;this._emitF64Const(A),a.push(wt.f64_min),this._emitF64Const(j),a.push(wt.f64_max,wt.f64_store,3,0)}a.push(wt.end);let s=this._nIn,n=this._nextLocal-s,r=Array(s).fill(124),l=[],o=[96,...qa(r),...qa(l)],f=new Uint8Array(Ln(Nn.type,qa([o,...oi.#n]))),h=qa(n>0?[[...cn(n),124]]:[]),c=h.length+a.length,u=new Uint8Array(Ln(Nn.code,qa([[...cn(c),...h,...a]]))),p=oi.#u,m=oi.#r,g=oi.#l,b=oi.#o,w=oi.#f,v=p.length+f.length+m.length+g.length+b.length+w.length+u.length,y=new Uint8Array(v),x=0;return y.set(p,x),x+=p.length,y.set(f,x),x+=f.length,y.set(m,x),x+=m.length,y.set(g,x),x+=g.length,y.set(b,x),x+=b.length,y.set(w,x),x+=w.length,y.set(u,x),y}};d($9,"compilePostScriptToWasm");d(W9,"_makeWrapper");d(V9,"buildPostScriptWasmFunction");Cn=class{static{d(this,"BaseLocalCache")}constructor(t){this._onlyRefs=t?.onlyRefs===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new ii}getByName(t){this._onlyRefs&&te("Should not call `getByName` method.");let e=this._nameRefMap.get(t);return e?this.getByRef(e):this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,e,i){te("Abstract method `set` called.")}},zd=class extends Cn{static{d(this,"LocalImageCache")}set(t,e=null,i){if(typeof t!="string")throw Error('LocalImageCache.set - expected "name" argument.');if(e){if(this._imageCache.has(e))return;this._nameRefMap.set(t,e),this._imageCache.put(e,i)}else this._imageMap.has(t)||this._imageMap.set(t,i)}},a0=class extends Cn{static{d(this,"LocalColorSpaceCache")}set(t=null,e=null,i){if(typeof t!="string"&&!e)throw Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(e){if(this._imageCache.has(e))return;t!==null&&this._nameRefMap.set(t,e),this._imageCache.put(e,i)}else this._imageMap.has(t)||this._imageMap.set(t,i)}},K9=class extends Cn{static{d(this,"LocalFunctionCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,i){if(!e)throw Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,i)}},Ud=class extends Cn{static{d(this,"LocalGStateCache")}set(t,e=null,i){if(typeof t!="string")throw Error('LocalGStateCache.set - expected "name" argument.');if(e){if(this._imageCache.has(e))return;this._nameRefMap.set(t,e),this._imageCache.put(e,i)}else this._imageMap.has(t)||this._imageMap.set(t,i)}},X9=class extends Cn{static{d(this,"LocalTilingPatternCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,i){if(!e)throw Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,i)}},Y9=class extends Cn{static{d(this,"RegionalImageCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,i){if(!e)throw Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,i)}},J9=class extends Cn{static{d(this,"GlobalColorSpaceCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,i){if(!e)throw Error('GlobalColorSpaceCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,i)}clear(){this._imageCache.clear()}},Q9=class Ur{static{d(this,"GlobalImageCache")}static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5e7;#t=new we;constructor(){this._refCache=new ii,this._imageCache=new ii}get#e(){let e=0;for(let i of this._imageCache)e+=i.byteSize;return e}get#i(){return this._imageCache.size>=Ur.MIN_IMAGES_TO_CACHE&&this.#e>=Ur.MAX_BYTE_SIZE}shouldCache(e,i){let a=this._refCache.getOrPutComputed(e,ip);return a.add(i),!(a.size<Ur.NUM_PAGES_THRESHOLD||!this._imageCache.has(e)&&this.#i)}addDecodeFailed(e){this.#t.put(e)}hasDecodeFailed(e){return this.#t.has(e)}addByteSize(e,i){let a=this._imageCache.get(e);a&&(a.byteSize||=i)}getData(e,i){let a=this._refCache.get(e);if(!a||a.size<Ur.NUM_PAGES_THRESHOLD)return null;let s=this._imageCache.get(e);return s?(a.add(i),s):null}setData(e,i){if(!this._refCache.has(e))throw Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');this._imageCache.has(e)||(this.#i?E("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,i))}clear(e=!1){e||(this.#t.clear(),this._refCache.clear()),this._imageCache.clear()}},Vl={SAMPLED:0,EXPONENTIAL_INTERPOLATION:2,STITCHING:3,POSTSCRIPT_CALCULATOR:4},iu=class s0{static{d(this,"PDFFunctionFactory")}static#t=!0;static setOptions({useWasm:e}){this.#t=e}constructor({xref:e}){this.xref=e}get useWasm(){return s0.#t}create(e,i=!1){let a,s;if(e instanceof it?a=e:e instanceof _?a=e.objId:e instanceof Bt&&(a=e.dict?.objId),a){let r=this._localFunctionCache.getByRef(a);if(r)return r}let n=this.xref.fetchIfRef(e);if(Array.isArray(n)){if(!i)throw Error('PDFFunctionFactory.create - expected "parseArray" argument.');s=Gd.parseArray(this,n)}else s=Gd.parse(this,n);return a&&this._localFunctionCache.set(null,a,s),s}get _localFunctionCache(){return ht(this,"_localFunctionCache",new K9)}};d(Zi,"toNumberArray");d(zn,"setArity");d(Hf,"interpolate");Gd=class n0{static{d(this,"PDFFunction")}static MAX_MULTILINEAR_INPUTS=8;static getSampleArray(e,i,a,s){let n=i;for(let u of e)n*=u;let r=Array(n),l=0,o=0,f=1/(2**a-1),h=s.getBytes((n*a+7)/8),c=0;for(let u=0;u<n;u++){for(;l<a;)o<<=8,o|=h[c++],l+=8;l-=a,r[u]=(o>>l)*f,o&=(1<<l)-1}return r}static parse(e,i){let a=i.dict||i,s=a.get("FunctionType");switch(s){case Vl.SAMPLED:return this.constructSampled(e,i,a);case Vl.EXPONENTIAL_INTERPOLATION:return this.constructInterpolated(e,a);case Vl.STITCHING:return this.constructStitched(e,a);case Vl.POSTSCRIPT_CALCULATOR:return this.constructPostScript(e,i,a)}throw new V(`Unknown function type: ${s}`)}static parseArray(e,i){let{xref:a}=e,s=[];for(let r of i)s.push(this.parse(e,a.fetchIfRef(r)));if(s.length===1)return s[0];let n=s[0]?.numInputs??0;if(s.some(r=>r.numInputs!==n||r.numOutputs!==1))throw new V("Invalid array of functions.");return zn(function(r,l,o,f){for(let h=0,c=s.length;h<c;h++)s[h](r,l,o,f+h)},n,s.length)}static constructSampled(e,i,a){let s=Zi(a.getArray("Domain")),n=Zi(a.getArray("Range"));if(!s||!n)throw new V("No domain or range");let r=s.length/2,l=n.length/2,o=Zi(a.getArray("Size")),f=a.get("BitsPerSample"),h=a.get("Order")||1;h!==1&&de("No support for cubic spline interpolation: "+h);let c=Zi(a.getArray("Encode"));if(!c){c=[];for(let A=0;A<r;++A)c.push(0,o[A]-1)}let u=Zi(a.getArray("Decode"))||n,p=this.getSampleArray(o,l,f,i),m=r>n0.MAX_MULTILINEAR_INPUTS,g=new Float64Array(r),b=new Float64Array(r),w=new Float64Array(r),v=m?new Uint32Array(r):null,y=m?r+1:1<<r,x=new Uint32Array(y),q=new Float64Array(y);function j(A,S,C,M){let O=0,P=l,$=0;for(let K=0;K<r;++K){let z=s[2*K],B=s[2*K+1],G=Hf(Fe(A[S+K],z,B),z,B,c[2*K],c[2*K+1]),Q=o[K];G=Fe(G,0,Q-1);let yt=Math.floor(G);O+=yt*P,G!==yt&&(g[$]=P,b[$]=yt+1-G,w[$]=G-yt,$++),P*=Q}x[0]=O,q[0]=1;let tt=1;if(m){if($>0){for(let K=0;K<$;K++){let z=w[K],B=K;for(;B>0&&w[v[B-1]]<z;B--)v[B]=v[B-1];v[B]=K}q[0]=b[v[0]];for(let K=0;K<$;K++){let z=v[K];x[K+1]=x[K]+g[z],q[K+1]=K+1<$?w[z]-w[v[K+1]]:w[z]}tt=$+1}}else for(let K=0;K<$;K++){let z=g[K],B=b[K],G=w[K];for(let Q=0;Q<tt;Q++)x[tt+Q]=x[Q]+z,q[tt+Q]=q[Q]*G,q[Q]*=B;tt<<=1}for(let K=0;K<l;++K){let z=0;for(let B=0;B<tt;B++)z+=p[x[B]+K]*q[B];z=Hf(z,0,1,u[2*K],u[2*K+1]),C[M+K]=Fe(z,n[2*K],n[2*K+1])}}return d(j,"constructSampledFn"),zn(j,r,l)}static constructInterpolated(e,i){let a=Zi(i.getArray("Domain")),s=Zi(i.getArray("C0"))||[0],n=Zi(i.getArray("C1"))||[1],r=i.get("N"),l=[];for(let h=0,c=s.length;h<c;++h)l.push(n[h]-s[h]);let o=l.length;function f(h,c,u,p){let m=r===1?h[c]:h[c]**r;for(let g=0;g<o;++g)u[p+g]=s[g]+m*l[g]}return d(f,"constructInterpolatedFn"),zn(f,a?a.length/2:1,o)}static constructStitched(e,i){let a=Zi(i.getArray("Domain"));if(!a)throw new V("No domain");let s=a.length/2;if(s!==1)throw new V("Bad domain for stitched function");let{xref:n}=e,r=[];for(let u of i.get("Functions"))r.push(this.parse(e,n.fetchIfRef(u)));let l=r[0]?.numOutputs??0;if(r.length===0||r.some(u=>u.numInputs!==1||u.numOutputs!==l))throw new V("Incompatible sub-functions for stitched function");let o=Zi(i.getArray("Bounds")),f=Zi(i.getArray("Encode")),h=new Float32Array(1);function c(u,p,m,g){let b=Fe(u[p],a[0],a[1]),w=o.length,v=0;for(;v<w&&!(b<o[v]);++v);let y=v>0?o[v-1]:a[0],x=v<w?o[v]:a[1];h[0]=Hf(b,y,x,f[2*v],f[2*v+1]),r[v](h,0,m,g)}return d(c,"constructStitchedFn"),zn(c,s,l)}static constructPostScript(e,i,a){let s=Zi(a.getArray("Domain")),n=Zi(a.getArray("Range"));if(!s)throw new V("No domain.");if(!n)throw new V("No range.");let r=i.getString(),l=s.length/2,o=n.length/2;try{if(e.useWasm){let f=V9(r,s,n);if(f)return zn(f,l,o)}}catch{}return E("Failed to compile PostScript function to wasm, falling back to JS"),zn(z9(r,s,n),l,o)}};d(Nf,"isPDFFunction");d($d,"textSinkWrapper");d(r0,"_parseVisibilityExpression");d(l0,"parseMarkedContentProps");Z9="BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L".split("."),t5="AN.AN.AN.AN.AN.AN.ON.ON.AL.ET.ET.AL.CS.AL.ON.ON.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AL.AL..AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AN.AN.AN.AN.AN.AN.AN.AN.AN.AN.ET.AN.AN.AL.AL.AL.NSM.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AN.ON.NSM.NSM.NSM.NSM.NSM.NSM.AL.AL.NSM.NSM.ON.NSM.NSM.NSM.NSM.AL.AL.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.AL.AL.AL.AL.AL.AL".split(".");d(Wd,"isOdd");d(e5,"isEven");d(i5,"findUnequal");d(Vd,"reverseValues");d(Lf,"createBidiText");ks=[],pe=[];d(au,"bidi");Si={style:"normal",weight:"normal"},Kl={style:"normal",weight:"500"},ns={style:"normal",weight:"bold"},on={style:"italic",weight:"normal"},fn={style:"italic",weight:"bold"},el=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","PT Astra Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:Si,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:ns,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:on,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:fn,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:Si,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:ns,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:on,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:fn,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:Si,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:ns,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:on,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:fn,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:Si,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:ns,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:on,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:fn,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:Si,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:ns,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:on,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:fn,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:Si}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}],["\xCB\xCE\xCC\xE5",{local:["SimSun","SimSun Regular","NSimSun"],style:Si,ultimate:"serif"}],["\xBA\xDA\xCC\xE5",{local:["SimHei","SimHei Regular"],style:Si,ultimate:"sans-serif"}],["\xBF\xAC\xCC\xE5",{local:["KaiTi","SimKai","SimKai Regular"],style:Si,ultimate:"sans-serif"}],["\xB7\xC2\xCB\xCE",{local:["FangSong","SimFang","SimFang Regular"],style:Si,ultimate:"serif"}],["\xBF\xAC\xCC\xE5_GB2312",{alias:"\xBF\xAC\xCC\xE5"}],["\xB7\xC2\xCB\xCE_GB2312",{alias:"\xB7\xC2\xCB\xCE"}],["\xC1\xA5\xCA\xE9",{local:["SimLi","SimLi Regular"],style:Si,ultimate:"serif"}],["\xD0\xC2\xCB\xCE",{alias:"\xCB\xCE\xCC\xE5"}],["HeiseiMin-W3",{local:["Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","Source Han Serif JP","Noto Serif JP","Noto Serif CJK JP","IPAexMincho","IPAMincho","Takao Mincho","MS Mincho","MS PMincho"],style:Si,ultimate:"serif"}],["HeiseiKakuGo-W5",{local:["Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","Hiragino Sans","Yu Gothic","YuGothic","Source Han Sans JP","Noto Sans JP","Noto Sans CJK JP","IPAexGothic","IPAGothic","Takao Gothic","Meiryo","MS Gothic","MS PGothic"],style:Kl,ultimate:"sans-serif"}],["HeiseiMin-W3-Acro",{alias:"HeiseiMin-W3"}],["HeiseiKakuGo-W5-Acro",{alias:"HeiseiKakuGo-W5"}],["KozMinPro-Regular",{alias:"HeiseiMin-W3"}],["KozMinProVI-Regular",{alias:"HeiseiMin-W3"}],["KozMinPr6N-Regular",{alias:"HeiseiMin-W3"}],["KozGoPro-Regular",{alias:"HeiseiKakuGo-W5"}],["KozGoProVI-Regular",{alias:"HeiseiKakuGo-W5"}],["KozGoPr6N-Regular",{alias:"HeiseiKakuGo-W5"}],["STSong-Light",{local:["STSong","Songti SC","Source Han Serif SC","Source Han Serif CN","Noto Serif SC","Noto Serif CJK SC","AR PL UMing CN","SimSun","NSimSun"],style:Si,ultimate:"serif"}],["STHeiti-Regular",{local:["STHeiti","Heiti SC","PingFang SC","Source Han Sans SC","Source Han Sans CN","Noto Sans SC","Noto Sans CJK SC","Microsoft YaHei","SimHei","WenQuanYi Zen Hei"],style:Si,ultimate:"sans-serif"}],["STSongStd-Light",{alias:"STSong-Light"}],["AdobeSongStd-Light",{alias:"STSong-Light"}],["AdobeHeitiStd-Regular",{alias:"STHeiti-Regular"}],["AdobeKaitiStd-Regular",{alias:"\xBF\xAC\xCC\xE5"}],["AdobeFangsongStd-Regular",{alias:"\xB7\xC2\xCB\xCE"}],["MSung-Light",{local:["Songti TC","LiSong Pro","Source Han Serif TC","Source Han Serif TW","Noto Serif TC","Noto Serif CJK TC","AR PL UMing TW","PMingLiU","MingLiU","MingLiU_HKSCS"],style:Si,ultimate:"serif"}],["MHei-Medium",{local:["Heiti TC","STHeiti","Source Han Sans TC","Source Han Sans TW","Noto Sans TC","Noto Sans CJK TC","PingFang TC","Microsoft JhengHei"],style:Kl,ultimate:"sans-serif"}],["MSungStd-Light",{alias:"MSung-Light"}],["AdobeMingStd-Light",{alias:"MSung-Light"}],["HYSMyeongJo-Medium",{local:["AppleMyungjo","Source Han Serif KR","Noto Serif KR","Noto Serif CJK KR","Nanum Myeongjo","Batang"],style:Kl,ultimate:"serif"}],["HYGoThic-Medium",{local:["Apple SD Gothic Neo","AppleGothic","Source Han Sans KR","Noto Sans KR","Noto Sans CJK KR","Nanum Gothic","Malgun Gothic","Dotum","Gulim"],style:Kl,ultimate:"sans-serif"}],["HYSMyeongJoStd-Medium",{alias:"HYSMyeongJo-Medium"}],["AdobeMyungjoStd-Medium",{alias:"HYSMyeongJo-Medium"}],["HYGoThic-Bold",{alias:"HYGoThic-Medium",style:ns}],["AdobeGothicStd-Bold",{alias:"HYGoThic-Medium",style:ns}]]),a5=new Map([["Arial-Black","ArialBlack"]]);d(s5,"getStyleToAppend");d(Kd,"getFamilyName");d($h,"generateFont");d(zf,"getFontSubstitution");Xd=3285377520,ha=4294901760,vs=65535,o0=class{static{d(this,"MurmurHash3_64$1")}constructor(t){this.h1=t?t|0:Xd,this.h2=t?t|0:Xd}update(t){let e,i;if(typeof t=="string"){e=new Uint8Array(t.length*2),i=0;for(let m=0,g=t.length;m<g;m++){let b=t.charCodeAt(m);b<=255?e[i++]=b:(e[i++]=b>>>8,e[i++]=b&255)}}else if(ArrayBuffer.isView(t))e=t.slice(),i=e.byteLength;else throw Error("Invalid data format, must be a string or TypedArray.");let a=i>>2,s=i-a*4,n=new Uint32Array(e.buffer,0,a),r=0,l=0,o=this.h1,f=this.h2,h=3432918353,c=461845907,u=11601,p=13715;for(let m=0;m<a;m++)m&1?(r=n[m],r=r*h&ha|r*u&vs,r=r<<15|r>>>17,r=r*c&ha|r*p&vs,o^=r,o=o<<13|o>>>19,o=o*5+3864292196):(l=n[m],l=l*h&ha|l*u&vs,l=l<<15|l>>>17,l=l*c&ha|l*p&vs,f^=l,f=f<<13|f>>>19,f=f*5+3864292196);switch(r=0,s){case 3:r^=e[a*4+2]<<16;case 2:r^=e[a*4+1]<<8;case 1:r^=e[a*4],r=r*h&ha|r*u&vs,r=r<<15|r>>>17,r=r*c&ha|r*p&vs,a&1?o^=r:f^=r}this.h1=o,this.h2=f}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=t*3981806797&ha|t*36045&vs,e=e*4283543511&ha|((e<<16|t>>>16)*2950163797&ha)>>>16,t^=e>>>1,t=t*444984403&ha|t*60499&vs,e=e*3301882366&ha|((e<<16|t>>>16)*3120437893&ha)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}},Uf=class nn{static{d(this,"PDFImage")}constructor({xref:e,res:i,image:a,isInline:s=!1,smask:n=null,mask:r=null,isMask:l=!1,pdfFunctionFactory:o,globalColorSpaceCache:f,localColorSpaceCache:h}){this.image=a;let c=a.dict,u=c.get("F","Filter"),p;if(u instanceof Z)p=u.name;else if(Array.isArray(u)){let w=e.fetchIfRef(u[0]);w instanceof Z&&(p=w.name)}switch(p){case"JPXDecode":({width:a.width,height:a.height,componentsCount:a.numComps,bitsPerComponent:a.bitsPerComponent}=Ip.parseImageProperties(a.stream)),a.stream.reset();let w=Ga.getReducePowerForJPX(a.width,a.height,a.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:c.get("SMaskInData")>=1,reducePower:w},w){let v=2**w;a.width=Math.ceil(a.width/v),a.height=Math.ceil(a.height/v)}break;case"JBIG2Decode":a.bitsPerComponent=1,a.numComps=1}let m=c.get("W","Width"),g=c.get("H","Height");if(Number.isInteger(a.width)&&a.width>0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==m||a.height!==g))E("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),m=a.width,g=a.height;else{let w=typeof m=="number"&&m>0,v=typeof g=="number"&&g>0;if(!w||!v){if(!a.fallbackDims)throw new V(`Invalid image width: ${m} or height: ${g}`);E("PDFImage - using the Width/Height of the parent image, for SMask/Mask data."),w||(m=a.fallbackDims.width),v||(g=a.fallbackDims.height)}}this.width=m,this.height=g,this.interpolate=c.get("I","Interpolate"),this.imageMask=c.get("IM","ImageMask")||!1,this.matte=c.get("Matte")||!1;let b=a.bitsPerComponent;if(!b&&(b=c.get("BPC","BitsPerComponent"),!b))if(this.imageMask)b=1;else throw new V(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=b,this.imageMask)this.numComps=1;else{let w=c.getRaw("CS")||c.getRaw("ColorSpace"),v=!!w;if(this.jpxDecoderOptions?.smaskInData&&c.get("SMaskInData")===2&&(this.jpxPremultiplied=!0,this.matte)){let y=fe.parse({cs:v?w:Z.get("DeviceRGB"),xref:e,resources:s?i:null,pdfFunctionFactory:o,globalColorSpaceCache:f,localColorSpaceCache:h});this.preblendMatte=y.getRgb(this.matte,0)}if(v)this.jpxDecoderOptions?.smaskInData&&(w=Z.get("DeviceRGBA"));else if(this.jpxDecoderOptions)w=Z.get("DeviceRGBA");else switch(a.numComps){case 1:w=Z.get("DeviceGray");break;case 3:w=Z.get("DeviceRGB");break;case 4:w=Z.get("DeviceCMYK");break;default:throw Error(`Images with ${a.numComps} color components not supported.`)}this.colorSpace=fe.parse({cs:w,xref:e,resources:s?i:null,pdfFunctionFactory:o,globalColorSpaceCache:f,localColorSpaceCache:h}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=v?this.numComps:0,this.jpxDecoderOptions.isIndexedColormap=this.colorSpace.name==="Indexed")}if(this.decode=c.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,b)||l&&!Hi.isDefaultDecode(this.decode,1))){this.needsDecode=!0;let w=(1<<b)-1;this.decodeCoefficients=[],this.decodeAddends=[];let v=this.colorSpace?.name==="Indexed";for(let y=0,x=0;y<this.decode.length;y+=2,++x){let q=this.decode[y],j=this.decode[y+1];this.decodeCoefficients[x]=v?(j-q)/w:j-q,this.decodeAddends[x]=v?q:w*q}}n?(n.fallbackDims??={width:m,height:g},this.smask=new nn({xref:e,res:i,image:n,isInline:s,pdfFunctionFactory:o,globalColorSpaceCache:f,localColorSpaceCache:h})):r&&(r instanceof Bt?r.dict.get("IM","ImageMask")?(r.fallbackDims??={width:m,height:g},this.mask=new nn({xref:e,res:i,image:r,isInline:s,isMask:!0,pdfFunctionFactory:o,globalColorSpaceCache:f,localColorSpaceCache:h})):E("Ignoring /Mask in image without /ImageMask."):this.mask=r)}static async buildImage({xref:e,res:i,image:a,isInline:s=!1,pdfFunctionFactory:n,globalColorSpaceCache:r,localColorSpaceCache:l}){let o=a,f=null,h=null,c=a.dict.get("SMask"),u=a.dict.get("Mask");return c?c instanceof Bt?f=c:E("Unsupported /SMask format."):u&&(u instanceof Bt||Array.isArray(u)?h=u:E("Unsupported /Mask format.")),new nn({xref:e,res:i,image:o,isInline:s,smask:f,mask:h,pdfFunctionFactory:n,globalColorSpaceCache:r,localColorSpaceCache:l})}static async createMask({image:e,isOffscreenCanvasSupported:i=!1}){let{dict:a}=e,s=a.get("W","Width"),n=a.get("H","Height"),r=a.get("I","Interpolate"),l=a.getArray("D","Decode")?.[0]>0,o=(s+7>>3)*n,f=await e.getImageData(o),h=s===1&&n===1&&l===(f.length===0||!!(f[0]&128));if(h)return{isSingleOpaquePixel:h};if(i){if(Ga.needsToBeResized(s,n)){let w=new Uint8ClampedArray(s*n*4);return Ih({src:f,dest:w,width:s,height:n,nonBlackColor:0,inverseDecode:l}),Ga.createImage({kind:pi.RGBA_32BPP,data:w,width:s,height:n,interpolate:r})}let m=new OffscreenCanvas(s,n),g=m.getContext("2d"),b=g.createImageData(s,n);return Ih({src:f,dest:b.data,width:s,height:n,nonBlackColor:0,inverseDecode:l}),g.putImageData(b,0,0),{data:null,width:s,height:n,interpolate:r,bitmap:m.transferToImageBitmap()}}let c=f.byteLength,u=o===c,p;if(e instanceof Mi&&(!l||u)?p=f:l?(p=new Uint8Array(o),p.set(f),p.fill(255,c)):p=new Uint8Array(f),l)for(let m=0;m<c;m++)p[m]^=255;return{data:p,width:s,height:n,interpolate:r}}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(e){let i=this.bpc,a=this.numComps,s=this.decodeAddends,n=this.decodeCoefficients,r=(1<<i)-1,l,o;if(i===1){for(l=0,o=e.length;l<o;l++)e[l]=+!e[l];return}let f=0;for(l=0,o=this.width*this.height;l<o;l++)for(let h=0;h<a;h++)e[f]=Fe(s[h]+e[f]*n[h],0,r),f++}getComponents(e){let i=this.bpc;if(i===8)return e;let a=this.width,s=this.height,n=this.numComps,r=a*s*n,l=0,o;o=i<=8?new Uint8Array(r):i<=16?new Uint16Array(r):new Uint32Array(r);let f=a*n,h=(1<<i)-1,c=0,u;if(i===1){let p,m,g;for(let b=0;b<s;b++){for(m=c+(f&-8),g=c+f;c<m;)u=e[l++],o[c]=u>>7&1,o[c+1]=u>>6&1,o[c+2]=u>>5&1,o[c+3]=u>>4&1,o[c+4]=u>>3&1,o[c+5]=u>>2&1,o[c+6]=u>>1&1,o[c+7]=u&1,c+=8;if(c<g)for(u=e[l++],p=128;c<g;)o[c++]=+!!(u&p),p>>=1}}else{let p=0;for(u=0,c=0;c<r;++c){for(c%f===0&&(u=0,p=0);p<i;)u=u<<8|e[l++],p+=8;let m=p-i;o[c]=Fe(u>>m,0,h),u&=(1<<m)-1,p=m}}return o}async fillOpacity(e,i,a,s,n){let r;if(this.smask)r=d((l,o)=>this.smask.fillGrayBuffer(l,{...o,destWidth:i,destHeight:a}),"apply");else if(this.mask)if(this.mask instanceof nn)r=d((l,o)=>this.mask.fillGrayBuffer(l,{...o,invertOutput:!0,destWidth:i,destHeight:a}),"apply");else if(Array.isArray(this.mask))r=d((l,{maxRows:o,offset:f,stride:h})=>{for(let c=0,u=i*o;c<u;++c){let p=0,m=c*this.numComps;for(let g=0;g<this.numComps;++g){let b=n[m+g],w=g*2;if(b<this.mask[w]||b>this.mask[w+1]){p=255;break}}l[c*h+f]=p}},"apply");else throw new V("Unknown mask format.");else r=d((l,{maxRows:o,offset:f,stride:h})=>{for(let c=0,u=i*o;c<u;++c)l[c*h+f]=255},"apply");await r(e,{maxRows:s,offset:3,stride:4})}static#t(e,i,a,s,n){for(let r=0;r<i;r+=4){let l=e[r+3];if(l===0){e[r]=255,e[r+1]=255,e[r+2]=255;continue}let o=255/l;e[r]=(e[r]-a)*o+a,e[r+1]=(e[r+1]-s)*o+s,e[r+2]=(e[r+2]-n)*o+n}}undoPreblend(e,i,a){let s=this.smask?.matte;if(!s)return;let n=this.colorSpace.getRgb(s,0);nn.#t(e,i*a*4,n[0],n[1],n[2])}async createImageData(e=!1,i=!1){let a=this.drawWidth,s=this.drawHeight,n={width:a,height:s,interpolate:this.interpolate,kind:0,data:null},r=this.numComps,l=this.width,o=this.height,f=this.bpc,h=l*r*f+7>>3,c=i&&Ga.needsToBeResized(a,s);if(!this.smask&&!this.mask&&this.colorSpace.name==="DeviceRGBA"){n.kind=pi.RGBA_32BPP;let q=n.data=await this.getImageBytes(o*l*4,{internal:i&&c});if(this.jpxPremultiplied){let j=this.preblendMatte;nn.#t(q,q.length,j?.[0]??0,j?.[1]??0,j?.[2]??0)}return i?c?Ga.createImage(n,!1):this.createBitmap(pi.RGBA_32BPP,a,s,q):n}if(!e&&!this.smask&&!this.mask){let q;if(this.colorSpace.name==="DeviceGray"&&f===1?q=pi.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&f===8&&!this.needsDecode&&(q=pi.RGB_24BPP),q&&a===l&&s===o){let j=await this.#e(l,o);if(j)return j;let A=await this.getImageBytes(o*h,{internal:i&&c});if(i)return c?Ga.createImage({data:A,kind:q,width:a,height:s,interpolate:this.interpolate},this.needsDecode):this.createBitmap(q,l,o,A);if(n.kind=q,n.data=A,this.needsDecode){Le(q===pi.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");let S=n.data;for(let C=0,M=S.length;C<M;C++)S[C]^=255}return n}if(this.image instanceof Vo&&!this.needsDecode){let j=!1;switch(this.colorSpace.name){case"DeviceGray":case"DeviceRGB":case"DeviceCMYK":j=!0}if(j){if(i){let S=await this.#e(a,s);if(S)return S}let A=o*h;if(i&&!c){switch(this.colorSpace.name){case"DeviceGray":A*=4;break;case"DeviceRGB":A=A/3*4}let S=await this.getImageBytes(A,{drawWidth:a,drawHeight:s,forceRGBA:!0,internal:!0});return this.createBitmap(pi.RGBA_32BPP,a,s,S)}return this.colorSpace.name==="DeviceGray"&&(A*=3),n.kind=pi.RGB_24BPP,n.data=await this.getImageBytes(A,{drawWidth:a,drawHeight:s,forceRGB:!0,internal:c}),c?Ga.createImage(n):n}}}let u=await this.getImageBytes(o*h,{internal:!0}),p=0|u.length/h*s/o,m=this.getComponents(u),g,b,w,v,y,x;return i&&!c&&(w=new OffscreenCanvas(a,s),v=w.getContext("2d"),y=v.createImageData(a,s),x=y.data),n.kind=pi.RGBA_32BPP,!e&&!this.smask&&!this.mask?(!i||c?(n.kind=pi.RGB_24BPP,x=new Uint8ClampedArray(a*s*3),g=0):(new Uint32Array(x.buffer).fill(Ni.isLittleEndian?4278190080:255),g=1),b=!1):((!i||c)&&(x=new Uint8ClampedArray(a*s*4)),g=1,b=!0,await this.fillOpacity(x,a,s,p,m)),this.needsDecode&&this.decodeBuffer(m),this.colorSpace.fillRgb(x,l,o,a,s,p,f,m,g),b&&this.undoPreblend(x,a,p),i&&!c?(v.putImageData(y,0,0),{data:null,width:a,height:s,bitmap:w.transferToImageBitmap(),interpolate:this.interpolate}):(n.data=x,c?Ga.createImage(n):n)}async fillGrayBuffer(e,{destWidth:i,destHeight:a,invertOutput:s,maxRows:n,offset:r=0,stride:l=1}={}){let o=this.numComps;if(o!==1)throw new V(`Reading gray scale from a color image: ${o}`);let f=this.width,h=this.height,c=this.bpc,u=f*o*c+7>>3,p=await this.getImageBytes(h*u,{internal:!0}),m=this.getComponents(p),g=i??f,b=a??h,w=g!==f||b!==h,v=n===void 0?b:Math.min(b,n),y=f,x=0,q=null;if(w){y=g,x=h/b;let S=f/g;q=new Uint32Array(g);for(let C=0;C<g;C++)q[C]=Math.floor(C*S)}let j=s?255:0;if(c===1){if(q){let S=q,C=r;if(this.needsDecode)for(let M=0;M<v;M++){let O=Math.floor(M*x)*f;for(let P=0;P<y;P++)e[C]=m[O+S[P]]-1&255^j,C+=l}else for(let M=0;M<v;M++){let O=Math.floor(M*x)*f;for(let P=0;P<y;P++)e[C]=-m[O+S[P]]&255^j,C+=l}}else{let S=y*v;if(this.needsDecode)for(let C=0;C<S;++C)e[C*l+r]=m[C]-1&255^j;else for(let C=0;C<S;++C)e[C*l+r]=-m[C]&255^j}return}this.needsDecode&&this.decodeBuffer(m);let A=255/((1<<c)-1);if(q){let S=q,C=r;for(let M=0;M<v;M++){let O=Math.floor(M*x)*f;for(let P=0;P<y;P++)e[C]=A*m[O+S[P]]^j,C+=l}}else{let S=y*v;for(let C=0;C<S;++C)e[C*l+r]=A*m[C]^j}}createBitmap(e,i,a,s){let n=new OffscreenCanvas(i,a),r=n.getContext("2d"),l;return e===pi.RGBA_32BPP?l=new ImageData(s,i,a):(l=r.createImageData(i,a),wp({kind:e,src:s,dest:new Uint32Array(l.data.buffer),width:i,height:a,inverseDecode:this.needsDecode})),r.putImageData(l,0,0),{data:null,width:i,height:a,bitmap:n.transferToImageBitmap(),interpolate:this.interpolate}}async#e(e,i){let a=await this.image.getTransferableImage(e,i);return a?{data:null,width:a.displayWidth??e,height:a.displayHeight??i,bitmap:a,interpolate:this.interpolate}:null}async getImageBytes(e,{drawWidth:i,drawHeight:a,forceRGBA:s=!1,forceRGB:n=!1,internal:r=!1}){this.image.reset(),this.image.drawWidth=i||this.width,this.image.drawHeight=a||this.height,this.image.forceRGBA=!!s,this.image.forceRGB=!!n;let l=await this.image.getImageData(e,this.jpxDecoderOptions);return r||this.image instanceof Mi?l:(Le(l instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(l))}},n5=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,cMapPacked:!0,iccUrl:null,standardFontDataUrl:null,wasmUrl:null,hasGPU:!1}),Yd={TILING:1,SHADING:2},Jd=Promise.resolve(),Gf=d(t=>t instanceof _,"argIsDict");d(f0,"normalizeBlendMode");d($f,"addCachedImageOps");Qd=class Wh{static{d(this,"TimeSlotManager")}static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return++this.checked<Wh.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+Wh.TIME_SLOT_DURATION_MS,this.checked=0}},su=class Vh{static{d(this,"PartialEvaluator")}constructor({xref:e,handler:i,pageIndex:a,pageProxyId:s=null,idFactory:n,fontCache:r,builtInCMapCache:l,standardFontDataCache:o,globalColorSpaceCache:f,globalImageCache:h,systemFontCache:c,options:u=null}){this.xref=e,this.handler=i,this.pageIndex=a,this.pageProxyId=s,this.idFactory=n,this.fontCache=r,this.builtInCMapCache=l,this.standardFontDataCache=o,this.globalColorSpaceCache=f,this.globalImageCache=h,this.systemFontCache=c,this.options=u||n5,this.type3FontRefs=null,this._regionalImageCache=new Y9,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return ht(this,"_pdfFunctionFactory",new iu({xref:this.xref}))}get parsingType3Font(){return!!this.type3FontRefs}clone(e=null){let i=Object.create(this);return i.options=Object.assign(Object.create(null),this.options,e),i}hasBlendModes(e,i){if(!(e instanceof _)||e.objId&&i.has(e.objId))return!1;let a=new we(i);e.objId&&a.put(e.objId);let s=[e],n=this.xref;for(;s.length;){let r=s.shift(),l=r.get("ExtGState");if(l instanceof _)for(let f of l.getRawValues()){if(f instanceof it){if(a.has(f))continue;try{f=n.fetch(f)}catch(c){a.put(f),de(`hasBlendModes - ignoring ExtGState: "${c}".`);continue}}if(!(f instanceof _))continue;f.objId&&a.put(f.objId);let h=f.get("BM");if(h instanceof Z){if(h.name!=="Normal")return!0}else if(h!==void 0&&Array.isArray(h)){for(let c of h)if(c instanceof Z&&c.name!=="Normal")return!0}}let o=r.get("XObject");if(o instanceof _)for(let f of o.getRawValues()){if(f instanceof it){if(a.has(f))continue;try{f=n.fetch(f)}catch(c){a.put(f),de(`hasBlendModes - ignoring XObject: "${c}".`);continue}}if(!(f instanceof Bt))continue;f.dict.objId&&a.put(f.dict.objId);let h=f.dict.get("Resources");h instanceof _&&(h.objId&&a.has(h.objId)||(s.push(h),h.objId&&a.put(h.objId)))}}for(let r of a)i.put(r);return!1}async fetchBuiltInCMap(e){let i=this.builtInCMapCache.get(e);if(i)return i;let a;return a=this.options.useWorkerFetch?{cMapData:await nd(`${this.options.cMapUrl}${e}.bcmap`),isCompressed:!0}:{cMapData:await this.handler.sendWithPromise("FetchBinaryData",{kind:"cMapUrl",filename:`${e}${this.options.cMapPacked?".bcmap":""}`}),isCompressed:this.options.cMapPacked},this.builtInCMapCache.set(e,a),a}async fetchStandardFontData(e){let i=this.standardFontDataCache.get(e);if(i)return new Me(i);if(this.options.useSystemFonts&&e!=="Symbol"&&e!=="ZapfDingbats")return null;let a=Qw()[e],s;try{s=this.options.useWorkerFetch?await nd(`${this.options.standardFontDataUrl}${a}`):await this.handler.sendWithPromise("FetchBinaryData",{kind:"standardFontDataUrl",filename:a})}catch(n){return E(n),null}return this.standardFontDataCache.set(e,s),new Me(s)}async buildFormXObject(e,i,a,s,n,r,l,o){let{dict:f}=i,h=os(f.getArray("Matrix"),null),c=Ya(f.getArray("BBox"),null),u=c&&new Float32Array(c);u?.some(y=>!isFinite(y))&&(u=null);let p,m;f.has("OC")&&(p=await this.parseMarkedContentProps(f.get("OC"),e)),p!==void 0&&s.addOp(T.beginMarkedContentProps,["OC",p]);let g=f.get("Group"),b,w=[h&&new Float32Array(h),!g&&u||null],v=f.get("Resources");if(g){m={matrix:h,bbox:u,smask:a,isolated:!1,knockout:!1,needsIsolation:!1,hasSoftMask:!1,isGray:!1};let y=g.get("S"),x=null;if(Ht(y,"Transparency")&&(m.isolated=g.get("I")||!1,m.knockout=g.get("K")||!1,g.has("CS"))){let q=this._getColorSpace(g.getRaw("CS"),e,l);x=q instanceof Hi?q:await this._handleColorSpace(q)}m.isGray=x?.numComps===1,a?.backdrop?(x||=fe.rgb,a.backdrop=x.getRgbHex(a.backdrop,0)):a?.subtype==="Luminosity"&&(a.backdrop="#000000"),b=new dd}else b=s,s.addOp(T.paintFormXObjectBegin,w);await this.getOperatorList({stream:i,task:n,resources:v instanceof _?v:e,operatorList:b,initialState:r,prevRefs:o}),g?(m.needsIsolation=b.needsIsolation||!!a,m.hasSoftMask=b.hasSoftMask||!!a,s.addOp(T.beginGroup,[m]),s.addOp(T.paintFormXObjectBegin,w),s.addOpList(b),s.addOp(T.paintFormXObjectEnd,[]),s.addOp(T.endGroup,[m])):s.addOp(T.paintFormXObjectEnd,[]),p!==void 0&&s.addOp(T.endMarkedContent,[])}_sendImgData(e,i,a=!1){let s=i?[i.bitmap||i.data.buffer]:null;return this.parsingType3Font||a?this.handler.send("commonobj",[e,"Image",i],s):this.handler.send("obj",[e,this.pageProxyId,"Image",i],s)}async buildPaintImageXObject({resources:e,image:i,isInline:a=!1,operatorList:s,cacheKey:n,localImageCache:r,localColorSpaceCache:l}){let{maxImageSize:o,ignoreErrors:f,isOffscreenCanvasSupported:h}=this.options,{dict:c}=i,u=c.objId,p=c.get("W","Width"),m=c.get("H","Height");if(!(p&&typeof p=="number")||!(m&&typeof m=="number")){E("Image dimensions are missing, or not numbers.");return}if(o!==-1&&p*m>o){let S="Image exceeded maximum allowed size and was removed.";if(!f)throw Error(S);E(S);return}let g;c.has("OC")&&(g=await this.parseMarkedContentProps(c.get("OC"),e));let b=c.get("IM","ImageMask")||!1,w,v,y;if(b){if(w=await Uf.createMask({image:i,isOffscreenCanvasSupported:h&&!this.parsingType3Font}),w.isSingleOpaquePixel){if(v=T.paintSolidColorImageMask,y=[],s.addImageOps(v,y,g),n){let C={fn:v,args:y,optionalContent:g};r.set(n,u,C),u&&this._regionalImageCache.set(null,u,C)}return}if(this.parsingType3Font){if(y=Uw(w),y){s.addImageOps(T.constructPath,y,g);return}E("Cannot compile Type3 glyph."),s.addImageOps(T.paintImageMaskXObject,[w],g);return}let S=`mask_${this.idFactory.createObjId()}`;if(s.addDependency(S),w.dataLen=w.bitmap?w.width*w.height*4:w.data.length,this._sendImgData(S,w),v=T.paintImageMaskXObject,y=[{data:S,width:w.width,height:w.height,interpolate:w.interpolate,count:1}],s.addImageOps(v,y,g),n){let C={objId:S,fn:v,args:y,optionalContent:g};r.set(n,u,C),u&&this._regionalImageCache.set(null,u,C)}return}let x=c.has("SMask")||c.has("Mask");if(a&&p+m<200&&!x){try{w=await new Uf({xref:this.xref,res:e,image:i,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:l}).createImageData(!0,!1),s.addImageOps(T.paintInlineImageXObject,[w],g)}catch(S){let C=`Unable to decode inline image: "${S}".`;if(!f)throw Error(C);E(C)}return}let q=`img_${this.idFactory.createObjId()}`,j=!1,A=null;if(this.parsingType3Font?q=`${this.idFactory.getDocId()}_type3_${q}`:n&&u&&(j=this.globalImageCache.shouldCache(u,this.pageIndex),j&&(Le(!a,"Cannot cache an inline image globally."),q=`${this.idFactory.getDocId()}_${q}`)),s.addDependency(q),v=T.paintImageXObject,y=[q,p,m],s.addImageOps(v,y,g,x),j){if(A={objId:q,fn:v,args:y,optionalContent:g,hasMask:x,byteSize:0},this.globalImageCache.hasDecodeFailed(u)){this.globalImageCache.setData(u,A),this._sendImgData(q,null,j);return}if(p*m>25e4||x){let S=await this.handler.sendWithPromise("commonobj",[q,"CopyLocalImage",{imageRef:u}]);if(S){this.globalImageCache.setData(u,A),this.globalImageCache.addByteSize(u,S);return}}}if(Uf.buildImage({xref:this.xref,res:e,image:i,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:l}).then(async S=>(w=await S.createImageData(!1,h),w.dataLen=w.bitmap?w.width*w.height*4:w.data.length,w.ref=u,j&&this.globalImageCache.addByteSize(u,w.dataLen),this._sendImgData(q,w,j))).catch(S=>(E(`Unable to decode image "${q}": "${S}".`),u&&this.globalImageCache.addDecodeFailed(u),this._sendImgData(q,null,j))),n){let S={objId:q,fn:v,args:y,optionalContent:g,hasMask:x};r.set(n,u,S),u&&(this._regionalImageCache.set(null,u,S),j&&(Le(A,"The global cache-data must be available."),this.globalImageCache.setData(u,A)))}}#t(e){let i=this._pdfFunctionFactory.create(e),a=new Float32Array(1);return Uint8Array.from({length:256},(s,n)=>(a[0]=n/255,i(a,0,a,0),a[0]*255|0))}handleSMask(e,i,a,s,n,r,l){let o=e.get("G"),f={subtype:e.get("S").name,backdrop:e.get("BC")},h=e.get("TR");return Nf(h)&&(f.transferMap=this.#t(h)),this.buildFormXObject(i,o,f,a,s,n.state.clone({newPath:!0}),r,l)}handleTransferFunction(e){let i;if(Array.isArray(e))i=e.length>1&&e.every(r=>r===e[0])?[e[0]]:e;else if(Nf(e))i=[e];else return null;let a=[],s=0,n=0;for(let r of i){let l=this.xref.fetchIfRef(r);if(s++,Ht(l,"Identity"))a.push(null);else{if(!Nf(l))return null;a.push(this.#t(l)),n++}}return s!==1&&s!==4||n===0?null:a}handleTilingType(e,i,a,s,n,r,l,o,f){let h=new dd,c=_.merge({xref:this.xref,dictArray:[n.get("Resources"),a]});return this.getOperatorList({stream:s,task:l,resources:c,operatorList:h,prevRefs:f}).then(function(){let u=h.getIR(),{needsIsolation:p}=h,m=md(u,n,i,p);r.addDependencies(h.dependencies),r.addOp(e,m),n.objId&&o.set(null,n.objId,{operatorListIR:u,needsIsolation:p,dict:n})}).catch(u=>{if(!(u instanceof yi))if(this.options.ignoreErrors)E(`handleTilingType - ignoring pattern: "${u}".`);else throw u})}async handleSetFont(e,i,a,s,n,r,l=null,o=null,f=null){let h=i?.[0]instanceof Z?i[0].name:null,c=await this.loadFont(h,a,e,n,l,o,f);return c.font.isType3Font&&s.addDependencies(c.type3Dependencies),r.font=c.font,c.send(this.handler),c.loadedName}handleText(e,i){let a=i.font,s=a.charsToGlyphs(e);return a.data&&(i.textRenderingMode&Z1.ADD_TO_PATH_FLAG||i.fillColorSpace.name==="Pattern"||i.strokeColorSpace.name==="Pattern"||a.disableFontFace)&&Vh.buildFontPaths(a,s,this.handler,this.options),s}ensureStateFont(e){if(e.font)return;let i=new V("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)E(`ensureStateFont: "${i}".`);else throw i}async setGState({resources:e,gState:i,operatorList:a,cacheKey:s,task:n,stateManager:r,localGStateCache:l,localColorSpaceCache:o,seenRefs:f}){let h=i.objId,c=!0,u=[],p=Promise.resolve();for(let[m,g]of i)switch(m){case"Type":break;case"LW":if(typeof g!="number"){E(`Invalid LW (line width): ${g}`);break}u.push([m,Math.abs(g)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":u.push([m,g]);break;case"Font":c=!1,p=p.then(()=>this.handleSetFont(e,null,g[0],a,n,r.state,null,null,f).then(function(b){a.addDependency(b),u.push([m,[b,g[1]]])}));break;case"BM":u.push([m,f0(g)]);break;case"SMask":if(Ht(g,"None")){u.push([m,!1]);break}g instanceof _?(c=!1,p=p.then(()=>this.handleSMask(g,e,a,n,r,o,f)),u.push([m,!0])):E("Unsupported SMask type");break;case"TR":if(i.has("TR2"))break;case"TR2":{let b=this.handleTransferFunction(g);u.push(["TR",b]);break}case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"HT":case"SM":case"SA":case"AIS":case"TK":de("graphic state operator "+m);break;default:de("Unknown graphic state operator "+m)}await p,u.length>0&&a.addOp(T.setGState,[u]),c&&l.set(s,h,u)}loadFont(e,i,a,s,n=null,r=null,l=null){let o=d(async()=>new Wf({loadedName:"g_font_error",font:new Hd(`Font "${e}" is not available.`),dict:i}),"errorFont"),f;if(i)i instanceof it&&(f=i);else{let w=a.get("Font");w&&(f=w.getRaw(e))}if(f){if(this.type3FontRefs?.has(f))return o();if(this.fontCache.has(f))return this.fontCache.get(f);try{i=this.xref.fetchIfRef(f)}catch(w){E(`loadFont - lookup failed: "${w}".`)}}if(!(i instanceof _)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return E(`Font "${e}" is not available.`),o();E(`Font "${e}" is not available -- attempting to fallback to a default font.`),i=n||Vh.fallbackFontDict}if(i.cacheKey&&this.fontCache.has(i.cacheKey))return this.fontCache.get(i.cacheKey);let{promise:h,resolve:c}=Promise.withResolvers(),u;try{u=this.preEvaluateFont(i),u.cssFontInfo=r}catch(w){return E(`loadFont - preEvaluateFont failed: "${w}".`),o()}let{descriptor:p,hash:m}=u,g=f instanceof it,b;if(m&&p instanceof _){let w=p.fontAliases||=Object.create(null);if(w[m]){let v=w[m].aliasRef;if(g&&v&&this.fontCache.has(v))return this.fontCache.putAlias(f,v),this.fontCache.get(f)}else w[m]={fontID:this.idFactory.createFontId()};g&&(w[m].aliasRef=f),b=w[m].fontID}else b=this.idFactory.createFontId();return Le(b?.startsWith("f"),'The "fontID" must be (correctly) defined.'),g?this.fontCache.put(f,h):(i.cacheKey=`cacheKey_${b}`,this.fontCache.put(i.cacheKey,h)),i.loadedName=`${this.idFactory.getDocId()}_${b}`,this.translateFont(u).then(async w=>{let v=new Wf({loadedName:i.loadedName,font:w,dict:i});if(w.isType3Font)try{await v.loadType3Data(this,a,s,l)}catch(y){throw Error(`Type3 font load error: ${y}`)}c(v)}).catch(w=>{E(`loadFont - translateFont failed: "${w}".`),c(new Wf({loadedName:i.loadedName,font:new Hd(w?.message),dict:i}))}),h}buildPath(e,i,a){let{pathMinMax:s,pathBuffer:n}=a;switch(e|0){case T.rectangle:{let r=a.currentPointX=i[0],l=a.currentPointY=i[1],o=i[2],f=i[3],h=r+o,c=l+f;o===0||f===0?n.push(Ee.moveTo,r,l,Ee.lineTo,h,c,Ee.closePath):n.push(Ee.moveTo,r,l,Ee.lineTo,h,l,Ee.lineTo,h,c,Ee.lineTo,r,c,Ee.closePath),oe.rectBoundingBox(r,l,h,c,s);break}case T.moveTo:{let r=a.currentPointX=i[0],l=a.currentPointY=i[1];n.push(Ee.moveTo,r,l),oe.pointBoundingBox(r,l,s);break}case T.lineTo:{let r=a.currentPointX=i[0],l=a.currentPointY=i[1];n.push(Ee.lineTo,r,l),oe.pointBoundingBox(r,l,s);break}case T.curveTo:{let r=a.currentPointX,l=a.currentPointY,[o,f,h,c,u,p]=i;a.currentPointX=u,a.currentPointY=p,n.push(Ee.curveTo,o,f,h,c,u,p),oe.bezierBoundingBox(r,l,o,f,h,c,u,p,s);break}case T.curveTo2:{let r=a.currentPointX,l=a.currentPointY,[o,f,h,c]=i;a.currentPointX=h,a.currentPointY=c,n.push(Ee.curveTo,r,l,o,f,h,c),oe.bezierBoundingBox(r,l,r,l,o,f,h,c,s);break}case T.curveTo3:{let r=a.currentPointX,l=a.currentPointY,[o,f,h,c]=i;a.currentPointX=h,a.currentPointY=c,n.push(Ee.curveTo,o,f,h,c,h,c),oe.bezierBoundingBox(r,l,o,f,h,c,h,c,s);break}case T.closePath:n.push(Ee.closePath)}}_getColorSpace(e,i,a){return fe.parse({cs:e,xref:this.xref,resources:i,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:a,asyncIfNotCached:!0})}async _handleColorSpace(e){try{return await e}catch(i){if(i instanceof yi)return null;if(this.options.ignoreErrors)return E(`_handleColorSpace - ignoring ColorSpace: "${i}".`),null;throw i}}parseShading({shading:e,resources:i,localColorSpaceCache:a,localShadingPatternCache:s}){let n=s.get(e);if(n)return n;let r;try{r=qp.parseShading(e,this.xref,i,this._pdfFunctionFactory,this.globalColorSpaceCache,a).getIR()}catch(l){if(l instanceof yi)return null;if(this.options.ignoreErrors)return E(`parseShading - ignoring shading: "${l}".`),s.set(e,null),null;throw l}if(n=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(n=`${this.idFactory.getDocId()}_type3_${n}`),s.set(e,n),this.parsingType3Font){let l=m2(r);this.handler.send("commonobj",[n,"Pattern",l],[l])}else this.handler.send("obj",[n,this.pageProxyId,"Pattern",r]);return n}handleColorN(e,i,a,s,n,r,l,o,f,h,c){let u=a.pop();if(u instanceof Z){let p=n.getRaw(u.name),m=p instanceof it&&f.getByRef(p);if(m)try{let b=s.base?s.base.getRgbHex(a,0):null,w=md(m.operatorListIR,m.dict,b,m.needsIsolation);e.addOp(i,w);return}catch{}let g=this.xref.fetchIfRef(p);if(g){let b=g instanceof Bt?g.dict:g,w=b.get("PatternType");if(w===Yd.TILING){let v=s.base?s.base.getRgbHex(a,0):null;return this.handleTilingType(i,v,r,g,b,e,l,f,c)}if(w===Yd.SHADING){let v=b.get("Shading"),y=this.parseShading({shading:v,resources:r,localColorSpaceCache:o,localShadingPatternCache:h});if(y){let x=os(b.getArray("Matrix"),null);e.addOp(i,["Shading",y,x])}return}throw new V(`Unknown PatternType: ${w}`)}}throw new V(`Unknown PatternName: ${u}`)}async parseMarkedContentProps(e,i){return l0(this.xref,e,i)}async getOperatorList({stream:e,task:i,resources:a,operatorList:s,initialState:n=null,fallbackFontDict:r=null,prevRefs:l=null}){if(e.isAsync){let C=await e.asyncGetBytes();C&&(e=new Me(C,0,C.length,e.dict))}let o=e.dict?.objId,f=new we(l);if(o){if(l?.has(o))throw Error(`getOperatorList - ignoring circular reference: ${o}`);f.put(o)}if(a||=_.empty,n||=new h0,!s)throw Error('getOperatorList: missing "operatorList" parameter');let h=this,c=this.xref,u=new zd,p=new a0,m=new Ud,g=new X9,b=new Map,w=a.get("XObject")||_.empty,v=a.get("Pattern")||_.empty,y=new wo(n),x=new Ro(e,c,y),q=new Qd,j=0;function A(C){for(let M=0,O=x.savedStatesDepth;M<O;M++)s.addOp(T.restore,[])}d(A,"closePendingRestoreOPS");function S(){for(;j>0;j--)s.addOp(T.endMarkedContent,[])}return d(S,"closePendingMarkedContentOPS"),new Promise(d(function C(M,O){let P=d(function(G){Promise.all([G,s.ready]).then(function(){try{C(M,O)}catch(Q){O(Q)}},O)},"next");i.ensureNotTerminated(),q.reset();let $={},tt,K,z,B;for(;!(tt=q.check())&&($.args=null,x.read($));){let G=$.args,Q=$.fn;switch(Q|0){case T.paintXObject:if(B=G[0]instanceof Z,z=G[0].name,B){let L=u.getByName(z);if(L){$f(s,L),G=null;continue}}P(new Promise(function(L,H){if(!B)throw new V("XObject must be referred to by name.");let J=w.getRaw(z);if(J instanceof it){let ot=u.getByRef(J)||h._regionalImageCache.getByRef(J)||h.globalImageCache.getData(J,h.pageIndex);if(ot){$f(s,ot),L();return}J=c.fetch(J)}if(!(J instanceof Bt))throw new V("XObject should be a stream");let ft=J.dict.get("Subtype");if(!(ft instanceof Z))throw new V("XObject should have a Name subtype");if(ft.name==="Form")y.save(),h.buildFormXObject(a,J,null,s,i,y.state.clone({newPath:!0}),p,f).then(function(){y.restore(),L()},H);else if(ft.name==="Image")h.buildPaintImageXObject({resources:a,image:J,operatorList:s,cacheKey:z,localImageCache:u,localColorSpaceCache:p}).then(L,H);else{if(ft.name==="PS")de("Ignored XObject subtype PS");else throw new V(`Unhandled XObject subtype ${ft.name}`);L()}}).catch(L=>{if(!(L instanceof yi))if(h.options.ignoreErrors)E(`getOperatorList - ignoring XObject: "${L}".`);else throw L}));return;case T.setFont:let yt=G[1];P(h.handleSetFont(a,G,null,s,i,y.state,r,null,f).then(function(L){s.addDependency(L),s.addOp(T.setFont,[L,yt])}));return;case T.endInlineImage:let It=G[0].cacheKey;if(It){let L=u.getByName(It);if(L){$f(s,L),G=null;continue}}P(h.buildPaintImageXObject({resources:a,image:G[0],isInline:!0,operatorList:s,cacheKey:It,localImageCache:u,localColorSpaceCache:p}));return;case T.showText:if(!y.state.font){h.ensureStateFont(y.state);continue}G[0]=h.handleText(G[0],y.state);break;case T.showSpacedText:if(!y.state.font){h.ensureStateFont(y.state);continue}let Lt=[],Pt=y.state;for(let L of G[0])typeof L=="string"?Lt.push(...h.handleText(L,Pt)):typeof L=="number"&&Lt.push(L);G[0]=Lt,Q=T.showText;break;case T.nextLineShowText:if(!y.state.font){h.ensureStateFont(y.state);continue}s.addOp(T.nextLine),G[0]=h.handleText(G[0],y.state),Q=T.showText;break;case T.nextLineSetSpacingShowText:if(!y.state.font){h.ensureStateFont(y.state);continue}s.addOp(T.nextLine),s.addOp(T.setWordSpacing,[G.shift()]),s.addOp(T.setCharSpacing,[G.shift()]),G[0]=h.handleText(G[0],y.state),Q=T.showText;break;case T.setTextRenderingMode:y.state.textRenderingMode=G[0];break;case T.setFillColorSpace:{let L=h._getColorSpace(G[0],a,p);if(L instanceof Hi){y.state.fillColorSpace=L;continue}P(h._handleColorSpace(L).then(H=>{y.state.fillColorSpace=H||fe.gray}));return}case T.setStrokeColorSpace:{let L=h._getColorSpace(G[0],a,p);if(L instanceof Hi){y.state.strokeColorSpace=L;continue}P(h._handleColorSpace(L).then(H=>{y.state.strokeColorSpace=H||fe.gray}));return}case T.setFillColor:if(!Ne(G,null))continue;K=y.state.fillColorSpace,G=[K.getRgbHex(G,0)],Q=T.setFillRGBColor;break;case T.setStrokeColor:if(!Ne(G,null))continue;K=y.state.strokeColorSpace,G=[K.getRgbHex(G,0)],Q=T.setStrokeRGBColor;break;case T.setFillGray:if(!Ne(G,null))continue;y.state.fillColorSpace=fe.gray,G=[fe.gray.getRgbHex(G,0)],Q=T.setFillRGBColor;break;case T.setStrokeGray:if(!Ne(G,null))continue;y.state.strokeColorSpace=fe.gray,G=[fe.gray.getRgbHex(G,0)],Q=T.setStrokeRGBColor;break;case T.setFillCMYKColor:if(!Ne(G,null))continue;y.state.fillColorSpace=fe.cmyk,G=[fe.cmyk.getRgbHex(G,0)],Q=T.setFillRGBColor;break;case T.setStrokeCMYKColor:if(!Ne(G,null))continue;y.state.strokeColorSpace=fe.cmyk,G=[fe.cmyk.getRgbHex(G,0)],Q=T.setStrokeRGBColor;break;case T.setFillRGBColor:if(!Ne(G,null))continue;y.state.fillColorSpace=fe.rgb,G=[fe.rgb.getRgbHex(G,0)];break;case T.setStrokeRGBColor:if(!Ne(G,null))continue;y.state.strokeColorSpace=fe.rgb,G=[fe.rgb.getRgbHex(G,0)];break;case T.setFillColorN:if(K=y.state.patternFillColorSpace,!K){if(Ne(G,null)){G=[fe.gray.getRgbHex(G,0)],Q=T.setFillRGBColor;break}G=[],Q=T.setFillTransparent;break}if(K.name==="Pattern"){if(!Array.isArray(G))continue;P(h.handleColorN(s,T.setFillColorN,G,K,v,a,i,p,g,b,f));return}if(!Ne(G,null))continue;G=[K.getRgbHex(G,0)],Q=T.setFillRGBColor;break;case T.setStrokeColorN:if(K=y.state.patternStrokeColorSpace,!K){if(Ne(G,null)){G=[fe.gray.getRgbHex(G,0)],Q=T.setStrokeRGBColor;break}G=[],Q=T.setStrokeTransparent;break}if(K.name==="Pattern"){if(!Array.isArray(G))continue;P(h.handleColorN(s,T.setStrokeColorN,G,K,v,a,i,p,g,b,f));return}if(!Ne(G,null))continue;G=[K.getRgbHex(G,0)],Q=T.setStrokeRGBColor;break;case T.shadingFill:let X;try{let L=a.get("Shading");if(!L)throw new V("No shading resource found");if(X=L.get(G[0].name),!X)throw new V("No shading object found")}catch(L){if(L instanceof yi)continue;if(h.options.ignoreErrors){E(`getOperatorList - ignoring Shading: "${L}".`);continue}throw L}let et=h.parseShading({shading:X,resources:a,localColorSpaceCache:p,localShadingPatternCache:b});if(!et)continue;G=[et],Q=T.shadingFill;break;case T.setGState:if(B=G[0]instanceof Z,z=G[0].name,B){let L=m.getByName(z);if(L){L.length>0&&s.addOp(T.setGState,[L]),G=null;continue}}P(new Promise(function(L,H){if(!B)throw new V("GState must be referred to by name.");let J=a.get("ExtGState");if(!(J instanceof _))throw new V("ExtGState should be a dictionary.");let ft=J.get(z);if(!(ft instanceof _))throw new V("GState should be a dictionary.");h.setGState({resources:a,gState:ft,operatorList:s,cacheKey:z,task:i,stateManager:y,localGStateCache:m,localColorSpaceCache:p,seenRefs:f}).then(L,H)}).catch(L=>{if(!(L instanceof yi))if(h.options.ignoreErrors)E(`getOperatorList - ignoring ExtGState: "${L}".`);else throw L}));return;case T.setLineWidth:{let[L]=G;if(typeof L!="number"){E(`Invalid setLineWidth: ${L}`);continue}G[0]=Math.abs(L);break}case T.setDash:{let L=G[1];if(typeof L!="number"){E(`Invalid setDash: ${L}`);continue}let H=G[0];if(!Array.isArray(H)){E(`Invalid setDash: ${H}`);continue}H.some(J=>typeof J!="number")&&(G[0]=H.filter(J=>typeof J=="number"));break}case T.moveTo:case T.lineTo:case T.curveTo:case T.curveTo2:case T.curveTo3:case T.closePath:case T.rectangle:h.buildPath(Q,G,y.state);continue;case T.stroke:case T.closeStroke:case T.fill:case T.eoFill:case T.fillStroke:case T.eoFillStroke:case T.closeFillStroke:case T.closeEOFillStroke:case T.endPath:{let{state:{pathBuffer:L,pathMinMax:H}}=y;(Q===T.closeStroke||Q===T.closeFillStroke||Q===T.closeEOFillStroke)&&L.push(Ee.closePath),L.length===0?s.addOp(T.constructPath,[Q,[null],null]):(s.addOp(T.constructPath,[Q,[new Float32Array(L)],H.slice()]),L.length=0,H.set(Ds,0));continue}case T.setTextMatrix:s.addOp(Q,[new Float32Array(G)]);continue;case T.markPoint:case T.markPointProps:case T.beginCompat:case T.endCompat:continue;case T.beginMarkedContentProps:if(j++,!(G[0]instanceof Z)){E(`Expected name for beginMarkedContentProps arg0=${G[0]}`),s.addOp(T.beginMarkedContentProps,["OC",null]);continue}if(G[0].name==="OC"){P(h.parseMarkedContentProps(G[1],a).then(L=>{s.addOp(T.beginMarkedContentProps,["OC",L])}).catch(L=>{if(!(L instanceof yi))if(h.options.ignoreErrors)E(`getOperatorList - ignoring beginMarkedContentProps: "${L}".`),s.addOp(T.beginMarkedContentProps,["OC",null]);else throw L}));return}G=[G[0].name,G[1]instanceof _?G[1].get("MCID"):null];break;case T.beginMarkedContent:if(G?.some(Gf)){E(`getOperatorList - ignoring operator: ${Q}`);continue}j++;break;case T.endMarkedContent:if(G?.some(Gf)){E(`getOperatorList - ignoring operator: ${Q}`);continue}if(j===0)continue;j--;break;default:if(G?.some(Gf)){E(`getOperatorList - ignoring operator: ${Q}`);continue}}s.addOp(Q,G)}tt?P(Jd):(S(),A(),M())},"promiseBody")).catch(C=>{if(!(C instanceof yi))if(this.options.ignoreErrors)E(`getOperatorList - ignoring errors during "${i.name}" task: "${C}".`),S(),A();else throw C})}async getTextContent({stream:e,task:i,resources:a,stateManager:s=null,includeMarkedContent:n=!1,sink:r,seenStyles:l=new Set,viewBox:o,lang:f=null,disableNormalization:h=!1,keepWhiteSpace:c=!1,prevRefs:u=null,intersector:p=null}){if(e.isAsync){let ut=await e.asyncGetBytes();ut&&(e=new Me(ut,0,ut.length,e.dict))}r??=$d(null);let m=e.dict?.objId,g=new we(u);if(m){if(u?.has(m))throw Error(`getTextContent - ignoring circular reference: ${m}`);g.put(m)}a||=_.empty,s||=new wo(new r5);let b=0,w=null,v={items:[],styles:Object.create(null),lang:f},y={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,prevTextRise:0,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},x=[" "," "],q=0;function j(ut){let bt=(q+1)%2,ct=x[q]!==" "&&x[bt]===" ";return x[q]=ut,q=bt,!c&&ct}d(j,"saveLastChar");function A(){return!c&&x[q]!==" "&&x[(q+1)%2]===" "}d(A,"shouldAddWhitepsace");function S(){x[0]=x[1]=" ",q=0}d(S,"resetLastChars");let C=.25,M=this,O=this.xref,P=[],$=null,tt=new zd,K=new Ud,z=new Ro(e,O,s),B,G;function Q({width:ut=0,height:bt=0,transform:ct=y.prevTransform,fontName:_t=y.fontName}){p?.addExtraChar(" "),v.items.push({str:" ",dir:"ltr",width:ut,height:bt,transform:ct,fontName:_t,hasEOL:!1})}d(Q,"pushWhitespace");function yt(){let ut=B.font,bt=[B.fontSize*B.textHScale,0,0,B.fontSize,0,B.textRise];if(ut.isType3Font&&(B.fontSize<=1||ut.isCharBBox)&&!jn(B.fontMatrix,pn)){let ct=ut.bbox[3]-ut.bbox[1];ct>0&&(bt[3]*=ct*B.fontMatrix[3])}return oe.transform(B.ctm,oe.transform(B.textMatrix,bt))}d(yt,"getCurrentTextTransform");function It(){if(y.initialized)return y;let{font:ut,loadedName:bt}=B;if(!l.has(bt)&&(l.add(bt),v.styles[bt]={fontFamily:ut.fallbackName,ascent:ut.ascent,descent:ut.descent,vertical:ut.vertical},M.options.fontExtraProperties&&ut.systemFontInfo)){let kt=v.styles[bt];kt.fontSubstitution=ut.systemFontInfo.css,kt.fontSubstitutionLoadedName=ut.systemFontInfo.loadedName}y.fontName=bt;let ct=y.transform=yt();ut.vertical?(y.width=y.totalWidth=Math.hypot(ct[0],ct[1]),y.height=y.totalHeight=0,y.vertical=!0):(y.width=y.totalWidth=0,y.height=y.totalHeight=Math.hypot(ct[2],ct[3]),y.vertical=!1);let _t=Math.hypot(B.textLineMatrix[0],B.textLineMatrix[1]),zt=Math.hypot(B.ctm[0],B.ctm[1]);y.textAdvanceScale=zt*_t;let{fontSize:Yt}=B;return y.trackingSpaceMin=Yt*.102,y.notASpace=Yt*.03,y.negativeSpaceMax=Yt*-.2,y.spaceInFlowMin=Yt*.102,y.spaceInFlowMax=Yt*.6,y.hasEOL=!1,y.initialized=!0,y}d(It,"ensureTextContentItem");function Lt(){if(!y.initialized)return;let ut=Math.hypot(B.textLineMatrix[0],B.textLineMatrix[1]),bt=Math.hypot(B.ctm[0],B.ctm[1])*ut;bt!==y.textAdvanceScale&&(y.vertical?(y.totalHeight+=y.height*y.textAdvanceScale,y.height=0):(y.totalWidth+=y.width*y.textAdvanceScale,y.width=0),y.textAdvanceScale=bt)}d(Lt,"updateAdvanceScale");function Pt(ut){let bt=ut.str.join("");h||(bt=Xg(bt));let ct=au(bt,-1,ut.vertical);return{str:ct.str,dir:ct.dir,width:Math.abs(ut.totalWidth),height:Math.abs(ut.totalHeight),transform:ut.transform,fontName:ut.fontName,hasEOL:ut.hasEOL}}d(Pt,"runBidiTransform");async function X(ut,bt){let ct=await M.loadFont(ut,bt,a,i,null,null,g);B.loadedName=ct.loadedName,B.font=ct.font,B.fontMatrix=ct.font.fontMatrix||pn}d(X,"handleSetFont");function et(ut,bt,ct){let _t=Math.hypot(ct[0],ct[1]);return[(ct[0]*ut+ct[1]*bt)/_t,(ct[2]*ut+ct[3]*bt)/_t]}d(et,"applyInverseRotation");function L(ut){let bt=yt(),ct=bt[4],_t=bt[5];if(B.font?.vertical){if(ct<o[0]||ct>o[2]||_t+ut<o[1]||_t>o[3])return!1}else if(ct+ut<o[0]||ct>o[2]||_t<o[1]||_t>o[3])return!1;if(!B.font||!y.prevTransform)return!0;let zt=y.prevTransform[4],Yt=y.prevTransform[5];if(zt===ct&&Yt===_t)return!0;let kt=-1;switch(bt[0]&&bt[1]===0&&bt[2]===0?kt=bt[0]>0?0:180:bt[1]&&bt[0]===0&&bt[3]===0&&(kt=bt[1]>0?90:270),kt){case 0:break;case 90:[ct,_t]=[_t,ct],[zt,Yt]=[Yt,zt];break;case 180:[ct,_t,zt,Yt]=[-ct,-_t,-zt,-Yt];break;case 270:[ct,_t]=[-_t,-ct],[zt,Yt]=[-Yt,-zt];break;default:[ct,_t]=et(ct,_t,bt),[zt,Yt]=et(zt,Yt,y.prevTransform)}if(B.font.vertical){let Kt=(Yt-_t)/y.textAdvanceScale,Et=ct-zt,re=Math.sign(y.height||y.totalHeight);return Kt<re*y.negativeSpaceMax?Math.abs(Et)>.5*y.width?(J(),!0):(S(),ot(),!0):Math.abs(Et)>y.width?(J(),!0):(Kt<=re*y.notASpace&&S(),Kt<=re*y.trackingSpaceMin?A()?(S(),ot(),Q({height:Math.abs(Kt)})):y.height+=Kt:ft(Kt,y.prevTransform,re)||(y.str.length===0?(S(),Q({height:Math.abs(Kt)})):y.height+=Kt),Math.abs(Et)>y.width*C&&ot(),!0)}let jt=(ct-zt)/y.textAdvanceScale,dt=_t-Yt,xt=Math.sign(y.width||y.totalWidth);if(jt<xt*y.negativeSpaceMax)return Math.abs(dt)>.5*y.height?(J(),!0):(S(),ot(),!0);let Mt=B.textRise-y.prevTextRise,Zt=Mt===0?dt:dt-bt[3]/B.fontSize*Mt;return Math.abs(Zt)>y.height?(J(),!0):(jt<=xt*y.notASpace&&S(),jt<=xt*y.trackingSpaceMin?A()?(S(),ot(),Q({width:Math.abs(jt)})):y.width+=jt:ft(jt,y.prevTransform,xt)||(y.str.length===0?(S(),Q({width:Math.abs(jt)})):y.width+=jt),Math.abs(dt)>y.height*C&&ot(),!0)}d(L,"compareWithLastPosition");function H({chars:ut,extraSpacing:bt}){G!==B&&(G.fontSize!==B.fontSize||G.fontName!==B.fontName&&(G.font.name!==B.font.name||G.font.vertical!==B.font.vertical))&&(ot(),G=B.clone());let ct=B.font,_t=ct.vertical?-B.charSpacing:B.charSpacing;if(!ut){let kt=_t+bt;kt&&(ct.vertical?B.translateTextMatrix(0,-kt):B.translateTextMatrix(kt*B.textHScale,0)),c&&L(0);return}let zt=ct.charsToGlyphs(ut),Yt=B.fontMatrix[0]*B.fontSize;for(let kt=0,jt=zt.length;kt<jt;kt++){let dt=zt[kt],{category:xt,originalCharCode:Mt}=dt;if(xt.isInvisibleFormatMark)continue;let Zt=_t+(kt+1===jt?bt:0),Kt=(ct.vertical?dt.vmetric[0]:dt.width)*Yt;if(Mt===32&&(Zt+=B.wordSpacing),!c&&xt.isWhitespace){ct.vertical?(Zt+=-Kt,B.translateTextMatrix(0,-Zt)):(Zt+=Kt,B.translateTextMatrix(Zt*B.textHScale,0)),j(" ");continue}if(!xt.isZeroWidthDiacritic&&!L(Kt)){ct.vertical?B.translateTextMatrix(0,Kt):B.translateTextMatrix(Kt*B.textHScale,0);continue}let Et=It();xt.isZeroWidthDiacritic&&(Kt=0),ct.vertical?(p?.addGlyph(yt(),0,Kt,dt.unicode),B.translateTextMatrix(0,Kt),Kt=Math.abs(Kt),Et.height+=Kt):(Kt*=B.textHScale,p?.addGlyph(yt(),Kt,0,dt.unicode),B.translateTextMatrix(Kt,0),Et.width+=Kt),Kt&&(Et.prevTransform=yt(),Et.prevTextRise=B.textRise);let re=dt.unicode;j(re)&&(Et.str.push(" "),p?.addExtraChar(" ")),p||Et.str.push(re),Zt&&(ct.vertical?B.translateTextMatrix(0,-Zt):B.translateTextMatrix(Zt*B.textHScale,0))}}d(H,"buildTextContentItem");function J(){p?.addExtraChar(`
|
|
26
|
+
`),S(),y.initialized?(y.hasEOL=!0,ot()):v.items.push({str:"",dir:"ltr",width:0,height:0,transform:yt(),fontName:B.loadedName,hasEOL:!0})}d(J,"appendEOL");function ft(ut,bt,ct){if(ct*y.spaceInFlowMin<=ut&&ut<=ct*y.spaceInFlowMax)return y.initialized&&(S(),y.str.push(" "),p?.addExtraChar(" ")),!1;let _t=y.fontName,zt=0;return y.vertical&&(zt=ut,ut=0),ot(),S(),Q({width:Math.abs(ut),height:Math.abs(zt),transform:bt||yt(),fontName:_t}),!0}d(ft,"addFakeSpaces");function ot(){y.initialized&&y.str&&(y.vertical?y.totalHeight+=y.height*y.textAdvanceScale:y.totalWidth+=y.width*y.textAdvanceScale,v.items.push(Pt(y)),y.initialized=!1,y.str.length=0)}d(ot,"flushTextContentItem");function at(ut=0){if(!(!n||b<=ut))for(ot();b>ut;b--)v.items.push({type:"endMarkedContent"})}d(at,"closePendingMarkedContentItems");function At(ut=!1){let bt=v.items.length;bt!==0&&(ut&&bt<10||(r.enqueue(v,bt),v.items=[],v.styles=Object.create(null)))}d(At,"enqueueChunk");let $t=new Qd;return new Promise(d(function ut(bt,ct){let _t=d(function(xt){At(!0),Promise.all([xt,r.ready]).then(function(){try{ut(bt,ct)}catch(Mt){ct(Mt)}},ct)},"next");i.ensureNotTerminated(),$t.reset();let zt={},Yt,kt,jt,dt=[];for(;!(Yt=$t.check())&&(dt.length=0,zt.args=dt,z.read(zt));){B=s.state,G||=B.clone();let xt=zt.fn;switch(dt=zt.args,xt|0){case T.setFont:let Mt=dt[0].name,Zt=dt[1];if(B.font&&Mt===B.fontName&&Zt===B.fontSize)break;B.fontName=Mt,B.fontSize=Zt,_t(X(Mt,null));return;case T.setTextRise:B.textRise=dt[0];break;case T.setHScale:B.textHScale=dt[0]/100;break;case T.setLeading:B.leading=dt[0];break;case T.moveText:B.translateTextLineMatrix(dt[0],dt[1]),B.textMatrix=B.textLineMatrix.slice();break;case T.setLeadingMoveText:B.leading=-dt[1],B.translateTextLineMatrix(dt[0],dt[1]),B.textMatrix=B.textLineMatrix.slice();break;case T.nextLine:B.carriageReturn();break;case T.setTextMatrix:B.setTextMatrix(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5]),B.setTextLineMatrix(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5]),Lt();break;case T.setCharSpacing:B.charSpacing=dt[0];break;case T.setWordSpacing:B.wordSpacing=dt[0];break;case T.beginText:B.textMatrix=wa.slice(),B.textLineMatrix=wa.slice(),w=b;break;case T.endText:w!==null&&(at(w),w=null);break;case T.showSpacedText:if(!s.state.font){M.ensureStateFont(s.state);continue}let Kt=(B.font.vertical?1:-1)*B.fontSize/1e3;for(let Et of dt[0])if(typeof Et=="string")P.push(Et);else if(typeof Et=="number"&&Et!==0){let re=P.join("");P.length=0,H({chars:re,extraSpacing:Et*Kt})}if(P.length>0){let Et=P.join("");P.length=0,H({chars:Et,extraSpacing:0})}break;case T.showText:if(!s.state.font){M.ensureStateFont(s.state);continue}H({chars:dt[0],extraSpacing:0});break;case T.nextLineShowText:if(!s.state.font){M.ensureStateFont(s.state);continue}B.carriageReturn(),H({chars:dt[0],extraSpacing:0});break;case T.nextLineSetSpacingShowText:if(!s.state.font){M.ensureStateFont(s.state);continue}B.wordSpacing=dt[0],B.charSpacing=dt[1],B.carriageReturn(),H({chars:dt[2],extraSpacing:0});break;case T.paintXObject:if(ot(),$??=a.get("XObject")||_.empty,jt=dt[0]instanceof Z,kt=dt[0].name,jt&&tt.getByName(kt))break;_t(new Promise(function(Et,re){if(!jt)throw new V("XObject must be referred to by name.");let ue=$.getRaw(kt);if(ue instanceof it){if(tt.getByRef(ue)||M.globalImageCache.getData(ue,M.pageIndex)){Et();return}ue=O.fetch(ue)}if(!(ue instanceof Bt))throw new V("XObject should be a stream");let{dict:li}=ue,gs=li.get("Subtype");if(!(gs instanceof Z))throw new V("XObject should have a Name subtype");if(gs.name!=="Form"){tt.set(kt,li.objId,!0),Et();return}let Fn=new wo(s.state.clone()),Pl=os(li.getArray("Matrix"),null);Pl&&Fn.transform(Pl);let Bl=li.get("Resources");At();let wr=$d(r);M.getTextContent({stream:ue,task:i,resources:Bl instanceof _?Bl:a,stateManager:Fn,includeMarkedContent:n,sink:wr,seenStyles:l,viewBox:o,lang:f,disableNormalization:h,keepWhiteSpace:c,prevRefs:g}).then(function(){wr.enqueueInvoked||tt.set(kt,li.objId,!0),Et()},re)}).catch(Et=>{if(!(Et instanceof yi))if(M.options.ignoreErrors)E(`getTextContent - ignoring XObject: "${Et}".`);else throw Et}));return;case T.setGState:if(jt=dt[0]instanceof Z,kt=dt[0].name,jt&&K.getByName(kt))break;_t(new Promise(function(Et,re){if(!jt)throw new V("GState must be referred to by name.");let ue=a.get("ExtGState");if(!(ue instanceof _))throw new V("ExtGState should be a dictionary.");let li=ue.get(kt);if(!(li instanceof _))throw new V("GState should be a dictionary.");let gs=li.get("Font");gs?(ot(),B.fontName=null,B.fontSize=gs[1],X(null,gs[0]).then(Et,re)):(K.set(kt,li.objId,!0),Et())}).catch(Et=>{if(!(Et instanceof yi))if(M.options.ignoreErrors)E(`getTextContent - ignoring ExtGState: "${Et}".`);else throw Et}));return;case T.beginMarkedContent:ot(),n&&(b++,v.items.push({type:"beginMarkedContent",tag:dt[0]instanceof Z?dt[0].name:null}));break;case T.beginMarkedContentProps:if(ot(),n){b++;let Et=dt[1]instanceof _?dt[1].get("MCID"):null;v.items.push({type:"beginMarkedContentProps",id:Number.isInteger(Et)?`${M.idFactory.getPageObjId()}_mc${Et}`:null,tag:dt[0]instanceof Z?dt[0].name:null})}break;case T.endMarkedContent:if(ot(),n){if(b===0)break;b--,v.items.push({type:"endMarkedContent"})}}if(v.items.length>=r.desiredSize){Yt=!0;break}}Yt?_t(Jd):(ot(),at(),At(),bt())},"promiseBody")).catch(ut=>{if(!(ut instanceof yi))if(this.options.ignoreErrors)E(`getTextContent - ignoring errors during "${i.name}" task: "${ut}".`),ot(),at(),At();else throw ut})}async extractDataStructures(e,i){let a=this.xref,s,n=this.readToUnicode(i.toUnicode);if(i.composite){let u=e.get("CIDSystemInfo");u instanceof _&&!i.cidSystemInfo&&(i.cidSystemInfo={registry:Wt(u.get("Registry")),ordering:Wt(u.get("Ordering")),supplement:u.get("Supplement")});try{let p=e.get("CIDToGIDMap");p instanceof Bt&&(s=p.getBytes())}catch(p){if(!this.options.ignoreErrors)throw p;E(`extractDataStructures - ignoring CIDToGIDMap data: "${p}".`)}}let r=new Map,l=null,o;if(e.has("Encoding")){if(o=e.get("Encoding"),o instanceof _){if(l=o.get("BaseEncoding"),l=l instanceof Z?l.name:null,o.has("Differences")){let u=o.get("Differences"),p=0;for(let m of u){let g=a.fetchIfRef(m);if(typeof g=="number")p=g;else if(g instanceof Z)r.set(p++,g.name);else throw new V(`Invalid entry in 'Differences' array: ${g}`)}}}else if(o instanceof Z)l=o.name;else{let u="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new V(u);E(u)}l!=="MacRomanEncoding"&&l!=="MacExpertEncoding"&&l!=="WinAnsiEncoding"&&(l=null)}let f=!i.file||i.isInternalFont,h=Hh()[i.name];if(l&&f&&h&&(l=null),l==="WinAnsiEncoding"&&f&&i.name?.charCodeAt(0)>=183){let u=i.name;["\xCB\xCE\xCC\xE5","\xBA\xDA\xCC\xE5","\xBF\xAC\xCC\xE5","\xB7\xC2\xCB\xCE","\xBF\xAC\xCC\xE5_GB2312","\xB7\xC2\xCB\xCE_GB2312","\xC1\xA5\xCA\xE9","\xD0\xC2\xCB\xCE","\xB7\xC2\xCB\xCE\xCC\xE5","\xD0\xA1\xB1\xEA\xCB\xCE"].includes(u)&&(l=null,i.defaultEncoding="Adobe-GB1-UCS2",i.composite=!0,i.cidEncoding=Z.get("GBK-EUC-H"),i.cMap=await vr.create({encoding:i.cidEncoding,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),i.vertical=i.cMap.vertical,i.cidSystemInfo={registry:"Adobe",ordering:"GB1",supplement:0})}if(l)i.defaultEncoding=ml(l);else{let u=!!(i.flags&ia.Symbolic),p=!!(i.flags&ia.Nonsymbolic);i.type==="TrueType"&&u&&p&&r.size&&(i.flags&=~ia.Symbolic,u=!1),o=cs,i.type==="TrueType"&&!p&&(o=pl),(u||h)&&(o=Xc,f&&(/Symbol/i.test(i.name)?o=Xo:/Dingbats/i.test(i.name)?o=Yc:/Wingdings/i.test(i.name)&&(o=pl))),i.defaultEncoding=o}i.differences=r,i.baseEncodingName=l,i.hasEncoding=!!l||!!r.size,i.dict=e,i.toUnicode=await n;let c=await this.buildToUnicode(i);return i.toUnicode=c,s&&(i.cidToGidMap=this.readCidToGidMap(s,c)),i}_simpleFontToUnicode(e,i=!1){Le(!e.composite,"Must be a simple font.");let a=new Map,s=e.defaultEncoding.slice(),n=e.baseEncodingName;for(let[l,o]of e.differences)o!==".notdef"&&(s[l]=o);let r=Ea();for(let l in s){let o=s[l];if(o==="")continue;let f=r[o];if(f!==void 0){a.set(+l,String.fromCharCode(f));continue}let h=0;switch(o[0]){case"G":o.length===3&&(h=parseInt(o.substring(1),16));break;case"g":o.length===5&&(h=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){let c=o.substring(1);if(i){h=parseInt(c,16);break}if(h=+c,Number.isNaN(h)&&Number.isInteger(parseInt(c,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":f=or(o,r),f!==-1&&(h=f);break;default:switch(o){case"f_h":case"f_t":case"T_h":a.set(+l,o.replaceAll("_",""));continue}}if(h>0&&h<=1114111&&Number.isInteger(h)){if(n&&h===+l){let c=ml(n);if(c&&(o=c[l])){a.set(+l,String.fromCharCode(r[o]));continue}}a.set(+l,String.fromCodePoint(h))}}return a}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode?.size,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new zr(this._simpleFontToUnicode(e));if(e.cMap.builtInCMap&&!(e.cMap instanceof tl)||e.cidSystemInfo?.registry==="Adobe"&&(e.cidSystemInfo.ordering==="GB1"||e.cidSystemInfo.ordering==="CNS1"||e.cidSystemInfo.ordering==="Japan1"||e.cidSystemInfo.ordering==="Korea1")){let{registry:i,ordering:a}=e.cidSystemInfo,s=Z.get(`${i}-${a}-UCS2`),n=await vr.create({encoding:s,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),r=new Map,l=[];return e.cMap.forEach((o,f)=>{if(f>65535)throw new V("Max size of CID is 65,535");let h=n.lookup(f);if(h){l.length=0;for(let c=0,u=h.length;c<u;c+=2)l.push((h.charCodeAt(c)<<8)+h.charCodeAt(c+1));r.set(o,String.fromCharCode(...l))}}),new zr(r)}return new ga(e.firstChar,e.lastChar)}async readToUnicode(e){if(!e)return null;if(e instanceof Z){let i=await vr.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return i instanceof tl?new ga(0,65535):new zr(i.getMap())}if(e instanceof Bt)try{let i=await vr.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(i instanceof tl)return new ga(0,65535);let a=new Map;return i.forEach((s,n)=>{if(typeof n=="number"){a.set(s,String.fromCodePoint(n));return}n.length%2!=0&&(n="\0"+n);let r=[];for(let l=0;l<n.length;l+=2){let o=n.charCodeAt(l)<<8|n.charCodeAt(l+1);if((o&63488)!=55296){r.push(o);continue}l+=2;let f=n.charCodeAt(l)<<8|n.charCodeAt(l+1);r.push(((o&1023)<<10)+(f&1023)+65536)}a.set(s,String.fromCodePoint(...r))}),new zr(a)}catch(i){if(i instanceof yi)return null;if(this.options.ignoreErrors)return E(`readToUnicode - ignoring ToUnicode data: "${i}".`),null;throw i}return null}readCidToGidMap(e,i){let a=new Map;for(let s=0,n=e.length;s<n;s++){let r=e[s++]<<8|e[s],l=s>>1;(r!==0||i.has(l))&&a.set(l,r)}return a}extractWidths(e,i,a){let s=this.xref,n=[],r=0,l=[],o;if(a.composite){let c=e.get("DW");r=typeof c=="number"?Math.ceil(c):1e3;let u=e.get("W");if(Array.isArray(u))for(let p=0,m=u.length;p<m;p++){let g=s.fetchIfRef(u[p++]);if(!Number.isInteger(g))break;let b=s.fetchIfRef(u[p]);if(Array.isArray(b))for(let w of b){let v=s.fetchIfRef(w);typeof v=="number"&&(n[g]=v),g++}else if(Number.isInteger(b)){let w=s.fetchIfRef(u[++p]);if(typeof w!="number")continue;for(let v=g;v<=b;v++)n[v]=w}else break}if(a.vertical){let p=e.getArray("DW2"),m=Ne(p,2)?p:[880,-1e3];if(o=[m[1],r*.5,m[0]],m=e.get("W2"),Array.isArray(m))for(let g=0,b=m.length;g<b;g++){let w=s.fetchIfRef(m[g++]);if(!Number.isInteger(w))break;let v=s.fetchIfRef(m[g]);if(Array.isArray(v))for(let y=0,x=v.length;y<x;y++){let q=[s.fetchIfRef(v[y++]),s.fetchIfRef(v[y++]),s.fetchIfRef(v[y])];Ne(q,null)&&(l[w]=q),w++}else if(Number.isInteger(v)){let y=[s.fetchIfRef(m[++g]),s.fetchIfRef(m[++g]),s.fetchIfRef(m[++g])];if(!Ne(y,null))continue;for(let x=w;x<=v;x++)l[x]=y}else break}}}else{let c=e.get("Widths");if(Array.isArray(c)){let u=a.firstChar;for(let m of c){let g=s.fetchIfRef(m);typeof g=="number"&&(n[u]=g),u++}let p=i.get("MissingWidth");r=typeof p=="number"?p:0}else{let u=e.get("BaseFont");if(u instanceof Z){let p=this.getBaseFontMetrics(u.name);n=this.buildCharCodeToWidth(p.widths,a),r=p.defaultWidth}}}let f=!0,h=r;for(let c in n){let u=n[c];if(u){if(!h)h=u;else if(h!==u){f=!1;break}}}f?a.flags|=ia.FixedPitch:a.flags&=~ia.FixedPitch,a.defaultWidth=r,a.widths=n,a.defaultVMetrics=o,a.vmetrics=l}isSerifFont(e){let i=e.split("-",1)[0];return i in tu()||/serif/i.test(i)}getBaseFontMetrics(e){let i=0,a=Object.create(null),s=!1,n=Hs(e);n=gl()[n]||n;let r=x2(),l=r[n]??r[this.isSerifFont(e)?"Times-Roman":"Helvetica"];return typeof l=="number"?(i=l,s=!0):a=l(),{defaultWidth:i,monospace:s,widths:a}}buildCharCodeToWidth(e,i){let a=Object.create(null),s=i.differences,n=i.defaultEncoding;for(let r=0;r<256;r++){let l=s.has(r)&&e[s.get(r)]||r in n&&e[n[r]];l&&(a[r]=l)}return a}preEvaluateFont(e){let i=e,a=e.get("Subtype");if(!(a instanceof Z))throw new V("invalid font Subtype");let s=!1,n;if(a.name==="Type0"){let h=e.get("DescendantFonts");if(!h)throw new V("Descendant fonts are not specified");if(e=Array.isArray(h)?this.xref.fetchIfRef(h[0]):h,!(e instanceof _))throw new V("Descendant font is not a dictionary.");if(a=e.get("Subtype"),!(a instanceof Z))throw new V("invalid font Subtype");s=!0}let r=e.get("FirstChar");Number.isInteger(r)||(r=0);let l=e.get("LastChar");Number.isInteger(l)||(l=s?65535:255);let o=e.get("FontDescriptor"),f=e.get("ToUnicode")||i.get("ToUnicode");if(o){n=new o0;let h=i.getRaw("Encoding");if(h instanceof Z)n.update(h.name);else if(h instanceof it)n.update(h.toString());else if(h instanceof _){for(let u of h.getRawValues())if(u instanceof Z)n.update(u.name);else if(u instanceof it)n.update(u.toString());else if(Array.isArray(u)){let p=u.length,m=Array(p);for(let g=0;g<p;g++){let b=u[g];b instanceof Z?m[g]=b.name:(typeof b=="number"||b instanceof it)&&(m[g]=b.toString())}n.update(m.join())}}if(n.update(`${r}-${l}`),f instanceof Bt){let u=f.stream||f,p=u.buffer?new Uint8Array(u.buffer.buffer,0,u.bufferLength):new Uint8Array(u.bytes.buffer,u.start,u.end-u.start);n.update(p)}else f instanceof Z&&n.update(f.name);let c=e.get("Widths")||i.get("Widths");if(Array.isArray(c)){let u=[];for(let p of c)(typeof p=="number"||p instanceof it)&&u.push(p.toString());n.update(u.join())}if(s){n.update("compositeFont");let u=e.get("W")||i.get("W");if(Array.isArray(u)){let m=[];for(let g of u)if(typeof g=="number"||g instanceof it)m.push(g.toString());else if(Array.isArray(g)){let b=[];for(let w of g)(typeof w=="number"||w instanceof it)&&b.push(w.toString());m.push(`[${b.join()}]`)}n.update(m.join())}let p=e.getRaw("CIDToGIDMap")||i.getRaw("CIDToGIDMap");p instanceof Z?n.update(p.name):p instanceof it?n.update(p.toString()):p instanceof Bt&&n.update(p.peekBytes())}if(a.name==="Type3"){let u=i.get("CharProcs");if(u instanceof _)for(let[p,m]of u.getRawEntries())n.update(m instanceof it?`${p}\0${m}`:p)}}return{descriptor:o,dict:e,baseDict:i,composite:s,type:a.name,firstChar:r,lastChar:l,toUnicode:f,hash:n?n.hexdigest():""}}async translateFont({descriptor:e,dict:i,baseDict:a,composite:s,type:n,firstChar:r,lastChar:l,toUnicode:o,cssFontInfo:f}){let h=n==="Type3";if(!e)if(h)e=_.empty;else if(s)e=_.empty;else{let Q=i.get("BaseFont");if(!(Q instanceof Z))throw new V("Base font is not specified");Q=Hs(Q.name);let yt=this.getBaseFontMetrics(Q),It=Q.split("-",1)[0],Lt=(this.isSerifFont(It)?ia.Serif:0)|(yt.monospace?ia.FixedPitch:0)|(Hh()[It]?ia.Symbolic:ia.Nonsymbolic),Pt={type:n,name:Q,loadedName:a.loadedName,systemFontInfo:null,widths:yt.widths,defaultWidth:yt.defaultWidth,isSimulatedFlags:!0,flags:Lt,firstChar:r,lastChar:l,toUnicode:o,xHeight:0,capHeight:0,italicAngle:0,isType3Font:h},X=i.get("Widths"),et=Ff(Q),L=null;et&&(L=await this.fetchStandardFontData(et),Pt.isInternalFont=!!L),!Pt.isInternalFont&&this.options.useSystemFonts&&(Pt.systemFontInfo=zf(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,Q,et,n));let H=await this.extractDataStructures(i,Pt);if(Array.isArray(X)){let J=[],ft=r;for(let ot of X){let at=this.xref.fetchIfRef(ot);typeof at=="number"&&(J[ft]=at),ft++}H.widths=J}else H.widths=this.buildCharCodeToWidth(yt.widths,H);return new Od(Q,L,H,this.options)}let c=e.get("FontName"),u=i.get("BaseFont");typeof c=="string"&&(c=Z.get(c)),typeof u=="string"&&(u=Z.get(u));let p=c?.name,m=u?.name;if(h?p||(c=Z.get(n)):p!==m&&(de(`The FontDescriptor's FontName is "${p}" but should be the same as the Font's BaseFont "${m}".`),p&&m&&(m.startsWith(p)||!xd(p)&&xd(m))&&(c=null),c||=u),!(c instanceof Z))throw new V("invalid font name");let g,b,w,v,y,x;try{for(let Q of["FontFile","FontFile2","FontFile3"])if(g=e.get(Q),g){b=Q;break}if(g)if(g instanceof Bt){if(g.isAsync){let Q=await g.asyncGetBytes();Q&&(g=new Me(Q,0,Q.length,g.dict))}if(g.isEmpty)throw new V("FontFile is empty")}else throw new V("FontFile should be a stream")}catch(Q){if(!this.options.ignoreErrors)throw Q;E(`translateFont - fetching "${c.name}" font file: "${Q}".`),g=null}let q=!1,j=null,A=null;if(g){if(g.dict){let Q=g.dict.get("Subtype");Q instanceof Z&&(w=Q.name),v=g.dict.get("Length1"),y=g.dict.get("Length2"),x=g.dict.get("Length3")}}else if(f){let Q=eu(c.name);Q&&(f.fontFamily=`${f.fontFamily}-PdfJS-XFA`,f.metrics=Q.metrics||null,j=Q.factors||null,g=await this.fetchStandardFontData(Q.name),q=!!g,a=i=Qp(c.name),s=!0)}else if(!h){let Q=Ff(c.name);Q&&(g=await this.fetchStandardFontData(Q),q=!!g),!q&&this.options.useSystemFonts&&(A=zf(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,c.name,Q,n))}let S=os(i.getArray("FontMatrix"),pn),C=Ya(e.getArray("FontBBox")||i.getArray("FontBBox"),h?[0,0,0,0]:void 0),M=e.get("Ascent");typeof M!="number"&&(M=void 0);let O=e.get("Descent");typeof O!="number"&&(O=void 0);let P=e.get("XHeight");typeof P!="number"&&(P=0);let $=e.get("CapHeight");typeof $!="number"&&($=0);let tt=e.get("Flags");Number.isInteger(tt)||(tt=0);let K=e.get("ItalicAngle");typeof K!="number"&&(K=0);let z={type:n,name:c.name,subtype:w,file:g,fontFileN:b,length1:v,length2:y,length3:x,isInternalFont:q,loadedName:a.loadedName,composite:s,fixedPitch:!1,fontMatrix:S,firstChar:r,lastChar:l,toUnicode:o,bbox:C,ascent:M,descent:O,xHeight:P,capHeight:$,flags:tt,italicAngle:K,isType3Font:h,cssFontInfo:f,scaleFactors:j,systemFontInfo:A};if(s){let Q=a.get("Encoding");Q instanceof Z&&(z.cidEncoding=Q.name),z.cMap=await vr.create({encoding:Q,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),z.vertical=z.cMap.vertical}let B=await this.extractDataStructures(i,z);this.extractWidths(i,e,B);let G=new Od(c.name,g,B,this.options);if(G.missingFile&&!G.systemFontInfo&&!h&&this.options.useSystemFonts){let Q=Ff(c.name),yt=zf(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,c.name,Q,n);yt&&(yt.guessFallback&&(yt.guessFallback=!1,yt.css+=`,${G.fallbackName}`),G.systemFontInfo=yt)}return G}static buildFontPaths(e,i,a,s){function n(r){let l=`${e.loadedName}_path_${r}`;try{let o=e.renderer.getPath(r);if(!o)return;a.send("commonobj",[l,"FontPath",o],[o])}catch(o){if(s.ignoreErrors){E(`buildFontPaths - ignoring ${l} glyph: "${o}".`);return}throw o}}d(n,"buildPath");for(let r of i){n(r.fontChar);let l=r.accent;l?.fontChar&&n(l.fontChar)}}static get fallbackFontDict(){let e=new _;return e.set("BaseFont",Z.get("Helvetica")),e.set("Type",Z.get("FallbackType")),e.set("Subtype",Z.get("FallbackType")),e.set("Encoding",Z.get("WinAnsiEncoding")),ht(this,"fallbackFontDict",e)}},Wf=class{static{d(this,"TranslatedFont")}#t=!1;#e=null;constructor({loadedName:t,font:e,dict:i}){this.loadedName=t,this.font=e,this.dict=i,this.type3Dependencies=e.isType3Font?new Set:null}send(t){if(this.#t)return;this.#t=!0;let e=this.font.exportData(),i=e.buffer?[e.buffer]:null;t.send("commonobj",[this.loadedName,"Font",e],i)}fallback(t,e){this.font.data&&(this.font.disableFontFace=!0,su.buildFontPaths(this.font,this.font.glyphCacheValues,t,e))}async loadType3Data(t,e,i,a=null){if(this.#e)return this.#e;let{dict:s,font:n,type3Dependencies:r}=this;Le(n.isType3Font,"Must be a Type3 font.");let{promise:l,resolve:o}=Promise.withResolvers();this.#e=l;let f=t.clone({ignoreErrors:!1}),h=new we(t.type3FontRefs);s.objId&&h.put(s.objId),f.type3FontRefs=h;let c=s.get("CharProcs"),u=s.get("Resources")||e,p=new Map,[m,g,b,w]=n.bbox,v=Math.hypot(b-m,w-g);for(let y of c.getKeys())try{let x=new Da;switch(await f.getOperatorList({stream:c.get(y),task:i,resources:u,operatorList:x,prevRefs:a}),x.fnArray[0]){case T.setCharWidthAndBounds:this.#i(x,v);break;case T.setCharWidth:v||this.#a(x)}p.set(y,x.getIR());for(let q of x.dependencies)r.add(q)}catch{E(`Type3 font resource "${y}" is not available.`),p.set(y,new Da().getIR())}return n.charProcOperatorList=p,this._bbox&&(n.isCharBBox=!0,n.bbox=this._bbox),o(),this.#e}#i(t,e=NaN){let i=oe.normalizeRect(t.argsArray[0].slice(2)),a=i[2]-i[0],s=i[3]-i[1];a===0||s===0?(t.fnArray.splice(0,1),t.argsArray.splice(0,1)):(e===0||Math.round(Math.hypot(a,s)/e)>=10)&&(this._bbox??=Ds.slice(),oe.rectBoundingBox(...i,this._bbox));let n=0,r=t.length;for(;n<r;){switch(t.fnArray[n]){case T.setCharWidthAndBounds:break;case T.setStrokeColorSpace:case T.setFillColorSpace:case T.setStrokeColor:case T.setStrokeColorN:case T.setFillColor:case T.setFillColorN:case T.setStrokeGray:case T.setFillGray:case T.setStrokeRGBColor:case T.setFillRGBColor:case T.setStrokeCMYKColor:case T.setFillCMYKColor:case T.shadingFill:case T.setRenderingIntent:t.fnArray.splice(n,1),t.argsArray.splice(n,1),r--;continue;case T.setGState:let[l]=t.argsArray[n],o=0,f=l.length;for(;o<f;){let[h]=l[o];switch(h){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":l.splice(o,1),f--;continue}o++}}n++}}#a(t){let e=1,i=t.length;for(;e<i;){if(t.fnArray[e]===T.constructPath){let a=t.argsArray[e][2];this._bbox??=Ds.slice(),oe.rectBoundingBox(...a,this._bbox)}e++}}},wo=class{static{d(this,"StateManager")}constructor(t=new h0){this.state=t,this.stateStack=[]}save(){let t=this.state;this.stateStack.push(this.state),this.state=t.clone()}restore(){let t=this.stateStack.pop();t&&(this.state=t)}transform(t){this.state.ctm=oe.transform(this.state.ctm,t)}},r5=class{static{d(this,"TextState")}ctm=new Float32Array(wa);fontName=null;fontSize=0;loadedName=null;font=null;fontMatrix=pn;textMatrix=wa.slice();textLineMatrix=wa.slice();charSpacing=0;wordSpacing=0;leading=0;textHScale=1;textRise=0;setTextMatrix(t,e,i,a,s,n){let r=this.textMatrix;r[0]=t,r[1]=e,r[2]=i,r[3]=a,r[4]=s,r[5]=n}setTextLineMatrix(t,e,i,a,s,n){let r=this.textLineMatrix;r[0]=t,r[1]=e,r[2]=i,r[3]=a,r[4]=s,r[5]=n}translateTextMatrix(t,e){let i=this.textMatrix;i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5]}translateTextLineMatrix(t,e){let i=this.textLineMatrix;i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){let t=Object.assign(Object.create(this),this);return t.textMatrix=this.textMatrix.slice(),t.textLineMatrix=this.textLineMatrix.slice(),t.fontMatrix=this.fontMatrix.slice(),t}},h0=class{static{d(this,"EvalState")}ctm=new Float32Array(wa);font=null;textRenderingMode=Z1.FILL;_fillColorSpace=fe.gray;_strokeColorSpace=fe.gray;patternFillColorSpace=null;patternStrokeColorSpace=null;currentPointX=0;currentPointY=0;pathMinMax=Co.slice();pathBuffer=[];get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(t){this._fillColorSpace=this.patternFillColorSpace=t}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(t){this._strokeColorSpace=this.patternStrokeColorSpace=t}clone({newPath:t=!1}={}){let e=Object.create(this);return t&&(e.pathBuffer=[],e.pathMinMax=Co.slice()),e}},Ro=class yo{static{d(this,"EvaluatorPreprocessor")}static get opMap(){return ht(this,"opMap",Object.assign(Object.create(null),{w:{id:T.setLineWidth,numArgs:1,variableArgs:!1},J:{id:T.setLineCap,numArgs:1,variableArgs:!1},j:{id:T.setLineJoin,numArgs:1,variableArgs:!1},M:{id:T.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:T.setDash,numArgs:2,variableArgs:!1},ri:{id:T.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:T.setFlatness,numArgs:1,variableArgs:!1},gs:{id:T.setGState,numArgs:1,variableArgs:!1},q:{id:T.save,numArgs:0,variableArgs:!1},Q:{id:T.restore,numArgs:0,variableArgs:!1},cm:{id:T.transform,numArgs:6,variableArgs:!1},m:{id:T.moveTo,numArgs:2,variableArgs:!1},l:{id:T.lineTo,numArgs:2,variableArgs:!1},c:{id:T.curveTo,numArgs:6,variableArgs:!1},v:{id:T.curveTo2,numArgs:4,variableArgs:!1},y:{id:T.curveTo3,numArgs:4,variableArgs:!1},h:{id:T.closePath,numArgs:0,variableArgs:!1},re:{id:T.rectangle,numArgs:4,variableArgs:!1},S:{id:T.stroke,numArgs:0,variableArgs:!1},s:{id:T.closeStroke,numArgs:0,variableArgs:!1},f:{id:T.fill,numArgs:0,variableArgs:!1},F:{id:T.fill,numArgs:0,variableArgs:!1},"f*":{id:T.eoFill,numArgs:0,variableArgs:!1},B:{id:T.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:T.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:T.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:T.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:T.endPath,numArgs:0,variableArgs:!1},W:{id:T.clip,numArgs:0,variableArgs:!1},"W*":{id:T.eoClip,numArgs:0,variableArgs:!1},BT:{id:T.beginText,numArgs:0,variableArgs:!1},ET:{id:T.endText,numArgs:0,variableArgs:!1},Tc:{id:T.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:T.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:T.setHScale,numArgs:1,variableArgs:!1},TL:{id:T.setLeading,numArgs:1,variableArgs:!1},Tf:{id:T.setFont,numArgs:2,variableArgs:!1},Tr:{id:T.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:T.setTextRise,numArgs:1,variableArgs:!1},Td:{id:T.moveText,numArgs:2,variableArgs:!1},TD:{id:T.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:T.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:T.nextLine,numArgs:0,variableArgs:!1},Tj:{id:T.showText,numArgs:1,variableArgs:!1},TJ:{id:T.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:T.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:T.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:T.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:T.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:T.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:T.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:T.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:T.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:T.setFillColor,numArgs:4,variableArgs:!0},scn:{id:T.setFillColorN,numArgs:33,variableArgs:!0},G:{id:T.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:T.setFillGray,numArgs:1,variableArgs:!1},RG:{id:T.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:T.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:T.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:T.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:T.shadingFill,numArgs:1,variableArgs:!1},BI:{id:T.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:T.beginImageData,numArgs:0,variableArgs:!1},EI:{id:T.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:T.paintXObject,numArgs:1,variableArgs:!1},MP:{id:T.markPoint,numArgs:1,variableArgs:!1},DP:{id:T.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:T.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:T.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:T.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:T.beginCompat,numArgs:0,variableArgs:!1},EX:{id:T.endCompat,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}static MAX_INVALID_PATH_OPS=10;constructor(e,i,a=new wo){this.parser=new Is({lexer:new Ma(e,yo.opMap),xref:i}),this.stateManager=a,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let i=e.args;for(;;){let a=this.parser.getObj();if(a instanceof hi){let s=a.cmd,n=yo.opMap[s];if(!n){E(`Unknown command "${s}".`);continue}let r=n.id,l=n.numArgs,o=i===null?0:i.length;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=r>=T.moveTo&&r<=T.endPath,n.variableArgs)o>l&&de(`Command ${s}: expected [0, ${l}] args, but received ${o} args.`);else{if(o!==l){let f=this.nonProcessedArgs;for(;o>l;)f.push(i.shift()),o--;for(;o<l&&f.length!==0;)i===null&&(i=[]),i.unshift(f.pop()),o++}if(o<l){let f=`command ${s}: expected ${l} args, but received ${o} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>yo.MAX_INVALID_PATH_OPS)throw new V(`Invalid ${f}`);E(`Skipping ${f}`),i!==null&&(i.length=0);continue}}return this.preprocessCommand(r,i),e.fn=r,e.args=i,!0}if(a===ki)return!1;if(a!==null&&(i===null&&(i=[]),i.push(a),i.length>33))throw new V("Too many arguments")}}preprocessCommand(e,i){switch(e|0){case T.save:this.stateManager.save();break;case T.restore:this.stateManager.restore();break;case T.transform:this.stateManager.transform(i)}}},l5=class extends Ro{static{d(this,"DefaultAppearanceEvaluator")}constructor(t){super(new qi(t))}parse(){let t={fn:0,args:[]},e={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;t.args.length=0,this.read(t);){if(this.savedStatesDepth!==0)continue;let{fn:i,args:a}=t;switch(i|0){case T.setFont:let[s,n]=a;s instanceof Z&&(e.fontName=s.name),typeof n=="number"&&n>0&&(e.fontSize=n);break;case T.setFillRGBColor:fe.rgb.getRgbItem(a,0,e.fontColor,0);break;case T.setFillGray:fe.gray.getRgbItem(a,0,e.fontColor,0);break;case T.setFillCMYKColor:fe.cmyk.getRgbItem(a,0,e.fontColor,0)}}}catch(i){E(`parseDefaultAppearance - ignoring errors: "${i}".`)}return e}};d(nu,"parseDefaultAppearance");o5=class extends Ro{static{d(this,"AppearanceStreamEvaluator")}constructor(t,e,i){super(t),this.stream=t,this.xref=e,this.globalColorSpaceCache=i,this.resources=t.dict?.get("Resources")}parse(){let t={fn:0,args:[]},e={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:fe.gray},i=!1,a=[];try{for(;t.args.length=0,!i&&this.read(t);){let{fn:s,args:n}=t;switch(s|0){case T.save:a.push({scaleFactor:e.scaleFactor,fontSize:e.fontSize,fontName:e.fontName,fontColor:e.fontColor.slice(),fillColorSpace:e.fillColorSpace});break;case T.restore:e=a.pop()||e;break;case T.setTextMatrix:let r=oe.transform(this.stateManager.state.ctm,n);e.scaleFactor*=Math.hypot(r[0],r[1]);break;case T.setFont:let[l,o]=n;l instanceof Z&&(e.fontName=l.name),typeof o=="number"&&o>0&&(e.fontSize=o);break;case T.setFillColorSpace:e.fillColorSpace=fe.parse({cs:n[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case T.setFillColor:e.fillColorSpace.getRgbItem(n,0,e.fontColor,0);break;case T.setFillRGBColor:fe.rgb.getRgbItem(n,0,e.fontColor,0);break;case T.setFillGray:fe.gray.getRgbItem(n,0,e.fontColor,0);break;case T.setFillCMYKColor:fe.cmyk.getRgbItem(n,0,e.fontColor,0);break;case T.showText:case T.showSpacedText:case T.nextLineShowText:case T.nextLineSetSpacingShowText:e.fontSize*=e.scaleFactor,i=!0}}}catch(s){E(`parseAppearanceStream - ignoring errors: "${s}".`)}return this.stream.reset(),delete e.scaleFactor,delete e.fillColorSpace,e}get _localColorSpaceCache(){return ht(this,"_localColorSpaceCache",new a0)}get _pdfFunctionFactory(){return ht(this,"_pdfFunctionFactory",new iu({xref:this.xref}))}};d(f5,"parseAppearanceStream");d(Ja,"getPdfColor");d(h5,"createDefaultAppearance");Kh=class Gr{static{d(this,"FakeUnicodeFont")}static#t=1;constructor(e,i){this.xref=e,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=i;let a=new OffscreenCanvas(1,1);this.ctxMeasure=a.getContext("2d",{willReadFrequently:!0}),this.fontName=Z.get(`InvalidPDFjsFont_${i}_${Gr.#t++}`)}get fontDescriptorRef(){if(!Gr._fontDescriptorRef){let e=new _(this.xref);e.setIfName("Type","FontDescriptor"),e.set("FontName",this.fontName),e.set("FontFamily","MyriadPro Regular"),e.set("FontBBox",[0,0,0,0]),e.setIfName("FontStretch","Normal"),e.set("FontWeight",400),e.set("ItalicAngle",0),Gr._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return Gr._fontDescriptorRef}get descendantFontRef(){let e=new _(this.xref);e.set("BaseFont",this.fontName),e.setIfName("Type","Font"),e.setIfName("Subtype","CIDFontType0"),e.setIfName("CIDToGIDMap","Identity"),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);let i=[],a=[...this.widths].sort(),s=null,n=null;for(let[l,o]of a)s?l===s+n.length?n.push(o):(i.push(s,n),s=l,n=[o]):(s=l,n=[o]);s&&i.push(s,n),e.set("W",i);let r=new _(this.xref);return r.set("Ordering","Identity"),r.set("Registry","Adobe"),r.set("Supplement",0),e.set("CIDSystemInfo",r),this.xref.getNewPersistentRef(e)}get baseFontRef(){let e=new _(this.xref);return e.set("BaseFont",this.fontName),e.setIfName("Type","Font"),e.setIfName("Subtype","Type0"),e.setIfName("Encoding","Identity-H"),e.set("DescendantFonts",[this.descendantFontRef]),e.setIfName("ToUnicode","Identity-H"),this.xref.getNewPersistentRef(e)}get resources(){let e=new _(this.xref),i=new _(this.xref);return i.set(this.fontName.name,this.baseFontRef),e.set("Font",i),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(e){let i=this._createContext();for(let a of e.split(/\r\n?|\n/))for(let s of a.split("")){let n=s.charCodeAt(0);if(this.widths.has(n))continue;let r=i.measureText(s),l=Math.ceil(r.width);this.widths.set(n,l),this.firstChar=Math.min(n,this.firstChar),this.lastChar=Math.max(n,this.lastChar)}return this.resources}static getFirstPositionInfo(e,i,a){let[s,n,r,l]=e,o=r-s,f=l-n;i%180!=0&&([o,f]=[f,o]);let h=1.35*a,c=.35*a;return{coords:[0,f+c-h],bbox:[0,0,o,f],matrix:i===0?void 0:To(i,f,h)}}createAppearance(e,i,a,s,n,r){let l=this._createContext(),o=[],f=-1/0;for(let O of e.split(/\r\n?|\n/)){o.push(O);let P=l.measureText(O).width;f=Math.max(f,P);for(let $ of hb(O)){let tt=String.fromCodePoint($),K=this.widths.get($);if(K===void 0){let z=l.measureText(tt);K=Math.ceil(z.width),this.widths.set($,K),this.firstChar=Math.min($,this.firstChar),this.lastChar=Math.max($,this.lastChar)}}}f*=s/1e3;let[h,c,u,p]=i,m=u-h,g=p-c;a%180!=0&&([m,g]=[g,m]);let b=f>m?m/f:1,w=1,v=1.35*s,y=.35*s,x=v*o.length;x>g&&(w=g/x);let q=s*Math.min(b,w),j=["q",`0 0 ${qe(m)} ${qe(g)} re W n`,"BT",`1 0 0 1 0 ${qe(g+y)} Tm 0 Tc ${Ja(n,!0)}`,`/${this.fontName.name} ${qe(q)} Tf`],{resources:A}=this;if(r=typeof r=="number"&&r>=0&&r<=1?r:1,r!==1){j.push("/R0 gs");let O=new _(this.xref),P=new _(this.xref);P.set("ca",r),P.set("CA",r),P.setIfName("Type","ExtGState"),O.set("R0",P),A.set("ExtGState",O)}let S=qe(v);for(let O of o)j.push(`0 -${S} Td <${ab(O)}> Tj`);j.push("ET","Q");let C=j.join(`
|
|
27
|
+
`),M=new _(this.xref);if(M.setIfName("Subtype","Form"),M.setIfName("Type","XObject"),M.set("BBox",[0,0,m,g]),M.set("Length",C.length),M.set("Resources",A),a){let O=To(a,m,g);M.set("Matrix",O)}return new qi(C,M)}},c5=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],u5=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"],c0=class{static{d(this,"NameOrNumberTree")}constructor(t,e,i){this.root=t,this.xref=e,this._type=i}getAll(t=!1){let e=new Map;if(!this.root)return e;let i=this.xref,a=new we;this.root instanceof it&&a.put(this.root);let s=[this.root];for(let n of s){let r=i.fetchIfRef(n);if(!(r instanceof _))continue;if(r.has("Kids")){let o=r.get("Kids");if(!Array.isArray(o))continue;for(let f of o){if(f instanceof it){if(a.has(f))throw new V(`Duplicate entry in "${this._type}" tree.`);a.put(f)}s.push(f)}continue}let l=r.get(this._type);if(Array.isArray(l))for(let o=0,f=l.length;o<f;o+=2)e.set(t?l[o]:i.fetchIfRef(l[o]),t?l[o+1]:i.fetchIfRef(l[o+1]))}return e}getRaw(t){if(!this.root)return null;let e=this.xref,i=e.fetchIfRef(this.root),a=0;for(;i.has("Kids");){if(++a>10)return E(`Search depth limit reached for "${this._type}" tree.`),null;let n=i.get("Kids");if(!Array.isArray(n))return null;let r=0,l=n.length-1;for(;r<=l;){let o=r+l>>1,f=e.fetchIfRef(n[o]),h=f.get("Limits");if(t<e.fetchIfRef(h[0]))l=o-1;else if(t>e.fetchIfRef(h[1]))r=o+1;else{i=f;break}}if(r>l)return null}let s=i.get(this._type);if(Array.isArray(s)){let n=0,r=s.length-2;for(;n<=r;){let l=n+r>>1,o=l+(l&1),f=e.fetchIfRef(s[o]);if(t<f)r=o-2;else if(t>f)n=o+2;else return s[o+1]}}return null}get(t){return this.xref.fetchIfRef(this.getRaw(t))}},is=class extends c0{static{d(this,"NameTree")}constructor(t,e){super(t,e,"Names")}},bl=class extends c0{static{d(this,"NumberTree")}constructor(t,e){super(t,e,"Nums")}};d(ru,"clearGlobalCaches");la=class u0{static{d(this,"FileSpec")}constructor(e){e instanceof _&&(this.root=e,e.has("RF")&&E("Related file specifications are not supported"))}get filename(){let e=u0.pickPlatformItem(this.root);return e&&typeof e=="string"?Wt(e,!0).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/"):""}get description(){let e=this.root?.get("Desc");return e&&typeof e=="string"?Wt(e):""}get serializable(){let{filename:e,description:i}=this;return{rawFilename:e,filename:Kg(e)||"unnamed",description:i}}static pickPlatformItem(e,i=!1){if(e instanceof _){for(let a of["UF","F","Unix","Mac","DOS"])if(e.has(a))return i?e.getRaw(a):e.get(a)}return null}static hasEmbeddedFile(e){return this.pickPlatformItem(e.get("EF"))instanceof Bt}static readContent(e){if(!(e instanceof _))return null;let i=this.pickPlatformItem(e.get("EF"));return i instanceof Bt?this.readStreamContent(i):(E("Embedded file specification points to non-existing/invalid content"),null)}static readStreamContent(e){if(e.dict?.xref?.encrypt?.encryptionKey===null)throw new hs("No password given",co.NEED_PASSWORD);return e.getBytes()}},Vi={NoError:0,EndOfDocument:-1,UnterminatedCdata:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};d(Vn,"isWhitespace");d(d5,"isWhitespaceString");d0=class p0{static{d(this,"XMLParserBase")}static get _entityRegex(){return ht(this,"_entityRegex",/&(?:#x([^;&]+)|#([^;&]+)|([^;&]+));/g)}_resolveEntities(e){return e.replaceAll(p0._entityRegex,(i,a,s,n)=>{if(a||s){let r=a?parseInt(a,16):parseInt(s,10);return r>=0&&r<=1114111?String.fromCodePoint(r):i}switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(n)})}_parseContent(e,i){let a=[],s=i;function n(){for(;s<e.length&&Vn(e,s);)++s}for(d(n,"skipWs");s<e.length&&!Vn(e,s)&&e[s]!==">"&&e[s]!=="/";)++s;let r=e.substring(i,s);for(n();s<e.length&&e[s]!==">"&&e[s]!=="/"&&e[s]!=="?";){n();let l="",o="";for(;s<e.length&&!Vn(e,s)&&e[s]!=="=";)l+=e[s],++s;if(n(),e[s]!=="=")return null;++s,n();let f=e[s];if(f!=='"'&&f!=="'")return null;let h=e.indexOf(f,++s);if(h<0)return null;o=e.substring(s,h),a.push({name:l,value:this._resolveEntities(o)}),s=h+1,n()}return{name:r,attributes:a,parsed:s-i}}_parseProcessingInstruction(e,i){let a=i;function s(){for(;a<e.length&&Vn(e,a);)++a}for(d(s,"skipWs");a<e.length&&!Vn(e,a)&&e[a]!==">"&&e[a]!=="?"&&e[a]!=="/";)++a;let n=e.substring(i,a);s();let r=a;for(;a<e.length&&(e[a]!=="?"||e[a+1]!==">");)++a;return{name:n,value:e.substring(r,a),parsed:a-i}}parseXml(e){let i=0;for(;i<e.length;){let a=e[i],s=i;if(a==="<"){++s;let n=e[s],r;switch(n){case"/":if(++s,r=e.indexOf(">",s),r<0){this.onError(Vi.UnterminatedElement);return}this.onEndElement(e.substring(s,r)),s=r+1;break;case"?":++s;let l=this._parseProcessingInstruction(e,s);if(e.substring(s+l.parsed,s+l.parsed+2)!=="?>"){this.onError(Vi.UnterminatedXmlDeclaration);return}this.onPi(l.name,l.value),s+=l.parsed+2;break;case"!":if(e.substring(s+1,s+3)==="--"){if(r=e.indexOf("-->",s+3),r<0){this.onError(Vi.UnterminatedComment);return}this.onComment(e.substring(s+3,r)),s=r+3}else if(e.substring(s+1,s+8)==="[CDATA["){if(r=e.indexOf("]]>",s+8),r<0){this.onError(Vi.UnterminatedCdata);return}this.onCdata(e.substring(s+8,r)),s=r+3}else if(e.substring(s+1,s+8)==="DOCTYPE"){let h=e.indexOf("[",s+8),c=!1;if(r=e.indexOf(">",s+8),r<0){this.onError(Vi.UnterminatedDoctypeDeclaration);return}if(h>0&&r>h){if(r=e.indexOf("]>",s+8),r<0){this.onError(Vi.UnterminatedDoctypeDeclaration);return}c=!0}let u=e.substring(s+8,r+ +!!c);this.onDoctype(u),s=r+(c?2:1)}else{this.onError(Vi.MalformedElement);return}break;default:let o=this._parseContent(e,s);if(o===null){this.onError(Vi.MalformedElement);return}let f=!1;if(e.substring(s+o.parsed,s+o.parsed+2)==="/>")f=!0;else if(e.substring(s+o.parsed,s+o.parsed+1)!==">"){this.onError(Vi.UnterminatedElement);return}this.onBeginElement(o.name,o.attributes,f),s+=o.parsed+(f?2:1)}}else{for(;s<e.length&&e[s]!=="<";)s++;let n=e.substring(i,s);this.onText(this._resolveEntities(n))}i=s}}onResolveEntity(e){return`&${e};`}onPi(e,i){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,i,a){}onEndElement(e){}onError(e){}},il=class{static{d(this,"SimpleDOMNode")}constructor(t,e){this.nodeName=t,this.nodeValue=e,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let t=this.parentNode.childNodes;if(!t)return;let e=t.indexOf(this);return e===-1?void 0:t[e+1]}get textContent(){return this.childNodes?this.childNodes.map(t=>t.textContent).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(t,e){if(e>=t.length)return this;let i=t[e];if(i.name.startsWith("#")&&e<t.length-1)return this.searchNode(t,e+1);let a=[],s=this;for(;;){if(i.name===s.nodeName)if(i.pos===0){let n=s.searchNode(t,e+1);if(n!==null)return n}else{if(a.length===0)return null;{let[n]=a.pop(),r=0;for(let l of n.childNodes)if(i.name===l.nodeName){if(r===i.pos)return l.searchNode(t,e+1);r++}return s.searchNode(t,e+1)}}if(s.childNodes?.length>0)a.push([s,0]),s=s.childNodes[0];else{if(a.length===0)return null;for(;a.length!==0;){let[n,r]=a.pop(),l=r+1;if(l<n.childNodes.length){a.push([n,l]),s=n.childNodes[l];break}}if(a.length===0)return null}}}dump(t){if(this.nodeName==="#text")t.push(er(this.nodeValue));else{if(t.push(`<${this.nodeName}`),this.attributes)for(let e of this.attributes)t.push(` ${e.name}="${er(e.value)}"`);if(this.hasChildNodes()){t.push(">");for(let e of this.childNodes)e.dump(t);t.push(`</${this.nodeName}>`)}else this.nodeValue?t.push(`>${er(this.nodeValue)}</${this.nodeName}>`):t.push("/>")}}},Yo=class extends d0{static{d(this,"SimpleXMLParser")}constructor({hasAttributes:t=!1,lowerCaseName:e=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=Vi.NoError,this._hasAttributes=t,this._lowerCaseName=e}parseFromString(t){if(this._currentFragment=[],this._stack=[],this._errorCode=Vi.NoError,this.parseXml(t),this._errorCode!==Vi.NoError)return;let[e]=this._currentFragment;if(e)return{documentElement:e}}onText(t){if(d5(t))return;let e=new il("#text",t);this._currentFragment.push(e)}onCdata(t){let e=new il("#text",t);this._currentFragment.push(e)}onBeginElement(t,e,i){this._lowerCaseName&&(t=t.toLowerCase());let a=new il(t);a.childNodes=[],this._hasAttributes&&(a.attributes=e),this._currentFragment.push(a),!i&&(this._stack.push(this._currentFragment),this._currentFragment=a.childNodes)}onEndElement(t){this._currentFragment=this._stack.pop()||[];let e=this._currentFragment.at(-1);if(!e)return null;for(let i of e.childNodes)i.parentNode=e;return e}onError(t){this._errorCode=t}},p5=class{static{d(this,"MetadataParser")}constructor(t){t=this._repair(t);let e=new Yo({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,e&&this._parse(e)}_repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(e,i){let a=i.replaceAll(/\\([0-3])([0-7])([0-7])/g,(n,r,l,o)=>String.fromCharCode(r*64+l*8+o*1)).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(n,r){switch(r){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw Error(`_repair: ${r} isn't defined.`)}),s=[">"];for(let n=0,r=a.length;n<r;n+=2){let l=a.charCodeAt(n)*256+a.charCodeAt(n+1);l>=32&&l<127&&l!==60&&l!==62&&l!==38?s.push(String.fromCharCode(l)):s.push("&#x"+(65536+l).toString(16).substring(1)+";")}return s.join("")})}_getSequence(t){let e=t.nodeName;return e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"?null:t.childNodes.filter(i=>i.nodeName==="rdf:li")}_parseArray(t){if(!t.hasChildNodes())return;let[e]=t.childNodes,i=this._getSequence(e)||[];this._metadataMap.set(t.nodeName,i.map(a=>a.textContent.trim()))}_parse(t){let e=t.documentElement;if(e.nodeName!=="rdf:rdf")for(e=e.firstChild;e&&e.nodeName!=="rdf:rdf";)e=e.nextSibling;if(e&&e.nodeName==="rdf:rdf"&&e.hasChildNodes()){for(let i of e.childNodes)if(i.nodeName==="rdf:description")for(let a of i.childNodes){let s=a.nodeName;switch(s){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(a);continue}this._metadataMap.set(s,a.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}};d(m0,"getSoundFormat");d(m5,"soundStreamToWav");g5=[["RowSpan","rowSpan"],["ColSpan","colSpan"]],sa={PAGE_CONTENT:1,STREAM_CONTENT:2,OBJECT:3,ANNOTATION:4,ELEMENT:5},Xh=class $r{static{d(this,"StructTreeRoot")}kidRefToPosition=void 0;parentTree=null;roleMap=new Map;structParentIds=null;constructor(e,i,a){this.xref=e,this.dict=i,this.ref=a instanceof it?a:null;let s=i.get("RoleMap");if(s instanceof _)for(let[r,l]of s)l instanceof Z&&this.roleMap.set(r,l.name);let n=i.getRaw("ParentTree");n&&(this.parentTree=new bl(n,e))}getKidPosition(e){if(this.kidRefToPosition===void 0){let i=this.dict.get("K");if(Array.isArray(i)){let a=this.kidRefToPosition=new Map;for(let s=0,n=i.length;s<n;s++){let r=i[s];r&&a.set(r.toString(),s)}}else this.kidRefToPosition=i instanceof _?new Map([[i.objId,0]]):i?null:new Map}return this.kidRefToPosition?this.kidRefToPosition.get(e)??NaN:-1}#t(e,i,a,s){!(e instanceof it)||i<0||(this.structParentIds??=new ii).getOrPutComputed(e,Ps).push([i,a,s])}addAnnotationIdToPage(e,i,a){this.#t(e,i,sa.ANNOTATION,a instanceof it?a.toString():null)}static async canCreateStructureTree({catalogRef:e,pdfManager:i,newAnnotationsByPage:a}){if(!(e instanceof it))return E("Cannot save the struct tree: no catalog reference."),!1;let s=0,n=!0;for(let[r,l]of a){let{ref:o}=await i.getPage(r);if(!(o instanceof it)){E(`Cannot save the struct tree: page ${r} has no ref.`),n=!0;break}for(let f of l)f.accessibilityData?.type&&(f.parentTreeId=s++,n=!1)}if(n){for(let r of a.values())for(let l of r)delete l.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:i,catalogRef:a,pdfManager:s,changes:n}){let r=await s.ensureCatalog("cloneDict"),l=new ii;l.put(a,r);let o=i.getNewTemporaryRef();r.set("StructTreeRoot",o);let f=new _(i);f.set("Type",Z.get("StructTreeRoot"));let h=i.getNewTemporaryRef();f.set("ParentTree",h);let c=[];f.set("K",c),l.put(o,f);let u=new _(i),p=[];u.set("Nums",p);let m=await this.#e({newAnnotationsByPage:e,structTreeRootRef:o,structTreeRoot:null,kids:c,nums:p,xref:i,pdfManager:s,changes:n,cache:l});f.set("ParentTreeNextKey",m),l.put(h,u);for(let[g,b]of l.items())n.put(g,{data:b})}async canUpdateStructTree({pdfManager:e,newAnnotationsByPage:i}){if(!this.ref)return E("Cannot update the struct tree: no root reference."),!1;let a=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(a)||a<0)return E("Cannot update the struct tree: invalid next key."),!1;let s=this.dict.get("ParentTree");if(!(s instanceof _))return E("Cannot update the struct tree: ParentTree isn't a dict."),!1;let n=s.get("Nums");if(!Array.isArray(n))return E("Cannot update the struct tree: nums isn't an array."),!1;let r=new bl(s,this.xref);for(let o of i.keys()){let{pageDict:f}=await e.getPage(o);if(!f.has("StructParents"))continue;let h=f.get("StructParents");if(!Number.isInteger(h)||!Array.isArray(r.get(h)))return E(`Cannot save the struct tree: page ${o} has a wrong id.`),!1}let l=!0;for(let[o,f]of i){let{pageDict:h}=await e.getPage(o);$r.#a({elements:f,xref:this.xref,pageDict:h,numberTree:r});for(let c of f)c.accessibilityData?.type&&(c.accessibilityData.structParent>=0||(c.parentTreeId=a++),l=!1)}if(l){for(let o of i.values())for(let f of o)delete f.parentTreeId,delete f.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:e,pdfManager:i,changes:a}){let{ref:s,xref:n}=this,r=this.dict.clone(),l=new ii;l.put(s,r);let o=r.getRaw("ParentTree"),f;o instanceof it?f=n.fetch(o):(f=o,o=n.getNewTemporaryRef(),r.set("ParentTree",o)),f=f.clone(),l.put(o,f);let h=f.getRaw("Nums"),c=null;h instanceof it&&(c=h,h=n.fetch(c)),h=h.slice(),c||f.set("Nums",h);let u=await $r.#e({newAnnotationsByPage:e,structTreeRootRef:s,structTreeRoot:this,kids:null,nums:h,xref:n,pdfManager:i,changes:a,cache:l});if(u!==-1){r.set("ParentTreeNextKey",u),c&&l.put(c,h);for(let[p,m]of l.items())a.put(p,{data:m})}}static async#e({newAnnotationsByPage:e,structTreeRootRef:i,structTreeRoot:a,kids:s,nums:n,xref:r,pdfManager:l,changes:o,cache:f}){let h=Z.get("OBJR"),c=-1,u;for(let[p,m]of e){let g=await l.getPage(p),{ref:b}=g,w=b instanceof it;for(let{accessibilityData:v,ref:y,parentTreeId:x,structTreeParent:q}of m){if(!v?.type)continue;let{structParent:j}=v;if(a&&Number.isInteger(j)&&j>=0){let M=(u||=new Map).get(p);M===void 0&&(M=new g0(a,g.pageDict).collectObjects(b),u.set(p,M));let O=M?.get(j);if(O){let P=r.fetch(O).clone();$r.#i(P,v),o.put(O,{data:P});continue}}c=Math.max(c,x);let A=r.getNewTemporaryRef(),S=new _(r);$r.#i(S,v),await this.#s({structTreeParent:q,tagDict:S,newTagRef:A,structTreeRootRef:i,fallbackKids:s,xref:r,cache:f});let C=new _(r);S.set("K",C),C.set("Type",h),w&&C.set("Pg",b),C.set("Obj",y),f.put(A,S),n.push(x,A)}}return c+1}static#i(e,{type:i,title:a,lang:s,alt:n,expanded:r,actualText:l}){e.set("S",Z.get(i)),a&&e.set("T",ui(a)),s&&e.set("Lang",ui(s)),n&&e.set("Alt",ui(n)),r&&e.set("E",ui(r)),l&&e.set("ActualText",ui(l))}static#a({elements:e,xref:i,pageDict:a,numberTree:s}){let n=new Map;for(let f of e)if(f.structTreeParentId){let h=parseInt(f.structTreeParentId.split("_mc")[1],10);n.getOrInsertComputed(h,Ps).push(f)}let r=a.get("StructParents");if(!Number.isInteger(r))return;let l=s.get(r),o=d((f,h,c)=>{let u=n.get(f);if(u){let p=h.getRaw("P"),m=i.fetchIfRef(p);if(p instanceof it&&m instanceof _){let g={ref:c,dict:h};for(let b of u)b.structTreeParent=g}return!0}return!1},"updateElement");for(let f of l){if(!(f instanceof it))continue;let h=i.fetch(f),c=h.get("K");if(Number.isInteger(c))o(c,h,f);else if(Array.isArray(c))for(let u of c){if(u=i.fetchIfRef(u),Number.isInteger(u)&&o(u,h,f))break;if(!(u instanceof _))continue;if(!Ht(u.get("Type"),"MCR"))break;let p=u.get("MCID");if(Number.isInteger(p)&&o(p,h,f))break}}}static async#s({structTreeParent:e,tagDict:i,newTagRef:a,structTreeRootRef:s,fallbackKids:n,xref:r,cache:l}){let o=null,f;e?({ref:o}=e,f=e.dict.getRaw("P")||s):f=s,i.set("P",f);let h=r.fetchIfRef(f);if(!h){n.push(a);return}let c=l.getOrPutComputed(f,()=>h.clone()),u=c.getRaw("K"),p=u instanceof it?l.get(u):null;if(!p){p=r.fetchIfRef(u),p=Array.isArray(p)?p.slice():[u];let g=r.getNewTemporaryRef();c.set("K",g),l.put(g,p)}let m=p.indexOf(o);p.splice(m>=0?m+1:p.length,0,a)}},b5=class{static{d(this,"StructElementNode")}constructor(t,e){this.tree=t,this.xref=t.xref,this.dict=e,this.kids=[],this.parseKids()}get role(){let t=this.dict.get("S"),e=t instanceof Z?t.name:"",{root:i}=this.tree;return i.roleMap.get(e)??e}get mathML(){let t=this.dict.get("AF")||[];Array.isArray(t)||(t=[t]);for(let e of t){if(e=this.xref.fetchIfRef(e),!nr(e,"Filespec")||!Ht(e.get("AFRelationship"),"Supplement"))continue;let i=la.pickPlatformItem(e.get("EF"));if(i instanceof Bt&&nr(i.dict,"EmbeddedFile")&&Ht(i.dict.get("Subtype"),"application/mathml+xml"))return sr(i.getString())}for(let e of this.attributes)if(Ht(e.get("O"),"MSFT_Office")){let i=e.get("MSFT_MathML");return i?Wt(i):null}return null}#t(t,e){let i=[t],a=new we;for(;i.length>0;){if(t=i.pop(),t instanceof it){if(a.has(t))continue;a.put(t),t=this.xref.fetch(t)}if(t instanceof Bt&&(t=t.dict),t instanceof _)e.push(t);else if(Array.isArray(t))for(let s=t.length-1;s>=0;s--)Number.isInteger(t[s])||i.push(t[s])}}get attributes(){let t=[],e=this.dict.getArray("C");if(e!==void 0){let i=this.tree.rootDict?.get("ClassMap");if(i instanceof _)for(let a of Array.isArray(e)?e:[e])a instanceof Z&&this.#t(i.getRaw(a.name),t)}return this.#t(this.dict.getRaw("A"),t),ht(this,"attributes",t)}get tableAttributes(){let{role:t}=this;if(t!=="Table"&&t!=="TH"&&t!=="TD")return null;let e=new Map;for(let i of this.attributes)if(Ht(i.get("O"),"Table"))if(t==="Table"){if(i.has("Summary")){let a=i.get("Summary");typeof a=="string"&&a?e.set("summary",Wt(a)):e.delete("summary")}}else{for(let[a,s]of g5){if(!i.has(a))continue;let n=i.get(a);Number.isInteger(n)&&n>1?e.set(s,n):e.delete(s)}if(i.has("Headers")){e.delete("headers");let a=i.getArray("Headers");if(Array.isArray(a)){let s=a.filter(n=>typeof n=="string").map(Wt);s.length>0&&e.set("headers",s)}}if(t==="TH"&&i.has("Scope")){e.delete("scope");let a=i.get("Scope");a instanceof Z&&["Row","Column","Both"].includes(a.name)&&e.set("scope",a.name)}if(t==="TH"&&i.has("Short")){e.delete("short");let a=i.get("Short");typeof a=="string"&&a&&e.set("short",Wt(a))}}return e.size?e:null}parseKids(){let t=null,e=this.dict.getRaw("Pg");e instanceof it&&(t=e.toString());let i=this.dict.get("K");if(Array.isArray(i))for(let a of i){let s=this.parseKid(t,this.xref.fetchIfRef(a));s&&this.kids.push(s)}else{let a=this.parseKid(t,i);a&&this.kids.push(a)}}parseKid(t,e){if(Number.isInteger(e))return this.tree.pageDict.objId===t?new Xl({type:sa.PAGE_CONTENT,mcid:e,pageObjId:t}):null;if(!(e instanceof _))return null;let i=e.getRaw("Pg");i instanceof it&&(t=i.toString());let a=e.get("Type")instanceof Z?e.get("Type").name:null;if(a==="MCR"){if(this.tree.pageDict.objId!==t)return null;let s=e.getRaw("Stm");return new Xl({type:sa.STREAM_CONTENT,refObjId:s instanceof it?s.toString():null,pageObjId:t,mcid:e.get("MCID")})}if(a==="OBJR"){if(this.tree.pageDict.objId!==t)return null;let s=e.getRaw("Obj");return new Xl({type:sa.OBJECT,refObjId:s instanceof it?s.toString():null,pageObjId:t})}return new Xl({type:sa.ELEMENT,dict:e})}},Xl=class{static{d(this,"StructElement")}constructor({type:t,dict:e=null,mcid:i=null,pageObjId:a=null,refObjId:s=null}){this.type=t,this.dict=e,this.mcid=i,this.pageObjId=a,this.refObjId=s,this.parentNode=null}},g0=class{static{d(this,"StructTreePage")}constructor(t,e){this.root=t,this.xref=t?.xref??null,this.rootDict=t?.dict??null,this.pageDict=e,this.nodes=[]}collectObjects(t){if(!this.root||!this.rootDict||!(t instanceof it))return null;let e=this.rootDict.get("ParentTree");if(!e)return null;let i=this.root.structParentIds?.get(t);if(!i)return null;let a=new Map,s=new bl(e,this.xref);for(let[n]of i){let r=s.getRaw(n);r instanceof it&&a.set(n,r)}return a}parse(t){if(!this.root||!this.rootDict||!(t instanceof it))return;let{parentTree:e}=this.root;if(!e)return;let i=this.pageDict.get("StructParents"),a=this.root.structParentIds?.get(t);if(!Number.isInteger(i)&&!a)return;let s=new Map;if(Number.isInteger(i)){let n=e.get(i);if(Array.isArray(n))for(let r of n)r instanceof it&&this.addNode(this.xref.fetch(r),s)}if(a)for(let[n,r,l]of a){let o=e.get(n);if(!o)continue;let f=this.addNode(this.xref.fetchIfRef(o),s);if(f&&l)for(let h of f.kids)h.type===sa.OBJECT&&h.refObjId===l&&(h.type=r)}}addNode(t,e,i=0){if(i>40)return E("StructTree MAX_DEPTH reached."),null;if(!(t instanceof _))return null;if(e.has(t))return e.get(t);let a=new b5(this,t);switch(e.set(t,a),a.role){case"L":case"LBody":case"LI":case"Table":case"THead":case"TBody":case"TFoot":case"TR":for(let l of a.kids)l.type===sa.ELEMENT&&this.addNode(l.dict,e,i-1)}let s=t.get("P");if(!(s instanceof _)||Ht(s.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(t,a)||e.delete(t),a;let n=this.addNode(s,e,i+1);if(!n)return a;let r=!1;for(let l of n.kids)l.type===sa.ELEMENT&&l.dict===t&&(l.parentNode=a,r=!0);return r||e.delete(t),a}addTopLevelNode(t,e){let i=this.root.getKidPosition(t.objId);return!isNaN(i)&&(i!==-1&&(this.nodes[i]=e),!0)}get serializable(){function t(i,a,s=0){if(s>40){E("StructTree too deep to be fully serialized.");return}let n=Object.create(null);n.role=i.role,n.children=[],a.children.push(n);let r=i.dict.get("Alt");typeof r!="string"&&(r=i.dict.get("ActualText")),typeof r=="string"&&(n.alt=Wt(r));let l=i.dict.get("ID");if(n.role==="TH"&&typeof l=="string"&&l&&(n.structId=Wt(l)),i.tableAttributes?.forEach((c,u)=>{n[u]=c}),n.role==="Formula")try{let{mathML:c}=i;c&&(n.mathML=c)}catch(c){if(c instanceof xe)throw c;E(`Ignoring mathML: "${c}".`)}let o=null,f=null;for(let c of i.attributes){o=Ya(c.getArray("BBox"),o);let u=c.get("Width"),p=c.get("Height");typeof u=="number"&&u>0&&typeof p=="number"&&p>0&&(f=[0,0,u,p])}(o||f)&&(n.bbox=o??f);let h=i.dict.get("Lang");typeof h=="string"&&(n.lang=Wt(h));for(let c of i.kids){let u=c.type===sa.ELEMENT?c.parentNode:null;u?t(u,n,s+1):c.type===sa.PAGE_CONTENT||c.type===sa.STREAM_CONTENT?n.children.push({type:"content",id:`p${c.pageObjId}_mc${c.mcid}`}):c.type===sa.OBJECT?n.children.push({type:"object",id:c.refObjId}):c.type===sa.ANNOTATION&&n.children.push({type:"annotation",id:`pdfjs_internal_id_${c.refObjId}`})}}d(t,"nodeToSerializable");let e=Object.create(null);e.children=[],e.role="Root";for(let i of this.nodes)i&&t(i,e);return e}},w5=d(t=>t instanceof it,"isRef"),Do=Yg.bind(null,w5,Ht);d(Vf,"fetchDest");d(Zd,"fetchRemoteDest");lu=class ko{static{d(this,"Catalog")}#t=null;#e=new ii;#i=new Map;#a=new Set;#s=null;builtInCMapCache=new Map;fontCache=new ii;globalColorSpaceCache=new J9;globalImageCache=new Q9;nonBlendModesSet=new we;pageDictCache=new ii;pageIndexCache=new ii;pageKidsCountCache=new ii;standardFontDataCache=new Map;systemFontCache=new Map;constructor(e,i){if(this.pdfManager=e,this.xref=i,this.#s=i.getCatalogObj(),!(this.#s instanceof _))throw new V("Catalog object is not a dictionary.");this.toplevelPagesDict}cloneDict(){return this.#s.clone()}getAttachmentIdForAnnotation(e,i=!1){let a=this.#e.get(e);if(!a){let s=`attachmentRef:${e.toString()}`;a=s;let n=1;for(;this.#i.has(a)||this.attachments?.has(a);)a=`${s}-${n++}`;this.#e.put(e,a),this.#i.set(a,e)}return i&&this.#a.add(a),a}get version(){let e=this.#s.get("Version");if(e instanceof Z){if(lp.test(e.name))return ht(this,"version",e.name);E(`Invalid PDF catalog version: ${e.name}`)}return ht(this,"version",null)}get lang(){let e=this.#s.get("Lang");return ht(this,"lang",e&&typeof e=="string"?Wt(e):null)}get needsRendering(){let e=this.#s.get("NeedsRendering");return ht(this,"needsRendering",e===!0)}get collection(){let e=null;try{let i=this.#s.get("Collection");i instanceof _&&i.size>0&&(e=i)}catch(i){if(i instanceof xe)throw i;de("Cannot fetch Collection entry; assuming no collection is present.")}return ht(this,"collection",e)}get acroForm(){let e=null;try{let i=this.#s.get("AcroForm");i instanceof _&&i.size>0&&(e=i)}catch(i){if(i instanceof xe)throw i;de("Cannot fetch AcroForm entry; assuming no forms are present.")}return ht(this,"acroForm",e)}get acroFormRef(){let e=this.#s.getRaw("AcroForm");return ht(this,"acroFormRef",e instanceof it?e:null)}get metadata(){let e=this.#s.getRaw("Metadata");if(!(e instanceof it))return ht(this,"metadata",null);let i=null;try{let a=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(a instanceof Bt&&nr(a.dict,"Metadata")&&Ht(a.dict.get("Subtype"),"XML")){let s=sr(a.getString());s&&(i=new p5(s).serializable)}}catch(a){if(a instanceof xe)throw a;de(`Skipping invalid Metadata: "${a}".`)}return ht(this,"metadata",i)}get markInfo(){let e=null;try{e=this.#n()}catch(i){if(i instanceof xe)throw i;E("Unable to read mark info.")}return ht(this,"markInfo",e)}#n(){let e=this.#s.get("MarkInfo");if(!(e instanceof _))return null;let i=new Map;for(let a of["Marked","UserProperties","Suspects"]){let s=e.get(a);i.set(a,s===!0)}return i}get hasStructTree(){return this.#s.has("StructTreeRoot")}get structTreeRoot(){let e=null;try{e=this.#r()}catch(i){if(i instanceof xe)throw i;E("Unable read to structTreeRoot info.")}return ht(this,"structTreeRoot",e)}#r(){let e=this.#s.getRaw("StructTreeRoot"),i=this.xref.fetchIfRef(e);return i instanceof _?new Xh(this.xref,i,e):null}get toplevelPagesDict(){let e=this.#s.get("Pages");if(!(e instanceof _))throw new V("Invalid top-level pages dictionary.");return ht(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this.#l()}catch(i){if(i instanceof xe)throw i;E("Unable to read document outline.")}return ht(this,"documentOutline",e)}#l(e={}){let i=this.#s.get("Outlines");if(!(i instanceof _)||(i=i.getRaw("First"),!(i instanceof it)))return null;let a={items:[]},s=[{obj:i,parent:a}],n=new we;n.put(i);let r=this.xref,l=new Uint8ClampedArray(3);for(;s.length>0;){let o=s.shift(),f=r.fetchIfRef(o.obj);if(f===null)continue;f.has("Title")||E("Invalid outline item encountered.");let h={url:null,dest:null,action:null};ko.parseDestDictionary({destDict:f,resultObj:h,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let c=f.get("Title"),u=f.get("F")||0,p=f.getArray("C"),m=f.get("Count"),g=l;Ne(p,3)&&(p[0]!==0||p[1]!==0||p[2]!==0)&&(g=fe.rgb.getRgb(p,0));let b={action:h.action,attachmentId:h.attachmentId,attachment:h.attachment,dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,setOCGState:h.setOCGState,title:typeof c=="string"?Wt(c):"",color:g,count:Number.isInteger(m)?m:void 0,bold:!!(u&2),italic:!!(u&1),items:[]};e.keepRawDict&&(b.rawDict=f),o.parent.items.push(b),i=f.getRaw("First"),i instanceof it&&!n.has(i)&&(s.push({obj:i,parent:b}),n.put(i)),i=f.getRaw("Next"),i instanceof it&&!n.has(i)&&(s.push({obj:i,parent:o.parent}),n.put(i))}return a.items.length>0?a.items:null}get documentOutlineForEditor(){let e=null;try{e=this.#l({keepRawDict:!0})}catch(i){if(i instanceof xe)throw i;E("Unable to read document outline.")}return ht(this,"documentOutlineForEditor",e)}get permissions(){let e=null;try{e=this.#o()}catch(i){if(i instanceof xe)throw i;E("Unable to read permissions.")}return ht(this,"permissions",e)}#o(){let e=this.xref.trailer.get("Encrypt");if(!(e instanceof _))return null;let i=e.get("P");if(typeof i!="number")return null;i+=2**32;let a=new Set;for(let s of Object.values(Ug))i&s&&a.add(s);return a}get optionalContentConfig(){let e=null;try{let i=this.#s.get("OCProperties");if(!i)return ht(this,"optionalContentConfig",null);let a=i.get("D");if(!a)return ht(this,"optionalContentConfig",null);let s=i.get("OCGs");if(!Array.isArray(s))return ht(this,"optionalContentConfig",null);let n=new ii;for(let r of s)r instanceof it&&!n.has(r)&&n.put(r,this.#f(r));e=this.#u(a,n)}catch(i){if(i instanceof xe)throw i;E(`Unable to read optional content config: ${i}`)}return ht(this,"optionalContentConfig",e)}#f(e){let i=this.xref.fetch(e),a={id:e.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},s=i.get("Name");typeof s=="string"&&(a.name=Wt(s));let n=i.getArray("Intent");Array.isArray(n)||(n=[n]),n.every(h=>h instanceof Z)&&(a.intent=n.map(h=>h.name));let r=i.get("Usage");if(!(r instanceof _))return a;let l=a.usage,o=r.get("Print");if(o instanceof _){let h=o.get("PrintState");if(h instanceof Z)switch(h.name){case"ON":case"OFF":l.print={printState:h.name}}}let f=r.get("View");if(f instanceof _){let h=f.get("ViewState");if(h instanceof Z)switch(h.name){case"ON":case"OFF":l.view={viewState:h.name}}}return a}#u(e,i){function a(h){let c=[];if(Array.isArray(h))for(let u of h)u instanceof it&&i.has(u)&&c.push(u.toString());return c}d(a,"parseOnOff");function s(h,c=0){if(!Array.isArray(h))return null;let u=[];for(let m of h){if(m instanceof it&&i.has(m)){o.put(m),u.push(m.toString());continue}let g=n(m,c);g&&u.push(g)}if(c>0)return u;let p=[];for(let[m]of i.items())o.has(m)||p.push(m.toString());return p.length&&u.push({name:null,order:p}),u}d(s,"parseOrder");function n(h,c){if(++c>f)return E("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;let u=l.fetchIfRef(h);if(!Array.isArray(u))return null;let p=l.fetchIfRef(u[0]);if(typeof p!="string")return null;let m=s(u.slice(1),c);return m?.length?{name:Wt(p),order:m}:null}d(n,"parseNestedOrder");function r(h){if(Array.isArray(h))for(let c of h){let u=l.fetchIfRef(c);if(!Array.isArray(u)||!u.length)continue;let p=new Set;for(let m of u)m instanceof it&&i.has(m)&&!p.has(m.toString())&&(p.add(m.toString()),i.get(m).rbGroups.push(p))}}d(r,"parseRBGroups");let l=this.xref,o=new we,f=10;return r(e.get("RBGroups")),{name:typeof e.get("Name")=="string"?Wt(e.get("Name")):null,creator:typeof e.get("Creator")=="string"?Wt(e.get("Creator")):null,baseState:e.get("BaseState")instanceof Z?e.get("BaseState").name:null,on:a(e.get("ON")),off:a(e.get("OFF")),order:s(e.get("Order")),groups:[...i]}}setActualNumPages(e=null){this.#t=e}get hasActualNumPages(){return this.#t!==null}get _pagesCount(){let e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new V("Page count in top-level pages dictionary is not an integer.");return ht(this,"_pagesCount",e)}get numPages(){return this.#t??this._pagesCount}get destinations(){let e=new Map;for(let i of this.#h())if(i instanceof is)for(let[a,s]of i.getAll()){let n=Vf(s);n&&e.set(Wt(a,!0),n)}else if(i instanceof _)for(let[a,s]of i){let n=Vf(s);n&&e.getOrInsert(Wt(a,!0),n)}return ht(this,"destinations",e)}getDestination(e){if(Object.hasOwn(this,"destinations"))return this.destinations.get(e)??null;for(let i of this.#h())if(i instanceof is||i instanceof _){let a=Vf(i.get(e));if(a)return a}return this.destinations.get(e)??null}#h(){let e=this.#s.get("Names"),i=[];return e?.has("Dests")&&i.push(new is(e.getRaw("Dests"),this.xref)),this.#s.has("Dests")&&i.push(this.#s.get("Dests")),i}get rawPageLabels(){let e=this.#s.getRaw("PageLabels");return e?new bl(e,this.xref).getAll():null}get pageLabels(){let e=null;try{e=this.#d()}catch(i){if(i instanceof xe)throw i;E("Unable to read page labels.")}return ht(this,"pageLabels",e)}#d(){let e=this.rawPageLabels;if(!e)return null;let i=Array(this.numPages),a=null,s="",n="",r=1;for(let l=0,o=this.numPages;l<o;l++){let f=e.get(l);if(f!==void 0){if(!(f instanceof _))throw new V("PageLabel is not a dictionary.");if(f.has("Type")&&!Ht(f.get("Type"),"PageLabel"))throw new V("Invalid type in PageLabel dictionary.");if(f.has("S")){let h=f.get("S");if(!(h instanceof Z))throw new V("Invalid style in PageLabel dictionary.");a=h.name}else a=null;if(f.has("P")){let h=f.get("P");if(typeof h!="string")throw new V("Invalid prefix in PageLabel dictionary.");s=Wt(h)}else s="";if(f.has("St")){let h=f.get("St");if(!(Number.isInteger(h)&&h>=1))throw new V("Invalid start in PageLabel dictionary.");r=h}else r=1}switch(a){case"D":n=r;break;case"R":case"r":n=lb(r,a==="r");break;case"A":case"a":let h=r-1;n=String.fromCharCode(a.charCodeAt(0)+h%26).repeat(Math.floor(h/26)+1);break;default:if(a)throw new V(`Invalid style "${a}" in PageLabel dictionary.`);n=""}i[l]=s+n,r++}return i}get pageLayout(){let e=this.#s.get("PageLayout"),i="";if(e instanceof Z)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":i=e.name}return ht(this,"pageLayout",i)}get pageMode(){let e=this.#s.get("PageMode"),i="UseNone";if(e instanceof Z)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":i=e.name}return ht(this,"pageMode",i)}get viewerPreferences(){let e=this.#s.get("ViewerPreferences");if(!(e instanceof _))return ht(this,"viewerPreferences",null);let i=null;for(let[a,s]of e){let n;switch(a){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof s=="boolean"&&(n=s);break;case"NonFullScreenPageMode":if(s instanceof Z)switch(s.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":n=s.name;break;default:n="UseNone"}break;case"Direction":if(s instanceof Z)switch(s.name){case"L2R":case"R2L":n=s.name;break;default:n="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(s instanceof Z)switch(s.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":n=s.name;break;default:n="CropBox"}break;case"PrintScaling":if(s instanceof Z)switch(s.name){case"None":case"AppDefault":n=s.name;break;default:n="AppDefault"}break;case"Duplex":if(s instanceof Z)switch(s.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":n=s.name;break;default:n="None"}break;case"PrintPageRange":Array.isArray(s)&&s.length%2==0&&s.every((r,l,o)=>Number.isInteger(r)&&r>0&&(l===0||r>=o[l-1])&&r<=this.numPages)&&(n=s);break;case"NumCopies":Number.isInteger(s)&&s>0&&(n=s);break;default:E(`Ignoring non-standard key in ViewerPreferences: ${a}.`);continue}n===void 0?E(`Bad value, for key "${a}", in ViewerPreferences: ${s}.`):(i??=new Map).set(a,n)}return ht(this,"viewerPreferences",i)}get openAction(){let e=this.#s.get("OpenAction"),i=new Map;if(e instanceof _){let a=new _(this.xref);a.set("A",e);let s={url:null,dest:null,action:null};ko.parseDestDictionary({destDict:a,resultObj:s}),Array.isArray(s.dest)?i.set("dest",s.dest):s.action&&i.set("action",s.action)}else Do(e)&&i.set("dest",e);return ht(this,"openAction",i.size?i:null)}get attachments(){let e=this.#s.get("Names"),i=null;if(e instanceof _&&e.has("EmbeddedFiles")){let a=new is(e.getRaw("EmbeddedFiles"),this.xref);for(let[s,n]of a.getAll())(i??=new Map).set(Wt(s,!0),new la(n).serializable)}return ht(this,"attachments",i)}#p(e){let i=this.#s.get("Names");if(i instanceof _&&i.has("EmbeddedFiles")){let a=new is(i.getRaw("EmbeddedFiles"),this.xref);for(let[s,n]of a.getAll())if(Wt(s,!0)===e)return la.readContent(n)}}attachmentContent(e){let i=this.#p(e);if(i!==void 0)return i;let a=this.#i.get(e);if(a){let s=this.xref.fetch(a);if(s instanceof Bt){let n=la.readStreamContent(s);return this.#a.has(e)?m5(s,n)??n:n}return s instanceof _?la.readContent(s):null}return null}get rawEmbeddedFiles(){let e=this.#s.get("Names");return!(e instanceof _)||!e.has("EmbeddedFiles")?null:new is(e.getRaw("EmbeddedFiles"),this.xref).getAll(!0)}get xfaImages(){let e=this.#s.get("Names"),i=null;if(e instanceof _&&e.has("XFAImages")){let a=new is(e.getRaw("XFAImages"),this.xref);for(let[s,n]of a.getAll())n instanceof Bt&&(i??=new Map,i.set(Wt(s,!0),n.getBytes()))}return ht(this,"xfaImages",i)}#g(){let e=this.#s.get("Names"),i=null;function a(n,r){if(!(r instanceof _)||!Ht(r.get("S"),"JavaScript"))return;let l=r.get("JS");if(l instanceof Bt)l=l.getString();else if(typeof l!="string")return;l=Wt(l,!0).replaceAll("\0",""),l&&(i??=new Map).set(n,l)}if(d(a,"appendIfJavaScriptDict"),e instanceof _&&e.has("JavaScript")){let n=new is(e.getRaw("JavaScript"),this.xref);for(let[r,l]of n.getAll())a(Wt(r,!0),l)}let s=this.#s.get("OpenAction");return s&&a("OpenAction",s),i}get jsActions(){let e=this.#g(),i=$o(this.xref,this.#s,Gg);if(e){i??=new Map;for(let[a,s]of e)i.getOrInsertComputed(a,Ps).push(s)}return ht(this,"jsActions",i)}async cleanup(e=!1){ru(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear();for(let{dict:i}of await Promise.all(this.fontCache))delete i.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(e){let i=[this.toplevelPagesDict],a=new we,s=this.#s.getRaw("Pages");s instanceof it&&a.put(s);let n=this.xref,r=this.pageKidsCountCache,l=this.pageIndexCache,o=this.pageDictCache,f=0;for(;i.length;){let h=i.pop();if(h instanceof it){let m=r.get(h);if(m>=0&&f+m<=e){f+=m;continue}if(a.has(h))throw new V("Pages tree contains circular reference.");a.put(h);let g=await(o.get(h)||n.fetchAsync(h));if(g instanceof _){let b=g.getRaw("Type");if(b instanceof it&&(b=await n.fetchAsync(b)),Ht(b,"Page")||!g.has("Kids")){if(r.has(h)||r.put(h,1),l.has(h)||l.put(h,f),f===e)return[g,h];f++;continue}}i.push(g);continue}if(!(h instanceof _))throw new V("Page dictionary kid reference points to wrong type of object.");let{objId:c}=h,u=h.getRaw("Count");if(u instanceof it&&(u=await n.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(c&&!r.has(c)&&r.put(c,u),f+u<=e)){f+=u;continue}let p=h.getRaw("Kids");if(p instanceof it&&(p=await n.fetchAsync(p)),!Array.isArray(p)){let m=h.getRaw("Type");if(m instanceof it&&(m=await n.fetchAsync(m)),Ht(m,"Page")||!h.has("Kids")){if(f===e)return[h,null];f++;continue}throw new V("Page dictionary kids object is not an array.")}for(let m=p.length-1;m>=0;m--){let g=p[m];i.push(g),h===this.toplevelPagesDict&&g instanceof it&&!o.has(g)&&o.put(g,n.fetchAsync(g))}}throw Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){let{ignoreErrors:i}=this.pdfManager.evaluatorOptions,a=[{currentNode:this.toplevelPagesDict,posInKids:0}],s=new we,n=this.#s.getRaw("Pages");n instanceof it&&s.put(n);let r=new Map,l=this.xref,o=this.pageIndexCache,f=0;function h(u,p){p&&!o.has(p)&&o.put(p,f),r.set(f++,[u,p])}d(h,"addPageDict");function c(u){if(u instanceof Es&&!e)throw u;e&&i&&f===0&&(E(`getAllPageDicts - Skipping invalid first page: "${u}".`),u=_.empty),r.set(f++,[u,null])}for(d(c,"addPageError");a.length>0;){let u=a.at(-1),{currentNode:p,posInKids:m}=u,g=p.getRaw("Kids");if(g instanceof it)try{g=await l.fetchAsync(g)}catch(y){c(y);break}if(!Array.isArray(g)){let y=p.getRaw("Type");if(y instanceof it)try{y=await l.fetchAsync(y)}catch(x){c(x);break}if(Ht(y,"Page")||!p.has("Kids")){h(p,null);break}c(new V("Page dictionary kids object is not an array."));break}if(m>=g.length){a.pop();continue}let b=g[m],w;if(b instanceof it){if(s.has(b)){c(new V("Pages tree contains circular reference."));break}s.put(b);try{w=await l.fetchAsync(b)}catch(y){c(y);break}}else w=b;if(!(w instanceof _)){c(new V("Page dictionary kid reference points to wrong type of object."));break}let v=w.getRaw("Type");if(v instanceof it)try{v=await l.fetchAsync(v)}catch(y){c(y);break}Ht(v,"Page")||!w.has("Kids")?h(w,b instanceof it?b:null):a.push({currentNode:w,posInKids:0}),u.posInKids++}return r}async getPageIndex(e){let i=this.pageIndexCache.get(e);if(i!==void 0)return i;let a=this.xref,s=0,n=e,r=new we;for(r.put(e);;){let l=await a.fetchAsync(n);if(rr(n,e)&&!nr(l,"Page")&&!(l instanceof _&&!l.has("Type")&&l.has("Contents")))throw new V("The reference does not point to a /Page dictionary.");if(!l)break;if(!(l instanceof _))throw new V("Node must be a dictionary.");let o=l.getRaw("Parent");if(o instanceof it){if(r.has(o))throw new V("Pages tree contains circular reference.");r.put(o)}let f=await l.getAsync("Parent");if(!f)break;if(!(f instanceof _))throw new V("Parent must be a dictionary.");let h=await f.getAsync("Kids");if(!h)break;if(!Array.isArray(h))throw new V("Kids must be an array.");let c=[],u=!1;for(let p of h){if(!(p instanceof it))throw new V("Kid must be a reference.");if(rr(p,n)){u=!0;break}c.push(a.fetchAsync(p).then(m=>{if(!(m instanceof _))throw new V("Kid node must be a dictionary.");if(m.has("Count")){let g=m.get("Count");if(Number.isInteger(g)&&g>=0){s+=g;return}throw new V("Count must be a (positive) integer.")}s++}))}if(!u)throw new V("Kid reference not found in parent's kids.");await Promise.all(c),n=o}return this.pageIndexCache.put(e,s),s}get baseUrl(){let e=this.#s.get("URI");if(e instanceof _){let i=e.get("Base");if(typeof i=="string"){let a=Io(i,null,{tryConvertEncoding:!0});if(a)return ht(this,"baseUrl",a.href)}}return ht(this,"baseUrl",this.pdfManager.docBaseUrl)}static#c(e,i){let a=e.fetchIfRef(i);if(!(a instanceof _))return null;let s=null,n=a.getRaw("Pg");if(n instanceof it&&(s=n),!s){let f=[a],h=new we;for(h.put(i);f.length>0&&!s;){let c=f.shift().getRaw("K");if(c instanceof it){if(h.has(c))continue;h.put(c),c=e.fetch(c)}let u;if(Array.isArray(c))u=c;else if(c)u=[c];else continue;for(let p of u){if(p instanceof it){if(h.has(p))continue;h.put(p)}let m=e.fetchIfRef(p);if(!(m instanceof _))continue;let g=m.getRaw("Pg");if(g instanceof it){s=g;break}f.push(m)}}}if(!s){let f=a;for(let h=0;h<40;h++){let c=f.getRaw("P");if(!(c instanceof it))break;let u=e.fetch(c);if(!(u instanceof _)||Ht(u.get("Type"),"StructTreeRoot"))break;let p=u.getRaw("Pg");if(p instanceof it){s=p;break}f=u}}if(!s)return null;let r=null,l=null,o=a.get("A");if(o instanceof _){let f=ul(o.getArray("BBox"),null);f&&(r=f[0],l=f[3])}return[s,{name:"XYZ"},r,l,null]}static parseDestDictionary({destDict:e,resultObj:i,docBaseUrl:a=null,docAttachments:s=null}){if(!(e instanceof _)){E("parseDestDictionary: `destDict` must be a dictionary.");return}let n=e.get("A"),r,l;if(n instanceof _||(e.has("Dest")?n=e.get("Dest"):(n=e.get("AA"),n instanceof _&&(n.has("D")?n=n.get("D"):n.has("U")&&(n=n.get("U"))))),n instanceof _){let o=n.get("S");if(!(o instanceof Z)){E("parseDestDictionary: Invalid type in Action dictionary.");return}let f=o.name;switch(f){case"ResetForm":let h=n.get("Flags"),c=!((typeof h=="number"?h:0)&1),u=[],p=[];for(let M of n.get("Fields")||[])M instanceof it?p.push(M.toString()):typeof M=="string"&&u.push(Wt(M));i.resetForm={fields:u,refs:p,include:c};break;case"URI":r=n.get("URI"),r instanceof Z&&(r="/"+r.name);break;case"GoTo":l=n.get("D");break;case"Launch":case"GoToR":let m=n.get("F");if(m instanceof _)r=new la(m).filename;else if(typeof m=="string")r=m;else break;let g=Zd(n);g&&(r=r.split("#",1)[0]+"#"+g);let b=n.get("NewWindow");typeof b=="boolean"&&(i.newWindow=b);break;case"GoToE":let w=n.get("T"),v=null;if(w instanceof _){let M=w.get("R"),O=w.get("N");Ht(M,"C")&&typeof O=="string"&&(v=Wt(O,!0))}if(s&&v){i.attachmentId=v,i.attachment=s.get(v);let M=Zd(n);M&&(i.attachmentDest=M)}else E('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":let y=n.get("N");y instanceof Z&&(i.action=y.name);break;case"SetOCGState":let x=n.get("State"),q=n.get("PreserveRB");if(!Array.isArray(x)||x.length===0)break;let j=[];for(let M of x)if(M instanceof Z)switch(M.name){case"ON":case"OFF":case"Toggle":j.push(M.name)}else M instanceof it&&j.push(M.toString());if(j.length!==x.length)break;i.setOCGState={state:j,preserveRB:q!==!1};break;case"JavaScript":let A=n.get("JS"),S;A instanceof Bt?S=A.getString():typeof A=="string"&&(S=A);let C=S&&hp(Wt(S,!0));if(C){r=C.url,i.newWindow=C.newWindow;break}default:if(f==="JavaScript"||f==="SubmitForm")break;E(`parseDestDictionary - unsupported action: "${f}".`)}}else e.has("Dest")&&(l=e.get("Dest"));if(typeof r=="string"){let o=Io(r,a,{addDefaultProtocol:!0,tryConvertEncoding:!0});o&&(i.url=o.href),i.unsafeUrl=r}if(l&&(l instanceof Z&&(l=l.name),typeof l=="string"?i.dest=Wt(l,!0):Do(l)&&(i.dest=l)),!i.dest&&!i.url&&!i.action&&!i.attachment&&!i.setOCGState&&!i.resetForm){let o=e.getRaw("SE");if(o instanceof it)try{let f=ko.#c(e.xref,o);f&&(i.dest=f)}catch(f){if(f instanceof xe)throw f;de("SE parsing failed.")}}}};d(Yl,"createImageDict");d(al,"createRawImage");d(y5,"paethPredictor");d(k5,"applyPNGOptimumFilter");d(v5,"deflate");d(t1,"createPNGLikeImage");d(b0,"createImage");d(j5,"mayHaveChildren");d(q5,"addChildren");Po=class w0{static{d(this,"ObjectLoader")}refSet=new we;constructor(e,i,a){this.dict=e,this.keys=i,this.xref=a}async load(){let{keys:e,dict:i}=this,a=[];for(let s of e){let n=i.getRaw(s);n!==void 0&&a.push(n)}await this.#t(a),this.refSet=null}async#t(e){let i=[],a=[];for(;e.length;){let s=e.pop();if(s instanceof it){if(this.refSet.has(s))continue;try{this.refSet.put(s),s=this.xref.fetch(s)}catch(n){if(!(n instanceof xe)){E(`ObjectLoader.#walk - requesting all data: "${n}".`),await this.xref.stream.manager.requestAllChunks();return}i.push(s),a.push({begin:n.begin,end:n.end})}}if(s instanceof Bt){let n=s.getBaseStreams();if(n){let r=!1;for(let l of n)l.isDataLoaded||(r=!0,a.push({begin:l.start,end:l.end}));r&&i.push(s)}}q5(s,e)}if(a.length){await this.xref.stream.manager.requestRanges(a);for(let s of i)s instanceof it&&this.refSet.remove(s);await this.#t(i)}}static async load(e,i,a){a.stream.isDataLoaded||await new w0(e,i,a).load()}},Jo=Symbol(),bn=Symbol(),Ue=Symbol(),Ns=Symbol(),ka=Symbol(),Qn=Symbol(),vo=Symbol(),Fa=Symbol(),$a=Symbol(),st=Symbol("content"),ba=Symbol("data"),fr=Symbol(),W=Symbol("extra"),Ie=Symbol(),Cl=Symbol(),Yh=Symbol(),y0=Symbol(),wn=Symbol(),Qo=Symbol(),wl=Symbol(),sl=Symbol(),ou=Symbol(),ji=Symbol(),nl=Symbol(),Ti=Symbol(),hr=Symbol(),rs=Symbol(),Ye=Symbol(),Vt=Symbol(),We=Symbol(),Ce=Symbol(),yl=Symbol(),Kn=Symbol(),Jh=Symbol(),jo=Symbol(),fu=Symbol(),In=Symbol(),Zn=Symbol(),_s=Symbol(),rl=Symbol(),us=Symbol(),ps=Symbol(),kl=Symbol(),vl=Symbol(),x5=Symbol(),Ke=Symbol("namespaceId"),me=Symbol("nodeName"),un=Symbol(),Va=Symbol(),Qh=Symbol(),ds=Symbol(),Qa=Symbol(),Ki=Symbol(),pr=Symbol(),Rs=Symbol(),k0=Symbol("root"),Wr=Symbol(),fs=Symbol(),Zh=Symbol(),v0=Symbol(),Xi=Symbol(),Ca=Symbol(),si=Symbol(),j0=Symbol(),Ot=Symbol(),ll=Symbol(),ce=Symbol(),ke=Symbol("uid"),Ba=Symbol(),ni={config:{id:0,check:d(t=>t.startsWith("http://www.xfa.org/schema/xci/"),"check")},connectionSet:{id:1,check:d(t=>t.startsWith("http://www.xfa.org/schema/xfa-connection-set/"),"check")},datasets:{id:2,check:d(t=>t.startsWith("http://www.xfa.org/schema/xfa-data/"),"check")},form:{id:3,check:d(t=>t.startsWith("http://www.xfa.org/schema/xfa-form/"),"check")},localeSet:{id:4,check:d(t=>t.startsWith("http://www.xfa.org/schema/xfa-locale-set/"),"check")},pdf:{id:5,check:d(t=>t==="http://ns.adobe.com/xdp/pdf/","check")},signature:{id:6,check:d(t=>t==="http://www.w3.org/2000/09/xmldsig#","check")},sourceSet:{id:7,check:d(t=>t.startsWith("http://www.xfa.org/schema/xfa-source-set/"),"check")},stylesheet:{id:8,check:d(t=>t==="http://www.w3.org/1999/XSL/Transform","check")},template:{id:9,check:d(t=>t.startsWith("http://www.xfa.org/schema/xfa-template/"),"check")},xdc:{id:10,check:d(t=>t.startsWith("http://www.xfa.org/schema/xdc/"),"check")},xdp:{id:11,check:d(t=>t==="http://ns.adobe.com/xdp/","check")},xfdf:{id:12,check:d(t=>t==="http://ns.adobe.com/xfdf/","check")},xhtml:{id:13,check:d(t=>t==="http://www.w3.org/1999/xhtml","check")},xmpmeta:{id:14,check:d(t=>t==="http://ns.adobe.com/xmpmeta/","check")}},A5={pt:d(t=>t,"pt"),cm:d(t=>t/2.54*72,"cm"),mm:d(t=>t/25.4*72,"mm"),in:d(t=>t*72,"in"),px:d(t=>t,"px")},S5=/([+-]?\d+\.?\d*)(.*)/;d(Zo,"stripQuotes");d(Gt,"getInteger");d(Bo,"getFloat");d(tf,"getKeyword");d(nt,"getStringOption");d(vt,"getMeasurement");d(e1,"getRatio");d(Oa,"getRelevant");d(C5,"getColor");d(I5,"getBBox");Dt=class Vr{static{d(this,"HTMLResult")}static get FAILURE(){return ht(this,"FAILURE",new Vr(!1,null,null,null))}static get EMPTY(){return ht(this,"EMPTY",new Vr(!0,null,null,null))}constructor(e,i,a,s){this.success=e,this.html=i,this.bbox=a,this.breakNode=s}isBreak(){return!!this.breakNode}static breakNode(e){return new Vr(!1,null,null,e)}static success(e,i=null){return new Vr(!0,e,i,null)}},T5=class{static{d(this,"FontFinder")}constructor(t){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}add(t,e=null){for(let a of t)this.addPdfFont(a);for(let a of this.fonts.values())a.regular||=a.italic||a.bold||a.bolditalic;if(!e||e.size===0)return;let i=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(let a of e)this.fonts.set(a,i)}addPdfFont(t){let e=t.cssFontInfo,i=e.fontFamily,a=this.fonts.getOrInsertComputed(i,Qg);this.defaultFont??=a;let s="",n=parseFloat(e.fontWeight);parseFloat(e.italicAngle)===0?n>=700&&(s="bold"):s=n>=700?"bolditalic":"italic",s||((t.name.includes("Bold")||t.psName?.includes("Bold"))&&(s="bold"),(t.name.includes("Italic")||t.name.endsWith("It")||t.psName?.includes("Italic")||t.psName?.endsWith("It"))&&(s+="italic")),s||="regular",a[s]=t}getDefault(){return this.defaultFont}find(t,e=!0){let i=this.fonts.get(t)||this.cache.get(t);if(i)return i;let a=/[,\-_ ]|bolditalic|bold|italic|regular|it/gi,s=t.replaceAll(a,"");if(i=this.fonts.get(s),i)return this.cache.set(t,i),i;s=s.toLowerCase();let n=[];for(let[r,l]of this.fonts)r.replaceAll(a,"").toLowerCase().startsWith(s)&&n.push(l);if(n.length===0)for(let r of this.fonts.values())r.regular.name?.replaceAll(a,"").toLowerCase().startsWith(s)&&n.push(r);if(n.length===0){s=s.replaceAll(/psmt|mt/gi,"");for(let[r,l]of this.fonts)r.replaceAll(a,"").toLowerCase().startsWith(s)&&n.push(l)}if(n.length===0)for(let r of this.fonts.values())r.regular.name?.replaceAll(a,"").toLowerCase().startsWith(s)&&n.push(r);return n.length>=1?(n.length!==1&&e&&E(`XFA - Too many choices to guess the correct font: ${t}`),this.cache.set(t,n[0]),n[0]):(e&&!this.warned.has(t)&&(this.warned.add(t),E(`XFA - Cannot find the font: ${t}`)),null)}};d(hu,"selectFont");d(M5,"fonts_getMetrics");i1=class{static{d(this,"FontInfo$1")}constructor(t,e,i,a){if(this.lineHeight=i,this.paraMargin=e||{top:0,bottom:0,left:0,right:0},!t){[this.pdfFont,this.xfaFont]=this.defaultFont(a);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};let s=a.find(t.typeface);s?(this.pdfFont=hu(t,s),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(a))):[this.pdfFont,this.xfaFont]=this.defaultFont(a)}defaultFont(t){let e=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(e?.regular){let i=e.regular;return[i,{typeface:i.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}},_5=class{static{d(this,"FontSelector")}constructor(t,e,i,a){this.fontFinder=a,this.stack=[new i1(t,e,i,a)]}pushData(t,e,i){let a=this.stack.at(-1);for(let n of["typeface","posture","weight","size","letterSpacing"])t[n]||=a.xfaFont[n];for(let n of["top","bottom","left","right"])isNaN(e[n])&&(e[n]=a.paraMargin[n]);let s=new i1(t,e,i||a.lineHeight,this.fontFinder);s.pdfFont||=a.pdfFont,this.stack.push(s)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}},E5=class{static{d(this,"TextMeasure")}constructor(t,e,i,a){this.glyphs=[],this.fontSelector=new _5(t,e,i,a),this.extraHeight=0}pushData(t,e,i){this.fontSelector.pushData(t,e,i)}popFont(t){return this.fontSelector.popFont()}addPara(){let t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}addString(t){if(!t)return;let e=this.fontSelector.topFont(),i=e.xfaFont.size;if(e.pdfFont){let a=e.xfaFont.letterSpacing,s=e.pdfFont,n=s.lineHeight||1.2,r=e.lineHeight||Math.max(1.2,n)*i,l=n-(s.lineGap===void 0?.2:s.lineGap),o=Math.max(1,l)*i,f=i/1e3,h=s.defaultWidth||s.charsToGlyphs(" ")[0].width;for(let c of t.split(/[\u2029\n]/)){let u=s.encodeString(c).join(""),p=s.charsToGlyphs(u);for(let m of p){let g=m.width||h;this.glyphs.push([g*f+a,r,o,m.unicode,!1])}this.glyphs.push([0,0,0,`
|
|
28
|
+
`,!0])}this.glyphs.pop()}else{for(let a of t.split(/[\u2029\n]/)){for(let s of a.split(""))this.glyphs.push([i,1.2*i,i,s,!1]);this.glyphs.push([0,0,0,`
|
|
29
|
+
`,!0])}this.glyphs.pop()}}compute(t){let e=-1,i=0,a=0,s=0,n=0,r=0,l=!1,o=!0;for(let f=0,h=this.glyphs.length;f<h;f++){let[c,u,p,m,g]=this.glyphs[f],b=m===" ",w=o?p:u;g?(a=Math.max(a,n),n=0,s+=r,r=w,e=-1,i=0,o=!1):b?n+c>t?(a=Math.max(a,n),n=0,s+=r,r=w,e=-1,i=0,l=!0,o=!1):(r=Math.max(w,r),i=n,n+=c,e=f):n+c>t?(s+=r,r=w,e===-1?(a=Math.max(a,n),n=c):(f=e,a=Math.max(a,i),n=0,e=-1,i=0),l=!0,o=!1):(n+=c,r=Math.max(w,r))}return a=Math.max(a,n),s+=r+this.extraHeight,{width:1.02*a,height:s,isBroken:l}}},a1=/^[^.[]+/,F5=/^[^\]]+/,ra={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},q0=new Map([["$data",(t,e)=>t.datasets?t.datasets.data:t],["$record",(t,e)=>(t.datasets?t.datasets.data:t)[Ti]()[0]],["$template",(t,e)=>t.template],["$connectionSet",(t,e)=>t.connectionSet],["$form",(t,e)=>t.form],["$layout",(t,e)=>t.layout],["$host",(t,e)=>t.host],["$dataWindow",(t,e)=>t.dataWindow],["$event",(t,e)=>t.event],["!",(t,e)=>t.datasets],["$xfa",(t,e)=>t],["xfa",(t,e)=>t],["$",(t,e)=>e]]),R5=new WeakMap;d(D5,"parseIndex");d(x0,"parseExpression");d(Ts,"searchNode");d(P5,"createDataNode");Jl=Symbol(),Ys=Symbol(),Un=Symbol(),ne=Symbol("_children"),Kf=Symbol(),js=Symbol(),Xf=Symbol(),s1=Symbol(),Yf=Symbol(),n1=Symbol(),Jf=Symbol(),Kr=Symbol(),Ql=Symbol(),pa=Symbol("parent"),Er=Symbol(),Fr=Symbol(),Qf=Symbol(),tc=0,A0=ni.datasets.id,Y=class Xr{static{d(this,"XFAObject")}constructor(e,i,a=!1){this[Ke]=e,this[me]=i,this[Jf]=a,this[pa]=null,this[ne]=[],this[ke]=`${i}${tc++}`,this[Ce]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let i=this,a=null;for(let{name:s,index:n}of e){for(let r=0,l=isFinite(n)?n:0;r<=l;r++)a=new yn(i[Ke]===A0?-1:i[Ke],s),i[Ue](a);i=a}return a}[Va](e){if(!this[Jf]||!this[Qh](e))return!1;let i=e[me],a=this[i];if(a instanceof F){if(a.push(e))return this[Ue](e),!0}else return a!==null&&this[Rs](a),this[i]=e,this[Ue](e),!0;let s="";return this.id?s=` (id: ${this.id})`:this.name&&(s=` (name: ${this.name} ${this.h.value})`),E(`XFA - node "${this[me]}"${s} has already enough "${i}"!`),!1}[Qh](e){return Object.hasOwn(this,e[me])&&e[Ke]===this[Ke]}[rl](){return!1}[Jo](){return!1}[fu](){return!1}[In](){return!1}[Ki](){this.para&&this[We]()[W].paraStack.pop()}[pr](){this[We]()[W].paraStack.push(this.para)}[Zh](e){this.id&&this[Ke]===ni.template.id&&e.set(this.id,this)}[We](){return this[Ce].template}[us](){return!1}[ps](){return!1}[Ue](e){e[pa]=this,this[ne].push(e),!e[Ce]&&this[Ce]&&(e[Ce]=this[Ce])}[Rs](e){let i=this[ne].indexOf(e);this[ne].splice(i,1)}[yl](){return Object.hasOwn(this,"value")}[Xi](e){}[ds](e){}[Ie](){}[ka](e){delete this[Jf],this[vo]&&(e.clean(this[vo]),delete this[vo])}[Jh](e){return this[ne].indexOf(e)}[jo](e,i){i[pa]=this,this[ne].splice(e,0,i),!i[Ce]&&this[Ce]&&(i[Ce]=this[Ce])}[kl](){return!this.name}[x5](){return""}[si](){return this[ne].length===0?this[st]:this[ne].map(e=>e[si]()).join("")}get[Un](){let e=Object.getPrototypeOf(this);if(!e._attributes){let i=e._attributes=new Set;for(let a of Object.getOwnPropertyNames(this)){if(this[a]===null||this[a]instanceof Xr||this[a]instanceof F)break;i.add(a)}}return ht(this,Un,e._attributes)}[_s](e){let i=this;for(;i;){if(i===e)return!0;i=i[Vt]()}return!1}[Vt](){return this[pa]}[Ye](){return this[Vt]()}[fr](){let e=Object.create(null);this[st]&&(e.$content=this[st]);for(let i of Object.getOwnPropertyNames(this)){let a=this[i];a!==null&&(a instanceof Xr?e[i]=a[fr]():a instanceof F?a.isEmpty()||(e[i]=a.dump()):e[i]=a)}return e}[ce](){return null}[Ot](){return Dt.EMPTY}*[hr](){for(let e of this[Ti]())yield e}*[s1](e,i){for(let a of this[hr]())if(!e||i===e.has(a[me])){let s=this[wn](),n=a[Ot](s);n.success||(this[W].failingNode=a),yield n}}[Cl](){return null}[bn](e,i){this[W].children.push(e)}[wn](){}[Ns]({filter:e=null,include:i=!0}){if(!this[W].generator)this[W].generator=this[s1](e,i);else{let a=this[wn](),s=this[W].failingNode[Ot](a);if(!s.success)return s;s.html&&this[bn](s.html,s.bbox),delete this[W].failingNode}for(;;){let a=this[W].generator.next();if(a.done)break;let s=a.value;if(!s.success)return s;s.html&&this[bn](s.html,s.bbox)}return this[W].generator=null,Dt.EMPTY}[v0](e){this[Fr]=new Set(Object.keys(e))}[n1](e){let i=this[Un],a=this[Fr];return e.keys().filter(s=>i.has(s)&&!a.has(s)).toArray()}[Wr](e,i=new Set){for(let a of this[ne])a[Er](e,i)}[Er](e,i){let a=this[Yf](e,i);a?this[Jl](a,e,i):this[Wr](e,i)}[Yf](e,i){let{use:a,usehref:s}=this;if(!a&&!s)return null;let n=null,r=null,l=null,o=a;if(s?(o=s,s.startsWith("#som(")&&s.endsWith(")")?r=s.slice(5,-1):s.startsWith(".#som(")&&s.endsWith(")")?r=s.slice(6,-1):s.startsWith("#")?l=s.slice(1):s.startsWith(".#")&&(l=s.slice(2))):a.startsWith("#")?l=a.slice(1):r=a,this.use=this.usehref="",l?n=e.get(l):(n=Ts(e.get(k0),this,r,!0,!1),n&&=n[0]),!n)return E(`XFA - Invalid prototype reference: ${o}.`),null;if(n[me]!==this[me])return E(`XFA - Incompatible prototype: ${n[me]} !== ${this[me]}.`),null;if(i.has(n))return E("XFA - Cycle detected in prototypes use."),null;i.add(n);let f=n[Yf](e,i);return f&&n[Jl](f,e,i),n[Wr](e,i),i.delete(n),n}[Jl](e,i,a){if(a.has(e))E("XFA - Cycle detected in prototypes use.");else{!this[st]&&e[st]&&(this[st]=e[st]),new Set(a).add(e);for(let s of this[n1](e[Fr]))this[s]=e[s],this[Fr]&&this[Fr].add(s);for(let s of Object.getOwnPropertyNames(this)){if(this[Un].has(s))continue;let n=this[s],r=e[s];if(n instanceof F){for(let l of n[ne])l[Er](i,a);for(let l=n[ne].length,o=r[ne].length;l<o;l++){let f=e[ne][l][Fa]();if(n.push(f))f[pa]=this,this[ne].push(f),f[Er](i,a);else break}}else if(n!==null)n[Wr](i,a),r&&n[Jl](r,i,a);else if(r!==null){let l=r[Fa]();l[pa]=this,this[s]=l,this[ne].push(l),l[Er](i,a)}}}}static[Kf](e){return Array.isArray(e)?e.map(i=>Xr[Kf](i)):typeof e=="object"&&e?Object.assign({},e):e}[Fa](){let e=Object.create(Object.getPrototypeOf(this));for(let i of Object.getOwnPropertySymbols(this))try{e[i]=this[i]}catch{ht(e,i,this[i])}e[ke]=`${e[me]}${tc++}`,e[ne]=[];for(let i of Object.getOwnPropertyNames(this)){if(this[Un].has(i)){e[i]=Xr[Kf](this[i]);continue}let a=this[i];e[i]=a instanceof F?new F(a[Kr]):null}for(let i of this[ne]){let a=i[me],s=i[Fa]();e[ne].push(s),s[pa]=e,e[a]===null?e[a]=s:e[a][ne].push(s)}return e}[Ti](e=null){return e?this[ne].filter(i=>i[me]===e):this[ne]}[Qo](e){return this[e]}[wl](e,i,a=!0){return Array.from(this[sl](e,i,a))}*[sl](e,i,a=!0){if(e==="parent")yield this[pa];else{for(let s of this[ne])s[me]===e&&(yield s),s.name===e&&(yield s),(i||s[kl]())&&(yield*s[sl](e,i,!1));a&&this[Un].has(e)&&(yield new cu(this,e,this[e]))}}},F=class S0{static{d(this,"XFAObjectArray")}constructor(e=1/0){this[Kr]=e,this[ne]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){return this[ne].length<=this[Kr]?(this[ne].push(e),!0):(E(`XFA - node "${e[me]}" accepts no more than ${this[Kr]} children`),!1)}isEmpty(){return this[ne].length===0}dump(){return this[ne].length===1?this[ne][0][fr]():this[ne].map(e=>e[fr]())}[Fa](){let e=new S0(this[Kr]);return e[ne]=this[ne].map(i=>i[Fa]()),e}get children(){return this[ne]}clear(){this[ne].length=0}},cu=class{static{d(this,"XFAAttribute")}constructor(t,e,i){this[pa]=t,this[me]=e,this[st]=i,this[$a]=!1,this[ke]=`attribute${tc++}`}[Vt](){return this[pa]}[Zn](){return!0}[ou](){return this[st].trim()}[Xi](t){t=t.value||"",this[st]=t.toString()}[si](){return this[st]}[_s](t){return this[pa]===t||this[pa][_s](t)}},yn=class ec extends Y{static{d(this,"XmlObject")}constructor(e,i,a={}){if(super(e,i),this[st]="",this[js]=null,i!=="#text"){let s=new Map;this[Ys]=s;for(let[n,r]of Object.entries(a))s.set(n,new cu(this,n,r));if(Object.hasOwn(a,un)){let n=a[un].xfa.dataNode;n!==void 0&&(n==="dataGroup"?this[js]=!1:n==="dataValue"&&(this[js]=!0))}}this[$a]=!1}[ll](e){let i=this[me];if(i==="#text"){e.push(er(this[st]));return}let a=dh(i),s=this[Ke]===A0?"xfa:":"";e.push(`<${s}${a}`);for(let[n,r]of this[Ys]){let l=dh(n);e.push(` ${l}="${er(r[st])}"`)}if(this[js]!==null&&(this[js]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),!this[st]&&this[ne].length===0)e.push("/>");else{if(e.push(">"),this[st])typeof this[st]=="string"?e.push(er(this[st])):this[st][ll](e);else for(let n of this[ne])n[ll](e);e.push(`</${s}${a}>`)}}[Va](e){if(this[st]){let i=new ec(this[Ke],"#text");this[Ue](i),i[st]=this[st],this[st]=""}return this[Ue](e),!0}[ds](e){this[st]+=e}[Ie](){if(this[st]&&this[ne].length>0){let e=new ec(this[Ke],"#text");this[Ue](e),e[st]=this[st],delete this[st]}}[Ot](){return this[me]==="#text"?Dt.success({name:"#text",value:this[st]}):Dt.EMPTY}[y0](){return this[Ys]}[Qo](e){let i=this[Ys].get(e);return i===void 0?this[Ti](e):i}*[sl](e,i){let a=this[Ys].get(e);a&&(yield a);for(let s of this[ne])s[me]===e&&(yield s),i&&(yield*s[sl](e,i))}*[Yh](e,i){let a=this[Ys].get(e);a&&(!i||!a[$a])&&(yield a);for(let s of this[ne])yield*s[Yh](e,i)}*[nl](e,i,a){for(let s of this[ne])s[me]===e&&(!a||!s[$a])&&(yield s),i&&(yield*s[nl](e,i,a))}[Zn](){return this[js]===null?this[ne].length===0||this[ne][0][Ke]===ni.xhtml.id:this[js]}[ou](){return this[js]===null?this[ne].length===0?this[st].trim():this[ne][0][Ke]===ni.xhtml.id?this[ne][0][si]().trim():null:this[st].trim()}[Xi](e){e=e.value||"",this[st]=e.toString()}[fr](e=!1){let i=Object.create(null);e&&(i.$ns=this[Ke]),this[st]&&(i.$content=this[st]),i.$name=this[me],i.children=[];for(let a of this[ne])i.children.push(a[fr](e));i.attributes=Object.create(null);for(let[a,s]of this[Ys])i.attributes[a]=s[st];return i}},Ge=class extends Y{static{d(this,"ContentObject")}constructor(t,e){super(t,e),this[st]=""}[ds](t){this[st]+=t}[Ie](){}},ve=class extends Ge{static{d(this,"OptionObject")}constructor(t,e,i){super(t,e),this[Ql]=i}[Ie](){this[st]=tf({data:this[st],defaultValue:this[Ql][0],validate:d(t=>this[Ql].includes(t),"validate")})}[ka](t){super[ka](t),delete this[Ql]}},ae=class extends Ge{static{d(this,"StringObject")}[Ie](){this[st]=this[st].trim()}},Ha=class extends Ge{static{d(this,"IntegerObject")}constructor(t,e,i,a){super(t,e),this[Xf]=i,this[Qf]=a}[Ie](){this[st]=Gt({data:this[st],defaultValue:this[Xf],validate:this[Qf]})}[ka](t){super[ka](t),delete this[Xf],delete this[Qf]}},ri=class extends Ha{static{d(this,"Option01")}constructor(t,e){super(t,e,0,i=>i===1)}},C0=class extends Ha{static{d(this,"Option10")}constructor(t,e){super(t,e,1,i=>i===0)}};d(Ut,"measureToString");r1={anchorType(t,e){let i=t[Ye]();if(!(!i||i.layout&&i.layout!=="position"))switch("transform"in e||(e.transform=""),t.anchorType){case"bottomCenter":e.transform+="translate(-50%, -100%)";break;case"bottomLeft":e.transform+="translate(0,-100%)";break;case"bottomRight":e.transform+="translate(-100%,-100%)";break;case"middleCenter":e.transform+="translate(-50%,-50%)";break;case"middleLeft":e.transform+="translate(0,-50%)";break;case"middleRight":e.transform+="translate(-100%,-50%)";break;case"topCenter":e.transform+="translate(-50%,0)";break;case"topRight":e.transform+="translate(-100%,0)"}},dimensions(t,e){let i=t[Ye](),a=t.w,s=t.h;if(i.layout?.includes("row")){let n=i[W],r=t.colSpan,l;r===-1?(l=Math.sumPrecise(n.columnWidths.slice(n.currentColumn)),n.currentColumn=0):(l=Math.sumPrecise(n.columnWidths.slice(n.currentColumn,n.currentColumn+r)),n.currentColumn=(n.currentColumn+t.colSpan)%n.columnWidths.length),isNaN(l)||(a=t.w=l)}e.width=a===""?"auto":Ut(a),e.height=s===""?"auto":Ut(s)},position(t,e){let i=t[Ye]();i?.layout&&i.layout!=="position"||(e.position="absolute",e.left=Ut(t.x),e.top=Ut(t.y))},rotate(t,e){t.rotate&&("transform"in e||(e.transform=""),e.transform+=`rotate(-${t.rotate}deg)`,e.transformOrigin="top left")},presence(t,e){switch(t.presence){case"invisible":e.visibility="hidden";break;case"hidden":case"inactive":e.display="none"}},hAlign(t,e){if(t[me]==="para")switch(t.hAlign){case"justifyAll":e.textAlign="justify-all";break;case"radix":e.textAlign="left";break;default:e.textAlign=t.hAlign}else switch(t.hAlign){case"left":e.alignSelf="start";break;case"center":e.alignSelf="center";break;case"right":e.alignSelf="end"}},margin(t,e){t.margin&&(e.margin=t.margin[ce]().margin)}};d(I0,"setMinMaxDimensions");d(l1,"layoutText");d(uu,"layoutNode");d(T0,"computeBbox");d(ef,"fixDimensions");d(M0,"layoutClass");d(zi,"toStyle");d(kn,"createWrapper");d(_0,"fixTextIndent");d(du,"setAccess");d(mr,"isPrintOnly");d(E0,"getCurrentPara");d(F0,"setPara");d(R0,"setFontFamily");d(D0,"fixURL");d(P0,"createLine");d(B0,"flushHTML");d(O0,"addHTML");d(H0,"getAvailableSpace");d(B5,"getTransformedBBox");d(af,"checkDimensions");pt=ni.template.id,O5=/^H(\d+)$/,H5=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),N5=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];d(o1,"getBorderDims");d(pu,"hasMargin");d(mu,"_setValue");d(gu,"getContainedChildren");d(Il,"isRequired");d(sf,"setTabIndex");d(nf,"applyAssist");d(xn,"ariaLabel");d(Us,"valueToHtml");d(rf,"setFirstUnsplittable");d(lf,"unsetFirstUnsplittable");d(f1,"handleBreak");d(h1,"handleOverflow");L5=class extends ae{static{d(this,"AppearanceFilter")}constructor(t){super(pt,"appearanceFilter"),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},N0=class extends Y{static{d(this,"Arc")}constructor(t){super(pt,"arc",!0),this.circular=Gt({data:t.circular,defaultValue:0,validate:d(e=>e===1,"validate")}),this.hand=nt(t.hand,["even","left","right"]),this.id=t.id||"",this.startAngle=Bo({data:t.startAngle,defaultValue:0,validate:d(e=>!0,"validate")}),this.sweepAngle=Bo({data:t.sweepAngle,defaultValue:360,validate:d(e=>!0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null,this.fill=null}[Ot](){let t=this.edge||new Tl({}),e=t[ce](),i=Object.create(null);this.fill?.presence==="visible"?Object.assign(i,this.fill[ce]()):i.fill="transparent",i.strokeWidth=Ut(t.presence==="visible"?t.thickness:0),i.stroke=e.color;let a,s={xmlns:mn,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)a={name:"ellipse",attributes:{xmlns:mn,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:i}};else{let r=this.startAngle*Math.PI/180,l=this.sweepAngle*Math.PI/180,o=+(this.sweepAngle>180),[f,h,c,u]=[50*(1+Math.cos(r)),50*(1-Math.sin(r)),50*(1+Math.cos(r+l)),50*(1-Math.sin(r+l))];a={name:"path",attributes:{xmlns:mn,d:`M ${f} ${h} A 50 50 0 ${o} 0 ${c} ${u}`,vectorEffect:"non-scaling-stroke",style:i}},Object.assign(s,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}let n={name:"svg",children:[a],attributes:s};return pu(this[Vt]()[Vt]())?Dt.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[n]}):(n.attributes.style.position="absolute",Dt.success(n))}},z5=class extends Y{static{d(this,"Area")}constructor(t){super(pt,"area",!0),this.colSpan=Gt({data:t.colSpan,defaultValue:1,validate:d(e=>e>=1||e===-1,"validate")}),this.id=t.id||"",this.name=t.name||"",this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.desc=null,this.extras=null,this.area=new F,this.draw=new F,this.exObject=new F,this.exclGroup=new F,this.field=new F,this.subform=new F,this.subformSet=new F}*[hr](){yield*gu(this)}[kl](){return!0}[In](){return!0}[bn](t,e){let[i,a,s,n]=e;this[W].width=Math.max(this[W].width,i+s),this[W].height=Math.max(this[W].height,a+n),this[W].children.push(t)}[wn](){return this[W].availableSpace}[Ot](t){let e=zi(this,"position"),i={style:e,id:this[ke],class:["xfaArea"]};mr(this)&&i.class.push("xfaPrintOnly"),this.name&&(i.xfaName=this.name);let a=[];this[W]={children:a,width:0,height:0,availableSpace:t};let s=this[Ns]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!s.success)return s.isBreak()?s:(delete this[W],Dt.FAILURE);e.width=Ut(this[W].width),e.height=Ut(this[W].height);let n={name:"div",attributes:i,children:a},r=[this.x,this.y,this[W].width,this[W].height];return delete this[W],Dt.success(n,r)}},U5=class extends Y{static{d(this,"Assist")}constructor(t){super(pt,"assist",!0),this.id=t.id||"",this.role=t.role||"",this.use=t.use||"",this.usehref=t.usehref||"",this.speak=null,this.toolTip=null}[Ot](){return this.toolTip?.[st]||null}},G5=class extends Y{static{d(this,"Barcode")}constructor(t){super(pt,"barcode",!0),this.charEncoding=tf({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:d(e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/),"validate")}),this.checksum=nt(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=Gt({data:t.dataColumnCount,defaultValue:-1,validate:d(e=>e>=0,"validate")}),this.dataLength=Gt({data:t.dataLength,defaultValue:-1,validate:d(e=>e>=0,"validate")}),this.dataPrep=nt(t.dataPrep,["none","flateCompress"]),this.dataRowCount=Gt({data:t.dataRowCount,defaultValue:-1,validate:d(e=>e>=0,"validate")}),this.endChar=t.endChar||"",this.errorCorrectionLevel=Gt({data:t.errorCorrectionLevel,defaultValue:-1,validate:d(e=>e>=0&&e<=8,"validate")}),this.id=t.id||"",this.moduleHeight=vt(t.moduleHeight,"5mm"),this.moduleWidth=vt(t.moduleWidth,"0.25mm"),this.printCheckDigit=Gt({data:t.printCheckDigit,defaultValue:0,validate:d(e=>e===1,"validate")}),this.rowColumnRatio=e1(t.rowColumnRatio),this.startChar=t.startChar||"",this.textLocation=nt(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=Gt({data:t.truncate,defaultValue:0,validate:d(e=>e===1,"validate")}),this.type=nt(t.type?t.type.toLowerCase():"","aztec.codabar.code2of5industrial.code2of5interleaved.code2of5matrix.code2of5standard.code3of9.code3of9extended.code11.code49.code93.code128.code128a.code128b.code128c.code128sscc.datamatrix.ean8.ean8add2.ean8add5.ean13.ean13add2.ean13add5.ean13pwcd.fim.logmars.maxicode.msi.pdf417.pdf417macro.plessey.postauscust2.postauscust3.postausreplypaid.postausstandard.postukrm4scc.postusdpbc.postusimb.postusstandard.postus5zip.qrcode.rfid.rss14.rss14expanded.rss14limited.rss14stacked.rss14stackedomni.rss14truncated.telepen.ucc128.ucc128random.ucc128sscc.upca.upcaadd2.upcaadd5.upcapwcd.upce.upceadd2.upceadd5.upcean2.upcean5.upsmaxicode".split(".")),this.upsMode=nt(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=t.use||"",this.usehref=t.usehref||"",this.wideNarrowRatio=e1(t.wideNarrowRatio),this.encrypt=null,this.extras=null}},$5=class extends Y{static{d(this,"Bind")}constructor(t){super(pt,"bind",!0),this.match=nt(t.match,["once","dataRef","global","none"]),this.ref=t.ref||"",this.picture=null}},ic=class extends Y{static{d(this,"BindItems")}constructor(t){super(pt,"bindItems"),this.connection=t.connection||"",this.labelRef=t.labelRef||"",this.ref=t.ref||"",this.valueRef=t.valueRef||""}},W5=class extends Y{static{d(this,"Bookend")}constructor(t){super(pt,"bookend"),this.id=t.id||"",this.leader=t.leader||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}},V5=class extends ri{static{d(this,"BooleanElement")}constructor(t){super(pt,"boolean"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ot](t){return Us(this[st]===1?"1":"0")}},L0=class extends Y{static{d(this,"Border")}constructor(t){super(pt,"border",!0),this.break=nt(t.break,["close","open"]),this.hand=nt(t.hand,["even","left","right"]),this.id=t.id||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new F(4),this.edge=new F(4),this.extras=null,this.fill=null,this.margin=null}[ji](){if(!this[W]){let t=this.edge.children.slice();if(t.length<4){let a=t.at(-1)||new Tl({});for(let s=t.length;s<4;s++)t.push(a)}let e=t.map(a=>a.thickness),i=[0,0,0,0];this.margin&&(i[0]=this.margin.topInset,i[1]=this.margin.rightInset,i[2]=this.margin.bottomInset,i[3]=this.margin.leftInset),this[W]={widths:e,insets:i,edges:t}}return this[W]}[ce](){let{edges:t}=this[ji](),e=t.map(a=>{let s=a[ce]();return s.color||="#000000",s}),i=Object.create(null);if(this.margin&&Object.assign(i,this.margin[ce]()),this.fill?.presence==="visible"&&Object.assign(i,this.fill[ce]()),this.corner.children.some(a=>a.radius!==0)){let a=this.corner.children.map(s=>s[ce]());if(a.length===2||a.length===3){let s=a.at(-1);for(let n=a.length;n<4;n++)a.push(s)}i.borderRadius=a.map(s=>s.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":i.borderStyle="";break;case"inactive":i.borderStyle="none";break;default:i.borderStyle=e.map(a=>a.style).join(" ")}return i.borderWidth=e.map(a=>a.width).join(" "),i.borderColor=e.map(a=>a.color).join(" "),i}},K5=class extends Y{static{d(this,"Break")}constructor(t){super(pt,"break",!0),this.after=nt(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=t.afterTarget||"",this.before=nt(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=t.beforeTarget||"",this.bookendLeader=t.bookendLeader||"",this.bookendTrailer=t.bookendTrailer||"",this.id=t.id||"",this.overflowLeader=t.overflowLeader||"",this.overflowTarget=t.overflowTarget||"",this.overflowTrailer=t.overflowTrailer||"",this.startNew=Gt({data:t.startNew,defaultValue:0,validate:d(e=>e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}},z0=class extends Y{static{d(this,"BreakAfter")}constructor(t){super(pt,"breakAfter",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=Gt({data:t.startNew,defaultValue:0,validate:d(e=>e===1,"validate")}),this.target=t.target||"",this.targetType=nt(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}},U0=class extends Y{static{d(this,"BreakBefore")}constructor(t){super(pt,"breakBefore",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=Gt({data:t.startNew,defaultValue:0,validate:d(e=>e===1,"validate")}),this.target=t.target||"",this.targetType=nt(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}[Ot](t){return this[W]={},Dt.FAILURE}},X5=class extends Y{static{d(this,"Button")}constructor(t){super(pt,"button",!0),this.highlight=nt(t.highlight,["inverted","none","outline","push"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[Ot](t){let e=this[Vt]()[Vt](),i={name:"button",attributes:{id:this[ke],class:["xfaButton"],style:{}},children:[]};for(let a of e.event.children){if(a.activity!=="click"||!a.script)continue;let s=hp(a.script[st]);if(!s)continue;let n=D0(s.url);n&&i.children.push({name:"a",attributes:{id:"link"+this[ke],href:n,newWindow:s.newWindow,class:["xfaLink"],style:{}},children:[]})}return Dt.success(i)}},Y5=class extends Y{static{d(this,"Calculate")}constructor(t){super(pt,"calculate",!0),this.id=t.id||"",this.override=nt(t.override,["disabled","error","ignore","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.script=null}},J5=class extends Y{static{d(this,"Caption")}constructor(t){super(pt,"caption",!0),this.id=t.id||"",this.placement=nt(t.placement,["left","bottom","inline","right","top"]),this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil(vt(t.reserve)),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[Xi](t){mu(this,t)}[ji](t){if(!this[W]){let{width:e,height:i}=t;switch(this.placement){case"left":case"right":case"inline":e=this.reserve<=0?e:this.reserve;break;case"top":case"bottom":i=this.reserve<=0?i:this.reserve}this[W]=uu(this,{width:e,height:i})}return this[W]}[Ot](t){if(!this.value)return Dt.EMPTY;this[pr]();let e=this.value[Ot](t).html;if(!e)return this[Ki](),Dt.EMPTY;let i=this.reserve;if(this.reserve<=0){let{w:n,h:r}=this[ji](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=n;break;case"top":case"bottom":this.reserve=r}}let a=[];typeof e=="string"?a.push({name:"#text",value:e}):a.push(e);let s=zi(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(s.width=Ut(this.reserve));break;case"top":case"bottom":this.reserve>0&&(s.height=Ut(this.reserve))}return F0(this,null,e),this[Ki](),this.reserve=i,Dt.success({name:"div",attributes:{style:s,class:["xfaCaption"]},children:a})}},Q5=class extends ae{static{d(this,"Certificate")}constructor(t){super(pt,"certificate"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},Z5=class extends Y{static{d(this,"Certificates")}constructor(t){super(pt,"certificates",!0),this.credentialServerPolicy=nt(t.credentialServerPolicy,["optional","required"]),this.id=t.id||"",this.url=t.url||"",this.urlPolicy=t.urlPolicy||"",this.use=t.use||"",this.usehref=t.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}},G0=class extends Y{static{d(this,"CheckButton")}constructor(t){super(pt,"checkButton",!0),this.id=t.id||"",this.mark=nt(t.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=nt(t.shape,["square","round"]),this.size=vt(t.size,"10pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Ot](t){let e=zi(this,"margin");e.width=e.height=Ut(this.size);let i,a,s,n=this[Vt]()[Vt](),r=n.items.children.length&&n.items.children[0][Ot]().html||[],l={on:(r[0]===void 0?"on":r[0]).toString(),off:(r[1]===void 0?"off":r[1]).toString()},o=(n.value?.[si]()||"off")===l.on||void 0,f=n[Ye](),h=n[ke],c;f instanceof K0?(s=f[ke],i="radio",a="xfaRadio",c=f[ba]?.[ke]||f[ke]):(i="checkbox",a="xfaCheckbox",c=n[ba]?.[ke]||n[ke]);let u={name:"input",attributes:{class:[a],style:e,fieldId:h,dataId:c,type:i,checked:o,xfaOn:l.on,xfaOff:l.off,"aria-label":xn(n),"aria-required":!1}};return s&&(u.attributes.name=s),Il(n)&&(u.attributes["aria-required"]=!0,u.attributes.required=!0),Dt.success({name:"label",attributes:{class:["xfaLabel"]},children:[u]})}},$0=class extends Y{static{d(this,"ChoiceList")}constructor(t){super(pt,"choiceList",!0),this.commitOn=nt(t.commitOn,["select","exit"]),this.id=t.id||"",this.open=nt(t.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=Gt({data:t.textEntry,defaultValue:0,validate:d(e=>e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Ot](t){let e=zi(this,"border","margin"),i=this[Vt]()[Vt](),a={fontSize:`calc(${i.font?.size||10}px * var(--total-scale-factor))`},s=[];if(i.items.children.length>0){let r=i.items,l=0,o=0;r.children.length===2&&(l=r.children[0].save,o=1-l);let f=r.children[l][Ot]().html,h=r.children[o][Ot]().html,c=!1,u=i.value?.[si]()||"";for(let p=0,m=f.length;p<m;p++){let g={name:"option",attributes:{value:h[p]||f[p],style:a},value:f[p]};h[p]===u&&(g.attributes.selected=c=!0),s.push(g)}c||s.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}let n={class:["xfaSelect"],fieldId:i[ke],dataId:i[ba]?.[ke]||i[ke],style:e,"aria-label":xn(i),"aria-required":!1};return Il(i)&&(n["aria-required"]=!0,n.required=!0),this.open==="multiSelect"&&(n.multiple=!0),Dt.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:s,attributes:n}]})}},t3=class extends Y{static{d(this,"Color")}constructor(t){super(pt,"color",!0),this.cSpace=nt(t.cSpace,["SRGB"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.value=t.value?C5(t.value):"",this.extras=null}[yl](){return!1}[ce](){return this.value?oe.makeHexColor(this.value.r,this.value.g,this.value.b):null}},e3=class extends Y{static{d(this,"Comb")}constructor(t){super(pt,"comb"),this.id=t.id||"",this.numberOfCells=Gt({data:t.numberOfCells,defaultValue:0,validate:d(e=>e>=0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||""}},i3=class extends Y{static{d(this,"Connect")}constructor(t){super(pt,"connect",!0),this.connection=t.connection||"",this.id=t.id||"",this.ref=t.ref||"",this.usage=nt(t.usage,["exportAndImport","exportOnly","importOnly"]),this.use=t.use||"",this.usehref=t.usehref||"",this.picture=null}},bu=class extends Y{static{d(this,"ContentArea")}constructor(t){super(pt,"contentArea",!0),this.h=vt(t.h),this.id=t.id||"",this.name=t.name||"",this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=vt(t.w),this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.desc=null,this.extras=null}[Ot](t){let e={left:Ut(this.x),top:Ut(this.y),width:Ut(this.w),height:Ut(this.h)},i=["xfaContentarea"];return mr(this)&&i.push("xfaPrintOnly"),Dt.success({name:"div",children:[],attributes:{style:e,class:i,id:this[ke]}})}},W0=class extends Y{static{d(this,"Corner")}constructor(t){super(pt,"corner",!0),this.id=t.id||"",this.inverted=Gt({data:t.inverted,defaultValue:0,validate:d(e=>e===1,"validate")}),this.join=nt(t.join,["square","round"]),this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.radius=vt(t.radius),this.stroke=nt(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=vt(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](){let t=zi(this,"visibility");return t.radius=Ut(this.join==="square"?0:this.radius),t}},a3=class extends Ge{static{d(this,"DateElement")}constructor(t){super(pt,"date"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){let t=this[st].trim();this[st]=t?new Date(t):null}[Ot](t){return Us(this[st]?this[st].toString():"")}},s3=class extends Ge{static{d(this,"DateTime")}constructor(t){super(pt,"dateTime"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){let t=this[st].trim();this[st]=t?new Date(t):null}[Ot](t){return Us(this[st]?this[st].toString():"")}},n3=class extends Y{static{d(this,"DateTimeEdit")}constructor(t){super(pt,"dateTimeEdit",!0),this.hScrollPolicy=nt(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.picker=nt(t.picker,["host","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[Ot](t){let e=zi(this,"border","font","margin"),i=this[Vt]()[Vt](),a={name:"input",attributes:{type:"text",fieldId:i[ke],dataId:i[ba]?.[ke]||i[ke],class:["xfaTextfield"],style:e,"aria-label":xn(i),"aria-required":!1}};return Il(i)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),Dt.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}},r3=class extends Ge{static{d(this,"Decimal")}constructor(t){super(pt,"decimal"),this.fracDigits=Gt({data:t.fracDigits,defaultValue:2,validate:d(e=>!0,"validate")}),this.id=t.id||"",this.leadDigits=Gt({data:t.leadDigits,defaultValue:-1,validate:d(e=>!0,"validate")}),this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){let t=parseFloat(this[st].trim());this[st]=isNaN(t)?null:t}[Ot](t){return Us(this[st]===null?"":this[st].toString())}},l3=class extends Y{static{d(this,"DefaultUi")}constructor(t){super(pt,"defaultUi",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}},o3=class extends Y{static{d(this,"Desc")}constructor(t){super(pt,"desc",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}},f3=class extends ve{static{d(this,"DigestMethod")}constructor(t){super(pt,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},h3=class extends Y{static{d(this,"DigestMethods")}constructor(t){super(pt,"digestMethods",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.digestMethod=new F}},V0=class extends Y{static{d(this,"Draw")}constructor(t){super(pt,"draw",!0),this.anchorType=nt(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Gt({data:t.colSpan,defaultValue:1,validate:d(e=>e>=1||e===-1,"validate")}),this.h=t.h?vt(t.h):"",this.hAlign=nt(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Oa(t.relevant),this.rotate=Gt({data:t.rotate,defaultValue:0,validate:d(e=>e%90==0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new F}[Xi](t){mu(this,t)}[Ot](t){if(sf(this),this.presence==="hidden"||this.presence==="inactive")return Dt.EMPTY;ef(this),this[pr]();let e=this.w,i=this.h,{w:a,h:s,isBroken:n}=uu(this,t);if(a&&this.w===""){if(n&&this[Ye]()[ps]())return this[Ki](),Dt.FAILURE;this.w=a}if(s&&this.h===""&&(this.h=s),rf(this),!af(this,t))return this.w=e,this.h=i,this[Ki](),Dt.FAILURE;lf(this);let r=zi(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");I0(this,r),r.margin&&(r.padding=r.margin,delete r.margin);let l=["xfaDraw"];this.font&&l.push("xfaFont"),mr(this)&&l.push("xfaPrintOnly");let o={style:r,id:this[ke],class:l};this.name&&(o.xfaName=this.name);let f={name:"div",attributes:o,children:[]};nf(this,o);let h=T0(this,f,t),c=this.value?this.value[Ot](t).html:null;return c===null?(this.w=e,this.h=i,this[Ki](),Dt.success(kn(this,f),h)):(f.children.push(c),F0(this,r,c),this.w=e,this.h=i,this[Ki](),Dt.success(kn(this,f),h))}},Tl=class extends Y{static{d(this,"Edge")}constructor(t){super(pt,"edge",!0),this.cap=nt(t.cap,["square","butt","round"]),this.id=t.id||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.stroke=nt(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=vt(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](){let t=zi(this,"visibility");if(Object.assign(t,{linecap:this.cap,width:Ut(this.thickness),color:this.color?this.color[ce]():"#000000",style:""}),this.presence!=="visible")t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":t.style="dashed";break;case"dashDotDot":t.style="dashed";break;case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}},c3=class extends ve{static{d(this,"Encoding")}constructor(t){super(pt,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},u3=class extends Y{static{d(this,"Encodings")}constructor(t){super(pt,"encodings",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encoding=new F}},d3=class extends Y{static{d(this,"Encrypt")}constructor(t){super(pt,"encrypt",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=null}},p3=class extends Y{static{d(this,"EncryptData")}constructor(t){super(pt,"encryptData",!0),this.id=t.id||"",this.operation=nt(t.operation,["encrypt","decrypt"]),this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}},m3=class extends Y{static{d(this,"Encryption")}constructor(t){super(pt,"encryption",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new F}},g3=class extends ve{static{d(this,"EncryptionMethod")}constructor(t){super(pt,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},b3=class extends Y{static{d(this,"EncryptionMethods")}constructor(t){super(pt,"encryptionMethods",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encryptionMethod=new F}},w3=class extends Y{static{d(this,"Event$1")}constructor(t){super(pt,"event",!0),this.activity=nt(t.activity,"click.change.docClose.docReady.enter.exit.full.indexChange.initialize.mouseDown.mouseEnter.mouseExit.mouseUp.postExecute.postOpen.postPrint.postSave.postSign.postSubmit.preExecute.preOpen.prePrint.preSave.preSign.preSubmit.ready.validationState".split(".")),this.id=t.id||"",this.listen=nt(t.listen,["refOnly","refAndDescendents"]),this.name=t.name||"",this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}},y3=class extends Ge{static{d(this,"ExData")}constructor(t){super(pt,"exData"),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.maxLength=Gt({data:t.maxLength,defaultValue:-1,validate:d(e=>e>=-1,"validate")}),this.name=t.name||"",this.rid=t.rid||"",this.transferEncoding=nt(t.transferEncoding,["none","base64","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[fu](){return this.contentType==="text/html"}[Va](t){return this.contentType==="text/html"&&t[Ke]===ni.xhtml.id||this.contentType==="text/xml"?(this[st]=t,!0):!1}[Ot](t){return this.contentType!=="text/html"||!this[st]?Dt.EMPTY:this[st][Ot](t)}},k3=class extends Y{static{d(this,"ExObject")}constructor(t){super(pt,"exObject",!0),this.archive=t.archive||"",this.classId=t.classId||"",this.codeBase=t.codeBase||"",this.codeType=t.codeType||"",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.exObject=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}},K0=class extends Y{static{d(this,"ExclGroup")}constructor(t){super(pt,"exclGroup",!0),this.access=nt(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=nt(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Gt({data:t.colSpan,defaultValue:1,validate:d(e=>e>=1||e===-1,"validate")}),this.h=t.h?vt(t.h):"",this.hAlign=nt(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=nt(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new F,this.event=new F,this.field=new F,this.setProperty=new F}[In](){return!0}[yl](){return!0}[Xi](t){for(let e of this.field.children){if(!e.value){let i=new ju({});e[Ue](i),e.value=i}e.value[Xi](t)}}[ps](){return this.layout.endsWith("-tb")&&this[W].attempt===0&&this[W].numberInLine>0||this[Vt]()[ps]()}[us](){let t=this[Ye]();return t[us]()?this[W]._isSplittable===void 0?this.layout==="position"||this.layout.includes("row")?(this[W]._isSplittable=!1,!1):t.layout?.endsWith("-tb")&&t[W].numberInLine!==0?!1:(this[W]._isSplittable=!0,!0):this[W]._isSplittable:!1}[Cl](){return B0(this)}[bn](t,e){O0(this,t,e)}[wn](){return H0(this)}[Ot](t){if(sf(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return Dt.EMPTY;ef(this);let e=[],i={id:this[ke],class:[]};du(this,i.class),this[W]||=Object.create(null),Object.assign(this[W],{children:e,attributes:i,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let a=this[us]();if(a||rf(this),!af(this,t))return Dt.FAILURE;let s=new Set(["field"]);if(this.layout.includes("row")){let b=this[Ye]().columnWidths;Array.isArray(b)&&b.length>0&&(this[W].columnWidths=b,this[W].currentColumn=0)}let n=zi(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),r=["xfaExclgroup"],l=M0(this);l&&r.push(l),mr(this)&&r.push("xfaPrintOnly"),i.style=n,i.class=r,this.name&&(i.xfaName=this.name),this[pr]();let o=this.layout==="lr-tb"||this.layout==="rl-tb",f=o?2:1;for(;this[W].attempt<f;this[W].attempt++){o&&this[W].attempt===1&&(this[W].numberInLine=0);let b=this[Ns]({filter:s,include:!0});if(b.success)break;if(b.isBreak())return this[Ki](),b;if(o&&this[W].attempt===0&&this[W].numberInLine===0&&!this[We]()[W].noLayoutFailure){this[W].attempt=f;break}}if(this[Ki](),a||lf(this),this[W].attempt===f)return a||delete this[W],Dt.FAILURE;let h=0,c=0;this.margin&&(h=this.margin.leftInset+this.margin.rightInset,c=this.margin.topInset+this.margin.bottomInset);let u=Math.max(this[W].width+h,this.w||0),p=Math.max(this[W].height+c,this.h||0),m=[this.x,this.y,u,p];this.w===""&&(n.width=Ut(u)),this.h===""&&(n.height=Ut(p));let g={name:"div",attributes:i,children:e};return nf(this,i),delete this[W],Dt.success(kn(this,g),m)}},v3=class extends Y{static{d(this,"Execute")}constructor(t){super(pt,"execute"),this.connection=t.connection||"",this.executeType=nt(t.executeType,["import","remerge"]),this.id=t.id||"",this.runAt=nt(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}},j3=class extends Y{static{d(this,"Extras")}constructor(t){super(pt,"extras",!0),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.extras=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}},wu=class extends Y{static{d(this,"Field")}constructor(t){super(pt,"field",!0),this.access=nt(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=nt(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Gt({data:t.colSpan,defaultValue:1,validate:d(e=>e>=1||e===-1,"validate")}),this.h=t.h?vt(t.h):"",this.hAlign=nt(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Oa(t.relevant),this.rotate=Gt({data:t.rotate,defaultValue:0,validate:d(e=>e%90==0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new F(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new F,this.connect=new F,this.event=new F,this.setProperty=new F}[In](){return!0}[Xi](t){mu(this,t)}[Ot](t){if(sf(this),!this.ui){this.ui=new vu({}),this.ui[Ce]=this[Ce],this[Ue](this.ui);let b;switch(this.items.children.length){case 0:b=new em({}),this.ui.textEdit=b;break;case 1:b=new G0({}),this.ui.checkButton=b;break;case 2:b=new $0({}),this.ui.choiceList=b}this.ui[Ue](b)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return Dt.EMPTY;this.caption&&delete this.caption[W],this[pr]();let e=this.caption?this.caption[Ot](t).html:null,i=this.w,a=this.h,s=0,n=0;this.margin&&(s=this.margin.leftInset+this.margin.rightInset,n=this.margin.topInset+this.margin.bottomInset);let r=null;if(this.w===""||this.h===""){let b=null,w=null,v=0,y=0;if(this.ui.checkButton)v=y=this.ui.checkButton.size;else{let{w:x,h:q}=uu(this,t);x===null?y=M5(this.font,!0).lineNoGap:(v=x,y=q)}if(r=o1(this.ui[ji]()),v+=r.w,y+=r.h,this.caption){let{w:x,h:q,isBroken:j}=this.caption[ji](t);if(j&&this[Ye]()[ps]())return this[Ki](),Dt.FAILURE;switch(b=x,w=q,this.caption.placement){case"left":case"right":case"inline":b+=v;break;case"top":case"bottom":w+=y}}else b=v,w=y;b&&this.w===""&&(b+=s,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<b?b:this.minW)),w&&this.h===""&&(w+=n,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<w?w:this.minH))}if(this[Ki](),ef(this),rf(this),!af(this,t))return this.w=i,this.h=a,this[Ki](),Dt.FAILURE;lf(this);let l=zi(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");I0(this,l);let o=["xfaField"];this.font&&o.push("xfaFont"),mr(this)&&o.push("xfaPrintOnly");let f={style:l,id:this[ke],class:o};l.margin&&(l.padding=l.margin,delete l.margin),du(this,o),this.name&&(f.xfaName=this.name);let h=[],c={name:"div",attributes:f,children:h};nf(this,f);let u=this.border?this.border[ce]():null,p=T0(this,c,t),m=this.ui[Ot]().html;if(!m)return Object.assign(l,u),Dt.success(kn(this,c),p);this[Ca]&&(m.children?.[0]?m.children[0].attributes.tabindex=this[Ca]:m.attributes.tabindex=this[Ca]),m.attributes.style||=Object.create(null);let g=null;if(this.ui.button?(m.children.length===1&&([g]=m.children.splice(0,1)),Object.assign(m.attributes.style,u)):Object.assign(l,u),h.push(m),this.value){if(this.ui.imageEdit)m.children.push(this.value[Ot]().html);else if(!this.ui.button){let b="";if(this.value.exData)b=this.value.exData[si]();else if(this.value.text)b=this.value.text[ji]();else{let w=this.value[Ot]().html;w!==null&&(b=w.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(m.children[0].attributes.maxLength=this.value.text.maxChars),b&&(this.ui.numericEdit&&(b=parseFloat(b),b=isNaN(b)?"":b.toString()),m.children[0].name==="textarea"?m.children[0].attributes.textContent=b:m.children[0].attributes.value=b)}}if(!this.ui.imageEdit&&m.children?.[0]&&this.h)if(r||=o1(this.ui[ji]()),this.caption&&["top","bottom"].includes(this.caption.placement)){let b=this.caption.reserve;b<=0&&(b=this.caption[ji](t).h);let w=this.h-b-n-r.h;m.children[0].attributes.style.height=Ut(w)}else m.children[0].attributes.style.height="100%";if(g&&m.children.push(g),!e)return m.attributes.class&&m.attributes.class.push("xfaLeft"),this.w=i,this.h=a,Dt.success(kn(this,c),p);if(this.ui.button)return l.padding&&delete l.padding,e.name==="div"&&(e.name="span"),m.children.push(e),Dt.success(c,p);switch(this.ui.checkButton&&(e.attributes.class[0]="xfaCaptionForCheckButton"),m.attributes.class||=[],m.children.splice(0,0,e),this.caption.placement){case"left":m.attributes.class.push("xfaLeft");break;case"right":m.attributes.class.push("xfaRight");break;case"top":m.attributes.class.push("xfaTop");break;case"bottom":m.attributes.class.push("xfaBottom");break;case"inline":m.attributes.class.push("xfaLeft")}return this.w=i,this.h=a,Dt.success(kn(this,c),p)}},q3=class extends Y{static{d(this,"Fill")}constructor(t){super(pt,"fill",!0),this.id=t.id||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[ce](){let t=this[Vt](),e=t[Vt]()[Vt](),i=Object.create(null),a="color",s=a;t instanceof L0&&(a="background-color",s="background",e instanceof vu&&(i.backgroundColor="white")),(t instanceof Q0||t instanceof N0)&&(a=s="fill",i.fill="white");for(let n of Object.getOwnPropertyNames(this)){if(n==="extras"||n==="color")continue;let r=this[n];if(!(r instanceof Y))continue;let l=r[ce](this.color);return l&&(i[l.startsWith("#")?a:s]=l),i}if(this.color?.value){let n=this.color[ce]();i[n.startsWith("#")?a:s]=n}return i}},x3=class extends Y{static{d(this,"Filter")}constructor(t){super(pt,"filter",!0),this.addRevocationInfo=nt(t.addRevocationInfo,["","required","optional","none"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.version=Gt({data:this.version,defaultValue:5,validate:d(e=>e>=1&&e<=5,"validate")}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}},A3=class extends Ge{static{d(this,"Float")}constructor(t){super(pt,"float"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){let t=parseFloat(this[st].trim());this[st]=isNaN(t)?null:t}[Ot](t){return Us(this[st]===null?"":this[st].toString())}},S3=class extends Y{static{d(this,"template_Font")}constructor(t){super(pt,"font",!0),this.baselineShift=vt(t.baselineShift),this.fontHorizontalScale=Bo({data:t.fontHorizontalScale,defaultValue:100,validate:d(e=>e>=0,"validate")}),this.fontVerticalScale=Bo({data:t.fontVerticalScale,defaultValue:100,validate:d(e=>e>=0,"validate")}),this.id=t.id||"",this.kerningMode=nt(t.kerningMode,["none","pair"]),this.letterSpacing=vt(t.letterSpacing,"0"),this.lineThrough=Gt({data:t.lineThrough,defaultValue:0,validate:d(e=>e===1||e===2,"validate")}),this.lineThroughPeriod=nt(t.lineThroughPeriod,["all","word"]),this.overline=Gt({data:t.overline,defaultValue:0,validate:d(e=>e===1||e===2,"validate")}),this.overlinePeriod=nt(t.overlinePeriod,["all","word"]),this.posture=nt(t.posture,["normal","italic"]),this.size=vt(t.size,"10pt"),this.typeface=t.typeface||"Courier",this.underline=Gt({data:t.underline,defaultValue:0,validate:d(e=>e===1||e===2,"validate")}),this.underlinePeriod=nt(t.underlinePeriod,["all","word"]),this.use=t.use||"",this.usehref=t.usehref||"",this.weight=nt(t.weight,["normal","bold"]),this.extras=null,this.fill=null}[ka](t){super[ka](t),this[Ce].usedTypefaces.add(this.typeface)}[ce](){let t=zi(this,"fill"),e=t.color;return e&&(e==="#000000"?delete t.color:e.startsWith("#")||(t.background=e,t.backgroundClip="text",t.color="transparent")),this.baselineShift&&(t.verticalAlign=Ut(this.baselineShift)),t.fontKerning=this.kerningMode==="none"?"none":"normal",t.letterSpacing=Ut(this.letterSpacing),this.lineThrough!==0&&(t.textDecoration="line-through",this.lineThrough===2&&(t.textDecorationStyle="double")),this.overline!==0&&(t.textDecoration="overline",this.overline===2&&(t.textDecorationStyle="double")),t.fontStyle=this.posture,t.fontSize=Ut(.99*this.size),R0(this,this,this[Ce].fontFinder,t),this.underline!==0&&(t.textDecoration="underline",this.underline===2&&(t.textDecorationStyle="double")),t.fontWeight=this.weight,t}},C3=class extends Y{static{d(this,"Format")}constructor(t){super(pt,"format",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null}},I3=class extends ae{static{d(this,"Handler")}constructor(t){super(pt,"handler"),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},T3=class extends Y{static{d(this,"Hyphenation")}constructor(t){super(pt,"hyphenation"),this.excludeAllCaps=Gt({data:t.excludeAllCaps,defaultValue:0,validate:d(e=>e===1,"validate")}),this.excludeInitialCap=Gt({data:t.excludeInitialCap,defaultValue:0,validate:d(e=>e===1,"validate")}),this.hyphenate=Gt({data:t.hyphenate,defaultValue:0,validate:d(e=>e===1,"validate")}),this.id=t.id||"",this.pushCharacterCount=Gt({data:t.pushCharacterCount,defaultValue:3,validate:d(e=>e>=0,"validate")}),this.remainCharacterCount=Gt({data:t.remainCharacterCount,defaultValue:3,validate:d(e=>e>=0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.wordCharacterCount=Gt({data:t.wordCharacterCount,defaultValue:7,validate:d(e=>e>=0,"validate")})}},X0=class extends ae{static{d(this,"Image$1")}constructor(t){super(pt,"image"),this.aspect=nt(t.aspect,["fit","actual","height","none","width"]),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.name=t.name||"",this.transferEncoding=nt(t.transferEncoding,["base64","none","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[Ot](){if(this.contentType&&!H5.has(this.contentType.toLowerCase()))return Dt.EMPTY;let t=this[Ce].images?.get(this.href);if(!t&&(this.href||!this[st])||(!t&&this.transferEncoding==="base64"&&(t=Uint8Array.fromBase64(this[st])),!t))return Dt.EMPTY;if(!this.contentType){for(let[s,n]of N5)if(t.length>s.length&&s.every((r,l)=>r===t[l])){this.contentType=n;break}if(!this.contentType)return Dt.EMPTY}let e=new Blob([t],{type:this.contentType}),i;switch(this.aspect){case"fit":case"actual":break;case"height":i={height:"100%",objectFit:"fill"};break;case"none":i={width:"100%",height:"100%",objectFit:"fill"};break;case"width":i={width:"100%",objectFit:"fill"}}let a=this[Vt]();return Dt.success({name:"img",attributes:{class:["xfaImage"],style:i,src:URL.createObjectURL(e),alt:a?xn(a[Vt]()):null}})}},M3=class extends Y{static{d(this,"ImageEdit")}constructor(t){super(pt,"imageEdit",!0),this.data=nt(t.data,["link","embed"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Ot](t){return this.data==="embed"?Dt.success({name:"div",children:[],attributes:{}}):Dt.EMPTY}},_3=class extends Ge{static{d(this,"Integer")}constructor(t){super(pt,"integer"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){let t=parseInt(this[st].trim(),10);this[st]=isNaN(t)?null:t}[Ot](t){return Us(this[st]===null?"":this[st].toString())}},E3=class extends Y{static{d(this,"Issuers")}constructor(t){super(pt,"issuers",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new F}},ac=class extends Y{static{d(this,"Items")}constructor(t){super(pt,"items",!0),this.id=t.id||"",this.name=t.name||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.ref=t.ref||"",this.save=Gt({data:t.save,defaultValue:0,validate:d(e=>e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}[Ot](){let t=[];for(let e of this[Ti]())t.push(e[si]());return Dt.success(t)}},F3=class extends Y{static{d(this,"Keep")}constructor(t){super(pt,"keep",!0),this.id=t.id||"";let e=["none","contentArea","pageArea"];this.intact=nt(t.intact,e),this.next=nt(t.next,e),this.previous=nt(t.previous,e),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}},R3=class extends Y{static{d(this,"KeyUsage")}constructor(t){super(pt,"keyUsage");let e=["","yes","no"];this.crlSign=nt(t.crlSign,e),this.dataEncipherment=nt(t.dataEncipherment,e),this.decipherOnly=nt(t.decipherOnly,e),this.digitalSignature=nt(t.digitalSignature,e),this.encipherOnly=nt(t.encipherOnly,e),this.id=t.id||"",this.keyAgreement=nt(t.keyAgreement,e),this.keyCertSign=nt(t.keyCertSign,e),this.keyEncipherment=nt(t.keyEncipherment,e),this.nonRepudiation=nt(t.nonRepudiation,e),this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},D3=class extends Y{static{d(this,"Line")}constructor(t){super(pt,"line",!0),this.hand=nt(t.hand,["even","left","right"]),this.id=t.id||"",this.slope=nt(t.slope,["\\","/"]),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null}[Ot](){let t=this[Vt]()[Vt](),e=this.edge||new Tl({}),i=e[ce](),a=Object.create(null),s=e.presence==="visible"?e.thickness:0;a.strokeWidth=Ut(s),a.stroke=i.color;let n,r,l,o,f="100%",h="100%";t.w<=s?([n,r,l,o]=["50%",0,"50%","100%"],f=a.strokeWidth):t.h<=s?([n,r,l,o]=[0,"50%","100%","50%"],h=a.strokeWidth):this.slope==="\\"?[n,r,l,o]=[0,0,"100%","100%"]:[n,r,l,o]=[0,"100%","100%",0];let c={name:"svg",children:[{name:"line",attributes:{xmlns:mn,x1:n,y1:r,x2:l,y2:o,style:a}}],attributes:{xmlns:mn,width:f,height:h,style:{overflow:"visible"}}};return pu(t)?Dt.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[c]}):(c.attributes.style.position="absolute",Dt.success(c))}},P3=class extends Y{static{d(this,"Linear")}constructor(t){super(pt,"linear",!0),this.id=t.id||"",this.type=nt(t.type,["toRight","toBottom","toLeft","toTop"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){t=t?t[ce]():"#FFFFFF";let e=this.type.replace(/([RBLT])/," $1").toLowerCase(),i=this.color?this.color[ce]():"#000000";return`linear-gradient(${e}, ${t}, ${i})`}},B3=class extends Ge{static{d(this,"LockDocument")}constructor(t){super(pt,"lockDocument"),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){this[st]=nt(this[st],["auto","0","1"])}},O3=class extends Y{static{d(this,"Manifest")}constructor(t){super(pt,"manifest",!0),this.action=nt(t.action,["include","all","exclude"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.ref=new F}},H3=class extends Y{static{d(this,"Margin")}constructor(t){super(pt,"margin",!0),this.bottomInset=vt(t.bottomInset,"0"),this.id=t.id||"",this.leftInset=vt(t.leftInset,"0"),this.rightInset=vt(t.rightInset,"0"),this.topInset=vt(t.topInset,"0"),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[ce](){return{margin:Ut(this.topInset)+" "+Ut(this.rightInset)+" "+Ut(this.bottomInset)+" "+Ut(this.leftInset)}}},N3=class extends Y{static{d(this,"Mdp")}constructor(t){super(pt,"mdp"),this.id=t.id||"",this.permissions=Gt({data:t.permissions,defaultValue:2,validate:d(e=>e===1||e===3,"validate")}),this.signatureType=nt(t.signatureType,["filler","author"]),this.use=t.use||"",this.usehref=t.usehref||""}},L3=class extends Y{static{d(this,"Medium")}constructor(t){super(pt,"medium"),this.id=t.id||"",this.imagingBBox=I5(t.imagingBBox),this.long=vt(t.long),this.orientation=nt(t.orientation,["portrait","landscape"]),this.short=vt(t.short),this.stock=t.stock||"",this.trayIn=nt(t.trayIn,["auto","delegate","pageFront"]),this.trayOut=nt(t.trayOut,["auto","delegate"]),this.use=t.use||"",this.usehref=t.usehref||""}},z3=class extends Y{static{d(this,"Message")}constructor(t){super(pt,"message",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.text=new F}},U3=class extends Y{static{d(this,"NumericEdit")}constructor(t){super(pt,"numericEdit",!0),this.hScrollPolicy=nt(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[Ot](t){let e=zi(this,"border","font","margin"),i=this[Vt]()[Vt](),a={name:"input",attributes:{type:"text",fieldId:i[ke],dataId:i[ba]?.[ke]||i[ke],class:["xfaTextfield"],style:e,"aria-label":xn(i),"aria-required":!1}};return Il(i)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),Dt.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}},G3=class extends Y{static{d(this,"Occur")}constructor(t){super(pt,"occur",!0),this.id=t.id||"",this.initial=t.initial===""?"":Gt({data:t.initial,defaultValue:"",validate:d(e=>!0,"validate")}),this.max=t.max===""?"":Gt({data:t.max,defaultValue:-1,validate:d(e=>!0,"validate")}),this.min=t.min===""?"":Gt({data:t.min,defaultValue:1,validate:d(e=>!0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[ka](){let t=this[Vt](),e=this.min;this.min===""&&(this.min=t instanceof cr||t instanceof sc?0:1),this.max===""&&(this.max=e===""?t instanceof cr||t instanceof sc?-1:1:this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=t instanceof ku?1:this.min)}},$3=class extends ae{static{d(this,"Oid")}constructor(t){super(pt,"oid"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},W3=class extends Y{static{d(this,"Oids")}constructor(t){super(pt,"oids",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.oid=new F}},Y0=class extends Y{static{d(this,"Overflow")}constructor(t){super(pt,"overflow"),this.id=t.id||"",this.leader=t.leader||"",this.target=t.target||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}[ji](){if(!this[W]){let t=this[Vt](),e=this[We](),i=e[fs](this.target,t),a=e[fs](this.leader,t),s=e[fs](this.trailer,t);this[W]={target:i?.[0]||null,leader:a?.[0]||null,trailer:s?.[0]||null,addLeader:!1,addTrailer:!1}}return this[W]}},cr=class extends Y{static{d(this,"PageArea")}constructor(t){super(pt,"pageArea",!0),this.blankOrNotBlank=nt(t.blankOrNotBlank,["any","blank","notBlank"]),this.id=t.id||"",this.initialNumber=Gt({data:t.initialNumber,defaultValue:1,validate:d(e=>!0,"validate")}),this.name=t.name||"",this.numbered=Gt({data:t.numbered,defaultValue:1,validate:d(e=>!0,"validate")}),this.oddOrEven=nt(t.oddOrEven,["any","even","odd"]),this.pagePosition=nt(t.pagePosition,["any","first","last","only","rest"]),this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new F,this.contentArea=new F,this.draw=new F,this.exclGroup=new F,this.field=new F,this.subform=new F}[vl](){return this[W]?!this.occur||this.occur.max===-1||this[W].numberOfUse<this.occur.max:(this[W]={numberOfUse:0},!0)}[Qn](){delete this[W]}[rs](){this[W]||={numberOfUse:0};let t=this[Vt]();return t.relation==="orderedOccurrence"&&this[vl]()?(this[W].numberOfUse+=1,this):t[rs]()}[wn](){return this[W].space||{width:0,height:0}}[Ot](){this[W]||={numberOfUse:1};let t=[];this[W].children=t;let e=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(e.width=Ut(this.medium.short),e.height=Ut(this.medium.long),this[W].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){let i=e.width;e.width=e.height,e.height=i,this[W].space={width:this.medium.long,height:this.medium.short}}}else E("XFA - No medium specified in pageArea: please file a bug.");return this[Ns]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[Ns]({filter:new Set(["contentArea"]),include:!0}),Dt.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[ke],style:e,xfaName:this.name}})}},sc=class J0 extends Y{static{d(this,"PageSet")}constructor(e){super(pt,"pageSet",!0),this.duplexImposition=nt(e.duplexImposition,["longEdge","shortEdge"]),this.id=e.id||"",this.name=e.name||"",this.relation=nt(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=Oa(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.occur=null,this.pageArea=new F,this.pageSet=new F}[Qn](){for(let e of this.pageArea.children)e[Qn]();for(let e of this.pageSet.children)e[Qn]()}[vl](){return!this.occur||this.occur.max===-1||this[W].numberOfUse<this.occur.max}[rs](){if(this[W]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1},this.relation==="orderedOccurrence"){if(this[W].pageIndex+1<this.pageArea.children.length)return this[W].pageIndex+=1,this.pageArea.children[this[W].pageIndex][rs]();if(this[W].pageSetIndex+1<this.pageSet.children.length)return this[W].pageSetIndex+=1,this.pageSet.children[this[W].pageSetIndex][rs]();if(this[vl]())return this[W].numberOfUse+=1,this[W].pageIndex=-1,this[W].pageSetIndex=-1,this[rs]();let n=this[Vt]();return n instanceof J0?n[rs]():(this[Qn](),this[rs]())}let e=this[We]()[W].pageNumber,i=e%2==0?"even":"odd",a=e===0?"first":"rest",s=this.pageArea.children.find(n=>n.oddOrEven===i&&n.pagePosition===a);return s||(s=this.pageArea.children.find(n=>n.oddOrEven==="any"&&n.pagePosition===a),s)?s:(s=this.pageArea.children.find(n=>n.oddOrEven==="any"&&n.pagePosition==="any"),s??this.pageArea.children[0])}},V3=class extends Y{static{d(this,"Para")}constructor(t){super(pt,"para",!0),this.hAlign=nt(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.lineHeight=t.lineHeight?vt(t.lineHeight,"0pt"):"",this.marginLeft=t.marginLeft?vt(t.marginLeft,"0pt"):"",this.marginRight=t.marginRight?vt(t.marginRight,"0pt"):"",this.orphans=Gt({data:t.orphans,defaultValue:0,validate:d(e=>e>=0,"validate")}),this.preserve=t.preserve||"",this.radixOffset=t.radixOffset?vt(t.radixOffset,"0pt"):"",this.spaceAbove=t.spaceAbove?vt(t.spaceAbove,"0pt"):"",this.spaceBelow=t.spaceBelow?vt(t.spaceBelow,"0pt"):"",this.tabDefault=t.tabDefault?vt(this.tabDefault):"",this.tabStops=(t.tabStops||"").trim().split(/\s+/).map((e,i)=>i%2==1?vt(e):e),this.textIndent=t.textIndent?vt(t.textIndent,"0pt"):"",this.use=t.use||"",this.usehref=t.usehref||"",this.vAlign=nt(t.vAlign,["top","bottom","middle"]),this.widows=Gt({data:t.widows,defaultValue:0,validate:d(e=>e>=0,"validate")}),this.hyphenation=null}[ce](){let t=zi(this,"hAlign");return this.marginLeft!==""&&(t.paddingLeft=Ut(this.marginLeft)),this.marginRight!==""&&(t.paddingRight=Ut(this.marginRight)),this.spaceAbove!==""&&(t.paddingTop=Ut(this.spaceAbove)),this.spaceBelow!==""&&(t.paddingBottom=Ut(this.spaceBelow)),this.textIndent!==""&&(t.textIndent=Ut(this.textIndent),_0(t)),this.lineHeight>0&&(t.lineHeight=Ut(this.lineHeight)),this.tabDefault!==""&&(t.tabSize=Ut(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(t,this.hyphenatation[ce]()),t}},K3=class extends Y{static{d(this,"PasswordEdit")}constructor(t){super(pt,"passwordEdit",!0),this.hScrollPolicy=nt(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.passwordChar=t.passwordChar||"*",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}},X3=class extends Y{static{d(this,"template_Pattern")}constructor(t){super(pt,"pattern",!0),this.id=t.id||"",this.type=nt(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){t=t?t[ce]():"#FFFFFF";let e=this.color?this.color[ce]():"#000000",i="repeating-linear-gradient",a=`${t},${t} 5px,${e} 5px,${e} 10px`;switch(this.type){case"crossHatch":return`${i}(to top,${a}) ${i}(to right,${a})`;case"crossDiagonal":return`${i}(45deg,${a}) ${i}(-45deg,${a})`;case"diagonalLeft":return`${i}(45deg,${a})`;case"diagonalRight":return`${i}(-45deg,${a})`;case"horizontal":return`${i}(to top,${a})`;case"vertical":return`${i}(to right,${a})`}return""}},Y3=class extends ae{static{d(this,"Picture")}constructor(t){super(pt,"picture"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},J3=class extends Y{static{d(this,"Proto")}constructor(t){super(pt,"proto",!0),this.appearanceFilter=new F,this.arc=new F,this.area=new F,this.assist=new F,this.barcode=new F,this.bindItems=new F,this.bookend=new F,this.boolean=new F,this.border=new F,this.break=new F,this.breakAfter=new F,this.breakBefore=new F,this.button=new F,this.calculate=new F,this.caption=new F,this.certificate=new F,this.certificates=new F,this.checkButton=new F,this.choiceList=new F,this.color=new F,this.comb=new F,this.connect=new F,this.contentArea=new F,this.corner=new F,this.date=new F,this.dateTime=new F,this.dateTimeEdit=new F,this.decimal=new F,this.defaultUi=new F,this.desc=new F,this.digestMethod=new F,this.digestMethods=new F,this.draw=new F,this.edge=new F,this.encoding=new F,this.encodings=new F,this.encrypt=new F,this.encryptData=new F,this.encryption=new F,this.encryptionMethod=new F,this.encryptionMethods=new F,this.event=new F,this.exData=new F,this.exObject=new F,this.exclGroup=new F,this.execute=new F,this.extras=new F,this.field=new F,this.fill=new F,this.filter=new F,this.float=new F,this.font=new F,this.format=new F,this.handler=new F,this.hyphenation=new F,this.image=new F,this.imageEdit=new F,this.integer=new F,this.issuers=new F,this.items=new F,this.keep=new F,this.keyUsage=new F,this.line=new F,this.linear=new F,this.lockDocument=new F,this.manifest=new F,this.margin=new F,this.mdp=new F,this.medium=new F,this.message=new F,this.numericEdit=new F,this.occur=new F,this.oid=new F,this.oids=new F,this.overflow=new F,this.pageArea=new F,this.pageSet=new F,this.para=new F,this.passwordEdit=new F,this.pattern=new F,this.picture=new F,this.radial=new F,this.reason=new F,this.reasons=new F,this.rectangle=new F,this.ref=new F,this.script=new F,this.setProperty=new F,this.signData=new F,this.signature=new F,this.signing=new F,this.solid=new F,this.speak=new F,this.stipple=new F,this.subform=new F,this.subformSet=new F,this.subjectDN=new F,this.subjectDNs=new F,this.submit=new F,this.text=new F,this.textEdit=new F,this.time=new F,this.timeStamp=new F,this.toolTip=new F,this.traversal=new F,this.traverse=new F,this.ui=new F,this.validate=new F,this.value=new F,this.variables=new F}},Q3=class extends Y{static{d(this,"Radial")}constructor(t){super(pt,"radial",!0),this.id=t.id||"",this.type=nt(t.type,["toEdge","toCenter"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){t=t?t[ce]():"#FFFFFF";let e=this.color?this.color[ce]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${t},${e}`:`${e},${t}`})`}},Z3=class extends ae{static{d(this,"Reason")}constructor(t){super(pt,"reason"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},t6=class extends Y{static{d(this,"Reasons")}constructor(t){super(pt,"reasons",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.reason=new F}},Q0=class extends Y{static{d(this,"Rectangle")}constructor(t){super(pt,"rectangle",!0),this.hand=nt(t.hand,["even","left","right"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new F(4),this.edge=new F(4),this.fill=null}[Ot](){let t=this.edge.children.length?this.edge.children[0]:new Tl({}),e=t[ce](),i=Object.create(null);this.fill?.presence==="visible"?Object.assign(i,this.fill[ce]()):i.fill="transparent",i.strokeWidth=Ut(t.presence==="visible"?t.thickness:0),i.stroke=e.color;let a=(this.corner.children.length?this.corner.children[0]:new W0({}))[ce](),s={name:"svg",children:[{name:"rect",attributes:{xmlns:mn,width:"100%",height:"100%",x:0,y:0,rx:a.radius,ry:a.radius,style:i}}],attributes:{xmlns:mn,style:{overflow:"visible"},width:"100%",height:"100%"}};return pu(this[Vt]()[Vt]())?Dt.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[s]}):(s.attributes.style.position="absolute",Dt.success(s))}},e6=class extends ae{static{d(this,"RefElement")}constructor(t){super(pt,"ref"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},i6=class extends ae{static{d(this,"Script")}constructor(t){super(pt,"script"),this.binding=t.binding||"",this.contentType=t.contentType||"",this.id=t.id||"",this.name=t.name||"",this.runAt=nt(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}},nc=class extends Y{static{d(this,"SetProperty")}constructor(t){super(pt,"setProperty"),this.connection=t.connection||"",this.ref=t.ref||"",this.target=t.target||""}},a6=class extends Y{static{d(this,"SignData")}constructor(t){super(pt,"signData",!0),this.id=t.id||"",this.operation=nt(t.operation,["sign","clear","verify"]),this.ref=t.ref||"",this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}},s6=class extends Y{static{d(this,"Signature")}constructor(t){super(pt,"signature",!0),this.id=t.id||"",this.type=nt(t.type,["PDF1.3","PDF1.6"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}},n6=class extends Y{static{d(this,"Signing")}constructor(t){super(pt,"signing",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new F}},r6=class extends Y{static{d(this,"Solid")}constructor(t){super(pt,"solid",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[ce](t){return t?t[ce]():"#FFFFFF"}},l6=class extends ae{static{d(this,"Speak")}constructor(t){super(pt,"speak"),this.disable=Gt({data:t.disable,defaultValue:0,validate:d(e=>e===1,"validate")}),this.id=t.id||"",this.priority=nt(t.priority,["custom","caption","name","toolTip"]),this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}},o6=class extends Y{static{d(this,"Stipple")}constructor(t){super(pt,"stipple",!0),this.id=t.id||"",this.rate=Gt({data:t.rate,defaultValue:50,validate:d(e=>e>=0&&e<=100,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){let e=this.rate/100;return oe.makeHexColor(Math.round(t.value.r*(1-e)+this.value.r*e),Math.round(t.value.g*(1-e)+this.value.g*e),Math.round(t.value.b*(1-e)+this.value.b*e))}},Z0=class extends Y{static{d(this,"Subform")}constructor(t){super(pt,"subform",!0),this.access=nt(t.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=Gt({data:t.allowMacro,defaultValue:0,validate:d(e=>e===1,"validate")}),this.anchorType=nt(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Gt({data:t.colSpan,defaultValue:1,validate:d(e=>e>=1||e===-1,"validate")}),this.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map(e=>e==="-1"?-1:vt(e)),this.h=t.h?vt(t.h):"",this.hAlign=nt(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=nt(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=t.locale||"",this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.mergeMode=nt(t.mergeMode,["consumeData","matchTemplate"]),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=nt(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Oa(t.relevant),this.restoreState=nt(t.restoreState,["manual","auto"]),this.scope=nt(t.scope,["name","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new F,this.breakAfter=new F,this.breakBefore=new F,this.connect=new F,this.draw=new F,this.event=new F,this.exObject=new F,this.exclGroup=new F,this.field=new F,this.proto=new F,this.setProperty=new F,this.subform=new F,this.subformSet=new F}[Ye](){let t=this[Vt]();return t instanceof yu?t[Ye]():t}[In](){return!0}[ps](){return this.layout.endsWith("-tb")&&this[W].attempt===0&&this[W].numberInLine>0||this[Vt]()[ps]()}*[hr](){yield*gu(this)}[Cl](){return B0(this)}[bn](t,e){O0(this,t,e)}[wn](){return H0(this)}[us](){let t=this[Ye]();return t[us]()?this[W]._isSplittable===void 0?this.layout==="position"||this.layout.includes("row")||this.keep&&this.keep.intact!=="none"?(this[W]._isSplittable=!1,!1):t.layout?.endsWith("-tb")&&t[W].numberInLine!==0?!1:(this[W]._isSplittable=!0,!0):this[W]._isSplittable:!1}[Ot](t){if(sf(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){let y=new z0({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});y[Ce]=this[Ce],this[Ue](y),this.breakAfter.push(y)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){let y=new U0({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});y[Ce]=this[Ce],this[Ue](y),this.breakBefore.push(y)}if(this.break.overflowTarget!==""){let y=new Y0({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});y[Ce]=this[Ce],this[Ue](y),this.overflow.push(y)}this[Rs](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return Dt.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&E("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){let y=this.breakBefore.children[0];if(f1(y))return Dt.breakNode(y)}if(this[W]?.afterBreakAfter)return Dt.EMPTY;ef(this);let e=[],i={id:this[ke],class:[]};du(this,i.class),this[W]||=Object.create(null),Object.assign(this[W],{children:e,line:null,attributes:i,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let a=this[We](),s=a[W].noLayoutFailure,n=this[us]();if(n||rf(this),!af(this,t))return Dt.FAILURE;let r=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){let y=this[Ye]().columnWidths;Array.isArray(y)&&y.length>0&&(this[W].columnWidths=y,this[W].currentColumn=0)}let l=zi(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),o=["xfaSubform"],f=M0(this);if(f&&o.push(f),i.style=l,i.class=o,this.name&&(i.xfaName=this.name),this.overflow){let y=this.overflow[ji]();y.addLeader&&(y.addLeader=!1,h1(this,y.leader,t))}this[pr]();let h=this.layout==="lr-tb"||this.layout==="rl-tb",c=h?2:1;for(;this[W].attempt<c;this[W].attempt++){h&&this[W].attempt===1&&(this[W].numberInLine=0);let y=this[Ns]({filter:r,include:!0});if(y.success)break;if(y.isBreak())return this[Ki](),y;if(h&&this[W].attempt===0&&this[W].numberInLine===0&&!a[W].noLayoutFailure){this[W].attempt=c;break}}if(this[Ki](),n||lf(this),a[W].noLayoutFailure=s,this[W].attempt===c)return this.overflow&&(this[We]()[W].overflowNode=this.overflow),n||delete this[W],Dt.FAILURE;if(this.overflow){let y=this.overflow[ji]();y.addTrailer&&(y.addTrailer=!1,h1(this,y.trailer,t))}let u=0,p=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,p=this.margin.topInset+this.margin.bottomInset);let m=Math.max(this[W].width+u,this.w||0),g=Math.max(this[W].height+p,this.h||0),b=[this.x,this.y,m,g];if(this.w===""&&(l.width=Ut(m)),this.h===""&&(l.height=Ut(g)),(l.width==="0px"||l.height==="0px")&&e.length===0)return Dt.EMPTY;let w={name:"div",attributes:i,children:e};nf(this,i);let v=Dt.success(kn(this,w),b);if(this.breakAfter.children.length>=1){let y=this.breakAfter.children[0];if(f1(y))return this[W].afterBreakAfter=v,Dt.breakNode(y)}return delete this[W],v}},yu=class extends Y{static{d(this,"SubformSet")}constructor(t){super(pt,"subformSet",!0),this.id=t.id||"",this.name=t.name||"",this.relation=nt(t.relation,["ordered","choice","unordered"]),this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new F,this.breakBefore=new F,this.subform=new F,this.subformSet=new F}*[hr](){yield*gu(this)}[Ye](){let t=this[Vt]();for(;!(t instanceof Z0);)t=t[Vt]();return t}[In](){return!0}},f6=class extends Ge{static{d(this,"SubjectDN")}constructor(t){super(pt,"subjectDN"),this.delimiter=t.delimiter||",",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){this[st]=new Map(this[st].split(this.delimiter).map(t=>(t=t.split("=",2),t[0]=t[0].trim(),t)))}},h6=class extends Y{static{d(this,"SubjectDNs")}constructor(t){super(pt,"subjectDNs",!0),this.id=t.id||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.subjectDN=new F}},c6=class extends Y{static{d(this,"Submit")}constructor(t){super(pt,"submit",!0),this.embedPDF=Gt({data:t.embedPDF,defaultValue:0,validate:d(e=>e===1,"validate")}),this.format=nt(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=t.id||"",this.target=t.target||"",this.textEncoding=tf({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:d(e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/),"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.xdpContent=t.xdpContent||"",this.encrypt=null,this.encryptData=new F,this.signData=new F}},ku=class extends Y{static{d(this,"Template")}constructor(t){super(pt,"template",!0),this.baseProfile=nt(t.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new F}[Ie](){this.subform.children.length===0&&E("XFA - No subforms in template node."),this.subform.children.length>=2&&E("XFA - Several subforms in template node: please file a bug."),this[Ca]=5e3}[us](){return!0}[fs](t,e){return t.startsWith("#")?[this[Kn].get(t.slice(1))]:Ts(this,e,t,!0,!0)}*[j0](){if(!this.subform.children.length)return Dt.success({name:"div",children:[]});this[W]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};let t=this.subform.children[0];t.pageSet[Qn]();let e=t.pageSet.pageArea.children,i={name:"div",children:[]},a=null,s=null,n=null;if(t.breakBefore.children.length>=1?(s=t.breakBefore.children[0],n=s.target):t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?(s=t.subform.children[0].breakBefore.children[0],n=s.target):t.break?.beforeTarget?(s=t.break,n=s.beforeTarget):t.subform.children.length>=1&&t.subform.children[0].break?.beforeTarget&&(s=t.subform.children[0].break,n=s.beforeTarget),s){let p=this[fs](n,s[Vt]());p instanceof cr&&(a=p,s[W]={})}a||=e[0],a[W]={numberOfUse:1};let r=a[Vt]();r[W]={numberOfUse:1,pageIndex:r.pageArea.children.indexOf(a),pageSetIndex:0};let l,o=null,f=null,h=!0,c=0,u=0;for(;;){if(h)c=0;else if(i.children.pop(),++c===3)return E("XFA - Something goes wrong: please file a bug."),i;l=null,this[W].currentPageArea=a;let p=a[Ot]().html;i.children.push(p),o&&=(this[W].noLayoutFailure=!0,p.children.push(o[Ot](a[W].space).html),null),f&&=(this[W].noLayoutFailure=!0,p.children.push(f[Ot](a[W].space).html),null);let m=a.contentArea.children,g=p.children.filter(w=>w.attributes.class.includes("xfaContentarea"));h=!1,this[W].firstUnsplittable=null,this[W].noLayoutFailure=!1;let b=d(w=>{let v=t[Cl]();v&&(h||=v.children?.length>0,g[w].children.push(v))},"flush");for(let w=u,v=m.length;w<v;w++){let y=this[W].currentContentArea=m[w],x={width:y.w,height:y.h};u=0,o&&=(g[w].children.push(o[Ot](x).html),null),f&&=(g[w].children.push(f[Ot](x).html),null);let q=t[Ot](x);if(q.success)return q.html?(h||=q.html.children?.length>0,g[w].children.push(q.html)):!h&&i.children.length>1&&i.children.pop(),i;if(q.isBreak()){let j=q.breakNode;if(b(w),j.targetType==="auto")continue;j.leader&&(o=this[fs](j.leader,j[Vt]()),o=o?o[0]:null),j.trailer&&(f=this[fs](j.trailer,j[Vt]()),f=f?f[0]:null),j.targetType==="pageArea"?(l=j[W].target,w=1/0):j[W].target?(l=j[W].target,u=j[W].index+1,w=1/0):w=j[W].index}else if(this[W].overflowNode){let j=this[W].overflowNode;this[W].overflowNode=null;let A=j[ji](),S=A.target;A.addLeader=A.leader!==null,A.addTrailer=A.trailer!==null,b(w);let C=w;if(w=1/0,S instanceof cr)l=S;else if(S instanceof bu){let M=m.indexOf(S);M===-1?(l=S[Vt](),u=l.contentArea.children.indexOf(S)):M>C?w=M-1:u=M}}else b(w)}this[W].pageNumber+=1,l&&(l[vl]()?l[W].numberOfUse+=1:l=null),a=l||a[rs](),yield null}}},tm=class extends Ge{static{d(this,"Text")}constructor(t){super(pt,"text"),this.id=t.id||"",this.maxChars=Gt({data:t.maxChars,defaultValue:0,validate:d(e=>e>=0,"validate")}),this.name=t.name||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}[Jo](){return!0}[Va](t){return t[Ke]===ni.xhtml.id?(this[st]=t,!0):(E(`XFA - Invalid content in Text: ${t[me]}.`),!1)}[ds](t){this[st]instanceof Y||super[ds](t)}[Ie](){typeof this[st]=="string"&&(this[st]=this[st].replaceAll(`\r
|
|
30
|
+
`,`
|
|
31
|
+
`))}[ji](){return typeof this[st]=="string"?this[st].split(/[\u2029\u2028\n]/).filter(Boolean).join(`
|
|
32
|
+
`):this[st][si]()}[Ot](t){if(typeof this[st]=="string"){let e=Us(this[st]).html;return this[st].includes("\u2029")?(e.name="div",e.children=[],this[st].split("\u2029").map(i=>i.split(/[\u2028\n]/).flatMap(a=>[{name:"span",value:a},{name:"br"}])).forEach(i=>{e.children.push({name:"p",children:i})})):/[\u2028\n]/.test(this[st])&&(e.name="div",e.children=[],this[st].split(/[\u2028\n]/).forEach(i=>{e.children.push({name:"span",value:i},{name:"br"})})),Dt.success(e)}return this[st][Ot](t)}},em=class extends Y{static{d(this,"TextEdit")}constructor(t){super(pt,"textEdit",!0),this.allowRichText=Gt({data:t.allowRichText,defaultValue:0,validate:d(e=>e===1,"validate")}),this.hScrollPolicy=nt(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.multiLine=Gt({data:t.multiLine,defaultValue:"",validate:d(e=>e===0||e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.vScrollPolicy=nt(t.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[Ot](t){let e=zi(this,"border","font","margin"),i,a=this[Vt]()[Vt]();return this.multiLine===""&&(this.multiLine=+(a instanceof V0)),i=this.multiLine===1?{name:"textarea",attributes:{dataId:a[ba]?.[ke]||a[ke],fieldId:a[ke],class:["xfaTextfield"],style:e,"aria-label":xn(a),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:a[ba]?.[ke]||a[ke],fieldId:a[ke],class:["xfaTextfield"],style:e,"aria-label":xn(a),"aria-required":!1}},Il(a)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),Dt.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}},u6=class extends ae{static{d(this,"Time")}constructor(t){super(pt,"time"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Ie](){let t=this[st].trim();this[st]=t?new Date(t):null}[Ot](t){return Us(this[st]?this[st].toString():"")}},d6=class extends Y{static{d(this,"TimeStamp")}constructor(t){super(pt,"timeStamp"),this.id=t.id||"",this.server=t.server||"",this.type=nt(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},p6=class extends ae{static{d(this,"ToolTip")}constructor(t){super(pt,"toolTip"),this.id=t.id||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}},m6=class extends Y{static{d(this,"Traversal")}constructor(t){super(pt,"traversal",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.traverse=new F}},g6=class extends Y{static{d(this,"Traverse")}constructor(t){super(pt,"traverse",!0),this.id=t.id||"",this.operation=nt(t.operation,["next","back","down","first","left","right","up"]),this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[kl](){return!1}},vu=class extends Y{static{d(this,"Ui")}constructor(t){super(pt,"ui",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[ji](){if(this[W]===void 0){for(let t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="picture")continue;let e=this[t];if(e instanceof Y)return this[W]=e,e}this[W]=null}return this[W]}[Ot](t){let e=this[ji]();return e?e[Ot](t):Dt.EMPTY}},b6=class extends Y{static{d(this,"Validate")}constructor(t){super(pt,"validate",!0),this.formatTest=nt(t.formatTest,["warning","disabled","error"]),this.id=t.id||"",this.nullTest=nt(t.nullTest,["disabled","error","warning"]),this.scriptTest=nt(t.scriptTest,["error","disabled","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}},ju=class extends Y{static{d(this,"Value")}constructor(t){super(pt,"value",!0),this.id=t.id||"",this.override=Gt({data:t.override,defaultValue:0,validate:d(e=>e===1,"validate")}),this.relevant=Oa(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[Xi](t){let e=this[Vt]();if(e instanceof wu&&e.ui?.imageEdit){this.image||(this.image=new X0({}),this[Ue](this.image)),this.image[st]=t[st];return}let i=t[me];if(this[i]!==null)this[i][st]=t[st];else{for(let a of Object.getOwnPropertyNames(this)){let s=this[a];s instanceof Y&&(this[a]=null,this[Rs](s))}this[t[me]]=t,this[Ue](t)}}[si](){if(this.exData)return typeof this.exData[st]=="string"?this.exData[st].trim():this.exData[st][si]().trim();for(let t of Object.getOwnPropertyNames(this)){if(t==="image")continue;let e=this[t];if(e instanceof Y)return(e[st]||"").toString().trim()}return null}[Ot](t){for(let e of Object.getOwnPropertyNames(this)){let i=this[e];if(i instanceof Y)return i[Ot](t)}return Dt.EMPTY}},w6=class extends Y{static{d(this,"Variables")}constructor(t){super(pt,"variables",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.float=new F,this.image=new F,this.integer=new F,this.manifest=new F,this.script=new F,this.text=new F,this.time=new F}[kl](){return!0}},y6=class rc{static{d(this,"TemplateNamespace")}static[Ba](e,i){if(Object.hasOwn(rc,e)){let a=rc[e](i);return a[v0](i),a}}static appearanceFilter(e){return new L5(e)}static arc(e){return new N0(e)}static area(e){return new z5(e)}static assist(e){return new U5(e)}static barcode(e){return new G5(e)}static bind(e){return new $5(e)}static bindItems(e){return new ic(e)}static bookend(e){return new W5(e)}static boolean(e){return new V5(e)}static border(e){return new L0(e)}static break(e){return new K5(e)}static breakAfter(e){return new z0(e)}static breakBefore(e){return new U0(e)}static button(e){return new X5(e)}static calculate(e){return new Y5(e)}static caption(e){return new J5(e)}static certificate(e){return new Q5(e)}static certificates(e){return new Z5(e)}static checkButton(e){return new G0(e)}static choiceList(e){return new $0(e)}static color(e){return new t3(e)}static comb(e){return new e3(e)}static connect(e){return new i3(e)}static contentArea(e){return new bu(e)}static corner(e){return new W0(e)}static date(e){return new a3(e)}static dateTime(e){return new s3(e)}static dateTimeEdit(e){return new n3(e)}static decimal(e){return new r3(e)}static defaultUi(e){return new l3(e)}static desc(e){return new o3(e)}static digestMethod(e){return new f3(e)}static digestMethods(e){return new h3(e)}static draw(e){return new V0(e)}static edge(e){return new Tl(e)}static encoding(e){return new c3(e)}static encodings(e){return new u3(e)}static encrypt(e){return new d3(e)}static encryptData(e){return new p3(e)}static encryption(e){return new m3(e)}static encryptionMethod(e){return new g3(e)}static encryptionMethods(e){return new b3(e)}static event(e){return new w3(e)}static exData(e){return new y3(e)}static exObject(e){return new k3(e)}static exclGroup(e){return new K0(e)}static execute(e){return new v3(e)}static extras(e){return new j3(e)}static field(e){return new wu(e)}static fill(e){return new q3(e)}static filter(e){return new x3(e)}static float(e){return new A3(e)}static font(e){return new S3(e)}static format(e){return new C3(e)}static handler(e){return new I3(e)}static hyphenation(e){return new T3(e)}static image(e){return new X0(e)}static imageEdit(e){return new M3(e)}static integer(e){return new _3(e)}static issuers(e){return new E3(e)}static items(e){return new ac(e)}static keep(e){return new F3(e)}static keyUsage(e){return new R3(e)}static line(e){return new D3(e)}static linear(e){return new P3(e)}static lockDocument(e){return new B3(e)}static manifest(e){return new O3(e)}static margin(e){return new H3(e)}static mdp(e){return new N3(e)}static medium(e){return new L3(e)}static message(e){return new z3(e)}static numericEdit(e){return new U3(e)}static occur(e){return new G3(e)}static oid(e){return new $3(e)}static oids(e){return new W3(e)}static overflow(e){return new Y0(e)}static pageArea(e){return new cr(e)}static pageSet(e){return new sc(e)}static para(e){return new V3(e)}static passwordEdit(e){return new K3(e)}static pattern(e){return new X3(e)}static picture(e){return new Y3(e)}static proto(e){return new J3(e)}static radial(e){return new Q3(e)}static reason(e){return new Z3(e)}static reasons(e){return new t6(e)}static rectangle(e){return new Q0(e)}static ref(e){return new e6(e)}static script(e){return new i6(e)}static setProperty(e){return new nc(e)}static signData(e){return new a6(e)}static signature(e){return new s6(e)}static signing(e){return new n6(e)}static solid(e){return new r6(e)}static speak(e){return new l6(e)}static stipple(e){return new o6(e)}static subform(e){return new Z0(e)}static subformSet(e){return new yu(e)}static subjectDN(e){return new f6(e)}static subjectDNs(e){return new h6(e)}static submit(e){return new c6(e)}static template(e){return new ku(e)}static text(e){return new tm(e)}static textEdit(e){return new em(e)}static time(e){return new u6(e)}static timeStamp(e){return new d6(e)}static toolTip(e){return new p6(e)}static traversal(e){return new m6(e)}static traverse(e){return new g6(e)}static ui(e){return new vu(e)}static validate(e){return new b6(e)}static value(e){return new ju(e)}static variables(e){return new w6(e)}},Zl=ni.datasets.id;d(to,"createText");k6=class{static{d(this,"Binder")}constructor(t){this.root=t,this.datasets=t.datasets,this.data=t.datasets?.data||new yn(Zl,"data"),this.emptyMerge=this.data[Ti]().length===0,this.root.form=this.form=t.template[Fa]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(t,e,i){if(t[ba]=e,t[yl]())if(e[Zn]()){let a=e[ou]();t[Xi](to(a))}else if(t instanceof wu&&t.ui?.choiceList?.open==="multiSelect"){let a=e[Ti]().map(s=>s[st].trim()).join(`
|
|
33
|
+
`);t[Xi](to(a))}else this._isConsumeData()&&E("XFA - Nodes haven't the same type.");else!e[Zn]()||this._isMatchTemplate()?this._bindElement(t,e):E("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(t,e,i,a){if(!t)return null;let s,n;for(let r=0;r<3;r++){for(s=i[nl](t,!1,!0);n=s.next().value,n;)if(e===n[Zn]())return n;if(i[Ke]===Zl&&i[me]==="data")break;i=i[Vt]()}return a?(s=this.data[nl](t,!0,!1),n=s.next().value,n||(s=this.data[Yh](t,!0),n=s.next().value,n?.[Zn]()?n:null)):null}_setProperties(t,e){if(Object.hasOwn(t,"setProperty"))for(let{ref:i,target:a,connection:s}of t.setProperty.children){if(s||!i)continue;let n=Ts(this.root,e,i,!1,!1);if(!n){E(`XFA - Invalid reference: ${i}.`);continue}let[r]=n;if(!r[_s](this.data)){E("XFA - Invalid node: must be a data node.");continue}let l=Ts(this.root,t,a,!1,!1);if(!l){E(`XFA - Invalid target: ${a}.`);continue}let[o]=l;if(!o[_s](t)){E("XFA - Invalid target: must be a property or subproperty.");continue}let f=o[Vt]();if(o instanceof nc||f instanceof nc){E("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(o instanceof ic||f instanceof ic){E("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}let h=r[si](),c=o[me];if(o instanceof cu){let u=Object.create(null);u[c]=h,f[c]=Reflect.construct(Object.getPrototypeOf(f).constructor,[u])[c]}else Object.hasOwn(o,st)?(o[ba]=r,o[st]=h,o[Ie]()):E("XFA - Invalid node to use in setProperty")}}_bindItems(t,e){if(!Object.hasOwn(t,"items")||!Object.hasOwn(t,"bindItems")||t.bindItems.isEmpty())return;for(let s of t.items.children)t[Rs](s);t.items.clear();let i=new ac({}),a=new ac({});t[Ue](i),t.items.push(i),t[Ue](a),t.items.push(a);for(let{ref:s,labelRef:n,valueRef:r,connection:l}of t.bindItems.children){if(l||!s)continue;let o=Ts(this.root,e,s,!1,!1);if(!o)E(`XFA - Invalid reference: ${s}.`);else for(let f of o){if(!f[_s](this.datasets)){E(`XFA - Invalid ref (${s}): must be a datasets child.`);continue}let h=Ts(this.root,f,n,!0,!1);if(!h){E(`XFA - Invalid label: ${n}.`);continue}let[c]=h;if(!c[_s](this.datasets)){E("XFA - Invalid label: must be a datasets child.");continue}let u=Ts(this.root,f,r,!0,!1);if(!u){E(`XFA - Invalid value: ${r}.`);continue}let[p]=u;if(!p[_s](this.datasets)){E("XFA - Invalid value: must be a datasets child.");continue}let m=to(c[si]()),g=to(p[si]());i[Ue](m),i.text.push(m),a[Ue](g),a.text.push(g)}}}_bindOccurrences(t,e,i){let a;if(e.length>1&&(a=t[Fa](),a[Rs](a.occur),a.occur=null),this._bindValue(t,e[0],i),this._setProperties(t,e[0]),this._bindItems(t,e[0]),e.length===1)return;let s=t[Vt](),n=t[me],r=s[Jh](t);for(let l=1,o=e.length;l<o;l++){let f=e[l],h=a[Fa]();s[n].push(h),s[jo](r+l,h),this._bindValue(h,f,i),this._setProperties(h,f),this._bindItems(h,f)}}_createOccurrences(t){if(!this.emptyMerge)return;let{occur:e}=t;if(!e||e.initial<=1)return;let i=t[Vt](),a=t[me];if(!(i[a]instanceof F))return;let s;s=t.name?i[a].children.filter(l=>l.name===t.name).length:i[a].children.length;let n=i[Jh](t)+1,r=e.initial-s;if(r){let l=t[Fa]();l[Rs](l.occur),l.occur=null,i[a].push(l),i[jo](n,l);for(let o=1;o<r;o++){let f=l[Fa]();i[a].push(f),i[jo](n+o,f)}}}_getOccurInfo(t){let{name:e,occur:i}=t;if(!i||!e)return[1,1];let a=i.max===-1?1/0:i.max;return[i.min,a]}_setAndBind(t,e){this._setProperties(t,e),this._bindItems(t,e),this._bindElement(t,e)}_bindElement(t,e){let i=[];this._createOccurrences(t);for(let a of t[Ti]()){if(a[ba])continue;if(this._mergeMode===void 0&&a[me]==="subform"){this._mergeMode=a.mergeMode==="consumeData";let h=e[Ti]();if(h.length>0)this._bindOccurrences(a,[h[0]],null);else if(this.emptyMerge){let c=e[Ke]===Zl?-1:e[Ke],u=a[ba]=new yn(c,a.name||"root");e[Ue](u),this._bindElement(a,u)}continue}if(!a[In]())continue;let s=!1,n=null,r=null,l=null;if(a.bind){switch(a.bind.match){case"none":this._setAndBind(a,e);continue;case"global":s=!0;break;case"dataRef":if(!a.bind.ref){E(`XFA - ref is empty in node ${a[me]}.`),this._setAndBind(a,e);continue}r=a.bind.ref}a.bind.picture&&(n=a.bind.picture[st])}let[o,f]=this._getOccurInfo(a);if(r){if(l=Ts(this.root,e,r,!0,!1),l===null){if(l=P5(this.data,e,r),!l)continue;this._isConsumeData()&&(l[$a]=!0),this._setAndBind(a,l);continue}this._isConsumeData()&&(l=l.filter(h=>!h[$a])),l.length>f?l=l.slice(0,f):l.length===0&&(l=null),l&&this._isConsumeData()&&l.forEach(h=>{h[$a]=!0})}else{if(!a.name){this._setAndBind(a,e);continue}if(this._isConsumeData()){let h=[];for(;h.length<f;){let c=this._findDataByNameToConsume(a.name,a[yl](),e,s);if(!c)break;c[$a]=!0,h.push(c)}l=h.length>0?h:null}else{if(l=e[nl](a.name,!1,this.emptyMerge).next().value,!l){if(o===0){i.push(a);continue}let h=e[Ke]===Zl?-1:e[Ke];l=a[ba]=new yn(h,a.name),this.emptyMerge&&(l[$a]=!0),e[Ue](l),this._setAndBind(a,l);continue}this.emptyMerge&&(l[$a]=!0),l=[l]}}l?this._bindOccurrences(a,l,n):o>0?this._setAndBind(a,e):i.push(a)}i.forEach(a=>a[Vt]()[Rs](a))}},v6=class{static{d(this,"DataHandler")}constructor(t,e){this.data=e,this.dataset=t.datasets||null}serialize(t){let e=[[-1,this.data[Ti]()]];for(;e.length>0;){let a=e.at(-1),[s,n]=a;if(s+1===n.length){e.pop();continue}let r=n[++a[0]],l=t.get(r[ke]);if(l)r[Xi](l);else{let f=r[y0]();for(let h of f.values()){let c=t.get(h[ke]);if(c){h[Xi](c);break}}}let o=r[Ti]();o.length>0&&e.push([-1,o])}let i=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(let a of this.dataset[Ti]())a[me]!=="data"&&a[ll](i);return this.data[ll](i),i.push("</xfa:datasets>"),i.join("")}},lt=ni.config.id,j6=class extends Y{static{d(this,"Acrobat")}constructor(t){super(lt,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new F}},q6=class extends Y{static{d(this,"Acrobat7")}constructor(t){super(lt,"acrobat7",!0),this.dynamicRender=null}},x6=class extends ve{static{d(this,"ADBE_JSConsole")}constructor(t){super(lt,"ADBE_JSConsole",["delegate","Enable","Disable"])}},A6=class extends ve{static{d(this,"ADBE_JSDebugger")}constructor(t){super(lt,"ADBE_JSDebugger",["delegate","Enable","Disable"])}},S6=class extends ri{static{d(this,"AddSilentPrint")}constructor(t){super(lt,"addSilentPrint")}},C6=class extends ri{static{d(this,"AddViewerPreferences")}constructor(t){super(lt,"addViewerPreferences")}},I6=class extends C0{static{d(this,"AdjustData")}constructor(t){super(lt,"adjustData")}},T6=class extends Ha{static{d(this,"AdobeExtensionLevel")}constructor(t){super(lt,"adobeExtensionLevel",0,e=>e>=1&&e<=8)}},M6=class extends Y{static{d(this,"Agent")}constructor(t){super(lt,"agent",!0),this.name=t.name?t.name.trim():"",this.common=new F}},_6=class extends Ge{static{d(this,"AlwaysEmbed")}constructor(t){super(lt,"alwaysEmbed")}},E6=class extends ae{static{d(this,"Amd")}constructor(t){super(lt,"amd")}},F6=class extends Y{static{d(this,"config_Area")}constructor(t){super(lt,"area"),this.level=Gt({data:t.level,defaultValue:0,validate:d(e=>e>=1&&e<=3,"validate")}),this.name=nt(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}},R6=class extends ve{static{d(this,"Attributes")}constructor(t){super(lt,"attributes",["preserve","delegate","ignore"])}},D6=class extends ve{static{d(this,"AutoSave")}constructor(t){super(lt,"autoSave",["disabled","enabled"])}},P6=class extends ae{static{d(this,"Base")}constructor(t){super(lt,"base")}},B6=class extends Y{static{d(this,"BatchOutput")}constructor(t){super(lt,"batchOutput"),this.format=nt(t.format,["none","concat","zip","zipCompress"])}},O6=class extends Ge{static{d(this,"BehaviorOverride")}constructor(t){super(lt,"behaviorOverride")}[Ie](){this[st]=new Map(this[st].trim().split(/\s+/).filter(t=>t.includes(":")).map(t=>t.split(":",2)))}},H6=class extends Y{static{d(this,"Cache")}constructor(t){super(lt,"cache",!0),this.templateCache=null}},N6=class extends ri{static{d(this,"Change")}constructor(t){super(lt,"change")}},L6=class extends Y{static{d(this,"Common")}constructor(t){super(lt,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new F}},z6=class extends Y{static{d(this,"Compress")}constructor(t){super(lt,"compress"),this.scope=nt(t.scope,["imageOnly","document"])}},U6=class extends ri{static{d(this,"CompressLogicalStructure")}constructor(t){super(lt,"compressLogicalStructure")}},G6=class extends C0{static{d(this,"CompressObjectStream")}constructor(t){super(lt,"compressObjectStream")}},$6=class extends Y{static{d(this,"Compression")}constructor(t){super(lt,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}},W6=class extends Y{static{d(this,"Config")}constructor(t){super(lt,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new F}},V6=class extends ve{static{d(this,"Conformance")}constructor(t){super(lt,"conformance",["A","B"])}},K6=class extends ri{static{d(this,"ContentCopy")}constructor(t){super(lt,"contentCopy")}},X6=class extends Ha{static{d(this,"Copies")}constructor(t){super(lt,"copies",1,e=>e>=1)}},Y6=class extends ae{static{d(this,"Creator")}constructor(t){super(lt,"creator")}},J6=class extends Ha{static{d(this,"CurrentPage")}constructor(t){super(lt,"currentPage",0,e=>e>=0)}},Q6=class extends Y{static{d(this,"Data")}constructor(t){super(lt,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new F,this.transform=new F}},Z6=class extends Y{static{d(this,"Debug")}constructor(t){super(lt,"debug",!0),this.uri=null}},t4=class extends Ge{static{d(this,"DefaultTypeface")}constructor(t){super(lt,"defaultTypeface"),this.writingScript=nt(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}},e4=class extends ve{static{d(this,"Destination")}constructor(t){super(lt,"destination",["pdf","pcl","ps","webClient","zpl"])}},i4=class extends ri{static{d(this,"DocumentAssembly")}constructor(t){super(lt,"documentAssembly")}},a4=class extends Y{static{d(this,"Driver")}constructor(t){super(lt,"driver",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}},s4=class extends ve{static{d(this,"DuplexOption")}constructor(t){super(lt,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}},n4=class extends ve{static{d(this,"DynamicRender")}constructor(t){super(lt,"dynamicRender",["forbidden","required"])}},r4=class extends ri{static{d(this,"Embed")}constructor(t){super(lt,"embed")}},l4=class extends ri{static{d(this,"config_Encrypt")}constructor(t){super(lt,"encrypt")}},o4=class extends Y{static{d(this,"config_Encryption")}constructor(t){super(lt,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}},f4=class extends ve{static{d(this,"EncryptionLevel")}constructor(t){super(lt,"encryptionLevel",["40bit","128bit"])}},h4=class extends ae{static{d(this,"Enforce")}constructor(t){super(lt,"enforce")}},c4=class extends Y{static{d(this,"Equate")}constructor(t){super(lt,"equate"),this.force=Gt({data:t.force,defaultValue:1,validate:d(e=>e===0,"validate")}),this.from=t.from||"",this.to=t.to||""}},u4=class extends Y{static{d(this,"EquateRange")}constructor(t){super(lt,"equateRange"),this.from=t.from||"",this.to=t.to||"",this._unicodeRange=t.unicodeRange||""}get unicodeRange(){let t=[],e=/U\+([0-9a-fA-F]+)/,i=this._unicodeRange;for(let a of i.split(",").map(s=>s.trim()).filter(Boolean))a=a.split("-",2).map(s=>{let n=s.match(e);return n?parseInt(n[1],16):0}),a.length===1&&a.push(a[0]),t.push(a);return ht(this,"unicodeRange",t)}},d4=class extends Ge{static{d(this,"Exclude")}constructor(t){super(lt,"exclude")}[Ie](){this[st]=this[st].trim().split(/\s+/).filter(t=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t))}},p4=class extends ae{static{d(this,"ExcludeNS")}constructor(t){super(lt,"excludeNS")}},m4=class extends ve{static{d(this,"FlipLabel")}constructor(t){super(lt,"flipLabel",["usePrinterSetting","on","off"])}},g4=class extends Y{static{d(this,"config_FontInfo")}constructor(t){super(lt,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new F,this.defaultTypeface=new F,this.neverEmbed=new F}},b4=class extends ri{static{d(this,"FormFieldFilling")}constructor(t){super(lt,"formFieldFilling")}},w4=class extends ae{static{d(this,"GroupParent")}constructor(t){super(lt,"groupParent")}},y4=class extends ve{static{d(this,"IfEmpty")}constructor(t){super(lt,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}},k4=class extends ae{static{d(this,"IncludeXDPContent")}constructor(t){super(lt,"includeXDPContent")}},v4=class extends ve{static{d(this,"IncrementalLoad")}constructor(t){super(lt,"incrementalLoad",["none","forwardOnly"])}},j4=class extends ri{static{d(this,"IncrementalMerge")}constructor(t){super(lt,"incrementalMerge")}},q4=class extends ri{static{d(this,"Interactive")}constructor(t){super(lt,"interactive")}},x4=class extends ve{static{d(this,"Jog")}constructor(t){super(lt,"jog",["usePrinterSetting","none","pageSet"])}},A4=class extends Y{static{d(this,"LabelPrinter")}constructor(t){super(lt,"labelPrinter",!0),this.name=nt(t.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}},S4=class extends ve{static{d(this,"Layout")}constructor(t){super(lt,"layout",["paginate","panel"])}},C4=class extends Ha{static{d(this,"Level")}constructor(t){super(lt,"level",0,e=>e>0)}},I4=class extends ri{static{d(this,"Linearized")}constructor(t){super(lt,"linearized")}},T4=class extends ae{static{d(this,"Locale")}constructor(t){super(lt,"locale")}},M4=class extends ae{static{d(this,"LocaleSet")}constructor(t){super(lt,"localeSet")}},_4=class extends Y{static{d(this,"Log")}constructor(t){super(lt,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}},E4=class extends Y{static{d(this,"MapElement")}constructor(t){super(lt,"map",!0),this.equate=new F,this.equateRange=new F}},F4=class extends Y{static{d(this,"MediumInfo")}constructor(t){super(lt,"mediumInfo",!0),this.map=null}},R4=class extends Y{static{d(this,"config_Message")}constructor(t){super(lt,"message",!0),this.msgId=null,this.severity=null}},D4=class extends Y{static{d(this,"Messaging")}constructor(t){super(lt,"messaging",!0),this.message=new F}},P4=class extends ve{static{d(this,"Mode")}constructor(t){super(lt,"mode",["append","overwrite"])}},B4=class extends ri{static{d(this,"ModifyAnnots")}constructor(t){super(lt,"modifyAnnots")}},O4=class extends Ha{static{d(this,"MsgId")}constructor(t){super(lt,"msgId",1,e=>e>=1)}},H4=class extends ae{static{d(this,"NameAttr")}constructor(t){super(lt,"nameAttr")}},N4=class extends Ge{static{d(this,"NeverEmbed")}constructor(t){super(lt,"neverEmbed")}},L4=class extends Ha{static{d(this,"NumberOfCopies")}constructor(t){super(lt,"numberOfCopies",null,e=>e>=2&&e<=5)}},z4=class extends Y{static{d(this,"OpenAction")}constructor(t){super(lt,"openAction",!0),this.destination=null}},U4=class extends Y{static{d(this,"Output")}constructor(t){super(lt,"output",!0),this.to=null,this.type=null,this.uri=null}},G4=class extends ae{static{d(this,"OutputBin")}constructor(t){super(lt,"outputBin")}},$4=class extends Y{static{d(this,"OutputXSL")}constructor(t){super(lt,"outputXSL",!0),this.uri=null}},W4=class extends ve{static{d(this,"Overprint")}constructor(t){super(lt,"overprint",["none","both","draw","field"])}},V4=class extends ae{static{d(this,"Packets")}constructor(t){super(lt,"packets")}[Ie](){this[st]!=="*"&&(this[st]=this[st].trim().split(/\s+/).filter(t=>["config","datasets","template","xfdf","xslt"].includes(t)))}},K4=class extends Y{static{d(this,"PageOffset")}constructor(t){super(lt,"pageOffset"),this.x=Gt({data:t.x,defaultValue:"useXDCSetting",validate:d(e=>!0,"validate")}),this.y=Gt({data:t.y,defaultValue:"useXDCSetting",validate:d(e=>!0,"validate")})}},X4=class extends ae{static{d(this,"PageRange")}constructor(t){super(lt,"pageRange")}[Ie](){let t=this[st].trim().split(/\s+/).map(i=>parseInt(i,10)),e=[];for(let i=0,a=t.length;i<a;i+=2)e.push(t.slice(i,i+2));this[st]=e}},Y4=class extends ve{static{d(this,"Pagination")}constructor(t){super(lt,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}},J4=class extends ve{static{d(this,"PaginationOverride")}constructor(t){super(lt,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}},Q4=class extends Ha{static{d(this,"Part")}constructor(t){super(lt,"part",1,e=>!1)}},Z4=class extends Y{static{d(this,"Pcl")}constructor(t){super(lt,"pcl",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}},t8=class extends Y{static{d(this,"Pdf")}constructor(t){super(lt,"pdf",!0),this.name=t.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}},e8=class extends Y{static{d(this,"Pdfa")}constructor(t){super(lt,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}},i8=class extends Y{static{d(this,"Permissions")}constructor(t){super(lt,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}},a8=class extends ri{static{d(this,"PickTrayByPDFSize")}constructor(t){super(lt,"pickTrayByPDFSize")}},s8=class extends ae{static{d(this,"config_Picture")}constructor(t){super(lt,"picture")}},n8=class extends ri{static{d(this,"PlaintextMetadata")}constructor(t){super(lt,"plaintextMetadata")}},r8=class extends ve{static{d(this,"Presence")}constructor(t){super(lt,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}},l8=class extends Y{static{d(this,"Present")}constructor(t){super(lt,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new F,this.labelPrinter=new F,this.pcl=new F,this.pdf=new F,this.ps=new F,this.submitUrl=new F,this.webClient=new F,this.zpl=new F}},o8=class extends ri{static{d(this,"Print")}constructor(t){super(lt,"print")}},f8=class extends ri{static{d(this,"PrintHighQuality")}constructor(t){super(lt,"printHighQuality")}},h8=class extends ve{static{d(this,"PrintScaling")}constructor(t){super(lt,"printScaling",["appdefault","noScaling"])}},c8=class extends ae{static{d(this,"PrinterName")}constructor(t){super(lt,"printerName")}},u8=class extends ae{static{d(this,"Producer")}constructor(t){super(lt,"producer")}},d8=class extends Y{static{d(this,"Ps")}constructor(t){super(lt,"ps",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}},p8=class extends Ge{static{d(this,"Range$1")}constructor(t){super(lt,"range")}[Ie](){this[st]=this[st].split(",",2).map(t=>t.split("-").map(e=>parseInt(e.trim(),10))).filter(t=>t.every(e=>!isNaN(e))).map(t=>(t.length===1&&t.push(t[0]),t))}},m8=class extends Ge{static{d(this,"Record")}constructor(t){super(lt,"record")}[Ie](){this[st]=this[st].trim();let t=parseInt(this[st],10);!isNaN(t)&&t>=0&&(this[st]=t)}},g8=class extends Ge{static{d(this,"Relevant")}constructor(t){super(lt,"relevant")}[Ie](){this[st]=this[st].trim().split(/\s+/)}},b8=class extends Ge{static{d(this,"Rename")}constructor(t){super(lt,"rename")}[Ie](){this[st]=this[st].trim(),(this[st].toLowerCase().startsWith("xml")||/[\p{L}_][\p{L}\d._\p{M}-]*/u.test(this[st]))&&E("XFA - Rename: invalid XFA name")}},w8=class extends ve{static{d(this,"RenderPolicy")}constructor(t){super(lt,"renderPolicy",["server","client"])}},y8=class extends ve{static{d(this,"RunScripts")}constructor(t){super(lt,"runScripts",["both","client","none","server"])}},k8=class extends Y{static{d(this,"config_Script")}constructor(t){super(lt,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}},v8=class extends ve{static{d(this,"ScriptModel")}constructor(t){super(lt,"scriptModel",["XFA","none"])}},j8=class extends ve{static{d(this,"Severity")}constructor(t){super(lt,"severity",["ignore","error","information","trace","warning"])}},q8=class extends Y{static{d(this,"SilentPrint")}constructor(t){super(lt,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}},x8=class extends Y{static{d(this,"Staple")}constructor(t){super(lt,"staple"),this.mode=nt(t.mode,["usePrinterSetting","on","off"])}},A8=class extends ae{static{d(this,"StartNode")}constructor(t){super(lt,"startNode")}},S8=class extends Ha{static{d(this,"StartPage")}constructor(t){super(lt,"startPage",0,e=>!0)}},C8=class extends ve{static{d(this,"SubmitFormat")}constructor(t){super(lt,"submitFormat",["html","delegate","fdf","xml","pdf"])}},I8=class extends ae{static{d(this,"SubmitUrl")}constructor(t){super(lt,"submitUrl")}},T8=class extends Ha{static{d(this,"SubsetBelow")}constructor(t){super(lt,"subsetBelow",100,e=>e>=0&&e<=100)}},M8=class extends ri{static{d(this,"SuppressBanner")}constructor(t){super(lt,"suppressBanner")}},_8=class extends ri{static{d(this,"Tagged")}constructor(t){super(lt,"tagged")}},E8=class extends Y{static{d(this,"config_Template")}constructor(t){super(lt,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}},F8=class extends ve{static{d(this,"Threshold")}constructor(t){super(lt,"threshold",["trace","error","information","warning"])}},R8=class extends ve{static{d(this,"To")}constructor(t){super(lt,"to",["null","memory","stderr","stdout","system","uri"])}},D8=class extends Y{static{d(this,"TemplateCache")}constructor(t){super(lt,"templateCache"),this.maxEntries=Gt({data:t.maxEntries,defaultValue:5,validate:d(e=>e>=0,"validate")})}},P8=class extends Y{static{d(this,"Trace")}constructor(t){super(lt,"trace",!0),this.area=new F}},B8=class extends Y{static{d(this,"Transform")}constructor(t){super(lt,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}},O8=class extends ve{static{d(this,"Type")}constructor(t){super(lt,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}},H8=class extends ae{static{d(this,"Uri")}constructor(t){super(lt,"uri")}},N8=class extends ve{static{d(this,"config_Validate")}constructor(t){super(lt,"validate",["preSubmit","prePrint","preExecute","preSave"])}},L8=class extends Ge{static{d(this,"ValidateApprovalSignatures")}constructor(t){super(lt,"validateApprovalSignatures")}[Ie](){this[st]=this[st].trim().split(/\s+/).filter(t=>["docReady","postSign"].includes(t))}},z8=class extends ve{static{d(this,"ValidationMessaging")}constructor(t){super(lt,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}},U8=class extends ve{static{d(this,"Version")}constructor(t){super(lt,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}},G8=class extends Y{static{d(this,"VersionControl")}constructor(t){super(lt,"VersionControl"),this.outputBelow=nt(t.outputBelow,["warn","error","update"]),this.sourceAbove=nt(t.sourceAbove,["warn","error"]),this.sourceBelow=nt(t.sourceBelow,["update","maintain"])}},$8=class extends Y{static{d(this,"ViewerPreferences")}constructor(t){super(lt,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}},W8=class extends Y{static{d(this,"WebClient")}constructor(t){super(lt,"webClient",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}},V8=class extends ve{static{d(this,"Whitespace")}constructor(t){super(lt,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}},K8=class extends Ge{static{d(this,"Window")}constructor(t){super(lt,"window")}[Ie](){let t=this[st].split(",",2).map(e=>parseInt(e.trim(),10));t.some(e=>isNaN(e))?this[st]=[0,0]:(t.length===1&&t.push(t[0]),this[st]=t)}},X8=class extends Y{static{d(this,"Xdc")}constructor(t){super(lt,"xdc",!0),this.uri=new F,this.xsl=new F}},Y8=class extends Y{static{d(this,"Xdp")}constructor(t){super(lt,"xdp",!0),this.packets=null}},J8=class extends Y{static{d(this,"Xsl")}constructor(t){super(lt,"xsl",!0),this.debug=null,this.uri=null}},Q8=class extends Y{static{d(this,"Zpl")}constructor(t){super(lt,"zpl",!0),this.name=t.name?t.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}},Z8=class lc{static{d(this,"ConfigNamespace")}static[Ba](e,i){return Object.hasOwn(lc,e)?lc[e](i):void 0}static acrobat(e){return new j6(e)}static acrobat7(e){return new q6(e)}static ADBE_JSConsole(e){return new x6(e)}static ADBE_JSDebugger(e){return new A6(e)}static addSilentPrint(e){return new S6(e)}static addViewerPreferences(e){return new C6(e)}static adjustData(e){return new I6(e)}static adobeExtensionLevel(e){return new T6(e)}static agent(e){return new M6(e)}static alwaysEmbed(e){return new _6(e)}static amd(e){return new E6(e)}static area(e){return new F6(e)}static attributes(e){return new R6(e)}static autoSave(e){return new D6(e)}static base(e){return new P6(e)}static batchOutput(e){return new B6(e)}static behaviorOverride(e){return new O6(e)}static cache(e){return new H6(e)}static change(e){return new N6(e)}static common(e){return new L6(e)}static compress(e){return new z6(e)}static compressLogicalStructure(e){return new U6(e)}static compressObjectStream(e){return new G6(e)}static compression(e){return new $6(e)}static config(e){return new W6(e)}static conformance(e){return new V6(e)}static contentCopy(e){return new K6(e)}static copies(e){return new X6(e)}static creator(e){return new Y6(e)}static currentPage(e){return new J6(e)}static data(e){return new Q6(e)}static debug(e){return new Z6(e)}static defaultTypeface(e){return new t4(e)}static destination(e){return new e4(e)}static documentAssembly(e){return new i4(e)}static driver(e){return new a4(e)}static duplexOption(e){return new s4(e)}static dynamicRender(e){return new n4(e)}static embed(e){return new r4(e)}static encrypt(e){return new l4(e)}static encryption(e){return new o4(e)}static encryptionLevel(e){return new f4(e)}static enforce(e){return new h4(e)}static equate(e){return new c4(e)}static equateRange(e){return new u4(e)}static exclude(e){return new d4(e)}static excludeNS(e){return new p4(e)}static flipLabel(e){return new m4(e)}static fontInfo(e){return new g4(e)}static formFieldFilling(e){return new b4(e)}static groupParent(e){return new w4(e)}static ifEmpty(e){return new y4(e)}static includeXDPContent(e){return new k4(e)}static incrementalLoad(e){return new v4(e)}static incrementalMerge(e){return new j4(e)}static interactive(e){return new q4(e)}static jog(e){return new x4(e)}static labelPrinter(e){return new A4(e)}static layout(e){return new S4(e)}static level(e){return new C4(e)}static linearized(e){return new I4(e)}static locale(e){return new T4(e)}static localeSet(e){return new M4(e)}static log(e){return new _4(e)}static map(e){return new E4(e)}static mediumInfo(e){return new F4(e)}static message(e){return new R4(e)}static messaging(e){return new D4(e)}static mode(e){return new P4(e)}static modifyAnnots(e){return new B4(e)}static msgId(e){return new O4(e)}static nameAttr(e){return new H4(e)}static neverEmbed(e){return new N4(e)}static numberOfCopies(e){return new L4(e)}static openAction(e){return new z4(e)}static output(e){return new U4(e)}static outputBin(e){return new G4(e)}static outputXSL(e){return new $4(e)}static overprint(e){return new W4(e)}static packets(e){return new V4(e)}static pageOffset(e){return new K4(e)}static pageRange(e){return new X4(e)}static pagination(e){return new Y4(e)}static paginationOverride(e){return new J4(e)}static part(e){return new Q4(e)}static pcl(e){return new Z4(e)}static pdf(e){return new t8(e)}static pdfa(e){return new e8(e)}static permissions(e){return new i8(e)}static pickTrayByPDFSize(e){return new a8(e)}static picture(e){return new s8(e)}static plaintextMetadata(e){return new n8(e)}static presence(e){return new r8(e)}static present(e){return new l8(e)}static print(e){return new o8(e)}static printHighQuality(e){return new f8(e)}static printScaling(e){return new h8(e)}static printerName(e){return new c8(e)}static producer(e){return new u8(e)}static ps(e){return new d8(e)}static range(e){return new p8(e)}static record(e){return new m8(e)}static relevant(e){return new g8(e)}static rename(e){return new b8(e)}static renderPolicy(e){return new w8(e)}static runScripts(e){return new y8(e)}static script(e){return new k8(e)}static scriptModel(e){return new v8(e)}static severity(e){return new j8(e)}static silentPrint(e){return new q8(e)}static staple(e){return new x8(e)}static startNode(e){return new A8(e)}static startPage(e){return new S8(e)}static submitFormat(e){return new C8(e)}static submitUrl(e){return new I8(e)}static subsetBelow(e){return new T8(e)}static suppressBanner(e){return new M8(e)}static tagged(e){return new _8(e)}static template(e){return new E8(e)}static templateCache(e){return new D8(e)}static threshold(e){return new F8(e)}static to(e){return new R8(e)}static trace(e){return new P8(e)}static transform(e){return new B8(e)}static type(e){return new O8(e)}static uri(e){return new H8(e)}static validate(e){return new N8(e)}static validateApprovalSignatures(e){return new L8(e)}static validationMessaging(e){return new z8(e)}static version(e){return new U8(e)}static versionControl(e){return new G8(e)}static viewerPreferences(e){return new $8(e)}static webClient(e){return new W8(e)}static whitespace(e){return new V8(e)}static window(e){return new K8(e)}static xdc(e){return new X8(e)}static xdp(e){return new Y8(e)}static xsl(e){return new J8(e)}static zpl(e){return new Q8(e)}},ja=ni.connectionSet.id,t7=class extends Y{static{d(this,"ConnectionSet")}constructor(t){super(ja,"connectionSet",!0),this.wsdlConnection=new F,this.xmlConnection=new F,this.xsdConnection=new F}},e7=class extends Y{static{d(this,"EffectiveInputPolicy")}constructor(t){super(ja,"effectiveInputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},i7=class extends Y{static{d(this,"EffectiveOutputPolicy")}constructor(t){super(ja,"effectiveOutputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},a7=class extends ae{static{d(this,"Operation")}constructor(t){super(ja,"operation"),this.id=t.id||"",this.input=t.input||"",this.name=t.name||"",this.output=t.output||"",this.use=t.use||"",this.usehref=t.usehref||""}},s7=class extends ae{static{d(this,"RootElement")}constructor(t){super(ja,"rootElement"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},n7=class extends ae{static{d(this,"SoapAction")}constructor(t){super(ja,"soapAction"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},r7=class extends ae{static{d(this,"SoapAddress")}constructor(t){super(ja,"soapAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},l7=class extends ae{static{d(this,"connection_set_Uri")}constructor(t){super(ja,"uri"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},o7=class extends ae{static{d(this,"WsdlAddress")}constructor(t){super(ja,"wsdlAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},f7=class extends Y{static{d(this,"WsdlConnection")}constructor(t){super(ja,"wsdlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}},h7=class extends Y{static{d(this,"XmlConnection")}constructor(t){super(ja,"xmlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.uri=null}},c7=class extends Y{static{d(this,"XsdConnection")}constructor(t){super(ja,"xsdConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.rootElement=null,this.uri=null}},u7=class oc{static{d(this,"ConnectionSetNamespace")}static[Ba](e,i){return Object.hasOwn(oc,e)?oc[e](i):void 0}static connectionSet(e){return new t7(e)}static effectiveInputPolicy(e){return new e7(e)}static effectiveOutputPolicy(e){return new i7(e)}static operation(e){return new a7(e)}static rootElement(e){return new s7(e)}static soapAction(e){return new n7(e)}static soapAddress(e){return new r7(e)}static uri(e){return new l7(e)}static wsdlAddress(e){return new o7(e)}static wsdlConnection(e){return new f7(e)}static xmlConnection(e){return new h7(e)}static xsdConnection(e){return new c7(e)}},fc=ni.datasets.id,d7=class extends yn{static{d(this,"datasets_Data")}constructor(t){super(fc,"data",t)}[rl](){return!0}},p7=class extends Y{static{d(this,"Datasets")}constructor(t){super(fc,"datasets",!0),this.data=null,this.Signature=null}[Va](t){let e=t[me];(e==="data"&&t[Ke]===fc||e==="Signature"&&t[Ke]===ni.signature.id)&&(this[e]=t),this[Ue](t)}},m7=class hc{static{d(this,"DatasetsNamespace")}static[Ba](e,i){return Object.hasOwn(hc,e)?hc[e](i):void 0}static datasets(e){return new p7(e)}static data(e){return new d7(e)}},$e=ni.localeSet.id,g7=class extends Y{static{d(this,"CalendarSymbols")}constructor(t){super($e,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new F(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new F(2)}},b7=class extends ae{static{d(this,"CurrencySymbol")}constructor(t){super($e,"currencySymbol"),this.name=nt(t.name,["symbol","isoname","decimal"])}},w7=class extends Y{static{d(this,"CurrencySymbols")}constructor(t){super($e,"currencySymbols",!0),this.currencySymbol=new F(3)}},y7=class extends ae{static{d(this,"DatePattern")}constructor(t){super($e,"datePattern"),this.name=nt(t.name,["full","long","med","short"])}},k7=class extends Y{static{d(this,"DatePatterns")}constructor(t){super($e,"datePatterns",!0),this.datePattern=new F(4)}},v7=class extends Ge{static{d(this,"DateTimeSymbols")}constructor(t){super($e,"dateTimeSymbols")}},j7=class extends ae{static{d(this,"Day")}constructor(t){super($e,"day")}},q7=class extends Y{static{d(this,"DayNames")}constructor(t){super($e,"dayNames",!0),this.abbr=Gt({data:t.abbr,defaultValue:0,validate:d(e=>e===1,"validate")}),this.day=new F(7)}},x7=class extends ae{static{d(this,"Era")}constructor(t){super($e,"era")}},A7=class extends Y{static{d(this,"EraNames")}constructor(t){super($e,"eraNames",!0),this.era=new F(2)}},S7=class extends Y{static{d(this,"locale_set_Locale")}constructor(t){super($e,"locale",!0),this.desc=t.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}},C7=class extends Y{static{d(this,"locale_set_LocaleSet")}constructor(t){super($e,"localeSet",!0),this.locale=new F}},I7=class extends ae{static{d(this,"Meridiem")}constructor(t){super($e,"meridiem")}},T7=class extends Y{static{d(this,"MeridiemNames")}constructor(t){super($e,"meridiemNames",!0),this.meridiem=new F(2)}},M7=class extends ae{static{d(this,"Month")}constructor(t){super($e,"month")}},_7=class extends Y{static{d(this,"MonthNames")}constructor(t){super($e,"monthNames",!0),this.abbr=Gt({data:t.abbr,defaultValue:0,validate:d(e=>e===1,"validate")}),this.month=new F(12)}},E7=class extends ae{static{d(this,"NumberPattern")}constructor(t){super($e,"numberPattern"),this.name=nt(t.name,["full","long","med","short"])}},F7=class extends Y{static{d(this,"NumberPatterns")}constructor(t){super($e,"numberPatterns",!0),this.numberPattern=new F(4)}},R7=class extends ae{static{d(this,"NumberSymbol")}constructor(t){super($e,"numberSymbol"),this.name=nt(t.name,["decimal","grouping","percent","minus","zero"])}},D7=class extends Y{static{d(this,"NumberSymbols")}constructor(t){super($e,"numberSymbols",!0),this.numberSymbol=new F(5)}},P7=class extends ae{static{d(this,"TimePattern")}constructor(t){super($e,"timePattern"),this.name=nt(t.name,["full","long","med","short"])}},B7=class extends Y{static{d(this,"TimePatterns")}constructor(t){super($e,"timePatterns",!0),this.timePattern=new F(4)}},O7=class extends Y{static{d(this,"TypeFace")}constructor(t){super($e,"typeFace",!0),this.name=t.name|""}},H7=class extends Y{static{d(this,"TypeFaces")}constructor(t){super($e,"typeFaces",!0),this.typeFace=new F}},N7=class cc{static{d(this,"LocaleSetNamespace")}static[Ba](e,i){return Object.hasOwn(cc,e)?cc[e](i):void 0}static calendarSymbols(e){return new g7(e)}static currencySymbol(e){return new b7(e)}static currencySymbols(e){return new w7(e)}static datePattern(e){return new y7(e)}static datePatterns(e){return new k7(e)}static dateTimeSymbols(e){return new v7(e)}static day(e){return new j7(e)}static dayNames(e){return new q7(e)}static era(e){return new x7(e)}static eraNames(e){return new A7(e)}static locale(e){return new S7(e)}static localeSet(e){return new C7(e)}static meridiem(e){return new I7(e)}static meridiemNames(e){return new T7(e)}static month(e){return new M7(e)}static monthNames(e){return new _7(e)}static numberPattern(e){return new E7(e)}static numberPatterns(e){return new F7(e)}static numberSymbol(e){return new R7(e)}static numberSymbols(e){return new D7(e)}static timePattern(e){return new P7(e)}static timePatterns(e){return new B7(e)}static typeFace(e){return new O7(e)}static typeFaces(e){return new H7(e)}},L7=ni.signature.id,z7=class extends Y{static{d(this,"signature_Signature")}constructor(t){super(L7,"signature",!0)}},U7=class uc{static{d(this,"SignatureNamespace")}static[Ba](e,i){return Object.hasOwn(uc,e)?uc[e](i):void 0}static signature(e){return new z7(e)}},G7=ni.stylesheet.id,$7=class extends Y{static{d(this,"Stylesheet")}constructor(t){super(G7,"stylesheet",!0)}},W7=class dc{static{d(this,"StylesheetNamespace")}static[Ba](e,i){return Object.hasOwn(dc,e)?dc[e](i):void 0}static stylesheet(e){return new $7(e)}},V7=ni.xdp.id,K7=class extends Y{static{d(this,"xdp_Xdp")}constructor(t){super(V7,"xdp",!0),this.uuid=t.uuid||"",this.timeStamp=t.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new F,this.template=null}[Qh](t){let e=ni[t[me]];return e&&t[Ke]===e.id}},X7=class pc{static{d(this,"XdpNamespace")}static[Ba](e,i){return Object.hasOwn(pc,e)?pc[e](i):void 0}static xdp(e){return new K7(e)}},Y7=ni.xhtml.id,eo=Symbol(),J7=new Set("color.font.font-family.font-size.font-stretch.font-style.font-weight.margin.margin-bottom.margin-left.margin-right.margin-top.letter-spacing.line-height.orphans.page-break-after.page-break-before.page-break-inside.tab-interval.tab-stop.text-align.text-decoration.text-indent.vertical-align.widows.kerning-mode.xfa-font-horizontal-scale.xfa-font-vertical-scale.xfa-spacerun.xfa-tab-stops".split(".")),Q7=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",t=>t==="none"?"none":"normal"],["xfa-font-horizontal-scale",t=>`scaleX(${Math.max(0,parseInt(t,10)/100).toFixed(2)})`],["xfa-font-vertical-scale",t=>`scaleY(${Math.max(0,parseInt(t,10)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(t,e)=>(t=e.fontSize=Math.abs(vt(t)),Ut(.99*t))],["letter-spacing",t=>Ut(vt(t))],["line-height",t=>Ut(vt(t))],["margin",t=>Ut(vt(t))],["margin-bottom",t=>Ut(vt(t))],["margin-left",t=>Ut(vt(t))],["margin-right",t=>Ut(vt(t))],["margin-top",t=>Ut(vt(t))],["text-indent",t=>Ut(vt(t))],["font-family",t=>t],["vertical-align",t=>Ut(vt(t))]]),Z7=/\s+/g,ty=/[\r\n]+/g,ey=/\r\n?/g;d(iy,"mapStyle");d(ay,"checkStyle");sy=new Set(["body","html"]),oa=class extends yn{static{d(this,"XhtmlObject")}constructor(t,e){super(Y7,e),this[eo]=!1,this.style=t.style||""}[ka](t){super[ka](t),this.style=ay(this)}[Jo](){return!sy.has(this[me])}[ds](t,e=!1){e?this[eo]=!0:(t=t.replaceAll(ty,""),this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(Z7," "))),t&&(this[st]+=t)}[Qa](t,e=!0){let i=Object.create(null),a={top:NaN,bottom:NaN,left:NaN,right:NaN},s=null;for(let[n,r]of this.style.split(";").map(l=>l.split(":",2)))switch(n){case"font-family":i.typeface=Zo(r);break;case"font-size":i.size=vt(r);break;case"font-weight":i.weight=r;break;case"font-style":i.posture=r;break;case"letter-spacing":i.letterSpacing=vt(r);break;case"margin":let l=r.split(/ \t/).map(vt);switch(l.length){case 1:a.top=a.bottom=a.left=a.right=l[0];break;case 2:a.top=a.bottom=l[0],a.left=a.right=l[1];break;case 3:a.top=l[0],a.bottom=l[2],a.left=a.right=l[1];break;case 4:a.top=l[0],a.left=l[1],a.bottom=l[2],a.right=l[3]}break;case"margin-top":a.top=vt(r);break;case"margin-bottom":a.bottom=vt(r);break;case"margin-left":a.left=vt(r);break;case"margin-right":a.right=vt(r);break;case"line-height":s=vt(r)}if(t.pushData(i,a,s),this[st])t.addString(this[st]);else for(let n of this[Ti]())n[me]==="#text"?t.addString(n[st]):n[Qa](t);e&&t.popFont()}[Ot](t){let e=[];if(this[W]={children:e},this[Ns]({}),e.length===0&&!this[st])return Dt.EMPTY;let i;return i=this[eo]?this[st]?this[st].replaceAll(ey,`
|
|
34
|
+
`):void 0:this[st]||void 0,Dt.success({name:this[me],attributes:{href:this.href,style:iy(this.style,this,this[eo])},children:e,value:i})}},ny=class extends oa{static{d(this,"A")}constructor(t){super(t,"a"),this.href=D0(t.href)||""}},ry=class extends oa{static{d(this,"B")}constructor(t){super(t,"b")}[Qa](t){t.pushFont({weight:"bold"}),super[Qa](t),t.popFont()}},ly=class extends oa{static{d(this,"Body")}constructor(t){super(t,"body")}[Ot](t){let e=super[Ot](t),{html:i}=e;return i?(i.name="div",i.attributes.class=["xfaRich"],e):Dt.EMPTY}},oy=class extends oa{static{d(this,"Br")}constructor(t){super(t,"br")}[si](){return`
|
|
35
|
+
`}[Qa](t){t.addString(`
|
|
36
|
+
`)}[Ot](t){return Dt.success({name:"br"})}},fy=class extends oa{static{d(this,"Html")}constructor(t){super(t,"html")}[Ot](t){let e=[];if(this[W]={children:e},this[Ns]({}),e.length===0)return Dt.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[st]||""});if(e.length===1){let i=e[0];if(i.attributes?.class.includes("xfaRich"))return Dt.success(i)}return Dt.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:e})}},hy=class extends oa{static{d(this,"I")}constructor(t){super(t,"i")}[Qa](t){t.pushFont({posture:"italic"}),super[Qa](t),t.popFont()}},cy=class extends oa{static{d(this,"Li")}constructor(t){super(t,"li")}},uy=class extends oa{static{d(this,"Ol")}constructor(t){super(t,"ol")}},dy=class extends oa{static{d(this,"P")}constructor(t){super(t,"p")}[Qa](t){super[Qa](t,!1),t.addString(`
|
|
37
|
+
`),t.addPara(),t.popFont()}[si](){return this[Vt]()[Ti]().at(-1)===this?super[si]():super[si]()+`
|
|
38
|
+
`}},py=class extends oa{static{d(this,"Span")}constructor(t){super(t,"span")}},my=class extends oa{static{d(this,"Sub")}constructor(t){super(t,"sub")}},gy=class extends oa{static{d(this,"Sup")}constructor(t){super(t,"sup")}},by=class extends oa{static{d(this,"Ul")}constructor(t){super(t,"ul")}},mc=class gc{static{d(this,"XhtmlNamespace")}static[Ba](e,i){return Object.hasOwn(gc,e)?gc[e](i):void 0}static a(e){return new ny(e)}static b(e){return new ry(e)}static body(e){return new ly(e)}static br(e){return new oy(e)}static html(e){return new fy(e)}static i(e){return new hy(e)}static li(e){return new cy(e)}static ol(e){return new uy(e)}static p(e){return new dy(e)}static span(e){return new py(e)}static sub(e){return new my(e)}static sup(e){return new gy(e)}static ul(e){return new by(e)}},c1={config:Z8,connection:u7,datasets:m7,localeSet:N7,signature:U7,stylesheet:W7,template:y6,xdp:X7,xhtml:mc},u1=class{static{d(this,"UnknownNamespace")}constructor(t){this.namespaceId=t}[Ba](t,e){return new yn(this.namespaceId,t,e)}},wy=class extends Y{static{d(this,"Root")}constructor(t){super(-1,"root",Object.create(null)),this.element=null,this[Kn]=t}[Va](t){return this.element=t,!0}[Ie](){super[Ie](),this.element.template instanceof ku&&(this[Kn].set(k0,this.element),this.element.template[Wr](this[Kn]),this.element.template[Kn]=this[Kn])}},yy=class extends Y{static{d(this,"Empty")}constructor(){super(-1,"",Object.create(null))}[Va](t){return!1}},ky=class{static{d(this,"Builder")}constructor(t=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(ni).map(({id:e})=>e)),this._currentNamespace=t||new u1(++this._nextNsId)}buildRoot(t){return new wy(t)}build({nsPrefix:t,name:e,attributes:i,namespace:a,prefixes:s}){let n=a!==null;if(n&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(a)),s&&this._addNamespacePrefix(s),Object.hasOwn(i,un)){let l=c1.datasets,o=i[un],f=null;for(let[h,c]of Object.entries(o))if(this._getNamespaceToUse(h)===l){f={xfa:c};break}f?i[un]=f:delete i[un]}let r=this._getNamespaceToUse(t)?.[Ba](e,i)||new yy;return r[rl]()&&this._nsAgnosticLevel++,(n||s||r[rl]())&&(r[vo]={hasNamespace:n,prefixes:s,nsAgnostic:r[rl]()}),r}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let e=this._namespaces.get(t);if(e)return e;for(let[i,{check:a}]of Object.entries(ni))if(a(t)){if(e=c1[i],e)return this._namespaces.set(t,e),e;break}return e=new u1(++this._nextNsId),this._namespaces.set(t,e),e}_addNamespacePrefix(t){for(let{prefix:e,value:i}of t){let a=this._searchNamespace(i);this._namespacePrefixes.getOrInsertComputed(e,Ps).push(a)}}_getNamespaceToUse(t){if(!t)return this._currentNamespace;let e=this._namespacePrefixes.get(t);return e?.length>0?e.at(-1):(E(`Unknown namespace prefix: ${t}.`),null)}clean(t){let{hasNamespace:e,prefixes:i,nsAgnostic:a}=t;e&&(this._currentNamespace=this._namespaceStack.pop()),i?.forEach(({prefix:s})=>{this._namespacePrefixes.get(s).pop()}),a&&this._nsAgnosticLevel--}},d1=class im extends d0{static{d(this,"XFAParser")}constructor(e=null,i=!1){super(),this._builder=new ky(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=Vi.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=i}parse(e){if(this.parseXml(e),this._errorCode===Vi.NoError)return this._current[Ie](),this._current.element}onText(e){e=e.replace(this._nbsps,i=>i.slice(1)+" "),this._richText||this._current[Jo]()?this._current[ds](e,this._richText):this._whiteRegex.test(e)||this._current[ds](e.trim())}onCdata(e){this._current[ds](e)}_mkAttributes(e,i){let a=null,s=null,n=Object.create({});for(let{name:r,value:l}of e)if(r==="xmlns")a?E(`XFA - multiple namespace definition in <${i}>`):a=l;else if(r.startsWith("xmlns:")){let o=r.substring(6);s??=[],s.push({prefix:o,value:l})}else{let o=r.indexOf(":");if(o===-1)n[r]=l;else{let f=n[un]??=Object.create(null),[h,c]=[r.slice(0,o),r.slice(o+1)],u=f[h]||=Object.create(null);u[c]=l}}return[a,s,n]}_getNameAndPrefix(e,i){let a=e.indexOf(":");return a===-1?[e,null]:[e.substring(a+1),i?"":e.substring(0,a)]}onBeginElement(e,i,a){let[s,n,r]=this._mkAttributes(i,e),[l,o]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),f=this._builder.build({nsPrefix:o,name:l,attributes:r,namespace:s,prefixes:n});f[Ce]=this._globalData,a?(f[Ie](),this._current[Va](f)&&f[Zh](this._ids),f[ka](this._builder)):(this._stack.push(this._current),this._current=f)}onEndElement(e){let i=this._current;if(i[fu]()&&typeof i[st]=="string"){let a=new im;a._globalData=this._globalData;let s=a.parse(i[st]);i[st]=null,i[Va](s)}i[Ie](),this._current=this._stack.pop(),this._current[Va](i)&&i[Zh](this._ids),i[ka](this._builder)}onError(e){this._errorCode=e}},qu=class am{static{d(this,"XFAFactory")}constructor(e){try{this.root=new d1().parse(am._createDocument(e));let i=new k6(this.root);this.form=i.bind(),this.dataHandler=new v6(this.root,i.getData()),this.form[Ce].template=this.form}catch(i){E(`XFA - an error occurred during parsing and binding: ${i}`)}}isValid(){return!!(this.root&&this.form)}_createPagesHelper(){let e=this.form[j0]();return new Promise((i,a)=>{let s=d(()=>{try{let n=e.next();n.done?i(n.value):setTimeout(s,0)}catch(n){a(n)}},"nextIteration");setTimeout(s,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(e=>{let{width:i,height:a}=e.attributes.style;return[0,0,parseInt(i,10),parseInt(a,10)]})}catch(e){E(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[Ce].images=e}setFonts(e){this.form[Ce].fontFinder=new T5(e);let i=[];for(let a of this.form[Ce].usedTypefaces)a=Zo(a),this.form[Ce].fontFinder.find(a)||i.push(a);return i.length>0?i:null}appendFonts(e,i){this.form[Ce].fontFinder.add(e,i)}async getPages(){this.pages||await this._createPages();let e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e.get("/xdp:xdp")?e.values().join(""):e.get("xdp:xdp")}static getRichTextAsHtml(e){if(!e||typeof e!="string")return null;try{let i=new d1(mc,!0).parse(e);if(!["body","xhtml"].includes(i[me])){let r=mc.body({});r[Ue](i),i=r}let a=i[Ot]();if(!a.success)return null;let{html:s}=a,{attributes:n}=s;return n&&(n.class&&=n.class.filter(r=>!r.startsWith("xfa")),n.dir="auto"),{html:s,str:i[si]()}}catch(i){E(`XFA - an error occurred during parsing of rich text: ${i}`)}return null}},_a=class{static{d(this,"AnnotationFactory")}static createGlobals(t){return Promise.all([t.ensureCatalog("acroForm"),t.ensureDoc("xfaDatasets"),t.ensureCatalog("structTreeRoot"),t.ensureCatalog("baseUrl"),t.ensureCatalog("attachments"),t.ensureCatalog("globalColorSpaceCache")]).then(([e,i,a,s,n,r])=>({pdfManager:t,catalog:t.pdfDocument.catalog,acroForm:e instanceof _?e:_.empty,xfaDatasets:i,structTreeRoot:a,baseUrl:s,attachments:n,globalColorSpaceCache:r}),e=>(E(`createGlobals: "${e}".`),null))}static async create(t,e,i,a,s,n,r,l){let o=s?await this._getPageIndex(t,e,i.pdfManager):null;return i.pdfManager.ensure(this,"_create",[t,e,i,a,s,n,r,o,l])}static _create(t,e,i,a,s=!1,n=null,r=null,l=null,o=null){let f=t.fetchIfRef(e);if(!(f instanceof _))return;let h=f.get("Subtype");if(h=h instanceof Z?h.name:null,r&&!r.has(tp[h?.toUpperCase()]))return null;let{acroForm:c,pdfManager:u}=i,p=e instanceof it?e.toString():`annot_${a.createObjId()}`,m={xref:t,ref:e,dict:f,subtype:h,id:p,annotationGlobals:i,collectFields:s,orphanFields:n,needAppearances:!s&&c.get("NeedAppearances")===!0,pageIndex:l,evaluatorOptions:u.evaluatorOptions,pageRef:o};switch(h){case"Link":return new Sy(m);case"Text":return new Ay(m);case"Widget":let g=gi({dict:f,key:"FT"});switch(g=g instanceof Z?g.name:null,g){case"Tx":return new jy(m);case"Btn":return new qy(m);case"Ch":return new xy(m);case"Sig":return new sm(m)}return E(`Unimplemented widget field type "${g}", falling back to base field type.`),new Ls(m);case"Popup":return new xu(m);case"FreeText":return new Zf(m);case"Line":return new Cy(m);case"Square":return new Iy(m);case"Circle":return new Ty(m);case"PolyLine":return new nm(m);case"Polygon":return new rm(m);case"Caret":return new My(m);case"Ink":return new Rr(m);case"Highlight":return new th(m);case"Underline":return new _y(m);case"Squiggly":return new Ey(m);case"StrikeOut":return new Fy(m);case"Stamp":return new Dr(m);case"FileAttachment":return new Ry(m);case"RichMedia":return new Dy(m);case"Screen":return new Py(m);case"Sound":return new By(m);default:return s||E(h?`Unimplemented annotation type "${h}", falling back to base annotation.`:"Annotation is missing the required /Subtype."),new gr(m)}}static async _getPageIndex(t,e,i){try{let a=await t.fetchIfRefAsync(e);if(!(a instanceof _))return-1;let s=a.getRaw("P");if(s instanceof it)try{return await i.ensureCatalog("getPageIndex",[s])}catch(r){de(`_getPageIndex -- not a valid page reference: "${r}".`)}if(a.has("Kids"))return-1;let n=await i.ensureDoc("numPages");for(let r=0;r<n;r++){let l=await i.getPage(r),o=await i.ensure(l,"annotations");for(let f of o)if(f instanceof it&&rr(f,e))return r}}catch(a){E(`_getPageIndex: "${a}".`)}return-1}static generateImages(t,e,i){if(!i)return E("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;let a;for(let{bitmapId:s,bitmap:n}of t)n&&(a||=new Map,a.set(s,b0(n,e)));return a}static getPrintData(t){throw Error("Not implemented: getPrintData")}static async saveNewAnnotations(t,e,i,a,s,n){let r,l=[],{isOffscreenCanvasSupported:o}=t.options;for(let f of a)if(!f.deleted)switch(f.annotationType){case Na.FREETEXT:if(!f.appearanceRef&&!r){let c=new _(e);c.setIfName("BaseFont","Helvetica"),c.setIfName("Type","Font"),c.setIfName("Subtype","Type1"),c.setIfName("Encoding","WinAnsiEncoding"),r=e.getNewTemporaryRef(),n.put(r,{data:c})}l.push(Zf.createNewAnnotation(e,f,n,{evaluator:t,task:i,baseFontRef:r}));break;case Na.HIGHLIGHT:f.quadPoints?l.push(th.createNewAnnotation(e,f,n)):l.push(Rr.createNewAnnotation(e,f,n));break;case Na.INK:l.push(Rr.createNewAnnotation(e,f,n));break;case Na.STAMP:let h=o?await s?.get(f.bitmapId):null;if(h?.imageStream){let{imageStream:c,smaskStream:u}=h;if(u){let m=e.getNewTemporaryRef();n.put(m,{data:u}),c.dict.set("SMask",m)}let p=h.imageRef=e.getNewTemporaryRef();n.put(p,{data:c}),h.imageStream=null,h.imageRenderStream=null,h.smaskStream=null,h.smaskRenderStream=null}l.push(Dr.createNewAnnotation(e,f,n,{image:h}));break;case Na.SIGNATURE:l.push(Dr.createNewAnnotation(e,f,n,{}))}return{annotations:(await Promise.all(l)).flat()}}static async printNewAnnotations(t,e,i,a,s){if(!a)return null;let{options:n,xref:r}=e,l=[];for(let o of a)if(!o.deleted)switch(o.annotationType){case Na.FREETEXT:l.push(Zf.createNewPrintAnnotation(t,r,o,{evaluator:e,task:i,evaluatorOptions:n}));break;case Na.HIGHLIGHT:o.quadPoints?l.push(th.createNewPrintAnnotation(t,r,o,{evaluatorOptions:n})):l.push(Rr.createNewPrintAnnotation(t,r,o,{evaluatorOptions:n}));break;case Na.INK:l.push(Rr.createNewPrintAnnotation(t,r,o,{evaluatorOptions:n}));break;case Na.STAMP:let f=n.isOffscreenCanvasSupported?await s?.get(o.bitmapId):null;if(f?.imageStream){let{imageStream:h,imageRenderStream:c,smaskStream:u,smaskRenderStream:p}=f,m=c||new Vo(h,h.length);(u||p)&&m.dict.set("SMask",p||u),f.imageRef=m,f.imageStream=null,f.imageRenderStream=null,f.smaskStream=null,f.smaskRenderStream=null}l.push(Dr.createNewPrintAnnotation(t,r,o,{image:f,evaluatorOptions:n}));break;case Na.SIGNATURE:l.push(Dr.createNewPrintAnnotation(t,r,o,{evaluatorOptions:n}))}return Promise.all(l)}};d(vn,"getRgbColor");d(xi,"getPdfColorArray");d(Ml,"getQuadPoints");d(bc,"getTransformMatrix");d(wc,"writeLineToCurveToAppearance");gr=class{static{d(this,"Annotation")}appearance=null;_oc=void 0;constructor(t){let{annotationGlobals:e,dict:i,orphanFields:a,ref:s,subtype:n,xref:r}=t,l=a?.get(s);l&&i.set("Parent",l),this.setTitle(i.get("T")),this.setContents(i.get("Contents")),this.setModificationDate(i.get("M")),this.setFlags(i.get("F")),this.setRectangle(i.getArray("Rect")),this.setColor(i.getArray("C")),this.setBorderStyle(i),this.setAppearance(i),this.#t(r,i);let o=i.get("MK");this.setBorderAndBackgroundColors(o),this.setRotation(o,i),this.ref=t.ref instanceof it?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);let f=!!(this.flags&De.LOCKED),h=!!(this.flags&De.LOCKEDCONTENTS);if(this.data={annotationType:tp[n?.toUpperCase()],annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,oc:this._oc,rect:this.rectangle,subtype:n,hasOwnCanvas:!1,noRotate:!!(this.flags&De.NOROTATE),noHTML:f&&h,isEditable:!1,structParent:-1},e.structTreeRoot){let u=i.get("StructParent");this.data.structParent=u=Number.isInteger(u)&&u>=0?u:-1,e.structTreeRoot.addAnnotationIdToPage(t.pageRef,u,this.ref)}if(t.collectFields){let u=i.get("Kids");if(Array.isArray(u)){let p=[];for(let m of u)m instanceof it&&p.push(m.toString());p.length!==0&&(this.data.kidIds=p)}this.data.actions=$o(r,i,ep),this.data.fieldName=this._constructFieldName(i),this.data.pageIndex=t.pageIndex}let c=i.get("IT");c instanceof Z&&(this.data.it=c.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_getOperatorListNoAppearance(){return{opList:new Da,separateForm:!1,separateCanvas:!1}}_hasFlag(t,e){return!!(t&e)}_buildFlags(t,e){let{flags:i}=this;return t===void 0?e===void 0?void 0:e?i&~De.PRINT:i&~De.HIDDEN|De.PRINT:t?(i|=De.PRINT,e?i&~De.NOVIEW|De.HIDDEN:i&~De.HIDDEN|De.NOVIEW):(i&=~(De.HIDDEN|De.NOVIEW),e?i&~De.PRINT:i|De.PRINT)}_isViewable(t){return!this._hasFlag(t,De.INVISIBLE)&&!this._hasFlag(t,De.NOVIEW)}_isPrintable(t){return this._hasFlag(t,De.PRINT)&&!this._hasFlag(t,De.HIDDEN)&&!this._hasFlag(t,De.INVISIBLE)}mustBeViewed(t,e){let i=t?.get(this.data.id)?.noView;return i===void 0?this.viewable&&!this._hasFlag(this.flags,De.HIDDEN):!i}mustBePrinted(t){let e=t?.get(this.data.id)?.noPrint;return e===void 0?this.printable:!e}mustBeViewedWhenEditing(t,e=null){return t?!this.data.isEditable:!e?.has(this.data.id)}get viewable(){return this.data.quadPoints!==null&&(this.flags===0||this._isViewable(this.flags))}get printable(){return this.data.quadPoints!==null&&this.flags!==0&&this._isPrintable(this.flags)}_parseStringHelper(t){let e=typeof t=="string"?Wt(t):"";return{str:e,dir:e&&au(e).dir==="rtl"?"rtl":"ltr"}}setDefaultAppearance(t){let{dict:e,annotationGlobals:i}=t,a=gi({dict:e,key:"DA"})||i.acroForm.get("DA");this._defaultAppearance=typeof a=="string"?a:"",this.data.defaultAppearanceData=nu(this._defaultAppearance)}setTitle(t){this._title=this._parseStringHelper(t)}setContents(t){this._contents=this._parseStringHelper(t)}setModificationDate(t){this.modificationDate=typeof t=="string"?t:null}setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0,this.flags&De.INVISIBLE&&this.constructor.name!=="Annotation"&&(this.flags^=De.INVISIBLE)}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){this.rectangle=Ya(t,[0,0,0,0])}setColor(t){this.color=vn(t)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&t.length===2)for(let e=0;e<2;e++){let i=t[e];if(i instanceof Z)switch(i.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[e]=i.name;continue}E(`Ignoring invalid lineEnding: ${i}`)}}setRotation(t,e){this.rotation=0;let i=t instanceof _?t.get("R")||0:e.get("Rotate")||0;Number.isInteger(i)&&i!==0&&(i%=360,i<0&&(i+=360),i%90==0&&(this.rotation=i))}setBorderAndBackgroundColors(t){t instanceof _?(this.borderColor=vn(t.getArray("BC"),null),this.backgroundColor=vn(t.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(t){if(this.borderStyle=new vy,t instanceof _)if(t.has("BS")){let e=t.get("BS");if(e instanceof _){let i=e.get("Type");(!i||Ht(i,"Border"))&&(this.borderStyle.setWidth(e.get("W"),this.rectangle),this.borderStyle.setStyle(e.get("S")),this.borderStyle.setDashArray(e.getArray("D")))}}else if(t.has("Border")){let e=t.getArray("Border");Array.isArray(e)&&(e.length>=3?(this.borderStyle.setHorizontalCornerRadius(e[0]),this.borderStyle.setVerticalCornerRadius(e[1]),this.borderStyle.setWidth(e[2],this.rectangle),e.length===4&&this.borderStyle.setDashArray(e[3],!0)):e.length===0&&this.borderStyle.setWidth(0))}else this.borderStyle.setWidth(0)}setAppearance(t){let e=t.get("AP");if(!(e instanceof _))return;let i=e.get("N");if(i instanceof Bt){this.appearance=i;return}if(!(i instanceof _))return;let a=t.get("AS");if(!(a instanceof Z))return;let s=i.get(a.name);s instanceof Bt&&(this.appearance=s)}#t(t,e){if(e.has("OC"))try{this._oc=l0(t,e.get("OC"),null)}catch(i){if(i instanceof xe)throw i;E(`#setOptionalContent: ${i}`)}}async loadResources(t,e){let i=await e.dict.getAsync("Resources");return i&&await Po.load(i,t,i.xref),i}get _ownCanvasRequiresForms(){return!1}async getOperatorList(t,e,i,a){let{hasOwnCanvas:s,id:n,rect:r}=this.data,l=this.appearance,o=!!(s&&i&mi.DISPLAY&&(!this._ownCanvasRequiresForms||i&mi.ANNOTATIONS_FORMS));if(o&&(this.width===0||this.height===0))return this.data.hasOwnCanvas=!1,this._getOperatorListNoAppearance();if(!l){if(!o)return this._getOperatorListNoAppearance();l=new qi("",new _)}let f=l.dict,h=await this.loadResources(wh,l),c=ul(f.getArray("BBox"),[0,0,this.width,this.height]),u=os(f.getArray("Matrix"),wa),p=bc(r,c,u),m=new Da,g=this._oc;return g!==void 0&&m.addOp(T.beginMarkedContentProps,["OC",g]),m.addOp(T.beginAnnotation,[n,r,p,u,o]),await t.getOperatorList({stream:l,task:e,resources:h,operatorList:m,fallbackFontDict:this._fallbackFontDict}),m.addOp(T.endAnnotation,[]),g!==void 0&&m.addOp(T.endMarkedContent,[]),this.reset(),{opList:m,separateForm:!1,separateCanvas:o}}async save(t,e,i,a){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(t,e,i){if(!this.appearance)return;let a=await this.loadResources(yh,this.appearance),s=[],n=[],r=1/0,l=1/0,o=null,f={desiredSize:Math.Infinity,ready:!0,enqueue(h,c){for(let u of h.items)u.str!==void 0&&(r=Math.min(r,u.transform[4]),l=Math.min(l,u.transform[5]),n.push(u.str),u.hasEOL&&(s.push(n.join("").trimEnd()),n.length=0))}};if(await t.getTextContent({stream:this.appearance,task:e,resources:a,includeMarkedContent:!0,keepWhiteSpace:!0,sink:f,viewBox:i}),this.reset(),r!==1/0&&(o=[r,l]),n.length&&s.push(n.join("").trimEnd()),s.length>1||s[0]){let h=this.appearance.dict,c=ul(h.getArray("BBox"),null),u=os(h.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(o,c,u),this.data.textContent=s}}_transformPoint(t,e,i){let{rect:a}=this.data;e||=[0,0,1,1],i||=[1,0,0,1,0,0];let s=bc(a,e,i);s[4]-=a[0],s[5]-=a[1];let n=t.slice();return oe.applyTransform(n,s),oe.applyTransform(n,i),n}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(let t of this._streams)t.reset()}_constructFieldName(t){if(!t.has("T")&&!t.has("Parent"))return E("Unknown field name, falling back to empty field name."),"";if(!t.has("Parent"))return Wt(t.get("T"));let e=[];t.has("T")&&e.unshift(Wt(t.get("T")));let i=t,a=new we;for(t.objId&&a.put(t.objId);i.has("Parent")&&(i=i.get("Parent"),!(!(i instanceof _)||i.objId&&a.has(i.objId)));)i.objId&&a.put(i.objId),i.has("T")&&e.unshift(Wt(i.get("T")));return e.join(".")}_getAttachmentId(t,e,i,a=!1){if(t instanceof _)return e instanceof it||(e=la.pickPlatformItem(t.get("EF"),!0)),e instanceof it?i.catalog.getAttachmentIdForAnnotation(e,a):void 0}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}},vy=class{static{d(this,"AnnotationBorderStyle")}width=1;rawWidth=1;style=Dn.SOLID;dashArray=[3];horizontalCornerRadius=0;verticalCornerRadius=0;setWidth(t,e=[0,0,0,0]){if(t instanceof Z)this.width=0;else if(typeof t=="number"){if(t>0){this.rawWidth=t;let i=(e[2]-e[0])/2,a=(e[3]-e[1])/2;i>0&&a>0&&(t>i||t>a)&&(E(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`),t=1)}this.width=t}}setStyle(t){if(t instanceof Z)switch(t.name){case"S":this.style=Dn.SOLID;break;case"D":this.style=Dn.DASHED;break;case"B":this.style=Dn.BEVELED;break;case"I":this.style=Dn.INSET;break;case"U":this.style=Dn.UNDERLINE}}setDashArray(t,e=!1){if(Array.isArray(t)){let i=!0,a=!0;for(let s of t)if(+s>=0)s>0&&(a=!1);else{i=!1;break}t.length===0||i&&!a?(this.dashArray=t,e&&this.setStyle(Z.get("D"))):this.width=0}else t&&(this.width=0)}setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}},Yi=class extends gr{static{d(this,"MarkupAnnotation")}constructor(t){super(t);let{dict:e}=t;if(e.has("IRT")){let a=e.getRaw("IRT");this.data.inReplyTo=a instanceof it?a.toString():null;let s=e.get("RT");this.data.replyType=s instanceof Z?s.name:uh.REPLY}let i=null;if(this.data.replyType===uh.GROUP){let a=e.get("IRT");this.setTitle(a.get("T")),this.data.titleObj=this._title,this.setContents(a.get("Contents")),this.data.contentsObj=this._contents,a.has("CreationDate")?(this.setCreationDate(a.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,a.has("M")?(this.setModificationDate(a.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,i=a.getRaw("Popup"),a.has("C")?(this.setColor(a.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate,i=e.getRaw("Popup"),e.has("C")||(this.data.color=null);this.data.popupRef=i instanceof it?i.toString():null,e.has("RC")&&(this.data.richText=qu.getRichTextAsHtml(e.get("RC")))}setCreationDate(t){this.creationDate=typeof t=="string"?t:null}_setDefaultAppearance({xref:t,extra:e,strokeColor:i,fillColor:a,blendMode:s,strokeAlpha:n,fillAlpha:r,pointsCallback:l}){let o=this.data.rect=Ds.slice(),f=["q"];e&&f.push(e),i&&f.push(`${i[0]} ${i[1]} ${i[2]} RG`),a&&f.push(`${a[0]} ${a[1]} ${a[2]} rg`);let h=this.data.quadPoints||Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]);for(let v=0,y=h.length;v<y;v+=8){let x=l(f,h.subarray(v,v+8));oe.rectBoundingBox(...x,o)}f.push("Q");let c=new _(t),u=new _(t);u.setIfName("Subtype","Form");let p=new qi(f.join(" "),u);c.set("Fm0",p);let m=new _(t);s&&m.setIfName("BM",s),m.setIfNumber("CA",n),m.setIfNumber("ca",r);let g=new _(t);g.set("GS0",m);let b=new _(t);b.set("ExtGState",g),b.set("XObject",c);let w=new _(t);w.set("Resources",b),w.set("BBox",o),this.appearance=new qi("/GS0 gs /Fm0 Do",w),this._streams.push(this.appearance,p)}static async createNewAnnotation(t,e,i,a){let s=e.ref||=t.getNewTemporaryRef(),n=await this.createNewAppearanceStream(e,t,a),r=e.appearanceRef??null;n&&i.put(r=t.getNewTemporaryRef(),{data:n});let l=this.createNewDict(e,t,{apRef:r});Number.isInteger(e.parentTreeId)&&l.set("StructParent",e.parentTreeId),i.put(s,{data:l});let o={ref:s},{popup:f}=e;if(f){if(f.deleted)return l.delete("Popup"),l.delete("Contents"),l.delete("RC"),o;let h=f.ref||=t.getNewTemporaryRef();f.parent=s;let c=xu.createNewDict(f,t);return i.put(h,{data:c}),l.setIfDefined("Contents",ui(f.contents)),l.set("Popup",h),[o,{ref:h}]}return o}static async createNewPrintAnnotation(t,e,i,a){let s=await this.createNewAppearanceStream(i,e,a),n=this.createNewDict(i,e,s?{ap:s}:{}),r=new this.prototype.constructor({dict:n,xref:e,annotationGlobals:t,evaluatorOptions:a.evaluatorOptions});return i.ref&&(r.ref=r.refToReplace=i.ref),r}},Ls=class yc extends gr{static{d(this,"WidgetAnnotation")}constructor(e){super(e);let{dict:i,xref:a,annotationGlobals:s}=e,n=this.data;this._needAppearances=e.needAppearances,n.fieldName===void 0&&(n.fieldName=this._constructFieldName(i)),n.actions===void 0&&(n.actions=$o(a,i,ep));let r=gi({dict:i,key:"V",getArray:!0});n.fieldValue=this._decodeFormValue(r);let l=gi({dict:i,key:"DV",getArray:!0});if(n.defaultFieldValue=this._decodeFormValue(l),r===void 0&&s.xfaDatasets){let u=this._title.str;u&&(this._hasValueFromXFA=!0,n.fieldValue=r=s.xfaDatasets.getValue(u))}r===void 0&&n.defaultFieldValue!==null&&(n.fieldValue=n.defaultFieldValue),n.alternativeText=Wt(i.get("TU")||""),this.setDefaultAppearance(e),n.hasAppearance||=this._needAppearances&&n.fieldValue!==void 0&&n.fieldValue!==null;let o=gi({dict:i,key:"FT"});n.fieldType=o instanceof Z?o.name:null;let f=gi({dict:i,key:"DR"}),h=s.acroForm.get("DR"),c=this.appearance?.dict.get("Resources");this._fieldResources={localResources:f,acroFormResources:h,appearanceResources:c,mergedResources:_.merge({xref:a,dictArray:[f,c,h],mergeSubDicts:!0})},n.fieldFlags=gi({dict:i,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.password=this.hasFieldFlag(Ra.PASSWORD),n.readOnly=this.hasFieldFlag(Ra.READONLY),n.required=this.hasFieldFlag(Ra.REQUIRED),n.hidden=this._hasFlag(n.annotationFlags,De.HIDDEN)||this._hasFlag(n.annotationFlags,De.NOVIEW)}_decodeFormValue(e){if(Array.isArray(e)){let i=e.map(a=>this._decodeFormValue(a)).filter(a=>a!==null);return i.length>0?i:null}return e instanceof Z?e.name:typeof e=="string"?Wt(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!0}mustBeViewed(e,i){return i?this.viewable:super.mustBeViewed(e,i)&&!this._hasFlag(this.flags,De.NOVIEW)}getRotationMatrix(e){let i=e?.get(this.data.id)?.rotation;return i===void 0&&(i=this.rotation),i===0?wa:To(i,this.width,this.height)}getBorderAndBackgroundAppearances(e){let i=e?.get(this.data.id)?.rotation;if(i===void 0&&(i=this.rotation),!this.backgroundColor&&!this.borderColor)return"";let a=i===0||i===180?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`,s="";if(this.backgroundColor&&(s=`${Ja(this.backgroundColor,!0)} ${a} f `),this.borderColor){let n=this.borderStyle.width||1;s+=`${n} w ${Ja(this.borderColor,!1)} ${a} S `}return s}async getOperatorList(e,i,a,s){if(a&mi.ANNOTATIONS_FORMS&&!(this instanceof sm)&&!this.data.noHTML&&!this.data.hasOwnCanvas){let p=this._getOperatorListNoAppearance();return p.separateForm=!0,p}if(!this._hasText)return super.getOperatorList(e,i,a,s);let n=!!(this.data.hasOwnCanvas&&a&mi.DISPLAY);if(n&&(this.width===0||this.height===0))return this.data.hasOwnCanvas=!1,this._getOperatorListNoAppearance();let r=await this._getAppearance(e,i,a,s);if(this.appearance&&r===null)return super.getOperatorList(e,i,a,s);let l=new Da;if(!this._defaultAppearance||r===null)return{opList:l,separateForm:!1,separateCanvas:!1};let o=[1,0,0,1,0,0],f=[0,0,this.width,this.height],h=bc(this.data.rect,f,o),c=this._oc;c!==void 0&&l.addOp(T.beginMarkedContentProps,["OC",c]),l.addOp(T.beginAnnotation,[this.data.id,this.data.rect,h,this.getRotationMatrix(s),n]);let u=new qi(r);return await e.getOperatorList({stream:u,task:i,resources:this._fieldResources.mergedResources,operatorList:l}),l.addOp(T.endAnnotation,[]),c!==void 0&&l.addOp(T.endMarkedContent,[]),{opList:l,separateForm:!1,separateCanvas:n}}_getMKDict(e){let i=new _(null);return e&&i.set("R",e),i.setIfArray("BC",xi(this.borderColor)),i.setIfArray("BG",xi(this.backgroundColor)),i.size>0?i:null}amendSavedDict(e,i){}setValue(e,i,a,s){let{dict:n,ref:r}=rb(e,this.ref,a);if(!n)e.set("V",i);else if(!s.has(r)){let l=n.clone();return l.set("V",i),s.put(r,{data:l}),l}return null}async save(e,i,a,s){let n=a?.get(this.data.id),r=this._buildFlags(n?.noView,n?.noPrint),l=n?.value,o=n?.rotation;if(l===this.data.fieldValue||l===void 0){if(!this._hasValueFromXFA&&o===void 0&&r===void 0)return;l||=this.data.fieldValue}if(o===void 0&&!this._hasValueFromXFA&&Array.isArray(l)&&Array.isArray(this.data.fieldValue)&&jn(l,this.data.fieldValue)&&r===void 0)return;o===void 0&&(o=this.rotation);let f=null;if(!this._needAppearances&&(f=await this._getAppearance(e,i,mi.SAVE,a),f===null&&r===void 0))return;let h=!1;f?.needAppearances&&(h=!0,f=null);let{xref:c}=e,u=c.fetchIfRef(this.ref);if(!(u instanceof _))return;let p=new _(c);for(let[w,v]of u.getRawEntries())w!=="AP"&&p.set(w,v);if(r!==void 0&&(p.set("F",r),f===null&&!h)){let w=u.getRaw("AP");w&&p.set("AP",w)}let m={path:this.data.fieldName,value:l},g=this.setValue(p,Array.isArray(l)?l.map(ui):ui(l),c,s);this.amendSavedDict(a,g||p);let b=this._getMKDict(o);if(b&&p.set("MK",b),s.put(this.ref,{data:p,xfa:m,needAppearances:h}),f!==null){let w=c.getNewTemporaryRef(),v=new _(c);p.set("AP",v),v.set("N",w);let y=this._getSaveFieldResources(c),x=new _(c);x.setIfName("Subtype","Form"),x.set("Resources",y);let q=o%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];x.set("BBox",q);let j=new qi(f,x),A=this.getRotationMatrix(a);A!==wa&&x.set("Matrix",A),s.put(w,{data:j,xfa:null,needAppearances:!1})}p.set("M",`D:${Bs()}`)}async _getAppearance(e,i,a,s){if(this.data.password)return null;let n=s?.get(this.data.id),r,l;if(n&&(r=n.formattedValue||n.value,l=n.rotation),l===void 0&&r===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;let o=this.getBorderAndBackgroundAppearances(s);if(r===void 0&&(r=this.data.fieldValue,!r)||(Array.isArray(r)&&r.length===1&&(r=r[0]),Le(typeof r=="string","Expected `value` to be a string."),r=r.trimEnd(),this.data.combo&&(r=this.data.options.find(({exportValue:O})=>r===O)?.displayValue||r),r===""))return`/Tx BMC q ${o}Q EMC`;l===void 0&&(l=this.rotation);let f=-1,h;this.data.multiLine?(h=r.split(/\r\n?|\n/).map(O=>O.normalize("NFC")),f=h.length):h=[r.replace(/\r\n?|\n/,"").normalize("NFC")];let{width:c,height:u}=this;if((l===90||l===270)&&([c,u]=[u,c]),this._defaultAppearance||(this.data.defaultAppearanceData=nu(this._defaultAppearance="/Helvetica 0 Tf 0 g")),!this.data.defaultAppearanceData.fontSize&&(c<=4||u<=2))return`/Tx BMC q ${o}Q EMC`;let p=await yc._getFontData(e,i,this.data.defaultAppearanceData,this._fieldResources.mergedResources),m,g,b,w=[],v=!1;for(let O of h){let P=p.encodeString(O);P.length>1&&(v=!0),w.push(P.join(""))}if(v&&a&mi.SAVE)return{needAppearances:!0};if(v&&this._isOffscreenCanvasSupported){let O=this.data.comb?"monospace":"sans-serif",P=new Kh(e.xref,O),$=P.createFontResources(h.join("")),tt=$.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){let B=this._fieldResources.mergedResources.get("Font");for(let[G,Q]of tt.getRawEntries())B.set(G,Q)}else this._fieldResources.mergedResources.set("Font",tt);let K=P.fontName.name;p=await yc._getFontData(e,i,{fontName:K,fontSize:0},$);for(let B=0,G=w.length;B<G;B++)w[B]=rp(h[B]);let z=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=K,[m,g,b]=this._computeFontSize(u-2,c-4,r,p,f),this.data.defaultAppearanceData=z}else this._isOffscreenCanvasSupported||E("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[m,g,b]=this._computeFontSize(u-2,c-4,r,p,f);let y=p.descent;y=isNaN(y)?Zu*b:Math.max(Zu*b,Math.abs(y)*g);let x=Math.min(Math.floor((u-g)/2),1),q=this.data.textAlignment,{ascent:j,descent:A}=p;isNaN(j)||isNaN(A)||!j&&!A?(j=1,A=.35):A=Math.abs(A);let S=(u-(j+A)*g)/2+A*g;if(this.data.multiLine)return this._getMultilineAppearance(m,w,p,g,c,u,q,2,x,y,b,s);if(this.data.comb)return this._getCombAppearance(m,p,w[0],g,c,S,q,au(h[0]).dir==="rtl",s);let C=S;if(q===0||q>2)return`/Tx BMC q ${o}BT `+m+` 1 0 0 1 ${qe(2)} ${qe(C)} Tm (${lr(w[0])}) Tj ET Q EMC`;let M=this._renderText(w[0],p,g,c,q,{shift:0},2,C);return`/Tx BMC q ${o}BT `+m+` 1 0 0 1 0 0 Tm ${M} ET Q EMC`}static async _getFontData(e,i,a,s){let n=new Da,r={font:null,clone(){return this}},{fontName:l,fontSize:o}=a;return await e.handleSetFont(s,[l&&Z.get(l),o],null,n,i,r,null),r.font}_getTextWidth(e,i){return Math.sumPrecise(i.charsToGlyphs(e).map(a=>a.width))/1e3}_computeFontSize(e,i,a,s,n){let{fontSize:r}=this.data.defaultAppearanceData,l=(r||12)*1.35,o=Math.round(e/l);if(!r){let f=d(u=>Math.floor(u*100)/100,"roundWithTwoDigits");if(n===-1){let u=this._getTextWidth(a,s);r=f(Math.min(e/1.35,i/u)),o=1}else{let u=a.split(/\r\n?|\n/),p=[];for(let b of u){let w=s.encodeString(b).join(""),v=s.charsToGlyphs(w),y=s.getCharPositions(w);p.push({line:w,glyphs:v,positions:y})}let m=d(b=>{let w=0;for(let v of p){let y=this._splitLine(null,s,b,i,v);if(w+=y.length*b,w>e)return!0}return!1},"isTooBig");o=Math.max(o,n);let g=d(b=>f(e/b/1.35),"getFontSize");if(e>0&&m(g(o))){let b=o,w=2*o;for(;m(g(w));)b=w,w*=2;for(;w-b>1;){let v=Math.floor((b+w)/2);m(g(v))?b=v:w=v}o=w}r=g(o)}let{fontName:h,fontColor:c}=this.data.defaultAppearanceData;this._defaultAppearance=h5({fontSize:r,fontName:h,fontColor:c})}return[this._defaultAppearance,r,e/o]}_renderText(e,i,a,s,n,r,l,o){let f;f=n===1?(s-this._getTextWidth(e,i)*a)/2:n===2?s-this._getTextWidth(e,i)*a-l:l;let h=qe(f-r.shift);return r.shift=f,o=qe(o),`${h} ${o} Td (${lr(e)}) Tj`}_getSaveFieldResources(e){let{localResources:i,appearanceResources:a,acroFormResources:s}=this._fieldResources,n=this.data.defaultAppearanceData?.fontName;if(!n)return i||_.empty;for(let r of[i,a])if(r instanceof _){let l=r.get("Font");if(l instanceof _&&l.has(n))return r}if(s instanceof _){let r=s.get("Font");if(r instanceof _&&r.has(n)){let l=new _(e);l.set(n,r.getRaw(n));let o=new _(e);return o.set("Font",l),_.merge({xref:e,dictArray:[o,i],mergeSubDicts:!0})}}return i||_.empty}getFieldObject(){return null}},jy=class extends Ls{static{d(this,"TextWidgetAnnotation")}constructor(t){super(t);let{annotationGlobals:e,dict:i}=t;i.has("PMD")&&(this.flags|=De.HIDDEN,this.data.hidden=!0,E("Barcodes are not supported")),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0,typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let a=d(c=>Number.isInteger(c)&&c>=0&&c<=2?c:null,"getAlignment");this.data.textAlignment=a(gi({dict:i,key:"Q"}))??a(e.acroForm.get("Q"))??null;let s=gi({dict:i,key:"MaxLen"});(!Number.isInteger(s)||s<0)&&(s=0),this.data.maxLen=s,this.data.multiLine=this.hasFieldFlag(Ra.MULTILINE),this.data.comb=this.hasFieldFlag(Ra.COMB)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(Ra.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(Ra.DONOTSCROLL);let{actions:n}=this.data;if(!n)return;let r=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\(['"]?([^'"]+)['"]?\);$/,l=!1,o=n.get("Format"),f=n.get("Keystroke");(o?.length===1&&f?.length===1&&r.test(o[0])&&r.test(f[0])||o?.length===0&&f?.length===1&&r.test(f[0])||f?.length===0&&o?.length===1&&r.test(o[0]))&&(l=!0);let h=[];o&&h.push(...o),f&&h.push(...f),l&&(n.delete("Keystroke"),n.set("Format",h));for(let c of h){let u=c.match(r);if(!u)continue;let p=u[1]==="Date",m=u[2],g=parseInt(m,10);if(!isNaN(g)&&Math.floor(Math.log10(g))+1===u[2].length&&(m=(p?c5:u5)[g]??m),this.data.datetimeFormat=m,!l)break;if(p){/HH|MM|ss|h/.test(m)?(this.data.datetimeType="datetime-local",this.data.timeStep=/ss/.test(m)?1:60):this.data.datetimeType="date";break}this.data.datetimeType="time",this.data.timeStep=/ss/.test(m)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(t,e,i,a,s,n,r,l,o){let f=s/this.data.maxLen,h=this.getBorderAndBackgroundAppearances(o),c=e.getCharPositions(i).map(([w,v])=>{let y=i.substring(w,v);return{glyph:y,width:this._getTextWidth(y,e)*a}});l&&c.reverse();let u=f*c.length,p=0;r===1?p+=Math.floor((s-u)/(2*f))*f:r===2&&(p+=s-u);let m=[],g=0;for(let w=0,v=c.length;w<v;w++){let{glyph:y,width:x}=c[w],q=w===0?(f-x)/2:f+(g-x)/2;m.push(`${qe(q)} 0 Td (${lr(y)}) Tj`),g=x}let b=m.join(" ");return`/Tx BMC q ${h}BT `+t+` 1 0 0 1 ${qe(p)} ${qe(n)} Tm ${b} ET Q EMC`}_getMultilineAppearance(t,e,i,a,s,n,r,l,o,f,h,c){let u=[],p=s-2*l,m={shift:0};for(let w=0,v=e.length;w<v;w++){let y=e[w],x=this._splitLine(y,i,a,p);for(let q=0,j=x.length;q<j;q++){let A=x[q],S=w===0&&q===0?-o-(h-f):-h;u.push(this._renderText(A,i,a,s,r,m,l,S))}}let g=this.getBorderAndBackgroundAppearances(c),b=u.join(`
|
|
39
|
+
`);return`/Tx BMC q ${g}BT `+t+` 1 0 0 1 0 ${qe(n)} Tm ${b} ET Q EMC`}_splitLine(t,e,i,a,s={}){t=s.line||t;let n=s.glyphs||e.charsToGlyphs(t);if(n.length<=1)return[t];let r=s.positions||e.getCharPositions(t),l=i/1e3,o=[],f=-1,h=-1,c=-1,u=0,p=0;for(let m=0,g=n.length;m<g;m++){let[b,w]=r[m],v=n[m],y=v.width*l;v.unicode===" "?p+y>a?(o.push(t.substring(u,b)),u=b,p=y,f=-1,c=-1):(p+=y,f=b,h=w,c=m):p+y>a?f===-1?(o.push(t.substring(u,b)),u=b,p=y):(o.push(t.substring(u,h)),u=h,m=c+1,f=-1,p=0):p+=y}return u<t.length&&o.push(t.substring(u)),o}async extractTextContent(t,e,i){await super.extractTextContent(t,e,i);let a=this.data.textContent;if(!a)return;let s=a.join(`
|
|
40
|
+
`);if(s===this.data.fieldValue)return;let n=s.replaceAll(/([.*+?^${}()|[\]\\])|(\s+)/g,(r,l)=>l?`\\${l}`:"\\s+");RegExp(`^\\s*${n}\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split(`
|
|
41
|
+
`))}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.data.password,charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,datetimeFormat:this.data.datetimeFormat,hasDatetimeHTML:!!this.data.datetimeType,type:"text"}}},qy=class extends Ls{static{d(this,"ButtonWidgetAnnotation")}constructor(t){super(t),this.checkedAppearance=null,this.uncheckedAppearance=null;let e=this.hasFieldFlag(Ra.RADIO),i=this.hasFieldFlag(Ra.PUSHBUTTON);this.data.checkBox=!e&&!i,this.data.radioButton=e&&!i,this.data.pushButton=i,this.data.isTooltipOnly=!1,this.data.hasOwnCanvas=!0,this.data.noHTML=!1,this.data.checkBox?this._processCheckBox(t):this.data.radioButton?this._processRadioButton(t):this.data.pushButton?this._processPushButton(t):E("Invalid field flags for button widget annotation")}get _ownCanvasRequiresForms(){return this.data.checkBox||this.data.radioButton}#t(t,e,i,a,s,n){if(!n)return this._getOperatorListNoAppearance();let r=this.appearance,l=os(n.dict.getArray("Matrix"),wa);s&&n.dict.set("Matrix",this.getRotationMatrix(a)),this.appearance=n;let o=super.getOperatorList(t,e,i,a);return this.appearance=r,n.dict.set("Matrix",l),o}async getOperatorList(t,e,i,a){if(this.data.pushButton)return super.getOperatorList(t,e,i,!1,a);if(i&mi.DISPLAY&&i&mi.ANNOTATIONS_FORMS&&(this.data.checkBox||this.data.radioButton)){let r=d((f,h)=>{let c=f.fnArray.indexOf(T.beginAnnotation);c!==-1&&f.argsArray[c].push(h)},"setCanvasName"),l=await this.#t(t,e,i,a,null,this.checkedAppearance);r(l.opList,"checked");let o=await this.#t(t,e,i,a,null,this.uncheckedAppearance);return r(o.opList,"unchecked"),l.opList.addOpList(o.opList),l.separateForm||=o.separateForm,l.separateCanvas||=o.separateCanvas,l}let s=null,n=null;if(a){let r=a.get(this.data.id);s=r?r.value:null,n=r?r.rotation:null}return s===null&&this.appearance?super.getOperatorList(t,e,i,a):(s??=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue,this.#t(t,e,i,a,n,s?this.checkedAppearance:this.uncheckedAppearance))}async save(t,e,i,a){this.data.checkBox?this._saveCheckbox(t,e,i,a):this.data.radioButton&&this._saveRadioButton(t,e,i,a)}async _saveCheckbox(t,e,i,a){if(!i)return;let s=i.get(this.data.id),n=this._buildFlags(s?.noView,s?.noPrint),r=s?.rotation,l=s?.value;if(r===void 0&&n===void 0&&(l===void 0||this.data.fieldValue===this.data.exportValue===l))return;let o=t.xref.fetchIfRef(this.ref);if(!(o instanceof _))return;o=o.clone(),r===void 0&&(r=this.rotation),l===void 0&&(l=this.data.fieldValue===this.data.exportValue);let f={path:this.data.fieldName,value:l?this.data.exportValue:""},h=Z.get(l?this._onStateName:"Off");this.setValue(o,h,t.xref,a),o.set("AS",h),o.set("M",`D:${Bs()}`),n!==void 0&&o.set("F",n);let c=this._getMKDict(r);c&&o.set("MK",c),a.put(this.ref,{data:o,xfa:f,needAppearances:!1})}async _saveRadioButton(t,e,i,a){if(!i)return;let s=i.get(this.data.id),n=this._buildFlags(s?.noView,s?.noPrint),r=s?.rotation,l=s?.value;if(r===void 0&&n===void 0&&(l===void 0||this.data.fieldValue===this.data.buttonValue===l))return;let o=t.xref.fetchIfRef(this.ref);if(!(o instanceof _))return;o=o.clone(),l===void 0&&(l=this.data.fieldValue===this.data.buttonValue),r===void 0&&(r=this.rotation);let f={path:this.data.fieldName,value:l?this.data.buttonValue:""},h=Z.get(l?this._onStateName:"Off");l&&this.setValue(o,h,t.xref,a),o.set("AS",h),o.set("M",`D:${Bs()}`),n!==void 0&&o.set("F",n);let c=this._getMKDict(r);c&&o.set("MK",c),a.put(this.ref,{data:o,xfa:f,needAppearances:!1})}_getDefaultCheckedAppearance(t,e){let{width:i,height:a}=this,s=[0,0,i,a],n=Math.min(i,a)*.8,r,l;e==="check"?(r={width:.755*n,height:.705*n},l="3"):e==="disc"?(r={width:.791*n,height:.705*n},l="l"):te(`_getDefaultCheckedAppearance - unsupported type: ${e}`);let o=`q BT /PdfJsZaDb ${n} Tf 0 g ${qe((i-r.width)/2)} ${qe((a-r.height)/2)} Td (${l}) Tj ET Q`,f=new _(t.xref);f.set("FormType",1),f.setIfName("Subtype","Form"),f.setIfName("Type","XObject"),f.set("BBox",s),f.set("Matrix",[1,0,0,1,0,0]),f.set("Length",o.length);let h=new _(t.xref),c=new _(t.xref);c.set("PdfJsZaDb",this.fallbackFontDict),h.set("Font",c),f.set("Resources",h),this.checkedAppearance=new qi(o,f),this._streams.push(this.checkedAppearance)}_getOnStateName(t){let e=t.get("AP");if(!(e instanceof _))return null;let i=e.get("N");if(!(i instanceof _))return null;for(let a of i.getKeys())if(a!=="Off")return a;return null}_getExportValueForOptIndex(t,e,i){if(Number.isInteger(t)&&t>=0&&t<e.length){let a=this._decodeFormValue(i.fetchIfRef(e[t]));if(typeof a=="string")return a}return null}_getOptInfo(t,e,i,a){if(!Array.isArray(i))return null;let s=new Map,n=null,r=t.get("Parent"),l=r instanceof _?r.get("Kids"):null;if(Array.isArray(l))for(let o=0,f=Math.min(l.length,i.length);o<f;o++){let h=l[o];h instanceof it&&rr(h,this.ref)&&(n=o);let c=a.fetchIfRef(h);if(!(c instanceof _))continue;c===t&&(n=o);let u=this._getOnStateName(c);typeof u=="string"&&!s.has(u)&&s.set(u,o)}else i.length===1&&typeof e=="string"&&(n=0,s.set(e,0));return{currentIndex:n,opt:i,stateToIndex:s}}_getExportValue(t,e,i){if(!e||typeof t!="string"||t==="Off")return t;if(t===this._onStateName){let s=this._getExportValueForOptIndex(e.currentIndex,e.opt,i);if(s!==null)return s}if(e.stateToIndex.has(t)){let s=this._getExportValueForOptIndex(e.stateToIndex.get(t),e.opt,i);if(s!==null)return s}let a=parseInt(t,10);return Number.isInteger(a)&&String(a)===t&&this._getExportValueForOptIndex(a,e.opt,i)||t}_processCheckBox(t){let e=t.dict.get("AP"),i=e instanceof _?e.get("N"):null;i instanceof _||(i=null);let a=this._decodeFormValue(t.dict.get("AS"));typeof a=="string"&&(this.data.fieldValue=a);let s=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",n=i?[...i.getKeys()]:[];if(n.length===0)n.push("Off",s);else if(n.length===1)n[0]==="Off"?n.push(s):n.unshift("Off");else if(n.includes(s))n.length=0,n.push("Off",s);else{let c=n.find(u=>u!=="Off");n.length=0,n.push("Off",c)}let r=n[1];this._onStateName=r;let l=gi({dict:t.dict,key:"Opt"}),o=this._getOptInfo(t.dict,r,l,t.xref);this.data.exportValue=this._getExportValue(r,o,t.xref),!n.includes(this.data.fieldValue)&&this.data.fieldValue!==this.data.exportValue&&(this.data.fieldValue="Off"),this.data.fieldValue=this._getExportValue(this.data.fieldValue,o,t.xref),this.data.defaultFieldValue=this._getExportValue(this.data.defaultFieldValue,o,t.xref);let f=i?.get(r);this.checkedAppearance=f instanceof Bt?f:null;let h=i?.get("Off");this.uncheckedAppearance=h instanceof Bt?h:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processRadioButton(t){this.data.buttonValue=null;let e=t.dict.get("Parent");if(e instanceof _){this.parent=t.dict.getRaw("Parent");let f=e.get("V");f instanceof Z&&(this.data.fieldValue=this._decodeFormValue(f))}let i=t.dict.get("AP");if(!(i instanceof _))return;let a=i.get("N");if(!(a instanceof _))return;let s=null;for(let f of a.getKeys())if(f!=="Off"){s=f;break}this._onStateName=s;let n=gi({dict:t.dict,key:"Opt"}),r=this._getOptInfo(t.dict,s,n,t.xref);this.data.buttonValue=this._getExportValue(s,r,t.xref),this.data.fieldValue=this._getExportValue(this.data.fieldValue,r,t.xref),this.data.defaultFieldValue=this._getExportValue(this.data.defaultFieldValue,r,t.xref);let l=a.get(s);this.checkedAppearance=l instanceof Bt?l:null;let o=a.get("Off");this.uncheckedAppearance=o instanceof Bt?o:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processPushButton(t){let{dict:e,annotationGlobals:i}=t;!e.has("A")&&!e.has("AA")&&!this.data.alternativeText?E("Push buttons without action dictionaries are not supported"):(this.data.isTooltipOnly=!e.has("A")&&!e.has("AA"),lu.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:i.baseUrl,docAttachments:i.attachments}))}getFieldObject(){let t="button",e;return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){let t=new _;return t.setIfName("BaseFont","ZapfDingbats"),t.setIfName("Type","FallbackType"),t.setIfName("Subtype","FallbackType"),t.setIfName("Encoding","ZapfDingbatsEncoding"),ht(this,"fallbackFontDict",t)}},xy=class extends Ls{static{d(this,"ChoiceWidgetAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;this.indices=e.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];let a=gi({dict:e,key:"Opt"});if(Array.isArray(a))for(let s=0,n=a.length;s<n;s++){let r=i.fetchIfRef(a[s]),l=Array.isArray(r);this.data.options[s]={exportValue:this._decodeFormValue(l?i.fetchIfRef(r[0]):r),displayValue:this._decodeFormValue(l?i.fetchIfRef(r[1]):r)}}if(!this.hasIndices)typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];else{this.data.fieldValue=[];let s=this.data.options.length;for(let n of this.indices)Number.isInteger(n)&&n>=0&&n<s&&this.data.fieldValue.push(this.data.options[n].exportValue)}this.data.options.length===0&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map(s=>({exportValue:s,displayValue:s}))),this.data.combo=this.hasFieldFlag(Ra.COMBO),this.data.multiSelect=this.hasFieldFlag(Ra.MULTISELECT),this._hasText=!0}getFieldObject(){let t=this.data.combo?"combobox":"listbox",e=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:e,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}amendSavedDict(t,e){if(!this.hasIndices)return;let i=t?.get(this.data.id)?.value;Array.isArray(i)||(i=[i]);let a=[],{options:s}=this.data;for(let n=0,r=0,l=s.length;n<l;n++)s[n].exportValue===i[r]&&(a.push(n),r+=1);e.set("I",a)}async _getAppearance(t,e,i,a){if(this.data.combo)return super._getAppearance(t,e,i,a);let s,n,r=a?.get(this.data.id);if(r&&(n=r.rotation,s=r.value),n===void 0&&s===void 0&&!this._needAppearances)return null;s===void 0?s=this.data.fieldValue:Array.isArray(s)||(s=[s]);let{width:l,height:o}=this;(n===90||n===270)&&([l,o]=[o,l]);let f=this.data.options.length,h=[];for(let q=0;q<f;q++){let{exportValue:j}=this.data.options[q];s.includes(j)&&h.push(q)}this._defaultAppearance||(this.data.defaultAppearanceData=nu(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let c=await Ls._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources),u,{fontSize:p}=this.data.defaultAppearanceData;if(p)u=this._defaultAppearance;else{let q=(o-1)/f,j=-1,A;for(let{displayValue:S}of this.data.options){let C=this._getTextWidth(S,c);C>j&&(j=C,A=S)}[u,p]=this._computeFontSize(q,l-4,A,c,-1)}let m=p*1.35,g=(m-p)/2,b=Math.floor(o/m),w=0;if(h.length>0){let q=Math.min(...h);w=Fe(Math.max(...h)-b+1,0,q)}let v=Math.min(w+b+1,f),y=["/Tx BMC q",`1 1 ${l} ${o} re W n`];if(h.length){y.push("0.600006 0.756866 0.854904 rg");for(let q of h)w<=q&&q<v&&y.push(`1 ${o-(q-w+1)*m} ${l} ${m} re f`)}y.push("BT",u,`1 0 0 1 0 ${o} Tm`);let x={shift:0};for(let q=w;q<v;q++){let{displayValue:j}=this.data.options[q],A=q===w?g:0;y.push(this._renderText(j,c,p,l,0,x,2,-m+A))}return y.push("ET Q EMC"),y.join(`
|
|
42
|
+
`)}},sm=class extends Ls{static{d(this,"SignatureWidgetAnnotation")}_hasValueFromXFA=!1;constructor(t){super(t),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!this.data.hasOwnCanvas}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}},Ay=class extends Yi{static{d(this,"TextAnnotation")}constructor(t){super(t),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:e}=t;this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=e.has("Name")?e.get("Name").name:"Note"),e.has("State")?(this.data.state=e.get("State")||null,this.data.stateModel=e.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}},Sy=class extends gr{static{d(this,"LinkAnnotation")}constructor(t){super(t);let{dict:e,annotationGlobals:i}=t;this.data.noHTML=!1;let a=Ml(e,this.rectangle);a&&(this.data.quadPoints=a),this.data.borderColor||=this.data.color,lu.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:i.baseUrl,docAttachments:i.attachments})}get overlaysTextContent(){return!0}},xu=class extends gr{static{d(this,"PopupAnnotation")}constructor(t){super(t);let{dict:e}=t;this.data.noHTML=!1,(this.width===0||this.height===0)&&(this.data.rect=null);let i=e.get("Parent");if(!i)E("Popup annotation has a missing or invalid parent annotation.");else{if(this.data.parentRect=Ya(i.getArray("Rect"),null),this.data.creationDate=i.get("CreationDate")||"",Ht(i.get("RT"),uh.GROUP)&&(i=i.get("IRT")),i.has("M")?(this.setModificationDate(i.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,i.has("C")?(this.setColor(i.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){let a=i.get("F");this._isViewable(a)&&this.setFlags(a)}this.setTitle(i.get("T")),this.data.titleObj=this._title,this.setContents(i.get("Contents")),this.data.contentsObj=this._contents,i.has("RC")&&(this.data.richText=qu.getRichTextAsHtml(i.get("RC"))),this.data.open=!!e.get("Open")}}static createNewDict(t,e,i){let{oldAnnotation:a,rect:s,parent:n}=t,r=a||new _(e);return r.setIfNotExists("Type",Z.get("Annot")),r.setIfNotExists("Subtype",Z.get("Popup")),r.setIfNotExists("Open",!1),r.setIfArray("Rect",s),r.set("Parent",n),r}static async createNewAppearanceStream(t,e,i){return null}},Zf=class extends Yi{static{d(this,"FreeTextAnnotation")}constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1;let{annotationGlobals:e,xref:i}=t;if(this.setDefaultAppearance(t),this._hasAppearance=!!this.appearance,this._hasAppearance){let{fontColor:a,fontSize:s}=f5(this.appearance,i,e.globalColorSpaceCache);this.data.defaultAppearanceData.fontColor=a,this.data.defaultAppearanceData.fontSize=s||10}else{this.data.defaultAppearanceData.fontSize||=10;let{fontColor:a,fontSize:s}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\r\n?|\n/).map(o=>o.trimEnd());let{coords:n,bbox:r,matrix:l}=Kh.getFirstPositionInfo(this.rectangle,this.rotation,s);this.data.textPosition=this._transformPoint(n,r,l)}if(this._isOffscreenCanvasSupported){let n=t.dict.get("CA"),r=new Kh(i,"sans-serif");this.appearance=r.createAppearance(this._contents.str,this.rectangle,this.rotation,s,a,n),this._streams.push(this.appearance)}else E("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return this._hasAppearance}static createNewDict(t,e,{apRef:i,ap:a}){let{color:s,date:n,fontSize:r,oldAnnotation:l,rect:o,rotation:f,user:h,value:c}=t,u=l||new _(e);u.setIfNotExists("Type",Z.get("Annot")),u.setIfNotExists("Subtype",Z.get("FreeText")),u.set(l?"M":"CreationDate",`D:${Bs(n)}`),l&&u.delete("RC"),u.setIfArray("Rect",o);let p=`/Helv ${r} Tf ${Ja(s,!0)}`;if(u.set("DA",p),u.setIfDefined("Contents",ui(c)),u.setIfNotExists("F",4),u.setIfNotExists("Border",[0,0,0]),u.setIfNumber("Rotate",f),u.setIfDefined("T",ui(h)),i||a){let m=new _(e);u.set("AP",m),m.set("N",i||a)}return u}static getPrintData({color:t,fontSize:e,rect:i,rotation:a,value:s}){throw Error("Not implemented: getPrintData")}static async createNewAppearanceStream(t,e,i){let{baseFontRef:a,evaluator:s,task:n}=i,{color:r,fontSize:l,rect:o,rotation:f,value:h}=t;if(!r)return null;let c=new _(e),u=new _(e);if(a)u.set("Helv",a);else{let It=new _(e);It.setIfName("BaseFont","Helvetica"),It.setIfName("Type","Font"),It.setIfName("Subtype","Type1"),It.setIfName("Encoding","WinAnsiEncoding"),u.set("Helv",It)}c.set("Font",u);let p=await Ls._getFontData(s,n,{fontName:"Helv",fontSize:l},c),[m,g,b,w]=o,v=b-m,y=w-g;f%180!=0&&([v,y]=[y,v]);let x=h.split(`
|
|
43
|
+
`),q=l/1e3,j=-1/0,A=[];for(let It of x){let Lt=p.encodeString(It);if(Lt.length>1)return null;It=Lt.join(""),A.push(It);let Pt=0,X=p.charsToGlyphs(It);for(let et of X)Pt+=et.width*q;j=Math.max(j,Pt)}let S=j>v?v/j:1,C=1,M=1.35*l,O=1*l,P=M*x.length;P>y&&(C=y/P);let $=l*Math.min(S,C),tt,K,z;switch(f){case 0:z=[1,0,0,1],K=[o[0],o[1],v,y],tt=[o[0],o[3]-O];break;case 90:z=[0,1,-1,0],K=[o[1],-o[2],v,y],tt=[o[1],-o[0]-O];break;case 180:z=[-1,0,0,-1],K=[-o[2],-o[3],v,y],tt=[-o[2],-o[1]-O];break;case 270:z=[0,-1,1,0],K=[-o[3],o[0],v,y],tt=[-o[3],o[2]-O]}let B=["q",`${z.join(" ")} 0 0 cm`,`${K.join(" ")} re W n`,"BT",`${Ja(r,!0)}`,`0 Tc /Helv ${qe($)} Tf`];B.push(`${tt.join(" ")} Td (${lr(A[0])}) Tj`);let G=qe(M);for(let It=1,Lt=A.length;It<Lt;It++){let Pt=A[It];B.push(`0 -${G} Td (${lr(Pt)}) Tj`)}B.push("ET","Q");let Q=B.join(`
|
|
44
|
+
`),yt=new _(e);return yt.set("FormType",1),yt.setIfName("Subtype","Form"),yt.setIfName("Type","XObject"),yt.set("BBox",o),yt.set("Resources",c),yt.set("Matrix",[1,0,0,1,-o[0],-o[1]]),new qi(Q,yt)}},Cy=class extends Yi{static{d(this,"LineAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let a=ul(e.getArray("L"),[0,0,0,0]);if(this.data.lineCoordinates=oe.normalizeRect(a),this.setLineEndings(e.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){let s=xi(this.color,[0,0,0]),n=e.get("CA"),r=xi(vn(e.getArray("IC"),null)),l=r?n:null,o=this.borderStyle.width||1,f=2*o,h=[this.data.lineCoordinates[0]-f,this.data.lineCoordinates[1]-f,this.data.lineCoordinates[2]+f,this.data.lineCoordinates[3]+f];oe.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:i,extra:`${o} w`,strokeColor:s,fillColor:r,strokeAlpha:n,fillAlpha:l,pointsCallback:d((c,u)=>(c.push(`${a[0]} ${a[1]} m`,`${a[2]} ${a[3]} l`,"S"),[u[0]-o,u[7]-o,u[2]+o,u[3]+o]),"pointsCallback")})}}},Iy=class extends Yi{static{d(this,"SquareAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;if(this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,!this.appearance){let a=xi(this.color,[0,0,0]),s=e.get("CA"),n=xi(vn(e.getArray("IC"),null)),r=n?s:null;if(this.borderStyle.width===0&&!n)return;this._setDefaultAppearance({xref:i,extra:`${this.borderStyle.width} w`,strokeColor:a,fillColor:n,strokeAlpha:s,fillAlpha:r,pointsCallback:d((l,o)=>{let f=o[4]+this.borderStyle.width/2,h=o[5]+this.borderStyle.width/2,c=o[6]-o[4]-this.borderStyle.width,u=o[3]-o[7]-this.borderStyle.width;return l.push(`${f} ${h} ${c} ${u} re`),n?l.push("B"):l.push("S"),[o[0],o[7],o[2],o[3]]},"pointsCallback")})}}},Ty=class extends Yi{static{d(this,"CircleAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;if(!this.appearance){let a=xi(this.color,[0,0,0]),s=e.get("CA"),n=xi(vn(e.getArray("IC"),null)),r=n?s:null;if(this.borderStyle.width===0&&!n)return;let l=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:i,extra:`${this.borderStyle.width} w`,strokeColor:a,fillColor:n,strokeAlpha:s,fillAlpha:r,pointsCallback:d((o,f)=>{let h=f[0]+this.borderStyle.width/2,c=f[1]-this.borderStyle.width/2,u=f[6]-this.borderStyle.width/2,p=f[7]+this.borderStyle.width/2,m=h+(u-h)/2,g=c+(p-c)/2,b=(u-h)/2*l,w=(p-c)/2*l;return o.push(`${m} ${p} m`,`${m+b} ${p} ${u} ${g+w} ${u} ${g} c`,`${u} ${g-w} ${m+b} ${c} ${m} ${c} c`,`${m-b} ${c} ${h} ${g-w} ${h} ${g} c`,`${h} ${g+w} ${m-b} ${p} ${m} ${p} c`,"h"),n?o.push("B"):o.push("S"),[f[0],f[7],f[2],f[3]]},"pointsCallback")})}}},nm=class extends Yi{static{d(this,"PolylineAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.vertices=null,this instanceof rm||(this.setLineEndings(e.getArray("LE")),this.data.lineEndings=this.lineEndings);let a=e.getArray("Vertices");if(!Ne(a,null))return;let s=this.data.vertices=Float32Array.from(a);if(!this.appearance){let n=xi(this.color,[0,0,0]),r=e.get("CA"),l=vn(e.getArray("IC"),null);l&&=xi(l);let o;o=l?this.color?l.every((u,p)=>u===n[p])?"f":"B":"f":"S";let f=this.borderStyle.width||1,h=2*f,c=Ds.slice();for(let u=0,p=s.length;u<p;u+=2)oe.rectBoundingBox(s[u]-h,s[u+1]-h,s[u]+h,s[u+1]+h,c);oe.intersect(this.rectangle,c)||(this.rectangle=c),this._setDefaultAppearance({xref:i,extra:`${f} w`,strokeColor:n,strokeAlpha:r,fillColor:l,fillAlpha:l?r:null,pointsCallback:d((u,p)=>{for(let m=0,g=s.length;m<g;m+=2)u.push(`${s[m]} ${s[m+1]} ${m===0?"m":"l"}`);return u.push(o),[p[0],p[7],p[2],p[3]]},"pointsCallback")})}}},rm=class extends nm{static{d(this,"PolygonAnnotation")}},My=class extends Yi{static{d(this,"CaretAnnotation")}},Rr=class extends Yi{static{d(this,"InkAnnotation")}constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:e,xref:i}=t;this.data.inkLists=[],this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=e.get("CA")||1;let a=e.getArray("InkList");if(Array.isArray(a)){for(let s of a){if(!Array.isArray(s))continue;let n=new Float32Array(s.length);this.data.inkLists.push(n);for(let r=0,l=s.length;r<l;r+=2){let o=i.fetchIfRef(s[r]),f=i.fetchIfRef(s[r+1]);typeof o=="number"&&typeof f=="number"&&(n[r]=o,n[r+1]=f)}}if(!this.appearance){let s=xi(this.color,[0,0,0]),n=e.get("CA"),r=this.borderStyle.width||1,l=2*r,o=Ds.slice();for(let f of this.data.inkLists)for(let h=0,c=f.length;h<c;h+=2)oe.rectBoundingBox(f[h]-l,f[h+1]-l,f[h]+l,f[h+1]+l,o);oe.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:i,extra:`${r} w`,strokeColor:s,strokeAlpha:n,pointsCallback:d((f,h)=>{for(let c of this.data.inkLists){for(let u=0,p=c.length;u<p;u+=2)f.push(`${c[u]} ${c[u+1]} ${u===0?"m":"l"}`);f.push("S")}return[h[0],h[7],h[2],h[3]]},"pointsCallback")})}}}static createNewDict(t,e,{apRef:i,ap:a}){let{oldAnnotation:s,color:n,date:r,opacity:l,paths:o,outlines:f,rect:h,rotation:c,thickness:u,user:p}=t,m=s||new _(e);if(m.setIfNotExists("Type",Z.get("Annot")),m.setIfNotExists("Subtype",Z.get("Ink")),m.set(s?"M":"CreationDate",`D:${Bs(r)}`),m.setIfArray("Rect",h),m.setIfArray("InkList",f?.points||o?.points),m.setIfNotExists("F",4),m.setIfNumber("Rotate",c),m.setIfDefined("T",ui(p)),f&&m.setIfName("IT","InkHighlight"),u>0){let g=new _(e);m.set("BS",g),g.set("W",u)}if(m.setIfArray("C",xi(n)),m.setIfNumber("CA",l),a||i){let g=new _(e);m.set("AP",g),g.set("N",i||a)}return m}static async createNewAppearanceStream(t,e,i){if(t.outlines)return this.createNewAppearanceStreamForHighlight(t,e,i);let{color:a,rect:s,paths:n,thickness:r,opacity:l}=t;if(!a)return null;let o=[`${r} w 1 J 1 j`,`${Ja(a,!1)}`];l!==1&&o.push("/R0 gs");for(let c of n.lines)wc(c,o,!0);o.push("S");let f=o.join(`
|
|
45
|
+
`),h=new _(e);if(h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",s),h.set("Length",f.length),l!==1){let c=new _(e),u=new _(e),p=new _(e);p.set("CA",l),p.setIfName("Type","ExtGState"),u.set("R0",p),c.set("ExtGState",u),h.set("Resources",c)}return new qi(f,h)}static async createNewAppearanceStreamForHighlight(t,e,i){let{color:a,rect:s,outlines:{outline:n},opacity:r}=t;if(!a)return null;let l=[`${Ja(a,!0)}`,"/R0 gs"];wc(n,l),l.push("h f");let o=l.join(`
|
|
46
|
+
`),f=new _(e);f.set("FormType",1),f.setIfName("Subtype","Form"),f.setIfName("Type","XObject"),f.set("BBox",s),f.set("Length",o.length);let h=new _(e),c=new _(e);h.set("ExtGState",c),f.set("Resources",h);let u=new _(e);return c.set("R0",u),u.setIfName("BM","Multiply"),r!==1&&(u.set("ca",r),u.setIfName("Type","ExtGState")),new qi(o,f)}},th=class extends Yi{static{d(this,"HighlightAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;if(this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=e.get("CA")||1,this.data.quadPoints=Ml(e,null)){if(!this.appearance){let a=xi(this.color,[1,1,0]),s=e.get("CA");this._setDefaultAppearance({xref:i,fillColor:a,blendMode:"Multiply",fillAlpha:s,pointsCallback:d((n,r)=>(n.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,`${r[6]} ${r[7]} l`,`${r[4]} ${r[5]} l`,"f"),[r[0],r[7],r[2],r[3]]),"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(t,e,{apRef:i,ap:a}){let{color:s,date:n,oldAnnotation:r,opacity:l,rect:o,rotation:f,user:h,quadPoints:c}=t,u=r||new _(e);if(u.setIfNotExists("Type",Z.get("Annot")),u.setIfNotExists("Subtype",Z.get("Highlight")),u.set(r?"M":"CreationDate",`D:${Bs(n)}`),u.setIfArray("Rect",o),u.setIfNotExists("F",4),u.setIfNotExists("Border",[0,0,0]),u.setIfNumber("Rotate",f),u.setIfArray("QuadPoints",c),u.setIfArray("C",xi(s)),u.setIfNumber("CA",l),u.setIfDefined("T",ui(h)),i||a){let p=new _(e);u.set("AP",p),p.set("N",i||a)}return u}static async createNewAppearanceStream(t,e,i){let{color:a,rect:s,outlines:n,opacity:r}=t;if(!a)return null;let l=[`${Ja(a,!0)}`,"/R0 gs"],o=[];for(let m of n){o.length=0,o.push(`${qe(m[0])} ${qe(m[1])} m`);for(let g=2,b=m.length;g<b;g+=2)o.push(`${qe(m[g])} ${qe(m[g+1])} l`);o.push("h"),l.push(o.join(`
|
|
47
|
+
`))}l.push("f*");let f=l.join(`
|
|
48
|
+
`),h=new _(e);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",s),h.set("Length",f.length);let c=new _(e),u=new _(e);c.set("ExtGState",u),h.set("Resources",c);let p=new _(e);return u.set("R0",p),p.setIfName("BM","Multiply"),r!==1&&(p.set("ca",r),p.setIfName("Type","ExtGState")),new qi(f,h)}},_y=class extends Yi{static{d(this,"UnderlineAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;if(this.data.quadPoints=Ml(e,null)){if(!this.appearance){let a=xi(this.color,[0,0,0]),s=e.get("CA");this._setDefaultAppearance({xref:i,extra:"[] 0 d 0.571 w",strokeColor:a,strokeAlpha:s,pointsCallback:d((n,r)=>(n.push(`${r[4]} ${r[5]+1.3} m`,`${r[6]} ${r[7]+1.3} l`,"S"),[r[0],r[7],r[2],r[3]]),"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},Ey=class extends Yi{static{d(this,"SquigglyAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;if(this.data.quadPoints=Ml(e,null)){if(!this.appearance){let a=xi(this.color,[0,0,0]),s=e.get("CA");this._setDefaultAppearance({xref:i,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:s,pointsCallback:d((n,r)=>{let l=(r[1]-r[5])/6,o=l,f=r[4],h=r[5],c=r[6];n.push(`${f} ${h+o} m`);do f+=2,o=o===0?l:0,n.push(`${f} ${h+o} l`);while(f<c);return n.push("S"),[r[4],h-2*l,c,h+2*l]},"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},Fy=class extends Yi{static{d(this,"StrikeOutAnnotation")}constructor(t){super(t);let{dict:e,xref:i}=t;if(this.data.quadPoints=Ml(e,null)){if(!this.appearance){let a=xi(this.color,[0,0,0]),s=e.get("CA");this._setDefaultAppearance({xref:i,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:s,pointsCallback:d((n,r)=>(n.push(`${(r[0]+r[4])/2} ${(r[1]+r[5])/2} m`,`${(r[2]+r[6])/2} ${(r[3]+r[7])/2} l`,"S"),[r[0],r[7],r[2],r[3]]),"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},Dr=class extends Yi{static{d(this,"StampAnnotation")}#t=null;constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1}mustBeViewedWhenEditing(t,e=null){return t?(this.data.isEditable&&(this.#t??=this.data.hasOwnCanvas,this.data.hasOwnCanvas=!0),!0):(this.#t!==null&&(this.data.hasOwnCanvas=this.#t,this.#t=null),!e?.has(this.data.id))}static createNewDict(t,e,{apRef:i,ap:a}){let{date:s,oldAnnotation:n,rect:r,rotation:l,user:o}=t,f=n||new _(e);if(f.setIfNotExists("Type",Z.get("Annot")),f.setIfNotExists("Subtype",Z.get("Stamp")),f.set(n?"M":"CreationDate",`D:${Bs(s)}`),f.setIfArray("Rect",r),f.setIfNotExists("F",4),f.setIfNotExists("Border",[0,0,0]),f.setIfNumber("Rotate",l),f.setIfDefined("T",ui(o)),i||a){let h=new _(e);f.set("AP",h),h.set("N",i||a)}return f}static async#e(t,e){let{areContours:i,color:a,rect:s,lines:n,thickness:r}=t;if(!a)return null;let l=[`${r} w 1 J 1 j`,`${Ja(a,i)}`];for(let h of n)wc(h,l,!0);l.push(i?"F":"S");let o=l.join(`
|
|
49
|
+
`),f=new _(e);return f.set("FormType",1),f.setIfName("Subtype","Form"),f.setIfName("Type","XObject"),f.set("BBox",s),f.set("Length",o.length),new qi(o,f)}static async createNewAppearanceStream(t,e,i){if(t.oldAnnotation)return null;if(t.isSignature)return this.#e(t,e);let{rotation:a}=t,{imageRef:s,width:n,height:r}=i.image,l=new _(e),o=new _(e);l.set("XObject",o),o.set("Im0",s);let f=`q ${n} 0 0 ${r} 0 0 cm /Im0 Do Q`,h=new _(e);if(h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",[0,0,n,r]),h.set("Resources",l),a){let c=To(a,n,r);h.set("Matrix",c)}return new qi(f,h)}},Ry=class extends Yi{static{d(this,"FileAttachmentAnnotation")}constructor(t){super(t);let{annotationGlobals:e,dict:i}=t,a=i.get("FS");this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.fileId=this._getAttachmentId(a,i.getRaw("FS"),e),this.data.file=new la(a).serializable;let s=i.get("Name");this.data.name=s instanceof Z?Wt(s.name):"PushPin";let n=i.get("ca");this.data.fillAlpha=typeof n=="number"&&n>=0&&n<=1?n:null}},jl=class qo extends gr{static{d(this,"MediaAnnotation")}static#t=/^(?:video|audio)\/[a-z0-9][\w!#$&^.+-]{0,126}$/i;static#e=/^(?:video|audio)\/[a-z0-9][\w!#$&^.+-]{0,126}(?: *; *[a-z0-9][\w!#$&^.+-]{0,126} *= *(?:[-!#$%&'*+.^\x60{|}~\w]+|"(?:[\x20\x21\x23-\x5b\x5d-\x7e]|\\[\x20-\x7e])*"))* *$/i;constructor(e){super(e),this.data.noHTML=!0}_setMediaData({assetRef:e,assetDict:i,filename:a,contentType:s,wrapSound:n=!1},r){this.data.noHTML=!1,this.data.richMedia={fileId:this._getAttachmentId(i,e,r,n),filename:a,contentType:s}}static _getContentType(e,i,a=null,s=!1){if(typeof a=="string"&&(s?qo.#t:qo.#e).test(a))return a;let n=la.pickPlatformItem(e.get("EF")),r=n instanceof Bt?n.dict?.get("Subtype"):null;if(r instanceof Z&&qo.#t.test(r.name))return r.name;let l=i.lastIndexOf(".")+1;switch(l>0&&i.substring(l).toLowerCase()){case"mp4":case"m4v":return"video/mp4";case"webm":return"video/webm";case"ogv":return"video/ogg";case"mov":return"video/quicktime";case"mp3":return"audio/mpeg";case"m4a":return"audio/mp4";case"wav":return"audio/wav";case"oga":case"ogg":return"audio/ogg";default:return null}}},Dy=class lm extends jl{static{d(this,"RichMediaAnnotation")}constructor(e){super(e);let{dict:i,xref:a,annotationGlobals:s}=e,n=i.get("RichMediaContent");if(!(n instanceof _))return;let r=lm.#t(n,a);r?this._setMediaData(r,s):E("RichMedia annotation has no playable asset.")}static#t(e,i){let a=e.get("Configurations");if(!Array.isArray(a))return null;for(let s of a){let n=i.fetchIfRef(s);if(!(n instanceof _))continue;let r=n.get("Instances");if(Array.isArray(r))for(let l of r){let o=i.fetchIfRef(l);if(!(o instanceof _)||Ht(o.get("Subtype"),"Flash"))continue;let f=o.getRaw("Asset"),h=i.fetchIfRef(f);if(!(h instanceof _)||!la.hasEmbeddedFile(h))continue;let{filename:c}=new la(h).serializable,u=jl._getContentType(h,c);if(u)return{assetRef:f instanceof it?f:null,assetDict:h,filename:c,contentType:u}}}return null}},Py=class om extends jl{static{d(this,"ScreenAnnotation")}constructor(e){super(e);let{dict:i,xref:a,annotationGlobals:s}=e,n=om.#t(i,a);n&&this._setMediaData(n,s)}static#t(e,i){for(let a of this.#e(e)){let s=this.#a(a.get("R"),i,new we);if(s)return s}return null}static*#e(e){let i=e.get("A");this.#i(i)&&(yield i);let a=e.get("AA");if(a instanceof _)for(let[,s]of a)this.#i(s)&&(yield s)}static#i(e){if(!(e instanceof _)||!Ht(e.get("S"),"Rendition"))return!1;let i=e.get("OP");return i===void 0||i===td.PLAY_OR_RESUME||i===td.PLAY}static#a(e,i,a){if(!(e instanceof _))return null;let s=e.get("S");if(Ht(s,"MR"))return this.#s(e.get("C"),i);if(Ht(s,"SR")){let n=e.get("R");if(Array.isArray(n))for(let r of n){if(r instanceof it){if(a.has(r))continue;a.put(r)}let l=this.#a(i.fetchIfRef(r),i,a);if(l)return l}}return null}static#s(e,i){if(!(e instanceof _)||!Ht(e.get("S"),"MCD"))return null;let a=e.getRaw("D"),s=i.fetchIfRef(a),n=e.get("CT"),r=typeof n=="string"?n:null,l=!1,o,f;if(s instanceof Bt){o=s.dict;let c=e.get("N");if(f=typeof c=="string"?Wt(c):"",!r){let u=s.dict.get("Subtype");u instanceof Z&&(r=u.name,l=!0)}}else if(s instanceof _){if(!la.hasEmbeddedFile(s))return null;o=s,{filename:f}=new la(s).serializable}else return null;let h=jl._getContentType(o,f,r,l);return h?{assetRef:a instanceof it?a:null,assetDict:o,filename:f,contentType:h}:null}},By=class extends jl{static{d(this,"SoundAnnotation")}constructor(t){super(t);let{dict:e,xref:i,annotationGlobals:a}=t,s=e.getRaw("Sound");if(!(s instanceof it))return;let n;try{n=i.fetch(s)}catch(r){if(r instanceof xe)throw r;E(`SoundAnnotation: "${r}".`);return}n instanceof Bt&&m0(n.dict)&&this._setMediaData({assetRef:s,assetDict:n.dict,filename:"sound.wav",contentType:"audio/wav",wrapSound:!0},a)}},Oy={get r(){return ht(this,"r",new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]))},get k(){return ht(this,"k",new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]))}};d(Ms,"calculateMD5");d(p1,"decodeString");Hy=class extends Yo{static{d(this,"DatasetXMLParser")}node=null;onEndElement(t){let e=super.onEndElement(t);if(e&&t==="xfa:datasets")throw this.node=e,Error("Aborting DatasetXMLParser.")}},Ny=class{static{d(this,"DatasetReader")}constructor(t){if(t.datasets)this.node=new Yo({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{let e=new Hy({hasAttributes:!0});try{e.parseFromString(t["xdp:xdp"])}catch{}this.node=e.node}}getValue(t){if(!this.node||!t)return"";let e=this.node.searchNode(fp(t),0);return e?e.firstChild?.nodeName==="value"?e.children.map(i=>p1(i.textContent)):p1(e.textContent):""}},Ly=class{static{d(this,"SingleIntersector")}#t;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;#e=null;#i=[];#a=[];#s=-1;#n=!1;constructor(t){this.#t=t;let e=t.data.quadPoints;if(!e)[this.minX,this.minY,this.maxX,this.maxY]=t.data.rect;else{for(let i=0,a=e.length;i<a;i+=8)this.minX=Math.min(this.minX,e[i]),this.maxX=Math.max(this.maxX,e[i+2]),this.minY=Math.min(this.minY,e[i+5]),this.maxY=Math.max(this.maxY,e[i+1]);e.length>8&&(this.#e=e)}}#r(t,e){if(this.minX>=t||this.maxX<=t||this.minY>=e||this.maxY<=e)return!1;let i=this.#e;if(!i)return!0;if(this.#s>=0){let a=this.#s;if(!(i[a]>=t||i[a+2]<=t||i[a+5]>=e||i[a+1]<=e))return!0;this.#s=-1}for(let a=0,s=i.length;a<s;a+=8)if(!(i[a]>=t||i[a+2]<=t||i[a+5]>=e||i[a+1]<=e))return this.#s=a,!0;return!1}addGlyph(t,e,i){return this.#r(t,e)?(this.#a.length>0&&(this.#i.push(this.#a.join("")),this.#a.length=0),this.#i.push(i),this.#n=!0,!0):(this.disableExtraChars(),!1)}addExtraChar(t){this.#n&&this.#a.push(t)}disableExtraChars(){this.#n&&(this.#n=!1,this.#a.length=0)}setText(){this.#t.data.overlaidText=this.#i.join("")}},zy=class{static{d(this,"Intersector")}#t=[];#e=[];#i;#a;#s;#n;#r;#l;constructor(t){let e=1/0,i=1/0,a=-1/0,s=-1/0,n=this.#t;for(let r of t){if(!r.data.quadPoints&&!r.data.rect)continue;let l=new Ly(r);n.push(l),e=Math.min(e,l.minX),i=Math.min(i,l.minY),a=Math.max(a,l.maxX),s=Math.max(s,l.maxY)}this.#i=e,this.#s=i,this.#a=a,this.#n=s,this.#r=63/(a-e),this.#l=63/(s-i);for(let r of n){let l=this.#o(r.minX,r.minY),o=this.#o(r.maxX,r.maxY),f=(o-l)%64,h=Math.floor((o-l)/64);for(let c=l;c<=l+h*64;c+=64)for(let u=0;u<=f;u++)(this.#e[c+u]??=[]).push(r)}}#o(t,e){return Math.floor((t-this.#i)*this.#r)+Math.floor((e-this.#s)*this.#l)*64}addGlyph(t,e,i,a){let s=t[4]+e/2,n=t[5]+i/2;if(s<this.#i||n<this.#s||s>this.#a||n>this.#n)return;let r=this.#e[this.#o(s,n)];if(r)for(let l of r)l.addGlyph(s,n,a)}addExtraChar(t){for(let e of this.#t)e.addExtraChar(t)}setText(){for(let t of this.#t)t.setText()}},mt=class{static{d(this,"Word64")}constructor(t,e){this.high=t|0,this.low=e|0}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}shiftRight(t){this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t|0}rotateRight(t){let e,i;t&32?(i=this.low,e=this.high):(e=this.low,i=this.high),t&=31,this.low=e>>>t|i<<32-t,this.high=i>>>t|e<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){let e=(this.low>>>0)+(t.low>>>0),i=(this.high>>>0)+(t.high>>>0);e>4294967295&&(i+=1),this.low=e|0,this.high=i|0}copyTo(t,e){t[e]=this.high>>>24&255,t[e+1]=this.high>>16&255,t[e+2]=this.high>>8&255,t[e+3]=this.high&255,t[e+4]=this.low>>>24&255,t[e+5]=this.low>>16&255,t[e+6]=this.low>>8&255,t[e+7]=this.low&255}assign(t){this.high=t.high,this.low=t.low}},Uy={get k(){return ht(this,"k",[new mt(1116352408,3609767458),new mt(1899447441,602891725),new mt(3049323471,3964484399),new mt(3921009573,2173295548),new mt(961987163,4081628472),new mt(1508970993,3053834265),new mt(2453635748,2937671579),new mt(2870763221,3664609560),new mt(3624381080,2734883394),new mt(310598401,1164996542),new mt(607225278,1323610764),new mt(1426881987,3590304994),new mt(1925078388,4068182383),new mt(2162078206,991336113),new mt(2614888103,633803317),new mt(3248222580,3479774868),new mt(3835390401,2666613458),new mt(4022224774,944711139),new mt(264347078,2341262773),new mt(604807628,2007800933),new mt(770255983,1495990901),new mt(1249150122,1856431235),new mt(1555081692,3175218132),new mt(1996064986,2198950837),new mt(2554220882,3999719339),new mt(2821834349,766784016),new mt(2952996808,2566594879),new mt(3210313671,3203337956),new mt(3336571891,1034457026),new mt(3584528711,2466948901),new mt(113926993,3758326383),new mt(338241895,168717936),new mt(666307205,1188179964),new mt(773529912,1546045734),new mt(1294757372,1522805485),new mt(1396182291,2643833823),new mt(1695183700,2343527390),new mt(1986661051,1014477480),new mt(2177026350,1206759142),new mt(2456956037,344077627),new mt(2730485921,1290863460),new mt(2820302411,3158454273),new mt(3259730800,3505952657),new mt(3345764771,106217008),new mt(3516065817,3606008344),new mt(3600352804,1432725776),new mt(4094571909,1467031594),new mt(275423344,851169720),new mt(430227734,3100823752),new mt(506948616,1363258195),new mt(659060556,3750685593),new mt(883997877,3785050280),new mt(958139571,3318307427),new mt(1322822218,3812723403),new mt(1537002063,2003034995),new mt(1747873779,3602036899),new mt(1955562222,1575990012),new mt(2024104815,1125592928),new mt(2227730452,2716904306),new mt(2361852424,442776044),new mt(2428436474,593698344),new mt(2756734187,3733110249),new mt(3204031479,2999351573),new mt(3329325298,3815920427),new mt(3391569614,3928383900),new mt(3515267271,566280711),new mt(3940187606,3454069534),new mt(4118630271,4000239992),new mt(116418474,1914138554),new mt(174292421,2731055270),new mt(289380356,3203993006),new mt(460393269,320620315),new mt(685471733,587496836),new mt(852142971,1086792851),new mt(1017036298,365543100),new mt(1126000580,2618297676),new mt(1288033470,3409855158),new mt(1501505948,4234509866),new mt(1607167915,987167468),new mt(1816402316,1246189591)])}};d(Gy,"ch");d($y,"maj");d(Wy,"sigma");d(Vy,"sigmaPrime");d(Ky,"littleSigma");d(Xy,"littleSigmaPrime");d(fm,"calculateSHA512");d(Yy,"calculateSHA384");Jy={get k(){return ht(this,"k",[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])}};d(Ka,"rotr");d(Qy,"calculate_sha256_ch");d(Zy,"calculate_sha256_maj");d(tk,"calculate_sha256_sigma");d(ek,"calculate_sha256_sigmaPrime");d(ik,"calculate_sha256_littleSigma");d(ak,"calculate_sha256_littleSigmaPrime");d(kc,"calculateSHA256");sk=class extends Mi{static{d(this,"DecryptStream")}#t=null;constructor(t,e,i){super(e),this.stream=t,this.dict=t.dict,this.decrypt=i}readBlock(){let t=this.#t??this.stream.getBytes(512);if(!t.length){this.eof=!0;return}this.#t=this.stream.getBytes(512);let e=this.#t.length>0,i=this.decrypt;t=i(t,!e);let a=this.bufferLength,s=a+t.length;this.ensureBuffer(s).set(t,a),this.bufferLength=s}getOriginalStream(){return this}},nk=new Set([160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8239,8287,12288]),rk=new Set([173,847,6150,6155,6156,6157,8203,8204,8205,8288,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279]);d(lk,"saslPrep");Js=class{static{d(this,"ARCFourCipher")}a=0;b=0;constructor(t){let e=Uint8Array.from({length:256},(a,s)=>s),i=t.length;for(let a=0,s=0;a<256;++a){let n=e[a];s=s+n+t[a%i]&255,e[a]=e[s],e[s]=n}this.s=e}encryptBlock(t){let e=this.a,i=this.b,a=this.s,s=t.length,n=new Uint8Array(s);for(let r=0;r<s;++r){e=e+1&255;let l=a[e];i=i+l&255;let o=a[i];a[e]=o,a[i]=l,n[r]=t[r]^a[l+o&255]}return this.a=e,this.b=i,n}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}},ok=class{static{d(this,"NullCipher")}decryptBlock(t){return t}encrypt(t){return t}},Au=class{static{d(this,"AESBaseCipher")}_s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);_inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);_mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);_mixCol=Uint8Array.from({length:256},(t,e)=>e<128?e<<1:e<<1^27);constructor(){this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){te("Cannot call `_expandKey` on the base class")}_decrypt(t,e){let i,a,s,n=new Uint8Array(16);n.set(t);for(let r=0,l=this._keySize;r<16;++r,++l)n[r]^=e[l];for(let r=this._cyclesOfRepetition-1;r>=1;--r){i=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=i,i=n[14],a=n[10],n[14]=n[6],n[10]=n[2],n[6]=i,n[2]=a,i=n[15],a=n[11],s=n[7],n[15]=n[3],n[11]=i,n[7]=a,n[3]=s;for(let l=0;l<16;++l)n[l]=this._inv_s[n[l]];for(let l=0,o=r*16;l<16;++l,++o)n[l]^=e[o];for(let l=0;l<16;l+=4){let o=this._mix[n[l]],f=this._mix[n[l+1]],h=this._mix[n[l+2]],c=this._mix[n[l+3]];i=o^f>>>8^f<<24^h>>>16^h<<16^c>>>24^c<<8,n[l]=i>>>24&255,n[l+1]=i>>16&255,n[l+2]=i>>8&255,n[l+3]=i&255}}i=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=i,i=n[14],a=n[10],n[14]=n[6],n[10]=n[2],n[6]=i,n[2]=a,i=n[15],a=n[11],s=n[7],n[15]=n[3],n[11]=i,n[7]=a,n[3]=s;for(let r=0;r<16;++r)n[r]=this._inv_s[n[r]],n[r]^=e[r];return n}_encrypt(t,e){let i=this._s,a,s,n,r=new Uint8Array(16);r.set(t);for(let l=0;l<16;++l)r[l]^=e[l];for(let l=1;l<this._cyclesOfRepetition;l++){for(let o=0;o<16;++o)r[o]=i[r[o]];n=r[1],r[1]=r[5],r[5]=r[9],r[9]=r[13],r[13]=n,n=r[2],s=r[6],r[2]=r[10],r[6]=r[14],r[10]=n,r[14]=s,n=r[3],s=r[7],a=r[11],r[3]=r[15],r[7]=n,r[11]=s,r[15]=a;for(let o=0;o<16;o+=4){let f=r[o],h=r[o+1],c=r[o+2],u=r[o+3];a=f^h^c^u,r[o]^=a^this._mixCol[f^h],r[o+1]^=a^this._mixCol[h^c],r[o+2]^=a^this._mixCol[c^u],r[o+3]^=a^this._mixCol[u^f]}for(let o=0,f=l*16;o<16;++o,++f)r[o]^=e[f]}for(let l=0;l<16;++l)r[l]=i[r[l]];n=r[1],r[1]=r[5],r[5]=r[9],r[9]=r[13],r[13]=n,n=r[2],s=r[6],r[2]=r[10],r[6]=r[14],r[10]=n,r[14]=s,n=r[3],s=r[7],a=r[11],r[3]=r[15],r[7]=n,r[11]=s,r[15]=a;for(let l=0,o=this._keySize;l<16;++l,++o)r[l]^=e[o];return r}_decryptBlock2(t,e){let i=t.length,a=this.buffer,s=this.bufferPosition,n=[],r=this.iv;for(let f=0;f<i;++f){if(a[s]=t[f],++s,s<16)continue;let h=this._decrypt(a,this._key);for(let c=0;c<16;++c)h[c]^=r[c];r=a,n.push(h),a=new Uint8Array(16),s=0}if(this.buffer=a,this.bufferLength=s,this.iv=r,n.length===0)return new Uint8Array;let l=16*n.length;if(e){let f=n.at(-1),h=f[15];if(h<=16){for(let c=15,u=16-h;c>=u;--c)if(f[c]!==h){h=0;break}l-=h,n[n.length-1]=f.subarray(0,16-h)}}let o=new Uint8Array(l);for(let f=0,h=0,c=n.length;f<c;++f,h+=16)o.set(n[f],h);return o}decryptBlock(t,e,i=null){let a=t.length,s=this.buffer,n=this.bufferPosition;if(i)this.iv=i;else{for(let r=0;n<16&&r<a;++r,++n)s[n]=t[r];if(n<16)return this.bufferLength=n,new Uint8Array;this.iv=s,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,e)}encrypt(t,e){let i=t.length,a=this.buffer,s=this.bufferPosition,n=[];e||=new Uint8Array(16);for(let o=0;o<i;++o){if(a[s]=t[o],++s,s<16)continue;for(let h=0;h<16;++h)a[h]^=e[h];let f=this._encrypt(a,this._key);e=f,n.push(f),a=new Uint8Array(16),s=0}if(this.buffer=a,this.bufferLength=s,this.iv=e,n.length===0)return new Uint8Array;let r=16*n.length,l=new Uint8Array(r);for(let o=0,f=0,h=n.length;o<h;++o,f+=16)l.set(n[o],f);return l}},hm=class extends Au{static{d(this,"AES128Cipher")}_rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);constructor(t){super(),this._cyclesOfRepetition=10,this._keySize=160,this._key=this._expandKey(t)}_expandKey(t){let e=this._s,i=this._rcon,a=new Uint8Array(176);a.set(t);for(let s=16,n=1;s<176;++n){let r=a[s-3],l=a[s-2],o=a[s-1],f=a[s-4];r=e[r],l=e[l],o=e[o],f=e[f],r^=i[n];for(let h=0;h<4;++h)a[s]=r^=a[s-16],s++,a[s]=l^=a[s-16],s++,a[s]=o^=a[s-16],s++,a[s]=f^=a[s-16],s++}return a}},vc=class extends Au{static{d(this,"AES256Cipher")}constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){let e=this._s,i=new Uint8Array(240);i.set(t);let a=1,s,n,r,l;for(let o=32,f=1;o<240;++f){o%32==16?(s=e[s],n=e[n],r=e[r],l=e[l]):o%32==0&&(s=i[o-3],n=i[o-2],r=i[o-1],l=i[o-4],s=e[s],n=e[n],r=e[r],l=e[l],s^=a,(a<<=1)>=256&&(a=(a^27)&255));for(let h=0;h<4;++h)i[o]=s^=i[o-32],o++,i[o]=n^=i[o-32],o++,i[o]=r^=i[o-32],o++,i[o]=l^=i[o-32],o++}return i}},cm=class{static{d(this,"PDFBase")}_hash(t,e,i){te("Abstract method `_hash` called")}checkOwnerPassword(t,e,i,a){let s=new Uint8Array(t.length+56);return s.set(t,0),s.set(e,t.length),s.set(i,t.length+e.length),jn(this._hash(t,s,i),a)}checkUserPassword(t,e,i){let a=new Uint8Array(t.length+8);return a.set(t,0),a.set(e,t.length),jn(this._hash(t,a,[]),i)}getOwnerKey(t,e,i,a){let s=new Uint8Array(t.length+56);return s.set(t,0),s.set(e,t.length),s.set(i,t.length+e.length),new vc(this._hash(t,s,i)).decryptBlock(a,!1,new Uint8Array(16))}getUserKey(t,e,i){let a=new Uint8Array(t.length+8);return a.set(t,0),a.set(e,t.length),new vc(this._hash(t,a,[])).decryptBlock(i,!1,new Uint8Array(16))}},fk=class extends cm{static{d(this,"PDF17")}_hash(t,e,i){return kc(e,0,e.length)}},hk=class extends cm{static{d(this,"PDF20")}_hash(t,e,i){let a=kc(e,0,e.length).subarray(0,32),s=[0],n=0;for(;n<64||s.at(-1)>n-32;){let r=t.length+a.length+i.length,l=new Uint8Array(r),o=0;l.set(t,o),o+=t.length,l.set(a,o),o+=a.length,l.set(i,o);let f=new Uint8Array(r*64);for(let c=0,u=0;c<64;c++,u+=r)f.set(l,u);s=new hm(a.subarray(0,16)).encrypt(f,a.subarray(16,32));let h=Math.sumPrecise(s.slice(0,16))%3;h===0?a=kc(s,0,s.length):h===1?a=Yy(s,0,s.length):h===2&&(a=fm(s,0,s.length)),n++}return a.subarray(0,32)}},m1=class{static{d(this,"CipherTransform")}#t=new Map;embeddedFilterName=null;constructor(t,e=null,i=null){this.resolveCipher=t,this.streamFilterName=i,this.stringFilterName=e}#e(t=null){let e=t instanceof Z?t.name:"__default__";return this.#t.getOrInsertComputed(e,()=>this.resolveCipher(t))}createStream(t,e,i=null){let a=this.embeddedFilterName&&nr(t.dict,"EmbeddedFile")?this.embeddedFilterName:this.streamFilterName,s=new(this.#e(i||a));return new sk(t,e,d(function(r,l){return s.decryptBlock(r,l)},"cipherTransformDecryptStream"))}decryptString(t){let e=new(this.#e(this.stringFilterName)),i=Be(t);return i=e.decryptBlock(i,!0),Bi(i)}encryptString(t){let e=new(this.#e(this.stringFilterName));if(e instanceof Au){let a=16-t.length%16;t+=String.fromCharCode(a).repeat(a);let s=new Uint8Array(16);crypto.getRandomValues(s);let n=Be(t);n=e.encrypt(n,s);let r=new Uint8Array(16+n.length);return r.set(s),r.set(n,16),Bi(r)}let i=Be(t);return i=e.encrypt(i),Bi(i)}};d(eh,"utf8PasswordToBytes");ck=class Xn{static{d(this,"CipherTransformFactory")}#t;static get _defaultPasswordBytes(){return ht(this,"_defaultPasswordBytes",new Uint8Array([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]))}#e(e,i,a,s,n,r,l,o,f,h,c,u){if(i){let m=Math.min(127,i.length);i=i.subarray(0,m)}else i=[];let p=e===6?new hk:new fk;return p.checkUserPassword(i,o,l)?p.getUserKey(i,f,c):i.length&&p.checkOwnerPassword(i,s,r,a)?p.getOwnerKey(i,n,r,h):null}#i(e,i,a,s,n,r,l,o){let f=40+a.length+e.length,h=new Uint8Array(f),c=0,u,p;if(i)for(p=Math.min(32,i.length);c<p;++c)h[c]=i[c];for(u=0;c<32;)h[c++]=Xn._defaultPasswordBytes[u++];h.set(a,c),c+=a.length,h[c++]=n&255,h[c++]=n>>8&255,h[c++]=n>>16&255,h[c++]=n>>>24&255,h.set(e,c),c+=e.length,r>=4&&!o&&(h.fill(255,c,c+4),c+=4);let m=Ms(h,0,c),g=l>>3;if(r>=3)for(u=0;u<50;++u)m=Ms(m,0,g);let b=m.subarray(0,g),w,v;if(r>=3){c=0,h.set(Xn._defaultPasswordBytes,c),c+=32,h.set(e,c),c+=e.length,w=new Js(b),v=w.encryptBlock(Ms(h,0,c)),p=b.length;let y=new Uint8Array(p);for(u=1;u<=19;++u){for(let x=0;x<p;++x)y[x]=b[x]^u;w=new Js(y),v=w.encryptBlock(v)}}else w=new Js(b),v=w.encryptBlock(Xn._defaultPasswordBytes);return v.every((y,x)=>s[x]===y)?b:null}#a(e,i,a,s){let n=new Uint8Array(32),r=0,l=Math.min(32,e.length);for(;r<l;++r)n[r]=e[r];let o=0;for(;r<32;)n[r++]=Xn._defaultPasswordBytes[o++];let f=Ms(n,0,r),h=s>>3;if(a>=3)for(o=0;o<50;++o)f=Ms(f,0,f.length);let c,u;if(a>=3){u=i;let p=new Uint8Array(h);for(o=19;o>=0;o--){for(let m=0;m<h;++m)p[m]=f[m]^o;c=new Js(p),u=c.encryptBlock(u)}}else c=new Js(f.subarray(0,h)),u=c.encryptBlock(i);return u}#s(e,i,a,s=!1){let n=a.length,r=new Uint8Array(n+9);r.set(a);let l=n;return r[l++]=e&255,r[l++]=e>>8&255,r[l++]=e>>16&255,r[l++]=i&255,r[l++]=i>>8&255,s&&(r[l++]=115,r[l++]=65,r[l++]=108,r[l++]=84),Ms(r,0,l).subarray(0,Math.min(n+5,16))}constructor(e,i,a){let s=e.get("Filter");if(!Ht(s,"Standard"))throw new V("unknown encryption method");this.filterName=s.name,this.dict=e,this.#t=i;let n=e.get("V");if(!Number.isInteger(n)||n!==1&&n!==2&&n!==4&&n!==5)throw new V("unsupported encryption algorithm");this.algorithm=n;let r=e.get("Length");if(!r)if(n<=3)r=40;else{let j=e.get("CF"),A=e.get("StmF");j instanceof _&&A instanceof Z&&(j.suppressEncryption=!0,r=j.get(A.name)?.get("Length")||128,r<40&&(r<<=3))}if(!Number.isInteger(r)||r<40||r%8!=0)throw new V("invalid key length");let l=null,o=Z.get("Identity"),f=Z.get("Identity"),h=o;n>=4&&(l=e.get("CF"),l instanceof _&&(l.suppressEncryption=!0),o=e.get("StmF")||Z.get("Identity"),f=e.get("StrF")||Z.get("Identity"),h=e.get("EFF")||o),this.cf=l,this.stmf=o,this.strf=f,this.eff=h;let c=Be(e.get("O")),u=Be(e.get("U")),p=c.subarray(0,32),m=u.subarray(0,32),g=e.get("P"),b=e.get("R"),w=(n===4||n===5)&&e.get("EncryptMetadata")!==!1;this.encryptMetadata=w;let v=Be(i),y,x;if(a)if(b===6){let j=lk(a);y=eh(j),j!==a&&(x=eh(a))}else y=n===5?eh(a):Be(a);let q;if(n!==5)q=this.#i(v,y,p,m,g,b,r,w);else{let j=c.subarray(32,40),A=c.subarray(40,48),S=u.subarray(0,48),C=u.subarray(32,40),M=u.subarray(40,48),O=Be(e.get("OE")),P=Be(e.get("UE")),$=Be(e.get("Perms"));for(let tt of x?[y,x]:[y])if(q=this.#e(b,tt,p,j,A,S,m,C,M,O,P,$),q)break}if(!q){if(!a){if(this.algorithm>=4&&Ht(this.stmf,"Identity")&&Ht(this.strf,"Identity")){let A=this.cf?.get(this.eff.name)?.get("AuthEvent");if(Ht(A,"EFOpen")){this.encryptionKey=null;return}}throw new hs("No password given",co.NEED_PASSWORD)}let j=this.#a(y,p,b,r);q=this.#i(v,j,p,m,g,b,r,w)}if(!q)throw new hs("Incorrect Password",co.INCORRECT_PASSWORD);n===4&&q.length<16?(this.encryptionKey=new Uint8Array(16),this.encryptionKey.set(q)):this.encryptionKey=q}setPassword(e){let i=new Xn(this.dict,this.#t,e);this.encryptionKey=i.encryptionKey}createCipherTransform(e,i){if(this.algorithm===4||this.algorithm===5){let s=d(r=>{if(!(r instanceof Z))throw new V("Invalid crypt filter name.");let l=this.cf.get(r.name)?.get("CFM");if(!l||l.name==="None")return ok;if(!this.encryptionKey)throw new hs("No password given",co.NEED_PASSWORD);if(this.algorithm===5||l.name==="AESV3")return vc.bind(null,this.encryptionKey);if(l.name==="V2")return Js.bind(null,this.#s(e,i,this.encryptionKey,!1));if(l.name==="AESV2")return hm.bind(null,this.#s(e,i,this.encryptionKey,!0));throw new V("Unknown crypto method")},"resolveCipher"),n=new m1(s,this.strf,this.stmf);return n.embeddedFilterName=this.eff,n}let a=d(()=>Js.bind(null,this.#s(e,i,this.encryptionKey,!1)),"resolveCipher");return new m1(a)}},uk=class{static{d(this,"XRef")}#t=new Map;#e=[];#i=null;#a=null;#s=!1;#n=new we;#r=null;#l=new Set;#o=!0;#f=new Set;constructor(t,e){this.stream=t,this.pdfManager=e}getNewPersistentRef(t){this.#i===null&&(this.#i=this.#e.length||1);let e=this.#i++;return this.#t.set(e,t),it.get(e,0)}getNewTemporaryRef(){if(this.#a===null&&(this.#a=this.#e.length||1,this.#i)){this.#r=new Map;for(let t=this.#a;t<this.#i;t++)this.#r.set(t,this.#t.get(t)),this.#t.delete(t)}return it.get(this.#a++,0)}resetNewTemporaryRef(){if(this.#a=null,this.#r)for(let[t,e]of this.#r)this.#t.set(t,e);this.#r=null}setStartXRef(t){this.startXRefQueue=[t]}parse(t=!1){this.#s=t;let e;t?(E("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;let i;try{i=e.get("Encrypt")}catch(s){if(s instanceof xe)throw s;E(`XRef.parse - Invalid "Encrypt" reference: "${s}".`)}if(i instanceof _){let s=e.get("ID"),n=s?.length?s[0]:"";i.suppressEncryption=!0,this.encrypt=new ck(i,n,this.pdfManager.password)}let a;try{a=e.get("Root")}catch(s){if(s instanceof xe)throw s;E(`XRef.parse - Invalid "Root" reference: "${s}".`)}if(a instanceof _)try{if(a.get("Pages")instanceof _){this.root=a;return}}catch(s){if(s instanceof xe)throw s;E(`XRef.parse - Invalid "Pages" reference: "${s}".`)}throw t?new cl("Invalid Root reference."):new gn}processXRefTable(t){if(this._tableState??={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2},!ci(this.readXRefTable(t),"trailer"))throw new V("Invalid XRef table: could not find trailer dictionary");let e=t.getObj();if(e instanceof Bt&&(e=e.dict),!(e instanceof _))throw new V("Invalid XRef table: could not parse trailer dictionary");return delete this._tableState,e}readXRefTable(t){let e=t.lexer.stream,i=this._tableState;e.pos=i.streamPos,t.buf1=i.parserBuf1,t.buf2=i.parserBuf2;let a;for(;;){if(!("firstEntryNum"in i)||!("entryCount"in i)){if(ci(a=t.getObj(),"trailer"))break;i.firstEntryNum=a,i.entryCount=t.getObj()}let s=i.firstEntryNum,n=i.entryCount;if(!Number.isInteger(s)||!Number.isInteger(n))throw new V("Invalid XRef table: wrong types in subsection header");for(let r=i.entryNum;r<n;r++){i.streamPos=e.pos,i.entryNum=r,i.parserBuf1=t.buf1,i.parserBuf2=t.buf2;let l={offset:t.getObj(),gen:t.getObj(),free:!1,uncompressed:!1},o=t.getObj();if(o instanceof hi)switch(o.cmd){case"f":l.free=!0;break;case"n":l.uncompressed=!0}if(!Number.isInteger(l.offset)||!Number.isInteger(l.gen)||!(l.free||l.uncompressed))throw new V(`Invalid entry in XRef subsection: ${s}, ${n}`);r===0&&l.free&&s===1&&(s=0),this.#e[s+r]??=l}i.entryNum=0,i.streamPos=e.pos,i.parserBuf1=t.buf1,i.parserBuf2=t.buf2,delete i.firstEntryNum,delete i.entryCount}if(this.#e[0]&&!this.#e[0].free)throw new V("Invalid XRef table: unexpected first object");return a}processXRefStream(t){if(!("streamState"in this)){let{dict:e,pos:i}=t,a=e.get("W"),s=e.get("Index")||[0,e.get("Size")];this.streamState={entryRanges:s,byteWidths:a,entryNum:0,streamPos:i}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(t){let e=this.streamState;t.pos=e.streamPos;let[i,a,s]=e.byteWidths,n=e.entryRanges;for(;n.length>0;){let[r,l]=n;if(!Number.isInteger(r)||!Number.isInteger(l))throw new V(`Invalid XRef range fields: ${r}, ${l}`);if(![i,a,s].every(o=>Number.isInteger(o)&&o>=0)||i+a+s===0)throw new V(`Invalid XRef entry fields length: ${r}, ${l}`);for(let o=e.entryNum;o<l;++o){e.entryNum=o,e.streamPos=t.pos;let f=0,h=0,c=0;for(let p=0;p<i;++p){let m=t.getByte();if(m===-1)throw new V("Invalid XRef byteWidths 'type'.");f=f<<8|m}i===0&&(f=1);for(let p=0;p<a;++p){let m=t.getByte();if(m===-1)throw new V("Invalid XRef byteWidths 'offset'.");h=h<<8|m}for(let p=0;p<s;++p){let m=t.getByte();if(m===-1)throw new V("Invalid XRef byteWidths 'generation'.");c=c<<8|m}let u={offset:h,gen:c,free:!1,uncompressed:!1};switch(f){case 0:u.free=!0;break;case 1:u.uncompressed=!0;break;case 2:break;default:throw new V(`Invalid XRef entry type: ${f}`)}this.#e[r+o]??=u}e.entryNum=0,e.streamPos=t.pos,n.splice(0,2)}}indexObjects(){function t(y,x){let q="",j=y[x];for(;j!==10&&j!==13&&j!==60&&!(++x>=y.length);)q+=String.fromCharCode(j),j=y[x];return q}d(t,"readToken");function e(y,x,q){let j=q.length,A=y.length,S=0;for(;x<A;){let C=0;for(;C<j&&y[x+C]===q[C];)++C;if(C>=j)break;x++,S++}return S}d(e,"skipUntil");let i=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,a=/\b(startxref|\d+\s+\d+\s+obj)\b/g,s=/^(\d+)\s+(\d+)\s+obj\b/,n=new Uint8Array([116,114,97,105,108,101,114]),r=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([47,88,82,101,102]);this.#e.length=0,this.#t.clear();let o=this.stream;o.pos=0;let f=o.getBytes(),h=Bi(f),c=f.length,u=o.start,p=[],m=[];for(;u<c;){let y=f[u];if(y===9||y===10||y===13||y===32){++u;continue}if(y===37){do{if(++u,u>=c)break;y=f[u]}while(y!==10&&y!==13);continue}let x=t(f,u),q;if(x.startsWith("xref")&&(x.length===4||/\s/.test(x[4])))u+=e(f,u,n),p.push(u),u+=e(f,u,r);else if(q=s.exec(x)){let j=q[1]|0,A=q[2]|0,S=u+x.length,C,M=!1;if(!this.#e[j])M=!0;else if(this.#e[j].gen===A)try{new Is({lexer:new Ma(o.makeSubStream(S))}).getObj(),M=!0}catch(tt){tt instanceof kh?E(`indexObjects -- checking object (${x}): "${tt}".`):M=!0}M&&(this.#e[j]={offset:u-o.start,gen:A,free:!1,uncompressed:!0}),i.lastIndex=S;let O=i.exec(h);O?(C=i.lastIndex+1-u,O[1]!=="endobj"&&(E(`indexObjects: Found "${O[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),C-=O[1].length+1)):C=c-u;let P=f.subarray(u,u+C),$=e(P,0,l);$<C&&P[$+5]<64&&(m.push(u-o.start),this.#f.add(u-o.start)),u+=C}else if(x.startsWith("trailer")&&(x.length===7||/\s/.test(x[7]))){p.push(u);let j=u+x.length,A;a.lastIndex=j;let S=a.exec(h);S?(A=a.lastIndex+1-u,S[1]!=="startxref"&&(E(`indexObjects: Found "${S[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),A-=S[1].length+1)):A=c-u,u+=A}else u+=x.length+1}for(let y of m)this.startXRefQueue.push(y),this.readXRef(!0);let g=[],b=!1;for(let y of p){o.pos=y;let x=new Is({lexer:new Ma(o),xref:this,allowStreams:!0,recoveryMode:!0});if(!ci(x.getObj(),"trailer"))continue;let q=x.getObj();q instanceof _&&(g.push(q),q.has("Encrypt")&&(b=!0))}let w,v;for(let y of[...g,"genFallback",...g]){if(y==="genFallback"){if(!v)break;this._generationFallback=!0;continue}let x=!1;try{let q=y.get("Root");if(!(q instanceof _))continue;let j=q.get("Pages");if(!(j instanceof _))continue;let A=j.get("Count");Number.isInteger(A)&&(x=!0)}catch(q){v=q;continue}if(x&&(!b||y.has("Encrypt"))&&y.has("ID"))return y;w=y}if(w)return w;if(this.topDict)return this.topDict;if(!g.length)for(let y in this.#e){let x=this.#e[y];if(!x)continue;let q=it.get(parseInt(y,10),x.gen),j;try{j=this.fetch(q)}catch{continue}if(j instanceof Bt&&(j=j.dict),j instanceof _&&j.has("Root"))return j}throw new cl("Invalid PDF structure.")}readXRef(t=!1){let e=this.stream,i=new Set;for(;this.startXRefQueue.length;){try{let a=this.startXRefQueue[0];if(i.has(a)){E("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}i.add(a),e.pos=a+e.start;let s=new Is({lexer:new Ma(e),xref:this,allowStreams:!0}),n=s.getObj(),r;if(ci(n,"xref"))r=this.processXRefTable(s),this.topDict||=r,n=r.get("XRefStm"),Number.isInteger(n)&&!this.#f.has(n)&&(this.#f.add(n),this.startXRefQueue.push(n));else if(Number.isInteger(n)){if(!Number.isInteger(s.getObj())||!ci(s.getObj(),"obj")||!((n=s.getObj())instanceof Bt))throw new V("Invalid XRef stream");if(r=this.processXRefStream(n),this.topDict||=r,!r)throw new V("Failed to read XRef stream")}else throw new V("Invalid XRef stream header");this.#l.add(a),n=r.get("Prev"),Number.isInteger(n)?this.startXRefQueue.push(n):n instanceof it&&this.startXRefQueue.push(n.num)}catch(a){if(a instanceof xe)throw a;this.#o=!1,de("(while reading XRef): "+a)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new gn}countUpdatesAfter(t){if(this.#s||!this.#o)return null;let e=t-this.stream.start,i=0;for(let a of this.#l)a>=e&&!this.#f.has(a)&&i++;return i}getEntry(t){let e=this.#e[t];return e&&!e.free&&e.offset?e:null}fetchIfRef(t,e=!1){return t instanceof it?this.fetch(t,e):t}fetch(t,e=!1){if(!(t instanceof it))throw Error("ref object is not a reference");let i=t.num,a=this.#t.get(i);if(a!==void 0)return a instanceof _&&!a.objId&&(a.objId=t.toString()),a;let s=this.getEntry(i);if(s===null)return s;if(this.#n.has(t))return this.#n.remove(t),E(`Ignoring circular reference: ${t}.`),Zg;this.#n.put(t);try{s=s.uncompressed?this.fetchUncompressed(t,s,e):this.fetchCompressed(t,s,e),this.#n.remove(t)}catch(n){throw this.#n.remove(t),n}return s instanceof _?s.objId=t.toString():s instanceof Bt&&(s.dict.objId=t.toString()),s}fetchUncompressed(t,e,i=!1){let a=t.gen,s=t.num;if(e.gen!==a){let f=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&e.gen<a)return E(f),this.fetchUncompressed(it.get(s,e.gen),e,i);throw new Es(f)}let n=new Is({lexer:new Ma(this.stream.makeSubStream(e.offset+this.stream.start)),xref:this,allowStreams:!0}),r=n.getObj(),l=n.getObj(),o=n.getObj();if(r!==s||l!==a||!(o instanceof hi))throw new Es(`Bad (uncompressed) XRef entry: ${t}`);if(o.cmd!=="obj"){if(o.cmd.startsWith("obj")&&(s=parseInt(o.cmd.substring(3),10),!Number.isNaN(s)))return s;throw new Es(`Bad (uncompressed) XRef entry: ${t}`)}return e=this.encrypt&&!i?n.getObj(this.encrypt.createCipherTransform(s,a)):n.getObj(),e instanceof Bt||this.#t.set(s,e),e}fetchCompressed(t,e,i=!1){let a=e.offset,s=this.fetch(it.get(a,0));if(!(s instanceof Bt))throw new V("bad ObjStm stream");let n=s.dict.get("First"),r=s.dict.get("N");if(!Number.isInteger(n)||!Number.isInteger(r))throw new V("invalid first and n parameters for ObjStm stream");let l=new Is({lexer:new Ma(s),xref:this,allowStreams:!0}),o=Array(r),f=Array(r);for(let u=0;u<r;++u){let p=l.getObj();if(!Number.isInteger(p))throw new V(`invalid object number in the ObjStm stream: ${p}`);let m=l.getObj();if(!Number.isInteger(m))throw new V(`invalid object offset in the ObjStm stream: ${m}`);o[u]=p;let g=this.getEntry(p);g?.offset===a&&g.gen!==u&&(g.gen=u),f[u]=m}let h=(s.start||0)+n,c=Array(r);for(let u=0;u<r;++u){let p=u<r-1?f[u+1]-f[u]:void 0;if(p<0)throw new V("Invalid offset in the ObjStm stream.");l=new Is({lexer:new Ma(s.makeSubStream(h+f[u],p,s.dict)),xref:this,allowStreams:!0});let m=l.getObj();if(c[u]=m,m instanceof Bt)continue;let g=o[u],b=this.#e[g];b&&b.offset===a&&b.gen===u&&this.#t.set(g,m)}if(e=c[e.gen],e===void 0)throw new Es(`Bad (compressed) XRef entry: ${t}`);return e}async fetchIfRefAsync(t,e){return t instanceof it?this.fetchAsync(t,e):t}async fetchAsync(t,e){try{return this.fetch(t,e)}catch(i){if(!(i instanceof xe))throw i;return await this.pdfManager.requestRange(i.begin,i.end),this.fetchAsync(t,e)}}getCatalogObj(){return this.root}},um=[0,0,612,792],g1=65536,b1=class{static{d(this,"Page")}#t=null;constructor({pdfManager:t,xref:e,pageIndex:i,pageDict:a,ref:s,globalIdFactory:n,fontCache:r,builtInCMapCache:l,standardFontDataCache:o,globalColorSpaceCache:f,globalImageCache:h,systemFontCache:c,nonBlendModesSet:u,xfaFactory:p}){this.pdfManager=t,this.pageIndex=i,this.pageDict=a,this.xref=e,this.ref=s,this.fontCache=r,this.builtInCMapCache=l,this.standardFontDataCache=o,this.globalColorSpaceCache=f,this.globalImageCache=h,this.systemFontCache=c,this.nonBlendModesSet=u,this.evaluatorOptions=t.evaluatorOptions,this.xfaFactory=p;let m={obj:0};this._localIdFactory=class extends n{static createObjId(){return`p${i}_${++m.obj}`}static getPageObjId(){return`p${s.toString()}`}}}_createPartialEvaluator(t,e=this.pageIndex,i=null){return new su({xref:this.xref,handler:t,pageIndex:e,pageProxyId:i,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}#e(t,e=!1){let i=gi({dict:this.pageDict,key:t,getArray:e,stopWhenFound:!1});return Array.isArray(i)?i.length===1||!(i[0]instanceof _)?i[0]:_.merge({xref:this.xref,dictArray:i}):i}get content(){return this.pageDict.getArray("Contents")}get resources(){let t=this.#e("Resources");return ht(this,"resources",t instanceof _?t:_.empty)}getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;let e=Ya(this.#e(t,!0),null);if(e){if(e[2]-e[0]>0&&e[3]-e[1]>0)return e;E(`Empty, or invalid, /${t} entry.`)}return null}get mediaBox(){return ht(this,"mediaBox",this.getBoundingBox("MediaBox")||um)}get cropBox(){return ht(this,"cropBox",this.getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");return ht(this,"userUnit",typeof t=="number"&&t>0?t:1)}get view(){let{cropBox:t,mediaBox:e}=this;if(t!==e&&!jn(t,e)){let i=oe.intersect(t,e);if(i&&i[2]-i[0]>0&&i[3]-i[1]>0)return ht(this,"view",i);E("Empty /CropBox and /MediaBox intersection.")}return ht(this,"view",e)}get rotate(){let t=this.#e("Rotate")||0;return t%90==0?t>=360?t%=360:t<0&&(t=(t%360+360)%360):t=0,ht(this,"rotate",t)}#i(t,e){if(this.evaluatorOptions.ignoreErrors)E(`getContentStream - ignoring sub-stream (${e}): "${t}".`);else throw t}async getContentStream(){let t=await this.pdfManager.ensure(this,"content");if(t instanceof Bt&&!t.isImageStream){if(t.isAsync){let e=await t.asyncGetBytes();if(e)return new Me(e,0,e.length,t.dict)}return t}if(Array.isArray(t)){let e=[];for(let i=0,a=t.length;i<a;i++){let s=t[i];s instanceof Bt&&s.isAsync&&e.push(s.asyncGetBytes().then(n=>{n&&(t[i]=new Me(n,0,n.length,s.dict))}))}return e.length>0&&await Promise.all(e),new zb(t,this.#i.bind(this))}return new Ch}get xfaData(){return ht(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async#a(t,e,i){let a=[];for(let s of t){if(!s.id)continue;let n=it.fromString(s.id);if(!n)E(`A non-linked annotation cannot be modified: ${s.id}`);else if(s.deleted){if(e.put(n),s.popupRef){let r=it.fromString(s.popupRef);r&&e.put(r)}}else{if(s.popup?.deleted){let r=it.fromString(s.popupRef);r&&e.put(r)}i?.put(n),s.ref=n,a.push(this.xref.fetchAsync(n).then(r=>{r instanceof _&&(s.oldAnnotation=r.clone())},()=>{E(`Cannot fetch \`oldAnnotation\` for: ${n}.`)})),delete s.id}}await Promise.all(a)}async saveNewAnnotations(t,e,i,a,s){if(this.xfaFactory)throw Error("XFA: Cannot save new annotations.");let n=this._createPartialEvaluator(t),r=new we,l=new we;await this.#a(i,r,l);let o=this.pageDict,f=this.annotations.filter(u=>!(u instanceof it&&r.has(u))),h=await _a.saveNewAnnotations(n,this.xref,e,i,a,s);for(let{ref:u}of h.annotations)u instanceof it&&!l.has(u)&&f.push(u);let c=o.clone();c.set("Annots",f),s.put(this.ref,{data:c});for(let u of r)s.put(u,{data:null})}async save(t,e,i,a){let s=this._createPartialEvaluator(t),n=await this._parsedAnnotations,r=[];for(let l of n)r.push(l.save(s,e,i,a).catch(o=>(E(`save - ignoring annotation data during "${e.name}" task: "${o}".`),null)));return Promise.all(r)}async loadResources(t){await(this.#t??=this.pdfManager.ensure(this,"resources")),await Po.load(this.resources,t,this.xref)}async#s(t,e){let i=t?.get("Resources");return i instanceof _&&i.size?(await Po.load(i,e,this.xref),_.merge({xref:this.xref,dictArray:[i,this.resources],mergeSubDicts:!0})):this.resources}async getOperatorList({handler:t,sink:e,task:i,intent:a,cacheKey:s,pageIndex:n=this.pageIndex,pageProxyId:r=null,annotationStorage:l=null,modifiedIds:o=null}){let f=this.getContentStream(),h=this.loadResources(wh),c=this._createPartialEvaluator(t,n,r),u=(this.xfaFactory?null:$c(l))?.get(this.pageIndex),p=Promise.resolve(null),m=null;if(u){let P=this.pdfManager.ensureDoc("annotationGlobals"),$,tt=new Set;for(let{bitmapId:z,bitmap:B}of u)z&&!B&&!tt.has(z)&&tt.add(z);let{isOffscreenCanvasSupported:K}=this.evaluatorOptions;if(tt.size>0){let z=u.slice();for(let[B,G]of l)B.startsWith(Q1)&&G.bitmap&&tt.has(G.bitmapId)&&z.push(G);$=_a.generateImages(z,this.xref,K)}else $=_a.generateImages(u,this.xref,K);m=new we,p=Promise.all([P,this.#a(u,m,null)]).then(([z])=>z?_a.printNewAnnotations(z,c,i,u,$):null)}let g=Promise.all([f,h]).then(async([P])=>{let $=await this.#s(P.dict,wh),tt=new Da(a,e);return t.send("StartRenderPage",{transparency:c.hasBlendModes($,this.nonBlendModesSet),pageProxyId:r,cacheKey:s}),await c.getOperatorList({stream:P,task:i,resources:$,operatorList:tt}),tt}),[b,w,v]=await Promise.all([g,this._parsedAnnotations,p]);if(v){w=w.filter(P=>!(P.ref&&m.has(P.ref)));for(let P=0,$=v.length;P<$;P++){let tt=v[P];if(tt.refToReplace){let K=w.findIndex(z=>z.ref&&rr(z.ref,tt.refToReplace));K>=0&&(w.splice(K,1,tt),v.splice(P--,1),$--)}}w=w.concat(v)}if(w.length===0||a&mi.ANNOTATIONS_DISABLE){b.flush(!0);return}let y=!!(a&mi.ANNOTATIONS_FORMS),x=!!(a&mi.IS_EDITING),q=!!(a&mi.ANY),j=!!(a&mi.DISPLAY),A=!!(a&mi.PRINT),S=[];for(let P of w)(q||j&&P.mustBeViewed(l,y)&&P.mustBeViewedWhenEditing(x,o)||A&&P.mustBePrinted(l))&&S.push(P.getOperatorList(c,i,a,l).catch($=>(E(`getOperatorList - ignoring annotation data during "${i.name}" task: "${$}".`),{opList:null,separateForm:!1,separateCanvas:!1})));let C=await Promise.all(S),M=!1,O=!1;for(let{opList:P,separateForm:$,separateCanvas:tt}of C)b.addOpList(P),M||=$,O||=tt;b.flush(!0,{form:M,canvas:O})}async extractTextContent({handler:t,task:e,includeMarkedContent:i,disableNormalization:a,sink:s,intersector:n=null}){let r=this.getContentStream(),l=this.loadResources(yh),o=this.pdfManager.ensureCatalog("lang"),[f,,h]=await Promise.all([r,l,o]),c=await this.#s(f.dict,yh);return this._createPartialEvaluator(t).getTextContent({stream:f,task:e,resources:c,includeMarkedContent:i,disableNormalization:a,sink:s,viewBox:this.view,lang:h,intersector:n})}async getStructTree(){let t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t)return null;await this._parsedAnnotations;try{let e=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return await this.pdfManager.ensure(e,"serializable")}catch(e){return E(`getStructTree: "${e}".`),null}}_parseStructTree(t){let e=new g0(t,this.pageDict);return e.parse(this.ref),e}async getAnnotationsData(t,e,i){let a=await this._parsedAnnotations;if(a.length===0)return a;let s=[],n=[],r,l=!!(i&mi.ANY),o=!!(i&mi.DISPLAY),f=!!(i&mi.PRINT),h=[];for(let c of a){let u=l||o&&c.viewable;(u||f&&c.printable)&&s.push(c.data),c.hasTextContent&&u?(r??=this._createPartialEvaluator(t),n.push(c.extractTextContent(r,e,[-1/0,-1/0,1/0,1/0]).catch(p=>{E(`getAnnotationsData - ignoring textContent during "${e.name}" task: "${p}".`)}))):c.overlaysTextContent&&u&&h.push(c)}if(h.length>0){let c=new zy(h);n.push(this.extractTextContent({handler:t,task:e,includeMarkedContent:!1,disableNormalization:!1,sink:null,intersector:c}).then(()=>{c.setText()}))}return await Promise.all(n),s}get annotations(){let t=this.#e("Annots");return ht(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){let t=this.pdfManager.ensure(this,"annotations").then(async e=>{if(e.length===0)return e;let[i,a]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!i)return[];let s=a?.orphanFields,n=[];for(let f of e)n.push(_a.create(this.xref,f,i,this._localIdFactory,!1,s,null,this.ref).catch(h=>(E(`_parsedAnnotations: "${h}".`),null)));let r=[],l,o;for(let f of await Promise.all(n))f&&(f instanceof Ls?(o||=[]).push(f):f instanceof xu?(l||=[]).push(f):r.push(f));return o&&r.push(...o),l&&r.push(...l),r});return ht(this,"_parsedAnnotations",t)}get jsActions(){let t=$o(this.xref,this.pageDict,$g);return ht(this,"jsActions",t)}async collectAnnotationsByType(t,e,i,a,s){let{pageIndex:n}=this;if(Object.hasOwn(this,"_parsedAnnotations")){let o=await this._parsedAnnotations;for(let{data:f}of o)(!i||i.has(f.annotationType))&&(f.pageIndex=n,a.push(Promise.resolve(f)));return}let r=await this.pdfManager.ensure(this,"annotations"),l;for(let o of r)a.push(_a.create(this.xref,o,s,this._localIdFactory,!1,null,i,this.ref).then(async f=>f?(f.data.pageIndex=n,f.hasTextContent&&f.viewable&&(l??=this._createPartialEvaluator(t),await f.extractTextContent(l,e,[-1/0,-1/0,1/0,1/0])),f.data):null).catch(f=>(E(`collectAnnotationsByType: "${f}".`),null)))}},w1=new Uint8Array([37,80,68,70,45]),y1=new Uint8Array([115,116,97,114,116,120,114,101,102]),dk=new Uint8Array([101,110,100,111,98,106]);d(ih,"find");dm=class{static{d(this,"PDFDocument")}#t=new Map;#e=null;#i=null;constructor(t,e){if(e.length<=0)throw new cl("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=e,this.xref=new uk(e,t);let i={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return`f${++i.font}`}static createObjId(){te("Abstract method `createObjId` called.")}static getPageObjId(){te("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t),this.catalog=new lu(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=xw.create(this.stream)}catch(e){if(e instanceof xe)throw e;de(e)}return ht(this,"linearization",t)}get startXRef(){let t=this.stream,e=0;if(this.linearization){if(t.reset(),ih(t,dk)){t.skip(6);let i=t.peekByte();for(;ya(i);)t.pos++,i=t.peekByte();e=t.pos-t.start}}else{let i=1024,a=y1.length,s=!1,n=t.end;for(;!s&&n>0;)n-=i-a,n<0&&(n=0),t.pos=n,s=ih(t,y1,i,!0);if(s){t.skip(9);let r;do r=t.getByte();while(ya(r));let l="";for(;r>=32&&r<=57;)l+=String.fromCharCode(r),r=t.getByte();e=parseInt(l,10),isNaN(e)&&(e=0)}}return ht(this,"startXRef",e)}checkHeader(){let t=this.stream;if(t.reset(),!ih(t,w1))return;t.moveStart(),t.skip(w1.length);let e="",i;for(;(i=t.getByte())>32&&e.length<7;)e+=String.fromCharCode(i);lp.test(e)?this.#i=e:E(`Invalid PDF header version: ${e}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let t=0;return t=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,ht(this,"numPages",t)}#a(t,e=0){return Array.isArray(t)?t.every(i=>{if(i=this.xref.fetchIfRef(i),!(i instanceof _))return!1;if(i.has("Kids"))return++e>10?(E("#hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this.#a(i.get("Kids"),e);let a=Ht(gi({dict:i,key:"FT"}),"Sig"),s=i.get("Rect"),n=Array.isArray(s)&&s.every(r=>r===0);return a&&n}):!1}get _xfaStreams(){let{acroForm:t}=this.catalog;if(!t)return null;let e=t.get("XFA"),i=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map(a=>[a,null]));if(e instanceof Bt&&!e.isEmpty)return i.set("xdp:xdp",e),i;if(!Array.isArray(e)||e.length===0)return null;for(let a=0,s=e.length;a<s;a+=2){let n;if(n=a===0?"xdp:xdp":a===s-2?"/xdp:xdp":e[a],!i.has(n))continue;let r=this.xref.fetchIfRef(e[a+1]);r instanceof Bt&&!r.isEmpty&&i.set(n,r)}return i}get xfaDatasets(){let t=this._xfaStreams;if(!t)return ht(this,"xfaDatasets",null);for(let e of["datasets","xdp:xdp"]){let i=t.get(e);if(i)try{let a=sr(i.getString()),s={[e]:a};return ht(this,"xfaDatasets",new Ny(s))}catch{E("XFA - Invalid utf-8 string.");break}}return ht(this,"xfaDatasets",null)}get xfaData(){let t=this._xfaStreams;if(!t)return null;let e=new Map;for(let[i,a]of t)if(a)try{e.set(i,sr(a.getString()))}catch{return E("XFA - Invalid utf-8 string."),null}return e}get xfaFactory(){let t;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData),ht(this,"xfaFactory",t?new qu(t):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async#s(){let t=await this.pdfManager.ensureCatalog("xfaImages");t&&this.xfaFactory.setImages(t)}async#n(t,e){let i=await this.pdfManager.ensureCatalog("acroForm");if(!i)return;let a=await i.getAsync("DR");if(!(a instanceof _))return;await Po.load(a,["Font"],this.xref);let s=a.get("Font");if(!(s instanceof _))return;let n=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:r,fontCache:l,standardFontDataCache:o}=this.catalog,f=new su({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:l,builtInCMapCache:r,standardFontDataCache:o,options:n}),h=new Da,c=[],u={get font(){return c.at(-1)},set font(w){c.push(w)},clone(){return this}},p=d((w,v,y)=>f.handleSetFont(a,[Z.get(w),1],null,h,e,u,v,y).catch(x=>(E(`loadXfaFonts: "${x}".`),null)),"parseFont"),m=[];for(let[w,v]of s){let y=v.get("FontDescriptor");if(!(y instanceof _))continue;let x={fontFamily:cb(y.get("FontFamily")),fontWeight:y.get("FontWeight"),italicAngle:-y.get("ItalicAngle")};ub(x)&&m.push(p(w,null,x))}await Promise.all(m);let g=this.xfaFactory.setFonts(c);if(!g)return;n.ignoreErrors=!0,m.length=0,c.length=0;let b=new Set;for(let w of g)eu(`${w}-Regular`)||b.add(w);b.size&&g.push("PdfJS-Fallback");for(let w of g)if(!b.has(w))for(let v of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){let y=`${w}-${v.name}`;m.push(p(y,Qp(y),{fontFamily:w,fontWeight:v.fontWeight,italicAngle:v.italicAngle}))}await Promise.all(m),this.xfaFactory.appendFonts(c,b)}loadXfaResources(t,e){return Promise.all([this.#n(t,e).catch(()=>{}),this.#s()])}serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||this.#i}get formInfo(){let t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:e}=this.catalog;if(!e)return ht(this,"formInfo",t);try{let i=e.get("Fields"),a=Array.isArray(i)&&i.length>0;t.hasFields=a;let s=e.get("XFA");t.hasXfa=Array.isArray(s)&&s.length>0||s instanceof Bt&&!s.isEmpty;let n=!!(e.get("SigFlags")&1),r=n&&this.#a(i);t.hasAcroForm=a&&!r,t.hasSignatures=n}catch(i){if(i instanceof xe)throw i;E(`Cannot fetch form information: "${i}".`)}return ht(this,"formInfo",t)}get documentInfo(){let{catalog:t,formInfo:e,xref:i}=this,a={PDFFormatVersion:this.version,Language:t.lang,EncryptFilterName:i.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:e.hasAcroForm,IsXFAPresent:e.hasXfa,IsCollectionPresent:!!t.collection,IsSignaturesPresent:e.hasSignatures},s;try{s=i.trailer.get("Info")}catch(n){if(n instanceof xe)throw n;de("The document information dictionary is invalid.")}if(!(s instanceof _))return ht(this,"documentInfo",a);for(let[n,r]of s){switch(n){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof r=="string"){a[n]=Wt(r);continue}break;case"Trapped":if(r instanceof Z){a[n]=r;continue}break;default:let l;switch(typeof r){case"string":l=Wt(r);break;case"number":case"boolean":l=r;break;default:if(r instanceof Z){l=r;break}E(`Bad value, for custom key "${n}", in Info: ${r}.`);continue}(a.Custom??=new Map).set(n,l);continue}E(`Bad value, for key "${n}", in Info: ${r}.`)}return ht(this,"documentInfo",a)}get fingerprints(){let t=1024,e="\0".repeat(16);function i(r){return typeof r=="string"&&r.length===16&&r!==e}d(i,"validate");let a=this.xref.trailer.get("ID"),s,n;return Array.isArray(a)&&i(a[0])?(s=Be(a[0]),a[1]!==a[0]&&i(a[1])&&(n=Be(a[1]))):s=Ms(this.stream.getByteRange(0,t),0,t),ht(this,"fingerprints",[s.toHex(),n?.toHex()??null])}async#r(t){let{catalog:e,linearization:i,xref:a}=this,s=it.get(i.objectNumberFirst,0);try{let n=await a.fetchAsync(s);if(n instanceof _){let r=n.getRaw("Type");if(r instanceof it&&(r=await a.fetchAsync(r)),Ht(r,"Page")||!n.has("Type")&&!n.has("Kids")&&n.has("Contents"))return e.pageKidsCountCache.has(s)||e.pageKidsCountCache.put(s,1),e.pageIndexCache.has(s)||e.pageIndexCache.put(s,0),[n,s]}throw new V("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(n){return E(`_getLinearizationPage: "${n.message}".`),e.getPageDict(t)}}getPage(t){let e=this.#t.get(t);if(e)return e;let{catalog:i,linearization:a,xfaFactory:s}=this,n;return n=s?Promise.resolve([_.empty,null]):a?.pageFirst===t?this.#r(t):i.getPageDict(t),n=n.then(([r,l])=>new b1({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:r,ref:l,globalIdFactory:this._globalIdFactory,fontCache:i.fontCache,builtInCMapCache:i.builtInCMapCache,standardFontDataCache:i.standardFontDataCache,globalColorSpaceCache:i.globalColorSpaceCache,globalImageCache:i.globalImageCache,systemFontCache:i.systemFontCache,nonBlendModesSet:i.nonBlendModesSet,xfaFactory:s})),this.#t.set(t,n),n}async checkFirstPage(t=!1){if(!t)try{await this.getPage(0)}catch(e){if(e instanceof Es)throw this.#t.delete(0),await this.cleanup(),new gn}}async checkLastPage(t=!1){let{catalog:e,pdfManager:i}=this;e.setActualNumPages();let a;try{if(await Promise.all([i.ensureDoc("xfaFactory"),i.ensureDoc("linearization"),i.ensureCatalog("numPages")]),this.xfaFactory)return;if(a=this.linearization?this.linearization.numPages:e.numPages,!Number.isInteger(a))throw new V("Page count is not an integer.");if(a<=1)return;await this.getPage(a-1)}catch(s){if(this.#t.delete(a-1),await this.cleanup(),s instanceof Es&&!t)throw new gn;E(`checkLastPage - invalid /Pages tree /Count: ${a}.`);let n;try{n=await e.getAllPageDicts(t)}catch(r){if(r instanceof Es&&!t)throw new gn;e.setActualNumPages(1);return}for(let[r,[l,o]]of n){let f;l instanceof Error?(f=Promise.reject(l),f.catch(()=>{})):f=Promise.resolve(new b1({pdfManager:i,xref:this.xref,pageIndex:r,pageDict:l,ref:o,globalIdFactory:this._globalIdFactory,fontCache:e.fontCache,builtInCMapCache:e.builtInCMapCache,standardFontDataCache:e.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:e.globalImageCache,systemFontCache:e.systemFontCache,nonBlendModesSet:e.nonBlendModesSet,xfaFactory:null})),this.#t.set(r,f)}e.setActualNumPages(n.size)}}async fontFallback(t,e){let{catalog:i,pdfManager:a}=this;for(let s of await Promise.all(i.fontCache))if(s.loadedName===t){s.fallback(e,a.evaluatorOptions);return}}async cleanup(t=!1){return this.catalog?this.catalog.cleanup(t):ru()}async#l(t,e,i,a,s,n,r){let{xref:l}=this;if(!(i instanceof it)||n.has(i))return;n.put(i);let o=await l.fetchAsync(i);if(!(o instanceof _))return;let f=await o.getAsync("Subtype");if(f=f instanceof Z?f.name:null,f==="Link")return;if(o.has("T")){let c=Wt(await o.getAsync("T"));t=t===""?c:`${t}.${c}`}else{let c=o,u=new we;for(;;){if(c=c.getRaw("Parent")||e,c instanceof it){if(n.has(c)||u.has(c))break;u.put(c),c=await l.fetchAsync(c)}if(!(c instanceof _))break;if(c.has("T")){let p=Wt(await c.getAsync("T"));t=t===""?p:`${t}.${p}`;break}}}if(e&&!o.has("Parent")&&Ht(o.get("Subtype"),"Widget")&&r.put(i,e),a.getOrInsertComputed(t,Ps).push(_a.create(l,i,s,null,!0,r,null,null).then(c=>c?.getFieldObject()).catch(c=>(E(`#collectFieldObjects: "${c}".`),null))),!o.has("Kids"))return;let h=await o.getAsync("Kids");if(Array.isArray(h))for(let c of h)await this.#l(t,i,c,a,s,n,r)}get fieldObjects(){let t=this.pdfManager.ensureDoc("formInfo").then(async e=>{if(!e.hasFields)return null;let i=await this.annotationGlobals;if(!i)return null;let{acroForm:a}=i,s=new we,n=new Map,r=new Map,l=new ii;for(let f of a.get("Fields"))await this.#l("",null,f,r,i,s,l);let o=[];for(let[f,h]of r)o.push(Promise.all(h).then(c=>{c=c.filter(Boolean),c.length>0&&n.set(f,c)}));return await Promise.all(o),{allFields:n.size?n:null,orphanFields:l}});return ht(this,"fieldObjects",t)}async#o(t,e,i){if(Array.isArray(t))for(let a of t){if(a instanceof it){if(i.has(a))continue;i.put(a)}let s=await this.xref.fetchIfRefAsync(a);if(s instanceof _){if(Ht(await s.getAsync("FT"),"Sig")){let n=await s.getAsync("V");if(n instanceof _){let r=await this.#h(s,n,a);r&&e.push(r)}}s.has("Kids")&&await this.#o(await s.getAsync("Kids"),e,i)}}}async#f(t,e){try{return this.stream.getByteRange(t,e)}catch(i){if(!(i instanceof xe))throw i;return await this.pdfManager.requestRange(t,e),this.#f(t,e)}}async#u(t,e){if(e>0)return!1;let i=this.stream.end;for(let a=t;a<i;a+=g1){let s=Math.min(a+g1,i),n=await this.#f(a,s);for(let r of n)if(r!==0&&r!==9&&r!==10&&r!==12&&r!==13&&r!==32)return!1}return!0}async#h(t,e,i){let a=await e.getAsync("ByteRange");if(!Array.isArray(a)||a.length!==4||a.some(q=>!Number.isInteger(q)||q<0))return null;let[s,n,r,l]=a,o=this.stream.end||0;if(s!==0||n<=0||s+n>r||r+l>o||o===0)return null;let f=await e.getAsync("Contents");if(typeof f!="string"||f.length===0)return null;let[h,c,u,p,m,g,b,w]=await Promise.all([e.getAsync("Filter"),e.getAsync("SubFilter"),t.getAsync("T"),e.getAsync("Name"),e.getAsync("Reason"),e.getAsync("Location"),e.getAsync("ContactInfo"),e.getAsync("M")]),v=h instanceof Z?h.name:null,y=c instanceof Z?c.name:null,x=null;return y==="adbe.pkcs7.detached"?x=0:y==="adbe.pkcs7.sha1"&&(x=1),{id:`${i instanceof it?i.toString():"inline"}:${s}-${n}-${r}-${l}`,fieldName:typeof u=="string"?Wt(u):"",signerName:typeof p=="string"?Wt(p):null,reason:typeof m=="string"?Wt(m):null,location:typeof g=="string"?Wt(g):null,contactInfo:typeof b=="string"?Wt(b):null,signingTime:typeof w=="string"?w:null,filter:v,subFilter:y,signatureType:x,byteRange:a,pkcs7:Be(f),revisionIndex:0,parentId:null}}get signatures(){let t=this.pdfManager.ensureDoc("formInfo").then(async e=>{if(!e.hasSignatures||!e.hasFields)return null;let i=await this.annotationGlobals;if(!i)return null;let a=i.acroForm.get("Fields"),s=[];await this.#o(a,s,new we),await Promise.all(s.map(async l=>{let o=l.byteRange[2]+l.byteRange[3];l.modificationsAfterSignature=this.xref.countUpdatesAfter(o),l.coversWholeDocument=await this.#u(o,l.modificationsAfterSignature)})),s.sort((l,o)=>o.byteRange[2]+o.byteRange[3]-(l.byteRange[2]+l.byteRange[3]));for(let l=0,o=s.length;l<o;l++){let f=s[l];f.revisionIndex=l;for(let h=l-1;h>=0;h--){let c=s[h];if(c.byteRange[2]+c.byteRange[3]>f.byteRange[2]+f.byteRange[3]){f.parentId=c.id;break}}}let n=new Map,r=s.map(l=>{let{pkcs7:o,...f}=l;return n.set(l.id,{byteRange:l.byteRange,pkcs7:o}),f});return this.#e=n,r.length?r:null});return ht(this,"signatures",t)}async getSignatureData(t){await this.signatures;let e=this.#e?.get(t);if(!e)return null;let{byteRange:i,pkcs7:a}=e,[s,n,r,l]=i;return{data:await Promise.all([this.#f(s,s+n),this.#f(r,r+l)]),pkcs7:a}}get hasJSActions(){let t=Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]).then(([e,i])=>e?!0:i?.allFields?i.allFields.values().some(a=>a.some(s=>s.actions!==null)):!1);return ht(this,"hasJSActions",t)}get calculationOrderIds(){let t=this.catalog.acroForm?.get("CO");if(!Array.isArray(t)||t.length===0)return ht(this,"calculationOrderIds",null);let e=[];for(let i of t)i instanceof it&&e.push(i.toString());return ht(this,"calculationOrderIds",e.length?e:null)}get annotationGlobals(){return ht(this,"annotationGlobals",_a.createGlobals(this.pdfManager))}async toJSObject(t,e=!0){throw Error("Not implemented: toJSObject")}};d(pk,"parseDocBaseUrl");pm=class{static{d(this,"BasePdfManager")}constructor({docBaseUrl:t,docId:e,enableXfa:i,evaluatorOptions:a,handler:s,password:n}){this._docBaseUrl=pk(t),this._docId=e,this._password=n,this.enableXfa=i,a.isOffscreenCanvasSupported&&=Ni.isOffscreenCanvasSupported,a.isImageDecoderSupported&&=Ni.isImageDecoderSupported,this.evaluatorOptions=Object.freeze(a),Ga.setOptions(a),Vo.setOptions(a),Da.setOptions(a);let r={...a,handler:s};dl.setOptions(r),Ah.setOptions(r),iu.setOptions(r),qp.setOptions(r),Ko.setOptions(r)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(t,e){return this.ensure(this.pdfDocument,t,e)}ensureCatalog(t,e){return this.ensure(this.pdfDocument.catalog,t,e)}async initDocument(t){await this.ensureDoc("checkHeader"),await this.ensureDoc("parseStartXRef"),await this.ensureDoc("parse",[t]),await this.ensureDoc("checkFirstPage",[t]),await this.ensureDoc("checkLastPage",[t])}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,e){return this.pdfDocument.fontFallback(t,e)}cleanup(t=!1){return this.pdfDocument.cleanup(t)}async ensure(t,e,i){te("Abstract method `ensure` called")}requestRange(t,e){te("Abstract method `requestRange` called")}requestLoadedStream(t=!1){te("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){te("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t,this.pdfDocument.xref.encrypt?.setPassword(t)}terminate(t){te("Abstract method `terminate` called")}},ah=class extends pm{static{d(this,"LocalPdfManager")}constructor(t){super(t);let e=new Me(t.source);this.pdfDocument=new dm(this,e),this._loadedStreamPromise=Promise.resolve(e)}async ensure(t,e,i){let a=t[e];return typeof a=="function"?a.apply(t,i):a}requestLoadedStream(t=!1){return this._loadedStreamPromise}terminate(t){}},mk=class extends pm{static{d(this,"NetworkPdfManager")}constructor(t){super(t),this.streamManager=new Ob(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize}),this.pdfDocument=new dm(this,this.streamManager.getStream())}async ensure(t,e,i){try{let a=t[e];return typeof a=="function"?await a.apply(t,i):a}catch(a){if(!(a instanceof xe))throw a;return await this.requestRange(a.begin,a.end),this.ensure(t,e,i)}}requestRange(t,e){return this.streamManager.requestRange(t,e)}requestLoadedStream(t=!1){return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}},io={DATA:1,ERROR:2},Ze={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};d(k1,"onFn$1");d(ta,"wrapReason$1");v1=class{static{d(this,"MessageHandler$1")}#t=new Map;#e=new Map;#i=1;#a;#s=new AbortController;#n;#r=new Map;#l=1;#o=new Map;#f;constructor(t,e,i){this.#n=t,this.#f=e,this.#a=i,i.addEventListener("message",this.#u.bind(this),{signal:this.#s.signal})}#u({data:t}){if(t.targetName!==this.#n)return;if(t.stream){this.#d(t);return}if(t.callback){let{callbackId:i,callback:a}=t,s=this.#e.get(i);if(!s)throw Error(`Cannot resolve callback ${i}`);if(this.#e.delete(i),a===io.DATA)s.resolve(t.data);else if(a===io.ERROR)s.reject(ta(t.reason));else throw Error("Unexpected callback case");return}let e=this.#t.get(t.action);if(!e)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let i=this.#n,a=t.sourceName,s=this.#a;Promise.try(e,t.data).then(n=>{s.postMessage({sourceName:i,targetName:a,callback:io.DATA,callbackId:t.callbackId,data:n})},n=>{s.postMessage({sourceName:i,targetName:a,callback:io.ERROR,callbackId:t.callbackId,reason:ta(n)})})}else t.streamId?this.#h(t):e(t.data)}on(t,e){let i=this.#t;if(i.has(t))throw Error(`There is already a "${t}" handler.`);i.set(t,e)}send(t,e,i){this.#a.postMessage({sourceName:this.#n,targetName:this.#f,action:t,data:e},i)}sendWithPromise(t,e,i){let a=this.#i++,s=Promise.withResolvers();this.#e.set(a,s);try{this.#a.postMessage({sourceName:this.#n,targetName:this.#f,action:t,callbackId:a,data:e},i)}catch(n){s.reject(n)}return s.promise}sendWithStream(t,e,i,a){let s=this.#l++,n=this.#n,r=this.#f,l=this.#a;return new ReadableStream({start:d(o=>{let f=Promise.withResolvers();return this.#r.set(s,{controller:o,startCall:f,pullCall:null,cancelCall:null,isClosed:!1}),l.postMessage({sourceName:n,targetName:r,action:t,streamId:s,data:e,desiredSize:o.desiredSize},a),f.promise},"start"),pull:d(o=>{let f=Promise.withResolvers();return this.#r.get(s).pullCall=f,l.postMessage({sourceName:n,targetName:r,stream:Ze.PULL,streamId:s,desiredSize:o.desiredSize}),f.promise},"pull"),cancel:d(o=>{Le(o instanceof Error,"cancel must have a valid reason");let f=Promise.withResolvers();return this.#r.get(s).cancelCall=f,this.#r.get(s).isClosed=!0,l.postMessage({sourceName:n,targetName:r,stream:Ze.CANCEL,streamId:s,reason:ta(o)}),f.promise},"cancel")},i)}#h(t){let e=t.streamId,i=this.#n,a=t.sourceName,s=this.#a,n=this.#o,r=this.#t.get(t.action),l={enqueue(o,f=1,h){if(this.isCancelled)return;let c=this.desiredSize;this.desiredSize-=f,c>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:i,targetName:a,stream:Ze.ENQUEUE,streamId:e,chunk:o},h)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:Ze.CLOSE,streamId:e}),n.delete(e))},error(o){Le(o instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:Ze.ERROR,streamId:e,reason:ta(o)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,n.set(e,l),Promise.try(r,t.data,l).then(()=>{s.postMessage({sourceName:i,targetName:a,stream:Ze.START_COMPLETE,streamId:e,success:!0})},o=>{s.postMessage({sourceName:i,targetName:a,stream:Ze.START_COMPLETE,streamId:e,reason:ta(o)})})}#d(t){let e=t.streamId,i=this.#n,a=t.sourceName,s=this.#a,n=this.#r.get(e),r=this.#o.get(e);switch(t.stream){case Ze.START_COMPLETE:t.success?n.startCall.resolve():n.startCall.reject(ta(t.reason));break;case Ze.PULL_COMPLETE:t.success?n.pullCall.resolve():n.pullCall.reject(ta(t.reason));break;case Ze.PULL:if(!r){s.postMessage({sourceName:i,targetName:a,stream:Ze.PULL_COMPLETE,streamId:e,success:!0});break}r.desiredSize<=0&&t.desiredSize>0&&r.sinkCapability.resolve(),r.desiredSize=t.desiredSize,Promise.try(r.onPull||k1).then(()=>{s.postMessage({sourceName:i,targetName:a,stream:Ze.PULL_COMPLETE,streamId:e,success:!0})},o=>{s.postMessage({sourceName:i,targetName:a,stream:Ze.PULL_COMPLETE,streamId:e,reason:ta(o)})});break;case Ze.ENQUEUE:if(Le(n,"enqueue should have stream controller"),n.isClosed)break;n.controller.enqueue(t.chunk);break;case Ze.CLOSE:if(Le(n,"close should have stream controller"),n.isClosed)break;n.isClosed=!0,n.controller.close(),this.#p(n,e);break;case Ze.ERROR:Le(n,"error should have stream controller"),n.controller.error(ta(t.reason)),this.#p(n,e);break;case Ze.CANCEL_COMPLETE:t.success?n.cancelCall.resolve():n.cancelCall.reject(ta(t.reason)),this.#p(n,e);break;case Ze.CANCEL:if(!r)break;let l=ta(t.reason);Promise.try(r.onCancel||k1,l).then(()=>{s.postMessage({sourceName:i,targetName:a,stream:Ze.CANCEL_COMPLETE,streamId:e,success:!0})},o=>{s.postMessage({sourceName:i,targetName:a,stream:Ze.CANCEL_COMPLETE,streamId:e,reason:ta(o)})}),r.sinkCapability.reject(l),r.isCancelled=!0,this.#o.delete(e);break;default:throw Error("Unexpected stream case")}}async#p(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),this.#r.delete(e)}destroy(){this.#s?.abort(),this.#s=null}};d(mm,"writeObject");d(Su,"writeDict");d(gk,"writeStream");d(bk,"writeArray");d(wk,"numberToPDFString");d(ql,"writeValue");d(sh,"writeInt");d(gm,"writeString");d(yk,"computeMD5");d(kk,"writeXFADataForAcroform");d(vk,"updateAcroform");d(jk,"updateXFA");d(qk,"getXRefTable");d(bm,"getIndexes");d(xk,"getXRefStreamTable");d(wm,"computeIDs");d(Ak,"getTrailerDict");d(Sk,"writeChanges");d(ym,"incrementalUpdate");Ck=class{static{d(this,"PageData")}constructor(t,e){this.page=t,this.documentData=e,this.annotations=null,this.pointingNamedDestinations=null,this.copyLevel=0,e.pagesMap.put(t.ref,this)}},Ik=class{static{d(this,"DocumentData")}constructor(t){this.document=t,this.destinations=null,this.pageLabels=null,this.pagesMap=new ii,this.oldRefMapping=new ii,this.dedupNamedDestinations=new Map,this.usedNamedDestinations=new Set,this.postponedRefCopies=new ii,this.resourceStreamPromises=new Map,this.usedStructParents=new Set,this.oldStructParentMapping=new Map,this.structTreeRoot=null,this.parentTree=null,this.idTree=null,this.roleMap=null,this.classMap=null,this.namespaces=null,this.structTreeAF=null,this.structTreePronunciationLexicon=[],this.acroForm=null,this.acroFormDefaultAppearance="",this.acroFormDefaultResources=null,this.acroFormQ=0,this.hasSignatureAnnotations=!1,this.fieldToParent=new ii,this.outline=null,this.embeddedFiles=null}},Tk=class{static{d(this,"XRefWrapper")}constructor(t,e){this.entries=t,this._getNewRef=e}getNewTemporaryRef(){return this._getNewRef()}countUpdatesAfter(t){return null}fetchIfRef(t){return t instanceof it?this.fetch(t):t}fetch(t){if(!(t instanceof it))throw Error("ref object is not a reference");return this.entries[t.num]}async fetchIfRefAsync(t){return t instanceof it?this.fetchAsync(t):t}async fetchAsync(t){return this.fetch(t)}},Mk=class{static{d(this,"PDFEditor")}isSingleFile=!1;#t=null;#e=null;#i=new Map;currentDocument=null;oldPages=[];newPages=[];xref=[null];xrefWrapper=new Tk(this.xref,()=>this.newRef);newRefCount=1;namesDict=null;version="1.7";pageLabels=null;namedDestinations=new Map;parentTree=new Map;structTreeKids=[];idTree=new Map;classMap=new _;roleMap=new _;namespaces=new Map;structTreeAF=[];structTreePronunciationLexicon=[];fields=[];acroFormDefaultAppearance="";acroFormDefaultResources=null;acroFormNeedAppearances=!1;acroFormSigFlags=0;acroFormCalculationOrder=null;acroFormQ=0;outlineItems=null;embeddedFiles=new Map;constructor({useObjectStreams:t=!0,title:e="",author:i=""}={}){[this.rootRef,this.rootDict]=this.newDict,[this.infoRef,this.infoDict]=this.newDict,[this.pagesRef,this.pagesDict]=this.newDict,this.useObjectStreams=t,this.objStreamRefs=t?new Set:null,this.title=e,this.author=i}get newRef(){return it.get(this.newRefCount++,0)}get newDict(){let t=this.newRef;return[t,this.xref[t.num]=new _]}async#a(t,e){let i=this.newRef;return this.xref[i.num]=await this.#s(t,!0,e),i}cloneDict(t){let e=t.clone();return e.xref=this.xrefWrapper,e}async#s(t,e,i,a=new we){if(t instanceof it){let{currentDocument:{fieldToParent:l,oldRefMapping:o}}=this,f=o.get(t);if(f)return f;let h=t;t=await i.fetchAsync(h);let c=o.get(h);if(c)return c;if(typeof t=="number")return t;if(t instanceof Bt&&this.#n(t.dict))return this.#f(h,t,i,a);let u=this.newRef;o.put(h,u);let p=!0;return l.has(h)&&t instanceof _&&(t=this.cloneDict(t),t.delete("Parent"),p=!1),this.xref[u.num]=await this.#s(t,p,i,a),u}let s=[],{currentDocument:{postponedRefCopies:n}}=this;if(Array.isArray(t)){e&&(t=t.slice());for(let l=0,o=t.length;l<o;l++){let f=t[l]instanceof it&&n.get(t[l]);f?f.push(h=>t[l]=h):s.push(this.#s(t[l],!0,i,a).then(h=>t[l]=h))}return await Promise.all(s),t}let r;if(t instanceof Bt?({dict:r}=t=t.getOriginalStream().clone(),r.xref=this.xrefWrapper):t instanceof _&&(e&&(t=t.clone(),t.xref=this.xrefWrapper),r=t),r){for(let[l,o]of r.getRawEntries()){let f=o instanceof it&&n.get(o);f?f.push(h=>r.set(l,h)):s.push(this.#s(o,!0,i,a).then(h=>r.set(l,h)))}await Promise.all(s)}return t}#n(t){let e=t.get("Subtype");return Ht(e,"Image")||t.has("Length1")||Ht(e,"Type1C")||Ht(e,"CIDFontType0C")||Ht(e,"OpenType")}#r(t){let e=t.getOriginalStream();return e.reset(),e.getBytes()}async#l(t){let e=[];return await ql(t,e,null),e.join("")}#o(t,e){let{length:i}=e,a=new o0;if(a.update(t),a.update(`#${i}`),i<=1024)a.update(e);else{let s=Math.floor((i-256)/3);for(let n=0;n<4;n++){let r=Math.min(n*s,i-256);a.update(e.subarray(r,r+256))}}return a.hexdigest()}async#f(t,e,i,a){let{currentDocument:{oldRefMapping:s,resourceStreamPromises:n}}=this;if(a.has(t))return s.getOrPutComputed(t,()=>this.newRef);let r=t.toString(),l=n.get(r);if(l)return l;let o=new we(a);o.put(t);let f=Promise.resolve().then(async()=>{let h=await this.#s(e,!0,i,o),c=s.get(t);if(c)return this.xref[c.num]=h,c;let u=await this.#u(h);return s.put(t,u),u});n.set(r,f);try{return await f}finally{n.get(r)===f&&n.delete(r)}}async#u(t){let e=await this.#l(t.dict),i=this.#r(t),a=this.#o(e,i),s=this.#i.getOrInsertComputed(a,Ps);for(let r of s)if(r.dictStr===e&&jn(this.#r(r.stream),i))return r.ref;let n=this.newRef;return this.xref[n.num]=t,s.push({ref:n,dictStr:e,stream:t}),n}async#h(t,e){if(t instanceof it){let i=await e.fetchAsync(t);return Array.isArray(i)?i:[t]}return Array.isArray(t)?t:[t]}async#d(t,e,i,a,s,n,r,l=new we){let{currentDocument:{pagesMap:o,oldRefMapping:f}}=this,h=e.getRaw("Pg");if(h instanceof it&&!o.has(h))return null;let c=e.getRaw("K");if(c instanceof it&&l.has(c))return null;let u=await this.#h(c,i),p=[],m=[];for(let q of u){let j=q instanceof it?q:null;if(j){if(l.has(j))continue;l.put(j),q=await i.fetchAsync(j)}if(typeof q=="number"){p.push(q);continue}if(!(q instanceof _))continue;let A=q.getRaw("Pg");if(A instanceof it&&!o.has(A))continue;let S=q.get("Type");if(!S||Ht(S,"StructElem")){let C=!1;if(j&&a.has(j)){if(!Ht(q.get("S"),"Link"))continue;C=!0}let M=await this.#d(j,q,i,a,s,n,r,l);M&&(m.push(p.length),p.push(M),j&&f.put(j,M),C&&this.xref[M.num].setIfName("S","Span"))}else if(Ht(S,"OBJR")){if(!j)continue;let C=q.getRaw("Obj");if(C instanceof it&&!f.get(C))continue;let M=f.get(j)||await this.#s(j,!0,i),O=this.xref[M.num].getRaw("Obj");if(O instanceof it){let P=this.xref[O.num];if(P instanceof _&&!P.has("StructParent")&&t){let $=this.parentTree.size;this.parentTree.set($,[f,t]),P.set("StructParent",$)}}p.push(M)}else if(Ht(S,"MCR")){let C=await this.#s(j||q,!0,i);p.push(C)}else if(j){let C=await this.#s(j,!0,i);p.push(C)}}if(u.length!==0&&p.length===0)return null;let g=this.newRef,b=this.xref[g.num]=this.cloneDict(e);b.delete("ID"),b.delete("C"),b.delete("K"),b.delete("P"),b.delete("S"),await this.#s(b,!1,i);let w=e.get("C");if(w instanceof Z){let q=n.get(w.name);b.set("C",q?Z.get(q):w)}else if(Array.isArray(w)){let q=[];for(let j of w)if(j instanceof Z){let A=n.get(j.name);q.push(A?Z.get(A):j)}b.set("C",q)}let v=e.get("S");if(v instanceof Z){let q=r.get(v.name);b.set("S",q?Z.get(q):v)}let y=e.get("ID");if(typeof y=="string"){let q=Wt(y,!1),j=s.get(q);b.set("ID",j?ui(j):y)}let x=b.get("A");if(x){Array.isArray(x)||(x=[x]);for(let q of x)if(q=this.xrefWrapper.fetchIfRef(q),q instanceof _&&Ht(q.get("O"),"Table")&&q.has("Headers")){let j=this.xrefWrapper.fetchIfRef(q.getRaw("Headers"));if(Array.isArray(j))for(let A=0,S=j.length;A<S;A++){let C=this.xrefWrapper.fetchIfRef(j[A]);if(typeof C!="string")continue;let M=s.get(Wt(C,!1));M&&(j[A]=M)}}}for(let q of m){let j=p[q];this.xref[j.num].set("P",g)}return p.length===1?b.set("K",p[0]):p.length>1&&b.set("K",p),g}#p({document:t,includePages:e,excludePages:i}){if(!t)return[];let a=d(o=>{if(!o?.length)return null;let f=new Set,h=[];for(let c of o)Array.isArray(c)?h.push(c):f.add(c);return{indices:f,ranges:h}},"compile"),s=d((o,{indices:f,ranges:h})=>f.has(o)||h.some(([c,u])=>o>=c&&o<=u),"matches"),n=a(e),r=a(i),l=[];for(let o=0,f=t.numPages;o<f;o++)r&&s(o,r)||(!n||s(o,n))&&l.push(o);return l}#g(t){let e=Array(t.length),i=[],a=[];for(let l=0;l<t.length;l++){let o=t[l],f;if(o.image)f=e[l]=1;else if(o.document)f=e[l]=this.#p(o).length;else{e[l]=0;continue}if(!o.pageIndices)if(o.insertAfter===void 0)for(let h=0;h<f;h++)i.push(l);else a.push({i:l,insertAfter:o.insertAfter,count:f})}if(a.length===0)return t;let s=d(l=>!!(l.document||l.image),"hasContent");for(let l=0;l<t.length;l++){let o=t[l];if(s(o)&&o.pageIndices&&o.pageIndices.length<e[l])throw Error("extractPages: partial pageIndices cannot be combined with insertAfter entries.")}if(a.sort((l,o)=>l.insertAfter-o.insertAfter||l.i-o.i),i.length===0&&t.some(l=>s(l)&&l.pageIndices)){let l=t.slice(),o=-1;for(let h of t)if(s(h)&&h.pageIndices)for(let c of h.pageIndices)c>o&&(o=c);let f=0;for(let{i:h,insertAfter:c,count:u}of a){let p=Math.min(Math.max(c,-1)+f,o);for(let b=0;b<l.length;b++){let w=l[b];s(w)&&w.pageIndices&&!w.pageIndices.every(v=>v<=p)&&(l[b]={...w,pageIndices:w.pageIndices.map(v=>v>p?v+u:v)})}let m=[];for(let b=0;b<u;b++)m.push(p+1+b);let g={...l[h],pageIndices:m};delete g.insertAfter,l[h]=g,f+=u,o+=u}return l}let n=0;for(let{i:l,insertAfter:o,count:f}of a){let h=Math.max(o,-1)+1+n;i.splice(h,0,...Array(f).fill(l)),n+=f}let r=Array(t.length);for(let l=0;l<i.length;l++){let o=i[l];(r[o]||=[]).push(l)}return t.map((l,o)=>{if(!s(l)||l.pageIndices)return l;let f={...l,pageIndices:r[o]||[]};return delete f.insertAfter,f})}async extractPages(t,e,i,a,s){this.#e=i,t=this.#g(t);let n=[],r=0,l=d(m=>{if(!Number.isInteger(m)||m<0)throw Error("extractPages: invalid page index.");if(this.oldPages[m]!==void 0)throw Error("extractPages: overlapping pageIndices.");this.oldPages[m]=null},"reservePageSlot"),o=[];e&&(this.#t={handler:a,task:s,newAnnotationsByPage:$c(e),imagesPromises:_a.generateImages(e.values(),this.xrefWrapper,!0)});let f=[];for(let m of t){let{document:g,image:b,includePages:w,excludePages:v,pageIndices:y}=m;if(b){if(y&&(r=-1,y.length>1))throw Error("extractPages: too many pageIndices.");let A;if(y?.length)A=y[0];else if(r!==-1)A=r++;else for(A=0;this.oldPages[A]!==void 0;A++);l(A),f.push({image:b,slot:A});continue}if(!g)continue;y&&(r=-1);let x=this.#p({document:g,includePages:w,excludePages:v});if(y&&y.length>x.length)throw Error("extractPages: too many pageIndices.");let q=new Ik(g);o.push(q),n.push(this.#c(q));let j=0;for(let A of x){let S;if(y&&(S=y[j++]),S===void 0)if(r!==-1)S=r++;else for(S=0;this.oldPages[S]!==void 0;S++);l(S),n.push(g.getPage(A).then(C=>{this.oldPages[S]=new Ck(C,q)}))}}if(await Promise.all(n),this.oldPages.length===0)throw Error("extractPages: nothing to extract.");let h=new Map,c=new Set;for(let m=0,g=this.oldPages.length;m<g;m++){let b=this.oldPages[m];if(b===void 0)throw Error("extractPages: sparse pageIndices.");if(b){let{page:w}=b,v=h.get(w)??0;h.set(w,v+1),b.copyLevel=v,c.add(b.documentData.document)}}this.isSingleFile=c.size===1,n.length=0,this.#v(o),this.#x(o),this.#j();for(let m of this.oldPages)m&&n.push(this.#m(m));await Promise.all(n),this.#q(),this.#b(o);let u=new Map;for(let m of f)u.set(m.slot,m);let p=u.size>0?this.#U():null;for(let m=0,g=this.oldPages.length;m<g;m++){let b=u.get(m);b?this.newPages[m]=await this.#$(b.image,p):this.newPages[m]=await this.#H(m,null)}return this.#w(o),await this.#k(o),await this.#F(o),this.#C(o),await this.#P(o),this.writePDF()}async#c(t){let{document:{pdfManager:e,xref:i}}=t;await Promise.all([e.ensureCatalog("destinations").then(s=>t.destinations=s),e.ensureCatalog("rawPageLabels").then(s=>t.pageLabels=s),e.ensureCatalog("structTreeRoot").then(s=>t.structTreeRoot=s),e.ensureCatalog("acroForm").then(s=>t.acroForm=s),e.ensureCatalog("documentOutlineForEditor").then(s=>t.outline=s),e.ensureCatalog("rawEmbeddedFiles").then(s=>t.embeddedFiles=s)]);let a=t.structTreeRoot;if(a){let s=a.dict,n=s.get("ParentTree");n&&(t.parentTree=new bl(n,i).getAll(!0));let r=s.get("IDTree");r&&(t.idTree=new is(r,i).getAll(!0)),t.roleMap=s.get("RoleMap")||null,t.classMap=s.get("ClassMap")||null;let l=s.get("Namespaces")||null;l&&!Array.isArray(l)&&(l=[l]),t.namespaces=l,t.structTreeAF=s.get("AF")||null,t.structTreePronunciationLexicon=s.get("PronunciationLexicon")||null}}async#m(t){let{page:{xref:e,annotations:i},documentData:{pagesMap:a,destinations:s,usedNamedDestinations:n,fieldToParent:r}}=t;if(!i)return;let l=[],o=[],f=0,{hasSignatureAnnotations:h}=t.documentData;for(let c of i){let u=f++;l.push(e.fetchIfRefAsync(c).then(async p=>{if(!Ht(p.get("Subtype"),"Link")){if(Ht(p.get("Subtype"),"Widget")){h||=Ht(gi({dict:p,key:"FT"}),"Sig");let b=p.getRaw("Parent")||null;r.put(c,b)}o[u]=c;return}let m=p.get("A");if(m instanceof _&&!Ht(m.get("S"),"GoTo")){o[u]=c;return}let g=m instanceof _?m.get("D"):p.get("Dest");if(!g||Array.isArray(g)&&(!(g[0]instanceof it)||a.has(g[0])))o[u]=c;else if(g instanceof Z||typeof g=="string"){let b=Wt(g instanceof Z?g.name:g,!0);s.has(b)&&(o[u]=c,n.add(b))}}))}await Promise.all(l),o=o.filter(Boolean),t.annotations=o.length>0?o:null,t.documentData.hasSignatureAnnotations||=h}#b(t){for(let{postponedRefCopies:e,pagesMap:i}of t)for(let a of i.keys())e.put(a,[])}#w(t){for(let{postponedRefCopies:e,oldRefMapping:i}of t){for(let[a,s]of e.items()){let n=i.get(a);for(let r of s)r(n)}e.clear()}}#y(t,e,i=new we){if(t instanceof it){i.has(t)||(i.put(t),this.#y(this.xref[t.num],e,i));return}if(Array.isArray(t)){for(let s of t)this.#y(s,e,i);return}let a;if(t instanceof Bt?{dict:a}=t:t instanceof _&&(a=t),a){e(a);for(let s of a.getRawValues())this.#y(s,e,i)}}async#k(t){let e=0,{parentTree:i}=this;for(let h=0,c=this.newPages.length;h<c;h++){if(!this.oldPages[h])continue;let{documentData:{parentTree:u,oldRefMapping:p,oldStructParentMapping:m,usedStructParents:g,document:{xref:b}}}=this.oldPages[h];if(!u)continue;let w=this.newPages[h],v=this.xref[w.num],y=new we;y.put(w),this.#y(v,x=>{let q=x.get("StructParent")??x.get("StructParents");if(typeof q!="number")return;g.add(q);let j=u.get(q),A=j instanceof it?j:null;if(A){let C=b.fetch(A);Array.isArray(C)&&(j=C)}if(Array.isArray(j)&&j.every(C=>C===null)&&(j=null),!j){x.has("StructParent")?x.delete("StructParent"):x.delete("StructParents");return}let S=m.get(q);S===void 0&&(S=e++,m.set(q,S),i.set(S,[p,j])),x.has("StructParent")?x.set("StructParent",S):x.set("StructParents",S)},y)}let{structTreeKids:a,idTree:s,classMap:n,roleMap:r,namespaces:l,structTreeAF:o,structTreePronunciationLexicon:f}=this;for(let h of t){let{document:{xref:c},oldRefMapping:u,parentTree:p,usedStructParents:m,structTreeRoot:g,idTree:b,classMap:w,roleMap:v,namespaces:y,structTreeAF:x,structTreePronunciationLexicon:q}=h;if(!g)continue;this.currentDocument=h;let j=new we;for(let[P,$]of p||[])!m.has(P)&&$ instanceof it&&j.put($);let A=new Map;for(let[P,$]of b||[]){let tt=P;if(s.has(P))for(let K=1;;K++){let z=`${P}_${K}`;if(!s.has(z)){A.set(P,z),tt=z;break}}s.set(tt,$)}let S=new Map;if(w?.size>0)for(let[P,$]of w){if($=await this.#s($,!0,c),n.has(P))for(let tt=1;;tt++){let K=`${P}_${tt}`;if(!n.has(K)){S.set(P,K),P=K;break}}n.set(P,$)}let C=new Map;if(v?.size>0)for(let[P,$]of v){let tt=r.get(P);if(!tt)r.set(P,$);else if(tt!==$)for(let K=1;;K++){let z=`${P}_${K}`;if(!r.has(z)){C.set(P,z),r.set(z,$);break}}}if(y?.length>0)for(let P of y){let $=await c.fetchIfRefAsync(P),tt=$.get("NS");if(!tt||l.has(tt))continue;tt=Wt(tt,!1);let K=await this.#s($,!0,c);l.set(tt,K)}if(x)for(let P of x)o.push(await this.#s(P,!0,c));if(q)for(let P of q)f.push(await this.#s(P,!0,c));let M=g.dict.getRaw("K");if(!M)continue;let O=await this.#h(M,c);for(let P of O){let $=P instanceof it?P:null;if(P=await c.fetchIfRefAsync(P),!(P instanceof _))continue;let tt=!1;if($&&j.has($)){if(!Ht(P.get("S"),"Link"))continue;tt=!0}let K=await this.#d($,P,c,j,A,S,C);K&&(a.push(K),$&&u.put($,K),tt&&this.xref[K.num].setIfName("S","Span"))}for(let[P,$]of b||[]){let tt=$ instanceof it&&u.get($),K=A.get(P)||P;tt?s.set(K,tt):s.delete(K)}}for(let[h,[c,u]]of i){if(!u){i.delete(h);continue}if(!Array.isArray(u)){let m=c.get(u);m===void 0?i.delete(h):i.set(h,m);continue}let p=u.map(m=>m instanceof it&&c.get(m)||null);p.length===0||p.every(m=>m===null)?i.delete(h):i.set(h,p)}this.currentDocument=null}#v(t){for(let e of t){if(!e.destinations)continue;let{destinations:i,pagesMap:a}=e,s=e.destinations=new Map;for(let[n,r]of i){let l=r[0],o=l instanceof it&&a.get(l);o&&((o.pointingNamedDestinations||=new Set).add(n),s.set(n,r))}}}#q(){let{namedDestinations:t}=this,e=d(i=>{if(!t.has(i))return i;for(let a=1;;a++){let s=`${i}_${a}`;if(!t.has(s))return s}},"getUniqueDestinationName");for(let i=0,a=this.oldPages.length;i<a;i++){let s=this.oldPages[i];if(!s)continue;let{documentData:{destinations:n,dedupNamedDestinations:r,usedNamedDestinations:l}}=s,{pointingNamedDestinations:o}=s;if(o){s.pointingNamedDestinations=o=o.intersection(l);for(let f of o){if(!l.has(f))continue;let h=n.get(f).slice();if(!t.has(f)){t.set(f,h);continue}let c=e(`${f}_p${i+1}`);r.set(f,c),t.set(c,h)}}}}#A(t,e){if(e.size===0)return;let i=d((a,s,n)=>{typeof n=="string"&&a.set(s,e.get(Wt(n,!0))||n)},"fixDestination");for(let a of t){let s=this.xref[a.num];if(!Ht(s.get("Subtype"),"Link"))continue;let n=s.get("A");n instanceof _&&n.has("D")?i(n,"D",n.get("D")):i(s,"Dest",s.get("Dest"))}}#x(t){let e=d((i,a,s)=>{for(let n of i)typeof n.dest=="string"&&a?.has(n.dest)&&s.add(n.dest),n.items.length>0&&e(n.items,a,s)},"collect");for(let i of t){let{outline:a,destinations:s,usedNamedDestinations:n}=i;a?.length&&e(a,s,n)}}#T(t,e){let{dest:i,action:a,url:s,unsafeUrl:n,attachment:r,setOCGState:l}=t;if(a||s||n||r||l)return!0;if(!i)return!1;if(typeof i=="string"){let o=e.dedupNamedDestinations.get(i)||i;return this.namedDestinations.has(o)}return Array.isArray(i)&&i[0]instanceof it&&!!e.oldRefMapping.get(i[0])}#I(t,e){let i=[];for(let a of t){let s=this.#I(a.items,e),n=this.#T(a,e);(n||s.length>0)&&i.push({...a,dest:n?a.dest:null,rawDict:n?a.rawDict:null,items:s,_documentData:e})}return i}#C(t){let e=[];for(let i of t){let{outline:a}=i;a?.length&&e.push(...this.#I(a,i))}this.outlineItems=e.length>0?e:null}async#E(t,e){let{dest:i,rawDict:a}=e,s=e._documentData;if(i){if(typeof i=="string"){let r=s.dedupNamedDestinations.get(i)||i;t.set("Dest",ui(r))}else if(Array.isArray(i)){let r=i.slice();r[0]instanceof it&&(r[0]=s.oldRefMapping.get(r[0])||r[0]),t.set("Dest",r)}return}let n=a?.get("A");if(n instanceof _){this.currentDocument=s;let r=await this.#a(n,s.document.xref);this.currentDocument=null,t.set("A",r)}}async#M(){let{outlineItems:t}=this;if(!t?.length)return;let[e,i]=this.newDict;i.setIfName("Type","Outlines");let a=d(r=>{for(let l of r)[l._ref]=this.newDict,l.items.length>0&&a(l.items)},"assignRefs");a(t);let s=d(async(r,l)=>{let o=0;for(let f=0;f<r.length;f++){let h=r[f],c=this.xref[h._ref.num];if(c.set("Title",ui(h.title)),c.set("Parent",l),f>0&&c.set("Prev",r[f-1]._ref),f<r.length-1&&c.set("Next",r[f+1]._ref),h.items.length>0){c.set("First",h.items[0]._ref),c.set("Last",h.items.at(-1)._ref);let p=await s(h.items,h._ref);h.count!==void 0&&c.set("Count",h.count<0?-p:p),o+=h.count!==void 0&&h.count<0?1:p+1}else o+=1;await this.#E(c,h);let u=(h.bold?2:0)|!!h.italic;u!==0&&c.set("F",u),h.color&&(h.color[0]!==0||h.color[1]!==0||h.color[2]!==0)&&c.set("C",[h.color[0]/255,h.color[1]/255,h.color[2]/255])}return o},"fillItems"),n=await s(t,e);i.set("First",t[0]._ref),i.set("Last",t.at(-1)._ref),i.set("Count",n),this.rootDict.set("Outlines",e)}async#F(t){this.#_(t),this.#G(t),this.#D(t),await this.#O(t);let e=this.fields;for(let i of t){let a=i.acroForm?.get("Fields")||null;!a&&i.fieldToParent.size>0&&(a=this.#z(i.fieldToParent,i.document.xref)),Array.isArray(a)&&a.length>0&&(this.currentDocument=i,await this.#S(e,a),this.currentDocument=null)}this.#B(t)}#D(t){let e=0,i=null;for(let a of t){let s=a.acroForm?.get("Q");typeof s=="number"&&s!==0&&(i?.acroFormQ>0?a.acroFormQ=s:e===0?(e=s,i=a):s!==e&&(i.acroFormQ||=e,a.acroFormQ=s,e=0))}e>0&&(this.acroFormQ=e)}#_(t){let e=0,i=!1;for(let a of t){if(!a.acroForm)continue;let s=a.acroForm.get("SigFlags");typeof s=="number"&&a.hasSignatureAnnotations&&(e|=s),a.acroForm.get("NeedAppearances")===!0&&(i=!0)}this.acroFormSigFlags=e,this.acroFormNeedAppearances=i}#B(t){let e=[];for(let i of t){let a=i.acroForm?.get("CO")||null;if(!Array.isArray(a))continue;let{oldRefMapping:s}=i;for(let n of a){let r=n instanceof it&&s.get(n);r&&e.push(r)}}this.acroFormCalculationOrder=e.length>0?e:null}#G(t){let e=null,i=null;for(let a of t){let s=a.acroForm?.get("DA")||null;s&&typeof s=="string"&&(i?.acroFormDefaultAppearance?a.acroFormDefaultAppearance=s:e?s!==e&&(i.acroFormDefaultAppearance||=e,a.acroFormDefaultAppearance=s,e=null):(e=s,i=a))}e&&(this.acroFormDefaultAppearance=e)}async#O(t){let e=null,i=null,a=null;for(let s of t){let n=s.acroForm?.get("DR")||null;n&&n instanceof _&&(a?.acroFormDefaultResources?s.acroFormDefaultResources=n:e?vh(e,n)||(a.acroFormDefaultResources||=e,s.acroFormDefaultResources=n,e=null,i=null):(e=n,i=s.acroForm.getRaw("DR"),a=s))}e&&(this.currentDocument=a,this.acroFormDefaultResources=await this.#s(i,!0,a.document.xref),this.currentDocument=null)}#z(t,e){let i=[],a=new we;for(let[s,n]of t.items()){if(!n){i.push(s);continue}let r=n,l=n,o=new we;for(;;){if(r instanceof it){if(o.has(r))break;o.put(r)}let f=e.fetchIfRef(r);if(!(f instanceof _)||(r=f.getRaw("Parent")||null,!r))break;l=r}l instanceof it&&!a.has(l)&&(i.push(l),a.put(l))}return i}async#S(t,e){let i=new we,a=[{kids:e,newKids:t,pos:0,oldParentRef:null,parentRef:null,parent:null}],{document:{xref:s},oldRefMapping:n,fieldToParent:r,acroFormDefaultAppearance:l,acroFormDefaultResources:o,acroFormQ:f}=this.currentDocument,h=[],c=[];for(;a.length>0;){let m=a.at(-1),{kids:g,newKids:b,parent:w,pos:v}=m;if(v===g.length){if(a.pop(),b.length===0||!w)continue;let A=this.xref[m.parentRef.num]=this.cloneDict(w);if(A.delete("Parent"),A.delete("Kids"),await this.#s(A,!1,s),A.set("Kids",b),a.length>0){let S=a.at(-1);if(!S.parentRef&&S.oldParentRef){let C=S.parentRef=this.newRef;A.set("Parent",C),n.put(S.oldParentRef,C)}S.newKids.push(m.parentRef)}continue}let y=g[m.pos++];if(!(y instanceof it)||i.has(y))continue;i.put(y);let x=s.fetchIfRef(y);if(!(x instanceof _))continue;if(x.has("Kids")){let A=x.get("Kids");if(!Array.isArray(A))continue;a.push({kids:A,newKids:[],pos:0,oldParentRef:y,parentRef:null,parent:x});continue}if(!r.has(y))continue;let q=n.get(y);if(!q)continue;b.push(q),!m.parentRef&&m.oldParentRef&&(m.parentRef=this.newRef,n.put(m.oldParentRef,m.parentRef));let j=this.xref[q.num];m.parentRef&&j.set("Parent",m.parentRef),l&&!j.has("DA")&&h.push(j),o&&!j.has("Kids")&&j.get("AP")instanceof _&&c.push(j),f&&!j.has("Q")&&j.set("Q",f)}for(let m of h)Ht(gi({dict:m,key:"FT"}),"Tx")&&(gi({dict:m,key:"DA"})||m.set("DA",l));let u=new Map,p=d(async m=>{let g=m.dict.getRaw("Resources");if(g&&=this.xrefWrapper.fetchIfRef(g),!(g instanceof _)){let b=await u.getOrInsertComputed(o,()=>this.#a(o,s));m.dict.set("Resources",b)}else for(let[b,w]of o.getRawEntries()){if(g.has(b))continue;let v=w;w instanceof it?v=await this.#s(w,!0,s):(w instanceof _||w instanceof Bt||Array.isArray(w))&&(v=await u.getOrInsertComputed(w,()=>this.#a(w,s))),g.set(b,v)}},"fixAppearanceResources");for(let m of c){let g=m.get("AP");for(let[,b]of g)if(b instanceof Bt)await p(b);else if(b instanceof _)for(let[,w]of b)w instanceof Bt&&await p(w)}}async#j(){if(!this.isSingleFile)return;let t=this.oldPages.find(h=>!!h);if(!t)return;let{documentData:{document:e,pageLabels:i}}=t;if(!i)return;let a=e.numPages,s=new Map,n=new Set(this.oldPages.filter(Boolean).map(({page:{pageIndex:h}})=>h)),r=null,l=-1;for(let h=0;h<a;h++){let c=i.get(h);if(c&&(r=c,l=r.has("St")?h:-1),n.has(h)){if(l!==-1){let u=r.get("St");r=this.cloneDict(r),r.set("St",u+(h-l)),l=-1}s.set(h,r)}}let o=d(h=>{let c=new _;return c.setIfName("S","D"),c.set("St",h+1),c},"defaultLabel");r=null;let f=this.pageLabels=[];for(let h=0,c=this.oldPages.length;h<c;h++){let u=this.oldPages[h],p=u&&s.get(u.page.pageIndex)||o(h);p!==r&&(r=p,f.push([h,r]))}}async#H(t){let{page:e,documentData:i,annotations:a,pointingNamedDestinations:s,copyLevel:n}=this.oldPages[t];this.currentDocument=i;let{dedupNamedDestinations:r,oldRefMapping:l}=i,{xref:o,rotate:f,mediaBox:h,resources:c,ref:u}=e,p=this.newRef,m=this.xref[p.num]=this.cloneDict(e.pageDict);if(l.put(u,p),s)for(let y of s){let x=r.get(y)||y,q=this.namedDestinations.get(x);q[0]=p}for(let y of["Rotate","MediaBox","CropBox","BleedBox","TrimBox","ArtBox","Resources","Annots","Parent","UserUnit"])m.delete(y);let g=this.newRefCount;await this.#s(m,!1,o),m.set("Rotate",f),m.set("MediaBox",h);for(let y of["CropBox","BleedBox","TrimBox","ArtBox"]){let x=e.getBoundingBox(y);x?.some((q,j)=>q!==h[j])&&m.set(y,x)}let b=e.userUnit;b!==1&&m.set("UserUnit",b),m.setIfDict("Resources",await this.#s(c,!0,o));let w=null;if(a){let y=await this.#s(a,!0,o);this.#A(y,r),Array.isArray(y)&&y.length>0&&(w=y)}let v=i.document===this.#e?this.#t?.newAnnotationsByPage?.get(e.pageIndex)?.filter(({copyLevel:y})=>(y??0)===n):null;if(v?.length){let{handler:y,task:x,imagesPromises:q}=this.#t,j=new ii,A=await _a.saveNewAnnotations(e._createPartialEvaluator(y),this.xrefWrapper,x,v,q,j);for(let[S,{data:C}]of j.items())this.xref[S.num]=C;w||=[];for(let{ref:S}of A.annotations)w.push(S)}if(m.setIfArray("Annots",w),this.useObjectStreams){let y=this.newRefCount,x=[];for(let q=g;q<y;q++)this.xref[q]instanceof Bt||x.push(it.get(q,0));for(let q=0;q<x.length;q+=65535){let j=this.newRef;this.objStreamRefs.add(j.num),this.xref[j.num]=x.slice(q,q+65535)}}return this.currentDocument=null,p}#U(){let t=new Map;for(let i of this.oldPages){if(!i)continue;let{page:a}=i,[s,n,r,l]=a.view,o=r-s,f=l-n;if(o<=0||f<=0)continue;a.rotate%180!=0&&([o,f]=[f,o]);let h=`${o}x${f}`,c=t.get(h);c?c.count++:t.set(h,{width:o,height:f,count:1})}if(t.size===0){let[,,i,a]=um;return{width:i,height:a}}let e=null;for(let i of t.values())(!e||i.count>e.count||i.count===e.count&&i.width*i.height>e.width*e.height)&&(e=i);return{width:e.width,height:e.height}}async#$(t,e){let{width:i,height:a}=e,s=i*.1,n=Math.max(1,i-2*s),r=Math.max(1,a-2*s),l=this.newRefCount,{imageStream:o,smaskStream:f,width:h,height:c}=await b0(t,this.xrefWrapper,{closeBitmap:!0}),u=Math.min(n/h,r/c),p=h*u,m=c*u,g=(i-p)/2,b=(a-m)/2;if(f){let S=this.newRef;this.xref[S.num]=f,o.dict.set("SMask",S)}let w=this.newRef;this.xref[w.num]=o;let v=new _(this.xrefWrapper);v.set("Im0",w);let y=new _(this.xrefWrapper);y.set("XObject",v),y.set("ProcSet",[Z.get("PDF"),Z.get("ImageC")]);let x=new qi(`q ${qe(p)} 0 0 ${qe(m)} ${qe(g)} ${qe(b)} cm /Im0 Do Q`,new _(this.xrefWrapper)),q=this.newRef;this.xref[q.num]=x;let j=this.newRef,A=this.xref[j.num]=new _(this.xrefWrapper);if(A.setIfName("Type","Page"),A.set("MediaBox",[0,0,i,a]),A.set("Resources",y),A.set("Contents",q),this.useObjectStreams){let S=this.newRefCount,C=[];for(let M=l;M<S;M++)this.xref[M]instanceof Bt||C.push(it.get(M,0));for(let M=0;M<C.length;M+=65535){let O=this.newRef;this.objStreamRefs.add(O.num),this.xref[O.num]=C.slice(M,M+65535)}}return j}#Y(){let{newPages:t,rootDict:e,pagesRef:i,pagesDict:a}=this;e.set("Pages",i),a.setIfName("Type","Pages"),a.set("Count",t.length);let s=[{dict:a,kids:t,parentRef:i}];for(;s.length>0;){let{dict:n,kids:r,parentRef:l}=s.pop();if(r.length<=16){n.set("Kids",r);for(let c of r)this.xref[c.num].set("Parent",l);continue}let o=Math.max(16,Math.ceil(r.length/16)),f=[];for(let c=0;c<r.length;c+=o)f.push(r.slice(c,c+o));let h=[];n.set("Kids",h);for(let c of f){let[u,p]=this.newDict;h.push(u),p.setIfName("Type","Pages"),p.set("Parent",l),p.set("Count",c.length),s.push({dict:p,kids:c,parentRef:u})}}}#N(t,e){let i=t.sort(e?([l],[o])=>l<o?-1:+(l>o):([l],[o])=>l-o),[a,s]=this.newDict,n=[{dict:s,entries:i,isRoot:!0}],r=e?"Names":"Nums";for(;n.length>0;){let{dict:l,entries:o,isRoot:f}=n.pop();if(o.length<=64){f||l.set("Limits",[o[0][0],o.at(-1)[0]]),l.set(r,o.flat());continue}let h=[],c=Math.max(64,Math.ceil(o.length/64));for(let p=0;p<o.length;p+=c)h.push(o.slice(p,p+c));let u=[];l.set("Kids",u);for(let p of h){let[m,g]=this.newDict;u.push(m),g.set("Limits",[p[0][0],p.at(-1)[0]]),n.push({dict:g,entries:p})}}return a}#X(){let{pageLabels:t}=this;if(!t?.length)return;let{rootDict:e}=this,i=this.#N(this.pageLabels,!1);e.set("PageLabels",i)}async#P(t){let{embeddedFiles:e}=this;for(let i of t){let{embeddedFiles:a,document:{xref:s}}=i;if(a?.size){this.currentDocument=i;for(let[n,r]of a){let l=n;if(e.has(l)){let o=Wt(n,!0);for(let f=1;;f++){let h=ui(`${o}_${f}`);if(!e.has(h)){l=h;break}}}e.set(l,await this.#s(r,!0,s))}this.currentDocument=null}}}#W(){let{embeddedFiles:t}=this;t.size!==0&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set("Names",this.namesRef)),this.namesDict.set("EmbeddedFiles",this.#N(Array.from(t.entries()),!0)))}#V(){let{namedDestinations:t}=this;t.size!==0&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set("Names",this.namesRef)),this.namesDict.set("Dests",this.#N(Array.from(t,([e,i])=>[ui(e),i]),!0)))}#Q(){let{structTreeKids:t}=this;if(!t?.length)return;let{rootDict:e}=this,i=this.newRef,a=this.xref[i.num]=new _;a.setIfName("Type","StructTreeRoot"),a.setIfArray("K",t);for(let s of t){let n=this.xref[s.num],r=n.get("Type");(!r||Ht(r,"StructElem"))&&n.set("P",i)}if(this.parentTree.size>0){let s=this.#N(Array.from(this.parentTree.entries()),!1);this.xref[s.num].setIfName("Type","ParentTree"),a.set("ParentTree",s);let n=0;for(let r of this.parentTree.keys())n=Math.max(n,r+1);a.set("ParentTreeNextKey",n)}if(this.idTree.size>0){let s=this.#N(Array.from(this.idTree.entries()),!0);this.xref[s.num].setIfName("Type","IDTree"),a.set("IDTree",s)}if(this.classMap.size>0){let s=this.newRef;this.xref[s.num]=this.classMap,a.set("ClassMap",s)}if(this.roleMap.size>0){let s=this.newRef;this.xref[s.num]=this.roleMap,a.set("RoleMap",s)}if(this.namespaces.size>0){let s=this.newRef;this.xref[s.num]=Array.from(this.namespaces.values()),a.set("Namespaces",s)}if(this.structTreeAF.length>0){let s=this.newRef;this.xref[s.num]=this.structTreeAF,a.set("AF",s)}if(this.structTreePronunciationLexicon.length>0){let s=this.newRef;this.xref[s.num]=this.structTreePronunciationLexicon,a.set("PronunciationLexicon",s)}e.set("StructTreeRoot",i)}#Z(){if(this.fields.length===0)return;let{rootDict:t}=this,e=this.newRef,i=this.xref[e.num]=new _;t.set("AcroForm",e),i.set("Fields",this.fields),this.acroFormNeedAppearances&&i.set("NeedAppearances",!0),this.acroFormSigFlags>0&&i.set("SigFlags",this.acroFormSigFlags),i.setIfArray("CO",this.acroFormCalculationOrder),i.setIfDefined("DR",this.acroFormDefaultResources),this.acroFormDefaultAppearance&&i.set("DA",this.acroFormDefaultAppearance),this.acroFormQ>0&&i.set("Q",this.acroFormQ)}async#L(){let{rootDict:t}=this;t.setIfName("Type","Catalog"),t.setIfName("Version",this.version),this.#Z(),this.#Y(),this.#X(),this.#W(),this.#V(),this.#Q(),await this.#M()}#J(){let t=new Map;if(this.isSingleFile){let{xref:{trailer:e}}=this.oldPages.find(a=>!!a).documentData.document,i=e.get("Info");for(let[a,s]of i||[])typeof s=="string"&&t.set(a,Wt(s))}t.delete("ModDate"),t.set("CreationDate",Bs()),t.set("Creator","PDF.js"),t.set("Producer","Firefox"),this.author&&t.set("Author",this.author),this.title&&t.set("Title",this.title);for(let[e,i]of t)this.infoDict.set(e,ui(i));return t}async#tt(){if(!this.isSingleFile)return[null,null,null];let{documentData:t}=this.oldPages.find(n=>!!n),{document:{xref:{trailer:e,encrypt:i}}}=t;if(!e.has("Encrypt"))return[null,null,null];let a=e.get("Encrypt");if(!(a instanceof _))return[null,null,null];this.currentDocument=t;let s=[await this.#a(a,e.xref),i,e.get("ID")];return this.currentDocument=null,s}async#at(){let t=new ii;t.put(it.get(0,65535),{data:null});for(let e=1,i=this.xref.length;e<i;e++)this.objStreamRefs?.has(e)?await this.#st(it.get(e,0),this.xref[e],t):t.put(it.get(e,0),{data:this.xref[e]});return[t,this.newRef]}async#st(t,e,i){let a=[""],s=[],n=0,r=[];for(let f=0,h=e.length;f<h;f++){let c=e[f];i.put(c,{data:null,objStreamRef:t,index:f}),s.push(`${c.num} ${n}`);let u=this.xref[c.num];await ql(u,r,null);let p=r.join("");r.length=0,a.push(p),n+=p.length+1}a[0]=s.join(`
|
|
50
|
+
`);let l=new _;l.setIfName("Type","ObjStm"),l.set("N",e.length),l.set("First",a[0].length+1);let o=new qi(a.join(`
|
|
51
|
+
`),l);i.put(t,{data:o})}async writePDF(){await this.#L();let t=this.#J(),[e,i,a]=await this.#tt(),[s,n]=await this.#at();return ym({originalData:Be(`%PDF-${this.version}
|
|
52
|
+
%\xFA\xDE\xFA\xCE`),changes:s,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:e,newRef:n,fileIds:a||[null,null],infoMap:t},useXrefStream:this.useObjectStreams,xref:{encrypt:i,encryptRef:e}})}},_k=class{static{d(this,"BasePDFStream$1")}#t=null;#e=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(t,e,i){this._source=t,this.#t=e,this.#e=i}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return Le(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new this.#t(this)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let i=new this.#e(this,t,e);return this._rangeReaders.add(i),i}cancelAllRequests(t){this._fullReader?.cancel(t);for(let e of new Set(this._rangeReaders))e.cancel(t)}},Ek=class{static{d(this,"BasePDFStreamReader$1")}onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(t){this._stream=t}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){te("Abstract method `read` called")}cancel(t){te("Abstract method `cancel` called")}},Fk=class{static{d(this,"BasePDFStreamRangeReader$1")}_stream=null;constructor(t,e,i){this._stream=t}async read(){te("Abstract method `read` called")}cancel(t){te("Abstract method `cancel` called")}},Rk=class extends _k{static{d(this,"PDFWorkerStream")}constructor(t){super(t,Dk,Pk)}},Dk=class extends Ek{static{d(this,"PDFWorkerStreamReader")}_reader=null;constructor(t){super(t);let{msgHandler:e}=t._source,i=e.sendWithStream("GetReader");this._reader=i.getReader(),e.sendWithPromise("ReaderHeadersReady").then(a=>{this._contentLength=a.contentLength,this._isStreamingSupported=a.isStreamingSupported,this._isRangeSupported=a.isRangeSupported,this._headersCapability.resolve()},this._headersCapability.reject)}async read(){let{value:t,done:e}=await this._reader.read();return e?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}},Pk=class extends Fk{static{d(this,"PDFWorkerStreamRangeReader")}_reader=null;constructor(t,e,i){super(t,e,i);let{msgHandler:a}=t._source,s=a.sendWithStream("GetRangeReader",{begin:e,end:i});this._reader=s.getReader()}async read(){let{value:t,done:e}=await this._reader.read();return e?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}},es=class{static{d(this,"WorkerTask")}#t=Promise.withResolvers();terminated=!1;constructor(t){this.name=t}get finished(){return this.#t.promise}finish(){this.#t.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw Error("Worker task was terminated")}},Bk=class{static{d(this,"WorkerMessageHandler")}static{typeof window>"u"&&!zg&&typeof self<"u"&&typeof self.postMessage=="function"&&"onmessage"in self&&this.initializeFromPort(self)}static setup(t,e){t.on("configure",i=>{Wg(i.verbosity)}),t.on("GetDocRequest",i=>this.createDocumentHandler(i,e))}static createDocumentHandler(t,e){let i,a=!1,s=null,n=new Set,{docId:r,apiVersion:l}=t,o="6.4.299";if(l!==o)throw Error(`The API version "${l}" does not match the Worker version "${o}".`);let f=d((y,x)=>`The \`${y}.prototype\` contains unexpected enumerable property "${x}", thus breaking e.g. \`for...in\` iteration of ${y}s.`,"buildMsg");for(let y in{})throw Error(f("Object",y));for(let y in[])throw Error(f("Array",y));let h=r+"_worker",c=new v1(h,r,e);function u(){if(a)throw Error("Worker was terminated")}d(u,"ensureNotTerminated");function p(y){n.add(y)}d(p,"startWorkerTask");function m(y){y.finish(),n.delete(y)}d(m,"finishWorkerTask");async function g(y){await i.initDocument(y);let x=await i.ensureDoc("isPureXfa");if(x){let A=new es("loadXfaResources");p(A),await i.ensureDoc("loadXfaResources",[c,A]),m(A)}let[q,j]=await Promise.all([i.ensureDoc("numPages"),i.ensureDoc("fingerprints")]);return{numPages:q,fingerprints:j,htmlForXfa:x?await i.ensureDoc("htmlForXfa"):null}}d(g,"loadDocument");async function b({data:y,password:x,disableAutoFetch:q,rangeChunkSize:j,docBaseUrl:A,enableXfa:S,evaluatorOptions:C}){let M={source:null,disableAutoFetch:q,docBaseUrl:A,docId:r,enableXfa:S,evaluatorOptions:C,handler:c,length:0,password:x,rangeChunkSize:j};if(y)return M.source=y,new ah(M);let O=new Rk({msgHandler:c}),P=O.getFullReader(),{promise:$,resolve:tt,reject:K}=Promise.withResolvers(),z,B=[];s=d(Q=>O.cancelAllRequests(Q),"cancelXHRs"),P.headersReady.then(()=>{if(P.isRangeSupported){M.source=O,M.length=P.contentLength,M.disableAutoFetch||=P.isStreamingSupported,z=new mk(M);for(let Q of B)z.sendProgressiveData(Q);B=null,tt(z),s=null}}).catch(Q=>{K(Q),s=null});async function G(){let Q=0;for(;;){let{value:yt,done:It}=await P.read();if(u(),It)break;Q+=yt.byteLength,P.isStreamingSupported||c.send("DocProgress",{loaded:Q,total:P.contentLength}),z?z.sendProgressiveData(yt):B.push(yt)}z||(M.source=op(B),B=null,z=new ah(M),tt(z)),s=null}return d(G,"readData"),G().catch(Q=>{K(Q),s=null}),$}d(b,"getPdfManager");async function w(y){let x=new es(`PasswordException: response ${y.code}`);p(x);try{return(await c.sendWithPromise("PasswordRequest",y)).password}finally{Promise.resolve().then(()=>{m(x)})}}d(w,"getPassword");function v(y){function x(A){u(),c.send("GetDoc",{pdfInfo:A})}d(x,"onSuccess");function q(A){a||(A instanceof hs?w(A).then(S=>{i.updatePassword(S),j()}).catch(()=>{c.send("DocException",A)}):c.send("DocException",ta(A)))}d(q,"onFailure");function j(){u(),g(!1).then(x,function(A){u(),A instanceof gn?i.requestLoadedStream().then(function(){u(),g(!0).then(x,q)},q):q(A)})}d(j,"pdfManagerReady"),u(),b(y).then(function(A){if(a)throw A.terminate(new yi("Worker was terminated.")),Error("Worker was terminated");i=A,i.requestLoadedStream(!0).then(S=>{c.send("DataLoaded",{length:S.bytes.byteLength})},()=>{})}).then(j,q)}return d(v,"setupDoc"),c.on("GetPage",async function({pageIndex:y}){let x=await i.getPage(y),[q,j,A,S]=await Promise.all([i.ensure(x,"rotate"),i.ensure(x,"ref"),i.ensure(x,"userUnit"),i.ensure(x,"view")]);return{rotate:q,ref:j,refStr:j?.toString()??null,userUnit:A,view:S}}),c.on("GetPageIndex",function({num:y,gen:x}){return i.ensureCatalog("getPageIndex",[it.get(y,x)])}),c.on("GetDestinations",function(){return i.ensureCatalog("destinations")}),c.on("GetDestination",function({id:y}){return i.ensureCatalog("getDestination",[y])}),c.on("GetPageLabels",function(){return i.ensureCatalog("pageLabels")}),c.on("GetPageLayout",function(){return i.ensureCatalog("pageLayout")}),c.on("GetPageMode",function(){return i.ensureCatalog("pageMode")}),c.on("GetViewerPreferences",function(){return i.ensureCatalog("viewerPreferences")}),c.on("GetOpenAction",function(){return i.ensureCatalog("openAction")}),c.on("GetAttachments",function(){return i.ensureCatalog("attachments")}),c.on("GetAttachmentContent",async function(y){let x;for(;;){let q=x?await w(x):null;try{return q&&i.updatePassword(q),await i.ensureCatalog("attachmentContent",[y])}catch(j){if(j instanceof hs){x=j;continue}throw j}}}),c.on("GetDocJSActions",function(){return i.ensureCatalog("jsActions")}),c.on("GetPageJSActions",async function({pageIndex:y}){let x=await i.getPage(y);return i.ensure(x,"jsActions")}),c.on("GetAnnotationsByType",async function({types:y,pageIndexesToSkip:x}){let[q,j]=await Promise.all([i.ensureDoc("numPages"),i.ensureDoc("annotationGlobals")]);if(!j)return null;let A=[],S=[],C=null;try{for(let M=0;M<q;M++)x?.has(M)||(C||(C=new es("GetAnnotationsByType"),p(C)),A.push(i.getPage(M).then(O=>O.collectAnnotationsByType(c,C,y,S,j))));return await Promise.all(A),(await Promise.all(S)).filter(Boolean)}finally{C&&m(C)}}),c.on("GetOutline",function(){return i.ensureCatalog("documentOutline")}),c.on("GetOptionalContentConfig",function(){return i.ensureCatalog("optionalContentConfig")}),c.on("GetPermissions",function(){return i.ensureCatalog("permissions")}),c.on("GetMetadata",function(){return Promise.all([i.ensureDoc("documentInfo"),i.ensureCatalog("metadata"),i.ensureCatalog("hasStructTree")])}),c.on("GetMarkInfo",function(){return i.ensureCatalog("markInfo")}),c.on("GetData",async function(){return(await i.requestLoadedStream()).bytes}),c.on("GetAnnotations",async function({pageIndex:y,intent:x}){let q=await i.getPage(y),j=new es(`GetAnnotations: page ${y}`);p(j);try{return await q.getAnnotationsData(c,j,x)}finally{m(j)}}),c.on("GetFieldObjects",async function(){return(await i.ensureDoc("fieldObjects"))?.allFields||null}),c.on("GetSignatures",function(){return i.ensureDoc("signatures")}),c.on("GetSignatureData",function(y){return i.ensureDoc("getSignatureData",[y])}),c.on("HasJSActions",function(){return i.ensureDoc("hasJSActions")}),c.on("GetCalculationOrderIds",function(){return i.ensureDoc("calculationOrderIds")}),c.on("ExtractPages",async function({pageInfos:y,annotationStorage:x}){if(!y)return E("extractPages: nothing to extract."),null;Array.isArray(y)||(y=[y]);let q=0;for(let A of y)if(!A.image)if(A.document===null)A.document=i.pdfDocument;else if(ArrayBuffer.isView(A.document)){let S=new ah({source:A.document,docId:`${r}_extractPages_${q++}`,handler:c,password:A.password??null,evaluatorOptions:Object.assign({},i.evaluatorOptions)}),C=!1,M=!0;for(;;)try{await S.requestLoadedStream(),await S.initDocument(C);break}catch(O){if(O instanceof gn){if(C===!1){C=!0;continue}M=!1,E("extractPages: XRefParseException.")}else if(O instanceof hs)try{let P=await w(O);S.updatePassword(P)}catch{M=!1,E("extractPages: invalid password.")}else M=!1,E("extractPages: invalid document.");if(!M)break}M||(A.document=null),await S.ensureDoc("isPureXfa")?(A.document=null,E("extractPages does not support pure XFA documents.")):A.document=S.pdfDocument}else E("extractPages: invalid document.");let j;try{let A=new Mk;return j=new es(`ExtractPages: ${y.length} page(s)`),p(j),await A.extractPages(y,x,i.pdfDocument,c,j)}catch(A){return E(`extractPages: "${A}".`),null}finally{j&&m(j)}}),c.on("SaveDocument",async function({isPureXfa:y,numPages:x,annotationStorage:q,supportsPrintToPDF:j,filename:A}){let S=[i.requestLoadedStream(),i.ensureCatalog("acroForm"),i.ensureCatalog("acroFormRef"),i.ensureDoc("startXRef"),i.ensureDoc("xref"),i.ensureCatalog("structTreeRoot")],C=new ii,M=[],O=y?null:$c(q),[P,$,tt,K,z,B]=await Promise.all(S),G=z.trailer.getRaw("Root")||null,Q;if(O){B?await B.canUpdateStructTree({pdfManager:i,newAnnotationsByPage:O})&&(Q=B):await Xh.canCreateStructureTree({catalogRef:G,pdfManager:i,newAnnotationsByPage:O})&&(Q=null);let H=_a.generateImages(q.values(),z,i.evaluatorOptions.isOffscreenCanvasSupported),J=Q===void 0?M:[];for(let[ft,ot]of O)J.push(i.getPage(ft).then(at=>{let At=new es(`Save (editor): page ${ft}`);return p(At),at.saveNewAnnotations(c,At,ot,H,C).finally(()=>{m(At)})}));Q===null?M.push(Promise.all(J).then(()=>Xh.createStructureTree({newAnnotationsByPage:O,xref:z,catalogRef:G,pdfManager:i,changes:C}))):Q&&M.push(Promise.all(J).then(()=>Q.updateStructureTree({newAnnotationsByPage:O,pdfManager:i,changes:C})))}if(y)M.push(i.ensureDoc("serializeXfaData",[q]));else for(let H=0;H<x;H++)M.push(i.getPage(H).then(function(J){let ft=new es(`Save: page ${H}`);return p(ft),J.save(c,ft,q,C).finally(()=>{m(ft)})}));let yt=await Promise.all(M),It=null;if(y){if(It=yt[0],!It)return P.bytes}else if(C.size===0)return P.bytes;let Lt=tt&&$ instanceof _&&C.values().some(H=>H.needAppearances),Pt=$ instanceof _&&$.get("XFA")||null,X=null,et=!1;if(Array.isArray(Pt)){for(let H=0,J=Pt.length;H<J;H+=2)Pt[H]==="datasets"&&(X=Pt[H+1],et=!0);X===null&&(X=z.getNewTemporaryRef())}else Pt&&E("Unsupported XFA type.");let L=Object.create(null);if(z.trailer){let H=new Map,J=z.trailer.get("Info")||null;if(J instanceof _)for(let[ft,ot]of J)typeof ot=="string"&&H.set(ft,Wt(ot));L={rootRef:G,encryptRef:z.trailer.getRaw("Encrypt")||null,newRef:z.getNewTemporaryRef(),infoRef:z.trailer.getRaw("Info")||null,infoMap:H,fileIds:z.trailer.get("ID")||null,startXRef:K,filename:A}}return ym({originalData:P.bytes,xrefInfo:L,changes:C,xref:z,hasXfa:!!Pt,xfaDatasetsRef:X,hasXfaDatasetsEntry:et,needAppearances:Lt,acroFormRef:tt,acroForm:$,xfaData:It,useXrefStream:nr(z.topDict,"XRef")}).finally(()=>{z.resetNewTemporaryRef()})}),c.on("GetOperatorList",function({pageId:y,pageIndex:x,pageProxyId:q,intent:j,cacheKey:A,annotationStorage:S,modifiedIds:C},M){i.getPage(y).then(function(O){let P=new es(`GetOperatorList: page ${x}`);p(P),O.getOperatorList({handler:c,sink:M,task:P,intent:j,cacheKey:A,annotationStorage:S,modifiedIds:C,pageIndex:x,pageProxyId:q}).then(()=>{M.close()},$=>{P.terminated||M.error($)}).finally(()=>{m(P)})})}),c.on("GetTextContent",function({pageId:y,pageIndex:x,includeMarkedContent:q,disableNormalization:j},A){i.getPage(y).then(function(S){let C=new es("GetTextContent: page "+x);p(C),S.extractTextContent({handler:c,task:C,sink:A,includeMarkedContent:q,disableNormalization:j}).then(()=>{A.close()},M=>{C.terminated||A.error(M)}).finally(()=>{m(C)})})}),c.on("GetStructTree",async function({pageIndex:y}){let x=await i.getPage(y);return i.ensure(x,"getStructTree")}),c.on("FontFallback",function({id:y}){return i.fontFallback(y,c)}),c.on("Cleanup",function(){return i.cleanup(!0)}),c.on("Terminate",async function(){a=!0;let y=[];if(i){i.terminate(new yi("Worker was terminated."));let x=i.cleanup();y.push(x),i=null}else ru();s?.(new yi("Worker was terminated."));for(let x of n)y.push(x.finished),x.terminate();await Promise.all(y),c.destroy(),c=null}),c.on("Ready",function(){v(t),t=null}),h}static initializeFromPort(t){let e=new v1("worker","main",t);this.setup(e,t);let i=new Uint8Array;e.send("ready",i,[i.buffer])}};globalThis.pdfjsWorker={WorkerMessageHandler:Bk};ma=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Wa=[1/0,1/0,-1/0,-1/0],dn=new Float32Array(Wa),jc=[.001,0,0,.001,0,0],Pi="http://www.w3.org/2000/svg",aa={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},ls={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},tr="pdfjs_internal_id_",ur="pdfjs_internal_editor_",ie={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},ge={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,INK_COLOR_AND_OPACITY:24,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},km={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},fi={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},ol={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},ze={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26,RICHMEDIA:27},Yn={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},_l={ERRORS:0,WARNINGS:1,INFOS:5},Ia={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},Pr={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},vm={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},of=_l.WARNINGS;d(Ok,"setVerbosityLevel");d(Hk,"getVerbosityLevel");d(ff,"info");d(le,"warn");d(Ae,"unreachable");d(Xe,"assert");d(Nk,"_isValidProtocol");d(Cu,"createValidAbsoluteUrl");d(Iu,"updateUrlHash");d(qc,"stripPath");d(Tt,"shadow");Tn=d(function(){function e(i,a){this.message=i,this.name=a}return d(e,"BaseException"),e.prototype=Error(),e.constructor=e,e},"BaseExceptionClosure")(),Oo=class extends Tn{static{d(this,"PasswordException")}constructor(t,e){super(t,"PasswordException"),this.code=e}},nh=class extends Tn{static{d(this,"UnknownErrorException")}constructor(t,e){super(t,"UnknownErrorException"),this.details=e}},Ho=class extends Tn{static{d(this,"InvalidPDFException")}constructor(t){super(t,"InvalidPDFException")}},xl=class extends Tn{static{d(this,"ResponseException")}constructor(t,e,i){super(t,"ResponseException"),this.status=e,this.missing=i}},Lk=class extends Tn{static{d(this,"FormatError")}constructor(t){super(t,"FormatError")}},ms=class extends Tn{static{d(this,"AbortException")}constructor(t){super(t,"AbortException")}};d(zk,"bytesToString");d(hf,"stringToBytes");Te=class{static{d(this,"FeatureTest")}static get isLittleEndian(){let t=new Uint8Array(4);t[0]=1;let e=new Uint32Array(t.buffer,0,1);return Tt(this,"isLittleEndian",e[0]===1)}static get isOffscreenCanvasSupported(){return Tt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return Tt(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return Tt(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return Tt(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){let{platform:t,userAgent:e}=navigator;return Tt(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")})}static get isCanvasFilterSupported(){let t;return this.isOffscreenCanvasSupported?t=new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"&&(t=document.createElement("canvas").getContext("2d")),Tt(this,"isCanvasFilterSupported",t?.filter!==void 0)}static get isAlphaColorInputSupported(){if(typeof document>"u")return Tt(this,"isAlphaColorInputSupported",!1);let t=document.createElement("input");return t.type="color",t.setAttribute("alpha",""),t.value="#ff000080",Tt(this,"isAlphaColorInputSupported",t.value!=="#ff0000")}static get isBackdropFilterSupported(){return Tt(this,"isBackdropFilterSupported",typeof CSS<"u"&&CSS.supports("backdrop-filter","blur(1px)"))}},qt=class{static{d(this,"Util")}static get hexNums(){return Tt(this,"hexNums",Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")))}static makeHexColor(t,e,i){return`#${this.hexNums[t]}${this.hexNums[e]}${this.hexNums[i]}`}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static multiplyByDOMMatrix(t,e){return[t[0]*e.a+t[2]*e.b,t[1]*e.a+t[3]*e.b,t[0]*e.c+t[2]*e.d,t[1]*e.c+t[3]*e.d,t[0]*e.e+t[2]*e.f+t[4],t[1]*e.e+t[3]*e.f+t[5]]}static applyTransform(t,e,i=0){let a=t[i],s=t[i+1];t[i]=a*e[0]+s*e[2]+e[4],t[i+1]=a*e[1]+s*e[3]+e[5]}static applyTransformToBezier(t,e,i=0){let a=e[0],s=e[1],n=e[2],r=e[3],l=e[4],o=e[5];for(let f=0;f<6;f+=2){let h=t[i+f],c=t[i+f+1];t[i+f]=h*a+c*n+l,t[i+f+1]=h*s+c*r+o}}static applyInverseTransform(t,e){let i=t[0],a=t[1],s=e[0]*e[3]-e[1]*e[2];t[0]=(i*e[3]-a*e[2]+e[2]*e[5]-e[4]*e[3])/s,t[1]=(-i*e[1]+a*e[0]+e[4]*e[1]-e[5]*e[0])/s}static axialAlignedBoundingBox(t,e,i){let a=e[0],s=e[1],n=e[2],r=e[3],l=e[4],o=e[5],f=t[0],h=t[1],c=t[2],u=t[3],p=a*f+l,m=p,g=a*c+l,b=g,w=r*h+o,v=w,y=r*u+o,x=y;if(s!==0||n!==0){let q=s*f,j=s*c,A=n*h,S=n*u;p+=A,b+=A,g+=S,m+=S,w+=q,x+=q,y+=j,v+=j}i[0]=Math.min(i[0],p,g,m,b),i[1]=Math.min(i[1],w,y,v,x),i[2]=Math.max(i[2],p,g,m,b),i[3]=Math.max(i[3],w,y,v,x)}static inverseTransform(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t,e){let i=t[0],a=t[1],s=t[2],n=t[3],r=i**2+a**2,l=i*s+a*n,o=s**2+n**2,f=(r+o)/2,h=Math.sqrt(f**2-(r*o-l**2));e[0]=Math.sqrt(f+h||1),e[1]=Math.sqrt(f-h||1)}static normalizeRect(t){let e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){let i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>a)return null;let s=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),n=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return s>n?null:[i,s,a,n]}static pointBoundingBox(t,e,i){i[0]=Math.min(i[0],t),i[1]=Math.min(i[1],e),i[2]=Math.max(i[2],t),i[3]=Math.max(i[3],e)}static rectBoundingBox(t,e,i,a,s){s[0]=Math.min(s[0],t,i),s[1]=Math.min(s[1],e,a),s[2]=Math.max(s[2],t,i),s[3]=Math.max(s[3],e,a)}static#t(t,e,i,a,s,n,r,l,o,f){if(o<=0||o>=1)return;let h=1-o,c=o*o,u=c*o,p=h*(h*(h*t+3*o*e)+3*c*i)+u*a,m=h*(h*(h*s+3*o*n)+3*c*r)+u*l;f[0]=Math.min(f[0],p),f[1]=Math.min(f[1],m),f[2]=Math.max(f[2],p),f[3]=Math.max(f[3],m)}static#e(t,e,i,a,s,n,r,l,o,f,h,c){if(Math.abs(o)<1e-12){Math.abs(f)>=1e-12&&this.#t(t,e,i,a,s,n,r,l,-h/f,c);return}let u=f**2-4*h*o;if(u<0)return;let p=Math.sqrt(u),m=2*o;this.#t(t,e,i,a,s,n,r,l,(-f+p)/m,c),this.#t(t,e,i,a,s,n,r,l,(-f-p)/m,c)}static bezierBoundingBox(t,e,i,a,s,n,r,l,o){o[0]=Math.min(o[0],t,r),o[1]=Math.min(o[1],e,l),o[2]=Math.max(o[2],t,r),o[3]=Math.max(o[3],e,l),this.#e(t,i,s,r,e,a,n,l,3*(-t+3*(i-s)+r),6*(t-2*i+s),3*(i-t),o),this.#e(t,i,s,r,e,a,n,l,3*(-e+3*(a-n)+l),6*(e-2*a+n),3*(a-e),o)}};d(Uk,"stringToUTF8String");rh=null,j1=null;d(jm,"normalizeUnicode");d(Tu,"getUuid");d(Gk,"_isValidExplicitDest");Mn=d(()=>[],"makeArr"),cf=d(()=>new Map,"makeMap"),No=d(()=>Object.create(null),"makeObj"),qm=d(()=>new Set,"makeSet");typeof Iterator.prototype.join!="function"&&(Iterator.prototype.join=function(t){return[...this].join(t)});d(Oe,"MathClamp");Mu=class xm{static{d(this,"PageViewport")}constructor({viewBox:e,userUnit:i,scale:a,rotation:s,offsetX:n=0,offsetY:r=0,dontFlip:l=!1}){this.viewBox=e,this.userUnit=i,this.scale=a,this.rotation=s,this.offsetX=n,this.offsetY=r,a*=i;let o=(e[2]+e[0])/2,f=(e[3]+e[1])/2,h,c,u,p;switch(s%=360,s<0&&(s+=360),s){case 180:h=-1,c=0,u=0,p=1;break;case 90:h=0,c=1,u=1,p=0;break;case 270:h=0,c=-1,u=-1,p=0;break;case 0:h=1,c=0,u=0,p=-1;break;default:throw Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(u=-u,p=-p);let m,g,b,w;h===0?(m=Math.abs(f-e[1])*a+n,g=Math.abs(o-e[0])*a+r,b=(e[3]-e[1])*a,w=(e[2]-e[0])*a):(m=Math.abs(o-e[0])*a+n,g=Math.abs(f-e[1])*a+r,b=(e[2]-e[0])*a,w=(e[3]-e[1])*a),this.transform=[h*a,c*a,u*a,p*a,m-h*a*o-u*a*f,g-c*a*o-p*a*f],this.width=b,this.height=w}get rawDims(){let e=this.viewBox;return Tt(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:i=this.rotation,offsetX:a=this.offsetX,offsetY:s=this.offsetY,dontFlip:n=!1}={}){return new xm({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:i,offsetX:a,offsetY:s,dontFlip:n})}convertToViewportPoint(e,i){let a=[e,i];return qt.applyTransform(a,this.transform),a}convertToPdfPoint(e,i){let a=[e,i];return qt.applyInverseTransform(a,this.transform),a}},xc=class Am{static{d(this,"XfaText")}static textContent(e){let i=[],a={items:i,styles:Object.create(null)};function s(n){if(!n)return;let r=null,l=n.name;if(l==="#text")r=n.value;else if(Am.shouldBuildText(l))n?.attributes?.textContent?r=n.attributes.textContent:n.value&&(r=n.value);else return;if(r!==null&&i.push({str:r}),n.children)for(let o of n.children)s(o)}return d(s,"walk"),s(e),a}static shouldBuildText(e){return e!=="textarea"&&e!=="input"&&e!=="option"&&e!=="select"}},$k=/url\(|image-set\(/i,Wk=/^on/i,_u=class{static{d(this,"XfaLayer")}static get _allowedHtmlElements(){return Tt(this,"_allowedHtmlElements",new Set(["a","b","br","button","div","i","img","input","label","li","ol","option","p","select","span","sub","sup","textarea","ul"]))}static get _allowedSvgElements(){return Tt(this,"_allowedSvgElements",new Set(["ellipse","line","path","rect","svg"]))}static get _allowedRichTextElements(){return Tt(this,"_allowedRichTextElements",new Set(["a","b","br","div","i","li","ol","p","span","sub","sup","ul"]))}static get _allowedRichTextAttributes(){return Tt(this,"_allowedRichTextAttributes",new Set(["class","dir","style"]))}static get _allowedRichTextStyles(){return Tt(this,"_allowedRichTextStyles",new Set("color.font.fontFamily.fontSize.fontStretch.fontStyle.fontWeight.kerningMode.letterSpacing.lineHeight.margin.marginBottom.marginLeft.marginRight.marginTop.orphans.paddingLeft.paddingRight.breakAfter.breakBefore.breakInside.tabInterval.tabStop.textAlign.textDecoration.textIndent.transform.verticalAlign.widows".split(".")))}static setupStorage(t,e,i,a,s){let n=a.getValue(e,{value:null});switch(i.name){case"textarea":if(n.value!==null&&(t.textContent=n.value),s==="print")break;t.addEventListener("input",r=>{a.setValue(e,{value:r.target.value})});break;case"input":if(i.attributes.type==="radio"||i.attributes.type==="checkbox"){if(n.value===i.attributes.xfaOn?t.setAttribute("checked",!0):n.value===i.attributes.xfaOff&&t.removeAttribute("checked"),s==="print")break;t.addEventListener("change",r=>{a.setValue(e,{value:r.target.checked?r.target.getAttribute("xfaOn"):r.target.getAttribute("xfaOff")})})}else{if(n.value!==null&&t.setAttribute("value",n.value),s==="print")break;t.addEventListener("input",r=>{a.setValue(e,{value:r.target.value})})}break;case"select":if(n.value!==null){t.setAttribute("value",n.value);for(let r of i.children)r.attributes.value===n.value?r.attributes.selected=!0:Object.hasOwn(r.attributes,"selected")&&delete r.attributes.selected}t.addEventListener("input",r=>{let l=r.target.options,o=l.selectedIndex===-1?"":l[l.selectedIndex].value;a.setValue(e,{value:o})})}}static setAttributes({html:t,element:e,storage:i=null,intent:a,linkService:s}){let{attributes:n}=e,r=t instanceof HTMLAnchorElement;n.type==="radio"&&(n.name=`${n.name}-${a}`);for(let[l,o]of Object.entries(n))if(!(o==null||Wk.test(l))&&(a!=="richText"||this._allowedRichTextAttributes.has(l)))switch(l){case"class":o.length&&t.setAttribute(l,o.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",o);break;case"style":if(a==="richText"){let f=this._allowedRichTextStyles;for(let[h,c]of Object.entries(o))f.has(h)&&!$k.test(c)&&(t.style[h]=c)}else Object.assign(t.style,o);break;case"textContent":t.textContent=o;break;default:(!r||l!=="href"&&l!=="newWindow")&&t.setAttribute(l,o)}r&&s?.addLinkAttributes(t,n.href,n.newWindow),i&&n.dataId&&this.setupStorage(t,n.dataId,e,i)}static#t(t,e,i){return i==="richText"?!e&&this._allowedRichTextElements.has(t)?document.createElement(t):null:e?e===Pi&&this._allowedSvgElements.has(t)?document.createElementNS(Pi,t):null:this._allowedHtmlElements.has(t)?document.createElement(t):null}static render(t){let e=t.annotationStorage,i=t.linkService,a=t.xfaHtml,s=t.intent||"display",n=this.#t(a.name,a.attributes?.xmlns,s)??document.createElement("div");a.attributes&&this.setAttributes({html:n,element:a,intent:s,linkService:i});let r=s!=="richText",l=t.div;if(l.append(n),t.viewport){let h=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=h}r&&l.setAttribute("class","xfaLayer xfaFont");let o=[];if(a.children.length===0){if(a.value){let h=document.createTextNode(a.value);n.append(h),r&&xc.shouldBuildText(a.name)&&o.push(h)}return{textDivs:o}}let f=[[a,-1,n]];for(;f.length>0;){let[h,c,u]=f.at(-1);if(c+1===h.children.length){f.pop();continue}let p=h.children[++f.at(-1)[1]];if(p===null)continue;let{name:m}=p;if(m==="#text"){let b=document.createTextNode(p.value);o.push(b),u.append(b);continue}let g=this.#t(m,p.attributes?.xmlns,s);if(g){if(u.append(g),p.attributes&&this.setAttributes({html:g,element:p,storage:e,intent:s,linkService:i}),p.children?.length>0)f.push([p,-1,g]);else if(p.value){let b=document.createTextNode(p.value);r&&xc.shouldBuildText(m)&&o.push(b),g.append(b)}}}for(let h of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:o}}static update(t){let e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e,t.div.hidden=!1}static getPageViewport(t,{scale:e=1,rotation:i=0}){let{width:a,height:s}=t.attributes.style;return new Mu({viewBox:[0,0,parseInt(a,10),parseInt(s,10)],userUnit:1,scale:e,rotation:i})}},An=class{static{d(this,"PixelsPerInch")}static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};d(uf,"fetchData");df=class extends Tn{static{d(this,"RenderingCancelledException")}constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e}};d(El,"isDataScheme");d(pf,"isPdfFile");d(Sm,"getFilenameFromUrl");d(Cm,"getPdfFilenameFromUrl");q1=class{static{d(this,"StatTimer")}#t=new Map;times=[];time(t){this.#t.has(t)&&le(`Timer is already running for ${t}`),this.#t.set(t,Date.now())}timeEnd(t){this.#t.has(t)||le(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.#t.get(t),end:Date.now()}),this.#t.delete(t)}toString(){let t=Math.max(...this.times.map(e=>e.name.length));return this.times.map(e=>`${e.name.padEnd(t)} ${e.end-e.start}ms
|
|
53
|
+
`).join("")}};d(fl,"isValidFetchUrl");d(va,"noContextMenu");d(ai,"stopEvent");Lo=class{static{d(this,"PDFDateString")}static#t;static toDateObject(t){if(t instanceof Date)return t;if(!t||typeof t!="string")return null;this.#t||=RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+\\-])?(\\d{2})?'?(\\d{2})?'?");let e=this.#t.exec(t);if(!e)return null;let i=parseInt(e[1],10),a=parseInt(e[2],10);a=a>=1&&a<=12?a-1:0;let s=parseInt(e[3],10);s=s>=1&&s<=31?s:1;let n=parseInt(e[4],10);n=n>=0&&n<=23?n:0;let r=parseInt(e[5],10);r=r>=0&&r<=59?r:0;let l=parseInt(e[6],10);l=l>=0&&l<=59?l:0;let o=e[7]||"Z",f=parseInt(e[8],10);f=f>=0&&f<=23?f:0;let h=parseInt(e[9],10)||0;return h=h>=0&&h<=59?h:0,o==="-"?(n+=f,r+=h):o==="+"&&(n-=f,r-=h),new Date(Date.UTC(i,a,s,n,r,l))}};d(_n,"getRGBA");d(br,"getRGB");d(Vk,"getColorValues");d(Pe,"getCurrentTransform");d(La,"getCurrentTransformInverse");d(zs,"setLayerDimensions");Xa=class Ac{static{d(this,"OutputScale")}constructor(){let{pixelRatio:e}=Ac;this.sx=e,this.sy=e}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(e,i,a,s,n=-1){let r=1/0,l=1/0,o=1/0;a=Ac.capPixels(a,n),a>0&&(r=Math.sqrt(a/(e*i))),s!==-1&&(l=s/e,o=s/i);let f=Math.min(r,l,o);return this.sx>f||this.sy>f?(this.sx=f,this.sy=f,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,i){if(i>=0){let a=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+i/100));return e>0?Math.min(e,a):a}return e}},zo=new Set(["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"]),Kk=class{static{d(this,"ColorScheme")}static get isDarkMode(){return Tt(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}},Im=class{static{d(this,"CSSConstants")}static get commentForegroundColor(){let t=document.createElement("span");t.classList.add("comment","sidebar");let{style:e}=t;e.width=e.height="0",e.display="none",e.color="var(--comment-fg-color)",document.body.append(t);let{color:i}=window.getComputedStyle(t);return t.remove(),Tt(this,"commentForegroundColor",br(i))}};d(Tm,"applyOpacity");d(x1,"RGBToHSL");d(Sc,"HSLToRGB");d(Cc,"computeLuminance");d(A1,"contrastRatio");S1=new Map;d(Mm,"findContrastColor");d(Eu,"renderRichText");d(_m,"makePathFromDrawOPS");Xk=class xo{static{d(this,"EditorToolbar")}#t=null;#e=null;#i;#a=null;#s=null;#n=null;#r=null;#l=null;static#o=null;constructor(e){this.#i=e,xo.#o||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"})}render(){let e=this.#t=document.createElement("div");e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");let i=this.#i._uiManager._signal;i instanceof AbortSignal&&!i.aborted&&(e.addEventListener("contextmenu",va,{signal:i}),e.addEventListener("pointerdown",xo.#f,{signal:i}));let a=this.#a=document.createElement("div");a.className="buttons",e.append(a);let s=this.#i.toolbarPosition;if(s){let{style:n}=e;n.insetInlineEnd=`${100*(this.#i._uiManager.direction==="ltr"?1-s[0]:s[0])}%`,n.top=`calc(${100*s[1]}% + var(--editor-toolbar-vert-offset))`}return e}get div(){return this.#t}static#f(e){e.stopPropagation()}#u(e){this.#i._focusEventsAllowed=!1,ai(e)}#h(e){this.#i._focusEventsAllowed=!0,ai(e)}#d(e){let i=this.#i._uiManager._signal;return!(i instanceof AbortSignal)||i.aborted?!1:(e.addEventListener("focusin",this.#u.bind(this),{capture:!0,signal:i}),e.addEventListener("focusout",this.#h.bind(this),{capture:!0,signal:i}),e.addEventListener("contextmenu",va,{signal:i}),!0)}hide(){this.#t.classList.add("hidden"),this.#e?.hideDropdown()}show(){this.#t.classList.remove("hidden"),this.#s?.shown(),this.#n?.shown()}addDeleteButton(){let{editorType:e,_uiManager:i}=this.#i,a=document.createElement("button");a.classList.add("basic","deleteButton"),a.tabIndex=0,a.setAttribute("data-l10n-id",xo.#o[e]),this.#d(a)&&a.addEventListener("click",s=>{i.delete()},{signal:i._signal}),this.#a.append(a)}get#p(){let e=document.createElement("div");return e.className="divider",e}async addAltText(e){let i=await e.render();this.#d(i),this.#a.append(i,this.#p),this.#s=e}addComment(e,i=null){if(this.#n)return;let a=e.renderForToolbar();if(!a)return;this.#d(a);let s=this.#r=this.#p;i?(this.#a.insertBefore(a,i),this.#a.insertBefore(s,i)):this.#a.append(a,s),this.#n=e,e.toolbar=this}addColorPicker(e){if(this.#e)return;this.#e=e;let i=e.renderButton();this.#d(i),this.#a.append(i,this.#p)}async addEditSignatureButton(e){let i=this.#l=await e.renderEditButton(this.#i);i&&(this.#d(i),this.#a.append(i,this.#p))}removeButton(e){e==="comment"&&(this.#n?.removeToolbarCommentButton(),this.#n=null,this.#r?.remove(),this.#r=null)}async addButton(e,i){switch(e){case"colorPicker":i&&this.addColorPicker(i);break;case"altText":i&&await this.addAltText(i);break;case"editSignature":i&&await this.addEditSignatureButton(i);break;case"delete":this.addDeleteButton();break;case"comment":i&&this.addComment(i)}}async addButtonBefore(e,i,a){if(!i&&e==="comment")return;let s=this.#a.querySelector(a);s&&e==="comment"&&this.addComment(i,s)}updateEditSignatureButton(e){this.#l&&(this.#l.title=e)}remove(){this.#t.remove(),this.#e?.destroy(),this.#e=null}},Yk=class{static{d(this,"FloatingToolbar")}#t=null;#e=null;#i;constructor(t){this.#i=t}#a(){let t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.dir=this.#i.direction;let e=this.#i._signal;e instanceof AbortSignal&&!e.aborted&&t.addEventListener("contextmenu",va,{signal:e});let i=this.#t=document.createElement("div");return i.className="buttons",t.append(i),this.#i.hasCommentManager()&&this.#n("commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{this.#i.commentSelection("floating_button")}),this.#n("highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{this.#i.highlightSelection("floating_button")}),t}#s(t,e){let i=0,a=0;for(let s of t){let n=s.y+s.height;if(n<i)continue;let r=s.x+(e?s.width:0);n>i?(a=r,i=n):e?r>a&&(a=r):r<a&&(a=r)}return[e?1-a:a,i]}show(t,e,i){let[a,s]=this.#s(e,i),{style:n}=this.#e||=this.#a();t.append(this.#e),n.insetInlineEnd=`${100*a}%`,n.top=`calc(${100*s}% + var(--editor-toolbar-vert-offset))`}hide(){this.#e.remove()}#n(t,e,i,a){let s=document.createElement("button");s.classList.add("basic",t),s.tabIndex=0,s.setAttribute("data-l10n-id",e);let n=document.createElement("span");s.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id",i);let r=this.#i._signal;r instanceof AbortSignal&&!r.aborted&&(s.addEventListener("contextmenu",va,{signal:r}),s.addEventListener("click",a,{signal:r})),this.#t.append(s)}},lh=Object.freeze({internal:"2837668c-d334-48d1-ba74-aa7deba483da"});d(Em,"bindEvents");$i=class bi{static{d(this,"CurrentPointers")}static#t=NaN;static#e=null;static#i=NaN;static#a=null;static initializeAndAddPointerId(e){(bi.#e||=new Set).add(e)}static setPointer(e,i){bi.#t||=i,bi.#a??=e}static setTimeStamp(e){bi.#i=e}static isSamePointerId(e){return bi.#t===e}static isSamePointerIdOrRemove(e){return bi.#t===e||(bi.#e?.delete(e),!1)}static isSamePointerType(e){return bi.#a===e}static isInitializedAndDifferentPointerType(e){return bi.#a!==null&&!bi.isSamePointerType(e)}static isSameTimeStamp(e){return bi.#i===e}static isUsingMultiplePointers(){return bi.#e?.size>=1}static clearPointerType(){bi.#a=null}static clearPointerIds(){bi.#t=NaN,bi.#e=null}static clearTimeStamp(){bi.#i=NaN}},Jk=class{static{d(this,"IdManager")}#t=0;get id(){return`${ur}${this.#t++}`}},Qk=class Fm{static{d(this,"ImageManager")}#t=Tu();#e=0;#i=null;static get _isSVGFittingCanvas(){let e=`data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="${Pi}"><rect width="1" height="1" style="fill:red;"/></svg>`,i=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),a=new Image;a.src=e;let s=a.decode().then(()=>(i.drawImage(a,0,0,1,1,0,0,1,3),new Uint32Array(i.getImageData(0,0,1,1).data.buffer)[0]===0));return Tt(this,"_isSVGFittingCanvas",s)}async#a(e,i){this.#i||=new Map;let a=this.#i.get(e);if(a===null)return null;if(a?.bitmap)return a.refCounter+=1,a;try{a||={bitmap:null,id:`image_${this.#t}_${this.#e++}`,refCounter:0,isSvg:!1};let s;if(typeof i=="string"?(a.url=i,s=await uf(i,"blob")):i instanceof File?s=a.file=i:i instanceof Blob&&(s=i),s.type==="image/svg+xml"){let n=Fm._isSVGFittingCanvas,r=new FileReader,l=new Image,o=new Promise((f,h)=>{l.onload=()=>{a.bitmap=l,a.isSvg=!0,f()},r.onload=async()=>{let c=a.svgUrl=r.result;l.src=await n?`${c}#svgView(preserveAspectRatio(none))`:c},l.onerror=r.onerror=h});r.readAsDataURL(s),await o}else a.bitmap=await createImageBitmap(s);a.refCounter=1}catch(s){le(s),a=null}return this.#i.set(e,a),a&&this.#i.set(a.id,a),a}async getFromFile(e){let{lastModified:i,name:a,size:s,type:n}=e;return this.#a(`${i}_${a}_${s}_${n}`,e)}async getFromUrl(e){return this.#a(e,e)}async getFromBlob(e,i){let a=await i;return this.#a(e,a)}async getFromId(e){this.#i||=new Map;let i=this.#i.get(e);if(!i)return null;if(i.bitmap)return i.refCounter+=1,i;if(i.file)return this.getFromFile(i.file);if(i.blobPromise){let{blobPromise:a}=i;return delete i.blobPromise,this.getFromBlob(i.id,a)}return this.getFromUrl(i.url)}getFromCanvas(e,i){this.#i||=new Map;let a=this.#i.get(e);if(a?.bitmap)return a.refCounter+=1,a;let s=new OffscreenCanvas(i.width,i.height);return s.getContext("2d").drawImage(i,0,0),a={bitmap:s.transferToImageBitmap(),id:`image_${this.#t}_${this.#e++}`,refCounter:1,isSvg:!1},this.#i.set(e,a),this.#i.set(a.id,a),a}getSvgUrl(e){let i=this.#i.get(e);return i?.isSvg?i.svgUrl:null}deleteId(e){this.#i||=new Map;let i=this.#i.get(e);if(!i||(--i.refCounter,i.refCounter!==0))return;let{bitmap:a}=i;if(!i.url&&!i.file){let s=new OffscreenCanvas(a.width,a.height);s.getContext("bitmaprenderer").transferFromImageBitmap(a),i.blobPromise=s.convertToBlob()}a.close?.(),i.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#t}_`)}},Zk=class{static{d(this,"CommandManager")}#t=[];#e=!1;#i;#a=-1;constructor(t=128){this.#i=t}add({cmd:t,undo:e,post:i,mustExec:a,type:s=NaN,overwriteIfSameType:n=!1,keepUndo:r=!1}){if(a&&t(),this.#e)return;let l={cmd:t,undo:e,post:i,type:s};if(this.#a===-1){this.#t.length>0&&(this.#t.length=0),this.#a=0,this.#t.push(l);return}if(n&&this.#t[this.#a].type===s){r&&(l.undo=this.#t[this.#a].undo),this.#t[this.#a]=l;return}let o=this.#a+1;o===this.#i?this.#t.splice(0,1):(this.#a=o,o<this.#t.length&&this.#t.splice(o)),this.#t.push(l)}undo(){if(this.#a===-1)return;this.#e=!0;let{undo:t,post:e}=this.#t[this.#a];t(),e?.(),this.#e=!1,--this.#a}redo(){if(this.#a<this.#t.length-1){this.#a+=1,this.#e=!0;let{cmd:t,post:e}=this.#t[this.#a];t(),e?.(),this.#e=!1}}hasSomethingToUndo(){return this.#a!==-1}hasSomethingToRedo(){return this.#a<this.#t.length-1}cleanType(t){if(this.#a!==-1){for(let e=this.#a;e>=0;e--)if(this.#t[e].type!==t){this.#t.splice(e+1,this.#a-e),this.#a=e;return}this.#t.length=0,this.#a=-1}}destroy(){this.#t=null}},Fl=class As{static{d(this,"KeyboardManager")}static ALT=1;static CTRL=2;static META=4;static SHIFT=8;constructor(e){this.callbacks=new Map;let{isMac:i}=Te.platform;for(let[a,s,n={}]of e){let r=a.some(l=>l.startsWith("mac+"));for(let l of a){let o=l;if(r){let c=l.startsWith("mac+");if(i!==c)continue;c&&(o=l.slice(4))}let[f,h]=As.#t(o);f!==null&&this.callbacks.getOrInsertComputed(f,Mn).push({callback:s,options:n,modifiers:h})}}}static#t(e){let i=null,a=0;for(let s of e.split("+")){if(s=s.trim(),!s)continue;let n=s.toUpperCase(),r=As[n];if(r)a|=r;else{if(i!==null){le(`KeyboardManager: multiple keys in shortcut "${e}"`);break}i=n==="SPACE"?" ":s}}return i===null&&le(`KeyboardManager: no key found in shortcut "${e}"`),[i,a]}static#e(e){let i=/^(?:Key([A-Z])|(?:Digit|Numpad)(\d))$/.exec(e);return i?i[1]?.toLowerCase()??i[2]:null}exec(e,i){let a=this.callbacks.get(i.key);if(!a){if(/^[a-z]$/i.test(i.key))return;let h=As.#e(i.code);if(h===null||h===i.key||(a=this.callbacks.get(h),!a))return}let s=(i.altKey?As.ALT:0)|(i.ctrlKey?As.CTRL:0)|(i.metaKey?As.META:0)|(i.shiftKey?As.SHIFT:0),n=a.find(h=>h.modifiers===s);if(!n)return;let{callback:r,options:{bubbles:l=!1,args:o=[],checker:f=null}}=n;(!f||f(e,i))&&(r.bind(e,...o,i)(),l||ai(i))}},tv=class Rm{static{d(this,"ColorManager")}static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){let e=new Map([["CanvasText",null],["Canvas",null]]);return Vk(e),Tt(this,"_colors",e)}convert(e){let i=br(e);if(!window.matchMedia("(forced-colors: active)").matches)return i;for(let[a,s]of this._colors)if(s.every((n,r)=>n===i[r]))return Rm._colorsMapping.get(a);return i}getHexCode(e){let i=this._colors.get(e);return i?qt.makeHexColor(...i):e}},dr=class Ic{static{d(this,"AnnotationEditorUIManager")}#t=new AbortController;#e=null;#i=null;#a=new Map;#s=new Map;#n=null;#r=null;#l=null;#o=null;#f=null;#u=new Zk;#h=null;#d=null;#p=null;#g=0;#c=new Set;#m=null;#b=null;#w=new Set;_editorUndoBar=null;#y=!1;#k=!1;#v=!1;#q=null;#A=null;#x=null;#T=null;#I=!1;#C=null;#E=new Jk;#M=!1;#F=!1;#D=!1;#_=null;#B=null;#G=null;#O=null;#z=null;#S=ie.NONE;#j=new Set;#H=null;#U=null;#$=null;#Y=null;#N=null;#X={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#P=[0,0];#W=null;#V=null;#Q=null;#Z=null;#L=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let e=Ic.prototype,i=d(r=>r.#V.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&r.hasSomethingToControl(),"arrowChecker"),a=d((r,{target:l})=>{if(l instanceof HTMLInputElement){let{type:o}=l;return o!=="text"&&o!=="number"}return!0},"textInputChecker"),s=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return Tt(this,"_keyboardManager",new Fl([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:a}],[["ctrl+z","mac+meta+z"],e.undo,{checker:a}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:a}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:a}],[["Enter"],e.addNewEditorFromKeyboard,{checker:d((r,{target:l})=>!(l instanceof HTMLButtonElement)&&r.#V.contains(l)&&!r.isEnterHandled,"checker")}],[["Space"],e.addNewEditorFromKeyboard,{checker:d((r,{target:l})=>!(l instanceof HTMLButtonElement)&&r.#V.contains(document.activeElement),"checker")}],[["Escape"],e.unselectAll],[["ArrowLeft"],e.translateSelectedEditors,{args:[-s,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:i}],[["ArrowRight"],e.translateSelectedEditors,{args:[s,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:i}],[["ArrowUp"],e.translateSelectedEditors,{args:[0,-s],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:i}],[["ArrowDown"],e.translateSelectedEditors,{args:[0,s],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:i}]]))}constructor(e,i,a,s,n,r,l,o,f,h,c,u,p,m,g,b){let w=this._signal=this.#t.signal;this.#V=e,this.#Q=i,this.#Z=a,this.#l=s,this.#h=n,this.#U=r,this.#N=o,this._eventBus=l;let v={signal:w,...lh};l.on("editingaction",this.onEditingAction.bind(this),v),l.on("pagechanging",this.onPageChanging.bind(this),v),l.on("scalechanging",this.onScaleChanging.bind(this),v),l.on("rotationchanging",this.onRotationChanging.bind(this),v),l.on("setpreference",this.onSetPreference.bind(this),v),l.on("switchannotationeditorparams",y=>this.updateParams(y.type,y.value),v),window.addEventListener("pointerdown",()=>{this.#F=!0},{capture:!0,signal:w}),window.addEventListener("pointerup",()=>{this.#F=!1},{capture:!0,signal:w}),window.addEventListener("beforeunload",this.endCurrentEditing.bind(this),{capture:!0,signal:w}),this.#ot(),this.#pt(),this.#nt(),this.#o=o.annotationStorage,this.#q=o.filterFactory,this.#$=f,this.#T=h||null,this.#y=c,this.#k=u,this.#v=p,this.#z=m||null,this.viewParameters={realScale:An.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=g||null,this._supportsPinchToZoom=b!==!1,n?.setSidebarUiManager(this)}destroy(){this.#L?.resolve(),this.#L=null,this.#t?.abort(),this.#t=null,this._signal=null;for(let e of this.#s.values())e.destroy();this.#s.clear(),this.#a.clear(),this.#w.clear(),this.#O?.clear(),this.#e=null,this.#j.clear(),this.#u.destroy(),this.#l?.destroy(),this.#h?.destroy(),this.#U?.destroy(),this.#C?.hide(),this.#C=null,this.#G?.destroy(),this.#G=null,this.#i=null,this.#A&&=(clearTimeout(this.#A),null),this.#W&&=(clearTimeout(this.#W),null),this._editorUndoBar?.destroy(),this.#N=null}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#z}get useNewAltTextFlow(){return this.#k}get useNewAltTextWhenAddingImage(){return this.#v}get hcmFilter(){return Tt(this,"hcmFilter",this.#$?this.#q.addHCMFilter(this.#$.foreground,this.#$.background):"none")}get direction(){return Tt(this,"direction",getComputedStyle(this.#V).direction)}get _highlightColors(){return Tt(this,"_highlightColors",this.#T?new Map(this.#T.split(",").map(e=>(e=e.split("=").map(i=>i.trim()),e[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){let{_highlightColors:e}=this;if(!e)return Tt(this,"highlightColors",null);let i=new Map,a=!!this.#$;for(let[s,n]of e){let r=s.endsWith("_HCM");a&&r?i.set(s.replace("_HCM",""),n):!a&&!r&&i.set(s,n)}return Tt(this,"highlightColors",i)}get highlightColorNames(){return Tt(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;let i=this.highlightColorNames.get(e);return this._highlightColors.get(i)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#p=e}setMainHighlightColorPicker(e){this.#G=e}editAltText(e,i=!1){this.#l?.editAltText(this,e,i)}hasCommentManager(){return!!this.#h}editComment(e,i,a,s){this.#h?.showDialog(this,e,i,a,s)}selectComment(e,i){this.#s.get(e)?.getEditorByUID(i)?.toggleComment(!0,!0)}updateComment(e){this.#h?.updateComment(e.getData())}updatePopupColor(e){this.#h?.updatePopupColor(e)}removeComment(e){this.#h?.removeComments([e.uid])}deleteComment(e,i){let a=d(()=>{e.comment=i},"undo"),s=d(()=>{this._editorUndoBar?.show(a,"comment"),this.toggleComment(null),e.comment=null},"cmd");this.addCommands({cmd:s,undo:a,mustExec:!0})}toggleComment(e,i,a=void 0){this.#h?.toggleCommentPopup(e,i,a)}makeCommentColor(e,i){return e&&this.#h?.makeCommentColor(e,i)||null}getCommentDialogElement(){return this.#h?.dialogElement||null}async waitForEditorsRendered(e){if(this.#s.has(e-1))return;let{resolve:i,promise:a}=Promise.withResolvers(),s=d(n=>{n.pageNumber===e&&(this._eventBus.off("editorsrendered",s),i())},"onEditorsRendered");this._eventBus.on("editorsrendered",s,lh),await a}getSignature(e){this.#U?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#U}switchToMode(e,i){this._eventBus.on("annotationeditormodechanged",i,{once:!0,signal:this._signal,...lh}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,i){this._eventBus.dispatch("setpreference",{source:this,name:e,value:i})}onSetPreference({name:e,value:i}){e==="enableNewAltTextWhenAddingImage"&&(this.#v=i)}onPageChanging({pageNumber:e}){this.#g=e-1}deletePage(e){for(let i of this.getEditors(e))i.remove();this.#s.delete(e),this.#g===e&&(this.#g=0)}focusMainContainer(){this.#V.focus()}findParent(e,i){for(let a of this.#s.values()){let{x:s,y:n,width:r,height:l}=a.div.getBoundingClientRect();if(e>=s&&e<=s+r&&i>=n&&i<=n+l)return a}return null}disableUserSelect(e=!1){this.#Q.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#w.add(e)}removeShouldRescale(e){this.#w.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*An.PDF_TO_CSS_UNITS;for(let i of this.#w)i.onScaleChanging();this.#p?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#J({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#tt(e){let{currentLayer:i}=this;if(i.hasTextLayer(e))return i;for(let a of this.#s.values())if(a.hasTextLayer(e))return a;return null}highlightSelection(e="",i=!1){let a=document.getSelection();if(!a||a.isCollapsed)return;let{anchorNode:s,anchorOffset:n,focusNode:r,focusOffset:l}=a,o=a.toString(),f=this.#J(a).closest(".textLayer"),h=this.getSelectionBoxes(f);if(!h)return;a.empty();let c=this.#tt(f),u=this.#S===ie.NONE,p=d(()=>{let m=c?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:h,anchorNode:s,anchorOffset:n,focusNode:r,focusOffset:l,text:o});u&&this.showAllEditors("highlight",!0,!0),i&&m?.editComment()},"callback");u?this.switchToMode(ie.HIGHLIGHT,p):p()}commentSelection(e=""){this.highlightSelection(e,!0)}endCurrentEditing(){this.commitOrRemove(),this.currentLayer?.endDrawingSession(!1)}#at(){let e=document.getSelection();if(!e||e.isCollapsed)return;let i=this.#J(e).closest(".textLayer"),a=this.getSelectionBoxes(i);a&&(this.#C||=new Yk(this),this.#C.show(i,a,this.direction==="ltr"))}getAndRemoveDataFromAnnotationStorage(e){if(!this.#o)return null;let i=`${ur}${e}`,a=this.#o.getRawValue(i);return a&&this.#o.remove(i),a}addToAnnotationStorage(e){!e.isEmpty()&&this.#o&&!this.#o.has(e.id)&&this.#o.setValue(e.id,e)}a11yAlert(e,i=null){let a=this.#Z;a&&(a.setAttribute("data-l10n-id",e),i?a.setAttribute("data-l10n-args",JSON.stringify(i)):a.removeAttribute("data-l10n-args"))}#st(){let e=document.getSelection();if(!e||e.isCollapsed){this.#H&&(this.#C?.hide(),this.#H=null,this.#R({hasSelectedText:!1}));return}let{anchorNode:i}=e;if(i===this.#H)return;let a=this.#J(e).closest(".textLayer");if(!a)this.#H&&(this.#C?.hide(),this.#H=null,this.#R({hasSelectedText:!1}));else if(this.#C?.hide(),this.#H=i,this.#R({hasSelectedText:!0}),(this.#S===ie.HIGHLIGHT||this.#S===ie.NONE)&&(this.#S===ie.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#I=this.isShiftKeyDown,!this.isShiftKeyDown)){let s=this.#S===ie.HIGHLIGHT?this.#tt(a):null;if(s?.toggleDrawing(),this.#F){let n=new AbortController,r=this.combinedSignal(n),l=d(o=>{(o.type!=="pointerup"||o.button===0)&&(n.abort(),s?.toggleDrawing(!0),o.type==="pointerup"&&this.#et("main_toolbar"))},"pointerup");window.addEventListener("pointerup",l,{signal:r}),window.addEventListener("blur",l,{signal:r})}else s?.toggleDrawing(!0),this.#et("main_toolbar")}}#et(e=""){this.#S===ie.HIGHLIGHT?this.highlightSelection(e):this.#y&&this.#at()}#ot(){document.addEventListener("selectionchange",this.#st.bind(this),{signal:this._signal})}#ft(){if(this.#x)return;this.#x=new AbortController;let e=this.combinedSignal(this.#x);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#ht(){this.#x?.abort(),this.#x=null}blur(){if(this.isShiftKeyDown=!1,this.#I&&(this.#I=!1,this.#et("main_toolbar")),!this.hasSelection)return;let{activeElement:e}=document;for(let i of this.#j)if(i.div.contains(e)){this.#B=[i,e],i._focusEventsAllowed=!1;break}}focus(){if(!this.#B)return;let[e,i]=this.#B;this.#B=null,i.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),i.focus()}#nt(){if(this.#_)return;this.#_=new AbortController;let e=this.combinedSignal(this.#_);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#ct(){this.#_?.abort(),this.#_=null}#ut(){if(this.#d)return;this.#d=new AbortController;let e=this.combinedSignal(this.#d);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#dt(){this.#d?.abort(),this.#d=null}#pt(){let e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#nt(),this.setEditingState(!0)}removeEditListeners(){this.#ct(),this.setEditingState(!1)}dragOver(e){for(let{type:i}of e.dataTransfer.items)for(let a of this.#b)if(a.isHandlingMimeForPasting(i)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(let i of e.dataTransfer.items)for(let a of this.#b)if(a.isHandlingMimeForPasting(i.type)){a.paste(i,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#e?.commitOrRemove(),!this.hasSelection)return;let i=[];for(let a of this.#j){let s=a.serialize(!0);s&&i.push(s)}i.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(i))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();let{clipboardData:i}=e;for(let n of i.items)for(let r of this.#b)if(r.isHandlingMimeForPasting(n.type)){r.paste(n,this.currentLayer);return}let a=i.getData("application/pdfjs");if(!a)return;try{a=JSON.parse(a)}catch(n){le(`paste: "${n.message}".`);return}if(!Array.isArray(a))return;this.unselectAll();let s=this.currentLayer;try{let n=[];for(let o of a){let f=await s.deserialize(o);if(!f)return;n.push(f)}let r=d(()=>{for(let o of n)this.#rt(o);this.#lt(n)},"cmd"),l=d(()=>{for(let o of n)o.remove()},"undo");this.addCommands({cmd:r,undo:l,mustExec:!0})}catch(n){le(`paste: "${n.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#S!==ie.NONE&&!this.isEditorHandlingKeyboard&&Ic._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#I&&(this.#I=!1,this.#et("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu")}}updatePageIndex(e,i){for(let s of this.#r.get(e)||[])s.pageIndex=i;let a=this.#n.get(e);a&&(a.pageIndex=i,this.#s.set(i,a),this.#M?a.enable():a.disable())}startUpdatePages(){this.#n=new Map(this.#s),this.#s.clear();let e=this.#r=new Map,i=d(a=>{e.getOrInsertComputed(a.pageIndex,Mn).push(a)},"saveEditor");for(let a of this.#a.values())i(a);for(let[a,s]of this.#o)a.startsWith(ur)&&!this.#a.has(a)&&Number.isInteger(s?.pageIndex)&&i(s)}endUpdatePages(){this.#n=null,this.#r=null}clonePage(e,i){for(let a of this.getEditors(e)){let s=a.serialize(a.mode!==ie.HIGHLIGHT);s&&(s.pageIndex=i,s.id=this.getId(),s.isClone=!0,delete s.popupRef,this.#o.setValue(s.id,s))}}findClonesForPage(e){let i=[],{pageIndex:a}=e;for(let[s,n]of this.#o)n.pageIndex===a&&n.isClone&&(this.#o.remove(s),i.push(e.deserialize(n).then(r=>{r&&(r.isClone=!0,e.addOrRebuild(r))})));return Promise.all(i)}#R(e){Object.entries(e).some(([i,a])=>this.#X[i]!==a)&&(this._eventBus.dispatch("editingstateschanged",{source:this,details:Object.assign(this.#X,e)}),this.#S===ie.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#K([[ge.HIGHLIGHT_FREE,!0]]))}#K(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#ft(),this.#ut(),this.#R({isEditing:this.#S!==ie.NONE,isEmpty:this.#it(),hasSomethingToUndo:this.#u.hasSomethingToUndo(),hasSomethingToRedo:this.#u.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ht(),this.#dt(),this.#R({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#b){this.#b=e;for(let i of this.#b)this.#K(i.defaultPropertiesToUpdate)}}getId(){return this.#E.id}get currentLayer(){return this.#s.get(this.#g)}getLayer(e){return this.#s.get(e)}get currentPageIndex(){return this.#g}addLayer(e){this.#s.set(e.pageIndex,e),this.#M?e.enable():e.disable()}removeLayer(e){this.#s.delete(e.pageIndex)}async updateMode(e,i=null,a=!1,s=!1,n=!1,r=!1){if(this.#S!==e&&!(this.#L&&(await this.#L.promise,!this.#L)))if(this.#L=Promise.withResolvers(),this.#p?.commitOrRemove(),this.#S===ie.POPUP&&this.#h?.hideSidebar(),this.#h?.destroyPopup(),this.#S=e,e===ie.NONE){this.setEditingState(!1),this.#gt();for(let l of this.#a.values())l.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),this.#L.resolve()}else{for(let l of this.#a.values())l.addStandaloneCommentButton();e===ie.SIGNATURE&&await this.#U?.loadSignatures(),a&&$i.clearPointerType(),this.setEditingState(!0),await this.#mt(),this.unselectAll();for(let l of this.#s.values())l.updateMode(e);if(e===ie.POPUP){this.#i||=await this.#N.getAnnotationsByType(new Set(this.#b.map(f=>f._editorType)));let l=new Set,o=[];for(let f of this.#a.values()){let{annotationElementId:h,hasComment:c,deleted:u}=f;h&&l.add(h),c&&!u&&o.push(f.getData())}for(let f of this.#i){let{id:h,popupRef:c,contentsObj:u}=f;c&&u?.str&&!l.has(h)&&!this.#c.has(h)&&o.push(f)}this.#h?.showSidebar(o)}if(!i)s&&this.addNewEditorFromKeyboard(),this.#L.resolve();else{for(let l of this.#a.values())l.uid===i?(this.setSelected(l),r?l.editComment():n?l.enterInEditMode():l.focus()):l.unselect();this.#L.resolve()}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#S&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,i){if(this.#b){switch(e){case ge.CREATE:this.currentLayer.addNewEditor(i);return;case ge.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#Y||=new Map).set(e,i),this.showAllEditors("highlight",i)}if(this.hasSelection)for(let a of this.#j)a.updateParams(e,i);else for(let a of this.#b)a.updateDefaultParams(e,i)}}showAllEditors(e,i,a=!1){for(let s of this.#a.values())s.editorType===e&&s.show(i);(this.#Y?.get(ge.HIGHLIGHT_SHOW_ALL)??!0)!==i&&this.#K([[ge.HIGHLIGHT_SHOW_ALL,i]])}enableWaiting(e=!1){if(this.#D!==e){this.#D=e;for(let i of this.#s.values())e?i.disableClick():i.enableClick(),i.div.classList.toggle("waiting",e)}}async#mt(){if(!this.#M){this.#M=!0;let e=[];for(let i of this.#s.values())e.push(i.enable());await Promise.all(e);for(let i of this.#a.values())i.enable()}}#gt(){if(this.unselectAll(),this.#M){this.#M=!1;for(let e of this.#s.values())e.disable();for(let e of this.#a.values())e.disable()}}*getEditors(e){for(let i of this.#a.values())i.pageIndex===e&&(yield i)}getEditor(e){return this.#a.get(e)}addEditor(e){this.#a.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#A&&clearTimeout(this.#A),this.#A=setTimeout(()=>{this.focusMainContainer(),this.#A=null},0)),this.#a.delete(e.id),e.annotationElementId&&this.#O?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#c.has(e.annotationElementId))&&this.#o?.remove(e.id)}addDeletedAnnotationElement(e){this.#c.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#c.has(e)}removeDeletedAnnotationElement(e){this.#c.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#rt(e){let i=this.#s.get(e.pageIndex);i?i.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#e!==e&&(this.#e=e,e&&this.#K(e.propertiesToUpdate))}get#bt(){let e=null;for(e of this.#j);return e}updateUI(e){this.#bt===e&&this.#K(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#K(e.defaultPropertiesToUpdate)}toggleSelected(e){this.#j.has(e)?(this.#j.delete(e),e.unselect(),this.#R({hasSelectedEditor:this.hasSelection})):(this.#j.add(e),e.select(),this.#K(e.propertiesToUpdate),this.#R({hasSelectedEditor:!0}))}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.uid}),this.#p?.commitOrRemove();for(let i of this.#j)i!==e&&i.unselect();this.#h?.destroyPopup(),this.#j.clear(),this.#j.add(e),e.select(),this.#K(e.propertiesToUpdate),this.#R({hasSelectedEditor:!0})}get firstSelectedEditor(){return this.#j.values().next().value}unselect(e){e.unselect(),this.#j.delete(e),this.#R({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#j.size!==0}get isEnterHandled(){return this.#j.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#u.undo(),this.#R({hasSomethingToUndo:this.#u.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#it()}),this._editorUndoBar?.hide()}redo(){this.#u.redo(),this.#R({hasSomethingToUndo:!0,hasSomethingToRedo:this.#u.hasSomethingToRedo(),isEmpty:this.#it()})}addCommands(e){this.#u.add(e),this.#R({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#it()})}cleanUndoStack(e){this.#u.cleanType(e)}#it(){if(this.#a.size===0)return!0;if(this.#a.size===1)for(let e of this.#a.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();let e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;let i=e?[e]:[...this.#j],a=d(()=>{this._editorUndoBar?.show(s,i.length===1?i[0].editorType:i.length);for(let n of i)n.remove()},"cmd"),s=d(()=>{for(let n of i)this.#rt(n)},"undo");this.addCommands({cmd:a,undo:s,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}hasSomethingToControl(){return this.#e||this.hasSelection}#lt(e){for(let i of this.#j)i.unselect();this.#j.clear();for(let i of e)i.isEmpty()||(this.#j.add(i),i.select());this.#R({hasSelectedEditor:this.hasSelection})}selectAll(){for(let e of this.#j)e.commit();this.#lt(this.#a.values())}unselectAll(){if(!(this.#e&&(this.#e.commitOrRemove(),this.#S!==ie.NONE))&&!this.#p?.commitOrRemove()&&(this.#h?.destroyPopup(),this.hasSelection)){for(let e of this.#j)e.unselect();this.#j.clear(),this.#R({hasSelectedEditor:!1})}}translateSelectedEditors(e,i,a=!1){if(a||this.commitOrRemove(),!this.hasSelection)return;this.#P[0]+=e,this.#P[1]+=i;let[s,n]=this.#P,r=[...this.#j];this.#W&&clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#W=null,this.#P[0]=this.#P[1]=0,this.addCommands({cmd:d(()=>{for(let l of r)this.#a.has(l.id)&&(l.translateInPage(s,n),l.translationDone())},"cmd"),undo:d(()=>{for(let l of r)this.#a.has(l.id)&&(l.translateInPage(-s,-n),l.translationDone())},"undo"),mustExec:!1})},1e3);for(let l of r)l.translateInPage(e,i),l.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#m=new Map;for(let e of this.#j)this.#m.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#m)return!1;this.disableUserSelect(!1);let e=this.#m;this.#m=null;let i=!1;for(let[{x:s,y:n,pageIndex:r},l]of e)l.newX=s,l.newY=n,l.newPageIndex=r,i||=s!==l.savedX||n!==l.savedY||r!==l.savedPageIndex;if(!i)return!1;let a=d((s,n,r,l)=>{if(this.#a.has(s.id)){let o=this.#s.get(l);o?s._setParentAndPosition(o,n,r):(s.pageIndex=l,s.x=n,s.y=r)}},"move");return this.addCommands({cmd:d(()=>{for(let[s,{newX:n,newY:r,newPageIndex:l}]of e)a(s,n,r,l)},"cmd"),undo:d(()=>{for(let[s,{savedX:n,savedY:r,savedPageIndex:l}]of e)a(s,n,r,l)},"undo"),mustExec:!0}),!0}dragSelectedEditors(e,i){if(this.#m)for(let a of this.#m.keys())a.drag(e,i)}rebuild(e){if(e.parent===null){let i=this.getLayer(e.pageIndex);i?(i.changeParent(e),i.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#j.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#e===e}getActive(){return this.#e}getMode(){return this.#S}isEditingMode(){return this.#S!==ie.NONE}get imageManager(){return Tt(this,"imageManager",new Qk)}getSelectionBoxes(e){if(!e)return null;let i=document.getSelection();for(let f=0,h=i.rangeCount;f<h;f++)if(!e.contains(i.getRangeAt(f).commonAncestorContainer))return null;let{x:a,y:s,width:n,height:r}=e.getBoundingClientRect(),l;switch(e.getAttribute("data-main-rotation")){case"90":l=d((f,h,c,u)=>({x:(h-s)/r,y:1-(f+c-a)/n,width:u/r,height:c/n}),"rotator");break;case"180":l=d((f,h,c,u)=>({x:1-(f+c-a)/n,y:1-(h+u-s)/r,width:c/n,height:u/r}),"rotator");break;case"270":l=d((f,h,c,u)=>({x:1-(h+u-s)/r,y:(f-a)/n,width:u/r,height:c/n}),"rotator");break;default:l=d((f,h,c,u)=>({x:(f-a)/n,y:(h-s)/r,width:c/n,height:u/r}),"rotator")}let o=[];for(let f=0,h=i.rangeCount;f<h;f++){let c=i.getRangeAt(f);if(!c.collapsed)for(let{x:u,y:p,width:m,height:g}of c.getClientRects())m!==0&&g!==0&&o.push(l(u,p,m,g))}return o.length===0?null:o}addChangedExistingAnnotation({annotationElementId:e,id:i}){(this.#f||=new Map).set(e,i)}removeChangedExistingAnnotation({annotationElementId:e}){this.#f?.delete(e)}renderAnnotationElement(e){let i=this.#f?.get(e.data.id);if(!i)return;let a=this.#o.getRawValue(i);a&&(this.#S!==ie.NONE||a.hasBeenModified)&&a.renderAnnotationElement(e)}setMissingCanvas(e,i,a){let s=this.#O?.get(e);s&&(s.setCanvas(i,a),this.#O.delete(e))}addMissingCanvas(e,i){(this.#O||=new Map).set(e,i)}},C1=class Ss{static{d(this,"AltText")}#t=null;#e=!1;#i=null;#a=null;#s=null;#n=null;#r=!1;#l=null;#o=null;#f=null;#u=null;#h=!1;static#d=null;static _l10n=null;constructor(e){this.#o=e,this.#h=e._uiManager.useNewAltTextFlow,Ss.#d||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){Ss._l10n??=e}async render(){let e=this.#i=document.createElement("button");e.className="altText",e.tabIndex="0";let i=this.#a=document.createElement("span");e.append(i),this.#h?(e.classList.add("new"),e.setAttribute("data-l10n-id",Ss.#d.missing),i.setAttribute("data-l10n-id",Ss.#d["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),i.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));let a=this.#o._uiManager._signal;e.addEventListener("contextmenu",va,{signal:a}),e.addEventListener("pointerdown",n=>n.stopPropagation(),{signal:a});let s=d(n=>{n.preventDefault(),this.#o._uiManager.editAltText(this.#o),this.#h&&this.#o._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#p}})},"onClick");return e.addEventListener("click",s,{capture:!0,signal:a}),e.addEventListener("keydown",n=>{n.target===e&&n.key==="Enter"&&(this.#r=!0,s(n))},{signal:a}),await this.#g(),e}get#p(){return this.#t&&"added"||this.#t===null&&this.guessedText&&"review"||"missing"}finish(){this.#i&&(this.#i.focus({focusVisible:this.#r}),this.#r=!1)}isEmpty(){return this.#h?this.#t===null:!this.#t&&!this.#e}hasData(){return this.#h?this.#t!==null||!!this.#f:this.isEmpty()}get guessedText(){return this.#f}async setGuessedText(e){this.#t===null&&(this.#f=e,this.#u=await Ss._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#g())}toggleAltTextBadge(e=!1){if(!this.#h||this.#t)this.#l?.remove(),this.#l=null;else{if(!this.#l){let i=this.#l=document.createElement("div");i.className="noAltTextBadge",this.#o.div.append(i)}this.#l.classList.toggle("hidden",!e)}}serialize(e){let i=this.#t;return!e&&this.#f===i&&(i=this.#u),{altText:i,decorative:this.#e,guessedText:this.#f,textWithDisclaimer:this.#u}}get data(){return{altText:this.#t,decorative:this.#e}}set data({altText:e,decorative:i,guessedText:a,textWithDisclaimer:s,cancel:n=!1}){a&&(this.#f=a,this.#u=s),(this.#t!==e||this.#e!==i)&&(n||(this.#t=e,this.#e=i),this.#g())}toggle(e=!1){this.#i&&(!e&&this.#n&&(clearTimeout(this.#n),this.#n=null),this.#i.disabled=!e)}shown(){this.#o._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#p}})}destroy(){this.#i?.remove(),this.#i=null,this.#a=null,this.#s=null,this.#l?.remove(),this.#l=null}async#g(){let e=this.#i;if(!e)return;if(this.#h){if(e.classList.toggle("done",!!this.#t),e.setAttribute("data-l10n-id",Ss.#d[this.#p]),this.#a?.setAttribute("data-l10n-id",Ss.#d[`${this.#p}-label`]),!this.#t){this.#s?.remove();return}}else{if(!this.#t&&!this.#e){e.classList.remove("done"),this.#s?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let i=this.#s;if(!i){this.#s=i=document.createElement("span"),i.className="tooltip",i.setAttribute("role","tooltip"),i.id=`alt-text-tooltip-${this.#o.id}`;let a=this.#o._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#n),this.#n=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#n=setTimeout(()=>{this.#n=null,this.#s.classList.add("show"),this.#o._reportTelemetry({action:"alt_text_tooltip"})},100)},{signal:a}),e.addEventListener("mouseleave",()=>{this.#n&&=(clearTimeout(this.#n),null),this.#s?.classList.remove("show")},{signal:a})}this.#e?i.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(i.removeAttribute("data-l10n-id"),i.textContent=this.#t),i.parentNode||e.append(i),this.#o.getElementForAltText()?.setAttribute("aria-describedby",i.id)}},ao=class{static{d(this,"Comment")}#t=null;#e=null;#i=!1;#a=null;#s=null;#n=null;#r=null;#l=null;#o=!1;#f=null;constructor(t){this.#a=t}renderForToolbar(){let t=this.#e=document.createElement("button");return t.className="comment",this.#u(t,!1)}renderForStandalone(){let t=this.#t=document.createElement("button");t.className="annotationCommentButton";let e=this.#a.commentButtonPosition;if(e){let{style:i}=t;i.insetInlineEnd=`calc(${100*(this.#a._uiManager.direction==="ltr"?1-e[0]:e[0])}% - var(--comment-button-dim))`,i.top=`calc(${100*e[1]}% - var(--comment-button-dim))`;let a=this.#a.commentButtonColor;a&&(i.backgroundColor=a)}return this.#u(t,!0)}focusButton(){setTimeout(()=>{(this.#t??this.#e)?.focus()},0)}onUpdatedColor(){if(!this.#t)return;let t=this.#a.commentButtonColor;t&&(this.#t.style.backgroundColor=t),this.#a._uiManager.updatePopupColor(this.#a)}get commentButtonWidth(){return(this.#t?.getBoundingClientRect().width??0)/this.#a.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#f)return this.#f;if(!this.#t)return null;let{x:t,y:e,height:i}=this.#t.getBoundingClientRect(),{x:a,y:s,width:n,height:r}=this.#a.parent.boundingClientRect;return[(t-a)/n,(e+i-s)/r]}set commentPopupPositionInLayer(t){this.#f=t}hasDefaultPopupPosition(){return this.#f===null}removeStandaloneCommentButton(){this.#t?.remove(),this.#t=null}removeToolbarCommentButton(){this.#e?.remove(),this.#e=null}setCommentButtonStates({selected:t,hasPopup:e}){this.#t&&(this.#t.classList.toggle("selected",t),this.#t.ariaExpanded=e)}#u(t,e){if(!this.#a._uiManager.hasCommentManager())return null;t.tabIndex="0",t.ariaHasPopup="dialog",e?(t.ariaControls="commentPopup",t.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(t.ariaControlsElements=[this.#a._uiManager.getCommentDialogElement()],t.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));let i=this.#a._uiManager._signal;if(!(i instanceof AbortSignal)||i.aborted)return t;t.addEventListener("contextmenu",va,{signal:i}),e&&(t.addEventListener("focusin",s=>{this.#a._focusEventsAllowed=!1,ai(s)},{capture:!0,signal:i}),t.addEventListener("focusout",s=>{this.#a._focusEventsAllowed=!0,ai(s)},{capture:!0,signal:i})),t.addEventListener("pointerdown",s=>s.stopPropagation(),{signal:i});let a=d(s=>{s.preventDefault(),t===this.#e?this.edit():this.#a.toggleComment(!0)},"onClick");return t.addEventListener("click",a,{capture:!0,signal:i}),t.addEventListener("keydown",s=>{s.target===t&&s.key==="Enter"&&(this.#i=!0,a(s))},{signal:i}),t.addEventListener("pointerenter",()=>{this.#a.toggleComment(!1,!0)},{signal:i}),t.addEventListener("pointerleave",()=>{this.#a.toggleComment(!1,!1)},{signal:i}),t}edit(t){let e=this.commentPopupPositionInLayer,i,a;if(e)[i,a]=e;else{[i,a]=this.#a.commentButtonPosition;let{width:f,height:h,x:c,y:u}=this.#a;i=c+i*f,a=u+a*h}let s=this.#a.parent.boundingClientRect,{x:n,y:r,width:l,height:o}=s;this.#a._uiManager.editComment(this.#a,n+i*l,r+a*o,{...t,parentDimensions:s})}finish(){this.#e&&(this.#e.focus({focusVisible:this.#i}),this.#i=!1)}isDeleted(){return this.#o||this.#r===""}isEmpty(){return this.#r===null}hasBeenEdited(){return this.isDeleted()||this.#r!==this.#s}serialize(){return this.data}get data(){return{text:this.#r,richText:this.#n,date:this.#l,deleted:this.isDeleted()}}set data(t){t!==this.#r&&(this.#n=null),t===null?(this.#r="",this.#o=!0):(this.#r=t,this.#l=new Date,this.#o=!1)}restoreData({text:t,richText:e,date:i}){this.#r=t,this.#n=e,this.#l=i,this.#o=!1}setInitialText(t,e=null){this.#s=t,this.data=t,this.#l=null,this.#n=e}shown(){}destroy(){this.#e?.remove(),this.#e=null,this.#t?.remove(),this.#t=null,this.#r="",this.#n=null,this.#l=null,this.#a=null,this.#i=!1,this.#o=!1}};d(I1,"preventDefault");T1=1e-4;d(oh,"stopTouchEvent");Fu=class{static{d(this,"TouchManager")}#t;#e=!1;#i=null;#a;#s;#n;#r;#l;#o=!1;#f=null;#u;#h=new Set;#d=null;#p;#g=null;#c=0;constructor({container:t,isPinchingDisabled:e=null,isPinchingStopped:i=null,onPinchStart:a=null,onPinching:s=null,onPinchEnd:n=null,onPanning:r=null,signal:l}){this.#t=t,this.#i=i,this.#a=e,this.#s=a,this.#n=s,this.#r=n,this.#l=r,this.#p=new AbortController,this.#u=AbortSignal.any([l,this.#p.signal]),t.addEventListener("touchstart",this.#m.bind(this),{passive:!1,signal:this.#u})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/Xa.pixelRatio}get MIN_TOUCH_DISTANCE_TO_SCALE(){return 4/Xa.pixelRatio}#m(t){if(this.#a?.())return;this.#w(t);let e=this.#h;for(let{identifier:i}of t.changedTouches)e.add(i);if(e.size===1)this.#b();else{if(!this.#g){this.#g=new AbortController;let i=AbortSignal.any([this.#u,this.#g.signal]),a=this.#t,s={signal:i,capture:!1,passive:!1};a.addEventListener("touchmove",this.#v.bind(this),s);let n=this.#q.bind(this);a.addEventListener("touchend",n,s),a.addEventListener("touchcancel",n,s),s.capture=!0,a.addEventListener("pointerdown",ai,s),a.addEventListener("pointermove",ai,s),a.addEventListener("pointercancel",I1,s),a.addEventListener("pointerup",I1,s),this.#s?.()}this.#o=oh(t),this.#k(t)}}#b(){if(this.#f)return;let t=this.#f=new AbortController,e=AbortSignal.any([this.#u,t.signal]),i=this.#t,a={capture:!0,signal:e,passive:!1},s=d(n=>{n.pointerType==="touch"&&(this.#f?.abort(),this.#f=null)},"cancelPointerDown");i.addEventListener("pointerdown",n=>{n.pointerType==="touch"&&(ai(n),s(n))},a),i.addEventListener("pointerup",s,a),i.addEventListener("pointercancel",s,a)}#w(t){let e=this.#h;if(e.size===0)return;let i=this.#h=new Set;for(let{identifier:a}of t.touches)e.has(a)&&i.add(a)}#y(t){let e=this.#h,i=[];for(let a of t.touches)e.has(a.identifier)&&i.push(a);return i}#k(t){let e=this.#y(t);if(e.length!==2||this.#i?.()){this.#d=null;return}let[i,a]=e;this.#d={touch0X:i.screenX,touch0Y:i.screenY,touch1X:a.screenX,touch1Y:a.screenY,panX:(i.clientX+a.clientX)/2,panY:(i.clientY+a.clientY)/2,screenPanX:(i.screenX+a.screenX)/2,screenPanY:(i.screenY+a.screenY)/2}}#v(t){if(!this.#d)return;let e=this.#y(t);if(e.length!==2)return;let i=this.#o;if(this.#o=oh(t),!this.#o)return;if(!i){this.#k(t);return}let[a,s]=e,{screenX:n,screenY:r}=a,{screenX:l,screenY:o}=s,f=this.#d,{touch0X:h,touch0Y:c,touch1X:u,touch1Y:p,panX:m,panY:g}=f,b=u-h,w=p-c,v=l-n,y=o-r,x=(a.clientX+s.clientX)/2,q=(a.clientY+s.clientY)/2;f.panX=x,f.panY=q;let j=x-m,A=q-g,S=(n+l)/2,C=(r+o)/2,M=Math.hypot(S-f.screenPanX,C-f.screenPanY);f.screenPanX=S,f.screenPanY=C;let O=Math.hypot(v,y),P=Math.hypot(b,w),$=this.#e?this.MIN_TOUCH_DISTANCE_TO_SCALE:this.MIN_TOUCH_DISTANCE_TO_PINCH+2*M;if(O<T1||P<T1||Math.abs(P-O)<=$){(j||A)&&this.#l?.(j,A);return}f.touch0X=n,f.touch0Y=r,f.touch1X=l,f.touch1Y=o;let tt=Math.sign(O-P);if(!this.#e)this.#e=!0,this.#c=tt,(j||A)&&this.#l?.(j,A);else{if(this.#c){let K=this.#c;if(this.#c=0,tt!==K&&Math.abs(O-P)<=2*M){this.#e=!1,(j||A)&&this.#l?.(j,A);return}}this.#n?.([m,g],P,O,j,A)}}#q(t){if(this.#w(t),this.#h.size>=2){this.#k(t);return}let e=!!this.#d;this.#A(),this.#h.size===1&&this.#b(),e&&oh(t)}#A(){this.#d=null,this.#e=!1,this.#c=0,this.#o=!1,this.#g&&(this.#g.abort(),this.#g=null,this.#r?.())}destroy(){this.#A(),this.#h.clear(),this.#p?.abort(),this.#p=null,this.#f?.abort(),this.#f=null}},He=class Se{static{d(this,"AnnotationEditor")}#t=null;#e=null;#i=null;#a=null;#s=null;#n=!1;#r=null;#l="";#o=null;#f=null;#u=null;#h=null;#d=null;#p="";#g=!1;#c=null;#m=!1;#b=!1;#w=!1;#y=null;#k=0;#v=0;#q=null;#A=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nAlert=null;static _l10nResizer=null;#x=!1;#T=Se._zIndex++;static _borderLineWidth=-1;static _colorManager=new tv;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){let e=Se.prototype._resizeWithKeyboard,i=dr.TRANSLATE_SMALL,a=dr.TRANSLATE_BIG;return Tt(this,"_resizerKeyboardManager",new Fl([[["ArrowLeft"],e,{args:[-i,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-a,0]}],[["ArrowRight"],e,{args:[i,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[a,0]}],[["ArrowUp"],e,{args:[0,-i]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-a]}],[["ArrowDown"],e,{args:[0,i]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,a]}],[["Escape"],Se.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null,this.canAddComment=!0;let{rotation:i,rawDims:{pageWidth:a,pageHeight:s,pageX:n,pageY:r}}=this.parent.viewport;this.rotation=i,this.pageRotation=(360+i-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[a,s],this.pageTranslation=[n,r];let[l,o]=this.parentDimensions;this.x=e.x/l,this.y=e.y/o,this.isAttachedToDOM=!1,this.deleted=!1}updatePageIndex(e){this.pageIndex=e}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return Tt(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){let i=new ev({id:e._uiManager.getId(),parent:e.parent,uiManager:e._uiManager});i.annotationElementId=e.annotationElementId,i.deleted=!0,i._uiManager.addToAnnotationStorage(i)}static initialize(e,i){if(Se._l10n??=e,Se._l10nAlert??=Object.freeze({highlight:"pdfjs-editor-highlight-added-alert",freetext:"pdfjs-editor-freetext-added-alert",ink:"pdfjs-editor-ink-added-alert",stamp:"pdfjs-editor-stamp-added-alert",signature:"pdfjs-editor-signature-added-alert"}),Se._l10nResizer??=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),Se._borderLineWidth!==-1)return;let a=getComputedStyle(document.documentElement);Se._borderLineWidth=parseFloat(a.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,i){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,i){Ae("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#x}set _isDraggable(e){this.#x=e,this.div?.classList.toggle("draggable",e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){let[e,i]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*i/(e*2),this.y+=this.width*e/(i*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*i/(e*2),this.y-=this.width*e/(i*2);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#T}setParent(e){e===null?(this.#P(),this.#h?.remove(),this.#h=null):(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#g?this.#g=!1:this.parent.setSelected(this))}focusout(e){this._focusEventsAllowed&&this.isAttachedToDOM&&(e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove()))}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,i,a,s){let[n,r]=this.parentDimensions;[a,s]=this.screenToPageTranslation(a,s),this.x=(e+a)/n,this.y=(i+s)/r,this.fixAndSetPosition()}_moveAfterPaste(e,i){if(this.isClone){delete this.isClone;return}let[a,s]=this.parentDimensions;this.setAt(e*a,i*s,this.width*a,this.height*s),this._onTranslated()}#I([e,i],a,s){[a,s]=this.screenToPageTranslation(a,s),this.x+=a/e,this.y+=s/i,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,i){this.#I(this.parentDimensions,e,i)}translateInPage(e,i){this.#c||=[this.x,this.y,this.width,this.height],this.#I(this.pageDimensions,e,i),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,i){this.#c||=[this.x,this.y,this.width,this.height];let{div:a,parentDimensions:[s,n]}=this;if(this.x+=e/s,this.y+=i/n,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:c,y:u}=this.div.getBoundingClientRect();this.parent.findNewParent(this,c,u)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:r,y:l}=this,[o,f]=this.getBaseTranslation();r+=o,l+=f;let{style:h}=a;h.left=`${(100*r).toFixed(2)}%`,h.top=`${(100*l).toFixed(2)}%`,this._onTranslating(r,l)}_onTranslating(e,i){}_onTranslated(e,i){}get _hasBeenMoved(){return!!this.#c&&(this.#c[0]!==this.x||this.#c[1]!==this.y)}get _hasBeenResized(){return!!this.#c&&(this.#c[2]!==this.width||this.#c[3]!==this.height)}getBaseTranslation(){let[e,i]=this.parentDimensions,{_borderLineWidth:a}=Se,s=a/e,n=a/i;switch(this.rotation){case 90:return[-s,n];case 180:return[s,n];case 270:return[s,-n];default:return[-s,-n]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){let{div:{style:i},pageDimensions:[a,s]}=this,{x:n,y:r,width:l,height:o}=this;if(l*=a,o*=s,n*=a,r*=s,this._mustFixPosition)switch(e){case 0:n=Oe(n,0,a-l),r=Oe(r,0,s-o);break;case 90:n=Oe(n,0,a-o),r=Oe(r,l,s);break;case 180:n=Oe(n,l,a),r=Oe(r,o,s);break;case 270:n=Oe(n,o,a),r=Oe(r,0,s-l)}this.x=n/=a,this.y=r/=s;let[f,h]=this.getBaseTranslation();n+=f,r+=h,i.left=`${(100*n).toFixed(2)}%`,i.top=`${(100*r).toFixed(2)}%`,this.moveInDOM()}static#C(e,i,a){switch(a){case 90:return[i,-e];case 180:return[-e,-i];case 270:return[-i,e];default:return[e,i]}}screenToPageTranslation(e,i){return Se.#C(e,i,this.parentRotation)}pageTranslationToScreen(e,i){return Se.#C(e,i,360-this.parentRotation)}#E(e){switch(e){case 90:{let[i,a]=this.pageDimensions;return[0,-i/a,a/i,0]}case 180:return[-1,0,0,-1];case 270:{let[i,a]=this.pageDimensions;return[0,i/a,-a/i,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:e,pageDimensions:[i,a]}=this;return[i*e,a*e]}setDims(){let{div:{style:e},width:i,height:a}=this;e.width=`${(100*i).toFixed(2)}%`,e.height=`${(100*a).toFixed(2)}%`}getInitialTranslation(){return[0,0]}#M(){if(this.#o)return;this.#o=document.createElement("div"),this.#o.classList.add("resizers");let e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],i=this._uiManager._signal;for(let a of e){let s=document.createElement("div");this.#o.append(s),s.classList.add("resizer",a),s.setAttribute("data-resizer-name",a),s.addEventListener("pointerdown",this.#F.bind(this,a),{signal:i}),s.addEventListener("contextmenu",va,{signal:i}),s.tabIndex=-1}this.div.prepend(this.#o)}#F(e,i){i.preventDefault();let{isMac:a}=Te.platform;if(i.button!==0||i.ctrlKey&&a)return;this.#i?.toggle(!1);let s=this._isDraggable;this._isDraggable=!1,this.#f=[i.screenX,i.screenY];let n=new AbortController,r=this._uiManager.combinedSignal(n);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#B.bind(this,e),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",ai,{passive:!1,signal:r}),window.addEventListener("contextmenu",va,{signal:r}),this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let l=this.parent.div.style.cursor,o=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(i.target).cursor;let f=d(()=>{n.abort(),this.parent.togglePointerEvents(!0),this.#i?.toggle(!0),this._isDraggable=s,this.parent.div.style.cursor=l,this.div.style.cursor=o,this.#_()},"pointerUpCallback");window.addEventListener("pointerup",f,{signal:r}),window.addEventListener("blur",f,{signal:r})}#D(e,i,a,s){this.width=a,this.height=s,this.x=e,this.y=i,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#_(){if(!this.#u)return;let{savedX:e,savedY:i,savedWidth:a,savedHeight:s}=this.#u;this.#u=null;let n=this.x,r=this.y,l=this.width,o=this.height;(n!==e||r!==i||l!==a||o!==s)&&this.addCommands({cmd:this.#D.bind(this,n,r,l,o),undo:this.#D.bind(this,e,i,a,s),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#B(e,i){let[a,s]=this.parentDimensions,n=this.x,r=this.y,l=this.width,o=this.height,f=Se.MIN_SIZE/a,h=Se.MIN_SIZE/s,c=this.#E(this.rotation),u=d((z,B)=>[c[0]*z+c[2]*B,c[1]*z+c[3]*B],"transf"),p=this.#E(360-this.rotation),m=d((z,B)=>[p[0]*z+p[2]*B,p[1]*z+p[3]*B],"invTransf"),g,b,w=!1,v=!1;switch(e){case"topLeft":w=!0,g=d((z,B)=>[0,0],"getPoint"),b=d((z,B)=>[z,B],"getOpposite");break;case"topMiddle":g=d((z,B)=>[z/2,0],"getPoint"),b=d((z,B)=>[z/2,B],"getOpposite");break;case"topRight":w=!0,g=d((z,B)=>[z,0],"getPoint"),b=d((z,B)=>[0,B],"getOpposite");break;case"middleRight":v=!0,g=d((z,B)=>[z,B/2],"getPoint"),b=d((z,B)=>[0,B/2],"getOpposite");break;case"bottomRight":w=!0,g=d((z,B)=>[z,B],"getPoint"),b=d((z,B)=>[0,0],"getOpposite");break;case"bottomMiddle":g=d((z,B)=>[z/2,B],"getPoint"),b=d((z,B)=>[z/2,0],"getOpposite");break;case"bottomLeft":w=!0,g=d((z,B)=>[0,B],"getPoint"),b=d((z,B)=>[z,0],"getOpposite");break;case"middleLeft":v=!0,g=d((z,B)=>[0,B/2],"getPoint"),b=d((z,B)=>[z,B/2],"getOpposite")}let y=g(l,o),x=b(l,o),q=u(...x),j=Se._round(n+q[0]),A=Se._round(r+q[1]),S=1,C=1,M,O;if(i.fromKeyboard)({deltaX:M,deltaY:O}=i);else{let{screenX:z,screenY:B}=i,[G,Q]=this.#f;[M,O]=this.screenToPageTranslation(z-G,B-Q),this.#f[0]=z,this.#f[1]=B}if([M,O]=m(M/a,O/s),w){let z=Math.hypot(l,o);S=C=Math.max(Math.min(Math.hypot(x[0]-y[0]-M,x[1]-y[1]-O)/z,1/l,1/o),f/l,h/o)}else v?S=Oe(Math.abs(x[0]-y[0]-M),f,1)/l:C=Oe(Math.abs(x[1]-y[1]-O),h,1)/o;let P=Se._round(l*S),$=Se._round(o*C);q=u(...b(P,$));let tt=j-q[0],K=A-q[1];this.#c||=[this.x,this.y,this.width,this.height],this.width=P,this.height=$,this.x=tt,this.y=K,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#i?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#b)return this._editToolbar;this._editToolbar=new Xk(this),this.div.append(this._editToolbar.render());let{toolbarButtons:e}=this;if(e)for(let[i,a]of e)await this._editToolbar.addButton(i,a);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton("comment")}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,this.#i?.destroy()}addContainer(e){let i=this._editToolbar?.div;i?i.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#i||(C1.initialize(Se._l10n),this.#i=new C1(this),this.#t&&=(this.#i.data=this.#t,null)),this.#i}get altTextData(){return this.#i?.data}set altTextData(e){this.#i&&(this.#i.data=e)}get guessedAltText(){return this.#i?.guessedText}async setGuessedAltText(e){await this.#i?.setGuessedText(e)}serializeAltText(e){return this.#i?.serialize(e)}hasAltText(){return!!this.#i&&!this.#i.isEmpty()}hasAltTextData(){return this.#i?.hasData()??!1}focusCommentButton(){this.#a?.focusButton()}addCommentButton(){return this.canAddComment?this.#a||=new ao(this):null}addStandaloneCommentButton(){this._uiManager.hasCommentManager()&&(this.#s?this._uiManager.isEditingMode()&&this.#s.classList.remove("hidden"):this.hasComment&&(this.#s=this.#a.renderForStandalone(),this.div.append(this.#s)))}removeStandaloneCommentButton(){this.#a.removeStandaloneCommentButton(),this.#s=null}hideStandaloneCommentButton(){this.#s?.classList.add("hidden")}get comment(){if(!this.#a)return null;let{data:{richText:e,text:i,date:a,deleted:s}}=this.#a;return{text:i,richText:e,date:a,deleted:s,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(e){this.#a||=new ao(this),typeof e=="object"&&e?this.#a.restoreData(e):this.#a.data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:e,popupRef:i,richText:a}){if(!i||(this.#a||=new ao(this),this.#a.setInitialText(e,a),!this.annotationElementId))return;let s=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);s&&this.updateFromAnnotationLayer(s)}get hasEditedComment(){return this.#a?.hasBeenEdited()}get hasDeletedComment(){return this.#a?.isDeleted()}get hasComment(){return!!this.#a&&!this.#a.isEmpty()&&!this.#a.isDeleted()}async editComment(e){this.#a||=new ao(this),this.#a.edit(e)}toggleComment(e,i=void 0){this.hasComment&&this._uiManager.toggleComment(this,e,i)}setSelectedCommentButton(e){this.#a.setSelectedButton(e)}addComment(e){if(this.hasEditedComment){let[,,,i]=e.rect,[a]=this.pageDimensions,[s]=this.pageTranslation,n=s+a+1,r=i-100,l=n+180;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[n,r,l,i]}}}updateFromAnnotationLayer({popup:{contents:e,deleted:i}}){this.#a.data=i?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){let e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#n?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#H();let[i,a]=this.parentDimensions;this.parentRotation%180!=0&&(e.style.maxWidth=`${(100*a/i).toFixed(2)}%`,e.style.maxHeight=`${(100*i/a).toFixed(2)}%`);let[s,n]=this.getInitialTranslation();return this.translate(s,n),Em(this,e,["keydown","pointerdown","dblclick"]),this.#U(),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),e}#G(){this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#i?.toggle(!1),this.parent.togglePointerEvents(!1)}#O(e,i,a){let s=.7,n=a/i*s+1-s;if(n===1)return;let r=this.#E(this.rotation),l=d((j,A)=>[r[0]*j+r[2]*A,r[1]*j+r[3]*A],"transf"),[o,f]=this.parentDimensions,h=this.x,c=this.y,u=this.width,p=this.height,m=Se.MIN_SIZE/o,g=Se.MIN_SIZE/f;n=Math.max(Math.min(n,1/u,1/p),m/u,g/p);let b=Se._round(u*n),w=Se._round(p*n);if(b===u&&w===p)return;this.#c||=[h,c,u,p];let v=l(u/2,p/2),y=Se._round(h+v[0]),x=Se._round(c+v[1]),q=l(b/2,w/2);this.x=y-q[0],this.y=x-q[1],this.width=b,this.height=w,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#z(){this.#i?.toggle(!0),this.parent.togglePointerEvents(!0),this.#_()}pointerdown(e){let{isMac:i}=Te.platform;e.button!==0||e.ctrlKey&&i?e.preventDefault():(this.#g=!0,this._isDraggable?this.#j(e):this.#S(e))}#S(e){let{isMac:i}=Te.platform;e.ctrlKey&&!i||e.shiftKey||e.metaKey&&i?this.parent.toggleSelected(this):this.parent.setSelected(this)}#j(e){let{isSelected:i}=this;this._uiManager.setUpDragSession();let a=!1,s=new AbortController,n=this._uiManager.combinedSignal(s),r={capture:!0,passive:!1,signal:n},l=d(f=>{s.abort(),this.#r=null,this.#g=!1,this._uiManager.endDragSession()||this.#S(f),a&&this._onStopDragging()},"cancelDrag");i&&(this.#k=e.clientX,this.#v=e.clientY,this.#r=e.pointerId,this.#l=e.pointerType,window.addEventListener("pointermove",f=>{a||(a=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:h,clientY:c,pointerId:u}=f;if(u!==this.#r){ai(f);return}let[p,m]=this.screenToPageTranslation(h-this.#k,c-this.#v);this.#k=h,this.#v=c,this._uiManager.dragSelectedEditors(p,m),this.div.scrollIntoView({block:"nearest"})},r),window.addEventListener("touchmove",ai,r),window.addEventListener("pointerdown",f=>{f.pointerType===this.#l&&(this.#A||f.isPrimary)&&l(f),ai(f)},r));let o=d(f=>{!this.#r||this.#r===f.pointerId?l(f):ai(f)},"pointerUpCallback");window.addEventListener("pointerup",o,{signal:n}),window.addEventListener("blur",o,{signal:n})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#y&&clearTimeout(this.#y),this.#y=setTimeout(()=>{this.#y=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,i,a){e.changeParent(this),this.x=i,this.y=a,this.fixAndSetPosition(),this._onTranslated()}getRect(e,i,a=this.rotation){let s=this.parentScale,[n,r]=this.pageDimensions,[l,o]=this.pageTranslation,f=e/s,h=i/s,c=this.x*n,u=this.y*r,p=this.width*n,m=this.height*r;switch(a){case 0:return[c+f+l,r-u-h-m+o,c+f+p+l,r-u-h+o];case 90:return[c+h+l,r-u+f+o,c+h+m+l,r-u+f+p+o];case 180:return[c-f-p+l,r-u+h+o,c-f+l,r-u+h+m+o];case 270:return[c-h-m+l,r-u-f-p+o,c-h+l,r-u-f+o];default:throw Error("Invalid rotation")}}getRectInCurrentCoords(e,i){let[a,s,n,r]=e,l=n-a,o=r-s;switch(this.rotation){case 0:return[a,i-r,l,o];case 90:return[a,i-s,o,l];case 180:return[n,i-s,l,o];case 270:return[n,i-r,o,l];default:throw Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&Se._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#a?.onUpdatedColor()}getData(){let{comment:{text:e,color:i,date:a,opacity:s,deleted:n,richText:r},uid:l,pageIndex:o,creationDate:f,modificationDate:h}=this;return{id:l,pageIndex:o,rect:this.getPDFRect(),richText:r,contentsObj:{str:e},creationDate:f,modificationDate:a||h,popupRef:!n,color:i,opacity:s}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return!this.isInEditMode()&&(this.parent.setEditingState(!1),this.#b=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#b=!1,!0):!1}isInEditMode(){return this.#b}shouldGetKeyboardEvents(){return this.#w}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:e,left:i,bottom:a,right:s}=this.getClientDimensions(),{innerHeight:n,innerWidth:r}=window;return i<r&&s>0&&e<n&&a>0}#H(){if(this.#d||!this.div)return;this.#d=new AbortController;let e=this._uiManager.combinedSignal(this.#d);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}#U(){this.#A||!this.div||!this.isResizable||!this._uiManager._supportsPinchToZoom||(this.#A=new Fu({container:this.div,isPinchingDisabled:d(()=>!this.isSelected,"isPinchingDisabled"),onPinchStart:this.#G.bind(this),onPinching:this.#O.bind(this),onPinchEnd:this.#z.bind(this),signal:this._uiManager._signal}))}rebuild(){this.#H(),this.#U()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,i=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||""}}static async deserialize(e,i,a){let s=new this.prototype.constructor({parent:i,id:a.getId(),uiManager:a,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});s.rotation=e.rotation,s.#t=e.accessibilityData,s._isCopy=e.isCopy||!1;let[n,r]=s.pageDimensions,[l,o,f,h]=s.getRectInCurrentCoords(e.rect,r);return s.x=l/n,s.y=o/r,s.width=f/n,s.height=h/r,s}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#d?.abort(),this.#d=null,this.isEmpty()||this.commit(),this.#A?.destroy(),this.#A=null,this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.hideCommentPopup(),this.#y&&=(clearTimeout(this.#y),null),this.#P(),this.removeEditToolbar(),this.#q){for(let e of this.#q.values())clearTimeout(e);this.#q=null}this.parent=null,this.#h?.remove(),this.#h=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#M(),this.#o.classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return this._uiManager.direction==="ltr"?[1,0]:[0,0]}get commentButtonPositionInPage(){let{commentButtonPosition:[e,i]}=this,[a,s,n,r]=this.getPDFRect();return[Se._round(a+(n-a)*e),Se._round(s+(r-s)*(1-i))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#a.commentPopupPositionInLayer}set commentPopupPosition(e){this.#a.commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return this.#a.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#a.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){this.#a?.setCommentButtonStates(e)}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let i=this.#o.children;if(!this.#e){this.#e=Array.from(i);let r=this.#$.bind(this),l=this.#Y.bind(this),o=this._uiManager._signal;for(let f of this.#e){let h=f.getAttribute("data-resizer-name");f.setAttribute("role","spinbutton"),f.addEventListener("keydown",r,{signal:o}),f.addEventListener("blur",l,{signal:o}),f.addEventListener("focus",this.#N.bind(this,h),{signal:o}),f.setAttribute("data-l10n-id",Se._l10nResizer[h])}}let a=this.#e[0],s=0;for(let r of i){if(r===a)break;s++}let n=(360-this.rotation+this.parentRotation)%360/90*(this.#e.length/4);if(n!==s){if(n<s)for(let l=0;l<s-n;l++)this.#o.append(this.#o.firstElementChild);else if(n>s)for(let l=0;l<n-s;l++)this.#o.firstElementChild.before(this.#o.lastElementChild);let r=0;for(let l of i){let o=this.#e[r++].getAttribute("data-resizer-name");l.setAttribute("data-l10n-id",Se._l10nResizer[o])}}this.#X(0),this.#w=!0,this.#o.firstElementChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}#$(e){Se._resizerKeyboardManager.exec(this,e)}#Y(e){this.#w&&e.relatedTarget?.parentNode!==this.#o&&this.#P()}#N(e){this.#p=this.#w?e:""}#X(e){if(this.#e)for(let i of this.#e)i.tabIndex=e}_resizeWithKeyboard(e,i){this.#w&&this.#B(this.#p,{deltaX:e,deltaY:i,fromKeyboard:!0})}#P(){this.#w=!1,this.#X(-1),this.#_()}_stopResizingWithKeyboard(){this.#P(),this.div.focus()}select(){this.isSelected&&this._editToolbar?this._editToolbar.show():(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),this._editToolbar?(this._editToolbar?.show(),this.#i?.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()}))}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#o?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#i?.toggleAltTextBadge(!0),this.hideCommentPopup())}hideCommentPopup(){this.hasComment&&this._uiManager.toggleComment(null)}updateParams(e,i){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){e.target.nodeName!=="BUTTON"&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.uid}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(e){this.#m=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,i=!1){if(i){this.#q||=new Map;let{action:a}=e,s=this.#q.get(a);s&&clearTimeout(s),s=setTimeout(()=>{this._reportTelemetry(e),this.#q.delete(a),this.#q.size===0&&(this.#q=null)},Se._telemetryTimeout),this.#q.set(a,s)}else e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#n=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#n=!0}updateFakeAnnotationElement(e){!this.#h&&!this.deleted?this.#h=e.addFakeAnnotation(this):this.deleted?(this.#h.remove(),this.#h=null):(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#h.updateEdited({rect:this.getPDFRect(),popup:this.comment})}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let i=e.container.querySelector(".annotationContent");if(!i)i=document.createElement("div"),i.classList.add("annotationContent",this.editorType),e.container.prepend(i);else if(i.nodeName==="CANVAS"){let a=i;i=document.createElement("div"),i.classList.add("annotationContent",this.editorType),a.before(i)}return i}resetAnnotationElement(e){let{firstElementChild:i}=e.container;i?.nodeName==="DIV"&&i.classList.contains("annotationContent")&&i.remove()}},ev=class extends He{static{d(this,"FakeEditor")}constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}},M1=3285377520,ca=4294901760,qs=65535,Tc=class{static{d(this,"MurmurHash3_64")}constructor(t){this.h1=t?t|0:M1,this.h2=t?t|0:M1}update(t){let e,i;if(typeof t=="string"){e=new Uint8Array(t.length*2),i=0;for(let m=0,g=t.length;m<g;m++){let b=t.charCodeAt(m);b<=255?e[i++]=b:(e[i++]=b>>>8,e[i++]=b&255)}}else if(ArrayBuffer.isView(t))e=t.slice(),i=e.byteLength;else throw Error("Invalid data format, must be a string or TypedArray.");let a=i>>2,s=i-a*4,n=new Uint32Array(e.buffer,0,a),r=0,l=0,o=this.h1,f=this.h2,h=3432918353,c=461845907,u=11601,p=13715;for(let m=0;m<a;m++)m&1?(r=n[m],r=r*h&ca|r*u&qs,r=r<<15|r>>>17,r=r*c&ca|r*p&qs,o^=r,o=o<<13|o>>>19,o=o*5+3864292196):(l=n[m],l=l*h&ca|l*u&qs,l=l<<15|l>>>17,l=l*c&ca|l*p&qs,f^=l,f=f<<13|f>>>19,f=f*5+3864292196);switch(r=0,s){case 3:r^=e[a*4+2]<<16;case 2:r^=e[a*4+1]<<8;case 1:r^=e[a*4],r=r*h&ca|r*u&qs,r=r<<15|r>>>17,r=r*c&ca|r*p&qs,a&1?o^=r:f^=r}this.h1=o,this.h2=f}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=t*3981806797&ca|t*36045&qs,e=e*4283543511&ca|((e<<16|t>>>16)*2950163797&ca)>>>16,t^=e>>>1,t=t*444984403&ca|t*60499&qs,e=e*3301882366&ca|((e<<16|t>>>16)*3120437893&ca)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}},Al=Object.freeze({map:null,hash:"",transfer:void 0}),Ru=class{static{d(this,"AnnotationStorage")}#t=!1;#e=null;#i=null;#a=new Map;onSetModified=null;onResetModified=null;onAnnotationEditor=null;getValue(t,e){let i=this.#a.get(t);return i===void 0?e:Object.assign(e,i)}getRawValue(t){return this.#a.get(t)}remove(t){let e=this.#a.get(t);e!==void 0&&(e instanceof He&&this.#i.delete(e.annotationElementId),this.#a.delete(t),this.#a.size===0&&this.resetModified(),!this.#a.values().some(i=>i instanceof He)&&this.onAnnotationEditor?.(null))}setValue(t,e){let i=this.#a.get(t),a=!1;if(i!==void 0)for(let[s,n]of Object.entries(e))i[s]!==n&&(a=!0,i[s]=n);else a=!0,this.#a.set(t,e);a&&this.#s(),e instanceof He&&((this.#i||=new Map).set(e.annotationElementId,e),this.onAnnotationEditor?.(e.constructor._type))}has(t){return this.#a.has(t)}get size(){return this.#a.size}#s(){this.#t||(this.#t=!0,this.onSetModified?.())}resetModified(){this.#t&&(this.#t=!1,this.onResetModified?.())}get print(){return new Dm(this)}get serializable(){if(this.#a.size===0)return Al;let t=new Map,e=new Tc,i=[],a=Object.create(null),s=!1;for(let[n,r]of this.#a){let l=r instanceof He?r.serialize(!1,a):r;r.page&&(r.pageIndex=r.page._pageIndex,delete r.page),l&&(t.set(n,l),e.update(`${n}:${JSON.stringify(l)}`),s||=!!l.bitmap)}if(s)for(let n of t.values())n.bitmap&&i.push(n.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:i}:Al}get editorStats(){let t=null,e=new Map,i=0,a=0;for(let s of this.#a.values()){if(!(s instanceof He)){s.popup&&(s.popup.deleted?a+=1:i+=1);continue}s.isCommentDeleted?a+=1:s.hasEditedComment&&(i+=1);let n=s.telemetryFinalData;if(!n)continue;let{type:r}=n;e.getOrInsertComputed(r,()=>Object.getPrototypeOf(s).constructor),t||=Object.create(null);let l=t[r]||=new Map;for(let[o,f]of Object.entries(n)){if(o==="type")continue;let h=l.getOrInsertComputed(o,cf);h.set(f,(h.get(f)??0)+1)}}if((a>0||i>0)&&(t||=Object.create(null),t.comments={deleted:a,edited:i}),!t)return null;for(let[s,n]of e)t[s]=n.computeTelemetryFinalData(t[s]);return t}resetModifiedIds(){this.#e=null}updateEditor(t,e){let i=this.#i?.get(t);return i?(i.updateFromAnnotationLayer(e),!0):!1}getEditor(t){return this.#i?.get(t)||null}get modifiedIds(){if(this.#e)return this.#e;let t=[];if(this.#i)for(let i of this.#i.values())i.serialize()&&t.push(i.annotationElementId);let e="";if(t.length){let i=new Tc;i.update(t.join(",")),e=i.hexdigest()}return this.#e={ids:new Set(t),hash:e}}[Symbol.iterator](){return this.#a.entries()}},Dm=class extends Ru{static{d(this,"PrintAnnotationStorage")}#t=Al;constructor(t){super();let{serializable:e}=t;if(e===Al)return;let{map:i,hash:a,transfer:s}=e,n=structuredClone(i,s?{transfer:s}:null);this.#t={map:n,hash:a,transfer:[]}}get print(){Ae("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#t}get modifiedIds(){return Tt(this,"modifiedIds",{ids:new Set,hash:""})}},Gn="__forcedDependency",{floor:_1,ceil:E1}=Math;d(F1,"expandBBox");d(iv,"scaleCharBBox");Mc=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0],av=class{static{d(this,"BBoxReader")}#t;#e;constructor(t,e){this.#t=t,this.#e=e}get length(){return this.#t.length}isEmpty(t){return this.#t[t]===Mc}minX(t){return this.#e[t*4+0]/256}minY(t){return this.#e[t*4+1]/256}maxX(t){return(this.#e[t*4+2]+1)/256}maxY(t){return(this.#e[t*4+3]+1)/256}},R1=d((t,e)=>t?.getOrInsertComputed(e,()=>({dependencies:new Set,isRenderingOperation:!1})),"ensureDebugMetadata"),sv=class{static{d(this,"CanvasBBoxTracker")}#t=[[1,0,0,1,0,0]];#e=[-1/0,-1/0,1/0,1/0];#i=new Float64Array(Wa);_pendingBBoxIdx=-1;#a;#s;#n;#r;_savesStack=[];_markedContentStack=[];constructor(t,e){this.#a=t.width,this.#s=t.height,this.#l(e)}growOperationsCount(t){t>=this.#r.length&&this.#l(t,this.#r)}#l(t,e){let i=new ArrayBuffer(t*4);this.#n=new Uint8ClampedArray(i),this.#r=new Uint32Array(i),e&&e.length>0?(this.#r.set(e),this.#r.fill(Mc,e.length)):this.#r.fill(Mc)}get clipBox(){return this.#e}save(t){return this.#e={__proto__:this.#e},this._savesStack.push(t),this}restore(t,e){let i=Object.getPrototypeOf(this.#e);if(i===null)return this;this.#e=i;let a=this._savesStack.pop();return a!==void 0&&(e?.(a,t),this.#r[t]=this.#r[a]),this}recordOpenMarker(t){return this._savesStack.push(t),this}getOpenMarker(){return this._savesStack.length===0?null:this._savesStack.at(-1)}recordCloseMarker(t,e){let i=this._savesStack.pop();return i!==void 0&&(e?.(i,t),this.#r[t]=this.#r[i]),this}beginMarkedContent(t){return this._markedContentStack.push(t),this}endMarkedContent(t,e){let i=this._markedContentStack.pop();return i!==void 0&&(e?.(i,t),this.#r[t]=this.#r[i]),this}pushBaseTransform(t){return this.#t.push(qt.multiplyByDOMMatrix(this.#t.at(-1),t.getTransform())),this}popBaseTransform(){return this.#t.length>1&&this.#t.pop(),this}resetBBox(t){return this._pendingBBoxIdx!==t&&(this._pendingBBoxIdx=t,this.#i.set(Wa,0)),this}recordClipBox(t,e,i,a,s,n){let r=qt.multiplyByDOMMatrix(this.#t.at(-1),e.getTransform()),l=Wa.slice();qt.axialAlignedBoundingBox([i,s,a,n],r,l);let o=qt.intersect(this.#e,l);return o?(this.#e[0]=o[0],this.#e[1]=o[1],this.#e[2]=o[2],this.#e[3]=o[3]):(this.#e[0]=this.#e[1]=1/0,this.#e[2]=this.#e[3]=-1/0),this}recordBBox(t,e,i,a,s,n){let r=this.#e;if(r[0]===1/0)return this;let l=qt.multiplyByDOMMatrix(this.#t.at(-1),e.getTransform());if(r[0]===-1/0)return qt.axialAlignedBoundingBox([i,s,a,n],l,this.#i),this;let o=Wa.slice();return qt.axialAlignedBoundingBox([i,s,a,n],l,o),this.#i[0]=Oe(o[0],r[0],this.#i[0]),this.#i[1]=Oe(o[1],r[1],this.#i[1]),this.#i[2]=Oe(o[2],this.#i[2],r[2]),this.#i[3]=Oe(o[3],this.#i[3],r[3]),this}recordFullPageBBox(t){return this.#i[0]=Math.max(0,this.#e[0]),this.#i[1]=Math.max(0,this.#e[1]),this.#i[2]=Math.min(this.#a,this.#e[2]),this.#i[3]=Math.min(this.#s,this.#e[3]),this}recordOperation(t,e=!1,i){if(this._pendingBBoxIdx!==t)return this;let a=_1(this.#i[0]*256/this.#a),s=_1(this.#i[1]*256/this.#s),n=E1(this.#i[2]*256/this.#a),r=E1(this.#i[3]*256/this.#s);if(F1(this.#n,t,a,s,n,r),i)for(let l of i)for(let o of l)o!==t&&F1(this.#n,o,a,s,n,r);return e||(this._pendingBBoxIdx=-1),this}bboxToClipBoxDropOperation(t){return this._pendingBBoxIdx===t&&(this._pendingBBoxIdx=-1,this.#e[0]=Math.max(this.#e[0],this.#i[0]),this.#e[1]=Math.max(this.#e[1],this.#i[1]),this.#e[2]=Math.min(this.#e[2],this.#i[2]),this.#e[3]=Math.min(this.#e[3],this.#i[3])),this}take(){return new av(this.#r,this.#n)}takeDebugMetadata(){throw Error("Unreachable")}recordSimpleData(t,e){return this}recordIncrementalData(t,e){return this}resetIncrementalData(t,e){return this}recordNamedData(t,e){return this}recordSimpleDataFromNamed(t,e,i){return this}recordFutureForcedDependency(t,e){return this}inheritSimpleDataAsFutureForcedDependencies(t){return this}inheritPendingDependenciesAsFutureForcedDependencies(){return this}recordCharacterBBox(t,e,i,a=1,s=0,n=0,r){return this}getSimpleIndex(t){}recordDependencies(t,e){return this}recordNamedDependency(t,e){return this}recordShowTextOperation(t,e=!1){return this}},nv=class{static{d(this,"CanvasDependencyTracker")}#t={__proto__:null};#e={__proto__:null,transform:[],moveText:[],sameLineText:[],[Gn]:[]};#i=new Map;#a=new Set;#s=new Map;#n;#r;#l;constructor(t,e=!1){this.#l=t,e&&(this.#n=new Map,this.#r=(i,a)=>{R1(this.#n,a).dependencies.add(i)})}get clipBox(){return this.#l.clipBox}growOperationsCount(t){this.#l.growOperationsCount(t)}save(t){return this.#t={__proto__:this.#t},this.#e={__proto__:this.#e,transform:{__proto__:this.#e.transform},moveText:{__proto__:this.#e.moveText},sameLineText:{__proto__:this.#e.sameLineText},[Gn]:{__proto__:this.#e[Gn]}},this.#l.save(t),this}restore(t){this.#l.restore(t,this.#r);let e=Object.getPrototypeOf(this.#t);return e===null||(this.#t=e,this.#e=Object.getPrototypeOf(this.#e)),this}recordOpenMarker(t){return this.#l.recordOpenMarker(t,this.#r),this}getOpenMarker(){return this.#l.getOpenMarker()}recordCloseMarker(t){return this.#l.recordCloseMarker(t,this.#r),this}beginMarkedContent(t){return this.#l.beginMarkedContent(t),this}endMarkedContent(t){return this.#l.endMarkedContent(t,this.#r),this}pushBaseTransform(t){return this.#l.pushBaseTransform(t),this}popBaseTransform(){return this.#l.popBaseTransform(),this}recordSimpleData(t,e){return this.#t[t]=e,this}recordIncrementalData(t,e){return this.#e[t].push(e),this}resetIncrementalData(t,e){return this.#e[t].length=0,this}recordNamedData(t,e){return this.#i.set(t,e),this}recordSimpleDataFromNamed(t,e,i){this.#t[t]=this.#i.get(e)??i}recordFutureForcedDependency(t,e){return this.recordIncrementalData(Gn,e),this}inheritSimpleDataAsFutureForcedDependencies(t){for(let e of t)e in this.#t&&this.recordFutureForcedDependency(e,this.#t[e]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(let t of this.#a)this.recordFutureForcedDependency(Gn,t);return this}resetBBox(t){return this.#l.resetBBox(t),this}recordClipBox(t,e,i,a,s,n){return this.#l.recordClipBox(t,e,i,a,s,n),this}recordBBox(t,e,i,a,s,n){return this.#l.recordBBox(t,e,i,a,s,n),this}recordCharacterBBox(t,e,i,a=1,s=0,n=0,r){let l=i.bbox,o,f;if(l&&(o=l[2]!==l[0]&&l[3]!==l[1]&&this.#s.get(i),o!==!1&&(f=[0,0,0,0],qt.axialAlignedBoundingBox(l,i.fontMatrix,f),(a!==1||s!==0||n!==0)&&iv(a,-a,s,n,f),o)))return this.recordBBox(t,e,f[0],f[2],f[1],f[3]);if(!r)return this.recordFullPageBBox(t);let h=r();return l&&f&&o===void 0&&(o=f[0]<=s-h.actualBoundingBoxLeft&&f[2]>=s+h.actualBoundingBoxRight&&f[1]<=n-h.actualBoundingBoxAscent&&f[3]>=n+h.actualBoundingBoxDescent,this.#s.set(i,o),o)?this.recordBBox(t,e,f[0],f[2],f[1],f[3]):this.recordBBox(t,e,s-h.actualBoundingBoxLeft,s+h.actualBoundingBoxRight,n-h.actualBoundingBoxAscent,n+h.actualBoundingBoxDescent)}recordFullPageBBox(t){return this.#l.recordFullPageBBox(t),this}getSimpleIndex(t){return this.#t[t]}recordDependencies(t,e){let i=this.#a,a=this.#t,s=this.#e;for(let n of e)n in this.#t?i.add(a[n]):n in s&&s[n].forEach(i.add,i);return this}recordNamedDependency(t,e){return this.#i.has(e)&&this.#a.add(this.#i.get(e)),this}recordOperation(t,e=!1){if(this.recordDependencies(t,[Gn]),this.#n){let a=R1(this.#n,t),{dependencies:s}=a;this.#a.forEach(s.add,s),this.#l._savesStack.forEach(s.add,s),this.#l._markedContentStack.forEach(s.add,s),s.delete(t),a.isRenderingOperation=!0}let i=!e&&t===this.#l._pendingBBoxIdx;return this.#l.recordOperation(t,e,[this.#a,this.#l._savesStack,this.#l._markedContentStack]),i&&this.#a.clear(),this}recordShowTextOperation(t,e=!1){let i=Array.from(this.#a);this.recordOperation(t,e),this.recordIncrementalData("sameLineText",t);for(let a of i)this.recordIncrementalData("sameLineText",a);return this}bboxToClipBoxDropOperation(t,e=!1){let i=!e&&t===this.#l._pendingBBoxIdx;return this.#l.bboxToClipBoxDropOperation(t),i&&this.#a.clear(),this}take(){return this.#s.clear(),this.#l.take()}takeDebugMetadata(){return this.#n}},_c=class Pm{static{d(this,"CanvasNestedDependencyTracker")}#t;#e;#i;#a=0;#s=0;constructor(e,i,a){if(e instanceof Pm&&e.#i===!!a)return e;this.#t=e,this.#e=i,this.#i=!!a}get clipBox(){return this.#t.clipBox}growOperationsCount(){throw Error("Unreachable")}save(e){return this.#s++,this.#t.save(this.#e),this}restore(e){return this.#s>0&&(this.#t.restore(this.#e),this.#s--),this}recordOpenMarker(e){return this.#a++,this}getOpenMarker(){return this.#a>0?this.#e:this.#t.getOpenMarker()}recordCloseMarker(e){return this.#a--,this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return this.#t.pushBaseTransform(e),this}popBaseTransform(){return this.#t.popBaseTransform(),this}recordSimpleData(e,i){return this.#t.recordSimpleData(e,this.#e),this}recordIncrementalData(e,i){return this.#t.recordIncrementalData(e,this.#e),this}resetIncrementalData(e,i){return this.#t.resetIncrementalData(e,this.#e),this}recordNamedData(e,i){return this}recordSimpleDataFromNamed(e,i,a){return this.#t.recordSimpleDataFromNamed(e,i,this.#e),this}recordFutureForcedDependency(e,i){return this.#t.recordFutureForcedDependency(e,this.#e),this}inheritSimpleDataAsFutureForcedDependencies(e){return this.#t.inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#t.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return this.#i||this.#t.resetBBox(this.#e),this}recordClipBox(e,i,a,s,n,r){return this.#i||this.#t.recordClipBox(this.#e,i,a,s,n,r),this}recordBBox(e,i,a,s,n,r){return this.#i||this.#t.recordBBox(this.#e,i,a,s,n,r),this}recordCharacterBBox(e,i,a,s,n,r,l){return this.#i||this.#t.recordCharacterBBox(this.#e,i,a,s,n,r,l),this}recordFullPageBBox(e){return this.#i||this.#t.recordFullPageBBox(this.#e),this}getSimpleIndex(e){return this.#t.getSimpleIndex(e)}recordDependencies(e,i){return this.#t.recordDependencies(this.#e,i),this}recordNamedDependency(e,i){return this.#t.recordNamedDependency(this.#e,i),this}recordOperation(e){return this.#t.recordOperation(this.#e,!0),this}recordShowTextOperation(e){return this.#t.recordShowTextOperation(this.#e,!0),this}bboxToClipBoxDropOperation(e){return this.#i||this.#t.bboxToClipBoxDropOperation(this.#e,!0),this}take(){throw Error("Unreachable")}takeDebugMetadata(){throw Error("Unreachable")}},ua={stroke:["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],fill:["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],imageXObject:["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],rawFillPath:["filter","fillColor","fillAlpha"],showText:["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],transform:["transform"],transformAndFill:["transform","filter","fillColor"]},rv=class Ec{static{d(this,"CanvasImagesTracker")}#t;#e;#i=4;#a=0;#s=new Ec.#n(this.#i*6);static#n=Te.isFloat16ArraySupported?Float16Array:Float32Array;constructor(e){this.#t=e.width,this.#e=e.height}record(e,i,a,s){if(this.#a===this.#i){this.#i*=2;let l=new Ec.#n(this.#i*6);l.set(this.#s),this.#s=l}let n=Pe(e),r;if(s[0]!==1/0){let l=Wa.slice();qt.axialAlignedBoundingBox([0,-a,i,0],n,l);let o=qt.intersect(s,l);if(!o)return;let[f,h,c,u]=o;if(f!==l[0]||h!==l[1]||c!==l[2]||u!==l[3]){let p=Math.atan2(n[1],n[0]),m=Math.abs(Math.sin(p)),g=Math.abs(Math.cos(p));if(m<1e-6||g<1e-6||Math.abs(m-g)<1e-6)r=[f,h,f,u,c,h];else{let b=c-f,w=u-h,v=m*m,y=g*g,x=g*m,q=y-v,j=(w*y-b*x)/q;r=[f+(w*x-b*v)/q,h,f,h+j,c,u-j]}}}r||(r=[0,-a,0,0,i,-a],qt.applyTransform(r,n,0),qt.applyTransform(r,n,2),qt.applyTransform(r,n,4)),r[0]/=this.#t,r[1]/=this.#e,r[2]/=this.#t,r[3]/=this.#e,r[4]/=this.#t,r[5]/=this.#e,this.#s.set(r,this.#a*6),this.#a++}take(){return this.#s.subarray(0,this.#a*6)}},D1=new RegExp("\\p{Cc}","u");d(lv,"isCSSString");d(P1,"serializeFontFamily");ov=class{static{d(this,"FontLoader")}#t=new Set;#e=new Set;#i=null;constructor({ownerDocument:t=globalThis.document,styleElement:e=null}){this._document=t,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.#t.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.#t.delete(t),this._document.fonts.delete(t)}insertRule(t){let e=this.#a();e.insertRule(t,e.cssRules.length)}#a(){if(this.#i)return this.#i;let t=this._document.defaultView?.CSSStyleSheet||globalThis.CSSStyleSheet;if(!this.styleElement&&t){let{adoptedStyleSheets:e}=this._document;if(e){let i=new t;return e.push(i),this.#i=i}}return this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement)),this.#i=this.styleElement.sheet}clear(){for(let t of this.#t)this._document.fonts.delete(t);if(this.#t.clear(),this.#e.clear(),this.#i){let{adoptedStyleSheets:t}=this._document;t?.includes(this.#i)&&(this._document.adoptedStyleSheets=t.filter(e=>e!==this.#i)),this.#i=null}this.styleElement?.remove(),this.styleElement=null}async loadSystemFont({systemFontInfo:t,disableFontFace:e,_inspectFont:i}){if(t&&!this.#e.has(t.loadedName))if(Xe(!e,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:a,src:s,style:n}=t,r=new FontFace(a,s,n);this.addNativeFontFace(r);try{await r.load(),this.#e.add(a),i?.(t)}catch{le(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}}else Ae("Not implemented: loadSystemFont without the Font Loading API.")}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){let i=t.createNativeFontFace();if(i){this.addNativeFontFace(i);try{await i.loaded}catch(a){throw le(`Failed to load font '${i.family}': '${a}'.`),t.disableFontFace=!0,a}}return}let e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await this.#s(t)}}get isFontLoadingAPISupported(){return Tt(this,"isFontLoadingAPISupported",!!this._document?.fonts)}get isSyncFontLoadingSupported(){return Tt(this,"isSyncFontLoadingSupported",ma||Te.platform.isFirefox)}#s(t){function e(){for(Xe(!n.done,"completeRequest() cannot be called twice."),n.done=!0;i.length>0&&i[0].done;){let q=i.shift();setTimeout(q.resolve,0)}}d(e,"completeRequest");let{loadingRequests:i}=this,{promise:a,resolve:s}=Promise.withResolvers(),n={done:!1,resolve:s};i.push(n),this._loadTestFont??=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");function r(q,j){return q.charCodeAt(j)<<24|q.charCodeAt(j+1)<<16|q.charCodeAt(j+2)<<8|q.charCodeAt(j+3)&255}d(r,"int32");function l(q){return String.fromCharCode(q>>24&255,q>>16&255,q>>8&255,q&255)}d(l,"string32");function o(q,j,A,S){let C=q.substring(0,j),M=q.substring(j+A);return C+S+M}d(o,"spliceString");let f,h,c=this._document.createElement("canvas");c.width=1,c.height=1;let u=c.getContext("2d"),p=0;function m(q,j){++p>30?(le("Load test font never loaded."),j()):(u.font="30px "+q,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?j():setTimeout(m.bind(null,q,j)))}d(m,"isFontReady");let g=`lt${Date.now()}${this.loadTestFontId++}`,b=this._loadTestFont;b=o(b,976,g.length,g);let w=1482184792,v=r(b,16);for(f=0,h=g.length-3;f<h;f+=4)v=v-w+r(g,f)|0;f<g.length&&(v=v-w+r(g+"XXX",f)|0),b=o(b,16,4,l(v));let y=`@font-face {font-family:"${g}";src:${`url(data:font/opentype;base64,${btoa(b)});`}}`;this.insertRule(y);let x=this._document.createElement("div");x.style.visibility="hidden",x.style.width=x.style.height="10px",x.style.position="absolute",x.style.top=x.style.left="0px";for(let q of[t.loadedName,g]){let j=this._document.createElement("span");j.textContent="Hi",j.style.fontFamily=q,x.append(j)}return this._document.body.append(x),m(g,()=>{x.remove(),e()}),a}},fv=class{static{d(this,"FontFaceObject")}#t=new Map;#e;constructor(t,e=null,i,a){this.#e=t,this._inspectFont=e,i&&(this.charProcOperatorList=i),a&&Object.assign(this,a)}createNativeFontFace(){let{data:t}=this;if(!t||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,t,{});else{let i={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(i.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(P1(this.cssFontInfo.fontFamily),t,i)}return this._inspectFont?.(this),e}createFontFaceRule(){let{data:t}=this;if(!t||this.disableFontFace)return null;let e=`url(data:${this.mimetype};base64,${t.toBase64()});`,i;if(!this.cssFontInfo)i=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),i=`@font-face {font-family:${P1(this.cssFontInfo.fontFamily)};${a}src:${e}}`}return this._inspectFont?.(this,e),i}getPathGenerator(t,e){let i=this.#t.get(e);if(i)return i;let a=`${this.loadedName}_path_${e}`,s;try{s=t.get(a)}catch(n){le(`getPathGenerator - ignoring character: "${n}".`)}return i=_m(s?.path),this.fontExtraProperties||t.delete(a),this.#t.set(e,i),i}get black(){return this.#e.black}get bold(){return this.#e.bold}get disableFontFace(){return this.#e.disableFontFace}set disableFontFace(t){Tt(this,"disableFontFace",!!t)}get fontExtraProperties(){return this.#e.fontExtraProperties}get isInvalidPDFjsFont(){return this.#e.isInvalidPDFjsFont}get isType3Font(){return this.#e.isType3Font}get italic(){return this.#e.italic}get missingFile(){return this.#e.missingFile}get remeasure(){return this.#e.remeasure}get vertical(){return this.#e.vertical}get bbox(){return this.#e.bbox}get fontMatrix(){return this.#e.fontMatrix}get fallbackName(){return this.#e.fallbackName}get loadedName(){return this.#e.loadedName}get mimetype(){return this.missingFile?null:"font/opentype"}get data(){return this.#e.data}clearData(){this.#e.clearData()}get cssFontInfo(){return this.#e.cssFontInfo}get systemFontInfo(){return this.#e.systemFontInfo}},hv=class{static{d(this,"CSS_FONT_INFO")}static strings=["fontFamily","fontWeight","italicAngle"]},cv=class{static{d(this,"SYSTEM_FONT_INFO")}static strings=["css","loadedName","baseFontName","src"]},$n=class{static{d(this,"FONT_INFO")}static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static strings=["fallbackName","loadedName"];static OFFSET_BBOX=Math.ceil(this.bools.length*2/8);static OFFSET_FONT_MATRIX=this.OFFSET_BBOX+1+8;static OFFSET_STRINGS=this.OFFSET_FONT_MATRIX+1+48},Qs=class{static{d(this,"PATTERN_INFO")}static KIND=0;static HAS_BBOX=1;static HAS_BACKGROUND=2;static SHADING_TYPE=3;static N_COORD=4;static N_COLOR=8;static N_STOP=12;static N_FIGURES=16},uv=class{static{d(this,"InfoUtils")}static get decoder(){return Tt(this,"decoder",new TextDecoder)}static get encoder(){return Tt(this,"encoder",new TextEncoder)}};d(hl,"readString");dv=class{static{d(this,"CssFontInfo")}#t;#e;constructor(t){this.#t=t,this.#e=new DataView(t)}#i(t){return Xe(t<hv.strings.length,"Invalid string index"),hl(this.#t,this.#e,t)}get fontFamily(){return Tt(this,"fontFamily",this.#i(0))}get fontWeight(){return Tt(this,"fontWeight",this.#i(1))}get italicAngle(){return Tt(this,"italicAngle",this.#i(2))}},pv=class{static{d(this,"SystemFontInfo")}#t;#e;constructor(t){this.#t=t,this.#e=new DataView(t)}#i(t){return Xe(t<cv.strings.length,"Invalid string index"),hl(this.#t,this.#e,t,4)}get css(){return Tt(this,"css",this.#i(0))}get loadedName(){return Tt(this,"loadedName",this.#i(1))}get baseFontName(){return Tt(this,"baseFontName",this.#i(2))}get src(){return Tt(this,"src",this.#i(3))}get style(){let t=0;t+=4+this.#e.getUint32(t);let e=hl(this.#t,this.#e,0,t),i=hl(this.#t,this.#e,1,t);return Tt(this,"style",{style:e,weight:i})}},mv=class{static{d(this,"FontInfo")}#t;#e;constructor(t){this.#t=t,this.#e=new DataView(t)}#i(t){Xe(t<$n.bools.length,"Invalid boolean index");let e=Math.floor(t/4),i=t*2%8,a=this.#e.getUint8(e)>>i&3;return a===0?void 0:a===2}get black(){return Tt(this,"black",this.#i(0))}get bold(){return Tt(this,"bold",this.#i(1))}get disableFontFace(){return Tt(this,"disableFontFace",this.#i(2))}get fontExtraProperties(){return Tt(this,"fontExtraProperties",this.#i(3))}get isInvalidPDFjsFont(){return Tt(this,"isInvalidPDFjsFont",this.#i(4))}get isType3Font(){return Tt(this,"isType3Font",this.#i(5))}get italic(){return Tt(this,"italic",this.#i(6))}get missingFile(){return Tt(this,"missingFile",this.#i(7))}get remeasure(){return Tt(this,"remeasure",this.#i(8))}get vertical(){return Tt(this,"vertical",this.#i(9))}#a(t,e,i,a){let s=this.#e.getUint8(t++);if(s===0)return;Xe(s===e,"Invalid array length.");let n=Array(s);for(let r=0;r<s;r++)n[r]=this.#e[i](t,!0),t+=a;return n}get bbox(){return Tt(this,"bbox",this.#a($n.OFFSET_BBOX,4,"getInt16",2))}get fontMatrix(){return Tt(this,"fontMatrix",this.#a($n.OFFSET_FONT_MATRIX,6,"getFloat64",8))}#s(t){return Xe(t<$n.strings.length,"Invalid string index"),hl(this.#t,this.#e,t,$n.OFFSET_STRINGS+4)}get fallbackName(){return Tt(this,"fallbackName",this.#s(0))}get loadedName(){return Tt(this,"loadedName",this.#s(1))}#n(t){let e=$n.OFFSET_STRINGS;for(let a=0;a<=t;a++)e+=4+this.#e.getUint32(e);let i=this.#e.getUint32(e);return{offset:e,length:i}}get data(){let{offset:t,length:e}=this.#n(2);return e?new Uint8Array(this.#t,t+4,e):void 0}clearData(){let{offset:t,length:e}=this.#n(2);e&&(this.#e.setUint32(t,0),this.#t=new Uint8Array(this.#t,0,t+4).slice().buffer,this.#e=new DataView(this.#t))}get cssFontInfo(){let{offset:t,length:e}=this.#n(1),i=null;return e&&(i=new dv(new Uint8Array(this.#t,t+4,e).slice().buffer)),Tt(this,"cssFontInfo",i)}get systemFontInfo(){let{offset:t,length:e}=this.#n(0),i=null;return e&&(i=new pv(new Uint8Array(this.#t,t+4,e).slice().buffer)),Tt(this,"systemFontInfo",i)}},gv=class{static{d(this,"PatternInfo")}constructor(t){this.buffer=t,this.view=new DataView(t),this.data=new Uint8Array(t)}getIR(){let t=this.view,e=this.data[Qs.KIND],i=!!this.data[Qs.HAS_BBOX],a=!!this.data[Qs.HAS_BACKGROUND],s=t.getUint32(Qs.N_COORD,!0),n=t.getUint32(Qs.N_COLOR,!0),r=t.getUint32(Qs.N_STOP,!0),l=20,o=new Float32Array(this.buffer,l,s*2);l+=s*8;let f=new Uint8Array(this.buffer,l,n*4);l+=n*4;let h=[];for(let p=0;p<r;++p){let m=t.getFloat32(l,!0);l+=4;let g=t.getUint32(l,!0);l+=4,h.push([m,`#${g.toString(16).padStart(6,"0")}`])}let c=null;if(i){c=[];for(let p=0;p<4;++p)c.push(t.getFloat32(l,!0)),l+=4}let u=null;if(a&&(u=new Uint8Array(this.buffer,l,3),l+=3),e===1)return["RadialAxial","axial",c,h,[o[0],o[1]],[o[2],o[3]],null,null];if(e===2)return["RadialAxial","radial",c,h,[o[0],o[1]],[o[3],o[4]],o[2],o[5]];if(e===3){let p=this.data[Qs.SHADING_TYPE],m=null;if(o.length>0){m=Wa.slice();for(let g=0,b=o.length;g<b;g+=2)qt.pointBoundingBox(o[g],o[g+1],m)}return["Mesh",p,o,f,s,m,c,u]}throw Error(`Unsupported pattern kind: ${e}`)}},bv=class{static{d(this,"FontPathInfo")}#t;constructor(t){this.#t=t}get path(){return Te.isFloat16ArraySupported?new Float16Array(this.#t):new Float32Array(this.#t)}};d(wv,"getUrlProp");d(yv,"getDataProp");d(so,"getFactoryUrlProp");Fc=d(t=>typeof t=="object"&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0,"isRefProxy"),kv=d(t=>typeof t=="object"&&typeof t?.name=="string","isNameProxy"),Bm=Gk.bind(null,Fc,kv),vv=class{static{d(this,"LoopbackPort")}#t=new Map;#e=Promise.resolve();postMessage(t,e){let i={data:structuredClone(t,e?{transfer:e}:null)};this.#e.then(()=>{for(let[a]of this.#t)a.call(this,i)})}addEventListener(t,e,i=null){let a=null;if(i?.signal instanceof AbortSignal){let{signal:s}=i;if(s.aborted){le("LoopbackPort - cannot use an `aborted` signal.");return}let n=d(()=>this.removeEventListener(t,e),"onAbort");a=d(()=>s.removeEventListener("abort",n),"rmAbort"),s.addEventListener("abort",n)}this.#t.set(e,a)}removeEventListener(t,e){this.#t.get(e)?.(),this.#t.delete(e)}terminate(){for(let[,t]of this.#t)t?.();this.#t.clear()}},no={DATA:1,ERROR:2},ti={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};d(B1,"onFn");d(Wi,"wrapReason");Yr=class{static{d(this,"MessageHandler")}#t=new Map;#e=new Map;#i=1;#a;#s=new AbortController;#n;#r=new Map;#l=1;#o=new Map;#f;constructor(t,e,i){this.#n=t,this.#f=e,this.#a=i,i.addEventListener("message",this.#u.bind(this),{signal:this.#s.signal})}#u({data:t}){if(t.targetName!==this.#n)return;if(t.stream){this.#d(t);return}if(t.callback){let{callbackId:i,callback:a}=t,s=this.#e.get(i);if(!s)throw Error(`Cannot resolve callback ${i}`);if(this.#e.delete(i),a===no.DATA)s.resolve(t.data);else if(a===no.ERROR)s.reject(Wi(t.reason));else throw Error("Unexpected callback case");return}let e=this.#t.get(t.action);if(!e)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let i=this.#n,a=t.sourceName,s=this.#a;Promise.try(e,t.data).then(n=>{s.postMessage({sourceName:i,targetName:a,callback:no.DATA,callbackId:t.callbackId,data:n})},n=>{s.postMessage({sourceName:i,targetName:a,callback:no.ERROR,callbackId:t.callbackId,reason:Wi(n)})})}else t.streamId?this.#h(t):e(t.data)}on(t,e){let i=this.#t;if(i.has(t))throw Error(`There is already a "${t}" handler.`);i.set(t,e)}send(t,e,i){this.#a.postMessage({sourceName:this.#n,targetName:this.#f,action:t,data:e},i)}sendWithPromise(t,e,i){let a=this.#i++,s=Promise.withResolvers();this.#e.set(a,s);try{this.#a.postMessage({sourceName:this.#n,targetName:this.#f,action:t,callbackId:a,data:e},i)}catch(n){s.reject(n)}return s.promise}sendWithStream(t,e,i,a){let s=this.#l++,n=this.#n,r=this.#f,l=this.#a;return new ReadableStream({start:d(o=>{let f=Promise.withResolvers();return this.#r.set(s,{controller:o,startCall:f,pullCall:null,cancelCall:null,isClosed:!1}),l.postMessage({sourceName:n,targetName:r,action:t,streamId:s,data:e,desiredSize:o.desiredSize},a),f.promise},"start"),pull:d(o=>{let f=Promise.withResolvers();return this.#r.get(s).pullCall=f,l.postMessage({sourceName:n,targetName:r,stream:ti.PULL,streamId:s,desiredSize:o.desiredSize}),f.promise},"pull"),cancel:d(o=>{Xe(o instanceof Error,"cancel must have a valid reason");let f=Promise.withResolvers();return this.#r.get(s).cancelCall=f,this.#r.get(s).isClosed=!0,l.postMessage({sourceName:n,targetName:r,stream:ti.CANCEL,streamId:s,reason:Wi(o)}),f.promise},"cancel")},i)}#h(t){let e=t.streamId,i=this.#n,a=t.sourceName,s=this.#a,n=this.#o,r=this.#t.get(t.action),l={enqueue(o,f=1,h){if(this.isCancelled)return;let c=this.desiredSize;this.desiredSize-=f,c>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:i,targetName:a,stream:ti.ENQUEUE,streamId:e,chunk:o},h)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:ti.CLOSE,streamId:e}),n.delete(e))},error(o){Xe(o instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:ti.ERROR,streamId:e,reason:Wi(o)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,n.set(e,l),Promise.try(r,t.data,l).then(()=>{s.postMessage({sourceName:i,targetName:a,stream:ti.START_COMPLETE,streamId:e,success:!0})},o=>{s.postMessage({sourceName:i,targetName:a,stream:ti.START_COMPLETE,streamId:e,reason:Wi(o)})})}#d(t){let e=t.streamId,i=this.#n,a=t.sourceName,s=this.#a,n=this.#r.get(e),r=this.#o.get(e);switch(t.stream){case ti.START_COMPLETE:t.success?n.startCall.resolve():n.startCall.reject(Wi(t.reason));break;case ti.PULL_COMPLETE:t.success?n.pullCall.resolve():n.pullCall.reject(Wi(t.reason));break;case ti.PULL:if(!r){s.postMessage({sourceName:i,targetName:a,stream:ti.PULL_COMPLETE,streamId:e,success:!0});break}r.desiredSize<=0&&t.desiredSize>0&&r.sinkCapability.resolve(),r.desiredSize=t.desiredSize,Promise.try(r.onPull||B1).then(()=>{s.postMessage({sourceName:i,targetName:a,stream:ti.PULL_COMPLETE,streamId:e,success:!0})},o=>{s.postMessage({sourceName:i,targetName:a,stream:ti.PULL_COMPLETE,streamId:e,reason:Wi(o)})});break;case ti.ENQUEUE:if(Xe(n,"enqueue should have stream controller"),n.isClosed)break;n.controller.enqueue(t.chunk);break;case ti.CLOSE:if(Xe(n,"close should have stream controller"),n.isClosed)break;n.isClosed=!0,n.controller.close(),this.#p(n,e);break;case ti.ERROR:Xe(n,"error should have stream controller"),n.controller.error(Wi(t.reason)),this.#p(n,e);break;case ti.CANCEL_COMPLETE:t.success?n.cancelCall.resolve():n.cancelCall.reject(Wi(t.reason)),this.#p(n,e);break;case ti.CANCEL:if(!r)break;let l=Wi(t.reason);Promise.try(r.onCancel||B1,l).then(()=>{s.postMessage({sourceName:i,targetName:a,stream:ti.CANCEL_COMPLETE,streamId:e,success:!0})},o=>{s.postMessage({sourceName:i,targetName:a,stream:ti.CANCEL_COMPLETE,streamId:e,reason:Wi(o)})}),r.sinkCapability.reject(l),r.isCancelled=!0,this.#o.delete(e);break;default:throw Error("Unexpected stream case")}}async#p(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),this.#r.delete(e)}destroy(){this.#s?.abort(),this.#s=null}},Om=class{static{d(this,"BaseBinaryDataFactory")}#t=Object.freeze({cMapUrl:"CMap",standardFontDataUrl:"font",wasmUrl:"wasm"});constructor({cMapUrl:t=null,standardFontDataUrl:e=null,wasmUrl:i=null}){this.cMapUrl=t,this.standardFontDataUrl=e,this.wasmUrl=i}async fetch({kind:t,filename:e}){switch(t){case"cMapUrl":case"standardFontDataUrl":case"wasmUrl":break;default:Ae(`Not implemented: ${t}`)}let i=this[t];if(!i)throw Error(`Ensure that the \`${t}\` API parameter is provided.`);let a=`${i}${e}`;return this._fetch(a,t).catch(s=>{throw Error(`Unable to load ${this.#t[t]} data at: ${a}`)})}async _fetch(t,e){Ae("Abstract method `_fetch` called.")}},O1=class extends Om{static{d(this,"DOMBinaryDataFactory")}async _fetch(t,e){let i=await uf(t,e==="cMapUrl"&&!t.endsWith(".bcmap")?"text":"bytes");return i instanceof Uint8Array?i:hf(i)}},Hm=class{static{d(this,"BaseCanvasFactory")}#t=!1;constructor({enableHWA:t=!1}){this.#t=t}create(t,e){if(t<=0||e<=0)throw Error("Invalid canvas size");let i=this._createCanvas(t,e);return{canvas:i,context:i.getContext("2d",{willReadFrequently:!this.#t})}}reset({canvas:t},e,i){if(!t)throw Error("Canvas is not specified");if(e<=0||i<=0)throw Error("Invalid canvas size");t.width=e,t.height=i}destroy(t){let{canvas:e}=t;if(!e)throw Error("Canvas is not specified");e.width=e.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){Ae("Abstract method `_createCanvas` called.")}},jv=class extends Hm{static{d(this,"DOMCanvasFactory")}constructor({ownerDocument:t=globalThis.document,enableHWA:e=!1}){super({enableHWA:e}),this._document=t}_createCanvas(t,e){let i=this._document.createElement("canvas");return i.width=t,i.height=e,i}},Nm=class{static{d(this,"BaseFilterFactory")}addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addKnockoutFilter(t=0){return"none"}addHighlightHCMFilter(t,e,i,a,s){return"none"}addSelectionHCMFilter(t,e){return"none"}addSelectionFilter(){return"none"}createSelectionStyle(t=null){return null}destroy(t=!1){}},qv=class extends Nm{static{d(this,"DOMFilterFactory")}#t;#e;#i;#a;#s;#n;#r=0;constructor({docId:t,ownerDocument:e=globalThis.document}){super(),this.#a=t,this.#s=e}get#l(){return this.#e||=new Map}get#o(){return this.#n||=new Map}get#f(){if(!this.#i){let t=this.#s.createElement("div"),{style:e}=t;e.colorScheme="only light",e.visibility="hidden",e.contain="strict",e.width=e.height=0,e.position="absolute",e.top=e.left=0,e.zIndex=-1;let i=this.#s.createElementNS(Pi,"svg");i.setAttribute("width",0),i.setAttribute("height",0),this.#i=this.#s.createElementNS(Pi,"defs"),t.append(i),i.append(this.#i),this.#s.body.append(t)}return this.#i}#u(t){let e=d(n=>n&&Array.from(n,r=>r/255).join(","),"toTable");if(t.length===1){let n=e(t[0]);return[n,n,n]}let[i,a,s]=t;return[e(i),e(a),e(s)]}#h(t){if(this.#t===void 0){this.#t="";let e=this.#s.URL;e!==this.#s.baseURI&&(El(e)?le('#createUrl: ignore "data:"-URL for performance reasons.'):this.#t=Iu(e,""))}return`url(${this.#t}#${t})`}addFilter(t){if(!t)return"none";let e=this.#l.get(t);if(e)return e;let[i,a,s]=this.#u(t),n=t.length===1?i:`${i}${a}${s}`;if(e=this.#l.get(n),e)return this.#l.set(t,e),e;let r=`g_${this.#a}_transfer_map_${this.#r++}`,l=this.#h(r);this.#l.set(t,l),this.#l.set(n,l);let o=this.#g(r);return this.#m(i,a,s,o),l}addHCMFilter(t,e){let i=`${t}-${e}`,a="base",s=this.#o.get(a);if(s?.key===i||(s?(s.filter?.remove(),s.key=i,s.url="none",s.filter=null):(s={key:i,url:"none",filter:null},this.#o.set(a,s)),!t||!e))return s.url;let n=this.#w(t);t=qt.makeHexColor(...n);let r=this.#w(e);if(e=qt.makeHexColor(...r),this.#k(),t==="#000000"&&e==="#ffffff"||t===e)return s.url;let l=Array.from({length:256},(c,u)=>Cc(u/255)).join(","),o=`g_${this.#a}_hcm_filter`,f=s.filter=this.#g(o);this.#m(l,l,l,f),this.#p(f);let h=d((c,u)=>{let p=n[c]/255,m=r[c]/255,g=Array(u+1);for(let b=0;b<=u;b++)g[b]=p+b/u*(m-p);return g.join(",")},"getSteps");return this.#m(h(0,5),h(1,5),h(2,5),f),s.url=this.#h(o),s.url}addSelectionHCMFilter(t,e){return this.addHighlightHCMFilter("selection",t,e,"HighlightText","Highlight")}addSelectionFilter(){return this.addHighlightHCMFilter("selection_default","black","white","HighlightText","Highlight")}createSelectionStyle(t=null){let e=t?this.addSelectionHCMFilter(t.foreground,t.background):this.addSelectionFilter();return e==="none"||!Te.platform.isFirefox?null:{"backdrop-filter":e,"background-color":"transparent"}}addAlphaFilter(t){let e=this.#l.get(t);if(e)return e;let[i]=this.#u([t]),a=`alpha_${i}`;if(e=this.#l.get(a),e)return this.#l.set(t,e),e;let s=`g_${this.#a}_alpha_map_${this.#r++}`,n=this.#h(s);this.#l.set(t,n),this.#l.set(a,n);let r=this.#g(s);return this.#b(i,r),n}addLuminosityFilter(t){let e=this.#l.get(t||"luminosity");if(e)return e;let i,a;if(t?([i]=this.#u([t]),a=`luminosity_${i}`):a="luminosity",e=this.#l.get(a),e)return this.#l.set(t,e),e;let s=`g_${this.#a}_luminosity_map_${this.#r++}`,n=this.#h(s);this.#l.set(t,n),this.#l.set(a,n);let r=this.#g(s);return this.#d(r),t&&this.#b(i,r),n}addKnockoutFilter(t=0){let e=t>0?Math.min(1/t,1e6):1e6,i=`knockout_${e}`,a=this.#l.get(i);if(a)return a;let s=`g_${this.#a}_knockout_filter_${this.#r++}`,n=this.#h(s);this.#l.set(i,n);let r=this.#g(s),l=this.#s.createElementNS(Pi,"feComponentTransfer");r.append(l);let o=this.#s.createElementNS(Pi,"feFuncA");return o.setAttribute("type","linear"),o.setAttribute("slope",`${e}`),o.setAttribute("intercept","0"),l.append(o),n}addHighlightHCMFilter(t,e,i,a,s){let n=`${e}-${i}-${a}-${s}`,r=this.#o.get(t);if(r?.key===n||(r?(r.filter?.remove(),r.key=n,r.url="none",r.filter=null):(r={key:n,url:"none",filter:null},this.#o.set(t,r)),!e||!i))return r.url;let[l,o]=[e,i].map(this.#w.bind(this)),f=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),h=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),[c,u]=[a,s].map(this.#v.bind(this));h<f&&([f,h,c,u]=[h,f,u,c]),this.#k();let p=d((b,w,v)=>{let y=Array(256),x=(h-f)/v,q=b/255,j=(w-b)/(255*v),A=0;for(let S=0;S<=v;S++){let C=Math.round(f+S*x),M=q+S*j;for(let O=A;O<=C;O++)y[O]=M;A=C+1}for(let S=A;S<256;S++)y[S]=y[A-1];return y.join(",")},"getSteps"),m=`g_${this.#a}_hcm_${t}_filter`,g=r.filter=this.#g(m);return this.#p(g),this.#m(p(c[0],u[0],5),p(c[1],u[1],5),p(c[2],u[2],5),g),r.url=this.#h(m),r.url}destroy(t=!1){t&&this.#n?.size||(this.#i?.parentNode.parentNode.remove(),this.#i=null,this.#e?.clear(),this.#e=null,this.#n?.clear(),this.#n=null,this.#r=0)}#d(t){let e=this.#s.createElementNS(Pi,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(e)}#p(t){let e=this.#s.createElementNS(Pi,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(e)}#g(t){let e=this.#s.createElementNS(Pi,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",t),this.#f.append(e),e}#c(t,e,i){if(!i)return;let a=this.#s.createElementNS(Pi,e);a.setAttribute("type","discrete"),a.setAttribute("tableValues",i),t.append(a)}#m(t,e,i,a){let s=this.#s.createElementNS(Pi,"feComponentTransfer");a.append(s),this.#c(s,"feFuncR",t),this.#c(s,"feFuncG",e),this.#c(s,"feFuncB",i)}#b(t,e){let i=this.#s.createElementNS(Pi,"feComponentTransfer");e.append(i),this.#c(i,"feFuncA",t)}#w(t){return this.#f.style.color="CanvasText",this.#f.style.backgroundColor=t,br(getComputedStyle(this.#f).getPropertyValue("background-color"))}#y(t){return this.#f.style.color="CanvasText",this.#f.style.backgroundColor=t,_n(getComputedStyle(this.#f).getPropertyValue("background-color"))}#k(){this.#f.style.color="",this.#f.style.backgroundColor=""}#v(t){let[e,i,a,s]=this.#y(t);if(s===1)return[e,i,a];let[n,r,l]=this.#w("Canvas");return[fh(e,n,s),fh(i,r,s),fh(a,l,s)]}};d(fh,"blend");d(xv,"node_utils_fetchData");Av=class extends Nm{static{d(this,"NodeFilterFactory")}},Sv=class extends Hm{static{d(this,"NodeCanvasFactory")}_createCanvas(t,e){return process.getBuiltinModule("module").createRequire(import.meta.url),new Proxy({},{get(i,a){let s=globalThis[Symbol.for("unpdf.canvasModule")];return s?s[a]:()=>{throw Error("@napi-rs/canvas is not available in this environment")}}}).createCanvas(t,e)}},Cv=class extends Om{static{d(this,"NodeBinaryDataFactory")}async _fetch(t,e){return xv(t)}};d(Lm,"convertBlackAndWhiteToRGBA");d(Iv,"convertRGBToRGBA");Tv=class{static{d(this,"WebGPU")}#t=null;#e=null;#i=null;#a=null;async#s(){if(!globalThis.navigator?.gpu)return!1;try{let t=await navigator.gpu.requestAdapter();return t?(this.#a=navigator.gpu.getPreferredCanvasFormat(),this.#e=await t.requestDevice(),!0):!1}catch{return!1}}init(){return this.#t||=this.#s()}get isReady(){return this.#e!==null}loadMeshShader(){if(!this.#e||this.#i)return;let t=this.#e.createShaderModule({code:`
|
|
54
|
+
struct Uniforms {
|
|
55
|
+
offsetX : f32,
|
|
56
|
+
offsetY : f32,
|
|
57
|
+
scaleX : f32,
|
|
58
|
+
scaleY : f32,
|
|
59
|
+
paddedWidth : f32,
|
|
60
|
+
paddedHeight : f32,
|
|
61
|
+
borderSize : f32,
|
|
62
|
+
_pad : f32,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
@group(0) @binding(0) var<uniform> u : Uniforms;
|
|
66
|
+
|
|
67
|
+
struct VertexInput {
|
|
68
|
+
@location(0) position : vec2<f32>,
|
|
69
|
+
@location(1) color : vec4<f32>,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
struct VertexOutput {
|
|
73
|
+
@builtin(position) position : vec4<f32>,
|
|
74
|
+
@location(0) color : vec3<f32>,
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
@vertex
|
|
78
|
+
fn vs_main(in : VertexInput) -> VertexOutput {
|
|
79
|
+
var out : VertexOutput;
|
|
80
|
+
let cx = (in.position.x + u.offsetX) * u.scaleX;
|
|
81
|
+
let cy = (in.position.y + u.offsetY) * u.scaleY;
|
|
82
|
+
out.position = vec4<f32>(
|
|
83
|
+
((cx + u.borderSize) / u.paddedWidth) * 2.0 - 1.0,
|
|
84
|
+
1.0 - ((cy + u.borderSize) / u.paddedHeight) * 2.0,
|
|
85
|
+
0.0,
|
|
86
|
+
1.0
|
|
87
|
+
);
|
|
88
|
+
out.color = in.color.rgb;
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@fragment
|
|
93
|
+
fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
94
|
+
return vec4<f32>(in.color, 1.0);
|
|
95
|
+
}
|
|
96
|
+
`});this.#i=this.#e.createRenderPipeline({layout:"auto",vertex:{module:t,entryPoint:"vs_main",buffers:[{arrayStride:8,attributes:[{shaderLocation:0,offset:0,format:"float32x2"}]},{arrayStride:4,attributes:[{shaderLocation:1,offset:0,format:"unorm8x4"}]}]},fragment:{module:t,entryPoint:"fs_main",targets:[{format:this.#a}]},primitive:{topology:"triangle-list"}})}draw(t,e,i,a,s,n,r,l){this.loadMeshShader();let o=this.#e,{offsetX:f,offsetY:h,scaleX:c,scaleY:u}=a,p=o.createBuffer({size:Math.max(t.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});t.byteLength>0&&o.queue.writeBuffer(p,0,t);let m=o.createBuffer({size:Math.max(e.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});e.byteLength>0&&o.queue.writeBuffer(m,0,e);let g=o.createBuffer({size:32,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST});o.queue.writeBuffer(g,0,new Float32Array([f,h,c,u,n,r,l,0]));let b=o.createBindGroup({layout:this.#i.getBindGroupLayout(0),entries:[{binding:0,resource:{buffer:g}}]}),w=new OffscreenCanvas(n,r),v=w.getContext("webgpu");v.configure({device:o,format:this.#a,alphaMode:s?"opaque":"premultiplied"});let y=s?{r:s[0]/255,g:s[1]/255,b:s[2]/255,a:1}:{r:0,g:0,b:0,a:0},x=o.createCommandEncoder(),q=x.beginRenderPass({colorAttachments:[{view:v.getCurrentTexture().createView(),clearValue:y,loadOp:"clear",storeOp:"store"}]});return i>0&&(q.setPipeline(this.#i),q.setBindGroup(0,b),q.setVertexBuffer(0,p),q.setVertexBuffer(1,m),q.draw(i)),q.end(),o.queue.submit([x.finish()]),p.destroy(),m.destroy(),g.destroy(),w.transferToImageBitmap()}},mf=new Tv;d(Mv,"initGPU");d(_v,"isGPUReady");d(Ev,"loadMeshShader");d(Fv,"drawMeshWithGPU");vi={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};d(Ao,"applyBoundingBox");Du=class{static{d(this,"BaseShadingPattern")}matrix=null;isModifyingCurrentTransform(){return!1}getPattern(){Ae("Abstract method `getPattern` called.")}},Rv=class extends Du{static{d(this,"RadialAxialShadingPattern")}constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7]}isOriginBased(){return this._p0[0]===0&&this._p0[1]===0&&(!this.isRadial()||this._p1[0]===0&&this._p1[1]===0)}isRadial(){return this._type==="radial"}areConic(){if(!this.isRadial())return!1;let t=Math.hypot(this._p0[0]-this._p1[0],this._p0[1]-this._p1[1]);return t+this._r1>this._r0&&t+this._r0>this._r1}_createGradient(t,e=null){let i,a=this._p0,s=this._p1;if(e&&(a=a.slice(),s=s.slice(),qt.applyTransform(a,e),qt.applyTransform(s,e)),this._type==="axial")i=t.createLinearGradient(a[0],a[1],s[0],s[1]);else if(this._type==="radial"){let n=this._r0,r=this._r1;if(e){let l=new Float32Array(2);qt.singularValueDecompose2dScale(e,l),n*=l[0],r*=l[0]}i=t.createRadialGradient(a[0],a[1],n,s[0],s[1],r)}for(let n of this._colorStops)i.addColorStop(n[0],n[1]);return i}_createReversedGradient(t,e=null){let i=this._p1,a=this._p0;e&&(i=i.slice(),a=a.slice(),qt.applyTransform(i,e),qt.applyTransform(a,e));let s=this._r1,n=this._r0;if(e){let o=new Float32Array(2);qt.singularValueDecompose2dScale(e,o),s*=o[0],n*=o[0]}let r=t.createRadialGradient(i[0],i[1],s,a[0],a[1],n),l=this._colorStops.map(([o,f])=>[1-o,f]).reverse();for(let[o,f]of l)r.addColorStop(o,f);return r}_createRasterPattern(t,e,i,a,s,n){let r=Math.ceil(a[2]-a[0])||1,l=Math.ceil(a[3]-a[1])||1,o=e.canvasFactory.create(r,l),f=o.context;f.clearRect(0,0,r,l),f.beginPath(),f.rect(0,0,r,l),f.translate(-a[0],-a[1]),i=qt.transform(i,[1,0,0,1,a[0],a[1]]),f.transform(...s),Ao(f,this._bbox),this.areConic()&&(f.fillStyle=this._createReversedGradient(f),f.fill()),f.fillStyle=this._createGradient(f),f.fill(),n?.applyToCanvas(f);let h=t.createPattern(o.canvas,"no-repeat");return e.canvasFactory.destroy(o),h.setTransform(new DOMMatrix(i)),h}getPattern(t,e,i,a){let s=e.current.transferMapsFallback;if(a===vi.STROKE||a===vi.FILL){if(this.isOriginBased()&&!s){let l=qt.transform(i,e.baseTransform);this.matrix&&(l=qt.transform(l,this.matrix));let o=.001,f=Math.hypot(l[0],l[1]),h=Math.hypot(l[2],l[3]),c=(l[0]*l[2]+l[1]*l[3])/(f*h);if(Math.abs(c)<o)if(this.isRadial()){if(Math.abs(f-h)<o)return this._createGradient(t,l)}else return this._createGradient(t,l)}let n=e.current.getClippedPathBoundingBox(a,Pe(t))||[0,0,0,0],r=this.matrix?qt.transform(e.baseTransform,this.matrix):e.baseTransform;return this._createRasterPattern(t,e,i,n,r,s)}return s&&i?this._createRasterPattern(t,e,i,e.current.clipBox,Pe(t),s):(this.areConic()&&(t.save(),Ao(t,this._bbox),t.fillStyle=this._createReversedGradient(t),t.fillRect(-1e10,-1e10,2e10,2e10),t.restore()),Ao(t,this._bbox),this._createGradient(t))}};d(Dv,"drawTriangle");Pv=class extends Du{static{d(this,"MeshShadingPattern")}constructor(t){super(),this._posData=t[2],this._colData=t[3],this._vertexCount=t[4],this._bounds=t[5],this._bbox=t[6],this._background=t[7],Ev()}_createMeshCanvas(t,e,i,a=null){let s=1.1,n=3e3,r=Math.floor(this._bounds[0]),l=Math.floor(this._bounds[1]),o=Math.ceil(this._bounds[2])-r,f=Math.ceil(this._bounds[3])-l,h=Math.min(Math.ceil(Math.abs(o*t[0]*s)),n)||1,c=Math.min(Math.ceil(Math.abs(f*t[1]*s)),n)||1,u=o?o/h:1,p=f?f/c:1,m={coords:this._posData,colors:this._colData,offsetX:-r,offsetY:-l,scaleX:1/u,scaleY:1/p},g=h+4,b=c+4,w=i.create(g,b);if(_v()&&this._vertexCount>48)w.context.drawImage(Fv(this._posData,this._colData,this._vertexCount,m,e,g,b,2),0,0);else{let v=w.context.createImageData(h,c);if(e){let y=v.data;for(let x=0,q=y.length;x<q;x+=4)y[x]=e[0],y[x+1]=e[1],y[x+2]=e[2],y[x+3]=255}for(let y=0,x=this._vertexCount;y<x;y+=3)Dv(v,m,y,y+1,y+2,y,y+1,y+2);w.context.putImageData(v,2,2)}return a?.applyToCanvas(w.context),{canvas:w.canvas,offsetX:r-2*u,offsetY:l-2*p,scaleX:u,scaleY:p}}isModifyingCurrentTransform(){return!0}getPattern(t,e,i,a){Ao(t,this._bbox);let s=new Float32Array(2);if(a===vi.SHADING)qt.singularValueDecompose2dScale(Pe(t),s);else if(this.matrix){qt.singularValueDecompose2dScale(this.matrix,s);let[l,o]=s;qt.singularValueDecompose2dScale(e.baseTransform,s),s[0]*=l,s[1]*=o}else qt.singularValueDecompose2dScale(e.baseTransform,s);let n=this._createMeshCanvas(s,a===vi.SHADING?null:this._background,e.canvasFactory,e.current.transferMapsFallback);a!==vi.SHADING&&(t.setTransform(...e.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(n.offsetX,n.offsetY),t.scale(n.scaleX,n.scaleY);let r=t.createPattern(n.canvas,"no-repeat");return e.canvasFactory.destroy(n),r}},Bv=class extends Du{static{d(this,"DummyShadingPattern")}getPattern(){return"hotpink"}};d(Ov,"getShadingPattern");H1={COLORED:1,UNCOLORED:2},hh=class zm{static{d(this,"TilingPattern")}static MAX_PATTERN_SIZE=3e3;constructor(e,i,a,s){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.needsIsolation=e[9]??!0,this.ctx=i,this.canvasGraphicsFactory=a,this.baseTransform=s,this.patternBaseMatrix=this.matrix?qt.transform(s,this.matrix):s}canSkipPatternCanvas([e,i,a,s]){let[n,r,l,o]=this.bbox,f=Math.abs(this.xstep),h=Math.abs(this.ystep);if(e>f+1e-6||i>h+1e-6)return null;let c=Math.floor((a-l)/f)+1,u=Math.ceil((a+e-n)/f)-1,p=Math.floor((s-o)/h)+1,m=Math.ceil((s+i-r)/h)-1;return u<=c&&m<=p?[c,p]:null}updatePatternDims(e,i){let a=Wa.slice();qt.axialAlignedBoundingBox(e,qt.inverseTransform(this.patternBaseMatrix),a),i[0]=a[2]-a[0],i[1]=a[3]-a[1],i[2]=a[0],i[3]=a[1]}_renderTileCanvas(e,i,a,s){let[n,r,l,o]=this.bbox,f=e.canvasFactory.create(a.size,s.size),h=f.context,c=this.canvasGraphicsFactory.createCanvasGraphics(h,i);return c.groupLevel=e.groupLevel,c.current.transferMapsFallback=e.current.transferMapsFallback,this.setFillAndStrokeStyleToContext(c,this.paintType,this.color),h.translate(-a.scale*n,-s.scale*r),c.transform(0,a.scale,0,0,s.scale,0,0),h.save(),c.dependencyTracker?.save(),this.clipBbox(c,n,r,l,o),c.baseTransform=Pe(c.ctx),c.executeOperatorList(this.operatorList),c.endDrawing(),c.dependencyTracker?.restore(),h.restore(),f}_getCombinedScales(){let e=new Float32Array(2);qt.singularValueDecompose2dScale(this.matrix,e);let[i,a]=e;return qt.singularValueDecompose2dScale(this.baseTransform,e),[i*e[0],a*e[1]]}drawPattern(e,i,a=!1,[s,n],r){let[l,o,f,h]=this.bbox,c=e.dependencyTracker;if(c&&(e.dependencyTracker=new _c(c,r)),e.save(),a?e.ctx.clip(i,"evenodd"):e.ctx.clip(i),e.ctx.setTransform(...this.patternBaseMatrix),e.ctx.translate(s*this.xstep,n*this.ystep),this.needsIsolation||e.ctx.globalAlpha!==1||e.ctx.globalCompositeOperation!=="source-over"||e.inSMaskMode){let u=f-l,p=h-o,[m,g]=this._getCombinedScales(),b=this.getSizeAndScale(u,this.ctx.canvas.width,m),w=this.getSizeAndScale(p,this.ctx.canvas.height,g),v=this._renderTileCanvas(e,r,b,w);e.ctx.drawImage(v.canvas,l,o,u,p),e.canvasFactory.destroy(v)}else this.setFillAndStrokeStyleToContext(e,this.paintType,this.color),this.clipBbox(e,l,o,f,h),e.baseTransformStack.push(e.baseTransform),e.baseTransform=Pe(e.ctx),e.executeOperatorList(this.operatorList),e.baseTransform=e.baseTransformStack.pop();e.restore(),c&&(e.dependencyTracker=c)}createPatternCanvas(e,i){let[a,s,n,r]=this.bbox,l=n-a,o=r-s,{xstep:f,ystep:h}=this;f=Math.abs(f),h=Math.abs(h),ff("TilingType: "+this.tilingType);let[c,u]=this._getCombinedScales(),p=l,m=o,g=!1,b=!1;Math.ceil(f*c)>=Math.ceil(l*c)?p=f:g=!0,Math.ceil(h*u)>=Math.ceil(o*u)?m=h:b=!0;let w=this.getSizeAndScale(p,this.ctx.canvas.width,c),v=this.getSizeAndScale(m,this.ctx.canvas.height,u),y=this._renderTileCanvas(e,i,w,v);if(g||b){let x=y.canvas;g&&(p=f),b&&(m=h);let q=this.getSizeAndScale(p,this.ctx.canvas.width,c),j=this.getSizeAndScale(m,this.ctx.canvas.height,u),A=q.size,S=j.size,C=e.canvasFactory.create(A,S),M=C.context,O=g?Math.min(Math.floor(l/f),Math.ceil(x.width/A)):0,P=b?Math.min(Math.floor(o/h),Math.ceil(x.height/S)):0,$=x,tt=null;if(b){tt=e.canvasFactory.create(x.width,S);let K=tt.context;for(let z=P;z>=0;z--)K.drawImage(x,0,S*z,x.width,S,0,0,x.width,S);$=tt.canvas}for(let K=O;K>=0;K--)M.drawImage($,A*K,0,A,S,0,0,A,S);return tt&&e.canvasFactory.destroy(tt),e.canvasFactory.destroy(y),{canvas:C.canvas,canvasEntry:C,scaleX:q.scale,scaleY:j.scale,offsetX:a,offsetY:s}}return{canvas:y.canvas,canvasEntry:y,scaleX:w.scale,scaleY:v.scale,offsetX:a,offsetY:s}}getSizeAndScale(e,i,a){let s=Math.max(zm.MAX_PATTERN_SIZE,i),n=Math.ceil(e*a);return n>=s?n=s:a=n/e,{scale:a,size:n}}clipBbox(e,i,a,s,n){let r=s-i,l=n-a,o=new Path2D;o.rect(i,a,r,l),qt.axialAlignedBoundingBox([i,a,s,n],Pe(e.ctx),e.current.minMax),e.ctx.clip(o),e.current.updateClipFromPath()}setFillAndStrokeStyleToContext(e,i,a){switch(i){case H1.COLORED:a="#000000";break;case H1.UNCOLORED:break;default:throw new Lk(`Unsupported paint type: ${i}`)}let{ctx:s,current:n}=e;n.patternFill=n.patternStroke=!1,s.fillStyle=s.strokeStyle=n.transferMapsFallback?.applyToColor(a)??a,n.fillColor=n.strokeColor=a}isModifyingCurrentTransform(){return!1}getPattern(e,i,a,s,n){let r=s===vi.SHADING?a:qt.transform(a,this.patternBaseMatrix),l=this.createPatternCanvas(i,n),o=new DOMMatrix(r);o=o.translate(l.offsetX,l.offsetY),o=o.scale(1/l.scaleX,1/l.scaleY);let f=e.createPattern(l.canvas,"repeat");return i.canvasFactory.destroy(l.canvasEntry),f.setTransform(o),f}},na=new Float32Array(2);d(N1,"mirrorContextOperations");d(ro,"drawImageAtIntegerCoords");L1=class{static{d(this,"CanvasExtraState")}alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=jc;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=fi.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";tilingPatternDims=null;patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";transferMapsFallback=null;minMax=dn.slice();constructor(t,e){this.clipBox=new Float32Array([0,0,t,e])}clone(){let t=Object.create(this);return t.clipBox=this.clipBox.slice(),t.minMax=this.minMax.slice(),t.tilingPatternDims=this.tilingPatternDims?.slice(),t}getPathBoundingBox(t=vi.FILL,e=null){let i=this.minMax.slice();if(t===vi.STROKE){e||Ae("Stroke bounding box must include transform."),qt.singularValueDecompose2dScale(e,na);let a=na[0]*this.lineWidth/2,s=na[1]*this.lineWidth/2;i[0]-=a,i[1]-=s,i[2]+=a,i[3]+=s}return i}updateClipFromPath(){let t=qt.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(t){this.clipBox.set(t,0),this.minMax.set(dn,0)}getClippedPathBoundingBox(t=vi.FILL,e=null){return qt.intersect(this.clipBox,this.getPathBoundingBox(t,e))}};d(z1,"putBinaryImageData");d(U1,"putBinaryImageMask");d(Zs,"copyCtxState");d(lo,"resetCtxToDefault");Hv=class Um{static{d(this,"TransferMapsFallback")}#t;constructor(e){let[i,a=i,s=i]=e,{identityMap:n}=Um;this.#t=[i||n,a||n,s||n]}static get identityMap(){return Tt(this,"identityMap",Uint8Array.from({length:256},(e,i)=>i))}applyToColor(e){if(typeof e!="string"||!e.startsWith("#"))return e;let[i,a,s]=_n(e),[n,r,l]=this.#t;return qt.makeHexColor(n[i],r[a],l[s])}applyToImageData({data:e}){let[i,a,s]=this.#t;for(let n=0,r=e.length;n<r;n+=4)e[n]=i[e[n]],e[n+1]=a[e[n+1]],e[n+2]=s[e[n+2]]}applyToCanvas(e){let{width:i,height:a}=e.canvas,s=e.getImageData(0,0,i,a);this.applyToImageData(s),e.putImageData(s,0,0)}};d(G1,"getImageSmoothingEnabled");Nv=["butt","round","square"],Lv=["miter","round","bevel"],zv={},$1={},So=class Rc{static{d(this,"CanvasGraphics")}static#t=null;#e=0;#i=0;#a=null;#s=null;#n=null;#r=null;#l=1;#o;#f=null;#u=[];constructor(e,i,a,s,n,{optionalContentConfig:r,markedContentStack:l=null},o,f,h,c){this.ctx=e,this.current=new L1(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.commonObjs=i,this.objs=a,this.canvasFactory=s,this.filterFactory=n,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.tempSMask=null,this.smaskGroupCanvases=[],this.smaskPreparedEntry=null,this.smaskPreparedFor=null,this.smaskPreparedOffsetX=0,this.smaskPreparedOffsetY=0,this.smaskPreparedOOBAlpha=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=r,this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=f,this._cachedScaleForStroking=[-1,0],this._cachedBitmapsMap=new Map,this.dependencyTracker=h??null,this.imagesTracker=c??null}getObject(e,i,a=null){return typeof i=="string"?(this.dependencyTracker?.recordNamedDependency(e,i),i.startsWith("g_")?this.commonObjs.get(i):this.objs.get(i)):a}beginDrawing({transform:e,viewport:i,transparency:a=!1,background:s=null}){let n=this.ctx.canvas.width,r=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=s||"#ffffff",this.ctx.fillRect(0,0,n,r),this.ctx.fillStyle=l,a){let o=this.transparentCanvasEntry=this.canvasFactory.create(n,r);this.compositeCtx=this.ctx,{canvas:this.transparentCanvas,context:this.ctx}=o,this.ctx.save(),this.ctx.transform(...Pe(this.compositeCtx))}this.ctx.save(),lo(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[3]),this.ctx.transform(...i.transform),this.viewportScale=i.scale,this.baseTransform=Pe(this.ctx)}executeOperatorList(e,i,a,s,n){let r=e.argsArray,l=e.fnArray,o=i||0,f=r.length;if(f===o)return o;let h=f-o>10&&typeof a=="function",c=h?Date.now()+15:0,u=0,p=this.commonObjs,m=this.objs,g,b;for(;;){if(s!==void 0){if(o===s.nextBreakPoint)return s.breakIt(o,a),o;if(s.shouldSkip(o)){if(++o===f)return o;continue}}if(!n||n(o,e))if(g=l[o],b=r[o]??null,g!==Ia.dependency)b===null?this[g](o):this[g](o,...b);else for(let w of b){this.dependencyTracker?.recordNamedData(w,o);let v=w.startsWith("g_")?p:m;if(!v.has(w))return v.get(w,a),o}if(o++,o===f)return o;if(h&&++u>10){if(Date.now()>c)return a(),o;u=0}}}#h(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(this.transparentCanvasEntry),this.transparentCanvas=null,this.transparentCanvasEntry=null)}endDrawing(){this.#h();for(let e of this.smaskGroupCanvases)this.canvasFactory.destroy(e);this.smaskGroupCanvases.length=0,this._clearPreparedSMask(),this.tempSMask=null,this.smaskStack.length=0;for(let e of this.#u)this.#v(e);this.#u.length=0,this.#a=null,this.#s=null,this.#n=null,this.#r=null,this.#l=1,this.#f=null,this.#i=0,this.#e=0,this.cachedPatterns.clear();for(let e of this._cachedBitmapsMap.values()){for(let i of e.values())typeof HTMLCanvasElement<"u"&&i instanceof HTMLCanvasElement&&(i.width=i.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#d()}#d(){if(this.pageColors){let e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){let i=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=i}}}_scaleImage(e,i){let a=e.width??e.displayWidth,s=e.height??e.displayHeight,n=Math.max(Math.hypot(i[0],i[1]),1),r=Math.max(Math.hypot(i[2],i[3]),1),l=[],o=n,f=r,h=a,c=s;for(;o>2&&h>1||f>2&&c>1;){let w=h,v=c;o>2&&h>1&&(w=Math.ceil(h/2),o/=h/w),f>2&&c>1&&(v=Math.ceil(c/2),f/=c/v),l.push({newWidth:w,newHeight:v}),h=w,c=v}if(l.length===0)return{img:e,paintWidth:a,paintHeight:s,tmpCanvas:null};if(l.length===1){let{newWidth:w,newHeight:v}=l[0],y=this.canvasFactory.create(w,v);return y.context.drawImage(e,0,0,a,s,0,0,w,v),{img:y.canvas,paintWidth:w,paintHeight:v,tmpCanvas:y}}let u=this.canvasFactory.create(1,1),p=this.canvasFactory.create(1,1),m=a,g=s,b=e;for(let{newWidth:w,newHeight:v}of l)this.canvasFactory.reset(p,w,v),p.context.drawImage(b,0,0,m,g,0,0,w,v),[u,p]=[p,u],b=u.canvas,m=w,g=v;return this.canvasFactory.destroy(p),{img:u.canvas,paintWidth:m,paintHeight:g,tmpCanvas:u}}_createMaskCanvas(e,i){let a=this.ctx,{width:s,height:n}=i,r=this.current.patternFill,l=r?this.current.fillColor:a.fillStyle,o=Pe(a),f,h,c,u;if((i.bitmap||i.data)&&i.count>1){let O=i.bitmap||i.data.buffer;h=JSON.stringify(r?o:[o.slice(0,4),l]),f=this._cachedBitmapsMap.getOrInsertComputed(O,cf);let P=f.get(h);if(P&&!r){let $=Math.round(Math.min(o[0],o[2])+o[4]),tt=Math.round(Math.min(o[1],o[3])+o[5]);return this.dependencyTracker?.recordDependencies(e,ua.transformAndFill),{canvas:P,offsetX:$,offsetY:tt}}c=P}c||(u=this.canvasFactory.create(s,n),U1(u.context,i));let p=qt.transform(o,[1/s,0,0,-1/n,0,0]);p=qt.transform(p,[1,0,0,1,0,-n]);let m=dn.slice();qt.axialAlignedBoundingBox([0,0,s,n],p,m);let[g,b,w,v]=m,y=Math.round(w-g)||1,x=Math.round(v-b)||1,q=this.canvasFactory.create(y,x),j=q.context,A=g,S=b;j.translate(-A,-S),j.transform(...p);let C=null;if(!c){let O=this._scaleImage(u.canvas,La(j));c=O.img,C=O.tmpCanvas,c!==u.canvas&&(this.canvasFactory.destroy(u),u=null),f&&r&&(f.set(h,c),C=null,u=null)}j.imageSmoothingEnabled=G1(Pe(j),i.interpolate),ro(j,c,0,0,c.width,c.height,0,0,s,n),C&&this.canvasFactory.destroy(C),u&&this.canvasFactory.destroy(u),j.globalCompositeOperation="source-in";let M=qt.transform(La(j),[1,0,0,1,-A,-S]);return j.fillStyle=r?l.getPattern(a,this,M,vi.FILL,e):l,j.fillRect(0,0,s,n),f&&!r&&f.set(h,q.canvas),this.dependencyTracker?.recordDependencies(e,ua.transformAndFill),{canvas:q.canvas,canvasEntry:f&&!r?null:q,offsetX:Math.round(A),offsetY:Math.round(S)}}setLineWidth(e,i){this.dependencyTracker?.recordSimpleData("lineWidth",e),i!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=i,this.ctx.lineWidth=i}setLineCap(e,i){this.dependencyTracker?.recordSimpleData("lineCap",e),this.ctx.lineCap=Nv[i]}setLineJoin(e,i){this.dependencyTracker?.recordSimpleData("lineJoin",e),this.ctx.lineJoin=Lv[i]}setMiterLimit(e,i){this.dependencyTracker?.recordSimpleData("miterLimit",e),this.ctx.miterLimit=i}setDash(e,i,a){this.dependencyTracker?.recordSimpleData("dash",e);let s=this.ctx;s.setLineDash!==void 0&&(s.setLineDash(i),s.lineDashOffset=a)}setRenderingIntent(e,i){}setFlatness(e,i){}setGState(e,i){for(let[a,s]of i)switch(a){case"LW":this.setLineWidth(e,s);break;case"LC":this.setLineCap(e,s);break;case"LJ":this.setLineJoin(e,s);break;case"ML":this.setMiterLimit(e,s);break;case"D":this.setDash(e,s[0],s[1]);break;case"RI":this.setRenderingIntent(e,s);break;case"FL":this.setFlatness(e,s);break;case"Font":this.setFont(e,s[0],s[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",e),this.current.strokeAlpha=s;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",e),this.ctx.globalAlpha=this.current.fillAlpha=s;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",e),this.ctx.globalCompositeOperation=s;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",e),this.current.activeSMask=s?this.tempSMask:null,this.current.activeSMask&&(this.current.activeSMask.blendMode=this.ctx.globalCompositeOperation),this.tempSMask=null,this.checkSMaskState(e);break;case"TR":{this.dependencyTracker?.recordSimpleData("filter",e);let n=this.filterFactory.addFilter(s);this.ctx.filter=n;let r=null;s&&(n==="none"||!Te.isCanvasFilterSupported||this.ctx.filter==="none"||this.ctx.filter==="")&&(this.ctx.filter=n="none",r=new Hv(s)),this.current.transferMaps=n,(r||this.current.transferMapsFallback)&&(this.current.transferMapsFallback=r,this.current.patternFill||(this.ctx.fillStyle=this.#y(this.current.fillColor)),this.current.patternStroke||(this.ctx.strokeStyle=this.#y(this.current.strokeColor)));break}}}get inSMaskMode(){return!!this.suspendedCtx}_clearPreparedSMask(){this.smaskPreparedEntry&&=(this.canvasFactory.destroy(this.smaskPreparedEntry),null),this.smaskPreparedFor=null,this.smaskPreparedOffsetX=0,this.smaskPreparedOffsetY=0,this.smaskPreparedOOBAlpha=null}_ensurePreparedSMask(e){e!==this.smaskPreparedFor&&(this._clearPreparedSMask(),this._prepareSMaskCanvas(e))}checkSMaskState(e){let i=this.inSMaskMode;this.current.activeSMask&&!i?this.beginSMaskMode(e):!this.current.activeSMask&&i?this.endSMaskMode():this.current.activeSMask&&i&&this._ensurePreparedSMask(this.current.activeSMask)}_prepareSMaskCanvas(e){let{canvas:i,subtype:a,backdrop:s,transferMap:n}=e,r=a==="Luminosity"||a==="Alpha"&&n;if(!r&&!(a==="Luminosity"&&s)){this.smaskPreparedFor=e;return}let l;if(a==="Luminosity"&&s){let[w,v,y]=_n(s),x=Math.round(.3*w+.59*v+.11*y);l=n?.[x]??x}else l=n?.[0]??0;let{width:o,height:f}=this.ctx.canvas,h=i.width*i.height,c=o*f<4*h,u=r?{url:a==="Alpha"?this.filterFactory.addAlphaFilter(n):this.filterFactory.addLuminosityFilter(n),subtype:a,transferMap:n}:null,p=a==="Luminosity"?s:null,m,g,b;c?(m=this._bakeSMaskCanvas(i,e.offsetX,e.offsetY,o,f,p,u),g=0,b=0):(m=this._bakeSMaskCanvas(i,0,0,i.width,i.height,p,u),g=e.offsetX,b=e.offsetY),this.smaskPreparedEntry=m,this.smaskPreparedFor=e,this.smaskPreparedOffsetX=g,this.smaskPreparedOffsetY=b,this.smaskPreparedOOBAlpha=!c&&l!==0?l:null}_bakeSMaskCanvas(e,i,a,s,n,r,l){!r&&!l&&Ae("_bakeSMaskCanvas with neither backdrop nor filter");let o=this.canvasFactory.create(s,n),f=o.context;if(f.drawImage(e,i,a),r&&(f.globalCompositeOperation="destination-atop",f.fillStyle=r,f.fillRect(0,0,s,n)),!l)return o;let h=this.canvasFactory.create(s,n),c=h.context;c.filter=l.url;let u=Te.isCanvasFilterSupported&&c.filter!=="none"&&c.filter!=="";if(c.drawImage(o.canvas,0,0),Te.isCanvasFilterSupported&&(c.filter="none"),!u){let p=c.getImageData(0,0,s,n),{data:m}=p,{transferMap:g}=l;if(l.subtype==="Luminosity")for(let b=0,w=m.length;b<w;b+=4){let v=.3*m[b]+.59*m[b+1]+.11*m[b+2]+.5|0;m[b]=m[b+1]=m[b+2]=0,m[b+3]=g?.[v]??v}else for(let b=3,w=m.length;b<w;b+=4)m[b]=g[m[b]];c.putImageData(p,0,0)}return this.canvasFactory.destroy(o),h}beginSMaskMode(e){if(this.inSMaskMode)throw Error("beginSMaskMode called while already in smask mode");let{width:i,height:a}=this.ctx.canvas,s=this.canvasFactory.create(i,a);this.smaskScratchCanvas=s,this.suspendedCtx=this.ctx;let n=this.ctx=s.context;n.setTransform(this.suspendedCtx.getTransform()),Zs(this.suspendedCtx,n),N1(n,this.suspendedCtx),this._ensurePreparedSMask(this.current.activeSMask),this.setGState(e,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Zs(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null,this.canvasFactory.destroy(this.smaskScratchCanvas),this.smaskScratchCanvas=null,this._clearPreparedSMask()}#p(e,i=null,a=1){let{width:s,height:n}=e,r=i??this.canvasFactory.create(s,n),l=r.context;a=Math.round(a*255)/255;let o=a<1;o&&this.#o===void 0&&(this.#o=Te.isCanvasFilterSupported?new Map:"none");let f="none";if(o&&this.#o instanceof Map&&(f=this.#o.getOrInsertComputed(a,()=>this.filterFactory.addKnockoutFilter(a))),!o||f!=="none")return i&&(l.save(),l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,s,n),l.restore()),l.filter=f,l.drawImage(e,0,0),l.filter="none",r;let h=e.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,s,n),c=l.createImageData(s,n),u=h.data,p=c.data,m=a>0?1/a:1e6;for(let g=3,b=u.length;g<b;g+=4)p[g]=Math.min(Math.round(u[g]*m),255);return l.putImageData(c,0,0),r}#g(e,i,a,s){let n=e?.[i]??null;if(n&&(n.canvas.width!==a||n.canvas.height!==s)&&(this.canvasFactory.destroy(n),n=null),!n)return n=this.canvasFactory.create(a,s),e&&(e[i]=n),n;let r=n.context;return r.save(),r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,a,s),r.restore(),n}#c(e,i,a={}){let{backdropCanvas:s=null,destTransform:n=[1,0,0,1,0,0],backdropOffset:r=[0,0],reuseMaskEntry:l=null,poolMeta:o=null,sourceAlpha:f=1,sourceFilter:h="none",knockoutAlpha:c=1}=a,{width:u,height:p}=i,m=this.#p(i,l,c),g=e.globalCompositeOperation;if(e.save(),e.setTransform(...n),e.globalAlpha=1,Te.isCanvasFilterSupported&&(e.filter="none"),e.globalCompositeOperation="destination-out",e.drawImage(m.canvas,0,0),s){let[b,w]=r,v=this.#g(o,"knockoutBackdropEntry",u,p),y=v.context;y.drawImage(s,b,w,u,p,0,0,u,p),y.globalCompositeOperation="destination-in",y.drawImage(m.canvas,0,0),y.globalCompositeOperation="source-over",e.globalCompositeOperation="destination-over",e.drawImage(v.canvas,0,0),o||this.canvasFactory.destroy(v)}e.globalCompositeOperation=g,e.globalAlpha=f,Te.isCanvasFilterSupported&&(e.filter=h??"none"),e.drawImage(i,0,0),e.restore(),l||this.canvasFactory.destroy(m)}#m(e=1){if(this.#e===0||this.#i>0||!this.contentVisible)return!1;this.#i++,this.#l=e;let i=this.#u.at(-1),{canvas:a}=this.ctx,s=this.#g(i,"knockoutTempEntry",a.width,a.height);this.#a=s;let n=s.context;return n.save(),n.setTransform(this.ctx.getTransform()),Zs(this.ctx,n),this.#r=n.globalCompositeOperation,n.globalCompositeOperation="source-over",N1(n,this.ctx),this.#f=i,this.#s=this.ctx,this.#n=this.suspendedCtx,this.ctx=n,this.inSMaskMode&&(this.suspendedCtx=n),!0}#b(e){if(!e)return;let i=this.#a,a=this.#s,s=this.#n,n=i.context;this.#a=null,this.#s=null,this.#n=null,this.inSMaskMode&&this.suspendedCtx===n&&this.ctx!==n&&this.endSMaskMode(),this.inSMaskMode&&(this.suspendedCtx=s),this.ctx._removeMirroring(),this.ctx.globalCompositeOperation=this.#r,this.#r=null,Zs(this.ctx,a),this.ctx=a;let r=this.#f;this.#f=null;let l=this.#l;this.#l=1;try{this.#c(s??a,i.canvas,{backdropCanvas:r?.backdropCtx?.canvas??null,backdropOffset:r?.backdropCtx?[r.offsetX,r.offsetY]:[0,0],reuseMaskEntry:r?.knockoutMaskEntry??null,poolMeta:r,knockoutAlpha:l})}finally{n.restore(),this.#i--,r||this.canvasFactory.destroy(i)}}compose(e){if(!this.current.activeSMask)return;e=e?[Math.floor(e[0]),Math.floor(e[1]),Math.ceil(e[2]),Math.ceil(e[3])]:[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let i=this.current.activeSMask,a=this.suspendedCtx,s=this.#i>0&&a===this.ctx;this.composeSMask(s?null:a,i,this.ctx,e),!s&&(this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}composeSMask(e,i,a,s){let n=s[0],r=s[1],l=s[2]-n,o=s[3]-r;if(l===0||o===0)return;let f=this.smaskPreparedEntry;if(f){let h=n,c=r,u=l,p=o,m=this.smaskPreparedOOBAlpha,g=m!==null;if(g){h=Math.max(n,i.offsetX),c=Math.max(r,i.offsetY);let b=Math.min(n+l,i.offsetX+i.canvas.width),w=Math.min(r+o,i.offsetY+i.canvas.height);u=b-h,p=w-c}if(u>0&&p>0){let b=h-this.smaskPreparedOffsetX,w=c-this.smaskPreparedOffsetY;a.save(),a.globalAlpha=1,a.setTransform(1,0,0,1,0,0);let v=new Path2D;v.rect(h,c,u,p),a.clip(v),a.globalCompositeOperation="destination-in",a.drawImage(f.canvas,b,w,u,p,h,c,u,p),a.restore()}g&&m<255&&this._applySMaskOOBAlpha(a,n,r,l,o,h,c,h+u,c+p,m)}else this.genericComposeSMask(i,a,l,o,n,r);e&&(e.save(),e.globalAlpha=1,e.globalCompositeOperation=i.blendMode||"source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(a.canvas,n,r,l,o,n,r,l,o),e.restore())}_applySMaskOOBAlpha(e,i,a,s,n,r,l,o,f,h){let c=r<o&&l<f;if(c&&r===i&&l===a&&o===i+s&&f===a+n)return;let u=new Path2D;u.rect(i,a,s,n),c&&u.rect(r,l,o-r,f-l),e.save(),e.globalAlpha=h/255,e.setTransform(1,0,0,1,0,0),e.clip(u,"evenodd"),e.globalCompositeOperation="destination-in",e.fillStyle="#000000",e.fillRect(i,a,s,n),e.restore()}genericComposeSMask(e,i,a,s,n,r){let{context:l,offsetX:o,offsetY:f}=e;i.save(),i.globalAlpha=1,i.setTransform(1,0,0,1,0,0);let h=new Path2D;h.rect(n,r,a,s),i.clip(h),i.globalCompositeOperation="destination-in",i.drawImage(l.canvas,n-o,r-f,a,s,n,r,a,s),i.restore()}save(e){this.inSMaskMode&&Zs(this.ctx,this.suspendedCtx),this.ctx.save();let i=this.current;this.stateStack.push(i),this.current=i.clone(),this.dependencyTracker?.save(e)}restore(e){this.dependencyTracker?.restore(e),this.stateStack.length===0?this.inSMaskMode&&this.endSMaskMode():(this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&(Zs(this.suspendedCtx,this.ctx),this.ctx.setTransform(this.suspendedCtx.getTransform())),this.checkSMaskState(e),this.pendingClip=null,this._cachedScaleForStroking[0]=-1)}transform(e,i,a,s,n,r,l){this.dependencyTracker?.recordIncrementalData("transform",e),this.ctx.transform(i,a,s,n,r,l),this._cachedScaleForStroking[0]=-1}constructPath(e,i,a,s){let[n]=a;if(!s){n||=a[0]=new Path2D,i!==Ia.stroke&&i!==Ia.closeStroke&&(this.current.tilingPatternDims=null),this[i](e,n);return}if(this.dependencyTracker!==null){let l=i===Ia.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,s[0]-l,s[2]+l,s[1]-l,s[3]+l).recordDependencies(e,["transform"])}n instanceof Path2D||(n=a[0]=_m(n)),qt.axialAlignedBoundingBox(s,Pe(this.ctx),this.current.minMax);let r=this.current.tilingPatternDims;if(r&&i!==Ia.stroke&&i!==Ia.closeStroke&&this.current.fillColor instanceof hh){let l=qt.intersect(this.current.clipBox,this.current.minMax);l?this.current.fillColor.updatePatternDims(l,r):this.current.tilingPatternDims=null}this[i](e,n),this._pathStartIdx=e}closePath(e){this.ctx.closePath()}stroke(e,i,a=!0){let s=a&&this.#m(this.current.strokeAlpha),n=this.ctx,r=this.current.strokeColor;if(n.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof r=="object"&&r?.getPattern){let l=r.isModifyingCurrentTransform()?n.getTransform():null;if(n.save(),n.strokeStyle=r.getPattern(n,this,La(n),vi.STROKE,e),l){let o=new Path2D;o.addPath(i,n.getTransform().invertSelf().multiplySelf(l)),i=o}this.rescaleAndStroke(i,!1),n.restore()}else this.rescaleAndStroke(i,!0);this.dependencyTracker?.recordDependencies(e,ua.stroke),a&&this.consumePath(e,i,this.current.getClippedPathBoundingBox(vi.STROKE,Pe(this.ctx))),n.globalAlpha=this.current.fillAlpha,this.#b(s)}closeStroke(e,i){this.stroke(e,i)}fill(e,i,a=!0){let s=a&&this.#m(this.current.fillAlpha),n=this.ctx,r=this.current.fillColor,l=this.current.patternFill,o=!1,f=this.current.getClippedPathBoundingBox();if(this.dependencyTracker?.recordDependencies(e,ua.fill),l){let h=this.current.tilingPatternDims,c=h&&r.canSkipPatternCanvas(h);if(c){r.drawPattern(this,i,this.pendingEOFill,c,e),this.pendingEOFill=!1,a&&this.consumePath(e,i,f),this.current.tilingPatternDims=null,this.#b(s);return}let u=r.isModifyingCurrentTransform()?n.getTransform():null;if(this.dependencyTracker?.save(e),n.save(),n.fillStyle=r.getPattern(n,this,La(n),vi.FILL,e),u){let p=new Path2D;p.addPath(i,n.getTransform().invertSelf().multiplySelf(u)),i=p}o=!0}this.contentVisible&&f!==null&&(this.pendingEOFill?(n.fill(i,"evenodd"),this.pendingEOFill=!1):n.fill(i)),o&&(n.restore(),this.dependencyTracker?.restore(e)),a&&this.consumePath(e,i,f),this.#b(s)}eoFill(e,i){this.pendingEOFill=!0,this.fill(e,i)}fillStroke(e,i){let a=this.#m(Math.min(this.current.fillAlpha,this.current.strokeAlpha));this.fill(e,i,!1),this.stroke(e,i,!1),this.consumePath(e,i),this.#b(a)}eoFillStroke(e,i){this.pendingEOFill=!0,this.fillStroke(e,i)}closeFillStroke(e,i){this.fillStroke(e,i)}closeEOFillStroke(e,i){this.pendingEOFill=!0,this.fillStroke(e,i)}endPath(e,i){this.consumePath(e,i)}rawFillPath(e,i){let a=this.#m(this.current.fillAlpha);this.ctx.fill(i),this.dependencyTracker?.recordDependencies(e,ua.rawFillPath).recordOperation(e),this.#b(a)}clip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=zv}eoClip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=$1}beginText(e){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.dependencyTracker?.recordOpenMarker(e).resetIncrementalData("sameLineText").resetIncrementalData("moveText",e)}endText(e){let i=this.pendingTextPaths,a=this.ctx;if(this.dependencyTracker){let{dependencyTracker:s}=this;i!==void 0&&s.recordFutureForcedDependency("textClip",s.getOpenMarker()).recordFutureForcedDependency("textClip",e),s.recordCloseMarker(e)}if(i!==void 0){let s=new Path2D,n=a.getTransform().invertSelf();for(let{transform:r,x:l,y:o,fontSize:f,path:h}of i)h&&s.addPath(h,new DOMMatrix(r).preMultiplySelf(n).translate(l,o).scale(f,-f));a.clip(s)}delete this.pendingTextPaths}setCharSpacing(e,i){this.dependencyTracker?.recordSimpleData("charSpacing",e),this.current.charSpacing=i}setWordSpacing(e,i){this.dependencyTracker?.recordSimpleData("wordSpacing",e),this.current.wordSpacing=i}setHScale(e,i){this.dependencyTracker?.recordSimpleData("hScale",e),this.current.textHScale=i/100}setLeading(e,i){this.dependencyTracker?.recordSimpleData("leading",e),this.current.leading=-i}setFont(e,i,a){this.dependencyTracker?.recordSimpleData("font",e).recordSimpleDataFromNamed("fontObj",i,e);let s=this.commonObjs.get(i),n=this.current;if(!s)throw Error(`Can't find font for ${i}`);if(n.fontMatrix=s.fontMatrix||jc,(n.fontMatrix[0]===0||n.fontMatrix[3]===0)&&le("Invalid font matrix for font "+i),a<0?(a=-a,n.fontDirection=-1):n.fontDirection=1,this.current.font=s,this.current.fontSize=a,s.isType3Font)return;let r=s.loadedName||"sans-serif",l=s.systemFontInfo?.css||`"${r}", ${s.fallbackName}`,o="normal";s.black?o="900":s.bold&&(o="bold");let f=s.italic?"italic":"normal",h=Oe(a,16,100);this.current.fontSizeScale=a/h,this.ctx.font=`${f} ${o} ${h}px ${l}`}setTextRenderingMode(e,i){this.dependencyTracker?.recordSimpleData("textRenderingMode",e),this.current.textRenderingMode=i}setTextRise(e,i){this.dependencyTracker?.recordSimpleData("textRise",e),this.current.textRise=i}moveText(e,i,a){this.dependencyTracker?.resetIncrementalData("sameLineText").recordIncrementalData("moveText",e),this.current.x=this.current.lineX+=i,this.current.y=this.current.lineY+=a}setLeadingMoveText(e,i,a){this.setLeading(e,-a),this.moveText(e,i,a)}setTextMatrix(e,i){this.dependencyTracker?.resetIncrementalData("sameLineText").recordSimpleData("textMatrix",e);let{current:a}=this;a.textMatrix=i,a.textMatrixScale=Math.hypot(i[0],i[1]),a.x=a.lineX=0,a.y=a.lineY=0}nextLine(e){this.moveText(e,0,this.current.leading),this.dependencyTracker?.recordIncrementalData("moveText",this.dependencyTracker.getSimpleIndex("leading")??e)}#w(e,i,a){let s=new Path2D;return s.addPath(e,new DOMMatrix(a).invertSelf().multiplySelf(i)),s}paintChar(e,i,a,s,n,r){let l=this.ctx,o=this.current,f=o.font,h=o.textRenderingMode,c=o.fontSize/o.fontSizeScale,u=h&fi.FILL_STROKE_MASK,p=!!(h&fi.ADD_TO_PATH_FLAG),m=o.patternFill&&!f.missingFile,g=o.patternStroke&&!f.missingFile,b;if((f.disableFontFace||p||m||g)&&!f.missingFile&&(b=f.getPathGenerator(this.commonObjs,i)),b&&(f.disableFontFace||m||g)){l.save(),l.translate(a,s),l.scale(c,-c),this.dependencyTracker?.recordCharacterBBox(e,l,f);let w;if(u===fi.FILL||u===fi.FILL_STROKE)if(n){w=l.getTransform(),l.setTransform(...n);let v=this.#w(b,w,n);l.fill(v)}else l.fill(b);if(u===fi.STROKE||u===fi.FILL_STROKE)if(r){w||=l.getTransform(),l.setTransform(...r);let{a:v,b:y,c:x,d:q}=w,j=qt.inverseTransform(r),A=qt.transform([v,y,x,q,0,0],j);qt.singularValueDecompose2dScale(A,na),l.lineWidth*=Math.max(na[0],na[1])/c,l.stroke(this.#w(b,w,r))}else l.lineWidth/=c,l.stroke(b);l.restore()}else(u===fi.FILL||u===fi.FILL_STROKE)&&(l.fillText(i,a,s),this.dependencyTracker?.recordCharacterBBox(e,l,f,c,a,s,()=>l.measureText(i))),(u===fi.STROKE||u===fi.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(e,l,f,c,a,s,()=>l.measureText(i)).recordDependencies(e,ua.stroke),l.strokeText(i,a,s));p&&((this.pendingTextPaths||=[]).push({transform:Pe(l),x:a,y:s,fontSize:c,path:b}),this.dependencyTracker?.recordCharacterBBox(e,l,f,c,a,s))}get isFontSubpixelAAEnabled(){let e=this.canvasFactory.create(10,10),i=e.context;i.scale(1.5,1),i.fillText("I",0,10);let a=i.getImageData(0,0,10,10).data;this.canvasFactory.destroy(e);let s=!1;for(let n=3;n<a.length;n+=4)if(a[n]>0&&a[n]<255){s=!0;break}return Tt(this,"isFontSubpixelAAEnabled",s)}showText(e,i){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,ua.showText).resetBBox(e),this.current.textRenderingMode&fi.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency("textClip",e).inheritPendingDependenciesAsFutureForcedDependencies());let a=this.current,s=a.font;if(s.isType3Font){let O=this.#m(a.fillAlpha);this.showType3Text(e,i),this.dependencyTracker?.recordShowTextOperation(e),this.#b(O);return}let n=a.fontSize;if(n===0){this.dependencyTracker?.recordOperation(e);return}let r=this.#m(a.fillAlpha),l=this.ctx,o=a.fontSizeScale,f=a.charSpacing,h=a.wordSpacing,c=a.fontDirection,u=a.textHScale*c,p=i.length,m=s.vertical,g=m?1:-1,b=n*a.fontMatrix[0],w=a.textRenderingMode===fi.FILL&&!s.disableFontFace&&!a.patternFill;l.save(),a.textMatrix&&l.transform(...a.textMatrix),l.translate(a.x,a.y+a.textRise),c>0?l.scale(u,-1):l.scale(u,1);let v,y,x=a.textRenderingMode&fi.FILL_STROKE_MASK,q=x===fi.FILL||x===fi.FILL_STROKE,j=x===fi.STROKE||x===fi.FILL_STROKE,A=a.lineWidth,S=a.textMatrixScale;if(S===0||A===0?j&&(A=this.getSinglePixelWidth()):A/=S,o!==1&&(l.scale(o,o),A/=o),l.lineWidth=A,q&&a.patternFill){l.save();let O=a.fillColor.getPattern(l,this,La(l),vi.FILL,e);v=Pe(l),l.restore(),l.fillStyle=O}if(j&&a.patternStroke){l.save();let O=a.strokeColor.getPattern(l,this,La(l),vi.STROKE,e);y=Pe(l),l.restore(),l.strokeStyle=O}if(s.isInvalidPDFjsFont){let O=[],P=0;for(let tt of i)O.push(tt.unicode),P+=tt.width;let $=O.join("");if(l.fillText($,0,0),this.dependencyTracker!==null){let tt=l.measureText($);this.dependencyTracker.recordBBox(e,this.ctx,-tt.actualBoundingBoxLeft,tt.actualBoundingBoxRight,-tt.actualBoundingBoxAscent,tt.actualBoundingBoxDescent).recordShowTextOperation(e)}a.x+=P*b*u,l.restore(),this.compose(),this.#b(r);return}let C=0,M=0;for(;M<p;++M){let O=i[M];if(typeof O=="number"){C+=g*O*n/1e3;continue}let P=!1,$=(O.isSpace?h:0)+f,tt=O.fontChar,K=O.accent,z,B,G=O.width;if(m){let It=O.vmetric,Lt=-It[1]*b,Pt=It[2]*b;G=-It[0],z=Lt/o,B=(C+Pt)/o}else z=C/o,B=0;let Q;if(s.remeasure&&G>0){Q=l.measureText(tt);let It=Q.width*1e3/n*o;if(G<It&&this.isFontSubpixelAAEnabled){let Lt=G/It;P=!0,l.save(),l.scale(Lt,1),z/=Lt}else G!==It&&(z+=(G-It)/2e3*n/o)}if(this.contentVisible&&(O.isInFont||s.missingFile)){if(w&&!K)l.fillText(tt,z,B),this.dependencyTracker?.recordCharacterBBox(e,l,Q?{bbox:null}:s,n/o,z,B,()=>Q??l.measureText(tt));else if(this.paintChar(e,tt,z,B,v,y),K){let It=z+n*K.offset.x/o,Lt=B-n*K.offset.y/o;this.paintChar(e,K.fontChar,It,Lt,v,y)}}let yt=m?G*b-$*c:G*b+$*c;C+=yt,P&&l.restore()}m?a.y-=C:a.x+=C*u,l.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(e),this.#b(r)}showType3Text(e,i){let a=this.ctx,s=this.current,n=s.font,r=s.fontSize,l=s.fontDirection,o=n.vertical?1:-1,f=s.charSpacing,h=s.wordSpacing,c=s.textHScale*l,u=s.fontMatrix||jc,p=i.length,m=s.textRenderingMode===fi.INVISIBLE,g,b,w,v;if(m||r===0)return;this._cachedScaleForStroking[0]=-1,a.save(),s.textMatrix&&a.transform(...s.textMatrix),a.translate(s.x,s.y+s.textRise),a.scale(c,l);let y=this.dependencyTracker;for(this.dependencyTracker=y?new _c(y,e):null,g=0;g<p;++g){if(b=i[g],typeof b=="number"){v=o*b*r/1e3,this.ctx.translate(v,0),s.x+=v*c;continue}let x=(b.isSpace?h:0)+f,q=n.charProcOperatorList.get(b.operatorListId);q?this.contentVisible&&(this.save(),q.fnArray[0]===Ia.setCharWidth&&(s.fillAlpha=s.strokeAlpha=1,a.globalAlpha=1),a.scale(r,r),a.transform(...u),this.executeOperatorList(q),this.restore()):le(`Type3 character "${b.operatorListId}" is not available.`);let j=[b.width,0];qt.applyTransform(j,u),w=j[0]*r+x,a.translate(w,0),s.x+=w*c}a.restore(),y&&(this.dependencyTracker=y)}setCharWidth(e,i,a){}setCharWidthAndBounds(e,i,a,s,n,r,l){let o=new Path2D;o.rect(s,n,r-s,l-n),this.ctx.clip(o),this.dependencyTracker?.recordBBox(e,this.ctx,s,r,n,l).recordClipBox(e,this.ctx,s,r,n,l),this.endPath(e)}getColorN_Pattern(e,i){let a;if(i[0]==="TilingPattern"){let s=this.baseTransform||Pe(this.ctx);a=new hh(i,this.ctx,{createCanvasGraphics:d((n,r)=>new Rc(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new _c(this.dependencyTracker,r,!0):null),"createCanvasGraphics")},s)}else a=this._getPattern(e,i[1],i[2]);return a}setStrokeColorN(e,...i){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.current.strokeColor=this.getColorN_Pattern(e,i),this.current.patternStroke=!0}setFillColorN(e,...i){this.dependencyTracker?.recordSimpleData("fillColor",e);let a=this.current.fillColor=this.getColorN_Pattern(e,i);this.current.patternFill=!0,this.current.tilingPatternDims=a instanceof hh?[0,0,0,0]:null}#y(e){return this.current.transferMapsFallback?.applyToColor(e)??e}setStrokeRGBColor(e,i){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.current.strokeColor=i,this.ctx.strokeStyle=this.#y(i),this.current.patternStroke=!1}setStrokeTransparent(e){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e,i){this.dependencyTracker?.recordSimpleData("fillColor",e),this.current.fillColor=i,this.ctx.fillStyle=this.#y(i),this.current.patternFill=!1,this.current.tilingPatternDims=null}setFillTransparent(e){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1,this.current.tilingPatternDims=null}_getPattern(e,i,a=null){let s=this.cachedPatterns.getOrInsertComputed(i,()=>Ov(this.getObject(e,i)));return a&&(s.matrix=a),s}shadingFill(e,i){if(!this.contentVisible)return;let a=this.#m(this.current.fillAlpha),s=this.ctx;this.save(e),s.fillStyle=this._getPattern(e,i).getPattern(s,this,La(s),vi.SHADING,e);let n=La(s);if(n){let{width:r,height:l}=s.canvas,o=dn.slice();qt.axialAlignedBoundingBox([0,0,r,l],n,o);let[f,h,c,u]=o;this.ctx.fillRect(f,h,c-f,u-h)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,ua.transform).recordDependencies(e,ua.fill).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e),this.#b(a)}beginInlineImage(){Ae("Should not call beginInlineImage")}beginImageData(){Ae("Should not call beginImageData")}paintFormXObjectBegin(e,i,a){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),i&&this.transform(e,...i),this.baseTransform=Pe(this.ctx),a)){qt.axialAlignedBoundingBox(a,this.baseTransform,this.current.minMax);let[s,n,r,l]=a,o=new Path2D;o.rect(s,n,r-s,l-n),this.ctx.clip(o),this.dependencyTracker?.recordClipBox(e,this.ctx,s,r,n,l),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,i){if(!this.contentVisible)return;this.save(e);let{inSMaskMode:a}=this;a&&(this.endSMaskMode(),this.current.activeSMask=null);let s=this.ctx;if((!i.needsIsolation||!i.isolated&&!i.hasSoftMask)&&!i.knockout&&!i.isGray&&this.#e===0&&s.globalAlpha===1&&s.globalCompositeOperation==="source-over"&&!a){if(i.bbox){let x=new Path2D,[q,j,A,S]=i.bbox;if(x.rect(q,j,A-q,S-j),i.matrix){let C=new Path2D;C.addPath(x,new DOMMatrix(i.matrix)),x=C}s.clip(x)}this.groupStack.push(null),this.#u.push(null),this.groupLevel++;return}!i.isolated&&!i.knockout&&this.#e===0&&ff("TODO: Fully support non-isolated non-knockout groups.");let n=Pe(s);i.matrix&&s.transform(...i.matrix);let r=[0,0,s.canvas.width,s.canvas.height],l;i.bbox?(l=dn.slice(),qt.axialAlignedBoundingBox(i.bbox,Pe(s),l),l=qt.intersect(l,r)||[0,0,0,0]):l=r;let o=Math.floor(l[0]),f=Math.floor(l[1]),h=Math.max(Math.ceil(l[2])-o,1),c=Math.max(Math.ceil(l[3])-f,1);this.current.startNewPathAndClipBox([0,0,h,c]);let u=this.canvasFactory.create(h,c);i.smask&&this.smaskGroupCanvases.push(u);let p=u.context,m=i.knockout&&!i.isolated?s:null,g=!i.isolated&&!i.knockout&&!i.smask&&i.needsIsolation&&this.#e>0,b=i.knockout?this.canvasFactory.create(h,c):null,w=this.#e;i.knockout?this.#e++:this.#e=0,p.translate(-o,-f),p.transform(...n);let v=!i.isolated&&!i.smask&&i.needsIsolation,y=v&&!a&&w===0&&!i.knockout&&!i.isGray&&i.hasSoftMask&&s.globalAlpha===1&&s.globalCompositeOperation==="source-over"&&this.current.transferMaps==="none"&&!this.current.transferMapsFallback;if(v&&(a||y)&&(p.save(),p.setTransform(1,0,0,1,0,0),p.drawImage(s.canvas,-o,-f),p.restore()),i.bbox){let x=new Path2D,[q,j,A,S]=i.bbox;if(x.rect(q,j,A-q,S-j),i.matrix){let C=new Path2D;C.addPath(x,new DOMMatrix(i.matrix)),x=C}p.clip(x)}i.smask&&this.smaskStack.push({canvas:u.canvas,context:p,offsetX:o,offsetY:f,subtype:i.smask.subtype,backdrop:i.smask.backdrop,transferMap:i.smask.transferMap||null}),(!i.smask||this.dependencyTracker)&&(s.setTransform(1,0,0,1,0,0),s.translate(o,f),s.save()),Zs(s,p),this.ctx=p,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(s),this.setGState(e,[["BM","source-over"],["ca",1],["CA",1],["TR",null]]),this.groupStack.push(s),this.#u.push({backdropCtx:m,savedKnockoutLevel:w,offsetX:o,offsetY:f,hasInnerBackdrop:g,replaceBackdrop:y,knockoutMaskEntry:b,knockoutTempEntry:null,knockoutBackdropEntry:null}),this.groupLevel++}endGroup(e,i){if(!this.contentVisible)return;this.groupLevel--;let a=this.ctx,s=this.groupStack.pop(),n=this.#u.pop();if(n&&(this.#e=n.savedKnockoutLevel),s===null)this.restore(e);else if(i.isGray&&this.#k(a),this.ctx=s,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),i.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&(this.ctx.restore(),this.inSMaskMode&&this.ctx.setTransform(this.suspendedCtx.getTransform())),this.#v(n);else{this.ctx.restore();let r=Pe(this.ctx);this.restore(e),this.current.transferMapsFallback?.applyToCanvas(a),this.ctx.save(),this.ctx.setTransform(...r);let l=dn.slice();qt.axialAlignedBoundingBox([0,0,a.canvas.width,a.canvas.height],r,l);let o=this.#u.at(-1);if(this.#e>0)if(n.hasInnerBackdrop){let{width:f,height:h}=a.canvas,c=this.canvasFactory.create(f,h),u=c.context;u.drawImage(s.canvas,n.offsetX,n.offsetY,f,h,0,0,f,h),u.globalCompositeOperation="source-over",u.drawImage(a.canvas,0,0);let p=this.#p(a.canvas);u.globalCompositeOperation="destination-in",u.drawImage(p.canvas,0,0);let m=this.ctx.globalCompositeOperation,g=this.ctx.globalAlpha,b=this.ctx.filter;this.ctx.save(),this.ctx.setTransform(...r),this.ctx.globalAlpha=1,Te.isCanvasFilterSupported&&(this.ctx.filter="none"),this.ctx.globalCompositeOperation="destination-out",this.ctx.drawImage(p.canvas,0,0),this.ctx.globalCompositeOperation=m,this.ctx.globalAlpha=g,Te.isCanvasFilterSupported&&(this.ctx.filter=b??"none"),this.ctx.drawImage(c.canvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(p),this.canvasFactory.destroy(c)}else{let f=o?.backdropCtx??null;this.#c(this.ctx,a.canvas,{backdropCanvas:f?.canvas??null,destTransform:r,backdropOffset:f?[o.offsetX+n.offsetX,o.offsetY+n.offsetY]:[0,0],sourceAlpha:this.ctx.globalAlpha,sourceFilter:this.ctx.filter})}else{if(n.replaceBackdrop){let f=new Path2D;f.rect(0,0,a.canvas.width,a.canvas.height),this.ctx.clip(f),this.ctx.globalCompositeOperation="copy"}this.ctx.drawImage(a.canvas,0,0)}this.ctx.restore(),this.canvasFactory.destroy({canvas:a.canvas,context:a}),this.#v(n),this.compose(l)}}#k(e){let{canvas:i}=e,{width:a,height:s}=i;if(Te.isCanvasFilterSupported){e.save(),e.setTransform(1,0,0,1,0,0),e.filter="grayscale(1)",e.globalAlpha=1,e.globalCompositeOperation="copy",e.drawImage(i,0,0),e.restore();return}let n=e.getImageData(0,0,a,s),{data:r}=n;for(let l=0,o=r.length;l<o;l+=4){let f=r[l]*.2126+r[l+1]*.7152+r[l+2]*.0722+.5|0;r[l]=r[l+1]=r[l+2]=f}e.putImageData(n,0,0)}#v(e){e&&(e.knockoutMaskEntry&&=(this.canvasFactory.destroy(e.knockoutMaskEntry),null),e.knockoutTempEntry&&=(this.canvasFactory.destroy(e.knockoutTempEntry),null),e.knockoutBackdropEntry&&=(this.canvasFactory.destroy(e.knockoutBackdropEntry),null))}beginAnnotation(e,i,a,s,n,r,l){if(this.#h(),lo(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),a){let o=a[2]-a[0],f=a[3]-a[1];if(r&&this.annotationCanvasMap){s=s.slice(),s[4]-=a[0],s[5]-=a[1],qt.singularValueDecompose2dScale(Pe(this.ctx),na);let{viewportScale:h}=this,c=Math.ceil(o*this.outputScaleX*h),u=Math.ceil(f*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(c,u);let{canvas:p,context:m}=this.annotationCanvas;if(l){let g=this.annotationCanvasMap.getOrInsertComputed(i,Mn);p.setAttribute("data-canvas-name",l);let b=g.findIndex(w=>w.getAttribute("data-canvas-name")===l);b===-1?g.push(p):g[b]=p}else this.annotationCanvasMap.set(i,p);this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(na[0],0,0,-na[1],0,f*na[1]),lo(this.ctx)}else{lo(this.ctx),this.endPath(e);let h=new Path2D;h.rect(a[0],a[1],o,f),this.ctx.clip(h)}}this.current=new L1(this.ctx.canvas.width,this.ctx.canvas.height),this.baseTransformStack.push(this.baseTransform),this.transform(e,...s),this.transform(e,...n),this.baseTransform=Pe(this.ctx)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),this.#d(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.baseTransform=this.baseTransformStack.pop()}paintImageMaskXObject(e,i){if(!this.contentVisible)return;let a=i.count;i=this.getObject(e,i.data,i),i.count=a;let s=this.#m(this.current.fillAlpha),n=this.ctx,r=this._createMaskCanvas(e,i),l=r.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(l,r.offsetX,r.offsetY),this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,r.offsetX,r.offsetX+l.width,r.offsetY,r.offsetY+l.height).recordOperation(e),n.restore(),r.canvasEntry&&this.canvasFactory.destroy(r.canvasEntry),this.compose(),this.#b(s)}paintImageMaskXObjectRepeat(e,i,a,s=0,n=0,r,l){if(!this.contentVisible)return;i=this.getObject(e,i.data,i);let o=this.#m(this.current.fillAlpha),f=this.ctx;f.save();let h=Pe(f);f.transform(a,s,n,r,0,0);let c=this._createMaskCanvas(e,i);f.setTransform(1,0,0,1,c.offsetX-h[4],c.offsetY-h[5]),this.dependencyTracker?.resetBBox(e);for(let u=0,p=l.length;u<p;u+=2){let m=qt.transform(h,[a,s,n,r,l[u],l[u+1]]);f.drawImage(c.canvas,m[4],m[5]),this.dependencyTracker?.recordBBox(e,this.ctx,m[4],m[4]+c.canvas.width,m[5],m[5]+c.canvas.height)}f.restore(),c.canvasEntry&&this.canvasFactory.destroy(c.canvasEntry),this.compose(),this.dependencyTracker?.recordOperation(e),this.#b(o)}paintImageMaskXObjectGroup(e,i){if(!this.contentVisible)return;let a=this.#m(this.current.fillAlpha),s=this.ctx,n=this.current.patternFill,r=n?this.current.fillColor:s.fillStyle;this.dependencyTracker?.resetBBox(e).recordDependencies(e,ua.transformAndFill);for(let l of i){let{data:o,width:f,height:h,transform:c}=l,u=this.canvasFactory.create(f,h),p=u.context;p.save(),U1(p,this.getObject(e,o,l)),p.globalCompositeOperation="source-in",p.fillStyle=n?r.getPattern(p,this,La(s),vi.FILL,e):r,p.fillRect(0,0,f,h),p.restore(),s.save(),s.transform(...c),s.scale(1,-1),ro(s,u.canvas,0,0,f,h,0,-1,1,1),this.canvasFactory.destroy(u),this.dependencyTracker?.recordBBox(e,s,0,f,0,h),s.restore()}this.compose(),this.dependencyTracker?.recordOperation(e),this.#b(a)}paintImageXObject(e,i){if(!this.contentVisible)return;let a=this.getObject(e,i);a?this.paintInlineImageXObject(e,a):le("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,i,a,s,n){if(!this.contentVisible)return;let r=this.getObject(e,i);if(!r){le("Dependent image isn't ready yet");return}let l=r.width,o=r.height,f=[];for(let h=0,c=n.length;h<c;h+=2)f.push({transform:[a,0,0,s,n[h],n[h+1]],x:0,y:0,w:l,h:o});this.paintInlineImageXObjectGroup(e,r,f)}applyTransferMapsToCanvas(e){return this.current.transferMaps==="none"?this.current.transferMapsFallback?.applyToCanvas(e):(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){let{transferMaps:i,transferMapsFallback:a}=this.current;if(i==="none"&&!a)return{img:e.bitmap,canvasEntry:null};let{bitmap:s,width:n,height:r}=e,l=this.canvasFactory.create(n,r),o=l.context;return o.filter=i,o.drawImage(s,0,0),o.filter="none",a?.applyToCanvas(o),{img:l.canvas,canvasEntry:l}}paintInlineImageXObject(e,i){if(!this.contentVisible)return;let a=i.width,s=i.height,n=this.#m(this.current.fillAlpha),r=this.ctx;this.save(e);let{filter:l}=r;l!=="none"&&l!==""&&(r.filter="none"),r.scale(1/a,-1/s);let o,f=null;if(i.bitmap){let c=this.applyTransferMapsToBitmap(i);o=c.img,f=c.canvasEntry}else{let c=this.canvasFactory.create(a,s);z1(c.context,i),o=this.applyTransferMapsToCanvas(c.context),f=c}let h=this._scaleImage(o,La(r));r.imageSmoothingEnabled=G1(Pe(r),i.interpolate),this.dependencyTracker&&(this.dependencyTracker.resetBBox(e).recordBBox(e,r,0,a,-s,0).recordDependencies(e,ua.imageXObject).recordOperation(e),this.imagesTracker?.record(r,a,s,this.dependencyTracker.clipBox)),ro(r,h.img,0,0,h.paintWidth,h.paintHeight,0,-s,a,s),h.tmpCanvas&&this.canvasFactory.destroy(h.tmpCanvas),f&&this.canvasFactory.destroy(f),this.compose(),this.restore(e),this.#b(n)}paintInlineImageXObjectGroup(e,i,a){if(!this.contentVisible)return;let s=this.#m(this.current.fillAlpha),n=this.ctx,r,l=null;if(i.bitmap&&!this.current.transferMapsFallback)r=i.bitmap;else if(i.bitmap)({img:r,canvasEntry:l}=this.applyTransferMapsToBitmap(i));else{let o=i.width,f=i.height,h=this.canvasFactory.create(o,f);z1(h.context,i),r=this.applyTransferMapsToCanvas(h.context),l=h}this.dependencyTracker?.resetBBox(e);for(let o of a)n.save(),n.transform(...o.transform),n.scale(1,-1),ro(n,r,o.x,o.y,o.w,o.h,0,-1,1,1),this.dependencyTracker?.recordBBox(e,n,0,1,-1,0),n.restore();l&&this.canvasFactory.destroy(l),this.dependencyTracker?.recordOperation(e),this.compose(),this.#b(s)}paintSolidColorImageMask(e){if(!this.contentVisible)return;let i=this.#m(this.current.fillAlpha);this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,0,1,0,1).recordDependencies(e,ua.fill).recordOperation(e),this.ctx.fillRect(0,0,1,1),this.compose(),this.#b(i)}markPoint(e,i){}markPointProps(e,i,a){}beginMarkedContent(e,i){this.dependencyTracker?.beginMarkedContent(e),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,i,a){this.dependencyTracker?.beginMarkedContent(e),i==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(a)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(e){this.dependencyTracker?.endMarkedContent(e),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(e){}endCompat(e){}consumePath(e,i,a){let s=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(a);let n=this.ctx;this.pendingClip?(s||(this.pendingClip===$1?n.clip(i,"evenodd"):n.clip(i)),this.pendingClip=null,this.dependencyTracker?.bboxToClipBoxDropOperation(e).recordFutureForcedDependency("clipPath",e)):this.dependencyTracker?.recordOperation(e),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){let e=Pe(this.ctx);if(e[1]===0&&e[2]===0)return 1/Math.min(Math.abs(e[0]),Math.abs(e[3]));let i=Math.abs(e[0]*e[3]-e[2]*e[1]),a=Math.hypot(e[0],e[2]),s=Math.hypot(e[1],e[3]);return Math.max(a,s)/i}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){let{lineWidth:e}=this.current,{a:i,b:a,c:s,d:n}=this.ctx.getTransform(),r,l;if(a===0&&s===0){let o=Math.abs(i),f=Math.abs(n);if(o===f)if(e===0)r=l=1/o;else{let h=o*e;r=l=h<1?1/h:1}else if(e===0)r=1/o,l=1/f;else{let h=o*e,c=f*e;r=h<1?1/h:1,l=c<1?1/c:1}}else{let o=Math.abs(i*n-a*s),f=Math.hypot(i,a),h=Math.hypot(s,n);if(e===0)r=h/o,l=f/o;else{let c=e*o;r=h>c?h/c:1,l=f>c?f/c:1}}this._cachedScaleForStroking[0]=r,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(e,i){let{ctx:a,current:{lineWidth:s}}=this,[n,r]=this.getScaleForStroking();if(n===r){a.lineWidth=(s||1)*n,a.stroke(e);return}let l=Rc.#t??=new DOMMatrix,o=a.getLineDash();i&&a.save(),a.scale(n,r),l.a=1/n,l.d=1/r;let f=new Path2D;if(f.addPath(e,l),o.length>0){let h=Math.max(n,r);a.setLineDash(o.map(c=>c/h)),a.lineDashOffset/=h}a.lineWidth=s||1,a.stroke(f),i&&a.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};for(let t in Ia)So.prototype[t]!==void 0&&(So.prototype[Ia[t]]=So.prototype[t]);gf=class{static{d(this,"BasePDFStream")}#t=null;#e=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(t,e,i){this._source=t,this.#t=e,this.#e=i}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return Xe(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new this.#t(this)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let i=new this.#e(this,t,e);return this._rangeReaders.add(i),i}cancelAllRequests(t){this._fullReader?.cancel(t);for(let e of new Set(this._rangeReaders))e.cancel(t)}},bf=class{static{d(this,"BasePDFStreamReader")}onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(t){this._stream=t}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){Ae("Abstract method `read` called")}cancel(t){Ae("Abstract method `cancel` called")}},wf=class{static{d(this,"BasePDFStreamRangeReader")}_stream=null;constructor(t,e,i){this._stream=t}async read(){Ae("Abstract method `read` called")}cancel(t){Ae("Abstract method `cancel` called")}};d(Uv,"getFilenameFromContentDispositionHeader");d(Gm,"createHeaders");d(Gv,"trimHeadersEnd");d(yf,"getResponseOrigin");d($m,"validateRangeRequestCapabilities");d(Wm,"extractFilenameFromHeader");d(kf,"createResponseError");d(Vm,"ensureResponseOrigin");d(Km,"fetchUrl");d(Xm,"ensureResponseStatus");d(vf,"getArrayBuffer");$v=class extends gf{static{d(this,"PDFFetchStream")}_responseOrigin=null;constructor(t){super(t,Wv,Vv);let{httpHeaders:e,url:i}=t;Xe(/https?:/.test(i.protocol),"PDFFetchStream only supports http(s):// URLs."),this.headers=Gm(!0,e)}},Wv=class extends bf{static{d(this,"PDFFetchStreamReader")}_abortController=new AbortController;_reader=null;constructor(t){super(t);let{disableRange:e,disableStream:i,rangeChunkSize:a,url:s,withCredentials:n}=t._source;this._isStreamingSupported=!i,Km(s,new Headers(t.headers),n,this._abortController).then(r=>{t._responseOrigin=yf(r.url),Xm(r.status,s),this._reader=r.body.getReader();let l=r.headers,{contentLength:o,isRangeSupported:f}=$m({responseHeaders:l,isHttp:!0,rangeChunkSize:a,disableRange:e});this._contentLength=o,this._isRangeSupported=f,this._filename=Wm(l),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new ms("Streaming is disabled.")),this._headersCapability.resolve()}).catch(this._headersCapability.reject)}async read(){await this._headersCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this._callOnProgress(),{value:vf(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}},Vv=class extends wf{static{d(this,"PDFFetchStreamRangeReader")}_abortController=new AbortController;_readCapability=Promise.withResolvers();_reader=null;constructor(t,e,i){super(t,e,i);let{url:a,withCredentials:s}=t._source,n=new Headers(t.headers);n.append("Range",`bytes=${e}-${i-1}`),Km(a,n,s,this._abortController).then(r=>{Vm(yf(r.url),t._responseOrigin),Xm(r.status,a),this._reader=r.body.getReader(),this._readCapability.resolve()}).catch(this._readCapability.reject)}async read(){await this._readCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:{value:vf(t),done:!1}}cancel(t){this._reader?.cancel(t),this._abortController.abort()}};d(W1,"transport_stream_getArrayBuffer");d(jf,"endRequests");Kv=class extends gf{static{d(this,"PDFDataTransportStream")}_progressiveDone=!1;_queuedChunks=[];constructor(t){super(t,Xv,Yv);let{pdfDataRangeTransport:e}=t,{initialData:i,progressiveDone:a}=e;if(i?.length>0){let n=W1(i);this._queuedChunks.push(n)}this._progressiveDone=a;let s=d(n=>{switch(n.type){case"range":case"progressiveRead":this.#t(n.begin,n.chunk);break;case"progressiveDone":this._fullReader?.progressiveDone(),this._progressiveDone=!0}},"listener");e.transportReady(s)}#t(t,e){let i=W1(e);if(t===void 0)this._fullReader?this._fullReader._enqueue(i):this._queuedChunks.push(i);else{let a=this._rangeReaders.keys().find(s=>s._begin===t);Xe(a,"#onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."),a._enqueue(i)}}getFullReader(){let t=super.getFullReader();return this._queuedChunks=null,t}getRangeReader(t,e){let i=super.getRangeReader(t,e);return i&&(i.onDone=()=>this._rangeReaders.delete(i),this._source.pdfDataRangeTransport.requestDataRange(t,e)),i}cancelAllRequests(t){super.cancelAllRequests(t),this._source.pdfDataRangeTransport.abort()}},Xv=class extends bf{static{d(this,"PDFDataTransportStreamReader")}#t=jf.bind(this);_done=!1;_queuedChunks=null;_requests=[];constructor(t){super(t);let{pdfDataRangeTransport:e,disableRange:i,disableStream:a}=t._source,{length:s,contentDispositionFilename:n}=e;this._queuedChunks=t._queuedChunks||[];for(let l of this._queuedChunks)this._loaded+=l.byteLength;this._done=t._progressiveDone,this._contentLength=s,this._isStreamingSupported=!a,this._isRangeSupported=!i,pf(n)&&(this._filename=n),this._headersCapability.resolve();let r=this._loaded;Promise.resolve().then(()=>{r>0&&this._loaded===r&&this._callOnProgress()})}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength,this._callOnProgress())}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this.#t()}progressiveDone(){this._done||=!0,this._queuedChunks.length===0&&this.#t()}},Yv=class extends wf{static{d(this,"PDFDataTransportStreamRangeReader")}#t=jf.bind(this);onDone=null;_begin=-1;_done=!1;_queuedChunk=null;_requests=[];constructor(t,e,i){super(t,e,i),this._begin=e}_enqueue(t){this._done||(this._requests.length===0?this._queuedChunk=t:(this._requests.shift().resolve({value:t,done:!1}),this.#t()),this._done=!0,this.onDone?.())}async read(){if(this._queuedChunk){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this.#t(),this.onDone?.()}};d(Jv,"network_getArrayBuffer");Qv=class extends gf{static{d(this,"PDFNetworkStream")}#t=new WeakMap;_responseOrigin=null;constructor(t){super(t,Zv,tj);let{httpHeaders:e,url:i}=t;this.url=i,this.isHttp=/https?:/.test(i.protocol),this.headers=Gm(this.isHttp,e)}_request(t){let e=new XMLHttpRequest,i={validateStatus:null,onHeadersReceived:t.onHeadersReceived,onDone:t.onDone,onError:t.onError,onProgress:t.onProgress};this.#t.set(e,i),e.open("GET",this.url),e.withCredentials=this._source.withCredentials;for(let[a,s]of this.headers)e.setRequestHeader(a,s);return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),i.validateStatus=a=>a===206||a===200):i.validateStatus=a=>a===200,e.responseType="arraybuffer",Xe(t.onError,"Expected `onError` callback to be provided."),e.onerror=()=>t.onError(e.status),e.onreadystatechange=this.#i.bind(this,e),e.onprogress=this.#e.bind(this,e),e.send(null),e}#e(t,e){this.#t.get(t)?.onProgress?.(e)}#i(t,e){let i=this.#t.get(t);if(!i||(t.readyState>=2&&i.onHeadersReceived&&(i.onHeadersReceived(),delete i.onHeadersReceived),t.readyState!==4)||!this.#t.has(t))return;if(this.#t.delete(t),t.status===0&&this.isHttp){i.onError(t.status);return}let a=t.status||200;if(!i.validateStatus(a)){i.onError(t.status);return}let s=Jv(t.response);if(a===206){let n=t.getResponseHeader("Content-Range");/bytes \d+-\d+\/\d+/.test(n)?i.onDone(s):(le('Missing or invalid "Content-Range" header.'),i.onError(0))}else s?i.onDone(s):i.onError(t.status)}_abortRequest(t){this.#t.has(t)&&(this.#t.delete(t),t.abort())}getRangeReader(t,e){let i=super.getRangeReader(t,e);return i&&(i.onClosed=()=>this._rangeReaders.delete(i)),i}},Zv=class extends bf{static{d(this,"PDFNetworkStreamReader")}#t=jf.bind(this);_cachedChunks=[];_done=!1;_requests=[];_storedError=null;constructor(t){super(t),this._fullRequestXhr=t._request({onHeadersReceived:this.#e.bind(this),onDone:this.#i.bind(this),onError:this.#a.bind(this),onProgress:this.#s.bind(this)})}#e(){let t=this._stream,{disableRange:e,rangeChunkSize:i}=t._source,a=this._fullRequestXhr;t._responseOrigin=yf(a.responseURL);let s=a.getAllResponseHeaders(),n=new Headers(s?Gv(s.trimStart()).split(/[\r\n]+/).map(o=>{let[f,...h]=o.split(": ");return[f,h.join(": ")]}):[]),{contentLength:r,isRangeSupported:l}=$m({responseHeaders:n,isHttp:t.isHttp,rangeChunkSize:i,disableRange:e});this._contentLength=r,this._isRangeSupported=l,this._filename=Wm(n),this._isRangeSupported&&t._abortRequest(a),this._headersCapability.resolve()}#i(t){this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._cachedChunks.push(t),this._done=!0,this._cachedChunks.length===0&&this.#t()}#a(t){this._storedError=kf(t,this._stream.url),this._headersCapability.reject(this._storedError);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}#s(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t),this.#t(),this._stream._abortRequest(this._fullRequestXhr),this._fullRequestXhr=null}},tj=class extends wf{static{d(this,"PDFNetworkStreamRangeReader")}#t=jf.bind(this);onClosed=null;_done=!1;_queuedChunk=null;_requests=[];_storedError=null;constructor(t,e,i){super(t,e,i),this._requestXhr=t._request({begin:e,end:i,onHeadersReceived:this.#e.bind(this),onDone:this.#i.bind(this),onError:this.#a.bind(this),onProgress:null})}#e(){let t=yf(this._requestXhr?.responseURL);try{Vm(t,this._stream._responseOrigin)}catch(e){this._storedError=e,this.#a(0)}}#i(t){this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this.#t(),this.onClosed?.()}#a(t){this._storedError??=kf(t,this._stream.url);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this.#t(),this._stream._abortRequest(this._requestXhr),this.onClosed?.()}};d(Ym,"getReadableStream");ej=class extends gf{static{d(this,"PDFNodeStream")}constructor(t){super(t,ij,aj);let{url:e}=t;Xe(e.protocol==="file:","PDFNodeStream only supports file:// URLs.")}},ij=class extends bf{static{d(this,"PDFNodeStreamReader")}_reader=null;constructor(t){super(t);let{disableRange:e,disableStream:i,rangeChunkSize:a,url:s}=t._source;this._isStreamingSupported=!i,process.getBuiltinModule("fs/promises").lstat(s).then(n=>{let r=Ym(s);this._reader=r.getReader();let{size:l}=n;this._contentLength=l,this._isRangeSupported=!e&&l>2*a,!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new ms("Streaming is disabled.")),this._headersCapability.resolve()}).catch(n=>{n.code==="ENOENT"&&(n=kf(0,s)),this._headersCapability.reject(n)})}async read(){await this._headersCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this._callOnProgress(),{value:vf(t),done:!1})}cancel(t){this._reader?.cancel(t)}},aj=class extends wf{static{d(this,"PDFNodeStreamRangeReader")}_readCapability=Promise.withResolvers();_reader=null;constructor(t,e,i){super(t,e,i);let{url:a}=t._source;try{let s=Ym(a,{start:e,end:i-1});this._reader=s.getReader(),this._readCapability.resolve()}catch(s){this._readCapability.reject(s)}}async read(){await this._readCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:{value:vf(t),done:!1}}cancel(t){this._reader?.cancel(t)}};d(sj,"getNetworkStream");ar=class{static{d(this,"GlobalWorkerOptions")}static#t=null;static#e="";static get workerPort(){return this.#t}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw Error("Invalid `workerPort` type.");this.#t=t}static get workerSrc(){return this.#e}static set workerSrc(t){if(typeof t!="string")throw Error("Invalid `workerSrc` type.");this.#e=t}},nj=class{static{d(this,"Metadata")}#t;#e;constructor({parsedData:t,rawData:e}){this.#t=t,this.#e=e}getRaw(){return this.#e}get(t){return this.#t.get(t)??null}[Symbol.iterator](){return this.#t.entries()}},rn=Symbol("INTERNAL"),rj=class{static{d(this,"OptionalContentGroup")}#t=!1;#e=!1;#i=!1;#a=!0;constructor(t,{name:e,intent:i,usage:a,rbGroups:s}){this.#t=!!(t&aa.DISPLAY),this.#e=!!(t&aa.PRINT),this.name=e,this.intent=i,this.usage=a,this.rbGroups=s}get visible(){if(this.#i)return this.#a;if(!this.#a)return!1;let{print:t,view:e}=this.usage;return this.#t?e?.viewState!=="OFF":!this.#e||t?.printState!=="OFF"}_setVisible(t,e,i=!1){t!==rn&&Ae("Internal method `_setVisible` called."),this.#i=i,this.#a=e}get serializable(){return{userSet:this.#i,visible:this.#a}}},lj=class Jm{static{d(this,"OptionalContentConfig")}#t=null;#e=new Map;#i=null;#a=null;#s;creator=null;name=null;constructor(e,i=aa.DISPLAY,a=null){if(this.#s=e,this.renderingIntent=i,e!==null){this.name=e.name,this.creator=e.creator,this.#a=e.order;for(let s of e.groups)this.#e.set(s.id,new rj(i,s));if(a){a.size!==this.#e.size&&Ae("Incorrect serialized groupState.");for(let[s,n]of a)this.#e.get(s)._setVisible(rn,n.visible,n.userSet)}else{if(e.baseState==="OFF")for(let s of this.#e.values())s._setVisible(rn,!1);for(let s of e.on)this.#e.get(s)._setVisible(rn,!0);for(let s of e.off)this.#e.get(s)._setVisible(rn,!1)}this.#i=this.getHash()}}#n(e){let i=e.length;if(i<2)return!0;let a=e[0];for(let s=1;s<i;s++){let n=e[s],r;if(Array.isArray(n))r=this.#n(n);else if(this.#e.has(n))r=this.#e.get(n).visible;else return le(`Optional content group not found: ${n}`),!0;switch(a){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return a==="And"}isVisible(e){if(this.#e.size===0)return!0;if(!e)return ff("Optional content group not defined."),!0;if(e.type==="OCG")return this.#e.has(e.id)?this.#e.get(e.id).visible:(le(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return this.#n(e.expression);if(!e.policy||e.policy==="AnyOn"){for(let i of e.ids){if(!this.#e.has(i))return le(`Optional content group not found: ${i}`),!0;if(this.#e.get(i).visible)return!0}return!1}if(e.policy==="AllOn"){for(let i of e.ids){if(!this.#e.has(i))return le(`Optional content group not found: ${i}`),!0;if(!this.#e.get(i).visible)return!1}return!0}if(e.policy==="AnyOff"){for(let i of e.ids){if(!this.#e.has(i))return le(`Optional content group not found: ${i}`),!0;if(!this.#e.get(i).visible)return!0}return!1}if(e.policy==="AllOff"){for(let i of e.ids){if(!this.#e.has(i))return le(`Optional content group not found: ${i}`),!0;if(this.#e.get(i).visible)return!1}return!0}return le(`Unknown optional content policy ${e.policy}.`),!0}return le(`Unknown group type ${e.type}.`),!0}setVisibility(e,i=!0,a=!0){let s=this.#e.get(e);if(!s)le(`Optional content group not found: ${e}`);else{if(a&&i&&s.rbGroups.length)for(let n of s.rbGroups)for(let r of n)r!==e&&this.#e.get(r)?._setVisible(rn,!1,!0);s._setVisible(rn,!!i,!0),this.#t=null}}setOCGState({state:e,preserveRB:i}){let a;for(let s of e){switch(s){case"ON":case"OFF":case"Toggle":a=s;continue}let n=this.#e.get(s);if(n)switch(a){case"ON":this.setVisibility(s,!0,i);break;case"OFF":this.setVisibility(s,!1,i);break;case"Toggle":this.setVisibility(s,!n.visible,i)}}this.#t=null}get hasInitialVisibility(){return this.#i===null||this.getHash()===this.#i}getOrder(){return this.#e.size?this.#a?this.#a.slice():[...this.#e.keys()]:null}getGroup(e){return this.#e.get(e)||null}getHash(){if(this.#t!==null)return this.#t;let e=new Tc;for(let[i,a]of this.#e)e.update(`${i}:${a.visible}`);return this.#t=e.hexdigest()}[Symbol.iterator](){return this.#e.entries()}get serializable(){let e=new Map;for(let[i,a]of this.#e)e.set(i,a.serializable);return{data:this.#s,renderingIntent:this.renderingIntent,groupState:e}}static fromSerializable({data:e,renderingIntent:i,groupState:a}){return new Jm(e,i,a)}},oj=class{static{d(this,"PagesMapper")}#t=null;#e=null;#i=0;#a=null;#s=null;get pagesNumber(){return this.#i}set pagesNumber(t){this.#i!==t&&(this.#i=t,this.#t=null,this.#e=null)}#n(){if(this.#t)return;let t=this.#i,e=this.#t=new Uint32Array(t);for(let i=0;i<t;i++)e[i]=i+1;this.#e=new Int32Array(e)}#r(){let t=new Map,e=this.#t;for(let i=0,a=this.#i;i<a;i++){let s=e[i],n=t.get(s);n?n.push(i+1):t.set(s,[i+1])}return t}movePages(t,e,i){this.#n();let a=this.#t,s=e.length,n=new Uint32Array(s),r=0;for(let c=0;c<s;c++){let u=e[c]-1;n[c]=a[u],u<i&&r++}let l=this.#i,o=l-s,f=new Int32Array(l),h=Oe(i-r,0,o);for(let c=0,u=0;c<l;c++)t.has(c+1)||(a[u]=a[c],f[u++]=c+1);a.copyWithin(h+s,h,o),a.set(n,h),f.copyWithin(h+s,h,o),f.set(e,h),this.#e=f,a.every((c,u)=>c===u+1)&&(this.#t=null)}deletePages(t){this.#n();let e=this.#t,i=this.#r();this.#s={pageNumberToId:e.slice(),pagesNumber:this.#i,prevPageNumbers:this.#e.slice()};let a=this.#i-t.length;this.#i=a;let s=this.#t=new Uint32Array(a);this.#e=new Int32Array(a);let n=0,r=0;for(let l of t){let o=l-1;o!==n&&(s.set(e.subarray(n,o),r),r+=o-n),n=o+1}n<e.length&&s.set(e.subarray(n),r),this.#l(i,new Set(t))}cancelDelete(){this.#s&&=(this.#t=this.#s.pageNumberToId,this.#i=this.#s.pagesNumber,this.#e=this.#s.prevPageNumbers,null)}cleanSavedData(){this.#s=null}copyPages(t){this.#n(),this.#a={pageNumbers:t,pageIds:t.map(e=>this.#t[e-1])}}cancelCopy(){this.#a=null}pastePages(t){this.#n();let e=this.#t,i=this.#r(),{pageNumbers:a,pageIds:s}=this.#a,n=this.#i+a.length;this.#i=n;let r=this.#t=new Uint32Array(n);this.#e=new Int32Array(n),r.set(e.subarray(0,t),0),r.set(s,t),r.set(e.subarray(t),t+a.length),this.#l(i,null,t,a),this.#a=null}#l(t,e=null,i=-1,a=null){let s=this.#e,n=this.#t,r=i+(a?.length??0),l=new Map;for(let o=0,f=this.#i;o<f;o++){if(o>=i&&o<r){s[o]=-a[o-i];continue}let h=n[o],c=t.get(h),u=l.get(h)||0;if(e&&c)for(;u<c.length&&e.has(c[u]);)u++;s[o]=c?.[u],l.set(h,u+1)}}hasBeenAltered(){return this.#t!==null}#o(t=null){if(!this.#t)return null;let e=new Int32Array(this.#i).fill(-1),i=new Map;if(t)for(let a of t){let s=this.getPageId(a),n=i.get(s)??0;i.set(s,n+1),e[a-1]=n}else for(let a=0,s=this.#i;a<s;a++){let n=this.#t[a],r=i.get(n)??0;i.set(n,r+1),e[a]=r}return e}getPageMappingForSaving(t=null,e=this.#o()){t??=this.#r();let i=0;for(let s of t.values())i=Math.max(i,s.length);let a=Array(i);for(let s=0;s<i;s++)a[s]={document:null,pageIndices:[],includePages:[]};for(let[s,n]of t)for(let r=0,l=n.length;r<l;r++)a[r].includePages.push([s-1,n[r]-1]);for(let{includePages:s,pageIndices:n}of a){s.sort((r,l)=>r[0]-l[0]);for(let r=0,l=s.length;r<l;r++)n.push(s[r][1]),s[r]=s[r][0]}return{pageInfos:a,copyLevels:e}}extractPages(t){t=Array.from(t).sort((i,a)=>i-a);let e=new Map;for(let i=0,a=t.length;i<a;i++){let s=this.getPageId(t[i]);e.getOrInsertComputed(s,Mn).push(i+1)}return this.getPageMappingForSaving(e,this.#o(t))}getPrevPageNumber(t){return this.#e?.[t-1]??0}getPageNumber(t){if(!this.#t)return t;let e=this.#t;for(let i=0,a=this.#i;i<a;i++)if(e[i]===t)return i+1;return 0}getPageId(t){return this.#t?.[t-1]??t}getMapping(){return this.#t?.subarray(0,this.pagesNumber)}},Jn=Symbol("INITIAL_DATA"),V1=d(()=>({...Promise.withResolvers(),data:Jn}),"dataObj"),Qm=class{static{d(this,"PDFObjects")}#t=new Map;get(t,e=null){if(e){let a=this.#t.getOrInsertComputed(t,V1);return a.promise.then(()=>e(a.data)),null}let i=this.#t.get(t);if(!i||i.data===Jn)throw Error(`Requesting object that isn't resolved yet ${t}.`);return i.data}has(t){let e=this.#t.get(t);return!!e&&e.data!==Jn}delete(t){let e=this.#t.get(t);return!e||e.data===Jn?!1:(this.#t.delete(t),!0)}resolve(t,e=null){let i=this.#t.getOrInsertComputed(t,V1);if(i.data!==Jn)throw Error(`Object already resolved ${t}.`);i.data=e,i.resolve()}clear(){for(let{data:t}of this.#t.values())t?.bitmap?.close();this.#t.clear()}*[Symbol.iterator](){for(let[t,{data:e}]of this.#t)e!==Jn&&(yield[t,e])}},Uo=class xa{static{d(this,"TextLayer")}#t=Promise.withResolvers();#e=null;#i=!1;#a=!!globalThis.FontInspector?.enabled;#s=null;#n=null;#r=null;#l=0;#o=0;#f=Xa.pixelRatio;#u=null;#h=null;#d=0;#p=0;#g=Object.create(null);#c=[];#m=null;#b=[];#w=new WeakMap;#y=null;static#k=new Map;static#v=new Map;static#q=new WeakMap;static#A=null;static#x=new Set;constructor({textContentSource:e,images:i,container:a,viewport:s}){if(e instanceof ReadableStream)this.#m=e;else if(typeof e=="object")this.#m=new ReadableStream({start(f){f.enqueue(e),f.close()}});else throw Error('No "textContentSource" parameter specified.');this.#e=this.#h=a,this.#s=i,this.#p=s.scale*this.#f,this.#d=s.rotation,this.#r={div:null,properties:null,ctx:null};let{pageWidth:n,pageHeight:r,pageX:l,pageY:o}=s.rawDims;this.#y=[1,0,0,-1,-l,o+r],this.#o=n,this.#l=r,xa.#D(),a.style.setProperty("--min-font-size",xa.#A),zs(a,s),this.#t.promise.finally(()=>{xa.#x.delete(this),this.#r=null,this.#g=null}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:e,isFirefox:i}=Te.platform;return Tt(this,"fontFamilyMap",new Map([["sans-serif",`${e&&i?"Calibri, ":""}sans-serif`],["monospace",`${e&&i?"Lucida Console, ":""}monospace`]]))}render(){this.#s&&this.#e.append(this.#s.render());let e=d(()=>{this.#u.read().then(({value:i,done:a})=>{a?this.#t.resolve():(this.#n??=i.lang,Object.assign(this.#g,i.styles),this.#T(i.items),e())},this.#t.reject)},"pump");return this.#u=this.#m.getReader(),xa.#x.add(this),e(),this.#t.promise}update({viewport:e,onBefore:i=null}){let a=e.scale*Xa.pixelRatio,s=e.rotation;if(s!==this.#d&&(i?.(),this.#d=s,zs(this.#h,{rotation:s})),a!==this.#p){i?.(),this.#p=a,this.#f=Xa.pixelRatio;let n={div:null,properties:null,ctx:xa.#E(this.#n)};for(let r of this.#b)n.properties=this.#w.get(r),n.div=r,this.#C(n)}}cancel(){let e=new ms("TextLayer task cancelled.");this.#u?.cancel(e).catch(()=>{}),this.#u=null,this.#t.reject(e)}get textDivs(){return this.#b}get textContentItemsStr(){return this.#c}#T(e){if(this.#i)return;this.#r.ctx??=xa.#E(this.#n);let i=this.#b,a=this.#c;for(let s of e){if(i.length>1e5){le("Ignoring additional textDivs for performance reasons."),this.#i=!0;return}if(s.str===void 0)if(s.type==="beginMarkedContentProps"||s.type==="beginMarkedContent"){let n=this.#e;this.#e=document.createElement("span"),this.#e.classList.add("markedContent"),s.id&&this.#e.setAttribute("id",s.id),s.tag==="Artifact"&&(this.#e.ariaHidden=!0),n.append(this.#e)}else s.type==="endMarkedContent"&&(this.#e=this.#e.parentNode);else a.push(s.str),this.#I(s)}}#I(e){let i=document.createElement("span"),a={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};this.#b.push(i);let s=qt.transform(this.#y,e.transform),n=Math.atan2(s[1],s[0]),r=this.#g[e.fontName];r.vertical&&(n+=Math.PI/2);let l=this.#a&&r.fontSubstitution||r.fontFamily;l=xa.fontFamilyMap.get(l)||l;let o=Math.hypot(s[2],s[3]),f=o*xa.#_(l,r,this.#n),h,c;n===0?(h=s[4],c=s[5]-f):(h=s[4]+f*Math.sin(n),c=s[5]-f*Math.cos(n));let u=i.style;u.left=`${(100*h/this.#o).toFixed(2)}%`,u.top=`${(100*c/this.#l).toFixed(2)}%`;let p=Math.round(o*100)/100;u.setProperty("--font-height",`${p}px`),u.fontFamily=l,a.fontSize=p,i.setAttribute("role","presentation"),i.textContent=e.str,i.dir=e.dir,this.#a&&(i.dataset.fontName=r.fontSubstitutionLoadedName||e.fontName),n!==0&&(a.angle=180/Math.PI*n);let m=!1;if(e.str.length>1)m=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){let g=Math.abs(e.transform[0]),b=Math.abs(e.transform[3]);g!==b&&Math.max(g,b)/Math.min(g,b)>1.5&&(m=!0)}if(m&&(a.canvasWidth=r.vertical?e.height:e.width),this.#w.set(i,a),this.#r.div=i,this.#r.properties=a,this.#C(this.#r),a.hasText&&this.#e.append(i),a.hasEOL){let g=document.createElement("br");g.setAttribute("role","presentation"),this.#e.append(g)}}#C(e){let{div:i,properties:a,ctx:s}=e,{style:n}=i,{canvasWidth:r,fontSize:l}=a;if(r!==0&&l!==0&&a.hasText){let{fontFamily:o}=n,f=this.#f,h=xa.#M(l*this.#p/f)*f;xa.#F(s,h,o);let{width:c}=s.measureText(i.textContent);c>0&&n.setProperty("--scale-x",r*h/(c*l))}a.angle!==0&&n.setProperty("--rotate",`${a.angle}deg`)}static cleanup(){if(!(this.#x.size>0)){this.#k.clear();for(let{canvas:e}of this.#v.values())e.remove();this.#v.clear()}}static#E(e=null){let i=this.#v.get(e||="");if(!i){let a=document.createElement("canvas");a.style.cssText="position:absolute;top:0;left:0;width:0;height:0;display:none;letter-spacing:normal;word-spacing:normal",a.lang=e,document.body.append(a),i=a.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#v.set(e,i),this.#q.set(i,{size:0,family:""})}return i}static#M(e){e=Math.fround(e);let i=Math.fround(e*131073);return Math.fround(i-Math.fround(i-e))}static#F(e,i,a){let s=this.#q.get(e);(i!==s.size||a!==s.family)&&(e.font=`${i}px ${a}`,s.size=i,s.family=a)}static#D(){if(this.#A!==null)return;let e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#A=e.getBoundingClientRect().height,e.remove()}static#_(e,i,a){let s=this.#k.get(e);if(s)return s;let n=this.#E(a);this.#F(n,30,e);let r=n.measureText(""),l=r.fontBoundingBoxAscent,o=Math.abs(r.fontBoundingBoxDescent),f=.8;return l?f=l/(l+o):(Te.platform.isFirefox&&le("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),i.ascent?f=i.ascent:i.descent&&(f=1+i.descent)),this.#k.set(e,f),f}};d(Zm,"getDocument");fj=class tg{static{d(this,"PDFDocumentLoadingTask")}static#t=0;_capability=Promise.withResolvers();_setupCapability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${tg.#t++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,this._capability.promise.catch(()=>{});try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._setupCapability.promise,await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}},Pu=class{static{d(this,"PDFDataRangeTransport")}#t=Promise.withResolvers();#e=null;constructor(t,e,i=!1,a=null){this.length=t,this.initialData=e,this.progressiveDone=i,this.contentDispositionFilename=a}onDataRange(t,e){this.#e({type:"range",begin:t,chunk:e})}onDataProgressiveRead(t){this.#t.promise.then(()=>{this.#e({type:"progressiveRead",chunk:t})})}onDataProgressiveDone(){this.#t.promise.then(()=>{this.#e({type:"progressiveDone"})})}transportReady(t){this.#e=t,this.#t.resolve()}requestDataRange(t,e){Ae("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}},hj=class{static{d(this,"PDFDocumentProxy")}constructor(t,e){this._pdfInfo=t,this._transport=e}get pagesMapper(){return this._transport.pagesMapper}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Tt(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAttachmentContent(t){return this._transport.getAttachmentContent(t)}getAnnotationsByType(t,e){return this._transport.getAnnotationsByType(t,e)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(e)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(t){return this._transport.saveDocument(t)}extractPages(t,e=null){return this._transport.extractPages(t,e)}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}getSignatures(){return this._transport.getSignatures()}getSignatureData(t){return this._transport.getSignatureData(t)}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}},cj=class Dc{static{d(this,"PDFPageProxy")}#t=!1;#e=null;static#i=0;constructor(e,i,a,s,n=!1){this._pageIndex=e,this._id=Dc.#i++,this._pageInfo=i,this._transport=a,this._stats=n?new q1:null,this._pdfBug=n,this.commonObjs=a.commonObjs,this.objs=new Qm,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null,this.#e=s,this.imageCoordinates=null}clone(e){let i=new Dc(e,this._pageInfo,this._transport,this.#e,this._pdfBug);return i.clonedFromIndex=this.clonedFromIndex??this._pageIndex,this._transport.updatePage(i),i}get pageNumber(){return this._pageIndex+1}set pageNumber(e){this._pageIndex=e-1,this._transport.updatePage(this)}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:i=this.rotate,offsetX:a=0,offsetY:s=0,dontFlip:n=!1}={}){return new Mu({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:i,offsetX:a,offsetY:s,dontFlip:n})}getAnnotations({intent:e="display"}={}){let{renderingIntent:i}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,i)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Tt(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:i=e.canvas,viewport:a,intent:s="display",annotationMode:n=ls.ENABLE,transform:r=null,background:l=null,optionalContentConfigPromise:o=null,annotationCanvasMap:f=null,pageColors:h=null,printAnnotationStorage:c=null,isEditing:u=!1,recordImages:p=!1,recordOperations:m=!1,operationsFilter:g=null}){this._stats?.time("Overall");let b=this._transport.getRenderingIntent(s,n,c,u),{renderingIntent:w,cacheKey:v}=b;this.#t=!1,o||=this._transport.getOptionalContentConfig(w);let y=this._intentStates.getOrInsertComputed(v,No);y.streamReaderCancelTimeout&&=(clearTimeout(y.streamReaderCancelTimeout),null);let x=!!(w&aa.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(b));let q=!!(this._pdfBug&&globalThis.StepperManager?.enabled),j=!!i&&!this.recordedBBoxes&&(m||q),A=!!i&&!this.imageCoordinates&&p,S=d($=>{if(y.renderTasks.delete(O),j){let tt=O.gfx?.dependencyTracker.take();tt&&(O.stepper?.setOperatorBBoxes(tt,O.gfx.dependencyTracker.takeDebugMetadata()),m&&(this.recordedBBoxes=tt))}A&&!$&&(this.imageCoordinates=O.gfx?.imagesTracker.take()),x&&(this.#t=!0),this.#a(),$?(O.capability.reject($),this._abortOperatorList({intentState:y,reason:$ instanceof Error?$:Error($)})):O.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},"complete"),C=null,M=null;(j||A)&&(M=new sv(i,y.operatorList.length)),j&&(C=new nv(M,q));let O=new pj({callback:S,params:{canvas:i,canvasContext:e,dependencyTracker:C??M,imagesTracker:A?new rv(i):null,viewport:a,transform:r,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:f,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!x,pdfBug:this._pdfBug,pageColors:h,enableHWA:this._transport.enableHWA,operationsFilter:g});(y.renderTasks||=new Set).add(O);let P=O.task;return Promise.all([y.displayReadyCapability.promise,o]).then(([$,tt])=>{if(this.destroyed)S();else{if(this._stats?.time("Rendering"),!(tt.renderingIntent&w))throw Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");O.initializeGraphics({transparency:$,optionalContentConfig:tt}),O.operatorListChanged()}}).catch(S),P}getOperatorList({intent:e="display",annotationMode:i=ls.ENABLE,printAnnotationStorage:a=null,isEditing:s=!1}={}){function n(){l.operatorList.lastChunk&&(l.opListReadCapability.resolve(l.operatorList),l.renderTasks.delete(o))}d(n,"operatorListChanged");let r=this._transport.getRenderingIntent(e,i,a,s,!0),l=this._intentStates.getOrInsertComputed(r.cacheKey,No),o;return l.opListReadCapability||(o=Object.create(null),o.operatorListChanged=n,l.opListReadCapability=Promise.withResolvers(),(l.renderTasks||=new Set).add(o),l.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(r)),l.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:i=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageId:this.#e.getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:i===!0},{highWaterMark:100,size:d(a=>a.items.length,"size")})}async getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(s=>xc.textContent(s));let i=this.streamTextContent(e),a={items:[],styles:Object.create(null),lang:null};for await(let s of i)a.lang??=s.lang,Object.assign(a.styles,s.styles),a.items.push(...s.items);return a}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let e=[];for(let i of this._intentStates.values())if(this._abortOperatorList({intentState:i,reason:Error("Page was destroyed."),force:!0}),!i.opListReadCapability)for(let a of i.renderTasks)e.push(a.completed),a.cancel();return this.objs.clear(),this.#t=!1,Promise.all(e)}cleanup(e=!1){this.#t=!0;let i=this.#a();return e&&i&&(this._stats&&=new q1),i}#a(){if(!this.#t||this.destroyed)return!1;for(let{renderTasks:e,operatorList:i}of this._intentStates.values())if(e.size>0||!i.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}_startRenderPage(e,i){let a=this._intentStates.get(i);a&&(this._stats?.timeEnd("Page Request"),a.displayReadyCapability?.resolve(e))}_renderPageChunk(e,i){for(let a=0,s=e.length;a<s;a++)i.operatorList.fnArray.push(e.fnArray[a]),i.operatorList.argsArray.push(e.argsArray[a]);i.operatorList.lastChunk=e.lastChunk,i.operatorList.separateAnnots=e.separateAnnots;for(let a of i.renderTasks)a.operatorListChanged();e.lastChunk&&this.#a()}_pumpOperatorList({renderingIntent:e,cacheKey:i,annotationStorageSerializable:a,modifiedIds:s}){let{map:n,transfer:r}=a,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageId:this.#e.getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,pageProxyId:this._id,intent:e,cacheKey:i,annotationStorage:n,modifiedIds:s},void 0,r).getReader(),o=this._intentStates.get(i);o.streamReader=l;let f=d(()=>{l.read().then(({value:h,done:c})=>{c?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(h,o),f())},h=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(let c of o.renderTasks)c.operatorListChanged();this.#a()}if(o.displayReadyCapability)o.displayReadyCapability.reject(h);else if(o.opListReadCapability)o.opListReadCapability.reject(h);else throw h}})},"pump");f()}_abortOperatorList({intentState:e,reason:i,force:a=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&=(clearTimeout(e.streamReaderCancelTimeout),null),!a){if(e.renderTasks.size>0)return;if(i instanceof df){let s=100;i.extraDelay>0&&i.extraDelay<1e3&&(s+=i.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:i,force:!0})},s);return}}if(e.streamReader.cancel(new ms(i.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(let[s,n]of this._intentStates)if(n===e){this._intentStates.delete(s);break}this.cleanup()}}}get stats(){return this._stats}},Go=class ea{static{d(this,"PDFWorker")}#t=Promise.withResolvers();#e=null;#i=null;#a=null;static#s=0;static#n=!0;static#r=new WeakMap;static{ma&&(this.#n=!0,ar.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(e,i)=>{let a=URL.parse(e);if(!a?.origin||a.origin==="null")return!1;let s=new URL(i,a);return a.origin===s.origin},this._createCDNWrapper=e=>{let i=`await import("${e}");`;return URL.createObjectURL(new Blob([i],{type:"text/javascript"}))}}constructor({name:e=null,port:i=null,verbosity:a=Hk()}={}){if(this.name=e,this.destroyed=!1,this.verbosity=a,i){if(ea.#r.has(i))throw Error("Cannot use more than one PDFWorker per port.");ea.#r.set(i,this),this.#o(i)}else this.#f()}get promise(){return this.#t.promise}#l(){this.#t.resolve(),this.#e.send("configure",{verbosity:this.verbosity})}get port(){return this.#i}get messageHandler(){return this.#e}#o(e){this.#i=e,this.#e=new Yr("main","worker",e),this.#e.on("ready",()=>{}),this.#l()}#f(){if(ea.#n||ea.#h){this.#u();return}let{workerSrc:e}=ea;try{ea._isSameOrigin(window.location,e)||(e=ea._createCDNWrapper(new URL(e,window.location).href));let i=new Worker(e,{type:"module"}),a=new Yr("main","worker",i),s=d(()=>{n.abort(),a.destroy(),i.terminate(),this.destroyed?this.#t.reject(Error("Worker was destroyed")):this.#u()},"terminateEarly"),n=new AbortController;i.addEventListener("error",()=>{this.#a||s()},{signal:n.signal}),a.on("ready",r=>{n.abort(),this.destroyed||!(r instanceof Uint8Array)?s():(this.#e=a,this.#i=i,this.#a=i,this.#l())})}catch{ff("The worker has been disabled."),this.#u()}}#u(){ea.#n||=(le("Setting up fake worker."),!0),ea._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this.#t.reject(Error("Worker was destroyed"));return}let i=new vv;this.#i=i;let a=`fake${ea.#s++}`,s=new Yr(a+"_worker",a,i);e.setup(s,i),this.#e=new Yr(a,a+"_worker",i),this.#l()}).catch(e=>{this.#t.reject(Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this.#a?.terminate(),this.#a=null,ea.#r.delete(this.#i),this.#i=null,this.#e?.destroy(),this.#e=null}static create(e){let i=this.#r.get(e?.port);if(i){if(i._pendingDestroy)throw Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return i}return new ea(e)}static get workerSrc(){if(ar.workerSrc)return ar.workerSrc;throw Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#h(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return Tt(this,"_setupFakeWorkerGlobal",d(async()=>this.#h?this.#h:globalThis.pdfjsWorker.WorkerMessageHandler,"loader")())}},uj=class{static{d(this,"WorkerTransport")}downloadInfoCapability=Promise.withResolvers();#t=null;#e=new Map;#i=null;#a=new Map;#s=new Map;#n=new Map;#r=null;#l=null;constructor(t,e,i,a,s,n){this.messageHandler=t,this.loadingTask=e,this.#i=i,this.commonObjs=new Qm,this.fontLoader=new ov({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this.enableHWA=a.enableHWA,this.loadingParams=a.loadingParams,this._params=a,this.canvasFactory=s.canvasFactory,this.filterFactory=s.filterFactory,this.binaryDataFactory=s.binaryDataFactory,this.pagesMapper=n,this.destroyed=!1,this.destroyCapability=null,this.setupMessageHandler()}updatePage(t){this.#a.set(t._id,t),this.#s.set(t._pageIndex,Promise.resolve(t))}#o(t,e=null){return this.#e.getOrInsertComputed(t,()=>this.messageHandler.sendWithPromise(t,e))}#f({loaded:t,total:e}){this.loadingTask.onProgress?.({loaded:t,total:e,percent:e?Oe(Math.round(t/e*100),0,100):NaN})}get annotationStorage(){return Tt(this,"annotationStorage",new Ru)}getRenderingIntent(t,e=ls.ENABLE,i=null,a=!1,s=!1){let n=aa.DISPLAY,r=Al;switch(t){case"any":n=aa.ANY;break;case"display":break;case"print":n=aa.PRINT;break;default:le(`getRenderingIntent - invalid intent: ${t}`)}let l=n&aa.PRINT&&i instanceof Dm?i:this.annotationStorage;switch(e){case ls.DISABLE:n+=aa.ANNOTATIONS_DISABLE;break;case ls.ENABLE:break;case ls.ENABLE_FORMS:n+=aa.ANNOTATIONS_FORMS;break;case ls.ENABLE_STORAGE:n+=aa.ANNOTATIONS_STORAGE,r=l.serializable;break;default:le(`getRenderingIntent - invalid annotationMode: ${e}`)}a&&(n+=aa.IS_EDITING),s&&(n+=aa.OPLIST);let{ids:o,hash:f}=l.modifiedIds,h=[n,r.hash,f];return{renderingIntent:n,cacheKey:h.join("_"),annotationStorageSerializable:r,modifiedIds:o}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#r?.reject(Error("Worker was destroyed during onPassword callback"));let t=[];for(let i of this.#a.values())t.push(i._destroy());this.#a.clear(),this.#s.clear(),this.#n.clear(),Object.hasOwn(this,"annotationStorage")&&this.annotationStorage.resetModified();let e=this.messageHandler.sendWithPromise("Terminate",null);return t.push(e),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),Uo.cleanup(),this.#i?.cancelAllRequests(new ms("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:t,loadingTask:e}=this;t.on("GetReader",(i,a)=>{Xe(this.#i,"GetReader - no `BasePDFStream` instance available."),this.#t=this.#i.getFullReader(),this.#t.onProgress=s=>this.#f(s),a.onPull=()=>{this.#t.read().then(function({value:s,done:n}){n?a.close():(Xe(s instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(s),1,[s]))}).catch(s=>{a.error(s)})},a.onCancel=s=>{this.#t.cancel(s),a.ready.catch(n=>{if(!this.destroyed)throw n})}}),t.on("ReaderHeadersReady",async i=>{await this.#t.headersReady;let{isStreamingSupported:a,isRangeSupported:s,contentLength:n}=this.#t;return a&&s&&(this.#t.onProgress=null),{isStreamingSupported:a,isRangeSupported:s,contentLength:n}}),t.on("GetRangeReader",(i,a)=>{Xe(this.#i,"GetRangeReader - no `BasePDFStream` instance available.");let s=this.#i.getRangeReader(i.begin,i.end);s?(a.onPull=()=>{s.read().then(function({value:n,done:r}){r?a.close():(Xe(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(n),1,[n]))}).catch(n=>{a.error(n)})},a.onCancel=n=>{s.cancel(n),a.ready.catch(r=>{if(!this.destroyed)throw r})}):a.close()}),t.on("GetDoc",({pdfInfo:i})=>{this.pagesMapper.pagesNumber=i.numPages,this._numPages=i.numPages,this._htmlForXfa=i.htmlForXfa,delete i.htmlForXfa,e._capability.resolve(new hj(i,this))}),t.on("DocException",i=>{e._capability.reject(Wi(i))}),t.on("PasswordRequest",i=>{this.#r=Promise.withResolvers();try{if(!e.onPassword)throw Wi(i);let a=d(s=>{s instanceof Error?this.#r.reject(s):this.#r.resolve({password:s})},"updatePassword");e.onPassword(a,i.code)}catch(a){this.#r.reject(a)}return this.#r.promise}),t.on("DataLoaded",i=>{this.#f({loaded:i.length,total:i.length}),this.downloadInfoCapability.resolve(i)}),t.on("StartRenderPage",i=>{this.destroyed||this.#a.get(i.pageProxyId)._startRenderPage(i.transparency,i.cacheKey)}),t.on("commonobj",([i,a,s])=>{if(this.destroyed||this.commonObjs.has(i))return null;switch(a){case"Font":if("error"in s){let o=s.error;le(`Error during font loading: ${o}`),this.commonObjs.resolve(i,o);break}let n=new fv(new mv(s.buffer),this._params.pdfBug&&globalThis.FontInspector?.enabled?(o,f)=>globalThis.FontInspector.fontAdded(o,f):null,s.charProcOperatorList,s.extra);this.fontLoader.bind(n).catch(()=>t.sendWithPromise("FontFallback",{id:i})).finally(()=>{n.fontExtraProperties||n.clearData(),this.commonObjs.resolve(i,n)});break;case"CopyLocalImage":let{imageRef:r}=s;Xe(r,"The imageRef must be defined.");for(let o of this.#a.values())for(let[,f]of o.objs){if(f?.ref!==r)continue;if(!f.dataLen)return null;let h=structuredClone(f);return this.commonObjs.resolve(i,h),f.dataLen}break;case"FontPath":this.commonObjs.resolve(i,new bv(s));break;case"Image":this.commonObjs.resolve(i,s);break;case"Pattern":let l=new gv(s);this.commonObjs.resolve(i,l.getIR());break;default:throw Error(`Got unknown common object type ${a}`)}return null}),t.on("obj",([i,a,s,n])=>{if(this.destroyed)return;let r=this.#a.get(a);if(!r.objs.has(i))if(r._intentStates.size===0)n?.bitmap?.close();else switch(s){case"Image":case"Pattern":r.objs.resolve(i,n);break;default:throw Error(`Got unknown object type ${s}`)}}),t.on("DocProgress",i=>{this.destroyed||this.#f(i)}),t.on("FetchBinaryData",async i=>{if(this.destroyed)throw Error("Worker was destroyed.");if(!this.binaryDataFactory)throw Error("`BinaryDataFactory` not initialized, see the `useWorkerFetch` parameter.");return this.binaryDataFactory.fetch(i)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(t=null){this.annotationStorage.size<=0&&le("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");let{map:e,transfer:i}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,supportsPrintToPDF:this.#l!==null,filename:this.#t?.filename??null},i).finally(()=>{this.#l=null,this.annotationStorage.resetModified()})}extractPages(t,e=null){let i={pageInfos:t},a,s=globalThis.ImageBitmap;if(typeof s=="function"){let n=Array.isArray(t)?t:[t];for(let r of n)r?.image instanceof s&&(a||=[]).push(r.image)}if(this.annotationStorage.size>0){let n=this.annotationStorage.serializable,{map:r}=n;n.transfer?.length&&(a?a.push(...n.transfer):a=n.transfer);let l=this.pagesMapper.getMapping();if(l){let o=new Map;for(let[f,h]of r){if(h?.pageIndex!==void 0&&h.pageIndex>=0&&h.pageIndex<l.length){let c=e?.[h.pageIndex]??0,u=l[h.pageIndex]-1;if(u!==h.pageIndex||c!==0){o.set(f,{...h,pageIndex:u,copyLevel:c});continue}}o.set(f,h)}r=o}i.annotationStorage=r}return this.messageHandler.sendWithPromise("ExtractPages",i,a).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this.pagesMapper.pagesNumber)return Promise.reject(Error("Invalid page request."));let e=t-1,i=this.pagesMapper.getPageId(t)-1,a=this.#s.get(e);if(a)return a;let s=this.messageHandler.sendWithPromise("GetPage",{pageIndex:i}).then(n=>{if(this.destroyed)throw Error("Transport destroyed");n.refStr&&this.#n.set(n.refStr,i);let r=new cj(e,n,this,this.pagesMapper,this._params.pdfBug);return this.#a.set(r._id,r),r});return this.#s.set(e,s),s}async getPageIndex(t){if(!Fc(t))throw Error("Invalid pageIndex request.");let e=await this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}),i=this.pagesMapper.getPageNumber(e+1);if(i===0)throw Error("GetPageIndex: page has been removed.");return i-1}getAnnotations(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:this.pagesMapper.getPageId(t+1)-1,intent:e})}getFieldObjects(){return this.#o("GetFieldObjects")}getSignatures(){return this.#o("GetSignatures")}getSignatureData(t){return this.messageHandler.sendWithPromise("GetSignatureData",t)}hasJSActions(){return this.#o("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t=="string"?this.messageHandler.sendWithPromise("GetDestination",{id:t}):Promise.reject(Error("Invalid destination request."))}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAttachmentContent(t){return this.messageHandler.sendWithPromise("GetAttachmentContent",t)}getAnnotationsByType(t,e){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:t,pageIndexesToSkip:e})}getDocJSActions(){return this.#o("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:this.pagesMapper.getPageId(t+1)-1})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:this.pagesMapper.getPageId(t+1)-1})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#o("GetOptionalContentConfig").then(e=>new lj(e,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){let t="GetMetadata";return this.#e.getOrInsertComputed(t,()=>this.messageHandler.sendWithPromise(t,null).then(e=>({info:e[0],metadata:e[1]?new nj(e[1]):null,contentDispositionFilename:this.#t?.filename??null,contentLength:this.#t?.contentLength??null,hasStructTree:e[2]})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(let e of this.#a.values())if(!e.cleanup())throw Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),Uo.cleanup()}}cachedPageNumber(t){if(!Fc(t))return null;let e=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`,i=this.#n.get(e);if(i>=0){let a=this.pagesMapper.getPageNumber(i+1);if(a!==0)return a}return null}},dj=class{static{d(this,"RenderTask")}_internalRenderTask=null;onContinue=null;onError=null;constructor(t){this._internalRenderTask=t}get promise(){return this._internalRenderTask.capability.promise}cancel(t=0){this._internalRenderTask.cancel(null,t)}get separateAnnots(){let{separateAnnots:t}=this._internalRenderTask.operatorList;if(!t)return!1;let{annotationCanvasMap:e}=this._internalRenderTask;return t.form||t.canvas&&e?.size>0}get imageCoordinates(){return this._internalRenderTask.imageCoordinates||null}},pj=class Jr{static{d(this,"InternalRenderTask")}#t=null;static#e=new WeakSet;constructor({callback:e,params:i,objs:a,commonObjs:s,annotationCanvasMap:n,operatorList:r,pageIndex:l,canvasFactory:o,filterFactory:f,useRequestAnimationFrame:h=!1,pdfBug:c=!1,pageColors:u=null,enableHWA:p=!1,operationsFilter:m=null}){this.callback=e,this.params=i,this.objs=a,this.commonObjs=s,this.annotationCanvasMap=n,this.operatorListIdx=null,this.operatorList=r,this._pageIndex=l,this.canvasFactory=o,this.filterFactory=f,this._pdfBug=c,this.pageColors=u,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=h===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new dj(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=i.canvas,this._canvasContext=i.canvas?null:i.canvasContext,this._enableHWA=p,this._dependencyTracker=i.dependencyTracker,this._imagesTracker=i.imagesTracker,this._operationsFilter=m}get completed(){return this.capability.promise.catch(()=>{})}initializeGraphics({transparency:e=!1,optionalContentConfig:i}){if(this.cancelled)return;if(this._canvas){if(Jr.#e.has(this._canvas))throw Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Jr.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{viewport:a,transform:s,background:n,dependencyTracker:r,imagesTracker:l}=this.params,o=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new So(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors,r,l),this.gfx.beginDrawing({transform:s,viewport:a,transparency:e,background:n}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,i=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#t&&=(window.cancelAnimationFrame(this.#t),null),Jr.#e.delete(this._canvas),e||=new df(`Rendering cancelled, page ${this._pageIndex+1}`,i),this.callback(e),this.task.onError?.(e)}operatorListChanged(){this.graphicsReady?(this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||=this._continueBound}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#t=window.requestAnimationFrame(()=>{this.#t=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),Jr.#e.delete(this._canvas),this.callback())))}},eg="6.4.299",ig="d0991a0d5",Bu=class Ua{static{d(this,"ColorPicker")}#t=null;#e=null;#i;#a=null;#s=!1;#n=!1;#r=null;#l;#o=null;#f=null;static#u=null;static get _keyboardManager(){return Tt(this,"_keyboardManager",new Fl([[["Escape"],Ua.prototype._hideDropdownFromKeyboard],[["Space"],Ua.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight"],Ua.prototype._moveToNext],[["ArrowUp","ArrowLeft"],Ua.prototype._moveToPrevious],[["Home"],Ua.prototype._moveToBeginning],[["End"],Ua.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:i=null}){e?(this.#n=!1,this.#r=e):this.#n=!0,this.#f=e?._uiManager||i,this.#l=this.#f._eventBus,this.#i=e?.color?.toUpperCase()||this.#f?.highlightColors.values().next().value||"#FFFF98",Ua.#u||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){let e=this.#t=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",this.#r&&(e.ariaControls=`${this.#r.id}_colorpicker_dropdown`);let i=this.#f._signal;e.addEventListener("click",this.#g.bind(this),{signal:i}),e.addEventListener("keydown",this.#p.bind(this),{signal:i});let a=this.#e=document.createElement("span");return a.className="swatch",a.ariaHidden="true",a.style.backgroundColor=this.#i,e.append(a),e}renderMainDropdown(){let e=this.#a=this.#h();return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}#h(){let e=document.createElement("div"),i=this.#f._signal;e.addEventListener("contextmenu",va,{signal:i}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#r&&(e.id=`${this.#r.id}_colorpicker_dropdown`);for(let[a,s]of this.#f.highlightColors){let n=document.createElement("button");n.tabIndex="0",n.role="option",n.setAttribute("data-color",s),n.title=a,n.setAttribute("data-l10n-id",Ua.#u[a]);let r=document.createElement("span");n.append(r),r.className="swatch",r.style.backgroundColor=s,n.ariaSelected=s===this.#i,n.addEventListener("click",this.#d.bind(this,s),{signal:i}),e.append(n)}return e.addEventListener("keydown",this.#p.bind(this),{signal:i}),e}#d(e,i){i.stopPropagation(),this.#l.dispatch("switchannotationeditorparams",{source:this,type:ge.HIGHLIGHT_COLOR,value:e}),this.update(e)}_colorSelectFromKeyboard(e){if(e.target===this.#t){this.#g(e);return}let i=e.target.getAttribute("data-color");i&&this.#d(i,e)}_moveToNext(e){this.#m?e.target===this.#t?this.#a.firstElementChild?.focus():e.target.nextSibling?.focus():this.#g(e)}_moveToPrevious(e){e.target===this.#a?.firstElementChild||e.target===this.#t?this.#m&&this._hideDropdownFromKeyboard():(this.#m||this.#g(e),e.target.previousSibling?.focus())}_moveToBeginning(e){this.#m?this.#a.firstElementChild?.focus():this.#g(e)}_moveToEnd(e){this.#m?this.#a.lastElementChild?.focus():this.#g(e)}#p(e){Ua._keyboardManager.exec(this,e)}#g(e){if(this.#m){this.hideDropdown();return}if(this.#s=e.detail===0,this.#o||(this.#o=new AbortController,window.addEventListener("pointerdown",this.#c.bind(this),{signal:this.#f.combinedSignal(this.#o)})),this.#t.ariaExpanded="true",this.#a){this.#a.classList.remove("hidden");return}let i=this.#a=this.#h();this.#t.append(i)}#c(e){this.#a?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#a?.classList.add("hidden"),this.#t.ariaExpanded="false",this.#o?.abort(),this.#o=null}get#m(){return this.#a&&!this.#a.classList.contains("hidden")}_hideDropdownFromKeyboard(){this.#n||(this.#m?(this.hideDropdown(),this.#t.focus({preventScroll:!0,focusVisible:this.#s})):this.#r?.unselect())}update(e){if(this.#e&&(this.#e.style.backgroundColor=e),!this.#a)return;let i=this.#f.highlightColors.values();for(let a of this.#a.children)a.ariaSelected=i.next().value===e.toUpperCase()}destroy(){this.#t?.remove(),this.#t=null,this.#e=null,this.#a?.remove(),this.#a=null}},ag=class Pc{static{d(this,"BasicColorPicker")}#t=null;#e=!1;#i=null;#a=null;static#s=null;constructor(e){this.#i=e,this.#a=e._uiManager,Pc.#s||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#t)return this.#t;let{editorType:e,colorType:i,colorAndOpacityType:a,opacityType:s,color:n,opacity:r}=this.#i,l=this.#e=Te.isAlphaColorInputSupported&&s!==void 0,o=this.#t=document.createElement("input");if(o.type="color",l){o.setAttribute("alpha","");let f=qt.hexNums[Math.round((r??1)*255)];o.value=(n||"#000000")+f}else o.value=n||"#000000";return o.className="basicColorPicker",o.tabIndex=0,o.setAttribute("data-l10n-id",Pc.#s[e]),o.addEventListener("input",()=>{if(l){let f=_n(o.value);if(!f)return;let[h,c,u,p]=f,m=qt.makeHexColor(h,c,u);a===void 0?(this.#a.updateParams(i,m),this.#a.updateParams(s,p)):this.#a.updateParams(a,{color:m,opacity:p})}else this.#a.updateParams(i,o.value)},{signal:this.#a._signal}),o}update(e){if(this.#t)if(this.#e){let i=qt.hexNums[Math.round(this.#i.opacity*255)];this.#t.value=e+i}else this.#t.value=e}updateOpacity(e){if(!this.#t||!this.#e)return;let i=qt.hexNums[Math.round(e*255)];this.#t.value=this.#i.color+i}destroy(){this.#t?.remove(),this.#t=null}hideDropdown(){}};d(K1,"makeColorComp");d(Br,"scaleAndClamp");X1=class{static{d(this,"ColorConverters")}static CMYK_G([t,e,i,a]){return["G",1-Math.min(1,.3*t+.59*i+.11*e+a)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Br(t),[t,t,t]}static G_HTML([t]){let e=K1(t);return`#${e}${e}${e}`}static RGB_G([t,e,i]){return["G",.3*t+.59*e+.11*i]}static RGB_rgb(t){return t.map(Br)}static RGB_HTML(t){return`#${t.map(K1).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,e,i,a]){return["RGB",1-Math.min(1,t+a),1-Math.min(1,i+a),1-Math.min(1,e+a)]}static CMYK_rgb([t,e,i,a]){return[Br(1-Math.min(1,t+a)),Br(1-Math.min(1,i+a)),Br(1-Math.min(1,e+a))]}static CMYK_HTML(t){let e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,i]){let a=1-t,s=1-e,n=1-i;return["CMYK",a,s,n,Math.min(a,s,n)]}},mj=class{static{d(this,"BaseSVGFactory")}create(t,e,i=!1){if(t<=0||e<=0)throw Error("Invalid SVG dimensions");let a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),i||(a.setAttribute("width",`${t}px`),a.setAttribute("height",`${e}px`)),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox",`0 0 ${t} ${e}`),a}createElement(t){if(typeof t!="string")throw Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){Ae("Abstract method `_createSVG` called.")}},Sl=class extends mj{static{d(this,"DOMSVGFactory")}_createSVG(t){return document.createElementNS(Pi,t)}},Sn=new WeakSet,gj=new Date().getTimezoneOffset()*60*1e3,ch=class{static{d(this,"AnnotationElementFactory")}static create(t){switch(t.data.annotationType){case ze.LINK:return new Ou(t);case ze.TEXT:return new wj(t);case ze.WIDGET:switch(t.data.fieldType){case"Tx":return new yj(t);case"Btn":return t.data.radioButton?new jj(t):t.data.checkBox?new vj(t):new qj(t);case"Ch":return new xj(t);case"Sig":return new kj(t)}return new En(t);case ze.POPUP:return new Bc(t);case ze.FREETEXT:return new ng(t);case ze.LINE:return new Sj(t);case ze.SQUARE:return new Cj(t);case ze.CIRCLE:return new Ij(t);case ze.POLYLINE:return new rg(t);case ze.CARET:return new Mj(t);case ze.INK:return new Hu(t);case ze.POLYGON:return new Tj(t);case ze.HIGHLIGHT:return new lg(t);case ze.UNDERLINE:return new _j(t);case ze.SQUIGGLY:return new Ej(t);case ze.STRIKEOUT:return new Fj(t);case ze.STAMP:return new og(t);case ze.FILEATTACHMENT:return new Rj(t);case ze.RICHMEDIA:case ze.SCREEN:case ze.SOUND:return new fg(t);default:return new Je(t)}}},Je=class sg{static{d(this,"AnnotationElement")}#t=null;#e=!1;#i=null;constructor(e,{isRenderable:i=!1,ignoreBorder:a=!1,createQuadrilaterals:s=!1}={}){this.isRenderable=i,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,this.hasOwnCommentButton=!1,i&&(this.contentElement=this.container=this._createContainer(a)),s&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:i}){return!!(e?.str||i?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return sg._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){let{data:e}=this,i=this.annotationStorage?.getEditor(e.id);return i?i.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){let e=this.annotationStorage?.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;let{quadPoints:i,inkLists:a,rect:s}=this.data,n=-1/0,r=-1/0;if(i?.length>=8){for(let l=0;l<i.length;l+=8)i[l+1]>r?(r=i[l+1],n=i[l+2]):i[l+1]===r&&(n=Math.max(n,i[l+2]));return[n,r]}if(a?.length>=1){for(let l of a)for(let o=0,f=l.length;o<f;o+=2)l[o+1]>r?(r=l[o+1],n=l[o]):l[o+1]===r&&(n=Math.max(n,l[o]));if(n!==1/0)return[n,r]}return s?[s[2],s[3]]:null}_normalizePoint(e){let{page:{view:i},viewport:{rawDims:{pageWidth:a,pageHeight:s,pageX:n,pageY:r}}}=this.parent;return e[1]=i[3]-e[1]+i[1],e[0]=100*(e[0]-n)/a,e[1]=100*(e[1]-r)/s,e}get commentText(){let{data:e}=this;return this.annotationStorage.getRawValue(`${ur}${e.id}`)?.popup?.contents||e.contentsObj?.str||""}set commentText(e){let{data:i}=this,a={deleted:!e,contents:e||""};this.annotationStorage.updateEditor(i.id,{popup:a})||this.annotationStorage.setValue(`${ur}${i.id}`,{id:i.id,annotationType:i.annotationType,page:this.parent.page,popup:a,popupRef:i.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){(this.#i?.popup||this.popup)?.remove(),this.#i=this.popup=null}updateEdited(e){if(!this.container)return;e.rect&&(this.#t||={rect:this.data.rect.slice(0)});let{rect:i,popup:a}=e;i&&this.#a(i);let s=this.#i?.popup||this.popup;!s&&a?.text&&(this._createPopup(a),s=this.#i.popup),s&&(s.updateEdited(e),a?.deleted&&(s.remove(),this.#i=null,this.popup=null))}resetEdited(){this.#t&&=(this.#a(this.#t.rect),this.#i?.popup.resetEdited(),null)}#a(e){let{container:{style:i},data:{rect:a,rotation:s},parent:{viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:l,pageY:o}}}}=this;a?.splice(0,4,...e),i.left=`${100*(e[0]-l)/n}%`,i.top=`${100*(r-e[3]+o)/r}%`,s===0?(i.width=`${100*(e[2]-e[0])/n}%`,i.height=`${100*(e[3]-e[1])/r}%`):this.setRotation(s)}_createContainer(e){let{data:i,parent:{page:a,viewport:s}}=this,n=document.createElement("section");n.setAttribute("data-annotation-id",i.id),!(this instanceof En)&&!(this instanceof Ou)&&!(this instanceof fg)&&(n.tabIndex=0);let{style:r}=n;if(r.zIndex=this.parent.zIndex,this.parent.zIndex+=2,i.alternativeText&&(n.title=i.alternativeText),i.noRotate&&n.classList.add("norotate"),!i.rect||this instanceof Bc){let{rotation:g}=i;return!i.hasOwnCanvas&&g!==0&&this.setRotation(g,n),n}let{width:l,height:o}=this;if(!e&&i.borderStyle.width>0){r.borderWidth=`${i.borderStyle.width}px`;let g=i.borderStyle.horizontalCornerRadius,b=i.borderStyle.verticalCornerRadius;switch((g>0||b>0)&&(r.borderRadius=`calc(${g}px * var(--total-scale-factor)) / calc(${b}px * var(--total-scale-factor))`),i.borderStyle.style){case Yn.SOLID:r.borderStyle="solid";break;case Yn.DASHED:r.borderStyle="dashed";break;case Yn.BEVELED:le("Unimplemented border style: beveled");break;case Yn.INSET:le("Unimplemented border style: inset");break;case Yn.UNDERLINE:r.borderBottomStyle="solid"}let w=i.borderColor||null;w?(this.#e=!0,r.borderColor=qt.makeHexColor(...w)):r.borderWidth=0}let f=qt.normalizeRect([i.rect[0],a.view[3]-i.rect[1]+a.view[1],i.rect[2],a.view[3]-i.rect[3]+a.view[1]]),{pageWidth:h,pageHeight:c,pageX:u,pageY:p}=s.rawDims;r.left=`${100*(f[0]-u)/h}%`,r.top=`${100*(f[1]-p)/c}%`;let{rotation:m}=i;return i.hasOwnCanvas||m===0?(r.width=`${100*l/h}%`,r.height=`${100*o/c}%`):this.setRotation(m,n),n}setRotation(e,i=this.container){if(!this.data.rect)return;let{pageWidth:a,pageHeight:s}=this.parent.viewport.rawDims,{width:n,height:r}=this;e%180!=0&&([n,r]=[r,n]),i.style.width=`${100*n/a}%`,i.style.height=`${100*r/s}%`,i.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){let e=d((i,a,s)=>{let n=s.detail[i],r=n[0],l=n.slice(1);s.target.style[a]=X1[`${r}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[a]:X1[`${r}_rgb`](l)})},"setColor");return Tt(this,"_commonActions",{display:d(i=>{let{display:a}=i.detail,s=a%2==1;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:s,noPrint:a===1||a===2})},"display"),print:d(i=>{this.annotationStorage.setValue(this.data.id,{noPrint:!i.detail.print})},"print"),hidden:d(i=>{let{hidden:a}=i.detail;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:a,noView:a})},"hidden"),focus:d(i=>{setTimeout(()=>i.target.focus({preventScroll:!1}),0)},"focus"),userName:d(i=>{i.target.title=i.detail.userName},"userName"),readonly:d(i=>{i.target.disabled=i.detail.readonly},"readonly"),required:d(i=>{this._setRequired(i.target,i.detail.required)},"required"),bgColor:d(i=>{e("bgColor","backgroundColor",i)},"bgColor"),fillColor:d(i=>{e("fillColor","backgroundColor",i)},"fillColor"),fgColor:d(i=>{e("fgColor","color",i)},"fgColor"),textColor:d(i=>{e("textColor","color",i)},"textColor"),borderColor:d(i=>{e("borderColor","borderColor",i)},"borderColor"),strokeColor:d(i=>{e("strokeColor","borderColor",i)},"strokeColor"),rotation:d(i=>{let a=i.detail.rotation;this.setRotation(a),this.annotationStorage.setValue(this.data.id,{rotation:a})},"rotation")})}_dispatchEventFromSandbox(e,i){let a=this._commonActions;for(let s of Object.keys(i.detail))(e[s]||a[s])?.(i)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;let i=this.annotationStorage.getRawValue(this.data.id);if(!i)return;let a=this._commonActions;for(let[s,n]of Object.entries(i)){let r=a[s];r&&(r({detail:{[s]:n},target:e}),delete i[s])}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:e}=this.data;if(!e)return;let[i,a,s,n]=this.data.rect.map(Math.fround);if(e.length===8){let[g,b,w,v]=e.subarray(2,6);if(s===g&&n===b&&i===w&&a===v)return}let{style:r}=this.container,l;if(this.#e){let{borderColor:g,borderWidth:b}=r;r.borderWidth=0,l=["url('data:image/svg+xml;utf8,",`<svg xmlns="${Pi}" preserveAspectRatio="none" viewBox="0 0 1 1">`,`<g fill="transparent" stroke="${g}" stroke-width="${b}">`],this.container.classList.add("hasBorder")}let o=s-i,f=n-a,{svgFactory:h}=this,c=h.createElement("svg");c.classList.add("quadrilateralsContainer"),c.setAttribute("width",0),c.setAttribute("height",0),c.role="none";let u=h.createElement("defs");c.append(u);let p=h.createElement("clipPath"),m=`clippath_${this.data.id}`;p.setAttribute("id",m),p.setAttribute("clipPathUnits","objectBoundingBox"),u.append(p);for(let g=2,b=e.length;g<b;g+=8){let w=e[g],v=e[g+1],y=e[g+2],x=e[g+3],q=h.createElement("rect"),j=(y-i)/o,A=(n-v)/f,S=(w-y)/o,C=(v-x)/f;q.setAttribute("x",j),q.setAttribute("y",A),q.setAttribute("width",S),q.setAttribute("height",C),p.append(q),l?.push(`<rect vector-effect="non-scaling-stroke" x="${j}" y="${A}" width="${S}" height="${C}"/>`)}this.#e&&(l.push("</g></svg>')"),r.backgroundImage=l.join("")),this.container.append(c),this.container.style.clipPath=`url(#${m})`}_createPopup(e=null){let{data:i}=this,a,s;e?(a={str:e.text},s=e.date):(a=i.contentsObj,s=i.modificationDate),this.#i=new Bc({data:{color:i.color,titleObj:i.titleObj,modificationDate:s,contentsObj:a,richText:i.richText,parentRect:i.rect,borderStyle:0,id:`popup_${i.id}`,rotation:i.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]})}get hasPopupElement(){return!!(this.#i||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#i}render(){Ae("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,i=null){let a=[];if(this._fieldObjects){let s=this._fieldObjects.get(e)||[];for(let{page:n,id:r,exportValues:l}of s){if(n===-1||r===i)continue;let o=typeof l=="string"?l:null,f=document.querySelector(`[data-element-id="${r}"]`);f&&!Sn.has(f)?le(`_getElementsByName - element not allowed: ${r}`):a.push({id:r,exportValue:o,domElement:f})}return a}for(let s of document.getElementsByName(e)){let{exportValue:n}=s,r=s.getAttribute("data-element-id");r!==i&&Sn.has(s)&&a.push({id:r,exportValue:n,domElement:s})}return a}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(let i of e)i.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:e,data:{id:i}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:i,mustEnterInEditMode:!0})})}updateOC(e){this.data.oc&&e&&(e.isVisible(this.data.oc)?this.show():this.hide())}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}_setBackgroundColor(e){let i=this.data.backgroundColor||null;e.style.backgroundColor=i===null?"transparent":qt.makeHexColor(...i)}},bj=class extends Je{static{d(this,"EditorAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.editor=t.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){let{editor:t}=this;t.hasComment&&this._createPopup(t.comment)}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(t){this.editor.comment=t,t||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.parent.removeAnnotation(this.data.id),this.container.remove(),this.container=null,this.removePopup()}},Ou=class extends Je{static{d(this,"LinkAnnotationElement")}constructor(t,e=null){super(t,{isRenderable:!0,ignoreBorder:!!e?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){let{data:t,linkService:e}=this,i=document.createElement("a");i.setAttribute("data-element-id",t.id);let a=!1;return t.url?(e.addLinkAttributes(i,t.url,t.newWindow),a=!0):t.action?(this._bindNamedAction(i,t.action,t.overlaidText),a=!0):t.attachment?(this.#e(i,t.attachmentId,t.attachment,t.overlaidText,t.attachmentDest),a=!0):t.setOCGState?(this.#i(i,t.setOCGState,t.overlaidText),a=!0):t.dest?(this._bindLink(i,t.dest,t.overlaidText),a=!0):(t.actions&&(t.actions.has("Action")||t.actions.has("Mouse Up")||t.actions.has("Mouse Down"))&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(i,t),a=!0),t.resetForm?(this._bindResetFormAction(i,t.resetForm),a=!0):this.isTooltipOnly&&!a&&(this._bindLink(i,""),a=!0)),this.container.classList.add("linkAnnotation"),a&&(this.contentElement=i,this.container.append(i)),this.container}#t(){this.container.setAttribute("data-internal-link","")}_bindLink(t,e,i=""){t.href=this.linkService.getDestinationHash(e),t.onclick=()=>(e&&this.linkService.goToDestination(e),!1),(e||e==="")&&this.#t(),i&&(t.title=i)}_bindNamedAction(t,e,i=""){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(e),!1),i&&(t.title=i),this.#t()}#e(t,e,i,a="",s=null){t.href=this.linkService.getAnchorUrl(""),i.description?t.title=i.description:a&&(t.title=a);let n=d(async()=>{let r=await this.linkService.getAttachmentContent(e);r&&this.downloadManager?.openOrDownloadData(r,i.filename,s)},"openAttachment");t.onclick=()=>(n(),!1),this.#t()}#i(t,e,i=""){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(e),!1),i&&(t.title=i),this.#t()}_bindJSAction(t,{actions:e,id:i,overlaidText:a}){t.href=this.linkService.getAnchorUrl("");let s=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let n of e.keys()){let r=s.get(n);r&&(t[r]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i,name:n}}),!1))}a&&(t.title=a),t.onclick||=()=>!1,this.#t()}_bindResetFormAction(t,e){let i=t.onclick;i||(t.href=this.linkService.getAnchorUrl("")),this.#t(),this._fieldObjects?t.onclick=()=>{i?.();let{fields:a,refs:s,include:n}=e,r=[];if(a.length!==0||s.length!==0){let f=new Set(s);for(let c of a){let u=this._fieldObjects.get(c)||[];for(let{id:p}of u)f.add(p)}let h=new Map;for(let c of this._fieldObjects.values())for(let{id:u,kidIds:p}of c)p&&h.set(u,p);for(let c of f)for(let u of h.get(c)||[])f.add(u);for(let c of this._fieldObjects.values())for(let u of c)f.has(u.id)===n&&r.push(u)}else for(let f of this._fieldObjects.values())r.push(...f);let l=this.annotationStorage,o=[];for(let f of r){let{id:h}=f;switch(o.push(h),f.type){case"text":{let u=f.defaultValue||"";l.setValue(h,{value:u});break}case"checkbox":case"radiobutton":{let u=f.defaultValue===f.exportValues;l.setValue(h,{value:u});break}case"combobox":case"listbox":{let u=f.defaultValue||"";l.setValue(h,{value:u});break}default:continue}let c=document.querySelector(`[data-element-id="${h}"]`);c&&(Sn.has(c)?c.dispatchEvent(new Event("resetform")):le(`_bindResetFormAction - element not allowed: ${h}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:o,name:"ResetForm"}}),!1}:(le('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),i||(t.onclick=()=>!1))}},wj=class extends Je{static{d(this,"TextAnnotationElement")}constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");let t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(t),this.container}},En=class extends Je{static{d(this,"WidgetAnnotationElement")}render(){return this.container}_getKeyModifier(t){return Te.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,e,i,a,s){i.includes("mouse")?t.addEventListener(i,n=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:s(n),shift:n.shiftKey,modifier:this._getKeyModifier(n)}})}):t.addEventListener(i,n=>{if(i==="blur"){if(!e.focused||!n.relatedTarget)return;e.focused=!1}else if(i==="focus"){if(e.focused)return;e.focused=!0}s&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:s(n)}})})}_setEventListeners(t,e,i,a){let{actions:s}=this.data;for(let[n,r]of i)(r==="Action"||s?.has(r))&&((r==="Focus"||r==="Blur")&&(e||={focused:!1}),this._setEventListener(t,e,n,r,a),r==="Focus"&&!s?.has("Blur")?this._setEventListener(t,e,"blur","Blur",null):r==="Blur"&&!s?.has("Focus")&&this._setEventListener(t,e,"focus","Focus",null))}_setTextStyle(t){let e=["left","center","right"],{fontColor:i}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||9,s=t.style,n,r=d(l=>Math.round(10*l)/10,"roundToOneDecimal");if(this.data.multiLine){let l=Math.abs(this.data.rect[3]-this.data.rect[1]-2),o=l/(Math.round(l/(1.35*a))||1);n=Math.min(a,r(o/1.35))}else{let l=Math.abs(this.data.rect[3]-this.data.rect[1]-2);n=Math.min(a,r(l/1.35))}s.fontSize=`calc(${n}px * var(--total-scale-factor))`,s.color=qt.makeHexColor(...i),this.data.textAlignment!==null&&!this.data.comb&&(s.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}},yj=class extends En{static{d(this,"TextWidgetAnnotationElement")}constructor(t){let e=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:e})}setPropertyOnSiblings(t,e,i,a){let s=this.annotationStorage;for(let n of this._getElementsByName(t.name,t.id))n.domElement&&(n.domElement[e]=i),s.setValue(n.id,{[a]:i})}render(){let t=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let i=null;if(this.renderForms){let a=t.getValue(e,{value:this.data.fieldValue}),s=a.value||"",n=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;n&&s.length>n&&(s=s.slice(0,n));let r=a.formattedValue||this.data.textContent?.join(`
|
|
97
|
+
`)||null;r&&this.data.comb&&(r=r.replaceAll(/\s+/g,""));let l={userValue:s,formattedValue:r,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(i=document.createElement("textarea"),i.textContent=r??s,this.data.doNotScroll&&(i.style.overflowY="hidden")):(i=document.createElement("input"),i.type=this.data.password?"password":"text",i.setAttribute("value",r??s),this.data.doNotScroll&&(i.style.overflowX="hidden")),this.data.hasOwnCanvas&&(this.container.classList.add("hasOwnCanvas"),t.has(e)&&this.container.classList.add("sandboxModified")),Sn.add(i),this.contentElement=i,i.setAttribute("data-element-id",e),i.disabled=this.data.readOnly,i.name=this.data.fieldName,i.tabIndex=0;let{datetimeFormat:o,datetimeType:f,timeStep:h}=this.data,c=!!f&&this.enableScripting;o&&(i.title=o),this._setRequired(i,this.data.required),n&&(i.maxLength=n),i.addEventListener("input",p=>{t.setValue(e,{value:p.target.value}),this.setPropertyOnSiblings(i,"value",p.target.value,"value"),l.formattedValue=null}),i.addEventListener("resetform",p=>{let m=this.data.defaultFieldValue??"";i.value=l.userValue=m,l.formattedValue=null});let u=d(p=>{let{formattedValue:m}=l;m!=null&&(p.target.value=m),p.target.scrollLeft=0},"blurListener");if(this.enableScripting&&this.hasJSActions){i.addEventListener("focus",m=>{if(l.focused)return;let{target:g}=m;if(c&&(g.type=f,h&&(g.step=h)),l.userValue){let b=l.userValue;if(c)if(f==="time"){let w=new Date(b);g.value=[w.getHours(),w.getMinutes(),w.getSeconds()].map(v=>v.toString().padStart(2,"0")).join(":")}else g.value=new Date(b-gj).toISOString().split(f==="date"?"T":".",1)[0];else g.value=b}l.lastCommittedValue=g.value,l.commitKey=1,this.data.actions?.has("Focus")||(l.focused=!0)}),i.addEventListener("updatefromsandbox",m=>{this.container.classList.add("sandboxModified"),this._dispatchEventFromSandbox({value(g){l.userValue=g.detail.value??"",c||t.setValue(e,{value:l.userValue.toString()}),g.target.value=l.userValue},formattedValue(g){let{formattedValue:b}=g.detail;l.formattedValue=b,b!=null&&g.target!==document.activeElement&&(g.target.value=b);let w={formattedValue:b};c&&(w.value=b),t.setValue(e,w)},selRange(g){g.target.setSelectionRange(...g.detail.selRange)},charLimit:d(g=>{let{charLimit:b}=g.detail,{target:w}=g;if(b===0){w.removeAttribute("maxLength");return}w.setAttribute("maxLength",b);let v=l.userValue;!v||v.length<=b||(v=v.slice(0,b),w.value=l.userValue=v,t.setValue(e,{value:v}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:v,willCommit:!0,commitKey:1,selStart:w.selectionStart,selEnd:w.selectionEnd}}))},"charLimit")},m)}),i.addEventListener("keydown",m=>{l.commitKey=1;let g=-1;if(m.key==="Escape"?g=0:m.key==="Enter"&&!this.data.multiLine?g=2:m.key==="Tab"&&(l.commitKey=3),g===-1)return;let{value:b}=m.target;l.lastCommittedValue!==b&&(l.lastCommittedValue=b,l.userValue=b,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:b,willCommit:!0,commitKey:g,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}))});let p=u;u=null,i.addEventListener("blur",m=>{if(!l.focused||!m.relatedTarget)return;this.data.actions?.has("Blur")||(l.focused=!1);let{target:g}=m,{value:b}=g;if(c){if(b&&f==="time"){let w=b.split(":").map(v=>parseInt(v,10));b=new Date(2e3,0,1,w[0],w[1],w[2]||0).valueOf(),g.step=""}else b.includes("T")||(b=`${b}T00:00`),b=new Date(b).valueOf();g.type="text"}l.userValue=b,l.lastCommittedValue!==b&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:b,willCommit:!0,commitKey:l.commitKey,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}),p(m)}),this.data.actions?.has("Keystroke")&&i.addEventListener("beforeinput",m=>{l.lastCommittedValue=null;let{data:g,target:b}=m,{value:w,selectionStart:v,selectionEnd:y}=b,x=v,q=y;switch(m.inputType){case"deleteWordBackward":{let j=/\w/;for(;x>0&&!j.test(w[x-1]);)x--;for(;x>0&&j.test(w[x-1]);)x--;break}case"deleteWordForward":{let j=w.substring(v).match(/^\W*\w*/);j&&(q+=j[0].length);break}case"deleteContentBackward":v===y&&--x;break;case"deleteContentForward":v===y&&(q+=1)}m.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:w,change:g||"",willCommit:!1,selStart:x,selEnd:q}})}),this._setEventListeners(i,l,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],m=>m.target.value)}if(u&&i.addEventListener("blur",u),this.data.comb){let p=(this.data.rect[2]-this.data.rect[0])/n;i.classList.add("comb"),i.style.setProperty("--comb-width",`calc(${p}px * var(--total-scale-factor))`);let m=this.data.textAlignment;if(m===1||m===2){let g=d(()=>{let b=n-i.value.length;i.style.setProperty("--comb-offset",`${m===1?b>>1:b}`)},"setCombOffset");g();for(let b of["input","blur","resetform","updatefromsandbox"])i.addEventListener(b,g)}}}else i=document.createElement("div"),i.textContent=this.data.fieldValue,i.style.verticalAlign="middle",i.style.display="table-cell",this.data.hasOwnCanvas&&(i.hidden=!0);return this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}},kj=class extends En{static{d(this,"SignatureWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}},vj=class extends En{static{d(this,"CheckboxWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:t.renderForms})}render(){let t=this.annotationStorage,e=this.data,i=e.id,a=t.getValue(i,{value:e.exportValue===e.fieldValue}).value;typeof a=="string"&&(a=a!=="Off",t.setValue(i,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");let s=document.createElement("input");return Sn.add(s),s.setAttribute("data-element-id",i),s.disabled=e.readOnly,this._setRequired(s,this.data.required),s.type="checkbox",s.name=e.fieldName,a&&s.setAttribute("checked",!0),s.setAttribute("exportValue",e.exportValue),s.tabIndex=0,s.addEventListener("change",n=>{let{name:r,checked:l}=n.target;for(let o of this._getElementsByName(r,i)){let f=l&&o.exportValue===e.exportValue;o.domElement&&(o.domElement.checked=f),t.setValue(o.id,{value:f})}t.setValue(i,{value:l})}),s.addEventListener("resetform",n=>{let r=e.defaultFieldValue||"Off";n.target.checked=r===e.exportValue}),this.enableScripting&&this.hasJSActions&&(s.addEventListener("updatefromsandbox",n=>{this._dispatchEventFromSandbox({value(r){r.target.checked=r.detail.value!=="Off",t.setValue(i,{value:r.target.checked})}},n)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],n=>n.target.checked)),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}},jj=class extends En{static{d(this,"RadioButtonWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");let t=this.annotationStorage,e=this.data,i=e.id,a=t.getValue(i,{value:e.buttonValue!==null&&e.fieldValue===e.buttonValue}).value;if(typeof a=="string"&&(a=a!==e.buttonValue,t.setValue(i,{value:a})),a)for(let n of this._getElementsByName(e.fieldName,i))t.setValue(n.id,{value:!1});let s=document.createElement("input");if(Sn.add(s),s.setAttribute("data-element-id",i),s.disabled=e.readOnly,this._setRequired(s,this.data.required),s.type="radio",s.name=e.fieldName,a&&s.setAttribute("checked",!0),s.tabIndex=0,s.addEventListener("change",n=>{let{name:r,checked:l}=n.target;for(let o of this._getElementsByName(r,i))t.setValue(o.id,{value:!1});t.setValue(i,{value:l})}),s.addEventListener("resetform",n=>{let r=e.defaultFieldValue;n.target.checked=r!=null&&r===e.buttonValue}),this.enableScripting&&this.hasJSActions){let n=e.buttonValue;s.addEventListener("updatefromsandbox",r=>{this._dispatchEventFromSandbox({value:d(l=>{let o=n===l.detail.value;for(let f of this._getElementsByName(l.target.name)){let h=o&&f.id===i;f.domElement&&(f.domElement.checked=h),t.setValue(f.id,{value:h})}},"value")},r)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],r=>r.target.checked)}return this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}},qj=class extends Ou{static{d(this,"PushButtonWidgetAnnotationElement")}constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){let t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");let e=t.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",i=>{this._dispatchEventFromSandbox({},i)})),t}},xj=class extends En{static{d(this,"ChoiceWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");let t=this.annotationStorage,e=this.data.id,i=t.getValue(e,{value:this.data.fieldValue}),a=document.createElement("select");Sn.add(a),a.setAttribute("data-element-id",e),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=0;let s=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",h=>{let c=this.data.defaultFieldValue;for(let u of a.options)u.selected=u.value===c});let n=d((h,c)=>{let u=c.replaceAll(" ","\xA0");h.textContent=u,u!==c&&h.setAttribute("display-value",c)},"fixDisplayValue");for(let h of this.data.options){let c=document.createElement("option");n(c,h.displayValue),c.value=h.exportValue,i.value.includes(h.exportValue)&&(c.setAttribute("selected",!0),s=!1),a.append(c)}let r=null;if(s){let h=document.createElement("option");h.value=" ",h.setAttribute("hidden",!0),h.setAttribute("selected",!0),a.prepend(h),r=d(()=>{h.remove(),a.removeEventListener("input",r),r=null},"removeEmptyEntry"),a.addEventListener("input",r)}let l=d(h=>{let c=h?"value":"textContent",{options:u,multiple:p}=a;return p?Array.prototype.filter.call(u,m=>m.selected).map(m=>m[c]):u.selectedIndex===-1?null:u[u.selectedIndex][c]},"getValue"),o=l(!1),f=d(h=>{let c=h.target.options;return Array.prototype.map.call(c,u=>({displayValue:u.getAttribute("display-value")||u.textContent,exportValue:u.value}))},"getItems");return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",h=>{this._dispatchEventFromSandbox({value(c){r?.();let u=c.detail.value,p=new Set(Array.isArray(u)?u:[u]);for(let m of a.options)m.selected=p.has(m.value);t.setValue(e,{value:l(!0)}),o=l(!1)},multipleSelection(c){a.multiple=!0},remove(c){let u=a.options,p=c.detail.remove;u[p].selected=!1,a.remove(p),u.length>0&&Array.prototype.findIndex.call(u,m=>m.selected)===-1&&(u[0].selected=!0),t.setValue(e,{value:l(!0),items:f(c)}),o=l(!1)},clear(c){for(;a.length!==0;)a.remove(0);t.setValue(e,{value:null,items:[]}),o=l(!1)},insert(c){let{index:u,displayValue:p,exportValue:m}=c.detail.insert,g=a.children[u],b=document.createElement("option");n(b,p),b.value=m,g?g.before(b):a.append(b),t.setValue(e,{value:l(!0),items:f(c)}),o=l(!1)},items(c){let{items:u}=c.detail;for(;a.length!==0;)a.remove(0);for(let p of u){let{displayValue:m,exportValue:g}=p,b=document.createElement("option");n(b,m),b.value=g,a.append(b)}a.options.length>0&&(a.options[0].selected=!0),t.setValue(e,{value:l(!0),items:f(c)}),o=l(!1)},indices(c){let u=new Set(c.detail.indices);for(let p of c.target.options)p.selected=u.has(p.index);t.setValue(e,{value:l(!0)}),o=l(!1)},editable(c){c.target.disabled=!c.detail.editable}},h)}),a.addEventListener("input",h=>{let c=l(!0),u=l(!1);t.setValue(e,{value:c}),h.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:o,change:u,changeEx:c,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],h=>h.target.value)):a.addEventListener("input",function(h){t.setValue(e,{value:l(!0)})}),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}},Bc=class extends Je{static{d(this,"PopupAnnotationElement")}constructor(t){let{data:e,elements:i,parent:a}=t,s=!!a._commentManager;if(super(t,{isRenderable:!s&&Je._hasPopupData(e)}),this.elements=i,s&&Je._hasPopupData(e)){let n=this.popup=this.#t();for(let r of i)r.popup=n}else this.popup=null}#t(){return new Aj({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}render(){let{container:t}=this;t.classList.add("popupAnnotation"),t.role="comment";let e=this.popup=this.#t(),i=[];for(let a of this.elements)a.popup=e,a.container.ariaHasPopup="dialog",i.push(a.data.id),a.addHighlightArea();return this.container.setAttribute("aria-controls",i.map(a=>`${tr}${a}`).join(",")),this.container}},Aj=class{static{d(this,"PopupElement")}#t=null;#e=this.#G.bind(this);#i=this.#j.bind(this);#a=this.#S.bind(this);#s=this.#z.bind(this);#n=null;#r=null;#l=null;#o=null;#f=null;#u=null;#h=null;#d=!1;#p=null;#g=null;#c=null;#m=null;#b=null;#w=null;#y=null;#k=null;#v=null;#q=null;#A=!1;#x=null;#T=null;constructor({container:t,color:e,elements:i,titleObj:a,modificationDate:s,contentsObj:n,richText:r,parent:l,rect:o,parentRect:f,open:h,commentManager:c=null}){this.#r=t,this.#v=a,this.#l=n,this.#k=r,this.#u=l,this.#n=e,this.#y=o,this.#h=f,this.#f=i,this.#t=c,this.#x=i[0],this.#o=Lo.toDateObject(s),this.trigger=i.flatMap(u=>u.getElementsToTriggerPopup()),c||(this.#I(),this.#r.hidden=!0,h&&this.#z())}#I(){if(this.#g)return;this.#g=new AbortController;let{signal:t}=this.#g;for(let e of this.trigger)e.addEventListener("click",this.#s,{signal:t}),e.addEventListener("pointerenter",this.#a,{signal:t}),e.addEventListener("pointerleave",this.#i,{signal:t}),e.classList.add("popupTriggerArea");for(let e of this.#f)e.container?.addEventListener("keydown",this.#e,{signal:t})}#C(){let t=this.#f.find(e=>e.hasCommentButton);t&&(this.#b=t._normalizePoint(t.commentButtonPosition))}renderCommentButton(){if(this.#m){this.#m.parentNode||this.#x.container.after(this.#m);return}if(this.#b||this.#C(),!this.#b)return;let{signal:t}=this.#g=new AbortController,e=this.#x.hasOwnCommentButton,i=d(()=>{this.#t.toggleCommentPopup(this,!0,void 0,!e)},"togglePopup"),a=d(()=>{this.#t.toggleCommentPopup(this,!1,!0,!e)},"showPopup"),s=d(()=>{this.#t.toggleCommentPopup(this,!1,!1)},"hidePopup");if(e){this.#m=this.#x.container;for(let n of this.trigger)n.ariaHasPopup="dialog",n.ariaControls="commentPopup",n.addEventListener("keydown",this.#e,{signal:t}),n.addEventListener("click",i,{signal:t}),n.addEventListener("pointerenter",a,{signal:t}),n.addEventListener("pointerleave",s,{signal:t}),n.classList.add("popupTriggerArea")}else{let n=this.#m=document.createElement("button");n.className="annotationCommentButton";let r=this.#x.container;n.style.zIndex=parseInt(r.style.zIndex,10)+1,n.tabIndex=0,n.ariaHasPopup="dialog",n.ariaControls="commentPopup",n.setAttribute("data-l10n-id","pdfjs-show-comment-button"),this.#M(),this.#E(),n.addEventListener("keydown",this.#e,{signal:t}),n.addEventListener("click",i,{signal:t}),n.addEventListener("pointerenter",a,{signal:t}),n.addEventListener("pointerleave",s,{signal:t}),r.after(n)}}#E(){if(this.#x.extraPopupElement&&!this.#x.editor)return;this.#m||this.renderCommentButton();let[t,e]=this.#b,{style:i}=this.#m;i.left=`calc(${t}%)`,i.top=`calc(${e}% - var(--comment-button-dim))`}#M(){this.#x.extraPopupElement||(this.#m||this.renderCommentButton(),this.#m.style.backgroundColor=this.commentButtonColor||"")}get commentButtonColor(){let{color:t,opacity:e}=this.#x.commentData;return t?this.#u._commentManager.makeCommentColor(t,e):null}focusCommentButton(){setTimeout(()=>{this.#m?.focus()},0)}getData(){let{richText:t,color:e,opacity:i,creationDate:a,modificationDate:s}=this.#x.commentData;return{contentsObj:{str:this.comment},richText:t,color:e,opacity:i,creationDate:a,modificationDate:s}}get elementBeforePopup(){return this.#m}get comment(){return this.#T||=this.#x.commentText,this.#T}set comment(t){t!==this.comment&&(this.#x.commentText=this.#T=t)}focus(){this.#x.container?.focus()}get parentBoundingClientRect(){return this.#x.layer.getBoundingClientRect()}setCommentButtonStates({selected:t,hasPopup:e}){this.#m&&(this.#m.classList.toggle("selected",t),this.#m.ariaExpanded=e)}setSelectedCommentButton(t){this.#m.classList.toggle("selected",t)}get commentPopupPosition(){if(this.#w)return this.#w;let{x:t,y:e,height:i}=this.#m.getBoundingClientRect(),{x:a,y:s,width:n,height:r}=this.#x.layer.getBoundingClientRect();return[(t-a)/n,(e+i-s)/r]}set commentPopupPosition(t){this.#w=t}hasDefaultPopupPosition(){return this.#w===null}get commentButtonPosition(){return this.#b}get commentButtonWidth(){return this.#m.getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(t){let[e,i]=this.#w||this.commentButtonPosition.map(o=>o/100),a=this.parentBoundingClientRect,{x:s,y:n,width:r,height:l}=a;this.#t.showDialog(null,this,s+e*r,n+i*l,{...t,parentDimensions:a})}render(){if(this.#p)return;let t=this.#p=document.createElement("div");if(t.className="popup",this.#n){let i=t.style.outlineColor=qt.makeHexColor(...this.#n);t.style.backgroundColor=`color-mix(in srgb, ${i} 30%, white)`}let e=document.createElement("span");if(e.className="header",this.#v?.str){let i=document.createElement("span");i.className="title",e.append(i),{dir:i.dir,str:i.textContent}=this.#v}if(t.append(e),this.#o){let i=document.createElement("time");i.className="popupDate",i.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),i.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#o.valueOf()})),i.dateTime=this.#o.toISOString(),e.append(i)}Eu({html:this.#F||this.#l.str,dir:this.#l?.dir,className:"popupContent"},t),this.#r.append(t)}get#F(){let t=this.#k,e=this.#l;return t?.str&&(!e?.str||e.str===t.str)&&this.#k.html||null}get#D(){return this.#F?.attributes?.style?.fontSize||0}get#_(){return this.#F?.attributes?.style?.color||null}#B(t){let e=[],i={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:e}]}},a={style:{color:this.#_,fontSize:this.#D?`calc(${this.#D}px * var(--total-scale-factor))`:""}};for(let s of t.split(`
|
|
98
|
+
`))e.push({name:"span",value:s,attributes:a});return i}#G(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&this.#d)&&this.#z()}updateEdited({rect:t,popup:e,deleted:i}){this.#t?(i?(this.remove(),this.#T=null):e&&(e.deleted?this.remove():(this.#M(),this.#T=e.text)),t&&(this.#b=null,this.#C(),this.#E())):i||e?.deleted?this.remove():(this.#I(),this.#q||={contentsObj:this.#l,richText:this.#k},t&&(this.#c=null),e&&e.text&&(this.#k=this.#B(e.text),this.#o=Lo.toDateObject(e.date),this.#l=null),this.#p?.remove(),this.#p=null)}resetEdited(){this.#q&&({contentsObj:this.#l,richText:this.#k}=this.#q,this.#q=null,this.#p?.remove(),this.#p=null,this.#c=null)}remove(){if(this.#g?.abort(),this.#g=null,this.#p?.remove(),this.#p=null,this.#A=!1,this.#d=!1,this.#m?.remove(),this.#m=null,this.trigger)for(let t of this.trigger)t.classList.remove("popupTriggerArea")}#O(){if(this.#c!==null)return;let{page:{view:t},viewport:{rawDims:{pageWidth:e,pageHeight:i,pageX:a,pageY:s}}}=this.#u,n=!!this.#h,r=n?this.#h:this.#y;for(let u of this.#f)if(!r||qt.intersect(u.data.rect,r)!==null){r=u.data.rect,n=!0;break}let l=qt.normalizeRect([r[0],t[3]-r[1]+t[1],r[2],t[3]-r[3]+t[1]]),o=n?r[2]-r[0]+5:0,f=l[0]+o,h=l[1];this.#c=[100*(f-a)/e,100*(h-s)/i];let{style:c}=this.#r;c.left=`${this.#c[0]}%`,c.top=`${this.#c[1]}%`}#z(){this.#t?this.#t.toggleCommentPopup(this,!1):(this.#d=!this.#d,this.#d?(this.#S(),this.#r.addEventListener("click",this.#s),this.#r.addEventListener("keydown",this.#e)):(this.#j(),this.#r.removeEventListener("click",this.#s),this.#r.removeEventListener("keydown",this.#e)))}#S(){this.#p||this.render(),this.isVisible?this.#d&&this.#r.classList.add("focused"):(this.#O(),this.#r.hidden=!1,this.#r.style.zIndex=parseInt(this.#r.style.zIndex,10)+1e3)}#j(){this.#r.classList.remove("focused"),!(this.#d||!this.isVisible)&&(this.#r.hidden=!0,this.#r.style.zIndex=parseInt(this.#r.style.zIndex,10)-1e3)}forceHide(){this.#A=this.isVisible,this.#A&&(this.#r.hidden=!0)}maybeShow(){this.#t||(this.#I(),this.#A&&(this.#p||this.#S(),this.#A=!1,this.#r.hidden=!1))}get isVisible(){return!this.#t&&this.#r.hidden===!1}},ng=class extends Je{static{d(this,"FreeTextAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=ie.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){let t=this.contentElement=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(let e of this.textContent){let i=document.createElement("span");i.textContent=e,t.append(i)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}},Sj=class extends Je{static{d(this,"LineAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");let{data:t,width:e,height:i}=this,a=this.svgFactory.create(e,i,!0),s=this.#t=this.svgFactory.createElement("svg:line");return s.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),s.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),s.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),s.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),s.setAttribute("stroke-width",t.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),a.append(s),this.container.append(a),!t.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}},Cj=class extends Je{static{d(this,"SquareAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");let{data:t,width:e,height:i}=this,a=this.svgFactory.create(e,i,!0),s=t.borderStyle.width,n=this.#t=this.svgFactory.createElement("svg:rect");return n.setAttribute("x",s/2),n.setAttribute("y",s/2),n.setAttribute("width",e-s),n.setAttribute("height",i-s),n.setAttribute("stroke-width",s||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),a.append(n),this.container.append(a),!t.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}},Ij=class extends Je{static{d(this,"CircleAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");let{data:t,width:e,height:i}=this,a=this.svgFactory.create(e,i,!0),s=t.borderStyle.width,n=this.#t=this.svgFactory.createElement("svg:ellipse");return n.setAttribute("cx",e/2),n.setAttribute("cy",i/2),n.setAttribute("rx",e/2-s/2),n.setAttribute("ry",i/2-s/2),n.setAttribute("stroke-width",s||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),a.append(n),this.container.append(a),!t.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}},rg=class extends Je{static{d(this,"PolylineAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);let{data:{rect:t,vertices:e,borderStyle:i,popupRef:a},width:s,height:n}=this;if(!e)return this.container;let r=this.svgFactory.create(s,n,!0),l=[];for(let f=0,h=e.length;f<h;f+=2){let c=e[f]-t[0],u=t[3]-e[f+1];l.push(`${c},${u}`)}l=l.join(" ");let o=this.#t=this.svgFactory.createElement(this.svgElementName);return o.setAttribute("points",l),o.setAttribute("stroke-width",i.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!a&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}},Tj=class extends rg{static{d(this,"PolygonAnnotationElement")}constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}},Mj=class extends Je{static{d(this,"CaretAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}},Hu=class extends Je{static{d(this,"InkAnnotationElement")}#t=null;#e=[];constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?ie.HIGHLIGHT:ie.INK}#i(t,e){switch(t){case 90:return{transform:`rotate(90) translate(${-e[0]},${e[1]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};case 180:return{transform:`rotate(180) translate(${-e[2]},${e[1]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]};case 270:return{transform:`rotate(270) translate(${-e[2]},${e[3]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};default:return{transform:`translate(${-e[0]},${e[3]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]}}}render(){this.container.classList.add(this.containerClassName);let{data:{rect:t,rotation:e,inkLists:i,borderStyle:a,popupRef:s}}=this,{transform:n,width:r,height:l}=this.#i(e,t),o=this.svgFactory.create(r,l,!0),f=this.#t=this.svgFactory.createElement("svg:g");o.append(f),f.setAttribute("stroke-width",a.width||1),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit",10),f.setAttribute("stroke","transparent"),f.setAttribute("fill","transparent"),f.setAttribute("transform",n);for(let h of i){let c=this.svgFactory.createElement(this.svgElementName);this.#e.push(c),c.setAttribute("points",h.join(",")),f.append(c)}return!s&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(o),this._editOnDoubleClick(),this.container}updateEdited(t){super.updateEdited(t);let{thickness:e,points:i,rect:a}=t,s=this.#t;if(e>=0&&s.setAttribute("stroke-width",e||1),i)for(let n=0,r=this.#e.length;n<r;n++)this.#e[n].setAttribute("points",i[n].join(","));if(a){let{transform:n,width:r,height:l}=this.#i(this.data.rotation,a);s.parentElement.setAttribute("viewBox",`0 0 ${r} ${l}`),s.setAttribute("transform",n)}}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}},lg=class extends Je{static{d(this,"HighlightAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=ie.HIGHLIGHT}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),t){let i=document.createElement("mark");i.classList.add("overlaidText"),i.textContent=t,this.container.append(i)}return this.container}},_j=class extends Je{static{d(this,"UnderlineAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("underlineAnnotation"),t){let i=document.createElement("u");i.classList.add("overlaidText"),i.textContent=t,this.container.append(i)}return this.container}},Ej=class extends Je{static{d(this,"SquigglyAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("squigglyAnnotation"),t){let i=document.createElement("u");i.classList.add("overlaidText"),i.textContent=t,this.container.append(i)}return this.container}},Fj=class extends Je{static{d(this,"StrikeOutAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("strikeoutAnnotation"),t){let i=document.createElement("s");i.classList.add("overlaidText"),i.textContent=t,this.container.append(i)}return this.container}},og=class extends Je{static{d(this,"StampAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=ie.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}},Rj=class extends Je{static{d(this,"FileAttachmentAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0});let{fileId:e,file:i}=this.data;this.filename=i.filename,this.content=i.content,this.fileId=e,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,attachmentId:this.fileId,...i})}render(){this.container.classList.add("fileAttachmentAnnotation");let{container:t,data:e}=this,i;e.hasAppearance||e.fillAlpha===0?i=document.createElement("div"):(i=document.createElement("img"),i.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(e.name)?"paperclip":"pushpin"}.svg`,e.fillAlpha&&e.fillAlpha<1&&(i.style=`filter: opacity(${Math.round(e.fillAlpha*100)}%);`)),i.addEventListener("dblclick",this.#e.bind(this)),this.#t=i;let{isMac:a}=Te.platform;return t.addEventListener("keydown",s=>{s.key==="Enter"&&(a?s.metaKey:s.ctrlKey)&&this.#e()}),!e.popupRef&&this.hasPopupData?(this.hasOwnCommentButton=!0,this._createPopup()):i.classList.add("popupTriggerArea"),t.append(i),t}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}async#e(){let{fileId:t,filename:e,content:i}=this,a=await this.linkService.getAttachmentContent(t)||i;a&&this.downloadManager?.openOrDownloadData(a,e)}},fg=class extends Je{static{d(this,"MediaAnnotationElement")}#t=new AbortController;#e=null;#i=null;constructor(t){super(t,{isRenderable:!!t.data.richMedia})}render(){this.container.classList.add("mediaAnnotation");let{filename:t}=this.data.richMedia,e=document.createElement("button");return e.className="mediaPlayButton",e.type="button",e.title=e.ariaLabel=t,e.addEventListener("click",()=>this.#a(e),{signal:this.#t.signal}),this.container.append(e),this.container}async#a(t){let{fileId:e,filename:i,contentType:a}=this.data.richMedia;t.disabled=!0;let s;try{s=await this.linkService.getAttachmentContent(e)}catch{return}finally{t.disabled=!1}if(!s||!t.isConnected)return;let{signal:n}=this.#t,r=new Blob([s],{type:a});if(!/^(?:video|audio)\//.test(r.type))return;let l=URL.createObjectURL(r);this.#e=l;let o=r.type.startsWith("audio/"),f=document.createElement(o?"audio":"video");if(this.#i=f,f.className="mediaContent",this._setBackgroundColor(f),f.src=l,f.title=i,f.controls=!0,f.autoplay=!0,f.tabIndex=0,o){let h=!1,c=!1,u=d(()=>{f.controls=h||c},"updateControls");this.container.addEventListener("pointerenter",()=>{h=!0,u()},{signal:n}),this.container.addEventListener("pointerleave",()=>{h=!1,u()},{signal:n}),this.container.addEventListener("focusin",()=>{c=!0,u()},{signal:n}),this.container.addEventListener("focusout",()=>{c=!1,u()},{signal:n})}f.addEventListener("emptied",()=>this.#s(l),{once:!0,signal:n}),t.replaceWith(f),f.play().catch(()=>{})}#s(t=this.#e){t&&t===this.#e&&(URL.revokeObjectURL(t),this.#e=null)}destroy(){this.#t.abort(),this.#i&&=(this.#i.pause(),this.#i.removeAttribute("src"),this.#i.load(),null),this.#s()}},hg=class cg{static{d(this,"AnnotationLayer")}#t=null;#e=null;#i=null;#a=new Map;#s=null;#n=null;#r=[];#l=!1;zIndex=0;constructor({div:e,accessibilityManager:i,annotationCanvasMap:a,annotationEditorUIManager:s,page:n,viewport:r,structTreeLayer:l,commentManager:o,linkService:f,annotationStorage:h}){this.div=e,this.#t=i,this.#e=a,this.#s=l||null,this.#n=f||null,this.#i=h||new Ru,this.page=n,this.viewport=r,this._annotationEditorUIManager=s,this._commentManager=o||null}hasEditableAnnotations(){return this.#a.size>0}async render(e){let{annotations:i,optionalContentConfig:a}=e,s=this.div;zs(s,this.viewport);let n=new Map,r=[],l={data:null,layer:s,linkService:this.#n,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new Sl,annotationStorage:this.#i,enableComment:e.enableComment===!0,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(let o of i){if(o.noHTML)continue;let f=o.annotationType===ze.POPUP;if(f){let u=n.get(o.id);if(!u)continue;if(!this._commentManager){r.push(o);continue}l.elements=u}else if(o.rect[2]===o.rect[0]||o.rect[3]===o.rect[1])continue;l.data=o;let h=ch.create(l);if(!h.isRenderable)continue;f||(this.#r.push(h),o.popupRef&&n.getOrInsertComputed(o.popupRef,Mn).push(h));let c=h.render();o.hidden&&(c.style.visibility="hidden"),h.updateOC(a),h._isEditable&&(this.#a.set(h.data.id,h),this._annotationEditorUIManager?.renderAnnotationElement(h))}await this.#o();for(let o of r){let f=l.elements=n.get(o.id);l.data=o;let h=ch.create(l);if(!h.isRenderable)continue;let c=h.render();h.contentElement.id=`${tr}${o.id}`,o.hidden&&(c.style.visibility="hidden"),f.at(-1).container.after(c)}this.#f()}async#o(){if(this.#r.length===0)return;this.div.replaceChildren();let e=[];if(!this.#l){this.#l=!0;for(let{contentElement:a,data:{hidden:s,id:n,oc:r}}of this.#r){let l=a.id=`${tr}${n}`,o=a.localName==="a"&&!s&&!r;e.push(this.#s?.getAriaAttributes(l,{enableLinkOwnership:o}).then(f=>{if(f)for(let[h,c]of f)a.setAttribute(h,c)}))}}this.#r.sort(({data:{rect:[a,s,n,r]}},{data:{rect:[l,o,f,h]}})=>{if(a===n&&s===r)return 1;if(l===f&&o===h)return-1;let c=r,u=s,p=(s+r)/2,m=h,g=o,b=(o+h)/2;return p>=m&&b<=u?-1:b>=c&&p<=g?1:(a+n)/2-(l+f)/2});let i=document.createDocumentFragment();for(let a of this.#r)i.append(a.container),this._commentManager?(a.extraPopupElement?.popup||a.popup)?.renderCommentButton():a.extraPopupElement&&i.append(a.extraPopupElement.render());if(this.div.append(i),await Promise.all(e),this.#t){let a=await this.#s?.getAnnotationIds();for(let{contentElement:s}of this.#r)a?.has(s.id)||this.#t.addPointerInTextLayer(s,!1)}}async addLinkAnnotations(e){let i={data:null,layer:this.div,linkService:this.#n,svgFactory:new Sl,parent:this};for(let a of e){a.borderStyle||=cg._defaultBorderStyle,i.data=a;let s=ch.create(i);s.isRenderable&&(s.render(),s.contentElement.id=`${tr}${a.id}`,this.#r.push(s))}await this.#o()}update({viewport:e,optionalContentConfig:i}){let a=this.div;this.viewport=e,zs(a,{rotation:e.rotation});for(let s of this.#r)s.updateOC(i);this.#f(),a.hidden=!1}destroy(){for(let e of this.#r)e.destroy?.(),this.#t?.removePointerInTextLayer(e.contentElement);this.#r.length=0,this.#a.clear(),this.div.replaceChildren()}#f(){if(!this.#e)return;let e=this.div;for(let[i,a]of this.#e){let s=e.querySelector(`[data-annotation-id="${i}"]`);if(!s)continue;if(Array.isArray(a))for(let f of a)f.className="annotationContent",f.ariaHidden=!0;else a.className="annotationContent",a.ariaHidden=!0;let n=[];for(let f of s.children)f.nodeName==="CANVAS"&&n.push(f);for(let f of n)f.remove();let r=Array.isArray(a)?a[0]:a,{firstChild:l}=s;if(l?l.classList.contains("annotationContent")?l.after(r):l.before(r):s.append(r),Array.isArray(a)){let f=r;for(let h=1,c=a.length;h<c;h++)f.after(a[h]),f=a[h]}this.#e.delete(i);let o=this.#a.get(i);o&&(o._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(i,s.id,a),o._hasNoCanvas=!1):o.canvas=a)}}refreshCanvases(){this.#f()}getEditableAnnotations(){return this.#a.values()}getEditableAnnotation(e){return this.#a.get(e)}addFakeAnnotation(e){let{div:i}=this,{id:a,rotation:s}=e,n=new bj({data:{id:a,rect:e.getPDFRect(),rotation:s},editor:e,layer:i,parent:this,enableComment:!!this._commentManager,linkService:this.#n,annotationStorage:this.#i});return n.render(),n.contentElement.id=`${tr}${a}`,n.createOrUpdatePopup(),this.#r.push(n),n}removeAnnotation(e){let i=this.#r.findIndex(s=>s.data.id===e);if(i<0)return;let[a]=this.#r.splice(i,1);this.#t?.removePointerInTextLayer(a.contentElement)}updateFakeAnnotations(e){if(e.length!==0){for(let i of e)i.updateFakeAnnotationElement(this);this.#o()}}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}static get _defaultBorderStyle(){return Tt(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:Yn.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}},oo=/\r\n?|\n/g,Dj=class wi extends He{static{d(this,"FreeTextEditor")}#t="";#e=`${this.id}-editor`;#i=null;#a;_colorPicker=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){let e=wi.prototype,i=d(n=>n.isEmpty(),"arrowChecker"),a=dr.TRANSLATE_SMALL,s=dr.TRANSLATE_BIG;return Tt(this,"_keyboardManager",new Fl([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter"],e.commitOrRemove],[["Escape"],e.commitOrRemove],[["ArrowLeft"],e._translateEmpty,{args:[-a,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-s,0],checker:i}],[["ArrowRight"],e._translateEmpty,{args:[a,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[s,0],checker:i}],[["ArrowUp"],e._translateEmpty,{args:[0,-a],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-s],checker:i}],[["ArrowDown"],e._translateEmpty,{args:[0,a],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,s],checker:i}]]))}static _type="freetext";static _editorType=ie.FREETEXT;constructor(e){super({...e,name:"freeTextEditor"}),this.color=e.color||wi._defaultColor||He._defaultLineColor,this.#a=e.fontSize||wi._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert(He._l10nAlert.freetext),this.canAddComment=!1}static initialize(e,i){He.initialize(e,i);let a=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(a.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,i){switch(e){case ge.FREETEXT_SIZE:wi._defaultFontSize=i;break;case ge.FREETEXT_COLOR:wi._defaultColor=i}}updateParams(e,i){switch(e){case ge.FREETEXT_SIZE:this.#s(i);break;case ge.FREETEXT_COLOR:this.#n(i)}}static get defaultPropertiesToUpdate(){return[[ge.FREETEXT_SIZE,wi._defaultFontSize],[ge.FREETEXT_COLOR,wi._defaultColor||He._defaultLineColor]]}get propertiesToUpdate(){return[[ge.FREETEXT_SIZE,this.#a],[ge.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||=new ag(this),[["colorPicker",this._colorPicker]]}get colorType(){return ge.FREETEXT_COLOR}#s(e){let i=d(s=>{this.editorDiv.style.fontSize=`calc(${s}px * var(--total-scale-factor))`,this.translate(0,-(s-this.#a)*this.parentScale),this.#a=s,this.#l()},"setFontsize"),a=this.#a;this.addCommands({cmd:i.bind(this,e),undo:i.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ge.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}#n(e){let i=d(s=>{this.color=s,this.onUpdatedColor()},"setColor"),a=this.color;this.addCommands({cmd:i.bind(this,e),undo:i.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ge.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,i){this._uiManager.translateSelectedEditors(e,i,!0)}getInitialTranslation(){let e=this.parentScale;return[-wi._internalPadding*e,-(wi._internalPadding+this.#a)*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#i=new AbortController;let e=this._uiManager.combinedSignal(this.#i);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#e),this._isDraggable=!0,this.#i?.abort(),this.#i=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#r(){let e=[];this.editorDiv.normalize();let i=null;for(let a of this.editorDiv.childNodes)(i?.nodeType!==Node.TEXT_NODE||a.nodeName!=="BR")&&(e.push(wi.#o(a)),i=a);return e.join(`
|
|
99
|
+
`)}#l(){let[e,i]=this.parentDimensions,a;if(this.isAttachedToDOM)a=this.div.getBoundingClientRect();else{let{currentLayer:s,div:n}=this,r=n.style.display,l=n.classList.contains("hidden");n.classList.remove("hidden"),n.style.display="hidden",s.div.append(this.div),a=n.getBoundingClientRect(),n.remove(),n.style.display=r,n.classList.toggle("hidden",l)}this.rotation%180==this.parentRotation%180?(this.width=a.width/e,this.height=a.height/i):(this.width=a.height/e,this.height=a.width/i),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let e=this.#t,i=this.#t=this.#r().trimEnd();if(e===i)return;let a=d(s=>{this.#t=s,s?(this.#f(),this._uiManager.rebuild(this),this.#l()):this.remove()},"setText");this.addCommands({cmd:d(()=>{a(i)},"cmd"),undo:d(()=>{a(e)},"undo"),mustExec:!1}),this.#l()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){wi._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,i;(this._isCopy||this.annotationElementId)&&(e=this.x,i=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#e),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;let{style:a}=this.editorDiv;if(a.fontSize=`calc(${this.#a}px * var(--total-scale-factor))`,a.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){let[s,n]=this.parentDimensions;if(this.annotationElementId){let{position:r}=this._initialData,[l,o]=this.getInitialTranslation();[l,o]=this.pageTranslationToScreen(l,o);let[f,h]=this.pageDimensions,[c,u]=this.pageTranslation,p,m;switch(this.rotation){case 0:p=e+(r[0]-c)/f,m=i+this.height-(r[1]-u)/h;break;case 90:p=e+(r[0]-c)/f,m=i-(r[1]-u)/h,[l,o]=[o,-l];break;case 180:p=e-this.width+(r[0]-c)/f,m=i-(r[1]-u)/h,[l,o]=[-l,-o];break;case 270:p=e+(r[0]-c-this.height*h)/f,m=i+(r[1]-u-this.width*f)/h,[l,o]=[-o,l]}this.setAt(p*s,m*n,l,o)}else this._moveAfterPaste(e,i);this.#f(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#o(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(oo,"")}editorDivPaste(e){let i=e.clipboardData||window.clipboardData,{types:a}=i;if(a.length===1&&a[0]==="text/plain")return;e.preventDefault();let s=wi.#h(i.getData("text")||"").replaceAll(oo,`
|
|
100
|
+
`);if(!s)return;let n=window.getSelection();if(!n.rangeCount)return;this.editorDiv.normalize(),n.deleteFromDocument();let r=n.getRangeAt(0);if(!s.includes(`
|
|
101
|
+
`)){r.insertNode(document.createTextNode(s)),this.editorDiv.normalize(),n.collapseToStart();return}let{startContainer:l,startOffset:o}=r,f=[],h=[];if(l.nodeType===Node.TEXT_NODE){let p=l.parentElement;if(h.push(l.nodeValue.slice(o).replaceAll(oo,"")),p!==this.editorDiv){let m=f;for(let g of this.editorDiv.childNodes)g===p?m=h:m.push(wi.#o(g))}f.push(l.nodeValue.slice(0,o).replaceAll(oo,""))}else if(l===this.editorDiv){let p=f,m=0;for(let g of this.editorDiv.childNodes)m++===o&&(p=h),p.push(wi.#o(g))}this.#t=`${f.join(`
|
|
102
|
+
`)}${s}${h.join(`
|
|
103
|
+
`)}`,this.#f();let c=new Range,u=Math.sumPrecise(f.map(p=>p.length));for(let{firstChild:p}of this.editorDiv.childNodes)if(p.nodeType===Node.TEXT_NODE){let m=p.nodeValue.length;if(u<=m){c.setStart(p,u),c.setEnd(p,u);break}u-=m}n.removeAllRanges(),n.addRange(c)}#f(){if(this.editorDiv.replaceChildren(),this.#t)for(let e of this.#t.split(`
|
|
104
|
+
`)){let i=document.createElement("div");i.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(i)}}#u(){return this.#t.replaceAll("\xA0"," ")}static#h(e){return e.replaceAll(" ","\xA0")}get contentDiv(){return this.editorDiv}getPDFRect(){let e=wi._internalPadding*this.parentScale;return this.getRect(e,e)}static async deserialize(e,i,a){let s=null;if(e instanceof ng){let{data:{defaultAppearanceData:{fontSize:r,fontColor:l},rect:o,rotation:f,id:h,popupRef:c,richText:u,contentsObj:p,creationDate:m,modificationDate:g},textContent:b,textPosition:w,parent:{page:{pageNumber:v}}}=e;if(!b?.length)return null;s=e={annotationType:ie.FREETEXT,color:Array.from(l),fontSize:r,value:b.join(`
|
|
105
|
+
`),position:w,pageIndex:v-1,rect:o.slice(0),rotation:f,annotationElementId:h,id:h,deleted:!1,popupRef:c,comment:p?.str||null,richText:u,creationDate:m,modificationDate:g}}let n=await super.deserialize(e,i,a);return n.#a=e.fontSize,n.color=qt.makeHexColor(...e.color),n.#t=wi.#h(e.value),n._initialData=s,e.comment&&n.setCommentData(e),n}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let i=He._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),a=Object.assign(super.serialize(e),{color:i,fontSize:this.#a,value:this.#u()});return this.addComment(a),e?(a.isCopy=!0,a):this.annotationElementId&&!this.#d(a)?null:(a.id=this.annotationElementId,a)}#d(e){let{value:i,fontSize:a,color:s,pageIndex:n}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==i||e.fontSize!==a||e.color.some((r,l)=>r!==s[l])||e.pageIndex!==n}renderAnnotationElement(e){let i=super.renderAnnotationElement(e);if(!i)return null;let{style:a}=i;a.fontSize=`calc(${this.#a}px * var(--total-scale-factor))`,a.color=this.color,i.replaceChildren();for(let s of this.#t.split(`
|
|
106
|
+
`)){let n=document.createElement("div");n.append(s?document.createTextNode(s):document.createElement("br")),i.append(n)}return e.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:this.#t}}),i}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}},Nu=class{static{d(this,"DrawingOptions")}#t=Object.create(null);updateProperty(t,e){this[t]=e,this.updateSVGProperty(t,e)}updateProperties(t){if(t)for(let[e,i]of Object.entries(t))e.startsWith("_")||this.updateProperty(e,i)}updateSVGProperty(t,e){this.#t[t]=e}toSVGProperties(){let t=this.#t;return this.#t=Object.create(null),{root:t}}reset(){this.#t=Object.create(null)}updateAll(t=this){this.updateProperties(t)}clone(){Ae("Not implemented")}},Lu=class je extends He{static{d(this,"DrawingEditor")}#t=null;#e;_clipPathId=null;_colorPicker=null;_drawId=null;_drawOutlines=null;_focusDrawId=null;static _currentDrawId=-1;static _currentParent=null;static#i=null;static#a=null;static#s=null;static#n=null;static _INNER_MARGIN=3;constructor(e){super(e),this.#e=e.mustBeCommitted||!1,this._addOutlines(e)}onUpdatedColor(){this._colorPicker?.update(this.color),super.onUpdatedColor()}onUpdatedOpacity(){this._colorPicker?.updateOpacity?.(this.opacity)}_addOutlines(e){e.drawOutlines&&(this.#r(e),this.#g())}#r({drawOutlines:e,drawId:i,drawingOptions:a,clipPathId:s}){this._drawOutlines=e,this._drawingOptions||=a,this.annotationElementId||this._uiManager.a11yAlert(He._l10nAlert[this.editorType]),i>=0?(this._drawId=i,this._clipPathId=s??null,this.parent.drawLayer.finalizeDraw(i,e.defaultProperties),this.#o(this.parent)):this._drawId=this.#l(e,this.parent),this.#b(e.box)}#l(e,i){let{id:a,clipPathId:s}=i.drawLayer.draw(je._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,this.constructor._hasClipPath);return this.constructor._hasClipPath&&(this._clipPathId=s),this.#o(i),a}#o(e){let i=this._drawOutlines.getFocusSVGProperties(this.#d);i&&(this._focusDrawId=e.drawLayer.drawOutline(i,this._drawOutlines.focusMustRemoveSelfIntersections))}#f(e=this.#d){this._focusDrawId!==null&&this.parent?.drawLayer.updateProperties(this._focusDrawId,this._drawOutlines.getFocusSVGProperties(e))}#u(e){this._focusDrawId!==null&&this.parent?.drawLayer.updateProperties(this._focusDrawId,{rootClass:e})}#h(){let{parent:e,_drawId:i,_focusDrawId:a,_isVisible:s}=this;if(!e||i===null)return;let n={hidden:!s};e.drawLayer.updateProperties(i,{rootClass:n}),a!==null&&e.drawLayer.updateProperties(a,{rootClass:n})}static _mergeSVGProperties(e,i){let a=new Set(Object.keys(e));for(let[s,n]of Object.entries(i))a.has(s)?Object.assign(e[s],n):e[s]=n;return e}static getDefaultDrawingOptions(e){Ae("Not implemented")}static get typesMap(){Ae("Not implemented")}static get isDrawer(){return!0}static get _hasClipPath(){return!1}static get _hasDrawClass(){return!0}static get supportMultipleDrawings(){return!1}get _drawRotation(){return this.rotation}get _opacityName(){return this.constructor.typesMap.get(this.opacityType)}get#d(){return(this.parentRotation-this._drawRotation+360)%360}static updateDefaultParams(e,i){let a=this.typesMap.get(e);a&&this._defaultDrawingOptions.updateProperty(a,i),this._currentParent&&(je.#i.updateProperty(a,i),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,i){let a=this.constructor.typesMap.get(e);a&&this._updateProperty(e,a,i)}static get defaultPropertiesToUpdate(){let e=[],i=this._defaultDrawingOptions;for(let[a,s]of this.typesMap)e.push([a,i[s]]);return e}get propertiesToUpdate(){let e=[],{_drawingOptions:i}=this;for(let[a,s]of this.constructor.typesMap)e.push([a,i[s]]);return e}_updateProperty(e,i,a){let s=this._drawingOptions,n=s[i],r=d(l=>{s.updateProperty(i,l);let o=this._drawOutlines.updateProperty(i,l);o&&this.#b(o),this.parent?.drawLayer.updateProperties(this._drawId,s.toSVGProperties()),e===this.colorType?this.onUpdatedColor():e===this.opacityType&&this.onUpdatedOpacity()},"setter");this.addCommands({cmd:r.bind(this,a),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_updateColorAndOpacity(e,i,a=this.colorAndOpacityType){let s=this.constructor.typesMap.get(this.colorType),n=this._opacityName,r=this._drawingOptions,l=r[s],o=r[n],f=d((h,c)=>{r.updateProperty(s,h),r.updateProperty(n,c),this._drawOutlines.updateProperty(s,h),this._drawOutlines.updateProperty(n,c),this.parent?.drawLayer.updateProperties(this._drawId,r.toSVGProperties()),this.onUpdatedColor(),this.onUpdatedOpacity()},"setter");this.addCommands({cmd:f.bind(this,e,i),undo:f.bind(this,l,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:a,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,je._mergeSVGProperties(this._drawOutlines.getPathResizingSVGProperties(this.#m()),{bbox:this.#w()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,je._mergeSVGProperties(this._drawOutlines.getPathResizedSVGProperties(this.#m()),{bbox:this.#w()})),this.#f()}_onTranslating(e,i){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#w()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,je._mergeSVGProperties(this._drawOutlines.getPathTranslatedSVGProperties(this.#m(),this.parentDimensions),{bbox:this.#w()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}get _mustBeDisabledOnCommit(){return!0}commit(){super.commit(),this._mustBeDisabledOnCommit&&(this.disableEditMode(),this.disableEditing())}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#e&&(this.#e=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this._uiManager.removeShouldRescale(this),this.#p(),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#g(),this.#b(this._drawOutlines.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let i=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#p()):e&&(this._uiManager.addShouldRescale(this),this.#g(e),i=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),this.#h(),i&&this.select()}#p(){if(this._drawId===null||!this.parent)return;let{drawLayer:e}=this.parent;e.remove(this._drawId),this._drawId=null,this._focusDrawId!==null&&(e.remove(this._focusDrawId),this._focusDrawId=null),this._drawingOptions.reset()}#g(e=this.parent){if(this._drawId===null||this.parent!==e)if(this._drawId!==null){let{drawLayer:i}=this.parent;i.updateParent(this._drawId,e.drawLayer),this._focusDrawId!==null&&i.updateParent(this._focusDrawId,e.drawLayer)}else this._drawingOptions.updateAll(),this._drawId=this.#l(this._drawOutlines,e),this._clipPathId&&this.#t&&(this.#t.style.clipPath=this._clipPathId)}#c([e,i,a,s]){let{parentDimensions:[n,r],_drawRotation:l}=this;switch(l){case 90:return[i,1-e,r/n*a,n/r*s];case 180:return[1-e,1-i,a,s];case 270:return[1-i,e,r/n*a,n/r*s];default:return[e,i,a,s]}}#m(){let{x:e,y:i,width:a,height:s,parentDimensions:[n,r],_drawRotation:l}=this;switch(l){case 90:return[1-i,e,n/r*a,r/n*s];case 180:return[1-e,1-i,a,s];case 270:return[i,1-e,n/r*a,r/n*s];default:return[e,i,a,s]}}#b(e){[this.x,this.y,this.width,this.height]=this.#c(e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}#w(e=this.parentRotation){let{x:i,y:a,width:s,height:n,_drawRotation:r,parentDimensions:[l,o]}=this;switch((r*4+e)/90){case 1:return[1-a-n,i,n,s];case 2:return[1-i-s,1-a-n,s,n];case 3:return[a,1-i-s,n,s];case 4:return[i,a-l/o*s,o/l*n,l/o*s];case 5:return[1-a,i,l/o*s,o/l*n];case 6:return[1-i-o/l*n,1-a,o/l*n,l/o*s];case 7:return[a-l/o*s,1-i-o/l*n,l/o*s,o/l*n];case 8:return[i-s,a-n,s,n];case 9:return[1-a,i-s,n,s];case 10:return[1-i,1-a,s,n];case 11:return[a-n,1-i,n,s];case 12:return[i-o/l*n,a,o/l*n,l/o*s];case 13:return[1-a-l/o*s,i-o/l*n,l/o*s,o/l*n];case 14:return[1-i,1-a-l/o*s,o/l*n,l/o*s];case 15:return[a,1-i,l/o*s,o/l*n];default:return[i,a,s,n]}}rotate(e=this.parentRotation){if(!this.parent||this._drawId===null)return;let i=(e-this._drawRotation+360)%360;this.parent.drawLayer.updateProperties(this._drawId,je._mergeSVGProperties({bbox:this.#w(e)},this._drawOutlines.updateRotation(i))),this.#f(i)}show(e=this._isVisible){super.show(e),this.#h()}select(){super.select(),this.#u({hovered:!1,selected:!0})}unselect(){super.unselect(),this.#u({selected:!1})}pointerover(){this.isSelected||this.#u({hovered:!0})}pointerleave(){this.isSelected||this.#u({hovered:!1})}onScaleChanging(){if(!this.parent)return;let e=this._drawOutlines.updateParentDimensions(this.parentDimensions,this.parent.scale);e&&this.#b(e)}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,i;this._isCopy&&(e=this.x,i=this.y);let a=super.render();this.constructor._hasDrawClass&&a.classList.add("draw");let s=this.#t=document.createElement("div");return a.append(s),s.setAttribute("aria-hidden","true"),s.className="internal",this._clipPathId&&(s.style.clipPath=this._clipPathId),Em(this,s,["pointerover","pointerleave"]),this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,i),a}static createDrawerInstance(e){Ae("Not implemented")}static _getDrawingTarget(e,{target:i}){return i}static _getPointerCoords({offsetX:e,offsetY:i,clientX:a,clientY:s},n=null){if(!n)return[e,i];let r=a-n.clientX,l=s-n.clientY;switch(this._currentParent.viewport.rotation){case 90:[r,l]=[l,-r];break;case 180:[r,l]=[-r,-l];break;case 270:[r,l]=[-l,r]}return[n.offsetX+r,n.offsetY+l]}static _addDrawingListeners(e,i){}static _endDrawingSession(e=!1){return this._currentParent.endDrawingSession(e)}static startDrawing(e,i,a,s){let{pointerId:n,pointerType:r}=s;if($i.isInitializedAndDifferentPointerType(r))return;let l=this._getDrawingTarget(e,s),[o,f]=this._getPointerCoords(s),{viewport:{rotation:h}}=e,{x:c,y:u,width:p,height:m}=l.getBoundingClientRect(),g=je.#a=new AbortController,b=e.combinedSignal(g);if($i.setPointer(r,n),window.addEventListener("pointerup",y=>{$i.isSamePointerIdOrRemove(y.pointerId)&&this._endDraw(y)},{signal:b}),window.addEventListener("pointercancel",y=>{$i.isSamePointerIdOrRemove(y.pointerId)&&this._endDrawingSession()},{signal:b}),window.addEventListener("pointerdown",y=>{$i.isSamePointerType(y.pointerType)&&($i.initializeAndAddPointerId(y.pointerId),je.#i.isCancellable()&&(je.#i.removeLastElement(),je.#i.isEmpty()?this._endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:b}),window.addEventListener("contextmenu",va,{signal:b}),l.addEventListener("pointermove",this._drawMove.bind(this),{signal:b}),l.addEventListener("touchmove",y=>{$i.isSameTimeStamp(y.timeStamp)&&ai(y)},{signal:b}),this._addDrawingListeners(l,b),e.toggleDrawing(),i._editorUndoBar?.hide(),je.#i){e.drawLayer.updateProperties(this._currentDrawId,je.#i.startNew(o,f,p,m,h));return}i.updateUIForDefaultProperties(this),je.#i=this.createDrawerInstance({x:o,y:f,box:[c,u,p,m],rotation:h,parent:e,isLTR:a}),je.#s=this.getDefaultDrawingOptions(),this._currentParent=e;let{id:w,clipPathId:v}=e.drawLayer.draw(this._mergeSVGProperties(je.#s.toSVGProperties(),je.#i.defaultSVGProperties),!0,this._hasClipPath);this._currentDrawId=w,je.#n=this._hasClipPath?v:null}static _drawMove(e){if($i.isSameTimeStamp(e.timeStamp),!je.#i||!$i.isSamePointerId(e.pointerId))return;if($i.isUsingMultiplePointers()){this._endDraw(e);return}let i,a=e.getCoalescedEvents?.();if(a?.length){let s=[];for(let n of a)s.push(...this._getPointerCoords(n,e));i=je.#i.addPoints(s)}else i=je.#i.add(...this._getPointerCoords(e));this._currentParent.drawLayer.updateProperties(this._currentDrawId,i),$i.setTimeStamp(e.timeStamp),ai(e)}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,je.#i=null,je.#s=null,je.#n=null,$i.clearTimeStamp()),je.#a&&(je.#a.abort(),je.#a=null,$i.clearPointerIds())}static _endDraw(e){let i=this._currentParent;if(i)if(i.toggleDrawing(!0),this._cleanup(!1),i.drawLayer.updateProperties(this._currentDrawId,e?.target===i.div?je.#i.end(...this._getPointerCoords(e)):je.#i.end()),this.supportMultipleDrawings){let a=je.#i,s=this._currentDrawId,n=a.getLastElement();i.addCommands({cmd:d(()=>{i.drawLayer.updateProperties(s,a.setLastElement(n))},"cmd"),undo:d(()=>{i.drawLayer.updateProperties(s,a.removeLastElement())},"undo"),mustExec:!1,type:ge.DRAW_STEP})}else this.endDrawing(!1)}static endDrawing(e){let i=this._currentParent;if(!i)return null;if(i.toggleDrawing(!0),i.cleanUndoStack(ge.DRAW_STEP),!je.#i.isEmpty()){let{pageDimensions:[a,s],scale:n}=i,r=i.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,clipPathId:je.#n,drawOutlines:je.#i.getOutlines(a*n,s*n,n,this._INNER_MARGIN),drawingOptions:je.#s,mustBeCommitted:!e});return this._cleanup(!0),r}return i.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,i,a,s,n,r,l){Ae("Not implemented")}static async deserialize(e,i,a){let{rawDims:{pageWidth:s,pageHeight:n,pageX:r,pageY:l}}=i.viewport,o=this.deserializeDraw(r,l,s,n,this._INNER_MARGIN,e,a),f=await super.deserialize(e,i,a);return f.createDrawingOptions(e),f.#r({drawOutlines:o}),f.#g(),f.onScaleChanging(),f.rotate(),f}serializeDraw(e){let[i,a]=this.pageTranslation,[s,n]=this.pageDimensions;return this._drawOutlines.serialize([i,a,s,n],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}},Ft=class{static{d(this,"Outline")}static PRECISION=1e-4;focusOutline=null;toSVGPath(){Ae("Abstract method `toSVGPath` must be implemented.")}get box(){Ae("Abstract getter `box` must be implemented.")}serialize(t,e){Ae("Abstract method `serialize` must be implemented.")}get defaultSVGProperties(){Ae("Abstract getter `defaultSVGProperties` must be implemented.")}get defaultProperties(){return this.defaultSVGProperties}getFocusSVGProperties(t){return null}get focusMustRemoveSelfIntersections(){return!1}updateProperty(t,e){return null}updateParentDimensions(t,e){return null}serializeQuadPoints(t,e){return null}updateRotation(t){return{}}getPathResizingSVGProperties(t){return{}}getPathResizedSVGProperties(t){return{}}getPathTranslatedSVGProperties(t,e){return{}}static _rotateBox([t,e,i,a],s){switch(s){case 90:return[1-e-a,t,a,i];case 180:return[1-t-i,1-e-a,i,a];case 270:return[e,1-t-i,a,i]}return[t,e,i,a]}static _rescale(t,e,i,a,s,n){n||=new Float32Array(t.length);for(let r=0,l=t.length;r<l;r+=2)n[r]=e+t[r]*a,n[r+1]=i+t[r+1]*s;return n}static _rescaleAndSwap(t,e,i,a,s,n){n||=new Float32Array(t.length);for(let r=0,l=t.length;r<l;r+=2)n[r]=e+t[r+1]*a,n[r+1]=i+t[r]*s;return n}static _translate(t,e,i,a){a||=new Float32Array(t.length);for(let s=0,n=t.length;s<n;s+=2)a[s]=e+t[s],a[s+1]=i+t[s+1];return a}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,e,i,a,s){switch(s){case 90:return[1-e/i,t/a];case 180:return[1-t/i,1-e/a];case 270:return[e/i,1-t/a];default:return[t/i,e/a]}}static createBezierPoints(t,e,i,a,s,n){return[(t+5*i)/6,(e+5*a)/6,(5*i+s)/6,(5*a+n)/6,(i+s)/2,(a+n)/2]}},ug=class Qr{static{d(this,"FreeDrawOutliner")}#t;#e=[];#i;#a;#s=[];#n=new Float32Array(18);#r;#l;#o;#f;#u;#h;#d=[];static#p=8;static#g=2;static#c=Qr.#p+Qr.#g;constructor(e,i,a,s,n,r,l=0){this.#t=a,this.#h=n*s,this.#a=r,this.#n.set([NaN,NaN,NaN,NaN,e,i],6),this.#i=l,this.#f=Qr.#p*s,this.#o=Qr.#c*s,this.#u=s,this.#d.push(e,i)}isEmpty(){return isNaN(this.#n[8])}isCancellable(){return this.#d.length<=10}removeLastElement(){return this.#n.fill(NaN),this.#s.length=this.#e.length=this.#d.length=0,{path:{d:""}}}#m(){let e=this.#n.subarray(4,6),i=this.#n.subarray(16,18),[a,s,n,r]=this.#t;return[(this.#r+(e[0]-i[0])/2-a)/n,(this.#l+(e[1]-i[1])/2-s)/r,(this.#r+(i[0]-e[0])/2-a)/n,(this.#l+(i[1]-e[1])/2-s)/r]}add(e,i){this.#r=e,this.#l=i;let[a,s,n,r]=this.#t,[l,o,f,h]=this.#n.subarray(8,12),c=e-f,u=i-h,p=Math.hypot(c,u);if(p<this.#o)return!1;let m=p-this.#f,g=m/p,b=g*c,w=g*u,v=l,y=o;l=f,o=h,f+=b,h+=w,this.#d?.push(e,i);let x=-w/m,q=b/m,j=x*this.#h,A=q*this.#h;return this.#n.set(this.#n.subarray(2,8),0),this.#n.set([f+j,h+A],4),this.#n.set(this.#n.subarray(14,18),12),this.#n.set([f-j,h-A],16),isNaN(this.#n[6])?(this.#s.length===0&&(this.#n.set([l+j,o+A],2),this.#s.push(NaN,NaN,NaN,NaN,(l+j-a)/n,(o+A-s)/r),this.#n.set([l-j,o-A],14),this.#e.push(NaN,NaN,NaN,NaN,(l-j-a)/n,(o-A-s)/r)),this.#n.set([v,y,l,o,f,h],6),!this.isEmpty()):(this.#n.set([v,y,l,o,f,h],6),Math.abs(Math.atan2(y-o,v-l)-Math.atan2(w,b))<Math.PI/2?([l,o,f,h]=this.#n.subarray(2,6),this.#s.push(NaN,NaN,NaN,NaN,((l+f)/2-a)/n,((o+h)/2-s)/r),[l,o,v,y]=this.#n.subarray(14,18),this.#e.push(NaN,NaN,NaN,NaN,((v+l)/2-a)/n,((y+o)/2-s)/r),!0):([v,y,l,o,f,h]=this.#n.subarray(0,6),this.#s.push(((v+5*l)/6-a)/n,((y+5*o)/6-s)/r,((5*l+f)/6-a)/n,((5*o+h)/6-s)/r,((l+f)/2-a)/n,((o+h)/2-s)/r),[f,h,l,o,v,y]=this.#n.subarray(12,18),this.#e.push(((v+5*l)/6-a)/n,((y+5*o)/6-s)/r,((5*l+f)/6-a)/n,((5*o+h)/6-s)/r,((l+f)/2-a)/n,((o+h)/2-s)/r),!0))}toSVGPath(){if(this.isEmpty())return"";let e=this.#s,i=this.#e;if(isNaN(this.#n[6])&&!this.isEmpty())return this.#b();let a=[];a.push(`M${e[4]} ${e[5]}`);for(let s=6;s<e.length;s+=6)isNaN(e[s])?a.push(`L${e[s+4]} ${e[s+5]}`):a.push(`C${e[s]} ${e[s+1]} ${e[s+2]} ${e[s+3]} ${e[s+4]} ${e[s+5]}`);this.#y(a);for(let s=i.length-6;s>=6;s-=6)isNaN(i[s])?a.push(`L${i[s+4]} ${i[s+5]}`):a.push(`C${i[s]} ${i[s+1]} ${i[s+2]} ${i[s+3]} ${i[s+4]} ${i[s+5]}`);return this.#w(a),a.join(" ")}#b(){let[e,i,a,s]=this.#t,[n,r,l,o]=this.#m();return`M${(this.#n[2]-e)/a} ${(this.#n[3]-i)/s} L${(this.#n[4]-e)/a} ${(this.#n[5]-i)/s} L${n} ${r} L${l} ${o} L${(this.#n[16]-e)/a} ${(this.#n[17]-i)/s} L${(this.#n[14]-e)/a} ${(this.#n[15]-i)/s} Z`}#w(e){let i=this.#e;e.push(`L${i[4]} ${i[5]} Z`)}#y(e){let[i,a,s,n]=this.#t,r=this.#n.subarray(4,6),l=this.#n.subarray(16,18),[o,f,h,c]=this.#m();e.push(`L${(r[0]-i)/s} ${(r[1]-a)/n} L${o} ${f} L${h} ${c} L${(l[0]-i)/s} ${(l[1]-a)/n}`)}newFreeDrawOutline(e,i,a,s,n,r){return new dg(e,i,a,s,n,r)}getOutlines(){let e=this.#s,i=this.#e,a=this.#n,[s,n,r,l]=this.#t,o=new Float32Array((this.#d?.length??0)+2);for(let c=0,u=o.length-2;c<u;c+=2)o[c]=(this.#d[c]-s)/r,o[c+1]=(this.#d[c+1]-n)/l;if(o[o.length-2]=(this.#r-s)/r,o[o.length-1]=(this.#l-n)/l,isNaN(a[6])&&!this.isEmpty())return this.#k(o);let f=new Float32Array(this.#s.length+24+this.#e.length),h=e.length;for(let c=0;c<h;c+=2)isNaN(e[c])?f[c]=f[c+1]=NaN:(f[c]=e[c],f[c+1]=e[c+1]);h=this.#q(f,h);for(let c=i.length-6;c>=6;c-=6)for(let u=0;u<6;u+=2)isNaN(i[c+u])?(f[h]=f[h+1]=NaN,h+=2):(f[h]=i[c+u],f[h+1]=i[c+u+1],h+=2);return this.#v(f,h),this.newFreeDrawOutline(f,o,this.#t,this.#u,this.#i,this.#a)}#k(e){let i=this.#n,[a,s,n,r]=this.#t,[l,o,f,h]=this.#m(),c=new Float32Array(36);return c.set([NaN,NaN,NaN,NaN,(i[2]-a)/n,(i[3]-s)/r,NaN,NaN,NaN,NaN,(i[4]-a)/n,(i[5]-s)/r,NaN,NaN,NaN,NaN,l,o,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,(i[16]-a)/n,(i[17]-s)/r,NaN,NaN,NaN,NaN,(i[14]-a)/n,(i[15]-s)/r],0),this.newFreeDrawOutline(c,e,this.#t,this.#u,this.#i,this.#a)}#v(e,i){let a=this.#e;return e.set([NaN,NaN,NaN,NaN,a[4],a[5]],i),i+=6}#q(e,i){let a=this.#n.subarray(4,6),s=this.#n.subarray(16,18),[n,r,l,o]=this.#t,[f,h,c,u]=this.#m();return e.set([NaN,NaN,NaN,NaN,(a[0]-n)/l,(a[1]-r)/o,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,(s[0]-n)/l,(s[1]-r)/o],i),i+=24}},dg=class extends Ft{static{d(this,"FreeDrawOutline")}#t;#e=new Float32Array(4);#i;#a;#s;#n;#r;constructor(t,e,i,a,s,n){super(),this.#r=t,this.#s=e,this.#t=i,this.#n=a,this.#i=s,this.#a=n,this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],this.#l(n);let[r,l,o,f]=this.#e;for(let h=0,c=t.length;h<c;h+=2)t[h]=(t[h]-r)/o,t[h+1]=(t[h+1]-l)/f;for(let h=0,c=e.length;h<c;h+=2)e[h]=(e[h]-r)/o,e[h+1]=(e[h+1]-l)/f}toSVGPath(){let t=[`M${this.#r[4]} ${this.#r[5]}`];for(let e=6,i=this.#r.length;e<i;e+=6)isNaN(this.#r[e])?t.push(`L${this.#r[e+4]} ${this.#r[e+5]}`):t.push(`C${this.#r[e]} ${this.#r[e+1]} ${this.#r[e+2]} ${this.#r[e+3]} ${this.#r[e+4]} ${this.#r[e+5]}`);return t.push("Z"),t.join(" ")}serialize([t,e,i,a],s){let n=i-t,r=a-e,l,o;switch(s){case 0:l=Ft._rescale(this.#r,t,a,n,-r),o=Ft._rescale(this.#s,t,a,n,-r);break;case 90:l=Ft._rescaleAndSwap(this.#r,t,e,n,r),o=Ft._rescaleAndSwap(this.#s,t,e,n,r);break;case 180:l=Ft._rescale(this.#r,i,e,-n,r),o=Ft._rescale(this.#s,i,e,-n,r);break;case 270:l=Ft._rescaleAndSwap(this.#r,i,a,-n,-r),o=Ft._rescaleAndSwap(this.#s,i,a,-n,-r)}return{outline:Array.from(l),points:[Array.from(o)]}}#l(t){let e=this.#r,i=e[4],a=e[5],s=[i,a,i,a],n=i,r=a,l=i,o=a,f=t?Math.max:Math.min,h=new Float32Array(4);for(let u=6,p=e.length;u<p;u+=6){let m=e[u+4],g=e[u+5];isNaN(e[u])?(qt.pointBoundingBox(m,g,s),r>g?(n=m,r=g):r===g&&(n=f(n,m)),o<g?(l=m,o=g):o===g&&(l=f(l,m))):(h.set(Wa,0),qt.bezierBoundingBox(i,a,...e.slice(u,u+6),h),qt.rectBoundingBox(...h,s),r>h[1]?(n=h[0],r=h[1]):r===h[1]&&(n=f(n,h[0])),o<h[3]?(l=h[2],o=h[3]):o===h[3]&&(l=f(l,h[2]))),i=m,a=g}let c=this.#e;c[0]=s[0]-this.#i,c[1]=s[1]-this.#i,c[2]=s[2]-s[0]+2*this.#i,c[3]=s[3]-s[1]+2*this.#i,this.firstPoint=[n,r],this.lastPoint=[l,o]}get box(){return this.#e}newOutliner(t,e,i,a,s,n,r=0){return new ug(t,e,i,a,s,n,r)}updateThickness(t){let e=this.getNewOutline(t);return this.#r=e.#r,this.#s=e.#s,this.#e.set(e.#e),this.firstPoint=e.firstPoint,this.lastPoint=e.lastPoint,this.#e}getNewOutline(t,e){let[i,a,s,n]=this.#e,[r,l,o,f]=this.#t,h=s*o,c=n*f,u=i*o+r,p=a*f+l,m=this.#s,g=this.newOutliner(m[0]*h+u,m[1]*c+p,this.#t,this.#n,t,this.#a,e??this.#i);for(let b=2,w=m.length;b<w;b+=2)g.add(m[b]*h+u,m[b+1]*c+p);return g.getOutlines()}};d(pg,"getHighlightSVGProperties");d(mg,"getHighlightFocusSVGProperties");Oc=class{static{d(this,"HighlightOutliner")}#t;#e;#i;#a=[];#s=[];constructor(t,e=0,i=0,a=!0){let s=Wa.slice(),n=10**-4;for(let{x:m,y:g,width:b,height:w}of t){let v=Math.floor((m-e)/n)*n,y=Math.ceil((m+b+e)/n)*n,x=Math.floor((g-e)/n)*n,q=Math.ceil((g+w+e)/n)*n,j=[v,x,q,!0],A=[y,x,q,!1];this.#a.push(j,A),qt.rectBoundingBox(v,x,y,q,s)}let r=s[2]-s[0]+2*i,l=s[3]-s[1]+2*i,o=s[0]-i,f=s[1]-i,h=a?-1/0:1/0,c=1/0,u=this.#a.at(a?-1:-2),p=[u[0],u[2]];for(let m of this.#a){let[g,b,w,v]=m;!v&&a?b<c?(c=b,h=g):b===c&&(h=Math.max(h,g)):v&&!a&&(b<c?(c=b,h=g):b===c&&(h=Math.min(h,g))),m[0]=(g-o)/r,m[1]=(b-f)/l,m[2]=(w-f)/l}this.#t=new Float32Array([o,f,r,l]),this.#e=[h,c],this.#i=p}getOutlines(){this.#a.sort((e,i)=>e[0]-i[0]||e[1]-i[1]||e[2]-i[2]);let t=[];for(let e of this.#a)e[3]?(t.push(...this.#f(e)),this.#l(e)):(this.#o(e),t.push(...this.#f(e)));return this.#n(t)}#n(t){let e=[],i=new Set;for(let s of t){let[n,r,l]=s;e.push([n,r,s],[n,l,s])}e.sort((s,n)=>s[1]-n[1]||s[0]-n[0]);for(let s=0,n=e.length;s<n;s+=2){let r=e[s][2],l=e[s+1][2];r.push(l),l.push(r),i.add(r),i.add(l)}let a=[];for(;i.size>0;){let s=i.values().next().value,[n,r,l,o,f]=s;i.delete(s);let h=n,c=r,u=[n,l];for(a.push(u);;){let p;if(i.has(o))p=o;else if(i.has(f))p=f;else break;i.delete(p),[n,r,l,o,f]=p,h!==n&&(u.push(h,c,n,c===r?r:l),h=n),c=c===r?l:r}u.push(h,c)}return new Hc(a,this.#t,this.#e,this.#i)}#r(t){let e=this.#s,i=0,a=e.length-1;for(;i<=a;){let s=i+a>>1,n=e[s][0];if(n===t)return s;n<t?i=s+1:a=s-1}return a+1}#l([,t,e]){let i=this.#r(t);this.#s.splice(i,0,[t,e])}#o([,t,e]){let i=this.#r(t);for(let a=i;a<this.#s.length;a++){let[s,n]=this.#s[a];if(s!==t)break;if(s===t&&n===e){this.#s.splice(a,1);return}}for(let a=i-1;a>=0;a--){let[s,n]=this.#s[a];if(s!==t)break;if(s===t&&n===e){this.#s.splice(a,1);return}}}#f(t){let[e,i,a]=t,s=[[e,i,a]],n=this.#r(a);for(let r=0;r<n;r++){let[l,o]=this.#s[r];for(let f=0,h=s.length;f<h;f++){let[,c,u]=s[f];if(!(o<=c||u<=l))if(c>=l)if(u>o)s[f][1]=o;else{if(h===1)return[];s.splice(f,1),f--,h--}else s[f][2]=l,u>o&&s.push([e,o,u])}}return s}},Hc=class extends Ft{static{d(this,"HighlightOutline")}#t;#e=null;#i;constructor(t,e,i,a){super(),this.#i=t,this.#t=e,this.firstPoint=i,this.lastPoint=a}static build(t,e){let i=new Oc(t,.001).getOutlines();return i.#e=t,i.focusOutline=new Oc(t,.0025,.001,e).getOutlines(),i}get isFree(){return!1}get defaultSVGProperties(){return pg(this)}getFocusSVGProperties(t){return mg(this,t)}updateRotation(t){return{root:{"data-main-rotation":t}}}serializeQuadPoints([t,e],[i,a]){let s=this.#e,n=new Float32Array(s.length*8),r=0;for(let{x:l,y:o,width:f,height:h}of s){let c=l*i+t,u=(1-o)*a+e;n[r]=n[r+4]=c,n[r+1]=n[r+3]=u,n[r+2]=n[r+6]=c+f*i,n[r+5]=n[r+7]=u-h*a,r+=8}return n}toSVGPath(){let t=[];for(let e of this.#i){let[i,a]=e;t.push(`M${i} ${a}`);for(let s=2;s<e.length;s+=2){let n=e[s],r=e[s+1];n===i?(t.push(`V${r}`),a=r):r===a&&(t.push(`H${n}`),i=n)}t.push("Z")}return t.join(" ")}serialize([t,e,i,a],s){let n=[],r=i-t,l=a-e;for(let o of this.#i){let f=Array(o.length);for(let h=0;h<o.length;h+=2)f[h]=t+o[h]*r,f[h+1]=a-o[h+1]*l;n.push(f)}return n}get box(){return this.#t}},zu=class extends ug{static{d(this,"FreeHighlightOutliner")}newFreeDrawOutline(t,e,i,a,s,n){return new Bj(t,e,i,a,s,n)}},Pj=class{static{d(this,"FreeHighlightDrawer")}#t;#e;constructor(t,e,i,a,s,n,r){this.#t=new zu(t,e,i,a,s,n,r),this.#e=s}add(t,e){return this.#t.add(t,e)?{path:{d:this.#t.toSVGPath()}}:null}addPoints(t){let e=!1;for(let i=0,a=t.length;i<a;i+=2)e=this.#t.add(t[i],t[i+1])||e;return e?{path:{d:this.#t.toSVGPath()}}:null}end(t,e){return t===void 0?null:this.add(t,e)}isEmpty(){return this.#t.isEmpty()}isCancellable(){return this.#t.isCancellable()}removeLastElement(){return this.#t.removeLastElement()}updateProperty(t,e){return null}getOutlines(){let t=this.#t.getOutlines();return t.buildFocusOutline(2*this.#e),t}get defaultSVGProperties(){return{bbox:[0,0,1,1],root:{viewBox:"0 0 1 1"},rootClass:{highlight:!0,free:!0},path:{d:this.#t.toSVGPath()}}}},Bj=class gg extends dg{static{d(this,"FreeHighlightOutline")}static#t=1.5;newOutliner(e,i,a,s,n,r,l=0){return new zu(e,i,a,s,n,r,l)}get isFree(){return!0}buildFocusOutline(e){this.focusOutline=this.getNewOutline(e/2+gg.#t,.0025)}get defaultSVGProperties(){return pg(this)}getFocusSVGProperties(e){return mg(this,e)}get focusMustRemoveSelfIntersections(){return!0}updateRotation(e){return{root:{"data-main-rotation":e}}}updateProperty(e,i){if(e!=="thickness")return null;let a=this.updateThickness(i/2);return this.buildFocusOutline(i),a}getPathResizedSVGProperties(){return{path:{d:this.toSVGPath()}}}},Oj=class bg extends Nu{static{d(this,"HighlightDrawingOptions")}constructor(e=null){super(),super.updateProperties(e)}updateSVGProperty(e,i){e!=="thickness"&&super.updateSVGProperty(e,i)}clone(){let e=new bg;return e.updateAll(this),e}},Y1=class as extends Lu{static{d(this,"HighlightEditor")}#t=null;#e=0;#i=null;#a=0;#s="";#n="";static _DEFAULT_OPACITY=1;static _DEFAULT_THICKNESS=12;static _defaultDrawingOptions=null;static _type="highlight";static _editorType=ie.HIGHLIGHT;static get _keyboardManager(){let e=as.prototype;return Tt(this,"_keyboardManager",new Fl([[["ArrowLeft"],e._moveCaret,{args:[0]}],[["ArrowRight"],e._moveCaret,{args:[1]}],[["ArrowUp"],e._moveCaret,{args:[2]}],[["ArrowDown"],e._moveCaret,{args:[3]}]]))}constructor(e){super({...e,name:"highlightEditor"}),this.#t=e.anchorNode||null,this.#e=e.anchorOffset||0,this.#i=e.focusNode||null,this.#a=e.focusOffset||0,this.#s=e.methodOfCreation||(this._drawOutlines?.isFree?"main_toolbar":""),this.#n=e.text||"",this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",this.rotate()}static initialize(e,i){He.initialize(e,i),this._defaultDrawingOptions||=new Oj({fill:i.highlightColors?.values().next().value||"#fff066","fill-opacity":as._DEFAULT_OPACITY,thickness:as._DEFAULT_THICKNESS})}static getDefaultDrawingOptions(e){let i=this._defaultDrawingOptions.clone();return i.updateProperties(e),i}static get typesMap(){return Tt(this,"typesMap",new Map([[ge.HIGHLIGHT_COLOR,"fill"],[ge.HIGHLIGHT_THICKNESS,"thickness"]]))}static get isDrawer(){return!1}static get _hasClipPath(){return!0}static get _hasDrawClass(){return!1}_addOutlines(e){let{boxes:i,drawOutlines:a}=e;(i||a)&&(this._drawingOptions||=e.drawingOptions||as.getDefaultDrawingOptions(),i&&(e={...e,drawOutlines:Hc.build(i,this._uiManager.direction==="ltr")}),super._addOutlines(e))}get colorType(){return ge.HIGHLIGHT_COLOR}get color(){return this._drawingOptions.fill}get opacity(){return this._drawingOptions["fill-opacity"]}get _opacityName(){return"fill-opacity"}get _drawRotation(){return this._drawOutlines?.isFree?this.rotation:0}get isResizable(){return!1}get _mustBeDisabledOnCommit(){return!1}get _mustFixPosition(){return!this._drawOutlines?.isFree}get telemetryInitialData(){return{action:"added",type:this._drawOutlines.isFree?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:this._drawingOptions.thickness,methodOfCreation:this.#s}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get("color").size}}translateInPage(e,i){}get toolbarPosition(){return this.#r(this._drawOutlines.focusOutline.lastPoint)}get commentButtonPosition(){return this.#r(this._drawOutlines.firstPoint)}#r([e,i]){let[a,s,n,r]=this._drawOutlines.box;return[(e-a)/n,(i-s)/r]}updateParams(e,i){switch(e){case ge.HIGHLIGHT_COLOR:this._updateColorAndOpacity(i,as._DEFAULT_OPACITY,e),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(i)},!0);break;case ge.HIGHLIGHT_THICKNESS:super.updateParams(e,i),this._reportTelemetry({action:"thickness_changed",thickness:i},!0)}}get propertiesToUpdate(){let e=super.propertiesToUpdate;return e.push([ge.HIGHLIGHT_FREE,this._drawOutlines.isFree]),e}get toolbarButtons(){return this._uiManager.highlightColors?(this._colorPicker=new Bu({editor:this}),[["colorPicker",this._colorPicker]]):super.toolbarButtons}fixAndSetPosition(){return super.fixAndSetPosition(this._drawRotation)}getRect(e,i){return super.getRect(e,i,this._drawRotation)}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this._reportTelemetry({action:"deleted"}),super.remove()}render(){if(this.div)return this.div;let e=super.render();return this.#n&&(e.setAttribute("aria-label",this.#n),e.setAttribute("role","mark")),this._drawOutlines.isFree?e.classList.add("free"):e.addEventListener("keydown",this.#l.bind(this),{signal:this._uiManager._signal}),this.enableEditing(),e}#l(e){as._keyboardManager.exec(this,e)}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:this.#o(!0);break;case 1:case 3:this.#o(!1)}}#o(e){if(!this.#t)return;let i=window.getSelection();e?i.setPosition(this.#t,this.#e):i.setPosition(this.#i,this.#a)}unselect(){super.unselect(),this._drawOutlines.isFree||this.#o(!1)}static createDrawerInstance({x:e,y:i,box:a,parent:s,isLTR:n}){return new Pj(e,i,a,s.scale,this._defaultDrawingOptions.thickness/2,n,.001)}static _getDrawingTarget(e,{target:i}){return i.closest(".textLayer")}static _getPointerCoords({x:e,y:i}){return[e,i]}static _addDrawingListeners(e,i){e.classList.add("free"),i.addEventListener("abort",()=>e.classList.remove("free"),{once:!0}),window.addEventListener("blur",()=>this._endDraw(null),{signal:i}),window.addEventListener("pointerdown",ai,{capture:!0,passive:!1,signal:i})}static _endDrawingSession(e=!1){return this.endDrawing(e)}createDrawingOptions({color:e,opacity:i,thickness:a}){let{_defaultDrawingOptions:s,_DEFAULT_OPACITY:n}=as;this._drawingOptions=as.getDefaultDrawingOptions({fill:qt.makeHexColor(...e),"fill-opacity":i||n,thickness:a||s.thickness})}static deserializeDraw(e,i,a,s,n,r,l){let{quadPoints:o}=r;if(o){let p=[];for(let m=0,g=o.length;m<g;m+=8)p.push({x:(o[m]-e)/a,y:1-(o[m+1]-i)/s,width:(o[m+2]-o[m])/a,height:(o[m+1]-o[m+5])/s});return Hc.build(p,l.direction==="ltr")}let f=r.thickness||this._defaultDrawingOptions.thickness,h=(r.inkLists||r.outlines.points)[0],c=new zu(h[0]-e,s-(h[1]-i),[0,0,a,s],1,f/2,!0,.001);for(let p=0,m=h.length;p<m;p+=2)c.add(h[p]-e,s-(h[p+1]-i));let u=c.getOutlines();return u.buildFocusOutline(f),u}static async deserialize(e,i,a){let s=null;if(e instanceof lg){let{data:{quadPoints:r,rect:l,rotation:o,id:f,color:h,opacity:c,popupRef:u,richText:p,contentsObj:m,creationDate:g,modificationDate:b},parent:{page:{pageNumber:w}}}=e;s=e={annotationType:ie.HIGHLIGHT,color:Array.from(h),opacity:c,quadPoints:r,pageIndex:w-1,rect:l.slice(0),rotation:o,annotationElementId:f,id:f,deleted:!1,popupRef:u,richText:p,comment:m?.str||null,creationDate:g,modificationDate:b}}else if(e instanceof Hu){let{data:{inkLists:r,rect:l,rotation:o,id:f,color:h,borderStyle:{rawWidth:c},popupRef:u,richText:p,contentsObj:m,creationDate:g,modificationDate:b},parent:{page:{pageNumber:w}}}=e;s=e={annotationType:ie.HIGHLIGHT,color:Array.from(h),thickness:c,inkLists:r,pageIndex:w-1,rect:l.slice(0),rotation:o,annotationElementId:f,id:f,deleted:!1,popupRef:u,richText:p,comment:m?.str||null,creationDate:g,modificationDate:b}}let n=await super.deserialize(e,i,a);return n._initialData=s,e.comment&&n.setCommentData(e),n}serialize(e=!1){if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();let i=super.serialize(e);return Object.assign(i,{color:He._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),opacity:this.opacity,thickness:this._drawingOptions.thickness,quadPoints:this._drawOutlines.serializeQuadPoints(this.pageTranslation,this.pageDimensions),outlines:this._drawOutlines.serialize(i.rect,this._drawRotation)}),this.addComment(i),this.annotationElementId&&!this.#f(i)?null:(i.id=this.annotationElementId,i)}#f(e){let{color:i}=this._initialData;return this.hasEditedComment||e.color.some((a,s)=>a!==i[s])}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}},Hj=class{static{d(this,"InkDrawOutliner")}#t=new Float64Array(6);#e=new Float64Array(2);#i;#a;#s;#n;#r;#l="";#o=0;#f=new Rl;#u;#h;constructor(t,e,i,a,s,n){this.#u=i,this.#h=a,this.#s=s,this.#n=n,[t,e]=this.#d(t,e);let r=this.#i=[NaN,NaN,NaN,NaN,t,e];this.#r=[t,e],this.#a=[{line:r,points:this.#r}],this.#t.set(r,0),this.#e.set([t,e],0)}updateProperty(t,e){t==="stroke-width"&&(this.#n=e)}#d(t,e){return Ft._normalizePoint(t,e,this.#u,this.#h,this.#s)}isEmpty(){return!this.#a?.length}isCancellable(){return this.#r.length<=10}add(t,e){return this.#p(t,e)&&this.toSVGPath(),{path:{d:this.#g()}}}addPoints(t){let e=!1;for(let i=0,a=t.length;i<a;i+=2)this.#p(t[i],t[i+1])&&(e=!0,this.#r.length<=6&&(this.toSVGPath(),e=!1));return e&&this.toSVGPath(),{path:{d:this.#g()}}}#p(t,e){[t,e]=this.#d(t,e),this.#e.set([t,e],0);let[i,a,s,n]=this.#t.subarray(2,6),r=t-s,l=e-n;return Math.hypot(this.#u*r,this.#h*l)<=2?!1:(this.#r.push(t,e),isNaN(i)?(this.#t.set([s,n,t,e],2),this.#i.push(NaN,NaN,NaN,NaN,t,e),!0):(isNaN(this.#t[0])&&this.#i.splice(6,6),this.#t.set([i,a,s,n,t,e],0),this.#i.push(...Ft.createBezierPoints(i,a,s,n,t,e)),!0))}end(t,e){return t!==void 0&&this.#p(t,e)||this.#r.length===2?{path:{d:this.toSVGPath()}}:{path:{d:this.#l}}}startNew(t,e,i,a,s){this.#u=i,this.#h=a,this.#s=s,[t,e]=this.#d(t,e);let n=this.#i=[NaN,NaN,NaN,NaN,t,e];this.#r=[t,e],this.#e.set([t,e],0);let r=this.#a.at(-1);return r&&(r.line=new Float32Array(r.line),r.points=new Float32Array(r.points)),this.#a.push({line:n,points:this.#r}),this.#t.set(n,0),this.#o=0,this.toSVGPath(),null}getLastElement(){return this.#a.at(-1)}setLastElement(t){return this.#a?(this.#a.push(t),this.#i=t.line,this.#r=t.points,this.#o=0,{path:{d:this.toSVGPath()}}):this.#f.setLastElement(t)}removeLastElement(){if(!this.#a)return this.#f.removeLastElement();this.#a.pop(),this.#l="";for(let t=0,e=this.#a.length;t<e;t++){let{line:i,points:a}=this.#a[t];this.#i=i,this.#r=a,this.#o=0,this.toSVGPath()}return{path:{d:this.#l}}}#g(){let t=Ft.svgRound(this.#e[0]),e=Ft.svgRound(this.#e[1]);if(this.#r.length===2){let i=Ft.svgRound(this.#i[4]),a=Ft.svgRound(this.#i[5]);return`${this.#l} M ${i} ${a} L ${t} ${e}`}return`${this.#l} L ${t} ${e}`}toSVGPath(){let t=Ft.svgRound(this.#i[4]),e=Ft.svgRound(this.#i[5]);if(this.#r.length===2)return this.#l=`${this.#l} M ${t} ${e} Z`,this.#l;if(this.#r.length<=6){let a=this.#l.lastIndexOf("M");this.#l=`${this.#l.slice(0,a)} M ${t} ${e}`,this.#o=6}if(this.#r.length===4){let a=Ft.svgRound(this.#i[10]),s=Ft.svgRound(this.#i[11]);return this.#l=`${this.#l} L ${a} ${s}`,this.#o=12,this.#l}let i=[];this.#o===0&&(i.push(`M ${t} ${e}`),this.#o=6);for(let a=this.#o,s=this.#i.length;a<s;a+=6){let[n,r,l,o,f,h]=this.#i.slice(a,a+6).map(Ft.svgRound);i.push(`C${n} ${r} ${l} ${o} ${f} ${h}`)}return this.#l+=i.join(" "),this.#o=this.#i.length,this.#l}getOutlines(t,e,i,a){let s=this.#a.at(-1);return s.line=new Float32Array(s.line),s.points=new Float32Array(s.points),this.#f.build(this.#a,t,e,i,this.#s,this.#n,a),this.#t=null,this.#i=null,this.#a=null,this.#l=null,this.#f}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}},Rl=class extends Ft{static{d(this,"InkDrawOutline")}#t;#e=0;#i;#a;#s;#n;#r;#l;#o;build(t,e,i,a,s,n,r){this.#s=e,this.#n=i,this.#r=a,this.#l=s,this.#o=n,this.#i=r??0,this.#a=t,this.#h()}get thickness(){return this.#o}setLastElement(t){return this.#a.push(t),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#a.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){let t=[];for(let{line:e}of this.#a)if(t.push(`M${Ft.svgRound(e[4])} ${Ft.svgRound(e[5])}`),e.length===6)t.push("Z");else if(e.length===12&&isNaN(e[6]))t.push(`L${Ft.svgRound(e[10])} ${Ft.svgRound(e[11])}`);else for(let i=6,a=e.length;i<a;i+=6){let[s,n,r,l,o,f]=e.subarray(i,i+6).map(Ft.svgRound);t.push(`C${s} ${n} ${r} ${l} ${o} ${f}`)}return t.join("")}serialize([t,e,i,a],s){let n=[],r=[],[l,o,f,h]=this.#u(),c,u,p,m,g,b,w,v,y;switch(this.#l){case 0:y=Ft._rescale,c=t,u=e+a,p=i,m=-a,g=t+l*i,b=e+(1-o-h)*a,w=t+(l+f)*i,v=e+(1-o)*a;break;case 90:y=Ft._rescaleAndSwap,c=t,u=e,p=i,m=a,g=t+o*i,b=e+l*a,w=t+(o+h)*i,v=e+(l+f)*a;break;case 180:y=Ft._rescale,c=t+i,u=e,p=-i,m=a,g=t+(1-l-f)*i,b=e+o*a,w=t+(1-l)*i,v=e+(o+h)*a;break;case 270:y=Ft._rescaleAndSwap,c=t+i,u=e+a,p=-i,m=-a,g=t+(1-o-h)*i,b=e+(1-l-f)*a,w=t+(1-o)*i,v=e+(1-l)*a}for(let{line:x,points:q}of this.#a)n.push(y(x,c,u,p,m,s?Array(x.length):null)),r.push(y(q,c,u,p,m,s?Array(q.length):null));return{lines:n,points:r,rect:[g,b,w,v]}}static deserialize(t,e,i,a,s,{paths:{lines:n,points:r},rotation:l,thickness:o}){let f=[],h,c,u,p,m;switch(l){case 0:m=Ft._rescale,h=-t/i,c=e/a+1,u=1/i,p=-1/a;break;case 90:m=Ft._rescaleAndSwap,h=-e/a,c=-t/i,u=1/a,p=1/i;break;case 180:m=Ft._rescale,h=t/i+1,c=-e/a,u=-1/i,p=1/a;break;case 270:m=Ft._rescaleAndSwap,h=e/a+1,c=t/i+1,u=-1/a,p=-1/i}if(!n){n=[];for(let b of r){let w=b.length;if(w===2){n.push(new Float32Array([NaN,NaN,NaN,NaN,b[0],b[1]]));continue}if(w===4){n.push(new Float32Array([NaN,NaN,NaN,NaN,b[0],b[1],NaN,NaN,NaN,NaN,b[2],b[3]]));continue}let v=new Float32Array(3*(w-2));n.push(v);let[y,x,q,j]=b.subarray(0,4);v.set([NaN,NaN,NaN,NaN,y,x],0);for(let A=4;A<w;A+=2){let S=b[A],C=b[A+1];v.set(Ft.createBezierPoints(y,x,q,j,S,C),(A-2)*3),[y,x,q,j]=[q,j,S,C]}}}for(let b=0,w=n.length;b<w;b++)f.push({line:m(n[b].map(v=>v??NaN),h,c,u,p),points:m(r[b].map(v=>v??NaN),h,c,u,p)});let g=new this.prototype.constructor;return g.build(f,i,a,1,l,o,s),g}#f(t=this.#o){let e=this.#i+t/2*this.#r;return this.#l%180==0?[e/this.#s,e/this.#n]:[e/this.#n,e/this.#s]}#u(){let[t,e,i,a]=this.#t,[s,n]=this.#f(0);return[t+s,e+n,i-2*s,a-2*n]}#h(){let t=this.#t=dn.slice();for(let{line:a}of this.#a){if(a.length<=12){for(let r=4,l=a.length;r<l;r+=6)qt.pointBoundingBox(a[r],a[r+1],t);continue}let s=a[4],n=a[5];for(let r=6,l=a.length;r<l;r+=6){let[o,f,h,c,u,p]=a.subarray(r,r+6);qt.bezierBoundingBox(s,n,o,f,h,c,u,p,t),s=u,n=p}}let[e,i]=this.#f();t[0]=Oe(t[0]-e,0,1),t[1]=Oe(t[1]-i,0,1),t[2]=Oe(t[2]+e,0,1),t[3]=Oe(t[3]+i,0,1),t[2]-=t[0],t[3]-=t[1]}get box(){return this.#t}updateProperty(t,e){return t==="stroke-width"?this.#d(e):null}#d(t){let[e,i]=this.#f();this.#o=t;let[a,s]=this.#f(),[n,r]=[a-e,s-i],l=this.#t;return l[0]-=n,l[1]-=r,l[2]+=2*n,l[3]+=2*r,l}updateParentDimensions([t,e],i){let[a,s]=this.#f();this.#s=t,this.#n=e,this.#r=i;let[n,r]=this.#f(),l=n-a,o=r-s,f=this.#t;return f[0]-=l,f[1]-=o,f[2]+=2*l,f[3]+=2*o,f}updateRotation(t){return this.#e=t,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#t.map(Ft.svgRound).join(" ")}get defaultProperties(){let[t,e]=this.#t;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ft.svgRound(t)} ${Ft.svgRound(e)}`}}}get rotationTransform(){let[,,t,e]=this.#t,i=0,a=0,s=0,n=0,r=0,l=0;switch(this.#e){case 90:a=e/t,s=-t/e,r=t;break;case 180:i=-1,n=-1,r=t,l=e;break;case 270:a=-e/t,s=t/e,l=e;break;default:return""}return`matrix(${i} ${a} ${s} ${n} ${Ft.svgRound(r)} ${Ft.svgRound(l)})`}getPathResizingSVGProperties([t,e,i,a]){let[s,n]=this.#f(),[r,l,o,f]=this.#t;if(Math.abs(o-s)<=Ft.PRECISION||Math.abs(f-n)<=Ft.PRECISION){let m=t+i/2-(r+o/2),g=e+a/2-(l+f/2);return{path:{"transform-origin":`${Ft.svgRound(t)} ${Ft.svgRound(e)}`,transform:`${this.rotationTransform} translate(${m} ${g})`}}}let h=(i-2*s)/(o-2*s),c=(a-2*n)/(f-2*n),u=o/i,p=f/a;return{path:{"transform-origin":`${Ft.svgRound(r)} ${Ft.svgRound(l)}`,transform:`${this.rotationTransform} scale(${u} ${p}) translate(${Ft.svgRound(s)} ${Ft.svgRound(n)}) scale(${h} ${c}) translate(${Ft.svgRound(-s)} ${Ft.svgRound(-n)})`}}}getPathResizedSVGProperties([t,e,i,a]){let[s,n]=this.#f(),r=this.#t,[l,o,f,h]=r;if(r[0]=t,r[1]=e,r[2]=i,r[3]=a,Math.abs(f-s)<=Ft.PRECISION||Math.abs(h-n)<=Ft.PRECISION){let g=t+i/2-(l+f/2),b=e+a/2-(o+h/2);for(let{line:w,points:v}of this.#a)Ft._translate(w,g,b,w),Ft._translate(v,g,b,v);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ft.svgRound(t)} ${Ft.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}let c=(i-2*s)/(f-2*s),u=(a-2*n)/(h-2*n),p=-c*(l+s)+t+s,m=-u*(o+n)+e+n;if(c!==1||u!==1||p!==0||m!==0)for(let{line:g,points:b}of this.#a)Ft._rescale(g,p,m,c,u,g),Ft._rescale(b,p,m,c,u,b);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ft.svgRound(t)} ${Ft.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([t,e],i){let[a,s]=i,n=this.#t,r=t-n[0],l=e-n[1];if(this.#s===a&&this.#n===s)for(let{line:o,points:f}of this.#a)Ft._translate(o,r,l,o),Ft._translate(f,r,l,f);else{let o=this.#s/a,f=this.#n/s;this.#s=a,this.#n=s;for(let{line:h,points:c}of this.#a)Ft._rescale(h,r,l,o,f,h),Ft._rescale(c,r,l,o,f,c);n[2]*=o,n[3]*=f}return n[0]=t,n[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Ft.svgRound(t)} ${Ft.svgRound(e)}`}}}get defaultSVGProperties(){let t=this.#t;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Ft.svgRound(t[0])} ${Ft.svgRound(t[1])}`,transform:this.rotationTransform||null},bbox:t}}},wg=class yg extends Nu{static{d(this,"InkDrawingOptions")}constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:He._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,i){e==="stroke-width"&&(i??=this["stroke-width"],i*=this._viewParameters.realScale),super.updateSVGProperty(e,i)}clone(){let e=new yg(this._viewParameters);return e.updateAll(this),e}},Nj=class kg extends Lu{static{d(this,"InkEditor")}static _type="ink";static _editorType=ie.INK;static _defaultDrawingOptions=null;constructor(e){super({...e,name:"inkEditor"}),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(e,i){He.initialize(e,i),this._defaultDrawingOptions=new wg(i.viewParameters)}static getDefaultDrawingOptions(e){let i=this._defaultDrawingOptions.clone();return i.updateProperties(e),i}static get supportMultipleDrawings(){return!0}static get typesMap(){return Tt(this,"typesMap",new Map([[ge.INK_THICKNESS,"stroke-width"],[ge.INK_COLOR,"stroke"],[ge.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance({x:e,y:i,box:[,,a,s],rotation:n}){return new Hj(e,i,a,s,n,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(e,i,a,s,n,r){return Rl.deserialize(e,i,a,s,n,r)}static async deserialize(e,i,a){let s=null;if(e instanceof Hu){let{data:{inkLists:r,rect:l,rotation:o,id:f,color:h,opacity:c,borderStyle:{rawWidth:u},popupRef:p,richText:m,contentsObj:g,creationDate:b,modificationDate:w},parent:{page:{pageNumber:v}}}=e;s=e={annotationType:ie.INK,color:Array.from(h),thickness:u,opacity:c,paths:{points:r},boxes:null,pageIndex:v-1,rect:l.slice(0),rotation:o,annotationElementId:f,id:f,deleted:!1,popupRef:p,richText:m,comment:g?.str||null,creationDate:b,modificationDate:w}}let n=await super.deserialize(e,i,a);return n._initialData=s,e.comment&&n.setCommentData(e),n}get toolbarButtons(){return this._colorPicker||=new ag(this),[["colorPicker",this._colorPicker]]}get colorType(){return ge.INK_COLOR}get colorAndOpacityType(){return ge.INK_COLOR_AND_OPACITY}get opacityType(){return ge.INK_OPACITY}updateParams(e,i){e===ge.INK_COLOR_AND_OPACITY?this._updateColorAndOpacity(i.color,i.opacity):super.updateParams(e,i)}static updateDefaultParams(e,i){e===ge.INK_COLOR_AND_OPACITY?(super.updateDefaultParams(ge.INK_COLOR,i.color),super.updateDefaultParams(ge.INK_OPACITY,i.opacity)):super.updateDefaultParams(e,i)}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();let{_drawId:e,_drawingOptions:i,parent:a}=this;i.updateSVGProperty("stroke-width"),a.drawLayer.updateProperties(e,i.toSVGProperties())}static onScaleChangingWhenDrawing(){let e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:e,thickness:i,opacity:a}){this._drawingOptions=kg.getDefaultDrawingOptions({stroke:qt.makeHexColor(...e),"stroke-width":i,"stroke-opacity":a})}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let{lines:i,points:a}=this.serializeDraw(e),{_drawingOptions:{stroke:s,"stroke-opacity":n,"stroke-width":r}}=this,l=Object.assign(super.serialize(e),{color:He._colorManager.convert(s),opacity:n,thickness:r,paths:{lines:i,points:a}});return this.addComment(l),e?(l.isCopy=!0,l):this.annotationElementId&&!this.#t(l)?null:(l.id=this.annotationElementId,l)}#t(e){let{color:i,thickness:a,opacity:s,pageIndex:n}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some((r,l)=>r!==i[l])||e.thickness!==a||e.opacity!==s||e.pageIndex!==n}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let{points:i,rect:a}=this.serializeDraw(!1);return e.updateEdited({rect:a,thickness:this._drawingOptions["stroke-width"],points:i,popup:this.comment}),null}},Nc=class extends Rl{static{d(this,"ContourDrawOutline")}toSVGPath(){let t=super.toSVGPath();return t.endsWith("Z")||(t+="Z"),t}},hn=class{static{d(this,"SignatureExtractor")}static#t={maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16};static#e(t,e,i,a){return i-=t,a-=e,i===0?a>0?0:4:i===1?a+6:2-a}static#i=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#a(t,e,i,a,s,n,r){let l=this.#e(i,a,s,n);for(let o=0;o<8;o++){let f=(-o+l-r+16)%8,h=this.#i[2*f],c=this.#i[2*f+1];if(t[(i+h)*e+(a+c)]!==0)return f}return-1}static#s(t,e,i,a,s,n,r){let l=this.#e(i,a,s,n);for(let o=0;o<8;o++){let f=(o+l+r+16)%8,h=this.#i[2*f],c=this.#i[2*f+1];if(t[(i+h)*e+(a+c)]!==0)return f}return-1}static#n(t,e,i,a){let s=t.length,n=new Int32Array(s);for(let f=0;f<s;f++)n[f]=+(t[f]<=a);for(let f=1;f<i-1;f++)n[f*e]=n[f*e+e-1]=0;for(let f=0;f<e;f++)n[f]=n[e*i-1-f]=0;let r=1,l,o=[];for(let f=1;f<i-1;f++){l=1;for(let h=1;h<e-1;h++){let c=f*e+h,u=n[c];if(u===0)continue;let p=f,m=h;if(u===1&&n[c-1]===0)r+=1,--m;else if(u>=1&&n[c+1]===0)r+=1,m+=1,u>1&&(l=u);else{u!==1&&(l=Math.abs(u));continue}let g=[h,f],b=m===h+1,w={isHole:b,points:g,id:r,parent:0};o.push(w);let v;for(let M of o)if(M.id===l){v=M;break}w.parent=v?v.isHole?b?v.parent:l:b?l:v.parent:b?l:0;let y=this.#a(n,e,f,h,p,m,0);if(y===-1){n[c]=-r,n[c]!==1&&(l=Math.abs(n[c]));continue}let x=this.#i[2*y],q=this.#i[2*y+1],j=f+x,A=h+q;p=j,m=A;let S=f,C=h;for(;;){let M=this.#s(n,e,S,C,p,m,1);x=this.#i[2*M],q=this.#i[2*M+1];let O=S+x,P=C+q;g.push(P,O);let $=S*e+C;if(n[$+1]===0?n[$]=-r:n[$]===1&&(n[$]=r),O===f&&P===h&&S===j&&C===A){n[c]!==1&&(l=Math.abs(n[c]));break}p=S,m=C,S=O,C=P}}}return o}static#r(t,e,i,a){if(i-e<=4){for(let j=e;j<i-2;j+=2)a.push(t[j],t[j+1]);return}let s=t[e],n=t[e+1],r=t[i-4]-s,l=t[i-3]-n,o=Math.hypot(r,l),f=r/o,h=l/o,c=f*n-h*s,u=l/r,p=1/o,m=Math.atan(u),g=Math.cos(m),b=Math.sin(m),w=p*(Math.abs(g)+Math.abs(b)),v=p*(1-w+w**2),y=Math.max(Math.atan(Math.abs(b+g)*v),Math.atan(Math.abs(b-g)*v)),x=0,q=e;for(let j=e+2;j<i-2;j+=2){let A=Math.abs(c-f*t[j+1]+h*t[j]);A>x&&(q=j,x=A)}x>(o*y)**2?(this.#r(t,e,q+2,a),this.#r(t,q,i,a)):a.push(s,n)}static#l(t){let e=[],i=t.length;return this.#r(t,0,i,e),e.push(t[i-2],t[i-1]),e.length<=4?null:e}static#o(t,e,i,a,s,n){let r=new Float32Array(n**2),l=-2*a**2,o=n>>1;for(let m=0;m<n;m++){let g=(m-o)**2;for(let b=0;b<n;b++)r[m*n+b]=Math.exp((g+(b-o)**2)/l)}let f=new Float32Array(256),h=-2*s**2;for(let m=0;m<256;m++)f[m]=Math.exp(m**2/h);let c=t.length,u=new Uint8Array(c),p=new Uint32Array(256);for(let m=0;m<i;m++)for(let g=0;g<e;g++){let b=m*e+g,w=t[b],v=0,y=0;for(let q=0;q<n;q++){let j=m+q-o;if(!(j<0||j>=i))for(let A=0;A<n;A++){let S=g+A-o;if(S<0||S>=e)continue;let C=t[j*e+S],M=r[q*n+A]*f[Math.abs(C-w)];v+=C*M,y+=M}}let x=u[b]=Math.round(v/y);p[x]++}return[u,p]}static#f(t){let e=new Uint32Array(256);for(let i of t)e[i]++;return e}static#u(t){let e=t.length,i=new Uint8ClampedArray(e>>2),a=-1/0,s=1/0;for(let r=0,l=i.length;r<l;r++){let o=i[r]=t[r<<2];a=Math.max(a,o),s=Math.min(s,o)}let n=255/(a-s);for(let r=0,l=i.length;r<l;r++)i[r]=(i[r]-s)*n;return i}static#h(t){let e,i=-1/0,a=-1/0,s=t.findIndex(l=>l!==0),n=s,r=s;for(e=s;e<256;e++){let l=t[e];l>i&&(e-n>a&&(a=e-n,r=e-1),i=l,n=e)}for(e=r-1;e>=0&&!(t[e]>t[e+1]);e--);return e}static#d(t){let e=t,{width:i,height:a}=t,{maxDim:s}=this.#t,n=i,r=a;if(i>s||a>s){let f=i,h=a,c=Math.log2(Math.max(i,a)/s),u=Math.floor(c);c=c===u?u-1:u;for(let m=0;m<c;m++){n=Math.ceil(f/2),r=Math.ceil(h/2);let g=new OffscreenCanvas(n,r);g.getContext("2d").drawImage(t,0,0,f,h,0,0,n,r),f=n,h=r,t!==e&&t.close(),t=g.transferToImageBitmap()}let p=Math.min(s/n,s/r);n=Math.round(n*p),r=Math.round(r*p)}let l=new OffscreenCanvas(n,r).getContext("2d",{willReadFrequently:!0});l.fillStyle="white",l.fillRect(0,0,n,r),l.filter="grayscale(1)",l.drawImage(t,0,0,t.width,t.height,0,0,n,r);let o=l.getImageData(0,0,n,r).data;return[this.#u(o),n,r]}static extractContoursFromText(t,{fontFamily:e,fontStyle:i,fontWeight:a},s,n,r,l){let o=new OffscreenCanvas(1,1),f=o.getContext("2d",{alpha:!1}),h=f.font=`${i} ${a} 200px ${e}`,{actualBoundingBoxLeft:c,actualBoundingBoxRight:u,actualBoundingBoxAscent:p,actualBoundingBoxDescent:m,fontBoundingBoxAscent:g,fontBoundingBoxDescent:b,width:w}=f.measureText(t),v=1.5,y=Math.ceil(Math.max(Math.abs(c)+Math.abs(u)||0,w)*v),x=Math.ceil(Math.max(Math.abs(p)+Math.abs(m)||200,Math.abs(g)+Math.abs(b)||200)*v);o=new OffscreenCanvas(y,x),f=o.getContext("2d",{alpha:!0,willReadFrequently:!0}),f.font=h,f.filter="grayscale(1)",f.fillStyle="white",f.fillRect(0,0,y,x),f.fillStyle="black",f.fillText(t,y*.5/2,x*1.5/2);let q=this.#u(f.getImageData(0,0,y,x).data),j=this.#f(q),A=this.#h(j),S=this.#n(q,y,x,A);return this.processDrawnLines({lines:{curves:S,width:y,height:x},pageWidth:s,pageHeight:n,rotation:r,innerMargin:l,mustSmooth:!0,areContours:!0})}static process(t,e,i,a,s){let[n,r,l]=this.#d(t),[o,f]=this.#o(n,r,l,Math.hypot(r,l)*this.#t.sigmaSFactor,this.#t.sigmaR,this.#t.kernelSize),h=this.#h(f),c=this.#n(o,r,l,h);return this.processDrawnLines({lines:{curves:c,width:r,height:l},pageWidth:e,pageHeight:i,rotation:a,innerMargin:s,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:t,pageWidth:e,pageHeight:i,rotation:a,innerMargin:s,mustSmooth:n,areContours:r}){a%180!=0&&([e,i]=[i,e]);let{curves:l,width:o,height:f}=t,h=t.thickness??0,c=[],u=Math.min(e/o,i/f),p=u/e,m=u/i,g=[];for(let{points:w}of l){let v=n?this.#l(w):w;if(!v)continue;g.push(v);let y=v.length,x=new Float32Array(y),q=new Float32Array(3*(y===2?2:y-2));if(c.push({line:q,points:x}),y===2){x[0]=v[0]*p,x[1]=v[1]*m,q.set([NaN,NaN,NaN,NaN,x[0],x[1]],0);continue}let[j,A,S,C]=v;j*=p,A*=m,S*=p,C*=m,x.set([j,A,S,C],0),q.set([NaN,NaN,NaN,NaN,j,A],0);for(let M=4;M<y;M+=2){let O=x[M]=v[M]*p,P=x[M+1]=v[M+1]*m;q.set(Ft.createBezierPoints(j,A,S,C,O,P),(M-2)*3),[j,A,S,C]=[S,C,O,P]}}if(c.length===0)return null;let b=r?new Nc:new Rl;return b.build(c,e,i,1,a,r?0:h,s),{outline:b,newCurves:g,areContours:r,thickness:h,width:o,height:f}}static async compressSignature({outlines:t,areContours:e,thickness:i,width:a,height:s}){let n=1/0,r=-1/0,l=0;for(let b of t){l+=b.length;for(let w=2,v=b.length;w<v;w++){let y=b[w]-b[w-2];n=Math.min(n,y),r=Math.max(r,y)}}let o;o=n>=-128&&r<=127?Int8Array:n>=-32768&&r<=32767?Int16Array:Int32Array;let f=t.length,h=8+3*f,c=new Uint32Array(h),u=0;c[u++]=h*Uint32Array.BYTES_PER_ELEMENT+(l-2*f)*o.BYTES_PER_ELEMENT,c[u++]=0,c[u++]=a,c[u++]=s,c[u++]=+!e,c[u++]=Math.max(0,Math.floor(i??0)),c[u++]=f,c[u++]=o.BYTES_PER_ELEMENT;for(let b of t)c[u++]=b.length-2,c[u++]=b[0],c[u++]=b[1];let p=new CompressionStream("deflate-raw"),m=p.writable.getWriter();await m.ready,m.write(c);let g=o.prototype.constructor;for(let b of t){let w=new g(b.length-2);for(let v=2,y=b.length;v<y;v++)w[v-2]=b[v]-b[v-2];m.write(w)}return m.close(),(await new Response(p.readable).bytes()).toBase64()}static async decompressSignature(t){try{let e=Uint8Array.fromBase64(t),{readable:i,writable:a}=new DecompressionStream("deflate-raw"),s=a.getWriter();await s.ready,s.write(e).then(async()=>{await s.ready,await s.close()}).catch(()=>{});let n=null,r=0;for await(let v of i)n||=new Uint8Array(new Uint32Array(v.buffer,0,4)[0]),n.set(v,r),r+=v.length;let l=new Uint32Array(n.buffer,0,n.length>>2),o=l[1];if(o!==0)throw Error(`Invalid version: ${o}`);let f=l[2],h=l[3],c=l[4]===0,u=l[5],p=l[6],m=l[7],g=[],b=(8+3*p)*Uint32Array.BYTES_PER_ELEMENT,w;switch(m){case Int8Array.BYTES_PER_ELEMENT:w=new Int8Array(n.buffer,b);break;case Int16Array.BYTES_PER_ELEMENT:w=new Int16Array(n.buffer,b);break;case Int32Array.BYTES_PER_ELEMENT:w=new Int32Array(n.buffer,b)}r=0;for(let v=0;v<p;v++){let y=l[3*v+8],x=new Float32Array(y+2);g.push(x);for(let q=0;q<2;q++)x[q]=l[3*v+8+q+1];for(let q=0;q<y;q++)x[q+2]=x[q]+w[r++]}return{areContours:c,thickness:u,outlines:g,width:f,height:h}}catch(e){return le(`decompressSignature: ${e}`),null}}},Lj=class vg extends Nu{static{d(this,"SignatureOptions")}constructor(){super(),super.updateProperties({fill:He._defaultLineColor,"stroke-width":0})}clone(){let e=new vg;return e.updateAll(this),e}},zj=class jg extends wg{static{d(this,"DrawnSignatureOptions")}constructor(e){super(e),super.updateProperties({stroke:He._defaultLineColor,"stroke-width":1})}clone(){let e=new jg(this._viewParameters);return e.updateAll(this),e}},Uj=class ss extends Lu{static{d(this,"SignatureEditor")}#t=!1;#e=null;#i=null;#a=null;static _type="signature";static _editorType=ie.SIGNATURE;static _defaultDrawingOptions=null;constructor(e){super({...e,mustBeCommitted:!0,name:"signatureEditor"}),this._willKeepAspectRatio=!0,this.#i=e.signatureData||null,this.#e=null,this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(e,i){He.initialize(e,i),this._defaultDrawingOptions=new Lj,this._defaultDrawnSignatureOptions=new zj(i.viewParameters)}static getDefaultDrawingOptions(e){let i=this._defaultDrawingOptions.clone();return i.updateProperties(e),i}static get supportMultipleDrawings(){return!1}static get typesMap(){return Tt(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!this.#e}}static computeTelemetryFinalData(e){let i=e.get("hasDescription");return{hasAltText:i.get(!0)??0,hasNoAltText:i.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let e,i,{_isCopy:a}=this;if(a&&(this._isCopy=!1,e=this.x,i=this.y),super.render(),this._drawId===null)if(this.#i){let{lines:s,mustSmooth:n,areContours:r,description:l,uuid:o,heightInPage:f}=this.#i,{rawDims:{pageWidth:h,pageHeight:c},rotation:u}=this.parent.viewport,p=hn.processDrawnLines({lines:s,pageWidth:h,pageHeight:c,rotation:u,innerMargin:ss._INNER_MARGIN,mustSmooth:n,areContours:r});this.addSignature(p,f,l,o)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:this.#e||""}));return a&&(this._isCopy=!0,this._moveAfterPaste(e,i)),this.div}setUuid(e){this.#a=e,this.addEditToolbar()}getUuid(){return this.#a}get description(){return this.#e}set description(e){this.#e=e,this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:e})),super.addEditToolbar().then(i=>{i?.updateEditSignatureButton(e)}))}getSignaturePreview(){let{newCurves:e,areContours:i,thickness:a,width:s,height:n}=this.#i,r=Math.max(s,n);return{areContours:i,outline:hn.processDrawnLines({lines:{curves:e.map(l=>({points:l})),thickness:a,width:s,height:n},pageWidth:r,pageHeight:r,rotation:0,innerMargin:0,mustSmooth:!1,areContours:i}).outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(e,i,a,s){let{x:n,y:r}=this,{outline:l}=this.#i=e;this.#t=l instanceof Nc,this.description=a;let o;this.#t?o=ss.getDefaultDrawingOptions():(o=ss._defaultDrawnSignatureOptions.clone(),o.updateProperties({"stroke-width":l.thickness})),this._addOutlines({drawOutlines:l,drawingOptions:o});let[,f]=this.pageDimensions,h=i/f;h=h>=1?.5:h,this.width*=h/this.height,this.width>=1&&(h*=.9/this.width,this.width=.9),this.height=h,this.setDims(),this.x=n,this.y=r,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(s),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!s,hasDescription:!!a}}),this.div.hidden=!1}getFromImage(e){let{rawDims:{pageWidth:i,pageHeight:a},rotation:s}=this.parent.viewport;return hn.process(e,i,a,s,ss._INNER_MARGIN)}getFromText(e,i){let{rawDims:{pageWidth:a,pageHeight:s},rotation:n}=this.parent.viewport;return hn.extractContoursFromText(e,i,a,s,n,ss._INNER_MARGIN)}getDrawnSignature(e){let{rawDims:{pageWidth:i,pageHeight:a},rotation:s}=this.parent.viewport;return hn.processDrawnLines({lines:e,pageWidth:i,pageHeight:a,rotation:s,innerMargin:ss._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:e,thickness:i}){e?this._drawingOptions=ss.getDefaultDrawingOptions():(this._drawingOptions=ss._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":i}))}serialize(e=!1){if(this.isEmpty())return null;let{lines:i,points:a}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":s}}=this,n=Object.assign(super.serialize(e),{isSignature:!0,areContours:this.#t,color:[0,0,0],thickness:this.#t?0:s});return this.addComment(n),e?(n.paths={lines:i,points:a},n.uuid=this.#a,n.isCopy=!0):n.lines=i,this.#e&&(n.accessibilityData={type:"Figure",alt:this.#e}),n}static deserializeDraw(e,i,a,s,n,r){return r.areContours?Nc.deserialize(e,i,a,s,n,r):Rl.deserialize(e,i,a,s,n,r)}static async deserialize(e,i,a){let s=await super.deserialize(e,i,a);return s.#t=e.areContours,s.description=e.accessibilityData?.alt||"",s.#a=e.uuid,s}},Gj=class extends He{static{d(this,"StampEditor")}#t=null;#e=null;#i=null;#a=null;#s=null;#n="";#r=null;#l=!1;#o=null;#f=!1;#u=!1;static _type="stamp";static _editorType=ie.STAMP;constructor(t){super({...t,name:"stampEditor"}),this.#a=t.bitmapUrl,this.#s=t.bitmapFile,this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(t,e){He.initialize(t,e)}static isHandlingMimeForPasting(t){return zo.has(t)}static paste(t,e){e.pasteEditor({mode:ie.STAMP},{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(t){let e=t.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}#h(t,e=!1){t?(this.#t=t.bitmap,e||(this.#e=t.id,this.#f=t.isSvg),t.file&&(this.#n=t.file.name),this.#g()):this.remove()}#d(){if(this.#i=null,this._uiManager.enableWaiting(!1),this.#r)if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#t)this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#t){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(t=null,e=!0){if(this.hasAltTextData())return null;let{mlManager:i}=this._uiManager;if(!i)throw Error("No ML.");if(!await i.isEnabledFor("altText"))throw Error("ML isn't enabled for alt text.");let{data:a,width:s,height:n}=t||this.copyCanvas(null,null,!0).imageData,r=await i.guess({name:"altText",request:{data:a,width:s,height:n,channels:a.length/(s*n)}});if(!r)throw Error("No response from the AI service.");if(r.error)throw Error("Error from the AI service.");if(r.cancel)return null;if(!r.output)throw Error("No valid response from the AI service.");let l=r.output;return await this.setGuessedAltText(l),e&&!this.hasAltTextData()&&(this.altTextData={alt:l,decorative:!1}),l}#p(){if(this.#e){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#e).then(i=>this.#h(i,!0)).finally(()=>this.#d());return}if(this.#a){let i=this.#a;this.#a=null,this._uiManager.enableWaiting(!0),this.#i=this._uiManager.imageManager.getFromUrl(i).then(a=>this.#h(a)).finally(()=>this.#d());return}if(this.#s){let i=this.#s;this.#s=null,this._uiManager.enableWaiting(!0),this.#i=this._uiManager.imageManager.getFromFile(i).then(a=>this.#h(a)).finally(()=>this.#d());return}let t=document.createElement("input");t.type="file",t.accept=zo.keys().join(",");let e=this._uiManager._signal;this.#i=new Promise(i=>{t.addEventListener("change",async()=>{if(!t.files||t.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);let a=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#h(a)}i()},{signal:e}),t.addEventListener("cancel",()=>{this.remove(),i()},{signal:e})}).finally(()=>this.#d()),t.click()}remove(){this.#e&&(this.#t=null,this._uiManager.imageManager.deleteId(this.#e),this.#r?.remove(),this.#r=null,this.#o&&=(clearTimeout(this.#o),null)),super.remove()}rebuild(){this.parent?(super.rebuild(),this.div!==null&&(this.#e&&this.#r===null&&this.#p(),this.isAttachedToDOM||this.parent.add(this))):this.#e&&this.#p()}onceAdded(t){this._isDraggable=!0,t&&this.div.focus()}isEmpty(){return!(this.#i||this.#t||this.#a||this.#s||this.#e||this.#l)}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let t,e;return this._isCopy&&(t=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),this.#l||(this.#t?this.#g():this.#p()),this._isCopy&&this._moveAfterPaste(t,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(t,e){let{id:i,bitmap:a}=this._uiManager.imageManager.getFromCanvas(t,e);e.remove(),i&&this._uiManager.imageManager.isValidId(i)&&(this.#e=i,a&&(this.#t=a),this.#l=!1,this.#g())}_onResized(){this.onScaleChanging()}onScaleChanging(){this.parent&&(this.#o!==null&&clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#o=null,this.#m()},200))}#g(){let{div:t}=this,{width:e,height:i}=this.#t,[a,s]=this.pageDimensions,n=.75;if(this.width)e=this.width*a,i=this.height*s;else if(e>n*a||i>n*s){let l=Math.min(n*a/e,n*s/i);e*=l,i*=l}this._uiManager.enableWaiting(!1);let r=this.#r=document.createElement("canvas");r.setAttribute("role","img"),this.addContainer(r),this.width=e/a,this.height=i/s,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(t.hidden=!1),this.#m(),this.#u||=(this.parent.addUndoableEditor(this),!0),this._reportTelemetry({action:"inserted_image"}),this.#n&&this.div.setAttribute("aria-description",this.#n),this.annotationElementId||this._uiManager.a11yAlert(He._l10nAlert.stamp)}copyCanvas(t,e,i=!1){t||=224;let{width:a,height:s}=this.#t,n=new Xa,r=this.#t,l=a,o=s,f=null;if(e){if(a>e||s>e){let x=Math.min(e/a,e/s);l=Math.floor(a*x),o=Math.floor(s*x)}f=document.createElement("canvas");let c=f.width=Math.ceil(l*n.sx),u=f.height=Math.ceil(o*n.sy);this.#f||(r=this.#c(c,u));let p=f.getContext("2d");p.filter=this._uiManager.hcmFilter;let m="white",g="#cfcfd8";this._uiManager.hcmFilter==="none"?Kk.isDarkMode&&(m="#8f8f9d",g="#42414d"):g="black";let b=15*n.sx,w=15*n.sy,v=new OffscreenCanvas(b*2,w*2),y=v.getContext("2d");y.fillStyle=m,y.fillRect(0,0,b*2,w*2),y.fillStyle=g,y.fillRect(0,0,b,w),y.fillRect(b,w,b,w),p.fillStyle=p.createPattern(v,"repeat"),p.fillRect(0,0,c,u),p.drawImage(r,0,0,r.width,r.height,0,0,c,u)}let h=null;if(i){let c,u;if(n.symmetric&&r.width<t&&r.height<t)c=r.width,u=r.height;else if(r=this.#t,a>t||s>t){let m=Math.min(t/a,t/s);c=Math.floor(a*m),u=Math.floor(s*m),this.#f||(r=this.#c(c,u))}let p=new OffscreenCanvas(c,u).getContext("2d",{willReadFrequently:!0});p.drawImage(r,0,0,r.width,r.height,0,0,c,u),h={width:c,height:u,data:p.getImageData(0,0,c,u).data}}return{canvas:f,width:l,height:o,imageData:h}}#c(t,e){let{width:i,height:a}=this.#t,s=i,n=a,r=this.#t;for(;s>2*t||n>2*e;){let l=s,o=n;s>2*t&&(s=Math.ceil(s/2)),n>2*e&&(n=Math.ceil(n/2));let f=new OffscreenCanvas(s,n);f.getContext("2d").drawImage(r,0,0,l,o,0,0,s,n),r=f.transferToImageBitmap()}return r}#m(){let[t,e]=this.parentDimensions,{width:i,height:a}=this,s=new Xa,n=Math.ceil(i*t*s.sx),r=Math.ceil(a*e*s.sy),l=this.#r;if(!l||l.width===n&&l.height===r)return;l.width=n,l.height=r;let o=this.#f?this.#t:this.#c(n,r),f=l.getContext("2d");f.filter=this._uiManager.hcmFilter,f.drawImage(o,0,0,o.width,o.height,0,0,n,r)}#b(t){if(t){if(this.#f){let i=this._uiManager.imageManager.getSvgUrl(this.#e);if(i)return i}let e=document.createElement("canvas");return{width:e.width,height:e.height}=this.#t,e.getContext("2d").drawImage(this.#t,0,0),e.toDataURL()}if(this.#f){let[e,i]=this.pageDimensions,a=Math.round(this.width*e*An.PDF_TO_CSS_UNITS),s=Math.round(this.height*i*An.PDF_TO_CSS_UNITS),n=new OffscreenCanvas(a,s);return n.getContext("2d").drawImage(this.#t,0,0,this.#t.width,this.#t.height,0,0,a,s),n.transferToImageBitmap()}return structuredClone(this.#t)}static async deserialize(t,e,i){let a=null,s=!1;if(t instanceof og){let{data:{rect:m,rotation:g,id:b,structParent:w,popupRef:v,richText:y,contentsObj:x,creationDate:q,modificationDate:j},container:A,parent:{page:{pageNumber:S}},canvas:C}=t,M,O;C?(delete t.canvas,{id:M,bitmap:O}=i.imageManager.getFromCanvas(A.id,C),C.remove()):(s=!0,t._hasNoCanvas=!0);let P=(await e._structTree.getAriaAttributes(`${tr}${b}`))?.get("aria-label")||"";a=t={annotationType:ie.STAMP,bitmapId:M,bitmap:O,pageIndex:S-1,rect:m.slice(0),rotation:g,annotationElementId:b,id:b,deleted:!1,accessibilityData:{decorative:!1,altText:P},isSvg:!1,structParent:w,popupRef:v,richText:y,comment:x?.str||null,creationDate:q,modificationDate:j}}let n=await super.deserialize(t,e,i),{rect:r,bitmap:l,bitmapUrl:o,bitmapId:f,isSvg:h,accessibilityData:c}=t;s?(i.addMissingCanvas(t.id,n),n.#l=!0):f&&i.imageManager.isValidId(f)?(n.#e=f,l&&(n.#t=l)):n.#a=o,n.#f=h;let[u,p]=n.pageDimensions;return n.width=(r[2]-r[0])/u,n.height=(r[3]-r[1])/p,c&&(n.altTextData=c),n._initialData=a,t.comment&&n.setCommentData(t),n.#u=!!a,n}serialize(t=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let i=Object.assign(super.serialize(t),{bitmapId:this.#e,isSvg:this.#f});if(this.addComment(i),t)return i.bitmapUrl=this.#b(!0),i.accessibilityData=this.serializeAltText(!0),i.isCopy=!0,i;let{decorative:a,altText:s}=this.serializeAltText(!1);if(!a&&s&&(i.accessibilityData={type:"Figure",alt:s}),this.annotationElementId){let r=this.#w(i);return r.isSame?null:(r.isSameAltText?delete i.accessibilityData:i.accessibilityData.structParent=this._initialData.structParent??-1,i.id=this.annotationElementId,delete i.bitmapId,i)}if(e===null)return i;e.stamps||=new Map;let n=this.#f?(i.rect[2]-i.rect[0])*(i.rect[3]-i.rect[1]):null;if(!e.stamps.has(this.#e))e.stamps.set(this.#e,{area:n,serialized:i}),i.bitmap=this.#b(!1);else if(this.#f){let r=e.stamps.get(this.#e);n>r.area&&(r.area=n,r.serialized.bitmap.close(),r.serialized.bitmap=this.#b(!1))}return i}#w(t){let{pageIndex:e,accessibilityData:{altText:i}}=this._initialData,a=t.pageIndex===e,s=(t.accessibilityData?.alt||"")===i;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&a&&s,isSameAltText:s}}renderAnnotationElement(t){return this.deleted?(t.hide(),null):(t.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}},qg=class Cs{static{d(this,"AnnotationEditorLayer")}#t;#e=!1;#i=null;#a=null;#s=null;#n=new Map;#r=!1;#l=!1;#o=!1;#f=null;#u=null;#h=null;#d=null;#p=null;#g=-1;#c;static _initialized=!1;static#m=new Map([Dj,Nj,Gj,Y1,Uj].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:i,div:a,structTreeLayer:s,accessibilityManager:n,annotationLayer:r,drawLayer:l,textLayer:o,viewport:f,l10n:h}){let c=[...Cs.#m.values()];if(!Cs._initialized){Cs._initialized=!0;for(let u of c)u.initialize(h,e)}e.registerEditorTypes(c),this.#c=e,this.pageIndex=i,this.div=a,this.#t=n,this.#i=r,this.viewport=f,this.#h=o,this.drawLayer=l,this._structTree=s,this.#c.addLayer(this)}get isEmpty(){return this.#n.size===0}get isInvisible(){return this.isEmpty&&this.#c.getMode()===ie.NONE}updateToolbar(e){this.#c.updateToolbar(e)}updateMode(e=this.#c.getMode()){switch(this.#q(),e){case ie.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case ie.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case ie.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);let{classList:i}=this.div;if(i.toggle("nonEditing",!1),e===ie.POPUP)i.toggle("commentEditing",!0);else{i.toggle("commentEditing",!1);for(let a of Cs.#m.values())i.toggle(`${a._type}Editing`,e===a._editorType)}this.div.hidden=!1}hasTextLayer(e){return e===this.#h?.div}setEditingState(e){this.#c.setEditingState(e)}addCommands(e){this.#c.addCommands(e)}cleanUndoStack(e){this.#c.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#i?.togglePointerEvents(e)}get#b(){return this.#n.size===0?this.#c.getEditors(this.pageIndex):this.#n.values()}async enable(){this.#o=!0,this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),this.#p?.abort(),this.#p=null;let e=new Set;for(let a of this.#b)a.enableEditing(),a.show(!0),a.annotationElementId&&(this.#c.removeChangedExistingAnnotation(a),e.add(a.annotationElementId));let i=this.#i;if(i)for(let a of i.getEditableAnnotations()){if(a.hide(),this.#c.isDeletedAnnotationElement(a.data.id)||e.has(a.data.id))continue;let s=await this.deserialize(a);s&&(this.addOrRebuild(s),s.enableEditing())}this.#o=!1,this.#c._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(this.#l=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),this.#h&&!this.#p){this.#p=new AbortController;let s=this.#c.combinedSignal(this.#p);this.#h.div.addEventListener("pointerdown",n=>{let{clientX:r,clientY:l,timeStamp:o}=n;if(o-this.#g>500){this.#g=o;return}this.#g=-1;let{classList:f}=this.div;f.toggle("getElements",!0);let h=document.elementsFromPoint(r,l);if(f.toggle("getElements",!1),!this.div.contains(h[0]))return;let c,u=RegExp(`^${ur}[0-9]+$`);for(let m of h)if(u.test(m.id)){c=m.id;break}if(!c)return;let p=this.#n.get(c);p?.annotationElementId===null&&(ai(n),p.dblclick(n))},{signal:s,capture:!0})}let e=this.#i,i=[];if(e){let s=new Map,n=new Map;for(let r of this.#b)r.disableEditing(),r.annotationElementId?r.serialize()===null?(n.set(r.annotationElementId,r),this.getEditableAnnotation(r.annotationElementId)?.show(),r.remove()):s.set(r.annotationElementId,r):i.push(r);for(let r of e.getEditableAnnotations()){let{id:l}=r.data;if(this.#c.isDeletedAnnotationElement(l)){r.updateEdited({deleted:!0});continue}let o=n.get(l);o?(o.resetAnnotationElement(r),o.show(!1),r.show()):(o=s.get(l),o&&(this.#c.addChangedExistingAnnotation(o),o.renderAnnotationElement(r)&&o.show(!1)),r.show())}}this.#q(),this.isEmpty&&(this.div.hidden=!0);let{classList:a}=this.div;for(let s of Cs.#m.values())a.remove(`${s._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),e?.updateFakeAnnotations(i),this.#l=!1}getEditableAnnotation(e){return this.#i?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#c.getActive()!==e&&this.#c.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#h?.div&&!this.#d){this.#d=new AbortController;let e=this.#c.combinedSignal(this.#d);this.#h.div.addEventListener("pointerdown",this.#w.bind(this),{signal:e}),this.#h.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#h?.div&&this.#d&&(this.#d.abort(),this.#d=null,this.#h.div.classList.remove("highlighting"))}#w(e){this.#c.unselectAll();let{target:i}=e;if(i===this.#h.div||(i.getAttribute("role")==="img"||i.classList.contains("endOfContent")||i.classList.contains("textLayerImages")||i.classList.contains("textLayerImagePlaceholder"))&&this.#h.div.contains(i)){let{isMac:a}=Te.platform;if(e.button!==0||e.ctrlKey&&a)return;this.#c.showAllEditors("highlight",!0,!0),Y1.startDrawing(this,this.#c,this.#c.direction==="ltr",e),e.preventDefault()}}enableClick(){if(this.#a)return;this.#a=new AbortController;let e=this.#c.combinedSignal(this.#a);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});let i=this.pointerup.bind(this);this.div.addEventListener("pointerup",i,{signal:e}),this.div.addEventListener("pointercancel",i,{signal:e})}disableClick(){this.#a?.abort(),this.#a=null}attach(e){this.#n.set(e.id,e);let{annotationElementId:i}=e;i&&this.#c.isDeletedAnnotationElement(i)&&this.#c.removeDeletedAnnotationElement(e)}detach(e){this.#n.delete(e.id),this.#t?.removePointerInTextLayer(e.contentDiv),!this.#l&&e.annotationElementId&&this.#c.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#c.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#c.addDeletedAnnotationElement(e),He.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),this.#c.addEditor(e),this.attach(e),!e.isAttachedToDOM){let i=e.render();this.div.append(i),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#o),this.#c.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;let{activeElement:i}=document;e.div.contains(i)&&!this.#s&&(e._focusEventsAllowed=!1,this.#s=setTimeout(()=>{this.#s=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#c._signal}),i.focus())},0)),e._structTreeParentId=this.#t?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){let i=d(()=>e._uiManager.rebuild(e),"cmd"),a=d(()=>{e.remove()},"undo");this.addCommands({cmd:i,undo:a,mustExec:!1})}getEditorByUID(e){for(let i of this.#n.values())if(i.uid===e)return i;return null}get#y(){return Cs.#m.get(this.#c.getMode())}combinedSignal(e){return this.#c.combinedSignal(e)}#k(e){let i=this.#y;return i?new i.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#y?.canCreateNewEmptyEditor()}async pasteEditor(e,i){this.updateToolbar(e),await this.#c.updateMode(e.mode);let{offsetX:a,offsetY:s}=this.#v(),n=this.#c.getId(),r=this.#k({parent:this,id:n,x:a,y:s,uiManager:this.#c,isCentered:!0,...i});r&&this.add(r)}async deserialize(e){return await Cs.#m.get(e.annotationType??e.annotationEditorType)?.deserialize(e,this,this.#c)||null}createAndAddNewEditor(e,i,a={}){let s=this.#c.getId(),n=this.#k({parent:this,id:s,x:e.offsetX,y:e.offsetY,uiManager:this.#c,isCentered:i,...a});return n&&this.add(n),n}get boundingClientRect(){return this.div.getBoundingClientRect()}#v(){let{x:e,y:i,width:a,height:s}=this.boundingClientRect,n=Math.max(0,e),r=Math.max(0,i),l=Math.min(window.innerWidth,e+a),o=Math.min(window.innerHeight,i+s),f=(n+l)/2-e,h=(r+o)/2-i,[c,u]=this.viewport.rotation%180==0?[f,h]:[h,f];return{offsetX:c,offsetY:u}}addNewEditor(e={}){this.createAndAddNewEditor(this.#v(),!0,e)}setSelected(e){this.#c.setSelected(e)}toggleSelected(e){this.#c.toggleSelected(e)}unselect(e){this.#c.unselect(e)}pointerup(e){let{isMac:i}=Te.platform;if(e.button!==0||e.ctrlKey&&i||e.target!==this.div||!this.#r||(this.#r=!1,this.#y?.isDrawer&&this.#y.supportMultipleDrawings))return;if(!this.#e){this.#e=!0;return}let a=this.#c.getMode();a===ie.STAMP||a===ie.POPUP||a===ie.SIGNATURE?this.#c.unselectAll():this.createAndAddNewEditor(e,!1)}pointerdown(e){if(this.#c.getMode()===ie.HIGHLIGHT&&this.enableTextSelection(),this.#r){this.#r=!1;return}let{isMac:i}=Te.platform;if(e.button!==0||e.ctrlKey&&i||e.target!==this.div)return;if(this.#r=!0,this.#y?.isDrawer){this.startDrawingSession(e);return}let a=this.#c.getActive();this.#e=!a||a.isEmpty()}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),this.#f){this.#y.startDrawing(this,this.#c,!1,e);return}this.#c.setCurrentDrawingSession(this),this.#f=new AbortController;let i=this.#c.combinedSignal(this.#f);this.div.addEventListener("blur",({relatedTarget:a})=>{a&&!this.div.contains(a)&&(this.#u=null,this.commitOrRemove())},{signal:i}),this.#y.startDrawing(this,this.#c,!1,e)}pause(e){if(e){let{activeElement:i}=document;this.div.contains(i)&&(this.#u=i)}else this.#u&&setTimeout(()=>{this.#u?.focus(),this.#u=null},0)}endDrawingSession(e=!1){return this.#f?(this.#c.setCurrentDrawingSession(null),this.#f.abort(),this.#f=null,this.#u=null,this.#y.endDrawing(e)):null}findNewParent(e,i,a){let s=this.#c.findParent(i,a);return s===null||s===this?!1:(s.changeParent(e),!0)}commitOrRemove(){return this.#f?(this.endDrawingSession(),!0):!1}onScaleChanging(){this.#f&&this.#y.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#c.getActive()?.parent===this&&(this.#c.commitOrRemove(),this.#c.setActiveEditor(null)),this.#s&&=(clearTimeout(this.#s),null);for(let e of this.#n.values())this.#t?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#n.clear(),this.#c.removeLayer(this)}#q(){for(let e of this.#n.values())e.isEmpty()&&e.remove()}async render({viewport:e}){this.viewport=e,zs(this.div,e);for(let i of this.#c.getEditors(this.pageIndex))this.add(i),i.rebuild();await this.#c.findClonesForPage(this),this.div.hidden=this.isEmpty,this.updateMode()}update({viewport:e}){this.#c.commitOrRemove(),this.#q();let i=this.viewport.rotation,a=e.rotation;if(this.viewport=e,zs(this.div,{rotation:a}),i!==a)for(let s of this.#n.values())s.rotate(a)}get pageDimensions(){let{pageWidth:e,pageHeight:i}=this.viewport.rawDims;return[e,i]}get scale(){return this.#c.viewParameters.realScale}};d($j,"compareTextLayers");d(fo,"getTextLayer");d(Wj,"isPointBefore");d(J1,"normalizeEdgeBoundary");xg=class se{static{d(this,"DrawLayer")}#t=null;#e=new Map;#i=null;#a=null;#s=null;#n=null;#r=new Map;static#l=0;static#o=0;static#f=null;static#u=new Set;static#h=!1;static#d=new Set;static#p=new WeakMap;constructor({filterFactory:e=null,pageColors:i=null,pageIndex:a,textLayer:s=null}){if(this.pageIndex=a,this.#a=e,this.#s=i,s){let n=se.#p.get(s);if(n?.selectionDiv&&(n.selectionDiv.remove(),se.#u.delete(n.selectionDiv)),se.#p.set(s,{drawLayer:this}),se.#d.add(s),this.#i=s,this.#n=new MutationObserver(r=>{if(this.#t&&this.#i?.isConnected&&se.#c()){for(let{addedNodes:l}of r)for(let o of l)if(o.nodeType===Node.ELEMENT_NODE&&o.classList.contains("endOfContent")){se.#b();return}}}),this.#n.observe(s,{childList:!0}),se.#f===null){se.#f=new AbortController;let{signal:r}=se.#f;document.addEventListener("selectionchange",se.#b.bind(se),{signal:r}),document.addEventListener("pointerdown",()=>{se.#h=!0},{signal:r}),document.addEventListener("pointerup",()=>{se.#h=!1},{signal:r}),window.addEventListener("blur",()=>{se.#h=!1},{signal:r})}}}setParent(e){if(!this.#t)this.#t=e,this.#i?.isConnected&&se.#c()&&se.#b();else if(this.#t!==e){if(this.#e.size>0)for(let i of this.#e.values())i.remove(),e.append(i);this.#t=e}}static#g(e){let i=this.#p.get(e);i?.selectionDiv&&(i.selectionDiv.remove(),this.#u.delete(i.selectionDiv),i.selectionDiv=null,i.path=null)}static#c(){let e=document.getSelection();return!!e&&!e.isCollapsed}static#m(){return this.#d.keys().filter(e=>e.isConnected).toArray().sort($j)}static#b(){let e=document.getSelection();if(!e||e.isCollapsed){for(let r of this.#u)r.remove();this.#u.clear();return}let i=new WeakMap,a=this.#m(),s=[];for(let r=0,l=e.rangeCount;r<l;r++){let o=e.getRangeAt(r);if(o.collapsed)continue;let{startContainer:f,startOffset:h,endContainer:c,endOffset:u}=o,p=fo(f),m=fo(c),g=p===null,b=m===null;if(this.#h&&g!==b)return;if(e.rangeCount===1){let{anchorNode:y,anchorOffset:x,focusNode:q,focusOffset:j}=e,A=fo(y),S=fo(q),C=Wj(y,x,q,j);A&&S&&C!==null&&(C?(f=y,h=x,p=A,c=q,u=j,m=S):(f=q,h=j,p=S,c=y,u=x,m=A))}let w=a.filter(y=>o.intersectsNode(y));if(w.length===0)continue;let v=!1;if(p||(p=w[0],f=p,h=0,v=!0),m||(m=w.at(-1),c=m,u=m.childNodes.length,v=!0),c.nodeType===Node.ELEMENT_NODE){if(c.classList.contains("endOfContent")){let y=c.previousSibling;if(!y)continue;c=y,u=y.nodeType===Node.TEXT_NODE?y.textContent.length:y.childNodes.length}else if(c.classList.contains("textLayer")&&c.childNodes.length===u){let y=J1(c,u,m);if(!y)continue;c=y.container,u=y.offset}}if(f.nodeType===Node.ELEMENT_NODE){let y=J1(f,h,p);if(!y)continue;f=y.container,h=y.offset}if(p===m&&!v&&w.includes(p))s.push([o,p]);else for(let y of w){let x=y.firstChild;if(!x)continue;let q=document.createRange();if(y===p?q.setStart(f,h):q.setStartBefore(x),y===m)q.setEnd(c,u);else{let j=y.lastChild;if(!j)continue;if(j.nodeType===Node.ELEMENT_NODE&&j.classList.contains("endOfContent")){let A=j.previousSibling;if(!A)continue;q.setEndAfter(A)}else q.setEndAfter(j)}q.collapsed||s.push([q,y])}}let n=new Set(s.map(r=>r[1]));for(let r of this.#d)n.has(r)||this.#g(r);for(let[r,l]of s){let o=se.#p.get(l);if(!o)continue;let f=i.get(l);if(!f){let m=l.getBoundingClientRect();f=d((g,b,w,v)=>({x:(g-m.x)/m.width,y:(b-m.y)/m.height,width:w/m.width,height:v/m.height}),"rotator"),i.set(l,f)}let h=[];for(let{x:m,y:g,width:b,height:w}of r.getClientRects())b!==0&&w!==0&&({x:m,y:g,width:b,height:w}=f(m,g,b,w),(b!==1||w!==1)&&h.push(`M${m} ${g} h${b} v${w} h-${b} Z`));if(h.length===0)continue;let c=o.drawLayer,u=o.selectionDiv,p=o.path;if(!u){let m=`clip_selection_${se.#o++}`;u=document.createElement("div"),u.className="selection",u.style.clipPath=`url(#${m})`;let g=c.#a?.createSelectionStyle(c.#s);if(g)for(let[v,y]of Object.entries(g))u.style.setProperty(v,y);let b=se._svgFactory.create(1,1,!0);b.setAttribute("aria-hidden","true"),b.setAttribute("width","100%"),b.setAttribute("height","100%");let w=se._svgFactory.createElement("clipPath");w.setAttribute("id",m),w.setAttribute("clipPathUnits","objectBoundingBox"),p=se._svgFactory.createElement("path"),w.append(p),b.append(w),u.append(b),o.path=p,o.selectionDiv=u}c.#t&&u.parentNode!==c.#t&&(c.#t.append(u),this.#u.add(u)),p.setAttribute("d",h.join(" "))}}static get _svgFactory(){return Tt(this,"_svgFactory",new Sl)}static#w(e,[i,a,s,n]){let{style:r}=e;r.top=`${100*a}%`,r.left=`${100*i}%`,r.width=`${100*s}%`,r.height=`${100*n}%`}#y(){let e=se._svgFactory.create(1,1,!0);return this.#t.append(e),e.setAttribute("aria-hidden","true"),e}#k(e,i){let a=se._svgFactory.createElement("clipPath");e.append(a);let s=`clip_${i}`;a.setAttribute("id",s),a.setAttribute("clipPathUnits","objectBoundingBox");let n=se._svgFactory.createElement("use");return a.append(n),n.setAttribute("href",`#${i}`),n.classList.add("clip"),s}#v(e,i){for(let[a,s]of Object.entries(i))s===null?e.removeAttribute(a):e.setAttribute(a,s)}draw(e,i=!1,a=!1){let s=se.#l++,n=this.#y(),r=se._svgFactory.createElement("defs");n.append(r);let l=se._svgFactory.createElement("path");r.append(l);let o=`path_${s}`;l.setAttribute("id",o),l.setAttribute("vector-effect","non-scaling-stroke"),i&&this.#r.set(s,l);let f=a?this.#k(r,o):null,h=se._svgFactory.createElement("use");return n.append(h),h.setAttribute("href",`#${o}`),this.updateProperties(n,e),this.#e.set(s,n),{id:s,clipPathId:`url(#${f})`}}drawOutline(e,i){let a=se.#l++,s=this.#y(),n=se._svgFactory.createElement("defs");s.append(n);let r=se._svgFactory.createElement("path");n.append(r);let l=`path_${a}`;r.setAttribute("id",l),r.setAttribute("vector-effect","non-scaling-stroke");let o;if(i){let c=se._svgFactory.createElement("mask");n.append(c),o=`mask_${a}`,c.setAttribute("id",o),c.setAttribute("maskUnits","objectBoundingBox");let u=se._svgFactory.createElement("rect");c.append(u),u.setAttribute("width","1"),u.setAttribute("height","1"),u.setAttribute("fill","white");let p=se._svgFactory.createElement("use");c.append(p),p.setAttribute("href",`#${l}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}let f=se._svgFactory.createElement("use");s.append(f),f.setAttribute("href",`#${l}`),o&&f.setAttribute("mask",`url(#${o})`);let h=f.cloneNode();return s.append(h),f.classList.add("mainOutline"),h.classList.add("secondaryOutline"),this.updateProperties(s,e),this.#e.set(a,s),a}finalizeDraw(e,i){this.#r.delete(e),this.updateProperties(e,i)}updateProperties(e,i){if(!i)return;let{root:a,bbox:s,rootClass:n,path:r}=i,l=typeof e=="number"?this.#e.get(e):e;if(l){if(a&&this.#v(l,a),s&&se.#w(l,s),n){let{classList:o}=l;for(let[f,h]of Object.entries(n))o.toggle(f,h)}if(r){let o=l.firstElementChild.firstElementChild;this.#v(o,r)}}}updateParent(e,i){if(i===this)return;let a=this.#e.get(e);a&&(i.#t.append(a),this.#e.delete(e),i.#e.set(e,a))}remove(e){this.#r.delete(e),this.#t!==null&&(this.#e.get(e).remove(),this.#e.delete(e))}destroy(){this.#t=null;for(let e of this.#e.values())e.remove();this.#e.clear(),this.#r.clear(),this.#n?.disconnect(),this.#n=null,this.#i&&=(se.#p.get(this.#i)?.drawLayer===this&&(se.#g(this.#i),se.#p.delete(this.#i),se.#d.delete(this.#i),se.#d.size===0&&(se.#f?.abort(),se.#f=null,se.#h=!1)),null)}};d(ho,"percentage");Ag=class Lc{static{d(this,"TextLayerImages")}#t=[];#e=new Map;#i=null;#a=0;#s=0;#n=0;static#r=null;constructor(e,i,a,s){this.#a=e,this.#t=i,this.#s=a.rawDims.pageWidth,this.#n=a.rawDims.pageHeight,this.#i=s}render(){let e=document.createElement("div");e.className="textLayerImages";for(let i=0;i<this.#t.length;i+=6){let a=this.#l(this.#t.subarray(i,i+6));a&&e.append(a)}return e.addEventListener("contextmenu",i=>{if(!(i.target instanceof HTMLCanvasElement))return;let a=i.target,s=this.#e.get(a);if(!s)return;let n=Lc.#r?.deref();if(n===a)return;n&&(n.width=0,n.height=0),Lc.#r=new WeakRef(a);let{inverseTransform:r,x1:l,y1:o,width:f,height:h}=s,c=this.#i(),u=Math.ceil(l*c.width),p=Math.ceil(o*c.height),m=Math.floor((l+f/this.#s)*c.width),g=Math.floor((o+h/this.#n)*c.height);a.width=m-u,a.height=g-p;let b=a.getContext("2d");b.setTransform(...r),b.translate(-u,-p),b.drawImage(c,0,0)}),e}#l([e,i,a,s,n,r]){let l=Math.hypot((n-e)*this.#s,(r-i)*this.#n),o=Math.hypot((a-e)*this.#s,(s-i)*this.#n);if(l<this.#a||o<this.#a)return null;let f=[(n-e)*this.#s/l,(r-i)*this.#n/l,(a-e)*this.#s/o,(s-i)*this.#n/o,0,0],h=qt.inverseTransform(f),c=document.createElement("canvas");return c.className="textLayerImagePlaceholder",c.width=0,c.height=0,Object.assign(c.style,{opacity:0,position:"absolute",left:ho(e),top:ho(i),width:ho(l/this.#s),height:ho(o/this.#n),transformOrigin:"0% 0%",transform:`matrix(${f.join(",")})`}),this.#e.set(c,{inverseTransform:h,width:l,height:o,x1:e,y1:i}),c}};globalThis._pdfjsTestingUtils={HighlightOutliner:Oc},globalThis.pdfjsLib={AbortException:ms,AnnotationEditorLayer:qg,AnnotationEditorParamsType:ge,AnnotationEditorType:ie,AnnotationEditorUIManager:dr,AnnotationLayer:hg,AnnotationMode:ls,AnnotationType:ze,applyOpacity:Tm,build:ig,ColorPicker:Bu,createValidAbsoluteUrl:Cu,CSSConstants:Im,DOMSVGFactory:Sl,DrawLayer:xg,FeatureTest:Te,fetchData:uf,findContrastColor:Mm,getDocument:Zm,getFilenameFromUrl:Sm,getPdfFilenameFromUrl:Cm,getRGB:br,getRGBA:_n,getUuid:Tu,GlobalWorkerOptions:ar,ImageKind:ol,InvalidPDFException:Ho,isDataScheme:El,isPdfFile:pf,isValidExplicitDest:Bm,makeArr:Mn,makeMap:cf,makeObj:No,makeSet:qm,MathClamp:Oe,noContextMenu:va,normalizeUnicode:jm,OPS:Ia,OutputScale:Xa,PasswordException:Oo,PasswordResponses:vm,PDFDataRangeTransport:Pu,PDFDateString:Lo,PDFWorker:Go,PermissionFlag:km,PixelsPerInch:An,RenderingCancelledException:df,renderRichText:Eu,ResponseException:xl,setLayerDimensions:zs,shadow:Tt,SignatureExtractor:hn,stopEvent:ai,SupportedImageMimeTypes:zo,TextLayer:Uo,TextLayerImages:Ag,TouchManager:Fu,updateUrlHash:Iu,Util:qt,VerbosityLevel:_l,version:eg,XfaLayer:_u}});function Vj(){typeof globalThis.DOMMatrix<"u"||(globalThis.DOMMatrix=class{static{d(this,"DOMMatrix")}constructor(e){Array.isArray(e)&&e.length===6?(this.a=e[0],this.b=e[1],this.c=e[2],this.d=e[3],this.e=e[4],this.f=e[5]):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}translateSelf(e,i=0){return this.e=this.a*e+this.c*i+this.e,this.f=this.b*e+this.d*i+this.f,this}scaleSelf(e,i=e){return this.a*=e,this.b*=e,this.c*=i,this.d*=i,this}})}d(Vj,"polyfillDOMMatrix");function Kj(){Vj()}d(Kj,"stubBrowserGlobals");var Dl,Ig=globalThis.process?.release?.name==="node",Xj=typeof window<"u";async function Tg(t,e={}){let{getDocument:i}=await Yj(),a={};if(Ig)try{let s=import.meta.resolve("pdfjs-dist/package.json");a={disableFontFace:!0,standardFontDataUrl:new URL("./standard_fonts/",s).href,cMapUrl:new URL("./cmaps/",s).href,cMapPacked:!0}}catch{}return await i({data:t,useSystemFonts:!0,...a,...e}).promise}d(Tg,"getDocumentProxy");async function Mg(t,e,i){let a=Jj(t)?t:await Tg(t,i);try{return await e(a)}finally{a!==t&&await a.loadingTask.destroy()}}d(Mg,"withDocument");async function Yj(){return Dl||await Uu(),Dl}d(Yj,"getResolvedPDFJS");async function Uu(t,{reload:e=!1}={}){if(!(Dl&&!e)){if(Kj(),t)try{Dl=await _g(t());return}catch(i){throw new Error(`PDF.js could not be resolved: ${i}`)}try{Dl=await Promise.resolve().then(()=>(Cg(),Sg))}catch(i){throw new Error(`Serverless PDF.js bundle could not be resolved: ${i}`)}}}d(Uu,"resolvePDFJSImport");function Jj(t){return typeof t=="object"&&t!==null&&"_pdfInfo"in t}d(Jj,"isPDFDocumentProxy");async function _g(t){let e=await t;return e.default||e}d(_g,"interopDefault");var Gs;var Eg=class{static{d(this,"BaseCanvasFactory")}#t=!1;constructor({enableHWA:t=!1}={}){this.#t=t}create(t,e){let i=this._createCanvas(t,e);return{canvas:i,context:i.getContext("2d",{willReadFrequently:!this.#t})}}reset({canvas:t},e,i){if(!t)throw new Error("Canvas is not specified");t.width=e,t.height=i}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=void 0,t.context=void 0}_createCanvas(t,e){throw new Error("Not implemented")}};var Qj=class extends Eg{static{d(this,"DOMCanvasFactory")}constructor({ownerDocument:t=globalThis.document,enableHWA:e=!1}={}){super({enableHWA:e}),this._document=t}_createCanvas(t,e){let i=this._document.createElement("canvas");return i.width=t,i.height=e,i}},Zj=class extends Eg{static{d(this,"NodeCanvasFactory")}constructor({enableHWA:t=!1}={}){super({enableHWA:t})}_createCanvas(t,e){if(!Gs)throw new Error("@napi-rs/canvas module is not resolved");return Gs.createCanvas(t,e)}};async function tq(t){Gs??=await _g(t()),globalThis[Symbol.for("unpdf.canvasModule")]=Gs}d(tq,"resolveCanvasModule");function eq(){Gs&&(globalThis.DOMMatrix=Gs.DOMMatrix,typeof globalThis.ImageData>"u"&&(globalThis.ImageData=Gs.ImageData),typeof globalThis.Path2D>"u"&&(globalThis.Path2D=Gs.Path2D))}d(eq,"injectCanvasConstructors");async function iq(t,e,i={}){let a=await aq(i.canvasImport);return await Mg(t,async s=>{if(e<1||e>s.numPages)throw new Error(`Invalid page number. Must be between 1 and ${s.numPages}.`);let n=await s.getPage(e),r=n.getViewport({scale:1}),l=i.scale||1;i.width?l=i.width/r.width:i.height&&(l=i.height/r.height);let o=n.getViewport({scale:Math.max(0,l)}),f=new a,h=f.create(o.width,o.height);try{await n.render({canvas:h.canvas,canvasContext:h.context,viewport:o}).promise;let{canvas:c}=h;if(i.toDataURL)return c.toDataURL();if("encode"in c){let p=await c.encode("png");return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}let u=await new Promise(p=>{c.toBlob(p)});if(!u)throw new Error("Failed to encode canvas to a PNG blob.");return await u.arrayBuffer()}finally{f.destroy(h)}},{CanvasFactory:a})}d(iq,"renderPageAsImage$1");async function aq(t){if(Xj)return Qj;if(Ig){if(!t)throw new Error('Parameter "canvasImport" is required in Node.js environment.');return await tq(t),eq(),Zj}throw new Error("Unsupported environment for canvas creation.")}d(aq,"createIsomorphicCanvasFactory");async function sq(t,e={}){let{mergePages:i=!1}=e;return await Mg(t,async a=>{let s=await Promise.all(Array.from({length:a.numPages},(n,r)=>nq(a,r+1)));return{totalPages:a.numPages,text:i?rq(s):s}})}d(sq,"extractText$1");async function nq(t,e){return(await(await t.getPage(e)).getTextContent()).items.filter(i=>i.str!=null).map(i=>i.str+(i.hasEOL?`
|
|
107
|
+
`:"")).join("")}d(nq,"getPageText");function rq(t){return t.join(`
|
|
108
|
+
`).replace(/[^\S\n]+/g," ").replace(/ ?\n ?/g,`
|
|
109
|
+
`).replace(/\n{3,}/g,`
|
|
110
|
+
|
|
111
|
+
`)}d(rq,"normalizeMergedText");var lq=d(async(...t)=>(await Uu(),await sq(...t)),"extractText");var oq=d(async(...t)=>(await Uu(),await iq(...t)),"renderPageAsImage");export{lq as extractText,Tg as getDocumentProxy,oq as renderPageAsImage};
|
|
112
|
+
/*! Bundled license information:
|
|
113
|
+
|
|
114
|
+
unpdf/dist/index.mjs:
|
|
115
|
+
(**
|
|
116
|
+
* Derived from the PDF.js project by the Mozilla Foundation.
|
|
117
|
+
* @see https://github.com/mozilla/pdf.js/blob/b8de9a372f9bbf7e33adb362eeae5ef1919dba73/src/display/canvas_factory.js#L18
|
|
118
|
+
* @license Apache-2.0
|
|
119
|
+
*)
|
|
120
|
+
*/
|