sliccy 3.9.0 → 3.11.0
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/dist/ui/assets/__vite-browser-external-ccPY92C6.js +1 -0
- package/dist/ui/assets/adobe-B_4d1GIa.js +2 -0
- package/dist/ui/assets/adobe-DixSD4gc.js +1 -0
- package/dist/ui/assets/{agent-bridge-jV-wd2rf.js → agent-bridge-BgnzBzBy.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-B8V1gOsM.js → agent-message-to-chat-DXZVGJxR.js} +1 -1
- package/dist/ui/assets/{anthropic-mL3ywMPV.js → anthropic-BnevdpoS.js} +4 -4
- package/dist/ui/assets/{anthropic-iVM3-a35.js → anthropic-NzuFTQTW.js} +5 -5
- package/dist/ui/assets/{apps-DRVsIBBx.js → apps-lRgud8Fh.js} +1 -1
- package/dist/ui/assets/{azure-openai-Cx5Pj5oC.js → azure-openai-B7Pr7m__.js} +1 -1
- package/dist/ui/assets/azure-openai-DykC0YtR.js +1 -0
- package/dist/ui/assets/{azure-openai-responses-CXt7G9Am.js → azure-openai-responses-Bhb_aioL.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-nU5pAWHz.js → azure-openai-responses-JJr9M-EF.js} +1 -1
- package/dist/ui/assets/{bsh-watchdog-CEYald81.js → bsh-watchdog-B_vUSTC5.js} +1 -1
- package/dist/ui/assets/{cdp-DgQAS7RO.js → cdp-DXmFwQ4j.js} +4 -4
- package/dist/ui/assets/{cloud-CCHD45tb.js → cloud-BDR25NRv.js} +1 -1
- package/dist/ui/assets/cost-command-BWXehnvl.js +1 -0
- package/dist/ui/assets/{dist-CltZJzbd.js → dist-BBhtjNOt.js} +1 -1
- package/dist/ui/assets/{dist-tLLu0PBg.js → dist-CrC-F8vu.js} +1 -1
- package/dist/ui/assets/{dist-9RlRmGag.js → dist-DElqKLgF.js} +1 -1
- package/dist/ui/assets/{dist-ljtB3O-J.js → dist-DQRYKv91.js} +1 -1
- package/dist/ui/assets/{dist-ChvbMSOY.js → dist-Dnh15m1q.js} +1 -1
- package/dist/ui/assets/{dist-cZSF0917.js → dist-jdlcYxrm.js} +1 -1
- package/dist/ui/assets/{dist-CZcDRTma.js → dist-k2Xmqc09.js} +3 -3
- package/dist/ui/assets/{es-B67k6SZx.js → es-YXgEFCr4.js} +5 -5
- package/dist/ui/assets/{follower-sprinkle-bridge-DSIoRDT8.js → follower-sprinkle-bridge-pM_9mh8K.js} +1 -1
- package/dist/ui/assets/github-BGd7Ze-G.js +2 -0
- package/dist/ui/assets/github-CeT5IqOp.js +1 -0
- package/dist/ui/assets/google-Bu_dHS7k.js +1 -0
- package/dist/ui/assets/{google-CO7YjBwe.js → google-CGKQ3ixr.js} +1 -1
- package/dist/ui/assets/{google-shared-BzCwNN5i.js → google-shared-CjxLMtrx.js} +4 -4
- package/dist/ui/assets/{google-shared-LxsopJXA.js → google-shared-DbuMfloN.js} +3 -3
- package/dist/ui/assets/{google-vertex-DA-3dPhk.js → google-vertex-B4NrC4n7.js} +1 -1
- package/dist/ui/assets/{google-vertex-CmQxc5zO.js → google-vertex-CHVJnDpB.js} +1 -1
- package/dist/ui/assets/{intercepted-oauth-DiLTU8Ii.js → intercepted-oauth-DBh2Mm3h.js} +1 -1
- package/dist/ui/assets/{js-realm-worker-B3OvP1qG.js → js-realm-worker-C2Z2nmxV.js} +1 -1
- package/dist/ui/assets/{kernel-worker-BC6z3xjS.js → kernel-worker-Ch_A9Scg.js} +952 -931
- package/dist/ui/assets/lick-ws-bridge-B6CkpZVL.js +1 -0
- package/dist/ui/assets/{local-llm-RHAVtkGQ.js → local-llm-CxzXCg9G.js} +2 -2
- package/dist/ui/assets/{magick-wasm-C7EkxjX-.js → magick-wasm-Bches_n_.js} +1 -1
- package/dist/ui/assets/{main-BHLxIMys.js → main-C_dVS7-y.js} +181 -182
- package/dist/ui/assets/{mistral-Dx-x1MfD.js → mistral-D0LaZl63.js} +4 -4
- package/dist/ui/assets/{mistral-Chz686k5.js → mistral-DWpfhgsB.js} +3 -3
- package/dist/ui/assets/{nuke-command-qvwqiQHy.js → nuke-command-Cc6iklUj.js} +1 -1
- package/dist/ui/assets/{oauth-CG3epMwm.js → oauth-CEhFWL1c.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-CollSvx8.js → oauth-bootstrap-BdH4T7WF.js} +2 -2
- package/dist/ui/assets/{oauth-service-Bby2XbV9.js → oauth-service-DOEbnD4i.js} +1 -1
- package/dist/ui/assets/{oauth-service-CsGFgUI2.js → oauth-service-DPIHRVv7.js} +1 -1
- package/dist/ui/assets/{offscreen-client-BgFTGLb6.js → offscreen-client-gxy-5P83.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-BdKyK2bb.js → onboarding-orchestrator-D7leZXH1.js} +1 -1
- package/dist/ui/assets/{openai-BR_xAflc.js → openai-Cn5LRPCm.js} +4 -4
- package/dist/ui/assets/{openai-codex-responses-CYZE7Ri0.js → openai-codex-responses-BHw7XWOx.js} +4 -4
- package/dist/ui/assets/{openai-codex-responses-DrQ-9KYF.js → openai-codex-responses-CDYRLhQd.js} +1 -1
- package/dist/ui/assets/{openai-completions-Crq53Ayo.js → openai-completions-C0AaFvwW.js} +3 -3
- package/dist/ui/assets/{openai-responses-DZWvz_eT.js → openai-responses-B9BXP7cL.js} +1 -1
- package/dist/ui/assets/{openai-responses-NpY-7Q9b.js → openai-responses-DRumuMm3.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-D1mo55LS.js → openai-responses-shared-A2w0cKxU.js} +4 -4
- package/dist/ui/assets/{openai-responses-shared-D8o41Qqd.js → openai-responses-shared-DgY27N8N.js} +1 -1
- package/dist/ui/assets/{openrouter-DZjPMgbr.js → openrouter-B-ud7Vxe.js} +1 -1
- package/dist/ui/assets/{openrouter-CatA7kSh.js → openrouter-B_cu1ol4.js} +1 -1
- package/dist/ui/assets/{panel-rpc-handlers-BJ-wBZiF.js → panel-rpc-handlers-DEhRuNm8.js} +1 -1
- package/dist/ui/assets/{pdfjs-CW51NNE6.js → pdfjs-C3ks1z_T.js} +2 -2
- package/dist/ui/assets/provider-BIWdVu7k.js +2 -0
- package/dist/ui/assets/provider-C2_eeNbs.js +1 -0
- package/dist/ui/assets/provider-store-access-D6Qj8fkB.js +1 -0
- package/dist/ui/assets/provider-store-access-E59loJtG.js +1 -0
- package/dist/ui/assets/{proxied-fetch-BQDZVMp5.js → proxied-fetch-Q6281hOW.js} +1 -1
- package/dist/ui/assets/{py-realm-worker-zrXeREDr.js → py-realm-worker-BDTXsbRf.js} +1 -1
- package/dist/ui/assets/{pyodide-CoTxJ1oh.js → pyodide-BX6DPeWg.js} +2 -2
- package/dist/ui/assets/{pyodide-Bv1KSh-_.js → pyodide-M7UA50Oh.js} +1 -1
- package/dist/ui/assets/{remote-terminal-view-D1HhRHw_.js → remote-terminal-view-DmGgxHAM.js} +3 -3
- package/dist/ui/assets/{secret-env-7EK-8pGt.js → secret-env-BzVan238.js} +1 -1
- package/dist/ui/assets/{slicc-editor-BySG3JWk.js → slicc-editor-CUZQugi0.js} +2 -2
- package/dist/ui/assets/{spawn-Dqw1vU56.js → spawn-DEw_MJS6.js} +1 -1
- package/dist/ui/assets/{sql-wasm-1BJYGQai.js → sql-wasm-DvnIUql_.js} +1 -1
- package/dist/ui/assets/store-UPMR_zFT.js +1 -0
- package/dist/ui/assets/{tray-leave-runtime-oNz7QQtO.js → tray-leave-runtime-wk0kHiSi.js} +1 -1
- package/dist/ui/assets/upgrade-detection-_vMRqUBY.js +1 -0
- package/dist/ui/assets/xai-grok-CdElFNC4.js +1 -0
- package/dist/ui/assets/xai-grok-D5kLpuob.js +1 -0
- package/dist/ui/assets/{xai-grok-sanitize-L5nUbDcW.js → xai-grok-sanitize-CR2JoOJd.js} +1 -1
- package/dist/ui/assets/{xai-grok-sanitize-C7TgWvwD.js → xai-grok-sanitize-CV6qvaEF.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/dist/ui/packages/webapp/cloud/index.html +2 -2
- package/dist/ui/packages/webapp/index.html +2 -2
- package/package.json +2 -2
- package/dist/ui/assets/__vite-browser-external-B0Aozsa-.js +0 -1
- package/dist/ui/assets/active-transport-DHcaBd4j.js +0 -1
- package/dist/ui/assets/adobe-Bt5g8KQ8.js +0 -1
- package/dist/ui/assets/adobe-CnR62Zz4.js +0 -2
- package/dist/ui/assets/azure-openai-JPzwToVw.js +0 -1
- package/dist/ui/assets/cost-command-CSFioZjM.js +0 -1
- package/dist/ui/assets/dist-D0kTaNET.js +0 -43
- package/dist/ui/assets/github-CK_6pj34.js +0 -2
- package/dist/ui/assets/github-vJrAPitt.js +0 -1
- package/dist/ui/assets/google-C_70cIVo.js +0 -1
- package/dist/ui/assets/hash-iitWbNjK.js +0 -1
- package/dist/ui/assets/lick-ws-bridge-BySQiZfZ.js +0 -1
- package/dist/ui/assets/provider--7zezZNA.js +0 -1
- package/dist/ui/assets/provider-BbarSgl8.js +0 -2
- package/dist/ui/assets/provider-store-access-CcWgx9ta.js +0 -1
- package/dist/ui/assets/provider-store-access-IMgEIUH6.js +0 -1
- package/dist/ui/assets/store-DrwbCi-e.js +0 -1
- package/dist/ui/assets/upgrade-detection-CaXKHhN-.js +0 -1
- package/dist/ui/assets/xai-grok-5wPTQels.js +0 -1
- package/dist/ui/assets/xai-grok-Dw1VTeHT.js +0 -1
- /package/dist/ui/assets/{active-transport-Clj9slj7.js → active-transport-BIjzxdwv.js} +0 -0
- /package/dist/ui/assets/{addon-fit-CBG3Hsec.js → addon-fit-CuuUKmBe.js} +0 -0
- /package/dist/ui/assets/{addon-fit-CUt9lrQO.js → addon-fit-DthTIhi3.js} +0 -0
- /package/dist/ui/assets/{azure-ai-foundry-B4QrVklT.js → azure-ai-foundry-Bo0FAJyX.js} +0 -0
- /package/dist/ui/assets/{azure-ai-foundry-CGkSI_4f.js → azure-ai-foundry-CzkPLAhp.js} +0 -0
- /package/dist/ui/assets/{chat-fixture-ChGRNFda.js → chat-fixture-CLDS_yKK.js} +0 -0
- /package/dist/ui/assets/{git-config-DcQbkikl.js → git-config-DLJIrKjL.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-C5CocKfn.js → github-copilot-headers-DZtWWv8W.js} +0 -0
- /package/dist/ui/assets/{global-db-DL3jdM9H.js → global-db-CbuLl-zx.js} +0 -0
- /package/dist/ui/assets/{hash-C3GX0Zuo.js → hash-yQufAZII.js} +0 -0
- /package/dist/ui/assets/{headers-qDMOQQGF.js → headers-DO1UzNKu.js} +0 -0
- /package/dist/ui/assets/{lick-manager-proxy-1L0EGIWD.js → lick-manager-proxy-B749hY0Y.js} +0 -0
- /package/dist/ui/assets/{modulepreload-polyfill-wMinxHhO.js → modulepreload-polyfill-Dezn_h7o.js} +0 -0
- /package/dist/ui/assets/{page-storage-sync-sv2ogNKh.js → page-storage-sync-BMnuL0eG.js} +0 -0
- /package/dist/ui/assets/{rum-z5wz4Dnj.js → rum-DW84CvBs.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-B1z_Y4Dq.js → sanitize-unicode-DmIE6hZJ.js} +0 -0
- /package/dist/ui/assets/{sprinkle-bridge-channel-Bw5UaanD.js → sprinkle-bridge-channel-DwDzRdg8.js} +0 -0
- /package/dist/ui/assets/{sprinkle-bridge-channel-ChD0T07C.js → sprinkle-bridge-channel-gvVv6R_O.js} +0 -0
- /package/dist/ui/assets/{sprinkle-proxy-D6wqmewK.js → sprinkle-proxy-B4nH2NxC.js} +0 -0
- /package/dist/ui/assets/{src-DRmQ1wr-.js → src-C9oNvq2b.js} +0 -0
- /package/dist/ui/assets/{worker-B1VFCur7.js → worker-D1KsWRGg.js} +0 -0
- /package/dist/ui/assets/{xai-grok-errors-C6VnD_MH.js → xai-grok-errors-ByEMMSoz.js} +0 -0
- /package/dist/ui/assets/{xai-grok-errors-BdY43UIn.js → xai-grok-errors-bnlIBeu-.js} +0 -0
- /package/dist/ui/assets/{xai-grok-models-BndZgIFZ.js → xai-grok-models-B0Tf--xf.js} +0 -0
- /package/dist/ui/assets/{xai-grok-models-C9MIa-Aj.js → xai-grok-models-CeEBaUMC.js} +0 -0
- /package/dist/ui/assets/{xterm-DLCsxsB1.js → xterm-B5O_KJMf.js} +0 -0
- /package/dist/ui/assets/{xterm-VndicwFp.js → xterm-DooSxjI5.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
globalThis.DOMMatrix===void 0&&(globalThis.DOMMatrix=class{}),globalThis.FinalizationRegistry===void 0&&(globalThis.FinalizationRegistry=class{register(){}unregister(){}}),globalThis.navigator??={},globalThis.navigator.platform??=``,globalThis.navigator.userAgent??=``,Promise.withResolvers===void 0&&(Promise.withResolvers=function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}});const e=!(typeof process!=`object`||process+``!=`[object process]`||process.versions.nw||process.versions.electron&&process.type&&process.type!==`browser`),t=[.001,0,0,.001,0,0],n=1.35,r=.35,i=.25925925925925924,a=`pdfjs_internal_editor_`,o={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},s={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},c=`Group`,l={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`},u={WC:`WillClose`,WS:`WillSave`,DS:`DidSave`,WP:`WillPrint`,DP:`DidPrint`},d={O:`PageOpen`,C:`PageClose`};let f=1;function p(e){f>=5&&console.info(`Info: ${e}`)}function m(e){f>=1&&console.warn(`Warning: ${e}`)}function h(e){throw Error(e)}function g(e,t){e||h(t)}function _(e,t=null,n=null){if(!e)return null;if(n&&typeof e==`string`&&(n.addDefaultProtocol&&e.startsWith(`www.`)&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),n.tryConvertEncoding))try{e=F(e)}catch{}let r=t?URL.parse(e,t):URL.parse(e);return function(e){switch(e?.protocol){case`http:`:case`https:`:case`ftp:`:case`mailto:`:case`tel:`:return!0;default:return!1}}(r)?r:null}function v(e,t,n,r=!1){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const y=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=Error(),e.constructor=e,e}();let b=class extends y{constructor(e,t){super(e,`PasswordException`),this.code=t}},x=class extends y{constructor(e,t){super(e,`UnknownErrorException`),this.details=t}},S=class extends y{constructor(e){super(e,`InvalidPDFException`)}},C=class extends y{constructor(e,t,n){super(e,`ResponseException`),this.status=t,this.missing=n}},w=class extends y{constructor(e){super(e,`FormatError`)}},T=class extends y{constructor(e){super(e,`AbortException`)}};function E(e){typeof e==`object`&&e?.length!==void 0||h(`Invalid argument for bytesToString`);let t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);let r=[];for(let i=0;i<t;i+=n){let a=Math.min(i+n,t),o=e.subarray(i,a);r.push(String.fromCharCode.apply(null,o))}return r.join(``)}function D(e){typeof e!=`string`&&h(`Invalid argument for stringToBytes`);let t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function O(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function k(e){return Object.keys(e).length}var A=class{static get isLittleEndian(){return v(this,`isLittleEndian`,function(){let e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}())}static get isEvalSupported(){return v(this,`isEvalSupported`,function(){try{return Function(``),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return v(this,`isOffscreenCanvasSupported`,typeof OffscreenCanvas<`u`)}static get isImageDecoderSupported(){return v(this,`isImageDecoderSupported`,typeof ImageDecoder<`u`)}static get platform(){let{platform:e,userAgent:t}=navigator;return v(this,`platform`,{isAndroid:t.includes(`Android`),isLinux:e.includes(`Linux`),isMac:e.includes(`Mac`),isWindows:e.includes(`Win`),isFirefox:t.includes(`Firefox`)})}static get isCSSRoundSupported(){return v(this,`isCSSRoundSupported`,globalThis.CSS?.supports?.(`width: round(1.5px, 1px)`))}};const j=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,`0`));let M=class{static makeHexColor(e,t,n){return`#${j[e]}${j[t]}${j[n]}`}static domMatrixToTransform(e){return[e.a,e.b,e.c,e.d,e.e,e.f]}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[1],t[1]=n,n=t[2],t[2]=t[3],t[3]=n,e[1]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,n=0){let r=e[n],i=e[n+1];e[n]=r*t[0]+i*t[2]+t[4],e[n+1]=r*t[1]+i*t[3]+t[5]}static applyTransformToBezier(e,t,n=0){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5];for(let t=0;t<6;t+=2){let l=e[n+t],u=e[n+t+1];e[n+t]=l*r+u*a+s,e[n+t+1]=l*i+u*o+c}}static applyInverseTransform(e,t){let n=e[0],r=e[1],i=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-r*t[2]+t[2]*t[5]-t[4]*t[3])/i,e[1]=(-n*t[1]+r*t[0]+t[4]*t[1]-t[5]*t[0])/i}static axialAlignedBoundingBox(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=e[0],u=e[1],d=e[2],f=e[3],p=r*l+s,m=p,h=r*d+s,g=h,_=o*u+c,v=_,y=o*f+c,b=y;if(i!==0||a!==0){let e=i*l,t=i*d,n=a*u,r=a*f;p+=n,g+=n,h+=r,m+=r,_+=e,b+=e,y+=t,v+=t}n[0]=Math.min(n[0],p,h,m,g),n[1]=Math.min(n[1],_,y,v,b),n[2]=Math.max(n[2],p,h,m,g),n[3]=Math.max(n[3],_,y,v,b)}static inverseTransform(e){let t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){let n=e[0],r=e[1],i=e[2],a=e[3],o=n**2+r**2,s=n*i+r*a,c=i**2+a**2,l=(o+c)/2,u=Math.sqrt(l**2-(o*c-s**2));t[0]=Math.sqrt(l+u||1),t[1]=Math.sqrt(l-u||1)}static normalizeRect(e){let t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){let n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;let i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>a?null:[n,i,r,a]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,r,i){i[0]=Math.min(i[0],e,n),i[1]=Math.min(i[1],t,r),i[2]=Math.max(i[2],e,n),i[3]=Math.max(i[3],t,r)}static#e(e,t,n,r,i,a,o,s,c,l){if(c<=0||c>=1)return;let u=1-c,d=c*c,f=d*c,p=u*(u*(u*e+3*c*t)+3*d*n)+f*r,m=u*(u*(u*i+3*c*a)+3*d*o)+f*s;l[0]=Math.min(l[0],p),l[1]=Math.min(l[1],m),l[2]=Math.max(l[2],p),l[3]=Math.max(l[3],m)}static#t(e,t,n,r,i,a,o,s,c,l,u,d){if(Math.abs(c)<1e-12)return void(Math.abs(l)>=1e-12&&this.#e(e,t,n,r,i,a,o,s,-u/l,d));let f=l**2-4*u*c;if(f<0)return;let p=Math.sqrt(f),m=2*c;this.#e(e,t,n,r,i,a,o,s,(-l+p)/m,d),this.#e(e,t,n,r,i,a,o,s,(-l-p)/m,d)}static bezierBoundingBox(e,t,n,r,i,a,o,s,c){c[0]=Math.min(c[0],e,o),c[1]=Math.min(c[1],t,s),c[2]=Math.max(c[2],e,o),c[3]=Math.max(c[3],t,s),this.#t(e,n,i,o,t,r,a,s,3*(3*(n-i)-e+o),6*(e-2*n+i),3*(n-e),c),this.#t(e,n,i,o,t,r,a,s,3*(3*(r-a)-t+s),6*(t-2*r+a),3*(r-t),c)}};const N=[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];function P(e,t=!1){if(e[0]>=`ï`){let n;if(e[0]===`þ`&&e[1]===`ÿ`?(n=`utf-16be`,e.length%2==1&&(e=e.slice(0,-1))):e[0]===`ÿ`&&e[1]===`þ`?(n=`utf-16le`,e.length%2==1&&(e=e.slice(0,-1))):e[0]===`ï`&&e[1]===`»`&&e[2]===`¿`&&(n=`utf-8`),n)try{let r=new TextDecoder(n,{fatal:!0}),i=D(e),a=r.decode(i);return t||!a.includes(`\x1B`)?a:a.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,``)}catch(e){m(`stringToPDFString: "${e}".`)}}let n=[];for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(!t&&a===27){for(;++r<i&&e.charCodeAt(r)!==27;);continue}let o=N[a];n.push(o?String.fromCharCode(o):e.charAt(r))}return n.join(``)}function F(e){return decodeURIComponent(escape(e))}function ee(e){return unescape(encodeURIComponent(e))}function te(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function ne(e=new Date){return e instanceof Date||(e=new Date(e)),[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,`0`),e.getUTCDate().toString().padStart(2,`0`),e.getUTCHours().toString().padStart(2,`0`),e.getUTCMinutes().toString().padStart(2,`0`),e.getUTCSeconds().toString().padStart(2,`0`)].join(``)}let re=null,ie=null;function ae(e,t,n){return Math.min(Math.max(e,t),n)}function oe(e){return Uint8Array.prototype.toHex?e.toHex():Array.from(e,e=>j[e]).join(``)}typeof Promise.try!=`function`&&(Promise.try=function(e,...t){return new Promise(n=>{n(e(...t))})}),typeof Math.sumPrecise!=`function`&&(Math.sumPrecise=function(e){return e.reduce((e,t)=>e+t,0)});const se=Symbol(`CIRCULAR_REF`),ce=Symbol(`EOF`);let le=Object.create(null),ue=Object.create(null),de=Object.create(null);var I=class e{constructor(e){this.name=e}static get(t){return ue[t]||=new e(t)}},fe=class e{constructor(e){this.cmd=e}static get(t){return le[t]||=new e(t)}};const pe=function(){return pe};var L=class e{constructor(e=null){this._map=new Map,this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=pe}assignXref(e){this.xref=e}get size(){return this._map.size}get(e,t,n){let r=this._map.get(e);return r===void 0&&t!==void 0&&(r=this._map.get(t),r===void 0&&n!==void 0&&(r=this._map.get(n))),r instanceof R&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,n){let r=this._map.get(e);return r===void 0&&t!==void 0&&(r=this._map.get(t),r===void 0&&n!==void 0&&(r=this._map.get(n))),r instanceof R&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,n){let r=this._map.get(e);if(r===void 0&&t!==void 0&&(r=this._map.get(t),r===void 0&&n!==void 0&&(r=this._map.get(n))),r instanceof R&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption)),Array.isArray(r)){r=r.slice();for(let e=0,t=r.length;e<t;e++)r[e]instanceof R&&this.xref&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption))}return r}getRaw(e){return this._map.get(e)}getKeys(){return[...this._map.keys()]}getRawValues(){return[...this._map.values()]}set(e,t){this._map.set(e,t)}setIfNotExists(e,t){this.has(e)||this.set(e,t)}setIfNumber(e,t){typeof t==`number`&&this.set(e,t)}setIfArray(e,t){(Array.isArray(t)||ArrayBuffer.isView(t))&&this.set(e,t)}setIfDefined(e,t){t!=null&&this.set(e,t)}setIfName(e,t){typeof t==`string`?this.set(e,I.get(t)):t instanceof I&&this.set(e,t)}has(e){return this._map.has(e)}*[Symbol.iterator](){for(let[e,t]of this._map)yield[e,t instanceof R&&this.xref?this.xref.fetch(t,this.suppressEncryption):t]}static get empty(){let t=new e(null);return t.set=(e,t)=>{h("Should not call `set` on the empty dictionary.")},v(this,`empty`,t)}static merge({xref:t,dictArray:n,mergeSubDicts:r=!1}){let i=new e(t),a=new Map;for(let t of n)if(t instanceof e)for(let[n,i]of t._map){let t=a.get(n);if(t===void 0)t=[],a.set(n,t);else if(!(r&&i instanceof e))continue;t.push(i)}for(let[n,r]of a){if(r.length===1||!(r[0]instanceof e)){i._map.set(n,r[0]);continue}let a=new e(t);for(let e of r)for(let[t,n]of e._map)a._map.has(t)||a._map.set(t,n);a.size>0&&i._map.set(n,a)}return a.clear(),i.size>0?i:e.empty}clone(){let t=new e(this.xref);for(let e of this.getKeys())t.set(e,this.getRaw(e));return t}delete(e){this._map.delete(e)}},R=class e{constructor(e,t){this.num=e,this.gen=t}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(t){let n=de[t];if(n)return n;let r=/^(\d+)R(\d*)$/.exec(t);return r&&r[1]!==`0`?de[t]=new e(parseInt(r[1]),r[2]?parseInt(r[2]):0):null}static get(t,n){let r=n===0?`${t}R`:`${t}R${n}`;return de[r]||=new e(t,n)}},me=class{constructor(e=null){this._set=new Set(e?._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}},he=class{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}*values(){yield*this._map.values()}*items(){for(let[e,t]of this._map)yield[R.fromString(e),t]}};function ge(e,t){return e instanceof I&&(t===void 0||e.name===t)}function _e(e,t){return e instanceof fe&&(t===void 0||e.cmd===t)}function ve(e,t){return e instanceof L&&(t===void 0||ge(e.get(`Type`),t))}function ye(e,t){return e.num===t.num&&e.gen===t.gen}var be=class{get length(){h("Abstract getter `length` accessed")}get isEmpty(){h("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return v(this,`isDataLoaded`,!0)}getByte(){h("Abstract method `getByte` called")}getBytes(e){h("Abstract method `getBytes` called")}async getImageData(e,t){return this.getBytes(e,t)}async asyncGetBytes(){h("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(){return null}peekByte(){let e=this.getByte();return e!==-1&&this.pos--,e}peekBytes(e){let t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){let e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){h("Abstract method `getByteRange` called")}getString(e){return E(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){h("Abstract method `reset` called")}moveStart(){h("Abstract method `moveStart` called")}makeSubStream(e,t,n=null){h("Abstract method `makeSubStream` called")}getBaseStreams(){return null}};const xe=/^[1-9]\.\d$/,Se=2**31-1,Ce=[1,0,0,1,0,0],we=[`ColorSpace`,`ExtGState`,`Font`,`Pattern`,`Properties`,`Shading`,`XObject`],Te=[`ExtGState`,`Font`,`Properties`,`XObject`];function Ee(e){let t;return function(){return e&&=(t=Object.create(null),e(t),null),t}}var De=class extends y{constructor(e,t){super(`Missing data [${e}, ${t})`,`MissingDataException`),this.begin=e,this.end=t}},Oe=class extends y{constructor(e){super(e,`ParserEOFException`)}},ke=class extends y{constructor(e){super(e,`XRefEntryException`)}},Ae=class extends y{constructor(e){super(e,`XRefParseException`)}};function je(e){let t=e.length;if(t===0)return new Uint8Array;if(t===1)return new Uint8Array(e[0]);let n=0;for(let r=0;r<t;r++)n+=e[r].byteLength;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++){let t=new Uint8Array(e[n]);r.set(t,i),i+=t.byteLength}return r}async function Me(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch file "${e}" with "${t.statusText}".`);return new Uint8Array(await t.arrayBuffer())}function Ne({dict:e,key:t,getArray:n=!1,stopWhenFound:r=!0}){let i,a=new me;for(;e instanceof L&&(!e.objId||!a.has(e.objId));){e.objId&&a.put(e.objId);let o=n?e.getArray(t):e.get(t);if(o!==void 0){if(r)return o;(i||=[]).push(o)}e=e.get(`Parent`)}return i}const Pe=`.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(`.`);function Fe(e,t=!1){g(Number.isInteger(e)&&e>0,`The number should be a positive integer.`);let n=`M`.repeat(e/1e3|0)+Pe[e%1e3/100|0]+Pe[10+(e%100/10|0)]+Pe[20+e%10];return t?n.toLowerCase():n}function Ie(e){return e>0?Math.ceil(Math.log2(e)):0}function Le(e,t){return e[t]<<24>>24}function Re(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function ze(e,t){return e[t]<<8|e[t+1]}function Be(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function Ve(e){return e===32||e===9||e===13||e===10}function He(e,t){return Array.isArray(e)?(t===null||e.length===t)&&e.every(e=>typeof e==`number`):ArrayBuffer.isView(e)&&!(e instanceof BigInt64Array||e instanceof BigUint64Array)&&(t===null||e.length===t)}function Ue(e,t){return He(e,6)?e:t}function We(e,t){return He(e,4)?e:t}function Ge(e,t){return He(e,4)?M.normalizeRect(e):t}function Ke(e){let t=/(.+)\[(\d+)\]$/;return e.split(`.`).map(e=>{let n=e.match(t);return n?{name:n[1],pos:parseInt(n[2],10)}:{name:e,pos:0}})}function qe(e){let t=[],n=0;for(let r=0,i=e.length;r<i;r++){let i=e.charCodeAt(r);(i<33||i>126||i===35||i===40||i===41||i===60||i===62||i===91||i===93||i===123||i===125||i===47||i===37)&&(n<r&&t.push(e.substring(n,r)),t.push(`#${i.toString(16)}`),n=r+1)}return t.length===0?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(``))}function Je(e){return e.replaceAll(/([()\\\n\r])/g,e=>e===`
|
|
2
|
-
`?`\\n`:e===`\r`?`\\r`:`\\${e}`)}function Ye(e,t,n,r){if(!e)return;let i=null;if(e instanceof R){if(r.has(e))return;i=e,r.put(i),e=t.fetch(e)}if(Array.isArray(e))for(let i of e)Ye(i,t,n,r);else if(e instanceof L){if(ge(e.get(`S`),`JavaScript`)){let t=e.get(`JS`),r;t instanceof be?r=t.getString():typeof t==`string`&&(r=t),r&&=P(r,!0).replaceAll(`\0`,``),r&&n.push(r.trim())}Ye(e.getRaw(`Next`),t,n,r)}i&&r.remove(i)}function Xe(e,t,n){let r=Object.create(null),i=Ne({dict:t,key:`AA`,stopWhenFound:!1});if(i)for(let t=i.length-1;t>=0;t--){let a=i[t];if(a instanceof L)for(let t of a.getKeys()){let i=n[t];if(!i)continue;let o=[];Ye(a.getRaw(t),e,o,new me),o.length>0&&(r[i]=o)}}if(t.has(`A`)){let n=[];Ye(t.get(`A`),e,n,new me),n.length>0&&(r.Action=n)}return k(r)>0?r:null}const Ze={60:`<`,62:`>`,38:`&`,34:`"`,39:`'`};function*Qe(e){for(let t=0,n=e.length;t<n;t++){let n=e.codePointAt(t);n>55295&&(n<57344||n>65533)&&t++,yield n}}function $e(e){let t=[],n=0;for(let r=0,i=e.length;r<i;r++){let i=e.codePointAt(r);if(32<=i&&i<=126){let a=Ze[i];a&&(n<r&&t.push(e.substring(n,r)),t.push(a),n=r+1)}else n<r&&t.push(e.substring(n,r)),t.push(`&#x${i.toString(16).toUpperCase()};`),i>55295&&(i<57344||i>65533)&&r++,n=r+1}return t.length===0?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(``))}function et(e,t=!1){let n=/^("|').*("|')$/.exec(e);if(n&&n[1]===n[2]){if(RegExp(`[^\\\\]${n[1]}`).test(e.slice(1,-1)))return t&&m(`FontFamily contains unescaped ${n[1]}: ${e}.`),!1}else for(let n of e.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(n)||!/^[\w-\\]+$/.test(n))return t&&m(`FontFamily contains invalid <custom-ident>: ${e}.`),!1;return!0}function tt(e){let t=new Set([`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`,`1000`,`normal`,`bold`,`bolder`,`lighter`]),{fontFamily:n,fontWeight:r,italicAngle:i}=e;if(!et(n,!0))return!1;let a=r?r.toString():``;e.fontWeight=t.has(a)?a:`400`;let o=parseFloat(i);return e.italicAngle=isNaN(o)||o<-90||o>90?`14`:i.toString(),!0}function nt(e){let t=RegExp(`^\\s*(`+[`app.launchURL`,`window.open`,`xfa.host.gotoURL`].join(`|`).replaceAll(`.`,`\\.`)+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,`i`).exec(e);return t?.[2]?{url:t[2],newWindow:t[1]===`app.launchURL`&&t[3]===`true`}:null}function rt(e){if(Number.isInteger(e))return e.toString();let t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function it(e){if(!e)return null;let t=new Map;for(let[n,r]of e){if(!n.startsWith(a))continue;let e=t.get(r.pageIndex);e||(e=[],t.set(r.pageIndex,e)),e.push(r)}return t.size>0?t:null}function at(e){return e==null||function(e){return typeof e==`string`?!e||/^[\x00-\x7F]*$/.test(e):!1}(e)?e:st(e,!0)}function ot(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);t.push(j[r>>8&255],j[255&r])}return t.join(``)}function st(e,t=!1){let n=[];t&&n.push(`þÿ`);for(let t=0,r=e.length;t<r;t++){let r=e.charCodeAt(t);n.push(String.fromCharCode(r>>8&255),String.fromCharCode(255&r))}return n.join(``)}function ct(e,t,n){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,n];case 270:return[0,-1,1,0,0,n];default:throw Error(`Invalid rotation`)}}function lt(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}var ut=class{static#e=null;static _memory=null;static _mustAddAlpha=!1;static _destBuffer=null;static _destOffset=0;static _destLength=0;static _cssColor=``;static _makeHexColor=null;static get _memoryArray(){let e=this.#e;return e?.byteLength?e:this.#e=new Uint8Array(this._memory.buffer)}};let dt;const ft=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&ft.decode();let pt=null;function mt(){return pt!==null&&pt.byteLength!==0||(pt=new Uint8Array(dt.memory.buffer)),pt}let ht=0;function gt(e,t){let n=t(1*e.length,1)>>>0;return mt().set(e,n/1),ht=e.length,n}const _t=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`}),vt=Object.freeze({Perceptual:0,0:`Perceptual`,RelativeColorimetric:1,1:`RelativeColorimetric`,Saturation:2,2:`Saturation`,AbsoluteColorimetric:3,3:`AbsoluteColorimetric`});function yt(){let e={wbg:{}};return e.wbg.__wbg_copyresult_b08ee7d273f295dd=function(e,t){(function(e,t){let{_mustAddAlpha:n,_destBuffer:r,_destOffset:i,_destLength:a,_memoryArray:o}=ut;if(t!==a)if(n)for(let n=e,a=e+t,s=i;n<a;n+=3,s+=4)r[s]=o[n],r[s+1]=o[n+1],r[s+2]=o[n+2],r[s+3]=255;else for(let n=e,a=e+t,s=i;n<a;n+=3,s+=4)r[s]=o[n],r[s+1]=o[n+1],r[s+2]=o[n+2];else r.set(o.subarray(e,e+t),i)})(e>>>0,t>>>0)},e.wbg.__wbg_copyrgb_d60ce17bb05d9b67=function(e){(function(e){let{_destBuffer:t,_destOffset:n,_memoryArray:r}=ut;t[n]=r[e],t[n+1]=r[e+1],t[n+2]=r[e+2]})(e>>>0)},e.wbg.__wbg_makecssRGB_893bf0cd9fdb302d=function(e){(function(e){let{_memoryArray:t}=ut;ut._cssColor=ut._makeHexColor(t[e],t[e+1],t[e+2])})(e>>>0)},e.wbg.__wbindgen_init_externref_table=function(){let e=dt.__wbindgen_export_0,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_throw=function(e,t){throw Error((n=e,r=t,n>>>=0,ft.decode(mt().subarray(n,n+r))));var n,r},e}function bt(e){if(dt!==void 0)return dt;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=yt();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),function(e){return dt=e.exports,pt=null,dt.__wbindgen_start(),dt}(new WebAssembly.Instance(e,t))}var xt=class e{static#e=new Uint8ClampedArray(3);constructor(e,t){this.name=e,this.numComps=t}getRgb(e,t,n=new Uint8ClampedArray(3)){return this.getRgbItem(e,t,n,0),n}getRgbHex(t,n){let r=this.getRgb(t,n,e.#e);return M.makeHexColor(r[0],r[1],r[2])}getRgbItem(e,t,n,r){h(`Should not call ColorSpace.getRgbItem`)}getRgbBuffer(e,t,n,r,i,a,o){h(`Should not call ColorSpace.getRgbBuffer`)}getOutputLength(e,t){h(`Should not call ColorSpace.getOutputLength`)}isPassthrough(e){return!1}isDefaultDecode(t,n){return e.isDefaultDecode(t,this.numComps)}fillRgb(e,t,n,r,i,a,o,s,c){let l=t*n,u=null,d=1<<o,f=n!==i||t!==r;if(this.isPassthrough(o))u=s;else if(this.numComps===1&&l>d&&this.name!==`DeviceGray`&&this.name!==`DeviceRGB`){let t=o<=8?new Uint8Array(d):new Uint16Array(d);for(let e=0;e<d;e++)t[e]=e;let n=new Uint8ClampedArray(3*d);if(this.getRgbBuffer(t,0,d,n,0,o,0),f){u=new Uint8Array(3*l);let e=0;for(let t=0;t<l;++t){let r=3*s[t];u[e++]=n[r],u[e++]=n[r+1],u[e++]=n[r+2]}}else{let t=0;for(let r=0;r<l;++r){let i=3*s[r];e[t++]=n[i],e[t++]=n[i+1],e[t++]=n[i+2],t+=c}}}else f?(u=new Uint8ClampedArray(3*l),this.getRgbBuffer(s,0,l,u,0,o,0)):this.getRgbBuffer(s,0,r*a,e,0,o,c);if(u)if(f)(function(e,t,n,r,i,a,o){o=o===1?o:0;let s=n/i,c=r/a,l,u=0,d=new Uint16Array(i),f=3*n;for(let e=0;e<i;e++)d[e]=3*Math.floor(e*s);for(let n=0;n<a;n++){let r=Math.floor(n*c)*f;for(let n=0;n<i;n++)l=r+d[n],t[u++]=e[l++],t[u++]=e[l++],t[u++]=e[l++],u+=o}})(u,e,t,n,r,i,c);else{let t=0,n=0;for(let i=0,o=r*a;i<o;i++)e[t++]=u[n++],e[t++]=u[n++],e[t++]=u[n++],t+=c}}get usesZeroToOneRange(){return v(this,`usesZeroToOneRange`,!0)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return m(`The decode map is not the correct length`),!0;for(let t=0,n=e.length;t<n;t+=2)if(e[t]!==0||e[t+1]!==1)return!1;return!0}},St=class extends xt{constructor(e,t,n){super(`Alternate`,e),this.base=t,this.tintFn=n,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,n,r){let i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=this.tintFn,c=this.base,l=1/((1<<a)-1),u=c.numComps,d=c.usesZeroToOneRange,f=(c.isPassthrough(8)||!d)&&o===0,p=f?i:0,m=f?r:new Uint8ClampedArray(u*n),h=this.numComps,g=new Float32Array(h),_=new Float32Array(u),v,y;for(v=0;v<n;v++){for(y=0;y<h;y++)g[y]=e[t++]*l;if(s(g,0,_,0),d)for(y=0;y<u;y++)m[p++]=255*_[y];else c.getRgbItem(_,0,m,p),p+=u}f||c.getRgbBuffer(m,0,n,r,i,8,o)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}},Ct=class extends xt{constructor(e){super(`Pattern`,null),this.base=e}isDefaultDecode(e,t){h(`Should not call PatternCS.isDefaultDecode`)}},wt=class extends xt{constructor(e,t,n){super(`Indexed`,1),this.base=e,this.highVal=t;let r=e.numComps*(t+1);if(this.lookup=new Uint8Array(r),n instanceof be){let e=n.getBytes(r);this.lookup.set(e)}else{if(typeof n!=`string`)throw new w(`IndexedCS - unrecognized lookup table: ${n}`);for(let e=0;e<r;++e)this.lookup[e]=255&n.charCodeAt(e)}}getRgbItem(e,t,n,r){let{base:i,highVal:a,lookup:o}=this,s=ae(Math.round(e[t]),0,a)*i.numComps;i.getRgbBuffer(o,s,1,n,r,8,0)}getRgbBuffer(e,t,n,r,i,a,o){let{base:s,highVal:c,lookup:l}=this,{numComps:u}=s,d=s.getOutputLength(u,o);for(let a=0;a<n;++a){let n=ae(Math.round(e[t++]),0,c)*u;s.getRgbBuffer(l,n,1,r,i,8,o),i+=d}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(e.length===2?!Number.isInteger(t)||t<1?(m(`Bits per component is not correct`),!0):e[0]===0&&e[1]===(1<<t)-1:(m(`Decode map length is not correct`),!0))}},Tt=class extends xt{constructor(){super(`DeviceGray`,1)}getRgbItem(e,t,n,r){let i=255*e[t];n[r]=n[r+1]=n[r+2]=i}getRgbBuffer(e,t,n,r,i,a,o){let s=255/((1<<a)-1),c=t,l=i;for(let t=0;t<n;++t){let t=s*e[c++];r[l++]=t,r[l++]=t,r[l++]=t,l+=o}}getOutputLength(e,t){return e*(3+t)}},Et=class extends xt{constructor(){super(`DeviceRGB`,3)}getRgbItem(e,t,n,r){n[r]=255*e[t],n[r+1]=255*e[t+1],n[r+2]=255*e[t+2]}getRgbBuffer(e,t,n,r,i,a,o){if(a===8&&o===0)return void r.set(e.subarray(t,t+3*n),i);let s=255/((1<<a)-1),c=t,l=i;for(let t=0;t<n;++t)r[l++]=s*e[c++],r[l++]=s*e[c++],r[l++]=s*e[c++],l+=o}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return e===8}},Dt=class extends xt{constructor(){super(`DeviceRGBA`,4)}getOutputLength(e,t){return 4*e}isPassthrough(e){return e===8}fillRgb(e,t,n,r,i,a,o,s,c){n!==i||t!==r?function(e,t,n,r,i,a,o){let s=n/i,c=r/a,l=0,u=new Uint16Array(i);if(o===1){for(let e=0;e<i;e++)u[e]=Math.floor(e*s);let r=new Uint32Array(e.buffer),o=new Uint32Array(t.buffer),d=A.isLittleEndian?16777215:4294967040;for(let e=0;e<a;e++){let t=r.subarray(Math.floor(e*c)*n);for(let e=0;e<i;e++)o[l++]|=t[u[e]]&d}}else{let r=n*4;for(let e=0;e<i;e++)u[e]=Math.floor(e*s)*4;for(let n=0;n<a;n++){let a=e.subarray(Math.floor(n*c)*r);for(let e=0;e<i;e++){let n=u[e];t[l++]=a[n],t[l++]=a[n+1],t[l++]=a[n+2]}}}}(s,e,t,n,r,i,c):function(e,t,n){if(n===1){let n=new Uint32Array(e.buffer),r=new Uint32Array(t.buffer),i=A.isLittleEndian?16777215:4294967040;for(let e=0,t=n.length;e<t;e++)r[e]|=n[e]&i}else{let n=0;for(let r=0,i=e.length;r<i;r+=4)t[n++]=e[r],t[n++]=e[r+1],t[n++]=e[r+2]}}(s,e,c)}},Ot=class extends xt{constructor(){super(`DeviceCMYK`,4)}#e(e,t,n,r,i){let a=e[t]*n,o=e[t+1]*n,s=e[t+2]*n,c=e[t+3]*n;r[i]=255+a*(-4.387332384609988*a+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),r[i+1]=255+a*(8.841041422036149*a+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),r[i+2]=255+a*(.8842522430003296*a+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(e,t,n,r){this.#e(e,t,1,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;a++)this.#e(e,t,s,r,i),t+=4,i+=3+o}getOutputLength(e,t){return e/4*(3+t)|0}},kt=class extends xt{constructor(e,t,n){if(super(`CalGray`,1),!e)throw new w(`WhitePoint missing - required for color space CalGray`);if([this.XW,this.YW,this.ZW]=e,[this.XB,this.YB,this.ZB]=t||[0,0,0],this.G=n||1,this.XW<0||this.ZW<0||this.YW!==1)throw new w(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(p(`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||m(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(p(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#e(e,t,n,r,i){let a=(e[t]*i)**this.G,o=this.YW*a,s=Math.max(295.8*o**.3333333333333333-40.8,0);n[r]=s,n[r+1]=s,n[r+2]=s}getRgbItem(e,t,n,r){this.#e(e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;++a)this.#e(e,t,r,i,s),t+=1,i+=3+o}getOutputLength(e,t){return e*(3+t)}},At=class e extends xt{static#e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#n=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#r=new Float32Array([1,1,1]);static#i=new Float32Array(3);static#a=new Float32Array(3);static#o=new Float32Array(3);static#s=(24/116)**3/8;constructor(e,t,n,r){if(super(`CalRGB`,3),!e)throw new w(`WhitePoint missing - required for color space CalRGB`);let[i,a,o]=this.whitePoint=e,[s,c,l]=this.blackPoint=t||new Float32Array(3);if([this.GR,this.GG,this.GB]=n||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=r||new Float32Array([1,0,0,0,1,0,0,0,1]),i<0||o<0||a!==1)throw new w(`Invalid WhitePoint components for ${this.name}, no fallback available`);(s<0||c<0||l<0)&&(p(`Invalid BlackPoint for ${this.name} [${s}, ${c}, ${l}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(p(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#c(e,t,n){n[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],n[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],n[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}#l(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}#u(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}#d(e){return e<=.0031308?ae(12.92*e,0,1):e>=.99554525?1:ae(1.055*e**(1/2.4)-.055,0,1)}#f(t){return t<0?-this.#f(-t):t>8?((t+16)/116)**3:t*e.#s}#p(e,t,n){if(e[0]===0&&e[1]===0&&e[2]===0)return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);let r=this.#f(0),i=(1-r)/(1-this.#f(e[0])),a=1-i,o=(1-r)/(1-this.#f(e[1])),s=1-o,c=(1-r)/(1-this.#f(e[2])),l=1-c;n[0]=t[0]*i+a,n[1]=t[1]*o+s,n[2]=t[2]*c+l}#m(t,n,r){if(t[0]===1&&t[2]===1)return r[0]=n[0],r[1]=n[1],void(r[2]=n[2]);let i=r;this.#c(e.#e,n,i);let a=e.#i;this.#l(t,i,a),this.#c(e.#t,a,r)}#h(t,n,r){let i=r;this.#c(e.#e,n,i);let a=e.#i;this.#u(t,i,a),this.#c(e.#t,a,r)}#g(t,n,r,i,a){let o=ae(t[n]*a,0,1),s=ae(t[n+1]*a,0,1),c=ae(t[n+2]*a,0,1),l=o===1?1:o**this.GR,u=s===1?1:s**this.GG,d=c===1?1:c**this.GB,f=this.MXA*l+this.MXB*u+this.MXC*d,p=this.MYA*l+this.MYB*u+this.MYC*d,m=this.MZA*l+this.MZB*u+this.MZC*d,h=e.#a;h[0]=f,h[1]=p,h[2]=m;let g=e.#o;this.#m(this.whitePoint,h,g);let _=e.#a;this.#p(this.blackPoint,g,_);let v=e.#o;this.#h(e.#r,_,v);let y=e.#a;this.#c(e.#n,v,y),r[i]=255*this.#d(y[0]),r[i+1]=255*this.#d(y[1]),r[i+2]=255*this.#d(y[2])}getRgbItem(e,t,n,r){this.#g(e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;++a)this.#g(e,t,r,i,s),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}},jt=class extends xt{constructor(e,t,n){if(super(`Lab`,3),!e)throw new w(`WhitePoint missing - required for color space Lab`);if([this.XW,this.YW,this.ZW]=e,[this.amin,this.amax,this.bmin,this.bmax]=n||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=t||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new w(`Invalid WhitePoint components, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(p(`Invalid BlackPoint, falling back to default`),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(p(`Invalid Range, falling back to defaults`),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#e(e){return e>=6/29?e**3:108/841*(e-4/29)}#t(e,t,n,r){return n+e*(r-n)/t}#n(e,t,n,r,i){let a=e[t],o=e[t+1],s=e[t+2];!1!==n&&(a=this.#t(a,n,0,100),o=this.#t(o,n,this.amin,this.amax),s=this.#t(s,n,this.bmin,this.bmax)),o>this.amax?o=this.amax:o<this.amin&&(o=this.amin),s>this.bmax?s=this.bmax:s<this.bmin&&(s=this.bmin);let c=(a+16)/116,l=c+o/500,u=c-s/200,d=this.XW*this.#e(l),f=this.YW*this.#e(c),p=this.ZW*this.#e(u),m,h,g;this.ZW<1?(m=3.1339*d+-1.617*f+-.4906*p,h=-.9785*d+1.916*f+.0333*p,g=.072*d+-.229*f+1.4057*p):(m=3.2406*d+-1.5372*f+-.4986*p,h=-.9689*d+1.8758*f+.0415*p,g=.0557*d+-.204*f+1.057*p),r[i]=255*Math.sqrt(m),r[i+1]=255*Math.sqrt(h),r[i+2]=255*Math.sqrt(g)}getRgbItem(e,t,n,r){this.#n(e,t,!1,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=(1<<a)-1;for(let a=0;a<n;a++)this.#n(e,t,s,r,i),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return v(this,`usesZeroToOneRange`,!1)}};function Mt(e){let t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),t.response}var Nt=class e extends xt{#e;#t;static#n=!0;static#r=null;static#i=null;constructor(t,n,r){if(!e.isUsable)throw Error(`No ICC color space support`);let i;switch(super(n,r),r){case 1:i=_t.Gray8,this.#t=(e,t,n)=>function(e,t,n){dt.qcms_convert_one(e,t,n)}(this.#e,255*e[t],n);break;case 3:i=_t.RGB8,this.#t=(e,t,n)=>function(e,t,n,r,i){dt.qcms_convert_three(e,t,n,r,i)}(this.#e,255*e[t],255*e[t+1],255*e[t+2],n);break;case 4:i=_t.CMYK,this.#t=(e,t,n)=>function(e,t,n,r,i,a){dt.qcms_convert_four(e,t,n,r,i,a)}(this.#e,255*e[t],255*e[t+1],255*e[t+2],255*e[t+3],n);break;default:throw Error(`Unsupported number of components: ${r}`)}if(this.#e=function(e,t,n){let r=gt(e,dt.__wbindgen_malloc),i=ht;return dt.qcms_transformer_from_memory(r,i,t,n)>>>0}(t,i,vt.Perceptual),!this.#e)throw Error(`Failed to create ICC color space`);e.#i||=new FinalizationRegistry(e=>{(function(e){dt.qcms_drop_transformer(e)})(e)}),e.#i.register(this,this.#e)}getRgbHex(e,t){return this.#t(e,t,!0),ut._cssColor}getRgbItem(e,t,n,r){ut._destBuffer=n,ut._destOffset=r,ut._destLength=3,this.#t(e,t,!1),ut._destBuffer=null}getRgbBuffer(e,t,n,r,i,a,o){if(e=e.subarray(t,t+n*this.numComps),a!==8){let t=255/((1<<a)-1);for(let n=0,r=e.length;n<r;n++)e[n]*=t}ut._mustAddAlpha=o&&r.buffer===e.buffer,ut._destBuffer=r,ut._destOffset=i,ut._destLength=n*(3+o),function(e,t){let n=gt(t,dt.__wbindgen_malloc),r=ht;dt.qcms_convert_array(e,n,r)}(this.#e,e),ut._mustAddAlpha=!1,ut._destBuffer=null}getOutputLength(e,t){return e/this.numComps*(3+t)|0}static setOptions({useWasm:e,useWorkerFetch:t,wasmUrl:n}){t?(this.#n=e,this.#r=n):this.#n=!1}static get isUsable(){let e=!1;if(this.#n)if(this.#r)try{this._module=bt({module:Mt(`${this.#r}qcms_bg.wasm`)}),e=!!this._module,ut._memory=this._module.memory,ut._makeHexColor=M.makeHexColor}catch(e){m(`ICCBased color space: "${e}".`)}else m("No ICC color space support due to missing `wasmUrl` API option");return v(this,`isUsable`,e)}},Pt=class e extends Nt{static#e;constructor(){super(new Uint8Array(Mt(`${e.#e}CGATS001Compat-v2-micro.icc`)),`DeviceCMYK`,4)}static setOptions({iccUrl:e}){this.#e=e}static get isUsable(){let e=!1;return Nt.isUsable&&(this.#e?e=!0:m("No CMYK ICC profile support due to missing `iccUrl` API option")),v(this,`isUsable`,e)}},Ft=class e extends be{constructor(e,t,n,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}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 t=this.bytes,n=this.pos,r=this.end;if(!e)return t.subarray(n,r);let i=n+e;return i>r&&(i=r),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,n,r=null){return new e(this.bytes.buffer,t,n,r)}},It=class extends Ft{constructor(e){super(D(e))}},Lt=class extends Ft{constructor(){super(new Uint8Array)}},Rt=class extends Ft{constructor(e,t,n){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){let e=[];for(let t=0,n=this.numChunks;t<n;++t)this._loadedChunks.has(t)||e.push(t);return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){let n=this.chunkSize;if(e%n!==0)throw Error(`Bad begin offset: ${e}`);let r=e+t.byteLength;if(r%n!==0&&r!==this.bytes.length)throw Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(t),e);let i=Math.floor(e/n),a=Math.floor((r-1)/n)+1;for(let e=i;e<a;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){let t=this.progressiveDataLength,n=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;let r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=n;e<r;++e)this._loadedChunks.add(e)}ensureByte(e){if(e<this.progressiveDataLength)return;let t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new De(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t||t<=this.progressiveDataLength)return;let n=Math.floor(e/this.chunkSize);if(n>this.numChunks)return;let r=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let i=n;i<r;++i)if(!this._loadedChunks.has(i))throw new De(e,t)}nextEmptyChunk(e){let t=this.numChunks;for(let n=0;n<t;++n){let r=(e+n)%t;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){let e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){let t=this.bytes,n=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(n,r),t.subarray(n,r);let i=n+e;return i>r&&(i=r),i>this.progressiveDataLength&&this.ensureRange(n,i),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t,n=null){function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){let e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<n;++e)this._loadedChunks.has(e)||r.push(e);return r},Object.defineProperty(r.prototype,`isDataLoaded`,{get(){return this.numChunksLoaded===this.numChunks||this.getMissingChunks().length===0},configurable:!0});let i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=n,i}getBaseStreams(){return[this]}},zt=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new Rt(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=Promise.withResolvers()}sendRequest(e,t){let n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));let r=[],i=0;return new Promise((e,t)=>{let a=({value:o,done:s})=>{try{if(s){let t=je(r);r=null,e(t);return}i+=o.byteLength,n.isStreamingSupported&&this.onProgress({loaded:i}),r.push(o),n.read().then(a,t)}catch(e){t(e)}};n.read().then(a,t)}).then(t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})})}requestAllChunks(e=!1){if(!e){let e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){let t=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(t,n);for(let t of e)this.stream.hasChunk(t)||n.add(t);if(n.size===0)return Promise.resolve();let r=Promise.withResolvers();this._promisesByRequest.set(t,r);let i=[];for(let e of n){let n=this._requestsByChunk.get(e);n||(n=[],this._requestsByChunk.set(e,n),i.push(e)),n.push(t)}if(i.length>0){let e=this.groupChunks(i);for(let t of e){let e=t.beginChunk*this.chunkSize,n=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,n).catch(r.reject)}}return r.promise.catch(e=>{if(!this.aborted)throw e})}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);let n=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let e=n;e<r;++e)i.push(e);return this._requestChunks(i)}requestRanges(e=[]){let t=[];for(let n of e){let e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n<r;++n)t.includes(n)||t.push(n)}return t.sort((e,t)=>e-t),this._requestChunks(t)}groupChunks(e){let t=[],n=-1,r=-1;for(let i=0,a=e.length;i<a;++i){let a=e[i];n<0&&(n=a),r>=0&&r+1!==a&&(t.push({beginChunk:n,endChunk:r+1}),n=a),i+1===e.length&&t.push({beginChunk:n,endChunk:a+1}),r=a}return t}onProgress(e){this.msgHandler.send(`DocProgress`,{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){let t=e.chunk,n=e.begin===void 0,r=n?this.progressiveDataLength:e.begin,i=r+t.byteLength,a=Math.floor(r/this.chunkSize),o=i<this.length?Math.floor(i/this.chunkSize):Math.ceil(i/this.chunkSize);n?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=i):this.stream.onReceiveData(r,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);let s=[];for(let e=a;e<o;++e){let t=this._requestsByChunk.get(e);if(t){this._requestsByChunk.delete(e);for(let n of t){let t=this._chunksNeededByRequest.get(n);t.has(e)&&t.delete(e),t.size>0||s.push(n)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let e;if(this.stream.numChunksLoaded===1){let t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(o);Number.isInteger(e)&&this._requestChunks([e])}for(let e of s){let t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e),t.resolve()}this.msgHandler.send(`DocProgress`,{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream?.cancelAllRequests(e);for(let t of this._promisesByRequest.values())t.reject(e)}};function Bt(e){switch(e.kind){case 1:return Vt(e);case 2:return function({src:e,srcPos:t=0,dest:n,destPos:r=0,width:i,height:a}){let o=0,s=i*a*3,c=s>>2,l=new Uint32Array(e.buffer,t,c);if(A.isLittleEndian){for(;o<c-2;o+=3,r+=4){let e=l[o],t=l[o+1],i=l[o+2];n[r]=4278190080|e,n[r+1]=e>>>24|t<<8|4278190080,n[r+2]=t>>>16|i<<16|4278190080,n[r+3]=i>>>8|4278190080}for(let i=4*o,a=t+s;i<a;i+=3)n[r++]=e[i]|e[i+1]<<8|e[i+2]<<16|4278190080}else{for(;o<c-2;o+=3,r+=4){let e=l[o],t=l[o+1],i=l[o+2];n[r]=255|e,n[r+1]=e<<24|t>>>8|255,n[r+2]=t<<16|i>>>16|255,n[r+3]=i<<8|255}for(let i=4*o,a=t+s;i<a;i+=3)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|255}return{srcPos:t+s,destPos:r}}(e)}return null}function Vt({src:e,srcPos:t=0,dest:n,width:r,height:i,nonBlackColor:a=4294967295,inverseDecode:o=!1}){let s=A.isLittleEndian?4278190080:255,[c,l]=o?[a,s]:[s,a],u=r>>3,d=7&r,f=e.length;n=new Uint32Array(n.buffer);let p=0;for(let r=0;r<i;r++){for(let r=t+u;t<r;t++){let r=t<f?e[t]:255;n[p++]=128&r?l:c,n[p++]=64&r?l:c,n[p++]=32&r?l:c,n[p++]=16&r?l:c,n[p++]=8&r?l:c,n[p++]=4&r?l:c,n[p++]=2&r?l:c,n[p++]=1&r?l:c}if(d===0)continue;let r=t<f?e[t++]:255;for(let e=0;e<d;e++)n[p++]=r&1<<7-e?l:c}return{srcPos:t,destPos:p}}var Ht=class e{static#e=2048;static#t=A.isImageDecoderSupported;constructor(e,t){this._imgData=e,this._isMask=t}static get canUseImageDecoder(){return v(this,`canUseImageDecoder`,this.#t?ImageDecoder.isTypeSupported(`image/bmp`):Promise.resolve(!1))}static needsToBeResized(e,t){if(e<=this.#e&&t<=this.#e)return!1;let{MAX_DIM:n}=this;if(e>n||t>n)return!0;let r=e*t;return this._hasMaxArea?r>this.MAX_AREA:r<this.#e**2?!1:this._areGoodDims(e,t)?(this.#e=Math.max(this.#e,Math.floor(Math.sqrt(e*t))),!1):(this.#e=this._guessMax(this.#e,n,128,0),r>(this.MAX_AREA=this.#e**2))}static getReducePowerForJPX(e,t,n){let r=e*t,i=2**30/(4*n);if(!this.needsToBeResized(e,t))return r>i?Math.ceil(Math.log2(r/i)):0;let{MAX_DIM:a,MAX_AREA:o}=this,s=Math.max(e/a,t/a,Math.sqrt(r/Math.min(i,o)));return Math.ceil(Math.log2(s))}static get MAX_DIM(){return v(this,`MAX_DIM`,this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,v(this,`MAX_AREA`,this._guessMax(this.#e,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){e>=0&&(this._hasMaxArea=!0,v(this,`MAX_AREA`,e))}static setOptions({canvasMaxAreaInBytes:e=-1,isImageDecoderSupported:t=!1}){this._hasMaxArea||(this.MAX_AREA=e>>2),this.#t=t}static _areGoodDims(e,t){try{let n=new OffscreenCanvas(e,t),r=n.getContext(`2d`);r.fillRect(0,0,1,1);let i=r.getImageData(0,0,1,1).data[3];return n.width=n.height=1,i!==0}catch{return!1}}static _guessMax(e,t,n,r){for(;e+n+1<t;){let n=Math.floor((e+t)/2),i=r||n;this._areGoodDims(n,i)?e=n:t=n}return e}static async createImage(t,n=!1){return new e(t,n)._createImage()}async _createImage(){let{_imgData:t}=this,{width:n,height:r}=t;if(n*r*4>Se){let e=this.#n();if(e)return e}let i=this._encodeBMP(),a,o;await e.canUseImageDecoder?(a=new ImageDecoder({data:i,type:`image/bmp`,preferAnimation:!1,transfer:[i.buffer]}),o=a.decode().catch(e=>(m(`BMP image decoding failed: ${e}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:`image/bmp`})))).finally(()=>{a.close()})):o=createImageBitmap(new Blob([i.buffer],{type:`image/bmp`}));let{MAX_AREA:s,MAX_DIM:c}=e,l=Math.max(n/c,r/c,Math.sqrt(n*r/s)),u=Math.max(l,2),d=Math.round(10*(l+1.25))/10/u,f=Math.floor(Math.log2(d)),p=Array(f+2).fill(2);p[0]=u,p.splice(-1,1,d/(1<<f));let h=n,g=r,_=await o,v=_.image||_;for(let e of p){let t=h,n=g;h=Math.floor(h/e)-1,g=Math.floor(g/e)-1;let r=new OffscreenCanvas(h,g);r.getContext(`2d`).drawImage(v,0,0,t,n,0,0,h,g),v.close(),v=r.transferToImageBitmap()}return t.data=null,t.bitmap=v,t.width=h,t.height=g,t}#n(){let{_imgData:t}=this,{data:n,width:r,height:i,kind:a}=t,o=r*i*4,s=Math.ceil(Math.log2(o/Se)),c=r>>s,l=i>>s,u,d=i;try{u=new Uint8Array(o)}catch{let e=Math.floor(Math.log2(o+1));for(;;)try{u=new Uint8Array(2**e-1);break}catch{--e}d=Math.floor((2**e-1)/(4*r));let t=r*d*4;t<u.length&&(u=new Uint8Array(t))}let f=new Uint32Array(u.buffer),p=new Uint32Array(c*l),m=0,h=0,g=Math.ceil(i/d),_=i%d===0?i:i%d;for(let e=0;e<g;e++){let t=e<g-1?d:_;({srcPos:m}=Bt({kind:a,src:n,dest:f,width:r,height:t,inverseDecode:this._isMask,srcPos:m}));for(let e=0,n=t>>s;e<n;e++){let t=f.subarray((e<<s)*r);for(let e=0;e<c;e++)p[h++]=t[e<<s]}}if(e.needsToBeResized(c,l))return t.data=p,t.width=c,t.height=l,t.kind=3,null;let v=new OffscreenCanvas(c,l);return v.getContext(`2d`,{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(p.buffer),c,l),0,0),t.data=null,t.bitmap=v.transferToImageBitmap(),t.width=c,t.height=l,t}_encodeBMP(){let{width:e,height:t,kind:n}=this._imgData,r,i=this._imgData.data,a=new Uint8Array,o=a,s=0;switch(n){case 1:{r=1,a=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let n=e+7>>3,o=n+3&-4;if(n!==o){let e=new Uint8Array(o*t),r=0;for(let a=0,s=t*n;a<s;a+=n,r+=o)e.set(i.subarray(a,a+n),r);i=e}break}case 2:if(r=24,3&e){let n=3*e,r=n+3&-4,a=r-n,o=new Uint8Array(r*t),s=0;for(let e=0,r=t*n;e<r;e+=n){let t=i.subarray(e,e+n);for(let e=0;e<n;e+=3)o[s++]=t[e+2],o[s++]=t[e+1],o[s++]=t[e];s+=a}i=o}else for(let e=0,t=i.length;e<t;e+=3){let t=i[e];i[e]=i[e+2],i[e+2]=t}break;case 3:r=32,s=3,o=new Uint8Array(68);let n=new DataView(o.buffer);A.isLittleEndian?(n.setUint32(0,255,!0),n.setUint32(4,65280,!0),n.setUint32(8,16711680,!0),n.setUint32(12,4278190080,!0)):(n.setUint32(0,4278190080,!0),n.setUint32(4,16711680,!0),n.setUint32(8,65280,!0),n.setUint32(12,255,!0));break;default:throw Error(`invalid format`)}let c=0,l=40+o.length,u=14+l+a.length+i.length,d=new Uint8Array(u),f=new DataView(d.buffer);return f.setUint16(c,19778,!0),c+=2,f.setUint32(c,u,!0),c+=4,f.setUint32(c,0,!0),c+=4,f.setUint32(c,14+l+a.length,!0),c+=4,f.setUint32(c,l,!0),c+=4,f.setInt32(c,e,!0),c+=4,f.setInt32(c,-t,!0),c+=4,f.setUint16(c,1,!0),c+=2,f.setUint16(c,r,!0),c+=2,f.setUint32(c,s,!0),c+=4,f.setUint32(c,0,!0),c+=4,f.setInt32(c,0,!0),c+=4,f.setInt32(c,0,!0),c+=4,f.setUint32(c,a.length/4,!0),c+=4,f.setUint32(c,0,!0),c+=4,d.set(o,c),c+=o.length,d.set(a,c),c+=a.length,d.set(i,c),d}};const Ut=new Uint8Array;var Wt=class extends be{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=Ut,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(e){let t=this.buffer;if(e<=t.byteLength)return t;let n=this.minBufferLength;for(;n<e;)n*=2;let r=new Uint8Array(n);return r.set(t),this.buffer=r}getByte(){let e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e,t=null){let n=this.pos,r;if(e){for(this.ensureBuffer(n+e),r=n+e;!this.eof&&this.bufferLength<r;)this.readBlock(t);let i=this.bufferLength;r>i&&(r=i)}else{for(;!this.eof;)this.readBlock(t);r=this.bufferLength}return this.pos=r,this.buffer.subarray(n,r)}async getImageData(e,t){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,t):this.getBytes(e,t);let n=await this.stream.asyncGetBytes();return this.decodeImage(n,t)}reset(){this.pos=0}makeSubStream(e,t,n=null){if(t===void 0)for(;!this.eof;)this.readBlock();else{let n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock()}return new Ft(this.buffer,e,t,n)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}},Gt=class extends Wt{constructor(e,t=null){e=e.filter(e=>e instanceof be);let n=0;for(let t of e)n+=t instanceof Wt?t._rawMinBufferLength:t.length;super(n),this.streams=e,this._onError=t}readBlock(){let e=this.streams;if(e.length===0)return void(this.eof=!0);let t=e.shift(),n;try{n=t.getBytes()}catch(e){if(this._onError)return void this._onError(e,t.dict?.objId);throw e}let r=this.bufferLength,i=r+n.length;this.ensureBuffer(i).set(n,r),this.bufferLength=i}getBaseStreams(){let e=[];for(let t of this.streams){let n=t.getBaseStreams();n&&e.push(...n)}return e.length>0?e:null}},Kt=class{static parse({cs:e,xref:t,resources:n=null,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a,asyncIfNotCached:o=!1}){let s={xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a},c,l,u;if(e instanceof R){l=e;let n=i.getByRef(l)||a.getByRef(l);if(n)return n;e=t.fetch(e)}if(e instanceof I){c=e.name;let t=a.getByName(c);if(t)return t}try{u=this.#t(e,s)}catch(e){if(o&&!(e instanceof De))return Promise.reject(e);throw e}return(c||l)&&(a.set(c,l,u),l&&i.set(null,l,u)),o?Promise.resolve(u):u}static#e(e,t){let{globalColorSpaceCache:n}=t,r;if(e instanceof R){r=e;let t=n.getByRef(r);if(t)return t}let i=this.#t(e,t);return r&&n.set(null,r,i),i}static#t(e,t){let{xref:n,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:a}=t;if((e=n.fetchIfRef(e))instanceof I)switch(e.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 Ct(null);default:if(r instanceof L){let n=r.get(`ColorSpace`);if(n instanceof L){let r=n.get(e.name);if(r){if(r instanceof I)return this.#t(r,t);e=r;break}}}return m(`Unrecognized ColorSpace: ${e.name}`),this.gray}if(Array.isArray(e)){let r=n.fetchIfRef(e[0]).name,o,s,c,l,u,d;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 o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`),d=o.get(`Gamma`),new kt(l,u,d);case`CalRGB`:o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`),d=o.getArray(`Gamma`);let f=o.getArray(`Matrix`);return new At(l,u,d,f);case`ICCBased`:let p=e[1]instanceof R;if(p){let t=a.getByRef(e[1]);if(t)return t}let h=n.fetchIfRef(e[1]),g=h.dict;if(s=g.get(`N`),Nt.isUsable)try{let t=new Nt(h.getBytes(),`ICCBased`,s);return p&&a.set(null,e[1],t),t}catch(t){if(t instanceof De)throw t;m(`ICCBased color space (${e[1]}): "${t}".`)}let _=g.getRaw(`Alternate`);if(_){let e=this.#e(_,t);if(e.numComps===s)return e;m(`ICCBased color space: Ignoring incorrect /Alternate entry.`)}if(s===1)return this.gray;if(s===3)return this.rgb;if(s===4)return this.cmyk;break;case`Pattern`:return c=e[1]||null,c&&=this.#e(c,t),new Ct(c);case`I`:case`Indexed`:c=this.#e(e[1],t);let v=ae(n.fetchIfRef(e[2]),0,255),y=n.fetchIfRef(e[3]);return new wt(c,v,y);case`Separation`:case`DeviceN`:let b=n.fetchIfRef(e[1]);s=Array.isArray(b)?b.length:1,c=this.#e(e[2],t);let x=i.create(e[3]);return new St(s,c,x);case`Lab`:o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`);let S=o.getArray(`Range`);return new jt(l,u,S);default:return m(`Unimplemented ColorSpace object: ${r}`),this.gray}}return m(`Unrecognized ColorSpace object: ${e}`),this.gray}static get gray(){return v(this,`gray`,new Tt)}static get rgb(){return v(this,`rgb`,new Et)}static get rgba(){return v(this,`rgba`,new Dt)}static get cmyk(){if(Pt.isUsable)try{return v(this,`cmyk`,new Pt)}catch{m(`CMYK fallback: DeviceCMYK`)}return v(this,`cmyk`,new Ot)}},qt=class extends y{constructor(e){super(e,`JpegError`)}},Jt=class extends y{constructor(e,t){super(e,`DNLMarkerError`),this.scanLines=t}},Yt=class extends y{constructor(e){super(e,`EOIMarkerError`)}};const Xt=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]),Zt=4017,Qt=3406,$t=2276,en=1567,tn=3784,nn=5793,rn=2896;function an(e,t){let n,r,i=0,a=16;for(;a>0&&!e[a-1];)a--;let o=[{children:[],index:0}],s,c=o[0];for(n=0;n<a;n++){for(r=0;r<e[n];r++){for(c=o.pop(),c.children[c.index]=t[i];c.index>0;)c=o.pop();for(c.index++,o.push(c);o.length<=n;)o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;i++}n+1<a&&(o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s)}return o[0].children}function on(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function sn(e,t,n,r,i,a,o,s,c,l=!1){let u=n.mcusPerLine,d=n.progressive,f=t,p=0,h=0;function g(){if(h>0)return h--,p>>h&1;if(p=e[t++],p===255){let r=e[t++];if(r){if(r===220&&l){let r=ze(e,t+=2);if(t+=2,r>0&&r!==n.scanLines)throw new Jt(`Found DNL marker (0xFFDC) while parsing scan data`,r)}else if(r===217){if(l){let e=C*(n.precision===8?8:0);if(e>0&&Math.round(n.scanLines/e)>=5)throw new Jt("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new Yt(`Found EOI marker (0xFFD9) while parsing scan data`)}throw new qt(`unexpected marker ${(p<<8|r).toString(16)}`)}}return h=7,p>>>7}function _(e){let t=e;for(;;){switch(t=t[g()],typeof t){case`number`:return t;case`object`:continue}throw new qt(`invalid huffman sequence`)}}function v(e){let t=0;for(;e>0;)t=t<<1|g(),e--;return t}function y(e){if(e===1)return g()===1?1:-1;let t=v(e);return t>=1<<e-1?t:t+(-1<<e)+1}let b=0,x,S=0,C=0;function w(e,t,n,r,i){let a=n%u;C=(n/u|0)*e.v+r;let o=a*e.h+i;t(e,on(e,C,o))}function T(e,t,n){C=n/e.blocksPerLine|0;let r=n%e.blocksPerLine;t(e,on(e,C,r))}let E=r.length,D,O,k,A,j,M;M=d?a===0?s===0?function(e,t){let n=_(e.huffmanTableDC),r=n===0?0:y(n)<<c;e.blockData[t]=e.pred+=r}:function(e,t){e.blockData[t]|=g()<<c}:s===0?function(e,t){if(b>0)return void b--;let n=a,r=o;for(;n<=r;){let r=_(e.huffmanTableAC),i=15&r,a=r>>4;if(i===0){if(a<15){b=v(a)+(1<<a)-1;break}n+=16;continue}n+=a;let o=Xt[n];e.blockData[t+o]=y(i)*(1<<c),n++}}:function(e,t){let n=a,r=o,i,s,l=0;for(;n<=r;){let r=t+Xt[n],a=e.blockData[r]<0?-1:1;switch(S){case 0:if(s=_(e.huffmanTableAC),i=15&s,l=s>>4,i===0)l<15?(b=v(l)+(1<<l),S=4):(l=16,S=1);else{if(i!==1)throw new qt(`invalid ACn encoding`);x=y(i),S=l?2:3}continue;case 1:case 2:e.blockData[r]?e.blockData[r]+=a*(g()<<c):(l--,l===0&&(S=S===2?3:0));break;case 3:e.blockData[r]?e.blockData[r]+=a*(g()<<c):(e.blockData[r]=x<<c,S=0);break;case 4:e.blockData[r]&&(e.blockData[r]+=a*(g()<<c))}n++}S===4&&(b--,b===0&&(S=0))}:function(e,t){let n=_(e.huffmanTableDC),r=n===0?0:y(n);e.blockData[t]=e.pred+=r;let i=1;for(;i<64;){let n=_(e.huffmanTableAC),r=15&n,a=n>>4;if(r===0){if(a<15)break;i+=16;continue}i+=a;let o=Xt[i];e.blockData[t+o]=y(r),i++}};let N,P=0,F=E===1?r[0].blocksPerLine*r[0].blocksPerColumn:u*n.mcusPerColumn,ee,te;for(;P<=F;){let n=i?Math.min(F-P,i):F;if(n>0){for(O=0;O<E;O++)r[O].pred=0;if(b=0,E===1)for(D=r[0],j=0;j<n;j++)T(D,M,P),P++;else for(j=0;j<n;j++){for(O=0;O<E;O++)for(D=r[O],ee=D.h,te=D.v,k=0;k<te;k++)for(A=0;A<ee;A++)w(D,M,P,k,A);P++}}if(h=0,N=un(e,t),!N||(N.invalid&&(m(`decodeScan - ${n>0?`unexpected`:`excessive`} MCU data, current marker is: ${N.invalid}`),t=N.offset),!(N.marker>=65488&&N.marker<=65495)))break;t+=2}return t-f}function cn(e,t,n){let r=e.quantizationTable,i=e.blockData,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(!r)throw new qt(`missing required Quantization Table.`);for(let e=0;e<64;e+=8)p=i[t+e],m=i[t+e+1],h=i[t+e+2],g=i[t+e+3],_=i[t+e+4],v=i[t+e+5],y=i[t+e+6],b=i[t+e+7],p*=r[e],(m|h|g|_|v|y|b)===0?(x=nn*p+512>>10,n[e]=x,n[e+1]=x,n[e+2]=x,n[e+3]=x,n[e+4]=x,n[e+5]=x,n[e+6]=x,n[e+7]=x):(m*=r[e+1],h*=r[e+2],g*=r[e+3],_*=r[e+4],v*=r[e+5],y*=r[e+6],b*=r[e+7],a=nn*p+128>>8,o=nn*_+128>>8,s=h,c=y,l=rn*(m-b)+128>>8,f=rn*(m+b)+128>>8,u=g<<4,d=v<<4,a=a+o+1>>1,o=a-o,x=s*tn+c*en+128>>8,s=s*en-c*tn+128>>8,c=x,l=l+d+1>>1,d=l-d,f=f+u+1>>1,u=f-u,a=a+c+1>>1,c=a-c,o=o+s+1>>1,s=o-s,x=l*$t+f*Qt+2048>>12,l=l*Qt-f*$t+2048>>12,f=x,x=u*799+d*Zt+2048>>12,u=u*Zt-d*799+2048>>12,d=x,n[e]=a+f,n[e+7]=a-f,n[e+1]=o+d,n[e+6]=o-d,n[e+2]=s+u,n[e+5]=s-u,n[e+3]=c+l,n[e+4]=c-l);for(let e=0;e<8;++e)p=n[e],m=n[e+8],h=n[e+16],g=n[e+24],_=n[e+32],v=n[e+40],y=n[e+48],b=n[e+56],(m|h|g|_|v|y|b)===0?(x=nn*p+8192>>14,x=x<-2040?0:x>=2024?255:x+2056>>4,i[t+e]=x,i[t+e+8]=x,i[t+e+16]=x,i[t+e+24]=x,i[t+e+32]=x,i[t+e+40]=x,i[t+e+48]=x,i[t+e+56]=x):(a=nn*p+2048>>12,o=nn*_+2048>>12,s=h,c=y,l=rn*(m-b)+2048>>12,f=rn*(m+b)+2048>>12,u=g,d=v,a=4112+(a+o+1>>1),o=a-o,x=s*tn+c*en+2048>>12,s=s*en-c*tn+2048>>12,c=x,l=l+d+1>>1,d=l-d,f=f+u+1>>1,u=f-u,a=a+c+1>>1,c=a-c,o=o+s+1>>1,s=o-s,x=l*$t+f*Qt+2048>>12,l=l*Qt-f*$t+2048>>12,f=x,x=u*799+d*Zt+2048>>12,u=u*Zt-d*799+2048>>12,d=x,p=a+f,b=a-f,m=o+d,y=o-d,h=s+u,v=s-u,g=c+l,_=c-l,p<16?p=0:p>=4080?p=255:p>>=4,m<16?m=0:m>=4080?m=255:m>>=4,h<16?h=0:h>=4080?h=255:h>>=4,g<16?g=0:g>=4080?g=255:g>>=4,_<16?_=0:_>=4080?_=255:_>>=4,v<16?v=0:v>=4080?v=255:v>>=4,y<16?y=0:y>=4080?y=255:y>>=4,b<16?b=0:b>=4080?b=255:b>>=4,i[t+e]=p,i[t+e+8]=m,i[t+e+16]=h,i[t+e+24]=g,i[t+e+32]=_,i[t+e+40]=v,i[t+e+48]=y,i[t+e+56]=b)}function ln(e,t){let n=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64);for(let e=0;e<r;e++)for(let r=0;r<n;r++)cn(t,on(t,e,r),i);return t.blockData}function un(e,t,n=t){let r=e.length-1,i=n<t?n:t;if(t>=r)return null;let a=ze(e,t);if(a>=65472&&a<=65534)return{invalid:null,marker:a,offset:t};let o=ze(e,i);for(;!(o>=65472&&o<=65534);){if(++i>=r)return null;o=ze(e,i)}return{invalid:a.toString(16),marker:o,offset:i}}function dn(e){let t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV);for(let r of e.components){let i=Math.ceil(Math.ceil(e.samplesPerLine/8)*r.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*r.v/e.maxV),o=t*r.h,s=64*(n*r.v)*(o+1);r.blockData=new Int16Array(s),r.blocksPerLine=i,r.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}function fn(e,t){let n=ze(e,t),r=(t+=2)+n-2,i=un(e,r,t);i?.invalid&&(m(`readDataBlock - incorrect length, current marker is: `+i.invalid),r=i.offset);let a=e.subarray(t,r);return{appData:a,oldOffset:t,newOffset:t+a.length}}function pn(e,t){let n=ze(e,t),r=(t+=2)+n-2,i=un(e,r,t);return i?.invalid?i.offset:r}var mn=class{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}static canUseImageDecoder(e,t=-1){let n=null,r=0,i=null,a=ze(e,r);if(r+=2,a!==65496)throw new qt(`SOI not found`);a=ze(e,r),r+=2;e:for(;a!==65497;){switch(a){case 65505:let{appData:t,oldOffset:o,newOffset:s}=fn(e,r);if(r=s,t[0]===69&&t[1]===120&&t[2]===105&&t[3]===102&&t[4]===0&&t[5]===0){if(n)throw new qt(`Duplicate EXIF-blocks found.`);n={exifStart:o+6,exifEnd:s}}a=ze(e,r),r+=2;continue;case 65472:case 65473:case 65474:i=e[r+7];break e;case 65535:e[r]!==255&&r--}r=pn(e,r),a=ze(e,r),r+=2}return i===4||i===3&&t===0?null:n||{}}parse(e,{dnlScanLines:t=null}={}){let n,r,i=0,a=null,o=null,s=0,c=[],l=[],u=[],d=ze(e,i);if(i+=2,d!==65496)throw new qt(`SOI not found`);d=ze(e,i),i+=2;e:for(;d!==65497;){let f,p,h;switch(d){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:g,newOffset:_}=fn(e,i);i=_,d===65504&&g[0]===74&&g[1]===70&&g[2]===73&&g[3]===70&&g[4]===0&&(a={version:{major:g[5],minor:g[6]},densityUnits:g[7],xDensity:g[8]<<8|g[9],yDensity:g[10]<<8|g[11],thumbWidth:g[12],thumbHeight:g[13],thumbData:g.subarray(14,14+3*g[12]*g[13])}),d===65518&&g[0]===65&&g[1]===100&&g[2]===111&&g[3]===98&&g[4]===101&&(o={version:g[5]<<8|g[6],flags0:g[7]<<8|g[8],flags1:g[9]<<8|g[10],transformCode:g[11]});break;case 65499:let v=ze(e,i);i+=2;let y=v+i-2,b;for(;i<y;){let t=e[i++],n=new Uint16Array(64);if(t>>4){if(t>>4!=1)throw new qt(`DQT - invalid table spec`);for(p=0;p<64;p++)b=Xt[p],n[b]=ze(e,i),i+=2}else for(p=0;p<64;p++)b=Xt[p],n[b]=e[i++];c[15&t]=n}break;case 65472:case 65473:case 65474:if(n)throw new qt(`Only single frame JPEGs supported`);i+=2,n={},n.extended=d===65473,n.progressive=d===65474,n.precision=e[i++];let x=ze(e,i);i+=2,n.scanLines=t||x,n.samplesPerLine=ze(e,i),i+=2,n.components=[],n.componentIds={};let S=e[i++],C=0,w=0;for(f=0;f<S;f++){let t=e[i],r=e[i+1]>>4,a=15&e[i+1];C<r&&(C=r),w<a&&(w=a);let o=e[i+2];h=n.components.push({h:r,v:a,quantizationId:o,quantizationTable:null}),n.componentIds[t]=h-1,i+=3}n.maxH=C,n.maxV=w,dn(n);break;case 65476:let T=ze(e,i);for(i+=2,f=2;f<T;){let t=e[i++],n=new Uint8Array(16),r=0;for(p=0;p<16;p++,i++)r+=n[p]=e[i];let a=new Uint8Array(r);for(p=0;p<r;p++,i++)a[p]=e[i];f+=17+r,(t>>4?l:u)[15&t]=an(n,a)}break;case 65501:i+=2,r=ze(e,i),i+=2;break;case 65498:let E=++s===1&&!t;i+=2;let D=e[i++],O=[];for(f=0;f<D;f++){let t=e[i++],r=n.componentIds[t],a=n.components[r];a.index=t;let o=e[i++];a.huffmanTableDC=u[o>>4],a.huffmanTableAC=l[15&o],O.push(a)}let k=e[i++],A=e[i++],j=e[i++];try{i+=sn(e,i,n,O,r,k,A,j>>4,15&j,E)}catch(t){if(t instanceof Jt)return m(`${t.message} -- attempting to re-parse the JPEG image.`),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof Yt){m(`${t.message} -- ignoring the rest of the image data.`);break e}throw t}break;case 65500:i+=4;break;case 65535:e[i]!==255&&i--;break;default:let M=un(e,i-2,i-3);if(M?.invalid){m(`JpegImage.parse - unexpected data, current marker is: `+M.invalid),i=M.offset;break}if(!M||i>=e.length-1){m(`JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).`);break e}throw new qt(`JpegImage.parse - unknown marker: `+d.toString(16))}d=ze(e,i),i+=2}if(!n)throw new qt(`JpegImage.parse - no frame data found.`);this.width=n.samplesPerLine,this.height=n.scanLines,this.jfif=a,this.adobe=o,this.components=[];for(let e of n.components){let t=c[e.quantizationId];t&&(e.quantizationTable=t),this.components.push({index:e.index,output:ln(0,e),scaleX:e.h/n.maxH,scaleY:e.v/n.maxV,blocksPerLine:e.blocksPerLine,blocksPerColumn:e.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,n=!1){let r=this.width/e,i=this.height/t,a,o,s,c,l,u,d,f,p,m,h,g=0,_=this.components.length,v=e*t*_,y=new Uint8ClampedArray(v),b=new Uint32Array(e),x=4294967288,S;for(d=0;d<_;d++){if(a=this.components[d],o=a.scaleX*r,s=a.scaleY*i,g=d,h=a.output,c=a.blocksPerLine+1<<3,o!==S){for(l=0;l<e;l++)f=0|l*o,b[l]=(f&x)<<3|7&f;S=o}for(u=0;u<t;u++)for(f=0|u*s,m=c*(f&x)|(7&f)<<3,l=0;l<e;l++)y[g]=h[m+b[l]],g+=_}let C=this._decodeTransform;if(n||_!==4||C||(C=new Int32Array([-256,255,-256,255,-256,255,-256,255])),C)for(d=0;d<v;)for(f=0,p=0;f<_;f++,d++,p+=2)y[d]=(y[d]*C[p]>>8)+C[p+1];return y}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(e){let t,n,r;for(let i=0,a=e.length;i<a;i+=3)t=e[i],n=e[i+1],r=e[i+2],e[i]=t-179.456+1.402*r,e[i+1]=t+135.459-.344*n-.714*r,e[i+2]=t-226.816+1.772*n;return e}_convertYccToRgba(e,t){for(let n=0,r=0,i=e.length;n<i;n+=3,r+=4){let i=e[n],a=e[n+1],o=e[n+2];t[r]=i-179.456+1.402*o,t[r+1]=i+135.459-.344*a-.714*o,t[r+2]=i-226.816+1.772*a,t[r+3]=255}return t}_convertYcckToRgb(e){return this._convertYcckToCmyk(e),this._convertCmykToRgb(e)}_convertYcckToRgba(e){return this._convertYcckToCmyk(e),this._convertCmykToRgba(e)}_convertYcckToCmyk(e){let t,n,r;for(let i=0,a=e.length;i<a;i+=4)t=e[i],n=e[i+1],r=e[i+2],e[i]=434.456-t-1.402*r,e[i+1]=119.541-t+.344*n+.714*r,e[i+2]=481.816-t-1.772*n;return e}_convertCmykToRgb(e){let t=e.length/4;return Kt.cmyk.getRgbBuffer(e,0,t,e,0,8,0),e.subarray(0,3*t)}_convertCmykToRgba(e){if(Kt.cmyk.getRgbBuffer(e,0,e.length/4,e,0,8,1),Kt.cmyk instanceof Ot)for(let t=3,n=e.length;t<n;t+=4)e[t]=255;return e}getData({width:e,height:t,forceRGBA:n=!1,forceRGB:r=!1,isSourcePDF:i=!1}){if(this.numComponents>4)throw new qt(`Unsupported color mode`);let a=this._getLinearizedBlockData(e,t,i);if(this.numComponents===1&&(n||r)){let e=a.length*(n?4:3),t=new Uint8ClampedArray(e),r=0;if(n)(function(e,t){if(A.isLittleEndian)for(let n=0,r=e.length;n<r;n++)t[n]=65793*e[n]|4278190080;else for(let n=0,r=e.length;n<r;n++)t[n]=16843008*e[n]|255})(a,new Uint32Array(t.buffer));else for(let e of a)t[r++]=e,t[r++]=e,t[r++]=e;return t}if(this.numComponents===3&&this._isColorConversionNeeded){if(n){let e=new Uint8ClampedArray(a.length/3*4);return this._convertYccToRgba(a,e)}return this._convertYccToRgb(a)}if(this.numComponents===4){if(this._isColorConversionNeeded)return n?this._convertYcckToRgba(a):r?this._convertYcckToRgb(a):this._convertYcckToCmyk(a);if(n)return this._convertCmykToRgba(a);if(r)return this._convertCmykToRgb(a)}return a}},hn=class e extends Wt{static#e=A.isImageDecoderSupported;constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}static get canUseImageDecoder(){return v(this,`canUseImageDecoder`,this.#e?ImageDecoder.isTypeSupported(`image/jpeg`):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:e=!1}){this.#e=e}get bytes(){return v(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}get jpegOptions(){let e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray(`D`,`Decode`);if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){let n=this.dict.get(`BPC`,`BitsPerComponent`)||8,r=t.length,i=new Int32Array(r),a=!1,o=(1<<n)-1;for(let e=0;e<r;e+=2)i[e]=256*(t[e+1]-t[e])|0,i[e+1]=t[e]*o|0,i[e]===256&&i[e+1]===0||(a=!0);a&&(e.decodeTransform=i)}if(this.params instanceof L){let t=this.params.get(`ColorTransform`);Number.isInteger(t)&&(e.colorTransform=t)}return v(this,`jpegOptions`,e)}#t(e){for(let t=0,n=e.length-1;t<n;t++)if(e[t]===255&&e[t+1]===216){t>0&&(e=e.subarray(t));break}return e}decodeImage(e){if(this.eof)return this.buffer;e=this.#t(e||this.bytes);let t=new mn(this.jpegOptions);t.parse(e);let n=t.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=n,this.bufferLength=n.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){if(!await e.canUseImageDecoder)return null;let t=this.jpegOptions;if(t.decodeTransform)return null;let n;try{let e=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!e)return null;let r=this.#t(e),i=mn.canUseImageDecoder(r,t.colorTransform);return i?(i.exifStart&&(r=r.slice(),r.fill(0,i.exifStart,i.exifEnd)),n=new ImageDecoder({data:r,type:`image/jpeg`,preferAnimation:!1}),(await n.decode()).image):null}catch(e){return m(`getTransferableImage - failed: "${e}".`),null}finally{n?.close()}}},gn=class extends y{constructor(e){super(e,`JpxError`)}},_n=class{static#e=null;static#t=null;static#n=!0;static#r=!0;static#i=null;static setOptions({handler:e,useWasm:t,useWorkerFetch:n,wasmUrl:r}){this.#n=t,this.#r=n,this.#i=r,n||(this.#e=e)}static async decode(e,{numComponents:t=4,isIndexedColormap:n=!1,smaskInData:r=!1,reducePower:i=0}={}){let a=await this.#t;if(!a)throw new gn(`OpenJPEG failed to initialize`);let o;try{let s=e.length;if(o=a._malloc(s),a.writeArrayToMemory(e,o),a._jp2_decode(o,s,t>0?t:0,!!n,!!r,i)){let{errorMessages:e}=a;throw e?(delete a.errorMessages,new gn(e)):new gn(`Unknown error`)}let{imageData:c}=a;return a.imageData=null,c}finally{o&&a._free(o)}}static cleanup(){this.#t=null}static parseImageProperties(e){let t=e.getByte();for(;t>=0;){let n=t;if(t=e.getByte(),(n<<8|t)==65361){e.skip(4);let t=e.getInt32()>>>0,n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0;return e.skip(16),{width:t-r,height:n-i,bitsPerComponent:8,componentsCount:e.getUint16()}}}throw new gn(`No size marker found in JPX stream`)}};function vn(e,t,n,r,i){let a=e;for(let e=0,n=t.length-1;e<n;e++){let n=t[e];a=a[n]||=[]}a[t.at(-1)]={checkFn:n,iterateFn:r,processFn:i}}const yn=[];vn(yn,[10,12,86,11],null,function(e,t){let n=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return n[t]===10;case 1:return n[t]===12;case 2:return n[t]===86;case 3:return n[t]===11}throw Error(`iterateInlineImageGroup - invalid pos: ${r}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=i-1,c=Math.min(Math.floor((t-a)/4),200);if(c<10)return t-(t-a)%4;let l=0,u=[],d=0,f=1,p=1;for(let e=0;e<c;e++){let t=r[o+(e<<2)],n=r[s+(e<<2)][0];f+n.width>1e3&&(l=Math.max(l,f),p+=d+2,f=0,d=0),u.push({transform:t,x:f,y:p,w:n.width,h:n.height}),f+=n.width+2,d=Math.max(d,n.height)}let m=Math.max(l,f)+1,h=p+d+1,g=new Uint8Array(m*h*4),_=m<<2;for(let e=0;e<c;e++){let t=r[s+(e<<2)][0].data,n=u[e].w<<2,i=0,a=u[e].x+u[e].y*m<<2;g.set(t.subarray(0,n),a-_);for(let r=0,o=u[e].h;r<o;r++)g.set(t.subarray(i,i+n),a),i+=n,a+=_;for(g.set(t.subarray(i-n,i),a);a>=0;)t[a-4]=t[a],t[a-3]=t[a+1],t[a-2]=t[a+2],t[a-1]=t[a+3],t[a+n]=t[a+n-4],t[a+n+1]=t[a+n-3],t[a+n+2]=t[a+n-2],t[a+n+3]=t[a+n-1],a-=_}let v={width:m,height:h};if(e.isOffscreenCanvasSupported){let e=new OffscreenCanvas(m,h);e.getContext(`2d`).putImageData(new ImageData(new Uint8ClampedArray(g.buffer),m,h),0,0),v.bitmap=e.transferToImageBitmap(),v.data=null}else v.kind=3,v.data=g;return n.splice(a,4*c,87),r.splice(a,4*c,[v,u]),a+1}),vn(yn,[10,12,83,11],null,function(e,t){let n=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return n[t]===10;case 1:return n[t]===12;case 2:return n[t]===83;case 3:return n[t]===11}throw Error(`iterateImageMaskGroup - invalid pos: ${r}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=i-1,c=Math.floor((t-a)/4);if(c<10)return t-(t-a)%4;let l,u,d=!1,f=r[s][0],p=r[o][0],m=r[o][1],h=r[o][2],g=r[o][3];if(m===h){d=!0,l=o+4;let e=s+4;for(let t=1;t<c;t++,l+=4,e+=4)if(u=r[l],r[e][0]!==f||u[0]!==p||u[1]!==m||u[2]!==h||u[3]!==g){t<10?d=!1:c=t;break}}if(d){c=Math.min(c,1e3);let e=new Float32Array(2*c);l=o;for(let t=0;t<c;t++,l+=4)u=r[l],e[t<<1]=u[4],e[1+(t<<1)]=u[5];n.splice(a,4*c,89),r.splice(a,4*c,[f,p,m,h,g,e])}else{c=Math.min(c,100);let e=[];for(let t=0;t<c;t++){u=r[o+(t<<2)];let n=r[s+(t<<2)][0];e.push({data:n.data,width:n.width,height:n.height,interpolate:n.interpolate,count:n.count,transform:u})}n.splice(a,4*c,84),r.splice(a,4*c,[e])}return a+1}),vn(yn,[10,12,85,11],function(e){let t=e.argsArray,n=e.iCurr-2;return t[n][1]===0&&t[n][2]===0},function(e,t){let n=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===10;case 1:if(n[t]!==12)return!1;let i=e.iCurr-2,a=r[i][0],o=r[i][3];return r[t][0]===a&&r[t][1]===0&&r[t][2]===0&&r[t][3]===o;case 2:if(n[t]!==85)return!1;let s=r[e.iCurr-1][0];return r[t][0]===s;case 3:return n[t]===11}throw Error(`iterateImageGroup - invalid pos: ${i}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=r[i-1][0],c=r[o][0],l=r[o][3],u=Math.min(Math.floor((t-a)/4),1e3);if(u<3)return t-(t-a)%4;let d=new Float32Array(2*u),f=o;for(let e=0;e<u;e++,f+=4){let t=r[f];d[e<<1]=t[4],d[1+(e<<1)]=t[5]}let p=[s,c,l,d];return n.splice(a,4*u,88),r.splice(a,4*u,p),a+1}),vn(yn,[31,37,42,44,32],null,function(e,t){let n=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return n[t]===31;case 1:return n[t]===37;case 2:return n[t]===42;case 3:if(n[t]!==44)return!1;let i=e.iCurr-3,a=r[i][0],o=r[i][1];return r[t][0]===a&&r[t][1]===o;case 4:return n[t]===32}throw Error(`iterateShowTextGroup - invalid pos: ${i}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-4,o=i-3,s=i-2,c=i-1,l=i,u=r[o][0],d=r[o][1],f=Math.min(Math.floor((t-a)/5),1e3);if(f<3)return t-(t-a)%5;let p=a;a>=4&&n[a-4]===n[o]&&n[a-3]===n[s]&&n[a-2]===n[c]&&n[a-1]===n[l]&&r[a-4][0]===u&&r[a-4][1]===d&&(f++,p-=5);let m=p+4;for(let e=1;e<f;e++)n.splice(m,3),r.splice(m,3),m+=2;return m+1}),vn(yn,[10,12,91,11],e=>{let t=e.argsArray,n=t[e.iCurr-1][0];if(n!==20&&n!==21&&n!==24&&n!==25&&n!==26&&n!==27)return!0;let r=t[e.iCurr-2];return r[0]===1&&r[1]===0&&r[2]===0&&r[3]===1},()=>!1,(e,t)=>{let{fnArray:n,argsArray:r}=e,i=e.iCurr,a=i-3,o=i-2,s=r[i-1],c=r[o],[,[l],u]=s;if(u){M.scaleMinMax(c,u);for(let e=0,t=l.length;e<t;)switch(l[e++]){case 0:case 1:M.applyTransform(l,c,e),e+=2;break;case 2:M.applyTransformToBezier(l,c,e),e+=6}}return n.splice(a,4,91),r.splice(a,4,s),a+1});var bn=class{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}},xn=class extends bn{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:Sn.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let e=this.queue.fnArray,t=this.lastProcessed,n=e.length,r=this.state,i=this.match;if(!r&&!i&&t+1===n&&!yn[e[t]])return void(this.lastProcessed=n);let a=this.context;for(;t<n;){if(i){if((0,i.iterateFn)(a,t)){t++;continue}if(t=(0,i.processFn)(a,t+1),n=e.length,i=null,r=null,t>=n)break}r=(r||yn)[e[t]],r&&!Array.isArray(r)?(a.iCurr=t,t++,(!r.checkFn||(0,r.checkFn)(a))&&(i=r),r=null):t++}this.state=r,this.match=i,this.lastProcessed=t}flush(){for(;this.match;){let e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}},Sn=class e{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(e=0,t){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=!t||e&256?new bn(this):new xn(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:e}){this.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,n){this.optimizer.push(t,n),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===11||t===32))&&this.flush()}addImageOps(e,t,n,r=!1){r&&(this.addOp(10),this.addOp(9,[[[`SMask`,!1]]])),n!==void 0&&this.addOp(70,[`OC`,n]),this.addOp(e,t),n!==void 0&&this.addOp(71,[]),r&&this.addOp(11)}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(1,[e]))}addDependencies(e){for(let t of e)this.addDependency(t)}addOpList(t){if(t instanceof e){for(let e of t.dependencies)this.dependencies.add(e);for(let e=0,n=t.length;e<n;e++)this.addOp(t.fnArray[e],t.argsArray[e])}else m(`addOpList - ignoring invalid "opList" parameter.`)}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let e=[],{fnArray:t,argsArray:n,length:r}=this;for(let i=0;i<r;i++)switch(t[i]){case 86:case 87:case 83:{let{bitmap:t,data:r}=n[i][0];(t||r?.buffer)&&e.push(t||r.buffer);break}case 91:{let[,[t],r]=n[i];t&&e.push(t.buffer,r.buffer);break}case 74:let[t,r]=n[i];t&&e.push(t.buffer),r&&e.push(r.buffer);break;case 42:e.push(n[i][0].buffer)}return e}flush(e=!1,t=null){this.optimizer.flush();let n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}};function Cn(e,t){let n=0;for(let r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function wn(e,t){return t===1?String.fromCharCode(e[0],e[1]):t===3?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function Tn(e,t,n){let r=0;for(let i=n;i>=0;i--)r+=e[i]+t[i],e[i]=255&r,r>>=8}function En(e,t){let n=1;for(let r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}var Dn=class{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{let n=this.readByte();if(n<0)throw new w(`unexpected EOF in bcmap`);e=!(128&n),t=t<<7|127&n}while(!e);return t}readSigned(){let e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){let n,r=this.tmpBuf,i=0;do{let e=this.readByte();if(e<0)throw new w(`unexpected EOF in bcmap`);n=!(128&e),r[i++]=127&e}while(!n);let a=t,o=0,s=0;for(;a>=0;){for(;s<8&&r.length>0;)o|=r[--i]<<s,s+=7;e[a]=255&o,a--,o>>=8,s-=8}}readHexSigned(e,t){this.readHexNumber(e,t);let n=1&e[t]?255:0,r=0;for(let i=0;i<=t;i++)r=(1&r)<<8|e[i],e[i]=r>>1^n}readString(){let e=this.readNumber(),t=Array(e);for(let n=0;n<e;n++)t[n]=this.readNumber();return String.fromCharCode(...t)}},On=class{async process(e,t,n){let r=new Dn(e);t.vertical=!!(1&r.readByte());let i=null,a=new Uint8Array(16),o=new Uint8Array(16),s=new Uint8Array(16),c=new Uint8Array(16),l=new Uint8Array(16),u,d;for(;(d=r.readByte())>=0;){let e=d>>5;if(e===7){switch(31&d){case 0:r.readString();break;case 1:i=r.readString()}continue}let n=!!(16&d),f=15&d;if(f+1>16)throw Error(`BinaryCMapReader.process: Invalid dataSize.`);let p=r.readNumber();switch(e){case 0:r.readHex(a,f),r.readHexNumber(o,f),Tn(o,a,f),t.addCodespaceRange(f+1,Cn(a,f),Cn(o,f));for(let e=1;e<p;e++)En(o,f),r.readHexNumber(a,f),Tn(a,o,f),r.readHexNumber(o,f),Tn(o,a,f),t.addCodespaceRange(f+1,Cn(a,f),Cn(o,f));break;case 1:r.readHex(a,f),r.readHexNumber(o,f),Tn(o,a,f),r.readNumber();for(let e=1;e<p;e++)En(o,f),r.readHexNumber(a,f),Tn(a,o,f),r.readHexNumber(o,f),Tn(o,a,f),r.readNumber();break;case 2:r.readHex(s,f),u=r.readNumber(),t.mapOne(Cn(s,f),u);for(let e=1;e<p;e++)En(s,f),n||(r.readHexNumber(l,f),Tn(s,l,f)),u=r.readSigned()+(u+1),t.mapOne(Cn(s,f),u);break;case 3:r.readHex(a,f),r.readHexNumber(o,f),Tn(o,a,f),u=r.readNumber(),t.mapCidRange(Cn(a,f),Cn(o,f),u);for(let e=1;e<p;e++)En(o,f),n?a.set(o):(r.readHexNumber(a,f),Tn(a,o,f)),r.readHexNumber(o,f),Tn(o,a,f),u=r.readNumber(),t.mapCidRange(Cn(a,f),Cn(o,f),u);break;case 4:r.readHex(s,1),r.readHex(c,f),t.mapOne(Cn(s,1),wn(c,f));for(let e=1;e<p;e++)En(s,1),n||(r.readHexNumber(l,1),Tn(s,l,1)),En(c,f),r.readHexSigned(l,f),Tn(c,l,f),t.mapOne(Cn(s,1),wn(c,f));break;case 5:r.readHex(a,1),r.readHexNumber(o,1),Tn(o,a,1),r.readHex(c,f),t.mapBfRange(Cn(a,1),Cn(o,1),wn(c,f));for(let e=1;e<p;e++)En(o,1),n?a.set(o):(r.readHexNumber(a,1),Tn(a,o,1)),r.readHexNumber(o,1),Tn(o,a,1),r.readHex(c,f),t.mapBfRange(Cn(a,1),Cn(o,1),wn(c,f));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${e}`)}}return i?n(i):t}},kn=class extends Wt{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){let e=this.str,t=e.getByte();for(;Ve(t);)t=e.getByte();if(t===-1||t===126)return void(this.eof=!0);let n=this.bufferLength,r,i;if(t===122){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{let a=this.input;for(a[0]=t,i=1;i<5;++i){for(t=e.getByte();Ve(t);)t=e.getByte();if(a[i]=t,t===-1||t===126)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)a[i]=117;this.eof=!0}let o=0;for(i=0;i<5;++i)o=85*o+(a[i]-33);for(i=3;i>=0;--i)r[n+i]=255&o,o>>=8}}},An=class extends Wt{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){let e=this.str.getBytes(8e3);if(!e.length)return void(this.eof=!0);let t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit;for(let t of e){let e;if(t>=48&&t<=57)e=15&t;else{if(!(t>=65&&t<=70||t>=97&&t<=102)){if(t===62){this.eof=!0;break}continue}e=9+(15&t)}i<0?i=e:(n[r++]=i<<4|e,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}};const jn=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],Mn=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],Nn=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],Pn=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],Fn=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],In=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];var Ln=class{constructor(e,t={}){if(typeof e?.next!=`function`)throw Error(`CCITTFaxDecoder - invalid "source" parameter.`);let n;for(this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0,this.eoblock=t.EndOfBlock??!0,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;(n=this._lookBits(12))===0;)this._eatBits(1);n===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;let e=this.refLine,t=this.codingLine,n=this.columns,r,i,a,o,s;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let a,s,c;if(this.err=!1,this.nextLine2D){for(o=0;t[o]<n;++o)e[o]=t[o];for(e[o++]=n,e[o]=n,t[0]=0,this.codingPos=0,r=0,i=0;t[this.codingPos]<n;)switch(a=this._getTwoDimCode(),a){case 0:this._addPixels(e[r+1],i),e[r+1]<n&&(r+=2);break;case 1:if(a=s=0,i){do a+=c=this._getBlackCode();while(c>=64);do s+=c=this._getWhiteCode();while(c>=64)}else{do a+=c=this._getWhiteCode();while(c>=64);do s+=c=this._getBlackCode();while(c>=64)}for(this._addPixels(t[this.codingPos]+a,i),t[this.codingPos]<n&&this._addPixels(t[this.codingPos]+s,1^i);e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 7:if(this._addPixels(e[r]+3,i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 5:if(this._addPixels(e[r]+2,i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 3:if(this._addPixels(e[r]+1,i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 2:if(this._addPixels(e[r],i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 8:if(this._addPixelsNeg(e[r]-3,i),i^=1,t[this.codingPos]<n)for(r>0?--r:++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 6:if(this._addPixelsNeg(e[r]-2,i),i^=1,t[this.codingPos]<n)for(r>0?--r:++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 4:if(this._addPixelsNeg(e[r]-1,i),i^=1,t[this.codingPos]<n)for(r>0?--r:++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case-1:this._addPixels(n,0),this.eof=!0;break;default:p(`bad 2d code`),this._addPixels(n,0),this.err=!0}}else for(t[0]=0,this.codingPos=0,i=0;t[this.codingPos]<n;){if(a=0,i)do a+=c=this._getBlackCode();while(c>=64);else do a+=c=this._getWhiteCode();while(c>=64);this._addPixels(t[this.codingPos]+a,i),i^=1}let l=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(a=this._lookBits(12),this.eoline)for(;a!==-1&&a!==1;)this._eatBits(1),a=this._lookBits(12);else for(;a===0;)this._eatBits(1),a=this._lookBits(12);a===1?(this._eatBits(12),l=!0):a===-1&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&l&&this.byteAlign){if(a=this._lookBits(12),a===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(o=0;o<4;++o)a=this._lookBits(12),a!==1&&p(`bad rtc code: `+a),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(a=this._lookBits(13),a===-1)return this.eof=!0,-1;if(a>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&a))}this.outputBits=t[0]>0?t[this.codingPos=0]:t[this.codingPos=1],this.row++}if(this.outputBits>=8)s=1&this.codingPos?0:255,this.outputBits-=8,this.outputBits===0&&t[this.codingPos]<n&&(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]);else{a=8,s=0;do{if(typeof this.outputBits!=`number`)throw new w(`Invalid /CCITTFaxDecode data, "outputBits" must be a number.`);this.outputBits>a?(s<<=a,1&this.codingPos||(s|=255>>8-a),this.outputBits-=a,a=0):(s<<=this.outputBits,1&this.codingPos||(s|=255>>8-this.outputBits),a-=this.outputBits,this.outputBits=0,t[this.codingPos]<n?(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]):a>0&&(s<<=a,a=0))}while(a)}return this.black&&(s^=255),s}_addPixels(e,t){let n=this.codingLine,r=this.codingPos;e>n[r]&&(e>this.columns&&(p(`row is wrong length`),this.err=!0,e=this.columns),1&r^t&&++r,n[r]=e),this.codingPos=r}_addPixelsNeg(e,t){let n=this.codingLine,r=this.codingPos;if(e>n[r])e>this.columns&&(p(`row is wrong length`),this.err=!0,e=this.columns),1&r^t&&++r,n[r]=e;else if(e<n[r]){for(e<0&&(p(`invalid code`),this.err=!0,e=0);r>0&&e<n[r-1];)--r;n[r]=e}this.codingPos=r}_findTableCode(e,t,n,r){let i=r||0;for(let r=e;r<=t;++r){let e=this._lookBits(r);if(e===-1)return[!0,1,!1];if(r<t&&(e<<=t-r),!i||e>=i){let t=n[e-i];if(t[0]===r)return this._eatBits(r),[!0,t[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(7),e=jn[t],e?.[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,7,jn);if(e[0]&&e[2])return e[1]}return p(`Bad two dim code`),-1}_getWhiteCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(12),t===-1)return 1;if(e=t>>5?Nn[t>>3]:Mn[t],e[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,Nn);if(e[0]||(e=this._findTableCode(11,12,Mn),e[0]))return e[1]}return p(`bad white code`),this._eatBits(1),1}_getBlackCode(){let e,t;if(this.eoblock){if(e=this._lookBits(13),e===-1)return 1;if(t=e>>7?!(e>>9)&&e>>7?Fn[(e>>1)-64]:In[e>>7]:Pn[e],t[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,In);if(e[0]||(e=this._findTableCode(7,12,Fn,64),e[0])||(e=this._findTableCode(10,13,Pn),e[0]))return e[1]}return p(`bad black code`),this._eatBits(1),1}_lookBits(e){let t;for(;this.inputBits<e;){if((t=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},Rn=class extends Wt{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,n instanceof L||(n=L.empty);let r={next:()=>e.getByte()};this.ccittFaxDecoder=new Ln(r,{K:n.get(`K`),EndOfLine:n.get(`EndOfLine`),EncodedByteAlign:n.get(`EncodedByteAlign`),Columns:n.get(`Columns`),Rows:n.get(`Rows`),EndOfBlock:n.get(`EndOfBlock`),BlackIs1:n.get(`BlackIs1`)})}readBlock(){for(;!this.eof;){let e=this.ccittFaxDecoder.readNextChar();if(e===-1)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}};const zn=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bn=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]),Vn=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]),Hn=[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],Un=[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];var Wn=class extends Wt{constructor(e,t){super(t),this.str=e,this.dict=e.dict;let n=e.getByte(),r=e.getByte();if(n===-1||r===-1)throw new w(`Invalid header in flate stream: ${n}, ${r}`);if((15&n)!=8)throw new w(`Unknown compression method in flate stream: ${n}, ${r}`);if(((n<<8)+r)%31!=0)throw new w(`Bad FCHECK in flate stream: ${n}, ${r}`);if(32&r)throw new w(`FDICT bit set in flate stream: ${n}, ${r}`);this.codeSize=0,this.codeBuf=0}async getImageData(e,t){let n=await this.asyncGetBytes();return n?n.length<=e?n:n.subarray(0,e):this.getBytes(e)}async asyncGetBytes(){this.str.reset();let e=this.str.getBytes();try{let{readable:t,writable:n}=new DecompressionStream(`deflate`),r=n.getWriter();await r.ready,r.write(e).then(async()=>{await r.ready,await r.close()}).catch(()=>{});let i=[],a=0;for await(let e of t)i.push(e),a+=e.byteLength;let o=new Uint8Array(a),s=0;for(let e of i)o.set(e,s),s+=e.byteLength;return o}catch{return this.str=new Ft(e,2,e.length,this.str.dict),this.reset(),null}}get isAsync(){return!0}getBits(e){let t=this.str,n,r=this.codeSize,i=this.codeBuf;for(;r<e;){if((n=t.getByte())===-1)throw new w(`Bad encoding in flate stream`);i|=n<<r,r+=8}return n=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=r-=e,n}getCode(e){let t=this.str,n=e[0],r=e[1],i,a=this.codeSize,o=this.codeBuf;for(;a<r&&(i=t.getByte())!==-1;)o|=i<<a,a+=8;let s=n[o&(1<<r)-1],c=s>>16,l=65535&s;if(c<1||a<c)throw new w(`Bad encoding in flate stream`);return this.codeBuf=o>>c,this.codeSize=a-c,l}generateHuffmanTable(e){let t=e.length,n,r=0;for(n=0;n<t;++n)e[n]>r&&(r=e[n]);let i=1<<r,a=new Int32Array(i);for(let o=1,s=0,c=2;o<=r;++o,s<<=1,c<<=1)for(let r=0;r<t;++r)if(e[r]===o){let e=0,t=s;for(n=0;n<o;++n)e=e<<1|1&t,t>>=1;for(n=e;n<i;n+=c)a[n]=o<<16|r;++s}return[a,r]}#e(e){p(e),this.eof=!0}readBlock(){let e,t,n,r=this.str;try{t=this.getBits(3)}catch(e){this.#e(e.message);return}if(1&t&&(this.eof=!0),t>>=1,t===0){let t;if((t=r.getByte())===-1)return void this.#e(`Bad block header in flate stream`);let n=t;if((t=r.getByte())===-1||(n|=t<<8,(t=r.getByte())===-1))return void this.#e(`Bad block header in flate stream`);let i=t;if((t=r.getByte())===-1)return void this.#e(`Bad block header in flate stream`);if(i|=t<<8,i!==(65535&~n)&&(n!==0||i!==0))throw new w(`Bad uncompressed block length in flate stream`);this.codeBuf=0,this.codeSize=0;let a=this.bufferLength,o=a+n;if(e=this.ensureBuffer(o),this.bufferLength=o,n===0)r.peekByte()===-1&&(this.eof=!0);else{let t=r.getBytes(n);e.set(t,a),t.length<n&&(this.eof=!0)}return}let i,a;if(t===1)i=Hn,a=Un;else{if(t!==2)throw new w(`Unknown block type in flate stream`);{let e=this.getBits(5)+257,t=this.getBits(5)+1,r=this.getBits(4)+4,o=new Uint8Array(zn.length),s;for(s=0;s<r;++s)o[zn[s]]=this.getBits(3);let c=this.generateHuffmanTable(o);n=0,s=0;let l=e+t,u=new Uint8Array(l),d,f,p;for(;s<l;){let e=this.getCode(c);if(e===16)d=2,f=3,p=n;else if(e===17)d=3,f=3,p=n=0;else{if(e!==18){u[s++]=n=e;continue}d=7,f=11,p=n=0}let t=this.getBits(d)+f;for(;t-- >0;)u[s++]=p}i=this.generateHuffmanTable(u.subarray(0,e)),a=this.generateHuffmanTable(u.subarray(e,l))}}e=this.buffer;let o=e?e.length:0,s=this.bufferLength;for(;;){let t=this.getCode(i);if(t<256){s+1>=o&&(e=this.ensureBuffer(s+1),o=e.length),e[s++]=t;continue}if(t===256)return void(this.bufferLength=s);t-=257,t=Bn[t];let r=t>>16;r>0&&(r=this.getBits(r)),n=(65535&t)+r,t=this.getCode(a),t=Vn[t],r=t>>16,r>0&&(r=this.getBits(r));let c=(65535&t)+r;s+n>=o&&(e=this.ensureBuffer(s+n),o=e.length);for(let t=0;t<n;++t,++s)e[s]=e[s-c]}}};const Gn=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];var Kn=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){let e=this.data,t=this.bp;e[t]===255?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let n=e[t]>>1,r=1&e[t],i=Gn[n],a=i.qe,o,s=this.a-a;if(this.chigh<a)s<a?(s=a,o=r,n=i.nmps):(s=a,o=1^r,i.switchFlag===1&&(r=o),n=i.nlps);else{if(this.chigh-=a,32768&s)return this.a=s,r;s<a?(o=1^r,i.switchFlag===1&&(r=o),n=i.nlps):(o=r,n=i.nmps)}do this.ct===0&&this.byteIn(),s<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(32768&s));return this.a=s,e[t]=n<<1|r,o}},qn=class extends y{constructor(e){super(e,`Jbig2Error`)}},Jn=class{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},Yn=class{constructor(e,t,n){this.data=e,this.start=t,this.end=n}get decoder(){return v(this,`decoder`,new Kn(this.data,this.start,this.end))}get contextCache(){return v(this,`contextCache`,new Jn)}};function Xn(e,t,n){let r=e.getContexts(t),i=1;function a(e){let t=0;for(let a=0;a<e;a++){let e=n.readBit(r,i);i=i<256?i<<1|e:511&(i<<1|e)|256,t=t<<1|e}return t>>>0}let o=a(1),s=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2),c;return o===0?c=s:s>0&&(c=-s),c>=-2147483648&&c<=Se?c:null}function Zn(e,t,n){let r=e.getContexts(`IAID`),i=1;for(let e=0;e<n;e++)i=i<<1|t.readBit(r,i);return n<31?i&(1<<n)-1:2147483647&i}const Qn=[`SymbolDictionary`,null,null,null,`IntermediateTextRegion`,null,`ImmediateTextRegion`,`ImmediateLosslessTextRegion`,null,null,null,null,null,null,null,null,`PatternDictionary`,null,null,null,`IntermediateHalftoneRegion`,null,`ImmediateHalftoneRegion`,`ImmediateLosslessHalftoneRegion`,null,null,null,null,null,null,null,null,null,null,null,null,`IntermediateGenericRegion`,null,`ImmediateGenericRegion`,`ImmediateLosslessGenericRegion`,`IntermediateGenericRefinementRegion`,null,`ImmediateGenericRefinementRegion`,`ImmediateLosslessGenericRefinementRegion`,null,null,null,null,`PageInformation`,`EndOfPage`,`EndOfStripe`,`EndOfFile`,`Profiles`,`Tables`,null,null,null,null,null,null,null,null,`Extension`],$n=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],er=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],tr=[39717,1941,229,405];function nr(e,t,n,r,i,a,o,s){if(e)return br(new _r(s.data,s.start,s.end),t,n,!1);if(r===0&&!i&&o.length===4&&o[0].x===3&&o[0].y===-1&&o[1].x===-3&&o[1].y===-1&&o[2].x===2&&o[2].y===-2&&o[3].x===-2&&o[3].y===-2)return function(e,t,n){let r=n.decoder,i=n.contextCache.getContexts(`GB`),a=[],o,s,c,l,u,d,f;for(s=0;s<t;s++)for(u=a[s]=new Uint8Array(e),d=s<1?u:a[s-1],f=s<2?u:a[s-2],o=f[0]<<13|f[1]<<12|f[2]<<11|d[0]<<7|d[1]<<6|d[2]<<5|d[3]<<4,c=0;c<e;c++)u[c]=l=r.readBit(i,o),o=(31735&o)<<1|(c+3<e?f[c+3]<<11:0)|(c+4<e?d[c+4]<<4:0)|l;return a}(t,n,s);let c=$n[r].concat(o);c.sort((e,t)=>e.y-t.y||e.x-t.x);let l=c.length,u=new Int8Array(l),d=new Int8Array(l),f=[],p,m,h=0,g=0,_=0,v=0;for(m=0;m<l;m++)u[m]=c[m].x,d[m]=c[m].y,g=Math.min(g,c[m].x),_=Math.max(_,c[m].x),v=Math.min(v,c[m].y),m<l-1&&c[m].y===c[m+1].y&&c[m].x===c[m+1].x-1?h|=1<<l-1-m:f.push(m);let y=f.length,b=new Int8Array(y),x=new Int8Array(y),S=new Uint16Array(y);for(p=0;p<y;p++)m=f[p],b[p]=c[m].x,x[p]=c[m].y,S[p]=1<<l-1-m;let C=-g,w=-v,T=t-_,E=tr[r],D=new Uint8Array(t),O=[],k=s.decoder,A=s.contextCache.getContexts(`GB`),j,M,N,P,F,ee=0,te=0;for(let e=0;e<n;e++){if(i&&(ee^=k.readBit(A,E),ee)){O.push(D);continue}for(D=new Uint8Array(D),O.push(D),j=0;j<t;j++){if(j>=C&&j<T&&e>=w)for(te=te<<1&h,m=0;m<y;m++)M=e+x[m],N=j+b[m],P=O[M][N],P&&(P=S[m],te|=P);else for(te=0,F=l-1,m=0;m<l;m++,F--)N=j+u[m],N>=0&&N<t&&(M=e+d[m],M>=0&&(P=O[M][N],P&&(te|=P<<F)));let n=k.readBit(A,te);D[j]=n}}return O}function rr(e,t,n,r,i,a,o,s,c){let l=er[n].coding;n===0&&(l=l.concat([s[0]]));let u=l.length,d=new Int32Array(u),f=new Int32Array(u),p;for(p=0;p<u;p++)d[p]=l[p].x,f[p]=l[p].y;let m=er[n].reference;n===0&&(m=m.concat([s[1]]));let h=m.length,g=new Int32Array(h),_=new Int32Array(h);for(p=0;p<h;p++)g[p]=m[p].x,_[p]=m[p].y;let v=r[0].length,y=r.length,b=[],x=c.decoder,S=c.contextCache.getContexts(`GR`);for(let n=0;n<t;n++){let t=new Uint8Array(e);b.push(t);for(let o=0;o<e;o++){let s,c,l=0;for(p=0;p<u;p++)s=n+f[p],c=o+d[p],s<0||c<0||c>=e?l<<=1:l=l<<1|b[s][c];for(p=0;p<h;p++)s=n+_[p]-a,c=o+g[p]-i,s<0||s>=y||c<0||c>=v?l<<=1:l=l<<1|r[s][c];t[o]=x.readBit(S,l)}}return b}function ir(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){if(e&&t)throw new qn(`refinement with Huffman is not supported`);let y=[],b,x;for(b=0;b<r;b++)x=new Uint8Array(n),i&&x.fill(i),y.push(x);let S=g.decoder,C=g.contextCache,w=e?-p.tableDeltaT.decode(v):-Xn(C,`IADT`,S),T=0;for(b=0;b<a;){w+=e?p.tableDeltaT.decode(v):Xn(C,`IADT`,S),T+=e?p.tableFirstS.decode(v):Xn(C,`IAFS`,S);let r=T;for(;;){let i=0;o>1&&(i=e?v.readBits(_):Xn(C,`IAIT`,S));let a=o*w+i,T=e?p.symbolIDTable.decode(v):Zn(C,S,c),E=t&&(e?v.readBit():Xn(C,`IARI`,S)),D=s[T],O=D[0].length,k=D.length;if(E){let e=Xn(C,`IARDW`,S),t=Xn(C,`IARDH`,S);O+=e,k+=t,D=rr(O,k,m,D,(e>>1)+Xn(C,`IARDX`,S),(t>>1)+Xn(C,`IARDY`,S),0,h,g)}let A=0;l?1&d?A=k-1:r+=k-1:d>1?r+=O-1:A=O-1;let j=a-(1&d?0:k-1),M=r-(2&d?O-1:0),N,P,F;if(l)for(N=0;N<k;N++){if(x=y[M+N],!x)continue;F=D[N];let e=Math.min(n-j,O);switch(f){case 0:for(P=0;P<e;P++)x[j+P]|=F[P];break;case 2:for(P=0;P<e;P++)x[j+P]^=F[P];break;default:throw new qn(`operator ${f} is not supported`)}}else for(P=0;P<k;P++)if(x=y[j+P],x)switch(F=D[P],f){case 0:for(N=0;N<O;N++)x[M+N]|=F[N];break;case 2:for(N=0;N<O;N++)x[M+N]^=F[N];break;default:throw new qn(`operator ${f} is not supported`)}b++;let ee=e?p.tableDeltaS.decode(v):Xn(C,`IADS`,S);if(ee===null)break;r+=A+ee+u}}return y}function ar(e,t){let n={};n.number=Be(e,t);let r=e[t+4],i=63&r;if(!Qn[i])throw new qn(`invalid segment type: `+i);n.type=i,n.typeName=Qn[i],n.deferredNonRetain=!!(128&r);let a=!!(64&r),o=e[t+5],s=o>>5&7,c=[31&o],l=t+6;if(o===7){s=536870911&Be(e,l-1),l+=3;let t=s+7>>3;for(c[0]=e[l++];--t>0;)c.push(e[l++])}else if(o===5||o===6)throw new qn(`invalid referred-to flags`);n.retainBits=c;let u=4;n.number<=256?u=1:n.number<=65536&&(u=2);let d=[],f,p;for(f=0;f<s;f++){let t;t=u===1?e[l]:u===2?ze(e,l):Be(e,l),d.push(t),l+=u}if(n.referredTo=d,a?(n.pageAssociation=Be(e,l),l+=4):n.pageAssociation=e[l++],n.length=Be(e,l),l+=4,n.length===4294967295){if(i!==38)throw new qn(`invalid unknown segment length`);{let t=sr(e,l),r=!!(1&e[l+cr]),i=new Uint8Array(6);for(r||(i[0]=255,i[1]=172),i[2]=t.height>>>24&255,i[3]=t.height>>16&255,i[4]=t.height>>8&255,i[5]=255&t.height,f=l,p=e.length;f<p;f++){let t=0;for(;t<6&&i[t]===e[f+t];)t++;if(t===6){n.length=f+6;break}}if(n.length===4294967295)throw new qn(`segment end was not found`)}}return n.headerEnd=l,n}function or(e,t,n,r){let i=[],a=n;for(;a<r;){let n=ar(t,a);a=n.headerEnd;let r={header:n,data:t};if(e.randomAccess||(r.start=a,a+=n.length,r.end=a),i.push(r),n.type===51)break}if(e.randomAccess)for(let e=0,t=i.length;e<t;e++)i[e].start=a,a+=i[e].header.length,i[e].end=a;return i}function sr(e,t){return{width:Be(e,t),height:Be(e,t+4),x:Be(e,t+8),y:Be(e,t+12),combinationOperator:7&e[t+16]}}const cr=17;function lr(e,t){let n=e.header,r=e.data,i=e.end,a,o,s,c,l=e.start;switch(n.type){case 0:let e={},t=ze(r,l);if(e.huffman=!!(1&t),e.refinement=!!(2&t),e.huffmanDHSelector=t>>2&3,e.huffmanDWSelector=t>>4&3,e.bitmapSizeSelector=t>>6&1,e.aggregationInstancesSelector=t>>7&1,e.bitmapCodingContextUsed=!!(256&t),e.bitmapCodingContextRetained=!!(512&t),e.template=t>>10&3,e.refinementTemplate=t>>12&1,l+=2,!e.huffman){for(c=e.template===0?4:1,o=[],s=0;s<c;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;e.at=o}if(e.refinement&&!e.refinementTemplate){for(o=[],s=0;s<2;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;e.refinementAt=o}e.numberOfExportedSymbols=Be(r,l),l+=4,e.numberOfNewSymbols=Be(r,l),l+=4,a=[e,n.number,n.referredTo,r,l,i];break;case 6:case 7:let u={};u.info=sr(r,l),l+=17;let d=ze(r,l);if(l+=2,u.huffman=!!(1&d),u.refinement=!!(2&d),u.logStripSize=d>>2&3,u.stripSize=1<<u.logStripSize,u.referenceCorner=d>>4&3,u.transposed=!!(64&d),u.combinationOperator=d>>7&3,u.defaultPixelValue=d>>9&1,u.dsOffset=d<<17>>27,u.refinementTemplate=d>>15&1,u.huffman){let e=ze(r,l);l+=2,u.huffmanFS=3&e,u.huffmanDS=e>>2&3,u.huffmanDT=e>>4&3,u.huffmanRefinementDW=e>>6&3,u.huffmanRefinementDH=e>>8&3,u.huffmanRefinementDX=e>>10&3,u.huffmanRefinementDY=e>>12&3,u.huffmanRefinementSizeSelector=!!(16384&e)}if(u.refinement&&!u.refinementTemplate){for(o=[],s=0;s<2;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;u.refinementAt=o}u.numberOfSymbolInstances=Be(r,l),l+=4,a=[u,n.referredTo,r,l,i];break;case 16:let f={},p=r[l++];f.mmr=!!(1&p),f.template=p>>1&3,f.patternWidth=r[l++],f.patternHeight=r[l++],f.maxPatternIndex=Be(r,l),l+=4,a=[f,n.number,r,l,i];break;case 22:case 23:let m={};m.info=sr(r,l),l+=17;let h=r[l++];m.mmr=!!(1&h),m.template=h>>1&3,m.enableSkip=!!(8&h),m.combinationOperator=h>>4&7,m.defaultPixelValue=h>>7&1,m.gridWidth=Be(r,l),l+=4,m.gridHeight=Be(r,l),l+=4,m.gridOffsetX=4294967295&Be(r,l),l+=4,m.gridOffsetY=4294967295&Be(r,l),l+=4,m.gridVectorX=ze(r,l),l+=2,m.gridVectorY=ze(r,l),l+=2,a=[m,n.referredTo,r,l,i];break;case 38:case 39:let g={};g.info=sr(r,l),l+=17;let _=r[l++];if(g.mmr=!!(1&_),g.template=_>>1&3,g.prediction=!!(8&_),!g.mmr){for(c=g.template===0?4:1,o=[],s=0;s<c;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;g.at=o}a=[g,r,l,i];break;case 48:let v={width:Be(r,l),height:Be(r,l+4),resolutionX:Be(r,l+8),resolutionY:Be(r,l+12)};v.height===4294967295&&delete v.height;let y=r[l+16];ze(r,l+17),v.lossless=!!(1&y),v.refinement=!!(2&y),v.defaultPixelValue=y>>2&1,v.combinationOperator=y>>3&3,v.requiresBuffer=!!(32&y),v.combinationOperatorOverride=!!(64&y),a=[v];break;case 49:case 50:case 51:case 62:break;case 53:a=[n.number,r,l,i];break;default:throw new qn(`segment type ${n.typeName}(${n.type}) is not implemented`)}let u=`on`+n.typeName;u in t&&t[u].apply(t,a)}function ur(e,t){for(let n=0,r=e.length;n<r;n++)lr(e[n],t)}var dr=class{onPageInformation(e){this.currentPageInfo=e;let t=e.width+7>>3,n=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&n.fill(255),this.buffer=n}drawBitmap(e,t){let n=this.currentPageInfo,r=e.width,i=e.height,a=n.width+7>>3,o=n.combinationOperatorOverride?e.combinationOperator:n.combinationOperator,s=this.buffer,c=128>>(7&e.x),l,u,d,f,p=e.y*a+(e.x>>3);switch(o){case 0:for(l=0;l<i;l++){for(d=c,f=p,u=0;u<r;u++)t[l][u]&&(s[f]|=d),d>>=1,d||(d=128,f++);p+=a}break;case 2:for(l=0;l<i;l++){for(d=c,f=p,u=0;u<r;u++)t[l][u]&&(s[f]^=d),d>>=1,d||(d=128,f++);p+=a}break;default:throw new qn(`operator ${o} is not supported`)}}onImmediateGenericRegion(e,t,n,r){let i=e.info,a=new Yn(t,n,r),o=nr(e.mmr,i.width,i.height,e.template,e.prediction,0,e.at,a);this.drawBitmap(i,o)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,n,r,i,a){let o,s;e.huffman&&(o=function(e,t,n){let r,i,a,o,s=0;switch(e.huffmanDHSelector){case 0:case 1:r=gr(e.huffmanDHSelector+4);break;case 3:r=vr(s,t,n),s++;break;default:throw new qn(`invalid Huffman DH selector`)}switch(e.huffmanDWSelector){case 0:case 1:i=gr(e.huffmanDWSelector+2);break;case 3:i=vr(s,t,n),s++;break;default:throw new qn(`invalid Huffman DW selector`)}return e.bitmapSizeSelector?(a=vr(s,t,n),s++):a=gr(1),o=e.aggregationInstancesSelector?vr(s,t,n):gr(1),{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:a,tableAggregateInstances:o}}(e,n,this.customTables),s=new _r(r,i,a));let c=this.symbols;c||(this.symbols=c={});let l=[];for(let e of n){let t=c[e];t&&l.push(...t)}let u=new Yn(r,i,a);c[t]=function(e,t,n,r,i,a,o,s,c,l,u,d){if(e&&t)throw new qn(`symbol refinement with Huffman is not supported`);let f=[],p=0,m=Ie(n.length+r),h=u.decoder,g=u.contextCache,_,v;for(e&&(_=gr(1),v=[],m=Math.max(m,1));f.length<r;){p+=e?a.tableDeltaHeight.decode(d):Xn(g,`IADH`,h);let r=0,i=0,_=e?v.length:0;for(;;){let _=e?a.tableDeltaWidth.decode(d):Xn(g,`IADW`,h);if(_===null)break;let y;if(r+=_,i+=r,t){let i=Xn(g,`IAAI`,h);if(i>1)y=ir(e,t,r,p,0,i,1,n.concat(f),m,0,0,1,0,a,c,l,u,0,d);else{let e=Zn(g,h,m),t=Xn(g,`IARDX`,h),i=Xn(g,`IARDY`,h);y=rr(r,p,c,e<n.length?n[e]:f[e-n.length],t,i,0,l,u)}f.push(y)}else e?v.push(r):(y=nr(!1,r,p,o,!1,0,s,u),f.push(y))}if(e&&!t){let e=a.tableBitmapSize.decode(d),t;if(d.byteAlign(),e===0)t=yr(d,i,p);else{let n=d.end,r=d.position+e;d.end=r,t=br(d,i,p,!1),d.end=n,d.position=r}let n=v.length;if(_===n-1)f.push(t);else{let e,r,i,a,o,s=0;for(e=_;e<n;e++){for(a=v[e],i=s+a,o=[],r=0;r<p;r++)o.push(t[r].subarray(s,i));f.push(o),s=i}}}}let y=[],b=[],x,S,C=!1,w=n.length+r;for(;b.length<w;){let t=e?_.decode(d):Xn(g,`IAEX`,h);for(;t--;)b.push(C);C=!C}for(x=0,S=n.length;x<S;x++)b[x]&&y.push(n[x]);for(let e=0;e<r;x++,e++)b[x]&&y.push(f[e]);return y}(e.huffman,e.refinement,l,e.numberOfNewSymbols,e.numberOfExportedSymbols,o,e.template,e.at,e.refinementTemplate,e.refinementAt,u,s)}onImmediateTextRegion(e,t,n,r,i){let a=e.info,o,s,c=this.symbols,l=[];for(let e of t){let t=c[e];t&&l.push(...t)}let u=Ie(l.length);e.huffman&&(s=new _r(n,r,i),o=function(e,t,n,r,i){let a=[];for(let e=0;e<=34;e++){let t=i.readBits(4);a.push(new fr([e,t,0,0]))}let o=new mr(a,!1);a.length=0;for(let e=0;e<r;){let t=o.decode(i);if(t>=32){let n,r,o;switch(t){case 32:if(e===0)throw new qn(`no previous value in symbol ID table`);r=i.readBits(2)+3,n=a[e-1].prefixLength;break;case 33:r=i.readBits(3)+3,n=0;break;case 34:r=i.readBits(7)+11,n=0;break;default:throw new qn(`invalid code length in symbol ID table`)}for(o=0;o<r;o++)a.push(new fr([e,n,0,0])),e++}else a.push(new fr([e,t,0,0])),e++}i.byteAlign();let s=new mr(a,!1),c,l,u,d=0;switch(e.huffmanFS){case 0:case 1:c=gr(e.huffmanFS+6);break;case 3:c=vr(d,t,n),d++;break;default:throw new qn(`invalid Huffman FS selector`)}switch(e.huffmanDS){case 0:case 1:case 2:l=gr(e.huffmanDS+8);break;case 3:l=vr(d,t,n),d++;break;default:throw new qn(`invalid Huffman DS selector`)}switch(e.huffmanDT){case 0:case 1:case 2:u=gr(e.huffmanDT+11);break;case 3:u=vr(d,t,n),d++;break;default:throw new qn(`invalid Huffman DT selector`)}if(e.refinement)throw new qn(`refinement with Huffman is not supported`);return{symbolIDTable:s,tableFirstS:c,tableDeltaS:l,tableDeltaT:u}}(e,t,this.customTables,l.length,s));let d=new Yn(n,r,i),f=ir(e.huffman,e.refinement,a.width,a.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,l,u,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,o,e.refinementTemplate,e.refinementAt,d,e.logStripSize,s);this.drawBitmap(a,f)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,n,r,i){let a=this.patterns;a||(this.patterns=a={});let o=new Yn(n,r,i);a[t]=function(e,t,n,r,i,a){let o=[];e||(o.push({x:-t,y:0}),i===0&&o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let s=nr(e,(r+1)*t,n,i,!1,0,o,a),c=[];for(let e=0;e<=r;e++){let r=[],i=t*e,a=i+t;for(let e=0;e<n;e++)r.push(s[e].subarray(i,a));c.push(r)}return c}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,o)}onImmediateHalftoneRegion(e,t,n,r,i){let a=this.patterns[t[0]],o=e.info,s=new Yn(n,r,i),c=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){if(o)throw new qn(`skip is not supported`);if(s!==0)throw new qn(`operator "${s}" is not supported in halftone region`);let h=[],g,_,v;for(g=0;g<i;g++)v=new Uint8Array(r),a&&v.fill(a),h.push(v);let y=t.length,b=t[0],x=b[0].length,S=b.length,C=Ie(y),w=[];e||(w.push({x:n<=1?3:2,y:-1}),n===0&&w.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let T=[],E,D,O,k,A,j,M,N,P,F,ee;for(e&&(E=new _r(m.data,m.start,m.end)),g=C-1;g>=0;g--)D=e?br(E,c,l,!0):nr(!1,c,l,n,!1,0,w,m),T[g]=D;for(O=0;O<l;O++)for(k=0;k<c;k++){for(A=0,j=0,_=C-1;_>=0;_--)A^=T[_][O][k],j|=A<<_;if(M=t[j],N=u+O*p+k*f>>8,P=d+O*f-k*p>>8,N>=0&&N+x<=r&&P>=0&&P+S<=i)for(g=0;g<S;g++)for(ee=h[P+g],F=M[g],_=0;_<x;_++)ee[N+_]|=F[_];else{let e,t;for(g=0;g<S;g++)if(t=P+g,!(t<0||t>=i))for(ee=h[t],F=M[g],_=0;_<x;_++)e=N+_,e>=0&&e<r&&(ee[e]|=F[_])}}return h}(e.mmr,a,e.template,o.width,o.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,s);this.drawBitmap(o,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,n,r){let i=this.customTables;i||(this.customTables=i={}),i[e]=function(e,t,n){let r=e[t],i=4294967295&Be(e,t+1),a=4294967295&Be(e,t+5),o=new _r(e,t+9,n),s=1+(r>>1&7),c=1+(r>>4&7),l=[],u,d,f=i;do u=o.readBits(s),d=o.readBits(c),l.push(new fr([f,u,d,0])),f+=1<<d;while(f<a);return u=o.readBits(s),l.push(new fr([i-1,u,32,0,`lower`])),u=o.readBits(s),l.push(new fr([a,u,32,0])),1&r&&(u=o.readBits(s),l.push(new fr([u,0]))),new mr(l,!1)}(t,n,r)}},fr=class{constructor(e){e.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange=e[4]===`lower`)}},pr=class e{constructor(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}buildTree(t,n){let r=t.prefixCode>>n&1;if(n<=0)this.children[r]=new e(t);else{let i=this.children[r];i||(this.children[r]=i=new e(null)),i.buildTree(t,n-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;let t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}let t=this.children[e.readBit()];if(!t)throw new qn(`invalid Huffman data`);return t.decodeNode(e)}},mr=class{constructor(e,t){t||this.assignPrefixCodes(e),this.rootNode=new pr(null);for(let t=0,n=e.length;t<n;t++){let n=e[t];n.prefixLength>0&&this.rootNode.buildTree(n,n.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){let t=e.length,n=0;for(let r=0;r<t;r++)n=Math.max(n,e[r].prefixLength);let r=new Uint32Array(n+1);for(let n=0;n<t;n++)r[e[n].prefixLength]++;let i,a,o,s=1,c=0;for(r[0]=0;s<=n;){for(c=c+r[s-1]<<1,i=c,a=0;a<t;)o=e[a],o.prefixLength===s&&(o.prefixCode=i,i++),a++;s++}}};const hr={};function gr(e){let t,n=hr[e];if(n)return n;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,`lower`],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,`lower`],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,`lower`],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,`lower`],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,`lower`],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,`lower`],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,`lower`],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,`lower`],[25,7,32,127]];break;default:throw new qn(`standard table B.${e} does not exist`)}for(let e=0,n=t.length;e<n;e++)t[e]=new fr(t[e]);return n=new mr(t,!0),hr[e]=n,n}var _r=class{constructor(e,t,n){this.data=e,this.start=t,this.end=n,this.position=t,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new qn(`end of data while reading bit`);this.currentByte=this.data[this.position++],this.shift=7}let e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<<t;return n}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}};function vr(e,t,n){let r=0;for(let i=0,a=t.length;i<a;i++){let a=n[t[i]];if(a){if(e===r)return a;r++}}throw new qn(`can't find custom Huffman table`)}function yr(e,t,n){let r=[];for(let i=0;i<n;i++){let n=new Uint8Array(t);r.push(n);for(let r=0;r<t;r++)n[r]=e.readBit();e.byteAlign()}return r}function br(e,t,n,r){let i=new Ln(e,{K:-1,Columns:t,Rows:n,BlackIs1:!0,EndOfBlock:r}),a=[],o,s=!1;for(let e=0;e<n;e++){let e=new Uint8Array(t);a.push(e);let n=-1;for(let r=0;r<t;r++)n<0&&(o=i.readNextChar(),o===-1&&(o=0,s=!0),n=7),e[r]=o>>n&1,n--}if(r&&!s)for(let e=0;e<5&&i.readNextChar()!==-1;e++);return a}var xr=class{parseChunks(e){return function(e){let t=new dr;for(let n=0,r=e.length;n<r;n++){let r=e[n];ur(or({},r.data,r.start,r.end),t)}return t.buffer}(e)}parse(e){throw Error(`Not implemented: Jbig2Image.parse`)}},Sr=class extends Wt{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return v(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}decodeImage(e){if(this.eof)return this.buffer;e||=this.bytes;let t=new xr,n=[];if(this.params instanceof L){let e=this.params.get(`JBIG2Globals`);if(e instanceof be){let t=e.getBytes();n.push({data:t,start:0,end:t.length})}}n.push({data:e,start:0,end:e.length});let r=t.parseChunks(n),i=r.length;for(let e=0;e<i;e++)r[e]^=255;return this.buffer=r,this.bufferLength=i,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}},Cr=class extends Wt{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return v(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(e){h(`JpxStream.readBlock`)}get isAsyncDecoder(){return!0}async decodeImage(e,t){return this.eof||=(e||=this.bytes,this.buffer=await _n.decode(e,t),this.bufferLength=this.buffer.length,!0),this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}},wr=class extends Wt{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;let r=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e)i.dictionaryValues[e]=e,i.dictionaryLengths[e]=1;this.lzwState=i}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t<e;){let e=this.str.getByte();if(e===-1)return this.eof=!0,null;n=n<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=n,this.lastCode=null,n>>>t&(1<<e)-1}readBlock(){let e,t,n,r=1024,i=this.lzwState;if(!i)return;let a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes,u=i.codeLength,d=i.prevCode,f=i.currentSequence,p=i.currentSequenceLength,m=0,h=this.bufferLength,g=this.ensureBuffer(this.bufferLength+r);for(e=0;e<512;e++){let e=this.readBits(u),i=p>0;if(e<256)f[0]=e,p=1;else{if(!(e>=258)){if(e===256){u=9,o=258,p=0;continue}this.eof=!0,delete this.lzwState;break}if(e<o)for(p=c[e],t=p-1,n=e;t>=0;t--)f[t]=s[n],n=l[n];else f[p++]=f[0]}if(i&&(l[o]=d,c[o]=c[d]+1,s[o]=f[0],o++,u=o+a&o+a-1?u:0|Math.min(Math.log(o+a)/.6931471805599453+1,12)),d=e,m+=p,r<m){do r+=512;while(r<m);g=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<p;t++)g[h++]=f[t]}i.nextCode=o,i.codeLength=u,i.prevCode=d,i.currentSequenceLength=p,this.bufferLength=h}},Tr=class extends Wt{constructor(e,t,n){if(super(t),!(n instanceof L))return e;let r=this.predictor=n.get(`Predictor`)||1;if(r<=1)return e;if(r!==2&&(r<10||r>15))throw new w(`Unsupported predictor: ${r}`);this.readBlock=r===2?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;let i=this.colors=n.get(`Colors`)||1,a=this.bits=n.get(`BPC`,`BitsPerComponent`)||8,o=this.columns=n.get(`Columns`)||1;return this.pixBytes=i*a+7>>3,this.rowBytes=o*i*a+7>>3,this}readBlockTiff(){let e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,i=this.colors,a=this.str.getBytes(e);if(this.eof=!a.length,this.eof)return;let o,s=0,c=0,l=0,u=0,d=t;if(r===1&&i===1)for(o=0;o<e;++o){let e=a[o]^s;e^=e>>1,e^=e>>2,e^=e>>4,s=(1&e)<<7,n[d++]=e}else if(r===8){for(o=0;o<i;++o)n[d++]=a[o];for(;o<e;++o)n[d]=n[d-i]+a[o],d++}else if(r===16){let t=2*i;for(o=0;o<t;++o)n[d++]=a[o];for(;o<e;o+=2){let e=((255&a[o])<<8)+(255&a[o+1])+((255&n[d-t])<<8)+(255&n[d-t+1]);n[d++]=e>>8&255,n[d++]=255&e}}else{let e=new Uint8Array(i+1),d=(1<<r)-1,f=0,p=t,m=this.columns;for(o=0;o<m;++o)for(let t=0;t<i;++t)l<r&&(s=s<<8|255&a[f++],l+=8),e[t]=e[t]+(s>>l-r)&d,l-=r,c=c<<r|e[t],u+=r,u>=8&&(n[p++]=c>>u-8&255,u-=8);u>0&&(n[p++]=(c<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}readBlockPng(){let e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),r=this.str.getBytes(e);if(this.eof=!r.length,this.eof)return;let i=this.bufferLength,a=this.ensureBuffer(i+e),o=a.subarray(i-e,i);o.length===0&&(o=new Uint8Array(e));let s,c,l,u=i;switch(n){case 0:for(s=0;s<e;++s)a[u++]=r[s];break;case 1:for(s=0;s<t;++s)a[u++]=r[s];for(;s<e;++s)a[u]=a[u-t]+r[s]&255,u++;break;case 2:for(s=0;s<e;++s)a[u++]=o[s]+r[s]&255;break;case 3:for(s=0;s<t;++s)a[u++]=(o[s]>>1)+r[s];for(;s<e;++s)a[u]=(o[s]+a[u-t]>>1)+r[s]&255,u++;break;case 4:for(s=0;s<t;++s)c=o[s],l=r[s],a[u++]=c+l;for(;s<e;++s){c=o[s];let e=o[s-t],n=a[u-t],i=n+c-e,d=i-n;d<0&&(d=-d);let f=i-c;f<0&&(f=-f);let p=i-e;p<0&&(p=-p),l=r[s],a[u++]=d<=f&&d<=p?n+l:f<=p?c+l:e+l}break;default:throw new w(`Unsupported predictor: ${n}`)}this.bufferLength+=e}},Er=class extends Wt{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){let e=this.str.getBytes(2);if(!e||e.length<2||e[0]===128)return void(this.eof=!0);let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){let e=this.str.getBytes(r);t.set(e,n),n+=r}}else r=257-r,t=this.ensureBuffer(n+r+1),t.fill(e[1],n,n+r),n+=r;this.bufferLength=n}},Dr=class{constructor({lexer:e,xref:t,allowStreams:n=!1,recoveryMode:r=!1}){this.lexer=e,this.xref=t,this.allowStreams=n,this.recoveryMode=r,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof fe&&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(e){if(e instanceof De)throw e;return!1}}getObj(e=null){let t=this.buf1;if(this.shift(),t instanceof fe)switch(t.cmd){case`BI`:return this.makeInlineImage(e);case`[`:let n=[];for(;!_e(this.buf1,`]`)&&this.buf1!==ce;)n.push(this.getObj(e));if(this.buf1===ce){if(this.recoveryMode)return n;throw new Oe(`End of file inside array.`)}return this.shift(),n;case`<<`:let r=new L(this.xref);for(;!_e(this.buf1,`>>`)&&this.buf1!==ce;){if(!(this.buf1 instanceof I)){p(`Malformed dictionary: key must be a name object`),this.shift();continue}let t=this.buf1.name;if(this.shift(),this.buf1===ce)break;r.set(t,this.getObj(e))}if(this.buf1===ce){if(this.recoveryMode)return r;throw new Oe(`End of file inside dictionary.`)}return _e(this.buf2,`stream`)?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&_e(this.buf2,`R`)){let e=R.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return typeof t==`string`&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){let{knownCommands:t}=this.lexer,n=e.pos,r,i,a=0;for(;(r=e.getByte())!==-1;)if(a===0)a=+(r===69);else if(a===1)a=r===73?2:0;else if(r===32||r===10||r===13){i=e.pos;let n=e.peekBytes(15),o=n.length;if(o===0)break;for(let e=0;e<o;e++)if(r=n[e],(r!==0||n[e+1]===0)&&r!==10&&r!==13&&(r<32||r>127)){a=0;break}if(a!==2)continue;if(!t){m("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let s=new Ar(new Ft(e.peekBytes(75)),t);s._hexStringWarn=()=>{};let c=0;for(;;){let e=s.getObj();if(e===ce){a=0;break}if(e instanceof fe){let n=t[e.cmd];if(!n){a=0;break}if(n.variableArgs?c<=n.numArgs:c===n.numArgs)break;c=0;continue}c++}if(a===2)break}else a=0;r===-1&&(m(`findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker`),i&&(m(`... trying to recover by using the last "EI" occurrence.`),e.skip(-(e.pos-i))));let o=4;return e.skip(-o),r=e.peekByte(),e.skip(o),Ve(r)||o--,e.pos-o-n}findDCTDecodeInlineStreamEnd(e){let t=e.pos,n,r,i=!1;for(;(n=e.getByte())!==-1;)if(n===255){switch(e.getByte()){case 0:break;case 255:e.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:r=e.getUint16(),r>2?e.skip(r-2):e.skip(-2)}if(i)break}let a=e.pos-t;return n===-1?(m(`Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.`),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}findASCII85DecodeInlineStreamEnd(e){let t=e.pos,n;for(;(n=e.getByte())!==-1;)if(n===126){let t=e.pos;for(n=e.peekByte();Ve(n);)e.skip(),n=e.peekByte();if(n===62){e.skip();break}if(e.pos>t){let t=e.peekBytes(2);if(t[0]===69&&t[1]===73)break}}let r=e.pos-t;return n===-1?(m(`Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.`),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}findASCIIHexDecodeInlineStreamEnd(e){let t=e.pos,n;for(;(n=e.getByte())!==-1&&n!==62;);let r=e.pos-t;return n===-1?(m(`Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.`),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}inlineStreamSkipEI(e){let t,n=0;for(;(t=e.getByte())!==-1;)if(n===0)n=+(t===69);else if(n===1)n=t===73?2:0;else if(n===2)break}makeInlineImage(e){let t=this.lexer,n=t.stream,r=Object.create(null),i;for(;!_e(this.buf1,`ID`)&&this.buf1!==ce;){if(!(this.buf1 instanceof I))throw new w(`Dictionary key must be a name object`);let t=this.buf1.name;if(this.shift(),this.buf1===ce)break;r[t]=this.getObj(e)}t.beginInlineImagePos!==-1&&(i=n.pos-t.beginInlineImagePos);let a=this.xref.fetchIfRef(r.F||r.Filter),o;if(a instanceof I)o=a.name;else if(Array.isArray(a)){let e=this.xref.fetchIfRef(a[0]);e instanceof I&&(o=e.name)}let s=n.pos,c,l;switch(o){case`DCT`:case`DCTDecode`:c=this.findDCTDecodeInlineStreamEnd(n);break;case`A85`:case`ASCII85Decode`:c=this.findASCII85DecodeInlineStreamEnd(n);break;case`AHx`:case`ASCIIHexDecode`:c=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:c=this.findDefaultInlineStreamEnd(n)}if(c<1e3&&i>0){let e=n.pos;n.pos=t.beginInlineImagePos,l=function(e){let t=[],n=e.length,r=0;for(;r<n-1;)t.push(e[r++]<<8|e[r++]);return r<n&&t.push(e[r]),n+`_`+String.fromCharCode.apply(null,t)}(n.getBytes(i+c)),n.pos=e;let r=this.imageCache[l];if(r!==void 0)return this.buf2=fe.get(`EI`),this.shift(),r.reset(),r}let u=new L(this.xref);for(let e in r)u.set(e,r[e]);let d=n.makeSubStream(s,c,u);return e&&(d=e.createStream(d,c)),d=this.filter(d,u,c),d.dict=u,l!==void 0&&(d.cacheKey=`inline_img_`+ ++this._imageId,this.imageCache[l]=d),this.buf2=fe.get(`EI`),this.shift(),d}#e(e){let{stream:t}=this.lexer;t.pos=e;let n=new Uint8Array([101,110,100]),r=n.length,i=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],a=9-r;for(;t.pos<t.end;){let o=t.peekBytes(2048),s=o.length-9;if(s<=0)break;let c=0;for(;c<s;){let s=0;for(;s<r&&o[c+s]===n[s];)s++;if(s>=r){let r=!1;for(let e of i){let t=e.length,i=0;for(;i<t&&o[c+s+i]===e[i];)i++;if(i>=a){r=!0;break}if(i>=t){Ve(o[c+s+i])&&(p(`Found "${E([...n,...e])}" when searching for endstream command.`),r=!0);break}}if(r)return t.pos+=c,t.pos-e}c++}t.pos+=s}return-1}makeStream(e,t){let n=this.lexer,r=n.stream;n.skipToNextLine();let i=r.pos-1,a=e.get(`Length`);if(Number.isInteger(a)||(p(`Bad length "${a&&a.toString()}" in stream.`),a=0),r.pos=i+a,n.nextChar(),this.tryShift()&&_e(this.buf2,`endstream`))this.shift();else{if(a=this.#e(i),a<0)throw new w(`Missing endstream command.`);n.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(i,a,e),t&&(r=t.createStream(r,a)),r=this.filter(r,e,a),r.dict=e,r}filter(e,t,n){let r=t.get(`F`,`Filter`),i=t.get(`DP`,`DecodeParms`);if(r instanceof I)return Array.isArray(i)&&m(`/DecodeParms should not be an Array, when /Filter is a Name.`),this.makeFilter(e,r.name,n,i);let a=n;if(Array.isArray(r)){let t=r,n=i;for(let o=0,s=t.length;o<s;++o){if(r=this.xref.fetchIfRef(t[o]),!(r instanceof I))throw new w(`Bad filter name "${r}"`);i=null,Array.isArray(n)&&o in n&&(i=this.xref.fetchIfRef(n[o])),e=this.makeFilter(e,r.name,a,i),a=null}}return e}makeFilter(e,t,n,r){if(n===0)return m(`Empty "${t}" stream.`),new Lt;try{switch(t){case`Fl`:case`FlateDecode`:return r?new Tr(new Wn(e,n),n,r):new Wn(e,n);case`LZW`:case`LZWDecode`:let t=1;return r?(r.has(`EarlyChange`)&&(t=r.get(`EarlyChange`)),new Tr(new wr(e,n,t),n,r)):new wr(e,n,t);case`DCT`:case`DCTDecode`:return new hn(e,n,r);case`JPX`:case`JPXDecode`:return new Cr(e,n,r);case`A85`:case`ASCII85Decode`:return new kn(e,n);case`AHx`:case`ASCIIHexDecode`:return new An(e,n);case`CCF`:case`CCITTFaxDecode`:return new Rn(e,n,r);case`RL`:case`RunLengthDecode`:return new Er(e,n);case`JBIG2Decode`:return new Sr(e,n,r)}return m(`Filter "${t}" is not supported.`),e}catch(e){if(e instanceof De)throw e;return m(`Invalid stream: "${e}"`),new Lt}}};const Or=[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];function kr(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var Ar=class{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,r=1;if(e===45?(r=-1,e=this.nextChar(),e===45&&(e=this.nextChar())):e===43&&(e=this.nextChar()),e===10||e===13)do e=this.nextChar();while(e===10||e===13);if(e===46&&(n=10,e=this.nextChar()),e<48||e>57){let t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if(Ve(e)||e===40||e===60||e===-1)return p(`Lexer.getNumber - "${t}".`),0;throw new w(t)}let i=e-48,a=0,o=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){let r=e-48;t?a=10*a+r:(n!==0&&(n*=10),i=10*i+r)}else if(e===46){if(n!==0)break;n=1}else if(e===45)m(`Badly formatted number: minus sign in the middle`);else{if(e!==69&&e!==101)break;if(e=this.peekChar(),e===43||e===45)o=e===45?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return n!==0&&(i/=n),t&&(i*=10**(o*a)),r*i}getString(){let e=1,t=!1,n=this.strBuf;n.length=0;let r=this.nextChar();for(;;){let i=!1;switch(0|r){case-1:m(`Unterminated string`),t=!0;break;case 40:++e,n.push(`(`);break;case 41:--e===0?(this.nextChar(),t=!0):n.push(`)`);break;case 92:switch(r=this.nextChar(),r){case-1:m(`Unterminated string`),t=!0;break;case 110:n.push(`
|
|
2
|
+
`?`\\n`:e===`\r`?`\\r`:`\\${e}`)}function Ye(e,t,n,r){if(!e)return;let i=null;if(e instanceof R){if(r.has(e))return;i=e,r.put(i),e=t.fetch(e)}if(Array.isArray(e))for(let i of e)Ye(i,t,n,r);else if(e instanceof L){if(ge(e.get(`S`),`JavaScript`)){let t=e.get(`JS`),r;t instanceof be?r=t.getString():typeof t==`string`&&(r=t),r&&=P(r,!0).replaceAll(`\0`,``),r&&n.push(r.trim())}Ye(e.getRaw(`Next`),t,n,r)}i&&r.remove(i)}function Xe(e,t,n){let r=Object.create(null),i=Ne({dict:t,key:`AA`,stopWhenFound:!1});if(i)for(let t=i.length-1;t>=0;t--){let a=i[t];if(a instanceof L)for(let t of a.getKeys()){let i=n[t];if(!i)continue;let o=[];Ye(a.getRaw(t),e,o,new me),o.length>0&&(r[i]=o)}}if(t.has(`A`)){let n=[];Ye(t.get(`A`),e,n,new me),n.length>0&&(r.Action=n)}return k(r)>0?r:null}const Ze={60:`<`,62:`>`,38:`&`,34:`"`,39:`'`};function*Qe(e){for(let t=0,n=e.length;t<n;t++){let n=e.codePointAt(t);n>55295&&(n<57344||n>65533)&&t++,yield n}}function $e(e){let t=[],n=0;for(let r=0,i=e.length;r<i;r++){let i=e.codePointAt(r);if(32<=i&&i<=126){let a=Ze[i];a&&(n<r&&t.push(e.substring(n,r)),t.push(a),n=r+1)}else n<r&&t.push(e.substring(n,r)),t.push(`&#x${i.toString(16).toUpperCase()};`),i>55295&&(i<57344||i>65533)&&r++,n=r+1}return t.length===0?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(``))}function et(e,t=!1){let n=/^("|').*("|')$/.exec(e);if(n&&n[1]===n[2]){if(RegExp(`[^\\\\]${n[1]}`).test(e.slice(1,-1)))return t&&m(`FontFamily contains unescaped ${n[1]}: ${e}.`),!1}else for(let n of e.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(n)||!/^[\w-\\]+$/.test(n))return t&&m(`FontFamily contains invalid <custom-ident>: ${e}.`),!1;return!0}function tt(e){let t=new Set([`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`,`1000`,`normal`,`bold`,`bolder`,`lighter`]),{fontFamily:n,fontWeight:r,italicAngle:i}=e;if(!et(n,!0))return!1;let a=r?r.toString():``;e.fontWeight=t.has(a)?a:`400`;let o=parseFloat(i);return e.italicAngle=isNaN(o)||o<-90||o>90?`14`:i.toString(),!0}function nt(e){let t=RegExp(`^\\s*(`+[`app.launchURL`,`window.open`,`xfa.host.gotoURL`].join(`|`).replaceAll(`.`,`\\.`)+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,`i`).exec(e);return t?.[2]?{url:t[2],newWindow:t[1]===`app.launchURL`&&t[3]===`true`}:null}function rt(e){if(Number.isInteger(e))return e.toString();let t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function it(e){if(!e)return null;let t=new Map;for(let[n,r]of e){if(!n.startsWith(a))continue;let e=t.get(r.pageIndex);e||(e=[],t.set(r.pageIndex,e)),e.push(r)}return t.size>0?t:null}function at(e){return e==null||function(e){return typeof e==`string`?!e||/^[\x00-\x7F]*$/.test(e):!1}(e)?e:st(e,!0)}function ot(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);t.push(j[r>>8&255],j[255&r])}return t.join(``)}function st(e,t=!1){let n=[];t&&n.push(`þÿ`);for(let t=0,r=e.length;t<r;t++){let r=e.charCodeAt(t);n.push(String.fromCharCode(r>>8&255),String.fromCharCode(255&r))}return n.join(``)}function ct(e,t,n){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,n];case 270:return[0,-1,1,0,0,n];default:throw Error(`Invalid rotation`)}}function lt(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}var ut=class{static#e=null;static _memory=null;static _mustAddAlpha=!1;static _destBuffer=null;static _destOffset=0;static _destLength=0;static _cssColor=``;static _makeHexColor=null;static get _memoryArray(){let e=this.#e;return e?.byteLength?e:this.#e=new Uint8Array(this._memory.buffer)}};let dt;const ft=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&ft.decode();let pt=null;function mt(){return pt!==null&&pt.byteLength!==0||(pt=new Uint8Array(dt.memory.buffer)),pt}let ht=0;function gt(e,t){let n=t(1*e.length,1)>>>0;return mt().set(e,n/1),ht=e.length,n}const _t=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`}),vt=Object.freeze({Perceptual:0,0:`Perceptual`,RelativeColorimetric:1,1:`RelativeColorimetric`,Saturation:2,2:`Saturation`,AbsoluteColorimetric:3,3:`AbsoluteColorimetric`});function yt(){let e={wbg:{}};return e.wbg.__wbg_copyresult_b08ee7d273f295dd=function(e,t){(function(e,t){let{_mustAddAlpha:n,_destBuffer:r,_destOffset:i,_destLength:a,_memoryArray:o}=ut;if(t!==a)if(n)for(let n=e,a=e+t,s=i;n<a;n+=3,s+=4)r[s]=o[n],r[s+1]=o[n+1],r[s+2]=o[n+2],r[s+3]=255;else for(let n=e,a=e+t,s=i;n<a;n+=3,s+=4)r[s]=o[n],r[s+1]=o[n+1],r[s+2]=o[n+2];else r.set(o.subarray(e,e+t),i)})(e>>>0,t>>>0)},e.wbg.__wbg_copyrgb_d60ce17bb05d9b67=function(e){(function(e){let{_destBuffer:t,_destOffset:n,_memoryArray:r}=ut;t[n]=r[e],t[n+1]=r[e+1],t[n+2]=r[e+2]})(e>>>0)},e.wbg.__wbg_makecssRGB_893bf0cd9fdb302d=function(e){(function(e){let{_memoryArray:t}=ut;ut._cssColor=ut._makeHexColor(t[e],t[e+1],t[e+2])})(e>>>0)},e.wbg.__wbindgen_init_externref_table=function(){let e=dt.__wbindgen_export_0,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_throw=function(e,t){throw Error((n=e,r=t,n>>>=0,ft.decode(mt().subarray(n,n+r))));var n,r},e}function bt(e){if(dt!==void 0)return dt;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=yt();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),function(e){return dt=e.exports,pt=null,dt.__wbindgen_start(),dt}(new WebAssembly.Instance(e,t))}var xt=class e{static#e=new Uint8ClampedArray(3);constructor(e,t){this.name=e,this.numComps=t}getRgb(e,t,n=new Uint8ClampedArray(3)){return this.getRgbItem(e,t,n,0),n}getRgbHex(t,n){let r=this.getRgb(t,n,e.#e);return M.makeHexColor(r[0],r[1],r[2])}getRgbItem(e,t,n,r){h(`Should not call ColorSpace.getRgbItem`)}getRgbBuffer(e,t,n,r,i,a,o){h(`Should not call ColorSpace.getRgbBuffer`)}getOutputLength(e,t){h(`Should not call ColorSpace.getOutputLength`)}isPassthrough(e){return!1}isDefaultDecode(t,n){return e.isDefaultDecode(t,this.numComps)}fillRgb(e,t,n,r,i,a,o,s,c){let l=t*n,u=null,d=1<<o,f=n!==i||t!==r;if(this.isPassthrough(o))u=s;else if(this.numComps===1&&l>d&&this.name!==`DeviceGray`&&this.name!==`DeviceRGB`){let t=o<=8?new Uint8Array(d):new Uint16Array(d);for(let e=0;e<d;e++)t[e]=e;let n=new Uint8ClampedArray(3*d);if(this.getRgbBuffer(t,0,d,n,0,o,0),f){u=new Uint8Array(3*l);let e=0;for(let t=0;t<l;++t){let r=3*s[t];u[e++]=n[r],u[e++]=n[r+1],u[e++]=n[r+2]}}else{let t=0;for(let r=0;r<l;++r){let i=3*s[r];e[t++]=n[i],e[t++]=n[i+1],e[t++]=n[i+2],t+=c}}}else f?(u=new Uint8ClampedArray(3*l),this.getRgbBuffer(s,0,l,u,0,o,0)):this.getRgbBuffer(s,0,r*a,e,0,o,c);if(u)if(f)(function(e,t,n,r,i,a,o){o=o===1?o:0;let s=n/i,c=r/a,l,u=0,d=new Uint16Array(i),f=3*n;for(let e=0;e<i;e++)d[e]=3*Math.floor(e*s);for(let n=0;n<a;n++){let r=Math.floor(n*c)*f;for(let n=0;n<i;n++)l=r+d[n],t[u++]=e[l++],t[u++]=e[l++],t[u++]=e[l++],u+=o}})(u,e,t,n,r,i,c);else{let t=0,n=0;for(let i=0,o=r*a;i<o;i++)e[t++]=u[n++],e[t++]=u[n++],e[t++]=u[n++],t+=c}}get usesZeroToOneRange(){return v(this,`usesZeroToOneRange`,!0)}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return m(`The decode map is not the correct length`),!0;for(let t=0,n=e.length;t<n;t+=2)if(e[t]!==0||e[t+1]!==1)return!1;return!0}},St=class extends xt{constructor(e,t,n){super(`Alternate`,e),this.base=t,this.tintFn=n,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,n,r){let i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=this.tintFn,c=this.base,l=1/((1<<a)-1),u=c.numComps,d=c.usesZeroToOneRange,f=(c.isPassthrough(8)||!d)&&o===0,p=f?i:0,m=f?r:new Uint8ClampedArray(u*n),h=this.numComps,g=new Float32Array(h),_=new Float32Array(u),v,y;for(v=0;v<n;v++){for(y=0;y<h;y++)g[y]=e[t++]*l;if(s(g,0,_,0),d)for(y=0;y<u;y++)m[p++]=255*_[y];else c.getRgbItem(_,0,m,p),p+=u}f||c.getRgbBuffer(m,0,n,r,i,8,o)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}},Ct=class extends xt{constructor(e){super(`Pattern`,null),this.base=e}isDefaultDecode(e,t){h(`Should not call PatternCS.isDefaultDecode`)}},wt=class extends xt{constructor(e,t,n){super(`Indexed`,1),this.base=e,this.highVal=t;let r=e.numComps*(t+1);if(this.lookup=new Uint8Array(r),n instanceof be){let e=n.getBytes(r);this.lookup.set(e)}else{if(typeof n!=`string`)throw new w(`IndexedCS - unrecognized lookup table: ${n}`);for(let e=0;e<r;++e)this.lookup[e]=255&n.charCodeAt(e)}}getRgbItem(e,t,n,r){let{base:i,highVal:a,lookup:o}=this,s=ae(Math.round(e[t]),0,a)*i.numComps;i.getRgbBuffer(o,s,1,n,r,8,0)}getRgbBuffer(e,t,n,r,i,a,o){let{base:s,highVal:c,lookup:l}=this,{numComps:u}=s,d=s.getOutputLength(u,o);for(let a=0;a<n;++a){let n=ae(Math.round(e[t++]),0,c)*u;s.getRgbBuffer(l,n,1,r,i,8,o),i+=d}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(e.length===2?!Number.isInteger(t)||t<1?(m(`Bits per component is not correct`),!0):e[0]===0&&e[1]===(1<<t)-1:(m(`Decode map length is not correct`),!0))}},Tt=class extends xt{constructor(){super(`DeviceGray`,1)}getRgbItem(e,t,n,r){let i=255*e[t];n[r]=n[r+1]=n[r+2]=i}getRgbBuffer(e,t,n,r,i,a,o){let s=255/((1<<a)-1),c=t,l=i;for(let t=0;t<n;++t){let t=s*e[c++];r[l++]=t,r[l++]=t,r[l++]=t,l+=o}}getOutputLength(e,t){return e*(3+t)}},Et=class extends xt{constructor(){super(`DeviceRGB`,3)}getRgbItem(e,t,n,r){n[r]=255*e[t],n[r+1]=255*e[t+1],n[r+2]=255*e[t+2]}getRgbBuffer(e,t,n,r,i,a,o){if(a===8&&o===0)return void r.set(e.subarray(t,t+3*n),i);let s=255/((1<<a)-1),c=t,l=i;for(let t=0;t<n;++t)r[l++]=s*e[c++],r[l++]=s*e[c++],r[l++]=s*e[c++],l+=o}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return e===8}},Dt=class extends xt{constructor(){super(`DeviceRGBA`,4)}getOutputLength(e,t){return 4*e}isPassthrough(e){return e===8}fillRgb(e,t,n,r,i,a,o,s,c){n!==i||t!==r?function(e,t,n,r,i,a,o){let s=n/i,c=r/a,l=0,u=new Uint16Array(i);if(o===1){for(let e=0;e<i;e++)u[e]=Math.floor(e*s);let r=new Uint32Array(e.buffer),o=new Uint32Array(t.buffer),d=A.isLittleEndian?16777215:4294967040;for(let e=0;e<a;e++){let t=r.subarray(Math.floor(e*c)*n);for(let e=0;e<i;e++)o[l++]|=t[u[e]]&d}}else{let r=n*4;for(let e=0;e<i;e++)u[e]=Math.floor(e*s)*4;for(let n=0;n<a;n++){let a=e.subarray(Math.floor(n*c)*r);for(let e=0;e<i;e++){let n=u[e];t[l++]=a[n],t[l++]=a[n+1],t[l++]=a[n+2]}}}}(s,e,t,n,r,i,c):function(e,t,n){if(n===1){let n=new Uint32Array(e.buffer),r=new Uint32Array(t.buffer),i=A.isLittleEndian?16777215:4294967040;for(let e=0,t=n.length;e<t;e++)r[e]|=n[e]&i}else{let n=0;for(let r=0,i=e.length;r<i;r+=4)t[n++]=e[r],t[n++]=e[r+1],t[n++]=e[r+2]}}(s,e,c)}},Ot=class extends xt{constructor(){super(`DeviceCMYK`,4)}#e(e,t,n,r,i){let a=e[t]*n,o=e[t+1]*n,s=e[t+2]*n,c=e[t+3]*n;r[i]=255+a*(-4.387332384609988*a+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),r[i+1]=255+a*(8.841041422036149*a+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),r[i+2]=255+a*(.8842522430003296*a+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(e,t,n,r){this.#e(e,t,1,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;a++)this.#e(e,t,s,r,i),t+=4,i+=3+o}getOutputLength(e,t){return e/4*(3+t)|0}},kt=class extends xt{constructor(e,t,n){if(super(`CalGray`,1),!e)throw new w(`WhitePoint missing - required for color space CalGray`);if([this.XW,this.YW,this.ZW]=e,[this.XB,this.YB,this.ZB]=t||[0,0,0],this.G=n||1,this.XW<0||this.ZW<0||this.YW!==1)throw new w(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(p(`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||m(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(p(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#e(e,t,n,r,i){let a=(e[t]*i)**this.G,o=this.YW*a,s=Math.max(295.8*o**.3333333333333333-40.8,0);n[r]=s,n[r+1]=s,n[r+2]=s}getRgbItem(e,t,n,r){this.#e(e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;++a)this.#e(e,t,r,i,s),t+=1,i+=3+o}getOutputLength(e,t){return e*(3+t)}},At=class e extends xt{static#e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#n=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#r=new Float32Array([1,1,1]);static#i=new Float32Array(3);static#a=new Float32Array(3);static#o=new Float32Array(3);static#s=(24/116)**3/8;constructor(e,t,n,r){if(super(`CalRGB`,3),!e)throw new w(`WhitePoint missing - required for color space CalRGB`);let[i,a,o]=this.whitePoint=e,[s,c,l]=this.blackPoint=t||new Float32Array(3);if([this.GR,this.GG,this.GB]=n||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=r||new Float32Array([1,0,0,0,1,0,0,0,1]),i<0||o<0||a!==1)throw new w(`Invalid WhitePoint components for ${this.name}, no fallback available`);(s<0||c<0||l<0)&&(p(`Invalid BlackPoint for ${this.name} [${s}, ${c}, ${l}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(p(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#c(e,t,n){n[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],n[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],n[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}#l(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}#u(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}#d(e){return e<=.0031308?ae(12.92*e,0,1):e>=.99554525?1:ae(1.055*e**(1/2.4)-.055,0,1)}#f(t){return t<0?-this.#f(-t):t>8?((t+16)/116)**3:t*e.#s}#p(e,t,n){if(e[0]===0&&e[1]===0&&e[2]===0)return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);let r=this.#f(0),i=(1-r)/(1-this.#f(e[0])),a=1-i,o=(1-r)/(1-this.#f(e[1])),s=1-o,c=(1-r)/(1-this.#f(e[2])),l=1-c;n[0]=t[0]*i+a,n[1]=t[1]*o+s,n[2]=t[2]*c+l}#m(t,n,r){if(t[0]===1&&t[2]===1)return r[0]=n[0],r[1]=n[1],void(r[2]=n[2]);let i=r;this.#c(e.#e,n,i);let a=e.#i;this.#l(t,i,a),this.#c(e.#t,a,r)}#h(t,n,r){let i=r;this.#c(e.#e,n,i);let a=e.#i;this.#u(t,i,a),this.#c(e.#t,a,r)}#g(t,n,r,i,a){let o=ae(t[n]*a,0,1),s=ae(t[n+1]*a,0,1),c=ae(t[n+2]*a,0,1),l=o===1?1:o**this.GR,u=s===1?1:s**this.GG,d=c===1?1:c**this.GB,f=this.MXA*l+this.MXB*u+this.MXC*d,p=this.MYA*l+this.MYB*u+this.MYC*d,m=this.MZA*l+this.MZB*u+this.MZC*d,h=e.#a;h[0]=f,h[1]=p,h[2]=m;let g=e.#o;this.#m(this.whitePoint,h,g);let _=e.#a;this.#p(this.blackPoint,g,_);let v=e.#o;this.#h(e.#r,_,v);let y=e.#a;this.#c(e.#n,v,y),r[i]=255*this.#d(y[0]),r[i+1]=255*this.#d(y[1]),r[i+2]=255*this.#d(y[2])}getRgbItem(e,t,n,r){this.#g(e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,a,o){let s=1/((1<<a)-1);for(let a=0;a<n;++a)this.#g(e,t,r,i,s),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}},jt=class extends xt{constructor(e,t,n){if(super(`Lab`,3),!e)throw new w(`WhitePoint missing - required for color space Lab`);if([this.XW,this.YW,this.ZW]=e,[this.amin,this.amax,this.bmin,this.bmax]=n||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=t||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new w(`Invalid WhitePoint components, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(p(`Invalid BlackPoint, falling back to default`),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(p(`Invalid Range, falling back to defaults`),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#e(e){return e>=6/29?e**3:108/841*(e-4/29)}#t(e,t,n,r){return n+e*(r-n)/t}#n(e,t,n,r,i){let a=e[t],o=e[t+1],s=e[t+2];!1!==n&&(a=this.#t(a,n,0,100),o=this.#t(o,n,this.amin,this.amax),s=this.#t(s,n,this.bmin,this.bmax)),o>this.amax?o=this.amax:o<this.amin&&(o=this.amin),s>this.bmax?s=this.bmax:s<this.bmin&&(s=this.bmin);let c=(a+16)/116,l=c+o/500,u=c-s/200,d=this.XW*this.#e(l),f=this.YW*this.#e(c),p=this.ZW*this.#e(u),m,h,g;this.ZW<1?(m=3.1339*d+-1.617*f+-.4906*p,h=-.9785*d+1.916*f+.0333*p,g=.072*d+-.229*f+1.4057*p):(m=3.2406*d+-1.5372*f+-.4986*p,h=-.9689*d+1.8758*f+.0415*p,g=.0557*d+-.204*f+1.057*p),r[i]=255*Math.sqrt(m),r[i+1]=255*Math.sqrt(h),r[i+2]=255*Math.sqrt(g)}getRgbItem(e,t,n,r){this.#n(e,t,!1,n,r)}getRgbBuffer(e,t,n,r,i,a,o){let s=(1<<a)-1;for(let a=0;a<n;a++)this.#n(e,t,s,r,i),t+=3,i+=3+o}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return v(this,`usesZeroToOneRange`,!1)}};function Mt(e){let t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),t.response}var Nt=class e extends xt{#e;#t;static#n=!0;static#r=null;static#i=null;constructor(t,n,r){if(!e.isUsable)throw Error(`No ICC color space support`);let i;switch(super(n,r),r){case 1:i=_t.Gray8,this.#t=(e,t,n)=>function(e,t,n){dt.qcms_convert_one(e,t,n)}(this.#e,255*e[t],n);break;case 3:i=_t.RGB8,this.#t=(e,t,n)=>function(e,t,n,r,i){dt.qcms_convert_three(e,t,n,r,i)}(this.#e,255*e[t],255*e[t+1],255*e[t+2],n);break;case 4:i=_t.CMYK,this.#t=(e,t,n)=>function(e,t,n,r,i,a){dt.qcms_convert_four(e,t,n,r,i,a)}(this.#e,255*e[t],255*e[t+1],255*e[t+2],255*e[t+3],n);break;default:throw Error(`Unsupported number of components: ${r}`)}if(this.#e=function(e,t,n){let r=gt(e,dt.__wbindgen_malloc),i=ht;return dt.qcms_transformer_from_memory(r,i,t,n)>>>0}(t,i,vt.Perceptual),!this.#e)throw Error(`Failed to create ICC color space`);e.#i||=new FinalizationRegistry(e=>{(function(e){dt.qcms_drop_transformer(e)})(e)}),e.#i.register(this,this.#e)}getRgbHex(e,t){return this.#t(e,t,!0),ut._cssColor}getRgbItem(e,t,n,r){ut._destBuffer=n,ut._destOffset=r,ut._destLength=3,this.#t(e,t,!1),ut._destBuffer=null}getRgbBuffer(e,t,n,r,i,a,o){if(e=e.subarray(t,t+n*this.numComps),a!==8){let t=255/((1<<a)-1);for(let n=0,r=e.length;n<r;n++)e[n]*=t}ut._mustAddAlpha=o&&r.buffer===e.buffer,ut._destBuffer=r,ut._destOffset=i,ut._destLength=n*(3+o),function(e,t){let n=gt(t,dt.__wbindgen_malloc),r=ht;dt.qcms_convert_array(e,n,r)}(this.#e,e),ut._mustAddAlpha=!1,ut._destBuffer=null}getOutputLength(e,t){return e/this.numComps*(3+t)|0}static setOptions({useWasm:e,useWorkerFetch:t,wasmUrl:n}){t?(this.#n=e,this.#r=n):this.#n=!1}static get isUsable(){let e=!1;if(this.#n)if(this.#r)try{this._module=bt({module:Mt(`${this.#r}qcms_bg.wasm`)}),e=!!this._module,ut._memory=this._module.memory,ut._makeHexColor=M.makeHexColor}catch(e){m(`ICCBased color space: "${e}".`)}else m("No ICC color space support due to missing `wasmUrl` API option");return v(this,`isUsable`,e)}},Pt=class e extends Nt{static#e;constructor(){super(new Uint8Array(Mt(`${e.#e}CGATS001Compat-v2-micro.icc`)),`DeviceCMYK`,4)}static setOptions({iccUrl:e}){this.#e=e}static get isUsable(){let e=!1;return Nt.isUsable&&(this.#e?e=!0:m("No CMYK ICC profile support due to missing `iccUrl` API option")),v(this,`isUsable`,e)}},Ft=class e extends be{constructor(e,t,n,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}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 t=this.bytes,n=this.pos,r=this.end;if(!e)return t.subarray(n,r);let i=n+e;return i>r&&(i=r),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,n,r=null){return new e(this.bytes.buffer,t,n,r)}},It=class extends Ft{constructor(e){super(D(e))}},Lt=class extends Ft{constructor(){super(new Uint8Array)}},Rt=class extends Ft{constructor(e,t,n){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){let e=[];for(let t=0,n=this.numChunks;t<n;++t)this._loadedChunks.has(t)||e.push(t);return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){let n=this.chunkSize;if(e%n!==0)throw Error(`Bad begin offset: ${e}`);let r=e+t.byteLength;if(r%n!==0&&r!==this.bytes.length)throw Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(t),e);let i=Math.floor(e/n),a=Math.floor((r-1)/n)+1;for(let e=i;e<a;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){let t=this.progressiveDataLength,n=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;let r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=n;e<r;++e)this._loadedChunks.add(e)}ensureByte(e){if(e<this.progressiveDataLength)return;let t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new De(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t||t<=this.progressiveDataLength)return;let n=Math.floor(e/this.chunkSize);if(n>this.numChunks)return;let r=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let i=n;i<r;++i)if(!this._loadedChunks.has(i))throw new De(e,t)}nextEmptyChunk(e){let t=this.numChunks;for(let n=0;n<t;++n){let r=(e+n)%t;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){let e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){let t=this.bytes,n=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(n,r),t.subarray(n,r);let i=n+e;return i>r&&(i=r),i>this.progressiveDataLength&&this.ensureRange(n,i),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t,n=null){function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){let e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<n;++e)this._loadedChunks.has(e)||r.push(e);return r},Object.defineProperty(r.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||this.getMissingChunks().length===0},configurable:!0});let i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=n,i}getBaseStreams(){return[this]}},zt=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new Rt(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=Promise.withResolvers()}sendRequest(e,t){let n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));let r=[],i=0;return new Promise((e,t)=>{let a=({value:o,done:s})=>{try{if(s){let t=je(r);r=null,e(t);return}i+=o.byteLength,n.isStreamingSupported&&this.onProgress({loaded:i}),r.push(o),n.read().then(a,t)}catch(e){t(e)}};n.read().then(a,t)}).then(t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})})}requestAllChunks(e=!1){if(!e){let e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){let t=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(t,n);for(let t of e)this.stream.hasChunk(t)||n.add(t);if(n.size===0)return Promise.resolve();let r=Promise.withResolvers();this._promisesByRequest.set(t,r);let i=[];for(let e of n){let n=this._requestsByChunk.get(e);n||(n=[],this._requestsByChunk.set(e,n),i.push(e)),n.push(t)}if(i.length>0){let e=this.groupChunks(i);for(let t of e){let e=t.beginChunk*this.chunkSize,n=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,n).catch(r.reject)}}return r.promise.catch(e=>{if(!this.aborted)throw e})}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);let n=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let e=n;e<r;++e)i.push(e);return this._requestChunks(i)}requestRanges(e=[]){let t=[];for(let n of e){let e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n<r;++n)t.includes(n)||t.push(n)}return t.sort((e,t)=>e-t),this._requestChunks(t)}groupChunks(e){let t=[],n=-1,r=-1;for(let i=0,a=e.length;i<a;++i){let a=e[i];n<0&&(n=a),r>=0&&r+1!==a&&(t.push({beginChunk:n,endChunk:r+1}),n=a),i+1===e.length&&t.push({beginChunk:n,endChunk:a+1}),r=a}return t}onProgress(e){this.msgHandler.send(`DocProgress`,{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){let t=e.chunk,n=e.begin===void 0,r=n?this.progressiveDataLength:e.begin,i=r+t.byteLength,a=Math.floor(r/this.chunkSize),o=i<this.length?Math.floor(i/this.chunkSize):Math.ceil(i/this.chunkSize);n?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=i):this.stream.onReceiveData(r,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);let s=[];for(let e=a;e<o;++e){let t=this._requestsByChunk.get(e);if(t){this._requestsByChunk.delete(e);for(let n of t){let t=this._chunksNeededByRequest.get(n);t.has(e)&&t.delete(e),t.size>0||s.push(n)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let e;if(this.stream.numChunksLoaded===1){let t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(o);Number.isInteger(e)&&this._requestChunks([e])}for(let e of s){let t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e),t.resolve()}this.msgHandler.send(`DocProgress`,{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream?.cancelAllRequests(e);for(let t of this._promisesByRequest.values())t.reject(e)}};function Bt(e){switch(e.kind){case 1:return Vt(e);case 2:return function({src:e,srcPos:t=0,dest:n,destPos:r=0,width:i,height:a}){let o=0,s=i*a*3,c=s>>2,l=new Uint32Array(e.buffer,t,c);if(A.isLittleEndian){for(;o<c-2;o+=3,r+=4){let e=l[o],t=l[o+1],i=l[o+2];n[r]=4278190080|e,n[r+1]=e>>>24|t<<8|4278190080,n[r+2]=t>>>16|i<<16|4278190080,n[r+3]=i>>>8|4278190080}for(let i=4*o,a=t+s;i<a;i+=3)n[r++]=e[i]|e[i+1]<<8|e[i+2]<<16|4278190080}else{for(;o<c-2;o+=3,r+=4){let e=l[o],t=l[o+1],i=l[o+2];n[r]=255|e,n[r+1]=e<<24|t>>>8|255,n[r+2]=t<<16|i>>>16|255,n[r+3]=i<<8|255}for(let i=4*o,a=t+s;i<a;i+=3)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|255}return{srcPos:t+s,destPos:r}}(e)}return null}function Vt({src:e,srcPos:t=0,dest:n,width:r,height:i,nonBlackColor:a=4294967295,inverseDecode:o=!1}){let s=A.isLittleEndian?4278190080:255,[c,l]=o?[a,s]:[s,a],u=r>>3,d=7&r,f=e.length;n=new Uint32Array(n.buffer);let p=0;for(let r=0;r<i;r++){for(let r=t+u;t<r;t++){let r=t<f?e[t]:255;n[p++]=128&r?l:c,n[p++]=64&r?l:c,n[p++]=32&r?l:c,n[p++]=16&r?l:c,n[p++]=8&r?l:c,n[p++]=4&r?l:c,n[p++]=2&r?l:c,n[p++]=1&r?l:c}if(d===0)continue;let r=t<f?e[t++]:255;for(let e=0;e<d;e++)n[p++]=r&1<<7-e?l:c}return{srcPos:t,destPos:p}}var Ht=class e{static#e=2048;static#t=A.isImageDecoderSupported;constructor(e,t){this._imgData=e,this._isMask=t}static get canUseImageDecoder(){return v(this,`canUseImageDecoder`,this.#t?ImageDecoder.isTypeSupported(`image/bmp`):Promise.resolve(!1))}static needsToBeResized(e,t){if(e<=this.#e&&t<=this.#e)return!1;let{MAX_DIM:n}=this;if(e>n||t>n)return!0;let r=e*t;return this._hasMaxArea?r>this.MAX_AREA:r<this.#e**2?!1:this._areGoodDims(e,t)?(this.#e=Math.max(this.#e,Math.floor(Math.sqrt(e*t))),!1):(this.#e=this._guessMax(this.#e,n,128,0),r>(this.MAX_AREA=this.#e**2))}static getReducePowerForJPX(e,t,n){let r=e*t,i=2**30/(4*n);if(!this.needsToBeResized(e,t))return r>i?Math.ceil(Math.log2(r/i)):0;let{MAX_DIM:a,MAX_AREA:o}=this,s=Math.max(e/a,t/a,Math.sqrt(r/Math.min(i,o)));return Math.ceil(Math.log2(s))}static get MAX_DIM(){return v(this,`MAX_DIM`,this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,v(this,`MAX_AREA`,this._guessMax(this.#e,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){e>=0&&(this._hasMaxArea=!0,v(this,`MAX_AREA`,e))}static setOptions({canvasMaxAreaInBytes:e=-1,isImageDecoderSupported:t=!1}){this._hasMaxArea||(this.MAX_AREA=e>>2),this.#t=t}static _areGoodDims(e,t){try{let n=new OffscreenCanvas(e,t),r=n.getContext(`2d`);r.fillRect(0,0,1,1);let i=r.getImageData(0,0,1,1).data[3];return n.width=n.height=1,i!==0}catch{return!1}}static _guessMax(e,t,n,r){for(;e+n+1<t;){let n=Math.floor((e+t)/2),i=r||n;this._areGoodDims(n,i)?e=n:t=n}return e}static async createImage(t,n=!1){return new e(t,n)._createImage()}async _createImage(){let{_imgData:t}=this,{width:n,height:r}=t;if(n*r*4>Se){let e=this.#n();if(e)return e}let i=this._encodeBMP(),a,o;await e.canUseImageDecoder?(a=new ImageDecoder({data:i,type:`image/bmp`,preferAnimation:!1,transfer:[i.buffer]}),o=a.decode().catch(e=>(m(`BMP image decoding failed: ${e}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:`image/bmp`})))).finally(()=>{a.close()})):o=createImageBitmap(new Blob([i.buffer],{type:`image/bmp`}));let{MAX_AREA:s,MAX_DIM:c}=e,l=Math.max(n/c,r/c,Math.sqrt(n*r/s)),u=Math.max(l,2),d=Math.round(10*(l+1.25))/10/u,f=Math.floor(Math.log2(d)),p=Array(f+2).fill(2);p[0]=u,p.splice(-1,1,d/(1<<f));let h=n,g=r,_=await o,v=_.image||_;for(let e of p){let t=h,n=g;h=Math.floor(h/e)-1,g=Math.floor(g/e)-1;let r=new OffscreenCanvas(h,g);r.getContext(`2d`).drawImage(v,0,0,t,n,0,0,h,g),v.close(),v=r.transferToImageBitmap()}return t.data=null,t.bitmap=v,t.width=h,t.height=g,t}#n(){let{_imgData:t}=this,{data:n,width:r,height:i,kind:a}=t,o=r*i*4,s=Math.ceil(Math.log2(o/Se)),c=r>>s,l=i>>s,u,d=i;try{u=new Uint8Array(o)}catch{let e=Math.floor(Math.log2(o+1));for(;;)try{u=new Uint8Array(2**e-1);break}catch{--e}d=Math.floor((2**e-1)/(4*r));let t=r*d*4;t<u.length&&(u=new Uint8Array(t))}let f=new Uint32Array(u.buffer),p=new Uint32Array(c*l),m=0,h=0,g=Math.ceil(i/d),_=i%d===0?i:i%d;for(let e=0;e<g;e++){let t=e<g-1?d:_;({srcPos:m}=Bt({kind:a,src:n,dest:f,width:r,height:t,inverseDecode:this._isMask,srcPos:m}));for(let e=0,n=t>>s;e<n;e++){let t=f.subarray((e<<s)*r);for(let e=0;e<c;e++)p[h++]=t[e<<s]}}if(e.needsToBeResized(c,l))return t.data=p,t.width=c,t.height=l,t.kind=3,null;let v=new OffscreenCanvas(c,l);return v.getContext(`2d`,{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(p.buffer),c,l),0,0),t.data=null,t.bitmap=v.transferToImageBitmap(),t.width=c,t.height=l,t}_encodeBMP(){let{width:e,height:t,kind:n}=this._imgData,r,i=this._imgData.data,a=new Uint8Array,o=a,s=0;switch(n){case 1:{r=1,a=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let n=e+7>>3,o=n+3&-4;if(n!==o){let e=new Uint8Array(o*t),r=0;for(let a=0,s=t*n;a<s;a+=n,r+=o)e.set(i.subarray(a,a+n),r);i=e}break}case 2:if(r=24,3&e){let n=3*e,r=n+3&-4,a=r-n,o=new Uint8Array(r*t),s=0;for(let e=0,r=t*n;e<r;e+=n){let t=i.subarray(e,e+n);for(let e=0;e<n;e+=3)o[s++]=t[e+2],o[s++]=t[e+1],o[s++]=t[e];s+=a}i=o}else for(let e=0,t=i.length;e<t;e+=3){let t=i[e];i[e]=i[e+2],i[e+2]=t}break;case 3:r=32,s=3,o=new Uint8Array(68);let n=new DataView(o.buffer);A.isLittleEndian?(n.setUint32(0,255,!0),n.setUint32(4,65280,!0),n.setUint32(8,16711680,!0),n.setUint32(12,4278190080,!0)):(n.setUint32(0,4278190080,!0),n.setUint32(4,16711680,!0),n.setUint32(8,65280,!0),n.setUint32(12,255,!0));break;default:throw Error(`invalid format`)}let c=0,l=40+o.length,u=14+l+a.length+i.length,d=new Uint8Array(u),f=new DataView(d.buffer);return f.setUint16(c,19778,!0),c+=2,f.setUint32(c,u,!0),c+=4,f.setUint32(c,0,!0),c+=4,f.setUint32(c,14+l+a.length,!0),c+=4,f.setUint32(c,l,!0),c+=4,f.setInt32(c,e,!0),c+=4,f.setInt32(c,-t,!0),c+=4,f.setUint16(c,1,!0),c+=2,f.setUint16(c,r,!0),c+=2,f.setUint32(c,s,!0),c+=4,f.setUint32(c,0,!0),c+=4,f.setInt32(c,0,!0),c+=4,f.setInt32(c,0,!0),c+=4,f.setUint32(c,a.length/4,!0),c+=4,f.setUint32(c,0,!0),c+=4,d.set(o,c),c+=o.length,d.set(a,c),c+=a.length,d.set(i,c),d}};const Ut=new Uint8Array;var Wt=class extends be{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=Ut,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(e){let t=this.buffer;if(e<=t.byteLength)return t;let n=this.minBufferLength;for(;n<e;)n*=2;let r=new Uint8Array(n);return r.set(t),this.buffer=r}getByte(){let e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e,t=null){let n=this.pos,r;if(e){for(this.ensureBuffer(n+e),r=n+e;!this.eof&&this.bufferLength<r;)this.readBlock(t);let i=this.bufferLength;r>i&&(r=i)}else{for(;!this.eof;)this.readBlock(t);r=this.bufferLength}return this.pos=r,this.buffer.subarray(n,r)}async getImageData(e,t){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,t):this.getBytes(e,t);let n=await this.stream.asyncGetBytes();return this.decodeImage(n,t)}reset(){this.pos=0}makeSubStream(e,t,n=null){if(t===void 0)for(;!this.eof;)this.readBlock();else{let n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock()}return new Ft(this.buffer,e,t,n)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}},Gt=class extends Wt{constructor(e,t=null){e=e.filter(e=>e instanceof be);let n=0;for(let t of e)n+=t instanceof Wt?t._rawMinBufferLength:t.length;super(n),this.streams=e,this._onError=t}readBlock(){let e=this.streams;if(e.length===0)return void(this.eof=!0);let t=e.shift(),n;try{n=t.getBytes()}catch(e){if(this._onError)return void this._onError(e,t.dict?.objId);throw e}let r=this.bufferLength,i=r+n.length;this.ensureBuffer(i).set(n,r),this.bufferLength=i}getBaseStreams(){let e=[];for(let t of this.streams){let n=t.getBaseStreams();n&&e.push(...n)}return e.length>0?e:null}},Kt=class{static parse({cs:e,xref:t,resources:n=null,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a,asyncIfNotCached:o=!1}){let s={xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a},c,l,u;if(e instanceof R){l=e;let n=i.getByRef(l)||a.getByRef(l);if(n)return n;e=t.fetch(e)}if(e instanceof I){c=e.name;let t=a.getByName(c);if(t)return t}try{u=this.#t(e,s)}catch(e){if(o&&!(e instanceof De))return Promise.reject(e);throw e}return(c||l)&&(a.set(c,l,u),l&&i.set(null,l,u)),o?Promise.resolve(u):u}static#e(e,t){let{globalColorSpaceCache:n}=t,r;if(e instanceof R){r=e;let t=n.getByRef(r);if(t)return t}let i=this.#t(e,t);return r&&n.set(null,r,i),i}static#t(e,t){let{xref:n,resources:r,pdfFunctionFactory:i,globalColorSpaceCache:a}=t;if((e=n.fetchIfRef(e))instanceof I)switch(e.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 Ct(null);default:if(r instanceof L){let n=r.get(`ColorSpace`);if(n instanceof L){let r=n.get(e.name);if(r){if(r instanceof I)return this.#t(r,t);e=r;break}}}return m(`Unrecognized ColorSpace: ${e.name}`),this.gray}if(Array.isArray(e)){let r=n.fetchIfRef(e[0]).name,o,s,c,l,u,d;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 o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`),d=o.get(`Gamma`),new kt(l,u,d);case`CalRGB`:o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`),d=o.getArray(`Gamma`);let f=o.getArray(`Matrix`);return new At(l,u,d,f);case`ICCBased`:let p=e[1]instanceof R;if(p){let t=a.getByRef(e[1]);if(t)return t}let h=n.fetchIfRef(e[1]),g=h.dict;if(s=g.get(`N`),Nt.isUsable)try{let t=new Nt(h.getBytes(),`ICCBased`,s);return p&&a.set(null,e[1],t),t}catch(t){if(t instanceof De)throw t;m(`ICCBased color space (${e[1]}): "${t}".`)}let _=g.getRaw(`Alternate`);if(_){let e=this.#e(_,t);if(e.numComps===s)return e;m(`ICCBased color space: Ignoring incorrect /Alternate entry.`)}if(s===1)return this.gray;if(s===3)return this.rgb;if(s===4)return this.cmyk;break;case`Pattern`:return c=e[1]||null,c&&=this.#e(c,t),new Ct(c);case`I`:case`Indexed`:c=this.#e(e[1],t);let v=ae(n.fetchIfRef(e[2]),0,255),y=n.fetchIfRef(e[3]);return new wt(c,v,y);case`Separation`:case`DeviceN`:let b=n.fetchIfRef(e[1]);s=Array.isArray(b)?b.length:1,c=this.#e(e[2],t);let x=i.create(e[3]);return new St(s,c,x);case`Lab`:o=n.fetchIfRef(e[1]),l=o.getArray(`WhitePoint`),u=o.getArray(`BlackPoint`);let S=o.getArray(`Range`);return new jt(l,u,S);default:return m(`Unimplemented ColorSpace object: ${r}`),this.gray}}return m(`Unrecognized ColorSpace object: ${e}`),this.gray}static get gray(){return v(this,`gray`,new Tt)}static get rgb(){return v(this,`rgb`,new Et)}static get rgba(){return v(this,`rgba`,new Dt)}static get cmyk(){if(Pt.isUsable)try{return v(this,`cmyk`,new Pt)}catch{m(`CMYK fallback: DeviceCMYK`)}return v(this,`cmyk`,new Ot)}},qt=class extends y{constructor(e){super(e,`JpegError`)}},Jt=class extends y{constructor(e,t){super(e,`DNLMarkerError`),this.scanLines=t}},Yt=class extends y{constructor(e){super(e,`EOIMarkerError`)}};const Xt=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]),Zt=4017,Qt=3406,$t=2276,en=1567,tn=3784,nn=5793,rn=2896;function an(e,t){let n,r,i=0,a=16;for(;a>0&&!e[a-1];)a--;let o=[{children:[],index:0}],s,c=o[0];for(n=0;n<a;n++){for(r=0;r<e[n];r++){for(c=o.pop(),c.children[c.index]=t[i];c.index>0;)c=o.pop();for(c.index++,o.push(c);o.length<=n;)o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;i++}n+1<a&&(o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s)}return o[0].children}function on(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function sn(e,t,n,r,i,a,o,s,c,l=!1){let u=n.mcusPerLine,d=n.progressive,f=t,p=0,h=0;function g(){if(h>0)return h--,p>>h&1;if(p=e[t++],p===255){let r=e[t++];if(r){if(r===220&&l){let r=ze(e,t+=2);if(t+=2,r>0&&r!==n.scanLines)throw new Jt(`Found DNL marker (0xFFDC) while parsing scan data`,r)}else if(r===217){if(l){let e=C*(n.precision===8?8:0);if(e>0&&Math.round(n.scanLines/e)>=5)throw new Jt("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new Yt(`Found EOI marker (0xFFD9) while parsing scan data`)}throw new qt(`unexpected marker ${(p<<8|r).toString(16)}`)}}return h=7,p>>>7}function _(e){let t=e;for(;;){switch(t=t[g()],typeof t){case`number`:return t;case`object`:continue}throw new qt(`invalid huffman sequence`)}}function v(e){let t=0;for(;e>0;)t=t<<1|g(),e--;return t}function y(e){if(e===1)return g()===1?1:-1;let t=v(e);return t>=1<<e-1?t:t+(-1<<e)+1}let b=0,x,S=0,C=0;function w(e,t,n,r,i){let a=n%u;C=(n/u|0)*e.v+r;let o=a*e.h+i;t(e,on(e,C,o))}function T(e,t,n){C=n/e.blocksPerLine|0;let r=n%e.blocksPerLine;t(e,on(e,C,r))}let E=r.length,D,O,k,A,j,M;M=d?a===0?s===0?function(e,t){let n=_(e.huffmanTableDC),r=n===0?0:y(n)<<c;e.blockData[t]=e.pred+=r}:function(e,t){e.blockData[t]|=g()<<c}:s===0?function(e,t){if(b>0)return void b--;let n=a,r=o;for(;n<=r;){let r=_(e.huffmanTableAC),i=15&r,a=r>>4;if(i===0){if(a<15){b=v(a)+(1<<a)-1;break}n+=16;continue}n+=a;let o=Xt[n];e.blockData[t+o]=y(i)*(1<<c),n++}}:function(e,t){let n=a,r=o,i,s,l=0;for(;n<=r;){let r=t+Xt[n],a=e.blockData[r]<0?-1:1;switch(S){case 0:if(s=_(e.huffmanTableAC),i=15&s,l=s>>4,i===0)l<15?(b=v(l)+(1<<l),S=4):(l=16,S=1);else{if(i!==1)throw new qt(`invalid ACn encoding`);x=y(i),S=l?2:3}continue;case 1:case 2:e.blockData[r]?e.blockData[r]+=a*(g()<<c):(l--,l===0&&(S=S===2?3:0));break;case 3:e.blockData[r]?e.blockData[r]+=a*(g()<<c):(e.blockData[r]=x<<c,S=0);break;case 4:e.blockData[r]&&(e.blockData[r]+=a*(g()<<c))}n++}S===4&&(b--,b===0&&(S=0))}:function(e,t){let n=_(e.huffmanTableDC),r=n===0?0:y(n);e.blockData[t]=e.pred+=r;let i=1;for(;i<64;){let n=_(e.huffmanTableAC),r=15&n,a=n>>4;if(r===0){if(a<15)break;i+=16;continue}i+=a;let o=Xt[i];e.blockData[t+o]=y(r),i++}};let N,P=0,F=E===1?r[0].blocksPerLine*r[0].blocksPerColumn:u*n.mcusPerColumn,ee,te;for(;P<=F;){let n=i?Math.min(F-P,i):F;if(n>0){for(O=0;O<E;O++)r[O].pred=0;if(b=0,E===1)for(D=r[0],j=0;j<n;j++)T(D,M,P),P++;else for(j=0;j<n;j++){for(O=0;O<E;O++)for(D=r[O],ee=D.h,te=D.v,k=0;k<te;k++)for(A=0;A<ee;A++)w(D,M,P,k,A);P++}}if(h=0,N=un(e,t),!N||(N.invalid&&(m(`decodeScan - ${n>0?`unexpected`:`excessive`} MCU data, current marker is: ${N.invalid}`),t=N.offset),!(N.marker>=65488&&N.marker<=65495)))break;t+=2}return t-f}function cn(e,t,n){let r=e.quantizationTable,i=e.blockData,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(!r)throw new qt(`missing required Quantization Table.`);for(let e=0;e<64;e+=8)p=i[t+e],m=i[t+e+1],h=i[t+e+2],g=i[t+e+3],_=i[t+e+4],v=i[t+e+5],y=i[t+e+6],b=i[t+e+7],p*=r[e],(m|h|g|_|v|y|b)===0?(x=nn*p+512>>10,n[e]=x,n[e+1]=x,n[e+2]=x,n[e+3]=x,n[e+4]=x,n[e+5]=x,n[e+6]=x,n[e+7]=x):(m*=r[e+1],h*=r[e+2],g*=r[e+3],_*=r[e+4],v*=r[e+5],y*=r[e+6],b*=r[e+7],a=nn*p+128>>8,o=nn*_+128>>8,s=h,c=y,l=rn*(m-b)+128>>8,f=rn*(m+b)+128>>8,u=g<<4,d=v<<4,a=a+o+1>>1,o=a-o,x=s*tn+c*en+128>>8,s=s*en-c*tn+128>>8,c=x,l=l+d+1>>1,d=l-d,f=f+u+1>>1,u=f-u,a=a+c+1>>1,c=a-c,o=o+s+1>>1,s=o-s,x=l*$t+f*Qt+2048>>12,l=l*Qt-f*$t+2048>>12,f=x,x=u*799+d*Zt+2048>>12,u=u*Zt-d*799+2048>>12,d=x,n[e]=a+f,n[e+7]=a-f,n[e+1]=o+d,n[e+6]=o-d,n[e+2]=s+u,n[e+5]=s-u,n[e+3]=c+l,n[e+4]=c-l);for(let e=0;e<8;++e)p=n[e],m=n[e+8],h=n[e+16],g=n[e+24],_=n[e+32],v=n[e+40],y=n[e+48],b=n[e+56],(m|h|g|_|v|y|b)===0?(x=nn*p+8192>>14,x=x<-2040?0:x>=2024?255:x+2056>>4,i[t+e]=x,i[t+e+8]=x,i[t+e+16]=x,i[t+e+24]=x,i[t+e+32]=x,i[t+e+40]=x,i[t+e+48]=x,i[t+e+56]=x):(a=nn*p+2048>>12,o=nn*_+2048>>12,s=h,c=y,l=rn*(m-b)+2048>>12,f=rn*(m+b)+2048>>12,u=g,d=v,a=4112+(a+o+1>>1),o=a-o,x=s*tn+c*en+2048>>12,s=s*en-c*tn+2048>>12,c=x,l=l+d+1>>1,d=l-d,f=f+u+1>>1,u=f-u,a=a+c+1>>1,c=a-c,o=o+s+1>>1,s=o-s,x=l*$t+f*Qt+2048>>12,l=l*Qt-f*$t+2048>>12,f=x,x=u*799+d*Zt+2048>>12,u=u*Zt-d*799+2048>>12,d=x,p=a+f,b=a-f,m=o+d,y=o-d,h=s+u,v=s-u,g=c+l,_=c-l,p<16?p=0:p>=4080?p=255:p>>=4,m<16?m=0:m>=4080?m=255:m>>=4,h<16?h=0:h>=4080?h=255:h>>=4,g<16?g=0:g>=4080?g=255:g>>=4,_<16?_=0:_>=4080?_=255:_>>=4,v<16?v=0:v>=4080?v=255:v>>=4,y<16?y=0:y>=4080?y=255:y>>=4,b<16?b=0:b>=4080?b=255:b>>=4,i[t+e]=p,i[t+e+8]=m,i[t+e+16]=h,i[t+e+24]=g,i[t+e+32]=_,i[t+e+40]=v,i[t+e+48]=y,i[t+e+56]=b)}function ln(e,t){let n=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64);for(let e=0;e<r;e++)for(let r=0;r<n;r++)cn(t,on(t,e,r),i);return t.blockData}function un(e,t,n=t){let r=e.length-1,i=n<t?n:t;if(t>=r)return null;let a=ze(e,t);if(a>=65472&&a<=65534)return{invalid:null,marker:a,offset:t};let o=ze(e,i);for(;!(o>=65472&&o<=65534);){if(++i>=r)return null;o=ze(e,i)}return{invalid:a.toString(16),marker:o,offset:i}}function dn(e){let t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV);for(let r of e.components){let i=Math.ceil(Math.ceil(e.samplesPerLine/8)*r.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*r.v/e.maxV),o=t*r.h,s=64*(n*r.v)*(o+1);r.blockData=new Int16Array(s),r.blocksPerLine=i,r.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}function fn(e,t){let n=ze(e,t),r=(t+=2)+n-2,i=un(e,r,t);i?.invalid&&(m(`readDataBlock - incorrect length, current marker is: `+i.invalid),r=i.offset);let a=e.subarray(t,r);return{appData:a,oldOffset:t,newOffset:t+a.length}}function pn(e,t){let n=ze(e,t),r=(t+=2)+n-2,i=un(e,r,t);return i?.invalid?i.offset:r}var mn=class{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}static canUseImageDecoder(e,t=-1){let n=null,r=0,i=null,a=ze(e,r);if(r+=2,a!==65496)throw new qt(`SOI not found`);a=ze(e,r),r+=2;e:for(;a!==65497;){switch(a){case 65505:let{appData:t,oldOffset:o,newOffset:s}=fn(e,r);if(r=s,t[0]===69&&t[1]===120&&t[2]===105&&t[3]===102&&t[4]===0&&t[5]===0){if(n)throw new qt(`Duplicate EXIF-blocks found.`);n={exifStart:o+6,exifEnd:s}}a=ze(e,r),r+=2;continue;case 65472:case 65473:case 65474:i=e[r+7];break e;case 65535:e[r]!==255&&r--}r=pn(e,r),a=ze(e,r),r+=2}return i===4||i===3&&t===0?null:n||{}}parse(e,{dnlScanLines:t=null}={}){let n,r,i=0,a=null,o=null,s=0,c=[],l=[],u=[],d=ze(e,i);if(i+=2,d!==65496)throw new qt(`SOI not found`);d=ze(e,i),i+=2;e:for(;d!==65497;){let f,p,h;switch(d){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:g,newOffset:_}=fn(e,i);i=_,d===65504&&g[0]===74&&g[1]===70&&g[2]===73&&g[3]===70&&g[4]===0&&(a={version:{major:g[5],minor:g[6]},densityUnits:g[7],xDensity:g[8]<<8|g[9],yDensity:g[10]<<8|g[11],thumbWidth:g[12],thumbHeight:g[13],thumbData:g.subarray(14,14+3*g[12]*g[13])}),d===65518&&g[0]===65&&g[1]===100&&g[2]===111&&g[3]===98&&g[4]===101&&(o={version:g[5]<<8|g[6],flags0:g[7]<<8|g[8],flags1:g[9]<<8|g[10],transformCode:g[11]});break;case 65499:let v=ze(e,i);i+=2;let y=v+i-2,b;for(;i<y;){let t=e[i++],n=new Uint16Array(64);if(t>>4){if(t>>4!=1)throw new qt(`DQT - invalid table spec`);for(p=0;p<64;p++)b=Xt[p],n[b]=ze(e,i),i+=2}else for(p=0;p<64;p++)b=Xt[p],n[b]=e[i++];c[15&t]=n}break;case 65472:case 65473:case 65474:if(n)throw new qt(`Only single frame JPEGs supported`);i+=2,n={},n.extended=d===65473,n.progressive=d===65474,n.precision=e[i++];let x=ze(e,i);i+=2,n.scanLines=t||x,n.samplesPerLine=ze(e,i),i+=2,n.components=[],n.componentIds={};let S=e[i++],C=0,w=0;for(f=0;f<S;f++){let t=e[i],r=e[i+1]>>4,a=15&e[i+1];C<r&&(C=r),w<a&&(w=a);let o=e[i+2];h=n.components.push({h:r,v:a,quantizationId:o,quantizationTable:null}),n.componentIds[t]=h-1,i+=3}n.maxH=C,n.maxV=w,dn(n);break;case 65476:let T=ze(e,i);for(i+=2,f=2;f<T;){let t=e[i++],n=new Uint8Array(16),r=0;for(p=0;p<16;p++,i++)r+=n[p]=e[i];let a=new Uint8Array(r);for(p=0;p<r;p++,i++)a[p]=e[i];f+=17+r,(t>>4?l:u)[15&t]=an(n,a)}break;case 65501:i+=2,r=ze(e,i),i+=2;break;case 65498:let E=++s===1&&!t;i+=2;let D=e[i++],O=[];for(f=0;f<D;f++){let t=e[i++],r=n.componentIds[t],a=n.components[r];a.index=t;let o=e[i++];a.huffmanTableDC=u[o>>4],a.huffmanTableAC=l[15&o],O.push(a)}let k=e[i++],A=e[i++],j=e[i++];try{i+=sn(e,i,n,O,r,k,A,j>>4,15&j,E)}catch(t){if(t instanceof Jt)return m(`${t.message} -- attempting to re-parse the JPEG image.`),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof Yt){m(`${t.message} -- ignoring the rest of the image data.`);break e}throw t}break;case 65500:i+=4;break;case 65535:e[i]!==255&&i--;break;default:let M=un(e,i-2,i-3);if(M?.invalid){m(`JpegImage.parse - unexpected data, current marker is: `+M.invalid),i=M.offset;break}if(!M||i>=e.length-1){m(`JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).`);break e}throw new qt(`JpegImage.parse - unknown marker: `+d.toString(16))}d=ze(e,i),i+=2}if(!n)throw new qt(`JpegImage.parse - no frame data found.`);this.width=n.samplesPerLine,this.height=n.scanLines,this.jfif=a,this.adobe=o,this.components=[];for(let e of n.components){let t=c[e.quantizationId];t&&(e.quantizationTable=t),this.components.push({index:e.index,output:ln(0,e),scaleX:e.h/n.maxH,scaleY:e.v/n.maxV,blocksPerLine:e.blocksPerLine,blocksPerColumn:e.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,n=!1){let r=this.width/e,i=this.height/t,a,o,s,c,l,u,d,f,p,m,h,g=0,_=this.components.length,v=e*t*_,y=new Uint8ClampedArray(v),b=new Uint32Array(e),x=4294967288,S;for(d=0;d<_;d++){if(a=this.components[d],o=a.scaleX*r,s=a.scaleY*i,g=d,h=a.output,c=a.blocksPerLine+1<<3,o!==S){for(l=0;l<e;l++)f=0|l*o,b[l]=(f&x)<<3|7&f;S=o}for(u=0;u<t;u++)for(f=0|u*s,m=c*(f&x)|(7&f)<<3,l=0;l<e;l++)y[g]=h[m+b[l]],g+=_}let C=this._decodeTransform;if(n||_!==4||C||(C=new Int32Array([-256,255,-256,255,-256,255,-256,255])),C)for(d=0;d<v;)for(f=0,p=0;f<_;f++,d++,p+=2)y[d]=(y[d]*C[p]>>8)+C[p+1];return y}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(e){let t,n,r;for(let i=0,a=e.length;i<a;i+=3)t=e[i],n=e[i+1],r=e[i+2],e[i]=t-179.456+1.402*r,e[i+1]=t+135.459-.344*n-.714*r,e[i+2]=t-226.816+1.772*n;return e}_convertYccToRgba(e,t){for(let n=0,r=0,i=e.length;n<i;n+=3,r+=4){let i=e[n],a=e[n+1],o=e[n+2];t[r]=i-179.456+1.402*o,t[r+1]=i+135.459-.344*a-.714*o,t[r+2]=i-226.816+1.772*a,t[r+3]=255}return t}_convertYcckToRgb(e){return this._convertYcckToCmyk(e),this._convertCmykToRgb(e)}_convertYcckToRgba(e){return this._convertYcckToCmyk(e),this._convertCmykToRgba(e)}_convertYcckToCmyk(e){let t,n,r;for(let i=0,a=e.length;i<a;i+=4)t=e[i],n=e[i+1],r=e[i+2],e[i]=434.456-t-1.402*r,e[i+1]=119.541-t+.344*n+.714*r,e[i+2]=481.816-t-1.772*n;return e}_convertCmykToRgb(e){let t=e.length/4;return Kt.cmyk.getRgbBuffer(e,0,t,e,0,8,0),e.subarray(0,3*t)}_convertCmykToRgba(e){if(Kt.cmyk.getRgbBuffer(e,0,e.length/4,e,0,8,1),Kt.cmyk instanceof Ot)for(let t=3,n=e.length;t<n;t+=4)e[t]=255;return e}getData({width:e,height:t,forceRGBA:n=!1,forceRGB:r=!1,isSourcePDF:i=!1}){if(this.numComponents>4)throw new qt(`Unsupported color mode`);let a=this._getLinearizedBlockData(e,t,i);if(this.numComponents===1&&(n||r)){let e=a.length*(n?4:3),t=new Uint8ClampedArray(e),r=0;if(n)(function(e,t){if(A.isLittleEndian)for(let n=0,r=e.length;n<r;n++)t[n]=65793*e[n]|4278190080;else for(let n=0,r=e.length;n<r;n++)t[n]=16843008*e[n]|255})(a,new Uint32Array(t.buffer));else for(let e of a)t[r++]=e,t[r++]=e,t[r++]=e;return t}if(this.numComponents===3&&this._isColorConversionNeeded){if(n){let e=new Uint8ClampedArray(a.length/3*4);return this._convertYccToRgba(a,e)}return this._convertYccToRgb(a)}if(this.numComponents===4){if(this._isColorConversionNeeded)return n?this._convertYcckToRgba(a):r?this._convertYcckToRgb(a):this._convertYcckToCmyk(a);if(n)return this._convertCmykToRgba(a);if(r)return this._convertCmykToRgb(a)}return a}},hn=class e extends Wt{static#e=A.isImageDecoderSupported;constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}static get canUseImageDecoder(){return v(this,`canUseImageDecoder`,this.#e?ImageDecoder.isTypeSupported(`image/jpeg`):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:e=!1}){this.#e=e}get bytes(){return v(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}get jpegOptions(){let e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray(`D`,`Decode`);if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){let n=this.dict.get(`BPC`,`BitsPerComponent`)||8,r=t.length,i=new Int32Array(r),a=!1,o=(1<<n)-1;for(let e=0;e<r;e+=2)i[e]=256*(t[e+1]-t[e])|0,i[e+1]=t[e]*o|0,i[e]===256&&i[e+1]===0||(a=!0);a&&(e.decodeTransform=i)}if(this.params instanceof L){let t=this.params.get(`ColorTransform`);Number.isInteger(t)&&(e.colorTransform=t)}return v(this,`jpegOptions`,e)}#t(e){for(let t=0,n=e.length-1;t<n;t++)if(e[t]===255&&e[t+1]===216){t>0&&(e=e.subarray(t));break}return e}decodeImage(e){if(this.eof)return this.buffer;e=this.#t(e||this.bytes);let t=new mn(this.jpegOptions);t.parse(e);let n=t.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=n,this.bufferLength=n.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){if(!await e.canUseImageDecoder)return null;let t=this.jpegOptions;if(t.decodeTransform)return null;let n;try{let e=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!e)return null;let r=this.#t(e),i=mn.canUseImageDecoder(r,t.colorTransform);return i?(i.exifStart&&(r=r.slice(),r.fill(0,i.exifStart,i.exifEnd)),n=new ImageDecoder({data:r,type:`image/jpeg`,preferAnimation:!1}),(await n.decode()).image):null}catch(e){return m(`getTransferableImage - failed: "${e}".`),null}finally{n?.close()}}},gn=class extends y{constructor(e){super(e,`JpxError`)}},_n=class{static#e=null;static#t=null;static#n=!0;static#r=!0;static#i=null;static setOptions({handler:e,useWasm:t,useWorkerFetch:n,wasmUrl:r}){this.#n=t,this.#r=n,this.#i=r,n||(this.#e=e)}static async decode(e,{numComponents:t=4,isIndexedColormap:n=!1,smaskInData:r=!1,reducePower:i=0}={}){let a=await this.#t;if(!a)throw new gn(`OpenJPEG failed to initialize`);let o;try{let s=e.length;if(o=a._malloc(s),a.writeArrayToMemory(e,o),a._jp2_decode(o,s,t>0?t:0,!!n,!!r,i)){let{errorMessages:e}=a;throw e?(delete a.errorMessages,new gn(e)):new gn(`Unknown error`)}let{imageData:c}=a;return a.imageData=null,c}finally{o&&a._free(o)}}static cleanup(){this.#t=null}static parseImageProperties(e){let t=e.getByte();for(;t>=0;){let n=t;if(t=e.getByte(),(n<<8|t)==65361){e.skip(4);let t=e.getInt32()>>>0,n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0;return e.skip(16),{width:t-r,height:n-i,bitsPerComponent:8,componentsCount:e.getUint16()}}}throw new gn(`No size marker found in JPX stream`)}};function vn(e,t,n,r,i){let a=e;for(let e=0,n=t.length-1;e<n;e++){let n=t[e];a=a[n]||=[]}a[t.at(-1)]={checkFn:n,iterateFn:r,processFn:i}}const yn=[];vn(yn,[10,12,86,11],null,function(e,t){let n=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return n[t]===10;case 1:return n[t]===12;case 2:return n[t]===86;case 3:return n[t]===11}throw Error(`iterateInlineImageGroup - invalid pos: ${r}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=i-1,c=Math.min(Math.floor((t-a)/4),200);if(c<10)return t-(t-a)%4;let l=0,u=[],d=0,f=1,p=1;for(let e=0;e<c;e++){let t=r[o+(e<<2)],n=r[s+(e<<2)][0];f+n.width>1e3&&(l=Math.max(l,f),p+=d+2,f=0,d=0),u.push({transform:t,x:f,y:p,w:n.width,h:n.height}),f+=n.width+2,d=Math.max(d,n.height)}let m=Math.max(l,f)+1,h=p+d+1,g=new Uint8Array(m*h*4),_=m<<2;for(let e=0;e<c;e++){let t=r[s+(e<<2)][0].data,n=u[e].w<<2,i=0,a=u[e].x+u[e].y*m<<2;g.set(t.subarray(0,n),a-_);for(let r=0,o=u[e].h;r<o;r++)g.set(t.subarray(i,i+n),a),i+=n,a+=_;for(g.set(t.subarray(i-n,i),a);a>=0;)t[a-4]=t[a],t[a-3]=t[a+1],t[a-2]=t[a+2],t[a-1]=t[a+3],t[a+n]=t[a+n-4],t[a+n+1]=t[a+n-3],t[a+n+2]=t[a+n-2],t[a+n+3]=t[a+n-1],a-=_}let v={width:m,height:h};if(e.isOffscreenCanvasSupported){let e=new OffscreenCanvas(m,h);e.getContext(`2d`).putImageData(new ImageData(new Uint8ClampedArray(g.buffer),m,h),0,0),v.bitmap=e.transferToImageBitmap(),v.data=null}else v.kind=3,v.data=g;return n.splice(a,4*c,87),r.splice(a,4*c,[v,u]),a+1}),vn(yn,[10,12,83,11],null,function(e,t){let n=e.fnArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return n[t]===10;case 1:return n[t]===12;case 2:return n[t]===83;case 3:return n[t]===11}throw Error(`iterateImageMaskGroup - invalid pos: ${r}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=i-1,c=Math.floor((t-a)/4);if(c<10)return t-(t-a)%4;let l,u,d=!1,f=r[s][0],p=r[o][0],m=r[o][1],h=r[o][2],g=r[o][3];if(m===h){d=!0,l=o+4;let e=s+4;for(let t=1;t<c;t++,l+=4,e+=4)if(u=r[l],r[e][0]!==f||u[0]!==p||u[1]!==m||u[2]!==h||u[3]!==g){t<10?d=!1:c=t;break}}if(d){c=Math.min(c,1e3);let e=new Float32Array(2*c);l=o;for(let t=0;t<c;t++,l+=4)u=r[l],e[t<<1]=u[4],e[1+(t<<1)]=u[5];n.splice(a,4*c,89),r.splice(a,4*c,[f,p,m,h,g,e])}else{c=Math.min(c,100);let e=[];for(let t=0;t<c;t++){u=r[o+(t<<2)];let n=r[s+(t<<2)][0];e.push({data:n.data,width:n.width,height:n.height,interpolate:n.interpolate,count:n.count,transform:u})}n.splice(a,4*c,84),r.splice(a,4*c,[e])}return a+1}),vn(yn,[10,12,85,11],function(e){let t=e.argsArray,n=e.iCurr-2;return t[n][1]===0&&t[n][2]===0},function(e,t){let n=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===10;case 1:if(n[t]!==12)return!1;let i=e.iCurr-2,a=r[i][0],o=r[i][3];return r[t][0]===a&&r[t][1]===0&&r[t][2]===0&&r[t][3]===o;case 2:if(n[t]!==85)return!1;let s=r[e.iCurr-1][0];return r[t][0]===s;case 3:return n[t]===11}throw Error(`iterateImageGroup - invalid pos: ${i}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-3,o=i-2,s=r[i-1][0],c=r[o][0],l=r[o][3],u=Math.min(Math.floor((t-a)/4),1e3);if(u<3)return t-(t-a)%4;let d=new Float32Array(2*u),f=o;for(let e=0;e<u;e++,f+=4){let t=r[f];d[e<<1]=t[4],d[1+(e<<1)]=t[5]}let p=[s,c,l,d];return n.splice(a,4*u,88),r.splice(a,4*u,p),a+1}),vn(yn,[31,37,42,44,32],null,function(e,t){let n=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return n[t]===31;case 1:return n[t]===37;case 2:return n[t]===42;case 3:if(n[t]!==44)return!1;let i=e.iCurr-3,a=r[i][0],o=r[i][1];return r[t][0]===a&&r[t][1]===o;case 4:return n[t]===32}throw Error(`iterateShowTextGroup - invalid pos: ${i}`)},function(e,t){let n=e.fnArray,r=e.argsArray,i=e.iCurr,a=i-4,o=i-3,s=i-2,c=i-1,l=i,u=r[o][0],d=r[o][1],f=Math.min(Math.floor((t-a)/5),1e3);if(f<3)return t-(t-a)%5;let p=a;a>=4&&n[a-4]===n[o]&&n[a-3]===n[s]&&n[a-2]===n[c]&&n[a-1]===n[l]&&r[a-4][0]===u&&r[a-4][1]===d&&(f++,p-=5);let m=p+4;for(let e=1;e<f;e++)n.splice(m,3),r.splice(m,3),m+=2;return m+1}),vn(yn,[10,12,91,11],e=>{let t=e.argsArray,n=t[e.iCurr-1][0];if(n!==20&&n!==21&&n!==24&&n!==25&&n!==26&&n!==27)return!0;let r=t[e.iCurr-2];return r[0]===1&&r[1]===0&&r[2]===0&&r[3]===1},()=>!1,(e,t)=>{let{fnArray:n,argsArray:r}=e,i=e.iCurr,a=i-3,o=i-2,s=r[i-1],c=r[o],[,[l],u]=s;if(u){M.scaleMinMax(c,u);for(let e=0,t=l.length;e<t;)switch(l[e++]){case 0:case 1:M.applyTransform(l,c,e),e+=2;break;case 2:M.applyTransformToBezier(l,c,e),e+=6}}return n.splice(a,4,91),r.splice(a,4,s),a+1});var bn=class{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}},xn=class extends bn{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:Sn.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let e=this.queue.fnArray,t=this.lastProcessed,n=e.length,r=this.state,i=this.match;if(!r&&!i&&t+1===n&&!yn[e[t]])return void(this.lastProcessed=n);let a=this.context;for(;t<n;){if(i){if((0,i.iterateFn)(a,t)){t++;continue}if(t=(0,i.processFn)(a,t+1),n=e.length,i=null,r=null,t>=n)break}r=(r||yn)[e[t]],r&&!Array.isArray(r)?(a.iCurr=t,t++,(!r.checkFn||(0,r.checkFn)(a))&&(i=r),r=null):t++}this.state=r,this.match=i,this.lastProcessed=t}flush(){for(;this.match;){let e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}},Sn=class e{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(e=0,t){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=!t||e&256?new bn(this):new xn(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:e}){this.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,n){this.optimizer.push(t,n),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===11||t===32))&&this.flush()}addImageOps(e,t,n,r=!1){r&&(this.addOp(10),this.addOp(9,[[[`SMask`,!1]]])),n!==void 0&&this.addOp(70,[`OC`,n]),this.addOp(e,t),n!==void 0&&this.addOp(71,[]),r&&this.addOp(11)}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(1,[e]))}addDependencies(e){for(let t of e)this.addDependency(t)}addOpList(t){if(t instanceof e){for(let e of t.dependencies)this.dependencies.add(e);for(let e=0,n=t.length;e<n;e++)this.addOp(t.fnArray[e],t.argsArray[e])}else m(`addOpList - ignoring invalid "opList" parameter.`)}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let e=[],{fnArray:t,argsArray:n,length:r}=this;for(let i=0;i<r;i++)switch(t[i]){case 86:case 87:case 83:{let{bitmap:t,data:r}=n[i][0];(t||r?.buffer)&&e.push(t||r.buffer);break}case 91:{let[,[t],r]=n[i];t&&e.push(t.buffer,r.buffer);break}case 74:let[t,r]=n[i];t&&e.push(t.buffer),r&&e.push(r.buffer);break;case 42:e.push(n[i][0].buffer)}return e}flush(e=!1,t=null){this.optimizer.flush();let n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}};function Cn(e,t){let n=0;for(let r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function wn(e,t){return t===1?String.fromCharCode(e[0],e[1]):t===3?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function Tn(e,t,n){let r=0;for(let i=n;i>=0;i--)r+=e[i]+t[i],e[i]=255&r,r>>=8}function En(e,t){let n=1;for(let r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}var Dn=class{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{let n=this.readByte();if(n<0)throw new w(`unexpected EOF in bcmap`);e=!(128&n),t=t<<7|127&n}while(!e);return t}readSigned(){let e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){let n,r=this.tmpBuf,i=0;do{let e=this.readByte();if(e<0)throw new w(`unexpected EOF in bcmap`);n=!(128&e),r[i++]=127&e}while(!n);let a=t,o=0,s=0;for(;a>=0;){for(;s<8&&r.length>0;)o|=r[--i]<<s,s+=7;e[a]=255&o,a--,o>>=8,s-=8}}readHexSigned(e,t){this.readHexNumber(e,t);let n=1&e[t]?255:0,r=0;for(let i=0;i<=t;i++)r=(1&r)<<8|e[i],e[i]=r>>1^n}readString(){let e=this.readNumber(),t=Array(e);for(let n=0;n<e;n++)t[n]=this.readNumber();return String.fromCharCode(...t)}},On=class{async process(e,t,n){let r=new Dn(e);t.vertical=!!(1&r.readByte());let i=null,a=new Uint8Array(16),o=new Uint8Array(16),s=new Uint8Array(16),c=new Uint8Array(16),l=new Uint8Array(16),u,d;for(;(d=r.readByte())>=0;){let e=d>>5;if(e===7){switch(31&d){case 0:r.readString();break;case 1:i=r.readString()}continue}let n=!!(16&d),f=15&d;if(f+1>16)throw Error(`BinaryCMapReader.process: Invalid dataSize.`);let p=r.readNumber();switch(e){case 0:r.readHex(a,f),r.readHexNumber(o,f),Tn(o,a,f),t.addCodespaceRange(f+1,Cn(a,f),Cn(o,f));for(let e=1;e<p;e++)En(o,f),r.readHexNumber(a,f),Tn(a,o,f),r.readHexNumber(o,f),Tn(o,a,f),t.addCodespaceRange(f+1,Cn(a,f),Cn(o,f));break;case 1:r.readHex(a,f),r.readHexNumber(o,f),Tn(o,a,f),r.readNumber();for(let e=1;e<p;e++)En(o,f),r.readHexNumber(a,f),Tn(a,o,f),r.readHexNumber(o,f),Tn(o,a,f),r.readNumber();break;case 2:r.readHex(s,f),u=r.readNumber(),t.mapOne(Cn(s,f),u);for(let e=1;e<p;e++)En(s,f),n||(r.readHexNumber(l,f),Tn(s,l,f)),u=r.readSigned()+(u+1),t.mapOne(Cn(s,f),u);break;case 3:r.readHex(a,f),r.readHexNumber(o,f),Tn(o,a,f),u=r.readNumber(),t.mapCidRange(Cn(a,f),Cn(o,f),u);for(let e=1;e<p;e++)En(o,f),n?a.set(o):(r.readHexNumber(a,f),Tn(a,o,f)),r.readHexNumber(o,f),Tn(o,a,f),u=r.readNumber(),t.mapCidRange(Cn(a,f),Cn(o,f),u);break;case 4:r.readHex(s,1),r.readHex(c,f),t.mapOne(Cn(s,1),wn(c,f));for(let e=1;e<p;e++)En(s,1),n||(r.readHexNumber(l,1),Tn(s,l,1)),En(c,f),r.readHexSigned(l,f),Tn(c,l,f),t.mapOne(Cn(s,1),wn(c,f));break;case 5:r.readHex(a,1),r.readHexNumber(o,1),Tn(o,a,1),r.readHex(c,f),t.mapBfRange(Cn(a,1),Cn(o,1),wn(c,f));for(let e=1;e<p;e++)En(o,1),n?a.set(o):(r.readHexNumber(a,1),Tn(a,o,1)),r.readHexNumber(o,1),Tn(o,a,1),r.readHex(c,f),t.mapBfRange(Cn(a,1),Cn(o,1),wn(c,f));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${e}`)}}return i?n(i):t}},kn=class extends Wt{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){let e=this.str,t=e.getByte();for(;Ve(t);)t=e.getByte();if(t===-1||t===126)return void(this.eof=!0);let n=this.bufferLength,r,i;if(t===122){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{let a=this.input;for(a[0]=t,i=1;i<5;++i){for(t=e.getByte();Ve(t);)t=e.getByte();if(a[i]=t,t===-1||t===126)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)a[i]=117;this.eof=!0}let o=0;for(i=0;i<5;++i)o=85*o+(a[i]-33);for(i=3;i>=0;--i)r[n+i]=255&o,o>>=8}}},An=class extends Wt{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){let e=this.str.getBytes(8e3);if(!e.length)return void(this.eof=!0);let t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit;for(let t of e){let e;if(t>=48&&t<=57)e=15&t;else{if(!(t>=65&&t<=70||t>=97&&t<=102)){if(t===62){this.eof=!0;break}continue}e=9+(15&t)}i<0?i=e:(n[r++]=i<<4|e,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}};const jn=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],Mn=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],Nn=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],Pn=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],Fn=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],In=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];var Ln=class{constructor(e,t={}){if(typeof e?.next!=`function`)throw Error(`CCITTFaxDecoder - invalid "source" parameter.`);let n;for(this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0,this.eoblock=t.EndOfBlock??!0,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;(n=this._lookBits(12))===0;)this._eatBits(1);n===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;let e=this.refLine,t=this.codingLine,n=this.columns,r,i,a,o,s;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let a,s,c;if(this.err=!1,this.nextLine2D){for(o=0;t[o]<n;++o)e[o]=t[o];for(e[o++]=n,e[o]=n,t[0]=0,this.codingPos=0,r=0,i=0;t[this.codingPos]<n;)switch(a=this._getTwoDimCode(),a){case 0:this._addPixels(e[r+1],i),e[r+1]<n&&(r+=2);break;case 1:if(a=s=0,i){do a+=c=this._getBlackCode();while(c>=64);do s+=c=this._getWhiteCode();while(c>=64)}else{do a+=c=this._getWhiteCode();while(c>=64);do s+=c=this._getBlackCode();while(c>=64)}for(this._addPixels(t[this.codingPos]+a,i),t[this.codingPos]<n&&this._addPixels(t[this.codingPos]+s,1^i);e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 7:if(this._addPixels(e[r]+3,i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 5:if(this._addPixels(e[r]+2,i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 3:if(this._addPixels(e[r]+1,i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 2:if(this._addPixels(e[r],i),i^=1,t[this.codingPos]<n)for(++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 8:if(this._addPixelsNeg(e[r]-3,i),i^=1,t[this.codingPos]<n)for(r>0?--r:++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 6:if(this._addPixelsNeg(e[r]-2,i),i^=1,t[this.codingPos]<n)for(r>0?--r:++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case 4:if(this._addPixelsNeg(e[r]-1,i),i^=1,t[this.codingPos]<n)for(r>0?--r:++r;e[r]<=t[this.codingPos]&&e[r]<n;)r+=2;break;case-1:this._addPixels(n,0),this.eof=!0;break;default:p(`bad 2d code`),this._addPixels(n,0),this.err=!0}}else for(t[0]=0,this.codingPos=0,i=0;t[this.codingPos]<n;){if(a=0,i)do a+=c=this._getBlackCode();while(c>=64);else do a+=c=this._getWhiteCode();while(c>=64);this._addPixels(t[this.codingPos]+a,i),i^=1}let l=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(a=this._lookBits(12),this.eoline)for(;a!==-1&&a!==1;)this._eatBits(1),a=this._lookBits(12);else for(;a===0;)this._eatBits(1),a=this._lookBits(12);a===1?(this._eatBits(12),l=!0):a===-1&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&l&&this.byteAlign){if(a=this._lookBits(12),a===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(o=0;o<4;++o)a=this._lookBits(12),a!==1&&p(`bad rtc code: `+a),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(a=this._lookBits(13),a===-1)return this.eof=!0,-1;if(a>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&a))}this.outputBits=t[0]>0?t[this.codingPos=0]:t[this.codingPos=1],this.row++}if(this.outputBits>=8)s=1&this.codingPos?0:255,this.outputBits-=8,this.outputBits===0&&t[this.codingPos]<n&&(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]);else{a=8,s=0;do{if(typeof this.outputBits!=`number`)throw new w(`Invalid /CCITTFaxDecode data, "outputBits" must be a number.`);this.outputBits>a?(s<<=a,1&this.codingPos||(s|=255>>8-a),this.outputBits-=a,a=0):(s<<=this.outputBits,1&this.codingPos||(s|=255>>8-this.outputBits),a-=this.outputBits,this.outputBits=0,t[this.codingPos]<n?(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]):a>0&&(s<<=a,a=0))}while(a)}return this.black&&(s^=255),s}_addPixels(e,t){let n=this.codingLine,r=this.codingPos;e>n[r]&&(e>this.columns&&(p(`row is wrong length`),this.err=!0,e=this.columns),1&r^t&&++r,n[r]=e),this.codingPos=r}_addPixelsNeg(e,t){let n=this.codingLine,r=this.codingPos;if(e>n[r])e>this.columns&&(p(`row is wrong length`),this.err=!0,e=this.columns),1&r^t&&++r,n[r]=e;else if(e<n[r]){for(e<0&&(p(`invalid code`),this.err=!0,e=0);r>0&&e<n[r-1];)--r;n[r]=e}this.codingPos=r}_findTableCode(e,t,n,r){let i=r||0;for(let r=e;r<=t;++r){let e=this._lookBits(r);if(e===-1)return[!0,1,!1];if(r<t&&(e<<=t-r),!i||e>=i){let t=n[e-i];if(t[0]===r)return this._eatBits(r),[!0,t[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(7),e=jn[t],e?.[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,7,jn);if(e[0]&&e[2])return e[1]}return p(`Bad two dim code`),-1}_getWhiteCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(12),t===-1)return 1;if(e=t>>5?Nn[t>>3]:Mn[t],e[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,Nn);if(e[0]||(e=this._findTableCode(11,12,Mn),e[0]))return e[1]}return p(`bad white code`),this._eatBits(1),1}_getBlackCode(){let e,t;if(this.eoblock){if(e=this._lookBits(13),e===-1)return 1;if(t=e>>7?!(e>>9)&&e>>7?Fn[(e>>1)-64]:In[e>>7]:Pn[e],t[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,In);if(e[0]||(e=this._findTableCode(7,12,Fn,64),e[0])||(e=this._findTableCode(10,13,Pn),e[0]))return e[1]}return p(`bad black code`),this._eatBits(1),1}_lookBits(e){let t;for(;this.inputBits<e;){if((t=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},Rn=class extends Wt{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,n instanceof L||(n=L.empty);let r={next:()=>e.getByte()};this.ccittFaxDecoder=new Ln(r,{K:n.get(`K`),EndOfLine:n.get(`EndOfLine`),EncodedByteAlign:n.get(`EncodedByteAlign`),Columns:n.get(`Columns`),Rows:n.get(`Rows`),EndOfBlock:n.get(`EndOfBlock`),BlackIs1:n.get(`BlackIs1`)})}readBlock(){for(;!this.eof;){let e=this.ccittFaxDecoder.readNextChar();if(e===-1)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}};const zn=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bn=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]),Vn=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]),Hn=[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],Un=[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];var Wn=class extends Wt{constructor(e,t){super(t),this.str=e,this.dict=e.dict;let n=e.getByte(),r=e.getByte();if(n===-1||r===-1)throw new w(`Invalid header in flate stream: ${n}, ${r}`);if((15&n)!=8)throw new w(`Unknown compression method in flate stream: ${n}, ${r}`);if(((n<<8)+r)%31!=0)throw new w(`Bad FCHECK in flate stream: ${n}, ${r}`);if(32&r)throw new w(`FDICT bit set in flate stream: ${n}, ${r}`);this.codeSize=0,this.codeBuf=0}async getImageData(e,t){let n=await this.asyncGetBytes();return n?n.length<=e?n:n.subarray(0,e):this.getBytes(e)}async asyncGetBytes(){this.str.reset();let e=this.str.getBytes();try{let{readable:t,writable:n}=new DecompressionStream(`deflate`),r=n.getWriter();await r.ready,r.write(e).then(async()=>{await r.ready,await r.close()}).catch(()=>{});let i=[],a=0;for await(let e of t)i.push(e),a+=e.byteLength;let o=new Uint8Array(a),s=0;for(let e of i)o.set(e,s),s+=e.byteLength;return o}catch{return this.str=new Ft(e,2,e.length,this.str.dict),this.reset(),null}}get isAsync(){return!0}getBits(e){let t=this.str,n,r=this.codeSize,i=this.codeBuf;for(;r<e;){if((n=t.getByte())===-1)throw new w(`Bad encoding in flate stream`);i|=n<<r,r+=8}return n=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=r-=e,n}getCode(e){let t=this.str,n=e[0],r=e[1],i,a=this.codeSize,o=this.codeBuf;for(;a<r&&(i=t.getByte())!==-1;)o|=i<<a,a+=8;let s=n[o&(1<<r)-1],c=s>>16,l=65535&s;if(c<1||a<c)throw new w(`Bad encoding in flate stream`);return this.codeBuf=o>>c,this.codeSize=a-c,l}generateHuffmanTable(e){let t=e.length,n,r=0;for(n=0;n<t;++n)e[n]>r&&(r=e[n]);let i=1<<r,a=new Int32Array(i);for(let o=1,s=0,c=2;o<=r;++o,s<<=1,c<<=1)for(let r=0;r<t;++r)if(e[r]===o){let e=0,t=s;for(n=0;n<o;++n)e=e<<1|1&t,t>>=1;for(n=e;n<i;n+=c)a[n]=o<<16|r;++s}return[a,r]}#e(e){p(e),this.eof=!0}readBlock(){let e,t,n,r=this.str;try{t=this.getBits(3)}catch(e){this.#e(e.message);return}if(1&t&&(this.eof=!0),t>>=1,t===0){let t;if((t=r.getByte())===-1)return void this.#e(`Bad block header in flate stream`);let n=t;if((t=r.getByte())===-1||(n|=t<<8,(t=r.getByte())===-1))return void this.#e(`Bad block header in flate stream`);let i=t;if((t=r.getByte())===-1)return void this.#e(`Bad block header in flate stream`);if(i|=t<<8,i!==(65535&~n)&&(n!==0||i!==0))throw new w(`Bad uncompressed block length in flate stream`);this.codeBuf=0,this.codeSize=0;let a=this.bufferLength,o=a+n;if(e=this.ensureBuffer(o),this.bufferLength=o,n===0)r.peekByte()===-1&&(this.eof=!0);else{let t=r.getBytes(n);e.set(t,a),t.length<n&&(this.eof=!0)}return}let i,a;if(t===1)i=Hn,a=Un;else{if(t!==2)throw new w(`Unknown block type in flate stream`);{let e=this.getBits(5)+257,t=this.getBits(5)+1,r=this.getBits(4)+4,o=new Uint8Array(zn.length),s;for(s=0;s<r;++s)o[zn[s]]=this.getBits(3);let c=this.generateHuffmanTable(o);n=0,s=0;let l=e+t,u=new Uint8Array(l),d,f,p;for(;s<l;){let e=this.getCode(c);if(e===16)d=2,f=3,p=n;else if(e===17)d=3,f=3,p=n=0;else{if(e!==18){u[s++]=n=e;continue}d=7,f=11,p=n=0}let t=this.getBits(d)+f;for(;t-- >0;)u[s++]=p}i=this.generateHuffmanTable(u.subarray(0,e)),a=this.generateHuffmanTable(u.subarray(e,l))}}e=this.buffer;let o=e?e.length:0,s=this.bufferLength;for(;;){let t=this.getCode(i);if(t<256){s+1>=o&&(e=this.ensureBuffer(s+1),o=e.length),e[s++]=t;continue}if(t===256)return void(this.bufferLength=s);t-=257,t=Bn[t];let r=t>>16;r>0&&(r=this.getBits(r)),n=(65535&t)+r,t=this.getCode(a),t=Vn[t],r=t>>16,r>0&&(r=this.getBits(r));let c=(65535&t)+r;s+n>=o&&(e=this.ensureBuffer(s+n),o=e.length);for(let t=0;t<n;++t,++s)e[s]=e[s-c]}}};const Gn=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];var Kn=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){let e=this.data,t=this.bp;e[t]===255?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let n=e[t]>>1,r=1&e[t],i=Gn[n],a=i.qe,o,s=this.a-a;if(this.chigh<a)s<a?(s=a,o=r,n=i.nmps):(s=a,o=1^r,i.switchFlag===1&&(r=o),n=i.nlps);else{if(this.chigh-=a,32768&s)return this.a=s,r;s<a?(o=1^r,i.switchFlag===1&&(r=o),n=i.nlps):(o=r,n=i.nmps)}do this.ct===0&&this.byteIn(),s<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(32768&s));return this.a=s,e[t]=n<<1|r,o}},qn=class extends y{constructor(e){super(e,`Jbig2Error`)}},Jn=class{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},Yn=class{constructor(e,t,n){this.data=e,this.start=t,this.end=n}get decoder(){return v(this,`decoder`,new Kn(this.data,this.start,this.end))}get contextCache(){return v(this,`contextCache`,new Jn)}};function Xn(e,t,n){let r=e.getContexts(t),i=1;function a(e){let t=0;for(let a=0;a<e;a++){let e=n.readBit(r,i);i=i<256?i<<1|e:511&(i<<1|e)|256,t=t<<1|e}return t>>>0}let o=a(1),s=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2),c;return o===0?c=s:s>0&&(c=-s),c>=-2147483648&&c<=Se?c:null}function Zn(e,t,n){let r=e.getContexts(`IAID`),i=1;for(let e=0;e<n;e++)i=i<<1|t.readBit(r,i);return n<31?i&(1<<n)-1:2147483647&i}const Qn=[`SymbolDictionary`,null,null,null,`IntermediateTextRegion`,null,`ImmediateTextRegion`,`ImmediateLosslessTextRegion`,null,null,null,null,null,null,null,null,`PatternDictionary`,null,null,null,`IntermediateHalftoneRegion`,null,`ImmediateHalftoneRegion`,`ImmediateLosslessHalftoneRegion`,null,null,null,null,null,null,null,null,null,null,null,null,`IntermediateGenericRegion`,null,`ImmediateGenericRegion`,`ImmediateLosslessGenericRegion`,`IntermediateGenericRefinementRegion`,null,`ImmediateGenericRefinementRegion`,`ImmediateLosslessGenericRefinementRegion`,null,null,null,null,`PageInformation`,`EndOfPage`,`EndOfStripe`,`EndOfFile`,`Profiles`,`Tables`,null,null,null,null,null,null,null,null,`Extension`],$n=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],er=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],tr=[39717,1941,229,405];function nr(e,t,n,r,i,a,o,s){if(e)return br(new _r(s.data,s.start,s.end),t,n,!1);if(r===0&&!i&&o.length===4&&o[0].x===3&&o[0].y===-1&&o[1].x===-3&&o[1].y===-1&&o[2].x===2&&o[2].y===-2&&o[3].x===-2&&o[3].y===-2)return function(e,t,n){let r=n.decoder,i=n.contextCache.getContexts(`GB`),a=[],o,s,c,l,u,d,f;for(s=0;s<t;s++)for(u=a[s]=new Uint8Array(e),d=s<1?u:a[s-1],f=s<2?u:a[s-2],o=f[0]<<13|f[1]<<12|f[2]<<11|d[0]<<7|d[1]<<6|d[2]<<5|d[3]<<4,c=0;c<e;c++)u[c]=l=r.readBit(i,o),o=(31735&o)<<1|(c+3<e?f[c+3]<<11:0)|(c+4<e?d[c+4]<<4:0)|l;return a}(t,n,s);let c=$n[r].concat(o);c.sort((e,t)=>e.y-t.y||e.x-t.x);let l=c.length,u=new Int8Array(l),d=new Int8Array(l),f=[],p,m,h=0,g=0,_=0,v=0;for(m=0;m<l;m++)u[m]=c[m].x,d[m]=c[m].y,g=Math.min(g,c[m].x),_=Math.max(_,c[m].x),v=Math.min(v,c[m].y),m<l-1&&c[m].y===c[m+1].y&&c[m].x===c[m+1].x-1?h|=1<<l-1-m:f.push(m);let y=f.length,b=new Int8Array(y),x=new Int8Array(y),S=new Uint16Array(y);for(p=0;p<y;p++)m=f[p],b[p]=c[m].x,x[p]=c[m].y,S[p]=1<<l-1-m;let C=-g,w=-v,T=t-_,E=tr[r],D=new Uint8Array(t),O=[],k=s.decoder,A=s.contextCache.getContexts(`GB`),j,M,N,P,F,ee=0,te=0;for(let e=0;e<n;e++){if(i&&(ee^=k.readBit(A,E),ee)){O.push(D);continue}for(D=new Uint8Array(D),O.push(D),j=0;j<t;j++){if(j>=C&&j<T&&e>=w)for(te=te<<1&h,m=0;m<y;m++)M=e+x[m],N=j+b[m],P=O[M][N],P&&(P=S[m],te|=P);else for(te=0,F=l-1,m=0;m<l;m++,F--)N=j+u[m],N>=0&&N<t&&(M=e+d[m],M>=0&&(P=O[M][N],P&&(te|=P<<F)));let n=k.readBit(A,te);D[j]=n}}return O}function rr(e,t,n,r,i,a,o,s,c){let l=er[n].coding;n===0&&(l=l.concat([s[0]]));let u=l.length,d=new Int32Array(u),f=new Int32Array(u),p;for(p=0;p<u;p++)d[p]=l[p].x,f[p]=l[p].y;let m=er[n].reference;n===0&&(m=m.concat([s[1]]));let h=m.length,g=new Int32Array(h),_=new Int32Array(h);for(p=0;p<h;p++)g[p]=m[p].x,_[p]=m[p].y;let v=r[0].length,y=r.length,b=[],x=c.decoder,S=c.contextCache.getContexts(`GR`);for(let n=0;n<t;n++){let t=new Uint8Array(e);b.push(t);for(let o=0;o<e;o++){let s,c,l=0;for(p=0;p<u;p++)s=n+f[p],c=o+d[p],s<0||c<0||c>=e?l<<=1:l=l<<1|b[s][c];for(p=0;p<h;p++)s=n+_[p]-a,c=o+g[p]-i,s<0||s>=y||c<0||c>=v?l<<=1:l=l<<1|r[s][c];t[o]=x.readBit(S,l)}}return b}function ir(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){if(e&&t)throw new qn(`refinement with Huffman is not supported`);let y=[],b,x;for(b=0;b<r;b++)x=new Uint8Array(n),i&&x.fill(i),y.push(x);let S=g.decoder,C=g.contextCache,w=e?-p.tableDeltaT.decode(v):-Xn(C,`IADT`,S),T=0;for(b=0;b<a;){w+=e?p.tableDeltaT.decode(v):Xn(C,`IADT`,S),T+=e?p.tableFirstS.decode(v):Xn(C,`IAFS`,S);let r=T;for(;;){let i=0;o>1&&(i=e?v.readBits(_):Xn(C,`IAIT`,S));let a=o*w+i,T=e?p.symbolIDTable.decode(v):Zn(C,S,c),E=t&&(e?v.readBit():Xn(C,`IARI`,S)),D=s[T],O=D[0].length,k=D.length;if(E){let e=Xn(C,`IARDW`,S),t=Xn(C,`IARDH`,S);O+=e,k+=t,D=rr(O,k,m,D,(e>>1)+Xn(C,`IARDX`,S),(t>>1)+Xn(C,`IARDY`,S),0,h,g)}let A=0;l?1&d?A=k-1:r+=k-1:d>1?r+=O-1:A=O-1;let j=a-(1&d?0:k-1),M=r-(2&d?O-1:0),N,P,F;if(l)for(N=0;N<k;N++){if(x=y[M+N],!x)continue;F=D[N];let e=Math.min(n-j,O);switch(f){case 0:for(P=0;P<e;P++)x[j+P]|=F[P];break;case 2:for(P=0;P<e;P++)x[j+P]^=F[P];break;default:throw new qn(`operator ${f} is not supported`)}}else for(P=0;P<k;P++)if(x=y[j+P],x)switch(F=D[P],f){case 0:for(N=0;N<O;N++)x[M+N]|=F[N];break;case 2:for(N=0;N<O;N++)x[M+N]^=F[N];break;default:throw new qn(`operator ${f} is not supported`)}b++;let ee=e?p.tableDeltaS.decode(v):Xn(C,`IADS`,S);if(ee===null)break;r+=A+ee+u}}return y}function ar(e,t){let n={};n.number=Be(e,t);let r=e[t+4],i=63&r;if(!Qn[i])throw new qn(`invalid segment type: `+i);n.type=i,n.typeName=Qn[i],n.deferredNonRetain=!!(128&r);let a=!!(64&r),o=e[t+5],s=o>>5&7,c=[31&o],l=t+6;if(o===7){s=536870911&Be(e,l-1),l+=3;let t=s+7>>3;for(c[0]=e[l++];--t>0;)c.push(e[l++])}else if(o===5||o===6)throw new qn(`invalid referred-to flags`);n.retainBits=c;let u=4;n.number<=256?u=1:n.number<=65536&&(u=2);let d=[],f,p;for(f=0;f<s;f++){let t;t=u===1?e[l]:u===2?ze(e,l):Be(e,l),d.push(t),l+=u}if(n.referredTo=d,a?(n.pageAssociation=Be(e,l),l+=4):n.pageAssociation=e[l++],n.length=Be(e,l),l+=4,n.length===4294967295){if(i!==38)throw new qn(`invalid unknown segment length`);{let t=sr(e,l),r=!!(1&e[l+cr]),i=new Uint8Array(6);for(r||(i[0]=255,i[1]=172),i[2]=t.height>>>24&255,i[3]=t.height>>16&255,i[4]=t.height>>8&255,i[5]=255&t.height,f=l,p=e.length;f<p;f++){let t=0;for(;t<6&&i[t]===e[f+t];)t++;if(t===6){n.length=f+6;break}}if(n.length===4294967295)throw new qn(`segment end was not found`)}}return n.headerEnd=l,n}function or(e,t,n,r){let i=[],a=n;for(;a<r;){let n=ar(t,a);a=n.headerEnd;let r={header:n,data:t};if(e.randomAccess||(r.start=a,a+=n.length,r.end=a),i.push(r),n.type===51)break}if(e.randomAccess)for(let e=0,t=i.length;e<t;e++)i[e].start=a,a+=i[e].header.length,i[e].end=a;return i}function sr(e,t){return{width:Be(e,t),height:Be(e,t+4),x:Be(e,t+8),y:Be(e,t+12),combinationOperator:7&e[t+16]}}const cr=17;function lr(e,t){let n=e.header,r=e.data,i=e.end,a,o,s,c,l=e.start;switch(n.type){case 0:let e={},t=ze(r,l);if(e.huffman=!!(1&t),e.refinement=!!(2&t),e.huffmanDHSelector=t>>2&3,e.huffmanDWSelector=t>>4&3,e.bitmapSizeSelector=t>>6&1,e.aggregationInstancesSelector=t>>7&1,e.bitmapCodingContextUsed=!!(256&t),e.bitmapCodingContextRetained=!!(512&t),e.template=t>>10&3,e.refinementTemplate=t>>12&1,l+=2,!e.huffman){for(c=e.template===0?4:1,o=[],s=0;s<c;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;e.at=o}if(e.refinement&&!e.refinementTemplate){for(o=[],s=0;s<2;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;e.refinementAt=o}e.numberOfExportedSymbols=Be(r,l),l+=4,e.numberOfNewSymbols=Be(r,l),l+=4,a=[e,n.number,n.referredTo,r,l,i];break;case 6:case 7:let u={};u.info=sr(r,l),l+=17;let d=ze(r,l);if(l+=2,u.huffman=!!(1&d),u.refinement=!!(2&d),u.logStripSize=d>>2&3,u.stripSize=1<<u.logStripSize,u.referenceCorner=d>>4&3,u.transposed=!!(64&d),u.combinationOperator=d>>7&3,u.defaultPixelValue=d>>9&1,u.dsOffset=d<<17>>27,u.refinementTemplate=d>>15&1,u.huffman){let e=ze(r,l);l+=2,u.huffmanFS=3&e,u.huffmanDS=e>>2&3,u.huffmanDT=e>>4&3,u.huffmanRefinementDW=e>>6&3,u.huffmanRefinementDH=e>>8&3,u.huffmanRefinementDX=e>>10&3,u.huffmanRefinementDY=e>>12&3,u.huffmanRefinementSizeSelector=!!(16384&e)}if(u.refinement&&!u.refinementTemplate){for(o=[],s=0;s<2;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;u.refinementAt=o}u.numberOfSymbolInstances=Be(r,l),l+=4,a=[u,n.referredTo,r,l,i];break;case 16:let f={},p=r[l++];f.mmr=!!(1&p),f.template=p>>1&3,f.patternWidth=r[l++],f.patternHeight=r[l++],f.maxPatternIndex=Be(r,l),l+=4,a=[f,n.number,r,l,i];break;case 22:case 23:let m={};m.info=sr(r,l),l+=17;let h=r[l++];m.mmr=!!(1&h),m.template=h>>1&3,m.enableSkip=!!(8&h),m.combinationOperator=h>>4&7,m.defaultPixelValue=h>>7&1,m.gridWidth=Be(r,l),l+=4,m.gridHeight=Be(r,l),l+=4,m.gridOffsetX=4294967295&Be(r,l),l+=4,m.gridOffsetY=4294967295&Be(r,l),l+=4,m.gridVectorX=ze(r,l),l+=2,m.gridVectorY=ze(r,l),l+=2,a=[m,n.referredTo,r,l,i];break;case 38:case 39:let g={};g.info=sr(r,l),l+=17;let _=r[l++];if(g.mmr=!!(1&_),g.template=_>>1&3,g.prediction=!!(8&_),!g.mmr){for(c=g.template===0?4:1,o=[],s=0;s<c;s++)o.push({x:Le(r,l),y:Le(r,l+1)}),l+=2;g.at=o}a=[g,r,l,i];break;case 48:let v={width:Be(r,l),height:Be(r,l+4),resolutionX:Be(r,l+8),resolutionY:Be(r,l+12)};v.height===4294967295&&delete v.height;let y=r[l+16];ze(r,l+17),v.lossless=!!(1&y),v.refinement=!!(2&y),v.defaultPixelValue=y>>2&1,v.combinationOperator=y>>3&3,v.requiresBuffer=!!(32&y),v.combinationOperatorOverride=!!(64&y),a=[v];break;case 49:case 50:case 51:case 62:break;case 53:a=[n.number,r,l,i];break;default:throw new qn(`segment type ${n.typeName}(${n.type}) is not implemented`)}let u=`on`+n.typeName;u in t&&t[u].apply(t,a)}function ur(e,t){for(let n=0,r=e.length;n<r;n++)lr(e[n],t)}var dr=class{onPageInformation(e){this.currentPageInfo=e;let t=e.width+7>>3,n=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&n.fill(255),this.buffer=n}drawBitmap(e,t){let n=this.currentPageInfo,r=e.width,i=e.height,a=n.width+7>>3,o=n.combinationOperatorOverride?e.combinationOperator:n.combinationOperator,s=this.buffer,c=128>>(7&e.x),l,u,d,f,p=e.y*a+(e.x>>3);switch(o){case 0:for(l=0;l<i;l++){for(d=c,f=p,u=0;u<r;u++)t[l][u]&&(s[f]|=d),d>>=1,d||(d=128,f++);p+=a}break;case 2:for(l=0;l<i;l++){for(d=c,f=p,u=0;u<r;u++)t[l][u]&&(s[f]^=d),d>>=1,d||(d=128,f++);p+=a}break;default:throw new qn(`operator ${o} is not supported`)}}onImmediateGenericRegion(e,t,n,r){let i=e.info,a=new Yn(t,n,r),o=nr(e.mmr,i.width,i.height,e.template,e.prediction,0,e.at,a);this.drawBitmap(i,o)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,n,r,i,a){let o,s;e.huffman&&(o=function(e,t,n){let r,i,a,o,s=0;switch(e.huffmanDHSelector){case 0:case 1:r=gr(e.huffmanDHSelector+4);break;case 3:r=vr(s,t,n),s++;break;default:throw new qn(`invalid Huffman DH selector`)}switch(e.huffmanDWSelector){case 0:case 1:i=gr(e.huffmanDWSelector+2);break;case 3:i=vr(s,t,n),s++;break;default:throw new qn(`invalid Huffman DW selector`)}return e.bitmapSizeSelector?(a=vr(s,t,n),s++):a=gr(1),o=e.aggregationInstancesSelector?vr(s,t,n):gr(1),{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:a,tableAggregateInstances:o}}(e,n,this.customTables),s=new _r(r,i,a));let c=this.symbols;c||(this.symbols=c={});let l=[];for(let e of n){let t=c[e];t&&l.push(...t)}let u=new Yn(r,i,a);c[t]=function(e,t,n,r,i,a,o,s,c,l,u,d){if(e&&t)throw new qn(`symbol refinement with Huffman is not supported`);let f=[],p=0,m=Ie(n.length+r),h=u.decoder,g=u.contextCache,_,v;for(e&&(_=gr(1),v=[],m=Math.max(m,1));f.length<r;){p+=e?a.tableDeltaHeight.decode(d):Xn(g,`IADH`,h);let r=0,i=0,_=e?v.length:0;for(;;){let _=e?a.tableDeltaWidth.decode(d):Xn(g,`IADW`,h);if(_===null)break;let y;if(r+=_,i+=r,t){let i=Xn(g,`IAAI`,h);if(i>1)y=ir(e,t,r,p,0,i,1,n.concat(f),m,0,0,1,0,a,c,l,u,0,d);else{let e=Zn(g,h,m),t=Xn(g,`IARDX`,h),i=Xn(g,`IARDY`,h);y=rr(r,p,c,e<n.length?n[e]:f[e-n.length],t,i,0,l,u)}f.push(y)}else e?v.push(r):(y=nr(!1,r,p,o,!1,0,s,u),f.push(y))}if(e&&!t){let e=a.tableBitmapSize.decode(d),t;if(d.byteAlign(),e===0)t=yr(d,i,p);else{let n=d.end,r=d.position+e;d.end=r,t=br(d,i,p,!1),d.end=n,d.position=r}let n=v.length;if(_===n-1)f.push(t);else{let e,r,i,a,o,s=0;for(e=_;e<n;e++){for(a=v[e],i=s+a,o=[],r=0;r<p;r++)o.push(t[r].subarray(s,i));f.push(o),s=i}}}}let y=[],b=[],x,S,C=!1,w=n.length+r;for(;b.length<w;){let t=e?_.decode(d):Xn(g,`IAEX`,h);for(;t--;)b.push(C);C=!C}for(x=0,S=n.length;x<S;x++)b[x]&&y.push(n[x]);for(let e=0;e<r;x++,e++)b[x]&&y.push(f[e]);return y}(e.huffman,e.refinement,l,e.numberOfNewSymbols,e.numberOfExportedSymbols,o,e.template,e.at,e.refinementTemplate,e.refinementAt,u,s)}onImmediateTextRegion(e,t,n,r,i){let a=e.info,o,s,c=this.symbols,l=[];for(let e of t){let t=c[e];t&&l.push(...t)}let u=Ie(l.length);e.huffman&&(s=new _r(n,r,i),o=function(e,t,n,r,i){let a=[];for(let e=0;e<=34;e++){let t=i.readBits(4);a.push(new fr([e,t,0,0]))}let o=new mr(a,!1);a.length=0;for(let e=0;e<r;){let t=o.decode(i);if(t>=32){let n,r,o;switch(t){case 32:if(e===0)throw new qn(`no previous value in symbol ID table`);r=i.readBits(2)+3,n=a[e-1].prefixLength;break;case 33:r=i.readBits(3)+3,n=0;break;case 34:r=i.readBits(7)+11,n=0;break;default:throw new qn(`invalid code length in symbol ID table`)}for(o=0;o<r;o++)a.push(new fr([e,n,0,0])),e++}else a.push(new fr([e,t,0,0])),e++}i.byteAlign();let s=new mr(a,!1),c,l,u,d=0;switch(e.huffmanFS){case 0:case 1:c=gr(e.huffmanFS+6);break;case 3:c=vr(d,t,n),d++;break;default:throw new qn(`invalid Huffman FS selector`)}switch(e.huffmanDS){case 0:case 1:case 2:l=gr(e.huffmanDS+8);break;case 3:l=vr(d,t,n),d++;break;default:throw new qn(`invalid Huffman DS selector`)}switch(e.huffmanDT){case 0:case 1:case 2:u=gr(e.huffmanDT+11);break;case 3:u=vr(d,t,n),d++;break;default:throw new qn(`invalid Huffman DT selector`)}if(e.refinement)throw new qn(`refinement with Huffman is not supported`);return{symbolIDTable:s,tableFirstS:c,tableDeltaS:l,tableDeltaT:u}}(e,t,this.customTables,l.length,s));let d=new Yn(n,r,i),f=ir(e.huffman,e.refinement,a.width,a.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,l,u,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,o,e.refinementTemplate,e.refinementAt,d,e.logStripSize,s);this.drawBitmap(a,f)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,n,r,i){let a=this.patterns;a||(this.patterns=a={});let o=new Yn(n,r,i);a[t]=function(e,t,n,r,i,a){let o=[];e||(o.push({x:-t,y:0}),i===0&&o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let s=nr(e,(r+1)*t,n,i,!1,0,o,a),c=[];for(let e=0;e<=r;e++){let r=[],i=t*e,a=i+t;for(let e=0;e<n;e++)r.push(s[e].subarray(i,a));c.push(r)}return c}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,o)}onImmediateHalftoneRegion(e,t,n,r,i){let a=this.patterns[t[0]],o=e.info,s=new Yn(n,r,i),c=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){if(o)throw new qn(`skip is not supported`);if(s!==0)throw new qn(`operator "${s}" is not supported in halftone region`);let h=[],g,_,v;for(g=0;g<i;g++)v=new Uint8Array(r),a&&v.fill(a),h.push(v);let y=t.length,b=t[0],x=b[0].length,S=b.length,C=Ie(y),w=[];e||(w.push({x:n<=1?3:2,y:-1}),n===0&&w.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let T=[],E,D,O,k,A,j,M,N,P,F,ee;for(e&&(E=new _r(m.data,m.start,m.end)),g=C-1;g>=0;g--)D=e?br(E,c,l,!0):nr(!1,c,l,n,!1,0,w,m),T[g]=D;for(O=0;O<l;O++)for(k=0;k<c;k++){for(A=0,j=0,_=C-1;_>=0;_--)A^=T[_][O][k],j|=A<<_;if(M=t[j],N=u+O*p+k*f>>8,P=d+O*f-k*p>>8,N>=0&&N+x<=r&&P>=0&&P+S<=i)for(g=0;g<S;g++)for(ee=h[P+g],F=M[g],_=0;_<x;_++)ee[N+_]|=F[_];else{let e,t;for(g=0;g<S;g++)if(t=P+g,!(t<0||t>=i))for(ee=h[t],F=M[g],_=0;_<x;_++)e=N+_,e>=0&&e<r&&(ee[e]|=F[_])}}return h}(e.mmr,a,e.template,o.width,o.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,s);this.drawBitmap(o,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,n,r){let i=this.customTables;i||(this.customTables=i={}),i[e]=function(e,t,n){let r=e[t],i=4294967295&Be(e,t+1),a=4294967295&Be(e,t+5),o=new _r(e,t+9,n),s=1+(r>>1&7),c=1+(r>>4&7),l=[],u,d,f=i;do u=o.readBits(s),d=o.readBits(c),l.push(new fr([f,u,d,0])),f+=1<<d;while(f<a);return u=o.readBits(s),l.push(new fr([i-1,u,32,0,`lower`])),u=o.readBits(s),l.push(new fr([a,u,32,0])),1&r&&(u=o.readBits(s),l.push(new fr([u,0]))),new mr(l,!1)}(t,n,r)}},fr=class{constructor(e){e.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange=e[4]===`lower`)}},pr=class e{constructor(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}buildTree(t,n){let r=t.prefixCode>>n&1;if(n<=0)this.children[r]=new e(t);else{let i=this.children[r];i||(this.children[r]=i=new e(null)),i.buildTree(t,n-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;let t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}let t=this.children[e.readBit()];if(!t)throw new qn(`invalid Huffman data`);return t.decodeNode(e)}},mr=class{constructor(e,t){t||this.assignPrefixCodes(e),this.rootNode=new pr(null);for(let t=0,n=e.length;t<n;t++){let n=e[t];n.prefixLength>0&&this.rootNode.buildTree(n,n.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){let t=e.length,n=0;for(let r=0;r<t;r++)n=Math.max(n,e[r].prefixLength);let r=new Uint32Array(n+1);for(let n=0;n<t;n++)r[e[n].prefixLength]++;let i,a,o,s=1,c=0;for(r[0]=0;s<=n;){for(c=c+r[s-1]<<1,i=c,a=0;a<t;)o=e[a],o.prefixLength===s&&(o.prefixCode=i,i++),a++;s++}}};const hr={};function gr(e){let t,n=hr[e];if(n)return n;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,`lower`],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,`lower`],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,`lower`],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,`lower`],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,`lower`],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,`lower`],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,`lower`],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,`lower`],[25,7,32,127]];break;default:throw new qn(`standard table B.${e} does not exist`)}for(let e=0,n=t.length;e<n;e++)t[e]=new fr(t[e]);return n=new mr(t,!0),hr[e]=n,n}var _r=class{constructor(e,t,n){this.data=e,this.start=t,this.end=n,this.position=t,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new qn(`end of data while reading bit`);this.currentByte=this.data[this.position++],this.shift=7}let e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<<t;return n}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}};function vr(e,t,n){let r=0;for(let i=0,a=t.length;i<a;i++){let a=n[t[i]];if(a){if(e===r)return a;r++}}throw new qn(`can't find custom Huffman table`)}function yr(e,t,n){let r=[];for(let i=0;i<n;i++){let n=new Uint8Array(t);r.push(n);for(let r=0;r<t;r++)n[r]=e.readBit();e.byteAlign()}return r}function br(e,t,n,r){let i=new Ln(e,{K:-1,Columns:t,Rows:n,BlackIs1:!0,EndOfBlock:r}),a=[],o,s=!1;for(let e=0;e<n;e++){let e=new Uint8Array(t);a.push(e);let n=-1;for(let r=0;r<t;r++)n<0&&(o=i.readNextChar(),o===-1&&(o=0,s=!0),n=7),e[r]=o>>n&1,n--}if(r&&!s)for(let e=0;e<5&&i.readNextChar()!==-1;e++);return a}var xr=class{parseChunks(e){return function(e){let t=new dr;for(let n=0,r=e.length;n<r;n++){let r=e[n];ur(or({},r.data,r.start,r.end),t)}return t.buffer}(e)}parse(e){throw Error(`Not implemented: Jbig2Image.parse`)}},Sr=class extends Wt{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return v(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){this.decodeImage()}decodeImage(e){if(this.eof)return this.buffer;e||=this.bytes;let t=new xr,n=[];if(this.params instanceof L){let e=this.params.get(`JBIG2Globals`);if(e instanceof be){let t=e.getBytes();n.push({data:t,start:0,end:t.length})}}n.push({data:e,start:0,end:e.length});let r=t.parseChunks(n),i=r.length;for(let e=0;e<i;e++)r[e]^=255;return this.buffer=r,this.bufferLength=i,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}},Cr=class extends Wt{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return v(this,`bytes`,this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(e){h(`JpxStream.readBlock`)}get isAsyncDecoder(){return!0}async decodeImage(e,t){return this.eof||=(e||=this.bytes,this.buffer=await _n.decode(e,t),this.bufferLength=this.buffer.length,!0),this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}},wr=class extends Wt{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;let r=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e)i.dictionaryValues[e]=e,i.dictionaryLengths[e]=1;this.lzwState=i}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t<e;){let e=this.str.getByte();if(e===-1)return this.eof=!0,null;n=n<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=n,this.lastCode=null,n>>>t&(1<<e)-1}readBlock(){let e,t,n,r=1024,i=this.lzwState;if(!i)return;let a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes,u=i.codeLength,d=i.prevCode,f=i.currentSequence,p=i.currentSequenceLength,m=0,h=this.bufferLength,g=this.ensureBuffer(this.bufferLength+r);for(e=0;e<512;e++){let e=this.readBits(u),i=p>0;if(e<256)f[0]=e,p=1;else{if(!(e>=258)){if(e===256){u=9,o=258,p=0;continue}this.eof=!0,delete this.lzwState;break}if(e<o)for(p=c[e],t=p-1,n=e;t>=0;t--)f[t]=s[n],n=l[n];else f[p++]=f[0]}if(i&&(l[o]=d,c[o]=c[d]+1,s[o]=f[0],o++,u=o+a&o+a-1?u:0|Math.min(Math.log(o+a)/.6931471805599453+1,12)),d=e,m+=p,r<m){do r+=512;while(r<m);g=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<p;t++)g[h++]=f[t]}i.nextCode=o,i.codeLength=u,i.prevCode=d,i.currentSequenceLength=p,this.bufferLength=h}},Tr=class extends Wt{constructor(e,t,n){if(super(t),!(n instanceof L))return e;let r=this.predictor=n.get(`Predictor`)||1;if(r<=1)return e;if(r!==2&&(r<10||r>15))throw new w(`Unsupported predictor: ${r}`);this.readBlock=r===2?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;let i=this.colors=n.get(`Colors`)||1,a=this.bits=n.get(`BPC`,`BitsPerComponent`)||8,o=this.columns=n.get(`Columns`)||1;return this.pixBytes=i*a+7>>3,this.rowBytes=o*i*a+7>>3,this}readBlockTiff(){let e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,i=this.colors,a=this.str.getBytes(e);if(this.eof=!a.length,this.eof)return;let o,s=0,c=0,l=0,u=0,d=t;if(r===1&&i===1)for(o=0;o<e;++o){let e=a[o]^s;e^=e>>1,e^=e>>2,e^=e>>4,s=(1&e)<<7,n[d++]=e}else if(r===8){for(o=0;o<i;++o)n[d++]=a[o];for(;o<e;++o)n[d]=n[d-i]+a[o],d++}else if(r===16){let t=2*i;for(o=0;o<t;++o)n[d++]=a[o];for(;o<e;o+=2){let e=((255&a[o])<<8)+(255&a[o+1])+((255&n[d-t])<<8)+(255&n[d-t+1]);n[d++]=e>>8&255,n[d++]=255&e}}else{let e=new Uint8Array(i+1),d=(1<<r)-1,f=0,p=t,m=this.columns;for(o=0;o<m;++o)for(let t=0;t<i;++t)l<r&&(s=s<<8|255&a[f++],l+=8),e[t]=e[t]+(s>>l-r)&d,l-=r,c=c<<r|e[t],u+=r,u>=8&&(n[p++]=c>>u-8&255,u-=8);u>0&&(n[p++]=(c<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}readBlockPng(){let e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),r=this.str.getBytes(e);if(this.eof=!r.length,this.eof)return;let i=this.bufferLength,a=this.ensureBuffer(i+e),o=a.subarray(i-e,i);o.length===0&&(o=new Uint8Array(e));let s,c,l,u=i;switch(n){case 0:for(s=0;s<e;++s)a[u++]=r[s];break;case 1:for(s=0;s<t;++s)a[u++]=r[s];for(;s<e;++s)a[u]=a[u-t]+r[s]&255,u++;break;case 2:for(s=0;s<e;++s)a[u++]=o[s]+r[s]&255;break;case 3:for(s=0;s<t;++s)a[u++]=(o[s]>>1)+r[s];for(;s<e;++s)a[u]=(o[s]+a[u-t]>>1)+r[s]&255,u++;break;case 4:for(s=0;s<t;++s)c=o[s],l=r[s],a[u++]=c+l;for(;s<e;++s){c=o[s];let e=o[s-t],n=a[u-t],i=n+c-e,d=i-n;d<0&&(d=-d);let f=i-c;f<0&&(f=-f);let p=i-e;p<0&&(p=-p),l=r[s],a[u++]=d<=f&&d<=p?n+l:f<=p?c+l:e+l}break;default:throw new w(`Unsupported predictor: ${n}`)}this.bufferLength+=e}},Er=class extends Wt{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){let e=this.str.getBytes(2);if(!e||e.length<2||e[0]===128)return void(this.eof=!0);let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){let e=this.str.getBytes(r);t.set(e,n),n+=r}}else r=257-r,t=this.ensureBuffer(n+r+1),t.fill(e[1],n,n+r),n+=r;this.bufferLength=n}},Dr=class{constructor({lexer:e,xref:t,allowStreams:n=!1,recoveryMode:r=!1}){this.lexer=e,this.xref=t,this.allowStreams=n,this.recoveryMode=r,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof fe&&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(e){if(e instanceof De)throw e;return!1}}getObj(e=null){let t=this.buf1;if(this.shift(),t instanceof fe)switch(t.cmd){case`BI`:return this.makeInlineImage(e);case`[`:let n=[];for(;!_e(this.buf1,`]`)&&this.buf1!==ce;)n.push(this.getObj(e));if(this.buf1===ce){if(this.recoveryMode)return n;throw new Oe(`End of file inside array.`)}return this.shift(),n;case`<<`:let r=new L(this.xref);for(;!_e(this.buf1,`>>`)&&this.buf1!==ce;){if(!(this.buf1 instanceof I)){p(`Malformed dictionary: key must be a name object`),this.shift();continue}let t=this.buf1.name;if(this.shift(),this.buf1===ce)break;r.set(t,this.getObj(e))}if(this.buf1===ce){if(this.recoveryMode)return r;throw new Oe(`End of file inside dictionary.`)}return _e(this.buf2,`stream`)?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&_e(this.buf2,`R`)){let e=R.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return typeof t==`string`&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){let{knownCommands:t}=this.lexer,n=e.pos,r,i,a=0;for(;(r=e.getByte())!==-1;)if(a===0)a=+(r===69);else if(a===1)a=r===73?2:0;else if(r===32||r===10||r===13){i=e.pos;let n=e.peekBytes(15),o=n.length;if(o===0)break;for(let e=0;e<o;e++)if(r=n[e],(r!==0||n[e+1]===0)&&r!==10&&r!==13&&(r<32||r>127)){a=0;break}if(a!==2)continue;if(!t){m("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let s=new Ar(new Ft(e.peekBytes(75)),t);s._hexStringWarn=()=>{};let c=0;for(;;){let e=s.getObj();if(e===ce){a=0;break}if(e instanceof fe){let n=t[e.cmd];if(!n){a=0;break}if(n.variableArgs?c<=n.numArgs:c===n.numArgs)break;c=0;continue}c++}if(a===2)break}else a=0;r===-1&&(m(`findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker`),i&&(m(`... trying to recover by using the last "EI" occurrence.`),e.skip(-(e.pos-i))));let o=4;return e.skip(-o),r=e.peekByte(),e.skip(o),Ve(r)||o--,e.pos-o-n}findDCTDecodeInlineStreamEnd(e){let t=e.pos,n,r,i=!1;for(;(n=e.getByte())!==-1;)if(n===255){switch(e.getByte()){case 0:break;case 255:e.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:r=e.getUint16(),r>2?e.skip(r-2):e.skip(-2)}if(i)break}let a=e.pos-t;return n===-1?(m(`Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.`),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}findASCII85DecodeInlineStreamEnd(e){let t=e.pos,n;for(;(n=e.getByte())!==-1;)if(n===126){let t=e.pos;for(n=e.peekByte();Ve(n);)e.skip(),n=e.peekByte();if(n===62){e.skip();break}if(e.pos>t){let t=e.peekBytes(2);if(t[0]===69&&t[1]===73)break}}let r=e.pos-t;return n===-1?(m(`Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.`),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}findASCIIHexDecodeInlineStreamEnd(e){let t=e.pos,n;for(;(n=e.getByte())!==-1&&n!==62;);let r=e.pos-t;return n===-1?(m(`Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.`),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}inlineStreamSkipEI(e){let t,n=0;for(;(t=e.getByte())!==-1;)if(n===0)n=+(t===69);else if(n===1)n=t===73?2:0;else if(n===2)break}makeInlineImage(e){let t=this.lexer,n=t.stream,r=Object.create(null),i;for(;!_e(this.buf1,`ID`)&&this.buf1!==ce;){if(!(this.buf1 instanceof I))throw new w(`Dictionary key must be a name object`);let t=this.buf1.name;if(this.shift(),this.buf1===ce)break;r[t]=this.getObj(e)}t.beginInlineImagePos!==-1&&(i=n.pos-t.beginInlineImagePos);let a=this.xref.fetchIfRef(r.F||r.Filter),o;if(a instanceof I)o=a.name;else if(Array.isArray(a)){let e=this.xref.fetchIfRef(a[0]);e instanceof I&&(o=e.name)}let s=n.pos,c,l;switch(o){case`DCT`:case`DCTDecode`:c=this.findDCTDecodeInlineStreamEnd(n);break;case`A85`:case`ASCII85Decode`:c=this.findASCII85DecodeInlineStreamEnd(n);break;case`AHx`:case`ASCIIHexDecode`:c=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:c=this.findDefaultInlineStreamEnd(n)}if(c<1e3&&i>0){let e=n.pos;n.pos=t.beginInlineImagePos,l=function(e){let t=[],n=e.length,r=0;for(;r<n-1;)t.push(e[r++]<<8|e[r++]);return r<n&&t.push(e[r]),n+`_`+String.fromCharCode.apply(null,t)}(n.getBytes(i+c)),n.pos=e;let r=this.imageCache[l];if(r!==void 0)return this.buf2=fe.get(`EI`),this.shift(),r.reset(),r}let u=new L(this.xref);for(let e in r)u.set(e,r[e]);let d=n.makeSubStream(s,c,u);return e&&(d=e.createStream(d,c)),d=this.filter(d,u,c),d.dict=u,l!==void 0&&(d.cacheKey=`inline_img_`+ ++this._imageId,this.imageCache[l]=d),this.buf2=fe.get(`EI`),this.shift(),d}#e(e){let{stream:t}=this.lexer;t.pos=e;let n=new Uint8Array([101,110,100]),r=n.length,i=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],a=9-r;for(;t.pos<t.end;){let o=t.peekBytes(2048),s=o.length-9;if(s<=0)break;let c=0;for(;c<s;){let s=0;for(;s<r&&o[c+s]===n[s];)s++;if(s>=r){let r=!1;for(let e of i){let t=e.length,i=0;for(;i<t&&o[c+s+i]===e[i];)i++;if(i>=a){r=!0;break}if(i>=t){Ve(o[c+s+i])&&(p(`Found "${E([...n,...e])}" when searching for endstream command.`),r=!0);break}}if(r)return t.pos+=c,t.pos-e}c++}t.pos+=s}return-1}makeStream(e,t){let n=this.lexer,r=n.stream;n.skipToNextLine();let i=r.pos-1,a=e.get(`Length`);if(Number.isInteger(a)||(p(`Bad length "${a&&a.toString()}" in stream.`),a=0),r.pos=i+a,n.nextChar(),this.tryShift()&&_e(this.buf2,`endstream`))this.shift();else{if(a=this.#e(i),a<0)throw new w(`Missing endstream command.`);n.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(i,a,e),t&&(r=t.createStream(r,a)),r=this.filter(r,e,a),r.dict=e,r}filter(e,t,n){let r=t.get(`F`,`Filter`),i=t.get(`DP`,`DecodeParms`);if(r instanceof I)return Array.isArray(i)&&m(`/DecodeParms should not be an Array, when /Filter is a Name.`),this.makeFilter(e,r.name,n,i);let a=n;if(Array.isArray(r)){let t=r,n=i;for(let o=0,s=t.length;o<s;++o){if(r=this.xref.fetchIfRef(t[o]),!(r instanceof I))throw new w(`Bad filter name "${r}"`);i=null,Array.isArray(n)&&o in n&&(i=this.xref.fetchIfRef(n[o])),e=this.makeFilter(e,r.name,a,i),a=null}}return e}makeFilter(e,t,n,r){if(n===0)return m(`Empty "${t}" stream.`),new Lt;try{switch(t){case`Fl`:case`FlateDecode`:return r?new Tr(new Wn(e,n),n,r):new Wn(e,n);case`LZW`:case`LZWDecode`:let t=1;return r?(r.has(`EarlyChange`)&&(t=r.get(`EarlyChange`)),new Tr(new wr(e,n,t),n,r)):new wr(e,n,t);case`DCT`:case`DCTDecode`:return new hn(e,n,r);case`JPX`:case`JPXDecode`:return new Cr(e,n,r);case`A85`:case`ASCII85Decode`:return new kn(e,n);case`AHx`:case`ASCIIHexDecode`:return new An(e,n);case`CCF`:case`CCITTFaxDecode`:return new Rn(e,n,r);case`RL`:case`RunLengthDecode`:return new Er(e,n);case`JBIG2Decode`:return new Sr(e,n,r)}return m(`Filter "${t}" is not supported.`),e}catch(e){if(e instanceof De)throw e;return m(`Invalid stream: "${e}"`),new Lt}}};const Or=[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];function kr(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var Ar=class{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,r=1;if(e===45?(r=-1,e=this.nextChar(),e===45&&(e=this.nextChar())):e===43&&(e=this.nextChar()),e===10||e===13)do e=this.nextChar();while(e===10||e===13);if(e===46&&(n=10,e=this.nextChar()),e<48||e>57){let t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if(Ve(e)||e===40||e===60||e===-1)return p(`Lexer.getNumber - "${t}".`),0;throw new w(t)}let i=e-48,a=0,o=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){let r=e-48;t?a=10*a+r:(n!==0&&(n*=10),i=10*i+r)}else if(e===46){if(n!==0)break;n=1}else if(e===45)m(`Badly formatted number: minus sign in the middle`);else{if(e!==69&&e!==101)break;if(e=this.peekChar(),e===43||e===45)o=e===45?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return n!==0&&(i/=n),t&&(i*=10**(o*a)),r*i}getString(){let e=1,t=!1,n=this.strBuf;n.length=0;let r=this.nextChar();for(;;){let i=!1;switch(0|r){case-1:m(`Unterminated string`),t=!0;break;case 40:++e,n.push(`(`);break;case 41:--e===0?(this.nextChar(),t=!0):n.push(`)`);break;case 92:switch(r=this.nextChar(),r){case-1:m(`Unterminated string`),t=!0;break;case 110:n.push(`
|
|
3
3
|
`);break;case 114:n.push(`\r`);break;case 116:n.push(` `);break;case 98:n.push(`\b`);break;case 102:n.push(`\f`);break;case 92:case 40:case 41:n.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&r;r=this.nextChar(),i=!0,r>=48&&r<=55&&(e=(e<<3)+(15&r),r=this.nextChar(),r>=48&&r<=55&&(i=!1,e=(e<<3)+(15&r))),n.push(String.fromCharCode(e));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(r))}break;default:n.push(String.fromCharCode(r))}if(t)break;i||(r=this.nextChar())}return n.join(``)}getName(){let e,t,n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!Or[e];)if(e===35){if(e=this.nextChar(),Or[e]){m(`Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.`),n.push(`#`);break}let r=kr(e);if(r!==-1){t=e,e=this.nextChar();let i=kr(e);if(i===-1){if(m(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`),n.push(`#`,String.fromCharCode(t)),Or[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(r<<4|i))}else n.push(`#`,String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&m(`Name token is longer than allowed by the spec: ${n.length}`),I.get(n.join(``))}_hexStringWarn(e){this._hexStringNumWarn++===5?m(`getHexString - ignoring additional invalid characters.`):this._hexStringNumWarn>5||m(`getHexString - ignoring invalid character: ${e}`)}getHexString(){let e=this.strBuf;e.length=0;let t=this.currentChar,n=-1,r=-1;for(this._hexStringNumWarn=0;;){if(t<0){m(`Unterminated hex string`);break}if(t===62){this.nextChar();break}Or[t]===1?t=this.nextChar():(r=kr(t),r===-1?this._hexStringWarn(t):n===-1?n=r:(e.push(String.fromCharCode(n<<4|r)),n=-1),t=this.nextChar())}return n!==-1&&e.push(String.fromCharCode(n<<4)),e.join(``)}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return ce;if(e)t!==10&&t!==13||(e=!1);else if(t===37)e=!0;else if(Or[t]!==1)break;t=this.nextChar()}switch(0|t){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(),fe.get(`[`);case 93:return this.nextChar(),fe.get(`]`);case 60:return t=this.nextChar(),t===60?(this.nextChar(),fe.get(`<<`)):this.getHexString();case 62:return t=this.nextChar(),t===62?(this.nextChar(),fe.get(`>>`)):fe.get(`>`);case 123:return this.nextChar(),fe.get(`{`);case 125:return this.nextChar(),fe.get(`}`);case 41:throw this.nextChar(),new w(`Illegal character: ${t}`)}let n=String.fromCharCode(t);if(t<32||t>127){let e=this.peekChar();if(e>=32&&e<=127)return this.nextChar(),fe.get(n)}let r=this.knownCommands,i=r?.[n]!==void 0;for(;(t=this.nextChar())>=0&&!Or[t];){let e=n+String.fromCharCode(t);if(i&&r[e]===void 0)break;if(n.length===128)throw new w(`Command token too long: ${n.length}`);n=e,i=r?.[n]!==void 0}return n===`true`||n!==`false`&&(n===`null`?null:(n===`BI`&&(this.beginInlineImagePos=this.stream.pos),fe.get(n)))}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(e===13){e=this.nextChar(),e===10&&this.nextChar();break}if(e===10){this.nextChar();break}e=this.nextChar()}}},jr=class{static create(e){function t(e,t,n=!1){let r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}let n=new Dr({lexer:new Ar(e),xref:null}),r=n.getObj(),i=n.getObj(),a=n.getObj(),o=n.getObj(),s,c;if(!(Number.isInteger(r)&&Number.isInteger(i)&&_e(a,`obj`)&&o instanceof L&&typeof(s=o.get(`Linearized`))==`number`&&s>0))return null;if((c=t(o,`L`))!==e.length)throw Error(`The "L" parameter in the linearization dictionary does not equal the stream length.`);return{length:c,hints:function(e){let t=e.get(`H`),n;if(Array.isArray(t)&&((n=t.length)===2||n===4)){for(let e=0;e<n;e++){let n=t[e];if(!(Number.isInteger(n)&&n>0))throw Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw Error(`Hint array in the linearization dictionary is invalid.`)}(o),objectNumberFirst:t(o,`O`),endFirst:t(o,`E`),numPages:t(o,`N`),mainXRefEntriesOffset:t(o,`T`),pageFirst:o.has(`P`)?t(o,`P`,!0):0}}};const Mr=`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(`.`),Nr=2**24-1;var Pr=class{constructor(e=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name=``,this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>Nr)throw Error(`mapCidRange - ignoring data above MAX_MAP_RANGE.`);for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>Nr)throw Error(`mapBfRange - ignoring data above MAX_MAP_RANGE.`);let r=n.length-1;for(;e<=t;){this._map[e++]=n;let t=n.charCodeAt(r)+1;n=t>255?n.substring(0,r-1)+String.fromCharCode(n.charCodeAt(r-1)+1)+`\0`:n.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,n){if(t-e>Nr)throw Error(`mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.`);let r=n.length,i=0;for(;e<=t&&i<r;)this._map[e]=n[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return this._map[e]!==void 0}forEach(e){let t=this._map,n=t.length;if(n<=65536)for(let r=0;r<n;r++)t[r]!==void 0&&e(r,t[r]);else for(let n in t)e(n,t[n])}charCodeOf(e){let t=this._map;if(t.length<=65536)return t.indexOf(e);for(let n in t)if(t[n]===e)return 0|n;return-1}getMap(){return this._map}readCharCode(e,t,n){let r=0,i=this.codespaceRanges;for(let a=0,o=i.length;a<o;a++){r=(r<<8|e.charCodeAt(t+a))>>>0;let o=i[a];for(let e=0,t=o.length;e<t;){let t=o[e++],i=o[e++];if(r>=t&&r<=i)return n.charcode=r,void(n.length=a+1)}}n.charcode=0,n.length=1}getCharCodeLength(e){let t=this.codespaceRanges;for(let n=0,r=t.length;n<r;n++){let r=t[n];for(let t=0,i=r.length;t<i;){let i=r[t++],a=r[t++];if(e>=i&&e<=a)return n+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(this.name!==`Identity-H`&&this.name!==`Identity-V`||this._map.length!==65536)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}},Fr=class extends Pr{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){h(`should not call mapCidRange`)}mapBfRange(e,t,n){h(`should not call mapBfRange`)}mapBfRangeToArray(e,t,n){h(`should not call mapBfRangeToArray`)}mapOne(e,t){h(`should not call mapCidOne`)}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){let e=Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){h(`should not access .isIdentityCMap`)}};function Ir(e){let t=0;for(let n=0;n<e.length;n++)t=t<<8|e.charCodeAt(n);return t>>>0}function Lr(e){if(typeof e!=`string`)throw new w(`Malformed CMap: expected string.`)}function Rr(e){if(!Number.isInteger(e))throw new w(`Malformed CMap: expected int.`)}function zr(e,t){for(;;){let n=t.getObj();if(n===ce)break;if(_e(n,`endbfchar`))return;Lr(n);let r=Ir(n);n=t.getObj(),Lr(n);let i=n;e.mapOne(r,i)}}function Br(e,t){for(;;){let n=t.getObj();if(n===ce)break;if(_e(n,`endbfrange`))return;Lr(n);let r=Ir(n);n=t.getObj(),Lr(n);let i=Ir(n);if(n=t.getObj(),Number.isInteger(n)||typeof n==`string`){let t=Number.isInteger(n)?String.fromCharCode(n):n;e.mapBfRange(r,i,t)}else{if(!_e(n,`[`))break;{n=t.getObj();let a=[];for(;!_e(n,`]`)&&n!==ce;)a.push(n),n=t.getObj();e.mapBfRangeToArray(r,i,a)}}}throw new w(`Invalid bf range.`)}function Vr(e,t){for(;;){let n=t.getObj();if(n===ce)break;if(_e(n,`endcidchar`))return;Lr(n);let r=Ir(n);n=t.getObj(),Rr(n);let i=n;e.mapOne(r,i)}}function Hr(e,t){for(;;){let n=t.getObj();if(n===ce)break;if(_e(n,`endcidrange`))return;Lr(n);let r=Ir(n);n=t.getObj(),Lr(n);let i=Ir(n);n=t.getObj(),Rr(n);let a=n;e.mapCidRange(r,i,a)}}function Ur(e,t){for(;;){let n=t.getObj();if(n===ce)break;if(_e(n,`endcodespacerange`))return;if(typeof n!=`string`)break;let r=Ir(n);if(n=t.getObj(),typeof n!=`string`)break;let i=Ir(n);e.addCodespaceRange(n.length,r,i)}throw new w(`Invalid codespace range.`)}function Wr(e,t){let n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function Gr(e,t){let n=t.getObj();n instanceof I&&(e.name=n.name)}async function Kr(e,t,n,r){let i,a;e:for(;;)try{let n=t.getObj();if(n===ce)break;if(n instanceof I)n.name===`WMode`?Wr(e,t):n.name===`CMapName`&&Gr(e,t),i=n;else if(n instanceof fe)switch(n.cmd){case`endcmap`:break e;case`usecmap`:i instanceof I&&(a=i.name);break;case`begincodespacerange`:Ur(e,t);break;case`beginbfchar`:zr(e,t);break;case`begincidchar`:Vr(e,t);break;case`beginbfrange`:Br(e,t);break;case`begincidrange`:Hr(e,t)}}catch(e){if(e instanceof De)throw e;m(`Invalid cMap data: `+e);continue}return!r&&a&&(r=a),r?qr(e,n,r):e}async function qr(e,t,n){if(e.useCMap=await Jr(n,t),e.numCodespaceRanges===0){let t=e.useCMap.codespaceRanges;for(let n=0;n<t.length;n++)e.codespaceRanges[n]=t[n].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach(function(t,n){e.contains(t)||e.mapOne(t,n)}),e}async function Jr(e,t){if(e===`Identity-H`)return new Fr(!1,2);if(e===`Identity-V`)return new Fr(!0,2);if(!Mr.includes(e))throw Error(`Unknown CMap name: `+e);if(!t)throw Error(`Built-in CMap parameters are not provided.`);let{cMapData:n,isCompressed:r}=await t(e),i=new Pr(!0);return r?new On().process(n,i,e=>qr(i,t,e)):Kr(i,new Ar(new Ft(n)),t,null)}var Yr=class{static async create({encoding:e,fetchBuiltInCMap:t,useCMap:n}){if(e instanceof I)return Jr(e.name,t);if(e instanceof be){let r=await Kr(new Pr,new Ar(e),t,n);return r.isIdentityCMap?Jr(r.name,t):r}throw Error(`Encoding required.`)}};const Xr=`................................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(`.`),Zr=`................................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(`.`),Qr=`................................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(`.`),$r=`................................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(`.`),ei=`................................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(`.`),ti=`................................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(`.`),ni=`................................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(`.`);function ri(e){switch(e){case`WinAnsiEncoding`:return ei;case`StandardEncoding`:return $r;case`MacRomanEncoding`:return Qr;case`SymbolSetEncoding`:return ti;case`ZapfDingbatsEncoding`:return ni;case`ExpertEncoding`:return Xr;case`MacExpertEncoding`:return Zr;default:return null}}const ii=Ee(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052,e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36,e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[`.notdef`]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),ai=Ee(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[`.notdef`]=0}),oi=Ee(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120});function si(e,t){let n=t[e];if(n!==void 0)return n;if(!e)return-1;if(e[0]===`u`){let t=e.length,r;if(t===7&&e[1]===`n`&&e[2]===`i`)r=e.substring(3);else{if(!(t>=5&&t<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()&&(n=parseInt(r,16),n>=0))return n}return-1}const ci=[[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]];function li(e,t=-1){if(t!==-1){let n=ci[t];for(let r=0,i=n.length;r<i;r+=2)if(e>=n[r]&&e<=n[r+1])return t}for(let t=0,n=ci.length;t<n;t++){let n=ci[t];for(let r=0,i=n.length;r<i;r+=2)if(e>=n[r]&&e<=n[r+1])return t}return-1}const ui=RegExp(`^(\\s)|(\\p{Mn})|(\\p{Cf})$`,`u`),di=new Map,fi=`.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(`,`);function pi(e,t){if(t[e]!==void 0)return e;let n=si(e,t);if(n!==-1){for(let e in t)if(t[e]===n)return e}return p(`Unable to recover a standard glyph name for: `+e),e}function mi(e,t,n){let r=Object.create(null),i,a,o,s=!!(e.flags&4);if(e.isInternalFont)for(o=t,a=0;a<o.length;a++)i=n.indexOf(o[a]),r[a]=i>=0?i:0;else if(e.baseEncodingName)for(o=ri(e.baseEncodingName),a=0;a<o.length;a++)i=n.indexOf(o[a]),r[a]=i>=0?i:0;else if(s)for(a in t)r[a]=t[a];else for(o=$r,a=0;a<o.length;a++)i=n.indexOf(o[a]),r[a]=i>=0?i:0;let c=e.differences,l;if(c)for(a in c){let e=c[a];if(i=n.indexOf(e),i===-1){l||=ii();let t=pi(e,l);t!==e&&(i=n.indexOf(t))}r[a]=i>=0?i:0}return r}function hi(e){return e.replaceAll(/[,_]/g,`-`).replaceAll(/\s/g,``)}const gi=Ee(e=>{e[8211]=65074,e[8212]=65073,e[8229]=65072,e[8230]=65049,e[12289]=65041,e[12290]=65042,e[12296]=65087,e[12297]=65088,e[12298]=65085,e[12299]=65086,e[12300]=65089,e[12301]=65090,e[12302]=65091,e[12303]=65092,e[12304]=65083,e[12305]=65084,e[12308]=65081,e[12309]=65082,e[12310]=65047,e[12311]=65048,e[65103]=65076,e[65281]=65045,e[65288]=65077,e[65289]=65078,e[65292]=65040,e[65306]=65043,e[65307]=65044,e[65311]=65046,e[65339]=65095,e[65341]=65096,e[65343]=65075,e[65371]=65079,e[65373]=65080}),_i=`.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(`,`),vi=`.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(`,`),yi=`.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(`,`),bi=`.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(`,`),xi=[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,undefStack:!0},{id:`return`,min:0,undefStack:!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,undefStack:!0},{id:`vhcurveto`,min:4,resetStack:!0},{id:`hvcurveto`,min:4,resetStack:!0}],Si=[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(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:`sub`,min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:`div`,min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:`neg`,min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-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(e,t){e[t-2]=e[t-2]*e[t-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}];var Ci=class{constructor(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}parse(){let e=this.properties,t=new wi;this.cff=t;let n=this.parseHeader(),r=this.parseIndex(n.endPos),i=this.parseIndex(r.endPos),a=this.parseIndex(i.endPos),o=this.parseIndex(a.endPos),s=this.parseDict(i.obj.get(0)),c=this.createDict(Ai,s,t.strings);t.header=n.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(a.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName(`ROS`);let l=c.getByName(`CharStrings`),u=this.parseIndex(l).obj,d=c.getByName(`FontMatrix`);d&&(e.fontMatrix=d);let f=c.getByName(`FontBBox`),p,m;if(f&&(e.ascent=Math.max(f[3],f[1]),e.descent=Math.min(f[1],f[3]),e.ascentScaled=!0),t.isCIDFont){let e=this.parseIndex(c.getByName(`FDArray`)).obj;for(let n=0,r=e.count;n<r;++n){let r=e.get(n),i=this.createDict(Ai,this.parseDict(r),t.strings);this.parsePrivateDict(i),t.fdArray.push(i)}m=null,p=this.parseCharsets(c.getByName(`charset`),u.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName(`FDSelect`),u.count)}else p=this.parseCharsets(c.getByName(`charset`),u.count,t.strings,!1),m=this.parseEncoding(c.getByName(`Encoding`),e,t.strings,p.charset);t.charset=p,t.encoding=m;let h=this.parseCharStrings({charStrings:u,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=h.charStrings,t.seacs=h.seacs,t.widths=h.widths,t}parseHeader(){let e=this.bytes,t=e.length,n=0;for(;n<t&&e[n]!==1;)++n;if(n>=t)throw new w(`Invalid CFF header`);n!==0&&(p(`cff data is shifted`),e=e.subarray(n),this.bytes=e);let r=e[0],i=e[1],a=e[2],o=e[3];return{obj:new Ti(r,i,a,o),endPos:a}}parseDict(e){let t=0;function n(){let n=e[t++];return n===30?function(){let n=``,r=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`.`,`E`,`E-`,null,`-`],i=e.length;for(;t<i;){let i=e[t++],a=i>>4,o=15&i;if(a===15||(n+=r[a],o===15))break;n+=r[o]}return parseFloat(n)}():n===28?(n=Re(e,t),t+=2,n):n===29?(n=e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n):n>=32&&n<=246?n-139:n>=247&&n<=250?256*(n-247)+e[t++]+108:n>=251&&n<=254?-256*(n-251)-e[t++]-108:(m(`CFFParser_parseDict: "`+n+`" is a reserved command.`),NaN)}let r=[],i=[];t=0;let a=e.length;for(;t<a;){let a=e[t];a<=21?(a===12&&(a=a<<8|e[++t]),i.push([a,r]),r=[],++t):r.push(n())}return i}parseIndex(e){let t=new Di,n=this.bytes,r=n[e++]<<8|n[e++],i=[],a,o,s=e;if(r!==0){let t=n[e++],c=e+(r+1)*t-1;for(a=0,o=r+1;a<o;++a){let r=0;for(let i=0;i<t;++i)r<<=8,r+=n[e++];i.push(c+r)}s=i[r]}for(a=0,o=i.length-1;a<o;++a){let e=i[a],r=i[a+1];t.add(n.subarray(e,r))}return{obj:t,endPos:s}}parseNameIndex(e){let t=[];for(let n=0,r=e.count;n<r;++n){let r=e.get(n);t.push(E(r))}return t}parseStringIndex(e){let t=new Ei;for(let n=0,r=e.count;n<r;++n){let r=e.get(n);t.add(E(r))}return t}createDict(e,t,n){let r=new e(n);for(let[e,n]of t)r.setByKey(e,n);return r}parseCharString(e,t,n,r){if(!t||e.callDepth>10)return!1;let i=e.stackSize,a=e.stack,o=t.length;for(let s=0;s<o;){let c=t[s++],l=null;if(c===12){let e=t[s++];e===0?(t[s-2]=139,t[s-1]=22,i=0):l=Si[e]}else if(c===28)a[i]=Re(t,s),s+=2,i++;else if(c===14){if(i>=4&&(i-=4,this.seacAnalysisEnabled))return e.seac=a.slice(i,i+4),!1;l=xi[c]}else if(c>=32&&c<=246)a[i]=c-139,i++;else if(c>=247&&c<=254)a[i]=c<251?(c-247<<8)+t[s]+108:-(c-251<<8)-t[s]-108,s++,i++;else if(c===255)a[i]=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])/65536,s+=4,i++;else if(c===19||c===20){if(e.hints+=i>>1,e.hints===0){t.copyWithin(s-1,s,-1),--s,--o;continue}s+=e.hints+7>>3,i%=2,l=xi[c]}else{if(c===10||c===29){let t=c===10?n:r;if(!t)return l=xi[c],m(`Missing subrsIndex for `+l.id),!1;let o=32768;t.count<1240?o=107:t.count<33900&&(o=1131);let s=a[--i]+o;if(s<0||s>=t.count||isNaN(s))return l=xi[c],m(`Out of bounds subrIndex for `+l.id),!1;if(e.stackSize=i,e.callDepth++,!this.parseCharString(e,t.get(s),n,r))return!1;e.callDepth--,i=e.stackSize;continue}if(c===11)return e.stackSize=i,!0;if(c===0&&s===t.length)t[s-1]=14,l=xi[14];else{if(c===9){t.copyWithin(s-1,s,-1),--s,--o;continue}l=xi[c]}}if(l){if(l.stem&&(e.hints+=i>>1,c===3||c===23?e.hasVStems=!0:!e.hasVStems||c!==1&&c!==18||(m(`CFF stem hints are in wrong order`),t[s-1]=c===1?3:23)),`min`in l&&!e.undefStack&&i<l.min)return m(`Not enough parameters for `+l.id+`; actual: `+i+`, expected: `+l.min),i===0&&(t[s-1]=14,!0);e.firstStackClearing&&l.stackClearing&&(e.firstStackClearing=!1,i-=l.min,i>=2&&l.stem?i%=2:i>1&&m(`Found too many parameters for stack-clearing command`),i>0&&(e.width=a[i-1])),`stackDelta`in l?(`stackFn`in l&&l.stackFn(a,i),i+=l.stackDelta):l.stackClearing?i=0:l.resetStack?(i=0,e.undefStack=!1):l.undefStack&&(i=0,e.undefStack=!0,e.firstStackClearing=!1)}}return o<t.length&&t.fill(14,o),e.stackSize=i,!0}parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:n,fdSelect:r,fdArray:i,privateDict:a}){let o=[],s=[],c=e.count;for(let l=0;l<c;l++){let c=e.get(l),u={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},d=!0,f=null,p=a;if(r&&i.length){let e=r.getFDIndex(l);e===-1&&(m(`Glyph index is not in fd select.`),d=!1),e>=i.length&&(m(`Invalid fd index for glyph index.`),d=!1),d&&(p=i[e].privateDict,f=p.subrsIndex)}else t&&(f=t);d&&=this.parseCharString(u,c,f,n),u.width===null?s[l]=p.getByName(`defaultWidthX`):s[l]=p.getByName(`nominalWidthX`)+u.width,u.seac!==null&&(o[l]=u.seac),d||e.set(l,new Uint8Array([14]))}return{charStrings:e,seacs:o,widths:s}}emptyPrivateDictionary(e){let t=this.createDict(Mi,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){if(!e.hasName(`Private`))return void this.emptyPrivateDictionary(e);let t=e.getByName(`Private`);if(!Array.isArray(t)||t.length!==2)return void e.removeByName(`Private`);let n=t[0],r=t[1];if(n===0||r>=this.bytes.length)return void this.emptyPrivateDictionary(e);let i=r+n,a=this.bytes.subarray(r,i),o=this.parseDict(a),s=this.createDict(Mi,o,e.strings);if(e.privateDict=s,s.getByName(`ExpansionFactor`)===0&&s.setByName(`ExpansionFactor`,.06),!s.getByName(`Subrs`))return;let c=s.getByName(`Subrs`),l=r+c;if(c===0||l>=this.bytes.length)return void this.emptyPrivateDictionary(e);s.subrsIndex=this.parseIndex(l).obj}parseCharsets(e,t,n,r){if(e===0)return new Pi(!0,Ni.ISO_ADOBE,_i);if(e===1)return new Pi(!0,Ni.EXPERT,vi);if(e===2)return new Pi(!0,Ni.EXPERT_SUBSET,yi);let i=this.bytes,a=e,o=i[e++],s=[r?0:`.notdef`],c,l,u;switch(--t,o){case 0:for(u=0;u<t;u++)c=i[e++]<<8|i[e++],s.push(r?c:n.get(c));break;case 1:for(;s.length<=t;)for(c=i[e++]<<8|i[e++],l=i[e++],u=0;u<=l;u++)s.push(r?c++:n.get(c++));break;case 2:for(;s.length<=t;)for(c=i[e++]<<8|i[e++],l=i[e++]<<8|i[e++],u=0;u<=l;u++)s.push(r?c++:n.get(c++));break;default:throw new w(`Unknown charset format`)}let d=e;return new Pi(!1,o,s,i.subarray(a,d))}parseEncoding(e,t,n,r){let i=Object.create(null),a=this.bytes,o,s,c,l=!1,u=null;if(e===0||e===1){l=!0,o=e;let t=e?Xr:$r;for(s=0,c=r.length;s<c;s++){let e=t.indexOf(r[s]);e!==-1&&(i[e]=s)}}else{let t=e;switch(o=a[e++],127&o){case 0:let t=a[e++];for(s=1;s<=t;s++)i[a[e++]]=s;break;case 1:let n=a[e++],r=1;for(s=0;s<n;s++){let t=a[e++],n=a[e++];for(let e=t;e<=t+n;e++)i[e]=r++}break;default:throw new w(`Unknown encoding format: ${o} in CFF`)}let c=e;128&o&&(a[t]&=127,function(){let t=a[e++];for(s=0;s<t;s++){let t=a[e++],o=(a[e++]<<8)+(255&a[e++]);i[t]=r.indexOf(n.get(o))}}()),u=a.subarray(t,c)}return o&=127,new Fi(l,o,i,u)}parseFDSelect(e,t){let n=this.bytes,r=n[e++],i=[],a;switch(r){case 0:for(a=0;a<t;++a){let t=n[e++];i.push(t)}break;case 3:let o=n[e++]<<8|n[e++];for(a=0;a<o;++a){let t=n[e++]<<8|n[e++];a===0&&t!==0&&(m(`parseFDSelect: The first range must have a first GID of 0 -- trying to recover.`),t=0);let r=n[e++],o=n[e]<<8|n[e+1];for(let e=t;e<o;++e)i.push(r)}e+=2;break;default:throw new w(`parseFDSelect: Unknown format "${r}".`)}if(i.length!==t)throw new w(`parseFDSelect: Invalid font data.`);return new Ii(r,i)}},wi=class{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new Ei,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535)return void m(`Not enough space in charstrings to duplicate first glyph.`);let e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){return e<0||e>=this.charStrings.count?!1:this.charStrings.get(e).length>0}},Ti=class{constructor(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r}},Ei=class{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?bi[e]:e-391<=this.strings.length?this.strings[e-391]:bi[0]}getSID(e){let t=bi.indexOf(e);return t===-1?(t=this.strings.indexOf(e),t===-1?-1:t+391):t}add(e){this.strings.push(e)}get count(){return this.strings.length}},Di=class{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}},Oi=class{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(t.length===0)return!0;for(let n of t)if(isNaN(n))return m(`Invalid CFFDict value: "${t}" for key "${e}".`),!0;let n=this.types[e];return n!==`num`&&n!==`sid`&&n!==`offset`||(t=t[0]),this.values[e]=t,!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new w(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new w(`Invalid dictionary name ${e}"`);let t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){let t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let n of e){let e=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[e]=n[1],t.nameToKeyMap[n[1]]=e,t.types[e]=n[2],t.defaults[e]=n[3],t.opcodes[e]=Array.isArray(n[0])?n[0]:[n[0]],t.order.push(e)}return t}};const ki=[[[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]];var Ai=class e extends Oi{static get tables(){return v(this,`tables`,this.createTables(ki))}constructor(t){super(e.tables,t),this.privateDict=null}};const ji=[[6,`BlueValues`,`delta`,null],[7,`OtherBlues`,`delta`,null],[8,`FamilyBlues`,`delta`,null],[9,`FamilyOtherBlues`,`delta`,null],[[12,9],`BlueScale`,`num`,.039625],[[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`,.06],[[12,19],`initialRandomSeed`,`num`,0],[20,`defaultWidthX`,`num`,0],[21,`nominalWidthX`,`num`,0],[19,`Subrs`,`offset`,null]];var Mi=class e extends Oi{static get tables(){return v(this,`tables`,this.createTables(ji))}constructor(t){super(e.tables,t),this.subrsIndex=null}};const Ni={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};var Pi=class{constructor(e,t,n,r){this.predefined=e,this.format=t,this.charset=n,this.raw=r}},Fi=class{constructor(e,t,n,r){this.predefined=e,this.format=t,this.encoding=n,this.raw=r}},Ii=class{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},Li=class{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new w(`Already tracking location of ${e}`);this.offsets[e]=t}offset(e){for(let t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,n){if(!(e in this.offsets))throw new w(`Not tracking location of ${e}`);let r=n.data,i=this.offsets[e];for(let e=0,n=t.length;e<n;++e){let n=5*e+i,a=n+1,o=n+2,s=n+3,c=n+4;if(r[n]!==29||r[a]!==0||r[o]!==0||r[s]!==0||r[c]!==0)throw new w(`writing to an offset that is not empty`);let l=t[e];r[n]=29,r[a]=l>>24&255,r[o]=l>>16&255,r[s]=l>>8&255,r[c]=255&l}}},Ri=class e{constructor(e){this.cff=e}compile(){let e=this.cff,t={data:[],length:0,add(e){try{this.data.push(...e)}catch{this.data=this.data.concat(e)}this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);let r=this.compileNameIndex(e.names);if(t.add(r),e.isCIDFont&&e.topDict.hasName(`FontMatrix`)){let t=e.topDict.getByName(`FontMatrix`);e.topDict.removeByName(`FontMatrix`);for(let n of e.fdArray){let e=t.slice(0);n.hasName(`FontMatrix`)&&(e=M.transform(e,n.getByName(`FontMatrix`))),n.setByName(`FontMatrix`,e)}}e.topDict.getByName(`XUID`)?.length>16&&e.topDict.removeByName(`XUID`),e.topDict.setByName(`charset`,0);let i=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(i.output);let a=i.trackers[0],o=this.compileStringIndex(e.strings.strings);t.add(o);let s=this.compileIndex(e.globalSubrIndex);if(t.add(s),e.encoding&&e.topDict.hasName(`Encoding`))if(e.encoding.predefined)a.setEntryLocation(`Encoding`,[e.encoding.format],t);else{let n=this.compileEncoding(e.encoding);a.setEntryLocation(`Encoding`,[t.length],t),t.add(n)}let c=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);a.setEntryLocation(`charset`,[t.length],t),t.add(c);let l=this.compileCharStrings(e.charStrings);if(a.setEntryLocation(`CharStrings`,[t.length],t),t.add(l),e.isCIDFont){a.setEntryLocation(`FDSelect`,[t.length],t);let n=this.compileFDSelect(e.fdSelect);t.add(n),i=this.compileTopDicts(e.fdArray,t.length,!0),a.setEntryLocation(`FDArray`,[t.length],t),t.add(i.output);let r=i.trackers;this.compilePrivateDicts(e.fdArray,r,t)}return this.compilePrivateDicts([e.topDict],[a],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return v(this,`EncodeFloatRegExp`,/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let n=t.toString(),r=e.EncodeFloatRegExp.exec(n);if(r){let e=parseFloat(`1e`+((r[2]?+r[2]:0)+r[1].length));n=(Math.round(t*e)/e).toString()}let i,a,o=``;for(i=0,a=n.length;i<a;++i){let e=n[i];o+=e===`e`?n[++i]===`-`?`c`:`b`:e===`.`?`a`:e===`-`?`e`:e}o+=1&o.length?`f`:`ff`;let s=[30];for(i=0,a=o.length;i<a;i+=2)s.push(parseInt(o.substring(i,i+2),16));return s}encodeInteger(e){let t;return t=e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){let t=new Di;for(let n of e){let e=Math.min(n.length,127),r=Array(e);for(let t=0;t<e;t++){let e=n[t];(e<`!`||e>`~`||e===`[`||e===`]`||e===`(`||e===`)`||e===`{`||e===`}`||e===`<`||e===`>`||e===`/`||e===`%`)&&(e=`_`),r[t]=e}r=r.join(``),r===``&&(r=`Bad_Font_Name`),t.add(D(r))}return this.compileIndex(t)}compileTopDicts(e,t,n){let r=[],i=new Di;for(let a of e){n&&(a.removeByName(`CIDFontVersion`),a.removeByName(`CIDFontRevision`),a.removeByName(`CIDFontType`),a.removeByName(`CIDCount`),a.removeByName(`UIDBase`));let e=new Li,o=this.compileDict(a,e);r.push(e),i.add(o),e.offset(t)}return i=this.compileIndex(i,r),{trackers:r,output:i}}compilePrivateDicts(e,t,n){for(let r=0,i=e.length;r<i;++r){let i=e[r],a=i.privateDict;if(!a||!i.hasName(`Private`))throw new w(`There must be a private dictionary.`);let o=new Li,s=this.compileDict(a,o),c=n.length;if(o.offset(c),s.length||(c=0),t[r].setEntryLocation(`Private`,[s.length,c],n),n.add(s),a.subrsIndex&&a.hasName(`Subrs`)){let e=this.compileIndex(a.subrsIndex);o.setEntryLocation(`Subrs`,[s.length],n),n.add(e)}}}compileDict(e,t){let n=[];for(let r of e.order){if(!(r in e.values))continue;let i=e.values[r],a=e.types[r];if(Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]),i.length!==0){for(let o=0,s=a.length;o<s;++o){let s=a[o],c=i[o];switch(s){case`num`:case`sid`:n.push(...this.encodeNumber(c));break;case`offset`:let a=e.keyToNameMap[r];t.isTracking(a)||t.track(a,n.length),n.push(29,0,0,0,0);break;case`array`:case`delta`:n.push(...this.encodeNumber(c));for(let e=1,t=i.length;e<t;++e)n.push(...this.encodeNumber(i[e]));break;default:throw new w(`Unknown data type of ${s}`)}}n.push(...e.opcodes[r])}}return n}compileStringIndex(e){let t=new Di;for(let n of e)t.add(D(n));return this.compileIndex(t)}compileCharStrings(e){let t=new Di;for(let n=0;n<e.count;n++){let r=e.get(n);r.length===0?t.add(new Uint8Array([139,14])):t.add(r)}return this.compileIndex(t)}compileCharset(e,t,n,r){let i,a=t-1;if(r){let e=a-1;i=new Uint8Array([2,0,1,e>>8&255,255&e])}else{i=new Uint8Array(1+2*a),i[0]=0;let t=0,r=e.charset.length,o=!1;for(let a=1;a<i.length;a+=2){let s=0;if(t<r){let r=e.charset[t++];s=n.getSID(r),s===-1&&(s=0,o||(o=!0,m(`Couldn't find ${r} in CFF strings`)))}i[a]=s>>8&255,i[a+1]=255&s}}return this.compileTypedArray(i)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){let t=e.format,n,r;switch(t){case 0:for(n=new Uint8Array(1+e.fdSelect.length),n[0]=t,r=0;r<e.fdSelect.length;r++)n[r+1]=e.fdSelect[r];break;case 3:let i=e.fdSelect[0],a=[t,0,0,0,0,i];for(r=1;r<e.fdSelect.length;r++){let t=e.fdSelect[r];t!==i&&(a.push(r>>8&255,255&r,t),i=t)}let o=(a.length-3)/3;a[1]=o>>8&255,a[2]=255&o,a.push(r>>8&255,255&r),n=new Uint8Array(a)}return this.compileTypedArray(n)}compileTypedArray(e){return Array.from(e)}compileIndex(e,t=[]){let n=e.objects,r=n.length;if(r===0)return[0,0];let i=[r>>8&255,255&r],a,o,s=1;for(a=0;a<r;++a)s+=n[a].length;o=s<256?1:s<65536?2:s<16777216?3:4,i.push(o);let c=1;for(a=0;a<r+1;a++)o===1?i.push(255&c):o===2?i.push(c>>8&255,255&c):o===3?i.push(c>>16&255,c>>8&255,255&c):i.push(c>>>24&255,c>>16&255,c>>8&255,255&c),n[a]&&(c+=n[a].length);for(a=0;a<r;a++)t[a]&&t[a].offset(i.length),i.push(...n[a]);return i}};const zi=Ee(function(e){e[`Times-Roman`]=`Times-Roman`,e.Helvetica=`Helvetica`,e.Courier=`Courier`,e.Symbol=`Symbol`,e[`Times-Bold`]=`Times-Bold`,e[`Helvetica-Bold`]=`Helvetica-Bold`,e[`Courier-Bold`]=`Courier-Bold`,e.ZapfDingbats=`ZapfDingbats`,e[`Times-Italic`]=`Times-Italic`,e[`Helvetica-Oblique`]=`Helvetica-Oblique`,e[`Courier-Oblique`]=`Courier-Oblique`,e[`Times-BoldItalic`]=`Times-BoldItalic`,e[`Helvetica-BoldOblique`]=`Helvetica-BoldOblique`,e[`Courier-BoldOblique`]=`Courier-BoldOblique`,e.ArialNarrow=`Helvetica`,e[`ArialNarrow-Bold`]=`Helvetica-Bold`,e[`ArialNarrow-BoldItalic`]=`Helvetica-BoldOblique`,e[`ArialNarrow-Italic`]=`Helvetica-Oblique`,e.ArialBlack=`Helvetica`,e[`ArialBlack-Bold`]=`Helvetica-Bold`,e[`ArialBlack-BoldItalic`]=`Helvetica-BoldOblique`,e[`ArialBlack-Italic`]=`Helvetica-Oblique`,e[`Arial-Black`]=`Helvetica`,e[`Arial-Black-Bold`]=`Helvetica-Bold`,e[`Arial-Black-BoldItalic`]=`Helvetica-BoldOblique`,e[`Arial-Black-Italic`]=`Helvetica-Oblique`,e.Arial=`Helvetica`,e[`Arial-Bold`]=`Helvetica-Bold`,e[`Arial-BoldItalic`]=`Helvetica-BoldOblique`,e[`Arial-Italic`]=`Helvetica-Oblique`,e.ArialMT=`Helvetica`,e[`Arial-BoldItalicMT`]=`Helvetica-BoldOblique`,e[`Arial-BoldMT`]=`Helvetica-Bold`,e[`Arial-ItalicMT`]=`Helvetica-Oblique`,e[`Arial-BoldItalicMT-BoldItalic`]=`Helvetica-BoldOblique`,e[`Arial-BoldMT-Bold`]=`Helvetica-Bold`,e[`Arial-ItalicMT-Italic`]=`Helvetica-Oblique`,e.ArialUnicodeMS=`Helvetica`,e[`ArialUnicodeMS-Bold`]=`Helvetica-Bold`,e[`ArialUnicodeMS-BoldItalic`]=`Helvetica-BoldOblique`,e[`ArialUnicodeMS-Italic`]=`Helvetica-Oblique`,e[`Courier-BoldItalic`]=`Courier-BoldOblique`,e[`Courier-Italic`]=`Courier-Oblique`,e.CourierNew=`Courier`,e[`CourierNew-Bold`]=`Courier-Bold`,e[`CourierNew-BoldItalic`]=`Courier-BoldOblique`,e[`CourierNew-Italic`]=`Courier-Oblique`,e[`CourierNewPS-BoldItalicMT`]=`Courier-BoldOblique`,e[`CourierNewPS-BoldMT`]=`Courier-Bold`,e[`CourierNewPS-ItalicMT`]=`Courier-Oblique`,e.CourierNewPSMT=`Courier`,e[`Helvetica-BoldItalic`]=`Helvetica-BoldOblique`,e[`Helvetica-Italic`]=`Helvetica-Oblique`,e[`HelveticaLTStd-Bold`]=`Helvetica-Bold`,e[`Symbol-Bold`]=`Symbol`,e[`Symbol-BoldItalic`]=`Symbol`,e[`Symbol-Italic`]=`Symbol`,e.TimesNewRoman=`Times-Roman`,e[`TimesNewRoman-Bold`]=`Times-Bold`,e[`TimesNewRoman-BoldItalic`]=`Times-BoldItalic`,e[`TimesNewRoman-Italic`]=`Times-Italic`,e.TimesNewRomanPS=`Times-Roman`,e[`TimesNewRomanPS-Bold`]=`Times-Bold`,e[`TimesNewRomanPS-BoldItalic`]=`Times-BoldItalic`,e[`TimesNewRomanPS-BoldItalicMT`]=`Times-BoldItalic`,e[`TimesNewRomanPS-BoldMT`]=`Times-Bold`,e[`TimesNewRomanPS-Italic`]=`Times-Italic`,e[`TimesNewRomanPS-ItalicMT`]=`Times-Italic`,e.TimesNewRomanPSMT=`Times-Roman`,e[`TimesNewRomanPSMT-Bold`]=`Times-Bold`,e[`TimesNewRomanPSMT-BoldItalic`]=`Times-BoldItalic`,e[`TimesNewRomanPSMT-Italic`]=`Times-Italic`}),Bi=Ee(function(e){e.Courier=`FoxitFixed.pfb`,e[`Courier-Bold`]=`FoxitFixedBold.pfb`,e[`Courier-BoldOblique`]=`FoxitFixedBoldItalic.pfb`,e[`Courier-Oblique`]=`FoxitFixedItalic.pfb`,e.Helvetica=`LiberationSans-Regular.ttf`,e[`Helvetica-Bold`]=`LiberationSans-Bold.ttf`,e[`Helvetica-BoldOblique`]=`LiberationSans-BoldItalic.ttf`,e[`Helvetica-Oblique`]=`LiberationSans-Italic.ttf`,e[`Times-Roman`]=`FoxitSerif.pfb`,e[`Times-Bold`]=`FoxitSerifBold.pfb`,e[`Times-BoldItalic`]=`FoxitSerifBoldItalic.pfb`,e[`Times-Italic`]=`FoxitSerifItalic.pfb`,e.Symbol=`FoxitSymbol.pfb`,e.ZapfDingbats=`FoxitDingbats.pfb`,e[`LiberationSans-Regular`]=`LiberationSans-Regular.ttf`,e[`LiberationSans-Bold`]=`LiberationSans-Bold.ttf`,e[`LiberationSans-Italic`]=`LiberationSans-Italic.ttf`,e[`LiberationSans-BoldItalic`]=`LiberationSans-BoldItalic.ttf`}),Vi=Ee(function(e){e.Calibri=`Helvetica`,e[`Calibri-Bold`]=`Helvetica-Bold`,e[`Calibri-BoldItalic`]=`Helvetica-BoldOblique`,e[`Calibri-Italic`]=`Helvetica-Oblique`,e.CenturyGothic=`Helvetica`,e[`CenturyGothic-Bold`]=`Helvetica-Bold`,e[`CenturyGothic-BoldItalic`]=`Helvetica-BoldOblique`,e[`CenturyGothic-Italic`]=`Helvetica-Oblique`,e.ComicSansMS=`Comic Sans MS`,e[`ComicSansMS-Bold`]=`Comic Sans MS-Bold`,e[`ComicSansMS-BoldItalic`]=`Comic Sans MS-BoldItalic`,e[`ComicSansMS-Italic`]=`Comic Sans MS-Italic`,e.GillSansMT=`Helvetica`,e[`GillSansMT-Bold`]=`Helvetica-Bold`,e[`GillSansMT-BoldItalic`]=`Helvetica-BoldOblique`,e[`GillSansMT-Italic`]=`Helvetica-Oblique`,e.Impact=`Helvetica`,e[`ItcSymbol-Bold`]=`Helvetica-Bold`,e[`ItcSymbol-BoldItalic`]=`Helvetica-BoldOblique`,e[`ItcSymbol-Book`]=`Helvetica`,e[`ItcSymbol-BookItalic`]=`Helvetica-Oblique`,e[`ItcSymbol-Medium`]=`Helvetica`,e[`ItcSymbol-MediumItalic`]=`Helvetica-Oblique`,e.LucidaConsole=`Courier`,e[`LucidaConsole-Bold`]=`Courier-Bold`,e[`LucidaConsole-BoldItalic`]=`Courier-BoldOblique`,e[`LucidaConsole-Italic`]=`Courier-Oblique`,e[`LucidaSans-Demi`]=`Helvetica-Bold`,e[`MS-Gothic`]=`MS Gothic`,e[`MS-Gothic-Bold`]=`MS Gothic-Bold`,e[`MS-Gothic-BoldItalic`]=`MS Gothic-BoldItalic`,e[`MS-Gothic-Italic`]=`MS Gothic-Italic`,e[`MS-Mincho`]=`MS Mincho`,e[`MS-Mincho-Bold`]=`MS Mincho-Bold`,e[`MS-Mincho-BoldItalic`]=`MS Mincho-BoldItalic`,e[`MS-Mincho-Italic`]=`MS Mincho-Italic`,e[`MS-PGothic`]=`MS PGothic`,e[`MS-PGothic-Bold`]=`MS PGothic-Bold`,e[`MS-PGothic-BoldItalic`]=`MS PGothic-BoldItalic`,e[`MS-PGothic-Italic`]=`MS PGothic-Italic`,e[`MS-PMincho`]=`MS PMincho`,e[`MS-PMincho-Bold`]=`MS PMincho-Bold`,e[`MS-PMincho-BoldItalic`]=`MS PMincho-BoldItalic`,e[`MS-PMincho-Italic`]=`MS PMincho-Italic`,e.NuptialScript=`Times-Italic`,e.SegoeUISymbol=`Helvetica`}),Hi=Ee(function(e){e[`Adobe Jenson`]=!0,e[`Adobe Text`]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e[`American Typewriter`]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e[`Bembo Schoolbook`]=!0,e.Benguiat=!0,e[`Berkeley Old Style`]=!0,e[`Bernhard Modern`]=!0,e[`Berthold City`]=!0,e.Bodoni=!0,e[`Bauer Bodoni`]=!0,e[`Book Antiqua`]=!0,e.Bookman=!0,e[`Bordeaux Roman`]=!0,e[`Californian FB`]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e[`Century Old Style`]=!0,e[`Century Schoolbook`]=!0,e.Chaparral=!0,e[`Charis SIL`]=!0,e.Cheltenham=!0,e[`Cholla Slab`]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e[`Computer Modern`]=!0,e[`Concrete Roman`]=!0,e.Constantia=!0,e[`Cooper Black`]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e[`FF Scala`]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e[`Friz Quadrata`]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e[`Goudy Old Style`]=!0,e[`Goudy Schoolbook`]=!0,e[`Goudy Pro Font`]=!0,e.Granjon=!0,e[`Guardian Egyptian`]=!0,e.Heather=!0,e.Hercules=!0,e[`High Tower Text`]=!0,e.Hiroshige=!0,e[`Hoefler Text`]=!0,e[`Humana Serif`]=!0,e.Imprint=!0,e[`Ionic No. 5`]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e[`Liberation Serif`]=!0,e[`Linux Libertine`]=!0,e.Literaturnaya=!0,e.Lucida=!0,e[`Lucida Bright`]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e[`Mona Lisa`]=!0,e[`Mrs Eaves`]=!0,e[`MS Serif`]=!0,e[`Museo Slab`]=!0,e[`New York`]=!0,e[`Nimbus Roman`]=!0,e[`NPS Rawlinson Roadway`]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e[`Plantin Schoolbook`]=!0,e.Playbill=!0,e[`Poor Richard`]=!0,e[`Rawlinson Roadway`]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e[`Rotis Serif`]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e[`Stone Informal`]=!0,e[`Stone Serif`]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e.Trinité=!0,e[`Trump Mediaeval`]=!0,e.Utopia=!0,e[`Vale Type`]=!0,e[`Bitstream Vera`]=!0,e[`Vera Serif`]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e[`Wide Latin`]=!0,e.Windsor=!0,e.XITS=!0}),Ui=Ee(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e[`Wingdings-Bold`]=!0,e[`Wingdings-Regular`]=!0}),Wi=Ee(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[570]=1040,e[571]=1041,e[572]=1042,e[573]=1043,e[574]=1044,e[575]=1045,e[576]=1046,e[577]=1047,e[578]=1048,e[579]=1049,e[580]=1050,e[581]=1051,e[582]=1052,e[583]=1053,e[584]=1054,e[585]=1055,e[586]=1056,e[587]=1057,e[588]=1058,e[589]=1059,e[590]=1060,e[591]=1061,e[592]=1062,e[593]=1063,e[594]=1064,e[595]=1065,e[596]=1066,e[597]=1067,e[598]=1068,e[599]=1069,e[600]=1070,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}),Gi=Ee(function(e){e[227]=322,e[264]=261,e[291]=346}),Ki=Ee(function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[940]=163,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});function qi(e){let t=hi(e);return zi()[t]}function Ji(e){let t=hi(e);return!!(zi()[t]||Vi()[t]||Hi()[t]||Ui()[t])}var Yi=class{constructor(e=[]){this._map=e}get length(){return this._map.length}forEach(e){for(let t in this._map)e(t,this._map[t].codePointAt(0))}has(e){return this._map[e]!==void 0}get(e){return this._map[e]}charCodeOf(e){let t=this._map;if(t.length<=65536)return t.indexOf(e);for(let n in t)if(t[n]===e)return 0|n;return-1}amend(e){for(let t in e)this._map[t]=e[t]}},Xi=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){h(`Should not call amend()`)}},Zi=class{constructor(e,t){this.properties=t;let n=new Ci(e,t,!0);this.cff=n.parse(),this.cff.duplicateFirstGlyph();let r=new Ri(this.cff);this.seacs=this.cff.seacs;try{this.data=r.compile()}catch{m(`Failed to compile font `+t.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let e=this.cff,t=this.properties,{cidToGidMap:n,cMap:r}=t,i=e.charset.charset,a,o;if(t.composite){let t,s;if(n?.length>0){t=Object.create(null);for(let e=0,r=n.length;e<r;e++){let r=n[e];r!==void 0&&(t[r]=e)}}if(a=Object.create(null),e.isCIDFont)for(o=0;o<i.length;o++){let e=i[o];s=r.charCodeOf(e),t?.[s]!==void 0&&(s=t[s]),a[s]=o}else for(o=0;o<e.charStrings.count;o++)s=r.charCodeOf(o),a[s]=o;return a}let s=e.encoding?e.encoding.encoding:null;return t.isInternalFont&&(s=t.defaultEncoding),a=mi(t,s,i),a}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){let{charset:e,encoding:t}=this.cff;if(!e||!t)return;let n=e.charset,r=t.encoding,i=[];for(let e in r){let t=r[e];if(t>=0){let r=n[t];r&&(i[e]=r)}}i.length>0&&(this.properties.builtInEncoding=i)}};function Qi(e,t){return Re(e,t)/16384}function $i(e){let t=e.length,n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function ea(e,t,n){let r=ze(e,t+2)===1?Be(e,t+8):Be(e,t+16),i=ze(e,t+r),a,o,s;if(i===4){ze(e,t+r+2);let n=ze(e,t+r+6)>>1;for(o=t+r+14,a=[],s=0;s<n;s++,o+=2)a[s]={end:ze(e,o)};for(o+=2,s=0;s<n;s++,o+=2)a[s].start=ze(e,o);for(s=0;s<n;s++,o+=2)a[s].idDelta=ze(e,o);for(s=0;s<n;s++,o+=2){let t=ze(e,o);if(t!==0){a[s].ids=[];for(let n=0,r=a[s].end-a[s].start+1;n<r;n++)a[s].ids[n]=ze(e,o+t),t+=2}}return a}if(i===12){let n=Be(e,t+r+12);for(o=t+r+16,a=[],s=0;s<n;s++)t=Be(e,o),a.push({start:t,end:Be(e,o+4),idDelta:Be(e,o+8)-t}),o+=12;return a}throw new w(`unsupported cmap: ${i}`)}function ta(e,t,n,r){let i=new Ci(new Ft(e,t,n-t),{},r).parse();return{glyphs:i.charStrings.objects,subrs:i.topDict.privateDict?.subrsIndex?.objects,gsubrs:i.globalSubrIndex?.objects,isCFFCIDFont:i.isCIDFont,fdSelect:i.fdSelect,fdArray:i.fdArray}}function na(e,t){let n=t.codePointAt(0),r=0,i=0,a=e.length-1;for(;i<a;){let t=i+a+1>>1;n<e[t].start?a=t-1:i=t}return e[i].start<=n&&n<=e[i].end&&(r=e[i].idDelta+(e[i].ids?e[i].ids[n-e[i].start]:n)&65535),{charCode:n,glyphId:r}}function ra(e,t,n){function r(e,n){l&&t.add(`L`,l),l=[e,n],t.add(`M`,[e,n])}function i(e,n){t.add(`L`,[e,n])}function a(e,n,r,i){t.add(`Q`,[e,n,r,i])}let o=0,s=Re(e,o),c,l=null,u=0,d=0;if(o+=10,s<0)do{c=ze(e,o);let r=ze(e,o+2),i,a;o+=4,1&c?(2&c?(i=Re(e,o),a=Re(e,o+2)):(i=ze(e,o),a=ze(e,o+2)),o+=4):2&c?(i=Le(e,o++),a=Le(e,o++)):(i=e[o++],a=e[o++]),2&c?(u=i,d=a):(u=0,d=0);let s=1,l=1,f=0,p=0;8&c?(s=l=Qi(e,o),o+=2):64&c?(s=Qi(e,o),l=Qi(e,o+2),o+=4):128&c&&(s=Qi(e,o),f=Qi(e,o+2),p=Qi(e,o+4),l=Qi(e,o+6),o+=8);let m=n.glyphs[r];m&&(t.save(),t.transform([s,f,p,l,u,d]),ra(m,t,n),t.restore())}while(32&c);else{let t=[],n,l;for(n=0;n<s;n++)t.push(ze(e,o)),o+=2;o+=2+ze(e,o);let f=t.at(-1)+1,p=[];for(;p.length<f;){c=e[o++];let t=1;for(8&c&&(t+=e[o++]);t-- >0;)p.push({flags:c})}for(n=0;n<f;n++){switch(18&p[n].flags){case 0:u+=Re(e,o),o+=2;break;case 2:u-=e[o++];break;case 18:u+=e[o++]}p[n].x=u}for(n=0;n<f;n++){switch(36&p[n].flags){case 0:d+=Re(e,o),o+=2;break;case 4:d-=e[o++];break;case 36:d+=e[o++]}p[n].y=d}let m=0;for(o=0;o<s;o++){let e=t[o],s=p.slice(m,e+1);if(1&s[0].flags)s.push(s[0]);else if(1&s.at(-1).flags)s.unshift(s.at(-1));else{let e={flags:1,x:(s[0].x+s.at(-1).x)/2,y:(s[0].y+s.at(-1).y)/2};s.unshift(e),s.push(e)}for(r(s[0].x,s[0].y),n=1,l=s.length;n<l;n++)1&s[n].flags?i(s[n].x,s[n].y):1&s[n+1].flags?(a(s[n].x,s[n].y,s[n+1].x,s[n+1].y),n++):a(s[n].x,s[n].y,(s[n].x+s[n+1].x)/2,(s[n].y+s[n+1].y)/2);m=e+1}}}function ia(e,t,n,r){function i(e,n){d&&t.add(`L`,d),d=[e,n],t.add(`M`,[e,n])}function a(e,n){t.add(`L`,[e,n])}function o(e,n,r,i,a,o){t.add(`C`,[e,n,r,i,a,o])}let s=[],c=0,l=0,u=0,d=null;(function e(d){let f=0;for(;f<d.length;){let p,h,g,_,v,y,b,x,S,C=!1,T=d[f++];switch(T){case 1:case 3:case 18:case 23:u+=s.length>>1,C=!0;break;case 4:l+=s.pop(),i(c,l),C=!0;break;case 5:for(;s.length>0;)c+=s.shift(),l+=s.shift(),a(c,l);break;case 6:for(;s.length>0&&(c+=s.shift(),a(c,l),s.length!==0);)l+=s.shift(),a(c,l);break;case 7:for(;s.length>0&&(l+=s.shift(),a(c,l),s.length!==0);)c+=s.shift(),a(c,l);break;case 8:for(;s.length>0;)p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+s.shift(),o(p,g,h,_,c,l);break;case 10:if(x=s.pop(),S=null,n.isCFFCIDFont){let e=n.fdSelect.getFDIndex(r);if(e>=0&&e<n.fdArray.length){let t=n.fdArray[e],r;t.privateDict?.subrsIndex&&(r=t.privateDict.subrsIndex.objects),r&&(x+=$i(r),S=r[x])}else m(`Invalid fd index for glyph index.`)}else S=n.subrs[x+n.subrsBias];S&&e(S);break;case 11:return;case 12:switch(T=d[f++],T){case 34:p=c+s.shift(),h=p+s.shift(),v=l+s.shift(),c=h+s.shift(),o(p,l,h,v,c,v),p=c+s.shift(),h=p+s.shift(),c=h+s.shift(),o(p,v,h,l,c,l);break;case 35:p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+s.shift(),o(p,g,h,_,c,l),p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+s.shift(),o(p,g,h,_,c,l),s.pop();break;case 36:p=c+s.shift(),v=l+s.shift(),h=p+s.shift(),y=v+s.shift(),c=h+s.shift(),o(p,v,h,y,c,y),p=c+s.shift(),h=p+s.shift(),b=y+s.shift(),c=h+s.shift(),o(p,y,h,b,c,l);break;case 37:let e=c,t=l;p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+s.shift(),o(p,g,h,_,c,l),p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h,l=_,Math.abs(c-e)>Math.abs(l-t)?c+=s.shift():l+=s.shift(),o(p,g,h,_,c,l);break;default:throw new w(`unknown operator: 12 ${T}`)}break;case 14:if(s.length>=4){let e=s.pop(),r=s.pop();l=s.pop(),c=s.pop(),t.save(),t.translate(c,l);let i=na(n.cmap,String.fromCharCode(n.glyphNameMap[$r[e]]));ia(n.glyphs[i.glyphId],t,n,i.glyphId),t.restore(),i=na(n.cmap,String.fromCharCode(n.glyphNameMap[$r[r]])),ia(n.glyphs[i.glyphId],t,n,i.glyphId)}return;case 19:case 20:u+=s.length>>1,f+=u+7>>3,C=!0;break;case 21:l+=s.pop(),c+=s.pop(),i(c,l),C=!0;break;case 22:c+=s.pop(),i(c,l),C=!0;break;case 24:for(;s.length>2;)p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+s.shift(),o(p,g,h,_,c,l);c+=s.shift(),l+=s.shift(),a(c,l);break;case 25:for(;s.length>6;)c+=s.shift(),l+=s.shift(),a(c,l);p=c+s.shift(),g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+s.shift(),o(p,g,h,_,c,l);break;case 26:for(s.length%2&&(c+=s.shift());s.length>0;)p=c,g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h,l=_+s.shift(),o(p,g,h,_,c,l);break;case 27:for(s.length%2&&(l+=s.shift());s.length>0;)p=c+s.shift(),g=l,h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_,o(p,g,h,_,c,l);break;case 28:s.push(Re(d,f)),f+=2;break;case 29:x=s.pop()+n.gsubrsBias,S=n.gsubrs[x],S&&e(S);break;case 30:for(;s.length>0&&(p=c,g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+(s.length===1?s.shift():0),o(p,g,h,_,c,l),s.length!==0);)p=c+s.shift(),g=l,h=p+s.shift(),_=g+s.shift(),l=_+s.shift(),c=h+(s.length===1?s.shift():0),o(p,g,h,_,c,l);break;case 31:for(;s.length>0&&(p=c+s.shift(),g=l,h=p+s.shift(),_=g+s.shift(),l=_+s.shift(),c=h+(s.length===1?s.shift():0),o(p,g,h,_,c,l),s.length!==0);)p=c,g=l+s.shift(),h=p+s.shift(),_=g+s.shift(),c=h+s.shift(),l=_+(s.length===1?s.shift():0),o(p,g,h,_,c,l);break;default:if(T<32)throw new w(`unknown operator: ${T}`);T<247?s.push(T-139):T<251?s.push(256*(T-247)+d[f++]+108):T<255?s.push(256*-(T-251)-d[f++]-108):(s.push((d[f]<<24|d[f+1]<<16|d[f+2]<<8|d[f+3])/65536),f+=4)}C&&(s.length=0)}})(e)}var aa=class{cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(e,t){if(t){let{currentTransform:n}=this;for(let e=0,r=t.length;e<r;e+=2)M.applyTransform(t,n,e);this.cmds.push(`${e}${t.join(` `)}`)}else this.cmds.push(e)}transform(e){this.currentTransform=M.transform(this.currentTransform,e)}translate(e,t){this.transform([1,0,0,1,e,t])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getSVG(){return this.cmds.join(``)}},oa=class{constructor(e){this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){let{charCode:t,glyphId:n}=na(this.cmap,e),r,i=this.compiledGlyphs[n];if(i===void 0){try{i=this.compileGlyph(this.glyphs[n],n)}catch(e){i=``,r=e}this.compiledGlyphs[n]=i}if(this.compiledCharCodeToGlyphId[t]??=n,r)throw r;return i}compileGlyph(e,n){if(!e?.length||e[0]===14)return``;let r=this.fontMatrix;if(this.isCFFCIDFont){let e=this.fdSelect.getFDIndex(n);e>=0&&e<this.fdArray.length?r=this.fdArray[e].getByName(`FontMatrix`)||t:m(`Invalid fd index for glyph index.`)}g(He(r,6),`Expected a valid fontMatrix.`);let i=new aa;return i.transform(r.slice()),this.compileGlyphImpl(e,i,n),i.add(`Z`),i.getSVG()}compileGlyphImpl(){h(`Children classes should implement this.`)}hasBuiltPath(e){let{charCode:t,glyphId:n}=na(this.cmap,e);return this.compiledGlyphs[n]!==void 0&&this.compiledCharCodeToGlyphId[t]!==void 0}},sa=class extends oa{constructor(e,t,n){super(n||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){ra(e,t,this)}},ca=class extends oa{constructor(e,t,n){super(n||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=ii(),this.gsubrsBias=$i(this.gsubrs),this.subrsBias=$i(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,n){ia(e,t,this,n)}},la=class{static create(e,t){let n=new Uint8Array(e.data),r,i,a,o,s,c,l=ze(n,4);for(let e=0,u=12;e<l;e++,u+=16){let e=E(n.subarray(u,u+4)),l=Be(n,u+8),d=Be(n,u+12);switch(e){case`cmap`:r=ea(n,l);break;case`glyf`:i=n.subarray(l,l+d);break;case`loca`:a=n.subarray(l,l+d);break;case`head`:c=ze(n,l+18),s=ze(n,l+50);break;case`CFF `:o=ta(n,l,l+d,t)}}if(i){let t=c?[1/c,0,0,1/c,0,0]:e.fontMatrix;return new sa(function(e,t,n){let r,i;n?(r=4,i=Be):(r=2,i=(e,t)=>2*ze(e,t));let a=[],o=i(t,0);for(let n=r;n<t.length;n+=r){let r=i(t,n);a.push(e.subarray(o,r)),o=r}return a}(i,a,s),r,t)}return new ca(o,r,e.fontMatrix)}};const ua=Ee(function(e){e.Courier=600,e[`Courier-Bold`]=600,e[`Courier-BoldOblique`]=600,e[`Courier-Oblique`]=600,e.Helvetica=Ee(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}),e[`Helvetica-Bold`]=Ee(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}),e[`Helvetica-BoldOblique`]=Ee(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}),e[`Helvetica-Oblique`]=Ee(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}),e.Symbol=Ee(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}),e[`Times-Roman`]=Ee(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}),e[`Times-Bold`]=Ee(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}),e[`Times-BoldItalic`]=Ee(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}),e[`Times-Italic`]=Ee(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}),e.ZapfDingbats=Ee(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})}),da=Ee(function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e[`Courier-Bold`]={ascent:629,descent:-157,capHeight:562,xHeight:439},e[`Courier-Oblique`]={ascent:629,descent:-157,capHeight:562,xHeight:426},e[`Courier-BoldOblique`]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e[`Helvetica-Bold`]={ascent:718,descent:-207,capHeight:718,xHeight:532},e[`Helvetica-Oblique`]={ascent:718,descent:-207,capHeight:718,xHeight:523},e[`Helvetica-BoldOblique`]={ascent:718,descent:-207,capHeight:718,xHeight:532},e[`Times-Roman`]={ascent:683,descent:-217,capHeight:662,xHeight:450},e[`Times-Bold`]={ascent:683,descent:-217,capHeight:676,xHeight:461},e[`Times-Italic`]={ascent:683,descent:-217,capHeight:653,xHeight:441},e[`Times-BoldItalic`]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});var fa=class{constructor({glyfTable:e,isGlyphLocationsLong:t,locaTable:n,numGlyphs:r}){this.glyphs=[];let i=new DataView(n.buffer,n.byteOffset,n.byteLength),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=t?4:2,s=t?i.getUint32(0):2*i.getUint16(0),c=0;for(let e=0;e<r;e++){c+=o;let e=t?i.getUint32(c):2*i.getUint16(c);if(e===s){this.glyphs.push(new pa({}));continue}let n=pa.parse(s,a);this.glyphs.push(n),s=e}}getSize(){return Math.sumPrecise(this.glyphs.map(e=>e.getSize()+3&-4))}write(){let e=this.getSize(),t=new DataView(new ArrayBuffer(e)),n=e>131070,r=n?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));n?i.setUint32(0,0):i.setUint16(0,0);let a=0,o=0;for(let e of this.glyphs)a+=e.write(a,t),a=a+3&-4,o+=r,n?i.setUint32(o,a):i.setUint16(o,a>>1);return{isLocationLong:n,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,n=this.glyphs.length;t<n;t++)this.glyphs[t].scale(e[t])}},pa=class e{constructor({header:e=null,simple:t=null,composites:n=null}){this.header=e,this.simple=t,this.composites=n}static parse(t,n){let[r,i]=ma.parse(t,n);if(t+=r,i.numberOfContours<0){let r=[];for(;;){let[e,i]=_a.parse(t,n);if(t+=e,r.push(i),!(32&i.flags))break}return new e({header:i,composites:r})}return new e({header:i,simple:ga.parse(t,n,i.numberOfContours)})}getSize(){if(!this.header)return 0;let e=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map(e=>e.getSize()));return this.header.getSize()+e}write(e,t){if(!this.header)return 0;let n=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(let n of this.composites)e+=n.write(e,t);return e-n}scale(e){if(!this.header)return;let t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(let n of this.composites)n.scale(t,e)}},ma=class e{constructor({numberOfContours:e,xMin:t,yMin:n,xMax:r,yMax:i}){this.numberOfContours=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i}static parse(t,n){return[10,new e({numberOfContours:n.getInt16(t),xMin:n.getInt16(t+2),yMin:n.getInt16(t+4),xMax:n.getInt16(t+6),yMax:n.getInt16(t+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}},ha=class{constructor({flags:e,xCoordinates:t,yCoordinates:n}){this.xCoordinates=t,this.yCoordinates=n,this.flags=e}},ga=class e{constructor({contours:e,instructions:t}){this.contours=e,this.instructions=t}static parse(t,n,r){let i=[];for(let e=0;e<r;e++){let e=n.getUint16(t);t+=2,i.push(e)}let a=i[r-1]+1,o=n.getUint16(t);t+=2;let s=new Uint8Array(n).slice(t,t+o);t+=o;let c=[];for(let e=0;e<a;t++,e++){let r=n.getUint8(t);if(c.push(r),8&r){let i=n.getUint8(++t);r^=8;for(let e=0;e<i;e++)c.push(r);e+=i}}let l=[],u=[],d=[],f=[],p=[],m=0,h=0;for(let e=0;e<a;e++){let r=c[e];if(2&r){let e=n.getUint8(t++);h+=16&r?e:-e,u.push(h)}else 16&r||(h+=n.getInt16(t),t+=2),u.push(h);i[m]===e&&(m++,l.push(u),u=[])}h=0,m=0;for(let e=0;e<a;e++){let r=c[e];if(4&r){let e=n.getUint8(t++);h+=32&r?e:-e,d.push(h)}else 32&r||(h+=n.getInt16(t),t+=2),d.push(h);f.push(1&r|64&r),i[m]===e&&(u=l[m],m++,p.push(new ha({flags:f,xCoordinates:u,yCoordinates:d})),d=[],f=[])}return new e({contours:p,instructions:s})}getSize(){let e=2*this.contours.length+2+this.instructions.length,t=0,n=0;for(let r of this.contours){e+=r.flags.length;for(let i=0,a=r.xCoordinates.length;i<a;i++){let a=r.xCoordinates[i],o=r.yCoordinates[i],s=Math.abs(a-t);s>255?e+=2:s>0&&(e+=1),t=a,s=Math.abs(o-n),s>255?e+=2:s>0&&(e+=1),n=o}}return e}write(e,t){let n=e,r=[],i=[],a=[],o=0,s=0;for(let n of this.contours){for(let e=0,t=n.xCoordinates.length;e<t;e++){let t=n.flags[e],c=n.xCoordinates[e],l=c-o;if(l===0)t|=16,r.push(0);else{let e=Math.abs(l);e<=255?(t|=l>=0?18:2,r.push(e)):r.push(l)}o=c;let u=n.yCoordinates[e];if(l=u-s,l===0)t|=32,i.push(0);else{let e=Math.abs(l);e<=255?(t|=l>=0?36:4,i.push(e)):i.push(l)}s=u,a.push(t)}t.setUint16(e,r.length-1),e+=2}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(let n of a)t.setUint8(e++,n);for(let n=0,i=r.length;n<i;n++){let i=r[n],o=a[n];2&o?t.setUint8(e++,i):16&o||(t.setInt16(e,i),e+=2)}for(let n=0,r=i.length;n<r;n++){let r=i[n],o=a[n];4&o?t.setUint8(e++,r):32&o||(t.setInt16(e,r),e+=2)}return e-n}scale(e,t){for(let n of this.contours)if(n.xCoordinates.length!==0)for(let r=0,i=n.xCoordinates.length;r<i;r++)n.xCoordinates[r]=Math.round(e+(n.xCoordinates[r]-e)*t)}},_a=class e{constructor({flags:e,glyphIndex:t,argument1:n,argument2:r,transf:i,instructions:a}){this.flags=e,this.glyphIndex=t,this.argument1=n,this.argument2=r,this.transf=i,this.instructions=a}static parse(t,n){let r=t,i=[],a=n.getUint16(t),o=n.getUint16(t+2),s,c;t+=4,1&a?(2&a?(s=n.getInt16(t),c=n.getInt16(t+2)):(s=n.getUint16(t),c=n.getUint16(t+2)),t+=4,a^=1):(2&a?(s=n.getInt8(t),c=n.getInt8(t+1)):(s=n.getUint8(t),c=n.getUint8(t+1)),t+=2),8&a?(i.push(n.getUint16(t)),t+=2):64&a?(i.push(n.getUint16(t),n.getUint16(t+2)),t+=4):128&a&&(i.push(n.getUint16(t),n.getUint16(t+2),n.getUint16(t+4),n.getUint16(t+6)),t+=8);let l=null;if(256&a){let e=n.getUint16(t);t+=2,l=new Uint8Array(n).slice(t,t+e),t+=e}return[t-r,new e({flags:a,glyphIndex:o,argument1:s,argument2:c,transf:i,instructions:l})]}getSize(){let e=4+2*this.transf.length;return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?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,t){let n=e;return 2&this.flags?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),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-n}scale(e,t){}};function va(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function ya(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function ba(e,t,n){if(n instanceof Uint8Array)e.set(n,t);else if(typeof n==`string`)for(let r=0,i=n.length;r<i;r++)e[t++]=255&n.charCodeAt(r);else for(let r of n)e[t++]=255&r}var xa=class e{constructor(e){this.sfnt=e,this.tables=Object.create(null)}static getSearchParams(e,t){let n=1,r=0;for(;(n^e)>n;)n<<=1,r++;let i=n*t;return{range:i,entry:r,rangeShift:t*e-i}}toArray(){let t=this.sfnt,n=this.tables,r=Object.keys(n);r.sort();let i=r.length,a,o,s,c,l,u=12+16*i,d=[u];for(a=0;a<i;a++)c=n[r[a]],u+=(c.length+3&-4)>>>0,d.push(u);let f=new Uint8Array(u);for(a=0;a<i;a++)c=n[r[a]],ba(f,d[a],c);t===`true`&&(t=O(65536)),f[0]=255&t.charCodeAt(0),f[1]=255&t.charCodeAt(1),f[2]=255&t.charCodeAt(2),f[3]=255&t.charCodeAt(3),va(f,4,i);let p=e.getSearchParams(i,16);for(va(f,6,p.range),va(f,8,p.entry),va(f,10,p.rangeShift),u=12,a=0;a<i;a++){l=r[a],f[u]=255&l.charCodeAt(0),f[u+1]=255&l.charCodeAt(1),f[u+2]=255&l.charCodeAt(2),f[u+3]=255&l.charCodeAt(3);let e=0;for(o=d[a],s=d[a+1];o<s;o+=4)e=e+Be(f,o)>>>0;ya(f,u+4,e),ya(f,u+8,d[a]),ya(f,u+12,n[l].length),u+=16}return f}addTable(e,t){if(e in this.tables)throw Error(`Table `+e+` already exists`);this.tables[e]=t}};const Sa=[4],Ca=[5],wa=[6],Ta=[7],Ea=[8],Da=[12,35],Oa=[14],ka=[21],Aa=[22],ja=[30],Ma=[31];var Na=class{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(e,t,n){let r=e.length,i,a,o,s=!1;for(let c=0;c<r;c++){let r=e[c];if(r<32){switch(r===12&&(r=(r<<8)+e[++c]),r){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){s=!0;break}let e=this.stack.pop();this.stack.push(0,e);break}s=this.executeCommand(1,Sa);break;case 5:s=this.executeCommand(2,Ca);break;case 6:s=this.executeCommand(1,wa);break;case 7:s=this.executeCommand(1,Ta);break;case 8:s=this.executeCommand(6,Ea);break;case 10:if(this.stack.length<1){s=!0;break}if(o=this.stack.pop(),!t[o]){s=!0;break}s=this.convert(t[o],t,n);break;case 11:return s;case 13:if(this.stack.length<2){s=!0;break}i=this.stack.pop(),a=this.stack.pop(),this.lsb=a,this.width=i,this.stack.push(i,a),s=this.executeCommand(2,Aa);break;case 14:this.output.push(Oa[0]);break;case 21:if(this.flexing)break;s=this.executeCommand(2,ka);break;case 22:if(this.flexing){this.stack.push(0);break}s=this.executeCommand(1,Aa);break;case 30:s=this.executeCommand(4,ja);break;case 31:s=this.executeCommand(4,Ma);break;case 3078:if(n){let e=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-e,s=this.executeCommand(0,Oa)}else s=this.executeCommand(4,Oa);break;case 3079:if(this.stack.length<4){s=!0;break}this.stack.pop(),i=this.stack.pop();let e=this.stack.pop();a=this.stack.pop(),this.lsb=a,this.width=i,this.stack.push(i,a,e),s=this.executeCommand(3,ka);break;case 3084:if(this.stack.length<2){s=!0;break}let c=this.stack.pop(),l=this.stack.pop();this.stack.push(l/c);break;case 3088:if(this.stack.length<2){s=!0;break}o=this.stack.pop();let u=this.stack.pop();if(o===0&&u===3){let e=this.stack.splice(-17,17);this.stack.push(e[2]+e[0],e[3]+e[1],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14]),s=this.executeCommand(13,Da,!0),this.flexing=!1,this.stack.push(e[15],e[16])}else o===1&&u===0&&(this.flexing=!0);break;case 3089:break;default:m(`Unknown type 1 charstring command of "`+r+`"`)}if(s)break}else r<=246?r-=139:r=r<=250?256*(r-247)+e[++c]+108:r<=254?-256*(r-251)-e[++c]-108:(255&e[++c])<<24|(255&e[++c])<<16|(255&e[++c])<<8|255&e[++c],this.stack.push(r)}return s}executeCommand(e,t,n){let r=this.stack.length;if(e>r)return!0;let i=r-e;for(let e=i;e<r;e++){let t=this.stack[e];Number.isInteger(t)?this.output.push(28,t>>8&255,255&t):(t=65536*t|0,this.output.push(255,t>>24&255,t>>16&255,t>>8&255,255&t))}return this.output.push(...t),n?this.stack.splice(i,e):this.stack.length=0,!1}};function Pa(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Fa(e,t,n){if(n>=e.length)return new Uint8Array;let r,i,a=0|t;for(r=0;r<n;r++)a=52845*(e[r]+a)+22719&65535;let o=e.length-n,s=new Uint8Array(o);for(r=n,i=0;i<o;r++,i++){let t=e[r];s[i]=t^a>>8,a=52845*(t+a)+22719&65535}return s}function Ia(e){return e===47||e===91||e===93||e===123||e===125||e===40||e===41}var La=class{constructor(e,t,n){if(t){let t=e.getBytes();e=new Ft((Pa(t[0])||Ve(t[0]))&&Pa(t[1])&&Pa(t[2])&&Pa(t[3])&&Pa(t[4])&&Pa(t[5])&&Pa(t[6])&&Pa(t[7])?function(e,t,n){let r=0|t,i=e.length,a=new Uint8Array(i>>>1),o,s;for(o=0,s=0;o<i;o++){let t=e[o];if(!Pa(t))continue;let n;for(o++;o<i&&!Pa(n=e[o]);)o++;if(o<i){let e=parseInt(String.fromCharCode(t,n),16);a[s++]=e^r>>8,r=52845*(e+r)+22719&65535}}return a.slice(n,s)}(t,55665,4):Fa(t,55665,4))}this.seacAnalysisEnabled=!!n,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();let e=[];for(;;){let t=this.getToken();if(t===null||t===`]`||t===`}`)break;e.push(parseFloat(t||0))}return e}readNumber(){let e=this.getToken();return parseFloat(e||0)}readInt(){let e=this.getToken();return 0|parseInt(e||0,10)}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 e=!1,t=this.currentChar;for(;;){if(t===-1)return null;if(e)t!==10&&t!==13||(e=!1);else if(t===37)e=!0;else if(!Ve(t))break;t=this.nextChar()}if(Ia(t))return this.nextChar(),String.fromCharCode(t);let n=``;do n+=String.fromCharCode(t),t=this.nextChar();while(t>=0&&!Ve(t)&&!Ia(t));return n}readCharStrings(e,t){return t===-1?e:Fa(e,4330,t)}extractFontProgram(e){let t=this.stream,n=[],r=[],i=Object.create(null);i.lenIV=4;let a={subrs:[],charstrings:[],properties:{privateData:i}},o,s,c,l;for(;(o=this.getToken())!==null;)if(o===`/`)switch(o=this.getToken(),o){case`CharStrings`:for(this.getToken(),this.getToken(),this.getToken(),this.getToken();o=this.getToken(),o!==null&&o!==`end`;){if(o!==`/`)continue;let e=this.getToken();s=this.readInt(),this.getToken(),c=s>0?t.getBytes(s):new Uint8Array,l=a.properties.privateData.lenIV;let n=this.readCharStrings(c,l);this.nextChar(),o=this.getToken(),o===`noaccess`?this.getToken():o===`/`&&this.prevChar(),r.push({glyph:e,encoded:n})}break;case`Subrs`:for(this.readInt(),this.getToken();this.getToken()===`dup`;){let e=this.readInt();s=this.readInt(),this.getToken(),c=s>0?t.getBytes(s):new Uint8Array,l=a.properties.privateData.lenIV;let r=this.readCharStrings(c,l);this.nextChar(),o=this.getToken(),o===`noaccess`&&this.getToken(),n[e]=r}break;case`BlueValues`:case`OtherBlues`:case`FamilyBlues`:case`FamilyOtherBlues`:let e=this.readNumberArray();e.length>0&&e.length;break;case`StemSnapH`:case`StemSnapV`:a.properties.privateData[o]=this.readNumberArray();break;case`StdHW`:case`StdVW`:a.properties.privateData[o]=this.readNumberArray()[0];break;case`BlueShift`:case`lenIV`:case`BlueFuzz`:case`BlueScale`:case`LanguageGroup`:a.properties.privateData[o]=this.readNumber();break;case`ExpansionFactor`:a.properties.privateData[o]=this.readNumber()||.06;break;case`ForceBold`:a.properties.privateData[o]=this.readBoolean()}for(let{encoded:t,glyph:i}of r){let r=new Na,o=r.convert(t,n,this.seacAnalysisEnabled),s=r.output;o&&(s=[14]);let c={glyphName:i,charstring:s,width:r.width,lsb:r.lsb,seac:r.seac};if(i===`.notdef`?a.charstrings.unshift(c):a.charstrings.push(c),e.builtInEncoding){let t=e.builtInEncoding.indexOf(i);t>-1&&e.widths[t]===void 0&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=r.width)}}return a}extractFontHeader(e){let t;for(;(t=this.getToken())!==null;)if(t===`/`)switch(t=this.getToken(),t){case`FontMatrix`:e.fontMatrix=this.readNumberArray();break;case`Encoding`:let n=this.getToken(),r;if(/^\d+$/.test(n)){r=[];let e=0|parseInt(n,10);this.getToken();for(let n=0;n<e;n++){for(t=this.getToken();t!==`dup`&&t!==`def`;)if(t=this.getToken(),t===null)return;if(t===`def`)break;let e=this.readInt();this.getToken();let n=this.getToken();r[e]=n,this.getToken()}}else r=ri(n);e.builtInEncoding=r;break;case`FontBBox`:let i=this.readNumberArray();e.ascent=Math.max(i[3],i[1]),e.descent=Math.min(i[1],i[3]),e.ascentScaled=!0}}};function Ra(e,t,n){let r=e.length,i=t.length,a=r-i,o=n,s=!1;for(;o<a;){let n=0;for(;n<i&&e[o+n]===t[n];)n++;if(n>=i){for(o+=n;o<r&&Ve(e[o]);)o++;s=!0;break}o++}return{found:s,length:o}}var za=class{constructor(e,t,n){let r=n.length1;n.length2;let i=t.peekBytes(6),a=i[0]===128&&i[1]===1;a&&(t.skip(6),r=i[5]<<24|i[4]<<16|i[3]<<8|i[2]),new La(function(e,t){let n=[101,101,120,101,99],r=e.pos,i,a,o,s;try{i=e.getBytes(t),a=i.length}catch{}if(a===t&&(o=Ra(i,n,t-2*n.length),o.found&&o.length===t))return{stream:new Ft(i),length:t};for(m(`Invalid "Length1" property in Type1 font -- trying to recover.`),e.pos=r;o=Ra(e.peekBytes(2048),n,0),o.length!==0;)if(e.pos+=o.length,o.found){s=e.pos-r;break}return e.pos=r,s?{stream:new Ft(e.getBytes(s)),length:s}:(m(`Unable to recover "Length1" property in Type1 font -- using as is.`),{stream:new Ft(e.getBytes(t)),length:t})}(t,r).stream,!1,!0).extractFontHeader(n),a&&(i=t.getBytes(6),i[5],i[4],i[3],i[2]);let o=new La(function(e){let t=e.getBytes();if(t.length===0)throw new w(`getEexecBlock - no font program found.`);return{stream:new Ft(t),length:t.length}}(t).stream,!0,!0).extractFontProgram(n);for(let e in o.properties)n[e]=o.properties[e];let s=o.charstrings,c=this.getType2Charstrings(s),l=this.getType2Subrs(o.subrs);this.charstrings=s,this.data=this.wrap(e,c,this.charstrings,l,n),this.seacs=this.getSeacs(o.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let e=[`.notdef`];for(let{glyphName:t}of this.charstrings)e.push(t);return e}getGlyphMapping(e){let t=this.charstrings;if(e.composite){let n=Object.create(null);for(let r=0,i=t.length;r<i;r++)n[e.cMap.charCodeOf(r)]=r+1;return n}let n=[`.notdef`],r,i;for(i=0;i<t.length;i++)n.push(t[i].glyphName);let a=e.builtInEncoding;if(a){r=Object.create(null);for(let e in a)i=n.indexOf(a[e]),i>=0&&(r[e]=i)}return mi(e,r,n)}hasGlyphId(e){return e<0||e>=this.numGlyphs?!1:e===0?!0:this.charstrings[e-1].charstring.length>0}getSeacs(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r.seac&&(t[n+1]=r.seac)}return t}getType2Charstrings(e){let t=[];for(let n of e)t.push(n.charstring);return t}getType2Subrs(e){let t=0,n=e.length;t=n<1133?107:n<33769?1131:32768;let r=[],i;for(i=0;i<t;i++)r.push([11]);for(i=0;i<n;i++)r.push(e[i]);return r}wrap(e,t,n,r,i){let a=new wi;a.header=new Ti(1,0,4,4),a.names=[e];let o=new Ai;o.setByName(`version`,391),o.setByName(`Notice`,392),o.setByName(`FullName`,393),o.setByName(`FamilyName`,394),o.setByName(`Weight`,395),o.setByName(`Encoding`,null),o.setByName(`FontMatrix`,i.fontMatrix),o.setByName(`FontBBox`,i.bbox),o.setByName(`charset`,null),o.setByName(`CharStrings`,null),o.setByName(`Private`,null),a.topDict=o;let s=new Ei;s.add(`Version 0.11`),s.add(`See original notice`),s.add(e),s.add(e),s.add(`Medium`),a.strings=s,a.globalSubrIndex=new Di;let c=t.length,l=[`.notdef`],u,d;for(u=0;u<c;u++){let e=n[u].glyphName;bi.indexOf(e)===-1&&s.add(e),l.push(e)}a.charset=new Pi(!1,0,l);let f=new Di;for(f.add([139,14]),u=0;u<c;u++)f.add(t[u]);a.charStrings=f;let p=new Mi;p.setByName(`Subrs`,null);let m=[`BlueValues`,`OtherBlues`,`FamilyBlues`,`FamilyOtherBlues`,`StemSnapH`,`StemSnapV`,`BlueShift`,`BlueFuzz`,`BlueScale`,`LanguageGroup`,`ExpansionFactor`,`ForceBold`,`StdHW`,`StdVW`];for(u=0,d=m.length;u<d;u++){let e=m[u];if(!(e in i.privateData))continue;let t=i.privateData[e];if(Array.isArray(t))for(let e=t.length-1;e>0;e--)t[e]-=t[e-1];p.setByName(e,t)}a.topDict.privateDict=p;let h=new Di;for(u=0,d=r.length;u<d;u++)h.add(r[u]);return p.subrsIndex=h,new Ri(a).compile()}};const Ba=[[57344,63743],[1048576,1114109]],Va=1e3,Ha=[`ascent`,`bbox`,`black`,`bold`,`charProcOperatorList`,`cssFontInfo`,`data`,`defaultVMetrics`,`defaultWidth`,`descent`,`disableFontFace`,`fallbackName`,`fontExtraProperties`,`fontMatrix`,`isInvalidPDFjsFont`,`isType3Font`,`italic`,`loadedName`,`mimetype`,`missingFile`,`name`,`remeasure`,`systemFontInfo`,`vertical`],Ua=[`cMap`,`composite`,`defaultEncoding`,`differences`,`isMonospace`,`isSerifFont`,`isSymbolicFont`,`seacMap`,`subtype`,`toFontChar`,`toUnicode`,`type`,`vmetrics`,`widths`];function Wa(e){if(!e.fontMatrix||e.fontMatrix[0]===t[0])return;let n=.001/e.fontMatrix[0],r=e.widths;for(let e in r)r[e]*=n;e.defaultWidth*=n}function Ga(e){if(!e.fallbackToUnicode||e.toUnicode instanceof Xi)return;let t=[];for(let n in e.fallbackToUnicode)e.toUnicode.has(n)||(t[n]=e.fallbackToUnicode[n]);t.length>0&&e.toUnicode.amend(t)}var Ka=class{constructor(e,t,n,r,i,a,o,s,c){this.originalCharCode=e,this.fontChar=t,this.unicode=n,this.accent=r,this.width=i,this.vmetric=a,this.operatorListId=o,this.isSpace=s,this.isInFont=c}get category(){return v(this,`category`,function(e){let t=di.get(e);if(t)return t;let n=e.match(ui),r={isWhitespace:!!n?.[1],isZeroWidthDiacritic:!!n?.[2],isInvisibleFormatMark:!!n?.[3]};return di.set(e,r),r}(this.unicode),!0)}};function qa(e,t){return(e<<8)+t}function Ja(e,t,n){e[t+1]=n,e[t]=n>>>8}function Ya(e,t){let n=(e<<8)+t;return 32768&n?n-65536:n}function Xa(e){return String.fromCharCode(e>>8&255,255&e)}function Za(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function Qa(e){return E(e.peekBytes(4))===`ttcf`}function $a(e,{type:t,subtype:n,composite:r}){let i,a;return function(e){let t=e.peekBytes(4);return Be(t,0)===65536||E(t)===`true`}(e)||Qa(e)?i=r?`CIDFontType2`:`TrueType`:function(e){return E(e.peekBytes(4))===`OTTO`}(e)?i=r?`CIDFontType2`:`OpenType`:function(e){let t=e.peekBytes(2);return t[0]===37&&t[1]===33||t[0]===128&&t[1]===1}(e)?i=r?`CIDFontType0`:t===`MMType1`?`MMType1`:`Type1`:function(e){let t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?r?(i=`CIDFontType0`,a=`CIDFontType0C`):(i=t===`MMType1`?`MMType1`:`Type1`,a=`Type1C`):(m(`getFontFileType: Unable to detect correct font file Type/Subtype.`),i=t,a=n),[i,a]}function eo(e,t){for(let n in t)e[+n]=t[n]}function to(e,t,n){let r=[],i;for(let n=0,a=e.length;n<a;n++)i=si(e[n],t),i!==-1&&(r[n]=i);for(let e in n)i=si(n[e],t),i!==-1&&(r[+e]=i);return r}function no(e){return e.platform===1&&e.encoding===0&&e.language===0}function ro(e){return e.platform===3&&e.encoding===1&&e.language===1033}function io(e,t,n=!1){switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}let r=`Unsupported CID string (charCode ${e}): "${t}".`;if(n)throw new w(r);return m(r),t}function ao(e,t,n,r){let i=Object.create(null),a=new Map,o=[],s=new Set,c=0,l=Ba[c][0],u=Ba[c][1],d=e=>Ba[0][0]<=e&&e<=Ba[0][1]||Ba[1][0]<=e&&e<=Ba[1][1],f=null;for(let p in e){let h=e[p];if(!t(h))continue;if(l>u){if(c++,c>=Ba.length){m(`Ran out of space in font private use area.`);break}l=Ba[c][0],u=Ba[c][1]}let g=l++;h===0&&(h=n);let _=r.get(p);if(typeof _==`string`)if(_.length===1)_=_.codePointAt(0);else{if(!f){f=new Map;for(let e=64256;e<=64335;e++){let t=String.fromCharCode(e).normalize(`NFKD`);t.length>1&&f.set(t,e)}}_=f.get(_)||_.codePointAt(0)}!_||d(_)||s.has(h)||(a.set(_,h),s.add(h)),i[g]=h,o[p]=g}return{toFontChar:o,charCodeToGlyphId:i,toUnicodeExtraMap:a,nextAvailableFontCharCode:l}}function oo(e,t,n){let r=function(e,t,n){let r=[];for(let t in e)e[t]>=n||r.push({fontCharCode:0|t,glyphId:e[t]});if(t)for(let[e,i]of t)i>=n||r.push({fontCharCode:e,glyphId:i});r.length===0&&r.push({fontCharCode:0,glyphId:0}),r.sort((e,t)=>e.fontCharCode-t.fontCharCode);let i=[],a=r.length;for(let e=0;e<a;){let t=r[e].fontCharCode,n=[r[e].glyphId];++e;let o=t;for(;e<a&&o+1===r[e].fontCharCode&&(n.push(r[e].glyphId),++o,++e,o!==65535););i.push([t,o,n])}return i}(e,t,n),i=r.at(-1)[1]>65535?2:1,a,o,s,c,l=`\0\0`+Xa(i)+`\0\0`+O(4+8*i);for(a=r.length-1;a>=0&&!(r[a][0]<=65535);--a);let u=a+1;r[a][0]<65535&&r[a][1]===65535&&(r[a][1]=65534);let d=+(r[a][1]<65535),f=u+d,p=xa.getSearchParams(f,2),m,h,g,_,v=``,y=``,b=``,x=``,S=``,C=0;for(a=0,o=u;a<o;a++){m=r[a],h=m[0],g=m[1],v+=Xa(h),y+=Xa(g),_=m[2];let e=!0;for(s=1,c=_.length;s<c;++s)if(_[s]!==_[s-1]+1){e=!1;break}if(e)b+=Xa(_[0]-h&65535),x+=Xa(0);else{let e=2*(f-a)+2*C;for(C+=g-h+1,b+=Xa(0),x+=Xa(e),s=0,c=_.length;s<c;++s)S+=Xa(_[s])}}d>0&&(y+=`ÿÿ`,v+=`ÿÿ`,b+=`\0`,x+=`\0\0`);let w=`\0\0`+Xa(2*f)+Xa(p.range)+Xa(p.entry)+Xa(p.rangeShift)+y+`\0\0`+v+b+x+S,T=``,E=``;if(i>1){for(l+=`\0\0
|
|
4
4
|
`+O(4+8*i+4+w.length),T=``,a=0,o=r.length;a<o;a++){m=r[a],h=m[0],_=m[2];let e=_[0];for(s=1,c=_.length;s<c;++s)_[s]!==_[s-1]+1&&(g=m[0]+s-1,T+=O(h)+O(g)+O(e),h=g+1,e=_[s]);T+=O(h)+O(m[1])+O(e)}E=`\0\f\0\0`+O(T.length+16)+`\0\0\0\0`+O(T.length/12)}return l+`\0`+Xa(w.length+4)+w+E+T}function so(e,t,n){n||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let r=0,i=0,a=0,o=0,s=null,c=0,l=-1;if(t){for(let e in t)if(e|=0,(s>e||!s)&&(s=e),c<e&&(c=e),l=li(e,l),l<32)r|=1<<l;else if(l<64)i|=1<<l-32;else if(l<96)a|=1<<l-64;else{if(!(l<123))throw new w(`Unicode ranges Bits > 123 are reserved for internal usage`);o|=1<<l-96}c>65535&&(c=65535)}else s=0,c=255;let u=e.bbox||[0,0,0,0],d=n.unitsPerEm||(e.fontMatrix?1/Math.max(...e.fontMatrix.slice(0,4).map(Math.abs)):1e3),f=e.ascentScaled?1:d/Va,p=n.ascent||Math.round(f*(e.ascent||u[3])),m=n.descent||Math.round(f*(e.descent||u[1]));m>0&&e.descent>0&&u[1]<0&&(m=-m);let h=n.yMax||p,g=-n.yMin||-m;return`\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0`+String.fromCharCode(e.fixedPitch?9:0)+`\0\0\0\0\0\0`+O(r)+O(i)+O(a)+O(o)+`*21*`+Xa(+!!e.italicAngle)+Xa(s||e.firstChar)+Xa(c||e.lastChar)+Xa(p)+Xa(m)+`\0d`+Xa(h)+Xa(g)+`\0\0\0\0\0\0\0\0`+Xa(e.xHeight)+Xa(e.capHeight)+Xa(0)+Xa(s||e.firstChar)+`\0`}function co(e){return`\0\0\0`+O(Math.floor(65536*e.italicAngle))+`\0\0\0\0`+O(+!!e.fixedPitch)+`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`}function lo(e){return e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,``).slice(0,63)}function uo(e,t){t||=[[],[]];let n=[t[0][0]||`Original licence`,t[0][1]||e,t[0][2]||`Unknown`,t[0][3]||`uniqueID`,t[0][4]||e,t[0][5]||`Version 0.11`,t[0][6]||lo(e),t[0][7]||`Unknown`,t[0][8]||`Unknown`,t[0][9]||`Unknown`],r=[],i,a,o,s,c;for(i=0,a=n.length;i<a;i++){c=t[1][i]||n[i];let e=[];for(o=0,s=c.length;o<s;o++)e.push(Xa(c.charCodeAt(o)));r.push(e.join(``))}let l=[n,r],u=[`\0`,`\0`],d=[`\0\0`,`\0`],f=[`\0\0`,` `],p=n.length*u.length,m=`\0\0`+Xa(p)+Xa(12*p+6),h=0;for(i=0,a=u.length;i<a;i++){let e=l[i];for(o=0,s=e.length;o<s;o++)c=e[o],m+=u[i]+d[i]+f[i]+Xa(o)+Xa(c.length)+Xa(h),h+=c.length}return m+=n.join(``)+r.join(``),m}var fo=class{constructor(e,t,n,r){this.name=e,this.psName=null,this.mimetype=null,this.disableFontFace=r.disableFontFace,this.fontExtraProperties=r.fontExtraProperties,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.cssFontInfo=n.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let i=!!(n.flags&2);if(!i&&!n.isSimulatedFlags){let t=zi(),n=Vi(),r=Hi();for(let a of e.split(`+`)){let e=a.replaceAll(/[,_]/g,`-`);if(e=t[e]||n[e]||e,e=e.split(`-`,1)[0],r[e]){i=!0;break}}}this.isSerifFont=i,this.isSymbolicFont=!!(n.flags&4),this.isMonospace=!!(n.flags&1);let{type:a,subtype:o}=n;this.type=a,this.subtype=o,this.systemFontInfo=n.systemFontInfo;let s=e.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!s,this.isInvalidPDFjsFont?this.fallbackName=s[1]:this.isMonospace?this.fallbackName=`monospace`:this.isSerifFont?this.fallbackName=`serif`:this.fallbackName=`sans-serif`,this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.capHeight=n.capHeight/Va,this.ascent=n.ascent/Va,this.descent=n.descent/Va,this.lineHeight=this.ascent-this.descent,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.toFontChar=[],n.type===`Type3`){for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||n.defaultEncoding[e];return}if(this.cidEncoding=n.cidEncoding||``,this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!t||t.isEmpty)return t&&m(`Font file is empty in "`+e+`" (`+this.loadedName+`)`),void this.fallbackToSystemFont(n);let c;[a,o]=$a(t,n),a===this.type&&o===this.subtype||p(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${a}/${o}.`);try{switch(a){case`MMType1`:p(`MMType1 font (`+e+`), falling back to Type1.`);case`Type1`:case`CIDFontType0`:this.mimetype=`font/opentype`;let r=o===`Type1C`||o===`CIDFontType0C`?new Zi(t,n):new za(e,t,n);Wa(n),c=this.convert(e,r,n);break;case`OpenType`:case`TrueType`:case`CIDFontType2`:this.mimetype=`font/opentype`,c=this.checkAndRepair(e,t,n),Wa(n),this.isOpenType&&(a=`OpenType`);break;default:throw new w(`Font ${a} is not supported`)}}catch(e){m(e),this.fallbackToSystemFont(n);return}Ga(n),this.data=c,this.type=a,this.subtype=o,this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}get renderer(){return v(this,`renderer`,la.create(this,!0))}exportData(){let e=Object.create(null);for(let t of Ha){let n=this[t];n!==void 0&&(e[t]=n)}if(!this.fontExtraProperties)return{data:e};let t=Object.create(null);for(let e of Ua){let n=this[e];n!==void 0&&(t[e]=n)}return{data:e,extra:t}}fallbackToSystemFont(e){this.missingFile=!0;let{name:t,type:n}=this,r=hi(t),i=zi(),a=Vi(),o=!!i[r],s=!(!a[r]||!i[a[r]]);r=i[r]||a[r]||r;let c=da()[r];c&&(isNaN(this.ascent)&&(this.ascent=c.ascent/Va),isNaN(this.descent)&&(this.descent=c.descent/Va),isNaN(this.capHeight)&&(this.capHeight=c.capHeight/Va)),this.bold=/bold/gi.test(r),this.italic=/oblique|italic/gi.test(r),this.black=/Black/g.test(t);let l=/Narrow/g.test(t);if(this.remeasure=(!o||l)&&Object.keys(this.widths).length>0,(o||s)&&n===`CIDFontType2`&&this.cidEncoding.startsWith(`Identity-`)){let n=e.cidToGidMap,r=[];if(eo(r,Wi()),/Arial-?Black/i.test(t)?eo(r,Gi()):/Calibri/i.test(t)&&eo(r,Ki()),n){for(let e in r){let t=r[e];n[t]!==void 0&&(r[+e]=n[t])}n.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof Xi&&this.toUnicode.forEach(function(e,t){n[r[e]]===void 0&&(r[+e]=t)})}this.toUnicode instanceof Xi||this.toUnicode.forEach(function(e,t){r[+e]=t}),this.toFontChar=r,this.toUnicode=new Yi(r)}else if(/Symbol/i.test(r))this.toFontChar=to(ti,ii(),this.differences);else if(/Dingbats/i.test(r))this.toFontChar=to(ni,ai(),this.differences);else if(o||s){let e=to(this.defaultEncoding,ii(),this.differences);n!==`CIDFontType2`||this.cidEncoding.startsWith(`Identity-`)||this.toUnicode instanceof Xi||this.toUnicode.forEach(function(t,n){e[+t]=n}),this.toFontChar=e}else{let e=ii(),n=[];this.toUnicode.forEach((t,r)=>{if(!this.composite){let n=si(this.differences[t]||this.defaultEncoding[t],e);n!==-1&&(r=n)}n[+t]=r}),this.composite&&this.toUnicode instanceof Xi&&/Tahoma|Verdana/i.test(t)&&eo(n,Wi()),this.toFontChar=n}Ga(e),this.loadedName=r.split(`-`,1)[0]}checkAndRepair(e,t,n){let r=[`OS/2`,`cmap`,`head`,`hhea`,`hmtx`,`maxp`,`name`,`post`,`loca`,`glyf`,`fpgm`,`prep`,`cvt `,`CFF `];function i(e,t){let n=Object.create(null);n[`OS/2`]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(let i=0;i<t;i++){let t=a(e);r.includes(t.tag)&&t.length!==0&&(n[t.tag]=t)}return n}function a(e){let t=e.getString(4),n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,a=e.pos;e.pos=e.start||0,e.skip(r);let o=e.getBytes(i);return e.pos=a,t===`head`&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:n,length:i,offset:r,data:o}}function o(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function s(e,t,n,r,i,a){let o={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||n>e.length||n-t<=12)return o;let s=e.subarray(t,n),c=Ya(s[2],s[3]),l=Ya(s[4],s[5]),u=Ya(s[6],s[7]),d=Ya(s[8],s[9]);c>u&&(Ja(s,2,u),Ja(s,6,c)),l>d&&(Ja(s,4,d),Ja(s,8,l));let f=Ya(s[0],s[1]);if(f<0)return f<-1||(r.set(s,i),o.length=s.length),o;let p,m=10,h=0;for(p=0;p<f;p++)h=(s[m]<<8|s[m+1])+1,m+=2;let g=m,_=s[m]<<8|s[m+1];o.sizeOfInstructions=_,m+=2+_;let v=m,y=0;for(p=0;p<h;p++){let e=s[m++];192&e&&(s[m-1]=63&e);let t=2;2&e?t=1:16&e&&(t=0);let n=2;4&e?n=1:32&e&&(n=0);let r=t+n;if(y+=r,8&e){let e=s[m++];e===0&&(s[m-1]^=8),p+=e,y+=e*r}}if(y===0)return o;let b=m+y;return b>s.length?o:!a&&_>0?(r.set(s.subarray(0,g),i),r.set([0,0],i+g),r.set(s.subarray(v,b),i+g+2),b-=_,s.length-b>3&&(b=b+3&-4),o.length=b,o):s.length-b>3?(b=b+3&-4,r.set(s.subarray(0,b),i),o.length=b,o):(r.set(s,i),o.length=s.length,o)}function c(e){let n=(t.start||0)+e.offset;t.pos=n;let r=[[],[]],i=[],a=e.length,o=n+a;if(t.getUint16()!==0||a<6)return[r,i];let s=t.getUint16(),c=t.getUint16(),l,u;for(l=0;l<s&&t.pos+12<=o;l++){let e={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(no(e)||ro(e))&&i.push(e)}for(l=0,u=i.length;l<u;l++){let e=i[l];if(e.length<=0)continue;let a=n+c+e.offset;if(a+e.length>o)continue;t.pos=a;let s=e.name;if(e.encoding){let n=``;for(let r=0,i=e.length;r<i;r+=2)n+=String.fromCharCode(t.getUint16());r[1][s]=n}else r[0][s]=t.getString(e.length)}return[r,i]}let l=[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 u(e,t){let n,r,i,a,o,s=e.data,c=0,u=0,d=0,f=[],h=[],g=[],_=t.tooComplexToFollowFunctions,v=!1,y=0,b=0;for(let e=s.length;c<e;){let e=s[c++];if(e===64)if(r=s[c++],v||b)c+=r;else for(n=0;n<r;n++)f.push(s[c++]);else if(e===65)if(r=s[c++],v||b)c+=2*r;else for(n=0;n<r;n++)i=s[c++],f.push(i<<8|s[c++]);else if((248&e)==176)if(r=e-176+1,v||b)c+=r;else for(n=0;n<r;n++)f.push(s[c++]);else if((248&e)==184)if(r=e-184+1,v||b)c+=2*r;else for(n=0;n<r;n++)i=s[c++],f.push(Ya(i,s[c++]));else if(e!==43||_)if(e!==44||_){if(e===45)if(v)v=!1,u=c;else{if(o=h.pop(),!o)return m(`TT: ENDF bad stack`),void(t.hintsValid=!1);a=g.pop(),s=o.data,c=o.i,t.functionsStackDeltas[a]=f.length-o.stackTop}else if(e===137)(v||b)&&(m(`TT: nested IDEFs not allowed`),_=!0),v=!0,d=c;else if(e===88)++y;else if(e===27)b=y;else if(e===89)b===y&&(b=0),--y;else if(e===28&&!v&&!b){let e=f.at(-1);e>0&&(c+=e-1)}}else (v||b)&&(m(`TT: nested FDEFs not allowed`),_=!0),v=!0,d=c,a=f.pop(),t.functionsDefined[a]={data:s,i:c};else if(!v&&!b){if(a=f.at(-1),isNaN(a))p(`TT: CALL empty stack (or invalid entry).`);else if(t.functionsUsed[a]=!0,a in t.functionsStackDeltas){let e=f.length+t.functionsStackDeltas[a];if(e<0)return m(`TT: CALL invalid functions stack delta.`),void(t.hintsValid=!1);f.length=e}else if(a in t.functionsDefined&&!g.includes(a)){if(h.push({data:s,i:c,stackTop:f.length-1}),g.push(a),o=t.functionsDefined[a],!o)return m(`TT: CALL non-existent function`),void(t.hintsValid=!1);s=o.data,c=o.i}}if(!v&&!b){let t=0;for(e<=142?t=l[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2),e>=113&&e<=117&&(r=f.pop(),isNaN(r)||(t=2*-r));t<0&&f.length>0;)f.pop(),t++;for(;t>0;)f.push(NaN),t--}}t.tooComplexToFollowFunctions=_;let x=[s];c>s.length&&x.push(new Uint8Array(c-s.length)),d>u&&(m(`TT: complementing a missing function tail`),x.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){let n,r,i=0;for(n=0,r=t.length;n<r;n++)i+=t[n].length;i=i+3&-4;let a=new Uint8Array(i),o=0;for(n=0,r=t.length;n<r;n++)a.set(t[n],o),o+=t[n].length;e.data=a,e.length=i}}(e,x)}let d,f,h,_;if(Qa(t=new Ft(new Uint8Array(t.getBytes())))){let e=function(e,t){let{numFonts:n,offsetTable:r}=function(e){let t=e.getString(4);g(t===`ttcf`,`Must be a TrueType Collection font.`);let n=e.getUint16(),r=e.getUint16(),i=e.getInt32()>>>0,a=[];for(let t=0;t<i;t++)a.push(e.getInt32()>>>0);let o={ttcTag:t,majorVersion:n,minorVersion:r,numFonts:i,offsetTable:a};switch(n){case 1:return o;case 2:return o.dsigTag=e.getInt32()>>>0,o.dsigLength=e.getInt32()>>>0,o.dsigOffset=e.getInt32()>>>0,o}throw new w(`Invalid TrueType Collection majorVersion: ${n}.`)}(e),a=t.split(`+`),s;for(let l=0;l<n;l++){e.pos=(e.start||0)+r[l];let n=o(e),u=i(e,n.numTables);if(!u.name)throw new w(`TrueType Collection font must contain a "name" table.`);let[d]=c(u.name);for(let e=0,r=d.length;e<r;e++)for(let r=0,i=d[e].length;r<i;r++){let i=d[e][r]?.replaceAll(/\s/g,``);if(i){if(i===t)return{header:n,tables:u};if(!(a.length<2))for(let e of a)i===e&&(s={name:e,header:n,tables:u})}}}if(s)return m(`TrueType Collection does not contain "${t}" font, falling back to "${s.name}" font instead.`),{header:s.header,tables:s.tables};throw new w(`TrueType Collection does not contain "${t}" font.`)}(t,this.name);d=e.header,f=e.tables}else d=o(t),f=i(t,d.numTables);let v=!f[`CFF `];if(v){if(!f.loca)throw new w(`Required "loca" table is not found`);f.glyf||(m(`Required "glyf" table is not found -- trying to recover.`),f.glyf={tag:`glyf`,data:new Uint8Array}),this.isOpenType=!1}else{let t=n.composite&&(n.cidToGidMap?.length>0||!(n.cMap instanceof Fr));if(d.version===`OTTO`&&!t||!f.head||!f.hhea||!f.maxp||!f.post)return _=new Ft(f[`CFF `].data),h=new Zi(_,n),this.convert(e,h,n);delete f.glyf,delete f.loca,delete f.fpgm,delete f.prep,delete f[`cvt `],this.isOpenType=!0}if(!f.maxp)throw new w(`Required "maxp" table is not found`);t.pos=(t.start||0)+f.maxp.offset;let y=t.getInt32(),b=t.getUint16();if(y!==65536&&y!==20480){if(f.maxp.length===6)y=20480;else{if(!(f.maxp.length>=32))throw new w(`"maxp" table has a wrong version number`);y=65536}x=f.maxp.data,C=y,x[(S=0)+3]=255&C,x[S+2]=C>>>8,x[S+1]=C>>>16,x[S]=C>>>24}var x,S,C;if(n.scaleFactors?.length===b&&v){let{scaleFactors:e}=n,t=qa(f.head.data[50],f.head.data[51]),r=new fa({glyfTable:f.glyf.data,isGlyphLocationsLong:t,locaTable:f.loca.data,numGlyphs:b});r.scale(e);let{glyf:i,loca:a,isLocationLong:o}=r.write();f.glyf.data=i,f.loca.data=a,o!==!!t&&(f.head.data[50]=0,f.head.data[51]=+!!o);let s=f.hmtx.data;for(let t=0;t<b;t++){let n=4*t,r=Math.round(e[t]*qa(s[n],s[n+1]));s[n]=r>>8&255,s[n+1]=255&r,Ja(s,n+2,Math.round(e[t]*Ya(s[n+2],s[n+3])))}}let T=b+1,E=!0;T>65535&&(E=!1,T=b,m(`Not enough space in glyfs to duplicate first glyph.`));let D=0,O=0;y>=65536&&f.maxp.length>=32&&(t.pos+=8,t.getUint16()>2&&(f.maxp.data[14]=0,f.maxp.data[15]=2),t.pos+=4,D=t.getUint16(),t.pos+=4,O=t.getUint16()),f.maxp.data[4]=T>>8,f.maxp.data[5]=255&T;let k=function(e,t,n,r){let i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&u(e,i),t&&u(t,i),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return m(`TT: more functions defined than expected`),void(e.hintsValid=!1);for(let n=0,r=e.functionsUsed.length;n<r;n++){if(n>t)return m(`TT: invalid function id: `+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return m(`TT: undefined function: `+n),void(e.hintsValid=!1)}}}(i,r),n&&1&n.length){let e=new Uint8Array(n.length+1);e.set(n.data),n.data=e}return i.hintsValid}(f.fpgm,f.prep,f[`cvt `],D);if(k||(delete f.fpgm,delete f.prep,delete f[`cvt `]),function(e,t,n,r,i,a){if(!t)return void(n&&(n.data=null));e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;let o=e.getUint16();e.pos+=8,e.pos+=2;let s=e.getUint16();o!==0&&(2&qa(r.data[44],r.data[45])||(t.data[22]=0,t.data[23]=0)),s>i&&(p(`The numOfMetrics (${s}) should not be greater than the numGlyphs (${i}).`),s=i,t.data[34]=(65280&s)>>8,t.data[35]=255&s);let c=i-s-(n.length-4*s>>1);if(c>0){let e=new Uint8Array(n.length+2*c);e.set(n.data),a&&(e[n.length]=n.data[2],e[n.length+1]=n.data[3]),n.data=e}}(t,f.hhea,f.hmtx,f.head,T,E),!f.head)throw new w(`Required "head" table is not found`);(function(e,t,n){let r=e.data,i=(a=r[0],o=r[1],s=r[2],c=r[3],(a<<24)+(o<<16)+(s<<8)+c);var a,o,s,c;i>>16!=1&&(p(`Attempting to fix invalid version in head table: `+i),r[0]=0,r[1]=1,r[2]=0,r[3]=0);let l=qa(r[50],r[51]);if(l<0||l>1){p(`Attempting to fix invalid indexToLocFormat in head table: `+l);let e=t+1;if(n===e<<1)r[50]=0,r[51]=0;else{if(n!==e<<2)throw new w(`Could not fix indexToLocFormat: `+l);r[50]=0,r[51]=1}}})(f.head,b,v?f.loca.length:0);let A=Object.create(null);if(v){let e=qa(f.head.data[50],f.head.data[51]),t=function(e,t,n,r,i,a,o){let c,l,u;r?(c=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},u=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}):(c=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},u=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});let d=a?n+1:n,f=c*(1+d),p=new Uint8Array(f);p.set(e.data.subarray(0,f)),e.data=p;let m=t.data,h=m.length,g=new Uint8Array(h),_,v,y=[];for(_=0,v=0;_<n+1;_++,v+=c){let e=l(p,v);e>h&&(e=h),y.push({index:_,offset:e,endOffset:0})}for(y.sort((e,t)=>e.offset-t.offset),_=0;_<n;_++)y[_].endOffset=y[_+1].offset;for(y.sort((e,t)=>e.index-t.index),_=0;_<n;_++){let{offset:e,endOffset:t}=y[_];if(e!==0||t!==0)break;let n=y[_+1].offset;if(n!==0){y[_].endOffset=n;break}}let b=y.at(-2);b.offset!==0&&b.endOffset===0&&(b.endOffset=h);let x=Object.create(null),S=0;for(u(p,0,S),_=0,v=c;_<n;_++,v+=c){let e=s(m,y[_].offset,y[_].endOffset,g,S,i),t=e.length;t===0&&(x[_]=!0),e.sizeOfInstructions>o&&(o=e.sizeOfInstructions),S+=t,u(p,v,S)}if(S===0){let e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(_=0,v=c;_<d;_++,v+=c)u(p,v,e.length);t.data=e}else if(a){let n=l(p,c);g.length>n+S?t.data=g.subarray(0,n+S):(t.data=new Uint8Array(n+S),t.data.set(g.subarray(0,S))),t.data.set(g.subarray(0,n),S),u(e.data,p.length-c,S+n)}else t.data=g.subarray(0,S);return{missingGlyphs:x,maxSizeOfInstructions:o}}(f.loca,f.glyf,b,e,k,E,O);A=t.missingGlyphs,y>=65536&&f.maxp.length>=32&&(f.maxp.data[26]=t.maxSizeOfInstructions>>8,f.maxp.data[27]=255&t.maxSizeOfInstructions)}if(!f.hhea)throw new w(`Required "hhea" table is not found`);f.hhea.data[10]===0&&f.hhea.data[11]===0&&(f.hhea.data[10]=255,f.hhea.data[11]=255);let j={unitsPerEm:qa(f.head.data[18],f.head.data[19]),yMax:Ya(f.head.data[42],f.head.data[43]),yMin:Ya(f.head.data[38],f.head.data[39]),ascent:Ya(f.hhea.data[4],f.hhea.data[5]),descent:Ya(f.hhea.data[6],f.hhea.data[7]),lineGap:Ya(f.hhea.data[8],f.hhea.data[9])};this.ascent=j.ascent/j.unitsPerEm,this.descent=j.descent/j.unitsPerEm,this.lineGap=j.lineGap/j.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,f.post&&function(e,n,r){let i=(t.start||0)+e.offset;t.pos=i;let a=i+e.length,o=t.getInt32(),s;t.skip(28);let c,l=!0;switch(o){case 65536:s=fi;break;case 131072:let e=t.getUint16();if(e!==r){l=!1;break}let i=[];for(c=0;c<e;++c){let e=t.getUint16();if(e>=32768){l=!1;break}i.push(e)}if(!l)break;let u=[],d=[];for(;t.pos<a;){let e=t.getByte();for(d.length=e,c=0;c<e;++c)d[c]=String.fromCharCode(t.getByte());u.push(d.join(``))}for(s=[],c=0;c<e;++c){let e=i[c];e<258?s.push(fi[e]):s.push(u[e-258])}break;case 196608:break;default:m(`Unknown/unsupported post table version `+o),l=!1,n.defaultEncoding&&(s=n.defaultEncoding)}n.glyphNames=s}(f.post,n,b),f.post={tag:`post`,data:co(n)};let M=Object.create(null);function N(e){return!A[e]}if(n.composite){let e=n.cidToGidMap||[],t=e.length===0;n.cMap.forEach(function(n,r){if(typeof r==`string`&&(r=io(n,r,!0)),r>65535)throw new w(`Max size of CID is 65,535`);let i=-1;t?i=r:e[r]!==void 0&&(i=e[r]),i>=0&&i<b&&N(i)&&(M[n]=i)})}else{let e=function(e,t,n,r){if(!e)return m(`No cmap table available.`),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let i,a=(t.start||0)+e.offset;t.pos=a,t.skip(2);let o=t.getUint16(),s,c=!1;for(let e=0;e<o;e++){let i=t.getUint16(),a=t.getUint16(),l=t.getInt32()>>>0,u=!1;if(s?.platformId!==i||s?.encodingId!==a){if(i!==0||a!==0&&a!==1&&a!==3)if(i===1&&a===0)u=!0;else if(i!==3||a!==1||!r&&s){if(n&&i===3&&a===0){u=!0;let n=!0;if(e<o-1){let e=t.peekBytes(2);qa(e[0],e[1])<i&&(n=!1)}n&&(c=!0)}}else u=!0,n||(c=!0);else u=!0;if(u&&(s={platformId:i,encodingId:a,offset:l}),c)break}}if(s&&(t.pos=a+s.offset),!s||t.peekByte()===-1)return m(`Could not find a preferred cmap table.`),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let l=t.getUint16(),u=!1,d=[],f,p;if(l===0){for(t.skip(4),f=0;f<256;f++){let e=t.getByte();e&&d.push({charCode:f,glyphId:e})}u=!0}else if(l===2){t.skip(4);let e=[],n=0;for(let r=0;r<256;r++){let r=t.getUint16()>>3;e.push(r),n=Math.max(r,n)}let r=[];for(let e=0;e<=n;e++)r.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:Ya(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let n=0;n<256;n++)if(e[n]===0)t.pos=r[0].idRangePos+2*n,p=t.getUint16(),d.push({charCode:n,glyphId:p});else{let i=r[e[n]];for(f=0;f<i.entryCount;f++){let e=(n<<8)+f+i.firstCode;t.pos=i.idRangePos+2*f,p=t.getUint16(),p!==0&&(p=(p+i.idDelta)%65536),d.push({charCode:e,glyphId:p})}}}else if(l===4){t.skip(4);let e=t.getUint16()>>1;t.skip(6);let n=[],r;for(r=0;r<e;r++)n.push({end:t.getUint16()});for(t.skip(2),r=0;r<e;r++)n[r].start=t.getUint16();for(r=0;r<e;r++)n[r].delta=t.getUint16();let o,s=0;for(r=0;r<e;r++){i=n[r];let a=t.getUint16();a?(o=(a>>1)-(e-r),i.offsetIndex=o,s=Math.max(s,o+i.end-i.start+1)):i.offsetIndex=-1}let c=[];for(f=0;f<s;f++)c.push(t.getUint16());for(r=0;r<e;r++){i=n[r],a=i.start;let e=i.end,t=i.delta;for(o=i.offsetIndex,f=a;f<=e;f++)f!==65535&&(p=o<0?f:c[o+f-a],p=p+t&65535,d.push({charCode:f,glyphId:p}))}}else if(l===6){t.skip(4);let e=t.getUint16(),n=t.getUint16();for(f=0;f<n;f++){p=t.getUint16();let n=e+f;d.push({charCode:n,glyphId:p})}}else{if(l!==12)return m(`cmap table has unsupported format: `+l),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};{t.skip(10);let e=t.getInt32()>>>0;for(f=0;f<e;f++){let e=t.getInt32()>>>0,n=t.getInt32()>>>0,r=t.getInt32()>>>0;for(let t=e;t<=n;t++)d.push({charCode:t,glyphId:r++})}}}d.sort((e,t)=>e.charCode-t.charCode);let h=[],g=new Set;for(let e of d){let{charCode:t}=e;g.has(t)||(g.add(t),h.push(e))}return{platformId:s.platformId,encodingId:s.encodingId,mappings:h,hasShortCmap:u}}(f.cmap,t,this.isSymbolicFont,n.hasEncoding),r=e.platformId,i=e.encodingId,a=e.mappings,o=[],s=!1;if(!n.hasEncoding||n.baseEncodingName!==`MacRomanEncoding`&&n.baseEncodingName!==`WinAnsiEncoding`||(o=ri(n.baseEncodingName)),n.hasEncoding&&!this.isSymbolicFont&&(r===3&&i===1||r===1&&i===0)){let e=ii();for(let t=0;t<256;t++){let s;if(s=this.differences[t]===void 0?o.length&&o[t]!==``?o[t]:$r[t]:this.differences[t],!s)continue;let c=pi(s,e),l;if(r===3&&i===1?l=e[c]:r===1&&i===0&&(l=Qr.indexOf(c)),l===void 0){if(!n.glyphNames&&n.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof Xi)){let e=this.toUnicode.get(t);e&&(l=e.codePointAt(0))}if(l===void 0)continue}for(let e of a)if(e.charCode===l){M[t]=e.glyphId;break}}}else if(r===0){for(let e of a)M[e.charCode]=e.glyphId;s=!0}else if(r===3&&i===0)for(let e of a){let t=e.charCode;t>=61440&&t<=61695&&(t&=255),M[t]=e.glyphId}else for(let e of a)M[e.charCode]=e.glyphId;if(n.glyphNames&&(o.length||this.differences.length))for(let e=0;e<256;++e){if(!s&&M[e]!==void 0)continue;let t=this.differences[e]||o[e];if(!t)continue;let r=n.glyphNames.indexOf(t);r>0&&N(r)&&(M[e]=r)}}M.length===0&&(M[0]=0);let P=T-1;if(E||(P=0),!n.cssFontInfo){let e=ao(M,N,P,this.toUnicode);this.toFontChar=e.toFontChar,f.cmap={tag:`cmap`,data:oo(e.charCodeToGlyphId,e.toUnicodeExtraMap,T)},f[`OS/2`]&&function(e,t){t.pos=(t.start||0)+e.offset;let n=t.getUint16();t.skip(60);let r=t.getUint16();return!(n<4&&768&r)&&!(t.getUint16()>t.getUint16())&&(t.skip(6),t.getUint16()!==0&&(e.data[8]=e.data[9]=0,!0))}(f[`OS/2`],t)||(f[`OS/2`]={tag:`OS/2`,data:so(n,e.charCodeToGlyphId,j)})}if(!v)try{_=new Ft(f[`CFF `].data),h=new Ci(_,n,!0).parse(),h.duplicateFirstGlyph();let e=new Ri(h);f[`CFF `].data=e.compile()}catch{m(`Failed to compile font `+n.loadedName)}if(f.name){let[t,r]=c(f.name);f.name.data=uo(e,t),this.psName=t[0][6]||null,n.composite||function(e,t,n){if(e.isInternalFont||e.hasIncludedToUnicodeMap||e.hasEncoding||e.toUnicode instanceof Xi||!t||n.length===0||e.defaultEncoding===ei)return;for(let e of n)if(!ro(e))return;let r=ei,i=[],a=ii();for(let e in r){let t=r[e];if(t===``)continue;let n=a[t];n!==void 0&&(i[e]=String.fromCharCode(n))}i.length>0&&e.toUnicode.amend(i)}(n,this.isSymbolicFont,r)}else f.name={tag:`name`,data:uo(this.name)};let F=new xa(d.version);for(let e in f)F.addTable(e,f[e].data);return F.toArray()}convert(e,n,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(e.isInternalFont||e.hasIncludedToUnicodeMap||t===e.defaultEncoding||e.toUnicode instanceof Xi)return;let n=[],r=ii();for(let i in t){if(e.hasEncoding&&(e.baseEncodingName||e.differences[i]!==void 0))continue;let a=si(t[i],r);a!==-1&&(n[i]=String.fromCharCode(a))}n.length>0&&e.toUnicode.amend(n)}(r,r.builtInEncoding);let i=1;n instanceof Zi&&(i=n.numGlyphs-1);let a=n.getGlyphMapping(r),o=null,s=a,c=null;r.cssFontInfo||(o=ao(a,n.hasGlyphId.bind(n),i,this.toUnicode),this.toFontChar=o.toFontChar,s=o.charCodeToGlyphId,c=o.toUnicodeExtraMap);let l=n.numGlyphs;function u(e,t){let n=null;for(let r in e)t===e[r]&&(n||=[]).push(0|r);return n}function d(e,t){for(let n in e)if(t===e[n])return 0|n;return o.charCodeToGlyphId[o.nextAvailableFontCharCode]=t,o.nextAvailableFontCharCode++}let f=n.seacs;if(o&&f?.length){let e=r.fontMatrix||t,i=n.getCharset(),s=Object.create(null);for(let t in f){t|=0;let n=f[t],r=$r[n[2]],c=$r[n[3]],l=i.indexOf(r),p=i.indexOf(c);if(l<0||p<0)continue;let m={x:n[0]*e[0]+n[1]*e[2]+e[4],y:n[0]*e[1]+n[1]*e[3]+e[5]},h=u(a,t);if(h)for(let e of h){let t=o.charCodeToGlyphId;s[e]={baseFontCharCode:d(t,l),accentFontCharCode:d(t,p),accentOffset:m}}}r.seacMap=s}let p=r.fontMatrix?1/Math.max(...r.fontMatrix.slice(0,4).map(Math.abs)):1e3,m=new xa(`OTTO`);return m.addTable(`CFF `,n.data),m.addTable(`OS/2`,so(r,s)),m.addTable(`cmap`,oo(s,c,l)),m.addTable(`head`,`\0\0\0\0\0\0\0\0\0\0_<õ\0\0`+Za(p)+`\0\0\0\0\v~'\0\0\0\0\v~'\0\0`+Za(r.descent)+`ÿ`+Za(r.ascent)+Xa(r.italicAngle?2:0)+`\0\0\0\0\0\0\0`),m.addTable(`hhea`,`\0\0\0`+Za(r.ascent)+Za(r.descent)+`\0\0ÿÿ\0\0\0\0\0\0`+Za(r.capHeight)+Za(Math.tan(r.italicAngle)*r.xHeight)+`\0\0\0\0\0\0\0\0\0\0\0\0`+Xa(l)),m.addTable(`hmtx`,function(){let e=n.charstrings,t=n.cff?n.cff.widths:null,r=`\0\0\0\0`;for(let n=1,i=l;n<i;n++){let i=0;if(e){let t=e[n-1];i=`width`in t?t.width:0}else t&&(i=Math.ceil(t[n]||0));r+=Xa(i)+Xa(0)}return r}()),m.addTable(`maxp`,`\0\0P\0`+Xa(l)),m.addTable(`name`,uo(e)),m.addTable(`post`,co(r)),m.toArray()}get _spaceWidth(){let e=[`space`,`minus`,`one`,`i`,`I`],t;for(let n of e){if(n in this.widths){t=this.widths[n];break}let e=ii()[n],r=0;if(this.composite&&this.cMap.contains(e)&&(r=this.cMap.lookup(e),typeof r==`string`&&(r=io(e,r))),!r&&this.toUnicode&&(r=this.toUnicode.charCodeOf(e)),r<=0&&(r=e),t=this.widths[r],t)break}return v(this,`_spaceWidth`,t||this.defaultWidth)}_charToGlyph(e,t=!1){let n,r,i,a=this._glyphCache[e];if(a?.isSpace===t)return a;let o=e;this.cMap?.contains(e)&&(o=this.cMap.lookup(e),typeof o==`string`&&(o=io(e,o))),r=this.widths[o],typeof r!=`number`&&(r=this.defaultWidth);let s=this.vmetrics?.[o],c=this.toUnicode.get(e)||e;typeof c==`number`&&(c=String.fromCharCode(c));let l=this.toFontChar[e]!==void 0;if(n=this.toFontChar[e]||e,this.missingFile){let t=this.differences[e]||this.defaultEncoding[e];t!==`.notdef`&&t!==``||this.type!==`Type1`||(n=32,t===``&&(r||=this._spaceWidth,c=String.fromCharCode(n))),n=(u=n)>=65520&&u<=65535?0:u>=62976&&u<=63743?oi()[u]||u:u===173?45:u}var u;this.isType3Font&&(i=n);let d=null;if(this.seacMap?.[e]){l=!0;let t=this.seacMap[e];n=t.baseFontCharCode,d={fontChar:String.fromCodePoint(t.accentFontCharCode),offset:t.accentOffset}}let f=``;if(typeof n==`number`&&(n<=1114111?f=String.fromCodePoint(n):m(`charToGlyph - invalid fontCharCode: ${n}`)),this.missingFile&&this.vertical&&f.length===1){let e=gi()[f.charCodeAt(0)];e&&(f=c=String.fromCharCode(e))}return a=new Ka(e,f,c,d,r,s,i,t,l),this._glyphCache[e]=a}charsToGlyphs(e){let t=this._charsCache[e];if(t)return t;if(t=[],this.cMap){let n=Object.create(null),r=e.length,i=0;for(;i<r;){this.cMap.readCharCode(e,i,n);let{charcode:r,length:a}=n;i+=a;let o=this._charToGlyph(r,a===1&&e.charCodeAt(i-1)===32);t.push(o)}}else for(let n=0,r=e.length;n<r;++n){let r=e.charCodeAt(n),i=this._charToGlyph(r,r===32);t.push(i)}return this._charsCache[e]=t}getCharPositions(e){let t=[];if(this.cMap){let n=Object.create(null),r=0;for(;r<e.length;){this.cMap.readCharCode(e,r,n);let i=n.length;t.push([r,r+i]),r+=i}}else for(let n=0,r=e.length;n<r;++n)t.push([n,n+1]);return t}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(e){let t=[],n=[],r=()=>t.length%2==1,i=this.toUnicode instanceof Xi?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let a=0,o=e.length;a<o;a++){let o=e.codePointAt(a);if(o>55295&&(o<57344||o>65533)&&a++,this.toUnicode){let e=i(o);if(e!==-1){r()&&(t.push(n.join(``)),n.length=0);for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)n.push(String.fromCharCode(e>>8*t&255));continue}}r()||(t.push(n.join(``)),n.length=0),n.push(String.fromCodePoint(o))}return t.push(n.join(``)),t}},po=class{constructor(e){this.error=e,this.loadedName=`g_font_error`,this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}},mo=class{constructor(){h(`Cannot initialize Pattern.`)}static parseShading(e,t,n,r,i,a){let o=e instanceof be?e.dict:e,s=o.get(`ShadingType`);try{switch(s){case 2:case 3:return new go(o,t,n,r,i,a);case 4:case 5:case 6:case 7:return new bo(e,t,n,r,i,a);default:throw new w(`Unsupported ShadingType: `+s)}}catch(e){if(e instanceof De)throw e;return m(e),new xo}}},ho=class{static SMALL_NUMBER=1e-6;getIR(){h("Abstract method `getIR` called.")}},go=class extends ho{constructor(e,t,n,r,i,a){super(),this.shadingType=e.get(`ShadingType`);let o=0;if(this.shadingType===2?o=4:this.shadingType===3&&(o=6),this.coordsArr=e.getArray(`Coords`),!He(this.coordsArr,o))throw new w(`RadialAxialShading: Invalid /Coords array.`);let s=Kt.parse({cs:e.getRaw(`CS`)||e.getRaw(`ColorSpace`),xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a});this.bbox=Ge(e.getArray(`BBox`),null);let c=0,l=1,u=e.getArray(`Domain`);He(u,2)&&([c,l]=u);let d=!1,f=!1,h=e.getArray(`Extend`);var g,_;if(g=h,_=2,Array.isArray(g)&&g.length===_&&g.every(e=>typeof e==`boolean`)&&([d,f]=h),!(this.shadingType!==3||d&&f)){let[e,t,n,r,i,a]=this.coordsArr,o=Math.hypot(e-r,t-i);n<=a+o&&a<=n+o&&m(`Unsupported radial gradient.`)}this.extendStart=d,this.extendEnd=f;let v=e.getRaw(`Function`),y=r.create(v,!0),b=(l-c)/840,x=this.colorStops=[];if(c>=l||b<=0)return void p(`Bad shading domain.`);let S=new Float32Array(s.numComps),C=new Float32Array(1),T=0;C[0]=c,y(C,0,S,0);let E=new Uint8ClampedArray(3);s.getRgb(S,0,E);let[D,O,k]=E;x.push([0,M.makeHexColor(D,O,k)]);let A=1;C[0]=c+b,y(C,0,S,0),s.getRgb(S,0,E);let[j,N,P]=E,F=j-D+1,ee=N-O+1,te=P-k+1,ne=j-D-1,re=N-O-1,ie=P-k-1;for(let e=2;e<840;e++){C[0]=c+e*b,y(C,0,S,0),s.getRgb(S,0,E);let[t,n,r]=E,i=e-T;if(F=Math.min(F,(t-D+1)/i),ee=Math.min(ee,(n-O+1)/i),te=Math.min(te,(r-k+1)/i),ne=Math.max(ne,(t-D-1)/i),re=Math.max(re,(n-O-1)/i),ie=Math.max(ie,(r-k-1)/i),!(ne<=F&&re<=ee&&ie<=te)){let e=M.makeHexColor(j,N,P);x.push([A/840,e]),F=t-j+1,ee=n-N+1,te=r-P+1,ne=t-j-1,re=n-N-1,ie=r-P-1,T=A,D=j,O=N,k=P}A=e,j=t,N=n,P=r}x.push([1,M.makeHexColor(j,N,P)]);let ae=`transparent`;e.has(`Background`)&&(ae=s.getRgbHex(e.get(`Background`),0)),d||(x.unshift([0,ae]),x[1][0]+=ho.SMALL_NUMBER),f||(x.at(-1)[0]-=ho.SMALL_NUMBER,x.push([1,ae])),this.colorStops=x}getIR(){let{coordsArr:e,shadingType:t}=this,n,r,i,a,o;return t===2?(r=[e[0],e[1]],i=[e[2],e[3]],a=null,o=null,n=`axial`):t===3?(r=[e[0],e[1]],i=[e[3],e[4]],a=e[2],o=e[5],n=`radial`):h(`getPattern type unknown: ${t}`),[`RadialAxial`,n,this.bbox,this.colorStops,r,i,a,o]}},_o=class{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;let n=t.numComps;this.tmpCompsBuf=new Float32Array(n);let r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;let e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)}readBits(e){let{stream:t}=this,{buffer:n,bufferLength:r}=this;if(e===32){if(r===0)return t.getInt32()>>>0;n=n<<24|t.getByte()<<16|t.getByte()<<8|t.getByte();let e=t.getByte();return this.buffer=e&(1<<r)-1,(n<<8-r|(255&e)>>r)>>>0}if(e===8&&r===0)return t.getByte();for(;r<e;)n=n<<8|t.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=n&(1<<r)-1,n>>r}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:e,decode:t}=this.context,n=this.readBits(e),r=this.readBits(e),i=e<32?1/((1<<e)-1):23283064365386963e-26;return[n*i*(t[1]-t[0])+t[0],r*i*(t[3]-t[2])+t[2]]}readComponents(){let{bitsPerComponent:e,colorFn:t,colorSpace:n,decode:r,numComps:i}=this.context,a=e<32?1/((1<<e)-1):23283064365386963e-26,o=this.tmpCompsBuf;for(let t=0,n=4;t<i;t++,n+=2)o[t]=this.readBits(e)*a*(r[n+1]-r[n])+r[n];let s=this.tmpCsCompsBuf;return t?.(o,0,s,0),n.getRgb(s,0)}};let vo=Object.create(null);function yo(e){return vo[e]||=function(e){let t=[];for(let n=0;n<=e;n++){let r=n/e,i=1-r;t.push(new Float32Array([i**3,3*r*i**2,3*r**2*i,r**3]))}return t}(e)}var bo=class e extends ho{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(e,t,n,r,i,a){if(super(),!(e instanceof be))throw new w(`Mesh data is not a stream`);let o=e.dict;this.shadingType=o.get(`ShadingType`),this.bbox=Ge(o.getArray(`BBox`),null);let s=Kt.parse({cs:o.getRaw(`CS`)||o.getRaw(`ColorSpace`),xref:t,resources:n,pdfFunctionFactory:r,globalColorSpaceCache:i,localColorSpaceCache:a});this.background=o.has(`Background`)?s.getRgb(o.get(`Background`),0):null;let c=o.getRaw(`Function`),l=c?r.create(c,!0):null;this.coords=[],this.colors=[],this.figures=[];let u=new _o(e,{bitsPerCoordinate:o.get(`BitsPerCoordinate`),bitsPerComponent:o.get(`BitsPerComponent`),bitsPerFlag:o.get(`BitsPerFlag`),decode:o.getArray(`Decode`),colorFn:l,colorSpace:s,numComps:l?1:s.numComps}),d=!1;switch(this.shadingType){case 4:this._decodeType4Shading(u);break;case 5:let e=0|o.get(`VerticesPerRow`);if(e<2)throw new w(`Invalid VerticesPerRow`);this._decodeType5Shading(u,e);break;case 6:this._decodeType6Shading(u),d=!0;break;case 7:this._decodeType7Shading(u),d=!0;break;default:h(`Unsupported mesh type.`)}if(d){this._updateBounds();for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds(),this._packData()}_decodeType4Shading(e){let t=this.coords,n=this.colors,r=[],i=0;for(;e.hasData;){let a=e.readFlag(),o=e.readCoordinate(),s=e.readComponents();if(i===0){if(!(0<=a&&a<=2))throw new w(`Unknown type4 flag`);switch(a){case 0:i=3;break;case 1:r.push(r.at(-2),r.at(-1)),i=1;break;case 2:r.push(r.at(-3),r.at(-1)),i=1}}r.push(t.length),t.push(o),n.push(s),i--,e.align()}this.figures.push({type:`triangles`,coords:new Int32Array(r),colors:new Int32Array(r)})}_decodeType5Shading(e,t){let n=this.coords,r=this.colors,i=[];for(;e.hasData;){let t=e.readCoordinate(),a=e.readComponents();i.push(n.length),n.push(t),r.push(a)}this.figures.push({type:`lattice`,coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:t})}_decodeType6Shading(e){let t=this.coords,n=this.colors,r=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){let a=e.readFlag();if(!(0<=a&&a<=3))throw new w(`Unknown type6 flag`);let o=t.length;for(let n=0,r=a===0?12:8;n<r;n++)t.push(e.readCoordinate());let s=n.length;for(let t=0,r=a===0?4:2;t<r;t++)n.push(e.readComponents());let c,l,u,d;switch(a){case 0:r[12]=o+3,r[13]=o+4,r[14]=o+5,r[15]=o+6,r[8]=o+2,r[11]=o+7,r[4]=o+1,r[7]=o+8,r[0]=o,r[1]=o+11,r[2]=o+10,r[3]=o+9,i[2]=s+1,i[3]=s+2,i[0]=s,i[1]=s+3;break;case 1:c=r[12],l=r[13],u=r[14],d=r[15],r[12]=d,r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=u,r[11]=o+3,r[4]=l,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[2],l=i[3],i[2]=l,i[3]=s,i[0]=c,i[1]=s+1;break;case 2:c=r[15],l=r[11],r[12]=r[3],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[7],r[11]=o+3,r[4]=l,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[3],i[2]=i[1],i[3]=s,i[0]=c,i[1]=s+1;break;case 3:r[12]=r[0],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[1],r[11]=o+3,r[4]=r[2],r[7]=o+4,r[0]=r[3],r[1]=o+7,r[2]=o+6,r[3]=o+5,i[2]=i[0],i[3]=s,i[0]=i[1],i[1]=s+1}r[5]=t.length,t.push([(-4*t[r[0]][0]-t[r[15]][0]+6*(t[r[4]][0]+t[r[1]][0])-2*(t[r[12]][0]+t[r[3]][0])+3*(t[r[13]][0]+t[r[7]][0]))/9,(-4*t[r[0]][1]-t[r[15]][1]+6*(t[r[4]][1]+t[r[1]][1])-2*(t[r[12]][1]+t[r[3]][1])+3*(t[r[13]][1]+t[r[7]][1]))/9]),r[6]=t.length,t.push([(-4*t[r[3]][0]-t[r[12]][0]+6*(t[r[2]][0]+t[r[7]][0])-2*(t[r[0]][0]+t[r[15]][0])+3*(t[r[4]][0]+t[r[14]][0]))/9,(-4*t[r[3]][1]-t[r[12]][1]+6*(t[r[2]][1]+t[r[7]][1])-2*(t[r[0]][1]+t[r[15]][1])+3*(t[r[4]][1]+t[r[14]][1]))/9]),r[9]=t.length,t.push([(-4*t[r[12]][0]-t[r[3]][0]+6*(t[r[8]][0]+t[r[13]][0])-2*(t[r[0]][0]+t[r[15]][0])+3*(t[r[11]][0]+t[r[1]][0]))/9,(-4*t[r[12]][1]-t[r[3]][1]+6*(t[r[8]][1]+t[r[13]][1])-2*(t[r[0]][1]+t[r[15]][1])+3*(t[r[11]][1]+t[r[1]][1]))/9]),r[10]=t.length,t.push([(-4*t[r[15]][0]-t[r[0]][0]+6*(t[r[11]][0]+t[r[14]][0])-2*(t[r[12]][0]+t[r[3]][0])+3*(t[r[2]][0]+t[r[8]][0]))/9,(-4*t[r[15]][1]-t[r[0]][1]+6*(t[r[11]][1]+t[r[14]][1])-2*(t[r[12]][1]+t[r[3]][1])+3*(t[r[2]][1]+t[r[8]][1]))/9]),this.figures.push({type:`patch`,coords:new Int32Array(r),colors:new Int32Array(i)})}}_decodeType7Shading(e){let t=this.coords,n=this.colors,r=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){let a=e.readFlag();if(!(0<=a&&a<=3))throw new w(`Unknown type7 flag`);let o=t.length;for(let n=0,r=a===0?16:12;n<r;n++)t.push(e.readCoordinate());let s=n.length;for(let t=0,r=a===0?4:2;t<r;t++)n.push(e.readComponents());let c,l,u,d;switch(a){case 0:r[12]=o+3,r[13]=o+4,r[14]=o+5,r[15]=o+6,r[8]=o+2,r[9]=o+13,r[10]=o+14,r[11]=o+7,r[4]=o+1,r[5]=o+12,r[6]=o+15,r[7]=o+8,r[0]=o,r[1]=o+11,r[2]=o+10,r[3]=o+9,i[2]=s+1,i[3]=s+2,i[0]=s,i[1]=s+3;break;case 1:c=r[12],l=r[13],u=r[14],d=r[15],r[12]=d,r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=u,r[9]=o+9,r[10]=o+10,r[11]=o+3,r[4]=l,r[5]=o+8,r[6]=o+11,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[2],l=i[3],i[2]=l,i[3]=s,i[0]=c,i[1]=s+1;break;case 2:c=r[15],l=r[11],r[12]=r[3],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[7],r[9]=o+9,r[10]=o+10,r[11]=o+3,r[4]=l,r[5]=o+8,r[6]=o+11,r[7]=o+4,r[0]=c,r[1]=o+7,r[2]=o+6,r[3]=o+5,c=i[3],i[2]=i[1],i[3]=s,i[0]=c,i[1]=s+1;break;case 3:r[12]=r[0],r[13]=o+0,r[14]=o+1,r[15]=o+2,r[8]=r[1],r[9]=o+9,r[10]=o+10,r[11]=o+3,r[4]=r[2],r[5]=o+8,r[6]=o+11,r[7]=o+4,r[0]=r[3],r[1]=o+7,r[2]=o+6,r[3]=o+5,i[2]=i[0],i[3]=s,i[0]=i[1],i[1]=s+1}this.figures.push({type:`patch`,coords:new Int32Array(r),colors:new Int32Array(i)})}}_buildFigureFromPatch(t){let n=this.figures[t];g(n.type===`patch`,`Unexpected patch mesh figure`);let r=this.coords,i=this.colors,a=n.coords,o=n.colors,s=Math.min(r[a[0]][0],r[a[3]][0],r[a[12]][0],r[a[15]][0]),c=Math.min(r[a[0]][1],r[a[3]][1],r[a[12]][1],r[a[15]][1]),l=Math.max(r[a[0]][0],r[a[3]][0],r[a[12]][0],r[a[15]][0]),u=Math.max(r[a[0]][1],r[a[3]][1],r[a[12]][1],r[a[15]][1]),d=Math.ceil((l-s)*e.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));d=ae(d,e.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,e.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let f=Math.ceil((u-c)*e.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));f=ae(f,e.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,e.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let p=d+1,m=new Int32Array((f+1)*p),h=new Int32Array((f+1)*p),_=0,v=new Uint8Array(3),y=new Uint8Array(3),b=i[o[0]],x=i[o[1]],S=i[o[2]],C=i[o[3]],w=yo(f),T=yo(d);for(let e=0;e<=f;e++){v[0]=(b[0]*(f-e)+S[0]*e)/f|0,v[1]=(b[1]*(f-e)+S[1]*e)/f|0,v[2]=(b[2]*(f-e)+S[2]*e)/f|0,y[0]=(x[0]*(f-e)+C[0]*e)/f|0,y[1]=(x[1]*(f-e)+C[1]*e)/f|0,y[2]=(x[2]*(f-e)+C[2]*e)/f|0;for(let t=0;t<=d;t++,_++){if(!(e!==0&&e!==f||t!==0&&t!==d))continue;let n=0,o=0,s=0;for(let i=0;i<=3;i++)for(let c=0;c<=3;c++,s++){let l=w[e][i]*T[t][c];n+=r[a[s]][0]*l,o+=r[a[s]][1]*l}m[_]=r.length,r.push([n,o]),h[_]=i.length;let c=new Uint8Array(3);c[0]=(v[0]*(d-t)+y[0]*t)/d|0,c[1]=(v[1]*(d-t)+y[1]*t)/d|0,c[2]=(v[2]*(d-t)+y[2]*t)/d|0,i.push(c)}}m[0]=a[0],h[0]=o[0],m[d]=a[3],h[d]=o[1],m[p*f]=a[12],h[p*f]=o[2],m[p*f+d]=a[15],h[p*f+d]=o[3],this.figures[t]={type:`lattice`,coords:m,colors:h,verticesPerRow:p}}_updateBounds(){let e=this.coords[0][0],t=this.coords[0][1],n=e,r=t;for(let i=1,a=this.coords.length;i<a;i++){let a=this.coords[i][0],o=this.coords[i][1];e=e>a?a:e,t=t>o?o:t,n=n<a?a:n,r=r<o?o:r}this.bounds=[e,t,n,r]}_packData(){let e,t,n,r,i=this.coords,a=new Float32Array(2*i.length);for(e=0,n=0,t=i.length;e<t;e++){let t=i[e];a[n++]=t[0],a[n++]=t[1]}this.coords=a;let o=this.colors,s=new Uint8Array(3*o.length);for(e=0,n=0,t=o.length;e<t;e++){let t=o[e];s[n++]=t[0],s[n++]=t[1],s[n++]=t[2]}this.colors=s;let c=this.figures;for(e=0,t=c.length;e<t;e++){let t=c[e],i=t.coords,a=t.colors;for(n=0,r=i.length;n<r;n++)i[n]*=2,a[n]*=3}}getIR(){let{bounds:e}=this;if(e[2]-e[0]===0||e[3]-e[1]===0)throw new w(`Invalid MeshShading bounds: [${e}].`);return[`Mesh`,this.shadingType,this.coords,this.colors,this.figures,e,this.bbox,this.background]}},xo=class extends ho{getIR(){return[`Dummy`]}};function So(e,t,n){let r=Ue(t.getArray(`Matrix`),Ce),i=Ge(t.getArray(`BBox`),null);if(!i||i[2]-i[0]===0||i[3]-i[1]===0)throw new w(`Invalid getTilingPatternIR /BBox array.`);let a=t.get(`XStep`);if(typeof a!=`number`)throw new w(`Invalid getTilingPatternIR /XStep value.`);let o=t.get(`YStep`);if(typeof o!=`number`)throw new w(`Invalid getTilingPatternIR /YStep value.`);let s=t.get(`PaintType`);if(!Number.isInteger(s))throw new w(`Invalid getTilingPatternIR /PaintType value.`);let c=t.get(`TilingType`);if(!Number.isInteger(c))throw new w(`Invalid getTilingPatternIR /TilingType value.`);return[`TilingPattern`,n,e,r,i,a,o,s,c]}const Co=[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],wo={lineHeight:1.2207,lineGap:.2207},To=[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],Eo={lineHeight:1.2207,lineGap:.2207},Do=[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],Oo={lineHeight:1.2207,lineGap:.2207},ko=[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],Ao={lineHeight:1.2207,lineGap:.2207},jo=[.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],Mo={lineHeight:1.2,lineGap:.2},No=[.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],Po={lineHeight:1.35,lineGap:.2},Fo=[.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],Io={lineHeight:1.35,lineGap:.2},Lo=[.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],Ro={lineHeight:1.2,lineGap:.2},zo=[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],Bo=[-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],Vo=[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],Ho=[-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],Uo=[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],Wo=[-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],Go=[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],Ko=[-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],qo=[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],Jo={lineHeight:1.2,lineGap:.2},Yo=[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],Xo={lineHeight:1.2,lineGap:.2},Zo=[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],Qo={lineHeight:1.2,lineGap:.2},$o=[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],es={lineHeight:1.2,lineGap:.2},ts=[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],ns={lineHeight:1.33008,lineGap:0},rs=[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],is={lineHeight:1.33008,lineGap:0},as=[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],os={lineHeight:1.33008,lineGap:0},ss=[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],cs={lineHeight:1.33008,lineGap:0},ls=Ee(function(e){e[`MyriadPro-Regular`]=e[`PdfJS-Fallback-Regular`]={name:`LiberationSans-Regular`,factors:$o,baseWidths:Go,baseMapping:Ko,metrics:es},e[`MyriadPro-Bold`]=e[`PdfJS-Fallback-Bold`]={name:`LiberationSans-Bold`,factors:qo,baseWidths:zo,baseMapping:Bo,metrics:Jo},e[`MyriadPro-It`]=e[`MyriadPro-Italic`]=e[`PdfJS-Fallback-Italic`]={name:`LiberationSans-Italic`,factors:Zo,baseWidths:Uo,baseMapping:Wo,metrics:Qo},e[`MyriadPro-BoldIt`]=e[`MyriadPro-BoldItalic`]=e[`PdfJS-Fallback-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:Yo,baseWidths:Vo,baseMapping:Ho,metrics:Xo},e.ArialMT=e.Arial=e[`Arial-Regular`]={name:`LiberationSans-Regular`,baseWidths:Go,baseMapping:Ko},e[`Arial-BoldMT`]=e[`Arial-Bold`]={name:`LiberationSans-Bold`,baseWidths:zo,baseMapping:Bo},e[`Arial-ItalicMT`]=e[`Arial-Italic`]={name:`LiberationSans-Italic`,baseWidths:Uo,baseMapping:Wo},e[`Arial-BoldItalicMT`]=e[`Arial-BoldItalic`]={name:`LiberationSans-BoldItalic`,baseWidths:Vo,baseMapping:Ho},e[`Calibri-Regular`]={name:`LiberationSans-Regular`,factors:ko,baseWidths:Go,baseMapping:Ko,metrics:Ao},e[`Calibri-Bold`]={name:`LiberationSans-Bold`,factors:Co,baseWidths:zo,baseMapping:Bo,metrics:wo},e[`Calibri-Italic`]={name:`LiberationSans-Italic`,factors:Do,baseWidths:Uo,baseMapping:Wo,metrics:Oo},e[`Calibri-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:To,baseWidths:Vo,baseMapping:Ho,metrics:Eo},e[`Segoeui-Regular`]={name:`LiberationSans-Regular`,factors:ss,baseWidths:Go,baseMapping:Ko,metrics:cs},e[`Segoeui-Bold`]={name:`LiberationSans-Bold`,factors:ts,baseWidths:zo,baseMapping:Bo,metrics:ns},e[`Segoeui-Italic`]={name:`LiberationSans-Italic`,factors:as,baseWidths:Uo,baseMapping:Wo,metrics:os},e[`Segoeui-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:rs,baseWidths:Vo,baseMapping:Ho,metrics:is},e[`Helvetica-Regular`]=e.Helvetica={name:`LiberationSans-Regular`,factors:Lo,baseWidths:Go,baseMapping:Ko,metrics:Ro},e[`Helvetica-Bold`]={name:`LiberationSans-Bold`,factors:jo,baseWidths:zo,baseMapping:Bo,metrics:Mo},e[`Helvetica-Italic`]={name:`LiberationSans-Italic`,factors:Fo,baseWidths:Uo,baseMapping:Wo,metrics:Io},e[`Helvetica-BoldItalic`]={name:`LiberationSans-BoldItalic`,factors:No,baseWidths:Vo,baseMapping:Ho,metrics:Po}});function us(e){let t=hi(e);return ls()[t]}function ds(e){let t=function(e){let t=us(e);if(!t)return null;let{baseWidths:n,baseMapping:r,factors:i}=t,a=i?n.map((e,t)=>e*i[t]):n,o,s=-2,c=[];for(let[e,t]of r.map((e,t)=>[e,t]).sort(([e],[t])=>e-t))e!==-1&&(e===s+1?(o.push(a[t]),s+=1):(s=e,o=[a[t]],c.push(e,o)));return c}(e),n=new L(null);n.set(`BaseFont`,I.get(e)),n.set(`Type`,I.get(`Font`)),n.set(`Subtype`,I.get(`CIDFontType2`)),n.set(`Encoding`,I.get(`Identity-H`)),n.set(`CIDToGIDMap`,I.get(`Identity`)),n.set(`W`,t),n.set(`FirstChar`,t[0]),n.set(`LastChar`,t.at(-2)+t.at(-1).length-1);let r=new L(null);n.set(`FontDescriptor`,r);let i=new L(null);return i.set(`Ordering`,`Identity`),i.set(`Registry`,`Adobe`),i.set(`Supplement`,0),n.set(`CIDSystemInfo`,i),n}var fs=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new w(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(ps.LBRACE),this.parseBlock(),this.expect(ps.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(ps.NUMBER))this.operators.push(this.prev.value);else if(this.accept(ps.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(ps.LBRACE))return;this.parseCondition()}}parseCondition(){let e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(ps.RBRACE),this.accept(ps.IF))this.operators[e]=this.operators.length,this.operators[e+1]=`jz`;else{if(!this.accept(ps.LBRACE))throw new w(`PS Function: error parsing conditional.`);{let t=this.operators.length;this.operators.push(null,null);let n=this.operators.length;this.parseBlock(),this.expect(ps.RBRACE),this.expect(ps.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]=`j`,this.operators[e]=n,this.operators[e+1]=`jz`}}}};const ps={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};var ms=class e{static get opCache(){return v(this,`opCache`,Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(t){return e.opCache[t]||=new e(ps.OPERATOR,t)}static get LBRACE(){return v(this,`LBRACE`,new e(ps.LBRACE,`{`))}static get RBRACE(){return v(this,`RBRACE`,new e(ps.RBRACE,`}`))}static get IF(){return v(this,`IF`,new e(ps.IF,`IF`))}static get IFELSE(){return v(this,`IFELSE`,new e(ps.IFELSE,`IFELSE`))}},hs=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return ce;if(e)t!==10&&t!==13||(e=!1);else if(t===37)e=!0;else if(!Ve(t))break;t=this.nextChar()}switch(0|t){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 new ms(ps.NUMBER,this.getNumber());case 123:return this.nextChar(),ms.LBRACE;case 125:return this.nextChar(),ms.RBRACE}let n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));let r=n.join(``);switch(r.toLowerCase()){case`if`:return ms.IF;case`ifelse`:return ms.IFELSE;default:return ms.getOperator(r)}}getNumber(){let e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||e===45||e===46);)t.push(String.fromCharCode(e));let n=parseFloat(t.join(``));if(isNaN(n))throw new w(`Invalid floating point number: ${n}`);return n}},gs=class{constructor(e){this._onlyRefs=!0===e?.onlyRefs,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new he}getByName(e){this._onlyRefs&&h("Should not call `getByName` method.");let t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,n){h("Abstract method `set` called.")}},_s=class extends gs{set(e,t=null,n){if(typeof e!=`string`)throw Error(`LocalImageCache.set - expected "name" argument.`);if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t),this._imageCache.put(t,n);return}this._imageMap.has(e)||this._imageMap.set(e,n)}},vs=class extends gs{set(e=null,t=null,n){if(typeof e!=`string`&&!t)throw Error(`LocalColorSpaceCache.set - expected "name" and/or "ref" argument.`);if(t){if(this._imageCache.has(t))return;e!==null&&this._nameRefMap.set(e,t),this._imageCache.put(t,n);return}this._imageMap.has(e)||this._imageMap.set(e,n)}},ys=class extends gs{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`LocalFunctionCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}},bs=class extends gs{set(e,t=null,n){if(typeof e!=`string`)throw Error(`LocalGStateCache.set - expected "name" argument.`);if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t),this._imageCache.put(t,n);return}this._imageMap.has(e)||this._imageMap.set(e,n)}},xs=class extends gs{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`LocalTilingPatternCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}},Ss=class extends gs{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`RegionalImageCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}},Cs=class extends gs{constructor(e){super({onlyRefs:!0})}set(e=null,t,n){if(!t)throw Error(`GlobalColorSpaceCache.set - expected "ref" argument.`);this._imageCache.has(t)||this._imageCache.put(t,n)}clear(){this._imageCache.clear()}},ws=class e{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5e7;#e=new me;constructor(){this._refCache=new he,this._imageCache=new he}get#t(){let e=0;for(let t of this._imageCache)e+=t.byteSize;return e}get#n(){return!(this._imageCache.size<e.MIN_IMAGES_TO_CACHE)&&!(this.#t<e.MAX_BYTE_SIZE)}shouldCache(t,n){let r=this._refCache.get(t);return r||(r=new Set,this._refCache.put(t,r)),r.add(n),!(r.size<e.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this.#n)}addDecodeFailed(e){this.#e.put(e)}hasDecodeFailed(e){return this.#e.has(e)}addByteSize(e,t){let n=this._imageCache.get(e);n&&(n.byteSize||=t)}getData(t,n){let r=this._refCache.get(t);if(!r||r.size<e.NUM_PAGES_THRESHOLD)return null;let i=this._imageCache.get(t);return i?(r.add(n),i):null}setData(e,t){if(!this._refCache.has(e))throw Error(`GlobalImageCache.setData - expected "shouldCache" to have been called.`);this._imageCache.has(e)||(this.#n?m(`GlobalImageCache.setData - cache limit reached.`):this._imageCache.put(e,t))}clear(e=!1){e||(this.#e.clear(),this._refCache.clear()),this._imageCache.clear()}},Ts=class{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e,this.isEvalSupported=!1!==t}create(e,t=!1){let n,r;if(e instanceof R?n=e:e instanceof L?n=e.objId:e instanceof be&&(n=e.dict?.objId),n){let e=this._localFunctionCache.getByRef(n);if(e)return e}let i=this.xref.fetchIfRef(e);if(Array.isArray(i)){if(!t)throw Error(`PDFFunctionFactory.create - expected "parseArray" argument.`);r=Ds.parseArray(this,i)}else r=Ds.parse(this,i);return n&&this._localFunctionCache.set(null,n,r),r}get _localFunctionCache(){return v(this,`_localFunctionCache`,new ys)}};function Es(e){return Array.isArray(e)?He(e,null)?e:e.map(e=>+e):null}var Ds=class{static getSampleArray(e,t,n,r){let i,a,o=1;for(i=0,a=e.length;i<a;i++)o*=e[i];o*=t;let s=Array(o),c=0,l=0,u=1/(2**n-1),d=r.getBytes((o*n+7)/8),f=0;for(i=0;i<o;i++){for(;c<n;)l<<=8,l|=d[f++],c+=8;c-=n,s[i]=(l>>c)*u,l&=(1<<c)-1}return s}static parse(e,t){let n=t.dict||t;switch(n.get(`FunctionType`)){case 0:return this.constructSampled(e,t,n);case 1:break;case 2:return this.constructInterpolated(e,n);case 3:return this.constructStiched(e,n);case 4:return this.constructPostScript(e,t,n)}throw new w(`Unknown type of function`)}static parseArray(e,t){let{xref:n}=e,r=[];for(let i of t)r.push(this.parse(e,n.fetchIfRef(i)));return function(e,t,n,i){for(let a=0,o=r.length;a<o;a++)r[a](e,t,n,i+a)}}static constructSampled(e,t,n){function r(e){let t=e.length,n=[],r=0;for(let i=0;i<t;i+=2)n[r++]=[e[i],e[i+1]];return n}function i(e,t,n,r,i){return r+(i-r)/(n-t)*(e-t)}let a=Es(n.getArray(`Domain`)),o=Es(n.getArray(`Range`));if(!a||!o)throw new w(`No domain or range`);let s=a.length/2,c=o.length/2;a=r(a),o=r(o);let l=Es(n.getArray(`Size`)),u=n.get(`BitsPerSample`),d=n.get(`Order`)||1;d!==1&&p(`No support for cubic spline interpolation: `+d);let f=Es(n.getArray(`Encode`));if(f)f=r(f);else{f=[];for(let e=0;e<s;++e)f.push([0,l[e]-1])}let m=Es(n.getArray(`Decode`));m=m?r(m):o;let h=this.getSampleArray(l,c,u,t);return function(e,t,n,r){let u=1<<s,d=new Float64Array(u).fill(1),p=new Uint32Array(u),g,_,v=c,y=1;for(g=0;g<s;++g){let n=a[g][0],r=a[g][1],o=i(ae(e[t+g],n,r),n,r,f[g][0],f[g][1]),s=l[g];o=ae(o,0,s-1);let c=o<s-1?Math.floor(o):o-1,m=c+1-o,h=o-c,b=c*v,x=b+v;for(_=0;_<u;_++)_&y?(d[_]*=h,p[_]+=x):(d[_]*=m,p[_]+=b);v*=s,y<<=1}for(_=0;_<c;++_){let e=0;for(g=0;g<u;g++)e+=h[p[g]+_]*d[g];e=i(e,0,1,m[_][0],m[_][1]),n[r+_]=ae(e,o[_][0],o[_][1])}}}static constructInterpolated(e,t){let n=Es(t.getArray(`C0`))||[0],r=Es(t.getArray(`C1`))||[1],i=t.get(`N`),a=[];for(let e=0,t=n.length;e<t;++e)a.push(r[e]-n[e]);let o=a.length;return function(e,t,r,s){let c=i===1?e[t]:e[t]**i;for(let e=0;e<o;++e)r[s+e]=n[e]+c*a[e]}}static constructStiched(e,t){let n=Es(t.getArray(`Domain`));if(!n)throw new w(`No domain`);if(n.length/2!=1)throw new w(`Bad domain for stiched function`);let{xref:r}=e,i=[];for(let n of t.get(`Functions`))i.push(this.parse(e,r.fetchIfRef(n)));let a=Es(t.getArray(`Bounds`)),o=Es(t.getArray(`Encode`)),s=new Float32Array(1);return function(e,t,r,c){let l=ae(e[t],n[0],n[1]),u=a.length,d;for(d=0;d<u&&!(l<a[d]);++d);let f=n[0];d>0&&(f=a[d-1]);let p=n[1];d<a.length&&(p=a[d]);let m=o[2*d],h=o[2*d+1];s[0]=f===p?m:m+(l-f)*(h-m)/(p-f),i[d](s,0,r,c)}}static constructPostScript(e,t,n){let r=Es(n.getArray(`Domain`)),i=Es(n.getArray(`Range`));if(!r)throw new w(`No domain.`);if(!i)throw new w(`No range.`);let a=new fs(new hs(t)).parse();if(e.isEvalSupported&&A.isEvalSupported){let e=new Us().compile(a,r,i);if(e)return Function(`src`,`srcOffset`,`dest`,`destOffset`,e)}p(`Unable to compile PS function`);let o=i.length>>1,s=r.length>>1,c=new As(a),l=Object.create(null),u=8192,d=new Float32Array(s);return function(e,t,n,r){let a,f,p=``,m=d;for(a=0;a<s;a++)f=e[t+a],m[a]=f,p+=f+`_`;let h=l[p];if(h!==void 0)return void n.set(h,r);let g=new Float32Array(o),_=c.execute(m),v=_.length-o;for(a=0;a<o;a++){f=_[v+a];let e=i[2*a];f<e?f=e:(e=i[2*a+1],f>e&&(f=e)),g[a]=f}u>0&&(u--,l[p]=g),n.set(g,r)}}};function Os(e){let t;if(e instanceof L)t=e;else{if(!(e instanceof be))return!1;t=e.dict}return t.has(`FunctionType`)}var ks=class e{static MAX_STACK_SIZE=100;constructor(e){this.stack=e?Array.from(e):[]}push(t){if(this.stack.length>=e.MAX_STACK_SIZE)throw Error(`PostScript function stack overflow.`);this.stack.push(t)}pop(){if(this.stack.length<=0)throw Error(`PostScript function stack underflow.`);return this.stack.pop()}copy(t){if(this.stack.length+t>=e.MAX_STACK_SIZE)throw Error(`PostScript function stack overflow.`);let n=this.stack;for(let e=n.length-t,r=t-1;r>=0;r--,e++)n.push(n[e])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){let n=this.stack,r=n.length-e,i=n.length-1,a=r+(t-Math.floor(t/e)*e);for(let e=r,t=i;e<t;e++,t--){let r=n[e];n[e]=n[t],n[t]=r}for(let e=r,t=a-1;e<t;e++,t--){let r=n[e];n[e]=n[t],n[t]=r}for(let e=a,t=i;e<t;e++,t--){let r=n[e];n[e]=n[t],n[t]=r}}},As=class{constructor(e){this.operators=e}execute(e){let t=new ks(e),n=0,r=this.operators,i=r.length,a,o,s;for(;n<i;)if(a=r[n++],typeof a!=`number`)switch(a){case`jz`:s=t.pop(),o=t.pop(),o||(n=s);break;case`j`:o=t.pop(),n=o;break;case`abs`:o=t.pop(),t.push(Math.abs(o));break;case`add`:s=t.pop(),o=t.pop(),t.push(o+s);break;case`and`:s=t.pop(),o=t.pop(),typeof o==`boolean`&&typeof s==`boolean`?t.push(o&&s):t.push(o&s);break;case`atan`:s=t.pop(),o=t.pop(),o=Math.atan2(o,s)/Math.PI*180,o<0&&(o+=360),t.push(o);break;case`bitshift`:s=t.pop(),o=t.pop(),o>0?t.push(o<<s):t.push(o>>s);break;case`ceiling`:o=t.pop(),t.push(Math.ceil(o));break;case`copy`:o=t.pop(),t.copy(o);break;case`cos`:o=t.pop(),t.push(Math.cos(o%360/180*Math.PI));break;case`cvi`:o=0|t.pop(),t.push(o);break;case`cvr`:break;case`div`:s=t.pop(),o=t.pop(),t.push(o/s);break;case`dup`:t.copy(1);break;case`eq`:s=t.pop(),o=t.pop(),t.push(o===s);break;case`exch`:t.roll(2,1);break;case`exp`:s=t.pop(),o=t.pop(),t.push(o**s);break;case`false`:t.push(!1);break;case`floor`:o=t.pop(),t.push(Math.floor(o));break;case`ge`:s=t.pop(),o=t.pop(),t.push(o>=s);break;case`gt`:s=t.pop(),o=t.pop(),t.push(o>s);break;case`idiv`:s=t.pop(),o=t.pop(),t.push(o/s|0);break;case`index`:o=t.pop(),t.index(o);break;case`le`:s=t.pop(),o=t.pop(),t.push(o<=s);break;case`ln`:o=t.pop(),t.push(Math.log(o));break;case`log`:o=t.pop(),t.push(Math.log10(o));break;case`lt`:s=t.pop(),o=t.pop(),t.push(o<s);break;case`mod`:s=t.pop(),o=t.pop(),t.push(o%s);break;case`mul`:s=t.pop(),o=t.pop(),t.push(o*s);break;case`ne`:s=t.pop(),o=t.pop(),t.push(o!==s);break;case`neg`:o=t.pop(),t.push(-o);break;case`not`:o=t.pop(),typeof o==`boolean`?t.push(!o):t.push(~o);break;case`or`:s=t.pop(),o=t.pop(),typeof o==`boolean`&&typeof s==`boolean`?t.push(o||s):t.push(o|s);break;case`pop`:t.pop();break;case`roll`:s=t.pop(),o=t.pop(),t.roll(o,s);break;case`round`:o=t.pop(),t.push(Math.round(o));break;case`sin`:o=t.pop(),t.push(Math.sin(o%360/180*Math.PI));break;case`sqrt`:o=t.pop(),t.push(Math.sqrt(o));break;case`sub`:s=t.pop(),o=t.pop(),t.push(o-s);break;case`true`:t.push(!0);break;case`truncate`:o=t.pop(),o=o<0?Math.ceil(o):Math.floor(o),t.push(o);break;case`xor`:s=t.pop(),o=t.pop(),typeof o==`boolean`&&typeof s==`boolean`?t.push(o!==s):t.push(o^s);break;default:throw new w(`Unknown operator ${a}`)}else t.push(a);return t.stack}},js=class{constructor(e){this.type=e}visit(e){h(`abstract method`)}},Ms=class extends js{constructor(e,t,n){super(`args`),this.index=e,this.min=t,this.max=n}visit(e){e.visitArgument(this)}},Ns=class extends js{constructor(e){super(`literal`),this.number=e,this.min=e,this.max=e}visit(e){e.visitLiteral(this)}},Ps=class extends js{constructor(e,t,n,r,i){super(`binary`),this.op=e,this.arg1=t,this.arg2=n,this.min=r,this.max=i}visit(e){e.visitBinaryOperation(this)}},Fs=class extends js{constructor(e,t){super(`max`),this.arg=e,this.min=e.min,this.max=t}visit(e){e.visitMin(this)}},Is=class extends js{constructor(e,t,n){super(`var`),this.index=e,this.min=t,this.max=n}visit(e){e.visitVariable(this)}},Ls=class extends js{constructor(e,t){super(`definition`),this.variable=e,this.arg=t}visit(e){e.visitVariableDefinition(this)}},Rs=class{constructor(){this.parts=[]}visitArgument(e){this.parts.push(`Math.max(`,e.min,`, Math.min(`,e.max,`, src[srcOffset + `,e.index,`]))`)}visitVariable(e){this.parts.push(`v`,e.index)}visitLiteral(e){this.parts.push(e.number)}visitBinaryOperation(e){this.parts.push(`(`),e.arg1.visit(this),this.parts.push(` `,e.op,` `),e.arg2.visit(this),this.parts.push(`)`)}visitVariableDefinition(e){this.parts.push(`var `),e.variable.visit(this),this.parts.push(` = `),e.arg.visit(this),this.parts.push(`;`)}visitMin(e){this.parts.push(`Math.min(`),e.arg.visit(this),this.parts.push(`, `,e.max,`)`)}toString(){return this.parts.join(``)}};function zs(e,t){return t.type===`literal`&&t.number===0?e:e.type===`literal`&&e.number===0?t:t.type===`literal`&&e.type===`literal`?new Ns(e.number+t.number):new Ps(`+`,e,t,e.min+t.min,e.max+t.max)}function Bs(e,t){if(t.type===`literal`){if(t.number===0)return new Ns(0);if(t.number===1)return e;if(e.type===`literal`)return new Ns(e.number*t.number)}if(e.type===`literal`){if(e.number===0)return new Ns(0);if(e.number===1)return t}return new Ps(`*`,e,t,Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max))}function Vs(e,t){if(t.type===`literal`){if(t.number===0)return e;if(e.type===`literal`)return new Ns(e.number-t.number)}return t.type===`binary`&&t.op===`-`&&e.type===`literal`&&e.number===1&&t.arg1.type===`literal`&&t.arg1.number===1?t.arg2:new Ps(`-`,e,t,e.min-t.max,e.max-t.min)}function Hs(e,t){return e.min>=t?new Ns(t):e.max<=t?e:new Fs(e,t)}var Us=class{compile(e,t,n){let r=[],i=[],a=t.length>>1,o=n.length>>1,s,c,l,u,d,f,p,m,h=0;for(let e=0;e<a;e++)r.push(new Ms(e,t[2*e],t[2*e+1]));for(let t=0,n=e.length;t<n;t++)if(m=e[t],typeof m!=`number`)switch(m){case`add`:if(r.length<2)return null;u=r.pop(),l=r.pop(),r.push(zs(l,u));break;case`cvr`:if(r.length<1)return null;break;case`mul`:if(r.length<2)return null;u=r.pop(),l=r.pop(),r.push(Bs(l,u));break;case`sub`:if(r.length<2)return null;u=r.pop(),l=r.pop(),r.push(Vs(l,u));break;case`exch`:if(r.length<2)return null;d=r.pop(),f=r.pop(),r.push(d,f);break;case`pop`:if(r.length<1)return null;r.pop();break;case`index`:if(r.length<1||(l=r.pop(),l.type!==`literal`)||(s=l.number,s<0||!Number.isInteger(s)||r.length<s))return null;if(d=r[r.length-s-1],d.type===`literal`||d.type===`var`){r.push(d);break}p=new Is(h++,d.min,d.max),r[r.length-s-1]=p,r.push(p),i.push(new Ls(p,d));break;case`dup`:if(r.length<1)return null;if(typeof e[t+1]==`number`&&e[t+2]===`gt`&&e[t+3]===t+7&&e[t+4]===`jz`&&e[t+5]===`pop`&&e[t+6]===e[t+1]){l=r.pop(),r.push(Hs(l,e[t+1])),t+=6;break}if(d=r.at(-1),d.type===`literal`||d.type===`var`){r.push(d);break}p=new Is(h++,d.min,d.max),r[r.length-1]=p,r.push(p),i.push(new Ls(p,d));break;case`roll`:if(r.length<2||(u=r.pop(),l=r.pop(),u.type!==`literal`||l.type!==`literal`)||(c=u.number,s=l.number,s<=0||!Number.isInteger(s)||!Number.isInteger(c)||r.length<s))return null;if(c=(c%s+s)%s,c===0)break;r.push(...r.splice(r.length-s,s-c));break;default:return null}else r.push(new Ns(m));if(r.length!==o)return null;let g=[];for(let e of i){let t=new Rs;e.visit(t),g.push(t.toString())}for(let e=0,t=r.length;e<t;e++){let t=r[e],i=new Rs;t.visit(i);let a=n[2*e],o=n[2*e+1],s=[i.toString()];a>t.min&&(s.unshift(`Math.max(`,a,`, `),s.push(`)`)),o<t.max&&(s.unshift(`Math.min(`,o,`, `),s.push(`)`)),s.unshift(`dest[destOffset + `,e,`] = `),s.push(`;`),g.push(s.join(``))}return g.join(`
|
|
5
5
|
`)}};const Ws=`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(`.`),Gs=`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(`.`);function Ks(e){return!!(1&e)}function qs(e){return!(1&e)}function Js(e,t,n){let r,i;for(r=t,i=e.length;r<i;++r)if(e[r]!==n)return r;return r}function Ys(e,t,n){for(let r=t,i=n-1;r<i;++r,--i){let t=e[r];e[r]=e[i],e[i]=t}}function Xs(e,t,n=!1){let r=`ltr`;return n?r=`ttb`:t||(r=`rtl`),{str:e,dir:r}}const Zs=[],Qs=[];function $s(e,t=-1,n=!1){let r=!0,i=e.length;if(i===0||n)return Xs(e,r,n);Zs.length=i,Qs.length=i;let a,o,s=0;for(a=0;a<i;++a){Zs[a]=e.charAt(a);let t=e.charCodeAt(a),n=`L`;t<=255?n=Ws[t]:1424<=t&&t<=1524?n=`R`:1536<=t&&t<=1791?(n=Gs[255&t],n||m(`Bidi: invalid Unicode character `+t.toString(16))):(1792<=t&&t<=2220||64336<=t&&t<=65023||65136<=t&&t<=65279)&&(n=`AL`),n!==`R`&&n!==`AL`&&n!==`AN`||s++,Qs[a]=n}if(s===0)return r=!0,Xs(e,r);t===-1&&(s/i<.3&&i>4?(r=!0,t=0):(r=!1,t=1));let c=[];for(a=0;a<i;++a)c[a]=t;let l=Ks(t)?`R`:`L`,u=l,d=u,f,p=u;for(a=0;a<i;++a)Qs[a]===`NSM`?Qs[a]=p:p=Qs[a];for(p=u,a=0;a<i;++a)f=Qs[a],f===`EN`?Qs[a]=p===`AL`?`AN`:`EN`:f!==`R`&&f!==`L`&&f!==`AL`||(p=f);for(a=0;a<i;++a)f=Qs[a],f===`AL`&&(Qs[a]=`R`);for(a=1;a<i-1;++a)Qs[a]===`ES`&&Qs[a-1]===`EN`&&Qs[a+1]===`EN`&&(Qs[a]=`EN`),Qs[a]!==`CS`||Qs[a-1]!==`EN`&&Qs[a-1]!==`AN`||Qs[a+1]!==Qs[a-1]||(Qs[a]=Qs[a-1]);for(a=0;a<i;++a)if(Qs[a]===`EN`){for(let e=a-1;e>=0&&Qs[e]===`ET`;--e)Qs[e]=`EN`;for(let e=a+1;e<i&&Qs[e]===`ET`;++e)Qs[e]=`EN`}for(a=0;a<i;++a)f=Qs[a],f!==`WS`&&f!==`ES`&&f!==`ET`&&f!==`CS`||(Qs[a]=`ON`);for(p=u,a=0;a<i;++a)f=Qs[a],f===`EN`?Qs[a]=p===`L`?`L`:`EN`:f!==`R`&&f!==`L`||(p=f);for(a=0;a<i;++a)if(Qs[a]===`ON`){let e=Js(Qs,a+1,`ON`),t=u;a>0&&(t=Qs[a-1]);let n=d;e+1<i&&(n=Qs[e+1]),t!==`L`&&(t=`R`),n!==`L`&&(n=`R`),t===n&&Qs.fill(t,a,e),a=e-1}for(a=0;a<i;++a)Qs[a]===`ON`&&(Qs[a]=l);for(a=0;a<i;++a)f=Qs[a],qs(c[a])?f===`R`?c[a]+=1:f!==`AN`&&f!==`EN`||(c[a]+=2):f!==`L`&&f!==`AN`&&f!==`EN`||(c[a]+=1);let h,g=-1,_=99;for(a=0,o=c.length;a<o;++a)h=c[a],g<h&&(g=h),_>h&&Ks(h)&&(_=h);for(h=g;h>=_;--h){let e=-1;for(a=0,o=c.length;a<o;++a)c[a]<h?e>=0&&(Ys(Zs,e,a),e=-1):e<0&&(e=a);e>=0&&Ys(Zs,e,c.length)}for(a=0,o=Zs.length;a<o;++a){let e=Zs[a];e!==`<`&&e!==`>`||(Zs[a]=``)}return Xs(Zs.join(``),r)}let ec=class e{#e;#t;#n;static strings=[`fontFamily`,`fontWeight`,`italicAngle`];static write(t){let n=new TextEncoder,r={},i=0;for(let a of e.strings){let e=n.encode(t[a]);r[a]=e,i+=4+e.length}let a=new ArrayBuffer(i),o=new Uint8Array(a),s=new DataView(a),c=0;for(let t of e.strings){let e=r[t],n=e.length;s.setUint32(c,n),o.set(e,c+4),c+=4+n}return g(c===a.byteLength,`CssFontInfo.write: Buffer overflow`),a}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#n=new TextDecoder}#r(t){g(t<e.strings.length,`Invalid string index`);let n=0;for(let e=0;e<t;e++)n+=this.#t.getUint32(n)+4;let r=this.#t.getUint32(n);return this.#n.decode(new Uint8Array(this.#e,n+4,r))}get fontFamily(){return this.#r(0)}get fontWeight(){return this.#r(1)}get italicAngle(){return this.#r(2)}},tc=class e{#e;#t;#n;static strings=[`css`,`loadedName`,`baseFontName`,`src`];static write(t){let n=new TextEncoder,r={},i=0;for(let a of e.strings){let e=n.encode(t[a]);r[a]=e,i+=4+e.length}i+=4;let a,o,s=1+i;t.style&&(a=n.encode(t.style.style),o=n.encode(t.style.weight),s+=4+a.length+4+o.length);let c=new ArrayBuffer(s),l=new Uint8Array(c),u=new DataView(c),d=0;u.setUint8(d++,+!!t.guessFallback),u.setUint32(d,0),d+=4,i=0;for(let t of e.strings){let e=r[t],n=e.length;i+=4+n,u.setUint32(d,n),l.set(e,d+4),d+=4+n}return u.setUint32(d-i-4,i),t.style&&(u.setUint32(d,a.length),l.set(a,d+4),d+=4+a.length,u.setUint32(d,o.length),l.set(o,d+4),d+=4+o.length),g(d<=c.byteLength,`SubstitionInfo.write: Buffer overflow`),c.transferToFixedLength(d)}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#n=new TextDecoder}get guessFallback(){return this.#t.getUint8(0)!==0}#r(t){g(t<e.strings.length,`Invalid string index`);let n=5;for(let e=0;e<t;e++)n+=this.#t.getUint32(n)+4;let r=this.#t.getUint32(n);return this.#n.decode(new Uint8Array(this.#e,n+4,r))}get css(){return this.#r(0)}get loadedName(){return this.#r(1)}get baseFontName(){return this.#r(2)}get src(){return this.#r(3)}get style(){let e=1;e+=4+this.#t.getUint32(e);let t=this.#t.getUint32(e),n=this.#n.decode(new Uint8Array(this.#e,e+4,t));e+=4+t;let r=this.#t.getUint32(e);return{style:n,weight:this.#n.decode(new Uint8Array(this.#e,e+4,r))}}},nc=class e{static bools=[`black`,`bold`,`disableFontFace`,`fontExtraProperties`,`isInvalidPDFjsFont`,`isType3Font`,`italic`,`missingFile`,`remeasure`,`vertical`];static numbers=[`ascent`,`defaultWidth`,`descent`];static strings=[`fallbackName`,`loadedName`,`mimetype`,`name`];static#e=Math.ceil(2*this.bools.length/8);static#t=this.#e+8*this.numbers.length;static#n=this.#t+1+8;static#r=this.#n+1+48;static#i=this.#r+1+6;#a;#o;#s;constructor({data:e,extra:t}){this.#a=e,this.#o=new TextDecoder,this.#s=new DataView(this.#a),t&&Object.assign(this,t)}#c(t){g(t<e.bools.length,`Invalid boolean index`);let n=Math.floor(t/4),r=2*t%8,i=this.#s.getUint8(n)>>r&3;return i===0?void 0:i===2}get black(){return this.#c(0)}get bold(){return this.#c(1)}get disableFontFace(){return this.#c(2)}get fontExtraProperties(){return this.#c(3)}get isInvalidPDFjsFont(){return this.#c(4)}get isType3Font(){return this.#c(5)}get italic(){return this.#c(6)}get missingFile(){return this.#c(7)}get remeasure(){return this.#c(8)}get vertical(){return this.#c(9)}#l(t){return g(t<e.numbers.length,`Invalid number index`),this.#s.getFloat64(e.#e+8*t)}get ascent(){return this.#l(0)}get defaultWidth(){return this.#l(1)}get descent(){return this.#l(2)}get bbox(){let t=e.#t;if(this.#s.getUint8(t)===0)return;t+=1;let n=[];for(let e=0;e<4;e++)n.push(this.#s.getInt16(t,!0)),t+=2;return n}get fontMatrix(){let t=e.#n;if(this.#s.getUint8(t)===0)return;t+=1;let n=[];for(let e=0;e<6;e++)n.push(this.#s.getFloat64(t,!0)),t+=8;return n}get defaultVMetrics(){let t=e.#r;if(this.#s.getUint8(t)===0)return;t+=1;let n=[];for(let e=0;e<3;e++)n.push(this.#s.getInt16(t,!0)),t+=2;return n}#u(t){g(t<e.strings.length,`Invalid string index`);let n=e.#i+4;for(let e=0;e<t;e++)n+=this.#s.getUint32(n)+4;let r=this.#s.getUint32(n),i=new Uint8Array(r);return i.set(new Uint8Array(this.#a,n+4,r)),this.#o.decode(i)}get fallbackName(){return this.#u(0)}get loadedName(){return this.#u(1)}get mimetype(){return this.#u(2)}get name(){return this.#u(3)}get data(){let t=e.#i;t+=4+this.#s.getUint32(t),t+=4+this.#s.getUint32(t),t+=4+this.#s.getUint32(t);let n=this.#s.getUint32(t);if(n!==0)return new Uint8Array(this.#a,t+4,n)}clearData(){let t=e.#i;t+=4+this.#s.getUint32(t),t+=4+this.#s.getUint32(t),t+=4+this.#s.getUint32(t);let n=this.#s.getUint32(t);new Uint8Array(this.#a,t+4,n).fill(0),this.#s.setUint32(t,0)}get cssFontInfo(){let t=e.#i;t+=4+this.#s.getUint32(t),t+=4+this.#s.getUint32(t);let n=this.#s.getUint32(t);if(n===0)return null;let r=new Uint8Array(n);return r.set(new Uint8Array(this.#a,t+4,n)),new ec(r.buffer)}get systemFontInfo(){let t=e.#i;t+=4+this.#s.getUint32(t);let n=this.#s.getUint32(t);if(n===0)return null;let r=new Uint8Array(n);return r.set(new Uint8Array(this.#a,t+4,n)),new tc(r.buffer)}static write(t){let n=t.systemFontInfo?tc.write(t.systemFontInfo):null,r=t.cssFontInfo?ec.write(t.cssFontInfo):null,i=new TextEncoder,a={},o=0;for(let n of e.strings)a[n]=i.encode(t[n]),o+=4+a[n].length;let s=e.#i+4+o+4+(n?n.byteLength:0)+4+(r?r.byteLength:0)+4+(t.data?t.data.length:0),c=new ArrayBuffer(s),l=new Uint8Array(c),u=new DataView(c),d=0,f=e.bools.length,p=0,m=0;for(let n=0;n<f;n++){let r=t[e.bools[n]];p|=(r===void 0?0:r?2:1)<<m,m+=2,m!==8&&n!==f-1||(u.setUint8(d++,p),p=0,m=0)}g(d===e.#e,`FontInfo.write: Boolean properties offset mismatch`);for(let n of e.numbers)u.setFloat64(d,t[n]),d+=8;if(g(d===e.#t,`FontInfo.write: Number properties offset mismatch`),t.bbox){u.setUint8(d++,4);for(let e of t.bbox)u.setInt16(d,e,!0),d+=2}else u.setUint8(d++,0),d+=8;if(g(d===e.#n,`FontInfo.write: BBox properties offset mismatch`),t.fontMatrix){u.setUint8(d++,6);for(let e of t.fontMatrix)u.setFloat64(d,e,!0),d+=8}else u.setUint8(d++,0),d+=48;if(g(d===e.#r,`FontInfo.write: FontMatrix properties offset mismatch`),t.defaultVMetrics){u.setUint8(d++,1);for(let e of t.defaultVMetrics)u.setInt16(d,e,!0),d+=2}else u.setUint8(d++,0),d+=6;g(d===e.#i,`FontInfo.write: DefaultVMetrics properties offset mismatch`),u.setUint32(e.#i,0),d+=4;for(let t of e.strings){let e=a[t],n=e.length;u.setUint32(d,n),l.set(e,d+4),d+=4+n}if(u.setUint32(e.#i,d-e.#i-4),n){let e=n.byteLength;u.setUint32(d,e),g(d+4+e<=c.byteLength,`FontInfo.write: Buffer overflow at systemFontInfo`),l.set(new Uint8Array(n),d+4),d+=4+e}else u.setUint32(d,0),d+=4;if(r){let e=r.byteLength;u.setUint32(d,e),g(d+4+e<=c.byteLength,`FontInfo.write: Buffer overflow at cssFontInfo`),l.set(new Uint8Array(r),d+4),d+=4+e}else u.setUint32(d,0),d+=4;return t.data===void 0?(u.setUint32(d,0),d+=4):(u.setUint32(d,t.data.length),l.set(t.data,d+4),d+=4+t.data.length),g(d<=c.byteLength,`FontInfo.write: Buffer overflow`),c.transferToFixedLength(d)}};const rc={style:`normal`,weight:`normal`},ic={style:`normal`,weight:`bold`},ac={style:`italic`,weight:`normal`},oc={style:`italic`,weight:`bold`},sc=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`,`DejaVu Serif`,`Bitstream Vera Serif`,`Ubuntu`],style:rc,ultimate:`serif`}],[`Times-Bold`,{alias:`Times-Roman`,style:ic,ultimate:`serif`}],[`Times-Italic`,{alias:`Times-Roman`,style:ac,ultimate:`serif`}],[`Times-BoldItalic`,{alias:`Times-Roman`,style:oc,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:rc,ultimate:`sans-serif`}],[`Helvetica-Bold`,{alias:`Helvetica`,path:`LiberationSans-Bold.ttf`,style:ic,ultimate:`sans-serif`}],[`Helvetica-Oblique`,{alias:`Helvetica`,path:`LiberationSans-Italic.ttf`,style:ac,ultimate:`sans-serif`}],[`Helvetica-BoldOblique`,{alias:`Helvetica`,path:`LiberationSans-BoldItalic.ttf`,style:oc,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:rc,ultimate:`monospace`}],[`Courier-Bold`,{alias:`Courier`,style:ic,ultimate:`monospace`}],[`Courier-Oblique`,{alias:`Courier`,style:ac,ultimate:`monospace`}],[`Courier-BoldOblique`,{alias:`Courier`,style:oc,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:rc,fallback:`Helvetica`}],[`ArialNarrow-Bold`,{alias:`ArialNarrow`,style:ic,fallback:`Helvetica-Bold`}],[`ArialNarrow-Italic`,{alias:`ArialNarrow`,style:ac,fallback:`Helvetica-Oblique`}],[`ArialNarrow-BoldItalic`,{alias:`ArialNarrow`,style:oc,fallback:`Helvetica-BoldOblique`}],[`Calibri`,{local:[`Calibri`,`Carlito`],style:rc,fallback:`Helvetica`}],[`Calibri-Bold`,{alias:`Calibri`,style:ic,fallback:`Helvetica-Bold`}],[`Calibri-Italic`,{alias:`Calibri`,style:ac,fallback:`Helvetica-Oblique`}],[`Calibri-BoldItalic`,{alias:`Calibri`,style:oc,fallback:`Helvetica-BoldOblique`}],[`Wingdings`,{local:[`Wingdings`,`URW Dingbats`],style:rc}],[`Wingdings-Regular`,{alias:`Wingdings`}],[`Wingdings-Bold`,{alias:`Wingdings`}]]),cc=new Map([[`Arial-Black`,`ArialBlack`]]);function lc(e){let t=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 e.split(/[- ,+]+/g).filter(e=>!t.has(e.toLowerCase())).join(` `)}function uc({alias:e,local:t,path:n,fallback:r,style:i,ultimate:a},o,s,c=!0,l=!0,u=``){let d={style:null,ultimate:null};if(t){let e=u?` ${u}`:``;for(let n of t)o.push(`local(${n}${e})`)}if(e){let t=sc.get(e),a=u||function(e){switch(e){case ic:return`Bold`;case ac:return`Italic`;case oc:return`Bold Italic`;default:if(e?.weight===`bold`)return`Bold`;if(e?.style===`italic`)return`Italic`}return``}(i);Object.assign(d,uc(t,o,s,c&&!r,l&&!n,a))}if(i&&(d.style=i),a&&(d.ultimate=a),c&&r){let{ultimate:e}=uc(sc.get(r),o,s,c,l&&!n,u);d.ultimate||=e}return l&&n&&s&&o.push(`url(${s}${n})`),d}function dc(e,t,n,r,i,a){if(r.startsWith(`InvalidPDFjsFont_`))return null;a!==`TrueType`&&a!==`Type1`||!/^[A-Z]{6}\+/.test(r)||(r=r.slice(7));let o=r=hi(r),s=e.get(o);if(s)return s;let c=sc.get(r);if(!c){for(let[e,t]of cc)if(r.startsWith(e)){r=`${t}${r.substring(e.length)}`,c=sc.get(r);break}}let l=!1;c||(c=sc.get(i),l=!0);let u=`${t.getDocId()}_s${t.createFontId()}`;if(!c){if(!et(r))return m(`Cannot substitute the font because of its name: ${r}`),e.set(o,null),null;let t=/bold/gi.test(r),n=/oblique|italic/gi.test(r),i=t&&n&&oc||t&&ic||n&&ac||rc;return s={css:`"${lc(r)}",${u}`,guessFallback:!0,loadedName:u,baseFontName:r,src:`local(${r})`,style:i},e.set(o,s),s}let d=[];l&&et(r)&&d.push(`local(${r})`);let{style:f,ultimate:p}=uc(c,d,n),h=p===null,g=h?``:`,${p}`;return s={css:`"${lc(r)}",${u}${g}`,guessFallback:h,loadedName:u,baseFontName:r,src:d.join(`,`),style:f},e.set(o,s),s}const fc=3285377520,pc=4294901760,mc=65535;let hc=class{constructor(e){this.h1=e?4294967295&e:fc,this.h2=e?4294967295&e:fc}update(e){let t,n;if(typeof e==`string`){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){let i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!ArrayBuffer.isView(e))throw Error(`Invalid data format, must be a string or TypedArray.`);t=e.slice(),n=t.byteLength}let r=n>>2,i=n-4*r,a=new Uint32Array(t.buffer,0,r),o=0,s=0,c=this.h1,l=this.h2,u=3432918353,d=461845907,f=11601,p=13715;for(let e=0;e<r;e++)1&e?(o=a[e],o=o*u&pc|o*f&mc,o=o<<15|o>>>17,o=o*d&pc|o*p&mc,c^=o,c=c<<13|c>>>19,c=5*c+3864292196):(s=a[e],s=s*u&pc|s*f&mc,s=s<<15|s>>>17,s=s*d&pc|s*p&mc,l^=s,l=l<<13|l>>>19,l=5*l+3864292196);switch(o=0,i){case 3:o^=t[4*r+2]<<16;case 2:o^=t[4*r+1]<<8;case 1:o^=t[4*r],o=o*u&pc|o*f&mc,o=o<<15|o>>>17,o=o*d&pc|o*p&mc,1&r?c^=o:l^=o}this.h1=c,this.h2=l}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&pc|36045*e&mc,t=4283543511*t&pc|(2950163797*(t<<16|e>>>16)&pc)>>>16,e^=t>>>1,e=444984403*e&pc|60499*e&mc,t=3301882366*t&pc|(3120437893*(t<<16|e>>>16)&pc)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,`0`)+(t>>>0).toString(16).padStart(8,`0`)}};function gc(e,t,n,r,i,a){let o=i*a,s;s=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);let c=n/i,l=r/a,u,d,f,p,m=0,h=new Uint16Array(i),g=n;for(u=0;u<i;u++)h[u]=Math.floor(u*c);for(u=0;u<a;u++)for(f=Math.floor(u*l)*g,d=0;d<i;d++)p=f+h[d],s[m++]=e[p];return s}var _c=class e{constructor({xref:t,res:n,image:r,isInline:i=!1,smask:a=null,mask:o=null,isMask:s=!1,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u}){this.image=r;let d=r.dict,f=d.get(`F`,`Filter`),p;if(f instanceof I)p=f.name;else if(Array.isArray(f)){let e=t.fetchIfRef(f[0]);e instanceof I&&(p=e.name)}switch(p){case`JPXDecode`:({width:r.width,height:r.height,componentsCount:r.numComps,bitsPerComponent:r.bitsPerComponent}=_n.parseImageProperties(r.stream)),r.stream.reset();let e=Ht.getReducePowerForJPX(r.width,r.height,r.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:d.has(`SMaskInData`),reducePower:e},e){let t=2**e;r.width=Math.ceil(r.width/t),r.height=Math.ceil(r.height/t)}break;case`JBIG2Decode`:r.bitsPerComponent=1,r.numComps=1}let h=d.get(`W`,`Width`),g=d.get(`H`,`Height`);if(Number.isInteger(r.width)&&r.width>0&&Number.isInteger(r.height)&&r.height>0&&(r.width!==h||r.height!==g))m(`PDFImage - using the Width/Height of the image data, rather than the image dictionary.`),h=r.width,g=r.height;else{let e=typeof h==`number`&&h>0,t=typeof g==`number`&&g>0;if(!e||!t){if(!r.fallbackDims)throw new w(`Invalid image width: ${h} or height: ${g}`);m(`PDFImage - using the Width/Height of the parent image, for SMask/Mask data.`),e||(h=r.fallbackDims.width),t||(g=r.fallbackDims.height)}}this.width=h,this.height=g,this.interpolate=d.get(`I`,`Interpolate`),this.imageMask=d.get(`IM`,`ImageMask`)||!1,this.matte=d.get(`Matte`)||!1;let _=r.bitsPerComponent;if(!_&&(_=d.get(`BPC`,`BitsPerComponent`),!_)){if(!this.imageMask)throw new w(`Bits per component missing in image: ${this.imageMask}`);_=1}if(this.bpc=_,!this.imageMask){let e=d.getRaw(`CS`)||d.getRaw(`ColorSpace`),a=!!e;if(a)this.jpxDecoderOptions?.smaskInData&&(e=I.get(`DeviceRGBA`));else if(this.jpxDecoderOptions)e=I.get(`DeviceRGBA`);else switch(r.numComps){case 1:e=I.get(`DeviceGray`);break;case 3:e=I.get(`DeviceRGB`);break;case 4:e=I.get(`DeviceCMYK`);break;default:throw Error(`Images with ${r.numComps} color components not supported.`)}this.colorSpace=Kt.parse({cs:e,xref:t,resources:i?n:null,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=a?this.numComps:0,this.jpxDecoderOptions.isIndexedColormap=this.colorSpace.name===`Indexed`)}if(this.decode=d.getArray(`D`,`Decode`),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,_)||s&&!xt.isDefaultDecode(this.decode,1))){this.needsDecode=!0;let e=(1<<_)-1;this.decodeCoefficients=[],this.decodeAddends=[];let t=this.colorSpace?.name===`Indexed`;for(let n=0,r=0;n<this.decode.length;n+=2,++r){let i=this.decode[n],a=this.decode[n+1];this.decodeCoefficients[r]=t?(a-i)/e:a-i,this.decodeAddends[r]=t?i:e*i}}a?(a.fallbackDims??={width:h,height:g},this.smask=new e({xref:t,res:n,image:a,isInline:i,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u})):o&&(o instanceof be?o.dict.get(`IM`,`ImageMask`)?(o.fallbackDims??={width:h,height:g},this.mask=new e({xref:t,res:n,image:o,isInline:i,isMask:!0,pdfFunctionFactory:c,globalColorSpaceCache:l,localColorSpaceCache:u})):m(`Ignoring /Mask in image without /ImageMask.`):this.mask=o)}static async buildImage({xref:t,res:n,image:r,isInline:i=!1,pdfFunctionFactory:a,globalColorSpaceCache:o,localColorSpaceCache:s}){let c=r,l=null,u=null,d=r.dict.get(`SMask`),f=r.dict.get(`Mask`);return d?d instanceof be?l=d:m(`Unsupported /SMask format.`):f&&(f instanceof be||Array.isArray(f)?u=f:m(`Unsupported /Mask format.`)),new e({xref:t,res:n,image:c,isInline:i,smask:l,mask:u,pdfFunctionFactory:a,globalColorSpaceCache:o,localColorSpaceCache:s})}static async createMask({image:e,isOffscreenCanvasSupported:t=!1}){let{dict:n}=e,r=n.get(`W`,`Width`),i=n.get(`H`,`Height`),a=n.get(`I`,`Interpolate`),o=n.getArray(`D`,`Decode`)?.[0]>0,s=(r+7>>3)*i,c=e.getBytes(s),l=r===1&&i===1&&o===(c.length===0||!!(128&c[0]));if(l)return{isSingleOpaquePixel:l};if(t){if(Ht.needsToBeResized(r,i)){let e=new Uint8ClampedArray(r*i*4);return Vt({src:c,dest:e,width:r,height:i,nonBlackColor:0,inverseDecode:o}),Ht.createImage({kind:3,data:e,width:r,height:i,interpolate:a})}let e=new OffscreenCanvas(r,i),t=e.getContext(`2d`),n=t.createImageData(r,i);return Vt({src:c,dest:n.data,width:r,height:i,nonBlackColor:0,inverseDecode:o}),t.putImageData(n,0,0),{data:null,width:r,height:i,interpolate:a,bitmap:e.transferToImageBitmap()}}let u=c.byteLength,d;if(e instanceof Wt&&(!o||s===u)?d=c:o?(d=new Uint8Array(s),d.set(c),d.fill(255,u)):d=new Uint8Array(c),o)for(let e=0;e<u;e++)d[e]^=255;return{data:d,width:r,height:i,interpolate:a}}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 t=this.bpc,n=this.numComps,r=this.decodeAddends,i=this.decodeCoefficients,a=(1<<t)-1,o,s;if(t===1){for(o=0,s=e.length;o<s;o++)e[o]=+!e[o];return}let c=0;for(o=0,s=this.width*this.height;o<s;o++)for(let t=0;t<n;t++)e[c]=ae(r[t]+e[c]*i[t],0,a),c++}getComponents(e){let t=this.bpc;if(t===8)return e;let n=this.width,r=this.height,i=this.numComps,a=n*r*i,o,s=0;o=t<=8?new Uint8Array(a):t<=16?new Uint16Array(a):new Uint32Array(a);let c=n*i,l=(1<<t)-1,u,d,f=0;if(t===1){let t,n,i;for(let a=0;a<r;a++){for(n=f+(-8&c),i=f+c;f<n;)d=e[s++],o[f]=d>>7&1,o[f+1]=d>>6&1,o[f+2]=d>>5&1,o[f+3]=d>>4&1,o[f+4]=d>>3&1,o[f+5]=d>>2&1,o[f+6]=d>>1&1,o[f+7]=1&d,f+=8;if(f<i)for(d=e[s++],t=128;f<i;)o[f++]=+!!(d&t),t>>=1}}else{let n=0;for(d=0,f=0,u=a;f<u;++f){for(f%c===0&&(d=0,n=0);n<t;)d=d<<8|e[s++],n+=8;let r=n-t,i=d>>r;i<0?i=0:i>l&&(i=l),o[f]=i,d&=(1<<r)-1,n=r}}return o}async fillOpacity(t,n,r,i,a){let o=this.smask,s=this.mask,c,l,u,d,f,p;if(o)l=o.width,u=o.height,c=new Uint8ClampedArray(l*u),await o.fillGrayBuffer(c),l===n&&u===r||(c=gc(c,o.bpc,l,u,n,r));else if(s)if(s instanceof e){for(l=s.width,u=s.height,c=new Uint8ClampedArray(l*u),s.numComps=1,await s.fillGrayBuffer(c),d=0,f=l*u;d<f;++d)c[d]=255-c[d];l===n&&u===r||(c=gc(c,s.bpc,l,u,n,r))}else{if(!Array.isArray(s))throw new w(`Unknown mask format.`);{c=new Uint8ClampedArray(n*r);let e=this.numComps;for(d=0,f=n*r;d<f;++d){let t=0,n=d*e;for(p=0;p<e;++p){let e=a[n+p],r=2*p;if(e<s[r]||e>s[r+1]){t=255;break}}c[d]=t}}}if(c)for(d=0,p=3,f=n*i;d<f;++d,p+=4)t[p]=c[d];else for(d=0,p=3,f=n*i;d<f;++d,p+=4)t[p]=255}undoPreblend(e,t,n){let r=this.smask?.matte;if(!r)return;let i=this.colorSpace.getRgb(r,0),a=i[0],o=i[1],s=i[2],c=t*n*4;for(let t=0;t<c;t+=4){let n=e[t+3];if(n===0){e[t]=255,e[t+1]=255,e[t+2]=255;continue}let r=255/n;e[t]=(e[t]-a)*r+a,e[t+1]=(e[t+1]-o)*r+o,e[t+2]=(e[t+2]-s)*r+s}}async createImageData(e=!1,t=!1){let n=this.drawWidth,r=this.drawHeight,i={width:n,height:r,interpolate:this.interpolate,kind:0,data:null},a=this.numComps,o=this.width,s=this.height,c=this.bpc,l=o*a*c+7>>3,u=t&&Ht.needsToBeResized(n,r);if(!this.smask&&!this.mask&&this.colorSpace.name===`DeviceRGBA`){i.kind=3;let e=i.data=await this.getImageBytes(s*o*4,{});return t?u?Ht.createImage(i,!1):this.createBitmap(3,n,r,e):i}if(!e){let e;if(this.colorSpace.name===`DeviceGray`&&c===1?e=1:this.colorSpace.name!==`DeviceRGB`||c!==8||this.needsDecode||(e=2),e&&!this.smask&&!this.mask&&n===o&&r===s){let a=await this.#e(o,s);if(a)return a;let c=await this.getImageBytes(s*l,{});if(t)return u?Ht.createImage({data:c,kind:e,width:n,height:r,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,o,s,c);if(i.kind=e,i.data=c,this.needsDecode){g(e===1,`PDFImage.createImageData: The image must be grayscale.`);let t=i.data;for(let e=0,n=t.length;e<n;e++)t[e]^=255}return i}if(this.image instanceof hn&&!this.smask&&!this.mask&&!this.needsDecode){let e=s*l;if(t&&!u){let t=!1;switch(this.colorSpace.name){case`DeviceGray`:e*=4,t=!0;break;case`DeviceRGB`:e=e/3*4,t=!0;break;case`DeviceCMYK`:t=!0}if(t){let t=await this.#e(n,r);if(t)return t;let i=await this.getImageBytes(e,{drawWidth:n,drawHeight:r,forceRGBA:!0});return this.createBitmap(3,n,r,i)}}else switch(this.colorSpace.name){case`DeviceGray`:e*=3;case`DeviceRGB`:case`DeviceCMYK`:return i.kind=2,i.data=await this.getImageBytes(e,{drawWidth:n,drawHeight:r,forceRGB:!0}),u?Ht.createImage(i):i}}}let d=await this.getImageBytes(s*l,{internal:!0}),f=0|d.length/l*r/s,p=this.getComponents(d),m,h,_,v,y,b;return t&&!u&&(_=new OffscreenCanvas(n,r),v=_.getContext(`2d`),y=v.createImageData(n,r),b=y.data),i.kind=3,e||this.smask||this.mask?(t&&!u||(b=new Uint8ClampedArray(n*r*4)),m=1,h=!0,await this.fillOpacity(b,n,r,f,p)):(!t||u?(i.kind=2,b=new Uint8ClampedArray(n*r*3),m=0):(new Uint32Array(b.buffer).fill(A.isLittleEndian?4278190080:255),m=1),h=!1),this.needsDecode&&this.decodeBuffer(p),this.colorSpace.fillRgb(b,o,s,n,r,f,c,p,m),h&&this.undoPreblend(b,n,f),t&&!u?(v.putImageData(y,0,0),{data:null,width:n,height:r,bitmap:_.transferToImageBitmap(),interpolate:this.interpolate}):(i.data=b,u?Ht.createImage(i):i)}async fillGrayBuffer(e){let t=this.numComps;if(t!==1)throw new w(`Reading gray scale from a color image: ${t}`);let n=this.width,r=this.height,i=this.bpc,a=n*t*i+7>>3,o=await this.getImageBytes(r*a,{internal:!0}),s=this.getComponents(o),c,l;if(i===1){if(l=n*r,this.needsDecode)for(c=0;c<l;++c)e[c]=s[c]-1&255;else for(c=0;c<l;++c)e[c]=255&-s[c];return}this.needsDecode&&this.decodeBuffer(s),l=n*r;let u=255/((1<<i)-1);for(c=0;c<l;++c)e[c]=u*s[c]}createBitmap(e,t,n,r){let i=new OffscreenCanvas(t,n),a=i.getContext(`2d`),o;return e===3?o=new ImageData(r,t,n):(o=a.createImageData(t,n),Bt({kind:e,src:r,dest:new Uint32Array(o.data.buffer),width:t,height:n,inverseDecode:this.needsDecode})),a.putImageData(o,0,0),{data:null,width:t,height:n,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}async#e(e,t){let n=await this.image.getTransferableImage();return n?{data:null,width:e,height:t,bitmap:n,interpolate:this.interpolate}:null}async getImageBytes(e,{drawWidth:t,drawHeight:n,forceRGBA:r=!1,forceRGB:i=!1,internal:a=!1}){this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=n||this.height,this.image.forceRGBA=!!r,this.image.forceRGB=!!i;let o=await this.image.getImageData(e,this.jpxDecoderOptions);return a||this.image instanceof Wt?o:(g(o instanceof Uint8Array,`PDFImage.getImageBytes: Unsupported "imageBytes" type.`),new Uint8Array(o))}};const vc=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,iccUrl:null,standardFontDataUrl:null,wasmUrl:null}),yc=Promise.resolve();function bc(e,t=!1){if(Array.isArray(e)){for(let t of e){let e=bc(t,!0);if(e)return e}return m(`Unsupported blend mode Array: ${e}`),`source-over`}if(!(e instanceof I))return t?null:`source-over`;switch(e.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`}return t?null:(m(`Unsupported blend mode: ${e.name}`),`source-over`)}function xc(e,{objId:t,fn:n,args:r,optionalContent:i,hasMask:a}){t&&e.addDependency(t),e.addImageOps(n,r,i,a),n===83&&r[0]?.count>0&&r[0].count++}var Sc=class e{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return!(++this.checked<e.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+e.TIME_SLOT_DURATION_MS,this.checked=0}},Cc=class e{constructor({xref:e,handler:t,pageIndex:n,idFactory:r,fontCache:i,builtInCMapCache:a,standardFontDataCache:o,globalColorSpaceCache:s,globalImageCache:c,systemFontCache:l,options:u=null}){this.xref=e,this.handler=t,this.pageIndex=n,this.idFactory=r,this.fontCache=i,this.builtInCMapCache=a,this.standardFontDataCache=o,this.globalColorSpaceCache=s,this.globalImageCache=c,this.systemFontCache=l,this.options=u||vc,this.type3FontRefs=null,this._regionalImageCache=new Ss,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return v(this,`_pdfFunctionFactory`,new Ts({xref:this.xref,isEvalSupported:this.options.isEvalSupported}))}get parsingType3Font(){return!!this.type3FontRefs}clone(e=null){let t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(!(e instanceof L)||e.objId&&t.has(e.objId))return!1;let n=new me(t);e.objId&&n.put(e.objId);let r=[e],i=this.xref;for(;r.length;){let e=r.shift(),t=e.get(`ExtGState`);if(t instanceof L)for(let e of t.getRawValues()){if(e instanceof R){if(n.has(e))continue;try{e=i.fetch(e)}catch(t){n.put(e),p(`hasBlendModes - ignoring ExtGState: "${t}".`);continue}}if(!(e instanceof L))continue;e.objId&&n.put(e.objId);let t=e.get(`BM`);if(t instanceof I){if(t.name!==`Normal`)return!0}else if(t!==void 0&&Array.isArray(t)){for(let e of t)if(e instanceof I&&e.name!==`Normal`)return!0}}let a=e.get(`XObject`);if(a instanceof L)for(let e of a.getRawValues()){if(e instanceof R){if(n.has(e))continue;try{e=i.fetch(e)}catch(t){n.put(e),p(`hasBlendModes - ignoring XObject: "${t}".`);continue}}if(!(e instanceof be))continue;e.dict.objId&&n.put(e.dict.objId);let t=e.dict.get(`Resources`);t instanceof L&&(t.objId&&n.has(t.objId)||(r.push(t),t.objId&&n.put(t.objId)))}}for(let e of n)t.put(e);return!1}async fetchBuiltInCMap(e){let t=this.builtInCMapCache.get(e);if(t)return t;let n;return n=this.options.useWorkerFetch?{cMapData:await Me(`${this.options.cMapUrl}${e}.bcmap`),isCompressed:!0}:await this.handler.sendWithPromise(`FetchBinaryData`,{type:`cMapReaderFactory`,name:e}),this.builtInCMapCache.set(e,n),n}async fetchStandardFontData(e){let t=this.standardFontDataCache.get(e);if(t)return new Ft(t);if(this.options.useSystemFonts&&e!==`Symbol`&&e!==`ZapfDingbats`)return null;let n=Bi()[e],r;try{r=this.options.useWorkerFetch?await Me(`${this.options.standardFontDataUrl}${n}`):await this.handler.sendWithPromise(`FetchBinaryData`,{type:`standardFontDataFactory`,filename:n})}catch(e){return m(e),null}return this.standardFontDataCache.set(e,r),new Ft(r)}async buildFormXObject(e,t,n,r,i,a,o,s){let{dict:c}=t,l=Ue(c.getArray(`Matrix`),null),u=Ge(c.getArray(`BBox`),null),d,f;c.has(`OC`)&&(d=await this.parseMarkedContentProps(c.get(`OC`),e)),d!==void 0&&r.addOp(70,[`OC`,d]);let p=c.get(`Group`);if(p){f={matrix:l,bbox:u,smask:n,isolated:!1,knockout:!1};let t=null;if(ge(p.get(`S`),`Transparency`)&&(f.isolated=p.get(`I`)||!1,f.knockout=p.get(`K`)||!1,p.has(`CS`))){let n=this._getColorSpace(p.getRaw(`CS`),e,o);t=n instanceof xt?n:await this._handleColorSpace(n)}n?.backdrop&&(t||=Kt.rgb,n.backdrop=t.getRgbHex(n.backdrop,0)),r.addOp(76,[f])}let m=[l&&new Float32Array(l),!p&&u&&new Float32Array(u)||null];r.addOp(74,m);let h=c.get(`Resources`);await this.getOperatorList({stream:t,task:i,resources:h instanceof L?h:e,operatorList:r,initialState:a,prevRefs:s}),r.addOp(75,[]),p&&r.addOp(77,[f]),d!==void 0&&r.addOp(71,[])}_sendImgData(e,t,n=!1){let r=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||n?this.handler.send(`commonobj`,[e,`Image`,t],r):this.handler.send(`obj`,[e,this.pageIndex,`Image`,t],r)}async buildPaintImageXObject({resources:e,image:t,isInline:n=!1,operatorList:r,cacheKey:i,localImageCache:a,localColorSpaceCache:o}){let{maxImageSize:s,ignoreErrors:c,isOffscreenCanvasSupported:l}=this.options,{dict:u}=t,d=u.objId,f=u.get(`W`,`Width`),p=u.get(`H`,`Height`);if(!f||typeof f!=`number`||!p||typeof p!=`number`)return void m(`Image dimensions are missing, or not numbers.`);if(s!==-1&&f*p>s){let e=`Image exceeded maximum allowed size and was removed.`;if(!c)throw Error(e);m(e);return}let h;u.has(`OC`)&&(h=await this.parseMarkedContentProps(u.get(`OC`),e));let _,v,y;if(u.get(`IM`,`ImageMask`)){if(_=await _c.createMask({image:t,isOffscreenCanvasSupported:l&&!this.parsingType3Font}),_.isSingleOpaquePixel){if(v=90,y=[],r.addImageOps(v,y,h),i){let e={fn:v,args:y,optionalContent:h};a.set(i,d,e),d&&this._regionalImageCache.set(null,d,e)}return}if(this.parsingType3Font)return y=function({data:e,width:t,height:n}){if(t>1e3||n>1e3)return null;let r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1,a=new Uint8Array(i*(n+1)),o,s,c,l=t+7&-8,u=new Uint8Array(l*n),d=0;for(let t of e){let e=128;for(;e>0;)u[d++]=t&e?0:255,e>>=1}let f=0;for(d=0,u[d]!==0&&(a[0]=1,++f),s=1;s<t;s++)u[d]!==u[d+1]&&(a[s]=u[d]?2:1,++f),d++;for(u[d]!==0&&(a[s]=2,++f),o=1;o<n;o++){d=o*l,c=o*i,u[d-l]!==u[d]&&(a[c]=u[d]?1:8,++f);let e=(u[d]?4:0)+(u[d-l]?8:0);for(s=1;s<t;s++)e=(e>>2)+(u[d+1]?4:0)+(u[d-l+1]?8:0),r[e]&&(a[c+s]=r[e],++f),d++;if(u[d-l]!==u[d]&&(a[c+s]=u[d]?2:4,++f),f>1e3)return null}for(d=l*(n-1),c=o*i,u[d]!==0&&(a[c]=8,++f),s=1;s<t;s++)u[d]!==u[d+1]&&(a[c+s]=u[d]?4:8,++f),d++;if(u[d]!==0&&(a[c+s]=4,++f),f>1e3)return null;let p=new Int32Array([0,i,-1,0,-i,0,0,0,1]),m=[],{a:h,b:g,c:_,d:v,e:y,f:b}=new DOMMatrix().scaleSelf(1/t,-1/n).translateSelf(0,-n);for(o=0;f&&o<=n;o++){let e=o*i,n=e+t;for(;e<n&&!a[e];)e++;if(e===n)continue;let r=e%i,s=o;m.push(0,h*r+_*s+y,g*r+v*s+b);let c=e,l=a[e];do{let t=p[l];do e+=t;while(!a[e]);let n=a[e];n!==5&&n!==10?(l=n,a[e]=0):(l=n&51*l>>4,a[e]&=l>>2|l<<2),r=e%i,s=e/i|0,m.push(1,h*r+_*s+y,g*r+v*s+b),a[e]||--f}while(c!==e);--o}return[94,[new Float32Array(m)],new Float32Array([0,0,t,n])]}(_),y?void r.addImageOps(91,y,h):(m(`Cannot compile Type3 glyph.`),void r.addImageOps(83,[_],h));let e=`mask_${this.idFactory.createObjId()}`;if(r.addDependency(e),_.dataLen=_.bitmap?_.width*_.height*4:_.data.length,this._sendImgData(e,_),v=83,y=[{data:e,width:_.width,height:_.height,interpolate:_.interpolate,count:1}],r.addImageOps(v,y,h),i){let t={objId:e,fn:v,args:y,optionalContent:h};a.set(i,d,t),d&&this._regionalImageCache.set(null,d,t)}return}let b=u.has(`SMask`)||u.has(`Mask`);if(n&&f+p<200&&!b){try{_=await new _c({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o}).createImageData(!0,!1),r.addImageOps(86,[_],h)}catch(e){let t=`Unable to decode inline image: "${e}".`;if(!c)throw Error(t);m(t)}return}let x=`img_${this.idFactory.createObjId()}`,S=!1,C=null;if(this.parsingType3Font?x=`${this.idFactory.getDocId()}_type3_${x}`:i&&d&&(S=this.globalImageCache.shouldCache(d,this.pageIndex),S&&(g(!n,`Cannot cache an inline image globally.`),x=`${this.idFactory.getDocId()}_${x}`)),r.addDependency(x),v=85,y=[x,f,p],r.addImageOps(v,y,h,b),S){if(C={objId:x,fn:v,args:y,optionalContent:h,hasMask:b,byteSize:0},this.globalImageCache.hasDecodeFailed(d))return this.globalImageCache.setData(d,C),void this._sendImgData(x,null,S);if(f*p>25e4||b){let e=await this.handler.sendWithPromise(`commonobj`,[x,`CopyLocalImage`,{imageRef:d}]);if(e)return this.globalImageCache.setData(d,C),void this.globalImageCache.addByteSize(d,e)}}if(_c.buildImage({xref:this.xref,res:e,image:t,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o}).then(async e=>(_=await e.createImageData(!1,l),_.dataLen=_.bitmap?_.width*_.height*4:_.data.length,_.ref=d,S&&this.globalImageCache.addByteSize(d,_.dataLen),this._sendImgData(x,_,S))).catch(e=>(m(`Unable to decode image "${x}": "${e}".`),d&&this.globalImageCache.addDecodeFailed(d),this._sendImgData(x,null,S))),i){let e={objId:x,fn:v,args:y,optionalContent:h,hasMask:b};a.set(i,d,e),d&&(this._regionalImageCache.set(null,d,e),S&&(g(C,`The global cache-data must be available.`),this.globalImageCache.setData(d,C)))}}handleSMask(e,t,n,r,i,a,o){let s=e.get(`G`),c={subtype:e.get(`S`).name,backdrop:e.get(`BC`)},l=e.get(`TR`);if(Os(l)){let e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),n=new Float32Array(1);for(let r=0;r<256;r++)n[0]=r/255,e(n,0,n,0),t[r]=255*n[0]|0;c.transferMap=t}return this.buildFormXObject(t,s,c,n,r,i.state.clone({newPath:!0}),a,o)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!Os(e))return null;t=[e]}let n=[],r=0,i=0;for(let e of t){let t=this.xref.fetchIfRef(e);if(r++,ge(t,`Identity`)){n.push(null);continue}if(!Os(t))return null;let a=this._pdfFunctionFactory.create(t),o=new Uint8Array(256),s=new Float32Array(1);for(let e=0;e<256;e++)s[0]=e/255,a(s,0,s,0),o[e]=255*s[0]|0;n.push(o),i++}return r!==1&&r!==4||i===0?null:n}handleTilingType(e,t,n,r,i,a,o,s){let c=new Sn,l=L.merge({xref:this.xref,dictArray:[i.get(`Resources`),n]});return this.getOperatorList({stream:r,task:o,resources:l,operatorList:c}).then(function(){let n=c.getIR(),r=So(n,i,t);a.addDependencies(c.dependencies),a.addOp(e,r),i.objId&&s.set(null,i.objId,{operatorListIR:n,dict:i})}).catch(e=>{if(!(e instanceof T)){if(!this.options.ignoreErrors)throw e;m(`handleTilingType - ignoring pattern: "${e}".`)}})}async handleSetFont(e,t,n,r,i,a,o=null,s=null){let c=t?.[0]instanceof I?t[0].name:null,l=await this.loadFont(c,n,e,i,o,s);return l.font.isType3Font&&r.addDependencies(l.type3Dependencies),a.font=l.font,l.send(this.handler),l.loadedName}handleText(t,n){let r=n.font,i=r.charsToGlyphs(t);return r.data&&(n.textRenderingMode&4||n.fillColorSpace.name===`Pattern`||r.disableFontFace)&&e.buildFontPaths(r,i,this.handler,this.options),i}ensureStateFont(e){if(e.font)return;let t=new w(`Missing setFont (Tf) operator before text rendering operator.`);if(!this.options.ignoreErrors)throw t;m(`ensureStateFont: "${t}".`)}async setGState({resources:e,gState:t,operatorList:n,cacheKey:r,task:i,stateManager:a,localGStateCache:o,localColorSpaceCache:s,seenRefs:c}){let l=t.objId,u=!0,d=[],f=Promise.resolve();for(let[r,o]of t)switch(r){case`Type`:break;case`LW`:if(typeof o!=`number`){m(`Invalid LW (line width): ${o}`);break}d.push([r,Math.abs(o)]);break;case`LC`:case`LJ`:case`ML`:case`D`:case`RI`:case`FL`:case`CA`:case`ca`:d.push([r,o]);break;case`Font`:u=!1,f=f.then(()=>this.handleSetFont(e,null,o[0],n,i,a.state).then(function(e){n.addDependency(e),d.push([r,[e,o[1]]])}));break;case`BM`:d.push([r,bc(o)]);break;case`SMask`:if(ge(o,`None`)){d.push([r,!1]);break}o instanceof L?(u=!1,f=f.then(()=>this.handleSMask(o,e,n,i,a,s,c)),d.push([r,!0])):m(`Unsupported SMask type`);break;case`TR`:let t=this.handleTransferFunction(o);d.push([r,t]);break;case`OP`:case`op`:case`OPM`:case`BG`:case`BG2`:case`UCR`:case`UCR2`:case`TR2`:case`HT`:case`SM`:case`SA`:case`AIS`:case`TK`:p(`graphic state operator `+r);break;default:p(`Unknown graphic state operator `+r)}await f,d.length>0&&n.addOp(9,[d]),u&&o.set(r,l,d)}loadFont(t,n,r,i,a=null,o=null){let s=async()=>new wc({loadedName:`g_font_error`,font:new po(`Font "${t}" is not available.`),dict:n}),c;if(n)n instanceof R&&(c=n);else{let e=r.get(`Font`);e&&(c=e.getRaw(t))}if(c){if(this.type3FontRefs?.has(c))return s();if(this.fontCache.has(c))return this.fontCache.get(c);try{n=this.xref.fetchIfRef(c)}catch(e){m(`loadFont - lookup failed: "${e}".`)}}if(!(n instanceof L)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return m(`Font "${t}" is not available.`),s();m(`Font "${t}" is not available -- attempting to fallback to a default font.`),n=a||e.fallbackFontDict}if(n.cacheKey&&this.fontCache.has(n.cacheKey))return this.fontCache.get(n.cacheKey);let{promise:l,resolve:u}=Promise.withResolvers(),d;try{d=this.preEvaluateFont(n),d.cssFontInfo=o}catch(e){return m(`loadFont - preEvaluateFont failed: "${e}".`),s()}let{descriptor:f,hash:p}=d,h=c instanceof R,_;if(p&&f instanceof L){let e=f.fontAliases||=Object.create(null);if(e[p]){let t=e[p].aliasRef;if(h&&t&&this.fontCache.has(t))return this.fontCache.putAlias(c,t),this.fontCache.get(c)}else e[p]={fontID:this.idFactory.createFontId()};h&&(e[p].aliasRef=c),_=e[p].fontID}else _=this.idFactory.createFontId();return g(_?.startsWith(`f`),`The "fontID" must be (correctly) defined.`),h?this.fontCache.put(c,l):(n.cacheKey=`cacheKey_${_}`,this.fontCache.put(n.cacheKey,l)),n.loadedName=`${this.idFactory.getDocId()}_${_}`,this.translateFont(d).then(async e=>{let t=new wc({loadedName:n.loadedName,font:e,dict:n});if(e.isType3Font)try{await t.loadType3Data(this,r,i)}catch(e){throw Error(`Type3 font load error: ${e}`)}u(t)}).catch(e=>{m(`loadFont - translateFont failed: "${e}".`),u(new wc({loadedName:n.loadedName,font:new po(e?.message),dict:n}))}),l}buildPath(e,t,n){let{pathMinMax:r,pathBuffer:i}=n;switch(0|e){case 19:{let e=n.currentPointX=t[0],a=n.currentPointY=t[1],o=t[2],s=t[3],c=e+o,l=a+s;o===0||s===0?i.push(0,e,a,1,c,l,3):i.push(0,e,a,1,c,a,1,c,l,1,e,l,3),M.rectBoundingBox(e,a,c,l,r);break}case 13:{let e=n.currentPointX=t[0],a=n.currentPointY=t[1];i.push(0,e,a),M.pointBoundingBox(e,a,r);break}case 14:{let e=n.currentPointX=t[0],a=n.currentPointY=t[1];i.push(1,e,a),M.pointBoundingBox(e,a,r);break}case 15:{let e=n.currentPointX,a=n.currentPointY,[o,s,c,l,u,d]=t;n.currentPointX=u,n.currentPointY=d,i.push(2,o,s,c,l,u,d),M.bezierBoundingBox(e,a,o,s,c,l,u,d,r);break}case 16:{let e=n.currentPointX,a=n.currentPointY,[o,s,c,l]=t;n.currentPointX=c,n.currentPointY=l,i.push(2,e,a,o,s,c,l),M.bezierBoundingBox(e,a,e,a,o,s,c,l,r);break}case 17:{let e=n.currentPointX,a=n.currentPointY,[o,s,c,l]=t;n.currentPointX=c,n.currentPointY=l,i.push(2,o,s,c,l,c,l),M.bezierBoundingBox(e,a,o,s,c,l,c,l,r);break}case 18:i.push(3)}}_getColorSpace(e,t,n){return Kt.parse({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:n,asyncIfNotCached:!0})}async _handleColorSpace(e){try{return await e}catch(e){if(e instanceof T)return null;if(this.options.ignoreErrors)return m(`_handleColorSpace - ignoring ColorSpace: "${e}".`),null;throw e}}parseShading({shading:e,resources:t,localColorSpaceCache:n,localShadingPatternCache:r}){let i,a=r.get(e);if(a)return a;try{i=mo.parseShading(e,this.xref,t,this._pdfFunctionFactory,this.globalColorSpaceCache,n).getIR()}catch(t){if(t instanceof T)return null;if(this.options.ignoreErrors)return m(`parseShading - ignoring shading: "${t}".`),r.set(e,null),null;throw t}return a=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(a=`${this.idFactory.getDocId()}_type3_${a}`),r.set(e,a),this.parsingType3Font?this.handler.send(`commonobj`,[a,`Pattern`,i]):this.handler.send(`obj`,[a,this.pageIndex,`Pattern`,i]),a}handleColorN(e,t,n,r,i,a,o,s,c,l){let u=n.pop();if(u instanceof I){let d=i.getRaw(u.name),f=d instanceof R&&c.getByRef(d);if(f)try{let i=r.base?r.base.getRgbHex(n,0):null,a=So(f.operatorListIR,f.dict,i);e.addOp(t,a);return}catch{}let p=this.xref.fetchIfRef(d);if(p){let i=p instanceof be?p.dict:p,u=i.get(`PatternType`);if(u===1){let s=r.base?r.base.getRgbHex(n,0):null;return this.handleTilingType(t,s,a,p,i,e,o,c)}if(u===2){let n=i.get(`Shading`),r=this.parseShading({shading:n,resources:a,localColorSpaceCache:s,localShadingPatternCache:l});if(r){let n=Ue(i.getArray(`Matrix`),null);e.addOp(t,[`Shading`,r,n])}return}throw new w(`Unknown PatternType: ${u}`)}}throw new w(`Unknown PatternName: ${u}`)}_parseVisibilityExpression(e,t,n){if(++t>10)return void m(`Visibility expression is too deeply nested`);let r=e.length,i=this.xref.fetchIfRef(e[0]);if(!(r<2)&&i instanceof I){switch(i.name){case`And`:case`Or`:case`Not`:n.push(i.name);break;default:m(`Invalid operator ${i.name} in visibility expression`);return}for(let i=1;i<r;i++){let r=e[i],a=this.xref.fetchIfRef(r);if(Array.isArray(a)){let e=[];n.push(e),this._parseVisibilityExpression(a,t,e)}else r instanceof R&&n.push(r.toString())}}else m(`Invalid visibility expression`)}async parseMarkedContentProps(e,t){let n;if(e instanceof I)n=t.get(`Properties`).get(e.name);else{if(!(e instanceof L))throw new w(`Optional content properties malformed.`);n=e}let r=n.get(`Type`)?.name;if(r===`OCG`)return{type:r,id:n.objId};if(r===`OCMD`){let e=n.get(`VE`);if(Array.isArray(e)){let t=[];if(this._parseVisibilityExpression(e,0,t),t.length>0)return{type:`OCMD`,expression:t}}let t=n.get(`OCGs`);if(Array.isArray(t)||t instanceof L){let e=[];if(Array.isArray(t))for(let n of t)e.push(n.toString());else e.push(t.objId);return{type:r,ids:e,policy:n.get(`P`)instanceof I?n.get(`P`).name:null,expression:null}}if(t instanceof R)return{type:r,id:t.toString()}}return null}getOperatorList({stream:e,task:t,resources:n,operatorList:r,initialState:i=null,fallbackFontDict:a=null,prevRefs:o=null}){let s=e.dict?.objId,c=new me(o);if(s){if(o?.has(s))throw Error(`getOperatorList - ignoring circular reference: ${s}`);c.put(s)}if(n||=L.empty,i||=new Dc,!r)throw Error(`getOperatorList: missing "operatorList" parameter`);let l=this,u=this.xref,d=new _s,f=new vs,h=new bs,g=new xs,_=new Map,v=n.get(`XObject`)||L.empty,y=n.get(`Pattern`)||L.empty,b=new Tc(i),x=new Oc(e,u,b),S=new Sc;function C(e){for(let e=0,t=x.savedStatesDepth;e<t;e++)r.addOp(11,[])}return new Promise(function e(i,o){let s=function(t){Promise.all([t,r.ready]).then(function(){try{e(i,o)}catch(e){o(e)}},o)};t.ensureNotTerminated(),S.reset();let E={},D,O,k,A,j,M;for(;!(D=S.check())&&(E.args=null,x.read(E));){let e=E.args,i=E.fn;switch(0|i){case 66:if(M=e[0]instanceof I,j=e[0].name,M){let t=d.getByName(j);if(t){xc(r,t),e=null;continue}}s(new Promise(function(e,i){if(!M)throw new w(`XObject must be referred to by name.`);let a=v.getRaw(j);if(a instanceof R){let t=d.getByRef(a)||l._regionalImageCache.getByRef(a)||l.globalImageCache.getData(a,l.pageIndex);if(t)return xc(r,t),void e();a=u.fetch(a)}if(!(a instanceof be))throw new w(`XObject should be a stream`);let o=a.dict.get(`Subtype`);if(!(o instanceof I))throw new w(`XObject should have a Name subtype`);if(o.name===`Form`)return b.save(),void l.buildFormXObject(n,a,null,r,t,b.state.clone({newPath:!0}),f,c).then(function(){b.restore(),e()},i);if(o.name!==`Image`){if(o.name!==`PS`)throw new w(`Unhandled XObject subtype ${o.name}`);p(`Ignored XObject subtype PS`),e()}else l.buildPaintImageXObject({resources:n,image:a,operatorList:r,cacheKey:j,localImageCache:d,localColorSpaceCache:f}).then(e,i)}).catch(function(e){if(!(e instanceof T)){if(!l.options.ignoreErrors)throw e;m(`getOperatorList - ignoring XObject: "${e}".`)}}));return;case 37:let o=e[1];s(l.handleSetFont(n,e,null,r,t,b.state,a).then(function(e){r.addDependency(e),r.addOp(37,[e,o])}));return;case 65:let x=e[0].cacheKey;if(x){let t=d.getByName(x);if(t){xc(r,t),e=null;continue}}s(l.buildPaintImageXObject({resources:n,image:e[0],isInline:!0,operatorList:r,cacheKey:x,localImageCache:d,localColorSpaceCache:f}));return;case 44:if(!b.state.font){l.ensureStateFont(b.state);continue}e[0]=l.handleText(e[0],b.state);break;case 45:if(!b.state.font){l.ensureStateFont(b.state);continue}let S=[],C=b.state;for(let t of e[0])typeof t==`string`?S.push(...l.handleText(t,C)):typeof t==`number`&&S.push(t);e[0]=S,i=44;break;case 46:if(!b.state.font){l.ensureStateFont(b.state);continue}r.addOp(43),e[0]=l.handleText(e[0],b.state),i=44;break;case 47:if(!b.state.font){l.ensureStateFont(b.state);continue}r.addOp(43),r.addOp(34,[e.shift()]),r.addOp(33,[e.shift()]),e[0]=l.handleText(e[0],b.state),i=44;break;case 38:b.state.textRenderingMode=e[0];break;case 51:{let t=l._getColorSpace(e[0],n,f);if(t instanceof xt){b.state.fillColorSpace=t;continue}s(l._handleColorSpace(t).then(e=>{b.state.fillColorSpace=e||Kt.gray}));return}case 50:{let t=l._getColorSpace(e[0],n,f);if(t instanceof xt){b.state.strokeColorSpace=t;continue}s(l._handleColorSpace(t).then(e=>{b.state.strokeColorSpace=e||Kt.gray}));return}case 54:A=b.state.fillColorSpace,e=[A.getRgbHex(e,0)],i=59;break;case 52:A=b.state.strokeColorSpace,e=[A.getRgbHex(e,0)],i=58;break;case 57:b.state.fillColorSpace=Kt.gray,e=[Kt.gray.getRgbHex(e,0)],i=59;break;case 56:b.state.strokeColorSpace=Kt.gray,e=[Kt.gray.getRgbHex(e,0)],i=58;break;case 61:b.state.fillColorSpace=Kt.cmyk,e=[Kt.cmyk.getRgbHex(e,0)],i=59;break;case 60:b.state.strokeColorSpace=Kt.cmyk,e=[Kt.cmyk.getRgbHex(e,0)],i=58;break;case 59:b.state.fillColorSpace=Kt.rgb,e=[Kt.rgb.getRgbHex(e,0)];break;case 58:b.state.strokeColorSpace=Kt.rgb,e=[Kt.rgb.getRgbHex(e,0)];break;case 55:if(A=b.state.patternFillColorSpace,!A){if(He(e,null)){e=[Kt.gray.getRgbHex(e,0)],i=59;break}e=[],i=93;break}if(A.name===`Pattern`)return void s(l.handleColorN(r,55,e,A,y,n,t,f,g,_));e=[A.getRgbHex(e,0)],i=59;break;case 53:if(A=b.state.patternStrokeColorSpace,!A){if(He(e,null)){e=[Kt.gray.getRgbHex(e,0)],i=58;break}e=[],i=92;break}if(A.name===`Pattern`)return void s(l.handleColorN(r,53,e,A,y,n,t,f,g,_));e=[A.getRgbHex(e,0)],i=58;break;case 62:let E;try{let t=n.get(`Shading`);if(!t)throw new w(`No shading resource found`);if(E=t.get(e[0].name),!E)throw new w(`No shading object found`)}catch(e){if(e instanceof T)continue;if(l.options.ignoreErrors){m(`getOperatorList - ignoring Shading: "${e}".`);continue}throw e}let D=l.parseShading({shading:E,resources:n,localColorSpaceCache:f,localShadingPatternCache:_});if(!D)continue;e=[D],i=62;break;case 9:if(M=e[0]instanceof I,j=e[0].name,M){let t=h.getByName(j);if(t){t.length>0&&r.addOp(9,[t]),e=null;continue}}s(new Promise(function(e,i){if(!M)throw new w(`GState must be referred to by name.`);let a=n.get(`ExtGState`);if(!(a instanceof L))throw new w(`ExtGState should be a dictionary.`);let o=a.get(j);if(!(o instanceof L))throw new w(`GState should be a dictionary.`);l.setGState({resources:n,gState:o,operatorList:r,cacheKey:j,task:t,stateManager:b,localGStateCache:h,localColorSpaceCache:f,seenRefs:c}).then(e,i)}).catch(function(e){if(!(e instanceof T)){if(!l.options.ignoreErrors)throw e;m(`getOperatorList - ignoring ExtGState: "${e}".`)}}));return;case 2:{let[t]=e;if(typeof t!=`number`){m(`Invalid setLineWidth: ${t}`);continue}e[0]=Math.abs(t);break}case 6:{let t=e[1];if(typeof t!=`number`){m(`Invalid setDash: ${t}`);continue}let n=e[0];if(!Array.isArray(n)){m(`Invalid setDash: ${n}`);continue}n.some(e=>typeof e!=`number`)&&(e[0]=n.filter(e=>typeof e==`number`));break}case 13:case 14:case 15:case 16:case 17:case 18:case 19:l.buildPath(i,e,b.state);continue;case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:{let{state:{pathBuffer:e,pathMinMax:t}}=b;i!==21&&i!==26&&i!==27||e.push(3),e.length===0?r.addOp(91,[i,[null],null]):(r.addOp(91,[i,[new Float32Array(e)],t.slice()]),e.length=0,t.set([1/0,1/0,-1/0,-1/0],0));continue}case 42:r.addOp(i,[new Float32Array(e)]);continue;case 67:case 68:case 72:case 73:continue;case 70:if(!(e[0]instanceof I)){m(`Expected name for beginMarkedContentProps arg0=${e[0]}`),r.addOp(70,[`OC`,null]);continue}if(e[0].name===`OC`)return void s(l.parseMarkedContentProps(e[1],n).then(e=>{r.addOp(70,[`OC`,e])}).catch(e=>{if(!(e instanceof T)){if(l.options.ignoreErrors)return m(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`),void r.addOp(70,[`OC`,null]);throw e}}));e=[e[0].name,e[1]instanceof L?e[1].get(`MCID`):null];break;default:if(e!==null){for(O=0,k=e.length;O<k&&!(e[O]instanceof L);O++);if(O<k){m(`getOperatorList - ignoring operator: `+i);continue}}}r.addOp(i,e)}D?s(yc):(C(),i())}).catch(e=>{if(!(e instanceof T)){if(this.options.ignoreErrors)return m(`getOperatorList - ignoring errors during "${t.name}" task: "${e}".`),void C();throw e}})}getTextContent({stream:e,task:n,resources:r,stateManager:i=null,includeMarkedContent:a=!1,sink:o,seenStyles:s=new Set,viewBox:c,lang:l=null,markedContentData:u=null,disableNormalization:d=!1,keepWhiteSpace:f=!1,prevRefs:p=null,intersector:h=null}){let g=e.dict?.objId,_=new me(p);if(g){if(p?.has(g))throw Error(`getTextContent - ignoring circular reference: ${g}`);_.put(g)}r||=L.empty,i||=new Tc(new Ec),a&&(u||={level:0});let v={items:[],styles:Object.create(null),lang:l},y={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},b=[` `,` `],x=0;function S(e){let t=(x+1)%2,n=b[x]!==` `&&b[t]===` `;return b[x]=e,x=t,!f&&n}function C(){return!f&&b[x]!==` `&&b[(x+1)%2]===` `}function E(){b[0]=b[1]=` `,x=0}let D=this,O=this.xref,k=[],A=null,j=new _s,N=new bs,P=new Oc(e,O,i),F;function ee({width:e=0,height:t=0,transform:n=y.prevTransform,fontName:r=y.fontName}){h?.addExtraChar(` `),v.items.push({str:` `,dir:`ltr`,width:e,height:t,transform:n,fontName:r,hasEOL:!1})}function ne(){let e=F.font,n=[F.fontSize*F.textHScale,0,0,F.fontSize,0,F.textRise];if(e.isType3Font&&(F.fontSize<=1||e.isCharBBox)&&!te(F.fontMatrix,t)){let t=e.bbox[3]-e.bbox[1];t>0&&(n[3]*=t*F.fontMatrix[3])}return M.transform(F.ctm,M.transform(F.textMatrix,n))}function ae(){if(y.initialized)return y;let{font:e,loadedName:t}=F;if(!s.has(t)&&(s.add(t),v.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical},D.options.fontExtraProperties&&e.systemFontInfo)){let n=v.styles[t];n.fontSubstitution=e.systemFontInfo.css,n.fontSubstitutionLoadedName=e.systemFontInfo.loadedName}y.fontName=t;let n=y.transform=ne();e.vertical?(y.width=y.totalWidth=Math.hypot(n[0],n[1]),y.height=y.totalHeight=0,y.vertical=!0):(y.width=y.totalWidth=0,y.height=y.totalHeight=Math.hypot(n[2],n[3]),y.vertical=!1);let r=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]);y.textAdvanceScale=Math.hypot(F.ctm[0],F.ctm[1])*r;let{fontSize:i}=F;return y.trackingSpaceMin=.102*i,y.notASpace=.03*i,y.negativeSpaceMax=-.2*i,y.spaceInFlowMin=.102*i,y.spaceInFlowMax=.6*i,y.hasEOL=!1,y.initialized=!0,y}function oe(){if(!y.initialized)return;let e=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),t=Math.hypot(F.ctm[0],F.ctm[1])*e;t!==y.textAdvanceScale&&(y.vertical?(y.totalHeight+=y.height*y.textAdvanceScale,y.height=0):(y.totalWidth+=y.width*y.textAdvanceScale,y.width=0),y.textAdvanceScale=t)}function se(e){let t=e.str.join(``);var n;d||(n=t,re||(re=/([\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,ie=new Map([[`ſt`,`ſt`]])),t=n.replaceAll(re,(e,t,n)=>t?t.normalize(`NFKC`):ie.get(n)));let r=$s(t,-1,e.vertical);return{str:r.str,dir:r.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}async function ce(e,i){let a=await D.loadFont(e,i,r,n);F.loadedName=a.loadedName,F.font=a.font,F.fontMatrix=a.font.fontMatrix||t}function le(e,t,n){let r=Math.hypot(n[0],n[1]);return[(n[0]*e+n[1]*t)/r,(n[2]*e+n[3]*t)/r]}function ue(e){let t=ne(),n=t[4],r=t[5];if(F.font?.vertical){if(n<c[0]||n>c[2]||r+e<c[1]||r>c[3])return!1}else if(n+e<c[0]||n>c[2]||r<c[1]||r>c[3])return!1;if(!F.font||!y.prevTransform)return!0;let i=y.prevTransform[4],a=y.prevTransform[5];if(i===n&&a===r)return!0;let o=-1;switch(t[0]&&t[1]===0&&t[2]===0?o=t[0]>0?0:180:t[1]&&t[0]===0&&t[3]===0&&(o=t[1]>0?90:270),o){case 0:break;case 90:[n,r]=[r,n],[i,a]=[a,i];break;case 180:[n,r,i,a]=[-n,-r,-i,-a];break;case 270:[n,r]=[-r,-n],[i,a]=[-a,-i];break;default:[n,r]=le(n,r,t),[i,a]=le(i,a,y.prevTransform)}if(F.font.vertical){let e=(a-r)/y.textAdvanceScale,t=n-i,o=Math.sign(y.height);return e<o*y.negativeSpaceMax?Math.abs(t)>.5*y.width?(fe(),!0):(E(),he(),!0):Math.abs(t)>y.width?(fe(),!0):(e<=o*y.notASpace&&E(),e<=o*y.trackingSpaceMin?C()?(E(),he(),ee({height:Math.abs(e)})):y.height+=e:pe(e,y.prevTransform,o)||(y.str.length===0?(E(),ee({height:Math.abs(e)})):y.height+=e),Math.abs(t)>.25*y.width&&he(),!0)}let s=(n-i)/y.textAdvanceScale,l=r-a,u=Math.sign(y.width);return s<u*y.negativeSpaceMax?Math.abs(l)>.5*y.height?(fe(),!0):(E(),he(),!0):Math.abs(l)>y.height?(fe(),!0):(s<=u*y.notASpace&&E(),s<=u*y.trackingSpaceMin?C()?(E(),he(),ee({width:Math.abs(s)})):y.width+=s:pe(s,y.prevTransform,u)||(y.str.length===0?(E(),ee({width:Math.abs(s)})):y.width+=s),Math.abs(l)>.25*y.height&&he(),!0)}function de({chars:e,extraSpacing:t}){let n=F.font;if(!e){let e=F.charSpacing+t;e&&(n.vertical?F.translateTextMatrix(0,-e):F.translateTextMatrix(e*F.textHScale,0)),f&&ue(0);return}let r=n.charsToGlyphs(e),i=F.fontMatrix[0]*F.fontSize;for(let e=0,a=r.length;e<a;e++){let o=r[e],{category:s,originalCharCode:c}=o;if(s.isInvisibleFormatMark)continue;let l=F.charSpacing+(e+1===a?t:0),u=o.width;n.vertical&&(u=o.vmetric?o.vmetric[0]:-u);let d=u*i;if(c===32&&(l+=F.wordSpacing),!f&&s.isWhitespace){n.vertical?(l+=-d,F.translateTextMatrix(0,-l)):(l+=d,F.translateTextMatrix(l*F.textHScale,0)),S(` `);continue}if(!s.isZeroWidthDiacritic&&!ue(d)){n.vertical?F.translateTextMatrix(0,d):F.translateTextMatrix(d*F.textHScale,0);continue}let p=ae();s.isZeroWidthDiacritic&&(d=0),n.vertical?(h?.addGlyph(ne(),0,d,o.unicode),F.translateTextMatrix(0,d),d=Math.abs(d),p.height+=d):(d*=F.textHScale,h?.addGlyph(ne(),d,0,o.unicode),F.translateTextMatrix(d,0),p.width+=d),d&&(p.prevTransform=ne());let m=o.unicode;S(m)&&(p.str.push(` `),h?.addExtraChar(` `)),h||p.str.push(m),l&&(n.vertical?F.translateTextMatrix(0,-l):F.translateTextMatrix(l*F.textHScale,0))}}function fe(){h?.addExtraChar(`
|
|
6
6
|
`),E(),y.initialized?(y.hasEOL=!0,he()):v.items.push({str:``,dir:`ltr`,width:0,height:0,transform:ne(),fontName:F.loadedName,hasEOL:!0})}function pe(e,t,n){if(n*y.spaceInFlowMin<=e&&e<=n*y.spaceInFlowMax)return y.initialized&&(E(),y.str.push(` `),h?.addExtraChar(` `)),!1;let r=y.fontName,i=0;return y.vertical&&(i=e,e=0),he(),E(),ee({width:Math.abs(e),height:Math.abs(i),transform:t||ne(),fontName:r}),!0}function he(){y.initialized&&y.str&&(y.vertical?y.totalHeight+=y.height*y.textAdvanceScale:y.totalWidth+=y.width*y.textAdvanceScale,v.items.push(se(y)),y.initialized=!1,y.str.length=0)}function ge(e=!1){let t=v.items.length;t!==0&&(e&&t<10||(o?.enqueue(v,t),v.items=[],v.styles=Object.create(null)))}let _e=new Sc;return new Promise(function e(t,p){let h=function(n){ge(!0),Promise.all([n,o?.ready]).then(function(){try{e(t,p)}catch(e){p(e)}},p)};n.ensureNotTerminated(),_e.reset();let g={},y,b,x,S=[];for(;!(y=_e.check())&&(S.length=0,g.args=S,P.read(g));){let e=F;F=i.state;let t=g.fn;switch(S=g.args,0|t){case 37:let t=S[0].name,p=S[1];if(F.font&&t===F.fontName&&p===F.fontSize)break;he(),F.fontName=t,F.fontSize=p,h(ce(t,null));return;case 39:F.textRise=S[0];break;case 35:F.textHScale=S[0]/100;break;case 36:F.leading=S[0];break;case 40:F.translateTextLineMatrix(S[0],S[1]),F.textMatrix=F.textLineMatrix.slice();break;case 41:F.leading=-S[1],F.translateTextLineMatrix(S[0],S[1]),F.textMatrix=F.textLineMatrix.slice();break;case 43:F.carriageReturn();break;case 42:F.setTextMatrix(S[0],S[1],S[2],S[3],S[4],S[5]),F.setTextLineMatrix(S[0],S[1],S[2],S[3],S[4],S[5]),oe();break;case 33:F.charSpacing=S[0];break;case 34:F.wordSpacing=S[0];break;case 31:F.textMatrix=Ce.slice(),F.textLineMatrix=Ce.slice();break;case 45:if(!i.state.font){D.ensureStateFont(i.state);continue}let g=(F.font.vertical?1:-1)*F.fontSize/1e3,y=S[0];for(let e=0,t=y.length;e<t;e++){let t=y[e];if(typeof t==`string`)k.push(t);else if(typeof t==`number`&&t!==0){let e=k.join(``);k.length=0,de({chars:e,extraSpacing:t*g})}}if(k.length>0){let e=k.join(``);k.length=0,de({chars:e,extraSpacing:0})}break;case 44:if(!i.state.font){D.ensureStateFont(i.state);continue}de({chars:S[0],extraSpacing:0});break;case 46:if(!i.state.font){D.ensureStateFont(i.state);continue}F.carriageReturn(),de({chars:S[0],extraSpacing:0});break;case 47:if(!i.state.font){D.ensureStateFont(i.state);continue}F.wordSpacing=S[0],F.charSpacing=S[1],F.carriageReturn(),de({chars:S[2],extraSpacing:0});break;case 66:if(he(),A??=r.get(`XObject`)||L.empty,x=S[0]instanceof I,b=S[0].name,x&&j.getByName(b))break;h(new Promise(function(e,t){if(!x)throw new w(`XObject must be referred to by name.`);let p=A.getRaw(b);if(p instanceof R){if(j.getByRef(p)||D.globalImageCache.getData(p,D.pageIndex))return void e();p=O.fetch(p)}if(!(p instanceof be))throw new w(`XObject should be a stream`);let{dict:m}=p,h=m.get(`Subtype`);if(!(h instanceof I))throw new w(`XObject should have a Name subtype`);if(h.name!==`Form`)return j.set(b,m.objId,!0),void e();let g=new Tc(i.state.clone()),v=Ue(m.getArray(`Matrix`),null);v&&g.transform(v);let y=m.get(`Resources`);ge();let S={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,o.enqueue(e,t)},get desiredSize(){return o.desiredSize??0},get ready(){return o.ready}};D.getTextContent({stream:p,task:n,resources:y instanceof L?y:r,stateManager:g,includeMarkedContent:a,sink:o&&S,seenStyles:s,viewBox:c,lang:l,markedContentData:u,disableNormalization:d,keepWhiteSpace:f,prevRefs:_}).then(function(){S.enqueueInvoked||j.set(b,m.objId,!0),e()},t)}).catch(function(e){if(!(e instanceof T)){if(!D.options.ignoreErrors)throw e;m(`getTextContent - ignoring XObject: "${e}".`)}}));return;case 9:if(x=S[0]instanceof I,b=S[0].name,x&&N.getByName(b))break;h(new Promise(function(e,t){if(!x)throw new w(`GState must be referred to by name.`);let n=r.get(`ExtGState`);if(!(n instanceof L))throw new w(`ExtGState should be a dictionary.`);let i=n.get(b);if(!(i instanceof L))throw new w(`GState should be a dictionary.`);let a=i.get(`Font`);if(!a)return N.set(b,i.objId,!0),void e();he(),F.fontName=null,F.fontSize=a[1],ce(null,a[0]).then(e,t)}).catch(function(e){if(!(e instanceof T)){if(!D.options.ignoreErrors)throw e;m(`getTextContent - ignoring ExtGState: "${e}".`)}}));return;case 69:he(),a&&(u.level++,v.items.push({type:`beginMarkedContent`,tag:S[0]instanceof I?S[0].name:null}));break;case 70:if(he(),a){u.level++;let e=null;S[1]instanceof L&&(e=S[1].get(`MCID`)),v.items.push({type:`beginMarkedContentProps`,id:Number.isInteger(e)?`${D.idFactory.getPageObjId()}_mc${e}`:null,tag:S[0]instanceof I?S[0].name:null})}break;case 71:if(he(),a){if(u.level===0)break;u.level--,v.items.push({type:`endMarkedContent`})}break;case 11:!e||e.font===F.font&&e.fontSize===F.fontSize&&e.fontName===F.fontName||he()}if(v.items.length>=(o?.desiredSize??1)){y=!0;break}}y?h(yc):(he(),ge(),t())}).catch(e=>{if(!(e instanceof T)){if(this.options.ignoreErrors)return m(`getTextContent - ignoring errors during "${n.name}" task: "${e}".`),he(),void ge();throw e}})}async extractDataStructures(e,t){let n=this.xref,r,i=this.readToUnicode(t.toUnicode);if(t.composite){let n=e.get(`CIDSystemInfo`);n instanceof L&&(t.cidSystemInfo={registry:P(n.get(`Registry`)),ordering:P(n.get(`Ordering`)),supplement:n.get(`Supplement`)});try{let t=e.get(`CIDToGIDMap`);t instanceof be&&(r=t.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;m(`extractDataStructures - ignoring CIDToGIDMap data: "${e}".`)}}let a=[],o,s=null;if(e.has(`Encoding`)){if(o=e.get(`Encoding`),o instanceof L){if(s=o.get(`BaseEncoding`),s=s instanceof I?s.name:null,o.has(`Differences`)){let e=o.get(`Differences`),t=0;for(let r of e){let e=n.fetchIfRef(r);if(typeof e==`number`)t=e;else{if(!(e instanceof I))throw new w(`Invalid entry in 'Differences' array: ${e}`);a[t++]=e.name}}}}else if(o instanceof I)s=o.name;else{let e=`Encoding is not a Name nor a Dict`;if(!this.options.ignoreErrors)throw new w(e);m(e)}s!==`MacRomanEncoding`&&s!==`MacExpertEncoding`&&s!==`WinAnsiEncoding`&&(s=null)}let c=!t.file||t.isInternalFont,l=Ui()[t.name];if(s&&c&&l&&(s=null),s)t.defaultEncoding=ri(s);else{let e=!!(t.flags&4),n=!!(t.flags&32);t.type===`TrueType`&&e&&n&&a.length!==0&&(t.flags&=-5,e=!1),o=$r,t.type!==`TrueType`||n||(o=ei),(e||l)&&(o=Qr,c&&(/Symbol/i.test(t.name)?o=ti:/Dingbats/i.test(t.name)?o=ni:/Wingdings/i.test(t.name)&&(o=ei))),t.defaultEncoding=o}t.differences=a,t.baseEncodingName=s,t.hasEncoding=!!s||a.length>0,t.dict=e,t.toUnicode=await i;let u=await this.buildToUnicode(t);return t.toUnicode=u,r&&(t.cidToGidMap=this.readCidToGidMap(r,u)),t}_simpleFontToUnicode(e,t=!1){g(!e.composite,`Must be a simple font.`);let n=[],r=e.defaultEncoding.slice(),i=e.baseEncodingName,a=e.differences;for(let e in a){let t=a[e];t!==`.notdef`&&(r[e]=t)}let o=ii();for(let a in r){let s=r[a];if(s===``)continue;let c=o[s];if(c!==void 0){n[a]=String.fromCharCode(c);continue}let l=0;switch(s[0]){case`G`:s.length===3&&(l=parseInt(s.substring(1),16));break;case`g`:s.length===5&&(l=parseInt(s.substring(1),16));break;case`C`:case`c`:if(s.length>=3&&s.length<=4){let n=s.substring(1);if(t){l=parseInt(n,16);break}if(l=+n,Number.isNaN(l)&&Number.isInteger(parseInt(n,16)))return this._simpleFontToUnicode(e,!0)}break;case`u`:c=si(s,o),c!==-1&&(l=c);break;default:switch(s){case`f_h`:case`f_t`:case`T_h`:n[a]=s.replaceAll(`_`,``);continue}}if(l>0&&l<=1114111&&Number.isInteger(l)){if(i&&l===+a){let e=ri(i);if(e&&(s=e[a])){n[a]=String.fromCharCode(o[s]);continue}}n[a]=String.fromCodePoint(l)}}return n}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=e.toUnicode?.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new Yi(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof Fr)||e.cidSystemInfo?.registry===`Adobe`&&(e.cidSystemInfo.ordering===`GB1`||e.cidSystemInfo.ordering===`CNS1`||e.cidSystemInfo.ordering===`Japan1`||e.cidSystemInfo.ordering===`Korea1`))){let{registry:t,ordering:n}=e.cidSystemInfo,r=I.get(`${t}-${n}-UCS2`),i=await Yr.create({encoding:r,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),a=[],o=[];return e.cMap.forEach(function(e,t){if(t>65535)throw new w(`Max size of CID is 65,535`);let n=i.lookup(t);if(n){o.length=0;for(let e=0,t=n.length;e<t;e+=2)o.push((n.charCodeAt(e)<<8)+n.charCodeAt(e+1));a[e]=String.fromCharCode(...o)}}),new Yi(a)}return new Xi(e.firstChar,e.lastChar)}async readToUnicode(e){if(!e)return null;if(e instanceof I){let t=await Yr.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return t instanceof Fr?new Xi(0,65535):new Yi(t.getMap())}if(e instanceof be)try{let t=await Yr.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(t instanceof Fr)return new Xi(0,65535);let n=Array(t.length);return t.forEach(function(e,t){if(typeof t==`number`)return void(n[e]=String.fromCodePoint(t));t.length%2!=0&&(t=`\0`+t);let r=[];for(let e=0;e<t.length;e+=2){let n=t.charCodeAt(e)<<8|t.charCodeAt(e+1);if((63488&n)!=55296){r.push(n);continue}e+=2;let i=t.charCodeAt(e)<<8|t.charCodeAt(e+1);r.push(((1023&n)<<10)+(1023&i)+65536)}n[e]=String.fromCodePoint(...r)}),new Yi(n)}catch(e){if(e instanceof T)return null;if(this.options.ignoreErrors)return m(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}return null}readCidToGidMap(e,t){let n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r++]<<8|e[r],a=r>>1;(i!==0||t.has(a))&&(n[a]=i)}return n}extractWidths(e,t,n){let r=this.xref,i=[],a=0,o=[],s;if(n.composite){let t=e.get(`DW`);a=typeof t==`number`?Math.ceil(t):1e3;let c=e.get(`W`);if(Array.isArray(c))for(let e=0,t=c.length;e<t;e++){let t=r.fetchIfRef(c[e++]);if(!Number.isInteger(t))break;let n=r.fetchIfRef(c[e]);if(Array.isArray(n))for(let e of n){let n=r.fetchIfRef(e);typeof n==`number`&&(i[t]=n),t++}else{if(!Number.isInteger(n))break;{let a=r.fetchIfRef(c[++e]);if(typeof a!=`number`)continue;for(let e=t;e<=n;e++)i[e]=a}}}if(n.vertical){let t=e.getArray(`DW2`),n=He(t,2)?t:[880,-1e3];if(s=[n[1],.5*a,n[0]],n=e.get(`W2`),Array.isArray(n))for(let e=0,t=n.length;e<t;e++){let t=r.fetchIfRef(n[e++]);if(!Number.isInteger(t))break;let i=r.fetchIfRef(n[e]);if(Array.isArray(i))for(let e=0,n=i.length;e<n;e++){let n=[r.fetchIfRef(i[e++]),r.fetchIfRef(i[e++]),r.fetchIfRef(i[e])];He(n,null)&&(o[t]=n),t++}else{if(!Number.isInteger(i))break;{let a=[r.fetchIfRef(n[++e]),r.fetchIfRef(n[++e]),r.fetchIfRef(n[++e])];if(!He(a,null))continue;for(let e=t;e<=i;e++)o[e]=a}}}}}else{let o=e.get(`Widths`);if(Array.isArray(o)){let e=n.firstChar;for(let t of o){let n=r.fetchIfRef(t);typeof n==`number`&&(i[e]=n),e++}let s=t.get(`MissingWidth`);a=typeof s==`number`?s:0}else{let t=e.get(`BaseFont`);if(t instanceof I){let e=this.getBaseFontMetrics(t.name);i=this.buildCharCodeToWidth(e.widths,n),a=e.defaultWidth}}}let c=!0,l=a;for(let e in i){let t=i[e];if(t)if(l){if(l!==t){c=!1;break}}else l=t}c?n.flags|=1:n.flags&=-2,n.defaultWidth=a,n.widths=i,n.defaultVMetrics=s,n.vmetrics=o}isSerifFont(e){let t=e.split(`-`,1)[0];return t in Hi()||/serif/gi.test(t)}getBaseFontMetrics(e){let t=0,n=Object.create(null),r=!1,i=zi()[e]||e,a=ua();i in a||(i=this.isSerifFont(e)?`Times-Roman`:`Helvetica`);let o=a[i];return typeof o==`number`?(t=o,r=!0):n=o(),{defaultWidth:t,monospace:r,widths:n}}buildCharCodeToWidth(e,t){let n=Object.create(null),r=t.differences,i=t.defaultEncoding;for(let t=0;t<256;t++)t in r&&e[r[t]]?n[t]=e[r[t]]:t in i&&e[i[t]]&&(n[t]=e[i[t]]);return n}preEvaluateFont(e){let t=e,n=e.get(`Subtype`);if(!(n instanceof I))throw new w(`invalid font Subtype`);let r,i=!1;if(n.name===`Type0`){let t=e.get(`DescendantFonts`);if(!t)throw new w(`Descendant fonts are not specified`);if(!((e=Array.isArray(t)?this.xref.fetchIfRef(t[0]):t)instanceof L))throw new w(`Descendant font is not a dictionary.`);if(n=e.get(`Subtype`),!(n instanceof I))throw new w(`invalid font Subtype`);i=!0}let a=e.get(`FirstChar`);Number.isInteger(a)||(a=0);let o=e.get(`LastChar`);Number.isInteger(o)||(o=i?65535:255);let s=e.get(`FontDescriptor`),c=e.get(`ToUnicode`)||t.get(`ToUnicode`);if(s){r=new hc;let n=t.getRaw(`Encoding`);if(n instanceof I)r.update(n.name);else if(n instanceof R)r.update(n.toString());else if(n instanceof L){for(let e of n.getRawValues())if(e instanceof I)r.update(e.name);else if(e instanceof R)r.update(e.toString());else if(Array.isArray(e)){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let t=e[r];t instanceof I?n[r]=t.name:(typeof t==`number`||t instanceof R)&&(n[r]=t.toString())}r.update(n.join())}}if(r.update(`${a}-${o}`),c instanceof be){let e=c.str||c,t=e.buffer?new Uint8Array(e.buffer.buffer,0,e.bufferLength):new Uint8Array(e.bytes.buffer,e.start,e.end-e.start);r.update(t)}else c instanceof I&&r.update(c.name);let s=e.get(`Widths`)||t.get(`Widths`);if(Array.isArray(s)){let e=[];for(let t of s)(typeof t==`number`||t instanceof R)&&e.push(t.toString());r.update(e.join())}if(i){r.update(`compositeFont`);let n=e.get(`W`)||t.get(`W`);if(Array.isArray(n)){let e=[];for(let t of n)if(typeof t==`number`||t instanceof R)e.push(t.toString());else if(Array.isArray(t)){let n=[];for(let e of t)(typeof e==`number`||e instanceof R)&&n.push(e.toString());e.push(`[${n.join()}]`)}r.update(e.join())}let i=e.getRaw(`CIDToGIDMap`)||t.getRaw(`CIDToGIDMap`);i instanceof I?r.update(i.name):i instanceof R?r.update(i.toString()):i instanceof be&&r.update(i.peekBytes())}}return{descriptor:s,dict:e,baseDict:t,composite:i,type:n.name,firstChar:a,lastChar:o,toUnicode:c,hash:r?r.hexdigest():``}}async translateFont({descriptor:e,dict:n,baseDict:r,composite:i,type:a,firstChar:o,lastChar:s,toUnicode:c,cssFontInfo:l}){let u=a===`Type3`;if(!e){if(!u){let e=n.get(`BaseFont`);if(!(e instanceof I))throw new w(`Base font is not specified`);e=e.name.replaceAll(/[,_]/g,`-`);let t=this.getBaseFontMetrics(e),i=e.split(`-`,1)[0],l=(this.isSerifFont(i)?2:0)|!!t.monospace|(Ui()[i]?4:32),d={type:a,name:e,loadedName:r.loadedName,systemFontInfo:null,widths:t.widths,defaultWidth:t.defaultWidth,isSimulatedFlags:!0,flags:l,firstChar:o,lastChar:s,toUnicode:c,xHeight:0,capHeight:0,italicAngle:0,isType3Font:u},f=n.get(`Widths`),p=qi(e),m=null;p&&(m=await this.fetchStandardFontData(p),d.isInternalFont=!!m),!d.isInternalFont&&this.options.useSystemFonts&&(d.systemFontInfo=dc(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,e,p,a));let h=await this.extractDataStructures(n,d);if(Array.isArray(f)){let e=[],t=o;for(let n of f){let r=this.xref.fetchIfRef(n);typeof r==`number`&&(e[t]=r),t++}h.widths=e}else h.widths=this.buildCharCodeToWidth(t.widths,h);return new fo(e,m,h,this.options)}e=L.empty}let d=e.get(`FontName`),f=n.get(`BaseFont`);typeof d==`string`&&(d=I.get(d)),typeof f==`string`&&(f=I.get(f));let h=d?.name,g=f?.name;if(u?h||(d=I.get(a)):h!==g&&(p(`The FontDescriptor's FontName is "${h}" but should be the same as the Font's BaseFont "${g}".`),h&&g&&(g.startsWith(h)||!Ji(h)&&Ji(g))&&(d=null),d||=f),!(d instanceof I))throw new w(`invalid font name`);let _,v,y,b,x;try{if(_=e.get(`FontFile`,`FontFile2`,`FontFile3`),_){if(!(_ instanceof be))throw new w(`FontFile should be a stream`);if(_.isEmpty)throw new w(`FontFile is empty`)}}catch(e){if(!this.options.ignoreErrors)throw e;m(`translateFont - fetching "${d.name}" font file: "${e}".`),_=null}let S=!1,C=null,T=null;if(_){if(_.dict){let e=_.dict.get(`Subtype`);e instanceof I&&(v=e.name),y=_.dict.get(`Length1`),b=_.dict.get(`Length2`),x=_.dict.get(`Length3`)}}else if(l){let e=us(d.name);e&&(l.fontFamily=`${l.fontFamily}-PdfJS-XFA`,l.metrics=e.metrics||null,C=e.factors||null,_=await this.fetchStandardFontData(e.name),S=!!_,r=n=ds(d.name),i=!0)}else if(!u){let e=qi(d.name);e&&(_=await this.fetchStandardFontData(e),S=!!_),!S&&this.options.useSystemFonts&&(T=dc(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,d.name,e,a))}let E=Ue(n.getArray(`FontMatrix`),t),D=Ge(e.getArray(`FontBBox`)||n.getArray(`FontBBox`),u?[0,0,0,0]:void 0),O=e.get(`Ascent`);typeof O!=`number`&&(O=void 0);let k=e.get(`Descent`);typeof k!=`number`&&(k=void 0);let A=e.get(`XHeight`);typeof A!=`number`&&(A=0);let j=e.get(`CapHeight`);typeof j!=`number`&&(j=0);let M=e.get(`Flags`);Number.isInteger(M)||(M=0);let N=e.get(`ItalicAngle`);typeof N!=`number`&&(N=0);let P={type:a,name:d.name,subtype:v,file:_,length1:y,length2:b,length3:x,isInternalFont:S,loadedName:r.loadedName,composite:i,fixedPitch:!1,fontMatrix:E,firstChar:o,lastChar:s,toUnicode:c,bbox:D,ascent:O,descent:k,xHeight:A,capHeight:j,flags:M,italicAngle:N,isType3Font:u,cssFontInfo:l,scaleFactors:C,systemFontInfo:T};if(i){let e=r.get(`Encoding`);e instanceof I&&(P.cidEncoding=e.name),P.cMap=await Yr.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),P.vertical=P.cMap.vertical}let F=await this.extractDataStructures(n,P);return this.extractWidths(n,e,F),new fo(d.name,_,F,this.options)}static buildFontPaths(e,t,n,r){function i(t){let i=`${e.loadedName}_path_${t}`;try{if(e.renderer.hasBuiltPath(t))return;n.send(`commonobj`,[i,`FontPath`,e.renderer.getPathJs(t)])}catch(e){if(r.ignoreErrors)return void m(`buildFontPaths - ignoring ${i} glyph: "${e}".`);throw e}}for(let e of t){i(e.fontChar);let t=e.accent;t?.fontChar&&i(t.fontChar)}}static get fallbackFontDict(){let e=new L;return e.set(`BaseFont`,I.get(`Helvetica`)),e.set(`Type`,I.get(`FallbackType`)),e.set(`Subtype`,I.get(`FallbackType`)),e.set(`Encoding`,I.get(`WinAnsiEncoding`)),v(this,`fallbackFontDict`,e)}},wc=class{#e=!1;#t=null;constructor({loadedName:e,font:t,dict:n}){this.loadedName=e,this.font=t,this.dict=n,this.type3Dependencies=t.isType3Font?new Set:null}send(e){if(this.#e)return;this.#e=!0;let t=this.font.exportData(),n=[];t.data&&(t.data.charProcOperatorList&&(t.charProcOperatorList=t.data.charProcOperatorList),t.data=nc.write(t.data),n.push(t.data)),e.send(`commonobj`,[this.loadedName,`Font`,t],n)}fallback(e,t){this.font.data&&(this.font.disableFontFace=!0,Cc.buildFontPaths(this.font,this.font.glyphCacheValues,e,t))}loadType3Data(e,t,n){if(this.#t)return this.#t;let{font:r,type3Dependencies:i}=this;g(r.isType3Font,`Must be a Type3 font.`);let a=e.clone({ignoreErrors:!1}),o=new me(e.type3FontRefs);this.dict.objId&&!o.has(this.dict.objId)&&o.put(this.dict.objId),a.type3FontRefs=o;let s=Promise.resolve(),c=this.dict.get(`CharProcs`),l=this.dict.get(`Resources`)||t,u=Object.create(null),[d,f,p,h]=r.bbox,_=p-d,v=h-f,y=Math.hypot(_,v);for(let e of c.getKeys())s=s.then(()=>{let t=c.get(e),r=new Sn;return a.getOperatorList({stream:t,task:n,resources:l,operatorList:r}).then(()=>{switch(r.fnArray[0]){case 49:this.#n(r,y);break;case 48:y||this.#r(r)}u[e]=r.getIR();for(let e of r.dependencies)i.add(e)}).catch(function(t){m(`Type3 font resource "${e}" is not available.`),u[e]=new Sn().getIR()})});return this.#t=s.then(()=>{r.charProcOperatorList=u,this._bbox&&(r.isCharBBox=!0,r.bbox=this._bbox)}),this.#t}#n(e,t=NaN){let n=M.normalizeRect(e.argsArray[0].slice(2)),r=n[2]-n[0],i=n[3]-n[1];r===0||i===0?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(t===0||Math.round(Math.hypot(r,i)/t)>=10)&&(this._bbox??=[1/0,1/0,-1/0,-1/0],M.rectBoundingBox(...n,this._bbox));let a=0,o=e.length;for(;a<o;){switch(e.fnArray[a]){case 49:break;case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 7:e.fnArray.splice(a,1),e.argsArray.splice(a,1),o--;continue;case 9:let[t]=e.argsArray[a],n=0,r=t.length;for(;n<r;){let[e]=t[n];switch(e){case`TR`:case`TR2`:case`HT`:case`BG`:case`BG2`:case`UCR`:case`UCR2`:t.splice(n,1),r--;continue}n++}}a++}}#r(e){let t=1,n=e.length;for(;t<n;){if(e.fnArray[t]===91){let n=e.argsArray[t][2];this._bbox??=[1/0,1/0,-1/0,-1/0],M.rectBoundingBox(...n,this._bbox)}t++}}},Tc=class{constructor(e=new Dc){this.state=e,this.stateStack=[]}save(){let e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){let e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=M.transform(this.state.ctm,e)}},Ec=class{constructor(){this.ctm=new Float32Array(Ce),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=t,this.textMatrix=Ce.slice(),this.textLineMatrix=Ce.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(e,t,n,r,i,a){let o=this.textMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a}setTextLineMatrix(e,t,n,r,i,a){let o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a}translateTextMatrix(e,t){let n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}translateTextLineMatrix(e,t){let n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){let e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},Dc=class{constructor(){this.ctm=new Float32Array(Ce),this.font=null,this.textRenderingMode=0,this._fillColorSpace=this._strokeColorSpace=Kt.gray,this.patternFillColorSpace=null,this.patternStrokeColorSpace=null,this.currentPointX=this.currentPointY=0,this.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0]),this.pathBuffer=[]}get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(e){this._fillColorSpace=this.patternFillColorSpace=e}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(e){this._strokeColorSpace=this.patternStrokeColorSpace=e}clone({newPath:e=!1}={}){let t=Object.create(this);return e&&(t.pathBuffer=[],t.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0])),t}},Oc=class e{static get opMap(){return v(this,`opMap`,Object.assign(Object.create(null),{w:{id:2,numArgs:1,variableArgs:!1},J:{id:3,numArgs:1,variableArgs:!1},j:{id:4,numArgs:1,variableArgs:!1},M:{id:5,numArgs:1,variableArgs:!1},d:{id:6,numArgs:2,variableArgs:!1},ri:{id:7,numArgs:1,variableArgs:!1},i:{id:8,numArgs:1,variableArgs:!1},gs:{id:9,numArgs:1,variableArgs:!1},q:{id:10,numArgs:0,variableArgs:!1},Q:{id:11,numArgs:0,variableArgs:!1},cm:{id:12,numArgs:6,variableArgs:!1},m:{id:13,numArgs:2,variableArgs:!1},l:{id:14,numArgs:2,variableArgs:!1},c:{id:15,numArgs:6,variableArgs:!1},v:{id:16,numArgs:4,variableArgs:!1},y:{id:17,numArgs:4,variableArgs:!1},h:{id:18,numArgs:0,variableArgs:!1},re:{id:19,numArgs:4,variableArgs:!1},S:{id:20,numArgs:0,variableArgs:!1},s:{id:21,numArgs:0,variableArgs:!1},f:{id:22,numArgs:0,variableArgs:!1},F:{id:22,numArgs:0,variableArgs:!1},"f*":{id:23,numArgs:0,variableArgs:!1},B:{id:24,numArgs:0,variableArgs:!1},"B*":{id:25,numArgs:0,variableArgs:!1},b:{id:26,numArgs:0,variableArgs:!1},"b*":{id:27,numArgs:0,variableArgs:!1},n:{id:28,numArgs:0,variableArgs:!1},W:{id:29,numArgs:0,variableArgs:!1},"W*":{id:30,numArgs:0,variableArgs:!1},BT:{id:31,numArgs:0,variableArgs:!1},ET:{id:32,numArgs:0,variableArgs:!1},Tc:{id:33,numArgs:1,variableArgs:!1},Tw:{id:34,numArgs:1,variableArgs:!1},Tz:{id:35,numArgs:1,variableArgs:!1},TL:{id:36,numArgs:1,variableArgs:!1},Tf:{id:37,numArgs:2,variableArgs:!1},Tr:{id:38,numArgs:1,variableArgs:!1},Ts:{id:39,numArgs:1,variableArgs:!1},Td:{id:40,numArgs:2,variableArgs:!1},TD:{id:41,numArgs:2,variableArgs:!1},Tm:{id:42,numArgs:6,variableArgs:!1},"T*":{id:43,numArgs:0,variableArgs:!1},Tj:{id:44,numArgs:1,variableArgs:!1},TJ:{id:45,numArgs:1,variableArgs:!1},"'":{id:46,numArgs:1,variableArgs:!1},'"':{id:47,numArgs:3,variableArgs:!1},d0:{id:48,numArgs:2,variableArgs:!1},d1:{id:49,numArgs:6,variableArgs:!1},CS:{id:50,numArgs:1,variableArgs:!1},cs:{id:51,numArgs:1,variableArgs:!1},SC:{id:52,numArgs:4,variableArgs:!0},SCN:{id:53,numArgs:33,variableArgs:!0},sc:{id:54,numArgs:4,variableArgs:!0},scn:{id:55,numArgs:33,variableArgs:!0},G:{id:56,numArgs:1,variableArgs:!1},g:{id:57,numArgs:1,variableArgs:!1},RG:{id:58,numArgs:3,variableArgs:!1},rg:{id:59,numArgs:3,variableArgs:!1},K:{id:60,numArgs:4,variableArgs:!1},k:{id:61,numArgs:4,variableArgs:!1},sh:{id:62,numArgs:1,variableArgs:!1},BI:{id:63,numArgs:0,variableArgs:!1},ID:{id:64,numArgs:0,variableArgs:!1},EI:{id:65,numArgs:1,variableArgs:!1},Do:{id:66,numArgs:1,variableArgs:!1},MP:{id:67,numArgs:1,variableArgs:!1},DP:{id:68,numArgs:2,variableArgs:!1},BMC:{id:69,numArgs:1,variableArgs:!1},BDC:{id:70,numArgs:2,variableArgs:!1},EMC:{id:71,numArgs:0,variableArgs:!1},BX:{id:72,numArgs:0,variableArgs:!1},EX:{id:73,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(t,n,r=new Tc){this.parser=new Dr({lexer:new Ar(t,e.opMap),xref:n}),this.stateManager=r,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let n=t.args;for(;;){let r=this.parser.getObj();if(r instanceof fe){let i=r.cmd,a=e.opMap[i];if(!a){m(`Unknown command "${i}".`);continue}let o=a.id,s=a.numArgs,c=n===null?0:n.length;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=o>=13&&o<=28,a.variableArgs)c>s&&p(`Command ${i}: expected [0, ${s}] args, but received ${c} args.`);else{if(c!==s){let e=this.nonProcessedArgs;for(;c>s;)e.push(n.shift()),c--;for(;c<s&&e.length!==0;)n===null&&(n=[]),n.unshift(e.pop()),c++}if(c<s){let t=`command ${i}: expected ${s} args, but received ${c} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new w(`Invalid ${t}`);m(`Skipping ${t}`),n!==null&&(n.length=0);continue}}return this.preprocessCommand(o,n),t.fn=o,t.args=n,!0}if(r===ce)return!1;if(r!==null&&(n===null&&(n=[]),n.push(r),n.length>33))throw new w(`Too many arguments`)}}preprocessCommand(e,t){switch(0|e){case 10:this.stateManager.save();break;case 11:this.stateManager.restore();break;case 12:this.stateManager.transform(t)}}},kc=class extends Oc{constructor(e){super(new It(e))}parse(){let e={fn:0,args:[]},t={fontSize:0,fontName:``,fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);){if(this.savedStatesDepth!==0)continue;let{fn:n,args:r}=e;switch(0|n){case 37:let[e,n]=r;e instanceof I&&(t.fontName=e.name),typeof n==`number`&&n>0&&(t.fontSize=n);break;case 59:Kt.rgb.getRgbItem(r,0,t.fontColor,0);break;case 57:Kt.gray.getRgbItem(r,0,t.fontColor,0);break;case 61:Kt.cmyk.getRgbItem(r,0,t.fontColor,0)}}}catch(e){m(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}};function Ac(e){return new kc(e).parse()}var jc=class extends Oc{constructor(e,t,n,r){super(e),this.stream=e,this.evaluatorOptions=t,this.xref=n,this.globalColorSpaceCache=r,this.resources=e.dict?.get(`Resources`)}parse(){let e={fn:0,args:[]},t={scaleFactor:1,fontSize:0,fontName:``,fontColor:new Uint8ClampedArray(3),fillColorSpace:Kt.gray},n=!1,r=[];try{for(;e.args.length=0,!n&&this.read(e);){let{fn:i,args:a}=e;switch(0|i){case 10:r.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case 11:t=r.pop()||t;break;case 42:t.scaleFactor*=Math.hypot(a[0],a[1]);break;case 37:let[e,i]=a;e instanceof I&&(t.fontName=e.name),typeof i==`number`&&i>0&&(t.fontSize=i*t.scaleFactor);break;case 51:t.fillColorSpace=Kt.parse({cs:a[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case 54:t.fillColorSpace.getRgbItem(a,0,t.fontColor,0);break;case 59:Kt.rgb.getRgbItem(a,0,t.fontColor,0);break;case 57:Kt.gray.getRgbItem(a,0,t.fontColor,0);break;case 61:Kt.cmyk.getRgbItem(a,0,t.fontColor,0);break;case 44:case 45:case 46:case 47:n=!0}}}catch(e){m(`parseAppearanceStream - ignoring errors: "${e}".`)}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}get _localColorSpaceCache(){return v(this,`_localColorSpaceCache`,new vs)}get _pdfFunctionFactory(){return v(this,`_pdfFunctionFactory`,new Ts({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}};function Mc(e,t){return e[0]===e[1]&&e[1]===e[2]?`${rt(e[0]/255)} ${t?`g`:`G`}`:Array.from(e,e=>rt(e/255)).join(` `)+` `+(t?`rg`:`RG`)}var Nc=class e{constructor(t,n){this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=n;let r=new OffscreenCanvas(1,1);this.ctxMeasure=r.getContext(`2d`,{willReadFrequently:!0}),e._fontNameId||=1,this.fontName=I.get(`InvalidPDFjsFont_${n}_${e._fontNameId++}`)}get fontDescriptorRef(){if(!e._fontDescriptorRef){let t=new L(this.xref);t.setIfName(`Type`,`FontDescriptor`),t.set(`FontName`,this.fontName),t.set(`FontFamily`,`MyriadPro Regular`),t.set(`FontBBox`,[0,0,0,0]),t.setIfName(`FontStretch`,`Normal`),t.set(`FontWeight`,400),t.set(`ItalicAngle`,0),e._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return e._fontDescriptorRef}get descendantFontRef(){let e=new L(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 t=[],n=[...this.widths.entries()].sort(),r=null,i=null;for(let[e,a]of n)r?e===r+i.length?i.push(a):(t.push(r,i),r=e,i=[a]):(r=e,i=[a]);r&&t.push(r,i),e.set(`W`,t);let a=new L(this.xref);return a.set(`Ordering`,`Identity`),a.set(`Registry`,`Adobe`),a.set(`Supplement`,0),e.set(`CIDSystemInfo`,a),this.xref.getNewPersistentRef(e)}get baseFontRef(){let e=new L(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 L(this.xref),t=new L(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set(`Font`,t),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(e){let t=this._createContext();for(let n of e.split(/\r\n?|\n/))for(let e of n.split(``)){let n=e.charCodeAt(0);if(this.widths.has(n))continue;let r=t.measureText(e),i=Math.ceil(r.width);this.widths.set(n,i),this.firstChar=Math.min(n,this.firstChar),this.lastChar=Math.max(n,this.lastChar)}return this.resources}static getFirstPositionInfo(e,t,i){let[a,o,s,c]=e,l=s-a,u=c-o;t%180!=0&&([l,u]=[u,l]);let d=n*i;return{coords:[0,u+r*i-d],bbox:[0,0,l,u],matrix:t===0?void 0:ct(t,u,d)}}createAppearance(e,t,i,a,o,s){let c=this._createContext(),l=[],u=-1/0;for(let t of e.split(/\r\n?|\n/)){l.push(t);let e=c.measureText(t).width;u=Math.max(u,e);for(let e of Qe(t)){let t=String.fromCodePoint(e),n=this.widths.get(e);if(n===void 0){let r=c.measureText(t);n=Math.ceil(r.width),this.widths.set(e,n),this.firstChar=Math.min(e,this.firstChar),this.lastChar=Math.max(e,this.lastChar)}}}u*=a/1e3;let[d,f,p,m]=t,h=p-d,g=m-f;i%180!=0&&([h,g]=[g,h]);let _=1;u>h&&(_=h/u);let v=1,y=n*a,b=r*a,x=y*l.length;x>g&&(v=g/x);let S=a*Math.min(_,v),C=[`q`,`0 0 ${rt(h)} ${rt(g)} re W n`,`BT`,`1 0 0 1 0 ${rt(g+b)} Tm 0 Tc ${Mc(o,!0)}`,`/${this.fontName.name} ${rt(S)} Tf`],{resources:w}=this;if((s=typeof s==`number`&&s>=0&&s<=1?s:1)!==1){C.push(`/R0 gs`);let e=new L(this.xref),t=new L(this.xref);t.set(`ca`,s),t.set(`CA`,s),t.setIfName(`Type`,`ExtGState`),e.set(`R0`,t),w.set(`ExtGState`,e)}let T=rt(y);for(let e of l)C.push(`0 -${T} Td <${ot(e)}> Tj`);C.push(`ET`,`Q`);let E=C.join(`
|
|
7
7
|
`),D=new L(this.xref);if(D.setIfName(`Subtype`,`Form`),D.setIfName(`Type`,`XObject`),D.set(`BBox`,[0,0,h,g]),D.set(`Length`,E.length),D.set(`Resources`,w),i){let e=ct(i,h,g);D.set(`Matrix`,e)}let O=new It(E);return O.dict=D,O}};const Pc=[`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`],Fc=[`HH:MM`,`h:MM tt`,`HH:MM:ss`,`h:MM:ss tt`];var Ic=class{constructor(e,t,n){this.root=e,this.xref=t,this._type=n}getAll(){let e=new Map;if(!this.root)return e;let t=this.xref,n=new me;n.put(this.root);let r=[this.root];for(;r.length>0;){let i=t.fetchIfRef(r.shift());if(!(i instanceof L))continue;if(i.has(`Kids`)){let e=i.get(`Kids`);if(!Array.isArray(e))continue;for(let t of e){if(n.has(t))throw new w(`Duplicate entry in "${this._type}" tree.`);r.push(t),n.put(t)}continue}let a=i.get(this._type);if(Array.isArray(a))for(let n=0,r=a.length;n<r;n+=2)e.set(t.fetchIfRef(a[n]),t.fetchIfRef(a[n+1]))}return e}getRaw(e){if(!this.root)return null;let t=this.xref,n=t.fetchIfRef(this.root),r=0;for(;n.has(`Kids`);){if(++r>10)return m(`Search depth limit reached for "${this._type}" tree.`),null;let i=n.get(`Kids`);if(!Array.isArray(i))return null;let a=0,o=i.length-1;for(;a<=o;){let r=a+o>>1,s=t.fetchIfRef(i[r]),c=s.get(`Limits`);if(e<t.fetchIfRef(c[0]))o=r-1;else{if(!(e>t.fetchIfRef(c[1]))){n=s;break}a=r+1}}if(a>o)return null}let i=n.get(this._type);if(Array.isArray(i)){let n=0,r=i.length-2;for(;n<=r;){let a=n+r>>1,o=a+(1&a),s=t.fetchIfRef(i[o]);if(e<s)r=o-2;else{if(!(e>s))return i[o+1];n=o+2}}}return null}get(e){return this.xref.fetchIfRef(this.getRaw(e))}},Lc=class extends Ic{constructor(e,t){super(e,t,`Names`)}},Rc=class extends Ic{constructor(e,t){super(e,t,`Nums`)}};function zc(){vo=Object.create(null),le=Object.create(null),ue=Object.create(null),de=Object.create(null),di.clear(),_n.cleanup()}function Bc(e){return e instanceof L?e.has(`UF`)?e.get(`UF`):e.has(`F`)?e.get(`F`):e.has(`Unix`)?e.get(`Unix`):e.has(`Mac`)?e.get(`Mac`):e.has(`DOS`)?e.get(`DOS`):null:null}var Vc=class{#e=!1;constructor(e,t,n=!1){e instanceof L&&(this.xref=t,this.root=e,e.has(`FS`)&&(this.fs=e.get(`FS`)),e.has(`RF`)&&m(`Related file specifications are not supported`),n||(e.has(`EF`)?this.#e=!0:m(`Non-embedded file specifications are not supported`)))}get filename(){let e=``,t=Bc(this.root);return t&&typeof t==`string`&&(e=P(t,!0).replaceAll(`\\\\`,`\\`).replaceAll(`\\/`,`/`).replaceAll(`\\`,`/`)),v(this,`filename`,e||`unnamed`)}get content(){if(!this.#e)return null;this._contentRef||=Bc(this.root?.get(`EF`));let e=null;if(this._contentRef){let t=this.xref.fetchIfRef(this._contentRef);t instanceof be?e=t.getBytes():m(`Embedded file specification points to non-existing/invalid content`)}else m(`Embedded file specification does not have any content`);return e}get description(){let e=``,t=this.root?.get(`Desc`);return t&&typeof t==`string`&&(e=P(t)),v(this,`description`,e)}get serializable(){return{rawFilename:this.filename,filename:(e=this.filename,e.substring(e.lastIndexOf(`/`)+1)),content:this.content,description:this.description};var e}};function Hc(e,t){let n=e[t];return n===` `||n===`
|
|
8
|
-
`||n===`\r`||n===` `}var Uc=class{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,(e,t)=>{if(t.substring(0,2)===`#x`)return String.fromCodePoint(parseInt(t.substring(2),16));if(t.substring(0,1)===`#`)return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case`lt`:return`<`;case`gt`:return`>`;case`amp`:return`&`;case`quot`:return`"`;case`apos`:return`'`}return this.onResolveEntity(t)})}_parseContent(e,t){let n=[],r=t;function i(){for(;r<e.length&&Hc(e,r);)++r}for(;r<e.length&&!Hc(e,r)&&e[r]!==`>`&&e[r]!==`/`;)++r;let a=e.substring(t,r);for(i();r<e.length&&e[r]!==`>`&&e[r]!==`/`&&e[r]!==`?`;){i();let t=``,a=``;for(;r<e.length&&!Hc(e,r)&&e[r]!==`=`;)t+=e[r],++r;if(i(),e[r]!==`=`)return null;++r,i();let o=e[r];if(o!==`"`&&o!==`'`)return null;let s=e.indexOf(o,++r);if(s<0)return null;a=e.substring(r,s),n.push({name:t,value:this._resolveEntities(a)}),r=s+1,i()}return{name:a,attributes:n,parsed:r-t}}_parseProcessingInstruction(e,t){let n=t;for(;n<e.length&&!Hc(e,n)&&e[n]!==`>`&&e[n]!==`?`&&e[n]!==`/`;)++n;let r=e.substring(t,n);(function(){for(;n<e.length&&Hc(e,n);)++n})();let i=n;for(;n<e.length&&(e[n]!==`?`||e[n+1]!==`>`);)++n;return{name:r,value:e.substring(i,n),parsed:n-t}}parseXml(e){let t=0;for(;t<e.length;){let n=t;if(e[t]===`<`){++n;let t;switch(e[n]){case`/`:if(++n,t=e.indexOf(`>`,n),t<0)return void this.onError(-9);this.onEndElement(e.substring(n,t)),n=t+1;break;case`?`:++n;let r=this._parseProcessingInstruction(e,n);if(e.substring(n+r.parsed,n+r.parsed+2)!==`?>`)return void this.onError(-3);this.onPi(r.name,r.value),n+=r.parsed+2;break;case`!`:if(e.substring(n+1,n+3)===`--`){if(t=e.indexOf(`-->`,n+3),t<0)return void this.onError(-5);this.onComment(e.substring(n+3,t)),n=t+3}else if(e.substring(n+1,n+8)===`[CDATA[`){if(t=e.indexOf(`]]>`,n+8),t<0)return void this.onError(-2);this.onCdata(e.substring(n+8,t)),n=t+3}else{if(e.substring(n+1,n+8)!==`DOCTYPE`)return void this.onError(-6);{let r=e.indexOf(`[`,n+8),i=!1;if(t=e.indexOf(`>`,n+8),t<0)return void this.onError(-4);if(r>0&&t>r){if(t=e.indexOf(`]>`,n+8),t<0)return void this.onError(-4);i=!0}let a=e.substring(n+8,t+ +!!i);this.onDoctype(a),n=t+(i?2:1)}}break;default:let i=this._parseContent(e,n);if(i===null)return void this.onError(-6);let a=!1;if(e.substring(n+i.parsed,n+i.parsed+2)===`/>`)a=!0;else if(e.substring(n+i.parsed,n+i.parsed+1)!==`>`)return void this.onError(-9);this.onBeginElement(i.name,i.attributes,a),n+=i.parsed+(a?2:1)}}else{for(;n<e.length&&e[n]!==`<`;)n++;let r=e.substring(t,n);this.onText(this._resolveEntities(r))}t=n}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,n){}onEndElement(e){}onError(e){}},Wc=class{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,`parentNode`,{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let e=this.parentNode.childNodes;if(!e)return;let t=e.indexOf(this);return t===-1?void 0:e[t+1]}get textContent(){return this.childNodes?this.childNodes.map(e=>e.textContent).join(``):this.nodeValue||``}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(e,t){if(t>=e.length)return this;let n=e[t];if(n.name.startsWith(`#`)&&t<e.length-1)return this.searchNode(e,t+1);let r=[],i=this;for(;;){if(n.name===i.nodeName){if(n.pos!==0){if(r.length===0)return null;{let[a]=r.pop(),o=0;for(let r of a.childNodes)if(n.name===r.nodeName){if(o===n.pos)return r.searchNode(e,t+1);o++}return i.searchNode(e,t+1)}}{let n=i.searchNode(e,t+1);if(n!==null)return n}}if(i.childNodes?.length>0)r.push([i,0]),i=i.childNodes[0];else{if(r.length===0)return null;for(;r.length!==0;){let[e,t]=r.pop(),n=t+1;if(n<e.childNodes.length){r.push([e,n]),i=e.childNodes[n];break}}if(r.length===0)return null}}}dump(e){if(this.nodeName!==`#text`){if(e.push(`<${this.nodeName}`),this.attributes)for(let t of this.attributes)e.push(` ${t.name}="${$e(t.value)}"`);if(this.hasChildNodes()){e.push(`>`);for(let t of this.childNodes)t.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${$e(this.nodeValue)}</${this.nodeName}>`):e.push(`/>`)}else e.push($e(this.nodeValue))}},Gc=class extends Uc{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=0,this._hasAttributes=e,this._lowerCaseName=t}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),this._errorCode!==0)return;let[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function(e){for(let t=0,n=e.length;t<n;t++)if(!Hc(e,t))return!1;return!0}(e))return;let t=new Wc(`#text`,e);this._currentFragment.push(t)}onCdata(e){let t=new Wc(`#text`,e);this._currentFragment.push(t)}onBeginElement(e,t,n){this._lowerCaseName&&(e=e.toLowerCase());let r=new Wc(e);r.childNodes=[],this._hasAttributes&&(r.attributes=t),this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];let t=this._currentFragment.at(-1);if(!t)return null;for(let e of t.childNodes)e.parentNode=t;return t}onError(e){this._errorCode=e}},Kc=class{constructor(e){e=this._repair(e);let t=new Gc({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,``).replaceAll(/>\\376\\377([^<]+)/g,function(e,t){let n=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case`amp`:return`&`;case`apos`:return`'`;case`gt`:return`>`;case`lt`:return`<`;case`quot`:return`"`}throw Error(`_repair: ${t} isn't defined.`)}),r=[`>`];for(let e=0,t=n.length;e<t;e+=2){let t=256*n.charCodeAt(e)+n.charCodeAt(e+1);t>=32&&t<127&&t!==60&&t!==62&&t!==38?r.push(String.fromCharCode(t)):r.push(`&#x`+(65536+t).toString(16).substring(1)+`;`)}return r.join(``)})}_getSequence(e){let t=e.nodeName;return t!==`rdf:bag`&&t!==`rdf:seq`&&t!==`rdf:alt`?null:e.childNodes.filter(e=>e.nodeName===`rdf:li`)}_parseArray(e){if(!e.hasChildNodes())return;let[t]=e.childNodes,n=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,n.map(e=>e.textContent.trim()))}_parse(e){let t=e.documentElement;if(t.nodeName!==`rdf:rdf`)for(t=t.firstChild;t&&t.nodeName!==`rdf:rdf`;)t=t.nextSibling;if(t&&t.nodeName===`rdf:rdf`&&t.hasChildNodes()){for(let e of t.childNodes)if(e.nodeName===`rdf:description`)for(let t of e.childNodes){let e=t.nodeName;switch(e){case`#text`:continue;case`dc:creator`:case`dc:subject`:this._parseArray(t);continue}this._metadataMap.set(e,t.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}},qc=class e{constructor(e,t,n){this.xref=e,this.dict=t,this.ref=n instanceof R?n:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}#e(e,t,n){if(!(e instanceof R)||t<0)return;this.structParentIds||=new he;let r=this.structParentIds.get(e);r||(r=[],this.structParentIds.put(e,r)),r.push([t,n])}addAnnotationIdToPage(e,t){this.#e(e,t,4)}readRoleMap(){let e=this.dict.get(`RoleMap`);if(e instanceof L)for(let[t,n]of e)n instanceof I&&this.roleMap.set(t,n.name)}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:n}){if(!(e instanceof R))return m(`Cannot save the struct tree: no catalog reference.`),!1;let r=0,i=!0;for(let[e,a]of n){let{ref:n}=await t.getPage(e);if(!(n instanceof R)){m(`Cannot save the struct tree: page ${e} has no ref.`),i=!0;break}for(let e of a)e.accessibilityData?.type&&(e.parentTreeId=r++,i=!1)}if(i){for(let e of n.values())for(let t of e)delete t.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:t,catalogRef:n,pdfManager:r,changes:i}){let a=await r.ensureCatalog(`cloneDict`),o=new he;o.put(n,a);let s=t.getNewTemporaryRef();a.set(`StructTreeRoot`,s);let c=new L(t);c.set(`Type`,I.get(`StructTreeRoot`));let l=t.getNewTemporaryRef();c.set(`ParentTree`,l);let u=[];c.set(`K`,u),o.put(s,c);let d=new L(t),f=[];d.set(`Nums`,f);let p=await this.#t({newAnnotationsByPage:e,structTreeRootRef:s,structTreeRoot:null,kids:u,nums:f,xref:t,pdfManager:r,changes:i,cache:o});c.set(`ParentTreeNextKey`,p),o.put(l,d);for(let[e,t]of o.items())i.put(e,{data:t})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:n}){if(!this.ref)return m(`Cannot update the struct tree: no root reference.`),!1;let r=this.dict.get(`ParentTreeNextKey`);if(!Number.isInteger(r)||r<0)return m(`Cannot update the struct tree: invalid next key.`),!1;let i=this.dict.get(`ParentTree`);if(!(i instanceof L))return m(`Cannot update the struct tree: ParentTree isn't a dict.`),!1;let a=i.get(`Nums`);if(!Array.isArray(a))return m(`Cannot update the struct tree: nums isn't an array.`),!1;let o=new Rc(i,this.xref);for(let e of n.keys()){let{pageDict:n}=await t.getPage(e);if(!n.has(`StructParents`))continue;let r=n.get(`StructParents`);if(!Number.isInteger(r)||!Array.isArray(o.get(r)))return m(`Cannot save the struct tree: page ${e} has a wrong id.`),!1}let s=!0;for(let[i,a]of n){let{pageDict:n}=await t.getPage(i);e.#r({elements:a,xref:this.xref,pageDict:n,numberTree:o});for(let e of a)e.accessibilityData?.type&&(e.accessibilityData.structParent>=0||(e.parentTreeId=r++),s=!1)}if(s){for(let e of n.values())for(let t of e)delete t.parentTreeId,delete t.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:n,changes:r}){let{ref:i,xref:a}=this,o=this.dict.clone(),s=new he;s.put(i,o);let c,l=o.getRaw(`ParentTree`);l instanceof R?c=a.fetch(l):(c=l,l=a.getNewTemporaryRef(),o.set(`ParentTree`,l)),c=c.clone(),s.put(l,c);let u=c.getRaw(`Nums`),d=null;u instanceof R&&(d=u,u=a.fetch(d)),u=u.slice(),d||c.set(`Nums`,u);let f=await e.#t({newAnnotationsByPage:t,structTreeRootRef:i,structTreeRoot:this,kids:null,nums:u,xref:a,pdfManager:n,changes:r,cache:s});if(f!==-1){o.set(`ParentTreeNextKey`,f),d&&s.put(d,u);for(let[e,t]of s.items())r.put(e,{data:t})}}static async#t({newAnnotationsByPage:t,structTreeRootRef:n,structTreeRoot:r,kids:i,nums:a,xref:o,pdfManager:s,changes:c,cache:l}){let u=I.get(`OBJR`),d,f=-1;for(let[p,m]of t){let t=await s.getPage(p),{ref:h}=t,g=h instanceof R;for(let{accessibilityData:s,ref:_,parentTreeId:v,structTreeParent:y}of m){if(!s?.type)continue;let{structParent:m}=s;if(r&&Number.isInteger(m)&&m>=0){let n=(d||=new Map).get(p);n===void 0&&(n=new Xc(r,t.pageDict).collectObjects(h),d.set(p,n));let i=n?.get(m);if(i){let t=o.fetch(i).clone();e.#n(t,s),c.put(i,{data:t});continue}}f=Math.max(f,v);let b=o.getNewTemporaryRef(),x=new L(o);e.#n(x,s),await this.#i({structTreeParent:y,tagDict:x,newTagRef:b,structTreeRootRef:n,fallbackKids:i,xref:o,cache:l});let S=new L(o);x.set(`K`,S),S.set(`Type`,u),g&&S.set(`Pg`,h),S.set(`Obj`,_),l.put(b,x),a.push(v,b)}}return f+1}static#n(e,{type:t,title:n,lang:r,alt:i,expanded:a,actualText:o}){e.set(`S`,I.get(t)),n&&e.set(`T`,at(n)),r&&e.set(`Lang`,at(r)),i&&e.set(`Alt`,at(i)),a&&e.set(`E`,at(a)),o&&e.set(`ActualText`,at(o))}static#r({elements:e,xref:t,pageDict:n,numberTree:r}){let i=new Map;for(let t of e)if(t.structTreeParentId){let e=parseInt(t.structTreeParentId.split(`_mc`)[1],10),n=i.get(e);n||(n=[],i.set(e,n)),n.push(t)}let a=n.get(`StructParents`);if(!Number.isInteger(a))return;let o=r.get(a),s=(e,n,r)=>{let a=i.get(e);if(a){let e=n.getRaw(`P`),i=t.fetchIfRef(e);if(e instanceof R&&i instanceof L){let e={ref:r,dict:n};for(let t of a)t.structTreeParent=e}return!0}return!1};for(let e of o){if(!(e instanceof R))continue;let n=t.fetch(e),r=n.get(`K`);if(Number.isInteger(r))s(r,n,e);else if(Array.isArray(r))for(let i of r){if(i=t.fetchIfRef(i),Number.isInteger(i)&&s(i,n,e))break;if(!(i instanceof L))continue;if(!ge(i.get(`Type`),`MCR`))break;let r=i.get(`MCID`);if(Number.isInteger(r)&&s(r,n,e))break}}}static async#i({structTreeParent:e,tagDict:t,newTagRef:n,structTreeRootRef:r,fallbackKids:i,xref:a,cache:o}){let s,c=null;e?({ref:c}=e,s=e.dict.getRaw(`P`)||r):s=r,t.set(`P`,s);let l=a.fetchIfRef(s);if(!l)return void i.push(n);let u=o.get(s);u||(u=l.clone(),o.put(s,u));let d=u.getRaw(`K`),f=d instanceof R?o.get(d):null;if(!f){f=a.fetchIfRef(d),f=Array.isArray(f)?f.slice():[d];let e=a.getNewTemporaryRef();u.set(`K`,e),o.put(e,f)}let p=f.indexOf(c);f.splice(p>=0?p+1:f.length,0,n)}},Jc=class{constructor(e,t){this.tree=e,this.xref=e.xref,this.dict=t,this.kids=[],this.parseKids()}get role(){let e=this.dict.get(`S`),t=e instanceof I?e.name:``,{root:n}=this.tree;return n.roleMap.get(t)??t}parseKids(){let e=null,t=this.dict.getRaw(`Pg`);t instanceof R&&(e=t.toString());let n=this.dict.get(`K`);if(Array.isArray(n))for(let t of n){let n=this.parseKid(e,this.xref.fetchIfRef(t));n&&this.kids.push(n)}else{let t=this.parseKid(e,n);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId===e?new Yc({type:1,mcid:t,pageObjId:e}):null;if(!(t instanceof L))return null;let n=t.getRaw(`Pg`);n instanceof R&&(e=n.toString());let r=t.get(`Type`)instanceof I?t.get(`Type`).name:null;if(r===`MCR`){if(this.tree.pageDict.objId!==e)return null;let n=t.getRaw(`Stm`);return new Yc({type:2,refObjId:n instanceof R?n.toString():null,pageObjId:e,mcid:t.get(`MCID`)})}if(r===`OBJR`){if(this.tree.pageDict.objId!==e)return null;let n=t.getRaw(`Obj`);return new Yc({type:3,refObjId:n instanceof R?n.toString():null,pageObjId:e})}return new Yc({type:5,dict:t})}},Yc=class{constructor({type:e,dict:t=null,mcid:n=null,pageObjId:r=null,refObjId:i=null}){this.type=e,this.dict=t,this.mcid=n,this.pageObjId=r,this.refObjId=i,this.parentNode=null}},Xc=class{constructor(e,t){this.root=e,this.xref=e?.xref??null,this.rootDict=e?.dict??null,this.pageDict=t,this.nodes=[]}collectObjects(e){if(!(this.root&&this.rootDict&&e instanceof R))return null;let t=this.rootDict.get(`ParentTree`);if(!t)return null;let n=this.root.structParentIds?.get(e);if(!n)return null;let r=new Map,i=new Rc(t,this.xref);for(let[e]of n){let t=i.getRaw(e);t instanceof R&&r.set(e,t)}return r}parse(e){if(!(this.root&&this.rootDict&&e instanceof R))return;let t=this.rootDict.get(`ParentTree`);if(!t)return;let n=this.pageDict.get(`StructParents`),r=this.root.structParentIds?.get(e);if(!Number.isInteger(n)&&!r)return;let i=new Map,a=new Rc(t,this.xref);if(Number.isInteger(n)){let e=a.get(n);if(Array.isArray(e))for(let t of e)t instanceof R&&this.addNode(this.xref.fetch(t),i)}if(r)for(let[e,t]of r){let n=a.get(e);if(n){let e=this.addNode(this.xref.fetchIfRef(n),i);e?.kids?.length===1&&e.kids[0].type===3&&(e.kids[0].type=t)}}}addNode(e,t,n=0){if(n>40)return m(`StructTree MAX_DEPTH reached.`),null;if(!(e instanceof L))return null;if(t.has(e))return t.get(e);let r=new Jc(this,e);t.set(e,r);let i=e.get(`P`);if(!(i instanceof L)||ge(i.get(`Type`),`StructTreeRoot`))return this.addTopLevelNode(e,r)||t.delete(e),r;let a=this.addNode(i,t,n+1);if(!a)return r;let o=!1;for(let t of a.kids)t.type===5&&t.dict===e&&(t.parentNode=r,o=!0);return o||t.delete(e),r}addTopLevelNode(e,t){let n=this.rootDict.get(`K`);if(!n)return!1;if(n instanceof L)return n.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(n))return!0;let r=!1;for(let i=0;i<n.length;i++)n[i]?.toString()===e.objId&&(this.nodes[i]=t,r=!0);return r}get serializable(){function e(t,n,r=0){if(r>40)return void m(`StructTree too deep to be fully serialized.`);let i=Object.create(null);i.role=t.role,i.children=[],n.children.push(i);let a=t.dict.get(`Alt`);typeof a!=`string`&&(a=t.dict.get(`ActualText`)),typeof a==`string`&&(i.alt=P(a));let o=t.dict.get(`A`);if(o instanceof L){let e=Ge(o.getArray(`BBox`),null);if(e)i.bbox=e;else{let e=o.get(`Width`),t=o.get(`Height`);typeof e==`number`&&e>0&&typeof t==`number`&&t>0&&(i.bbox=[0,0,e,t])}}let s=t.dict.get(`Lang`);typeof s==`string`&&(i.lang=P(s));for(let n of t.kids){let t=n.type===5?n.parentNode:null;t?e(t,i,r+1):n.type===1||n.type===2?i.children.push({type:`content`,id:`p${n.pageObjId}_mc${n.mcid}`}):n.type===3?i.children.push({type:`object`,id:n.refObjId}):n.type===4&&i.children.push({type:`annotation`,id:`pdfjs_internal_id_${n.refObjId}`})}}let t=Object.create(null);t.children=[],t.role=`Root`;for(let n of this.nodes)n&&e(n,t);return t}};const Zc=function(e,t,n){if(!Array.isArray(n)||n.length<2)return!1;let[r,i,...a]=n;if(!e(r)&&!Number.isInteger(r)||!t(i))return!1;let o=a.length,s=!0;switch(i.name){case`XYZ`:if(o<2||o>3)return!1;break;case`Fit`:case`FitB`:return o===0;case`FitH`:case`FitBH`:case`FitV`:case`FitBV`:if(o>1)return!1;break;case`FitR`:if(o!==4)return!1;s=!1;break;default:return!1}for(let e of a)if(!(typeof e==`number`||s&&e===null))return!1;return!0}.bind(null,e=>e instanceof R,ge);function Qc(e){return e instanceof L&&(e=e.get(`D`)),Zc(e)?e:null}function $c(e){let t=e.get(`D`);if(t){if(t instanceof I&&(t=t.name),typeof t==`string`)return P(t,!0);if(Zc(t))return JSON.stringify(t)}return null}var el=class e{#e=null;#t=null;builtInCMapCache=new Map;fontCache=new he;globalColorSpaceCache=new Cs;globalImageCache=new ws;nonBlendModesSet=new me;pageDictCache=new he;pageIndexCache=new he;pageKidsCountCache=new he;standardFontDataCache=new Map;systemFontCache=new Map;constructor(e,t){if(this.pdfManager=e,this.xref=t,this.#t=t.getCatalogObj(),!(this.#t instanceof L))throw new w(`Catalog object is not a dictionary.`);this.toplevelPagesDict}cloneDict(){return this.#t.clone()}get version(){let e=this.#t.get(`Version`);if(e instanceof I){if(xe.test(e.name))return v(this,`version`,e.name);m(`Invalid PDF catalog version: ${e.name}`)}return v(this,`version`,null)}get lang(){let e=this.#t.get(`Lang`);return v(this,`lang`,e&&typeof e==`string`?P(e):null)}get needsRendering(){let e=this.#t.get(`NeedsRendering`);return v(this,`needsRendering`,typeof e==`boolean`&&e)}get collection(){let e=null;try{let t=this.#t.get(`Collection`);t instanceof L&&t.size>0&&(e=t)}catch(e){if(e instanceof De)throw e;p(`Cannot fetch Collection entry; assuming no collection is present.`)}return v(this,`collection`,e)}get acroForm(){let e=null;try{let t=this.#t.get(`AcroForm`);t instanceof L&&t.size>0&&(e=t)}catch(e){if(e instanceof De)throw e;p(`Cannot fetch AcroForm entry; assuming no forms are present.`)}return v(this,`acroForm`,e)}get acroFormRef(){let e=this.#t.getRaw(`AcroForm`);return v(this,`acroFormRef`,e instanceof R?e:null)}get metadata(){let e=this.#t.getRaw(`Metadata`);if(!(e instanceof R))return v(this,`metadata`,null);let t=null;try{let n=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(n instanceof be&&n.dict instanceof L){let e=n.dict.get(`Type`),r=n.dict.get(`Subtype`);if(ge(e,`Metadata`)&&ge(r,`XML`)){let e=F(n.getString());e&&(t=new Kc(e).serializable)}}}catch(e){if(e instanceof De)throw e;p(`Skipping invalid Metadata: "${e}".`)}return v(this,`metadata`,t)}get markInfo(){let e=null;try{e=this.#n()}catch(e){if(e instanceof De)throw e;m(`Unable to read mark info.`)}return v(this,`markInfo`,e)}#n(){let e=this.#t.get(`MarkInfo`);if(!(e instanceof L))return null;let t={Marked:!1,UserProperties:!1,Suspects:!1};for(let n in t){let r=e.get(n);typeof r==`boolean`&&(t[n]=r)}return t}get structTreeRoot(){let e=null;try{e=this.#r()}catch(e){if(e instanceof De)throw e;m(`Unable read to structTreeRoot info.`)}return v(this,`structTreeRoot`,e)}#r(){let e=this.#t.getRaw(`StructTreeRoot`),t=this.xref.fetchIfRef(e);if(!(t instanceof L))return null;let n=new qc(this.xref,t,e);return n.init(),n}get toplevelPagesDict(){let e=this.#t.get(`Pages`);if(!(e instanceof L))throw new w(`Invalid top-level pages dictionary.`);return v(this,`toplevelPagesDict`,e)}get documentOutline(){let e=null;try{e=this.#i()}catch(e){if(e instanceof De)throw e;m(`Unable to read document outline.`)}return v(this,`documentOutline`,e)}#i(){let t=this.#t.get(`Outlines`);if(!(t instanceof L)||(t=t.getRaw(`First`),!(t instanceof R)))return null;let n={items:[]},r=[{obj:t,parent:n}],i=new me;i.put(t);let a=this.xref,o=new Uint8ClampedArray(3);for(;r.length>0;){let n=r.shift(),s=a.fetchIfRef(n.obj);if(s===null)continue;s.has(`Title`)||m(`Invalid outline item encountered.`);let c={url:null,dest:null,action:null};e.parseDestDictionary({destDict:s,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let l=s.get(`Title`),u=s.get(`F`)||0,d=s.getArray(`C`),f=s.get(`Count`),p=o;!He(d,3)||d[0]===0&&d[1]===0&&d[2]===0||(p=Kt.rgb.getRgb(d,0));let h={action:c.action,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:typeof l==`string`?P(l):``,color:p,count:Number.isInteger(f)?f:void 0,bold:!!(2&u),italic:!!(1&u),items:[]};n.parent.items.push(h),t=s.getRaw(`First`),t instanceof R&&!i.has(t)&&(r.push({obj:t,parent:h}),i.put(t)),t=s.getRaw(`Next`),t instanceof R&&!i.has(t)&&(r.push({obj:t,parent:n.parent}),i.put(t))}return n.items.length>0?n.items:null}get permissions(){let e=null;try{e=this.#a()}catch(e){if(e instanceof De)throw e;m(`Unable to read permissions.`)}return v(this,`permissions`,e)}#a(){let e=this.xref.trailer.get(`Encrypt`);if(!(e instanceof L))return null;let t=e.get(`P`);if(typeof t!=`number`)return null;t+=2**32;let n=[];for(let e in o){let r=o[e];t&r&&n.push(r)}return n}get optionalContentConfig(){let e=null;try{let t=this.#t.get(`OCProperties`);if(!t)return v(this,`optionalContentConfig`,null);let n=t.get(`D`);if(!n)return v(this,`optionalContentConfig`,null);let r=t.get(`OCGs`);if(!Array.isArray(r))return v(this,`optionalContentConfig`,null);let i=new he;for(let e of r)e instanceof R&&!i.has(e)&&i.put(e,this.#o(e));e=this.#s(n,i)}catch(e){if(e instanceof De)throw e;m(`Unable to read optional content config: ${e}`)}return v(this,`optionalContentConfig`,e)}#o(e){let t=this.xref.fetch(e),n={id:e.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},r=t.get(`Name`);typeof r==`string`&&(n.name=P(r));let i=t.getArray(`Intent`);Array.isArray(i)||(i=[i]),i.every(e=>e instanceof I)&&(n.intent=i.map(e=>e.name));let a=t.get(`Usage`);if(!(a instanceof L))return n;let o=n.usage,s=a.get(`Print`);if(s instanceof L){let e=s.get(`PrintState`);if(e instanceof I)switch(e.name){case`ON`:case`OFF`:o.print={printState:e.name}}}let c=a.get(`View`);if(c instanceof L){let e=c.get(`ViewState`);if(e instanceof I)switch(e.name){case`ON`:case`OFF`:o.view={viewState:e.name}}}return n}#s(e,t){function n(e){let n=[];if(Array.isArray(e))for(let r of e)r instanceof R&&t.has(r)&&n.push(r.toString());return n}function r(e,n=0){if(!Array.isArray(e))return null;let r=[];for(let a of e){if(a instanceof R&&t.has(a)){o.put(a),r.push(a.toString());continue}let e=i(a,n);e&&r.push(e)}if(n>0)return r;let a=[];for(let[e]of t.items())o.has(e)||a.push(e.toString());return a.length&&r.push({name:null,order:a}),r}function i(e,t){if(++t>s)return m(`parseNestedOrder - reached MAX_NESTED_LEVELS.`),null;let n=a.fetchIfRef(e);if(!Array.isArray(n))return null;let i=a.fetchIfRef(n[0]);if(typeof i!=`string`)return null;let o=r(n.slice(1),t);return o?.length?{name:P(i),order:o}:null}let a=this.xref,o=new me,s=10;return function(e){if(Array.isArray(e))for(let n of e){let e=a.fetchIfRef(n);if(!Array.isArray(e)||!e.length)continue;let r=new Set;for(let n of e)n instanceof R&&t.has(n)&&!r.has(n.toString())&&(r.add(n.toString()),t.get(n).rbGroups.push(r))}}(e.get(`RBGroups`)),{name:typeof e.get(`Name`)==`string`?P(e.get(`Name`)):null,creator:typeof e.get(`Creator`)==`string`?P(e.get(`Creator`)):null,baseState:e.get(`BaseState`)instanceof I?e.get(`BaseState`).name:null,on:n(e.get(`ON`)),off:n(e.get(`OFF`)),order:r(e.get(`Order`)),groups:[...t]}}setActualNumPages(e=null){this.#e=e}get hasActualNumPages(){return this.#e!==null}get _pagesCount(){let e=this.toplevelPagesDict.get(`Count`);if(!Number.isInteger(e))throw new w(`Page count in top-level pages dictionary is not an integer.`);return v(this,`_pagesCount`,e)}get numPages(){return this.#e??this._pagesCount}get destinations(){let e=this.#c(),t=Object.create(null);for(let n of e)if(n instanceof Lc)for(let[e,r]of n.getAll()){let n=Qc(r);n&&(t[P(e,!0)]=n)}else if(n instanceof L)for(let[e,r]of n){let n=Qc(r);n&&(t[P(e,!0)]||=n)}return v(this,`destinations`,t)}getDestination(e){if(this.hasOwnProperty(`destinations`))return this.destinations[e]??null;let t=this.#c();for(let n of t)if(n instanceof Lc||n instanceof L){let t=Qc(n.get(e));if(t)return t}if(t.length){let t=this.destinations[e];if(t)return t}return null}#c(){let e=this.#t.get(`Names`),t=[];return e?.has(`Dests`)&&t.push(new Lc(e.getRaw(`Dests`),this.xref)),this.#t.has(`Dests`)&&t.push(this.#t.get(`Dests`)),t}get pageLabels(){let e=null;try{e=this.#l()}catch(e){if(e instanceof De)throw e;m(`Unable to read page labels.`)}return v(this,`pageLabels`,e)}#l(){let e=this.#t.getRaw(`PageLabels`);if(!e)return null;let t=Array(this.numPages),n=null,r=``,i=new Rc(e,this.xref).getAll(),a=``,o=1;for(let e=0,s=this.numPages;e<s;e++){let s=i.get(e);if(s!==void 0){if(!(s instanceof L))throw new w(`PageLabel is not a dictionary.`);if(s.has(`Type`)&&!ge(s.get(`Type`),`PageLabel`))throw new w(`Invalid type in PageLabel dictionary.`);if(s.has(`S`)){let e=s.get(`S`);if(!(e instanceof I))throw new w(`Invalid style in PageLabel dictionary.`);n=e.name}else n=null;if(s.has(`P`)){let e=s.get(`P`);if(typeof e!=`string`)throw new w(`Invalid prefix in PageLabel dictionary.`);r=P(e)}else r=``;if(s.has(`St`)){let e=s.get(`St`);if(!(Number.isInteger(e)&&e>=1))throw new w(`Invalid start in PageLabel dictionary.`);o=e}else o=1}switch(n){case`D`:a=o;break;case`R`:case`r`:a=Fe(o,n===`r`);break;case`A`:case`a`:let e=n===`a`?97:65,t=o-1;a=String.fromCharCode(e+t%26).repeat(Math.floor(t/26)+1);break;default:if(n)throw new w(`Invalid style "${n}" in PageLabel dictionary.`);a=``}t[e]=r+a,o++}return t}get pageLayout(){let e=this.#t.get(`PageLayout`),t=``;if(e instanceof I)switch(e.name){case`SinglePage`:case`OneColumn`:case`TwoColumnLeft`:case`TwoColumnRight`:case`TwoPageLeft`:case`TwoPageRight`:t=e.name}return v(this,`pageLayout`,t)}get pageMode(){let e=this.#t.get(`PageMode`),t=`UseNone`;if(e instanceof I)switch(e.name){case`UseNone`:case`UseOutlines`:case`UseThumbs`:case`FullScreen`:case`UseOC`:case`UseAttachments`:t=e.name}return v(this,`pageMode`,t)}get viewerPreferences(){let e=this.#t.get(`ViewerPreferences`);if(!(e instanceof L))return v(this,`viewerPreferences`,null);let t=null;for(let[n,r]of e){let e;switch(n){case`HideToolbar`:case`HideMenubar`:case`HideWindowUI`:case`FitWindow`:case`CenterWindow`:case`DisplayDocTitle`:case`PickTrayByPDFSize`:typeof r==`boolean`&&(e=r);break;case`NonFullScreenPageMode`:if(r instanceof I)switch(r.name){case`UseNone`:case`UseOutlines`:case`UseThumbs`:case`UseOC`:e=r.name;break;default:e=`UseNone`}break;case`Direction`:if(r instanceof I)switch(r.name){case`L2R`:case`R2L`:e=r.name;break;default:e=`L2R`}break;case`ViewArea`:case`ViewClip`:case`PrintArea`:case`PrintClip`:if(r instanceof I)switch(r.name){case`MediaBox`:case`CropBox`:case`BleedBox`:case`TrimBox`:case`ArtBox`:e=r.name;break;default:e=`CropBox`}break;case`PrintScaling`:if(r instanceof I)switch(r.name){case`None`:case`AppDefault`:e=r.name;break;default:e=`AppDefault`}break;case`Duplex`:if(r instanceof I)switch(r.name){case`Simplex`:case`DuplexFlipShortEdge`:case`DuplexFlipLongEdge`:e=r.name;break;default:e=`None`}break;case`PrintPageRange`:Array.isArray(r)&&r.length%2==0&&r.every((e,t,n)=>Number.isInteger(e)&&e>0&&(t===0||e>=n[t-1])&&e<=this.numPages)&&(e=r);break;case`NumCopies`:Number.isInteger(r)&&r>0&&(e=r);break;default:m(`Ignoring non-standard key in ViewerPreferences: ${n}.`);continue}e===void 0?m(`Bad value, for key "${n}", in ViewerPreferences: ${r}.`):(t??=Object.create(null),t[n]=e)}return v(this,`viewerPreferences`,t)}get openAction(){let t=this.#t.get(`OpenAction`),n=Object.create(null);if(t instanceof L){let r=new L(this.xref);r.set(`A`,t);let i={url:null,dest:null,action:null};e.parseDestDictionary({destDict:r,resultObj:i}),Array.isArray(i.dest)?n.dest=i.dest:i.action&&(n.action=i.action)}else Zc(t)&&(n.dest=t);return v(this,`openAction`,k(n)>0?n:null)}get attachments(){let e=this.#t.get(`Names`),t=null;if(e instanceof L&&e.has(`EmbeddedFiles`)){let n=new Lc(e.getRaw(`EmbeddedFiles`),this.xref);for(let[e,r]of n.getAll()){let n=new Vc(r,this.xref);t??=Object.create(null),t[P(e,!0)]=n.serializable}}return v(this,`attachments`,t)}get xfaImages(){let e=this.#t.get(`Names`),t=null;if(e instanceof L&&e.has(`XFAImages`)){let n=new Lc(e.getRaw(`XFAImages`),this.xref);for(let[e,r]of n.getAll())r instanceof be&&(t??=new Map,t.set(P(e,!0),r.getBytes()))}return v(this,`xfaImages`,t)}#u(){let e=this.#t.get(`Names`),t=null;function n(e,n){if(!(n instanceof L)||!ge(n.get(`S`),`JavaScript`))return;let r=n.get(`JS`);if(r instanceof be)r=r.getString();else if(typeof r!=`string`)return;r=P(r,!0).replaceAll(`\0`,``),r&&(t||=new Map).set(e,r)}if(e instanceof L&&e.has(`JavaScript`)){let t=new Lc(e.getRaw(`JavaScript`),this.xref);for(let[e,r]of t.getAll())n(P(e,!0),r)}let r=this.#t.get(`OpenAction`);return r&&n(`OpenAction`,r),t}get jsActions(){let e=this.#u(),t=Xe(this.xref,this.#t,u);if(e){t||=Object.create(null);for(let[n,r]of e)n in t?t[n].push(r):t[n]=[r]}return v(this,`jsActions`,t)}async cleanup(e=!1){zc(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear();for(let{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(e){let t=[this.toplevelPagesDict],n=new me,r=this.#t.getRaw(`Pages`);r instanceof R&&n.put(r);let i=this.xref,a=this.pageKidsCountCache,o=this.pageIndexCache,s=this.pageDictCache,c=0;for(;t.length;){let r=t.pop();if(r instanceof R){let l=a.get(r);if(l>=0&&c+l<=e){c+=l;continue}if(n.has(r))throw new w(`Pages tree contains circular reference.`);n.put(r);let u=await(s.get(r)||i.fetchAsync(r));if(u instanceof L){let t=u.getRaw(`Type`);if(t instanceof R&&(t=await i.fetchAsync(t)),ge(t,`Page`)||!u.has(`Kids`)){if(a.has(r)||a.put(r,1),o.has(r)||o.put(r,c),c===e)return[u,r];c++;continue}}t.push(u);continue}if(!(r instanceof L))throw new w(`Page dictionary kid reference points to wrong type of object.`);let{objId:l}=r,u=r.getRaw(`Count`);if(u instanceof R&&(u=await i.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(l&&!a.has(l)&&a.put(l,u),c+u<=e)){c+=u;continue}let d=r.getRaw(`Kids`);if(d instanceof R&&(d=await i.fetchAsync(d)),!Array.isArray(d)){let t=r.getRaw(`Type`);if(t instanceof R&&(t=await i.fetchAsync(t)),ge(t,`Page`)||!r.has(`Kids`)){if(c===e)return[r,null];c++;continue}throw new w(`Page dictionary kids object is not an array.`)}for(let e=d.length-1;e>=0;e--){let n=d[e];t.push(n),r===this.toplevelPagesDict&&n instanceof R&&!s.has(n)&&s.put(n,i.fetchAsync(n))}}throw Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){let{ignoreErrors:t}=this.pdfManager.evaluatorOptions,n=[{currentNode:this.toplevelPagesDict,posInKids:0}],r=new me,i=this.#t.getRaw(`Pages`);i instanceof R&&r.put(i);let a=new Map,o=this.xref,s=this.pageIndexCache,c=0;function l(e,t){t&&!s.has(t)&&s.put(t,c),a.set(c++,[e,t])}function u(n){if(n instanceof ke&&!e)throw n;e&&t&&c===0&&(m(`getAllPageDicts - Skipping invalid first page: "${n}".`),n=L.empty),a.set(c++,[n,null])}for(;n.length>0;){let e=n.at(-1),{currentNode:t,posInKids:i}=e,a=t.getRaw(`Kids`);if(a instanceof R)try{a=await o.fetchAsync(a)}catch(e){u(e);break}if(!Array.isArray(a)){u(new w(`Page dictionary kids object is not an array.`));break}if(i>=a.length){n.pop();continue}let s=a[i],c;if(s instanceof R){if(r.has(s)){u(new w(`Pages tree contains circular reference.`));break}r.put(s);try{c=await o.fetchAsync(s)}catch(e){u(e);break}}else c=s;if(!(c instanceof L)){u(new w(`Page dictionary kid reference points to wrong type of object.`));break}let d=c.getRaw(`Type`);if(d instanceof R)try{d=await o.fetchAsync(d)}catch(e){u(e);break}ge(d,`Page`)||!c.has(`Kids`)?l(c,s instanceof R?s:null):n.push({currentNode:c,posInKids:0}),e.posInKids++}return a}getPageIndex(e){let t=this.pageIndexCache.get(e);if(t!==void 0)return Promise.resolve(t);let n=this.xref,r=0,i=t=>function(t){let r,i=0;return n.fetchAsync(t).then(function(n){if(ye(t,e)&&!ve(n,`Page`)&&!(n instanceof L&&!n.has(`Type`)&&n.has(`Contents`)))throw new w(`The reference does not point to a /Page dictionary.`);if(!n)return null;if(!(n instanceof L))throw new w(`Node must be a dictionary.`);return r=n.getRaw(`Parent`),n.getAsync(`Parent`)}).then(function(e){if(!e)return null;if(!(e instanceof L))throw new w(`Parent must be a dictionary.`);return e.getAsync(`Kids`)}).then(function(e){if(!e)return null;let a=[],o=!1;for(let r of e){if(!(r instanceof R))throw new w(`Kid must be a reference.`);if(ye(r,t)){o=!0;break}a.push(n.fetchAsync(r).then(function(e){if(!(e instanceof L))throw new w(`Kid node must be a dictionary.`);e.has(`Count`)?i+=e.get(`Count`):i++}))}if(!o)throw new w(`Kid reference not found in parent's kids.`);return Promise.all(a).then(()=>[i,r])})}(t).then(t=>{if(!t)return this.pageIndexCache.put(e,r),r;let[n,a]=t;return r+=n,i(a)});return i(e)}get baseUrl(){let e=this.#t.get(`URI`);if(e instanceof L){let t=e.get(`Base`);if(typeof t==`string`){let e=_(t,null,{tryConvertEncoding:!0});if(e)return v(this,`baseUrl`,e.href)}}return v(this,`baseUrl`,this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:e,resultObj:t,docBaseUrl:n=null,docAttachments:r=null}){if(!(e instanceof L))return void m("parseDestDictionary: `destDict` must be a dictionary.");let i,a,o=e.get(`A`);if(o instanceof L||(e.has(`Dest`)?o=e.get(`Dest`):(o=e.get(`AA`),o instanceof L&&(o.has(`D`)?o=o.get(`D`):o.has(`U`)&&(o=o.get(`U`))))),o instanceof L){let e=o.get(`S`);if(!(e instanceof I))return void m(`parseDestDictionary: Invalid type in Action dictionary.`);let n=e.name;switch(n){case`ResetForm`:let e=o.get(`Flags`),s=!(1&(typeof e==`number`?e:0)),c=[],l=[];for(let e of o.get(`Fields`)||[])e instanceof R?l.push(e.toString()):typeof e==`string`&&c.push(P(e));t.resetForm={fields:c,refs:l,include:s};break;case`URI`:i=o.get(`URI`),i instanceof I&&(i=`/`+i.name);break;case`GoTo`:a=o.get(`D`);break;case`Launch`:case`GoToR`:let u=o.get(`F`);if(u instanceof L){let{rawFilename:e}=new Vc(u,null,!0).serializable;i=e}else typeof u==`string`&&(i=u);let d=$c(o);d&&typeof i==`string`&&(i=i.split(`#`,1)[0]+`#`+d);let f=o.get(`NewWindow`);typeof f==`boolean`&&(t.newWindow=f);break;case`GoToE`:let p=o.get(`T`),h;if(r&&p instanceof L){let e=p.get(`R`),t=p.get(`N`);ge(e,`C`)&&typeof t==`string`&&(h=r[P(t,!0)])}if(h){t.attachment=h;let e=$c(o);e&&(t.attachmentDest=e)}else m(`parseDestDictionary - unimplemented "GoToE" action.`);break;case`Named`:let g=o.get(`N`);g instanceof I&&(t.action=g.name);break;case`SetOCGState`:let _=o.get(`State`),v=o.get(`PreserveRB`);if(!Array.isArray(_)||_.length===0)break;let y=[];for(let e of _)if(e instanceof I)switch(e.name){case`ON`:case`OFF`:case`Toggle`:y.push(e.name)}else e instanceof R&&y.push(e.toString());if(y.length!==_.length)break;t.setOCGState={state:y,preserveRB:typeof v!=`boolean`||v};break;case`JavaScript`:let b=o.get(`JS`),x;b instanceof be?x=b.getString():typeof b==`string`&&(x=b);let S=x&&nt(P(x,!0));if(S){i=S.url,t.newWindow=S.newWindow;break}default:if(n===`JavaScript`||n===`SubmitForm`)break;m(`parseDestDictionary - unsupported action: "${n}".`)}}else e.has(`Dest`)&&(a=e.get(`Dest`));if(typeof i==`string`){let e=_(i,n,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(t.url=e.href),t.unsafeUrl=i}a&&(a instanceof I&&(a=a.name),typeof a==`string`?t.dest=P(a,!0):Zc(a)&&(t.dest=a))}};function tl(e){return e instanceof R||e instanceof L||e instanceof be||Array.isArray(e)}function nl(e,t){if(e instanceof L)e=e.getRawValues();else if(e instanceof be)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(let n of e)tl(n)&&t.push(n)}var rl=class e{refSet=new me;constructor(e,t,n){this.dict=e,this.keys=t,this.xref=n}async load(){let{keys:e,dict:t}=this,n=[];for(let r of e){let e=t.getRaw(r);e!==void 0&&n.push(e)}await this.#e(n),this.refSet=null}async#e(e){let t=[],n=[];for(;e.length;){let r=e.pop();if(r instanceof R){if(this.refSet.has(r))continue;try{this.refSet.put(r),r=this.xref.fetch(r)}catch(e){if(!(e instanceof De))return m(`ObjectLoader.#walk - requesting all data: "${e}".`),void await this.xref.stream.manager.requestAllChunks();t.push(r),n.push({begin:e.begin,end:e.end})}}if(r instanceof be){let e=r.getBaseStreams();if(e){let i=!1;for(let t of e)t.isDataLoaded||(i=!0,n.push({begin:t.start,end:t.end}));i&&t.push(r)}}nl(r,e)}if(n.length){await this.xref.stream.manager.requestRanges(n);for(let e of t)e instanceof R&&this.refSet.remove(e);await this.#e(t)}}static async load(t,n,r){r.stream.isDataLoaded||await new e(t,n,r).load()}};const il=Symbol(),al=Symbol(),ol=Symbol(),sl=Symbol(),cl=Symbol(),ll=Symbol(),ul=Symbol(),dl=Symbol(),fl=Symbol(),z=Symbol(`content`),pl=Symbol(`data`),ml=Symbol(),B=Symbol(`extra`),hl=Symbol(),gl=Symbol(),_l=Symbol(),vl=Symbol(),yl=Symbol(),bl=Symbol(),xl=Symbol(),Sl=Symbol(),Cl=Symbol(),wl=Symbol(),Tl=Symbol(),El=Symbol(),Dl=Symbol(),Ol=Symbol(),kl=Symbol(),Al=Symbol(),jl=Symbol(),Ml=Symbol(),Nl=Symbol(),Pl=Symbol(),Fl=Symbol(),Il=Symbol(),Ll=Symbol(),Rl=Symbol(),zl=Symbol(),Bl=Symbol(),Vl=Symbol(),Hl=Symbol(),Ul=Symbol(),Wl=Symbol(),Gl=Symbol(),Kl=Symbol(),ql=Symbol(`namespaceId`),Jl=Symbol(`nodeName`),Yl=Symbol(),Xl=Symbol(),Zl=Symbol(),Ql=Symbol(),$l=Symbol(),eu=Symbol(),tu=Symbol(),nu=Symbol(),ru=Symbol(`root`),iu=Symbol(),au=Symbol(),ou=Symbol(),su=Symbol(),cu=Symbol(),lu=Symbol(),uu=Symbol(),du=Symbol(),V=Symbol(),fu=Symbol(),pu=Symbol(),mu=Symbol(`uid`),hu=Symbol(),gu={config:{id:0,check:e=>e.startsWith(`http://www.xfa.org/schema/xci/`)},connectionSet:{id:1,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-connection-set/`)},datasets:{id:2,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-data/`)},form:{id:3,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-form/`)},localeSet:{id:4,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-locale-set/`)},pdf:{id:5,check:e=>e===`http://ns.adobe.com/xdp/pdf/`},signature:{id:6,check:e=>e===`http://www.w3.org/2000/09/xmldsig#`},sourceSet:{id:7,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-source-set/`)},stylesheet:{id:8,check:e=>e===`http://www.w3.org/1999/XSL/Transform`},template:{id:9,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-template/`)},xdc:{id:10,check:e=>e.startsWith(`http://www.xfa.org/schema/xdc/`)},xdp:{id:11,check:e=>e===`http://ns.adobe.com/xdp/`},xfdf:{id:12,check:e=>e===`http://ns.adobe.com/xfdf/`},xhtml:{id:13,check:e=>e===`http://www.w3.org/1999/xhtml`},xmpmeta:{id:14,check:e=>e===`http://ns.adobe.com/xmpmeta/`}},_u={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},vu=/([+-]?\d+\.?\d*)(.*)/;function yu(e){return e.startsWith(`'`)||e.startsWith(`"`)?e.slice(1,-1):e}function H({data:e,defaultValue:t,validate:n}){if(!e)return t;e=e.trim();let r=parseInt(e,10);return!isNaN(r)&&n(r)?r:t}function bu({data:e,defaultValue:t,validate:n}){if(!e)return t;e=e.trim();let r=parseFloat(e);return!isNaN(r)&&n(r)?r:t}function xu({data:e,defaultValue:t,validate:n}){return e&&n(e=e.trim())?e:t}function U(e,t){return xu({data:e,defaultValue:t[0],validate:e=>t.includes(e)})}function W(e,t=`0`){if(t||=`0`,!e)return W(t);let n=e.trim().match(vu);if(!n)return W(t);let[,r,i]=n,a=parseFloat(r);if(isNaN(a))return W(t);if(a===0)return 0;let o=_u[i];return o?o(a):a}function Su(e){if(!e)return{num:1,den:1};let t=e.split(`:`,2).map(e=>parseFloat(e.trim())).filter(e=>!isNaN(e));if(t.length===1&&t.push(1),t.length===0)return{num:1,den:1};let[n,r]=t;return{num:n,den:r}}function Cu(e){return e?e.trim().split(/\s+/).map(e=>({excluded:e[0]===`-`,viewname:e.substring(1)})):[]}var G=class e{static get FAILURE(){return v(this,`FAILURE`,new e(!1,null,null,null))}static get EMPTY(){return v(this,`EMPTY`,new e(!0,null,null,null))}constructor(e,t,n,r){this.success=e,this.html=t,this.bbox=n,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(t){return new e(!1,null,null,t)}static success(t,n=null){return new e(!0,t,n,null)}},wu=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e,t=null){for(let t of e)this.addPdfFont(t);for(let e of this.fonts.values())e.regular||=e.italic||e.bold||e.bolditalic;if(!t||t.size===0)return;let n=this.fonts.get(`PdfJS-Fallback-PdfJS-XFA`);for(let e of t)this.fonts.set(e,n)}addPdfFont(e){let t=e.cssFontInfo,n=t.fontFamily,r=this.fonts.get(n);r||(r=Object.create(null),this.fonts.set(n,r),this.defaultFont||=r);let i=``,a=parseFloat(t.fontWeight);parseFloat(t.italicAngle)===0?a>=700&&(i=`bold`):i=a>=700?`bolditalic`:`italic`,i||((e.name.includes(`Bold`)||e.psName?.includes(`Bold`))&&(i=`bold`),(e.name.includes(`Italic`)||e.name.endsWith(`It`)||e.psName?.includes(`Italic`)||e.psName?.endsWith(`It`))&&(i+=`italic`)),i||=`regular`,r[i]=e}getDefault(){return this.defaultFont}find(e,t=!0){let n=this.fonts.get(e)||this.cache.get(e);if(n)return n;let r=/,|-|_| |bolditalic|bold|italic|regular|it/gi,i=e.replaceAll(r,``);if(n=this.fonts.get(i),n)return this.cache.set(e,n),n;i=i.toLowerCase();let a=[];for(let[e,t]of this.fonts.entries())e.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(t);if(a.length===0)for(let[,e]of this.fonts.entries())e.regular.name?.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(e);if(a.length===0){i=i.replaceAll(/psmt|mt/gi,``);for(let[e,t]of this.fonts.entries())e.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(t)}if(a.length===0)for(let e of this.fonts.values())e.regular.name?.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(e);return a.length>=1?(a.length!==1&&t&&m(`XFA - Too many choices to guess the correct font: ${e}`),this.cache.set(e,a[0]),a[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),m(`XFA - Cannot find the font: ${e}`)),null)}};function Tu(e,t){return e.posture===`italic`?e.weight===`bold`?t.bolditalic:t.italic:e.weight===`bold`?t.bold:t.regular}var Eu=class{constructor(e,t,n,r){if(this.lineHeight=n,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e)return void([this.pdfFont,this.xfaFont]=this.defaultFont(r));this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};let i=r.find(e.typeface);i?(this.pdfFont=Tu(e,i),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(r))):[this.pdfFont,this.xfaFont]=this.defaultFont(r)}defaultFont(e){let t=e.find(`Helvetica`,!1)||e.find(`Myriad Pro`,!1)||e.find(`Arial`,!1)||e.getDefault();if(t?.regular){let e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:`normal`,weight:`normal`,size:10,letterSpacing:0}]}return[null,{typeface:`Courier`,posture:`normal`,weight:`normal`,size:10,letterSpacing:0}]}},Du=class{constructor(e,t,n,r){this.fontFinder=r,this.stack=[new Eu(e,t,n,r)]}pushData(e,t,n){let r=this.stack.at(-1);for(let t of[`typeface`,`posture`,`weight`,`size`,`letterSpacing`])e[t]||(e[t]=r.xfaFont[t]);for(let e of[`top`,`bottom`,`left`,`right`])isNaN(t[e])&&(t[e]=r.paraMargin[e]);let i=new Eu(e,t,n||r.lineHeight,this.fontFinder);i.pdfFont||=r.pdfFont,this.stack.push(i)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}},Ou=class{constructor(e,t,n,r){this.glyphs=[],this.fontSelector=new Du(e,t,n,r),this.extraHeight=0}pushData(e,t,n){this.fontSelector.pushData(e,t,n)}popFont(e){return this.fontSelector.popFont()}addPara(){let e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;let t=this.fontSelector.topFont(),n=t.xfaFont.size;if(t.pdfFont){let r=t.xfaFont.letterSpacing,i=t.pdfFont,a=i.lineHeight||1.2,o=t.lineHeight||Math.max(1.2,a)*n,s=a-(i.lineGap===void 0?.2:i.lineGap),c=Math.max(1,s)*n,l=n/1e3,u=i.defaultWidth||i.charsToGlyphs(` `)[0].width;for(let t of e.split(/[\u2029\n]/)){let e=i.encodeString(t).join(``),n=i.charsToGlyphs(e);for(let e of n){let t=e.width||u;this.glyphs.push([t*l+r,o,c,e.unicode,!1])}this.glyphs.push([0,0,0,`
|
|
8
|
+
`||n===`\r`||n===` `}var Uc=class{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,(e,t)=>{if(t.substring(0,2)===`#x`)return String.fromCodePoint(parseInt(t.substring(2),16));if(t.substring(0,1)===`#`)return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case`lt`:return`<`;case`gt`:return`>`;case`amp`:return`&`;case`quot`:return`"`;case`apos`:return`'`}return this.onResolveEntity(t)})}_parseContent(e,t){let n=[],r=t;function i(){for(;r<e.length&&Hc(e,r);)++r}for(;r<e.length&&!Hc(e,r)&&e[r]!==`>`&&e[r]!==`/`;)++r;let a=e.substring(t,r);for(i();r<e.length&&e[r]!==`>`&&e[r]!==`/`&&e[r]!==`?`;){i();let t=``,a=``;for(;r<e.length&&!Hc(e,r)&&e[r]!==`=`;)t+=e[r],++r;if(i(),e[r]!==`=`)return null;++r,i();let o=e[r];if(o!==`"`&&o!==`'`)return null;let s=e.indexOf(o,++r);if(s<0)return null;a=e.substring(r,s),n.push({name:t,value:this._resolveEntities(a)}),r=s+1,i()}return{name:a,attributes:n,parsed:r-t}}_parseProcessingInstruction(e,t){let n=t;for(;n<e.length&&!Hc(e,n)&&e[n]!==`>`&&e[n]!==`?`&&e[n]!==`/`;)++n;let r=e.substring(t,n);(function(){for(;n<e.length&&Hc(e,n);)++n})();let i=n;for(;n<e.length&&(e[n]!==`?`||e[n+1]!==`>`);)++n;return{name:r,value:e.substring(i,n),parsed:n-t}}parseXml(e){let t=0;for(;t<e.length;){let n=t;if(e[t]===`<`){++n;let t;switch(e[n]){case`/`:if(++n,t=e.indexOf(`>`,n),t<0)return void this.onError(-9);this.onEndElement(e.substring(n,t)),n=t+1;break;case`?`:++n;let r=this._parseProcessingInstruction(e,n);if(e.substring(n+r.parsed,n+r.parsed+2)!==`?>`)return void this.onError(-3);this.onPi(r.name,r.value),n+=r.parsed+2;break;case`!`:if(e.substring(n+1,n+3)===`--`){if(t=e.indexOf(`-->`,n+3),t<0)return void this.onError(-5);this.onComment(e.substring(n+3,t)),n=t+3}else if(e.substring(n+1,n+8)===`[CDATA[`){if(t=e.indexOf(`]]>`,n+8),t<0)return void this.onError(-2);this.onCdata(e.substring(n+8,t)),n=t+3}else{if(e.substring(n+1,n+8)!==`DOCTYPE`)return void this.onError(-6);{let r=e.indexOf(`[`,n+8),i=!1;if(t=e.indexOf(`>`,n+8),t<0)return void this.onError(-4);if(r>0&&t>r){if(t=e.indexOf(`]>`,n+8),t<0)return void this.onError(-4);i=!0}let a=e.substring(n+8,t+ +!!i);this.onDoctype(a),n=t+(i?2:1)}}break;default:let i=this._parseContent(e,n);if(i===null)return void this.onError(-6);let a=!1;if(e.substring(n+i.parsed,n+i.parsed+2)===`/>`)a=!0;else if(e.substring(n+i.parsed,n+i.parsed+1)!==`>`)return void this.onError(-9);this.onBeginElement(i.name,i.attributes,a),n+=i.parsed+(a?2:1)}}else{for(;n<e.length&&e[n]!==`<`;)n++;let r=e.substring(t,n);this.onText(this._resolveEntities(r))}t=n}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,n){}onEndElement(e){}onError(e){}},Wc=class{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let e=this.parentNode.childNodes;if(!e)return;let t=e.indexOf(this);return t===-1?void 0:e[t+1]}get textContent(){return this.childNodes?this.childNodes.map(e=>e.textContent).join(``):this.nodeValue||``}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(e,t){if(t>=e.length)return this;let n=e[t];if(n.name.startsWith(`#`)&&t<e.length-1)return this.searchNode(e,t+1);let r=[],i=this;for(;;){if(n.name===i.nodeName){if(n.pos!==0){if(r.length===0)return null;{let[a]=r.pop(),o=0;for(let r of a.childNodes)if(n.name===r.nodeName){if(o===n.pos)return r.searchNode(e,t+1);o++}return i.searchNode(e,t+1)}}{let n=i.searchNode(e,t+1);if(n!==null)return n}}if(i.childNodes?.length>0)r.push([i,0]),i=i.childNodes[0];else{if(r.length===0)return null;for(;r.length!==0;){let[e,t]=r.pop(),n=t+1;if(n<e.childNodes.length){r.push([e,n]),i=e.childNodes[n];break}}if(r.length===0)return null}}}dump(e){if(this.nodeName!==`#text`){if(e.push(`<${this.nodeName}`),this.attributes)for(let t of this.attributes)e.push(` ${t.name}="${$e(t.value)}"`);if(this.hasChildNodes()){e.push(`>`);for(let t of this.childNodes)t.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${$e(this.nodeValue)}</${this.nodeName}>`):e.push(`/>`)}else e.push($e(this.nodeValue))}},Gc=class extends Uc{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=0,this._hasAttributes=e,this._lowerCaseName=t}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),this._errorCode!==0)return;let[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function(e){for(let t=0,n=e.length;t<n;t++)if(!Hc(e,t))return!1;return!0}(e))return;let t=new Wc(`#text`,e);this._currentFragment.push(t)}onCdata(e){let t=new Wc(`#text`,e);this._currentFragment.push(t)}onBeginElement(e,t,n){this._lowerCaseName&&(e=e.toLowerCase());let r=new Wc(e);r.childNodes=[],this._hasAttributes&&(r.attributes=t),this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];let t=this._currentFragment.at(-1);if(!t)return null;for(let e of t.childNodes)e.parentNode=t;return t}onError(e){this._errorCode=e}},Kc=class{constructor(e){e=this._repair(e);let t=new Gc({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,``).replaceAll(/>\\376\\377([^<]+)/g,function(e,t){let n=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case`amp`:return`&`;case`apos`:return`'`;case`gt`:return`>`;case`lt`:return`<`;case`quot`:return`"`}throw Error(`_repair: ${t} isn't defined.`)}),r=[`>`];for(let e=0,t=n.length;e<t;e+=2){let t=256*n.charCodeAt(e)+n.charCodeAt(e+1);t>=32&&t<127&&t!==60&&t!==62&&t!==38?r.push(String.fromCharCode(t)):r.push(`&#x`+(65536+t).toString(16).substring(1)+`;`)}return r.join(``)})}_getSequence(e){let t=e.nodeName;return t!==`rdf:bag`&&t!==`rdf:seq`&&t!==`rdf:alt`?null:e.childNodes.filter(e=>e.nodeName===`rdf:li`)}_parseArray(e){if(!e.hasChildNodes())return;let[t]=e.childNodes,n=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,n.map(e=>e.textContent.trim()))}_parse(e){let t=e.documentElement;if(t.nodeName!==`rdf:rdf`)for(t=t.firstChild;t&&t.nodeName!==`rdf:rdf`;)t=t.nextSibling;if(t&&t.nodeName===`rdf:rdf`&&t.hasChildNodes()){for(let e of t.childNodes)if(e.nodeName===`rdf:description`)for(let t of e.childNodes){let e=t.nodeName;switch(e){case`#text`:continue;case`dc:creator`:case`dc:subject`:this._parseArray(t);continue}this._metadataMap.set(e,t.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}},qc=class e{constructor(e,t,n){this.xref=e,this.dict=t,this.ref=n instanceof R?n:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}#e(e,t,n){if(!(e instanceof R)||t<0)return;this.structParentIds||=new he;let r=this.structParentIds.get(e);r||(r=[],this.structParentIds.put(e,r)),r.push([t,n])}addAnnotationIdToPage(e,t){this.#e(e,t,4)}readRoleMap(){let e=this.dict.get(`RoleMap`);if(e instanceof L)for(let[t,n]of e)n instanceof I&&this.roleMap.set(t,n.name)}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:n}){if(!(e instanceof R))return m(`Cannot save the struct tree: no catalog reference.`),!1;let r=0,i=!0;for(let[e,a]of n){let{ref:n}=await t.getPage(e);if(!(n instanceof R)){m(`Cannot save the struct tree: page ${e} has no ref.`),i=!0;break}for(let e of a)e.accessibilityData?.type&&(e.parentTreeId=r++,i=!1)}if(i){for(let e of n.values())for(let t of e)delete t.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:t,catalogRef:n,pdfManager:r,changes:i}){let a=await r.ensureCatalog(`cloneDict`),o=new he;o.put(n,a);let s=t.getNewTemporaryRef();a.set(`StructTreeRoot`,s);let c=new L(t);c.set(`Type`,I.get(`StructTreeRoot`));let l=t.getNewTemporaryRef();c.set(`ParentTree`,l);let u=[];c.set(`K`,u),o.put(s,c);let d=new L(t),f=[];d.set(`Nums`,f);let p=await this.#t({newAnnotationsByPage:e,structTreeRootRef:s,structTreeRoot:null,kids:u,nums:f,xref:t,pdfManager:r,changes:i,cache:o});c.set(`ParentTreeNextKey`,p),o.put(l,d);for(let[e,t]of o.items())i.put(e,{data:t})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:n}){if(!this.ref)return m(`Cannot update the struct tree: no root reference.`),!1;let r=this.dict.get(`ParentTreeNextKey`);if(!Number.isInteger(r)||r<0)return m(`Cannot update the struct tree: invalid next key.`),!1;let i=this.dict.get(`ParentTree`);if(!(i instanceof L))return m(`Cannot update the struct tree: ParentTree isn't a dict.`),!1;let a=i.get(`Nums`);if(!Array.isArray(a))return m(`Cannot update the struct tree: nums isn't an array.`),!1;let o=new Rc(i,this.xref);for(let e of n.keys()){let{pageDict:n}=await t.getPage(e);if(!n.has(`StructParents`))continue;let r=n.get(`StructParents`);if(!Number.isInteger(r)||!Array.isArray(o.get(r)))return m(`Cannot save the struct tree: page ${e} has a wrong id.`),!1}let s=!0;for(let[i,a]of n){let{pageDict:n}=await t.getPage(i);e.#r({elements:a,xref:this.xref,pageDict:n,numberTree:o});for(let e of a)e.accessibilityData?.type&&(e.accessibilityData.structParent>=0||(e.parentTreeId=r++),s=!1)}if(s){for(let e of n.values())for(let t of e)delete t.parentTreeId,delete t.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:n,changes:r}){let{ref:i,xref:a}=this,o=this.dict.clone(),s=new he;s.put(i,o);let c,l=o.getRaw(`ParentTree`);l instanceof R?c=a.fetch(l):(c=l,l=a.getNewTemporaryRef(),o.set(`ParentTree`,l)),c=c.clone(),s.put(l,c);let u=c.getRaw(`Nums`),d=null;u instanceof R&&(d=u,u=a.fetch(d)),u=u.slice(),d||c.set(`Nums`,u);let f=await e.#t({newAnnotationsByPage:t,structTreeRootRef:i,structTreeRoot:this,kids:null,nums:u,xref:a,pdfManager:n,changes:r,cache:s});if(f!==-1){o.set(`ParentTreeNextKey`,f),d&&s.put(d,u);for(let[e,t]of s.items())r.put(e,{data:t})}}static async#t({newAnnotationsByPage:t,structTreeRootRef:n,structTreeRoot:r,kids:i,nums:a,xref:o,pdfManager:s,changes:c,cache:l}){let u=I.get(`OBJR`),d,f=-1;for(let[p,m]of t){let t=await s.getPage(p),{ref:h}=t,g=h instanceof R;for(let{accessibilityData:s,ref:_,parentTreeId:v,structTreeParent:y}of m){if(!s?.type)continue;let{structParent:m}=s;if(r&&Number.isInteger(m)&&m>=0){let n=(d||=new Map).get(p);n===void 0&&(n=new Xc(r,t.pageDict).collectObjects(h),d.set(p,n));let i=n?.get(m);if(i){let t=o.fetch(i).clone();e.#n(t,s),c.put(i,{data:t});continue}}f=Math.max(f,v);let b=o.getNewTemporaryRef(),x=new L(o);e.#n(x,s),await this.#i({structTreeParent:y,tagDict:x,newTagRef:b,structTreeRootRef:n,fallbackKids:i,xref:o,cache:l});let S=new L(o);x.set(`K`,S),S.set(`Type`,u),g&&S.set(`Pg`,h),S.set(`Obj`,_),l.put(b,x),a.push(v,b)}}return f+1}static#n(e,{type:t,title:n,lang:r,alt:i,expanded:a,actualText:o}){e.set(`S`,I.get(t)),n&&e.set(`T`,at(n)),r&&e.set(`Lang`,at(r)),i&&e.set(`Alt`,at(i)),a&&e.set(`E`,at(a)),o&&e.set(`ActualText`,at(o))}static#r({elements:e,xref:t,pageDict:n,numberTree:r}){let i=new Map;for(let t of e)if(t.structTreeParentId){let e=parseInt(t.structTreeParentId.split(`_mc`)[1],10),n=i.get(e);n||(n=[],i.set(e,n)),n.push(t)}let a=n.get(`StructParents`);if(!Number.isInteger(a))return;let o=r.get(a),s=(e,n,r)=>{let a=i.get(e);if(a){let e=n.getRaw(`P`),i=t.fetchIfRef(e);if(e instanceof R&&i instanceof L){let e={ref:r,dict:n};for(let t of a)t.structTreeParent=e}return!0}return!1};for(let e of o){if(!(e instanceof R))continue;let n=t.fetch(e),r=n.get(`K`);if(Number.isInteger(r))s(r,n,e);else if(Array.isArray(r))for(let i of r){if(i=t.fetchIfRef(i),Number.isInteger(i)&&s(i,n,e))break;if(!(i instanceof L))continue;if(!ge(i.get(`Type`),`MCR`))break;let r=i.get(`MCID`);if(Number.isInteger(r)&&s(r,n,e))break}}}static async#i({structTreeParent:e,tagDict:t,newTagRef:n,structTreeRootRef:r,fallbackKids:i,xref:a,cache:o}){let s,c=null;e?({ref:c}=e,s=e.dict.getRaw(`P`)||r):s=r,t.set(`P`,s);let l=a.fetchIfRef(s);if(!l)return void i.push(n);let u=o.get(s);u||(u=l.clone(),o.put(s,u));let d=u.getRaw(`K`),f=d instanceof R?o.get(d):null;if(!f){f=a.fetchIfRef(d),f=Array.isArray(f)?f.slice():[d];let e=a.getNewTemporaryRef();u.set(`K`,e),o.put(e,f)}let p=f.indexOf(c);f.splice(p>=0?p+1:f.length,0,n)}},Jc=class{constructor(e,t){this.tree=e,this.xref=e.xref,this.dict=t,this.kids=[],this.parseKids()}get role(){let e=this.dict.get(`S`),t=e instanceof I?e.name:``,{root:n}=this.tree;return n.roleMap.get(t)??t}parseKids(){let e=null,t=this.dict.getRaw(`Pg`);t instanceof R&&(e=t.toString());let n=this.dict.get(`K`);if(Array.isArray(n))for(let t of n){let n=this.parseKid(e,this.xref.fetchIfRef(t));n&&this.kids.push(n)}else{let t=this.parseKid(e,n);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId===e?new Yc({type:1,mcid:t,pageObjId:e}):null;if(!(t instanceof L))return null;let n=t.getRaw(`Pg`);n instanceof R&&(e=n.toString());let r=t.get(`Type`)instanceof I?t.get(`Type`).name:null;if(r===`MCR`){if(this.tree.pageDict.objId!==e)return null;let n=t.getRaw(`Stm`);return new Yc({type:2,refObjId:n instanceof R?n.toString():null,pageObjId:e,mcid:t.get(`MCID`)})}if(r===`OBJR`){if(this.tree.pageDict.objId!==e)return null;let n=t.getRaw(`Obj`);return new Yc({type:3,refObjId:n instanceof R?n.toString():null,pageObjId:e})}return new Yc({type:5,dict:t})}},Yc=class{constructor({type:e,dict:t=null,mcid:n=null,pageObjId:r=null,refObjId:i=null}){this.type=e,this.dict=t,this.mcid=n,this.pageObjId=r,this.refObjId=i,this.parentNode=null}},Xc=class{constructor(e,t){this.root=e,this.xref=e?.xref??null,this.rootDict=e?.dict??null,this.pageDict=t,this.nodes=[]}collectObjects(e){if(!(this.root&&this.rootDict&&e instanceof R))return null;let t=this.rootDict.get(`ParentTree`);if(!t)return null;let n=this.root.structParentIds?.get(e);if(!n)return null;let r=new Map,i=new Rc(t,this.xref);for(let[e]of n){let t=i.getRaw(e);t instanceof R&&r.set(e,t)}return r}parse(e){if(!(this.root&&this.rootDict&&e instanceof R))return;let t=this.rootDict.get(`ParentTree`);if(!t)return;let n=this.pageDict.get(`StructParents`),r=this.root.structParentIds?.get(e);if(!Number.isInteger(n)&&!r)return;let i=new Map,a=new Rc(t,this.xref);if(Number.isInteger(n)){let e=a.get(n);if(Array.isArray(e))for(let t of e)t instanceof R&&this.addNode(this.xref.fetch(t),i)}if(r)for(let[e,t]of r){let n=a.get(e);if(n){let e=this.addNode(this.xref.fetchIfRef(n),i);e?.kids?.length===1&&e.kids[0].type===3&&(e.kids[0].type=t)}}}addNode(e,t,n=0){if(n>40)return m(`StructTree MAX_DEPTH reached.`),null;if(!(e instanceof L))return null;if(t.has(e))return t.get(e);let r=new Jc(this,e);t.set(e,r);let i=e.get(`P`);if(!(i instanceof L)||ge(i.get(`Type`),`StructTreeRoot`))return this.addTopLevelNode(e,r)||t.delete(e),r;let a=this.addNode(i,t,n+1);if(!a)return r;let o=!1;for(let t of a.kids)t.type===5&&t.dict===e&&(t.parentNode=r,o=!0);return o||t.delete(e),r}addTopLevelNode(e,t){let n=this.rootDict.get(`K`);if(!n)return!1;if(n instanceof L)return n.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(n))return!0;let r=!1;for(let i=0;i<n.length;i++)n[i]?.toString()===e.objId&&(this.nodes[i]=t,r=!0);return r}get serializable(){function e(t,n,r=0){if(r>40)return void m(`StructTree too deep to be fully serialized.`);let i=Object.create(null);i.role=t.role,i.children=[],n.children.push(i);let a=t.dict.get(`Alt`);typeof a!=`string`&&(a=t.dict.get(`ActualText`)),typeof a==`string`&&(i.alt=P(a));let o=t.dict.get(`A`);if(o instanceof L){let e=Ge(o.getArray(`BBox`),null);if(e)i.bbox=e;else{let e=o.get(`Width`),t=o.get(`Height`);typeof e==`number`&&e>0&&typeof t==`number`&&t>0&&(i.bbox=[0,0,e,t])}}let s=t.dict.get(`Lang`);typeof s==`string`&&(i.lang=P(s));for(let n of t.kids){let t=n.type===5?n.parentNode:null;t?e(t,i,r+1):n.type===1||n.type===2?i.children.push({type:`content`,id:`p${n.pageObjId}_mc${n.mcid}`}):n.type===3?i.children.push({type:`object`,id:n.refObjId}):n.type===4&&i.children.push({type:`annotation`,id:`pdfjs_internal_id_${n.refObjId}`})}}let t=Object.create(null);t.children=[],t.role=`Root`;for(let n of this.nodes)n&&e(n,t);return t}};const Zc=function(e,t,n){if(!Array.isArray(n)||n.length<2)return!1;let[r,i,...a]=n;if(!e(r)&&!Number.isInteger(r)||!t(i))return!1;let o=a.length,s=!0;switch(i.name){case`XYZ`:if(o<2||o>3)return!1;break;case`Fit`:case`FitB`:return o===0;case`FitH`:case`FitBH`:case`FitV`:case`FitBV`:if(o>1)return!1;break;case`FitR`:if(o!==4)return!1;s=!1;break;default:return!1}for(let e of a)if(!(typeof e==`number`||s&&e===null))return!1;return!0}.bind(null,e=>e instanceof R,ge);function Qc(e){return e instanceof L&&(e=e.get(`D`)),Zc(e)?e:null}function $c(e){let t=e.get(`D`);if(t){if(t instanceof I&&(t=t.name),typeof t==`string`)return P(t,!0);if(Zc(t))return JSON.stringify(t)}return null}var el=class e{#e=null;#t=null;builtInCMapCache=new Map;fontCache=new he;globalColorSpaceCache=new Cs;globalImageCache=new ws;nonBlendModesSet=new me;pageDictCache=new he;pageIndexCache=new he;pageKidsCountCache=new he;standardFontDataCache=new Map;systemFontCache=new Map;constructor(e,t){if(this.pdfManager=e,this.xref=t,this.#t=t.getCatalogObj(),!(this.#t instanceof L))throw new w(`Catalog object is not a dictionary.`);this.toplevelPagesDict}cloneDict(){return this.#t.clone()}get version(){let e=this.#t.get(`Version`);if(e instanceof I){if(xe.test(e.name))return v(this,`version`,e.name);m(`Invalid PDF catalog version: ${e.name}`)}return v(this,`version`,null)}get lang(){let e=this.#t.get(`Lang`);return v(this,`lang`,e&&typeof e==`string`?P(e):null)}get needsRendering(){let e=this.#t.get(`NeedsRendering`);return v(this,`needsRendering`,typeof e==`boolean`&&e)}get collection(){let e=null;try{let t=this.#t.get(`Collection`);t instanceof L&&t.size>0&&(e=t)}catch(e){if(e instanceof De)throw e;p(`Cannot fetch Collection entry; assuming no collection is present.`)}return v(this,`collection`,e)}get acroForm(){let e=null;try{let t=this.#t.get(`AcroForm`);t instanceof L&&t.size>0&&(e=t)}catch(e){if(e instanceof De)throw e;p(`Cannot fetch AcroForm entry; assuming no forms are present.`)}return v(this,`acroForm`,e)}get acroFormRef(){let e=this.#t.getRaw(`AcroForm`);return v(this,`acroFormRef`,e instanceof R?e:null)}get metadata(){let e=this.#t.getRaw(`Metadata`);if(!(e instanceof R))return v(this,`metadata`,null);let t=null;try{let n=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(n instanceof be&&n.dict instanceof L){let e=n.dict.get(`Type`),r=n.dict.get(`Subtype`);if(ge(e,`Metadata`)&&ge(r,`XML`)){let e=F(n.getString());e&&(t=new Kc(e).serializable)}}}catch(e){if(e instanceof De)throw e;p(`Skipping invalid Metadata: "${e}".`)}return v(this,`metadata`,t)}get markInfo(){let e=null;try{e=this.#n()}catch(e){if(e instanceof De)throw e;m(`Unable to read mark info.`)}return v(this,`markInfo`,e)}#n(){let e=this.#t.get(`MarkInfo`);if(!(e instanceof L))return null;let t={Marked:!1,UserProperties:!1,Suspects:!1};for(let n in t){let r=e.get(n);typeof r==`boolean`&&(t[n]=r)}return t}get structTreeRoot(){let e=null;try{e=this.#r()}catch(e){if(e instanceof De)throw e;m(`Unable read to structTreeRoot info.`)}return v(this,`structTreeRoot`,e)}#r(){let e=this.#t.getRaw(`StructTreeRoot`),t=this.xref.fetchIfRef(e);if(!(t instanceof L))return null;let n=new qc(this.xref,t,e);return n.init(),n}get toplevelPagesDict(){let e=this.#t.get(`Pages`);if(!(e instanceof L))throw new w(`Invalid top-level pages dictionary.`);return v(this,`toplevelPagesDict`,e)}get documentOutline(){let e=null;try{e=this.#i()}catch(e){if(e instanceof De)throw e;m(`Unable to read document outline.`)}return v(this,`documentOutline`,e)}#i(){let t=this.#t.get(`Outlines`);if(!(t instanceof L)||(t=t.getRaw(`First`),!(t instanceof R)))return null;let n={items:[]},r=[{obj:t,parent:n}],i=new me;i.put(t);let a=this.xref,o=new Uint8ClampedArray(3);for(;r.length>0;){let n=r.shift(),s=a.fetchIfRef(n.obj);if(s===null)continue;s.has(`Title`)||m(`Invalid outline item encountered.`);let c={url:null,dest:null,action:null};e.parseDestDictionary({destDict:s,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let l=s.get(`Title`),u=s.get(`F`)||0,d=s.getArray(`C`),f=s.get(`Count`),p=o;!He(d,3)||d[0]===0&&d[1]===0&&d[2]===0||(p=Kt.rgb.getRgb(d,0));let h={action:c.action,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:typeof l==`string`?P(l):``,color:p,count:Number.isInteger(f)?f:void 0,bold:!!(2&u),italic:!!(1&u),items:[]};n.parent.items.push(h),t=s.getRaw(`First`),t instanceof R&&!i.has(t)&&(r.push({obj:t,parent:h}),i.put(t)),t=s.getRaw(`Next`),t instanceof R&&!i.has(t)&&(r.push({obj:t,parent:n.parent}),i.put(t))}return n.items.length>0?n.items:null}get permissions(){let e=null;try{e=this.#a()}catch(e){if(e instanceof De)throw e;m(`Unable to read permissions.`)}return v(this,`permissions`,e)}#a(){let e=this.xref.trailer.get(`Encrypt`);if(!(e instanceof L))return null;let t=e.get(`P`);if(typeof t!=`number`)return null;t+=2**32;let n=[];for(let e in o){let r=o[e];t&r&&n.push(r)}return n}get optionalContentConfig(){let e=null;try{let t=this.#t.get(`OCProperties`);if(!t)return v(this,`optionalContentConfig`,null);let n=t.get(`D`);if(!n)return v(this,`optionalContentConfig`,null);let r=t.get(`OCGs`);if(!Array.isArray(r))return v(this,`optionalContentConfig`,null);let i=new he;for(let e of r)e instanceof R&&!i.has(e)&&i.put(e,this.#o(e));e=this.#s(n,i)}catch(e){if(e instanceof De)throw e;m(`Unable to read optional content config: ${e}`)}return v(this,`optionalContentConfig`,e)}#o(e){let t=this.xref.fetch(e),n={id:e.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},r=t.get(`Name`);typeof r==`string`&&(n.name=P(r));let i=t.getArray(`Intent`);Array.isArray(i)||(i=[i]),i.every(e=>e instanceof I)&&(n.intent=i.map(e=>e.name));let a=t.get(`Usage`);if(!(a instanceof L))return n;let o=n.usage,s=a.get(`Print`);if(s instanceof L){let e=s.get(`PrintState`);if(e instanceof I)switch(e.name){case`ON`:case`OFF`:o.print={printState:e.name}}}let c=a.get(`View`);if(c instanceof L){let e=c.get(`ViewState`);if(e instanceof I)switch(e.name){case`ON`:case`OFF`:o.view={viewState:e.name}}}return n}#s(e,t){function n(e){let n=[];if(Array.isArray(e))for(let r of e)r instanceof R&&t.has(r)&&n.push(r.toString());return n}function r(e,n=0){if(!Array.isArray(e))return null;let r=[];for(let a of e){if(a instanceof R&&t.has(a)){o.put(a),r.push(a.toString());continue}let e=i(a,n);e&&r.push(e)}if(n>0)return r;let a=[];for(let[e]of t.items())o.has(e)||a.push(e.toString());return a.length&&r.push({name:null,order:a}),r}function i(e,t){if(++t>s)return m(`parseNestedOrder - reached MAX_NESTED_LEVELS.`),null;let n=a.fetchIfRef(e);if(!Array.isArray(n))return null;let i=a.fetchIfRef(n[0]);if(typeof i!=`string`)return null;let o=r(n.slice(1),t);return o?.length?{name:P(i),order:o}:null}let a=this.xref,o=new me,s=10;return function(e){if(Array.isArray(e))for(let n of e){let e=a.fetchIfRef(n);if(!Array.isArray(e)||!e.length)continue;let r=new Set;for(let n of e)n instanceof R&&t.has(n)&&!r.has(n.toString())&&(r.add(n.toString()),t.get(n).rbGroups.push(r))}}(e.get(`RBGroups`)),{name:typeof e.get(`Name`)==`string`?P(e.get(`Name`)):null,creator:typeof e.get(`Creator`)==`string`?P(e.get(`Creator`)):null,baseState:e.get(`BaseState`)instanceof I?e.get(`BaseState`).name:null,on:n(e.get(`ON`)),off:n(e.get(`OFF`)),order:r(e.get(`Order`)),groups:[...t]}}setActualNumPages(e=null){this.#e=e}get hasActualNumPages(){return this.#e!==null}get _pagesCount(){let e=this.toplevelPagesDict.get(`Count`);if(!Number.isInteger(e))throw new w(`Page count in top-level pages dictionary is not an integer.`);return v(this,`_pagesCount`,e)}get numPages(){return this.#e??this._pagesCount}get destinations(){let e=this.#c(),t=Object.create(null);for(let n of e)if(n instanceof Lc)for(let[e,r]of n.getAll()){let n=Qc(r);n&&(t[P(e,!0)]=n)}else if(n instanceof L)for(let[e,r]of n){let n=Qc(r);n&&(t[P(e,!0)]||=n)}return v(this,`destinations`,t)}getDestination(e){if(this.hasOwnProperty(`destinations`))return this.destinations[e]??null;let t=this.#c();for(let n of t)if(n instanceof Lc||n instanceof L){let t=Qc(n.get(e));if(t)return t}if(t.length){let t=this.destinations[e];if(t)return t}return null}#c(){let e=this.#t.get(`Names`),t=[];return e?.has(`Dests`)&&t.push(new Lc(e.getRaw(`Dests`),this.xref)),this.#t.has(`Dests`)&&t.push(this.#t.get(`Dests`)),t}get pageLabels(){let e=null;try{e=this.#l()}catch(e){if(e instanceof De)throw e;m(`Unable to read page labels.`)}return v(this,`pageLabels`,e)}#l(){let e=this.#t.getRaw(`PageLabels`);if(!e)return null;let t=Array(this.numPages),n=null,r=``,i=new Rc(e,this.xref).getAll(),a=``,o=1;for(let e=0,s=this.numPages;e<s;e++){let s=i.get(e);if(s!==void 0){if(!(s instanceof L))throw new w(`PageLabel is not a dictionary.`);if(s.has(`Type`)&&!ge(s.get(`Type`),`PageLabel`))throw new w(`Invalid type in PageLabel dictionary.`);if(s.has(`S`)){let e=s.get(`S`);if(!(e instanceof I))throw new w(`Invalid style in PageLabel dictionary.`);n=e.name}else n=null;if(s.has(`P`)){let e=s.get(`P`);if(typeof e!=`string`)throw new w(`Invalid prefix in PageLabel dictionary.`);r=P(e)}else r=``;if(s.has(`St`)){let e=s.get(`St`);if(!(Number.isInteger(e)&&e>=1))throw new w(`Invalid start in PageLabel dictionary.`);o=e}else o=1}switch(n){case`D`:a=o;break;case`R`:case`r`:a=Fe(o,n===`r`);break;case`A`:case`a`:let e=n===`a`?97:65,t=o-1;a=String.fromCharCode(e+t%26).repeat(Math.floor(t/26)+1);break;default:if(n)throw new w(`Invalid style "${n}" in PageLabel dictionary.`);a=``}t[e]=r+a,o++}return t}get pageLayout(){let e=this.#t.get(`PageLayout`),t=``;if(e instanceof I)switch(e.name){case`SinglePage`:case`OneColumn`:case`TwoColumnLeft`:case`TwoColumnRight`:case`TwoPageLeft`:case`TwoPageRight`:t=e.name}return v(this,`pageLayout`,t)}get pageMode(){let e=this.#t.get(`PageMode`),t=`UseNone`;if(e instanceof I)switch(e.name){case`UseNone`:case`UseOutlines`:case`UseThumbs`:case`FullScreen`:case`UseOC`:case`UseAttachments`:t=e.name}return v(this,`pageMode`,t)}get viewerPreferences(){let e=this.#t.get(`ViewerPreferences`);if(!(e instanceof L))return v(this,`viewerPreferences`,null);let t=null;for(let[n,r]of e){let e;switch(n){case`HideToolbar`:case`HideMenubar`:case`HideWindowUI`:case`FitWindow`:case`CenterWindow`:case`DisplayDocTitle`:case`PickTrayByPDFSize`:typeof r==`boolean`&&(e=r);break;case`NonFullScreenPageMode`:if(r instanceof I)switch(r.name){case`UseNone`:case`UseOutlines`:case`UseThumbs`:case`UseOC`:e=r.name;break;default:e=`UseNone`}break;case`Direction`:if(r instanceof I)switch(r.name){case`L2R`:case`R2L`:e=r.name;break;default:e=`L2R`}break;case`ViewArea`:case`ViewClip`:case`PrintArea`:case`PrintClip`:if(r instanceof I)switch(r.name){case`MediaBox`:case`CropBox`:case`BleedBox`:case`TrimBox`:case`ArtBox`:e=r.name;break;default:e=`CropBox`}break;case`PrintScaling`:if(r instanceof I)switch(r.name){case`None`:case`AppDefault`:e=r.name;break;default:e=`AppDefault`}break;case`Duplex`:if(r instanceof I)switch(r.name){case`Simplex`:case`DuplexFlipShortEdge`:case`DuplexFlipLongEdge`:e=r.name;break;default:e=`None`}break;case`PrintPageRange`:Array.isArray(r)&&r.length%2==0&&r.every((e,t,n)=>Number.isInteger(e)&&e>0&&(t===0||e>=n[t-1])&&e<=this.numPages)&&(e=r);break;case`NumCopies`:Number.isInteger(r)&&r>0&&(e=r);break;default:m(`Ignoring non-standard key in ViewerPreferences: ${n}.`);continue}e===void 0?m(`Bad value, for key "${n}", in ViewerPreferences: ${r}.`):(t??=Object.create(null),t[n]=e)}return v(this,`viewerPreferences`,t)}get openAction(){let t=this.#t.get(`OpenAction`),n=Object.create(null);if(t instanceof L){let r=new L(this.xref);r.set(`A`,t);let i={url:null,dest:null,action:null};e.parseDestDictionary({destDict:r,resultObj:i}),Array.isArray(i.dest)?n.dest=i.dest:i.action&&(n.action=i.action)}else Zc(t)&&(n.dest=t);return v(this,`openAction`,k(n)>0?n:null)}get attachments(){let e=this.#t.get(`Names`),t=null;if(e instanceof L&&e.has(`EmbeddedFiles`)){let n=new Lc(e.getRaw(`EmbeddedFiles`),this.xref);for(let[e,r]of n.getAll()){let n=new Vc(r,this.xref);t??=Object.create(null),t[P(e,!0)]=n.serializable}}return v(this,`attachments`,t)}get xfaImages(){let e=this.#t.get(`Names`),t=null;if(e instanceof L&&e.has(`XFAImages`)){let n=new Lc(e.getRaw(`XFAImages`),this.xref);for(let[e,r]of n.getAll())r instanceof be&&(t??=new Map,t.set(P(e,!0),r.getBytes()))}return v(this,`xfaImages`,t)}#u(){let e=this.#t.get(`Names`),t=null;function n(e,n){if(!(n instanceof L)||!ge(n.get(`S`),`JavaScript`))return;let r=n.get(`JS`);if(r instanceof be)r=r.getString();else if(typeof r!=`string`)return;r=P(r,!0).replaceAll(`\0`,``),r&&(t||=new Map).set(e,r)}if(e instanceof L&&e.has(`JavaScript`)){let t=new Lc(e.getRaw(`JavaScript`),this.xref);for(let[e,r]of t.getAll())n(P(e,!0),r)}let r=this.#t.get(`OpenAction`);return r&&n(`OpenAction`,r),t}get jsActions(){let e=this.#u(),t=Xe(this.xref,this.#t,u);if(e){t||=Object.create(null);for(let[n,r]of e)n in t?t[n].push(r):t[n]=[r]}return v(this,`jsActions`,t)}async cleanup(e=!1){zc(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear();for(let{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(e){let t=[this.toplevelPagesDict],n=new me,r=this.#t.getRaw(`Pages`);r instanceof R&&n.put(r);let i=this.xref,a=this.pageKidsCountCache,o=this.pageIndexCache,s=this.pageDictCache,c=0;for(;t.length;){let r=t.pop();if(r instanceof R){let l=a.get(r);if(l>=0&&c+l<=e){c+=l;continue}if(n.has(r))throw new w(`Pages tree contains circular reference.`);n.put(r);let u=await(s.get(r)||i.fetchAsync(r));if(u instanceof L){let t=u.getRaw(`Type`);if(t instanceof R&&(t=await i.fetchAsync(t)),ge(t,`Page`)||!u.has(`Kids`)){if(a.has(r)||a.put(r,1),o.has(r)||o.put(r,c),c===e)return[u,r];c++;continue}}t.push(u);continue}if(!(r instanceof L))throw new w(`Page dictionary kid reference points to wrong type of object.`);let{objId:l}=r,u=r.getRaw(`Count`);if(u instanceof R&&(u=await i.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(l&&!a.has(l)&&a.put(l,u),c+u<=e)){c+=u;continue}let d=r.getRaw(`Kids`);if(d instanceof R&&(d=await i.fetchAsync(d)),!Array.isArray(d)){let t=r.getRaw(`Type`);if(t instanceof R&&(t=await i.fetchAsync(t)),ge(t,`Page`)||!r.has(`Kids`)){if(c===e)return[r,null];c++;continue}throw new w(`Page dictionary kids object is not an array.`)}for(let e=d.length-1;e>=0;e--){let n=d[e];t.push(n),r===this.toplevelPagesDict&&n instanceof R&&!s.has(n)&&s.put(n,i.fetchAsync(n))}}throw Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){let{ignoreErrors:t}=this.pdfManager.evaluatorOptions,n=[{currentNode:this.toplevelPagesDict,posInKids:0}],r=new me,i=this.#t.getRaw(`Pages`);i instanceof R&&r.put(i);let a=new Map,o=this.xref,s=this.pageIndexCache,c=0;function l(e,t){t&&!s.has(t)&&s.put(t,c),a.set(c++,[e,t])}function u(n){if(n instanceof ke&&!e)throw n;e&&t&&c===0&&(m(`getAllPageDicts - Skipping invalid first page: "${n}".`),n=L.empty),a.set(c++,[n,null])}for(;n.length>0;){let e=n.at(-1),{currentNode:t,posInKids:i}=e,a=t.getRaw(`Kids`);if(a instanceof R)try{a=await o.fetchAsync(a)}catch(e){u(e);break}if(!Array.isArray(a)){u(new w(`Page dictionary kids object is not an array.`));break}if(i>=a.length){n.pop();continue}let s=a[i],c;if(s instanceof R){if(r.has(s)){u(new w(`Pages tree contains circular reference.`));break}r.put(s);try{c=await o.fetchAsync(s)}catch(e){u(e);break}}else c=s;if(!(c instanceof L)){u(new w(`Page dictionary kid reference points to wrong type of object.`));break}let d=c.getRaw(`Type`);if(d instanceof R)try{d=await o.fetchAsync(d)}catch(e){u(e);break}ge(d,`Page`)||!c.has(`Kids`)?l(c,s instanceof R?s:null):n.push({currentNode:c,posInKids:0}),e.posInKids++}return a}getPageIndex(e){let t=this.pageIndexCache.get(e);if(t!==void 0)return Promise.resolve(t);let n=this.xref,r=0,i=t=>function(t){let r,i=0;return n.fetchAsync(t).then(function(n){if(ye(t,e)&&!ve(n,`Page`)&&!(n instanceof L&&!n.has(`Type`)&&n.has(`Contents`)))throw new w(`The reference does not point to a /Page dictionary.`);if(!n)return null;if(!(n instanceof L))throw new w(`Node must be a dictionary.`);return r=n.getRaw(`Parent`),n.getAsync(`Parent`)}).then(function(e){if(!e)return null;if(!(e instanceof L))throw new w(`Parent must be a dictionary.`);return e.getAsync(`Kids`)}).then(function(e){if(!e)return null;let a=[],o=!1;for(let r of e){if(!(r instanceof R))throw new w(`Kid must be a reference.`);if(ye(r,t)){o=!0;break}a.push(n.fetchAsync(r).then(function(e){if(!(e instanceof L))throw new w(`Kid node must be a dictionary.`);e.has(`Count`)?i+=e.get(`Count`):i++}))}if(!o)throw new w(`Kid reference not found in parent's kids.`);return Promise.all(a).then(()=>[i,r])})}(t).then(t=>{if(!t)return this.pageIndexCache.put(e,r),r;let[n,a]=t;return r+=n,i(a)});return i(e)}get baseUrl(){let e=this.#t.get(`URI`);if(e instanceof L){let t=e.get(`Base`);if(typeof t==`string`){let e=_(t,null,{tryConvertEncoding:!0});if(e)return v(this,`baseUrl`,e.href)}}return v(this,`baseUrl`,this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:e,resultObj:t,docBaseUrl:n=null,docAttachments:r=null}){if(!(e instanceof L))return void m("parseDestDictionary: `destDict` must be a dictionary.");let i,a,o=e.get(`A`);if(o instanceof L||(e.has(`Dest`)?o=e.get(`Dest`):(o=e.get(`AA`),o instanceof L&&(o.has(`D`)?o=o.get(`D`):o.has(`U`)&&(o=o.get(`U`))))),o instanceof L){let e=o.get(`S`);if(!(e instanceof I))return void m(`parseDestDictionary: Invalid type in Action dictionary.`);let n=e.name;switch(n){case`ResetForm`:let e=o.get(`Flags`),s=!(1&(typeof e==`number`?e:0)),c=[],l=[];for(let e of o.get(`Fields`)||[])e instanceof R?l.push(e.toString()):typeof e==`string`&&c.push(P(e));t.resetForm={fields:c,refs:l,include:s};break;case`URI`:i=o.get(`URI`),i instanceof I&&(i=`/`+i.name);break;case`GoTo`:a=o.get(`D`);break;case`Launch`:case`GoToR`:let u=o.get(`F`);if(u instanceof L){let{rawFilename:e}=new Vc(u,null,!0).serializable;i=e}else typeof u==`string`&&(i=u);let d=$c(o);d&&typeof i==`string`&&(i=i.split(`#`,1)[0]+`#`+d);let f=o.get(`NewWindow`);typeof f==`boolean`&&(t.newWindow=f);break;case`GoToE`:let p=o.get(`T`),h;if(r&&p instanceof L){let e=p.get(`R`),t=p.get(`N`);ge(e,`C`)&&typeof t==`string`&&(h=r[P(t,!0)])}if(h){t.attachment=h;let e=$c(o);e&&(t.attachmentDest=e)}else m(`parseDestDictionary - unimplemented "GoToE" action.`);break;case`Named`:let g=o.get(`N`);g instanceof I&&(t.action=g.name);break;case`SetOCGState`:let _=o.get(`State`),v=o.get(`PreserveRB`);if(!Array.isArray(_)||_.length===0)break;let y=[];for(let e of _)if(e instanceof I)switch(e.name){case`ON`:case`OFF`:case`Toggle`:y.push(e.name)}else e instanceof R&&y.push(e.toString());if(y.length!==_.length)break;t.setOCGState={state:y,preserveRB:typeof v!=`boolean`||v};break;case`JavaScript`:let b=o.get(`JS`),x;b instanceof be?x=b.getString():typeof b==`string`&&(x=b);let S=x&&nt(P(x,!0));if(S){i=S.url,t.newWindow=S.newWindow;break}default:if(n===`JavaScript`||n===`SubmitForm`)break;m(`parseDestDictionary - unsupported action: "${n}".`)}}else e.has(`Dest`)&&(a=e.get(`Dest`));if(typeof i==`string`){let e=_(i,n,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(t.url=e.href),t.unsafeUrl=i}a&&(a instanceof I&&(a=a.name),typeof a==`string`?t.dest=P(a,!0):Zc(a)&&(t.dest=a))}};function tl(e){return e instanceof R||e instanceof L||e instanceof be||Array.isArray(e)}function nl(e,t){if(e instanceof L)e=e.getRawValues();else if(e instanceof be)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(let n of e)tl(n)&&t.push(n)}var rl=class e{refSet=new me;constructor(e,t,n){this.dict=e,this.keys=t,this.xref=n}async load(){let{keys:e,dict:t}=this,n=[];for(let r of e){let e=t.getRaw(r);e!==void 0&&n.push(e)}await this.#e(n),this.refSet=null}async#e(e){let t=[],n=[];for(;e.length;){let r=e.pop();if(r instanceof R){if(this.refSet.has(r))continue;try{this.refSet.put(r),r=this.xref.fetch(r)}catch(e){if(!(e instanceof De))return m(`ObjectLoader.#walk - requesting all data: "${e}".`),void await this.xref.stream.manager.requestAllChunks();t.push(r),n.push({begin:e.begin,end:e.end})}}if(r instanceof be){let e=r.getBaseStreams();if(e){let i=!1;for(let t of e)t.isDataLoaded||(i=!0,n.push({begin:t.start,end:t.end}));i&&t.push(r)}}nl(r,e)}if(n.length){await this.xref.stream.manager.requestRanges(n);for(let e of t)e instanceof R&&this.refSet.remove(e);await this.#e(t)}}static async load(t,n,r){r.stream.isDataLoaded||await new e(t,n,r).load()}};const il=Symbol(),al=Symbol(),ol=Symbol(),sl=Symbol(),cl=Symbol(),ll=Symbol(),ul=Symbol(),dl=Symbol(),fl=Symbol(),z=Symbol(`content`),pl=Symbol(`data`),ml=Symbol(),B=Symbol(`extra`),hl=Symbol(),gl=Symbol(),_l=Symbol(),vl=Symbol(),yl=Symbol(),bl=Symbol(),xl=Symbol(),Sl=Symbol(),Cl=Symbol(),wl=Symbol(),Tl=Symbol(),El=Symbol(),Dl=Symbol(),Ol=Symbol(),kl=Symbol(),Al=Symbol(),jl=Symbol(),Ml=Symbol(),Nl=Symbol(),Pl=Symbol(),Fl=Symbol(),Il=Symbol(),Ll=Symbol(),Rl=Symbol(),zl=Symbol(),Bl=Symbol(),Vl=Symbol(),Hl=Symbol(),Ul=Symbol(),Wl=Symbol(),Gl=Symbol(),Kl=Symbol(),ql=Symbol(`namespaceId`),Jl=Symbol(`nodeName`),Yl=Symbol(),Xl=Symbol(),Zl=Symbol(),Ql=Symbol(),$l=Symbol(),eu=Symbol(),tu=Symbol(),nu=Symbol(),ru=Symbol(`root`),iu=Symbol(),au=Symbol(),ou=Symbol(),su=Symbol(),cu=Symbol(),lu=Symbol(),uu=Symbol(),du=Symbol(),V=Symbol(),fu=Symbol(),pu=Symbol(),mu=Symbol(`uid`),hu=Symbol(),gu={config:{id:0,check:e=>e.startsWith(`http://www.xfa.org/schema/xci/`)},connectionSet:{id:1,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-connection-set/`)},datasets:{id:2,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-data/`)},form:{id:3,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-form/`)},localeSet:{id:4,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-locale-set/`)},pdf:{id:5,check:e=>e===`http://ns.adobe.com/xdp/pdf/`},signature:{id:6,check:e=>e===`http://www.w3.org/2000/09/xmldsig#`},sourceSet:{id:7,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-source-set/`)},stylesheet:{id:8,check:e=>e===`http://www.w3.org/1999/XSL/Transform`},template:{id:9,check:e=>e.startsWith(`http://www.xfa.org/schema/xfa-template/`)},xdc:{id:10,check:e=>e.startsWith(`http://www.xfa.org/schema/xdc/`)},xdp:{id:11,check:e=>e===`http://ns.adobe.com/xdp/`},xfdf:{id:12,check:e=>e===`http://ns.adobe.com/xfdf/`},xhtml:{id:13,check:e=>e===`http://www.w3.org/1999/xhtml`},xmpmeta:{id:14,check:e=>e===`http://ns.adobe.com/xmpmeta/`}},_u={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},vu=/([+-]?\d+\.?\d*)(.*)/;function yu(e){return e.startsWith(`'`)||e.startsWith(`"`)?e.slice(1,-1):e}function H({data:e,defaultValue:t,validate:n}){if(!e)return t;e=e.trim();let r=parseInt(e,10);return!isNaN(r)&&n(r)?r:t}function bu({data:e,defaultValue:t,validate:n}){if(!e)return t;e=e.trim();let r=parseFloat(e);return!isNaN(r)&&n(r)?r:t}function xu({data:e,defaultValue:t,validate:n}){return e&&n(e=e.trim())?e:t}function U(e,t){return xu({data:e,defaultValue:t[0],validate:e=>t.includes(e)})}function W(e,t=`0`){if(t||=`0`,!e)return W(t);let n=e.trim().match(vu);if(!n)return W(t);let[,r,i]=n,a=parseFloat(r);if(isNaN(a))return W(t);if(a===0)return 0;let o=_u[i];return o?o(a):a}function Su(e){if(!e)return{num:1,den:1};let t=e.split(`:`,2).map(e=>parseFloat(e.trim())).filter(e=>!isNaN(e));if(t.length===1&&t.push(1),t.length===0)return{num:1,den:1};let[n,r]=t;return{num:n,den:r}}function Cu(e){return e?e.trim().split(/\s+/).map(e=>({excluded:e[0]===`-`,viewname:e.substring(1)})):[]}var G=class e{static get FAILURE(){return v(this,`FAILURE`,new e(!1,null,null,null))}static get EMPTY(){return v(this,`EMPTY`,new e(!0,null,null,null))}constructor(e,t,n,r){this.success=e,this.html=t,this.bbox=n,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(t){return new e(!1,null,null,t)}static success(t,n=null){return new e(!0,t,n,null)}},wu=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e,t=null){for(let t of e)this.addPdfFont(t);for(let e of this.fonts.values())e.regular||=e.italic||e.bold||e.bolditalic;if(!t||t.size===0)return;let n=this.fonts.get(`PdfJS-Fallback-PdfJS-XFA`);for(let e of t)this.fonts.set(e,n)}addPdfFont(e){let t=e.cssFontInfo,n=t.fontFamily,r=this.fonts.get(n);r||(r=Object.create(null),this.fonts.set(n,r),this.defaultFont||=r);let i=``,a=parseFloat(t.fontWeight);parseFloat(t.italicAngle)===0?a>=700&&(i=`bold`):i=a>=700?`bolditalic`:`italic`,i||((e.name.includes(`Bold`)||e.psName?.includes(`Bold`))&&(i=`bold`),(e.name.includes(`Italic`)||e.name.endsWith(`It`)||e.psName?.includes(`Italic`)||e.psName?.endsWith(`It`))&&(i+=`italic`)),i||=`regular`,r[i]=e}getDefault(){return this.defaultFont}find(e,t=!0){let n=this.fonts.get(e)||this.cache.get(e);if(n)return n;let r=/,|-|_| |bolditalic|bold|italic|regular|it/gi,i=e.replaceAll(r,``);if(n=this.fonts.get(i),n)return this.cache.set(e,n),n;i=i.toLowerCase();let a=[];for(let[e,t]of this.fonts.entries())e.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(t);if(a.length===0)for(let[,e]of this.fonts.entries())e.regular.name?.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(e);if(a.length===0){i=i.replaceAll(/psmt|mt/gi,``);for(let[e,t]of this.fonts.entries())e.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(t)}if(a.length===0)for(let e of this.fonts.values())e.regular.name?.replaceAll(r,``).toLowerCase().startsWith(i)&&a.push(e);return a.length>=1?(a.length!==1&&t&&m(`XFA - Too many choices to guess the correct font: ${e}`),this.cache.set(e,a[0]),a[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),m(`XFA - Cannot find the font: ${e}`)),null)}};function Tu(e,t){return e.posture===`italic`?e.weight===`bold`?t.bolditalic:t.italic:e.weight===`bold`?t.bold:t.regular}var Eu=class{constructor(e,t,n,r){if(this.lineHeight=n,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e)return void([this.pdfFont,this.xfaFont]=this.defaultFont(r));this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};let i=r.find(e.typeface);i?(this.pdfFont=Tu(e,i),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(r))):[this.pdfFont,this.xfaFont]=this.defaultFont(r)}defaultFont(e){let t=e.find(`Helvetica`,!1)||e.find(`Myriad Pro`,!1)||e.find(`Arial`,!1)||e.getDefault();if(t?.regular){let e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:`normal`,weight:`normal`,size:10,letterSpacing:0}]}return[null,{typeface:`Courier`,posture:`normal`,weight:`normal`,size:10,letterSpacing:0}]}},Du=class{constructor(e,t,n,r){this.fontFinder=r,this.stack=[new Eu(e,t,n,r)]}pushData(e,t,n){let r=this.stack.at(-1);for(let t of[`typeface`,`posture`,`weight`,`size`,`letterSpacing`])e[t]||(e[t]=r.xfaFont[t]);for(let e of[`top`,`bottom`,`left`,`right`])isNaN(t[e])&&(t[e]=r.paraMargin[e]);let i=new Eu(e,t,n||r.lineHeight,this.fontFinder);i.pdfFont||=r.pdfFont,this.stack.push(i)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}},Ou=class{constructor(e,t,n,r){this.glyphs=[],this.fontSelector=new Du(e,t,n,r),this.extraHeight=0}pushData(e,t,n){this.fontSelector.pushData(e,t,n)}popFont(e){return this.fontSelector.popFont()}addPara(){let e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;let t=this.fontSelector.topFont(),n=t.xfaFont.size;if(t.pdfFont){let r=t.xfaFont.letterSpacing,i=t.pdfFont,a=i.lineHeight||1.2,o=t.lineHeight||Math.max(1.2,a)*n,s=a-(i.lineGap===void 0?.2:i.lineGap),c=Math.max(1,s)*n,l=n/1e3,u=i.defaultWidth||i.charsToGlyphs(` `)[0].width;for(let t of e.split(/[\u2029\n]/)){let e=i.encodeString(t).join(``),n=i.charsToGlyphs(e);for(let e of n){let t=e.width||u;this.glyphs.push([t*l+r,o,c,e.unicode,!1])}this.glyphs.push([0,0,0,`
|
|
9
9
|
`,!0])}this.glyphs.pop();return}for(let t of e.split(/[\u2029\n]/)){for(let e of t.split(``))this.glyphs.push([n,1.2*n,n,e,!1]);this.glyphs.push([0,0,0,`
|
|
10
10
|
`,!0])}this.glyphs.pop()}compute(e){let t=-1,n=0,r=0,i=0,a=0,o=0,s=!1,c=!0;for(let l=0,u=this.glyphs.length;l<u;l++){let[u,d,f,p,m]=this.glyphs[l],h=p===` `,g=c?f:d;m?(r=Math.max(r,a),a=0,i+=o,o=g,t=-1,n=0,c=!1):h?a+u>e?(r=Math.max(r,a),a=0,i+=o,o=g,t=-1,n=0,s=!0,c=!1):(o=Math.max(g,o),n=a,a+=u,t=l):a+u>e?(i+=o,o=g,t===-1?(r=Math.max(r,a),a=u):(l=t,r=Math.max(r,n),a=0,t=-1,n=0),s=!0,c=!1):(a+=u,o=Math.max(g,o))}return r=Math.max(r,a),i+=o+this.extraHeight,{width:1.02*r,height:i,isBroken:s}}};const ku=/^[^.[]+/,Au=/^[^\]]+/,ju=new Map([[`$data`,(e,t)=>e.datasets?e.datasets.data:e],[`$record`,(e,t)=>(e.datasets?e.datasets.data:e)[El]()[0]],[`$template`,(e,t)=>e.template],[`$connectionSet`,(e,t)=>e.connectionSet],[`$form`,(e,t)=>e.form],[`$layout`,(e,t)=>e.layout],[`$host`,(e,t)=>e.host],[`$dataWindow`,(e,t)=>e.dataWindow],[`$event`,(e,t)=>e.event],[`!`,(e,t)=>e.datasets],[`$xfa`,(e,t)=>e],[`xfa`,(e,t)=>e],[`$`,(e,t)=>t]]),Mu=new WeakMap;function Nu(e){return(e=e.trim())===`*`?1/0:parseInt(e,10)||0}function Pu(e,t,n=!0){let r=e.match(ku);if(!r)return null;let[i]=r,a=[{name:i,cacheName:`.`+i,index:0,js:null,formCalc:null,operator:0}],o=i.length;for(;o<e.length;){let s=o;if(e.charAt(o++)===`[`){if(r=e.slice(o).match(Au),!r)return m(`XFA - Invalid index in SOM expression`),null;a.at(-1).index=Nu(r[0]),o+=r[0].length+1;continue}let c;switch(e.charAt(o)){case`.`:if(!t)return null;o++,c=1;break;case`#`:o++,c=2;break;case`[`:if(n)return m(`XFA - SOM expression contains a FormCalc subexpression which is not supported for now.`),null;c=3;break;case`(`:if(n)return m(`XFA - SOM expression contains a JavaScript subexpression which is not supported for now.`),null;c=4;break;default:c=0}if(r=e.slice(o).match(ku),!r)break;[i]=r,o+=i.length,a.push({name:i,cacheName:e.slice(s,o),operator:c,index:0,js:null,formCalc:null})}return a}function Fu(e,t,n,r=!0,i=!0){let a=Pu(n,r);if(!a)return null;let o=ju.get(a[0].name),s,c=0;o?(s=!0,e=[o(e,t)],c=1):(s=t===null,e=[t||e]);for(let n=a.length;c<n;c++){let{name:n,cacheName:r,operator:o,index:l}=a[c],u=[];for(let t of e){if(!t.isXFAObject)continue;let e,a;if(i&&(a=Mu.get(t),a||(a=new Map,Mu.set(t,a)),e=a.get(r)),!e){switch(o){case 0:e=t[xl](n,!1);break;case 1:e=t[xl](n,!0);break;case 2:e=t[bl](n),e=e.isXFAObjectArray?e.children:[e]}i&&a.set(r,e)}e.length>0&&u.push(e)}if(u.length===0&&!s&&c===0){if(!(t=t[Al]()))return null;c=-1,e=[t];continue}e=isFinite(l)?u.filter(e=>l<e.length).map(e=>e[l]):u.flat()}return e.length===0?null:e}function Iu(e,t,n){let r=Pu(n);if(!r||r.some(e=>e.operator===1))return null;let i=ju.get(r[0].name),a=0;i?(e=i(e,t),a=1):e=t||e;for(let t=r.length;a<t;a++){let{name:t,operator:n,index:i}=r[a];if(!isFinite(i))return r[a].index=0,e.createNodes(r.slice(a));let o;switch(n){case 0:o=e[xl](t,!1);break;case 1:o=e[xl](t,!0);break;case 2:o=e[bl](t),o=o.isXFAObjectArray?o.children:[o]}if(o.length===0)return e.createNodes(r.slice(a));if(!(i<o.length))return r[a].index=i-o.length,e.createNodes(r.slice(a));{let t=o[i];if(!t.isXFAObject)return m(`XFA - Cannot create a node.`),null;e=t}}return null}const Lu=Symbol(),Ru=Symbol(),zu=Symbol(),Bu=Symbol(`_children`),Vu=Symbol(),Hu=Symbol(),Uu=Symbol(),Wu=Symbol(),Gu=Symbol(),Ku=Symbol(),qu=Symbol(),Ju=Symbol(),Yu=Symbol(),Xu=Symbol(`parent`),Zu=Symbol(),Qu=Symbol(),$u=Symbol();let ed=0;const td=gu.datasets.id;var K=class e{constructor(e,t,n=!1){this[ql]=e,this[Jl]=t,this[qu]=n,this[Xu]=null,this[Bu]=[],this[mu]=`${t}${ed++}`,this[Ml]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let t=this,n=null;for(let{name:r,index:i}of e){for(let e=0,a=isFinite(i)?i:0;e<=a;e++)n=new rd(t[ql]===td?-1:t[ql],r),t[ol](n);t=n}return n}[Xl](e){if(!this[qu]||!this[Zl](e))return!1;let t=e[Jl],n=this[t];if(!(n instanceof q))return n!==null&&this[nu](n),this[t]=e,this[ol](e),!0;if(n.push(e))return this[ol](e),!0;let r=``;return this.id?r=` (id: ${this.id})`:this.name&&(r=` (name: ${this.name} ${this.h.value})`),m(`XFA - node "${this[Jl]}"${r} has already enough "${t}"!`),!1}[Zl](e){return this.hasOwnProperty(e[Jl])&&e[ql]===this[ql]}[Vl](){return!1}[il](){return!1}[Ll](){return!1}[Rl](){return!1}[eu](){this.para&&this[jl]()[B].paraStack.pop()}[tu](){this[jl]()[B].paraStack.push(this.para)}[ou](e){this.id&&this[ql]===gu.template.id&&e.set(this.id,this)}[jl](){return this[Ml].template}[Hl](){return!1}[Ul](){return!1}[ol](e){e[Xu]=this,this[Bu].push(e),!e[Ml]&&this[Ml]&&(e[Ml]=this[Ml])}[nu](e){let t=this[Bu].indexOf(e);this[Bu].splice(t,1)}[Nl](){return this.hasOwnProperty(`value`)}[cu](e){}[Ql](e){}[hl](){}[cl](e){delete this[qu],this[ul]&&(e.clean(this[ul]),delete this[ul])}[Fl](e){return this[Bu].indexOf(e)}[Il](e,t){t[Xu]=this,this[Bu].splice(e,0,t),!t[Ml]&&this[Ml]&&(t[Ml]=this[Ml])}[Wl](){return!this.name}[Kl](){return``}[uu](){return this[Bu].length===0?this[z]:this[Bu].map(e=>e[uu]()).join(``)}get[zu](){let t=Object.getPrototypeOf(this);if(!t._attributes){let n=t._attributes=new Set;for(let t of Object.getOwnPropertyNames(this)){if(this[t]===null||this[t]instanceof e||this[t]instanceof q)break;n.add(t)}}return v(this,zu,t._attributes)}[Bl](e){let t=this;for(;t;){if(t===e)return!0;t=t[Al]()}return!1}[Al](){return this[Xu]}[kl](){return this[Al]()}[El](e=null){return e?this[e]:this[Bu]}[ml](){let t=Object.create(null);this[z]&&(t.$content=this[z]);for(let n of Object.getOwnPropertyNames(this)){let r=this[n];r!==null&&(r instanceof e?t[n]=r[ml]():r instanceof q?r.isEmpty()||(t[n]=r.dump()):t[n]=r)}return t}[pu](){return null}[V](){return G.EMPTY}*[Dl](){for(let e of this[El]())yield e}*[Wu](e,t){for(let n of this[Dl]())if(!e||t===e.has(n[Jl])){let e=this[yl](),t=n[V](e);t.success||(this[B].failingNode=n),yield t}}[gl](){return null}[al](e,t){this[B].children.push(e)}[yl](){}[sl]({filter:e=null,include:t=!0}){if(this[B].generator){let e=this[yl](),t=this[B].failingNode[V](e);if(!t.success)return t;t.html&&this[al](t.html,t.bbox),delete this[B].failingNode}else this[B].generator=this[Wu](e,t);for(;;){let e=this[B].generator.next();if(e.done)break;let t=e.value;if(!t.success)return t;t.html&&this[al](t.html,t.bbox)}return this[B].generator=null,G.EMPTY}[su](e){this[Qu]=new Set(Object.keys(e))}[Ku](e){let t=this[zu],n=this[Qu];return[...e].filter(e=>t.has(e)&&!n.has(e))}[iu](e,t=new Set){for(let n of this[Bu])n[Zu](e,t)}[Zu](e,t){let n=this[Gu](e,t);n?this[Lu](n,e,t):this[iu](e,t)}[Gu](e,t){let{use:n,usehref:r}=this;if(!n&&!r)return null;let i=null,a=null,o=null,s=n;if(r?(s=r,r.startsWith(`#som(`)&&r.endsWith(`)`)?a=r.slice(5,-1):r.startsWith(`.#som(`)&&r.endsWith(`)`)?a=r.slice(6,-1):r.startsWith(`#`)?o=r.slice(1):r.startsWith(`.#`)&&(o=r.slice(2))):n.startsWith(`#`)?o=n.slice(1):a=n,this.use=this.usehref=``,o?i=e.get(o):(i=Fu(e.get(ru),this,a,!0,!1),i&&=i[0]),!i)return m(`XFA - Invalid prototype reference: ${s}.`),null;if(i[Jl]!==this[Jl])return m(`XFA - Incompatible prototype: ${i[Jl]} !== ${this[Jl]}.`),null;if(t.has(i))return m(`XFA - Cycle detected in prototypes use.`),null;t.add(i);let c=i[Gu](e,t);return c&&i[Lu](c,e,t),i[iu](e,t),t.delete(i),i}[Lu](e,t,n){if(n.has(e))return void m(`XFA - Cycle detected in prototypes use.`);!this[z]&&e[z]&&(this[z]=e[z]),new Set(n).add(e);for(let t of this[Ku](e[Qu]))this[t]=e[t],this[Qu]&&this[Qu].add(t);for(let r of Object.getOwnPropertyNames(this)){if(this[zu].has(r))continue;let i=this[r],a=e[r];if(i instanceof q){for(let e of i[Bu])e[Zu](t,n);for(let r=i[Bu].length,o=a[Bu].length;r<o;r++){let a=e[Bu][r][dl]();if(!i.push(a))break;a[Xu]=this,this[Bu].push(a),a[Zu](t,n)}}else if(i===null){if(a!==null){let e=a[dl]();e[Xu]=this,this[r]=e,this[Bu].push(e),e[Zu](t,n)}}else i[iu](t,n),a&&i[Lu](a,t,n)}}static[Vu](t){return Array.isArray(t)?t.map(t=>e[Vu](t)):typeof t==`object`&&t?Object.assign({},t):t}[dl](){let t=Object.create(Object.getPrototypeOf(this));for(let e of Object.getOwnPropertySymbols(this))try{t[e]=this[e]}catch{v(t,e,this[e])}t[mu]=`${t[Jl]}${ed++}`,t[Bu]=[];for(let n of Object.getOwnPropertyNames(this)){if(this[zu].has(n)){t[n]=e[Vu](this[n]);continue}let r=this[n];t[n]=r instanceof q?new q(r[Ju]):null}for(let e of this[Bu]){let n=e[Jl],r=e[dl]();t[Bu].push(r),r[Xu]=t,t[n]===null?t[n]=r:t[n][Bu].push(r)}return t}[El](e=null){return e?this[Bu].filter(t=>t[Jl]===e):this[Bu]}[bl](e){return this[e]}[xl](e,t,n=!0){return Array.from(this[Sl](e,t,n))}*[Sl](e,t,n=!0){if(e!==`parent`){for(let n of this[Bu])n[Jl]===e&&(yield n),n.name===e&&(yield n),(t||n[Wl]())&&(yield*n[Sl](e,t,!1));n&&this[zu].has(e)&&(yield new nd(this,e,this[e]))}else yield this[Xu]}},q=class e{constructor(e=1/0){this[Ju]=e,this[Bu]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){return this[Bu].length<=this[Ju]?(this[Bu].push(e),!0):(m(`XFA - node "${e[Jl]}" accepts no more than ${this[Ju]} children`),!1)}isEmpty(){return this[Bu].length===0}dump(){return this[Bu].length===1?this[Bu][0][ml]():this[Bu].map(e=>e[ml]())}[dl](){let t=new e(this[Ju]);return t[Bu]=this[Bu].map(e=>e[dl]()),t}get children(){return this[Bu]}clear(){this[Bu].length=0}},nd=class{constructor(e,t,n){this[Xu]=e,this[Jl]=t,this[z]=n,this[fl]=!1,this[mu]=`attribute`+ ed++}[Al](){return this[Xu]}[zl](){return!0}[Cl](){return this[z].trim()}[cu](e){e=e.value||``,this[z]=e.toString()}[uu](){return this[z]}[Bl](e){return this[Xu]===e||this[Xu][Bl](e)}},rd=class e extends K{constructor(e,t,n={}){if(super(e,t),this[z]=``,this[Hu]=null,t!==`#text`){let e=new Map;this[Ru]=e;for(let[t,r]of Object.entries(n))e.set(t,new nd(this,t,r));if(n.hasOwnProperty(Yl)){let e=n[Yl].xfa.dataNode;e!==void 0&&(e===`dataGroup`?this[Hu]=!1:e===`dataValue`&&(this[Hu]=!0))}}this[fl]=!1}[fu](e){let t=this[Jl];if(t===`#text`)return void e.push($e(this[z]));let n=ee(t),r=this[ql]===td?`xfa:`:``;e.push(`<${r}${n}`);for(let[t,n]of this[Ru].entries()){let r=ee(t);e.push(` ${r}="${$e(n[z])}"`)}if(this[Hu]!==null&&(this[Hu]?e.push(` xfa:dataNode="dataValue"`):e.push(` xfa:dataNode="dataGroup"`)),this[z]||this[Bu].length!==0){if(e.push(`>`),this[z])typeof this[z]==`string`?e.push($e(this[z])):this[z][fu](e);else for(let t of this[Bu])t[fu](e);e.push(`</${r}${n}>`)}else e.push(`/>`)}[Xl](t){if(this[z]){let t=new e(this[ql],`#text`);this[ol](t),t[z]=this[z],this[z]=``}return this[ol](t),!0}[Ql](e){this[z]+=e}[hl](){if(this[z]&&this[Bu].length>0){let t=new e(this[ql],`#text`);this[ol](t),t[z]=this[z],delete this[z]}}[V](){return this[Jl]===`#text`?G.success({name:`#text`,value:this[z]}):G.EMPTY}[El](e=null){return e?this[Bu].filter(t=>t[Jl]===e):this[Bu]}[vl](){return this[Ru]}[bl](e){let t=this[Ru].get(e);return t===void 0?this[El](e):t}*[Sl](e,t){let n=this[Ru].get(e);n&&(yield n);for(let n of this[Bu])n[Jl]===e&&(yield n),t&&(yield*n[Sl](e,t))}*[_l](e,t){let n=this[Ru].get(e);!n||t&&n[fl]||(yield n);for(let n of this[Bu])yield*n[_l](e,t)}*[Tl](e,t,n){for(let r of this[Bu])r[Jl]!==e||n&&r[fl]||(yield r),t&&(yield*r[Tl](e,t,n))}[zl](){return this[Hu]===null?this[Bu].length===0||this[Bu][0][ql]===gu.xhtml.id:this[Hu]}[Cl](){return this[Hu]===null?this[Bu].length===0?this[z].trim():this[Bu][0][ql]===gu.xhtml.id?this[Bu][0][uu]().trim():null:this[z].trim()}[cu](e){e=e.value||``,this[z]=e.toString()}[ml](e=!1){let t=Object.create(null);e&&(t.$ns=this[ql]),this[z]&&(t.$content=this[z]),t.$name=this[Jl],t.children=[];for(let n of this[Bu])t.children.push(n[ml](e));t.attributes=Object.create(null);for(let[e,n]of this[Ru])t.attributes[e]=n[z];return t}},id=class extends K{constructor(e,t){super(e,t),this[z]=``}[Ql](e){this[z]+=e}[hl](){}},ad=class extends id{constructor(e,t,n){super(e,t),this[Yu]=n}[hl](){this[z]=xu({data:this[z],defaultValue:this[Yu][0],validate:e=>this[Yu].includes(e)})}[cl](e){super[cl](e),delete this[Yu]}},od=class extends id{[hl](){this[z]=this[z].trim()}},sd=class extends id{constructor(e,t,n,r){super(e,t),this[Uu]=n,this[$u]=r}[hl](){this[z]=H({data:this[z],defaultValue:this[Uu],validate:this[$u]})}[cl](e){super[cl](e),delete this[Uu],delete this[$u]}},cd=class extends sd{constructor(e,t){super(e,t,0,e=>e===1)}},ld=class extends sd{constructor(e,t){super(e,t,1,e=>e===0)}};function J(e){return typeof e==`string`?`0px`:Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}const ud={anchorType(e,t){let n=e[kl]();if(n&&(!n.layout||n.layout===`position`))switch(`transform`in t||(t.transform=``),e.anchorType){case`bottomCenter`:t.transform+=`translate(-50%, -100%)`;break;case`bottomLeft`:t.transform+=`translate(0,-100%)`;break;case`bottomRight`:t.transform+=`translate(-100%,-100%)`;break;case`middleCenter`:t.transform+=`translate(-50%,-50%)`;break;case`middleLeft`:t.transform+=`translate(0,-50%)`;break;case`middleRight`:t.transform+=`translate(-100%,-50%)`;break;case`topCenter`:t.transform+=`translate(-50%,0)`;break;case`topRight`:t.transform+=`translate(-100%,0)`}},dimensions(e,t){let n=e[kl](),r=e.w,i=e.h;if(n.layout?.includes(`row`)){let t=n[B],i=e.colSpan,a;i===-1?(a=Math.sumPrecise(t.columnWidths.slice(t.currentColumn)),t.currentColumn=0):(a=Math.sumPrecise(t.columnWidths.slice(t.currentColumn,t.currentColumn+i)),t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length),isNaN(a)||(r=e.w=a)}t.width=r===``?`auto`:J(r),t.height=i===``?`auto`:J(i)},position(e,t){let n=e[kl]();n?.layout&&n.layout!==`position`||(t.position=`absolute`,t.left=J(e.x),t.top=J(e.y))},rotate(e,t){e.rotate&&(`transform`in t||(t.transform=``),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin=`top left`)},presence(e,t){switch(e.presence){case`invisible`:t.visibility=`hidden`;break;case`hidden`:case`inactive`:t.display=`none`}},hAlign(e,t){if(e[Jl]===`para`)switch(e.hAlign){case`justifyAll`:t.textAlign=`justify-all`;break;case`radix`:t.textAlign=`left`;break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case`left`:t.alignSelf=`start`;break;case`center`:t.alignSelf=`center`;break;case`right`:t.alignSelf=`end`}},margin(e,t){e.margin&&(t.margin=e.margin[pu]().margin)}};function dd(e,t){e[kl]().layout===`position`&&(e.minW>0&&(t.minWidth=J(e.minW)),e.maxW>0&&(t.maxWidth=J(e.maxW)),e.minH>0&&(t.minHeight=J(e.minH)),e.maxH>0&&(t.maxHeight=J(e.maxH)))}function fd(e,t,n,r,i,a){let o=new Ou(t,n,r,i);return typeof e==`string`?o.addString(e):e[$l](o),o.compute(a)}function pd(e,t){let n=null,r=null,i=!1;if((!e.w||!e.h)&&e.value){let a=0,o=0;e.margin&&(a=e.margin.leftInset+e.margin.rightInset,o=e.margin.topInset+e.margin.bottomInset);let s=null,c=null;e.para&&(c=Object.create(null),s=e.para.lineHeight===``?null:e.para.lineHeight,c.top=e.para.spaceAbove===``?0:e.para.spaceAbove,c.bottom=e.para.spaceBelow===``?0:e.para.spaceBelow,c.left=e.para.marginLeft===``?0:e.para.marginLeft,c.right=e.para.marginRight===``?0:e.para.marginRight);let l=e.font;if(!l){let t=e[jl](),n=e[Al]();for(;n&&n!==t;){if(n.font){l=n.font;break}n=n[Al]()}}let u=(e.w||t.width)-a,d=e[Ml].fontFinder;if(e.value.exData&&e.value.exData[z]&&e.value.exData.contentType===`text/html`){let t=fd(e.value.exData[z],l,c,s,d,u);r=t.width,n=t.height,i=t.isBroken}else{let t=e.value[uu]();if(t){let e=fd(t,l,c,s,d,u);r=e.width,n=e.height,i=e.isBroken}}r===null||e.w||(r+=a),n===null||e.h||(n+=o)}return{w:r,h:n,isBroken:i}}function md(e,t,n){let r;if(e.w!==``&&e.h!==``)r=[e.x,e.y,e.w,e.h];else{if(!n)return null;let i=e.w;if(i===``){if(e.maxW===0){let t=e[kl]();i=t.layout===`position`&&t.w!==``?0:e.minW}else i=Math.min(e.maxW,n.width);t.attributes.style.width=J(i)}let a=e.h;if(a===``){if(e.maxH===0){let t=e[kl]();a=t.layout===`position`&&t.h!==``?0:e.minH}else a=Math.min(e.maxH,n.height);t.attributes.style.height=J(a)}r=[e.x,e.y,i,a]}return r}function hd(e){let t=e[kl]();if(t.layout?.includes(`row`)){let n=t[B],r=e.colSpan,i;i=r===-1?Math.sumPrecise(n.columnWidths.slice(n.currentColumn)):Math.sumPrecise(n.columnWidths.slice(n.currentColumn,n.currentColumn+r)),isNaN(i)||(e.w=i)}t.layout&&t.layout!==`position`&&(e.x=e.y=0),e.layout===`table`&&e.w===``&&Array.isArray(e.columnWidths)&&(e.w=Math.sumPrecise(e.columnWidths))}function gd(e){switch(e.layout){case`position`:default: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`}}function _d(e,...t){let n=Object.create(null);for(let r of t){let t=e[r];if(t!==null){if(ud.hasOwnProperty(r))ud[r](e,n);else if(t instanceof K){let e=t[pu]();e?Object.assign(n,e):m(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}}return n}function vd(e,t){let{attributes:n}=t,{style:r}=n,i={name:`div`,attributes:{class:[`xfaWrapper`],style:Object.create(null)},children:[]};if(n.class.push(`xfaWrapped`),e.border){let{widths:n,insets:a}=e.border[B],o,s,c=a[0],l=a[3],u=a[0]+a[2],d=a[1]+a[3];switch(e.border.hand){case`even`:c-=n[0]/2,l-=n[3]/2,o=`calc(100% + ${(n[1]+n[3])/2-d}px)`,s=`calc(100% + ${(n[0]+n[2])/2-u}px)`;break;case`left`:c-=n[0],l-=n[3],o=`calc(100% + ${n[1]+n[3]-d}px)`,s=`calc(100% + ${n[0]+n[2]-u}px)`;break;case`right`:o=d?`calc(100% - ${d}px)`:`100%`,s=u?`calc(100% - ${u}px)`:`100%`}let f=[`xfaBorder`];xd(e.border)&&f.push(`xfaPrintOnly`);let p={name:`div`,attributes:{class:f,style:{top:`${c}px`,left:`${l}px`,width:o,height:s}},children:[]};for(let e of[`border`,`borderWidth`,`borderColor`,`borderRadius`,`borderStyle`])r[e]!==void 0&&(p.attributes.style[e]=r[e],delete r[e]);i.children.push(p,t)}else i.children.push(t);for(let e of[`background`,`backgroundClip`,`top`,`left`,`width`,`height`,`minWidth`,`minHeight`,`maxWidth`,`maxHeight`,`transform`,`transformOrigin`,`visibility`])r[e]!==void 0&&(i.attributes.style[e]=r[e],delete r[e]);return i.attributes.style.position=r.position===`absolute`?`absolute`:`relative`,delete r.position,r.alignSelf&&(i.attributes.style.alignSelf=r.alignSelf,delete r.alignSelf),i}function yd(e){let t=W(e.textIndent,`0px`);if(t>=0)return;let n=`padding`+((e.textAlign===`right`?`right`:`left`)==`left`?`Left`:`Right`);e[n]=W(e[n],`0px`)-t+`px`}function bd(e,t){switch(e.access){case`nonInteractive`:t.push(`xfaNonInteractive`);break;case`readOnly`:t.push(`xfaReadOnly`);break;case`protected`:t.push(`xfaDisabled`)}}function xd(e){return e.relevant.length>0&&!e.relevant[0].excluded&&e.relevant[0].viewname===`print`}function Sd(e){let t=e[jl]()[B].paraStack;return t.length?t.at(-1):null}function Cd(e,t,n){if(n.attributes.class?.includes(`xfaRich`)){t&&(e.h===``&&(t.height=`auto`),e.w===``&&(t.width=`auto`));let r=Sd(e);if(r){let e=n.attributes.style;switch(e.display=`flex`,e.flexDirection=`column`,r.vAlign){case`top`:e.justifyContent=`start`;break;case`bottom`:e.justifyContent=`end`;break;case`middle`:e.justifyContent=`center`}let t=r[pu]();for(let[n,r]of Object.entries(t))n in e||(e[n]=r)}}}function wd(e,t,n,r){if(!n)return void delete r.fontFamily;let i=yu(e.typeface);r.fontFamily=`"${i}"`;let a=n.find(i);if(a){let{fontFamily:n}=a.regular.cssFontInfo;n!==i&&(r.fontFamily=`"${n}"`);let o=Sd(t);if(o&&o.lineHeight!==``||r.lineHeight)return;let s=Tu(e,a);s&&(r.lineHeight=Math.max(1.2,s.lineHeight))}}function Td(e){let t=_(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}function Ed(e,t){return{name:`div`,attributes:{class:[e.layout===`lr-tb`?`xfaLr`:`xfaRl`]},children:t}}function Dd(e){if(!e[B])return null;let t={name:`div`,attributes:e[B].attributes,children:e[B].children};if(e[B].failingNode){let n=e[B].failingNode[gl]();n&&(e.layout.endsWith(`-tb`)?t.children.push(Ed(e,[n])):t.children.push(n))}return t.children.length===0?null:t}function Od(e,t,n){let r=e[B],i=r.availableSpace,[a,o,s,c]=n;switch(e.layout){case`position`:r.width=Math.max(r.width,a+s),r.height=Math.max(r.height,o+c),r.children.push(t);break;case`lr-tb`:case`rl-tb`:r.line&&r.attempt!==1||(r.line=Ed(e,[]),r.children.push(r.line),r.numberInLine=0),r.numberInLine+=1,r.line.children.push(t),r.attempt===0?(r.currentWidth+=s,r.height=Math.max(r.height,r.prevHeight+c)):(r.currentWidth=s,r.prevHeight=r.height,r.height+=c,r.attempt=0),r.width=Math.max(r.width,r.currentWidth);break;case`rl-row`:case`row`:{r.children.push(t),r.width+=s,r.height=Math.max(r.height,c);let e=J(r.height);for(let t of r.children)t.attributes.style.height=e;break}case`table`:case`tb`:r.width=ae(s,r.width,i.width),r.height+=c,r.children.push(t)}}function kd(e){let t=e[B].availableSpace,n=e.margin?e.margin.topInset+e.margin.bottomInset:0,r=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case`lr-tb`:case`rl-tb`:return e[B].attempt===0?{width:t.width-r-e[B].currentWidth,height:t.height-n-e[B].prevHeight}:{width:t.width-r,height:t.height-n-e[B].height};case`rl-row`:case`row`:return{width:Math.sumPrecise(e[B].columnWidths.slice(e[B].currentColumn)),height:t.height-r};case`table`:case`tb`:return{width:t.width-r,height:t.height-n-e[B].height};default:return t}}function Ad(e,t){if(e[jl]()[B].firstUnsplittable===null||e.w===0||e.h===0)return!0;let n=e[kl](),r=n[B]?.attempt||0,[,i,a,o]=function(e){let t,n,r=e.w===``?NaN:e.w,i=e.h===``?NaN:e.h,[a,o]=[0,0];switch(e.anchorType||``){case`bottomCenter`:[a,o]=[r/2,i];break;case`bottomLeft`:[a,o]=[0,i];break;case`bottomRight`:[a,o]=[r,i];break;case`middleCenter`:[a,o]=[r/2,i/2];break;case`middleLeft`:[a,o]=[0,i/2];break;case`middleRight`:[a,o]=[r,i/2];break;case`topCenter`:[a,o]=[r/2,0];break;case`topRight`:[a,o]=[r,0]}switch(e.rotate||0){case 0:[t,n]=[-a,-o];break;case 90:[t,n]=[-o,a],[r,i]=[i,-r];break;case 180:[t,n]=[a,o],[r,i]=[-r,-i];break;case 270:[t,n]=[o,-a],[r,i]=[-i,r]}return[e.x+t+Math.min(0,r),e.y+n+Math.min(0,i),Math.abs(r),Math.abs(i)]}(e);switch(n.layout){case`lr-tb`:case`rl-tb`:return r===0?e[jl]()[B].noLayoutFailure?e.w===``?t.width>2:Math.round(a-t.width)<=2:!(e.h!==``&&Math.round(o-t.height)>2)&&(e.w===``?t.width>2:Math.round(a-t.width)<=2||n[B].numberInLine===0&&t.height>2):!!e[jl]()[B].noLayoutFailure||!(e.h!==``&&Math.round(o-t.height)>2)&&(e.w===``||Math.round(a-t.width)<=2||!n[Ul]())&&t.height>2;case`table`:case`tb`:return!!e[jl]()[B].noLayoutFailure||(e.h===``||e[Hl]()?(e.w===``||Math.round(a-t.width)<=2||!n[Ul]())&&t.height>2:Math.round(o-t.height)<=2);case`position`:return e[jl]()[B].noLayoutFailure||e.h===``||Math.round(o+i-t.height)<=2?!0:o+i>e[jl]()[B].currentContentArea.h;case`rl-row`:case`row`:return!!e[jl]()[B].noLayoutFailure||e.h===``||Math.round(o-t.height)<=2;default:return!0}}const Y=gu.template.id,jd=`http://www.w3.org/2000/svg`,Md=/^H(\d+)$/,Nd=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`]),Pd=[[[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`]];function Fd(e){if(!e||!e.border)return{w:0,h:0};let t=e.border[wl]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function Id(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function Ld(e,t){if(!e.value){let t=new Qp({});e[ol](t),e.value=t}e.value[cu](t)}function*Rd(e){for(let t of e[El]())t instanceof Rp?yield*t[Dl]():yield t}function zd(e){return e.validate?.nullTest===`error`}function Bd(e){for(;e;){if(!e.traversal)return void(e[lu]=e[Al]()[lu]);if(e[lu])return;let t=null;for(let n of e.traversal[El]())if(n.operation===`next`){t=n;break}if(!t||!t.ref)return void(e[lu]=e[Al]()[lu]);let n=e[jl]();e[lu]=++n[lu];let r=n[au](t.ref,e);if(!r)return;e=r[0]}}function Vd(e,t){let n=e.assist;if(n){let e=n[V]();e&&(t.title=e);let r=n.role.match(Md);if(r){let e=r[1];t.role=`heading`,t[`aria-level`]=e}}if(e.layout===`table`)t.role=`table`;else if(e.layout===`row`)t.role=`row`;else{let n=e[Al]();n.layout===`row`&&(t.role=n.assist?.role===`TH`?`columnheader`:`cell`)}}function Hd(e){if(!e.assist)return null;let t=e.assist;return t.speak&&t.speak[z]!==``?t.speak[z]:t.toolTip?t.toolTip[z]:null}function Ud(e){return G.success({name:`div`,attributes:{class:[`xfaRich`],style:Object.create(null)},children:[{name:`span`,attributes:{style:Object.create(null)},value:e}]})}function Wd(e){let t=e[jl]();t[B].firstUnsplittable===null&&(t[B].firstUnsplittable=e,t[B].noLayoutFailure=!0)}function Gd(e){let t=e[jl]();t[B].firstUnsplittable===e&&(t[B].noLayoutFailure=!1)}function Kd(e){if(e[B]||(e[B]=Object.create(null),e.targetType===`auto`))return!1;let t=e[jl](),n=null;if(e.target){if(n=t[au](e.target,e[Al]()),!n)return!1;n=n[0]}let{currentPageArea:r,currentContentArea:i}=t[B];if(e.targetType===`pageArea`)return n instanceof _p||(n=null),e.startNew?(e[B].target=n||r,!0):!(!n||n===r)&&(e[B].target=n,!0);n instanceof vf||(n=null);let a=n&&n[Al](),o,s=a;if(e.startNew)if(n){let e=a.contentArea.children,t=e.indexOf(i),r=e.indexOf(n);t!==-1&&t<r&&(s=null),o=r-1}else o=r.contentArea.children.indexOf(i);else{if(!n||n===i)return!1;o=a.contentArea.children.indexOf(n)-1,s=a===r?null:a}return e[B].target=s,e[B].index=o,!0}function qd(e,t,n){let r=e[jl](),i=r[B].noLayoutFailure,a=t[kl];t[kl]=()=>e,r[B].noLayoutFailure=!0;let o=t[V](n);e[al](o.html,o.bbox),r[B].noLayoutFailure=i,t[kl]=a}var Jd=class extends od{constructor(e){super(Y,`appearanceFilter`),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},Yd=class extends K{constructor(e){super(Y,`arc`,!0),this.circular=H({data:e.circular,defaultValue:0,validate:e=>e===1}),this.hand=U(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.startAngle=bu({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=bu({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||``,this.usehref=e.usehref||``,this.edge=null,this.fill=null}[V](){let e=this.edge||new kf({}),t=e[pu](),n=Object.create(null),r;this.fill?.presence===`visible`?Object.assign(n,this.fill[pu]()):n.fill=`transparent`,n.strokeWidth=J(e.presence===`visible`?e.thickness:0),n.stroke=t.color;let i={xmlns:jd,style:{width:`100%`,height:`100%`,overflow:`visible`}};if(this.sweepAngle===360)r={name:`ellipse`,attributes:{xmlns:jd,cx:`50%`,cy:`50%`,rx:`50%`,ry:`50%`,style:n}};else{let e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,a=+(this.sweepAngle>180),[o,s,c,l]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];r={name:`path`,attributes:{xmlns:jd,d:`M ${o} ${s} A 50 50 0 ${a} 0 ${c} ${l}`,vectorEffect:`non-scaling-stroke`,style:n}},Object.assign(i,{viewBox:`0 0 100 100`,preserveAspectRatio:`none`})}let a={name:`svg`,children:[r],attributes:i};return Id(this[Al]()[Al]())?G.success({name:`div`,attributes:{style:{display:`inline`,width:`100%`,height:`100%`}},children:[a]}):(a.attributes.style.position=`absolute`,G.success(a))}},Xd=class extends K{constructor(e){super(Y,`area`,!0),this.colSpan=H({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.id=e.id||``,this.name=e.name||``,this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.x=W(e.x,`0pt`),this.y=W(e.y,`0pt`),this.desc=null,this.extras=null,this.area=new q,this.draw=new q,this.exObject=new q,this.exclGroup=new q,this.field=new q,this.subform=new q,this.subformSet=new q}*[Dl](){yield*Rd(this)}[Wl](){return!0}[Rl](){return!0}[al](e,t){let[n,r,i,a]=t;this[B].width=Math.max(this[B].width,n+i),this[B].height=Math.max(this[B].height,r+a),this[B].children.push(e)}[yl](){return this[B].availableSpace}[V](e){let t=_d(this,`position`),n={style:t,id:this[mu],class:[`xfaArea`]};xd(this)&&n.class.push(`xfaPrintOnly`),this.name&&(n.xfaName=this.name);let r=[];this[B]={children:r,width:0,height:0,availableSpace:e};let i=this[sl]({filter:new Set([`area`,`draw`,`field`,`exclGroup`,`subform`,`subformSet`]),include:!0});if(!i.success)return i.isBreak()?i:(delete this[B],G.FAILURE);t.width=J(this[B].width),t.height=J(this[B].height);let a={name:`div`,attributes:n,children:r},o=[this.x,this.y,this[B].width,this[B].height];return delete this[B],G.success(a,o)}},Zd=class extends K{constructor(e){super(Y,`assist`,!0),this.id=e.id||``,this.role=e.role||``,this.use=e.use||``,this.usehref=e.usehref||``,this.speak=null,this.toolTip=null}[V](){return this.toolTip?.[z]||null}},Qd=class extends K{constructor(e){super(Y,`barcode`,!0),this.charEncoding=xu({data:e.charEncoding?e.charEncoding.toLowerCase():``,defaultValue:``,validate: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}/)}),this.checksum=U(e.checksum,[`none`,`1mod10`,`1mod10_1mod11`,`2mod10`,`auto`]),this.dataColumnCount=H({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0}),this.dataLength=H({data:e.dataLength,defaultValue:-1,validate:e=>e>=0}),this.dataPrep=U(e.dataPrep,[`none`,`flateCompress`]),this.dataRowCount=H({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0}),this.endChar=e.endChar||``,this.errorCorrectionLevel=H({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8}),this.id=e.id||``,this.moduleHeight=W(e.moduleHeight,`5mm`),this.moduleWidth=W(e.moduleWidth,`0.25mm`),this.printCheckDigit=H({data:e.printCheckDigit,defaultValue:0,validate:e=>e===1}),this.rowColumnRatio=Su(e.rowColumnRatio),this.startChar=e.startChar||``,this.textLocation=U(e.textLocation,[`below`,`above`,`aboveEmbedded`,`belowEmbedded`,`none`]),this.truncate=H({data:e.truncate,defaultValue:0,validate:e=>e===1}),this.type=U(e.type?e.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=U(e.upsMode,[`usCarrier`,`internationalCarrier`,`secureSymbol`,`standardSymbol`]),this.use=e.use||``,this.usehref=e.usehref||``,this.wideNarrowRatio=Su(e.wideNarrowRatio),this.encrypt=null,this.extras=null}},$d=class extends K{constructor(e){super(Y,`bind`,!0),this.match=U(e.match,[`once`,`dataRef`,`global`,`none`]),this.ref=e.ref||``,this.picture=null}},ef=class extends K{constructor(e){super(Y,`bindItems`),this.connection=e.connection||``,this.labelRef=e.labelRef||``,this.ref=e.ref||``,this.valueRef=e.valueRef||``}},tf=class extends K{constructor(e){super(Y,`bookend`),this.id=e.id||``,this.leader=e.leader||``,this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``}},nf=class extends cd{constructor(e){super(Y,`boolean`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[V](e){return Ud(this[z]===1?`1`:`0`)}},rf=class extends K{constructor(e){super(Y,`border`,!0),this.break=U(e.break,[`close`,`open`]),this.hand=U(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.corner=new q(4),this.edge=new q(4),this.extras=null,this.fill=null,this.margin=null}[wl](){if(!this[B]){let e=this.edge.children.slice();if(e.length<4){let t=e.at(-1)||new kf({});for(let n=e.length;n<4;n++)e.push(t)}let t=e.map(e=>e.thickness),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[B]={widths:t,insets:n,edges:e}}return this[B]}[pu](){let{edges:e}=this[wl](),t=e.map(e=>{let t=e[pu]();return t.color||=`#000000`,t}),n=Object.create(null);if(this.margin&&Object.assign(n,this.margin[pu]()),this.fill?.presence===`visible`&&Object.assign(n,this.fill[pu]()),this.corner.children.some(e=>e.radius!==0)){let e=this.corner.children.map(e=>e[pu]());if(e.length===2||e.length===3){let t=e.at(-1);for(let n=e.length;n<4;n++)e.push(t)}n.borderRadius=e.map(e=>e.radius).join(` `)}switch(this.presence){case`invisible`:case`hidden`:n.borderStyle=``;break;case`inactive`:n.borderStyle=`none`;break;default:n.borderStyle=t.map(e=>e.style).join(` `)}return n.borderWidth=t.map(e=>e.width).join(` `),n.borderColor=t.map(e=>e.color).join(` `),n}},af=class extends K{constructor(e){super(Y,`break`,!0),this.after=U(e.after,[`auto`,`contentArea`,`pageArea`,`pageEven`,`pageOdd`]),this.afterTarget=e.afterTarget||``,this.before=U(e.before,[`auto`,`contentArea`,`pageArea`,`pageEven`,`pageOdd`]),this.beforeTarget=e.beforeTarget||``,this.bookendLeader=e.bookendLeader||``,this.bookendTrailer=e.bookendTrailer||``,this.id=e.id||``,this.overflowLeader=e.overflowLeader||``,this.overflowTarget=e.overflowTarget||``,this.overflowTrailer=e.overflowTrailer||``,this.startNew=H({data:e.startNew,defaultValue:0,validate:e=>e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}},of=class extends K{constructor(e){super(Y,`breakAfter`,!0),this.id=e.id||``,this.leader=e.leader||``,this.startNew=H({data:e.startNew,defaultValue:0,validate:e=>e===1}),this.target=e.target||``,this.targetType=U(e.targetType,[`auto`,`contentArea`,`pageArea`]),this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``,this.script=null}},sf=class extends K{constructor(e){super(Y,`breakBefore`,!0),this.id=e.id||``,this.leader=e.leader||``,this.startNew=H({data:e.startNew,defaultValue:0,validate:e=>e===1}),this.target=e.target||``,this.targetType=U(e.targetType,[`auto`,`contentArea`,`pageArea`]),this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``,this.script=null}[V](e){return this[B]={},G.FAILURE}},cf=class extends K{constructor(e){super(Y,`button`,!0),this.highlight=U(e.highlight,[`inverted`,`none`,`outline`,`push`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[V](e){let t=this[Al]()[Al](),n={name:`button`,attributes:{id:this[mu],class:[`xfaButton`],style:{}},children:[]};for(let e of t.event.children){if(e.activity!==`click`||!e.script)continue;let t=nt(e.script[z]);if(!t)continue;let r=Td(t.url);r&&n.children.push({name:`a`,attributes:{id:`link`+this[mu],href:r,newWindow:t.newWindow,class:[`xfaLink`],style:{}},children:[]})}return G.success(n)}},lf=class extends K{constructor(e){super(Y,`calculate`,!0),this.id=e.id||``,this.override=U(e.override,[`disabled`,`error`,`ignore`,`warning`]),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.message=null,this.script=null}},uf=class extends K{constructor(e){super(Y,`caption`,!0),this.id=e.id||``,this.placement=U(e.placement,[`left`,`bottom`,`inline`,`right`,`top`]),this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.reserve=Math.ceil(W(e.reserve)),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[cu](e){Ld(this,e)}[wl](e){if(!this[B]){let{width:t,height:n}=e;switch(this.placement){case`left`:case`right`:case`inline`:t=this.reserve<=0?t:this.reserve;break;case`top`:case`bottom`:n=this.reserve<=0?n:this.reserve}this[B]=pd(this,{width:t})}return this[B]}[V](e){if(!this.value)return G.EMPTY;this[tu]();let t=this.value[V](e).html;if(!t)return this[eu](),G.EMPTY;let n=this.reserve;if(this.reserve<=0){let{w:t,h:n}=this[wl](e);switch(this.placement){case`left`:case`right`:case`inline`:this.reserve=t;break;case`top`:case`bottom`:this.reserve=n}}let r=[];typeof t==`string`?r.push({name:`#text`,value:t}):r.push(t);let i=_d(this,`font`,`margin`,`visibility`);switch(this.placement){case`left`:case`right`:this.reserve>0&&(i.width=J(this.reserve));break;case`top`:case`bottom`:this.reserve>0&&(i.height=J(this.reserve))}return Cd(this,null,t),this[eu](),this.reserve=n,G.success({name:`div`,attributes:{style:i,class:[`xfaCaption`]},children:r})}},df=class extends od{constructor(e){super(Y,`certificate`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},ff=class extends K{constructor(e){super(Y,`certificates`,!0),this.credentialServerPolicy=U(e.credentialServerPolicy,[`optional`,`required`]),this.id=e.id||``,this.url=e.url||``,this.urlPolicy=e.urlPolicy||``,this.use=e.use||``,this.usehref=e.usehref||``,this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}},pf=class extends K{constructor(e){super(Y,`checkButton`,!0),this.id=e.id||``,this.mark=U(e.mark,[`default`,`check`,`circle`,`cross`,`diamond`,`square`,`star`]),this.shape=U(e.shape,[`square`,`round`]),this.size=W(e.size,`10pt`),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}[V](e){let t=_d(this,`margin`),n=J(this.size),r,i,a;t.width=t.height=n;let o=this[Al]()[Al](),s=o.items.children.length&&o.items.children[0][V]().html||[],c={on:(s[0]===void 0?`on`:s[0]).toString(),off:(s[1]===void 0?`off`:s[1]).toString()},l=(o.value?.[uu]()||`off`)===c.on||void 0,u=o[kl](),d=o[mu],f;u instanceof Bf?(a=u[mu],r=`radio`,i=`xfaRadio`,f=u[pl]?.[mu]||u[mu]):(r=`checkbox`,i=`xfaCheckbox`,f=o[pl]?.[mu]||o[mu]);let p={name:`input`,attributes:{class:[i],style:t,fieldId:d,dataId:f,type:r,checked:l,xfaOn:c.on,xfaOff:c.off,"aria-label":Hd(o),"aria-required":!1}};return a&&(p.attributes.name=a),zd(o)&&(p.attributes[`aria-required`]=!0,p.attributes.required=!0),G.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[p]})}},mf=class extends K{constructor(e){super(Y,`choiceList`,!0),this.commitOn=U(e.commitOn,[`select`,`exit`]),this.id=e.id||``,this.open=U(e.open,[`userControl`,`always`,`multiSelect`,`onEntry`]),this.textEntry=H({data:e.textEntry,defaultValue:0,validate:e=>e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}[V](e){let t=_d(this,`border`,`margin`),n=this[Al]()[Al](),r={fontSize:`calc(${n.font?.size||10}px * var(--total-scale-factor))`},i=[];if(n.items.children.length>0){let e=n.items,t=0,a=0;e.children.length===2&&(t=e.children[0].save,a=1-t);let o=e.children[t][V]().html,s=e.children[a][V]().html,c=!1,l=n.value?.[uu]()||``;for(let e=0,t=o.length;e<t;e++){let t={name:`option`,attributes:{value:s[e]||o[e],style:r},value:o[e]};s[e]===l&&(t.attributes.selected=c=!0),i.push(t)}c||i.splice(0,0,{name:`option`,attributes:{hidden:!0,selected:!0},value:` `})}let a={class:[`xfaSelect`],fieldId:n[mu],dataId:n[pl]?.[mu]||n[mu],style:t,"aria-label":Hd(n),"aria-required":!1};return zd(n)&&(a[`aria-required`]=!0,a.required=!0),this.open===`multiSelect`&&(a.multiple=!0),G.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[{name:`select`,children:i,attributes:a}]})}},hf=class extends K{constructor(e){super(Y,`color`,!0),this.cSpace=U(e.cSpace,[`SRGB`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.value=e.value?function(e,t=[0,0,0]){let[n,r,i]=t;if(!e)return{r:n,g:r,b:i};let a=e.split(`,`,3).map(e=>ae(parseInt(e.trim(),10),0,255)).map(e=>isNaN(e)?0:e);return a.length<3||([n,r,i]=a),{r:n,g:r,b:i}}(e.value):``,this.extras=null}[Nl](){return!1}[pu](){return this.value?M.makeHexColor(this.value.r,this.value.g,this.value.b):null}},gf=class extends K{constructor(e){super(Y,`comb`),this.id=e.id||``,this.numberOfCells=H({data:e.numberOfCells,defaultValue:0,validate:e=>e>=0}),this.use=e.use||``,this.usehref=e.usehref||``}},_f=class extends K{constructor(e){super(Y,`connect`,!0),this.connection=e.connection||``,this.id=e.id||``,this.ref=e.ref||``,this.usage=U(e.usage,[`exportAndImport`,`exportOnly`,`importOnly`]),this.use=e.use||``,this.usehref=e.usehref||``,this.picture=null}},vf=class extends K{constructor(e){super(Y,`contentArea`,!0),this.h=W(e.h),this.id=e.id||``,this.name=e.name||``,this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.w=W(e.w),this.x=W(e.x,`0pt`),this.y=W(e.y,`0pt`),this.desc=null,this.extras=null}[V](e){let t={left:J(this.x),top:J(this.y),width:J(this.w),height:J(this.h)},n=[`xfaContentarea`];return xd(this)&&n.push(`xfaPrintOnly`),G.success({name:`div`,children:[],attributes:{style:t,class:n,id:this[mu]}})}},yf=class extends K{constructor(e){super(Y,`corner`,!0),this.id=e.id||``,this.inverted=H({data:e.inverted,defaultValue:0,validate:e=>e===1}),this.join=U(e.join,[`square`,`round`]),this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.radius=W(e.radius),this.stroke=U(e.stroke,[`solid`,`dashDot`,`dashDotDot`,`dashed`,`dotted`,`embossed`,`etched`,`lowered`,`raised`]),this.thickness=W(e.thickness,`0.5pt`),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[pu](){let e=_d(this,`visibility`);return e.radius=J(this.join===`square`?0:this.radius),e}},bf=class extends id{constructor(e){super(Y,`date`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[hl](){let e=this[z].trim();this[z]=e?new Date(e):null}[V](e){return Ud(this[z]?this[z].toString():``)}},xf=class extends id{constructor(e){super(Y,`dateTime`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[hl](){let e=this[z].trim();this[z]=e?new Date(e):null}[V](e){return Ud(this[z]?this[z].toString():``)}},Sf=class extends K{constructor(e){super(Y,`dateTimeEdit`,!0),this.hScrollPolicy=U(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.picker=U(e.picker,[`host`,`none`]),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.comb=null,this.extras=null,this.margin=null}[V](e){let t=_d(this,`border`,`font`,`margin`),n=this[Al]()[Al](),r={name:`input`,attributes:{type:`text`,fieldId:n[mu],dataId:n[pl]?.[mu]||n[mu],class:[`xfaTextfield`],style:t,"aria-label":Hd(n),"aria-required":!1}};return zd(n)&&(r.attributes[`aria-required`]=!0,r.attributes.required=!0),G.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[r]})}},Cf=class extends id{constructor(e){super(Y,`decimal`),this.fracDigits=H({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||``,this.leadDigits=H({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[hl](){let e=parseFloat(this[z].trim());this[z]=isNaN(e)?null:e}[V](e){return Ud(this[z]===null?``:this[z].toString())}},wf=class extends K{constructor(e){super(Y,`defaultUi`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}},Tf=class extends K{constructor(e){super(Y,`desc`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new q,this.date=new q,this.dateTime=new q,this.decimal=new q,this.exData=new q,this.float=new q,this.image=new q,this.integer=new q,this.text=new q,this.time=new q}},Ef=class extends ad{constructor(e){super(Y,`digestMethod`,[``,`SHA1`,`SHA256`,`SHA512`,`RIPEMD160`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},Df=class extends K{constructor(e){super(Y,`digestMethods`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.digestMethod=new q}},Of=class extends K{constructor(e){super(Y,`draw`,!0),this.anchorType=U(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=H({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.h=e.h?W(e.h):``,this.hAlign=U(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.locale=e.locale||``,this.maxH=W(e.maxH,`0pt`),this.maxW=W(e.maxW,`0pt`),this.minH=W(e.minH,`0pt`),this.minW=W(e.minW,`0pt`),this.name=e.name||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Cu(e.relevant),this.rotate=H({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?W(e.w):``,this.x=W(e.x,`0pt`),this.y=W(e.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 q}[cu](e){Ld(this,e)}[V](e){if(Bd(this),this.presence===`hidden`||this.presence===`inactive`)return G.EMPTY;hd(this),this[tu]();let t=this.w,n=this.h,{w:r,h:i,isBroken:a}=pd(this,e);if(r&&this.w===``){if(a&&this[kl]()[Ul]())return this[eu](),G.FAILURE;this.w=r}if(i&&this.h===``&&(this.h=i),Wd(this),!Ad(this,e))return this.w=t,this.h=n,this[eu](),G.FAILURE;Gd(this);let o=_d(this,`font`,`hAlign`,`dimensions`,`position`,`presence`,`rotate`,`anchorType`,`border`,`margin`);dd(this,o),o.margin&&(o.padding=o.margin,delete o.margin);let s=[`xfaDraw`];this.font&&s.push(`xfaFont`),xd(this)&&s.push(`xfaPrintOnly`);let c={style:o,id:this[mu],class:s};this.name&&(c.xfaName=this.name);let l={name:`div`,attributes:c,children:[]};Vd(this,c);let u=md(this,l,e),d=this.value?this.value[V](e).html:null;return d===null?(this.w=t,this.h=n,this[eu](),G.success(vd(this,l),u)):(l.children.push(d),Cd(this,o,d),this.w=t,this.h=n,this[eu](),G.success(vd(this,l),u))}},kf=class extends K{constructor(e){super(Y,`edge`,!0),this.cap=U(e.cap,[`square`,`butt`,`round`]),this.id=e.id||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.stroke=U(e.stroke,[`solid`,`dashDot`,`dashDotDot`,`dashed`,`dotted`,`embossed`,`etched`,`lowered`,`raised`]),this.thickness=W(e.thickness,`0.5pt`),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[pu](){let e=_d(this,`visibility`);if(Object.assign(e,{linecap:this.cap,width:J(this.thickness),color:this.color?this.color[pu]():`#000000`,style:``}),this.presence!==`visible`)e.style=`none`;else switch(this.stroke){case`solid`:e.style=`solid`;break;case`dashDot`:case`dashDotDot`:case`dashed`:e.style=`dashed`;break;case`dotted`:e.style=`dotted`;break;case`embossed`:e.style=`ridge`;break;case`etched`:e.style=`groove`;break;case`lowered`:e.style=`inset`;break;case`raised`:e.style=`outset`}return e}},Af=class extends ad{constructor(e){super(Y,`encoding`,[`adbe.x509.rsa_sha1`,`adbe.pkcs7.detached`,`adbe.pkcs7.sha1`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},jf=class extends K{constructor(e){super(Y,`encodings`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.encoding=new q}},Mf=class extends K{constructor(e){super(Y,`encrypt`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=null}},Nf=class extends K{constructor(e){super(Y,`encryptData`,!0),this.id=e.id||``,this.operation=U(e.operation,[`encrypt`,`decrypt`]),this.target=e.target||``,this.use=e.use||``,this.usehref=e.usehref||``,this.filter=null,this.manifest=null}},Pf=class extends K{constructor(e){super(Y,`encryption`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=new q}},Ff=class extends ad{constructor(e){super(Y,`encryptionMethod`,[``,`AES256-CBC`,`TRIPLEDES-CBC`,`AES128-CBC`,`AES192-CBC`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},If=class extends K{constructor(e){super(Y,`encryptionMethods`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.encryptionMethod=new q}};let Lf=class extends K{constructor(e){super(Y,`event`,!0),this.activity=U(e.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=e.id||``,this.listen=U(e.listen,[`refOnly`,`refAndDescendents`]),this.name=e.name||``,this.ref=e.ref||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}};var Rf=class extends id{constructor(e){super(Y,`exData`),this.contentType=e.contentType||``,this.href=e.href||``,this.id=e.id||``,this.maxLength=H({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1}),this.name=e.name||``,this.rid=e.rid||``,this.transferEncoding=U(e.transferEncoding,[`none`,`base64`,`package`]),this.use=e.use||``,this.usehref=e.usehref||``}[Ll](){return this.contentType===`text/html`}[Xl](e){return(this.contentType===`text/html`&&e[ql]===gu.xhtml.id||this.contentType===`text/xml`)&&(this[z]=e,!0)}[V](e){return this.contentType===`text/html`&&this[z]?this[z][V](e):G.EMPTY}},zf=class extends K{constructor(e){super(Y,`exObject`,!0),this.archive=e.archive||``,this.classId=e.classId||``,this.codeBase=e.codeBase||``,this.codeType=e.codeType||``,this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.boolean=new q,this.date=new q,this.dateTime=new q,this.decimal=new q,this.exData=new q,this.exObject=new q,this.float=new q,this.image=new q,this.integer=new q,this.text=new q,this.time=new q}},Bf=class extends K{constructor(e){super(Y,`exclGroup`,!0),this.access=U(e.access,[`open`,`nonInteractive`,`protected`,`readOnly`]),this.accessKey=e.accessKey||``,this.anchorType=U(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=H({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.h=e.h?W(e.h):``,this.hAlign=U(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.layout=U(e.layout,[`position`,`lr-tb`,`rl-row`,`rl-tb`,`row`,`table`,`tb`]),this.maxH=W(e.maxH,`0pt`),this.maxW=W(e.maxW,`0pt`),this.minH=W(e.minH,`0pt`),this.minW=W(e.minW,`0pt`),this.name=e.name||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?W(e.w):``,this.x=W(e.x,`0pt`),this.y=W(e.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 q,this.event=new q,this.field=new q,this.setProperty=new q}[Rl](){return!0}[Nl](){return!0}[cu](e){for(let t of this.field.children){if(!t.value){let e=new Qp({});t[ol](e),t.value=e}t.value[cu](e)}}[Ul](){return this.layout.endsWith(`-tb`)&&this[B].attempt===0&&this[B].numberInLine>0||this[Al]()[Ul]()}[Hl](){let e=this[kl]();return!!e[Hl]()&&(this[B]._isSplittable===void 0?this.layout===`position`||this.layout.includes(`row`)?(this[B]._isSplittable=!1,!1):(!e.layout?.endsWith(`-tb`)||e[B].numberInLine===0)&&(this[B]._isSplittable=!0,!0):this[B]._isSplittable)}[gl](){return Dd(this)}[al](e,t){Od(this,e,t)}[yl](){return kd(this)}[V](e){if(Bd(this),this.presence===`hidden`||this.presence===`inactive`||this.h===0||this.w===0)return G.EMPTY;hd(this);let t=[],n={id:this[mu],class:[]};bd(this,n.class),this[B]||=Object.create(null),Object.assign(this[B],{children:t,attributes:n,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});let r=this[Hl]();if(r||Wd(this),!Ad(this,e))return G.FAILURE;let i=new Set([`field`]);if(this.layout.includes(`row`)){let e=this[kl]().columnWidths;Array.isArray(e)&&e.length>0&&(this[B].columnWidths=e,this[B].currentColumn=0)}let a=_d(this,`anchorType`,`dimensions`,`position`,`presence`,`border`,`margin`,`hAlign`),o=[`xfaExclgroup`],s=gd(this);s&&o.push(s),xd(this)&&o.push(`xfaPrintOnly`),n.style=a,n.class=o,this.name&&(n.xfaName=this.name),this[tu]();let c=this.layout===`lr-tb`||this.layout===`rl-tb`,l=c?2:1;for(;this[B].attempt<l;this[B].attempt++){c&&this[B].attempt===1&&(this[B].numberInLine=0);let e=this[sl]({filter:i,include:!0});if(e.success)break;if(e.isBreak())return this[eu](),e;if(c&&this[B].attempt===0&&this[B].numberInLine===0&&!this[jl]()[B].noLayoutFailure){this[B].attempt=l;break}}if(this[eu](),r||Gd(this),this[B].attempt===l)return r||delete this[B],G.FAILURE;let u=0,d=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,d=this.margin.topInset+this.margin.bottomInset);let f=Math.max(this[B].width+u,this.w||0),p=Math.max(this[B].height+d,this.h||0),m=[this.x,this.y,f,p];this.w===``&&(a.width=J(f)),this.h===``&&(a.height=J(p));let h={name:`div`,attributes:n,children:t};return Vd(this,n),delete this[B],G.success(vd(this,h),m)}},Vf=class extends K{constructor(e){super(Y,`execute`),this.connection=e.connection||``,this.executeType=U(e.executeType,[`import`,`remerge`]),this.id=e.id||``,this.runAt=U(e.runAt,[`client`,`both`,`server`]),this.use=e.use||``,this.usehref=e.usehref||``}},Hf=class extends K{constructor(e){super(Y,`extras`,!0),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new q,this.date=new q,this.dateTime=new q,this.decimal=new q,this.exData=new q,this.extras=new q,this.float=new q,this.image=new q,this.integer=new q,this.text=new q,this.time=new q}},Uf=class extends K{constructor(e){super(Y,`field`,!0),this.access=U(e.access,[`open`,`nonInteractive`,`protected`,`readOnly`]),this.accessKey=e.accessKey||``,this.anchorType=U(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=H({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.h=e.h?W(e.h):``,this.hAlign=U(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.locale=e.locale||``,this.maxH=W(e.maxH,`0pt`),this.maxW=W(e.maxW,`0pt`),this.minH=W(e.minH,`0pt`),this.minW=W(e.minW,`0pt`),this.name=e.name||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Cu(e.relevant),this.rotate=H({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?W(e.w):``,this.x=W(e.x,`0pt`),this.y=W(e.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 q(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 q,this.connect=new q,this.event=new q,this.setProperty=new q}[Rl](){return!0}[cu](e){Ld(this,e)}[V](e){if(Bd(this),!this.ui){let e;switch(this.ui=new Xp({}),this.ui[Ml]=this[Ml],this[ol](this.ui),this.items.children.length){case 0:e=new Wp({}),this.ui.textEdit=e;break;case 1:e=new pf({}),this.ui.checkButton=e;break;case 2:e=new mf({}),this.ui.choiceList=e}this.ui[ol](e)}if(!this.ui||this.presence===`hidden`||this.presence===`inactive`||this.h===0||this.w===0)return G.EMPTY;this.caption&&delete this.caption[B],this[tu]();let t=this.caption?this.caption[V](e).html:null,n=this.w,r=this.h,i=0,a=0;this.margin&&(i=this.margin.leftInset+this.margin.rightInset,a=this.margin.topInset+this.margin.bottomInset);let o=null;if(this.w===``||this.h===``){let t=null,n=null,r=0,s=0;if(this.ui.checkButton)r=s=this.ui.checkButton.size;else{let{w:t,h:n}=pd(this,e);t===null?s=function(e,t=!1){let n=null;if(e){let t=yu(e.typeface);n=Tu(e,e[Ml].fontFinder.find(t))}if(!n)return{lineHeight:12,lineGap:2,lineNoGap:10};let r=e.size||10,i=n.lineHeight?Math.max(t?0:1.2,n.lineHeight):1.2,a=n.lineGap===void 0?.2:n.lineGap;return{lineHeight:i*r,lineGap:a*r,lineNoGap:Math.max(1,i-a)*r}}(this.font,!0).lineNoGap:(r=t,s=n)}if(o=Fd(this.ui[wl]()),r+=o.w,s+=o.h,this.caption){let{w:i,h:a,isBroken:o}=this.caption[wl](e);if(o&&this[kl]()[Ul]())return this[eu](),G.FAILURE;switch(t=i,n=a,this.caption.placement){case`left`:case`right`:case`inline`:t+=r;break;case`top`:case`bottom`:n+=s}}else t=r,n=s;t&&this.w===``&&(t+=i,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<t?t:this.minW)),n&&this.h===``&&(n+=a,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<n?n:this.minH))}if(this[eu](),hd(this),Wd(this),!Ad(this,e))return this.w=n,this.h=r,this[eu](),G.FAILURE;Gd(this);let s=_d(this,`font`,`dimensions`,`position`,`rotate`,`anchorType`,`presence`,`margin`,`hAlign`);dd(this,s);let c=[`xfaField`];this.font&&c.push(`xfaFont`),xd(this)&&c.push(`xfaPrintOnly`);let l={style:s,id:this[mu],class:c};s.margin&&(s.padding=s.margin,delete s.margin),bd(this,c),this.name&&(l.xfaName=this.name);let u=[],d={name:`div`,attributes:l,children:u};Vd(this,l);let f=this.border?this.border[pu]():null,p=md(this,d,e),m=this.ui[V]().html;if(!m)return Object.assign(s,f),G.success(vd(this,d),p);this[lu]&&(m.children?.[0]?m.children[0].attributes.tabindex=this[lu]:m.attributes.tabindex=this[lu]),m.attributes.style||=Object.create(null);let h=null;if(this.ui.button?(m.children.length===1&&([h]=m.children.splice(0,1)),Object.assign(m.attributes.style,f)):Object.assign(s,f),u.push(m),this.value){if(this.ui.imageEdit)m.children.push(this.value[V]().html);else if(!this.ui.button){let e=``;if(this.value.exData)e=this.value.exData[uu]();else if(this.value.text)e=this.value.text[wl]();else{let t=this.value[V]().html;t!==null&&(e=t.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(m.children[0].attributes.maxLength=this.value.text.maxChars),e&&(this.ui.numericEdit&&(e=parseFloat(e),e=isNaN(e)?``:e.toString()),m.children[0].name===`textarea`?m.children[0].attributes.textContent=e:m.children[0].attributes.value=e)}}if(!this.ui.imageEdit&&m.children?.[0]&&this.h){o||=Fd(this.ui[wl]());let t=0;if(this.caption&&[`top`,`bottom`].includes(this.caption.placement)){t=this.caption.reserve,t<=0&&(t=this.caption[wl](e).h);let n=this.h-t-a-o.h;m.children[0].attributes.style.height=J(n)}else m.children[0].attributes.style.height=`100%`}if(h&&m.children.push(h),!t)return m.attributes.class&&m.attributes.class.push(`xfaLeft`),this.w=n,this.h=r,G.success(vd(this,d),p);if(this.ui.button)return s.padding&&delete s.padding,t.name===`div`&&(t.name=`span`),m.children.push(t),G.success(d,p);switch(this.ui.checkButton&&(t.attributes.class[0]=`xfaCaptionForCheckButton`),m.attributes.class||=[],m.children.splice(0,0,t),this.caption.placement){case`left`:case`inline`: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`)}return this.w=n,this.h=r,G.success(vd(this,d),p)}},Wf=class extends K{constructor(e){super(Y,`fill`,!0),this.id=e.id||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[pu](){let e=this[Al](),t=e[Al]()[Al](),n=Object.create(null),r=`color`,i=r;e instanceof rf&&(r=`background-color`,i=`background`,t instanceof Xp&&(n.backgroundColor=`white`)),(e instanceof Dp||e instanceof Yd)&&(r=i=`fill`,n.fill=`white`);for(let e of Object.getOwnPropertyNames(this)){if(e===`extras`||e===`color`)continue;let t=this[e];if(!(t instanceof K))continue;let a=t[pu](this.color);return a&&(n[a.startsWith(`#`)?r:i]=a),n}if(this.color?.value){let e=this.color[pu]();n[e.startsWith(`#`)?r:i]=e}return n}},Gf=class extends K{constructor(e){super(Y,`filter`,!0),this.addRevocationInfo=U(e.addRevocationInfo,[``,`required`,`optional`,`none`]),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.version=H({data:this.version,defaultValue:5,validate:e=>e>=1&&e<=5}),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}},Kf=class extends id{constructor(e){super(Y,`float`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[hl](){let e=parseFloat(this[z].trim());this[z]=isNaN(e)?null:e}[V](e){return Ud(this[z]===null?``:this[z].toString())}},qf=class extends K{constructor(e){super(Y,`font`,!0),this.baselineShift=W(e.baselineShift),this.fontHorizontalScale=bu({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0}),this.fontVerticalScale=bu({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0}),this.id=e.id||``,this.kerningMode=U(e.kerningMode,[`none`,`pair`]),this.letterSpacing=W(e.letterSpacing,`0`),this.lineThrough=H({data:e.lineThrough,defaultValue:0,validate:e=>e===1||e===2}),this.lineThroughPeriod=U(e.lineThroughPeriod,[`all`,`word`]),this.overline=H({data:e.overline,defaultValue:0,validate:e=>e===1||e===2}),this.overlinePeriod=U(e.overlinePeriod,[`all`,`word`]),this.posture=U(e.posture,[`normal`,`italic`]),this.size=W(e.size,`10pt`),this.typeface=e.typeface||`Courier`,this.underline=H({data:e.underline,defaultValue:0,validate:e=>e===1||e===2}),this.underlinePeriod=U(e.underlinePeriod,[`all`,`word`]),this.use=e.use||``,this.usehref=e.usehref||``,this.weight=U(e.weight,[`normal`,`bold`]),this.extras=null,this.fill=null}[cl](e){super[cl](e),this[Ml].usedTypefaces.add(this.typeface)}[pu](){let e=_d(this,`fill`),t=e.color;return t&&(t===`#000000`?delete e.color:t.startsWith(`#`)||(e.background=t,e.backgroundClip=`text`,e.color=`transparent`)),this.baselineShift&&(e.verticalAlign=J(this.baselineShift)),e.fontKerning=this.kerningMode===`none`?`none`:`normal`,e.letterSpacing=J(this.letterSpacing),this.lineThrough!==0&&(e.textDecoration=`line-through`,this.lineThrough===2&&(e.textDecorationStyle=`double`)),this.overline!==0&&(e.textDecoration=`overline`,this.overline===2&&(e.textDecorationStyle=`double`)),e.fontStyle=this.posture,e.fontSize=J(.99*this.size),wd(this,this,this[Ml].fontFinder,e),this.underline!==0&&(e.textDecoration=`underline`,this.underline===2&&(e.textDecorationStyle=`double`)),e.fontWeight=this.weight,e}},Jf=class extends K{constructor(e){super(Y,`format`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.picture=null}},Yf=class extends od{constructor(e){super(Y,`handler`),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},Xf=class extends K{constructor(e){super(Y,`hyphenation`),this.excludeAllCaps=H({data:e.excludeAllCaps,defaultValue:0,validate:e=>e===1}),this.excludeInitialCap=H({data:e.excludeInitialCap,defaultValue:0,validate:e=>e===1}),this.hyphenate=H({data:e.hyphenate,defaultValue:0,validate:e=>e===1}),this.id=e.id||``,this.pushCharacterCount=H({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0}),this.remainCharacterCount=H({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0}),this.use=e.use||``,this.usehref=e.usehref||``,this.wordCharacterCount=H({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}};let Zf=class extends od{constructor(e){super(Y,`image`),this.aspect=U(e.aspect,[`fit`,`actual`,`height`,`none`,`width`]),this.contentType=e.contentType||``,this.href=e.href||``,this.id=e.id||``,this.name=e.name||``,this.transferEncoding=U(e.transferEncoding,[`base64`,`none`,`package`]),this.use=e.use||``,this.usehref=e.usehref||``}[V](){if(this.contentType&&!Nd.has(this.contentType.toLowerCase()))return G.EMPTY;let e=this[Ml].images?.get(this.href);if(!e&&(this.href||!this[z]))return G.EMPTY;var t;if(e||this.transferEncoding!==`base64`||(t=this[z],e=Uint8Array.fromBase64?Uint8Array.fromBase64(t):D(atob(t))),!e)return G.EMPTY;if(!this.contentType){for(let[t,n]of Pd)if(e.length>t.length&&t.every((t,n)=>t===e[n])){this.contentType=n;break}if(!this.contentType)return G.EMPTY}let n=new Blob([e],{type:this.contentType}),r;switch(this.aspect){case`fit`:case`actual`:break;case`height`:r={height:`100%`,objectFit:`fill`};break;case`none`:r={width:`100%`,height:`100%`,objectFit:`fill`};break;case`width`:r={width:`100%`,objectFit:`fill`}}let i=this[Al]();return G.success({name:`img`,attributes:{class:[`xfaImage`],style:r,src:URL.createObjectURL(n),alt:i?Hd(i[Al]()):null}})}};var Qf=class extends K{constructor(e){super(Y,`imageEdit`,!0),this.data=U(e.data,[`link`,`embed`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}[V](e){return this.data===`embed`?G.success({name:`div`,children:[],attributes:{}}):G.EMPTY}},$f=class extends id{constructor(e){super(Y,`integer`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[hl](){let e=parseInt(this[z].trim(),10);this[z]=isNaN(e)?null:e}[V](e){return Ud(this[z]===null?``:this[z].toString())}},ep=class extends K{constructor(e){super(Y,`issuers`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=new q}},tp=class extends K{constructor(e){super(Y,`items`,!0),this.id=e.id||``,this.name=e.name||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.ref=e.ref||``,this.save=H({data:e.save,defaultValue:0,validate:e=>e===1}),this.use=e.use||``,this.usehref=e.usehref||``,this.boolean=new q,this.date=new q,this.dateTime=new q,this.decimal=new q,this.exData=new q,this.float=new q,this.image=new q,this.integer=new q,this.text=new q,this.time=new q}[V](){let e=[];for(let t of this[El]())e.push(t[uu]());return G.success(e)}},np=class extends K{constructor(e){super(Y,`keep`,!0),this.id=e.id||``;let t=[`none`,`contentArea`,`pageArea`];this.intact=U(e.intact,t),this.next=U(e.next,t),this.previous=U(e.previous,t),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}},rp=class extends K{constructor(e){super(Y,`keyUsage`);let t=[``,`yes`,`no`];this.crlSign=U(e.crlSign,t),this.dataEncipherment=U(e.dataEncipherment,t),this.decipherOnly=U(e.decipherOnly,t),this.digitalSignature=U(e.digitalSignature,t),this.encipherOnly=U(e.encipherOnly,t),this.id=e.id||``,this.keyAgreement=U(e.keyAgreement,t),this.keyCertSign=U(e.keyCertSign,t),this.keyEncipherment=U(e.keyEncipherment,t),this.nonRepudiation=U(e.nonRepudiation,t),this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}},ip=class extends K{constructor(e){super(Y,`line`,!0),this.hand=U(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.slope=U(e.slope,[`\\`,`/`]),this.use=e.use||``,this.usehref=e.usehref||``,this.edge=null}[V](){let e=this[Al]()[Al](),t=this.edge||new kf({}),n=t[pu](),r=Object.create(null),i=t.presence===`visible`?t.thickness:0,a,o,s,c;r.strokeWidth=J(i),r.stroke=n.color;let l=`100%`,u=`100%`;e.w<=i?([a,o,s,c]=[`50%`,0,`50%`,`100%`],l=r.strokeWidth):e.h<=i?([a,o,s,c]=[0,`50%`,`100%`,`50%`],u=r.strokeWidth):this.slope===`\\`?[a,o,s,c]=[0,0,`100%`,`100%`]:[a,o,s,c]=[0,`100%`,`100%`,0];let d={name:`svg`,children:[{name:`line`,attributes:{xmlns:jd,x1:a,y1:o,x2:s,y2:c,style:r}}],attributes:{xmlns:jd,width:l,height:u,style:{overflow:`visible`}}};return Id(e)?G.success({name:`div`,attributes:{style:{display:`inline`,width:`100%`,height:`100%`}},children:[d]}):(d.attributes.style.position=`absolute`,G.success(d))}},ap=class extends K{constructor(e){super(Y,`linear`,!0),this.id=e.id||``,this.type=U(e.type,[`toRight`,`toBottom`,`toLeft`,`toTop`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[pu](e){return e=e?e[pu]():`#FFFFFF`,`linear-gradient(${this.type.replace(/([RBLT])/,` $1`).toLowerCase()}, ${e}, ${this.color?this.color[pu]():`#000000`})`}},op=class extends id{constructor(e){super(Y,`lockDocument`),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``}[hl](){this[z]=U(this[z],[`auto`,`0`,`1`])}},sp=class extends K{constructor(e){super(Y,`manifest`,!0),this.action=U(e.action,[`include`,`all`,`exclude`]),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.ref=new q}},cp=class extends K{constructor(e){super(Y,`margin`,!0),this.bottomInset=W(e.bottomInset,`0`),this.id=e.id||``,this.leftInset=W(e.leftInset,`0`),this.rightInset=W(e.rightInset,`0`),this.topInset=W(e.topInset,`0`),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[pu](){return{margin:J(this.topInset)+` `+J(this.rightInset)+` `+J(this.bottomInset)+` `+J(this.leftInset)}}},lp=class extends K{constructor(e){super(Y,`mdp`),this.id=e.id||``,this.permissions=H({data:e.permissions,defaultValue:2,validate:e=>e===1||e===3}),this.signatureType=U(e.signatureType,[`filler`,`author`]),this.use=e.use||``,this.usehref=e.usehref||``}},up=class extends K{constructor(e){super(Y,`medium`),this.id=e.id||``,this.imagingBBox=function(e){if(!e)return{x:-1,y:-1,width:-1,height:-1};let t=e.split(`,`,4).map(e=>W(e.trim(),`-1`));if(t.length<4||t[2]<0||t[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[n,r,i,a]=t;return{x:n,y:r,width:i,height:a}}(e.imagingBBox),this.long=W(e.long),this.orientation=U(e.orientation,[`portrait`,`landscape`]),this.short=W(e.short),this.stock=e.stock||``,this.trayIn=U(e.trayIn,[`auto`,`delegate`,`pageFront`]),this.trayOut=U(e.trayOut,[`auto`,`delegate`]),this.use=e.use||``,this.usehref=e.usehref||``}},dp=class extends K{constructor(e){super(Y,`message`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.text=new q}},fp=class extends K{constructor(e){super(Y,`numericEdit`,!0),this.hScrollPolicy=U(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.comb=null,this.extras=null,this.margin=null}[V](e){let t=_d(this,`border`,`font`,`margin`),n=this[Al]()[Al](),r={name:`input`,attributes:{type:`text`,fieldId:n[mu],dataId:n[pl]?.[mu]||n[mu],class:[`xfaTextfield`],style:t,"aria-label":Hd(n),"aria-required":!1}};return zd(n)&&(r.attributes[`aria-required`]=!0,r.attributes.required=!0),G.success({name:`label`,attributes:{class:[`xfaLabel`]},children:[r]})}},pp=class extends K{constructor(e){super(Y,`occur`,!0),this.id=e.id||``,this.initial=e.initial===``?``:H({data:e.initial,defaultValue:``,validate:e=>!0}),this.max=e.max===``?``:H({data:e.max,defaultValue:1,validate:e=>!0}),this.min=e.min===``?``:H({data:e.min,defaultValue:1,validate:e=>!0}),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[cl](){let e=this[Al](),t=this.min;this.min===``&&(this.min=e instanceof _p||e instanceof vp?0:1),this.max===``&&(this.max=t===``?e instanceof _p||e instanceof vp?-1:1:this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===``&&(this.initial=e instanceof Hp?1:this.min)}},mp=class extends od{constructor(e){super(Y,`oid`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},hp=class extends K{constructor(e){super(Y,`oids`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.oid=new q}},gp=class extends K{constructor(e){super(Y,`overflow`),this.id=e.id||``,this.leader=e.leader||``,this.target=e.target||``,this.trailer=e.trailer||``,this.use=e.use||``,this.usehref=e.usehref||``}[wl](){if(!this[B]){let e=this[Al](),t=this[jl](),n=t[au](this.target,e),r=t[au](this.leader,e),i=t[au](this.trailer,e);this[B]={target:n?.[0]||null,leader:r?.[0]||null,trailer:i?.[0]||null,addLeader:!1,addTrailer:!1}}return this[B]}},_p=class extends K{constructor(e){super(Y,`pageArea`,!0),this.blankOrNotBlank=U(e.blankOrNotBlank,[`any`,`blank`,`notBlank`]),this.id=e.id||``,this.initialNumber=H({data:e.initialNumber,defaultValue:1,validate:e=>!0}),this.name=e.name||``,this.numbered=H({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=U(e.oddOrEven,[`any`,`even`,`odd`]),this.pagePosition=U(e.pagePosition,[`any`,`first`,`last`,`only`,`rest`]),this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new q,this.contentArea=new q,this.draw=new q,this.exclGroup=new q,this.field=new q,this.subform=new q}[Gl](){return this[B]?!this.occur||this.occur.max===-1||this[B].numberOfUse<this.occur.max:(this[B]={numberOfUse:0},!0)}[ll](){delete this[B]}[Ol](){this[B]||={numberOfUse:0};let e=this[Al]();return e.relation===`orderedOccurrence`&&this[Gl]()?(this[B].numberOfUse+=1,this):e[Ol]()}[yl](){return this[B].space||{width:0,height:0}}[V](){this[B]||={numberOfUse:1};let e=[];this[B].children=e;let t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=J(this.medium.short),t.height=J(this.medium.long),this[B].space={width:this.medium.short,height:this.medium.long},this.medium.orientation===`landscape`){let e=t.width;t.width=t.height,t.height=e,this[B].space={width:this.medium.long,height:this.medium.short}}}else m(`XFA - No medium specified in pageArea: please file a bug.`);return this[sl]({filter:new Set([`area`,`draw`,`field`,`subform`]),include:!0}),this[sl]({filter:new Set([`contentArea`]),include:!0}),G.success({name:`div`,children:e,attributes:{class:[`xfaPage`],id:this[mu],style:t,xfaName:this.name}})}},vp=class e extends K{constructor(e){super(Y,`pageSet`,!0),this.duplexImposition=U(e.duplexImposition,[`longEdge`,`shortEdge`]),this.id=e.id||``,this.name=e.name||``,this.relation=U(e.relation,[`orderedOccurrence`,`duplexPaginated`,`simplexPaginated`]),this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null,this.occur=null,this.pageArea=new q,this.pageSet=new q}[ll](){for(let e of this.pageArea.children)e[ll]();for(let e of this.pageSet.children)e[ll]()}[Gl](){return!this.occur||this.occur.max===-1||this[B].numberOfUse<this.occur.max}[Ol](){if(this[B]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1},this.relation===`orderedOccurrence`){if(this[B].pageIndex+1<this.pageArea.children.length)return this[B].pageIndex+=1,this.pageArea.children[this[B].pageIndex][Ol]();if(this[B].pageSetIndex+1<this.pageSet.children.length)return this[B].pageSetIndex+=1,this.pageSet.children[this[B].pageSetIndex][Ol]();if(this[Gl]())return this[B].numberOfUse+=1,this[B].pageIndex=-1,this[B].pageSetIndex=-1,this[Ol]();let t=this[Al]();return t instanceof e?t[Ol]():(this[ll](),this[Ol]())}let t=this[jl]()[B].pageNumber,n=t%2==0?`even`:`odd`,r=t===0?`first`:`rest`,i=this.pageArea.children.find(e=>e.oddOrEven===n&&e.pagePosition===r);return i||(i=this.pageArea.children.find(e=>e.oddOrEven===`any`&&e.pagePosition===r),i||(i=this.pageArea.children.find(e=>e.oddOrEven===`any`&&e.pagePosition===`any`),i||this.pageArea.children[0]))}},yp=class extends K{constructor(e){super(Y,`para`,!0),this.hAlign=U(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.lineHeight=e.lineHeight?W(e.lineHeight,`0pt`):``,this.marginLeft=e.marginLeft?W(e.marginLeft,`0pt`):``,this.marginRight=e.marginRight?W(e.marginRight,`0pt`):``,this.orphans=H({data:e.orphans,defaultValue:0,validate:e=>e>=0}),this.preserve=e.preserve||``,this.radixOffset=e.radixOffset?W(e.radixOffset,`0pt`):``,this.spaceAbove=e.spaceAbove?W(e.spaceAbove,`0pt`):``,this.spaceBelow=e.spaceBelow?W(e.spaceBelow,`0pt`):``,this.tabDefault=e.tabDefault?W(this.tabDefault):``,this.tabStops=(e.tabStops||``).trim().split(/\s+/).map((e,t)=>t%2==1?W(e):e),this.textIndent=e.textIndent?W(e.textIndent,`0pt`):``,this.use=e.use||``,this.usehref=e.usehref||``,this.vAlign=U(e.vAlign,[`top`,`bottom`,`middle`]),this.widows=H({data:e.widows,defaultValue:0,validate:e=>e>=0}),this.hyphenation=null}[pu](){let e=_d(this,`hAlign`);return this.marginLeft!==``&&(e.paddingLeft=J(this.marginLeft)),this.marginRight!==``&&(e.paddingRight=J(this.marginRight)),this.spaceAbove!==``&&(e.paddingTop=J(this.spaceAbove)),this.spaceBelow!==``&&(e.paddingBottom=J(this.spaceBelow)),this.textIndent!==``&&(e.textIndent=J(this.textIndent),yd(e)),this.lineHeight>0&&(e.lineHeight=J(this.lineHeight)),this.tabDefault!==``&&(e.tabSize=J(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[pu]()),e}},bp=class extends K{constructor(e){super(Y,`passwordEdit`,!0),this.hScrollPolicy=U(e.hScrollPolicy,[`auto`,`off`,`on`]),this.id=e.id||``,this.passwordChar=e.passwordChar||`*`,this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.margin=null}},xp=class extends K{constructor(e){super(Y,`pattern`,!0),this.id=e.id||``,this.type=U(e.type,[`crossHatch`,`crossDiagonal`,`diagonalLeft`,`diagonalRight`,`horizontal`,`vertical`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[pu](e){e=e?e[pu]():`#FFFFFF`;let t=this.color?this.color[pu]():`#000000`,n=`repeating-linear-gradient`,r=`${e},${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case`crossHatch`:return`${n}(to top,${r}) ${n}(to right,${r})`;case`crossDiagonal`:return`${n}(45deg,${r}) ${n}(-45deg,${r})`;case`diagonalLeft`:return`${n}(45deg,${r})`;case`diagonalRight`:return`${n}(-45deg,${r})`;case`horizontal`:return`${n}(to top,${r})`;case`vertical`:return`${n}(to right,${r})`}return``}},Sp=class extends od{constructor(e){super(Y,`picture`),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},Cp=class extends K{constructor(e){super(Y,`proto`,!0),this.appearanceFilter=new q,this.arc=new q,this.area=new q,this.assist=new q,this.barcode=new q,this.bindItems=new q,this.bookend=new q,this.boolean=new q,this.border=new q,this.break=new q,this.breakAfter=new q,this.breakBefore=new q,this.button=new q,this.calculate=new q,this.caption=new q,this.certificate=new q,this.certificates=new q,this.checkButton=new q,this.choiceList=new q,this.color=new q,this.comb=new q,this.connect=new q,this.contentArea=new q,this.corner=new q,this.date=new q,this.dateTime=new q,this.dateTimeEdit=new q,this.decimal=new q,this.defaultUi=new q,this.desc=new q,this.digestMethod=new q,this.digestMethods=new q,this.draw=new q,this.edge=new q,this.encoding=new q,this.encodings=new q,this.encrypt=new q,this.encryptData=new q,this.encryption=new q,this.encryptionMethod=new q,this.encryptionMethods=new q,this.event=new q,this.exData=new q,this.exObject=new q,this.exclGroup=new q,this.execute=new q,this.extras=new q,this.field=new q,this.fill=new q,this.filter=new q,this.float=new q,this.font=new q,this.format=new q,this.handler=new q,this.hyphenation=new q,this.image=new q,this.imageEdit=new q,this.integer=new q,this.issuers=new q,this.items=new q,this.keep=new q,this.keyUsage=new q,this.line=new q,this.linear=new q,this.lockDocument=new q,this.manifest=new q,this.margin=new q,this.mdp=new q,this.medium=new q,this.message=new q,this.numericEdit=new q,this.occur=new q,this.oid=new q,this.oids=new q,this.overflow=new q,this.pageArea=new q,this.pageSet=new q,this.para=new q,this.passwordEdit=new q,this.pattern=new q,this.picture=new q,this.radial=new q,this.reason=new q,this.reasons=new q,this.rectangle=new q,this.ref=new q,this.script=new q,this.setProperty=new q,this.signData=new q,this.signature=new q,this.signing=new q,this.solid=new q,this.speak=new q,this.stipple=new q,this.subform=new q,this.subformSet=new q,this.subjectDN=new q,this.subjectDNs=new q,this.submit=new q,this.text=new q,this.textEdit=new q,this.time=new q,this.timeStamp=new q,this.toolTip=new q,this.traversal=new q,this.traverse=new q,this.ui=new q,this.validate=new q,this.value=new q,this.variables=new q}},wp=class extends K{constructor(e){super(Y,`radial`,!0),this.id=e.id||``,this.type=U(e.type,[`toEdge`,`toCenter`]),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[pu](e){e=e?e[pu]():`#FFFFFF`;let t=this.color?this.color[pu]():`#000000`;return`radial-gradient(circle at center, ${this.type===`toEdge`?`${e},${t}`:`${t},${e}`})`}},Tp=class extends od{constructor(e){super(Y,`reason`),this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}},Ep=class extends K{constructor(e){super(Y,`reasons`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.reason=new q}},Dp=class extends K{constructor(e){super(Y,`rectangle`,!0),this.hand=U(e.hand,[`even`,`left`,`right`]),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.corner=new q(4),this.edge=new q(4),this.fill=null}[V](){let e=this.edge.children.length?this.edge.children[0]:new kf({}),t=e[pu](),n=Object.create(null);this.fill?.presence===`visible`?Object.assign(n,this.fill[pu]()):n.fill=`transparent`,n.strokeWidth=J(e.presence===`visible`?e.thickness:0),n.stroke=t.color;let r=(this.corner.children.length?this.corner.children[0]:new yf({}))[pu](),i={name:`svg`,children:[{name:`rect`,attributes:{xmlns:jd,width:`100%`,height:`100%`,x:0,y:0,rx:r.radius,ry:r.radius,style:n}}],attributes:{xmlns:jd,style:{overflow:`visible`},width:`100%`,height:`100%`}};return Id(this[Al]()[Al]())?G.success({name:`div`,attributes:{style:{display:`inline`,width:`100%`,height:`100%`}},children:[i]}):(i.attributes.style.position=`absolute`,G.success(i))}},Op=class extends od{constructor(e){super(Y,`ref`),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``}},kp=class extends od{constructor(e){super(Y,`script`),this.binding=e.binding||``,this.contentType=e.contentType||``,this.id=e.id||``,this.name=e.name||``,this.runAt=U(e.runAt,[`client`,`both`,`server`]),this.use=e.use||``,this.usehref=e.usehref||``}},Ap=class extends K{constructor(e){super(Y,`setProperty`),this.connection=e.connection||``,this.ref=e.ref||``,this.target=e.target||``}},jp=class extends K{constructor(e){super(Y,`signData`,!0),this.id=e.id||``,this.operation=U(e.operation,[`sign`,`clear`,`verify`]),this.ref=e.ref||``,this.target=e.target||``,this.use=e.use||``,this.usehref=e.usehref||``,this.filter=null,this.manifest=null}},Mp=class extends K{constructor(e){super(Y,`signature`,!0),this.id=e.id||``,this.type=U(e.type,[`PDF1.3`,`PDF1.6`]),this.use=e.use||``,this.usehref=e.usehref||``,this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}},Np=class extends K{constructor(e){super(Y,`signing`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.certificate=new q}},Pp=class extends K{constructor(e){super(Y,`solid`,!0),this.id=e.id||``,this.use=e.use||``,this.usehref=e.usehref||``,this.extras=null}[pu](e){return e?e[pu]():`#FFFFFF`}},Fp=class extends od{constructor(e){super(Y,`speak`),this.disable=H({data:e.disable,defaultValue:0,validate:e=>e===1}),this.id=e.id||``,this.priority=U(e.priority,[`custom`,`caption`,`name`,`toolTip`]),this.rid=e.rid||``,this.use=e.use||``,this.usehref=e.usehref||``}},Ip=class extends K{constructor(e){super(Y,`stipple`,!0),this.id=e.id||``,this.rate=H({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100}),this.use=e.use||``,this.usehref=e.usehref||``,this.color=null,this.extras=null}[pu](e){let t=this.rate/100;return M.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}},Lp=class extends K{constructor(e){super(Y,`subform`,!0),this.access=U(e.access,[`open`,`nonInteractive`,`protected`,`readOnly`]),this.allowMacro=H({data:e.allowMacro,defaultValue:0,validate:e=>e===1}),this.anchorType=U(e.anchorType,[`topLeft`,`bottomCenter`,`bottomLeft`,`bottomRight`,`middleCenter`,`middleLeft`,`middleRight`,`topCenter`,`topRight`]),this.colSpan=H({data:e.colSpan,defaultValue:1,validate:e=>e>=1||e===-1}),this.columnWidths=(e.columnWidths||``).trim().split(/\s+/).map(e=>e===`-1`?-1:W(e)),this.h=e.h?W(e.h):``,this.hAlign=U(e.hAlign,[`left`,`center`,`justify`,`justifyAll`,`radix`,`right`]),this.id=e.id||``,this.layout=U(e.layout,[`position`,`lr-tb`,`rl-row`,`rl-tb`,`row`,`table`,`tb`]),this.locale=e.locale||``,this.maxH=W(e.maxH,`0pt`),this.maxW=W(e.maxW,`0pt`),this.mergeMode=U(e.mergeMode,[`consumeData`,`matchTemplate`]),this.minH=W(e.minH,`0pt`),this.minW=W(e.minW,`0pt`),this.name=e.name||``,this.presence=U(e.presence,[`visible`,`hidden`,`inactive`,`invisible`]),this.relevant=Cu(e.relevant),this.restoreState=U(e.restoreState,[`manual`,`auto`]),this.scope=U(e.scope,[`name`,`none`]),this.use=e.use||``,this.usehref=e.usehref||``,this.w=e.w?W(e.w):``,this.x=W(e.x,`0pt`),this.y=W(e.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 q,this.breakAfter=new q,this.breakBefore=new q,this.connect=new q,this.draw=new q,this.event=new q,this.exObject=new q,this.exclGroup=new q,this.field=new q,this.proto=new q,this.setProperty=new q,this.subform=new q,this.subformSet=new q}[kl](){let e=this[Al]();return e instanceof Rp?e[kl]():e}[Rl](){return!0}[Ul](){return this.layout.endsWith(`-tb`)&&this[B].attempt===0&&this[B].numberInLine>0||this[Al]()[Ul]()}*[Dl](){yield*Rd(this)}[gl](){return Dd(this)}[al](e,t){Od(this,e,t)}[yl](){return kd(this)}[Hl](){let e=this[kl]();return!!e[Hl]()&&(this[B]._isSplittable===void 0?this.layout===`position`||this.layout.includes(`row`)||this.keep&&this.keep.intact!==`none`?(this[B]._isSplittable=!1,!1):(!e.layout?.endsWith(`-tb`)||e[B].numberInLine===0)&&(this[B]._isSplittable=!0,!0):this[B]._isSplittable)}[V](e){if(Bd(this),this.break){if(this.break.after!==`auto`||this.break.afterTarget!==``){let e=new of({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[Ml]=this[Ml],this[ol](e),this.breakAfter.push(e)}if(this.break.before!==`auto`||this.break.beforeTarget!==``){let e=new sf({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[Ml]=this[Ml],this[ol](e),this.breakBefore.push(e)}if(this.break.overflowTarget!==``){let e=new gp({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[Ml]=this[Ml],this[ol](e),this.overflow.push(e)}this[nu](this.break),this.break=null}if(this.presence===`hidden`||this.presence===`inactive`)return G.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&m(`XFA - Several breakBefore or breakAfter in subforms: please file a bug.`),this.breakBefore.children.length>=1){let e=this.breakBefore.children[0];if(Kd(e))return G.breakNode(e)}if(this[B]?.afterBreakAfter)return G.EMPTY;hd(this);let t=[],n={id:this[mu],class:[]};bd(this,n.class),this[B]||=Object.create(null),Object.assign(this[B],{children:t,line:null,attributes:n,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});let r=this[jl](),i=r[B].noLayoutFailure,a=this[Hl]();if(a||Wd(this),!Ad(this,e))return G.FAILURE;let o=new Set([`area`,`draw`,`exclGroup`,`field`,`subform`,`subformSet`]);if(this.layout.includes(`row`)){let e=this[kl]().columnWidths;Array.isArray(e)&&e.length>0&&(this[B].columnWidths=e,this[B].currentColumn=0)}let s=_d(this,`anchorType`,`dimensions`,`position`,`presence`,`border`,`margin`,`hAlign`),c=[`xfaSubform`],l=gd(this);if(l&&c.push(l),n.style=s,n.class=c,this.name&&(n.xfaName=this.name),this.overflow){let t=this.overflow[wl]();t.addLeader&&(t.addLeader=!1,qd(this,t.leader,e))}this[tu]();let u=this.layout===`lr-tb`||this.layout===`rl-tb`,d=u?2:1;for(;this[B].attempt<d;this[B].attempt++){u&&this[B].attempt===1&&(this[B].numberInLine=0);let e=this[sl]({filter:o,include:!0});if(e.success)break;if(e.isBreak())return this[eu](),e;if(u&&this[B].attempt===0&&this[B].numberInLine===0&&!r[B].noLayoutFailure){this[B].attempt=d;break}}if(this[eu](),a||Gd(this),r[B].noLayoutFailure=i,this[B].attempt===d)return this.overflow&&(this[jl]()[B].overflowNode=this.overflow),a||delete this[B],G.FAILURE;if(this.overflow){let t=this.overflow[wl]();t.addTrailer&&(t.addTrailer=!1,qd(this,t.trailer,e))}let f=0,p=0;this.margin&&(f=this.margin.leftInset+this.margin.rightInset,p=this.margin.topInset+this.margin.bottomInset);let h=Math.max(this[B].width+f,this.w||0),g=Math.max(this[B].height+p,this.h||0),_=[this.x,this.y,h,g];if(this.w===``&&(s.width=J(h)),this.h===``&&(s.height=J(g)),(s.width===`0px`||s.height===`0px`)&&t.length===0)return G.EMPTY;let v={name:`div`,attributes:n,children:t};Vd(this,n);let y=G.success(vd(this,v),_);if(this.breakAfter.children.length>=1){let e=this.breakAfter.children[0];if(Kd(e))return this[B].afterBreakAfter=y,G.breakNode(e)}return delete this[B],y}},Rp=class extends K{constructor(e){super(Y,`subformSet`,!0),this.id=e.id||``,this.name=e.name||``,this.relation=U(e.relation,[`ordered`,`choice`,`unordered`]),this.relevant=Cu(e.relevant),this.use=e.use||``,this.usehref=e.usehref||``,this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new q,this.breakBefore=new q,this.subform=new q,this.subformSet=new q}*[Dl](){yield*Rd(this)}[kl](){let e=this[Al]();for(;!(e instanceof Lp);)e=e[Al]();return e}[Rl](){return!0}},zp=class extends id{constructor(e){super(Y,`subjectDN`),this.delimiter=e.delimiter||`,`,this.id=e.id||``,this.name=e.name||``,this.use=e.use||``,this.usehref=e.usehref||``}[hl](){this[z]=new Map(this[z].split(this.delimiter).map(e=>((e=e.split(`=`,2))[0]=e[0].trim(),e)))}},Bp=class extends K{constructor(e){super(Y,`subjectDNs`,!0),this.id=e.id||``,this.type=U(e.type,[`optional`,`required`]),this.use=e.use||``,this.usehref=e.usehref||``,this.subjectDN=new q}},Vp=class extends K{constructor(e){super(Y,`submit`,!0),this.embedPDF=H({data:e.embedPDF,defaultValue:0,validate:e=>e===1}),this.format=U(e.format,[`xdp`,`formdata`,`pdf`,`urlencoded`,`xfd`,`xml`]),this.id=e.id||``,this.target=e.target||``,this.textEncoding=xu({data:e.textEncoding?e.textEncoding.toLowerCase():``,defaultValue:``,validate: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}/)}),this.use=e.use||``,this.usehref=e.usehref||``,this.xdpContent=e.xdpContent||``,this.encrypt=null,this.encryptData=new q,this.signData=new q}},Hp=class extends K{constructor(e){super(Y,`template`,!0),this.baseProfile=U(e.baseProfile,[`full`,`interactiveForms`]),this.extras=null,this.subform=new q}[hl](){this.subform.children.length===0&&m(`XFA - No subforms in template node.`),this.subform.children.length>=2&&m(`XFA - Several subforms in template node: please file a bug.`),this[lu]=5e3}[Hl](){return!0}[au](e,t){return e.startsWith(`#`)?[this[Pl].get(e.slice(1))]:Fu(this,t,e,!0,!0)}*[du](){if(!this.subform.children.length)return G.success({name:`div`,children:[]});this[B]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:`first`,oddOrEven:`odd`,blankOrNotBlank:`nonBlank`,paraStack:[]};let e=this.subform.children[0];e.pageSet[ll]();let t=e.pageSet.pageArea.children,n={name:`div`,children:[]},r=null,i=null,a=null;if(e.breakBefore.children.length>=1?(i=e.breakBefore.children[0],a=i.target):e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1?(i=e.subform.children[0].breakBefore.children[0],a=i.target):e.break?.beforeTarget?(i=e.break,a=i.beforeTarget):e.subform.children.length>=1&&e.subform.children[0].break?.beforeTarget&&(i=e.subform.children[0].break,a=i.beforeTarget),i){let e=this[au](a,i[Al]());e instanceof _p&&(r=e,i[B]={})}r||=t[0],r[B]={numberOfUse:1};let o=r[Al](),s;o[B]={numberOfUse:1,pageIndex:o.pageArea.children.indexOf(r),pageSetIndex:0};let c=null,l=null,u=!0,d=0,f=0;for(;;){if(u)d=0;else if(n.children.pop(),++d===3)return m(`XFA - Something goes wrong: please file a bug.`),n;s=null,this[B].currentPageArea=r;let t=r[V]().html;n.children.push(t),c&&=(this[B].noLayoutFailure=!0,t.children.push(c[V](r[B].space).html),null),l&&=(this[B].noLayoutFailure=!0,t.children.push(l[V](r[B].space).html),null);let i=r.contentArea.children,a=t.children.filter(e=>e.attributes.class.includes(`xfaContentarea`));u=!1,this[B].firstUnsplittable=null,this[B].noLayoutFailure=!1;let o=t=>{let n=e[gl]();n&&(u||=n.children?.length>0,a[t].children.push(n))};for(let t=f,r=i.length;t<r;t++){let r=this[B].currentContentArea=i[t],d={width:r.w,height:r.h};f=0,c&&=(a[t].children.push(c[V](d).html),null),l&&=(a[t].children.push(l[V](d).html),null);let p=e[V](d);if(p.success)return p.html?(u||=p.html.children?.length>0,a[t].children.push(p.html)):!u&&n.children.length>1&&n.children.pop(),n;if(p.isBreak()){let e=p.breakNode;if(o(t),e.targetType===`auto`)continue;e.leader&&(c=this[au](e.leader,e[Al]()),c=c?c[0]:null),e.trailer&&(l=this[au](e.trailer,e[Al]()),l=l?l[0]:null),e.targetType===`pageArea`?(s=e[B].target,t=1/0):e[B].target?(s=e[B].target,f=e[B].index+1,t=1/0):t=e[B].index;continue}if(this[B].overflowNode){let e=this[B].overflowNode;this[B].overflowNode=null;let n=e[wl](),r=n.target;n.addLeader=n.leader!==null,n.addTrailer=n.trailer!==null,o(t);let a=t;if(t=1/0,r instanceof _p)s=r;else if(r instanceof vf){let e=i.indexOf(r);e===-1?(s=r[Al](),f=s.contentArea.children.indexOf(r)):e>a?t=e-1:f=e}continue}o(t)}this[B].pageNumber+=1,s&&(s[Gl]()?s[B].numberOfUse+=1:s=null),r=s||r[Ol](),yield null}}},Up=class extends id{constructor(e){super(Y,`text`),this.id=e.id||``,this.maxChars=H({data:e.maxChars,defaultValue:0,validate:e=>e>=0}),this.name=e.name||``,this.rid=e.rid||``,this.use=e.use||``,this.usehref=e.usehref||``}[il](){return!0}[Xl](e){return e[ql]===gu.xhtml.id?(this[z]=e,!0):(m(`XFA - Invalid content in Text: ${e[Jl]}.`),!1)}[Ql](e){this[z]instanceof K||super[Ql](e)}[hl](){typeof this[z]==`string`&&(this[z]=this[z].replaceAll(`\r
|
|
11
11
|
`,`
|