1var ca=Object.defineProperty;var qn=Ft=>{throw TypeError(Ft)};var la=(Ft,Mt,Dt)=>Mt in Ft?ca(Ft,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Ft[Mt]=Dt;var jt=(Ft,Mt,Dt)=>la(Ft,typeof Mt!="symbol"?Mt+"":Mt,Dt),Bn=(Ft,Mt,Dt)=>Mt.has(Ft)||qn("Cannot "+Dt);var Bt=(Ft,Mt,Dt)=>(Bn(Ft,Mt,"read from private field"),Dt?Dt.call(Ft):Mt.get(Ft)),Lt=(Ft,Mt,Dt)=>Mt.has(Ft)?qn("Cannot add the same private member more than once"):Mt instanceof WeakSet?Mt.add(Ft):Mt.set(Ft,Dt),xn=(Ft,Mt,Dt,Gt)=>(Bn(Ft,Mt,"write to private field"),Gt?Gt.call(Ft,Dt):Mt.set(Ft,Dt),Dt),it=(Ft,Mt,Dt)=>(Bn(Ft,Mt,"access private method"),Dt);function ha(Ft,Mt){for(var Dt=0;Dt<Mt.length;Dt++){const Gt=Mt[Dt];if(typeof Gt!="string"&&!Array.isArray(Gt)){for(const Kt in Gt)if(Kt!=="default"&&!(Kt in Ft)){const Qt=Object.getOwnPropertyDescriptor(Gt,Kt);Qt&&Object.defineProperty(Ft,Kt,Qt.get?Qt:{enumerable:!0,get:()=>Gt[Kt]})}}}return Object.freeze(Object.defineProperty(Ft,Symbol.toStringTag,{value:"Module"}))}var Wn={},Vn={exports:{}};(function(Ft,Mt){(function(Gt,Kt){Ft.exports=Gt.pdfjsWorker=Kt()})(globalThis,()=>(()=>{var Dt=[,(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.WorkerTask=p.WorkerMessageHandler=void 0;var n=re(2),P=re(3),j=re(4),e=re(6),t=re(10),l=re(68),V=re(73),J=re(104),B=re(105),I=re(72);class f{constructor(y){this.name=y,this.terminated=!1,this._capability=new n.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}p.WorkerTask=f;class g{static setup(y,O){let N=!1;y.on("test",function(X){N||(N=!0,y.send("test",X instanceof Uint8Array))}),y.on("configure",function(X){(0,n.setVerbosityLevel)(X.verbosity)}),y.on("GetDocRequest",function(X){return g.createDocumentHandler(X,O)})}static createDocumentHandler(y,O){let N,X=!1,R=null;const q=new Set,b=(0,n.getVerbosityLevel)(),{docId:E,apiVersion:c}=y,u="3.11.174";if(c!==u)throw new Error(`The API version "${c}" does not match the Worker version "${u}".`);const T=[];for(const F in[])T.push(F);if(T.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+T.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");const r=E+"_worker";let s=new J.MessageHandler(r,E,O);function o(){if(X)throw new Error("Worker was terminated")}function m(F){q.add(F)}function h(F){F.finish(),q.delete(F)}async function A(F){await N.ensureDoc("checkHeader"),await N.ensureDoc("parseStartXRef"),await N.ensureDoc("parse",[F]),await N.ensureDoc("checkFirstPage",[F]),await N.ensureDoc("checkLastPage",[F]);const M=await N.ensureDoc("isPureXfa");if(M){const G=new f("loadXfaFonts");m(G),await Promise.all([N.loadXfaFonts(s,G).catch(Z=>{}).then(()=>h(G)),N.loadXfaImages()])}const[k,x]=await Promise.all([N.ensureDoc("numPages"),N.ensureDoc("fingerprints")]),C=M?await N.ensureDoc("htmlForXfa"):null;return{numPages:k,fingerprints:x,htmlForXfa:C}}function L({data:F,password:M,disableAutoFetch:k,rangeChunkSize:x,length:C,docBaseUrl:G,enableXfa:Z,evaluatorOptions:ae}){const oe={source:null,disableAutoFetch:k,docBaseUrl:G,docId:E,enableXfa:Z,evaluatorOptions:ae,handler:s,length:C,password:M,rangeChunkSize:x},te=new n.PromiseCapability;let K;if(F){try{oe.source=F,K=new e.LocalPdfManager(oe),te.resolve(K)}catch(z){te.reject(z)}return te.promise}let v,$=[];try{v=new B.PDFWorkerStream(s)}catch(z){return te.reject(z),te.promise}const d=v.getFullReader();d.headersReady.then(function(){if(d.isRangeSupported){oe.source=v,oe.length=d.contentLength,oe.disableAutoFetch||(oe.disableAutoFetch=d.isStreamingSupported),K=new e.NetworkPdfManager(oe);for(const z of $)K.sendProgressiveData(z);$=[],te.resolve(K),R=null}}).catch(function(z){te.reject(z),R=null});let w=0;const S=function(){const z=(0,P.arrayBuffersToBytes)($);C&&z.length!==C&&(0,n.warn)("reported HTTP length is different from actual");try{oe.source=z,K=new e.LocalPdfManager(oe),te.resolve(K)}catch(W){te.reject(W)}$=[]};return new Promise(function(z,W){const ne=function({value:Q,done:D}){try{if(o(),D){K||S(),R=null;return}w+=Q.byteLength,d.isStreamingSupported||s.send("DocProgress",{loaded:w,total:Math.max(w,d.contentLength||0)}),K?K.sendProgressiveData(Q):$.push(Q),d.read().then(ne,W)}catch(Y){W(Y)}};d.read().then(ne,W)}).catch(function(z){te.reject(z),R=null}),R=function(z){v.cancelAllRequests(z)},te.promise}function H(F){function M(C){o(),s.send("GetDoc",{pdfInfo:C})}function k(C){if(o(),C instanceof n.PasswordException){const G=new f(`PasswordException: response ${C.code}`);
1m(G),s.sendWithPromise("PasswordRequest",C).then(function({password:Z}){h(G),N.updatePassword(Z),x()}).catch(function(){h(G),s.send("DocException",C)})}else C instanceof n.InvalidPDFException||C instanceof n.MissingPDFException||C instanceof n.UnexpectedResponseException||C instanceof n.UnknownErrorException?s.send("DocException",C):s.send("DocException",new n.UnknownErrorException(C.message,C.toString()))}function x(){o(),A(!1).then(M,function(C){if(o(),!(C instanceof P.XRefParseException)){k(C);return}N.requestLoadedStream().then(function(){o(),A(!0).then(M,k)})})}o(),L(F).then(function(C){if(X)throw C.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");N=C,N.requestLoadedStream(!0).then(G=>{s.send("DataLoaded",{length:G.bytes.byteLength})})}).then(x,k)}return s.on("GetPage",function(F){return N.getPage(F.pageIndex).then(function(M){return Promise.all([N.ensure(M,"rotate"),N.ensure(M,"ref"),N.ensure(M,"userUnit"),N.ensure(M,"view")]).then(function([k,x,C,G]){return{rotate:k,ref:x,userUnit:C,view:G}})})}),s.on("GetPageIndex",function(F){const M=j.Ref.get(F.num,F.gen);return N.ensureCatalog("getPageIndex",[M])}),s.on("GetDestinations",function(F){return N.ensureCatalog("destinations")}),s.on("GetDestination",function(F){return N.ensureCatalog("getDestination",[F.id])}),s.on("GetPageLabels",function(F){return N.ensureCatalog("pageLabels")}),s.on("GetPageLayout",function(F){return N.ensureCatalog("pageLayout")}),s.on("GetPageMode",function(F){return N.ensureCatalog("pageMode")}),s.on("GetViewerPreferences",function(F){return N.ensureCatalog("viewerPreferences")}),s.on("GetOpenAction",function(F){return N.ensureCatalog("openAction")}),s.on("GetAttachments",function(F){return N.ensureCatalog("attachments")}),s.on("GetDocJSActions",function(F){return N.ensureCatalog("jsActions")}),s.on("GetPageJSActions",function({pageIndex:F}){return N.getPage(F).then(function(M){return N.ensure(M,"jsActions")})}),s.on("GetOutline",function(F){return N.ensureCatalog("documentOutline")}),s.on("GetOptionalContentConfig",function(F){return N.ensureCatalog("optionalContentConfig")}),s.on("GetPermissions",function(F){return N.ensureCatalog("permissions")}),s.on("GetMetadata",function(F){return Promise.all([N.ensureDoc("documentInfo"),N.ensureCatalog("metadata")])}),s.on("GetMarkInfo",function(F){return N.ensureCatalog("markInfo")}),s.on("GetData",function(F){return N.requestLoadedStream().then(function(M){return M.bytes})}),s.on("GetAnnotations",function({pageIndex:F,intent:M}){return N.getPage(F).then(function(k){const x=new f(`GetAnnotations: page ${F}`);return m(x),k.getAnnotationsData(s,x,M).then(C=>(h(x),C),C=>{throw h(x),C})})}),s.on("GetFieldObjects",function(F){return N.ensureDoc("fieldObjects")}),s.on("HasJSActions",function(F){return N.ensureDoc("hasJSActions")}),s.on("GetCalculationOrderIds",function(F){return N.ensureDoc("calculationOrderIds")}),s.on("SaveDocument",async function({isPureXfa:F,numPages:M,annotationStorage:k,filename:x}){const C=[N.requestLoadedStream(),N.ensureCatalog("acroForm"),N.ensureCatalog("acroFormRef"),N.ensureDoc("startXRef"),N.ensureDoc("xref"),N.ensureDoc("linearization"),N.ensureCatalog("structTreeRoot")],G=[],Z=F?null:(0,P.getNewAnnotationsMap)(k),[ae,oe,te,K,v,$,d]=await Promise.all(C),w=v.trailer.getRaw("Root")||null;let S;if(Z){d?await d.canUpdateStructTree({pdfManager:N,newAnnotationsByPage:Z})&&(S=d):await I.StructTreeRoot.canCreateStructureTree({catalogRef:w,pdfManager:N,newAnnotationsByPage:Z})&&(S=null);const se=t.AnnotationFactory.generateImages(k.values(),v,N.evaluatorOptions.isOffscreenCanvasSupported),ce=S===void 0?G:[];for(const[le,de]of Z)ce.push(N.getPage(le).then(he=>{const me=new f(`Save (editor): page ${le}`);return he.saveNewAnnotations(s,me,de,se).finally(function(){h(me)})}));S===null?G.push(Promise.all(ce).then(async le=>(await I.StructTreeRoot.createStructureTree({newAnnotationsByPage:Z,xref:v,catalogRef:w,pdfManager:N,newRefs:le}),le))):S&&G.push(Promise.all(ce).then(async le=>(await S.updateStructureTree({newAnnotationsByPage:Z,pdfManager:N,newRefs:le}),le)))}if(F)G.push(N.serializeXfaData(k));else for(let se=0;se<M;se++)G.push(N.getPage(se).then(function(ce){const le=new f(`Save: page ${se}`);return ce.save(s,le,k).finally(function(){h(le)})}));const z=await Promise.all(G);let W=[],ne=null;if(F){if(ne=z[0],!ne)return ae.bytes}else if(W=z.flat(2),W.length===0)return ae.bytes;const Q=te&&oe instanceof j.Dict&&W.some(se=>se.needAppearances),D=oe instanceof j.Dict&&oe.get("XFA")||null;let Y=null,ie=!1;
1if(Array.isArray(D)){for(let se=0,ce=D.length;se<ce;se+=2)D[se]==="datasets"&&(Y=D[se+1],ie=!0);Y===null&&(Y=v.getNewTemporaryRef())}else D&&(0,n.warn)("Unsupported XFA type.");let ee=Object.create(null);if(v.trailer){const se=Object.create(null),ce=v.trailer.get("Info")||null;ce instanceof j.Dict&&ce.forEach((le,de)=>{typeof de=="string"&&(se[le]=(0,n.stringToPDFString)(de))}),ee={rootRef:w,encryptRef:v.trailer.getRaw("Encrypt")||null,newRef:v.getNewTemporaryRef(),infoRef:v.trailer.getRaw("Info")||null,info:se,fileIds:v.trailer.get("ID")||null,startXRef:$?K:v.lastXRefStreamPos??K,filename:x}}return(0,V.incrementalUpdate)({originalData:ae.bytes,xrefInfo:ee,newRefs:W,xref:v,hasXfa:!!D,xfaDatasetsRef:Y,hasXfaDatasetsEntry:ie,needAppearances:Q,acroFormRef:te,acroForm:oe,xfaData:ne}).finally(()=>{v.resetNewTemporaryRef()})}),s.on("GetOperatorList",function(F,M){const k=F.pageIndex;N.getPage(k).then(function(x){const C=new f(`GetOperatorList: page ${k}`);m(C);const G=b>=n.VerbosityLevel.INFOS?Date.now():0;x.getOperatorList({handler:s,sink:M,task:C,intent:F.intent,cacheKey:F.cacheKey,annotationStorage:F.annotationStorage}).then(function(Z){h(C),G&&(0,n.info)(`page=${k+1} - getOperatorList: time=${Date.now()-G}ms, len=${Z.length}`),M.close()},function(Z){h(C),!C.terminated&&M.error(Z)})})}),s.on("GetTextContent",function(F,M){const{pageIndex:k,includeMarkedContent:x,disableNormalization:C}=F;N.getPage(k).then(function(G){const Z=new f("GetTextContent: page "+k);m(Z);const ae=b>=n.VerbosityLevel.INFOS?Date.now():0;G.extractTextContent({handler:s,task:Z,sink:M,includeMarkedContent:x,disableNormalization:C}).then(function(){h(Z),ae&&(0,n.info)(`page=${k+1} - getTextContent: time=${Date.now()-ae}ms`),M.close()},function(oe){h(Z),!Z.terminated&&M.error(oe)})})}),s.on("GetStructTree",function(F){return N.getPage(F.pageIndex).then(function(M){return N.ensure(M,"getStructTree")})}),s.on("FontFallback",function(F){return N.fontFallback(F.id,s)}),s.on("Cleanup",function(F){return N.cleanup(!0)}),s.on("Terminate",function(F){X=!0;const M=[];if(N){N.terminate(new n.AbortException("Worker was terminated."));const k=N.cleanup();M.push(k),N=null}else(0,l.clearGlobalCaches)();R&&R(new n.AbortException("Worker was terminated."));for(const k of q)M.push(k.finished),k.terminate();return Promise.all(M).then(function(){s.destroy(),s=null})}),s.on("Ready",function(F){H(y),y=null}),r}static initializeFromPort(y){const O=new J.MessageHandler("worker","main",y);g.setup(O,y),O.send("ready",null)}}p.WorkerMessageHandler=g;function a(_){return typeof _.postMessage=="function"&&"onmessage"in _}typeof window>"u"&&!n.isNodeJS&&typeof self<"u"&&a(self)&&g.initializeFromPort(self)},(Re,p)=>{var Me;Object.defineProperty(p,"__esModule",{value:!0}),p.VerbosityLevel=p.Util=p.UnknownErrorException=p.UnexpectedResponseException=p.TextRenderingMode=p.RenderingIntentFlag=p.PromiseCapability=p.PermissionFlag=p.PasswordResponses=p.PasswordException=p.PageActionEventType=p.OPS=p.MissingPDFException=p.MAX_IMAGE_SIZE_TO_CACHE=p.LINE_FACTOR=p.LINE_DESCENT_FACTOR=p.InvalidPDFException=p.ImageKind=p.IDENTITY_MATRIX=p.FormatError=p.FeatureTest=p.FONT_IDENTITY_MATRIX=p.DocumentActionEventType=p.CMapCompressionType=p.BaseException=p.BASELINE_FACTOR=p.AnnotationType=p.AnnotationReplyType=p.AnnotationPrefix=p.AnnotationMode=p.AnnotationFlag=p.AnnotationFieldFlag=p.AnnotationEditorType=p.AnnotationEditorPrefix=p.AnnotationEditorParamsType=p.AnnotationBorderStyleType=p.AnnotationActionEventType=p.AbortException=void 0,p.assert=H,p.bytesToString=v,p.createValidAbsoluteUrl=M,p.getModificationDate=de,p.getUuid=ge,p.getVerbosityLevel=m,p.info=h,p.isArrayBuffer=ce,p.isArrayEqual=le,p.isNodeJS=void 0,p.normalizeUnicode=pe,p.objectFromMap=S,p.objectSize=w,p.setVerbosityLevel=o,p.shadow=k,p.string32=d,p.stringToBytes=$,p.stringToPDFString=ie,p.stringToUTF8String=ee,p.unreachable=L,p.utf8StringToString=se,p.warn=A;const re=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");p.isNodeJS=re;const n=[1,0,0,1,0,0];p.IDENTITY_MATRIX=n;const P=[.001,0,0,.001,0,0];p.FONT_IDENTITY_MATRIX=P;const j=1e7;p.MAX_IMAGE_SIZE_TO_CACHE=j;const e=1.35;p.LINE_FACTOR=e;const t=.35;p.LINE_DESCENT_FACTOR=t;const l=t/e;p.BASELINE_FACTOR=l;const V={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OP
1LIST:256};p.RenderingIntentFlag=V;const J={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};p.AnnotationMode=J;const B="pdfjs_internal_editor_";p.AnnotationEditorPrefix=B;const I={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};p.AnnotationEditorType=I;const f={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};p.AnnotationEditorParamsType=f;const g={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};p.PermissionFlag=g;const a={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};p.TextRenderingMode=a;const _={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};p.ImageKind=_;const y={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};p.AnnotationType=y;const O={GROUP:"Group",REPLY:"R"};p.AnnotationReplyType=O;const N={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};p.AnnotationFlag=N;const X={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};p.AnnotationFieldFlag=X;const R={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};p.AnnotationBorderStyleType=R;const q={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"};p.AnnotationActionEventType=q;const b={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};p.DocumentActionEventType=b;const E={O:"PageOpen",C:"PageClose"};p.PageActionEventType=E;const c={ERRORS:0,WARNINGS:1,INFOS:5};p.VerbosityLevel=c;const u={NONE:0,BINARY:1};p.CMapCompressionType=u;const T={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};p.OPS=T;const r={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};p.PasswordResponses=r;let s=c.WARNINGS;function o(xe){Number.isInteger(xe)&&(s=xe)}function m(){return s}function h(xe){s>=c.INFOS&&console.log(`Info: ${xe}`)}function A(xe){s>=c.WARNINGS&&console.log(`Warning: ${xe}`)}function L(xe){throw new Error(xe)}function H(xe,ue){xe||L(ue)}function F(xe){switch(xe==null?void 0:xe.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function M(xe,ue=null,fe=null){if(!xe)return null;try{if(fe&&typeof xe=="string"){if(fe.addDefaultProtocol&&xe.startsWith("www.")){const ye=xe.match(/\./g);(ye==null?void 0:ye.length)>=2&&(xe=`http://${xe}`)}if(fe.tryConvertEncoding)try{xe=ee(xe)}catch{}}const ke=ue?new URL(xe,ue):new URL(xe);if(F(ke))return ke}catch{}return null}function k(xe,ue,fe,ke=!1){return Object.defineProperty(xe,ue,{value:fe,enumerable:!ke,configurable:!0,writable:!1}),fe}const x=function(){function ue(fe,ke){this.constructor===ue&&L("Cannot initialize BaseException."),this.message=fe,this.name=ke}return ue.prototype=new Error,ue.constructor=ue,ue}();p.BaseException=x;class C extends x{constructor(ue,fe){super(ue,"PasswordException"),this.code=fe}}p.PasswordException=C;class G extends x{constructor(ue,fe){super(ue,"UnknownErrorException"),this.details=fe}}p.UnknownErrorException=G;class Z extends x{constructor(ue){super(ue,"InvalidPDFException")}}p.InvalidPDFException=Z;class ae extends x{constructor(ue){super(ue,"MissingPDFException")}}p.MissingPDFException=ae;class oe extends x{constructor(ue,fe){super(ue,"UnexpectedResponseException"),this.status=fe}}p.UnexpectedResponseException=oe;class te extends x{constructor(ue){super(ue,"FormatError")}}p.FormatError=te;class K extends x{constructor(ue){super(ue,"AbortException")}}p.AbortException=K;function v(xe){(typeof xe!="object"||(xe==null?void 0:xe.length)===void 0)&&L("Invalid argument for bytesToString");const ue=xe.length,fe=8192;if(ue<fe)return String.fromCharCode.apply(null,xe);const ke=[];for(let ye=0;ye<ue;ye+=fe){const $e=Math.min(ye+fe,ue),Xe=xe.subarray(ye,$e);ke.push(String.fromCharCode.apply(null,Xe))}return ke.join("")}function $(xe){typeof xe!="string"&&L("Invalid argument for stringToBytes");const ue=xe.length,fe=new Uint8Array(ue);for(let ke=0;ke<ue;++ke)fe[ke]=xe.charCodeAt(ke)&255;return fe}function d(xe){return String.fromCharCode(xe>>24&255,xe>>16&255,xe>>8&255,xe&255)}function w(xe){return Object.keys(xe).length}function S(xe){const ue=Object.create(null);for(const[fe,ke]of xe)ue[fe]=ke;return ue}function z(){const xe=new Uint8Array(4);return xe[0]=1,new Uint32Array(xe.buffer,0,1)[0]===1}function W(){try{return new Function(""),!0}catch{return!1}}class ne{static get isLittleEndian(){return k(this,"isLittleEndian",z())}static get isEvalSupported(){return k(this,"isEvalSupported",W())}static get isOffscreenCanvasSupported(){return k(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?k(this,"platform",{isWin:!1,isMac:!1}):k(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var ue,fe;return k(this,"isCSSRoundSupported",(fe=(ue=globalThis.CSS)==null?void 0:ue.supports)==null?void 0:fe.call(ue,"width: round(1.5px, 1px)"))}}p.FeatureTest=ne;const Q=[...Array(256).keys()].map(xe=>xe.toString(16).padStart(2,"0"));class D{static makeHexColor(ue,fe,ke){return`#${Q[ue]}${Q[fe]}${Q[ke]}`}static scaleMinMax(ue,fe){let ke;ue[0]?(ue[0]<0&&(ke=fe[0],fe[0]=fe[1],fe[1]=ke),fe[0]*=ue[0],fe[1]*=ue[0],ue[3]<0&&(ke=fe[2],fe[2]=fe[3],fe[3]=ke),fe[2]*=ue[3],fe[3]*=ue[3]):(ke=fe[0],fe[0]=fe[2],fe[2]=ke,ke=fe[1],fe[1]=fe[3],fe[3]=ke,ue[1]<0&&(ke=fe[2],fe[2]=fe[3],fe[3]=ke),fe[2]*=ue[1],fe[3]*=ue[1],ue[2]<0&&(ke=fe[0],fe[0]=fe[1],fe[1]=ke),fe[0]*=ue[2],fe[1]*=ue[2]),fe[0]+=ue[4],fe[1]+=ue[4],fe[2]+=ue[5],fe[3]+=ue[5]}static transform(ue,fe){return[ue[0]*fe[0]+ue[2]*fe[1],ue[1]*fe[0]+ue[3]*fe[1],ue[0]*fe[2]+ue[2]*fe[3],ue[1]*fe[2]+ue[3]*fe[3],ue[0]*fe[4]+ue[2]*fe[5]+ue[4],ue[1]*fe[4]+ue[3]*fe[5]+ue[5]]}static applyTransform(ue,fe){const ke=ue[0]*fe[0]+ue[1]*fe[2]+fe[4],ye=ue[0]*fe[1]+ue[1]*fe[3]+fe[5];return[ke,ye]}static applyInverseTransform(ue,fe){const ke=fe[0]*fe[3]-fe[1]*fe[2],ye=(ue[0]*fe[3]-ue[1]*fe[2]+fe[2]*fe[5]-fe[4]*fe[3])/ke,$e=(-ue[0]*fe[1]+ue[1]*fe[0]+fe[4]*fe[1]-fe[5]*fe[0])/ke;return[ye,$e]}static getAxialAlignedBoundingBox(ue,fe){const ke=this.applyTransform(ue,fe),ye=this.applyTransform(ue.slice(2,4),fe),$e=this.applyTransform([ue[0],ue[3]],fe),Xe=this.applyTransform([ue[2],ue[1]],fe);return[Math.min(ke[0],ye[0],$e[0],Xe[0]),Math.min(ke[1],ye[1],$e[1],Xe[1]),Math.max(ke[0],ye[0],$e[0],Xe[0]),Math.max(ke[1],ye[1],$e[1],Xe[1])]}static inverseTransform(ue){const fe=ue[0]*ue[3]-ue[1]*ue[2];return[ue[3]/fe,-ue[1]/fe,-ue[2]/fe,ue[0]/fe,(ue[2]*ue[5]-ue[4]*ue[3])/fe,(ue[4]*ue[1]-ue[5]*ue[0])/fe]}static singularValueDecompose2dScale(ue){const fe=[ue[0],ue[2],ue[1],ue[3]],ke=ue[0]*fe[0]+ue[1]*fe[2],ye=ue[0]*fe[1]+ue[1]*fe[3],$e=ue[2]*fe[0]+ue[3]*fe[2],Xe=ue[2]*fe[1]+ue[3]*fe[3],Ze=(ke+Xe)/2,Fe=Math.sqrt((ke+Xe)**2-4*(ke*Xe-$e*ye))/2,nt=Ze+Fe||1,We=Ze-Fe||1;return[Math.sqrt(nt),Math.sqrt(We)]}static normalizeRect(ue){const fe=ue.slice(0);return ue[0]>ue[2]&&(fe[0]=ue[2],fe[2]=ue[0]),ue[1]>ue[3]&&(fe[1]=ue[3],fe[3]=ue[1]),fe}static intersect(ue,fe){const ke=Math.max(Math.min(ue[0],ue[2]),Math.min(fe[0],fe[2])),ye=Math.min(Math.max(ue[0],ue[2]),Math.max(fe[0],fe[2]));if(ke>ye)return null;const $e=Math.max(Math.min(ue[1],ue[3]),Math.min(fe[1],fe[3])),Xe=Math.min(Math.max(ue[1],ue[3]),Math.max(fe[1],fe[3]));return $e>Xe?null:[ke,$e,ye,Xe]}static bezierBoundingBox(ue,fe,ke,ye,$e,Xe,Ze,Fe){const nt=[],We=[[],[]];let Ee,Ve,tt,Ne,wt,dt,pt,Ot;for(let bt=0;bt<2;++bt){if(bt===0?(Ve=6*ue-12*ke+6*$e,Ee=-3*ue+9*ke-9*$e+3*Ze,tt=3*ke-3*ue):(Ve=6*fe-12*ye+6*Xe,Ee=-3*fe+9*ye-9*Xe+3*Fe,tt=3*ye-3*fe),Math.abs(Ee)<1e-12){if(Math.abs(Ve)<1e-12)continue;Ne=-tt/Ve,0<Ne&&Ne<1&&nt.push(Ne);continue}pt=Ve*Ve-4*tt*Ee,Ot=Math.sqrt(pt),!(pt<0)&&(wt=(-Ve+Ot)/(2*Ee),0<wt&&wt<1&&nt.push(wt),dt=(-Ve-Ot)/(2*Ee),0<dt&&dt<1&&nt.push(dt))}let ze=nt.length,Ge;const Ue=ze;for(;ze--;)Ne=nt[ze],Ge=1-Ne,We[0][ze]=Ge*Ge*Ge*ue+3*Ge*Ge*Ne*ke+3*Ge*Ne*Ne*$e+Ne*Ne*Ne*Ze,We[1][ze]=Ge*Ge*Ge*fe+3*Ge*Ge*Ne*ye+3*Ge*Ne*Ne*Xe+Ne*Ne*Ne*Fe;return We[0][Ue]=ue,We[1][Ue]=fe,We[0][Ue+1]=Ze,We[1][Ue+1]=Fe,We[0].length=We[1].length=Ue+2,[Math.min(...We[0]),Math.min(...We[1]),Math.max(...We[0]),Math.max(...We[1])]}}p.Util=D;const Y=[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 ie(xe){if(xe[0]>="ï"){let fe;if(xe[0]==="þ"&&xe[1]==="ÿ"?fe="utf-16be":xe[0]==="ÿ"&&xe[1]==="þ"?fe="utf-16le":xe[0]==="ï"&&xe[1]==="»"&&xe[2]==="¿"&&(fe="utf-8"),fe)try{const ke=new TextDecoder(fe,{fatal:!0}),ye=$(xe);return ke.decode(ye)}catch(ke){A(`stringToPDFString: "${ke}".`)}}const ue=[];for(let fe=0,ke=xe.length;fe<ke;fe++){const ye=Y[xe.charCodeAt(fe)];ue.push(ye?String.fromCharCode(ye):xe.charAt(fe))}return ue.join("")}function ee(xe){return decodeURIComponent(escape(xe))}function se(xe){return unescape(encodeURIComponent(xe))}function ce(xe){return typeof xe=="object"&&(xe==null?void 0:xe.byteLength)!==void 0}function le(xe,ue){if(xe.length!==ue.length)return!1;for(let fe=0,ke=xe.length;fe<ke;fe++)if(xe[fe]!==ue[fe])return!1;return!0}function de(xe=new Date){return[xe.getUTCFullYear().toString(),(xe.getUTCMonth()+1).toString().padStart(2,"0"),xe.getUTCDate().toString().padStart(2,"0"),xe.getUTCHours().toString().padStart(2,"0"),xe.getUTCMinutes().toString().padStart(2,"0"),xe.getUTCSeconds().toString().padStart(2,"0")].join("")}class he{constructor(){Lt(this,Me,!1);this.promise=new Promise((ue,fe)=>{this.resolve=ke=>{xn(this,Me,!0),ue(ke)},this.reject=ke=>{xn(this,Me,!0),fe(ke)}})}get settled(){return Bt(this,Me)}}Me=new WeakMap,p.PromiseCapability=he;let me=null,Se=null;function pe(xe){return me||(me=/([\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,Se=new Map([["ï¬
","ſt"]])),xe.replaceAll(me,(ue,fe,ke)=>fe?fe.normalize("NFKC"):Se.get(ke))}function ge(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const xe=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(xe);else for(let ue=0;ue<32;ue++)xe[ue]=Math.floor(Math.random()*255);return v(xe)}const Ae="pdfjs_internal_id_";p.AnnotationPrefix=Ae},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XRefParseException=p.XRefEntryException=p.ParserEOFException=p.PDF_VERSION_REGEXP=p.MissingDataException=void 0,p.arrayBuffersToBytes=I,p.collectActions=c,p.encodeToXmlString=T,p.escapePDFName=q,p.escapeString=b,p.getInheritableProperty=f,p.getL
1ookupTableFactory=t,p.getNewAnnotationsMap=h,p.getRotationMatrix=F,p.isAscii=A,p.isWhiteSpace=X,p.log2=_,p.numberToString=m,p.parseXFAPath=R,p.readInt8=y,p.readUint16=O,p.readUint32=N,p.recoverJsURL=o,p.stringToUTF16HexString=L,p.stringToUTF16String=H,p.toRomanNumerals=a,p.validateCSSFont=s,p.validateFontName=r;var n=re(2),P=re(4),j=re(5);const e=/^[1-9]\.\d$/;p.PDF_VERSION_REGEXP=e;function t(M){let k;return function(){return M&&(k=Object.create(null),M(k),M=null),k}}class l extends n.BaseException{constructor(k,x){super(`Missing data [${k}, ${x})`,"MissingDataException"),this.begin=k,this.end=x}}p.MissingDataException=l;class V extends n.BaseException{constructor(k){super(k,"ParserEOFException")}}p.ParserEOFException=V;class J extends n.BaseException{constructor(k){super(k,"XRefEntryException")}}p.XRefEntryException=J;class B extends n.BaseException{constructor(k){super(k,"XRefParseException")}}p.XRefParseException=B;function I(M){const k=M.length;if(k===0)return new Uint8Array(0);if(k===1)return new Uint8Array(M[0]);let x=0;for(let Z=0;Z<k;Z++)x+=M[Z].byteLength;const C=new Uint8Array(x);let G=0;for(let Z=0;Z<k;Z++){const ae=new Uint8Array(M[Z]);C.set(ae,G),G+=ae.byteLength}return C}function f({dict:M,key:k,getArray:x=!1,stopWhenFound:C=!0}){let G;const Z=new P.RefSet;for(;M instanceof P.Dict&&!(M.objId&&Z.has(M.objId));){M.objId&&Z.put(M.objId);const ae=x?M.getArray(k):M.get(k);if(ae!==void 0){if(C)return ae;(G||(G=[])).push(ae)}M=M.get("Parent")}return G}const g=["","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"];function a(M,k=!1){(0,n.assert)(Number.isInteger(M)&&M>0,"The number should be a positive integer.");const x=[];let C;for(;M>=1e3;)M-=1e3,x.push("M");C=M/100|0,M%=100,x.push(g[C]),C=M/10|0,M%=10,x.push(g[10+C]),x.push(g[20+M]);const G=x.join("");return k?G.toLowerCase():G}function _(M){return M<=0?0:Math.ceil(Math.log2(M))}function y(M,k){return M[k]<<24>>24}function O(M,k){return M[k]<<8|M[k+1]}function N(M,k){return(M[k]<<24|M[k+1]<<16|M[k+2]<<8|M[k+3])>>>0}function X(M){return M===32||M===9||M===13||M===10}function R(M){const k=/(.+)\[(\d+)\]$/;return M.split(".").map(x=>{const C=x.match(k);return C?{name:C[1],pos:parseInt(C[2],10)}:{name:x,pos:0}})}function q(M){const k=[];let x=0;for(let C=0,G=M.length;C<G;C++){const Z=M.charCodeAt(C);(Z<33||Z>126||Z===35||Z===40||Z===41||Z===60||Z===62||Z===91||Z===93||Z===123||Z===125||Z===47||Z===37)&&(x<C&&k.push(M.substring(x,C)),k.push(`#${Z.toString(16)}`),x=C+1)}return k.length===0?M:(x<M.length&&k.push(M.substring(x,M.length)),k.join(""))}function b(M){return M.replaceAll(/([()\\\n\r])/g,k=>k===` 2`?"\\n":k==="\r"?"\\r":`\\${k}`)}function E(M,k,x,C){if(!M)return;let G=null;if(M instanceof P.Ref){if(C.has(M))return;G=M,C.put(G),M=k.fetch(M)}if(Array.isArray(M))for(const Z of M)E(Z,k,x,C);else if(M instanceof P.Dict){if((0,P.isName)(M.get("S"),"JavaScript")){const Z=M.get("JS");let ae;Z instanceof j.BaseStream?ae=Z.getString():typeof Z=="string"&&(ae=Z),ae&&(ae=(0,n.stringToPDFString)(ae).replaceAll("\0","")),ae&&x.push(ae)}E(M.getRaw("Next"),k,x,C)}G&&C.remove(G)}function c(M,k,x){const C=Object.create(null),G=f({dict:k,key:"AA",stopWhenFound:!1});if(G)for(let Z=G.length-1;Z>=0;Z--){const ae=G[Z];if(ae instanceof P.Dict)for(const oe of ae.getKeys()){const te=x[oe];if(!te)continue;const K=ae.getRaw(oe),v=new P.RefSet,$=[];E(K,M,$,v),$.length>0&&(C[te]=$)}}if(k.has("A")){const Z=k.get("A"),ae=new P.RefSet,oe=[];E(Z,M,oe,ae),oe.length>0&&(C.Action=oe)}return(0,n.objectSize)(C)>0?C:null}const u={60:"<",62:">",38:"&",34:""",39:"'"};function T(M){const k=[];let x=0;for(let C=0,G=M.length;C<G;C++){const Z=M.codePointAt(C);if(32<=Z&&Z<=126){const ae=u[Z];ae&&(x<C&&k.push(M.substring(x,C)),k.push(ae),x=C+1)}else x<C&&k.push(M.substring(x,C)),k.push(`&#x${Z.toString(16).toUpperCase()};`),Z>55295&&(Z<57344||Z>65533)&&C++,x=C+1}return k.length===0?M:(x<M.length&&k.push(M.substring(x,M.length)),k.join(""))}function r(M,k=!1){const x=/^("|').*("|')$/.exec(M);if(x&&x[1]===x[2]){if(new RegExp(`[^\\\\]${x[1]}`).test(M.slice(1,-1)))return k&&(0,n.warn)(`FontFamily contains unescaped ${x[1]}: ${M}.`),!1}else for(const C of M.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(C)||
2!/^[\w-\\]+$/.test(C))return k&&(0,n.warn)(`FontFamily contains invalid <custom-ident>: ${M}.`),!1;return!0}function s(M){const k="14",x="400",C=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:G,fontWeight:Z,italicAngle:ae}=M;if(!r(G,!0))return!1;const oe=Z?Z.toString():"";M.fontWeight=C.has(oe)?oe:x;const te=parseFloat(ae);return M.italicAngle=isNaN(te)||te<-90||te>90?k:ae.toString(),!0}function o(M){const k=["app.launchURL","window.open","xfa.host.gotoURL"],C=new RegExp("^\\s*("+k.join("|").replaceAll(".","\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(M);if(C!=null&&C[2]){const G=C[2];let Z=!1;return C[3]==="true"&&C[1]==="app.launchURL"&&(Z=!0),{url:G,newWindow:Z}}return null}function m(M){if(Number.isInteger(M))return M.toString();const k=Math.round(M*100);return k%100===0?(k/100).toString():k%10===0?M.toFixed(1):M.toFixed(2)}function h(M){if(!M)return null;const k=new Map;for(const[x,C]of M){if(!x.startsWith(n.AnnotationEditorPrefix))continue;let G=k.get(C.pageIndex);G||(G=[],k.set(C.pageIndex,G)),G.push(C)}return k.size>0?k:null}function A(M){return/^[\x00-\x7F]*$/.test(M)}function L(M){const k=[];for(let x=0,C=M.length;x<C;x++){const G=M.charCodeAt(x);k.push((G>>8&255).toString(16).padStart(2,"0"),(G&255).toString(16).padStart(2,"0"))}return k.join("")}function H(M,k=!1){const x=[];k&&x.push("þÿ");for(let C=0,G=M.length;C<G;C++){const Z=M.charCodeAt(C);x.push(String.fromCharCode(Z>>8&255),String.fromCharCode(Z&255))}return x.join("")}function F(M,k,x){switch(M){case 90:return[0,1,-1,0,k,0];case 180:return[-1,0,0,-1,k,x];case 270:return[0,-1,1,0,0,x];default:throw new Error("Invalid rotation")}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.RefSetCache=p.RefSet=p.Ref=p.Name=p.EOF=p.Dict=p.Cmd=p.CIRCULAR_REF=void 0,p.clearPrimitiveCaches=V,p.isCmd=O,p.isDict=N,p.isName=y,p.isRefsEqual=X;var n=re(2);const P=Symbol("CIRCULAR_REF");p.CIRCULAR_REF=P;const j=Symbol("EOF");p.EOF=j;let e=Object.create(null),t=Object.create(null),l=Object.create(null);function V(){e=Object.create(null),t=Object.create(null),l=Object.create(null)}class J{constructor(q){this.name=q}static get(q){return t[q]||(t[q]=new J(q))}}p.Name=J;class B{constructor(q){this.cmd=q}static get(q){return e[q]||(e[q]=new B(q))}}p.Cmd=B;const I=function(){return I};class f{constructor(q=null){this._map=Object.create(null),this.xref=q,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=I}assignXref(q){this.xref=q}get size(){return Object.keys(this._map).length}get(q,b,E){let c=this._map[q];return c===void 0&&b!==void 0&&(c=this._map[b],c===void 0&&E!==void 0&&(c=this._map[E])),c instanceof g&&this.xref?this.xref.fetch(c,this.suppressEncryption):c}async getAsync(q,b,E){let c=this._map[q];return c===void 0&&b!==void 0&&(c=this._map[b],c===void 0&&E!==void 0&&(c=this._map[E])),c instanceof g&&this.xref?this.xref.fetchAsync(c,this.suppressEncryption):c}getArray(q,b,E){let c=this._map[q];if(c===void 0&&b!==void 0&&(c=this._map[b],c===void 0&&E!==void 0&&(c=this._map[E])),c instanceof g&&this.xref&&(c=this.xref.fetch(c,this.suppressEncryption)),Array.isArray(c)){c=c.slice();for(let u=0,T=c.length;u<T;u++)c[u]instanceof g&&this.xref&&(c[u]=this.xref.fetch(c[u],this.suppressEncryption))}return c}getRaw(q){return this._map[q]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(q,b){this._map[q]=b}has(q){return this._map[q]!==void 0}forEach(q){for(const b in this._map)q(b,this.get(b))}static get empty(){const q=new f(null);return q.set=(b,E)=>{(0,n.unreachable)("Should not call `set` on the empty dictionary.")},(0,n.shadow)(this,"empty",q)}static merge({xref:q,dictArray:b,mergeSubDicts:E=!1}){const c=new f(q),u=new Map;for(const T of b)if(T instanceof f)for(const[r,s]of Object.entries(T._map)){let o=u.get(r);
2if(o===void 0)o=[],u.set(r,o);else if(!E||!(s instanceof f))continue;o.push(s)}for(const[T,r]of u){if(r.length===1||!(r[0]instanceof f)){c._map[T]=r[0];continue}const s=new f(q);for(const o of r)for(const[m,h]of Object.entries(o._map))s._map[m]===void 0&&(s._map[m]=h);s.size>0&&(c._map[T]=s)}return u.clear(),c.size>0?c:f.empty}clone(){const q=new f(this.xref);for(const b of this.getKeys())q.set(b,this.getRaw(b));return q}}p.Dict=f;class g{constructor(q,b){this.num=q,this.gen=b}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(q){const b=l[q];if(b)return b;const E=/^(\d+)R(\d*)$/.exec(q);return!E||E[1]==="0"?null:l[q]=new g(parseInt(E[1]),E[2]?parseInt(E[2]):0)}static get(q,b){const E=b===0?`${q}R`:`${q}R${b}`;return l[E]||(l[E]=new g(q,b))}}p.Ref=g;class a{constructor(q=null){this._set=new Set(q==null?void 0:q._set)}has(q){return this._set.has(q.toString())}put(q){this._set.add(q.toString())}remove(q){this._set.delete(q.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}p.RefSet=a;class _{constructor(){this._map=new Map}get size(){return this._map.size}get(q){return this._map.get(q.toString())}has(q){return this._map.has(q.toString())}put(q,b){this._map.set(q.toString(),b)}putAlias(q,b){this._map.set(q.toString(),this.get(b))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}p.RefSetCache=_;function y(R,q){return R instanceof J&&(q===void 0||R.name===q)}function O(R,q){return R instanceof B&&(q===void 0||R.cmd===q)}function N(R,q){return R instanceof f&&(q===void 0||y(R.get("Type"),q))}function X(R,q){return R.num===q.num&&R.gen===q.gen}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.BaseStream=void 0;var n=re(2);class P{constructor(){this.constructor===P&&(0,n.unreachable)("Cannot initialize BaseStream.")}get length(){(0,n.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,n.shadow)(this,"isDataLoaded",!0)}getByte(){(0,n.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,n.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte();return e!==-1&&this.pos--,e}peekBytes(e){const t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){const e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){const e=this.getByte(),t=this.getByte(),l=this.getByte(),V=this.getByte();return(e<<24)+(t<<16)+(l<<8)+V}getByteRange(e,t){(0,n.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,n.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,n.unreachable)("Abstract method `reset` called")}moveStart(){(0,n.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t,l=null){(0,n.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}p.BaseStream=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.NetworkPdfManager=p.LocalPdfManager=void 0;var n=re(2),P=re(7),j=re(3),e=re(9),t=re(8);function l(I){if(I){const f=(0,n.createValidAbsoluteUrl)(I);if(f)return f.href;(0,n.warn)(`Invalid absolute docBaseUrl: "${I}".`)}return null}class V{constructor(f){var g;this.constructor===V&&(0,n.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=l(f.docBaseUrl),this._docId=f.docId,this._password=f.password,this.enableXfa=f.enableXfa,(g=f.evaluatorOptions).isOffscreenCanvasSupported&&(g.isOffscreenCanvasSupported=n.FeatureTest.isOffscreenCanvasSupported),this.evaluatorOptions=f.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(f,g){return this.ensure(this.pdfDocument,f,g)}ensureXRef(f,g){return this.ensure(this.pdfDocument.xref,f,g)}ensureCatalog(f,g){return this.ensure(this.pdfDocument.catalog,f,g)}getPage(f){return this.pdfDocument.getPage(f)}fontFallback(f,g){return this.pdfDocument.fontFallback(f,g)}loadXfaFonts(f,g){return this.pdfDocument.loadXfaFonts(f,g)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(f){return this.pdfDocument.serializeXfaData(f)}cleanup(f=!1){return this.pdfDocument.cleanup(f)}async ensure(f,g,a){(0,n.unreachable)("Abstract method `ensure` called")}requestRange(f,g){(0,n.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(f=!1){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(f){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(f){this._password=f}terminate(f){(0,n.unreachable)("Abstract method `terminate` called")}}class J extends V{constructor(f){super(f);const g=new t.Stream(f.source);this.pdfDocument=new e.PDFDocument(this,g),this._loadedStreamPromise=Promise.resolve(g)}async ensure(f,g,a){const _=f[g];return typeof _=="function"?_.apply(f,a):_}requestRange(f,g){return Promise.resolve()}requestLoadedStream(f=!1){return this._loadedStreamPromise}terminate(f){}}p.LocalPdfManager=J;class B extends V{constructor(f){super(f),this.streamManager=new P.ChunkedStreamManager(f.source,{msgHandler:f.handler,length:f.length,disableAutoFetch:f.disableAutoFetch,rangeChunkSize:f.rangeChunkSize}),this.pdfDocument=new e.PDFDocument(this,this.streamManager.getStream())}async ensure(f,g,a){try{const _=f[g];return typeof _=="function"?_.apply(f,a):_}catch(_){if(!(_ instanceof j.MissingDataException))throw _;return await this.requestRange(_.begin,_.end),this.ensure(f,g,a)}}requestRange(f,g){return this.streamManager.requestRange(f,g)}requestLoadedStream(f=!1){return this.streamManager.requestAllChunks(f)}sendProgressiveData(f){this.streamManager.onReceiveData({chunk:f})}terminate(f){this.streamManager.abort(f)}}p.NetworkPdfManager=B},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}
2),p.ChunkedStreamManager=p.ChunkedStream=void 0;var n=re(3),P=re(2),j=re(8);class e extends j.Stream{constructor(V,J,B){super(new Uint8Array(V),0,V,null),this.chunkSize=J,this._loadedChunks=new Set,this.numChunks=Math.ceil(V/J),this.manager=B,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const V=[];for(let J=0,B=this.numChunks;J<B;++J)this._loadedChunks.has(J)||V.push(J);return V}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(V,J){const B=this.chunkSize;if(V%B!==0)throw new Error(`Bad begin offset: ${V}`);const I=V+J.byteLength;if(I%B!==0&&I!==this.bytes.length)throw new Error(`Bad end offset: ${I}`);this.bytes.set(new Uint8Array(J),V);const f=Math.floor(V/B),g=Math.floor((I-1)/B)+1;for(let a=f;a<g;++a)this._loadedChunks.add(a)}onReceiveProgressiveData(V){let J=this.progressiveDataLength;const B=Math.floor(J/this.chunkSize);this.bytes.set(new Uint8Array(V),J),J+=V.byteLength,this.progressiveDataLength=J;const I=J>=this.end?this.numChunks:Math.floor(J/this.chunkSize);for(let f=B;f<I;++f)this._loadedChunks.add(f)}ensureByte(V){if(V<this.progressiveDataLength)return;const J=Math.floor(V/this.chunkSize);if(!(J>this.numChunks)&&J!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(J))throw new n.MissingDataException(V,V+1);this.lastSuccessfulEnsureByteChunk=J}}ensureRange(V,J){if(V>=J||J<=this.progressiveDataLength)return;const B=Math.floor(V/this.chunkSize);if(B>this.numChunks)return;const I=Math.min(Math.floor((J-1)/this.chunkSize)+1,this.numChunks);for(let f=B;f<I;++f)if(!this._loadedChunks.has(f))throw new n.MissingDataException(V,J)}nextEmptyChunk(V){const J=this.numChunks;for(let B=0;B<J;++B){const I=(V+B)%J;if(!this._loadedChunks.has(I))return I}return null}hasChunk(V){return this._loadedChunks.has(V)}getByte(){const V=this.pos;return V>=this.end?-1:(V>=this.progressiveDataLength&&this.ensureByte(V),this.bytes[this.pos++])}getBytes(V){const J=this.bytes,B=this.pos,I=this.end;if(!V)return I>this.progressiveDataLength&&this.ensureRange(B,I),J.subarray(B,I);let f=B+V;return f>I&&(f=I),f>this.progressiveDataLength&&this.ensureRange(B,f),this.pos=f,J.subarray(B,f)}getByteRange(V,J){return V<0&&(V=0),J>this.end&&(J=this.end),J>this.progressiveDataLength&&this.ensureRange(V,J),this.bytes.subarray(V,J)}makeSubStream(V,J,B=null){J?V+J>this.progressiveDataLength&&this.ensureRange(V,V+J):V>=this.progressiveDataLength&&this.ensureByte(V);function I(){}I.prototype=Object.create(this),I.prototype.getMissingChunks=function(){const g=this.chunkSize,a=Math.floor(this.start/g),_=Math.floor((this.end-1)/g)+1,y=[];for(let O=a;O<_;++O)this._loadedChunks.has(O)||y.push(O);return y},Object.defineProperty(I.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0},configurable:!0});const f=new I;return f.pos=f.start=V,f.end=V+J||this.end,f.dict=B,f}getBaseStreams(){return[this]}}p.ChunkedStream=e;class t{constructor(V,J){this.length=J.length,this.chunkSize=J.rangeChunkSize,this.stream=new e(this.length,this.chunkSize,this),this.pdfNetworkStream=V,this.disableAutoFetch=J.disableAutoFetch,this.msgHandler=J.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=new P.PromiseCapability}sendRequest(V,J){const B=this.pdfNetworkStream.getRangeReader(V,J);B.isStreamingSupported||(B.onProgress=this.onProgress.bind(this));let I=[],f=0;return new Promise((g,a)=>{const _=({value:y,done:O})=>{try{if(O){const N=(0,n.arrayBuffersToBytes)(I);I=null,g(N);return}f+=y.byteLength,B.isStreamingSupported&&this.onProgress({loaded:f}),I.push(y),B.read().then(_,a)}catch(N){a(N)}};B.read().then(_,a)}).then(g=>{this.aborted||this.onReceiveData({chunk:g,begin:V})})}requestAllChunks(V=!1){if(!V){const J=this.stream.getMissingChunks();this._requestChunks(J)}return this._loadedStreamCapability.promise}_requestChunks(V){const J=this.currRequestId++,B=new Set;this._chunksNeededByRequest.set(J,B);for(const g of V)this.stream.hasChunk(g)||B.add(g);if(B.size===0)return Promise.resolve();const I=new P.PromiseCapability;this._promisesByRequest.set(J,I);const f=[];for(const g of B){let a=this._requestsByChunk.get(g);a||(a=[],this._requestsByChunk.set(g,a),f.push(g)),a.push(J)}if(f.length>0){const g=this.groupChunks(f);for(const a of g){const _=a.beginChunk*this.chunkSize,y=Math.min(a.endChunk*this.chunkSize,this.length);this.sendRequest(_,y).catch(I.reject)}}return I.promise.catch(g=>{if(!this.aborted)throw g})}getStream(){return this.stream}requestRange(V,J){J=Math.min(J,this.length);
2const B=this.getBeginChunk(V),I=this.getEndChunk(J),f=[];for(let g=B;g<I;++g)f.push(g);return this._requestChunks(f)}requestRanges(V=[]){const J=[];for(const B of V){const I=this.getBeginChunk(B.begin),f=this.getEndChunk(B.end);for(let g=I;g<f;++g)J.includes(g)||J.push(g)}return J.sort(function(B,I){return B-I}),this._requestChunks(J)}groupChunks(V){const J=[];let B=-1,I=-1;for(let f=0,g=V.length;f<g;++f){const a=V[f];B<0&&(B=a),I>=0&&I+1!==a&&(J.push({beginChunk:B,endChunk:I+1}),B=a),f+1===V.length&&J.push({beginChunk:B,endChunk:a+1}),I=a}return J}onProgress(V){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+V.loaded,total:this.length})}onReceiveData(V){const J=V.chunk,B=V.begin===void 0,I=B?this.progressiveDataLength:V.begin,f=I+J.byteLength,g=Math.floor(I/this.chunkSize),a=f<this.length?Math.floor(f/this.chunkSize):Math.ceil(f/this.chunkSize);B?(this.stream.onReceiveProgressiveData(J),this.progressiveDataLength=f):this.stream.onReceiveData(I,J),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);const _=[];for(let y=g;y<a;++y){const O=this._requestsByChunk.get(y);if(O){this._requestsByChunk.delete(y);for(const N of O){const X=this._chunksNeededByRequest.get(N);X.has(y)&&X.delete(y),!(X.size>0)&&_.push(N)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let y;if(this.stream.numChunksLoaded===1){const O=this.stream.numChunks-1;this.stream.hasChunk(O)||(y=O)}else y=this.stream.nextEmptyChunk(a);Number.isInteger(y)&&this._requestChunks([y])}for(const y of _){const O=this._promisesByRequest.get(y);this._promisesByRequest.delete(y),O.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(V){this._loadedStreamCapability.reject(V)}getBeginChunk(V){return Math.floor(V/this.chunkSize)}getEndChunk(V){return Math.floor((V-1)/this.chunkSize)+1}abort(V){var J;this.aborted=!0,(J=this.pdfNetworkStream)==null||J.cancelAllRequests(V);for(const B of this._promisesByRequest.values())B.reject(V)}}p.ChunkedStreamManager=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringStream=p.Stream=p.NullStream=void 0;var n=re(5),P=re(2);class j extends n.BaseStream{constructor(V,J,B,I){super(),this.bytes=V instanceof Uint8Array?V:new Uint8Array(V),this.start=J||0,this.pos=this.start,this.end=J+B||this.bytes.length,this.dict=I}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(V){const J=this.bytes,B=this.pos,I=this.end;if(!V)return J.subarray(B,I);let f=B+V;return f>I&&(f=I),this.pos=f,J.subarray(B,f)}getByteRange(V,J){return V<0&&(V=0),J>this.end&&(J=this.end),this.bytes.subarray(V,J)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(V,J,B=null){return new j(this.bytes.buffer,V,J,B)}}p.Stream=j;class e extends j{constructor(V){super((0,P.stringToBytes)(V))}}p.StringStream=e;class t extends j{constructor(){super(new Uint8Array(0))}}p.NullStream=t},(Re,p,re)=>{var A,Ln,H,$n;Object.defineProperty(p,"__esModule",{value:!0}),p.Page=p.PDFDocument=void 0;var n=re(2),P=re(10),j=re(3),e=re(4),t=re(51),l=re(5),V=re(74),J=re(66),B=re(68),I=re(102),f=re(16),g=re(8),a=re(76),_=re(64),y=re(13),O=re(18),N=re(72),X=re(73),R=re(77),q=re(103);const b=1,E=[0,0,612,792];class c{constructor({pdfManager:k,xref:x,pageIndex:C,pageDict:G,ref:Z,globalIdFactory:ae,fontCache:oe,builtInCMapCache:te,standardFontDataCache:K,globalImageCache:v,systemFontCache:$,nonBlendModesSet:d,xfaFactory:w}){Lt(this,A);this.pdfManager=k,this.pageIndex=C,this.pageDict=G,this.xref=x,this.ref=Z,this.fontCache=oe,this.builtInCMapCache=te,this.standardFontDataCache=K,this.globalImageCache=v,this.systemFontCache=$,this.nonBlendModesSet=d,this.evaluatorOptions=k.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=w;const S={obj:0};this._localIdFactory=class extends ae{static createObjId(){return`p${C}_${++S.obj}`}static getPageObjId(){return`p${Z.toString()}`}}}_getInheritableProperty(k,x=!1){const C=(0,j.getInheritableProperty)({dict:this.pageDict,key:k,getArray:x,stopWhenFound:!1});return Array.isArray(C)?C.length===1||!(C[0]instanceof e.Dict)?C[0]:e.Dict.merge({xref:this.xref,dictArray:C}):C}get content(){return this.pageDict.getArray("Contents")}get resources(){const k=this._getInheritableProperty("Resources");return(0,n.shadow)(this,"resources",k instanceof e.Dict?k:e.Dict.empty)}_getBoundingBox(k){if(this.xfaData)return this.xfaData.bbox;let x=this._getInheritableProperty(k,!0);if(Array.isArray(x)&&x.length===4){if(x=n.Util.normalizeRect(x),x[2]-x[0]>0&&x[3]-x[1]>0)return x;(0,n.warn)(`Empty, or invalid, /${k} entry.`)}return null}get mediaBox(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||E)}get cropBox(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let k=this.pageDict.get("UserUnit");return(typeof k!="number"||k<=0)&&(k=b),(0,n.shadow)(this,"userUnit",k)}get view(){const{cropBox:k,mediaBox:x}=this;if(k!==x&&!(0,n.isArrayEqual)(k,x)){const C=n.Util.intersect(k,x);if(C&&C[2]-C[0]>0&&C[3]-C[1]>0)return(0,n.shadow)(this,"view",C);(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",x)}get rotate(){let k=this._getInheritableProperty("Rotate")||0;return k%90!==0?k=0:k>=360?k%=360:k<0&&(k=(k%360+360)%360),(0,n.shadow)(this,"rotate",k)}_onSubStreamError(k,x){if(this.evaluatorOptions.ignoreErrors){(0,n.warn)(`getContentStream - ignoring sub-stream (${x}): "${k}".`);return}throw k}getContentStream(){return this.pdfManager.ensure(this,"content").then(k=>k instanceof l.BaseStream?k:Array.isArray(k)?new O.StreamsSequenceStream(k,this._onSubStreamError.bind(this)):new g.NullStream)}get xfaData(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(k,x,C,G){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");
2const Z=new y.PartialEvaluator({xref:this.xref,handler:k,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),ae=new e.RefSet,oe=new e.RefSet;it(this,A,Ln).call(this,C,ae,oe);const te=this.pageDict,K=this.annotations.filter(S=>!(S instanceof e.Ref&&ae.has(S))),v=await P.AnnotationFactory.saveNewAnnotations(Z,x,C,G);for(const{ref:S}of v.annotations)S instanceof e.Ref&&!oe.has(S)&&K.push(S);const $=te.get("Annots");te.set("Annots",K);const d=[];await(0,X.writeObject)(this.ref,te,d,this.xref),$&&te.set("Annots",$);const w=v.dependencies;return w.push({ref:this.ref,data:d.join("")},...v.annotations),w}save(k,x,C){const G=new y.PartialEvaluator({xref:this.xref,handler:k,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function(Z){const ae=[];for(const oe of Z)oe.mustBePrinted(C)&&ae.push(oe.save(G,x,C).catch(function(te){return(0,n.warn)(`save - ignoring annotation data during "${x.name}" task: "${te}".`),null}));return Promise.all(ae).then(function(oe){return oe.filter(te=>!!te)})})}loadResources(k){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new a.ObjectLoader(this.resources,k,this.xref).load())}getOperatorList({handler:k,sink:x,task:C,intent:G,cacheKey:Z,annotationStorage:ae=null}){const oe=this.getContentStream(),te=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),K=new y.PartialEvaluator({xref:this.xref,handler:k,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),v=this.xfaFactory?null:(0,j.getNewAnnotationsMap)(ae);let $=null,d=Promise.resolve(null);if(v){const z=v.get(this.pageIndex);if(z){const W=this.pdfManager.ensureDoc("annotationGlobals");let ne;const Q=new Set;for(const{bitmapId:Y,bitmap:ie}of z)Y&&!ie&&!Q.has(Y)&&Q.add(Y);const{isOffscreenCanvasSupported:D}=this.evaluatorOptions;if(Q.size>0){const Y=z.slice();for(const[ie,ee]of ae)ie.startsWith(n.AnnotationEditorPrefix)&&ee.bitmap&&Q.has(ee.bitmapId)&&Y.push(ee);ne=P.AnnotationFactory.generateImages(Y,this.xref,D)}else ne=P.AnnotationFactory.generateImages(z,this.xref,D);$=new e.RefSet,it(this,A,Ln).call(this,z,$,null),d=W.then(Y=>Y?P.AnnotationFactory.printNewAnnotations(Y,K,C,z,ne):null)}}const S=Promise.all([oe,te]).then(([z])=>{const W=new _.OperatorList(G,x);return k.send("StartRenderPage",{transparency:K.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:Z}),K.getOperatorList({stream:z,task:C,resources:this.resources,operatorList:W}).then(function(){return W})});return Promise.all([S,this._parsedAnnotations,d]).then(function([z,W,ne]){if(ne){W=W.filter(se=>!(se.ref&&$.has(se.ref)));for(let se=0,ce=ne.length;se<ce;se++){const le=ne[se];if(le.refToReplace){const de=W.findIndex(he=>he.ref&&(0,e.isRefsEqual)(he.ref,le.refToReplace));de>=0&&(W.splice(de,1,le),ne.splice(se--,1),ce--)}}W=W.concat(ne)}if(W.length===0||G&n.RenderingIntentFlag.ANNOTATIONS_DISABLE)return z.flush(!0),{length:z.totalLength};const Q=!!(G&n.RenderingIntentFlag.ANNOTATIONS_FORMS),D=!!(G&n.RenderingIntentFlag.ANY),Y=!!(G&n.RenderingIntentFlag.DISPLAY),ie=!!(G&n.RenderingIntentFlag.PRINT),ee=[];for(const se of W)(D||Y&&se.mustBeViewed(ae,Q)||ie&&se.mustBePrinted(ae))&&ee.push(se.getOperatorList(K,C,G,Q,ae).catch(function(ce){return(0,n.warn)(`getOperatorList - ignoring annotation data during "${C.name}" task: "${ce}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));return Promise.all(ee).then(function(se){let ce=!1,le=!1;for(const{opList:de,separateForm:he,separateCanvas:me}of se)z.addOpList(de),ce||(ce=he),le||(le=me);return z.flush(!0,{form:ce,canvas:le}),{length:z.totalLength}})})}extractTextContent({handler:k,task:x,includeMarkedContent:C,disableNormalization:G,sink:Z}){const ae=this.getContentStream(),oe=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([ae,oe]).then(([K])=>
2new y.PartialEvaluator({xref:this.xref,handler:k,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}).getTextContent({stream:K,task:x,resources:this.resources,includeMarkedContent:C,disableNormalization:G,sink:Z,viewBox:this.view}))}async getStructTree(){const k=await this.pdfManager.ensureCatalog("structTreeRoot");return k?(await this._parsedAnnotations,(await this.pdfManager.ensure(this,"_parseStructTree",[k])).serializable):null}_parseStructTree(k){const x=new N.StructTreePage(k,this.pageDict);return x.parse(this.ref),x}async getAnnotationsData(k,x,C){const G=await this._parsedAnnotations;if(G.length===0)return G;const Z=[],ae=[];let oe;const te=!!(C&n.RenderingIntentFlag.ANY),K=!!(C&n.RenderingIntentFlag.DISPLAY),v=!!(C&n.RenderingIntentFlag.PRINT);for(const $ of G){const d=te||K&&$.viewable;(d||v&&$.printable)&&Z.push($.data),$.hasTextContent&&d&&(oe||(oe=new y.PartialEvaluator({xref:this.xref,handler:k,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})),ae.push($.extractTextContent(oe,x,[-1/0,-1/0,1/0,1/0]).catch(function(w){(0,n.warn)(`getAnnotationsData - ignoring textContent during "${x.name}" task: "${w}".`)})))}return await Promise.all(ae),Z}get annotations(){const k=this._getInheritableProperty("Annots");return(0,n.shadow)(this,"annotations",Array.isArray(k)?k:[])}get _parsedAnnotations(){const k=this.pdfManager.ensure(this,"annotations").then(async x=>{if(x.length===0)return x;const C=await this.pdfManager.ensureDoc("annotationGlobals");if(!C)return[];const G=[];for(const oe of x)G.push(P.AnnotationFactory.create(this.xref,oe,C,this._localIdFactory,!1,this.ref).catch(function(te){return(0,n.warn)(`_parsedAnnotations: "${te}".`),null}));const Z=[];let ae;for(const oe of await Promise.all(G))if(oe){if(oe instanceof P.PopupAnnotation){(ae||(ae=[])).push(oe);continue}Z.push(oe)}return ae&&Z.push(...ae),Z});return(0,n.shadow)(this,"_parsedAnnotations",k)}get jsActions(){const k=(0,j.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,"jsActions",k)}}A=new WeakSet,Ln=function(k,x,C){for(const G of k)if(G.id){const Z=e.Ref.fromString(G.id);if(!Z){(0,n.warn)(`A non-linked annotation cannot be modified: ${G.id}`);continue}if(G.deleted){x.put(Z);continue}C==null||C.put(Z),G.ref=Z,delete G.id}},p.Page=c;const u=new Uint8Array([37,80,68,70,45]),T=new Uint8Array([115,116,97,114,116,120,114,101,102]),r=new Uint8Array([101,110,100,111,98,106]),s=1024,o="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";function m(M,k,x=1024,C=!1){const G=k.length,Z=M.peekBytes(x),ae=Z.length-G;if(ae<=0)return!1;if(C){const oe=G-1;let te=Z.length-1;for(;te>=oe;){let K=0;for(;K<G&&Z[te-K]===k[oe-K];)K++;if(K>=G)return M.pos+=te-oe,!0;te--}}else{let oe=0;for(;oe<=ae;){let te=0;for(;te<G&&Z[oe+te]===k[te];)te++;if(te>=G)return M.pos+=oe,!0;oe++}}return!1}class h{constructor(k,x){Lt(this,H);if(x.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=k,this.stream=x,this.xref=new q.XRef(x,k),this._pagePromises=new Map,this._version=null;const C={font:0};this._globalIdFactory=class{static getDocId(){return`g_${k.docId}`}static createFontId(){return`f${++C.font}`}static createObjId(){(0,n.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}}parse(k){this.xref.parse(k),this.catalog=new J.Catalog(this.pdfManager,this.xref)}get linearization(){let k=null;try{k=f.Linearization.create(this.stream)}catch(x){if(x instanceof j.MissingDataException)throw x;(0,n.info)(x)}return(0,n.shadow)(this,"linearization",k)}get startXRef(){const k=this.stream;let x=0;if(this.linearization)k.reset(),m(k,r)&&(x=k.pos+6-k.start);else{const G=T.length;let Z=!1,ae=k.end;for(;!Z&&ae>0;)ae-=1024-G,ae<0&&(ae=0),k.pos=ae,Z=m(k,T,1024,!0);if(Z){k.skip(9);let oe;do oe=k.getByte();while((0,j.isWhiteSpace)(oe));let te="";for(;oe>=32&&oe<=57;)te+=String.fromCharCode(oe),oe=k.getByte();x=parseInt(te,10),isNaN(x)&&(x=0)}}return(0,n.shadow)(this,"startXRef",x)}checkHeader(){const k=this.stream;if(k.reset(),!m(k,u))return;k.moveStart(),k.skip(u.length);let x="",C;for(;(C=k.getByte())>32&&x.length<7;)x+=String.fromCharCode(C);j.PDF_VERSION_REGEXP.test(x)?this._version=x:(0,n.warn)(`Invalid PDF header version: ${x}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let k=0;return this.catalog.hasActualNumPages?k=this.catalog.numPages:this.xfaFactory?k=this.xfaFactory.getNumPages():this.linearization?k=this.linearization.numPages:k=this.catalog.numPages,(0,n.shadow)(this,"numPages",k)}_hasOnlyDocumentSignatures(k,x=0){return Array.isArray(k)?k.every(G=>{if(G=this.xref.fetchIfRef(G),!(G instanceof e.Dict))return!1;if(G.has("Kids"))return++x>10?((0,n.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(G.get("Kids"),x);const Z=(0,e.isName)(G.get("FT"),"Sig"),ae=G.get("Rect"),oe=Array.isArray(ae)&&ae.every(te=>te===0);return Z&&oe}):!1}
2get _xfaStreams(){const k=this.catalog.acroForm;if(!k)return null;const x=k.get("XFA"),C={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(x instanceof l.BaseStream&&!x.isEmpty)return C["xdp:xdp"]=x,C;if(!Array.isArray(x)||x.length===0)return null;for(let G=0,Z=x.length;G<Z;G+=2){let ae;if(G===0?ae="xdp:xdp":G===Z-2?ae="/xdp:xdp":ae=x[G],!C.hasOwnProperty(ae))continue;const oe=this.xref.fetchIfRef(x[G+1]);!(oe instanceof l.BaseStream)||oe.isEmpty||(C[ae]=oe)}return C}get xfaDatasets(){const k=this._xfaStreams;if(!k)return(0,n.shadow)(this,"xfaDatasets",null);for(const x of["datasets","xdp:xdp"]){const C=k[x];if(C)try{const G=(0,n.stringToUTF8String)(C.getString()),Z={[x]:G};return(0,n.shadow)(this,"xfaDatasets",new I.DatasetReader(Z))}catch{(0,n.warn)("XFA - Invalid utf-8 string.");break}}return(0,n.shadow)(this,"xfaDatasets",null)}get xfaData(){const k=this._xfaStreams;if(!k)return null;const x=Object.create(null);for(const[C,G]of Object.entries(k))if(G)try{x[C]=(0,n.stringToUTF8String)(G.getString())}catch{return(0,n.warn)("XFA - Invalid utf-8 string."),null}return x}get xfaFactory(){let k;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(k=this.xfaData),(0,n.shadow)(this,"xfaFactory",k?new R.XFAFactory(k):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const k=await this.pdfManager.ensureCatalog("xfaImages");if(!k)return;const x=k.getKeys();await new a.ObjectLoader(k,x,this.xref).load();const G=new Map;for(const Z of x){const ae=k.get(Z);ae instanceof l.BaseStream&&G.set(Z,ae.getBytes())}this.xfaFactory.setImages(G)}async loadXfaFonts(k,x){const C=await this.pdfManager.ensureCatalog("acroForm");if(!C)return;const G=await C.getAsync("DR");if(!(G instanceof e.Dict))return;await new a.ObjectLoader(G,["Font"],this.xref).load();const ae=G.get("Font");if(!(ae instanceof e.Dict))return;const oe=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);oe.useSystemFonts=!1;const te=new y.PartialEvaluator({xref:this.xref,handler:k,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:oe}),K=new _.OperatorList,v=[],$={get font(){return v.at(-1)},set font(W){v.push(W)},clone(){return this}},d=new Map;ae.forEach((W,ne)=>{d.set(W,ne)});const w=[];for(const[W,ne]of d){const Q=ne.get("FontDescriptor");if(!(Q instanceof e.Dict))continue;let D=Q.get("FontFamily");D=D.replaceAll(/[ ]+(\d)/g,"$1");const Y=Q.get("FontWeight"),ie=-Q.get("ItalicAngle"),ee={fontFamily:D,fontWeight:Y,italicAngle:ie};(0,j.validateCSSFont)(ee)&&w.push(te.handleSetFont(G,[e.Name.get(W),1],null,K,x,$,null,ee).catch(function(se){return(0,n.warn)(`loadXfaFonts: "${se}".`),null}))}await Promise.all(w);const S=this.xfaFactory.setFonts(v);if(!S)return;oe.ignoreErrors=!0,w.length=0,v.length=0;const z=new Set;for(const W of S)(0,t.getXfaFontName)(`${W}-Regular`)||z.add(W);z.size&&S.push("PdfJS-Fallback");for(const W of S)if(!z.has(W))for(const ne of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const Q=`${W}-${ne.name}`,D=(0,t.getXfaFontDict)(Q);w.push(te.handleSetFont(G,[e.Name.get(Q),1],null,K,x,$,D,{fontFamily:W,fontWeight:ne.fontWeight,italicAngle:ne.italicAngle}).catch(function(Y){return(0,n.warn)(`loadXfaFonts: "${Y}".`),null}))}await Promise.all(w),this.xfaFactory.appendFonts(v,z)}async serializeXfaData(k){return this.xfaFactory?this.xfaFactory.serializeData(k):null}
2get version(){return this.catalog.version||this._version}get formInfo(){const k={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},x=this.catalog.acroForm;if(!x)return(0,n.shadow)(this,"formInfo",k);try{const C=x.get("Fields"),G=Array.isArray(C)&&C.length>0;k.hasFields=G;const Z=x.get("XFA");k.hasXfa=Array.isArray(Z)&&Z.length>0||Z instanceof l.BaseStream&&!Z.isEmpty;const oe=!!(x.get("SigFlags")&1),te=oe&&this._hasOnlyDocumentSignatures(C);k.hasAcroForm=G&&!te,k.hasSignatures=oe}catch(C){if(C instanceof j.MissingDataException)throw C;(0,n.warn)(`Cannot fetch form information: "${C}".`)}return(0,n.shadow)(this,"formInfo",k)}get documentInfo(){const k={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let x;try{x=this.xref.trailer.get("Info")}catch(C){if(C instanceof j.MissingDataException)throw C;
2(0,n.info)("The document information dictionary is invalid.")}if(!(x instanceof e.Dict))return(0,n.shadow)(this,"documentInfo",k);for(const C of x.getKeys()){const G=x.get(C);switch(C){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof G=="string"){k[C]=(0,n.stringToPDFString)(G);continue}break;case"Trapped":if(G instanceof e.Name){k[C]=G;continue}break;default:let Z;switch(typeof G){case"string":Z=(0,n.stringToPDFString)(G);break;case"number":case"boolean":Z=G;break;default:G instanceof e.Name&&(Z=G);break}if(Z===void 0){(0,n.warn)(`Bad value, for custom key "${C}", in Info: ${G}.`);continue}k.Custom||(k.Custom=Object.create(null)),k.Custom[C]=Z;continue}(0,n.warn)(`Bad value, for key "${C}", in Info: ${G}.`)}return(0,n.shadow)(this,"documentInfo",k)}get fingerprints(){function k(ae){return typeof ae=="string"&&ae.length>0&&ae!==o}function x(ae){const oe=[];for(const te of ae){const K=te.toString(16);oe.push(K.padStart(2,"0"))}return oe.join("")}const C=this.xref.trailer.get("ID");let G,Z;return Array.isArray(C)&&k(C[0])?(G=(0,n.stringToBytes)(C[0]),C[1]!==C[0]&&k(C[1])&&(Z=(0,n.stringToBytes)(C[1]))):G=(0,V.calculateMD5)(this.stream.getByteRange(0,s),0,s),(0,n.shadow)(this,"fingerprints",[x(G),Z?x(Z):null])}async _getLinearizationPage(k){const{catalog:x,linearization:C,xref:G}=this,Z=e.Ref.get(C.objectNumberFirst,0);try{const ae=await G.fetchAsync(Z);if(ae instanceof e.Dict){let oe=ae.getRaw("Type");if(oe instanceof e.Ref&&(oe=await G.fetchAsync(oe)),(0,e.isName)(oe,"Page")||!ae.has("Type")&&!ae.has("Kids"))return x.pageKidsCountCache.has(Z)||x.pageKidsCountCache.put(Z,1),x.pageIndexCache.has(Z)||x.pageIndexCache.put(Z,0),[ae,Z]}throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(ae){return(0,n.warn)(`_getLinearizationPage: "${ae.message}".`),x.getPageDict(k)}}getPage(k){const x=this._pagePromises.get(k);if(x)return x;const{catalog:C,linearization:G,xfaFactory:Z}=this;let ae;return Z?ae=Promise.resolve([e.Dict.empty,null]):(G==null?void 0:G.pageFirst)===k?ae=this._getLinearizationPage(k):ae=C.getPageDict(k),ae=ae.then(([oe,te])=>new c({pdfManager:this.pdfManager,xref:this.xref,pageIndex:k,pageDict:oe,ref:te,globalIdFactory:this._globalIdFactory,fontCache:C.fontCache,builtInCMapCache:C.builtInCMapCache,standardFontDataCache:C.standardFontDataCache,globalImageCache:C.globalImageCache,systemFontCache:C.systemFontCache,nonBlendModesSet:C.nonBlendModesSet,xfaFactory:Z})),this._pagePromises.set(k,ae),ae}async checkFirstPage(k=!1){if(!k)try{await this.getPage(0)}catch(x){if(x instanceof j.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new j.XRefParseException}}async checkLastPage(k=!1){const{catalog:x,pdfManager:C}=this;x.setActualNumPages();let G;try{if(await Promise.all([C.ensureDoc("xfaFactory"),C.ensureDoc("linearization"),C.ensureCatalog("numPages")]),this.xfaFactory)return;if(this.linearization?G=this.linearization.numPages:G=x.numPages,Number.isInteger(G)){if(G<=1)return}else throw new n.FormatError("Page count is not an integer.");await this.getPage(G-1)}catch(Z){if(this._pagePromises.delete(G-1),await this.cleanup(),Z instanceof j.XRefEntryException&&!k)throw new j.XRefParseException;(0,n.warn)(`checkLastPage - invalid /Pages tree /Count: ${G}.`);let ae;try{ae=await x.getAllPageDicts(k)}catch(oe){if(oe instanceof j.XRefEntryException&&!k)throw new j.XRefParseException;x.setActualNumPages(1);return}for(const[oe,[te,K]]of ae){let v;te instanceof Error?(v=Promise.reject(te),v.catch(()=>{})):v=Promise.resolve(new c({pdfManager:C,xref:this.xref,pageIndex:oe,pageDict:te,ref:K,globalIdFactory:this._globalIdFactory,fontCache:x.fontCache,builtInCMapCache:x.builtInCMapCache,standardFontDataCache:x.standardFontDataCache,globalImageCache:x.globalImageCache,systemFontCache:x.systemFontCache,nonBlendModesSet:x.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(oe,v)}x.setActualNumPages(ae.size)}}fontFallback(k,x){return this.catalog.fontFallback(k,x)}async cleanup(k=!1){return this.catalog?this.catalog.cleanup(k):(0,B.clearGlobalCaches)()}get fieldObjects(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,"fieldObjects",Promise.resolve(null));const k=this.pdfManager.ensureDoc("annotationGlobals").then(async x=>{if(!x)return null;const C=Object.create(null),G=new Map;for(const ae of this.catalog.acroForm.get("Fields"))it(this,H,$n).call(this,"",ae,G,x);const Z=[];
2for(const[ae,oe]of G)Z.push(Promise.all(oe).then(te=>{te=te.filter(K=>!!K),te.length>0&&(C[ae]=te)}));return await Promise.all(Z),C});return(0,n.shadow)(this,"fieldObjects",k)}get hasJSActions(){const k=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,n.shadow)(this,"hasJSActions",k)}async _parseHasJSActions(){const[k,x]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return k?!0:x?Object.values(x).some(C=>C.some(G=>G.actions!==null)):!1}get calculationOrderIds(){const k=this.catalog.acroForm;if(!(k!=null&&k.has("CO")))return(0,n.shadow)(this,"calculationOrderIds",null);const x=k.get("CO");if(!Array.isArray(x)||x.length===0)return(0,n.shadow)(this,"calculationOrderIds",null);const C=[];for(const G of x)G instanceof e.Ref&&C.push(G.toString());return C.length===0?(0,n.shadow)(this,"calculationOrderIds",null):(0,n.shadow)(this,"calculationOrderIds",C)}get annotationGlobals(){return(0,n.shadow)(this,"annotationGlobals",P.AnnotationFactory.createGlobals(this.pdfManager))}}H=new WeakSet,$n=function(k,x,C,G){const Z=this.xref.fetchIfRef(x);if(Z.has("T")){const ae=(0,n.stringToPDFString)(Z.get("T"));k=k===""?ae:`${k}.${ae}`}if(C.has(k)||C.set(k,[]),C.get(k).push(P.AnnotationFactory.create(this.xref,x,G,this._localIdFactory,!0,null).then(ae=>ae==null?void 0:ae.getFieldObject()).catch(function(ae){return(0,n.warn)(`#collectFieldObjects: "${ae}".`),null})),Z.has("Kids"))for(const ae of Z.get("Kids"))it(this,H,$n).call(this,k,ae,C,G)},p.PDFDocument=h},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PopupAnnotation=p.MarkupAnnotation=p.AnnotationFactory=p.AnnotationBorderStyle=p.Annotation=void 0,p.getQuadPoints=R;var n=re(2),P=re(3),j=re(11),e=re(4),t=re(8),l=re(5),V=re(60),J=re(66),B=re(12),I=re(69),f=re(26),g=re(76),a=re(64),_=re(73),y=re(77);class O{static createGlobals(d){return Promise.all([d.ensureCatalog("acroForm"),d.ensureDoc("xfaDatasets"),d.ensureCatalog("structTreeRoot"),d.ensureCatalog("baseUrl"),d.ensureCatalog("attachments")]).then(([w,S,z,W,ne])=>({pdfManager:d,acroForm:w instanceof e.Dict?w:e.Dict.empty,xfaDatasets:S,structTreeRoot:z,baseUrl:W,attachments:ne}),w=>((0,n.warn)(`createGlobals: "${w}".`),null))}static async create(d,w,S,z,W,ne){const Q=W?await this._getPageIndex(d,w,S.pdfManager):null;return S.pdfManager.ensure(this,"_create",[d,w,S,z,W,Q,ne])}static _create(d,w,S,z,W=!1,ne=null,Q=null){const D=d.fetchIfRef(w);if(!(D instanceof e.Dict))return;const{acroForm:Y,pdfManager:ie}=S,ee=w instanceof e.Ref?w.toString():`annot_${z.createObjId()}`;let se=D.get("Subtype");se=se instanceof e.Name?se.name:null;const ce={xref:d,ref:w,dict:D,subtype:se,id:ee,annotationGlobals:S,collectFields:W,needAppearances:!W&&Y.get("NeedAppearances")===!0,pageIndex:ne,evaluatorOptions:ie.evaluatorOptions,pageRef:Q};switch(se){case"Link":return new h(ce);case"Text":return new m(ce);case"Widget":let le=(0,P.getInheritableProperty)({dict:D,key:"FT"});switch(le=le instanceof e.Name?le.name:null,le){case"Tx":return new T(ce);case"Btn":return new r(ce);case"Ch":return new s(ce);case"Sig":return new o(ce)}return(0,n.warn)(`Unimplemented widget field type "${le}", falling back to base field type.`),new u(ce);case"Popup":return new A(ce);case"FreeText":return new L(ce);case"Line":return new H(ce);case"Square":return new F(ce);case"Circle":return new M(ce);case"PolyLine":return new k(ce);case"Polygon":return new x(ce);case"Caret":return new C(ce);case"Ink":return new G(ce);case"Highlight":return new Z(ce);case"Underline":return new ae(ce);case"Squiggly":return new oe(ce);case"StrikeOut":return new te(ce);case"Stamp":return new K(ce);case"FileAttachment":return new v(ce);default:return W||(se?(0,n.warn)(`Unimplemented annotation type "${se}", falling back to base annotation.`):(0,n.warn)("Annotation is missing the required /Subtype.")),new b(ce)}}static async _getPageIndex(d,w,S){try{const z=await d.fetchIfRefAsync(w);if(!(z instanceof e.Dict))return-1;const W=z.getRaw("P");if(W instanceof e.Ref)try{return await S.ensureCatalog("getPageIndex",[W])}catch(Q){(0,n.info)(`_getPageIndex -- not a valid page reference: "${Q}".`)}if(z.has("Kids"))return-1;const ne=await S.ensureDoc("numPages");for(let Q=0;Q<ne;Q++){const D=await S.getPage(Q),Y=await S.ensure(D,"annotations");for(const ie of Y)if(ie instanceof e.Ref&&(0,e.isRefsEqual)(ie,w))return Q}}catch(z){(0,n.warn)(`_getPageIndex: "${z}".`)}return-1}static generateImages(d,w,S){if(!S)return(0,n.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;let z;for(const{bitmapId:W,bitmap:ne}
2of d)ne&&(z||(z=new Map),z.set(W,K.createImage(ne,w)));return z}static async saveNewAnnotations(d,w,S,z){const W=d.xref;let ne;const Q=[],D=[],{isOffscreenCanvasSupported:Y}=d.options;for(const ie of S)if(!ie.deleted)switch(ie.annotationType){case n.AnnotationEditorType.FREETEXT:if(!ne){const se=new e.Dict(W);se.set("BaseFont",e.Name.get("Helvetica")),se.set("Type",e.Name.get("Font")),se.set("Subtype",e.Name.get("Type1")),se.set("Encoding",e.Name.get("WinAnsiEncoding"));const ce=[];ne=W.getNewTemporaryRef(),await(0,_.writeObject)(ne,se,ce,W),Q.push({ref:ne,data:ce.join("")})}D.push(L.createNewAnnotation(W,ie,Q,{evaluator:d,task:w,baseFontRef:ne}));break;case n.AnnotationEditorType.INK:D.push(G.createNewAnnotation(W,ie,Q));break;case n.AnnotationEditorType.STAMP:if(!Y)break;const ee=await z.get(ie.bitmapId);if(ee.imageStream){const{imageStream:se,smaskStream:ce}=ee,le=[];if(ce){const he=W.getNewTemporaryRef();await(0,_.writeObject)(he,ce,le,W),Q.push({ref:he,data:le.join("")}),se.dict.set("SMask",he),le.length=0}const de=ee.imageRef=W.getNewTemporaryRef();await(0,_.writeObject)(de,se,le,W),Q.push({ref:de,data:le.join("")}),ee.imageStream=ee.smaskStream=null}D.push(K.createNewAnnotation(W,ie,Q,{image:ee}));break}return{annotations:await Promise.all(D),dependencies:Q}}static async printNewAnnotations(d,w,S,z,W){if(!z)return null;const{options:ne,xref:Q}=w,D=[];for(const Y of z)if(!Y.deleted)switch(Y.annotationType){case n.AnnotationEditorType.FREETEXT:D.push(L.createNewPrintAnnotation(d,Q,Y,{evaluator:w,task:S,evaluatorOptions:ne}));break;case n.AnnotationEditorType.INK:D.push(G.createNewPrintAnnotation(d,Q,Y,{evaluatorOptions:ne}));break;case n.AnnotationEditorType.STAMP:if(!ne.isOffscreenCanvasSupported)break;const ie=await W.get(Y.bitmapId);if(ie.imageStream){const{imageStream:ee,smaskStream:se}=ie;se&&ee.dict.set("SMask",se),ie.imageRef=new f.JpegStream(ee,ee.length),ie.imageStream=ie.smaskStream=null}D.push(K.createNewPrintAnnotation(d,Q,Y,{image:ie,evaluatorOptions:ne}));break}return Promise.all(D)}}p.AnnotationFactory=O;function N($,d=new Uint8ClampedArray(3)){if(!Array.isArray($))return d;const w=d||new Uint8ClampedArray(3);switch($.length){case 0:return null;case 1:return B.ColorSpace.singletons.gray.getRgbItem($,0,w,0),w;case 3:return B.ColorSpace.singletons.rgb.getRgbItem($,0,w,0),w;case 4:return B.ColorSpace.singletons.cmyk.getRgbItem($,0,w,0),w;default:return d}}function X($){return Array.from($,d=>d/255)}function R($,d){const w=$.getArray("QuadPoints");if(!Array.isArray(w)||w.length===0||w.length%8>0)return null;const S=[];for(let z=0,W=w.length/8;z<W;z++){let ne=1/0,Q=-1/0,D=1/0,Y=-1/0;for(let ie=z*8,ee=z*8+8;ie<ee;ie+=2){const se=w[ie],ce=w[ie+1];ne=Math.min(se,ne),Q=Math.max(se,Q),D=Math.min(ce,D),Y=Math.max(ce,Y)}if(d!==null&&(ne<d[0]||Q>d[2]||D<d[1]||Y>d[3]))return null;S.push([{x:ne,y:Y},{x:Q,y:Y},{x:ne,y:D},{x:Q,y:D}])}return S}function q($,d,w){const[S,z,W,ne]=n.Util.getAxialAlignedBoundingBox(d,w);if(S===W||z===ne)return[1,0,0,1,$[0],$[1]];const Q=($[2]-$[0])/(W-S),D=($[3]-$[1])/(ne-z);return[Q,0,0,D,$[0]-S*Q,$[1]-z*D]}class b{constructor(d){const{dict:w,xref:S,annotationGlobals:z}=d;this.setTitle(w.get("T")),this.setContents(w.get("Contents")),this.setModificationDate(w.get("M")),this.setFlags(w.get("F")),this.setRectangle(w.getArray("Rect")),this.setColor(w.getArray("C")),this.setBorderStyle(w),this.setAppearance(w),this.setOptionalContent(w);const W=w.get("MK");this.setBorderAndBackgroundColors(W),this.setRotation(W,w),this.ref=d.ref instanceof e.Ref?d.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);const ne=!!(this.flags&n.AnnotationFlag.LOCKED),Q=!!(this.flags&n.AnnotationFlag.LOCKEDCONTENTS);if(z.structTreeRoot){let D=w.get("StructParent");D=Number.isInteger(D)&&D>=0?D:-1,z.structTreeRoot.addAnnotationIdToPage(d.pageRef,D)}if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:d.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:d.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&n.AnnotationFlag.NOROTATE),noHTML:ne&&Q},d.collectFields){const D=w.get("Kids");if(Array.isArray(D)){const Y=[];for(const ie of D)ie instanceof e.Ref&&Y.push(ie.toString());Y.length!==0&&(this.data.kidIds=Y)}this.data.actions=(0,P.collectActions)(S,w,n.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(w),this.data.pageIndex=d.pageIndex}this._isOffscreenCanvasSupported=d.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(d,w){return!!(d&w)}_isViewable(d){return!this._hasFlag(d,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(d,n.AnnotationFlag.NOVIEW)}_isPrintable(d){return this._hasFlag(d,n.AnnotationFlag.PRINT)&&!this._hasFlag(d,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(d,n.AnnotationFlag.INVISIBLE)}mustBeViewed(d,w){var z;const S=(z=d==null?void 0:d.get(this.data.id))==null?void 0:z.noView;return S!==void 0?!S:this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}mustBePrinted(d){var S;const w=(S=d==null?void 0:d.get(this.data.id))==null?void 0:S.noPrint;return w!==void 0?!w:this.printable}get viewable(){return this.data.quadPoints===null?!1:this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.data.quadPoints===null||this.flags===0?!1:this._isPrintable(this.flags)}
2_parseStringHelper(d){const w=typeof d=="string"?(0,n.stringToPDFString)(d):"",S=w&&(0,V.bidi)(w).dir==="rtl"?"rtl":"ltr";return{str:w,dir:S}}setDefaultAppearance(d){const{dict:w,annotationGlobals:S}=d,z=(0,P.getInheritableProperty)({dict:w,key:"DA"})||S.acroForm.get("DA");this._defaultAppearance=typeof z=="string"?z:"",this.data.defaultAppearanceData=(0,j.parseDefaultAppearance)(this._defaultAppearance)}setTitle(d){this._title=this._parseStringHelper(d)}setContents(d){this._contents=this._parseStringHelper(d)}setModificationDate(d){this.modificationDate=typeof d=="string"?d:null}setFlags(d){this.flags=Number.isInteger(d)&&d>0?d:0}hasFlag(d){return this._hasFlag(this.flags,d)}setRectangle(d){this.rectangle=Array.isArray(d)&&d.length===4?n.Util.normalizeRect(d):[0,0,0,0]}setColor(d){this.color=N(d)}setLineEndings(d){if(this.lineEndings=["None","None"],Array.isArray(d)&&d.length===2)for(let w=0;w<2;w++){const S=d[w];if(S instanceof e.Name)switch(S.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[w]=S.name;continue}(0,n.warn)(`Ignoring invalid lineEnding: ${S}`)}}setRotation(d,w){this.rotation=0;let S=d instanceof e.Dict?d.get("R")||0:w.get("Rotate")||0;Number.isInteger(S)&&S!==0&&(S%=360,S<0&&(S+=360),S%90===0&&(this.rotation=S))}setBorderAndBackgroundColors(d){d instanceof e.Dict?(this.borderColor=N(d.getArray("BC"),null),this.backgroundColor=N(d.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(d){if(this.borderStyle=new E,d instanceof e.Dict)if(d.has("BS")){const w=d.get("BS"),S=w.get("Type");(!S||(0,e.isName)(S,"Border"))&&(this.borderStyle.setWidth(w.get("W"),this.rectangle),this.borderStyle.setStyle(w.get("S")),this.borderStyle.setDashArray(w.getArray("D")))}else if(d.has("Border")){const w=d.getArray("Border");Array.isArray(w)&&w.length>=3&&(this.borderStyle.setHorizontalCornerRadius(w[0]),this.borderStyle.setVerticalCornerRadius(w[1]),this.borderStyle.setWidth(w[2],this.rectangle),w.length===4&&this.borderStyle.setDashArray(w[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(d){this.appearance=null;const w=d.get("AP");if(!(w instanceof e.Dict))return;const S=w.get("N");if(S instanceof l.BaseStream){this.appearance=S;return}if(!(S instanceof e.Dict))return;const z=d.get("AS");if(!(z instanceof e.Name)||!S.has(z.name))return;const W=S.get(z.name);W instanceof l.BaseStream&&(this.appearance=W)}setOptionalContent(d){this.oc=null;const w=d.get("OC");w instanceof e.Name?(0,n.warn)("setOptionalContent: Support for /Name-entry is not implemented."):w instanceof e.Dict&&(this.oc=w)}loadResources(d,w){return w.dict.getAsync("Resources").then(S=>S?new g.ObjectLoader(S,d,S.xref).load().then(function(){return S}):void 0)}async getOperatorList(d,w,S,z,W){const ne=this.data;let Q=this.appearance;const D=!!(this.data.hasOwnCanvas&&S&n.RenderingIntentFlag.DISPLAY);if(!Q){if(!D)return{opList:new a.OperatorList,separateForm:!1,separateCanvas:!1};Q=new t.StringStream(""),Q.dict=new e.Dict}const Y=Q.dict,ie=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],Q),ee=Y.getArray("BBox")||[0,0,1,1],se=Y.getArray("Matrix")||[1,0,0,1,0,0],ce=q(ne.rect,ee,se),le=new a.OperatorList;let de;return this.oc&&(de=await d.parseMarkedContentProps(this.oc,null)),de!==void 0&&le.addOp(n.OPS.beginMarkedContentProps,["OC",de]),le.addOp(n.OPS.beginAnnotation,[ne.id,ne.rect,ce,se,D]),await d.getOperatorList({stream:Q,task:w,resources:ie,operatorList:le,fallbackFontDict:this._fallbackFontDict}),le.addOp(n.OPS.endAnnotation,[]),de!==void 0&&le.addOp(n.OPS.endMarkedContent,[]),this.reset(),{opList:le,separateForm:!1,separateCanvas:D}}async save(d,w,S){return null}get hasTextContent(){return!1}async extractTextContent(d,w,S){if(!this.appearance)return;const z=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),W=[],ne=[];let Q=null;const D={desiredSize:Math.Infinity,ready:!0,enqueue(Y,ie){for(const ee of Y.items)ee.str!==void 0&&(Q||(Q=ee.transform.slice(-2)),ne.push(ee.str),ee.hasEOL&&(W.push(ne.join("")),ne.length=0))}};
2if(await d.getTextContent({stream:this.appearance,task:w,resources:z,includeMarkedContent:!0,sink:D,viewBox:S}),this.reset(),ne.length&&W.push(ne.join("")),W.length>1||W[0]){const Y=this.appearance.dict,ie=Y.getArray("BBox")||[0,0,1,1],ee=Y.getArray("Matrix")||[1,0,0,1,0,0],se=this.data.rect,ce=q(se,ie,ee);ce[4]-=se[0],ce[5]-=se[1],Q=n.Util.applyTransform(Q,ce),Q=n.Util.applyTransform(Q,ee),this.data.textPosition=Q,this.data.textContent=W}}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const d of this._streams)d.reset()}_constructFieldName(d){if(!d.has("T")&&!d.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!d.has("Parent"))return(0,n.stringToPDFString)(d.get("T"));const w=[];d.has("T")&&w.unshift((0,n.stringToPDFString)(d.get("T")));let S=d;const z=new e.RefSet;for(d.objId&&z.put(d.objId);S.has("Parent")&&(S=S.get("Parent"),!(!(S instanceof e.Dict)||S.objId&&z.has(S.objId)));)S.objId&&z.put(S.objId),S.has("T")&&w.unshift((0,n.stringToPDFString)(S.get("T")));return w.join(".")}}p.Annotation=b;class E{constructor(){this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(d,w=[0,0,0,0]){if(d instanceof e.Name){this.width=0;return}if(typeof d=="number"){if(d>0){const S=(w[2]-w[0])/2,z=(w[3]-w[1])/2;S>0&&z>0&&(d>S||d>z)&&((0,n.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${d}`),d=1)}this.width=d}}setStyle(d){if(d instanceof e.Name)switch(d.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(d,w=!1){if(Array.isArray(d)&&d.length>0){let S=!0,z=!0;for(const W of d)if(+W>=0)W>0&&(z=!1);else{S=!1;break}S&&!z?(this.dashArray=d,w&&this.setStyle(e.Name.get("D"))):this.width=0}else d&&(this.width=0)}setHorizontalCornerRadius(d){Number.isInteger(d)&&(this.horizontalCornerRadius=d)}setVerticalCornerRadius(d){Number.isInteger(d)&&(this.verticalCornerRadius=d)}}p.AnnotationBorderStyle=E;class c extends b{constructor(d){super(d);const{dict:w}=d;if(w.has("IRT")){const z=w.getRaw("IRT");this.data.inReplyTo=z instanceof e.Ref?z.toString():null;const W=w.get("RT");this.data.replyType=W instanceof e.Name?W.name:n.AnnotationReplyType.REPLY}let S=null;if(this.data.replyType===n.AnnotationReplyType.GROUP){const z=w.get("IRT");this.setTitle(z.get("T")),this.data.titleObj=this._title,this.setContents(z.get("Contents")),this.data.contentsObj=this._contents,z.has("CreationDate")?(this.setCreationDate(z.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,z.has("M")?(this.setModificationDate(z.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,S=z.getRaw("Popup"),z.has("C")?(this.setColor(z.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(w.get("CreationDate")),this.data.creationDate=this.creationDate,S=w.getRaw("Popup"),w.has("C")||(this.data.color=null);this.data.popupRef=S instanceof e.Ref?S.toString():null,w.has("RC")&&(this.data.richText=y.XFAFactory.getRichTextAsHtml(w.get("RC")))}setCreationDate(d){this.creationDate=typeof d=="string"?d:null}_setDefaultAppearance({xref:d,extra:w,strokeColor:S,fillColor:z,blendMode:W,strokeAlpha:ne,fillAlpha:Q,pointsCallback:D}){let Y=Number.MAX_VALUE,ie=Number.MAX_VALUE,ee=Number.MIN_VALUE,se=Number.MIN_VALUE;const ce=["q"];w&&ce.push(w),S&&ce.push(`${S[0]} ${S[1]} ${S[2]} RG`),z&&ce.push(`${z[0]} ${z[1]} ${z[2]} rg`);let le=this.data.quadPoints;le||(le=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const xe of le){const[ue,fe,ke,ye]=D(ce,xe);Y=Math.min(Y,ue),ee=Math.max(ee,fe),ie=Math.min(ie,ke),se=Math.max(se,ye)}ce.push("Q");const de=new e.Dict(d),he=new e.Dict(d);he.set("Subtype",e.Name.get("Form"));const me=new t.StringStream(ce.join(" "));me.dict=he,de.set("Fm0",me);const Se=new e.Dict(d);W&&Se.set("BM",e.Name.get(W)),typeof ne=="number"&&Se.set("CA",ne),typeof Q=="number"&&Se.set("ca",Q);const pe=new e.Dict(d);pe.set("GS0",Se);const ge=new e.Dict(d);ge.set("ExtGState",pe),ge.set("XObject",de);const Ae=new e.Dict(d);Ae.set("Resources",ge);const Me=this.data.rect=[Y,ie,ee,se];Ae.set("BBox",Me),this.appearance=new t.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=Ae,this._streams.push(this.appearance,me)}static async createNewAnnotation(d,w,S,z){const W=w.ref||(w.ref=d.getNewTemporaryRef()),ne=await this.createNewAppearanceStream(w,d,z),Q=[];let D;if(ne){const Y=d.getNewTemporaryRef();D=this.createNewDict(w,d,{apRef:Y}),await(0,_.writeObject)(Y,ne,Q,d),S.push({ref:Y,data:Q.join("")})}else D=this.createNewDict(w,d,{});return Number.isInteger(w.parentTreeId)&&D.set("StructParent",w.parentTreeId),Q.length=0,await(0,_.writeObject)(W,D,Q,d),{ref:W,data:Q.join("")}}static async createNewPrintAnnotation(d,w,S,z){const W=await this.createNewAppearanceStream(S,w,z),ne=this.createNewDict(S,w,{ap:W}),Q=new this.prototype.constructor({dict:ne,xref:w,annotationGlobals:d,evaluatorOptions:z.evaluatorOptions});return S.ref&&(Q.ref=Q.refToReplace=S.ref),Q}}p.MarkupAnnotation=c;class u extends b{constructor(d){var se;super(d);const{dict:w,xref:S,annotationGlobals:z}=d,W=this.data;this._needAppearances=d.needAppearances,W.annotationType=n.AnnotationType.WIDGET,W.fieldName===void 0&&(W.fieldName=this._constructFieldName(w)),W.actions===void 0&&(W.actions=(0,P.collectActions)(S,w,n.AnnotationActionEventType));let ne=(0,P.getInheritableProperty)({dict:w,key:"V",getArray:!0});
2W.fieldValue=this._decodeFormValue(ne);const Q=(0,P.getInheritableProperty)({dict:w,key:"DV",getArray:!0});if(W.defaultFieldValue=this._decodeFormValue(Q),ne===void 0&&z.xfaDatasets){const ce=this._title.str;ce&&(this._hasValueFromXFA=!0,W.fieldValue=ne=z.xfaDatasets.getValue(ce))}ne===void 0&&W.defaultFieldValue!==null&&(W.fieldValue=W.defaultFieldValue),W.alternativeText=(0,n.stringToPDFString)(w.get("TU")||""),this.setDefaultAppearance(d),W.hasAppearance||(W.hasAppearance=this._needAppearances&&W.fieldValue!==void 0&&W.fieldValue!==null);const D=(0,P.getInheritableProperty)({dict:w,key:"FT"});W.fieldType=D instanceof e.Name?D.name:null;const Y=(0,P.getInheritableProperty)({dict:w,key:"DR"}),ie=z.acroForm.get("DR"),ee=(se=this.appearance)==null?void 0:se.dict.get("Resources");this._fieldResources={localResources:Y,acroFormResources:ie,appearanceResources:ee,mergedResources:e.Dict.merge({xref:S,dictArray:[Y,ee,ie],mergeSubDicts:!0})},W.fieldFlags=(0,P.getInheritableProperty)({dict:w,key:"Ff"}),(!Number.isInteger(W.fieldFlags)||W.fieldFlags<0)&&(W.fieldFlags=0),W.readOnly=this.hasFieldFlag(n.AnnotationFieldFlag.READONLY),W.required=this.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED),W.hidden=this._hasFlag(W.annotationFlags,n.AnnotationFlag.HIDDEN)||this._hasFlag(W.annotationFlags,n.AnnotationFlag.NOVIEW)}_decodeFormValue(d){return Array.isArray(d)?d.filter(w=>typeof w=="string").map(w=>(0,n.stringToPDFString)(w)):d instanceof e.Name?(0,n.stringToPDFString)(d.name):typeof d=="string"?(0,n.stringToPDFString)(d):null}hasFieldFlag(d){return!!(this.data.fieldFlags&d)}_isViewable(d){return!this._hasFlag(d,n.AnnotationFlag.INVISIBLE)}mustBeViewed(d,w){return w?this.viewable:super.mustBeViewed(d,w)&&!this._hasFlag(this.flags,n.AnnotationFlag.NOVIEW)}getRotationMatrix(d){var W;let w=(W=d==null?void 0:d.get(this.data.id))==null?void 0:W.rotation;if(w===void 0&&(w=this.rotation),w===0)return n.IDENTITY_MATRIX;const S=this.data.rect[2]-this.data.rect[0],z=this.data.rect[3]-this.data.rect[1];return(0,P.getRotationMatrix)(w,S,z)}getBorderAndBackgroundAppearances(d){var Q;let w=(Q=d==null?void 0:d.get(this.data.id))==null?void 0:Q.rotation;if(w===void 0&&(w=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const S=this.data.rect[2]-this.data.rect[0],z=this.data.rect[3]-this.data.rect[1],W=w===0||w===180?`0 0 ${S} ${z} re`:`0 0 ${z} ${S} re`;let ne="";if(this.backgroundColor&&(ne=`${(0,j.getPdfColor)(this.backgroundColor,!0)} ${W} f `),this.borderColor){const D=this.borderStyle.width||1;ne+=`${D} w ${(0,j.getPdfColor)(this.borderColor,!1)} ${W} S `}return ne}async getOperatorList(d,w,S,z,W){if(z&&!(this instanceof o)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new a.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(d,w,S,z,W);const ne=await this._getAppearance(d,w,S,W);if(this.appearance&&ne===null)return super.getOperatorList(d,w,S,z,W);const Q=new a.OperatorList;if(!this._defaultAppearance||ne===null)return{opList:Q,separateForm:!1,separateCanvas:!1};const D=!!(this.data.hasOwnCanvas&&S&n.RenderingIntentFlag.DISPLAY),Y=[1,0,0,1,0,0],ie=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],ee=q(this.data.rect,ie,Y);let se;this.oc&&(se=await d.parseMarkedContentProps(this.oc,null)),se!==void 0&&Q.addOp(n.OPS.beginMarkedContentProps,["OC",se]),Q.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,ee,this.getRotationMatrix(W),D]);const ce=new t.StringStream(ne);return await d.getOperatorList({stream:ce,task:w,resources:this._fieldResources.mergedResources,operatorList:Q}),Q.addOp(n.OPS.endAnnotation,[]),se!==void 0&&Q.addOp(n.OPS.endMarkedContent,[]),{opList:Q,separateForm:!1,separateCanvas:D}}_getMKDict(d){const w=new e.Dict(null);return d&&w.set("R",d),this.borderColor&&w.set("BC",X(this.borderColor)),this.backgroundColor&&w.set("BG",X(this.backgroundColor)),w.size>0?w:null}amendSavedDict(d,w){}async save(d,w,S){const z=S==null?void 0:S.get(this.data.id);let W=z==null?void 0:z.value,ne=z==null?void 0:z.rotation;if(W===this.data.fieldValue||W===void 0){if(!this._hasValueFromXFA&&ne===void 0)return null;W||(W=this.data.fieldValue)}if(ne===void 0&&!this._hasValueFromXFA&&Array.isArray(W)&&Array.isArray(this.data.fieldValue)&&W.length===this.data.fieldValue.length&&W.every((me,Se)=>me===this.data.fieldValue[Se]))return null;ne===void 0&&(ne=this.rotation);let Q=null;if(!this._needAppearances&&(Q=await this._getAppearance(d,w,n.RenderingIntentFlag.SAVE,S),Q===null))return null;let D=!1;Q!=null&&Q.needAppearances&&(D=!0,Q=null);const{xref:Y}=d,ie=Y.fetchIfRef(this.ref);
2if(!(ie instanceof e.Dict))return null;const ee=new e.Dict(Y);for(const me of ie.getKeys())me!=="AP"&&ee.set(me,ie.getRaw(me));const se={path:this.data.fieldName,value:W},ce=me=>(0,P.isAscii)(me)?me:(0,P.stringToUTF16String)(me,!0);ee.set("V",Array.isArray(W)?W.map(ce):ce(W)),this.amendSavedDict(S,ee);const le=this._getMKDict(ne);le&&ee.set("MK",le);const de=[],he=[{ref:this.ref,data:"",xfa:se,needAppearances:D}];if(Q!==null){const me=Y.getNewTemporaryRef(),Se=new e.Dict(Y);ee.set("AP",Se),Se.set("N",me);const pe=this._getSaveFieldResources(Y),ge=new t.StringStream(Q),Ae=ge.dict=new e.Dict(Y);Ae.set("Subtype",e.Name.get("Form")),Ae.set("Resources",pe),Ae.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const Me=this.getRotationMatrix(S);Me!==n.IDENTITY_MATRIX&&Ae.set("Matrix",Me),await(0,_.writeObject)(me,ge,de,Y),he.push({ref:me,data:de.join(""),xfa:null,needAppearances:!1}),de.length=0}return ee.set("M",`D:${(0,n.getModificationDate)()}`),await(0,_.writeObject)(this.ref,ee,de,Y),he[0].data=de.join(""),he}async _getAppearance(d,w,S,z){if(this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD))return null;const ne=z==null?void 0:z.get(this.data.id);let Q,D;if(ne&&(Q=ne.formattedValue||ne.value,D=ne.rotation),D===void 0&&Q===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const Y=this.getBorderAndBackgroundAppearances(z);if(Q===void 0&&(Q=this.data.fieldValue,!Q))return`/Tx BMC q ${Y}Q EMC`;if(Array.isArray(Q)&&Q.length===1&&(Q=Q[0]),(0,n.assert)(typeof Q=="string","Expected `value` to be a string."),Q=Q.trim(),this.data.combo){const $e=this.data.options.find(({exportValue:Xe})=>Q===Xe);Q=($e==null?void 0:$e.displayValue)||Q}if(Q==="")return`/Tx BMC q ${Y}Q EMC`;D===void 0&&(D=this.rotation);let ie=-1,ee;this.data.multiLine?(ee=Q.split(/\r\n?|\n/).map($e=>$e.normalize("NFC")),ie=ee.length):ee=[Q.replace(/\r\n?|\n/,"").normalize("NFC")];const se=1,ce=2;let le=this.data.rect[3]-this.data.rect[1],de=this.data.rect[2]-this.data.rect[0];(D===90||D===270)&&([de,le]=[le,de]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,j.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let he=await u._getFontData(d,w,this.data.defaultAppearanceData,this._fieldResources.mergedResources),me,Se,pe;const ge=[];let Ae=!1;for(const $e of ee){const Xe=he.encodeString($e);Xe.length>1&&(Ae=!0),ge.push(Xe.join(""))}if(Ae&&S&n.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(Ae&&this._isOffscreenCanvasSupported){const $e=this.data.comb?"monospace":"sans-serif",Xe=new j.FakeUnicodeFont(d.xref,$e),Ze=Xe.createFontResources(ee.join("")),Fe=Ze.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const Ee=this._fieldResources.mergedResources.get("Font");for(const Ve of Fe.getKeys())Ee.set(Ve,Fe.getRaw(Ve))}else this._fieldResources.mergedResources.set("Font",Fe);const nt=Xe.fontName.name;he=await u._getFontData(d,w,{fontName:nt,fontSize:0},Ze);for(let Ee=0,Ve=ge.length;Ee<Ve;Ee++)ge[Ee]=(0,P.stringToUTF16String)(ee[Ee]);const We=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=nt,[me,Se,pe]=this._computeFontSize(le-2*se,de-2*ce,Q,he,ie),this.data.defaultAppearanceData=We}else this._isOffscreenCanvasSupported||(0,n.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[me,Se,pe]=this._computeFontSize(le-2*se,de-2*ce,Q,he,ie);let Me=he.descent;isNaN(Me)?Me=n.BASELINE_FACTOR*pe:Me=Math.max(n.BASELINE_FACTOR*pe,Math.abs(Me)*Se);const xe=Math.min(Math.floor((le-Se)/2),se),ue=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(me,ge,he,Se,de,le,ue,ce,xe,Me,pe,z);if(this.data.comb)return this._getCombAppearance(me,he,ge[0],Se,de,le,ce,xe,Me,pe,z);const fe=xe+Me;if(ue===0||ue>2)return`/Tx BMC q ${Y}BT `+me+` 1 0 0 1 ${(0,P.numberToString)(ce)} ${(0,P.numberToString)(fe)} Tm (${(0,P.escapeString)(ge[0])}) Tj ET Q EMC`;const ke={shift:0},ye=this._renderText(ge[0],he,Se,de,ue,ke,ce,fe);return`/Tx BMC q ${Y}BT `+me+` 1 0 0 1 0 0 Tm ${ye} ET Q EMC`}static async _getFontData(d,w,S,z){const W=new a.OperatorList,ne={font:null,clone(){return this}},{fontName:Q,fontSize:D}=S;return await d.handleSetFont(z,[Q&&e.Name.get(Q),D],null,W,w,ne,null),ne.font}_getTextWidth(d,w){return w.charsToGlyphs(d).reduce((S,z)=>S+z.width,0)/1e3}_computeFontSize(d,w,S,z,W){let{fontSize:ne}=this.data.defaultAppearanceData,Q=(ne||12)*n.LINE_FACTOR,D=Math.round(d/Q);if(!ne){const Y=se=>Math.floor(se*100)/100;if(W===-1){const se=this._getTextWidth(S,z);ne=Y(Math.min(d/n.LINE_FACTOR,se>w?w/se:1/0)),D=1}else{const se=S.split(/\r\n?|\n/),ce=[];for(const de of se){const he=z.encodeString(de).join(""),me=z.charsToGlyphs(he),Se=z.getCharPositions(he);ce.push({line:he,glyphs:me,positions:Se})}const le=de=>{let he=0;for(const me of ce){const Se=this._splitLine(null,z,de,w,me);
2if(he+=Se.length*de,he>d)return!0}return!1};for(D=Math.max(D,W);;){if(Q=d/D,ne=Y(Q/n.LINE_FACTOR),le(ne)){D++;continue}break}}const{fontName:ie,fontColor:ee}=this.data.defaultAppearanceData;this._defaultAppearance=(0,j.createDefaultAppearance)({fontSize:ne,fontName:ie,fontColor:ee})}return[this._defaultAppearance,ne,d/D]}_renderText(d,w,S,z,W,ne,Q,D){let Y;if(W===1){const ee=this._getTextWidth(d,w)*S;Y=(z-ee)/2}else if(W===2){const ee=this._getTextWidth(d,w)*S;Y=z-ee-Q}else Y=Q;const ie=(0,P.numberToString)(Y-ne.shift);return ne.shift=Y,D=(0,P.numberToString)(D),`${ie} ${D} Td (${(0,P.escapeString)(d)}) Tj`}_getSaveFieldResources(d){var ne;const{localResources:w,appearanceResources:S,acroFormResources:z}=this._fieldResources,W=(ne=this.data.defaultAppearanceData)==null?void 0:ne.fontName;if(!W)return w||e.Dict.empty;for(const Q of[w,S])if(Q instanceof e.Dict){const D=Q.get("Font");if(D instanceof e.Dict&&D.has(W))return Q}if(z instanceof e.Dict){const Q=z.get("Font");if(Q instanceof e.Dict&&Q.has(W)){const D=new e.Dict(d);D.set(W,Q.getRaw(W));const Y=new e.Dict(d);return Y.set("Font",D),e.Dict.merge({xref:d,dictArray:[Y,w],mergeSubDicts:!0})}}return w||e.Dict.empty}getFieldObject(){return null}}class T extends u{constructor(d){super(d),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0;const w=d.dict;typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let S=(0,P.getInheritableProperty)({dict:w,key:"Q"});(!Number.isInteger(S)||S<0||S>2)&&(S=null),this.data.textAlignment=S;let z=(0,P.getInheritableProperty)({dict:w,key:"MaxLen"});(!Number.isInteger(z)||z<0)&&(z=0),this.data.maxLen=z,this.data.multiLine=this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(n.AnnotationFieldFlag.DONOTSCROLL)}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(d,w,S,z,W,ne,Q,D,Y,ie,ee){const se=W/this.data.maxLen,ce=this.getBorderAndBackgroundAppearances(ee),le=[],de=w.getCharPositions(S);for(const[me,Se]of de)le.push(`(${(0,P.escapeString)(S.substring(me,Se))}) Tj`);const he=le.join(` ${(0,P.numberToString)(se)} 0 Td `);return`/Tx BMC q ${ce}BT `+d+` 1 0 0 1 ${(0,P.numberToString)(Q)} ${(0,P.numberToString)(D+Y)} Tm ${he} ET Q EMC`}_getMultilineAppearance(d,w,S,z,W,ne,Q,D,Y,ie,ee,se){const ce=[],le=W-2*D,de={shift:0};for(let Se=0,pe=w.length;Se<pe;Se++){const ge=w[Se],Ae=this._splitLine(ge,S,z,le);for(let Me=0,xe=Ae.length;Me<xe;Me++){const ue=Ae[Me],fe=Se===0&&Me===0?-Y-(ee-ie):-ee;ce.push(this._renderText(ue,S,z,W,Q,de,D,fe))}}const he=this.getBorderAndBackgroundAppearances(se),me=ce.join(` 3`);return`/Tx BMC q ${he}BT `+d+` 1 0 0 1 0 ${(0,P.numberToString)(ne)} Tm ${me} ET Q EMC`}_splitLine(d,w,S,z,W={}){d=W.line||d;const ne=W.glyphs||w.charsToGlyphs(d);if(ne.length<=1)return[d];const Q=W.positions||w.getCharPositions(d),D=S/1e3,Y=[];let ie=-1,ee=-1,se=-1,ce=0,le=0;for(let de=0,he=ne.length;de<he;de++){const[me,Se]=Q[de],pe=ne[de],ge=pe.width*D;pe.unicode===" "?le+ge>z?(Y.push(d.substring(ce,me)),ce=me,le=ge,ie=-1,se=-1):(le+=ge,ie=me,ee=Se,se=de):le+ge>z?ie!==-1?(Y.push(d.substring(ce,ee)),ce=ee,de=se+1,ie=-1,le=0):(Y.push(d.substring(ce,me)),ce=me,le=ge):le+=ge}return ce<d.length&&Y.push(d.substring(ce,d.length)),Y}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,t
3ype:"text"}}}class r extends u{constructor(d){super(d),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(d):this.data.radioButton?this._processRadioButton(d):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(d)):(0,n.warn)("Invalid field flags for button widget annotation")}async getOperatorList(d,w,S,z,W){if(this.data.pushButton)return super.getOperatorList(d,w,S,!1,W);let ne=null,Q=null;if(W){const Y=W.get(this.data.id);ne=Y?Y.value:null,Q=Y?Y.rotation:null}if(ne===null&&this.appearance)return super.getOperatorList(d,w,S,z,W);ne==null&&(ne=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);const D=ne?this.checkedAppearance:this.uncheckedAppearance;if(D){const Y=this.appearance,ie=D.dict.getArray("Matrix")||n.IDENTITY_MATRIX;Q&&D.dict.set("Matrix",this.getRotationMatrix(W)),this.appearance=D;const ee=super.getOperatorList(d,w,S,z,W);return this.appearance=Y,D.dict.set("Matrix",ie),ee}return{opList:new a.OperatorList,separateForm:!1,separateCanvas:!1}}async save(d,w,S){return this.data.checkBox?this._saveCheckbox(d,w,S):this.data.radioButton?this._saveRadioButton(d,w,S):null}async _saveCheckbox(d,w,S){if(!S)return null;const z=S.get(this.data.id);let W=z==null?void 0:z.rotation,ne=z==null?void 0:z.value;if(W===void 0&&(ne===void 0||this.data.fieldValue===this.data.exportValue===ne))return null;const Q=d.xref.fetchIfRef(this.ref);if(!(Q instanceof e.Dict))return null;W===void 0&&(W=this.rotation),ne===void 0&&(ne=this.data.fieldValue===this.data.exportValue);const D={path:this.data.fieldName,value:ne?this.data.exportValue:""},Y=e.Name.get(ne?this.data.exportValue:"Off");Q.set("V",Y),Q.set("AS",Y),Q.set("M",`D:${(0,n.getModificationDate)()}`);const ie=this._getMKDict(W);ie&&Q.set("MK",ie);const ee=[];return await(0,_.writeObject)(this.ref,Q,ee,d.xref),[{ref:this.ref,data:ee.join(""),xfa:D}]}async _saveRadioButton(d,w,S){if(!S)return null;const z=S.get(this.data.id);let W=z==null?void 0:z.rotation,ne=z==null?void 0:z.value;if(W===void 0&&(ne===void 0||this.data.fieldValue===this.data.buttonValue===ne))return null;const Q=d.xref.fetchIfRef(this.ref);if(!(Q instanceof e.Dict))return null;ne===void 0&&(ne=this.data.fieldValue===this.data.buttonValue),W===void 0&&(W=this.rotation);const D={path:this.data.fieldName,value:ne?this.data.buttonValue:""},Y=e.Name.get(ne?this.data.buttonValue:"Off"),ie=[];let ee=null;if(ne)if(this.parent instanceof e.Ref){const le=d.xref.fetch(this.parent);le.set("V",Y),await(0,_.writeObject)(this.parent,le,ie,d.xref),ee=ie.join(""),ie.length=0}else this.parent instanceof e.Dict&&this.parent.set("V",Y);Q.set("AS",Y),Q.set("M",`D:${(0,n.getModificationDate)()}`);const se=this._getMKDict(W);se&&Q.set("MK",se),await(0,_.writeObject)(this.ref,Q,ie,d.xref);const ce=[{ref:this.ref,data:ie.join(""),xfa:D}];return ee&&ce.push({ref:this.parent,data:ee,xfa:null}),ce}_getDefaultCheckedAppearance(d,w){const S=this.data.rect[2]-this.data.rect[0],z=this.data.rect[3]-this.data.rect[1],W=[0,0,S,z],Q=Math.min(S,z)*.8;let D,Y;w==="check"?(D={width:.755*Q,height:.705*Q},Y="3"):w==="disc"?(D={width:.791*Q,height:.705*Q},Y="l"):(0,n.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${w}`);const ie=(0,P.numberToString)((S-D.width)/2),ee=(0,P.numberToString)((z-D.height)/2),se=`q BT /PdfJsZaDb ${Q} Tf 0 g ${ie} ${ee} Td (${Y}) Tj ET Q`,ce=new e.Dict(d.xref);ce.set("FormType",1),ce.set("Subtype",e.Name.get("Form")),ce.set("Type",e.Name.get("XObject")),ce.set("BBox",W),ce.set("Matrix",[1,0,0,1,0,0]),ce.set("Length",se.length);const le=new e.Dict(d.xref),de=new e.Dict(d.xref);de.set("PdfJsZaDb",this.fallbackFontDict),le.set("Font",de),ce.set("Resources",le),this.checkedAppearance=new t.StringStream(se),this.checkedAppearance.dict=ce,this._streams.push(this.checkedAppearance)}_processCheckBox(d){const w=d.dict.get("AP");if(!(w instanceof e.Dict))return;const S=w.get("N");if(!(S instanceof e.Dict))return;const z=this._decodeFormValue(d.dict.get("AS"));typeof z=="string"&&(this.data.fieldValue=z);const W=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",ne=S.getKeys();if(ne.length===0)ne.push("Off",W);
3else if(ne.length===1)ne[0]==="Off"?ne.push(W):ne.unshift("Off");else if(ne.includes(W))ne.length=0,ne.push("Off",W);else{const Y=ne.find(ie=>ie!=="Off");ne.length=0,ne.push("Off",Y)}ne.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=ne[1];const Q=S.get(this.data.exportValue);this.checkedAppearance=Q instanceof l.BaseStream?Q:null;const D=S.get("Off");this.uncheckedAppearance=D instanceof l.BaseStream?D:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(d,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processRadioButton(d){this.data.fieldValue=this.data.buttonValue=null;const w=d.dict.get("Parent");if(w instanceof e.Dict){this.parent=d.dict.getRaw("Parent");const Q=w.get("V");Q instanceof e.Name&&(this.data.fieldValue=this._decodeFormValue(Q))}const S=d.dict.get("AP");if(!(S instanceof e.Dict))return;const z=S.get("N");if(!(z instanceof e.Dict))return;for(const Q of z.getKeys())if(Q!=="Off"){this.data.buttonValue=this._decodeFormValue(Q);break}const W=z.get(this.data.buttonValue);this.checkedAppearance=W instanceof l.BaseStream?W:null;const ne=z.get("Off");this.uncheckedAppearance=ne instanceof l.BaseStream?ne:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(d,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processPushButton(d){const{dict:w,annotationGlobals:S}=d;if(!w.has("A")&&!w.has("AA")&&!this.data.alternativeText){(0,n.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!w.has("A")&&!w.has("AA"),J.Catalog.parseDestDictionary({destDict:w,resultObj:this.data,docBaseUrl:S.baseUrl,docAttachments:S.attachments})}getFieldObject(){let d="button",w;return this.data.checkBox?(d="checkbox",w=this.data.exportValue):this.data.radioButton&&(d="radiobutton",w=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:w,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,t
3ype:d}}get fallbackFontDict(){const d=new e.Dict;return d.set("BaseFont",e.Name.get("ZapfDingbats")),d.set("Type",e.Name.get("FallbackType")),d.set("Subtype",e.Name.get("FallbackType")),d.set("Encoding",e.Name.get("ZapfDingbatsEncoding")),(0,n.shadow)(this,"fallbackFontDict",d)}}class s extends u{constructor(d){super(d);const{dict:w,xref:S}=d;this.indices=w.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];const z=(0,P.getInheritableProperty)({dict:w,key:"Opt"});if(Array.isArray(z))for(let W=0,ne=z.length;W<ne;W++){const Q=S.fetchIfRef(z[W]),D=Array.isArray(Q);this.data.options[W]={exportValue:this._decodeFormValue(D?S.fetchIfRef(Q[0]):Q),displayValue:this._decodeFormValue(D?S.fetchIfRef(Q[1]):Q)}}if(!this.hasIndices)typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]);else{this.data.fieldValue=[];const W=this.data.options.length;for(const ne of this.indices)Number.isInteger(ne)&&ne>=0&&ne<W&&this.data.fieldValue.push(this.data.options[ne].exportValue)}this.data.combo=this.hasFieldFlag(n.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(n.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){const d=this.data.combo?"combobox":"listbox",w=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:w,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,t
3ype:d}}amendSavedDict(d,w){var ne;if(!this.hasIndices)return;let S=(ne=d==null?void 0:d.get(this.data.id))==null?void 0:ne.value;Array.isArray(S)||(S=[S]);const z=[],{options:W}=this.data;for(let Q=0,D=0,Y=W.length;Q<Y;Q++)W[Q].exportValue===S[D]&&(z.push(Q),D+=1);w.set("I",z)}async _getAppearance(d,w,S,z){if(this.data.combo)return super._getAppearance(d,w,S,z);let W,ne;const Q=z==null?void 0:z.get(this.data.id);if(Q&&(ne=Q.rotation,W=Q.value),ne===void 0&&W===void 0&&!this._needAppearances)return null;W===void 0?W=this.data.fieldValue:Array.isArray(W)||(W=[W]);const D=1,Y=2;let ie=this.data.rect[3]-this.data.rect[1],ee=this.data.rect[2]-this.data.rect[0];(ne===90||ne===270)&&([ee,ie]=[ie,ee]);const se=this.data.options.length,ce=[];for(let ue=0;ue<se;ue++){const{exportValue:fe}=this.data.options[ue];W.includes(fe)&&ce.push(ue)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,j.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const le=await u._getFontData(d,w,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let de,{fontSize:he}=this.data.defaultAppearanceData;if(he)de=this._defaultAppearance;else{const ue=(ie-D)/se;let fe=-1,ke;for(const{displayValue:ye}of this.data.options){const $e=this._getTextWidth(ye,le);$e>fe&&(fe=$e,ke=ye)}[de,he]=this._computeFontSize(ue,ee-2*Y,ke,le,-1)}const me=he*n.LINE_FACTOR,Se=(me-he)/2,pe=Math.floor(ie/me);let ge=0;if(ce.length>0){const ue=Math.min(...ce),fe=Math.max(...ce);ge=Math.max(0,fe-pe+1),ge>ue&&(ge=ue)}const Ae=Math.min(ge+pe+1,se),Me=["/Tx BMC q",`1 1 ${ee} ${ie} re W n`];if(ce.length){Me.push("0.600006 0.756866 0.854904 rg");for(const ue of ce)ge<=ue&&ue<Ae&&Me.push(`1 ${ie-(ue-ge+1)*me} ${ee} ${me} re f`)}Me.push("BT",de,`1 0 0 1 0 ${ie} Tm`);const xe={shift:0};for(let ue=ge;ue<Ae;ue++){const{displayValue:fe}=this.data.options[ue],ke=ue===ge?Se:0;Me.push(this._renderText(fe,le,he,ee,0,xe,Y,-me+ke))}return Me.push("ET Q EMC"),Me.join(` 4`)}}class o extends u{constructor(d){super(d),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class m extends c{constructor(d){super(d),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate;const{dict:S}=d;this.data.annotationType=n.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=S.has("Name")?S.get("Name").name:"Note"),S.has("State")?(this.data.state=S.get("State")||null,this.data.stateModel=S.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class h extends b{constructor(d){var W;super(d);const{dict:w,annotationGlobals:S}=d;this.data.annotationType=n.AnnotationType.LINK;const z=R(w,this.rectangle);z&&(this.data.quadPoints=z),(W=this.data).borderColor||(W.borderColor=this.data.color),J.Catalog.parseDestDictionary({destDict:w,resultObj:this.data,docBaseUrl:S.baseUrl,docAttachments:S.attachments})}}class A extends b{constructor(d){super(d);const{dict:w}=d;this.data.annotationType=n.AnnotationType.POPUP,(this.data.rect[0]===this.data.rect[2]||this.data.rect[1]===this.data.rect[3])&&(this.data.rect=null);let S=w.get("Parent");if(!S){(0,n.warn)("Popup annotation has a missing or invalid parent annotation.");return}const z=S.getArray("Rect");this.data.parentRect=Array.isArray(z)&&z.length===4?n.Util.normalizeRect(z):null;const W=S.get("RT");if((0,e.isName)(W,n.AnnotationReplyType.GROUP)&&(S=S.get("IRT")),S.has("M")?(this.setModificationDate(S.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,S.has("C")?(this.setColor(S.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const ne=S.get("F");this._isViewable(ne)&&this.setFlags(ne)}this.setTitle(S.get("T")),this.data.titleObj=this._title,this.setContents(S.get("Contents")),this.data.contentsObj=this._contents,S.has("RC")&&(this.data.richText=y.XFAFactory.getRichTextAsHtml(S.get("RC"))),this.data.open=!!w.get("Open")}}p.PopupAnnotation=A;class L extends c{constructor(d){var z;super(d),this.data.hasOwnCanvas=!0;const{evaluatorOptions:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.FREETEXT,this.setDefaultAppearance(d),this.appearance){const{fontColor:W,fontSize:ne}=(0,j.parseAppearanceStream)(this.appearance,w,S);this.data.defaultAppearanceData.fontColor=W,this.data.defaultAppearanceData.fontSize=ne||10}else if(this._isOffscreenCanvasSupported){const W=d.dict.get("CA"),ne=new j.FakeUnicodeFont(S,"sans-serif");(z=this.data.defaultAppearanceData).fontSize||(z.fontSize=10);const{fontColor:Q,fontSize:D}=this.data.defaultAppearanceData;this.appearance=ne.createAppearance(this._contents.str,this.rectangle,this.rotation,D,Q,W),this._streams.push(this.appearance,j.FakeUnicodeFont.toUnicodeStream)}else(0,n.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(d,w,{apRef:S,ap:z}){const{color:W,fontSize:ne,rect:Q,rotation:D,user:Y,value:ie}=d,ee=new e.Dict(w);ee.set("Type",e.Name.get("Annot")),ee.set("Subtype",e.Name.get("FreeText")),ee.set("CreationDate",`D:${(0,n.getModificationDate)()}`),ee.set("Rect",Q);const se=`/Helv ${ne} Tf ${(0,j.getPdfColor)(W,!0)}`;if(ee.set("DA",se),ee.set("Contents",(0,P.isAscii)(ie)?ie:(0,P.stringToUTF16String)(ie,!0)),ee.set("F",4),ee.set("Border",[0,0,0]),ee.set("Rotate",D),Y&&ee.set("T",(0,P.isAscii)(Y)?Y:(0,P.stringToUTF16String)(Y,!0)),S||z){const ce=new e.Dict(w);ee.set("AP",ce),S?ce.set("N",S):ce.set("N",z)}return ee}static async createNewAppearanceStream(d,w,S){const{baseFontRef:z,evaluator:W,task:ne}=S,{color:Q,fontSize:D,rect:Y,rotation:ie,value:ee}=d,se=new e.Dict(w),ce=new e.Dict(w);if(z)ce.set("Helv",z);else{const pt=new e.Dict(w);pt.set("BaseFont",e.Name.get("Helvetica")),pt.set("Type",e.Name.get("Font")),pt.set("Subtype",e.Name.get("Type1")),pt.set("Encoding",e.Name.get("WinAnsiEncoding")),ce.set("Helv",pt)}se.set("Font",ce);const le=await u._getFontData(W,ne,{fontName:"Helv",fontSize:D},se),[de,he,me,Se]=Y;let pe=me-de,ge=Se-he;ie%180!==0&&([pe,ge]=[ge,pe]);const Ae=ee.split(` 5`),Me=D/1e3;let xe=-1/0;const ue=[];for(let pt of Ae){const Ot=le.encodeString(pt);if(Ot.length>1)return null;pt=Ot.join(""),ue.push(pt);let ze=0;const Ge=le.charsToGlyphs(pt);for(const Ue of Ge)ze+=Ue.width*Me;xe=Math.max(xe,ze)}let fe=1;xe>pe&&(fe=pe/xe);let ke=1;const ye=n.LINE_FACTOR*D,$e=(n.LINE_FACTOR-n.LINE_DESCENT_FACTOR)*D,Xe=ye*Ae.length;Xe>ge&&(ke=ge/Xe);const Ze=Math.min(fe,ke),Fe=D*Ze;let nt,We,Ee;switch(ie){case 0:Ee=[1,0,0,1],We=[Y[0],Y[1],pe,ge],nt=[Y[0],Y[3]-$e];break;case 90:Ee=[0,1,-1,0],We=[Y[1],-Y[2],pe,ge],nt=[Y[1],-Y[0]-$e];break;case 180:Ee=[-1,0,0,-1],We=[-Y[2],-Y[3],pe,ge],nt=[-Y[2],-Y[1]-$e];break;case 270:Ee=[0,-1,1,0],We=[-Y[3],Y[0],pe,ge],nt=[-Y[3],Y[2]-$e];break}const Ve=["q",`${Ee.join(" ")} 0 0 cm`,`${We.join(" ")} re W n`,"BT",`${(0,j.getPdfColor)(Q,!0)}`,`0 Tc /Helv ${(0,P.numberToString)(Fe)} Tf`];Ve.push(`${nt.join(" ")} Td (${(0,P.escapeString)(ue[0])}) Tj`);const tt=(0,P.numberToString)(ye);for(let pt=1,Ot=ue.length;pt<Ot;pt++){const ze=ue[pt];Ve.push(`0 -${tt} Td (${(0,P.escapeString)(ze)}) Tj`)}Ve.push("ET","Q");const Ne=Ve.join(`
6`),wt=new e.Dict(w);wt.set("FormType",1),wt.set("Subtype",e.Name.get("Form")),wt.set("Type",e.Name.get("XObject")),wt.set("BBox",Y),wt.set("Resources",se),wt.set("Matrix",[1,0,0,1,-Y[0],-Y[1]]);const dt=new t.StringStream(Ne);return dt.dict=wt,dt}}class H extends c{constructor(d){super(d);const{dict:w,xref:S}=d;this.data.annotationType=n.AnnotationType.LINE,this.data.hasOwnCanvas=this.data.noRotate;const z=w.getArray("L");if(this.data.lineCoordinates=n.Util.normalizeRect(z),this.setLineEndings(w.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const W=this.color?X(this.color):[0,0,0],ne=w.get("CA"),Q=N(w.getArray("IC"),null),D=Q?X(Q):null,Y=D?ne:null,ie=this.borderStyle.width||1,ee=2*ie,se=[this.data.lineCoordinates[0]-ee,this.data.lineCoordinates[1]-ee,this.data.lineCoordinates[2]+ee,this.data.lineCoordinates[3]+ee];n.Util.intersect(this.rectangle,se)||(this.rectangle=se),this._setDefaultAppearance({xref:S,extra:`${ie} w`,strokeColor:W,fillColor:D,strokeAlpha:ne,fillAlpha:Y,pointsCallback:(ce,le)=>(ce.push(`${z[0]} ${z[1]} m`,`${z[2]} ${z[3]} l`,"S"),[le[0].x-ie,le[1].x+ie,le[3].y-ie,le[1].y+ie])})}}}class F extends c{constructor(d){super(d);const{dict:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,!this.appearance){const z=this.color?X(this.color):[0,0,0],W=w.get("CA"),ne=N(w.getArray("IC"),null),Q=ne?X(ne):null,D=Q?W:null;if(this.borderStyle.width===0&&!Q)return;this._setDefaultAppearance({xref:S,extra:`${this.borderStyle.width} w`,strokeColor:z,fillColor:Q,strokeAlpha:W,fillAlpha:D,pointsCallback:(Y,ie)=>{const ee=ie[2].x+this.borderStyle.width/2,se=ie[2].y+this.borderStyle.width/2,ce=ie[3].x-ie[2].x-this.borderStyle.width,le=ie[1].y-ie[3].y-this.borderStyle.width;return Y.push(`${ee} ${se} ${ce} ${le} re`),Q?Y.push("B"):Y.push("S"),[ie[0].x,ie[1].x,ie[3].y,ie[1].y]}})}}}class M extends c{constructor(d){super(d);const{dict:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.CIRCLE,!this.appearance){const z=this.color?X(this.color):[0,0,0],W=w.get("CA"),ne=N(w.getArray("IC"),null),Q=ne?X(ne):null,D=Q?W:null;if(this.borderStyle.width===0&&!Q)return;const Y=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:S,extra:`${this.borderStyle.width} w`,strokeColor:z,fillColor:Q,strokeAlpha:W,fillAlpha:D,pointsCallback:(ie,ee)=>{const se=ee[0].x+this.borderStyle.width/2,ce=ee[0].y-this.borderStyle.width/2,le=ee[3].x-this.borderStyle.width/2,de=ee[3].y+this.borderStyle.width/2,he=se+(le-se)/2,me=ce+(de-ce)/2,Se=(le-se)/2*Y,pe=(de-ce)/2*Y;return ie.push(`${he} ${de} m`,`${he+Se} ${de} ${le} ${me+pe} ${le} ${me} c`,`${le} ${me-pe} ${he+Se} ${ce} ${he} ${ce} c`,`${he-Se} ${ce} ${se} ${me-pe} ${se} ${me} c`,`${se} ${me+pe} ${he-Se} ${de} ${he} ${de} c`,"h"),Q?ie.push("B"):ie.push("S"),[ee[0].x,ee[1].x,ee[3].y,ee[1].y]}})}}}class k extends c{constructor(d){super(d);const{dict:w,xref:S}=d;this.data.annotationType=n.AnnotationType.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.vertices=[],this instanceof x||(this.setLineEndings(w.getArray("LE")),this.data.lineEndings=this.lineEndings);const z=w.getArray("Vertices");if(Array.isArray(z)){for(let W=0,ne=z.length;W<ne;W+=2)this.data.vertices.push({x:z[W],y:z[W+1]});if(!this.appearance){const W=this.color?X(this.color):[0,0,0],ne=w.get("CA"),Q=this.borderStyle.width||1,D=2*Q,Y=[1/0,1/0,-1/0,-1/0];for(const ie of this.data.vertices)Y[0]=Math.min(Y[0],ie.x-D),Y[1]=Math.min(Y[1],ie.y-D),Y[2]=Math.max(Y[2],ie.x+D),Y[3]=Math.max(Y[3],ie.y+D);n.Util.intersect(this.rectangle,Y)||(this.rectangle=Y),this._setDefaultAppearance({xref:S,extra:`${Q} w`,strokeColor:W,strokeAlpha:ne,pointsCallback:(ie,ee)=>{const se=this.data.vertices;for(let ce=0,le=se.length;ce<le;ce++)ie.push(`${se[ce].x} ${se[ce].y} ${ce===0?"m":"l"}`);return ie.push("S"),[ee[0].x,ee[1].x,ee[3].y,ee[1].y]}})}}}}class x extends k{constructor(d){super(d),this.data.annotationType=n.AnnotationType.POLYGON}}class C extends c{constructor(d){super(d),this.data.annotationType=n.AnnotationType.CARET}}
6class G extends c{constructor(d){super(d),this.data.hasOwnCanvas=this.data.noRotate;const{dict:w,xref:S}=d;this.data.annotationType=n.AnnotationType.INK,this.data.inkLists=[];const z=w.getArray("InkList");if(Array.isArray(z)){for(let W=0,ne=z.length;W<ne;++W){this.data.inkLists.push([]);for(let Q=0,D=z[W].length;Q<D;Q+=2)this.data.inkLists[W].push({x:S.fetchIfRef(z[W][Q]),y:S.fetchIfRef(z[W][Q+1])})}if(!this.appearance){const W=this.color?X(this.color):[0,0,0],ne=w.get("CA"),Q=this.borderStyle.width||1,D=2*Q,Y=[1/0,1/0,-1/0,-1/0];for(const ie of this.data.inkLists)for(const ee of ie)Y[0]=Math.min(Y[0],ee.x-D),Y[1]=Math.min(Y[1],ee.y-D),Y[2]=Math.max(Y[2],ee.x+D),Y[3]=Math.max(Y[3],ee.y+D);n.Util.intersect(this.rectangle,Y)||(this.rectangle=Y),this._setDefaultAppearance({xref:S,extra:`${Q} w`,strokeColor:W,strokeAlpha:ne,pointsCallback:(ie,ee)=>{for(const se of this.data.inkLists){for(let ce=0,le=se.length;ce<le;ce++)ie.push(`${se[ce].x} ${se[ce].y} ${ce===0?"m":"l"}`);ie.push("S")}return[ee[0].x,ee[1].x,ee[3].y,ee[1].y]}})}}}static createNewDict(d,w,{apRef:S,ap:z}){const{color:W,opacity:ne,paths:Q,rect:D,rotation:Y,thickness:ie}=d,ee=new e.Dict(w);ee.set("Type",e.Name.get("Annot")),ee.set("Subtype",e.Name.get("Ink")),ee.set("CreationDate",`D:${(0,n.getModificationDate)()}`),ee.set("Rect",D),ee.set("InkList",Q.map(le=>le.points)),ee.set("F",4),ee.set("Rotate",Y);const se=new e.Dict(w);ee.set("BS",se),se.set("W",ie),ee.set("C",Array.from(W,le=>le/255)),ee.set("CA",ne);const ce=new e.Dict(w);return ee.set("AP",ce),S?ce.set("N",S):ce.set("N",z),ee}static async createNewAppearanceStream(d,w,S){const{color:z,rect:W,paths:ne,thickness:Q,opacity:D}=d,Y=[`${Q} w 1 J 1 j`,`${(0,j.getPdfColor)(z,!1)}`];D!==1&&Y.push("/R0 gs");const ie=[];for(const{bezier:le}of ne){ie.length=0,ie.push(`${(0,P.numberToString)(le[0])} ${(0,P.numberToString)(le[1])} m`);for(let de=2,he=le.length;de<he;de+=6){const me=le.slice(de,de+6).map(P.numberToString).join(" ");ie.push(`${me} c`)}ie.push("S"),Y.push(ie.join(` 7`))}const ee=Y.join(` 8`),se=new e.Dict(w);if(se.set("FormType",1),se.set("Subtype",e.Name.get("Form")),se.set("Type",e.Name.get("XObject")),se.set("BBox",W),se.set("Length",ee.length),D!==1){const le=new e.Dict(w),de=new e.Dict(w),he=new e.Dict(w);he.set("CA",D),he.set("Type",e.Name.get("ExtGState")),de.set("R0",he),le.set("ExtGState",de),se.set("Resources",le)}const ce=new t.StringStream(ee);return ce.dict=se,ce}}class Z extends c{constructor(d){var W;super(d);const{dict:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.HIGHLIGHT,this.data.quadPoints=R(w,null)){const ne=(W=this.appearance)==null?void 0:W.dict.get("Resources");if(!this.appearance||!(ne!=null&&ne.has("ExtGState"))){this.appearance&&(0,n.warn)("HighlightAnnotation - ignoring built-in appearance stream.");const Q=this.color?X(this.color):[1,1,0],D=w.get("CA");this._setDefaultAppearance({xref:S,fillColor:Q,blendMode:"Multiply",fillAlpha:D,pointsCallback:(Y,ie)=>(Y.push(`${ie[0].x} ${ie[0].y} m`,`${ie[1].x} ${ie[1].y} l`,`${ie[3].x} ${ie[3].y} l`,`${ie[2].x} ${ie[2].y} l`,"f"),[ie[0].x,ie[1].x,ie[3].y,ie[1].y])})}}else this.data.popupRef=null}}class ae extends c{constructor(d){super(d);const{dict:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.UNDERLINE,this.data.quadPoints=R(w,null)){if(!this.appearance){const W=this.color?X(this.color):[0,0,0],ne=w.get("CA");this._setDefaultAppearance({xref:S,extra:"[] 0 d 0.571 w",strokeColor:W,strokeAlpha:ne,pointsCallback:(Q,D)=>(Q.push(`${D[2].x} ${D[2].y+1.3} m`,`${D[3].x} ${D[3].y+1.3} l`,"S"),[D[0].x,D[1].x,D[3].y,D[1].y])})}}else this.data.popupRef=null}}class oe extends c{constructor(d){super(d);const{dict:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.SQUIGGLY,this.data.quadPoints=R(w,null)){if(!this.appearance){const W=this.color?X(this.color):[0,0,0],ne=w.get("CA");this._setDefaultAppearance({xref:S,extra:"[] 0 d 1 w",strokeColor:W,strokeAlpha:ne,pointsCallback:(Q,D)=>{const Y=(D[0].y-D[2].y)/6;let ie=Y,ee=D[2].x;const se=D[2].y,ce=D[3].x;Q.push(`${ee} ${se+ie} m`);do ee+=2,ie=ie===0?Y:0,Q.push(`${ee} ${se+ie} l`);while(ee<ce);return Q.push("S"),[D[2].x,ce,se-2*Y,se+2*Y]}})}}else this.data.popupRef=null}}
8class te extends c{constructor(d){super(d);const{dict:w,xref:S}=d;if(this.data.annotationType=n.AnnotationType.STRIKEOUT,this.data.quadPoints=R(w,null)){if(!this.appearance){const W=this.color?X(this.color):[0,0,0],ne=w.get("CA");this._setDefaultAppearance({xref:S,extra:"[] 0 d 1 w",strokeColor:W,strokeAlpha:ne,pointsCallback:(Q,D)=>(Q.push(`${(D[0].x+D[2].x)/2} ${(D[0].y+D[2].y)/2} m`,`${(D[1].x+D[3].x)/2} ${(D[1].y+D[3].y)/2} l`,"S"),[D[0].x,D[1].x,D[3].y,D[1].y])})}}else this.data.popupRef=null}}class K extends c{constructor(d){super(d),this.data.annotationType=n.AnnotationType.STAMP,this.data.hasOwnCanvas=this.data.noRotate}static async createImage(d,w){const{width:S,height:z}=d,W=new OffscreenCanvas(S,z),ne=W.getContext("2d",{alpha:!0});ne.drawImage(d,0,0);const Q=ne.getImageData(0,0,S,z).data,D=new Uint32Array(Q.buffer),Y=D.some(n.FeatureTest.isLittleEndian?he=>he>>>24!==255:he=>(he&255)!==255);Y&&(ne.fillStyle="white",ne.fillRect(0,0,S,z),ne.drawImage(d,0,0));const ie=W.convertToBlob({type:"image/jpeg",quality:1}).then(he=>he.arrayBuffer()),ee=e.Name.get("XObject"),se=e.Name.get("Image"),ce=new e.Dict(w);ce.set("Type",ee),ce.set("Subtype",se),ce.set("BitsPerComponent",8),ce.set("ColorSpace",e.Name.get("DeviceRGB")),ce.set("Filter",e.Name.get("DCTDecode")),ce.set("BBox",[0,0,S,z]),ce.set("Width",S),ce.set("Height",z);let le=null;if(Y){const he=new Uint8Array(D.length);if(n.FeatureTest.isLittleEndian)for(let Se=0,pe=D.length;Se<pe;Se++)he[Se]=D[Se]>>>24;else for(let Se=0,pe=D.length;Se<pe;Se++)he[Se]=D[Se]&255;const me=new e.Dict(w);me.set("Type",ee),me.set("Subtype",se),me.set("BitsPerComponent",8),me.set("ColorSpace",e.Name.get("DeviceGray")),me.set("Width",S),me.set("Height",z),le=new t.Stream(he,0,0,me)}return{imageStream:new t.Stream(await ie,0,0,ce),smaskStream:le,width:S,height:z}}static createNewDict(d,w,{apRef:S,ap:z}){const{rect:W,rotation:ne,user:Q}=d,D=new e.Dict(w);if(D.set("Type",e.Name.get("Annot")),D.set("Subtype",e.Name.get("Stamp")),D.set("CreationDate",`D:${(0,n.getModificationDate)()}`),D.set("Rect",W),D.set("F",4),D.set("Border",[0,0,0]),D.set("Rotate",ne),Q&&D.set("T",(0,P.isAscii)(Q)?Q:(0,P.stringToUTF16String)(Q,!0)),S||z){const Y=new e.Dict(w);D.set("AP",Y),S?Y.set("N",S):Y.set("N",z)}return D}static async createNewAppearanceStream(d,w,S){const{rotation:z}=d,{imageRef:W,width:ne,height:Q}=S.image,D=new e.Dict(w),Y=new e.Dict(w);D.set("XObject",Y),Y.set("Im0",W);const ie=`q ${ne} 0 0 ${Q} 0 0 cm /Im0 Do Q`,ee=new e.Dict(w);if(ee.set("FormType",1),ee.set("Subtype",e.Name.get("Form")),ee.set("Type",e.Name.get("XObject")),ee.set("BBox",[0,0,ne,Q]),ee.set("Resources",D),z){const ce=(0,P.getRotationMatrix)(z,ne,Q);ee.set("Matrix",ce)}const se=new t.StringStream(ie);return se.dict=ee,se}}class v extends c{constructor(d){super(d);const{dict:w,xref:S}=d,z=new I.FileSpec(w.get("FS"),S);this.data.annotationType=n.AnnotationType.FILEATTACHMENT,this.data.hasOwnCanvas=this.data.noRotate,this.data.file=z.serializable;const W=w.get("Name");this.data.name=W instanceof e.Name?(0,n.stringToPDFString)(W.name):"PushPin";const ne=w.get("ca");this.data.fillAlpha=typeof ne=="number"&&ne>=0&&ne<=1?ne:null}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.FakeUnicodeFont=void 0,p.createDefaultAppearance=_,p.getPdfColor=a,p.parseAppearanceStream=g,p.parseDefaultAppearance=I;var n=re(4),P=re(3),j=re(2),e=re(12),t=re(13),l=re(59),V=re(57),J=re(8);class B extends t.EvaluatorPreprocessor{constructor(N){super(new J.StringStream(N))}parse(){const N={fn:0,args:[]},X={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;N.args.length=0,!!this.read(N);){if(this.savedStatesDepth!==0)continue;const{fn:R,args:q}=N;switch(R|0){case j.OPS.setFont:const[b,E]=q;b instanceof n.Name&&(X.fontName=b.name),typeof E=="number"&&E>0&&(X.fontSize=E);break;case j.OPS.setFillRGBColor:e.ColorSpace.singletons.rgb.getRgbItem(q,0,X.fontColor,0);break;case j.OPS.setFillGray:e.ColorSpace.singletons.gray.getRgbItem(q,0,X.fontColor,0);break;case j.OPS.setFillCMYKColor:e.ColorSpace.singletons.cmyk.getRgbItem(q,0,X.fontColor,0);break}}}catch(R){(0,j.warn)(`parseDefaultAppearance - ignoring errors: "${R}".`)}return X}}function I(O){return new B(O).parse()}class f extends t.EvaluatorPreprocessor{constructor(N,X,R){var q;super(N),this.stream=N,this.evaluatorOptions=X,this.xref=R,this.resources=(q=N.dict)==null?void 0:q.get("Resources")}parse(){const N={fn:0,args:[]};let X={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:e.ColorSpace.singletons.gray},R=!1;const q=[];try{for(;N.args.length=0,!(R||!this.read(N));){const{fn:b,args:E}=N;switch(b|0){case j.OPS.save:q.push({scaleFactor:X.scaleFactor,fontSize:X.fontSize,fontName:X.fontName,fontColor:X.fontColor.slice(),fillColorSpace:X.fillColorSpace});break;case j.OPS.restore:X=q.pop()||X;break;case j.OPS.setTextMatrix:X.scaleFactor*=Math.hypot(E[0],E[1]);break;case j.OPS.setFont:const[c,u]=E;c instanceof n.Name&&(X.fontName=c.name),typeof u=="number"&&u>0&&(X.fontSize=u*X.scaleFactor);break;
8case j.OPS.setFillColorSpace:X.fillColorSpace=e.ColorSpace.parse({cs:E[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case j.OPS.setFillColor:X.fillColorSpace.getRgbItem(E,0,X.fontColor,0);break;case j.OPS.setFillRGBColor:e.ColorSpace.singletons.rgb.getRgbItem(E,0,X.fontColor,0);break;case j.OPS.setFillGray:e.ColorSpace.singletons.gray.getRgbItem(E,0,X.fontColor,0);break;case j.OPS.setFillCMYKColor:e.ColorSpace.singletons.cmyk.getRgbItem(E,0,X.fontColor,0);break;case j.OPS.showText:case j.OPS.showSpacedText:case j.OPS.nextLineShowText:case j.OPS.nextLineSetSpacingShowText:R=!0;break}}}catch(b){(0,j.warn)(`parseAppearanceStream - ignoring errors: "${b}".`)}return this.stream.reset(),delete X.scaleFactor,delete X.fillColorSpace,X}get _localColorSpaceCache(){return(0,j.shadow)(this,"_localColorSpaceCache",new l.LocalColorSpaceCache)}get _pdfFunctionFactory(){const N=new V.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,j.shadow)(this,"_pdfFunctionFactory",N)}}function g(O,N,X){return new f(O,N,X).parse()}function a(O,N){if(O[0]===O[1]&&O[1]===O[2]){const X=O[0]/255;return`${(0,P.numberToString)(X)} ${N?"g":"G"}`}return Array.from(O,X=>(0,P.numberToString)(X/255)).join(" ")+` ${N?"rg":"RG"}`}function _({fontSize:O,fontName:N,fontColor:X}){return`/${(0,P.escapePDFName)(N)} ${O} Tf ${a(X,!0)}`}class y{constructor(N,X){this.xref=N,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=X;const R=new OffscreenCanvas(1,1);this.ctxMeasure=R.getContext("2d"),y._fontNameId||(y._fontNameId=1),this.fontName=n.Name.get(`InvalidPDFjsFont_${X}_${y._fontNameId++}`)}get toUnicodeRef(){if(!y._toUnicodeRef){const N=`/CIDInit /ProcSet findresource begin 912 dict begin 10begincmap 11/CIDSystemInfo 12<< /Registry (Adobe) 13/Ordering (UCS) /Supplement 0 >> def 14/CMapName /Adobe-Identity-UCS def 15/CMapType 2 def 161 begincodespacerange 17<0000> <FFFF> 18endcodespacerange 191 beginbfrange 20<0000> <FFFF> <0000> 21endbfrange 22endcmap CMapName currentdict /CMap defineresource pop end end`,X=y.toUnicodeStream=new J.StringStream(N),R=new n.Dict(this.xref);X.dict=R,R.set("Length",N.length),y._toUnicodeRef=this.xref.getNewPersistentRef(X)}return y._toUnicodeRef}get fontDescriptorRef(){if(!y._fontDescriptorRef){const N=new n.Dict(this.xref);N.set("Type",n.Name.get("FontDescriptor")),N.set("FontName",this.fontName),N.set("FontFamily","MyriadPro Regular"),N.set("FontBBox",[0,0,0,0]),N.set("FontStretch",n.Name.get("Normal")),N.set("FontWeight",400),N.set("ItalicAngle",0),y._fontDescriptorRef=this.xref.getNewPersistentRef(N)}return y._fontDescriptorRef}get descendantFontRef(){const N=new n.Dict(this.xref);N.set("BaseFont",this.fontName),N.set("Type",n.Name.get("Font")),N.set("Subtype",n.Name.get("CIDFontType0")),N.set("CIDToGIDMap",n.Name.get("Identity")),N.set("FirstChar",this.firstChar),N.set("LastChar",this.lastChar),N.set("FontDescriptor",this.fontDescriptorRef),N.set("DW",1e3);const X=[],R=[...this.widths.entries()].sort();let q=null,b=null;for(const[c,u]of R){if(!q){q=c,b=[u];continue}c===q+b.length?b.push(u):(X.push(q,b),q=c,b=[u])}q&&X.push(q,b),N.set("W",X);const E=new n.Dict(this.xref);return E.set("Ordering","Identity"),E.set("Registry","Adobe"),E.set("Supplement",0),N.set("CIDSystemInfo",E),this.xref.getNewPersistentRef(N)}get baseFontRef(){const N=new n.Dict(this.xref);return N.set("BaseFont",this.fontName),N.set("Type",n.Name.get("Font")),N.set("Subtype",n.Name.get("Type0")),N.set("Encoding",n.Name.get("Identity-H")),N.set("DescendantFonts",[this.descendantFontRef]),N.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(N)}get resources(){const N=new n.Dict(this.xref),X=new n.Dict(this.xref);return X.set(this.fontName.name,this.baseFontRef),N.set("Font",X),N}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(N){const X=this._createContext();for(const R of N.split(/\r\n?|\n/))for(const q of R.split("")){const b=q.charCodeAt(0);if(this.widths.has(b))continue;const E=X.measureText(q),c=Math.ceil(E.width);this.widths.set(b,c),this.firstChar=Math.min(b,this.firstChar),this.lastChar=Math.max(b,this.lastChar)}return this.resources}createAppearance(N,X,R,q,b,E){const c=this._createContext(),u=[];let T=-1/0;for(const v of N.split(/\r\n?|\n/)){u.push(v);const $=c.measureText(v).width;T=Math.max(T,$);
22for(const d of v.split("")){const w=d.charCodeAt(0);let S=this.widths.get(w);if(S===void 0){const z=c.measureText(d);S=Math.ceil(z.width),this.widths.set(w,S),this.firstChar=Math.min(w,this.firstChar),this.lastChar=Math.max(w,this.lastChar)}}}T*=q/1e3;const[r,s,o,m]=X;let h=o-r,A=m-s;R%180!==0&&([h,A]=[A,h]);let L=1;T>h&&(L=h/T);let H=1;const F=j.LINE_FACTOR*q,M=j.LINE_DESCENT_FACTOR*q,k=F*u.length;k>A&&(H=A/k);const x=Math.min(L,H),C=q*x,G=["q",`0 0 ${(0,P.numberToString)(h)} ${(0,P.numberToString)(A)} re W n`,"BT",`1 0 0 1 0 ${(0,P.numberToString)(A+M)} Tm 0 Tc ${a(b,!0)}`,`/${this.fontName.name} ${(0,P.numberToString)(C)} Tf`],{resources:Z}=this;if(E=typeof E=="number"&&E>=0&&E<=1?E:1,E!==1){G.push("/R0 gs");const v=new n.Dict(this.xref),$=new n.Dict(this.xref);$.set("ca",E),$.set("CA",E),$.set("Type",n.Name.get("ExtGState")),v.set("R0",$),Z.set("ExtGState",v)}const ae=(0,P.numberToString)(F);for(const v of u)G.push(`0 -${ae} Td <${(0,P.stringToUTF16HexString)(v)}> Tj`);G.push("ET","Q");const oe=G.join(` 23`),te=new n.Dict(this.xref);if(te.set("Subtype",n.Name.get("Form")),te.set("Type",n.Name.get("XObject")),te.set("BBox",[0,0,h,A]),te.set("Length",oe.length),te.set("Resources",Z),R){const v=(0,P.getRotationMatrix)(R,h,A);te.set("Matrix",v)}const K=new J.StringStream(oe);return K.dict=te,K}}p.FakeUnicodeFont=y},(Re,p,re)=>{var O,jn,X,Un,q,b,E,c,u,T,r,s,o,an,Kn,Yn,mn,sn,rn,Jn,Zn,Qn,_n,Z,pn,bn,Xn;Object.defineProperty(p,"__esModule",{value:!0}
23),p.ColorSpace=void 0;var n=re(2),P=re(4),j=re(5),e=re(3);function t(K,v,$,d,w,S,z){z=z!==1?0:z;const ne=$/w,Q=d/S;let D=0,Y;const ie=new Uint16Array(w),ee=$*3;for(let se=0;se<w;se++)ie[se]=Math.floor(se*ne)*3;for(let se=0;se<S;se++){const ce=Math.floor(se*Q)*ee;for(let le=0;le<w;le++)Y=ce+ie[le],v[D++]=K[Y++],v[D++]=K[Y++],v[D++]=K[Y++],D+=z}}class l{constructor(v,$){this.constructor===l&&(0,n.unreachable)("Cannot initialize ColorSpace."),this.name=v,this.numComps=$}getRgb(v,$){const d=new Uint8ClampedArray(3);return this.getRgbItem(v,$,d,0),d}getRgbItem(v,$,d,w){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(v,$,d,w,S,z,W){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(v,$){(0,n.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(v){return!1}isDefaultDecode(v,$){return l.isDefaultDecode(v,this.numComps)}fillRgb(v,$,d,w,S,z,W,ne,Q){const D=$*d;let Y=null;const ie=1<<W,ee=d!==S||$!==w;if(this.isPassthrough(W))Y=ne;else if(this.numComps===1&&D>ie&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const se=W<=8?new Uint8Array(ie):new Uint16Array(ie);for(let le=0;le<ie;le++)se[le]=le;const ce=new Uint8ClampedArray(ie*3);if(this.getRgbBuffer(se,0,ie,ce,0,W,0),ee){Y=new Uint8Array(D*3);let le=0;for(let de=0;de<D;++de){const he=ne[de]*3;Y[le++]=ce[he],Y[le++]=ce[he+1],Y[le++]=ce[he+2]}}else{let le=0;for(let de=0;de<D;++de){const he=ne[de]*3;v[le++]=ce[he],v[le++]=ce[he+1],v[le++]=ce[he+2],le+=Q}}}else ee?(Y=new Uint8ClampedArray(D*3),this.getRgbBuffer(ne,0,D,Y,0,W,0)):this.getRgbBuffer(ne,0,w*z,v,0,W,Q);if(Y)if(ee)t(Y,v,$,d,w,S,Q);else{let se=0,ce=0;for(let le=0,de=w*z;le<de;le++)v[se++]=Y[ce++],v[se++]=Y[ce++],v[se++]=Y[ce++],se+=Q}}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",!0)}static _cache(v,$,d,w){if(!d)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!w)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let S,z;v instanceof P.Ref&&(z=v,v=$.fetch(v)),v instanceof P.Name&&(S=v.name),(S||z)&&d.set(S,z,w)}static getCached(v,$,d){if(!d)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(v instanceof P.Ref){const w=d.getByRef(v);if(w)return w;try{v=$.fetch(v)}catch(S){if(S instanceof e.MissingDataException)throw S}}if(v instanceof P.Name){const w=d.getByName(v.name);if(w)return w}return null}static async parseAsync({cs:v,xref:$,resources:d=null,pdfFunctionFactory:w,localColorSpaceCache:S}){const z=this._parse(v,$,d,w);return this._cache(v,$,S,z),z}static parse({cs:v,xref:$,resources:d=null,pdfFunctionFactory:w,localColorSpaceCache:S}){const z=this.getCached(v,$,S);if(z)return z;const W=this._parse(v,$,d,w);return this._cache(v,$,S,W),W}static _parse(v,$,d=null,w){if(v=$.fetchIfRef(v),v instanceof P.Name)switch(v.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new J(null);default:if(d instanceof P.Dict){const S=d.get("ColorSpace");if(S instanceof P.Dict){const z=S.get(v.name);if(z){if(z instanceof P.Name)return this._parse(z,$,d,w);v=z;break}}}throw new n.FormatError(`Unrecognized ColorSpace: ${v.name}`)}if(Array.isArray(v)){const S=$.fetchIfRef(v[0]).name;let z,W,ne,Q,D,Y;switch(S){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return z=$.fetchIfRef(v[1]),Q=z.getArray("WhitePoint"),D=z.getArray("BlackPoint"),Y=z.get("Gamma"),new a(Q,D,Y);case"CalRGB":z=$.fetchIfRef(v[1]),Q=z.getArray("WhitePoint"),D=z.getArray("BlackPoint"),Y=z.getArray("Gamma");const ie=z.getArray("Matrix");return new _(Q,D,Y,ie);case"ICCBased":const se=$.fetchIfRef(v[1]).dict;W=se.get("N");const ce=se.get("Alternate");if(ce){const pe=this._parse(ce,$,d,w);if(pe.numComps===W)return pe;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(W===1)return this.singletons.gray;if(W===3)return this.singletons.rgb;if(W===4)return this.singletons.cmyk;break;case"Pattern":return ne=v[1]||null,ne&&(ne=this._parse(ne,$,d,w)),new J(ne);case"I":case"Indexed":ne=this._parse(v[1],$,d,w);const le=$.fetchIfRef(v[2])+1,de=$.fetchIfRef(v[3]);return new B(ne,le,de);case"Separation":case"DeviceN":const he=$.fetchIfRef(v[1]);W=Array.isArray(he)?he.length:1,ne=this._parse(v[2],$,d,w);const me=w.create(v[3]);return new V(W,ne,me);case"Lab":z=$.fetchIfRef(v[1]),Q=z.getArray("WhitePoint"),D=z.getArray("BlackPoint");const Se=z.getArray("Range");return new y(Q,D,Se);default:throw new n.FormatError(`Unimplemented ColorSpace object: ${S}`)}}throw new n.FormatError(`Unrecognized ColorSpace object: ${v}`)}static isDefaultDecode(v,$){if(!Array.isArray(v))return!0;
23if($*2!==v.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(let d=0,w=v.length;d<w;d+=2)if(v[d]!==0||v[d+1]!==1)return!1;return!0}static get singletons(){return(0,n.shadow)(this,"singletons",{get gray(){return(0,n.shadow)(this,"gray",new I)},get rgb(){return(0,n.shadow)(this,"rgb",new f)},get cmyk(){return(0,n.shadow)(this,"cmyk",new g)}})}}p.ColorSpace=l;class V extends l{constructor(v,$,d){super("Alternate",v),this.base=$,this.tintFn=d,this.tmpBuf=new Float32Array($.numComps)}getRgbItem(v,$,d,w){const S=this.tmpBuf;this.tintFn(v,$,S,0),this.base.getRgbItem(S,0,d,w)}getRgbBuffer(v,$,d,w,S,z,W){const ne=this.tintFn,Q=this.base,D=1/((1<<z)-1),Y=Q.numComps,ie=Q.usesZeroToOneRange,ee=(Q.isPassthrough(8)||!ie)&&W===0;let se=ee?S:0;const ce=ee?w:new Uint8ClampedArray(Y*d),le=this.numComps,de=new Float32Array(le),he=new Float32Array(Y);let me,Se;for(me=0;me<d;me++){for(Se=0;Se<le;Se++)de[Se]=v[$++]*D;if(ne(de,0,he,0),ie)for(Se=0;Se<Y;Se++)ce[se++]=he[Se]*255;else Q.getRgbItem(he,0,ce,se),se+=Y}ee||Q.getRgbBuffer(ce,0,d,w,S,8,W)}getOutputLength(v,$){return this.base.getOutputLength(v*this.base.numComps/this.numComps,$)}}class J extends l{constructor(v){super("Pattern",null),this.base=v}isDefaultDecode(v,$){(0,n.unreachable)("Should not call PatternCS.isDefaultDecode")}}class B extends l{constructor(v,$,d){super("Indexed",1),this.base=v,this.highVal=$;const w=v.numComps*$;if(this.lookup=new Uint8Array(w),d instanceof j.BaseStream){const S=d.getBytes(w);this.lookup.set(S)}else if(typeof d=="string")for(let S=0;S<w;++S)this.lookup[S]=d.charCodeAt(S)&255;else throw new n.FormatError(`IndexedCS - unrecognized lookup table: ${d}`)}getRgbItem(v,$,d,w){const S=this.base.numComps,z=v[$]*S;this.base.getRgbBuffer(this.lookup,z,1,d,w,8,0)}getRgbBuffer(v,$,d,w,S,z,W){const ne=this.base,Q=ne.numComps,D=ne.getOutputLength(Q,W),Y=this.lookup;for(let ie=0;ie<d;++ie){const ee=v[$++]*Q;ne.getRgbBuffer(Y,ee,1,w,S,8,W),S+=D}}getOutputLength(v,$){return this.base.getOutputLength(v*this.base.numComps,$)}isDefaultDecode(v,$){return Array.isArray(v)?v.length!==2?((0,n.warn)("Decode map length is not correct"),!0):!Number.isInteger($)||$<1?((0,n.warn)("Bits per component is not correct"),!0):v[0]===0&&v[1]===(1<<$)-1:!0}}class I extends l{constructor(){super("DeviceGray",1)}getRgbItem(v,$,d,w){const S=v[$]*255;d[w]=d[w+1]=d[w+2]=S}getRgbBuffer(v,$,d,w,S,z,W){const ne=255/((1<<z)-1);let Q=$,D=S;for(let Y=0;Y<d;++Y){const ie=ne*v[Q++];w[D++]=ie,w[D++]=ie,w[D++]=ie,D+=W}}getOutputLength(v,$){return v*(3+$)}}class f extends l{constructor(){super("DeviceRGB",3)}getRgbItem(v,$,d,w){d[w]=v[$]*255,d[w+1]=v[$+1]*255,d[w+2]=v[$+2]*255}getRgbBuffer(v,$,d,w,S,z,W){if(z===8&&W===0){w.set(v.subarray($,$+d*3),S);return}const ne=255/((1<<z)-1);let Q=$,D=S;for(let Y=0;Y<d;++Y)w[D++]=ne*v[Q++],w[D++]=ne*v[Q++],w[D++]=ne*v[Q++],D+=W}getOutputLength(v,$){return v*(3+$)/3|0}isPassthrough(v){return v===8}}class g extends l{constructor(){super("DeviceCMYK",4);Lt(this,O)}getRgbItem($,d,w,S){it(this,O,jn).call(this,$,d,1,w,S)}getRgbBuffer($,d,w,S,z,W,ne){const Q=1/((1<<W)-1);for(let D=0;D<w;D++)it(this,O,jn).call(this,$,d,Q,S,z),d+=4,z+=3+ne}getOutputLength($,d){return $/4*(3+d)|0}}O=new WeakSet,jn=function($,d,w,S,z){const W=$[d]*w,ne=$[d+1]*w,Q=$[d+2]*w,D=$[d+3]*w;S[z]=255+W*(-4.387332384609988*W+54.48615194189176*ne+18.82290502165302*Q+212.25662451639585*D+-285.2331026137004)+ne*(1.7149763477362134*ne-5.6096736904047315*Q+-17.873870861415444*D-5.497006427196366)+Q*(-2.5217340131683033*Q-21.248923337353073*D+17.5119270841813)+D*(-21.86122147463605*D-189.48180835922747),S[z+1]=255+W*(8.841041422036149*W+60.118027045597366*ne+6.871425592049007*Q+31.159100130055922*D+-79.2970844816548)+ne*(-15.310361306967817*ne+17.575251261109482*Q+131.35250912493976*D-190.9453302588951)+Q*(4.444339102852739*Q+9.8632861493405*D-24.86741582555878)+D*(-20.737325471181034*D-187.80453709719578),S[z+2]=255+W*(.8842522430003296*W+8.078677503112928*ne+30.89978309703729*Q-.23883238689178934*D+-14.183576799673286)+ne*(10.49593273432072*ne+63.02378494754052*Q+50.606957656360734*D-112.23884253719248)+Q*(.03296041114873217*Q+115.60384449646641*D+-193.58209356861505)+D*(-22.33816807309886*D-180.12613974708367)};class a extends l{constructor($,d,w){super("CalGray",1);Lt(this,X);if(!$)throw new n.FormatError("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=$,[this.XB,this.YB,this.ZB]=d||[0,0,0],this.G=w||1,this.XW<0||this.ZW<0||this.YW!==1)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,n.info)(`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)&&(0,n.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,n.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}
23getRgbItem($,d,w,S){it(this,X,Un).call(this,$,d,w,S,1)}getRgbBuffer($,d,w,S,z,W,ne){const Q=1/((1<<W)-1);for(let D=0;D<w;++D)it(this,X,Un).call(this,$,d,S,z,Q),d+=1,z+=3+ne}getOutputLength($,d){return $*(3+d)}}X=new WeakSet,Un=function($,d,w,S,z){const ne=($[d]*z)**this.G,Q=this.YW*ne,D=Math.max(295.8*Q**.3333333333333333-40.8,0);w[S]=D,w[S+1]=D,w[S+2]=D};const G=class G extends l{constructor($,d,w,S){super("CalRGB",3);Lt(this,o);if(!$)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");const[z,W,ne]=this.whitePoint=$,[Q,D,Y]=this.blackPoint=d||new Float32Array(3);if([this.GR,this.GG,this.GB]=w||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=S||new Float32Array([1,0,0,0,1,0,0,0,1]),z<0||ne<0||W!==1)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(Q<0||D<0||Y<0)&&((0,n.info)(`Invalid BlackPoint for ${this.name} [${Q}, ${D}, ${Y}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,n.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem($,d,w,S){it(this,o,_n).call(this,$,d,w,S,1)}getRgbBuffer($,d,w,S,z,W,ne){const Q=1/((1<<W)-1);for(let D=0;D<w;++D)it(this,o,_n).call(this,$,d,S,z,Q),d+=3,z+=3+ne}getOutputLength($,d){return $*(3+d)/3|0}};q=new WeakMap,b=new WeakMap,E=new WeakMap,c=new WeakMap,u=new WeakMap,T=new WeakMap,r=new WeakMap,s=new WeakMap,o=new WeakSet,an=function($,d,w){w[0]=$[0]*d[0]+$[1]*d[1]+$[2]*d[2],w[1]=$[3]*d[0]+$[4]*d[1]+$[5]*d[2],w[2]=$[6]*d[0]+$[7]*d[1]+$[8]*d[2]},Kn=function($,d,w){w[0]=d[0]*1/$[0],w[1]=d[1]*1/$[1],w[2]=d[2]*1/$[2]},Yn=function($,d,w){w[0]=d[0]*.95047/$[0],w[1]=d[1]*1/$[1],w[2]=d[2]*1.08883/$[2]},mn=function($){return $<=.0031308?it(this,o,sn).call(this,0,1,12.92*$):$>=.99554525?1:it(this,o,sn).call(this,0,1,1.055*$**.4166666666666667-.055)},sn=function($,d,w){return Math.max($,Math.min(d,w))},rn=function($){return $<0?-it(this,o,rn).call(this,-$):$>8?(($+16)/116)**3:$*Bt(G,s)},Jn=function($,d,w){if($[0]===0&&$[1]===0&&$[2]===0){w[0]=d[0],w[1]=d[1],w[2]=d[2];return}const S=it(this,o,rn).call(this,0),z=S,W=it(this,o,rn).call(this,$[0]),ne=S,Q=it(this,o,rn).call(this,$[1]),D=S,Y=it(this,o,rn).call(this,$[2]),ie=(1-z)/(1-W),ee=1-ie,se=(1-ne)/(1-Q),ce=1-se,le=(1-D)/(1-Y),de=1-le;w[0]=d[0]*ie+ee,w[1]=d[1]*se+ce,w[2]=d[2]*le+de},Zn=function($,d,w){if($[0]===1&&$[2]===1){w[0]=d[0],w[1]=d[1],w[2]=d[2];return}const S=w;it(this,o,an).call(this,Bt(G,q),d,S);const z=Bt(G,u);it(this,o,Kn).call(this,$,S,z),it(this,o,an).call(this,Bt(G,b),z,w)},Qn=function($,d,w){const S=w;it(this,o,an).call(this,Bt(G,q),d,S);const z=Bt(G,u);it(this,o,Yn).call(this,$,S,z),it(this,o,an).call(this,Bt(G,b),z,w)},_n=function($,d,w,S,z){const W=it(this,o,sn).call(this,0,1,$[d]*z),ne=it(this,o,sn).call(this,0,1,$[d+1]*z),Q=it(this,o,sn).call(this,0,1,$[d+2]*z),D=W===1?1:W**this.GR,Y=ne===1?1:ne**this.GG,ie=Q===1?1:Q**this.GB,ee=this.MXA*D+this.MXB*Y+this.MXC*ie,se=this.MYA*D+this.MYB*Y+this.MYC*ie,ce=this.MZA*D+this.MZB*Y+this.MZC*ie,le=Bt(G,T);le[0]=ee,le[1]=se,le[2]=ce;const de=Bt(G,r);it(this,o,Zn).call(this,this.whitePoint,le,de);const he=Bt(G,T);it(this,o,Jn).call(this,this.blackPoint,de,he);const me=Bt(G,r);it(this,o,Qn).call(this,Bt(G,c),he,me);const Se=Bt(G,T);it(this,o,an).call(this,Bt(G,E),me,Se),w[S]=it(this,o,mn).call(this,Se[0])*255,w[S+1]=it(this,o,mn).call(this,Se[1])*255,w[S+2]=it(this,o,mn).call(this,Se[2])*255},Lt(G,q,new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])),Lt(G,b,new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])),Lt(G,E,new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])),Lt(G,c,new Float32Array([1,1,1])),Lt(G,u,new Float32Array(3)),Lt(G,T,new Float32Array(3)),Lt(G,r,new Float32Array(3)),Lt(G,s,.0011070564598794539);let _=G;class y extends l{constructor($,d,w){super("Lab",3);Lt(this,Z);if(!$)throw new n.FormatError("WhitePoint missing - required for color space Lab");
23if([this.XW,this.YW,this.ZW]=$,[this.amin,this.amax,this.bmin,this.bmax]=w||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=d||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new n.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,n.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem($,d,w,S){it(this,Z,Xn).call(this,$,d,!1,w,S)}getRgbBuffer($,d,w,S,z,W,ne){const Q=(1<<W)-1;for(let D=0;D<w;D++)it(this,Z,Xn).call(this,$,d,Q,S,z),d+=3,z+=3+ne}getOutputLength($,d){return $*(3+d)/3|0}isDefaultDecode($,d){return!0}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",!1)}}Z=new WeakSet,pn=function($){return $>=.20689655172413793?$**3:.12841854934601665*($-.13793103448275862)},bn=function($,d,w,S){return w+$*(S-w)/d},Xn=function($,d,w,S,z){let W=$[d],ne=$[d+1],Q=$[d+2];w!==!1&&(W=it(this,Z,bn).call(this,W,w,0,100),ne=it(this,Z,bn).call(this,ne,w,this.amin,this.amax),Q=it(this,Z,bn).call(this,Q,w,this.bmin,this.bmax)),ne>this.amax?ne=this.amax:ne<this.amin&&(ne=this.amin),Q>this.bmax?Q=this.bmax:Q<this.bmin&&(Q=this.bmin);const D=(W+16)/116,Y=D+ne/500,ie=D-Q/200,ee=this.XW*it(this,Z,pn).call(this,Y),se=this.YW*it(this,Z,pn).call(this,D),ce=this.ZW*it(this,Z,pn).call(this,ie);let le,de,he;this.ZW<1?(le=ee*3.1339+se*-1.617+ce*-.4906,de=ee*-.9785+se*1.916+ce*.0333,he=ee*.072+se*-.229+ce*1.4057):(le=ee*3.2406+se*-1.5372+ce*-.4986,de=ee*-.9689+se*1.8758+ce*.0415,he=ee*.0557+se*-.204+ce*1.057),S[z]=Math.sqrt(le)*255,S[z+1]=Math.sqrt(de)*255,S[z+2]=Math.sqrt(he)*255}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PartialEvaluator=p.EvaluatorPreprocessor=void 0;var n=re(2),P=re(14),j=re(4),e=re(34),t=re(37),l=re(41),V=re(50),J=re(51),B=re(42),I=re(57),f=re(16),g=re(59),a=re(8),_=re(5),y=re(60),O=re(12),N=re(18),X=re(38),R=re(61),q=re(39),b=re(45),E=re(40),c=re(62),u=re(63),T=re(64),r=re(65);const s=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),o={TILING:1,SHADING:2},m=10,h=Promise.resolve();function A(oe,te=!1){if(Array.isArray(oe)){for(const K of oe){const v=A(K,!0);if(v)return v}return(0,n.warn)(`Unsupported blend mode Array: ${oe}`),"source-over"}if(!(oe instanceof j.Name))return te?null:"source-over";switch(oe.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 te?null:((0,n.warn)(`Unsupported blend mode: ${oe.name}`),"source-over")}function L(oe){var te;oe.fn===n.OPS.paintImageMaskXObject&&((te=oe.args[0])==null?void 0:te.count)>0&&oe.args[0].count++}const Z=class Z{constructor(){this.reset()}check(){return++this.checked<Z.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+Z.TIME_SLOT_DURATION_MS,this.checked=0}};jt(Z,"TIME_SLOT_DURATION_MS",20),jt(Z,"CHECK_TIME_EVERY",100);let H=Z;class F{constructor({xref:te,handler:K,pageIndex:v,idFactory:$,fontCache:d,builtInCMapCache:w,standardFontDataCache:S,globalImageCache:z,systemFontCache:W,options:ne=null}){this.xref=te,this.handler=K,this.pageIndex=v,this.idFactory=$,this.fontCache=d,this.builtInCMapCache=w,this.standardFontDataCache=S,this.globalImageCache=z,this.systemFontCache=W,this.options=ne||s,this.parsingType3Font=!1,this._regionalImageCache=new g.RegionalImageCache,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this),c.ImageResizer.setMaxArea(this.options.canvasMaxAreaInBytes)}get _pdfFunctionFactory(){const te=new I.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,n.shadow)(this,"_pdfFunctionFactory",te)}clone(te=null){const K=Object.create(this);return K.options=Object.assign(Object.create(null),this.options,te),K}hasBlendModes(te,K){if(!(te instanceof j.Dict)||te.objId&&K.has(te.objId))return!1;const v=new j.RefSet(K);te.objId&&v.put(te.objId);const $=[te],d=this.xref;for(;$.length;
23){const w=$.shift(),S=w.get("ExtGState");if(S instanceof j.Dict)for(let W of S.getRawValues()){if(W instanceof j.Ref){if(v.has(W))continue;try{W=d.fetch(W)}catch(Q){v.put(W),(0,n.info)(`hasBlendModes - ignoring ExtGState: "${Q}".`);continue}}if(!(W instanceof j.Dict))continue;W.objId&&v.put(W.objId);const ne=W.get("BM");if(ne instanceof j.Name){if(ne.name!=="Normal")return!0;continue}if(ne!==void 0&&Array.isArray(ne)){for(const Q of ne)if(Q instanceof j.Name&&Q.name!=="Normal")return!0}}const z=w.get("XObject");if(z instanceof j.Dict)for(let W of z.getRawValues()){if(W instanceof j.Ref){if(v.has(W))continue;try{W=d.fetch(W)}catch(Q){v.put(W),(0,n.info)(`hasBlendModes - ignoring XObject: "${Q}".`);continue}}if(!(W instanceof _.BaseStream))continue;W.dict.objId&&v.put(W.dict.objId);const ne=W.dict.get("Resources");ne instanceof j.Dict&&(ne.objId&&v.has(ne.objId)||($.push(ne),ne.objId&&v.put(ne.objId)))}}for(const w of v)K.put(w);return!1}async fetchBuiltInCMap(te){const K=this.builtInCMapCache.get(te);if(K)return K;let v;if(this.options.cMapUrl!==null){const $=`${this.options.cMapUrl}${te}.bcmap`,d=await fetch($);if(!d.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${$}" with "${d.statusText}".`);v={cMapData:new Uint8Array(await d.arrayBuffer()),compressionType:n.CMapCompressionType.BINARY}}else v=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:te});return v.compressionType!==n.CMapCompressionType.NONE&&this.builtInCMapCache.set(te,v),v}async fetchStandardFontData(te){const K=this.standardFontDataCache.get(te);if(K)return new a.Stream(K);if(this.options.useSystemFonts&&te!=="Symbol"&&te!=="ZapfDingbats")return null;const v=(0,l.getFontNameToFileMap)(),$=v[te];let d;if(this.options.standardFontDataUrl!==null){const w=`${this.options.standardFontDataUrl}${$}`,S=await fetch(w);S.ok?d=await S.arrayBuffer():(0,n.warn)(`fetchStandardFontData: failed to fetch file "${w}" with "${S.statusText}".`)}else try{d=await this.handler.sendWithPromise("FetchStandardFontData",{filename:$})}catch(w){(0,n.warn)(`fetchStandardFontData: failed to fetch file "${$}" with "${w}".`)}return d?(this.standardFontDataCache.set(te,d),new a.Stream(d)):null}async buildFormXObject(te,K,v,$,d,w,S){const z=K.dict,W=z.getArray("Matrix");let ne=z.getArray("BBox");ne=Array.isArray(ne)&&ne.length===4?n.Util.normalizeRect(ne):null;let Q,D;z.has("OC")&&(Q=await this.parseMarkedContentProps(z.get("OC"),te)),Q!==void 0&&$.addOp(n.OPS.beginMarkedContentProps,["OC",Q]);const Y=z.get("Group");if(Y){D={matrix:W,bbox:ne,smask:v,isolated:!1,knockout:!1};const ee=Y.get("S");let se=null;if((0,j.isName)(ee,"Transparency")&&(D.isolated=Y.get("I")||!1,D.knockout=Y.get("K")||!1,Y.has("CS"))){const ce=Y.getRaw("CS"),le=O.ColorSpace.getCached(ce,this.xref,S);le?se=le:se=await this.parseColorSpace({cs:ce,resources:te,localColorSpaceCache:S})}v!=null&&v.backdrop&&(se||(se=O.ColorSpace.singletons.rgb),v.backdrop=se.getRgb(v.backdrop,0)),$.addOp(n.OPS.beginGroup,[D])}const ie=Y?[W,null]:[W,ne];return $.addOp(n.OPS.paintFormXObjectBegin,ie),this.getOperatorList({stream:K,task:d,resources:z.get("Resources")||te,operatorList:$,initialState:w}).then(function(){$.addOp(n.OPS.paintFormXObjectEnd,[]),Y&&$.addOp(n.OPS.endGroup,[D]),Q!==void 0&&$.addOp(n.OPS.endMarkedContent,[])})}_sendImgData(te,K,v=!1){const $=K?[K.bitmap||K.data.buffer]:null;return this.parsingType3Font||v?this.handler.send("commonobj",[te,"Image",K],$):this.handler.send("obj",[te,this.pageIndex,"Image",K],$)}async buildPaintImageXObject({resources:te,image:K,isInline:v=!1,operatorList:$,cacheKey:d,localImageCache:w,localColorSpaceCache:S}){const z=K.dict,W=z.objId,ne=z.get("W","Width"),Q=z.get("H","Height");if(!(ne&&typeof ne=="number")||!(Q&&typeof Q=="number")){(0,n.warn)("Image dimensions are missing, or not numbers.");return}const D=this.options.maxImageSize;if(D!==-1&&ne*Q>D){const he="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,n.warn)(he);return}throw new Error(he)}let Y;z.has("OC")&&(Y=await this.parseMarkedContentProps(z.get("OC"),te));const ie=z.get("IM","ImageMask")||!1;let ee,se;if(ie){const he=z.get("I","Interpolate"),me=ne+7>>3,Se=K.getBytes(me*Q),pe=z.getArray("D","Decode");if(this.parsingType3Font){if(ee=r.PDFImage.createRawMask({imgArray:Se,width:ne,height:Q,imageIsFromDecodeStream
23:K instanceof N.DecodeStream,inverseDecode:(pe==null?void 0:pe[0])>0,interpolate:he}),ee.cached=!!d,se=[ee],$.addImageOps(n.OPS.paintImageMaskXObject,se,Y),d){const Ae={fn:n.OPS.paintImageMaskXObject,args:se,optionalContent:Y};w.set(d,W,Ae),W&&this._regionalImageCache.set(null,W,Ae)}return}if(ee=await r.PDFImage.createMask({imgArray:Se,width:ne,height:Q,imageIsFromDecodeStream:K instanceof N.DecodeStream,inverseDecode:(pe==null?void 0:pe[0])>0,interpolate:he,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),ee.isSingleOpaquePixel){if($.addImageOps(n.OPS.paintSolidColorImageMask,[],Y),d){const Ae={fn:n.OPS.paintSolidColorImageMask,args:[],optionalContent:Y};w.set(d,W,Ae),W&&this._regionalImageCache.set(null,W,Ae)}return}const ge=`mask_${this.idFactory.createObjId()}`;if($.addDependency(ge),this._sendImgData(ge,ee),se=[{data:ge,width:ee.width,height:ee.height,interpolate:ee.interpolate,count:1}],$.addImageOps(n.OPS.paintImageMaskXObject,se,Y),d){const Ae={fn:n.OPS.paintImageMaskXObject,args:se,optionalContent:Y};w.set(d,W,Ae),W&&this._regionalImageCache.set(null,W,Ae)}return}if(v&&!z.has("SMask")&&!z.has("Mask")&&ne+Q<200){ee=await new r.PDFImage({xref:this.xref,res:te,image:K,isInline:v,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:S}).createImageData(!0,!1),$.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,$.addImageOps(n.OPS.paintInlineImageXObject,[ee],Y);return}let le=`img_${this.idFactory.createObjId()}`,de=!1;if(this.parsingType3Font?le=`${this.idFactory.getDocId()}_type3_${le}`:W&&(de=this.globalImageCache.shouldCache(W,this.pageIndex),de&&(le=`${this.idFactory.getDocId()}_${le}`)),$.addDependency(le),se=[le,ne,Q],r.PDFImage.buildImage({xref:this.xref,res:te,image:K,isInline:v,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:S}).then(async he=>{if(ee=await he.createImageData(!1,this.options.isOffscreenCanvasSupported),d&&W&&de){const me=ee.bitmap?ee.width*ee.height*4:ee.data.length;this.globalImageCache.addByteSize(W,me)}return this._sendImgData(le,ee,de)}).catch(he=>((0,n.warn)(`Unable to decode image "${le}": "${he}".`),this._sendImgData(le,null,de))),$.addImageOps(n.OPS.paintImageXObject,se,Y),d){const he={fn:n.OPS.paintImageXObject,args:se,optionalContent:Y};w.set(d,W,he),W&&(this._regionalImageCache.set(null,W,he),de&&((0,n.assert)(!v,"Cannot cache an inline image globally."),this.globalImageCache.setData(W,{objId:le,fn:n.OPS.paintImageXObject,args:se,optionalContent:Y,byteSize:0})))}}handleSMask(te,K,v,$,d,w){const S=te.get("G"),z={subtype:te.get("S").name,backdrop:te.get("BC")},W=te.get("TR");if((0,I.isPDFFunction)(W)){const ne=this._pdfFunctionFactory.create(W),Q=new Uint8Array(256),D=new Float32Array(1);for(let Y=0;Y<256;Y++)D[0]=Y/255,ne(D,0,D,0),Q[Y]=D[0]*255|0;z.transferMap=Q}return this.buildFormXObject(K,S,z,v,$,d.state.clone(),w)}handleTransferFunction(te){let K;if(Array.isArray(te))K=te;else if((0,I.isPDFFunction)(te))K=[te];else return null;const v=[];let $=0,d=0;for(const w of K){const S=this.xref.fetchIfRef(w);if($++,(0,j.isName)(S,"Identity")){v.push(null);continue}else if(!(0,I.isPDFFunction)(S))return null;const z=this._pdfFunctionFactory.create(S),W=new Uint8Array(256),ne=new Float32Array(1);for(let Q=0;Q<256;Q++)ne[0]=Q/255,z(ne,0,ne,0),W[Q]=ne[0]*255|0;v.push(W),d++}return!($===1||$===4)||d===0?null:v}handleTilingType(te,K,v,$,d,w,S,z){const W=new T.OperatorList,ne=j.Dict.merge({xref:this.xref,dictArray:[d.get("Resources"),v]});return this.getOperatorList({stream:$,task:S,resources:ne,operatorList:W}).then(function(){const Q=W.getIR(),D=(0,V.getTilingPatternIR)(Q,d,K);w.addDependencies(W.dependencies),w.addOp(te,D),d.objId&&z.set(null,d.objId,{operatorListIR:Q,dict:d})}).catch(Q=>{if(!(Q instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`handleTilingType - ignoring pattern: "${Q}".`);return}throw Q}})}handleSetFont(te,K,v,$,d,w,S=null,z=null){const W=(K==null?void 0:K[0])instanceof j.Name?K[0].name:null;return this.loadFont(W,v,te,S,z).then(ne=>ne.font.isType3Font?ne.loadType3Data(this,te,d).then(function(){return $.addDependencies(ne.type3Dependencies),ne}).catch(Q=>new M({loadedName:"g_font_error",font:new e.ErrorFont(`Type3 font load error: ${Q}`),dict:ne.font,evaluatorOptions:this.options})):ne).then(ne=>(w.font=ne.font,ne.send(this.handler),ne.loadedName))}handleText(te,K){const v=K.font,$=v.charsToGlyphs(te);return v.data&&(K.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG||K.fillColorSpace.name==="Pattern"||v.disableFontFace||this.options.disableFontFace)&&F.buildFontPaths(v,$,this.handler,this.options),$}ensureStateFont(te){if(te.font)return;const K=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){(0,n.warn)(`ensureStateFont: "${K}".`);return}throw K}async setGState({resources:te,gState:K,operatorList:v,cacheKey:$,task:d,stateManager:w,localGStateCache:S,localColorSpaceCache:z}){const W=K.objId;let ne=!0;const Q=[];let D=Promise.resolve();for(const Y of K.getKeys()){const ie=K.get(Y);switch(Y){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":Q.push([Y,ie]);break;case"Font":ne=!1,D=D.then(()=>this.handleSetFont(te,null,ie[0],v,d,w.state).then(function(se){v.addDependency(se),Q.push([Y,[se,ie[1]]])}));break;case"BM":Q.push([Y,A(ie)]);break;case"SMask":if((0,j.isName)(ie,"None")){Q.push([Y,!1]);break}ie instanceof j.Dict?(ne=!1,D=D.then(()=>this.handleSMask(ie,te,v,d,w,z)),Q.push([Y,!0])):(0,n.warn)("Unsupported SMask type");break;case"TR":const ee=this.handleTransferFunction(ie);Q.push([Y,ee]);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":(0,n.info)("graphic state operator "+Y);break;default:(0,n.info)("Unknown graphic state operator "+Y);break}}return D.then(function(){Q.length>0&&v.addOp(n.OPS.setGState,[Q]),ne&&S.set($,W,Q)})}loadFont(te,K,v,$=null,d=null){const w=async()=>new M({loadedName:"g_font_error",font:new e.ErrorFont(`Font "${te}" is not available.`),dict:K,evaluatorOptions:this.options});let S;if(K)K instanceof j.Ref&&(S=K);else{const ie=v.get("Font");ie&&(S=ie.getRaw(te))}if(S){if(this.parsingType3Font&&this.type3FontRefs.has(S))return w();if(this.fontCache.has(S))return this.fontCache.get(S);K=this.xref.fetchIfRef(S)}if(!(K instanceof j.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)(`Font "${te}" is not available.`),w();(0,n.warn)(`Font "${te}" is not available -- attempting to fallback to a default font.`),K=$||F.fallbackFontDict}if(K.cacheKey&&this.fontCache.has(K.cacheKey))return this.fontCache.get(K.cacheKey);const z=new n.PromiseCapability;let W;try{W=this.preEvaluateFont(K),W.cssFontInfo=d}catch(ie){return(0,n.warn)(`loadFont - preEvaluateFont failed: "${ie}".`),w()}const{descriptor:ne,hash:Q}=W,D=S instanceof j.Ref;let Y;if(Q&&ne instanceof j.Dict){const ie=ne.fontAliases||(ne.fontAliases=Object.create(null));if(ie[Q]){const ee=ie[Q].aliasRef;if(D&&ee&&this.fontCache.has(ee))return this.fontCache.putAlias(S,ee),this.fontCache.get(S)}else ie[Q]={fontID:this.idFactory.createFontId()};D&&(ie[Q].aliasRef=S),Y=ie[Q].fontID}else Y=this.idFactory.createFontId();return(0,n.assert)(Y==null?void 0:Y.startsWith("f"),'The "fontID" must be (correctly) defined.'),D?this.fontCache.put(S,z.promise):(K.cacheKey=`cacheKey_${Y}`,this.fontCache.put(K.cacheKey,z.promise)),K.loadedName=`${this.idFactory.getDocId()}_${Y}`,this.translateFont(W).then(ie=>{z.resolve(new M({loadedName:K.loadedName,font:ie,dict:K,evaluatorOptions:this.options}))}).catch(ie=>{(0,n.warn)(`loadFont - translateFont failed: "${ie}".`),z.resolve(new M({loadedName:K.loadedName,font:new e.ErrorFont(ie instanceof Error?ie.message:ie),dict:K,evaluatorOptions:this.options}))}),z.promise}buildPath(te,K,v,$=!1){const d=te.length-1;if(v||(v=[]),d<0||te.fnArray[d]!==n.OPS.constructPath){$&&((0,n.warn)(`Encountered path operator "${K}" inside of a text object.`),te.addOp(n.OPS.save,null));let w;switch(K){case n.OPS.rectangle:const S=v[0]+v[2],z=v[1]+v[3];w=[Math.min(v[0],S),Math.max(v[0],S),Math.min(v[1],z),Math.max(v[1],z)];break;case n.OPS.moveTo:case n.OPS.lineTo:w=[v[0],v[0],v[1],v[1]];break;default:w=[1/0,-1/0,1/0,-1/0];break}te.addOp(n.OPS.constructPath,[[K],v,w]),$&&te.addOp(n.OPS.restore,null)}else{const w=te.argsArray[d];w[0].push(K),w[1].push(...v);const S=w[2];switch(K){case n.OPS.rectangle:const z=v[0]+v[2],W=v[1]+v[3];S[0]=Math.min(S[0],v[0],z),S[1]=Math.max(S[1],v[0],z),S[2]=Math.min(S[2],v[1],W),S[3]=Math.max(S[3],v[1],W);break;case n.OPS.moveTo:case n.OPS.lineTo:S[0]=Math.min(S[0],v[0]),S[1]=Math.max(S[1],v[0]),S[2]=Math.min(S[2],v[1]),S[3]=Math.max(S[3],v[1]);break}}}parseColorSpace({cs:te,resources:K,localColorSpaceCache:v}){return O.ColorSpace.parseAsync({cs:te,xref:this.xref,resources:K,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:v}).catch($=>{if($ instanceof n.AbortException)return null;if(this.options.ignoreErrors)return(0,n.warn)(`parseColorSpace - ignoring ColorSpace: "${$}".`),null;throw $})}parseShading({shading:te,resources:K,localColorSpaceCache:v,localShadingPatternCache:$}){let d=$.get(te);if(!d){var w=V.Pattern.parseShading(te,this.xref,K,this._pdfFunctionFactory,v);const S=w.getIR();d=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(d=`${this.idFactory.getDocId()}_type3_${d}`),$.set(te,d),this.parsingType3Font?this.handler.send("commonobj",[d,"Pattern",S]):this.handler.send("obj",[d,this.pageIndex,"Pattern",S])}return d}handleColorN(te,K,v,$,d,w,S,z,W,ne){const Q=v.pop();if(Q instanceof j.Name){const D=d.getRaw(Q.name),Y=D instanceof j.Ref&&W.getByRef(D);
23if(Y)try{const ee=$.base?$.base.getRgb(v,0):null,se=(0,V.getTilingPatternIR)(Y.operatorListIR,Y.dict,ee);te.addOp(K,se);return}catch{}const ie=this.xref.fetchIfRef(D);if(ie){const ee=ie instanceof _.BaseStream?ie.dict:ie,se=ee.get("PatternType");if(se===o.TILING){const ce=$.base?$.base.getRgb(v,0):null;return this.handleTilingType(K,ce,w,ie,ee,te,S,W)}else if(se===o.SHADING){const ce=ee.get("Shading"),le=ee.getArray("Matrix"),de=this.parseShading({shading:ce,resources:w,localColorSpaceCache:z,localShadingPatternCache:ne});te.addOp(K,["Shading",de,le]);return}throw new n.FormatError(`Unknown PatternType: ${se}`)}}throw new n.FormatError(`Unknown PatternName: ${Q}`)}_parseVisibilityExpression(te,K,v){if(++K>10){(0,n.warn)("Visibility expression is too deeply nested");return}const d=te.length,w=this.xref.fetchIfRef(te[0]);if(d<2||!(w instanceof j.Name)){(0,n.warn)("Invalid visibility expression");return}switch(w.name){case"And":case"Or":case"Not":v.push(w.name);break;default:(0,n.warn)(`Invalid operator ${w.name} in visibility expression`);return}for(let S=1;S<d;S++){const z=te[S],W=this.xref.fetchIfRef(z);if(Array.isArray(W)){const ne=[];v.push(ne),this._parseVisibilityExpression(W,K,ne)}else z instanceof j.Ref&&v.push(z.toString())}}async parseMarkedContentProps(te,K){var d;let v;if(te instanceof j.Name)v=K.get("Properties").get(te.name);else if(te instanceof j.Dict)v=te;else throw new n.FormatError("Optional content properties malformed.");const $=(d=v.get("Type"))==null?void 0:d.name;if($==="OCG")return{type:$,id:v.objId};if($==="OCMD"){const w=v.get("VE");if(Array.isArray(w)){const z=[];if(this._parseVisibilityExpression(w,0,z),z.length>0)return{type:"OCMD",expression:z}}const S=v.get("OCGs");if(Array.isArray(S)||S instanceof j.Dict){const z=[];if(Array.isArray(S))for(const W of S)z.push(W.toString());else z.push(S.objId);return{type:$,ids:z,policy:v.get("P")instanceof j.Name?v.get("P").name:null,expression:null}}else if(S instanceof j.Ref)return{type:$,id:S.toString()}}return null}getOperatorList({stream:te,task:K,resources:v,operatorList:$,initialState:d=null,fallbackFontDict:w=null}){if(v||(v=j.Dict.empty),d||(d=new C),!$)throw new Error('getOperatorList: missing "operatorList" parameter');const S=this,z=this.xref;let W=!1;const ne=new g.LocalImageCache,Q=new g.LocalColorSpaceCache,D=new g.LocalGStateCache,Y=new g.LocalTilingPatternCache,ie=new Map,ee=v.get("XObject")||j.Dict.empty,se=v.get("Pattern")||j.Dict.empty,ce=new k(d),le=new G(te,z,ce),de=new H;function he(me){for(let Se=0,pe=le.savedStatesDepth;Se<pe;Se++)$.addOp(n.OPS.restore,[])}return new Promise(function me(Se,pe){const ge=function(Ee){Promise.all([Ee,$.ready]).then(function(){try{me(Se,pe)}catch(Ve){pe(Ve)}},pe)};K.ensureNotTerminated(),de.reset();const Ae={};let Me,xe,ue,fe,ke,ye;for(;!(Me=de.check())&&(Ae.args=null,!!le.read(Ae));){let Ee=Ae.args,Ve=Ae.fn;switch(Ve|0){case n.OPS.paintXObject:if(ye=Ee[0]instanceof j.Name,ke=Ee[0].name,ye){const Ne=ne.getByName(ke);if(Ne){$.addImageOps(Ne.fn,Ne.args,Ne.optionalContent),L(Ne),Ee=null;continue}}ge(new Promise(function(Ne,wt){if(!ye)throw new n.FormatError("XObject must be referred to by name.");let dt=ee.getRaw(ke);if(dt instanceof j.Ref){const Ot=ne.getByRef(dt)||S._regionalImageCache.getByRef(dt);if(Ot){$.addImageOps(Ot.fn,Ot.args,Ot.optionalContent),L(Ot),Ne();return}const ze=S.globalImageCache.getData(dt,S.pageIndex);if(ze){$.addDependency(ze.objId),$.addImageOps(ze.fn,ze.args,ze.optionalContent),Ne();return}dt=z.fetch(dt)}if(!(dt instanceof _.BaseStream))throw new n.FormatError("XObject should be a stream");const pt=dt.dict.get("Subtype");if(!(pt instanceof j.Name))throw new n.FormatError("XObject should have a Name subtype");if(pt.name==="Form"){ce.save(),S.buildFormXObject(v,dt,null,$,K,ce.state.clone(),Q).then(function(){ce.restore(),Ne()},wt);return}else if(pt.name==="Image"){S.buildPaintImageXObject({resources:v,image:dt,operatorList:$,cacheKey:ke,localImageCache:ne,localColorSpaceCache:Q}).then(Ne,wt);return}else if(pt.name==="PS")(0,n.info)("Ignored XObject subtype PS");else throw new n.FormatError(`Unhandled XObject subtype ${pt.name}`);Ne()}
23).catch(function(Ne){if(!(Ne instanceof n.AbortException)){if(S.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring XObject: "${Ne}".`);return}throw Ne}}));return;case n.OPS.setFont:var $e=Ee[1];ge(S.handleSetFont(v,Ee,null,$,K,ce.state,w).then(function(Ne){$.addDependency(Ne),$.addOp(n.OPS.setFont,[Ne,$e])}));return;case n.OPS.beginText:W=!0;break;case n.OPS.endText:W=!1;break;case n.OPS.endInlineImage:var Xe=Ee[0].cacheKey;if(Xe){const Ne=ne.getByName(Xe);if(Ne){$.addImageOps(Ne.fn,Ne.args,Ne.optionalContent),L(Ne),Ee=null;continue}}ge(S.buildPaintImageXObject({resources:v,image:Ee[0],isInline:!0,operatorList:$,cacheKey:Xe,localImageCache:ne,localColorSpaceCache:Q}));return;case n.OPS.showText:if(!ce.state.font){S.ensureStateFont(ce.state);continue}Ee[0]=S.handleText(Ee[0],ce.state);break;case n.OPS.showSpacedText:if(!ce.state.font){S.ensureStateFont(ce.state);continue}var Ze=[],Fe=ce.state;for(const Ne of Ee[0])typeof Ne=="string"?Ze.push(...S.handleText(Ne,Fe)):typeof Ne=="number"&&Ze.push(Ne);Ee[0]=Ze,Ve=n.OPS.showText;break;case n.OPS.nextLineShowText:if(!ce.state.font){S.ensureStateFont(ce.state);continue}$.addOp(n.OPS.nextLine),Ee[0]=S.handleText(Ee[0],ce.state),Ve=n.OPS.showText;break;case n.OPS.nextLineSetSpacingShowText:if(!ce.state.font){S.ensureStateFont(ce.state);continue}$.addOp(n.OPS.nextLine),$.addOp(n.OPS.setWordSpacing,[Ee.shift()]),$.addOp(n.OPS.setCharSpacing,[Ee.shift()]),Ee[0]=S.handleText(Ee[0],ce.state),Ve=n.OPS.showText;break;case n.OPS.setTextRenderingMode:ce.state.textRenderingMode=Ee[0];break;case n.OPS.setFillColorSpace:{const Ne=O.ColorSpace.getCached(Ee[0],z,Q);
23if(Ne){ce.state.fillColorSpace=Ne;continue}ge(S.parseColorSpace({cs:Ee[0],resources:v,localColorSpaceCache:Q}).then(function(wt){wt&&(ce.state.fillColorSpace=wt)}));return}case n.OPS.setStrokeColorSpace:{const Ne=O.ColorSpace.getCached(Ee[0],z,Q);if(Ne){ce.state.strokeColorSpace=Ne;continue}ge(S.parseColorSpace({cs:Ee[0],resources:v,localColorSpaceCache:Q}).then(function(wt){wt&&(ce.state.strokeColorSpace=wt)}));return}case n.OPS.setFillColor:fe=ce.state.fillColorSpace,Ee=fe.getRgb(Ee,0),Ve=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColor:fe=ce.state.strokeColorSpace,Ee=fe.getRgb(Ee,0),Ve=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillGray:ce.state.fillColorSpace=O.ColorSpace.singletons.gray,Ee=O.ColorSpace.singletons.gray.getRgb(Ee,0),Ve=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeGray:ce.state.strokeColorSpace=O.ColorSpace.singletons.gray,Ee=O.ColorSpace.singletons.gray.getRgb(Ee,0),Ve=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillCMYKColor:ce.state.fillColorSpace=O.ColorSpace.singletons.cmyk,Ee=O.ColorSpace.singletons.cmyk.getRgb(Ee,0),Ve=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeCMYKColor:ce.state.strokeColorSpace=O.ColorSpace.singletons.cmyk,Ee=O.ColorSpace.singletons.cmyk.getRgb(Ee,0),Ve=n.OPS.setStrokeRGBColor;break;
23case n.OPS.setFillRGBColor:ce.state.fillColorSpace=O.ColorSpace.singletons.rgb,Ee=O.ColorSpace.singletons.rgb.getRgb(Ee,0);break;case n.OPS.setStrokeRGBColor:ce.state.strokeColorSpace=O.ColorSpace.singletons.rgb,Ee=O.ColorSpace.singletons.rgb.getRgb(Ee,0);break;case n.OPS.setFillColorN:if(fe=ce.state.fillColorSpace,fe.name==="Pattern"){ge(S.handleColorN($,n.OPS.setFillColorN,Ee,fe,se,v,K,Q,Y,ie));return}Ee=fe.getRgb(Ee,0),Ve=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColorN:if(fe=ce.state.strokeColorSpace,fe.name==="Pattern"){ge(S.handleColorN($,n.OPS.setStrokeColorN,Ee,fe,se,v,K,Q,Y,ie));return}Ee=fe.getRgb(Ee,0),Ve=n.OPS.setStrokeRGBColor;break;case n.OPS.shadingFill:var nt=v.get("Shading");if(!nt)throw new n.FormatError("No shading resource found");var We=nt.get(Ee[0].name);if(!We)throw new n.FormatError("No shading object found");Ee=[S.parseShading({shading:We,resources:v,localColorSpaceCache:Q,localShadingPatternCache:ie})],Ve=n.OPS.shadingFill;break;case n.OPS.setGState:if(ye=Ee[0]instanceof j.Name,ke=Ee[0].name,ye){const Ne=D.getByName(ke);if(Ne){Ne.length>0&&$.addOp(n.OPS.setGState,[Ne]),Ee=null;continue}}ge(new Promise(function(Ne,wt){if(!ye)throw new n.FormatError("GState must be referred to by name.");
23const dt=v.get("ExtGState");if(!(dt instanceof j.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const pt=dt.get(ke);if(!(pt instanceof j.Dict))throw new n.FormatError("GState should be a dictionary.");S.setGState({resources:v,gState:pt,operatorList:$,cacheKey:ke,task:K,stateManager:ce,localGStateCache:D,localColorSpaceCache:Q}).then(Ne,wt)}).catch(function(Ne){if(!(Ne instanceof n.AbortException)){if(S.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring ExtGState: "${Ne}".`);return}throw Ne}}));return;case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:S.buildPath($,Ve,Ee,W);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginCompat:case n.OPS.endCompat:continue;case n.OPS.beginMarkedContentProps:if(!(Ee[0]instanceof j.Name)){(0,n.warn)(`Expected name for beginMarkedContentProps arg0=${Ee[0]}`);continue}if(Ee[0].name==="OC"){ge(S.parseMarkedContentProps(Ee[1],v).then(Ne=>{$.addOp(n.OPS.beginMarkedContentProps,["OC",Ne])}).catch(Ne=>{if(!(Ne instanceof n.AbortException)){if(S.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${Ne}".`);return}throw Ne}}));return}Ee=[Ee[0].name,Ee[1]instanceof j.Dict?Ee[1].get("MCID"):null];break;case n.OPS.beginMarkedContent:case n.OPS.endMarkedContent:default:if(Ee!==null){for(xe=0,ue=Ee.length;xe<ue&&!(Ee[xe]instanceof j.Dict);xe++);if(xe<ue){(0,n.warn)("getOperatorList - ignoring operator: "+Ve);continue}}}$.addOp(Ve,Ee)}if(Me){ge(h);return}he(),Se()}).catch(me=>{if(!(me instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring errors during "${K.name}" task: "${me}".`),he();return}throw me}})}getTextContent({stream:te,task:K,resources:v,stateManager:$=null,includeMarkedContent:d=!1,sink:w,seenStyles:S=new Set,viewBox:z,markedContentData:W=null,disableNormalization:ne=!1}){v||(v=j.Dict.empty),$||($=new k(new x)),d&&(W||(W={level:0}));const Q={items:[],styles:Object.create(null)},D={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},Y=[" "," "];let ie=0;function ee(ze){const Ge=(ie+1)%2,Ue=Y[ie]!==" "&&Y[Ge]===" ";return Y[ie]=ze,ie=Ge,Ue}function se(){return Y[ie]!==" "&&Y[(ie+1)%2]===" "}function ce(){Y[0]=Y[1]=" ",ie=0}const le=.102,de=.03,he=-.2,me=.102,Se=.6,pe=.25,ge=this,Ae=this.xref,Me=[];let xe=null;const ue=new g.LocalImageCache,fe=new g.LocalGStateCache,ke=new G(te,Ae,$);let ye;function $e({width:ze=0,height:Ge=0,transform:Ue=D.prevTransform,fontName:bt=D.fontName}){Q.items.push({str:" ",dir:"ltr",width:ze,height:Ge,transform:Ue,fontName:bt,hasEOL:!1})}function Xe(){const ze=ye.font,Ge=[ye.fontSize*ye.textHScale,0,0,ye.fontSize,0,ye.textRise];if(ze.isType3Font&&(ye.fontSize<=1||ze.isCharBBox)&&!(0,n.isArrayEqual)(ye.fontMatrix,n.FONT_IDENTITY_MATRIX)){const Ue=ze.bbox[3]-ze.bbox[1];Ue>0&&(Ge[3]*=Ue*ye.fontMatrix[3])}return n.Util.transform(ye.ctm,n.Util.transform(ye.textMatrix,Ge))}function Ze(){if(D.initialized)return D;const{font:ze,loadedName:Ge}=ye;S.has(Ge)||(S.add(Ge),Q.styles[Ge]={fontFamily:ze.fallbackName,ascent:ze.ascent,descent:ze.descent,vertical:ze.vertical}),D.fontName=Ge;const Ue=D.transform=Xe();ze.vertical?(D.width=D.totalWidth=Math.hypot(Ue[0],Ue[1]),D.height=D.totalHeight=0,D.vertical=!0):(D.width=D.totalWidth=0,D.height=D.totalHeight=Math.hypot(Ue[2],Ue[3]),D.vertical=!1);
23const bt=Math.hypot(ye.textLineMatrix[0],ye.textLineMatrix[1]),vt=Math.hypot(ye.ctm[0],ye.ctm[1]);D.textAdvanceScale=vt*bt;const{fontSize:At}=ye;return D.trackingSpaceMin=At*le,D.notASpace=At*de,D.negativeSpaceMax=At*he,D.spaceInFlowMin=At*me,D.spaceInFlowMax=At*Se,D.hasEOL=!1,D.initialized=!0,D}function Fe(){if(!D.initialized)return;const ze=Math.hypot(ye.textLineMatrix[0],ye.textLineMatrix[1]),Ue=Math.hypot(ye.ctm[0],ye.ctm[1])*ze;Ue!==D.textAdvanceScale&&(D.vertical?(D.totalHeight+=D.height*D.textAdvanceScale,D.height=0):(D.totalWidth+=D.width*D.textAdvanceScale,D.width=0),D.textAdvanceScale=Ue)}function nt(ze){let Ge=ze.str.join("");ne||(Ge=(0,n.normalizeUnicode)(Ge));const Ue=(0,y.bidi)(Ge,-1,ze.vertical);return{str:Ue.str,dir:Ue.dir,width:Math.abs(ze.totalWidth),height:Math.abs(ze.totalHeight),transform:ze.transform,fontName:ze.fontName,hasEOL:ze.hasEOL}}function We(ze,Ge){return ge.loadFont(ze,Ge,v).then(function(Ue){return Ue.font.isType3Font?Ue.loadType3Data(ge,v,K).catch(function(){}).then(function(){return Ue}):Ue}).then(function(Ue){ye.loadedName=Ue.loadedName,ye.font=Ue.font,ye.fontMatrix=Ue.font.fontMatrix||n.FONT_IDENTITY_MATRIX})}function Ee(ze,Ge,Ue){const bt=Math.hypot(Ue[0],Ue[1]);return[(Ue[0]*ze+Ue[1]*Ge)/bt,(Ue[2]*ze+Ue[3]*Ge)/bt]}function Ve(ze){var ve;const Ge=Xe();let Ue=Ge[4],bt=Ge[5];if((ve=ye.font)!=null&&ve.vertical){if(Ue<z[0]||Ue>z[2]||bt+ze<z[1]||bt>z[3])return!1}else if(Ue+ze<z[0]||Ue>z[2]||bt<z[1]||bt>z[3])return!1;if(!ye.font||!D.prevTransform)return!0;let vt=D.prevTransform[4],At=D.prevTransform[5];if(vt===Ue&&At===bt)return!0;let lt=-1;switch(Ge[0]&&Ge[1]===0&&Ge[2]===0?lt=Ge[0]>0?0:180:Ge[1]&&Ge[0]===0&&Ge[3]===0&&(lt=Ge[1]>0?90:270),lt){case 0:break;case 90:[Ue,bt]=[bt,Ue],[vt,At]=[At,vt];break;case 180:[Ue,bt,vt,At]=[-Ue,-bt,-vt,-At];break;case 270:[Ue,bt]=[-bt,-Ue],[vt,At]=[-At,-vt];break;default:[Ue,bt]=Ee(Ue,bt,Ge),[vt,At]=Ee(vt,At,D.prevTransform)}if(ye.font.vertical){const Te=(At-bt)/D.textAdvanceScale,De=Ue-vt,Le=Math.sign(D.height);return Te<Le*D.negativeSpaceMax?Math.abs(De)>.5*D.width?(Ne(),!0):(ce(),dt(),!0):Math.abs(De)>D.width?(Ne(),!0):(Te<=Le*D.notASpace&&ce(),Te<=Le*D.trackingSpaceMin?se()?(ce(),dt(),$e({height:Math.abs(Te)})):D.height+=Te:wt(Te,D.prevTransform,Le)||(D.str.length===0?(ce(),$e({height:Math.abs(Te)})):D.height+=Te),Math.abs(De)>D.width*pe&&dt(),!0)}const Nt=(Ue-vt)/D.textAdvanceScale,Ut=bt-At,Ie=Math.sign(D.width);return Nt<Ie*D.negativeSpaceMax?Math.abs(Ut)>.5*D.height?(Ne(),!0):(ce(),dt(),!0):Math.abs(Ut)>D.height?(Ne(),!0):(Nt<=Ie*D.notASpace&&ce(),Nt<=Ie*D.trackingSpaceMin?se()?(ce(),dt(),$e({width:Math.abs(Nt)})):D.width+=Nt:wt(Nt,D.prevTransform,Ie)||(D.str.length===0?(ce(),$e({width:Math.abs(Nt)})):D.width+=Nt),Math.abs(Ut)>D.height*pe&&dt(),!0)}function tt({chars:ze,extraSpacing:Ge}){const Ue=ye.font;if(!ze){const At=ye.charSpacing+Ge;At&&(Ue.vertical?ye.translateTextMatrix(0,-At):ye.translateTextMatrix(At*ye.textHScale,0));return}const bt=Ue.charsToGlyphs(ze),vt=ye.fontMatrix[0]*ye.fontSize;for(let At=0,lt=bt.length;At<lt;At++){const Nt=bt[At],{category:Ut}=Nt;if(Ut.isInvisibleFormatMark)continue;let Ie=ye.charSpacing+(At+1===lt?Ge:0),ve=Nt.width;Ue.vertical&&(ve=Nt.vmetric?Nt.vmetric[0]:-ve);let Te=ve*vt;if(Ut.isWhitespace){Ue.vertical?(Ie+=-Te+ye.wordSpacing,ye.translateTextMatrix(0,-Ie)):(Ie+=Te+ye.wordSpacing,ye.translateTextMatrix(Ie*ye.textHScale,0)),ee(" ");continue}if(!Ut.isZeroWidthDiacritic&&!Ve(Te)){Ue.vertical?ye.translateTextMatrix(0,Te):ye.translateTextMatrix(Te*ye.textHScale,0);continue}const De=Ze();Ut.isZeroWidthDiacritic&&(Te=0),Ue.vertical?(ye.translateTextMatrix(0,Te),Te=Math.abs(Te),De.height+=Te):(Te*=ye.textHScale,ye.translateTextMatrix(Te,0),De.width+=Te),Te&&(De.prevTransform=Xe());const Le=Nt.unicode;ee(Le)&&De.str.push(" "),De.str.push(Le),Ie&&(Ue.vertical?ye.translateTextMatrix(0,-Ie):ye.translateTextMatrix(Ie*ye.textHScale,0))}}function Ne(){ce(),D.initialized?(D.hasEOL=!0,dt()):Q.items.push({str:"",dir:"ltr",width:0,height:0,transform:Xe(),fontName:ye.loadedName,hasEOL:!0})}function wt(ze,Ge,Ue){if(Ue*D.spaceInFlowMin<=ze&&ze<=Ue*D.spaceInFlowMax)return D.initialized&&(ce(),D.str.push(" ")),!1;const bt=D.fontName;let vt=0;return D.vertical&&(vt=ze,ze=0),dt(),ce(),$e({width:Math.abs(ze),height:Math.abs(vt),transform:Ge||Xe(),fontName:bt}),!0}function dt(){!D.initialized||!D.str||(D.vertical?D.totalHeight+=D.height*D.textAdvanceScale:D.totalWidth+=D.width*D.textAdvanceScale,Q.items.push(nt(D
23)),D.initialized=!1,D.str.length=0)}function pt(ze=!1){const Ge=Q.items.length;Ge!==0&&(ze&&Ge<m||(w.enqueue(Q,Ge),Q.items=[],Q.styles=Object.create(null)))}const Ot=new H;return new Promise(function ze(Ge,Ue){const bt=function(Te){pt(!0),Promise.all([Te,w.ready]).then(function(){try{ze(Ge,Ue)}catch(De){Ue(De)}},Ue)};K.ensureNotTerminated(),Ot.reset();const vt={};let At,lt=[];for(;!(At=Ot.check())&&(lt.length=0,vt.args=lt,!!ke.read(vt));){const Te=ye;ye=$.state;const De=vt.fn;switch(lt=vt.args,De|0){case n.OPS.setFont:var Nt=lt[0].name,Ut=lt[1];if(ye.font&&Nt===ye.fontName&&Ut===ye.fontSize)break;dt(),ye.fontName=Nt,ye.fontSize=Ut,bt(We(Nt,null));return;case n.OPS.setTextRise:ye.textRise=lt[0];break;case n.OPS.setHScale:ye.textHScale=lt[0]/100;break;case n.OPS.setLeading:ye.leading=lt[0];break;case n.OPS.moveText:ye.translateTextLineMatrix(lt[0],lt[1]),ye.textMatrix=ye.textLineMatrix.slice();break;case n.OPS.setLeadingMoveText:ye.leading=-lt[1],ye.translateTextLineMatrix(lt[0],lt[1]),ye.textMatrix=ye.textLineMatrix.slice();break;case n.OPS.nextLine:ye.carriageReturn();break;case n.OPS.setTextMatrix:ye.setTextMatrix(lt[0],lt[1],lt[2],lt[3],lt[4],lt[5]),ye.setTextLineMatrix(lt[0],lt[1],lt[2],lt[3],lt[4],lt[5]),Fe();break;case n.OPS.setCharSpacing:ye.charSpacing=lt[0];break;case n.OPS.setWordSpacing:ye.wordSpacing=lt[0];break;case n.OPS.beginText:ye.textMatrix=n.IDENTITY_MATRIX.slice(),ye.textLineMatr
23ix=n.IDENTITY_MATRIX.slice();break;case n.OPS.showSpacedText:if(!$.state.font){ge.ensureStateFont($.state);continue}const Le=(ye.font.vertical?1:-1)*ye.fontSize/1e3,Qe=lt[0];for(let Be=0,Pe=Qe.length;Be<Pe;Be++){const He=Qe[Be];if(typeof He=="string")Me.push(He);else if(typeof He=="number"&&He!==0){const st=Me.join("");Me.length=0,tt({chars:st,extraSpacing:He*Le})}}if(Me.length>0){const Be=Me.join("");Me.length=0,tt({chars:Be,extraSpacing:0})}break;case n.OPS.showText:if(!$.state.font){ge.ensureStateFont($.state);continue}tt({chars:lt[0],extraSpacing:0});break;case n.OPS.nextLineShowText:if(!$.state.font){ge.ensureStateFont($.state);continue}ye.carriageReturn(),tt({chars:lt[0],extraSpacing:0});break;case n.OPS.nextLineSetSpacingShowText:if(!$.state.font){ge.ensureStateFont($.state);continue}ye.wordSpacing=lt[0],ye.charSpacing=lt[1],ye.carriageReturn(),tt({chars:lt[2],extraSpacing:0});break;case n.OPS.paintXObject:dt(),xe||(xe=v.get("XObject")||j.Dict.empty);var Ie=lt[0]instanceof j.Name,ve=lt[0].name;if(Ie&&ue.getByName(ve))break;bt(new Promise(function(Be,Pe){if(!Ie)throw new n.FormatError("XObject must be referred to by name.");let He=xe.getRaw(ve);if(He instanceof j.Ref){if(ue.getByRef(He)){Be();return}if(ge.globalImageCache.getData(He,ge.pageIndex)){Be();return}He=Ae.fetch(He)}if(!(He instanceof _.BaseStream))throw new n.FormatError("XObject should be a stream");const st=He.dict.get("Subtype");if(!(st instanceof j.Name))throw new n.FormatError("XObject should have a Name subtype");if(st.name!=="Form"){ue.set(ve,He.dict.objId,!0),Be();return}const xt=$.state.clone(),et=new k(xt),at=He.dict.getArray("Matrix");Array.isArray(at)&&at.length===6&&et.transform(at),pt();const ut={enqueueInvoked:!1,enqueue(qe,rt){this.enqueueInvoked=!0,w.enqueue(qe,rt)},get desiredSize(){return w.desiredSize},get ready(){return w.ready}};ge.getTextContent({stream:He,task:K,resources:He.dict.get("Resources")||v,stateManager:et,includeMarkedContent:d,sink:ut,seenStyles:S,viewBox:z,markedContentData:W,disableNormalization:ne}).then(function(){ut.enqueueInvoked||ue.set(ve,He.dict.objId,!0),Be()},Pe)}).catch(function(Be){if(!(Be instanceof n.AbortException)){if(ge.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring XObject: "${Be}".`);return}throw Be}}));return;case n.OPS.setGState:if(Ie=lt[0]instanceof j.Name,ve=lt[0].name,Ie&&fe.getByName(ve))break;bt(new Promise(function(Be,Pe){if(!Ie)throw new n.FormatError("GState must be referred to by name.");
23const He=v.get("ExtGState");if(!(He instanceof j.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const st=He.get(ve);if(!(st instanceof j.Dict))throw new n.FormatError("GState should be a dictionary.");const xt=st.get("Font");if(!xt){fe.set(ve,st.objId,!0),Be();return}dt(),ye.fontName=null,ye.fontSize=xt[1],We(null,xt[0]).then(Be,Pe)}).catch(function(Be){if(!(Be instanceof n.AbortException)){if(ge.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring ExtGState: "${Be}".`);return}throw Be}}));return;case n.OPS.beginMarkedContent:dt(),d&&(W.level++,Q.items.push({type:"beginMarkedContent",tag:lt[0]instanceof j.Name?lt[0].name:null}));break;case n.OPS.beginMarkedContentProps:if(dt(),d){W.level++;let Be=null;lt[1]instanceof j.Dict&&(Be=lt[1].get("MCID")),Q.items.push({type:"beginMarkedContentProps",id:Number.isInteger(Be)?`${ge.idFactory.getPageObjId()}_mc${Be}`:null,tag:lt[0]instanceof j.Name?lt[0].name:null})}break;case n.OPS.endMarkedContent:if(dt(),d){if(W.level===0)break;W.level--,Q.items.push({type:"endMarkedContent"})}break;case n.OPS.restore:Te&&(Te.font!==ye.font||Te.fontSize!==ye.fontSize||Te.fontName!==ye.fontName)&&dt();break}if(Q.items.length>=w.desiredSize){At=!0;break}}if(At){bt(h);return}dt(),pt(),Ge()}).catch(ze=>{if(!(ze instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring errors during "${K.name}" task: "${ze}".`),dt(),pt();return}throw ze}})}extractDataStructures(te,K,v){const $=this.xref;let d;const w=this.readToUnicode(v.toUnicode||te.get("ToUnicode")||K.get("ToUnicode"));if(v.composite){const D=te.get("CIDSystemInfo");D instanceof j.Dict&&(v.cidSystemInfo={registry:(0,n.stringToPDFString)(D.get("Registry")),ordering:(0,n.stringToPDFString)(D.get("Ordering")),supplement:D.get("Supplement")});try{const Y=te.get("CIDToGIDMap");Y instanceof _.BaseStream&&(d=Y.getBytes())}catch(Y){if(!this.options.ignoreErrors)throw Y;(0,n.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${Y}".`)}}const S=[];let z=null,W;if(te.has("Encoding")){if(W=te.get("Encoding"),W instanceof j.Dict){if(z=W.get("BaseEncoding"),z=z instanceof j.Name?z.name:null,W.has("Differences")){const D=W.get("Differences");let Y=0;for(const ie of D){const ee=$.fetchIfRef(ie);if(typeof ee=="number")Y=ee;else if(ee instanceof j.Name)S[Y++]=ee.name;else throw new n.FormatError(`Invalid entry in 'Differences' array: ${ee}`)}}}else if(W instanceof j.Name)z=W.name;else{const D="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new n.FormatError(D);(0,n.warn)(D)}z!=="MacRomanEncoding"&&z!=="MacExpertEncoding"&&z!=="WinAnsiEncoding"&&(z=null)}const ne=!v.file||v.isInternalFont,Q=(0,l.getSymbolsFonts)()[v.name];if(z&&ne&&Q&&(z=null),z)v.defaultEncoding=(0,t.getEncoding)(z);else{const D=!!(v.flags&X.FontFlags.Symbolic),Y=!!(v.flags&X.FontFlags.Nonsymbolic);W=t.StandardEncoding,v.type==="TrueType"&&!Y&&(W=t.WinAnsiEncoding),(D||Q)&&(W=t.MacRomanEncoding,ne&&(/Symbol/i.test(v.name)?W=t.SymbolSetEncoding:/Dingbats/i.test(v.name)?W=t.ZapfDingbatsEncoding:/Wingdings/i.test(v.name)&&(W=t.WinAnsiEncoding))),v.defaultEncoding=W}return v.differences=S,v.baseEncodingName=z,v.hasEncoding=!!z||S.length>0,v.dict=te,w.then(D=>(v.toUnicode=D,this.buildToUnicode(v))).then(D=>(v.toUnicode=D,d&&(v.cidToGidMap=this.readCidToGidMap(d,D)),v))}_simpleFontToUnicode(te,K=!1){(0,n.assert)(!te.composite,"Must be a simple font.");const v=[],$=te.defaultEncoding.slice(),d=te.baseEncodingName,w=te.differences;for(const z in w){const W=w[z];W!==".notdef"&&($[z]=W)}const S=(0,q.getGlyphsUnicode)();for(const z in $){let W=$[z];if(W==="")continue;let ne=S[W];if(ne!==void 0){v[z]=String.fromCharCode(ne);continue}let Q=0;switch(W[0]){case"G":W.length===3&&(Q=parseInt(W.substring(1),16));break;case"g":W.length===5&&(Q=parseInt(W.substring(1),16));break;case"C":case"c":if(W.length>=3&&W.length<=4){const D=W.substring(1);if(K){Q=parseInt(D,16);break}if(Q=+D,Number.isNaN(Q)&&Number.isInteger(parseInt(D,16)))return this._simpleFontToUnicode(te,!0)}break;case"u":ne=(0,E.getUnicodeForGlyph)(W,S),ne!==-1&&(Q=ne);break;default:switch(W){case"f_h":case"f_t":case"T_h":v[z]=W.replaceAll("_","");continue}break}if(Q>0&&Q<=1114111&&Number.isInteger(Q)){if(d&&Q===+z){const D=(0,t.getEncoding)(d);if(D&&(W=D[z])){v[z]=String.fromCharCode(S[W]);continue}}v[z]=String.fromCodePoint(Q)}}return v}async buildToUnicode(te){var K;if(te.hasIncludedToUnicodeMap=((K=te.toUnicode)==null?void 0:K.length)>0,te.hasIncludedToUnicodeMap)return!te.composite&&te.hasEncoding&&(te.fallbackToUnicode=this._simpleFontToUnicode(te)),te.toUnicode;if(!te.composite)return new B.ToUnicodeMap(this._simpleFontToUnicode(te));if(te.composite&&(te.cMap.builtInCMap&&!(te.cMap instanceof P.IdentityCMap)||te.cidSystemInfo.registry==="Adobe"&&(te.cidSystemInfo.ordering==="GB1"||te.cidSystemInfo.ordering==="CNS1"||te.cidSystemInfo.ordering==="Japan1"||te.cidSystemInfo.ordering==="Korea1"))){const{registry:v,ordering:$}=te.cidSystemInfo,d=j.Name.get(`${v}-${$}-UCS2`),w=await P.CMapFactory.create({encoding:d,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),S=[],z=[];
23return te.cMap.forEach(function(W,ne){if(ne>65535)throw new n.FormatError("Max size of CID is 65,535");const Q=w.lookup(ne);if(Q){z.length=0;for(let D=0,Y=Q.length;D<Y;D+=2)z.push((Q.charCodeAt(D)<<8)+Q.charCodeAt(D+1));S[W]=String.fromCharCode(...z)}}),new B.ToUnicodeMap(S)}return new B.IdentityToUnicodeMap(te.firstChar,te.lastChar)}readToUnicode(te){return te?te instanceof j.Name?P.CMapFactory.create({encoding:te,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(K){return K instanceof P.IdentityCMap?new B.IdentityToUnicodeMap(0,65535):new B.ToUnicodeMap(K.getMap())}):te instanceof _.BaseStream?P.CMapFactory.create({encoding:te,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(K){if(K instanceof P.IdentityCMap)return new B.IdentityToUnicodeMap(0,65535);const v=new Array(K.length);return K.forEach(function($,d){if(typeof d=="number"){v[$]=String.fromCodePoint(d);return}const w=[];for(let S=0;S<d.length;S+=2){const z=d.charCodeAt(S)<<8|d.charCodeAt(S+1);if((z&63488)!==55296){w.push(z);continue}S+=2;
23const W=d.charCodeAt(S)<<8|d.charCodeAt(S+1);w.push(((z&1023)<<10)+(W&1023)+65536)}v[$]=String.fromCodePoint(...w)}),new B.ToUnicodeMap(v)},K=>{if(K instanceof n.AbortException)return null;if(this.options.ignoreErrors)return(0,n.warn)(`readToUnicode - ignoring ToUnicode data: "${K}".`),null;throw K}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(te,K){const v=[];for(let $=0,d=te.length;$<d;$++){const w=te[$++]<<8|te[$],S=$>>1;w===0&&!K.has(S)||(v[S]=w)}return v}extractWidths(te,K,v){const $=this.xref;let d=[],w=0;const S=[];let z,W,ne,Q,D,Y,ie,ee;if(v.composite){if(w=te.has("DW")?te.get("DW"):1e3,ee=te.get("W"),ee)for(W=0,ne=ee.length;W<ne;W++)if(Y=$.fetchIfRef(ee[W++]),ie=$.fetchIfRef(ee[W]),Array.isArray(ie))for(Q=0,D=ie.length;Q<D;Q++)d[Y++]=$.fetchIfRef(ie[Q]);else{const le=$.fetchIfRef(ee[++W]);for(Q=Y;Q<=ie;Q++)d[Q]=le}if(v.vertical){let le=te.getArray("DW2")||[880,-1e3];if(z=[le[1],w*.5,le[0]],le=te.get("W2"),le)for(W=0,ne=le.length;W<ne;W++)if(Y=$.fetchIfRef(le[W++]),ie=$.fetchIfRef(le[W]),Array.isArray(ie))for(Q=0,D=ie.length;Q<D;Q++)S[Y++]=[$.fetchIfRef(ie[Q++]),$.fetchIfRef(ie[Q++]),$.fetchIfRef(ie[Q])];else{const de=[$.fetchIfRef(le[++W]),$.fetchIfRef(le[++W]),$.fetchIfRef(le[++W])];for(Q=Y;Q<=ie;Q++)S[Q]=de}}}else{const le=v.firstChar;if(ee=te.get("Widths"),ee){for(Q=le,W=0,ne=ee.length;W<ne;W++)d[Q++]=$.fetchIfRef(ee[W]);w=parseFloat(K.get("MissingWidth"))||0}else{const de=te.get("BaseFont");if(de instanceof j.Name){const he=this.getBaseFontMetrics(de.name);d=this.buildCharCodeToWidth(he.widths,v),w=he.defaultWidth}}}let se=!0,ce=w;for(const le in d){const de=d[le];if(de){if(!ce){ce=de;continue}if(ce!==de){se=!1;break}}}se?v.flags|=X.FontFlags.FixedPitch:v.flags&=~X.FontFlags.FixedPitch,v.defaultWidth=w,v.widths=d,v.defaultVMetrics=z,v.vmetrics=S}isSerifFont(te){const K=te.split("-")[0];return K in(0,l.getSerifFonts)()||/serif/gi.test(K)}getBaseFontMetrics(te){let K=0,v=Object.create(null),$=!1,w=(0,l.getStdFontMap)()[te]||te;const S=(0,b.getMetrics)();w in S||(w=this.isSerifFont(te)?"Times-Roman":"Helvetica");const z=S[w];return typeof z=="number"?(K=z,$=!0):v=z(),{defaultWidth:K,monospace:$,widths:v}}buildCharCodeToWidth(te,K){const v=Object.create(null),$=K.differences,d=K.defaultEncoding;for(let w=0;w<256;w++){if(w in $&&te[$[w]]){v[w]=te[$[w]];continue}if(w in d&&te[d[w]]){v[w]=te[d[w]];continue}}return v}preEvaluateFont(te){const K=te;let v=te.get("Subtype");if(!(v instanceof j.Name))throw new n.FormatError("invalid font Subtype");let $=!1,d,w;if(v.name==="Type0"){const ne=te.get("DescendantFonts");if(!ne)throw new n.FormatError("Descendant fonts are not specified");if(te=Array.isArray(ne)?this.xref.fetchIfRef(ne[0]):ne,!(te instanceof j.Dict))throw new n.FormatError("Descendant font is not a dictionary.");if(v=te.get("Subtype"),!(v instanceof j.Name))throw new n.FormatError("invalid font Subtype");$=!0}const S=te.get("FirstChar")||0,z=te.get("LastChar")||($?65535:255),W=te.get("FontDescriptor");if(W){d=new u.MurmurHash3_64;const ne=K.getRaw("Encoding");if(ne instanceof j.Name)d.update(ne.name);else if(ne instanceof j.Ref)d.update(ne.toString());else if(ne instanceof j.Dict){for(const D of ne.getRawValues())if(D instanceof j.Name)d.update(D.name);else if(D instanceof j.Ref)d.update(D.toString());else if(Array.isArray(D)){const Y=D.length,ie=new Array(Y);for(let ee=0;ee<Y;ee++){const se=D[ee];se instanceof j.Name?ie[ee]=se.name:(typeof se=="number"||se instanceof j.Ref)&&(ie[ee]=se.toString())}d.update(ie.join())}}if(d.update(`${S}-${z}`),w=te.get("ToUnicode")||K.get("ToUnicode"),w instanceof _.BaseStream){const D=w.str||w,Y=D.buffer?new Uint8Array(D.buffer.buffer,0,D.bufferLength):new Uint8Array(D.bytes.buffer,D.start,D.end-D.start);d.update(Y)}else w instanceof j.Name&&d.update(w.name);const Q=te.get("Widths")||K.get("Widths");if(Array.isArray(Q)){const D=[];for(const Y of Q)(typeof Y=="number"||Y instanceof j.Ref)&&D.push(Y.toString());d.update(D.join())}if($){d.update("compositeFont");const D=te.get("W")||K.get("W");if(Array.isArray(D)){const ie=[];for(const ee of D)if(typeof ee=="number"||ee instanceof j.Ref)ie.push(ee.toString());else if(Array.isArray(ee)){const se=[];for(const ce of ee)(typeof ce=="number"||ce instanceof j.Ref)&&se.push(ce.toString());ie.push(`[${se.join()}]`)}d.update(ie.join())}const Y=te.getRaw("CIDToGIDMap")||K.getRaw("CIDToGIDMap");Y instanceof j.Name?d.update(Y.name):Y instanceof j.Ref?d.update(Y.toString()):Y instanceof _.BaseStream&&d.update(Y.peekBytes())}}return{descriptor:W,dict:te,baseDict:K,composite:$,type:v.name,firstChar:S,lastChar:z,toUnicode:w,hash:d?d.hexdigest():""}}
23async translateFont({descriptor:te,dict:K,baseDict:v,composite:$,type:d,firstChar:w,lastChar:S,toUnicode:z,cssFontInfo:W}){const ne=d==="Type3";let Q;if(!te)if(ne)te=new j.Dict(null),te.set("FontName",j.Name.get(d)),te.set("FontBBox",K.getArray("FontBBox")||[0,0,0,0]);else{let ge=K.get("BaseFont");if(!(ge instanceof j.Name))throw new n.FormatError("Base font is not specified");ge=ge.name.replaceAll(/[,_]/g,"-");const Ae=this.getBaseFontMetrics(ge),Me=ge.split("-")[0],xe=(this.isSerifFont(Me)?X.FontFlags.Serif:0)|(Ae.monospace?X.FontFlags.FixedPitch:0)|((0,l.getSymbolsFonts)()[Me]?X.FontFlags.Symbolic:X.FontFlags.Nonsymbolic);Q={type:d,name:ge,loadedName:v.loadedName,systemFontInfo:null,widths:Ae.widths,defaultWidth:Ae.defaultWidth,isSimulatedFlags:!0,flags:xe,firstChar:w,lastChar:S,toUnicode:z,xHeight:0,capHeight:0,italicAngle:0,isType3Font:ne};const ue=K.get("Widths"),fe=(0,l.getStandardFontName)(ge);let ke=null;return fe&&(ke=await this.fetchStandardFontData(fe),Q.isInternalFont=!!ke),!Q.isInternalFont&&this.options.useSystemFonts&&(Q.systemFontInfo=(0,R.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,ge,fe)),this.extractDataStructures(K,K,Q).then(ye=>{if(ue){const $e=[];let Xe=w;for(const Ze of ue)$e[Xe++]=this.xref.fetchIfRef(Ze);ye.widths=$e}else ye.widths=this.buildCharCodeToWidth(Ae.widths,ye);return new e.Font(ge,ke,ye)})}let D=te.get("FontName"),Y=K.get("BaseFont");
23typeof D=="string"&&(D=j.Name.get(D)),typeof Y=="string"&&(Y=j.Name.get(Y));const ie=D==null?void 0:D.name,ee=Y==null?void 0:Y.name;if(!ne&&ie!==ee&&((0,n.info)(`The FontDescriptor's FontName is "${ie}" but should be the same as the Font's BaseFont "${ee}".`),ie&&ee&&(ee.startsWith(ie)||!(0,l.isKnownFontName)(ie)&&(0,l.isKnownFontName)(ee))&&(D=null)),D||(D=Y),!(D instanceof j.Name))throw new n.FormatError("invalid font name");let se,ce,le,de,he;try{se=te.get("FontFile","FontFile2","FontFile3")}catch(ge){if(!this.options.ignoreErrors)throw ge;(0,n.warn)(`translateFont - fetching "${D.name}" font file: "${ge}".`),se=new a.NullStream}let me=!1,Se=null,pe=null;if(se){if(se.dict){const ge=se.dict.get("Subtype");ge instanceof j.Name&&(ce=ge.name),le=se.dict.get("Length1"),de=se.dict.get("Length2"),he=se.dict.get("Length3")}}else if(W){const ge=(0,J.getXfaFontName)(D.name);ge&&(W.fontFamily=`${W.fontFamily}-PdfJS-XFA`,W.metrics=ge.metrics||null,Se=ge.factors||null,se=await this.fetchStandardFontData(ge.name),me=!!se,v=K=(0,J.getXfaFontDict)(D.name),$=!0)}else if(!ne){const ge=(0,l.getStandardFontName)(D.name);ge&&(se=await this.fetchStandardFontData(ge),me=!!se),!me&&this.options.useSystemFonts&&(pe=(0,R.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,D.name,ge))}if(Q={type:d,name:D.name,subtype:ce,file:se,length1:le,length2:de,length3:he,isInternalFont:me,loadedName:v.loadedName,composite:$,fixedPitch:!1,fontMatrix:K.getArray("FontMatrix")||n.FONT_IDENTITY_MATRIX,firstChar:w,lastChar:S,toUnicode:z,bbox:te.getArray("FontBBox")||K.getArray("FontBBox"),ascent:te.get("Ascent"),descent:te.get("Descent"),xHeight:te.get("XHeight")||0,capHeight:te.get("CapHeight")||0,flags:te.get("Flags"),italicAngle:te.get("ItalicAngle")||0,isType3Font:ne,cssFontInfo:W,scaleFactors:Se,systemFontInfo:pe},$){const ge=v.get("Encoding");ge instanceof j.Name&&(Q.cidEncoding=ge.name);const Ae=await P.CMapFactory.create({encoding:ge,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});Q.cMap=Ae,Q.vertical=Q.cMap.vertical}return this.extractDataStructures(K,v,Q).then(ge=>(this.extractWidths(K,te,ge),new e.Font(D.name,se,ge)))}static buildFontPaths(te,K,v,$){function d(w){const S=`${te.loadedName}_path_${w}`;try{if(te.renderer.hasBuiltPath(w))return;v.send("commonobj",[S,"FontPath",te.renderer.getPathJs(w)])}catch(z){if($.ignoreErrors){(0,n.warn)(`buildFontPaths - ignoring ${S} glyph: "${z}".`);return}throw z}}for(const w of K){d(w.fontChar);const S=w.accent;S!=null&&S.fontChar&&d(S.fontChar)}}static get fallbackFontDict(){const te=new j.Dict;return te.set("BaseFont",j.Name.get("Helvetica")),te.set("Type",j.Name.get("FallbackType")),te.set("Subtype",j.Name.get("FallbackType")),te.set("Encoding",j.Name.get("WinAnsiEncoding")),(0,n.shadow)(this,"fallbackFontDict",te)}}p.PartialEvaluator=F;class M{constructor({loadedName:te,font:K,dict:v,evaluatorOptions:$}){this.loadedName=te,this.font=K,this.dict=v,this._evaluatorOptions=$||s,this.type3Loaded=null,this.type3Dependencies=K.isType3Font?new Set:null,this.sent=!1}send(te){this.sent||(this.sent=!0,te.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(te){this.font.data&&(this.font.disableFontFace=!0,F.buildFontPaths(this.font,this.font.glyphCacheValues,te,this._evaluatorOptions))}loadType3Data(te,K,v){if(this.type3Loaded)return this.type3Loaded;
23if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const $=te.clone({ignoreErrors:!1});$.parsingType3Font=!0;const d=new j.RefSet(te.type3FontRefs);this.dict.objId&&!d.has(this.dict.objId)&&d.put(this.dict.objId),$.type3FontRefs=d;const w=this.font,S=this.type3Dependencies;let z=Promise.resolve();const W=this.dict.get("CharProcs"),ne=this.dict.get("Resources")||K,Q=Object.create(null),D=n.Util.normalizeRect(w.bbox||[0,0,0,0]),Y=D[2]-D[0],ie=D[3]-D[1],ee=Math.hypot(Y,ie);for(const se of W.getKeys())z=z.then(()=>{const ce=W.get(se),le=new T.OperatorList;return $.getOperatorList({stream:ce,task:v,resources:ne,operatorList:le}).then(()=>{le.fnArray[0]===n.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(le,ee),Q[se]=le.getIR();for(const de of le.dependencies)S.add(de)}).catch(function(de){(0,n.warn)(`Type3 font resource "${se}" is not available.`);const he=new T.OperatorList;Q[se]=he.getIR()})});return this.type3Loaded=z.then(()=>{w.charProcOperatorList=Q,this._bbox&&(w.isCharBBox=!0,w.bbox=this._bbox)}),this.type3Loaded}_removeType3ColorOperators(te,K=NaN){const v=n.Util.normalizeRect(te.argsArray[0].slice(2)),$=v[2]-v[0],d=v[3]-v[1],w=Math.hypot($,d);$===0||d===0?(te.fnArray.splice(0,1),te.argsArray.splice(0,1)):(K===0||Math.round(w/K)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],v[0]),this._bbox[1]=Math.min(this._bbox[1],v[1]),this._bbox[2]=Math.max(this._bbox[2],v[2]),this._bbox[3]=Math.max(this._bbox[3],v[3]));let S=0,z=te.length;for(;S<z;){switch(te.fnArray[S]){case n.OPS.setCharWidthAndBounds:break;case n.OPS.setStrokeColorSpace:case n.OPS.setFillColorSpace:case n.OPS.setStrokeColor:case n.OPS.setStrokeColorN:case n.OPS.setFillColor:case n.OPS.setFillColorN:case n.OPS.setStrokeGray:case n.OPS.setFillGray:case n.OPS.setStrokeRGBColor:case n.OPS.setFillRGBColor:case n.OPS.setStrokeCMYKColor:case n.OPS.setFillCMYKColor:case n.OPS.shadingFill:case n.OPS.setRenderingIntent:te.fnArray.splice(S,1),te.argsArray.splice(S,1),z--;continue;case n.OPS.setGState:const[W]=te.argsArray[S];let ne=0,Q=W.length;for(;ne<Q;){const[D]=W[ne];switch(D){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":W.splice(ne,1),Q--;continue}ne++}break}S++}}}class k{constructor(te=new C){this.state=te,this.stateStack=[]}save(){const te=this.state;this.stateStack.push(this.state),this.state=te.clone()}restore(){const te=this.stateStack.pop();te&&(this.state=te)}transform(te){this.state.ctm=n.Util.transform(this.state.ctm,te)}}class x{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.textMatrix=n.IDENTITY_MATRIX.slice(),this.textLineMatr
23ix=n.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(te,K,v,$,d,w){const S=this.textMatrix;S[0]=te,S[1]=K,S[2]=v,S[3]=$,S[4]=d,S[5]=w}setTextLineMatrix(te,K,v,$,d,w){const S=this.textLineMatrix;S[0]=te,S[1]=K,S[2]=v,S[3]=$,S[4]=d,S[5]=w}translateTextMatrix(te,K){const v=this.textMatrix;v[4]=v[0]*te+v[2]*K+v[4],v[5]=v[1]*te+v[3]*K+v[5]}translateTextLineMatrix(te,K){const v=this.textLineMatrix;v[4]=v[0]*te+v[2]*K+v[4],v[5]=v[1]*te+v[3]*K+v[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const te=Object.create(this);return te.textMatrix=this.textMatrix.slice(),te.textLineMatrix=this.textLineMatrix.slice(),te.fontMatrix=this.fontMatrix.slice(),te}}class C{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=n.TextRenderingMode.FILL,this.fillColorSpace=O.ColorSpace.singletons.gray,this.strokeColorSpace=O.ColorSpace.singletons.gray}clone(){return Object.create(this)}}const ae=class ae{static get opMap(){return(0,n.shadow)(this,"opMap",{w:{id:n.OPS.setLineWidth,numArgs:1,variableArgs:!1},J:{id:n.OPS.setLineCap,numArgs:1,variableArgs:!1},j:{id:n.OPS.setLineJoin,numArgs:1,variableArgs:!1},M:{id:n.OPS.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:n.OPS.setDash,numArgs:2,variableArgs:!1},ri:{id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:n.OPS.setFlatness,numArgs:1,variableArgs:!1},gs:{id:n.OPS.setGState,numArgs:1,variableArgs:!1},q:{id:n.OPS.save,numArgs:0,variableArgs:!1},Q:{id:n.OPS.restore,numArgs:0,variableArgs:!1},cm:{id:n.OPS.transform,numArgs:6,variableArgs:!1},m:{id:n.OPS.moveTo,numArgs:2,variableArgs:!1},l:{id:n.OPS.lineTo,numArgs:2,variableArgs:!1},c:{id:n.OPS.curveTo,numArgs:6,variableArgs:!1},v:{id:n.OPS.curveTo2,numArgs:4,variableArgs:!1},y:{id:n.OPS.curveTo3,numArgs:4,variableArgs:!1},h:{id:n.OPS.closePath,numArgs:0,variableArgs:!1},re:{id:n.OPS.rectangle,numArgs:4,variableArgs:!1},S:{id:n.OPS.stroke,numArgs:0,variableArgs:!1},s:{id:n.OPS.closeStroke,numArgs:0,variableArgs:!1},f:{id:n.OPS.fill,numArgs:0,variableArgs:!1},F:{id:n.OPS.fill,numArgs:0,variableArgs:!1},"f*":{id:n.OPS.eoFill,numArgs:0,variableArgs:!1},B:{id:n.OPS.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:n.OPS.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:n.OPS.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:n.OPS.endPath,numArgs:0,variableArgs:!1},W:{id:n.OPS.clip,numArgs:0,variableArgs:!1},"W*":{id:n.OPS.eoClip,numArgs:0,variableArgs:!1},BT:{id:n.OPS.beginText,numArgs:0,variableArgs:!1},ET:{id:n.OPS.endText,numArgs:0,variableArgs:!1},Tc:{id:n.OPS.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:n.OPS.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:n.OPS.setHScale,numArgs:1,variableArgs:!1},TL:{id:n.OPS.setLeading,numArgs:1,variableArgs:!1},Tf:{id:n.OPS.setFont,numArgs:2,variableArgs:!1},Tr:{id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:n.OPS.setTextRise,numArgs:1,variableArgs:!1},Td:{id:n.OPS.moveText,numArgs:2,variableArgs:!1},TD:{id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:n.OPS.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:n.OPS.nextLine,numArgs:0,variableArgs:!1},Tj:{id:n.OPS.showText,numArgs:1,variableArgs:!1},TJ:{id:n.OPS.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:n.OPS.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:n.OPS.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:n.OPS.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:n.OPS.setFillColor,numArgs:4,variableArgs:!0},scn:{id:n.OPS.setFillColorN,numArgs:33,variableArgs:!0},G:{id:n.OPS.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:n.OPS.setFillGray,numArgs:1,variableArgs:!1},RG:{id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:n.OPS.shadingFill,numArgs:1,variableArgs:!1},BI:{id:n.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:n.OPS.beginImageData,numArgs:0,variableArgs:!1},EI:{id:n.OPS.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:n.OPS.paintXObject,numArgs:1,variableArgs:!1},MP:{id:n.OPS.markPoint,numArgs:1,variableArgs:!1},DP:{id:n.OPS.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:n.OPS.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:n.OPS.beginCompat,numArgs:0,variableArgs:!1},EX:{id:n.OPS.endCompat,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null})}constructor(te,K,v=new k){this.parser=new f.Parser({lexer:new f.Lexer(te,ae.opMap),xref:K}),this.stateManager=v,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(te){let K=te.args;for(;;){const v=this.parser.getObj();if(v instanceof j.Cmd){const $=v.cmd,d=ae.opMap[$];if(!d){(0,n.warn)(`Unknown command "${$}".`);continue}const w=d.id,S=d.numArgs;let z=K!==null?K.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=w>=n.OPS.moveTo&&w<=n.OPS.endPath,d.variableArgs)z>S&&(0,n.info)(`Command ${$}: expected [0, ${S}] args, but received ${z} args.`);else{if(z!==S){const W=this.nonProcessedArgs;for(;z>S;)W.push(K.shift()),z--;for(;z<S&&W.length!==0;)K===null&&(K=[]),K.unshift(W.pop()),z++}if(z<S){const W=`command ${$}: expected ${S} args, but received ${z} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>
23ae.MAX_INVALID_PATH_OPS)throw new n.FormatError(`Invalid ${W}`);(0,n.warn)(`Skipping ${W}`),K!==null&&(K.length=0);continue}}return this.preprocessCommand(w,K),te.fn=w,te.args=K,!0}if(v===j.EOF)return!1;if(v!==null&&(K===null&&(K=[]),K.push(v),K.length>33))throw new n.FormatError("Too many arguments")}}preprocessCommand(te,K){switch(te|0){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(K);break}}};jt(ae,"MAX_INVALID_PATH_OPS",10);let G=ae;p.EvaluatorPreprocessor=G},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.IdentityCMap=p.CMapFactory=p.CMap=void 0;var n=re(2),P=re(4),j=re(5),e=re(15),t=re(16),l=re(3),V=re(8);const J=["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"],B=2**24-1;class I{constructor(s=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=s}addCodespaceRange(s,o,m){this.codespaceRanges[s-1].push(o,m),this.numCodespaceRanges++}mapCidRange(s,o,m){if(o-s>B)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;s<=o;)this._map[s++]=m++}mapBfRange(s,o,m){if(o-s>B)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const h=m.length-1;for(;s<=o;){this._map[s++]=m;const A=m.charCodeAt(h)+1;if(A>255){m=m.substring(0,h-1)+String.fromCharCode(m.charCodeAt(h-1)+1)+"\0";continue}m=m.substring(0,h)+String.fromCharCode(A)}}mapBfRangeToArray(s,o,m){if(o-s>B)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const h=m.length;let A=0;for(;s<=o&&A<h;)this._map[s]=m[A++],++s}mapOne(s,o){this._map[s]=o}lookup(s){return this._map[s]}contains(s){return this._map[s]!==void 0}forEach(s){const o=this._map,m=o.length;if(m<=65536)for(let h=0;h<m;h++)o[h]!==void 0&&s(h,o[h]);else for(const h in o)s(h,o[h])}charCodeOf(s){const o=this._map;if(o.length<=65536)return o.indexOf(s);for(const m in o)if(o[m]===s)return m|0;return-1}getMap(){return this._map}readCharCode(s,o,m){let h=0;const A=this.codespaceRanges;for(let L=0,H=A.length;L<H;
23L++){h=(h<<8|s.charCodeAt(o+L))>>>0;const F=A[L];for(let M=0,k=F.length;M<k;){const x=F[M++],C=F[M++];if(h>=x&&h<=C){m.charcode=h,m.length=L+1;return}}}m.charcode=0,m.length=1}getCharCodeLength(s){const o=this.codespaceRanges;for(let m=0,h=o.length;m<h;m++){const A=o[m];for(let L=0,H=A.length;L<H;){const F=A[L++],M=A[L++];if(s>=F&&s<=M)return m+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 s=0;s<65536;s++)if(this._map[s]!==s)return!1;return!0}}p.CMap=I;class f extends I{constructor(s,o){super(),this.vertical=s,this.addCodespaceRange(o,0,65535)}mapCidRange(s,o,m){(0,n.unreachable)("should not call mapCidRange")}mapBfRange(s,o,m){(0,n.unreachable)("should not call mapBfRange")}mapBfRangeToArray(s,o,m){(0,n.unreachable)("should not call mapBfRangeToArray")}mapOne(s,o){(0,n.unreachable)("should not call mapCidOne")}lookup(s){return Number.isInteger(s)&&s<=65535?s:void 0}contains(s){return Number.isInteger(s)&&s<=65535}forEach(s){for(let o=0;o<=65535;o++)s(o,o)}charCodeOf(s){return Number.isInteger(s)&&s<=65535?s:-1}getMap(){const s=new Array(65536);for(let o=0;o<=65535;o++)s[o]=o;return s}get length(){return 65536}get isIdentityCMap(){(0,n.unreachable)("should not access .isIdentityCMap")}}p.IdentityCMap=f;function g(r){let s=0;for(let o=0;o<r.length;o++)s=s<<8|r.charCodeAt(o);return s>>>0}function a(r){if(typeof r!="string")throw new n.FormatError("Malformed CMap: expected string.")}function _(r){if(!Number.isInteger(r))throw new n.FormatError("Malformed CMap: expected int.")}function y(r,s){for(;;){let o=s.getObj();if(o===P.EOF)break;if((0,P.isCmd)(o,"endbfchar"))return;a(o);const m=g(o);o=s.getObj(),a(o);const h=o;r.mapOne(m,h)}}function O(r,s){for(;;){let o=s.getObj();if(o===P.EOF)break;if((0,P.isCmd)(o,"endbfrange"))return;a(o);const m=g(o);o=s.getObj(),a(o);const h=g(o);if(o=s.getObj(),Number.isInteger(o)||typeof o=="string"){const A=Number.isInteger(o)?String.fromCharCode(o):o;r.mapBfRange(m,h,A)}else if((0,P.isCmd)(o,"[")){o=s.getObj();const A=[];for(;!(0,P.isCmd)(o,"]")&&o!==P.EOF;)A.push(o),o=s.getObj();r.mapBfRangeToArray(m,h,A)}else break}throw new n.FormatError("Invalid bf range.")}function N(r,s){for(;;){let o=s.getObj();if(o===P.EOF)break;if((0,P.isCmd)(o,"endcidchar"))return;a(o);const m=g(o);o=s.getObj(),_(o);const h=o;r.mapOne(m,h)}}function X(r,s){for(;;){let o=s.getObj();if(o===P.EOF)break;if((0,P.isCmd)(o,"endcidrange"))return;a(o);const m=g(o);o=s.getObj(),a(o);const h=g(o);o=s.getObj(),_(o);const A=o;r.mapCidRange(m,h,A)}}function R(r,s){for(;;){let o=s.getObj();if(o===P.EOF)break;if((0,P.isCmd)(o,"endcodespacerange"))return;if(typeof o!="string")break;const m=g(o);if(o=s.getObj(),typeof o!="string")break;const h=g(o);r.addCodespaceRange(o.length,m,h)}throw new n.FormatError("Invalid codespace range.")}function q(r,s){const o=s.getObj();Number.isInteger(o)&&(r.vertical=!!o)}function b(r,s){const o=s.getObj();o instanceof P.Name&&(r.name=o.name)}async function E(r,s,o,m){let h,A;e:for(;;)try{const L=s.getObj();if(L===P.EOF)break;if(L instanceof P.Name)L.name==="WMode"?q(r,s):L.name==="CMapName"&&b(r,s),h=L;else if(L instanceof P.Cmd)switch(L.cmd){case"endcmap":break e;case"usecmap":h instanceof P.Name&&(A=h.name);break;case"begincodespacerange":R(r,s);break;case"beginbfchar":y(r,s);break;case"begincidchar":N(r,s);break;case"beginbfrange":O(r,s);break;case"begincidrange":X(r,s);break}}catch(L){if(L instanceof l.MissingDataException)throw L;(0,n.warn)("Invalid cMap data: "+L);continue}return!m&&A&&(m=A),m?c(r,o,m):r}async function c(r,s,o){if(r.useCMap=await u(o,s),r.numCodespaceRanges===0){const m=r.useCMap.codespaceRanges;for(let h=0;h<m.length;h++)r.codespaceRanges[h]=m[h].slice();r.numCodespaceRanges=r.useCMap.numCodespaceRanges}return r.useCMap.forEach(function(m,h){r.contains(m)||r.mapOne(m,r.useCMap.lookup(m))}),r}async function u(r,s){if(r==="Identity-H")return new f(!1,2);if(r==="Identity-V")return new f(!0,2);if(!J.includes(r))throw new Error("Unknown CMap name: "+r);if(!s)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:o,compressionType:m}=await s(r),h=new I(!0);if(m===n.CMapCompressionType.BINARY)return new e.BinaryCMapReader().process(o,h,A=>c(h,s,A));
23if(m===n.CMapCompressionType.NONE){const A=new t.Lexer(new V.Stream(o));return E(h,A,s,null)}throw new Error(`Invalid CMap "compressionType" value: ${m}`)}class T{static async create({encoding:s,fetchBuiltInCMap:o,useCMap:m}){if(s instanceof P.Name)return u(s.name,o);if(s instanceof j.BaseStream){const h=await E(new I,new t.Lexer(s),o,m);return h.isIdentityCMap?u(h.name,o):h}throw new Error("Encoding required.")}}p.CMapFactory=T},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.BinaryCMapReader=void 0;var n=re(2);function P(I,f){let g=0;for(let a=0;a<=f;a++)g=g<<8|I[a];return g>>>0}function j(I,f){return f===1?String.fromCharCode(I[0],I[1]):f===3?String.fromCharCode(I[0],I[1],I[2],I[3]):String.fromCharCode(...I.subarray(0,f+1))}function e(I,f,g){let a=0;for(let _=g;_>=0;_--)a+=I[_]+f[_],I[_]=a&255,a>>=8}function t(I,f){let g=1;for(let a=f;a>=0&&g>0;a--)g+=I[a],I[a]=g&255,g>>=8}const l=16,V=19;class J{constructor(f){this.buffer=f,this.pos=0,this.end=f.length,this.tmpBuf=new Uint8Array(V)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let f=0,g;do{const a=this.readByte();if(a<0)throw new n.FormatError("unexpected EOF in bcmap");g=!(a&128),f=f<<7|a&127}while(!g);return f}readSigned(){const f=this.readNumber();return f&1?~(f>>>1):f>>>1}readHex(f,g){f.set(this.buffer.subarray(this.pos,this.pos+g+1)),this.pos+=g+1}readHexNumber(f,g){let a;const _=this.tmpBuf;let y=0;do{const R=this.readByte();if(R<0)throw new n.FormatError("unexpected EOF in bcmap");a=!(R&128),_[y++]=R&127}while(!a);let O=g,N=0,X=0;for(;O>=0;){for(;X<8&&_.length>0;)N|=_[--y]<<X,X+=7;f[O]=N&255,O--,N>>=8,X-=8}}readHexSigned(f,g){this.readHexNumber(f,g);const a=f[g]&1?255:0;let _=0;for(let y=0;y<=g;y++)_=(_&1)<<8|f[y],f[y]=_>>1^a}readString(){const f=this.readNumber(),g=new Array(f);for(let a=0;a<f;a++)g[a]=this.readNumber();return String.fromCharCode(...g)}}class B{async process(f,g,a){const _=new J(f),y=_.readByte();g.vertical=!!(y&1);let O=null;const N=new Uint8Array(l),X=new Uint8Array(l),R=new Uint8Array(l),q=new Uint8Array(l),b=new Uint8Array(l);let E,c;for(;(c=_.readByte())>=0;){const u=c>>5;if(u===7){switch(c&31){case 0:_.readString();break;case 1:O=_.readString();break}continue}const T=!!(c&16),r=c&15;if(r+1>l)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const s=1,o=_.readNumber();switch(u){case 0:_.readHex(N,r),_.readHexNumber(X,r),e(X,N,r),g.addCodespaceRange(r+1,P(N,r),P(X,r));for(let m=1;m<o;m++)t(X,r),_.readHexNumber(N,r),e(N,X,r),_.readHexNumber(X,r),e(X,N,r),g.addCodespaceRange(r+1,P(N,r),P(X,r));break;case 1:_.readHex(N,r),_.readHexNumber(X,r),e(X,N,r),_.readNumber();for(let m=1;m<o;m++)t(X,r),_.readHexNumber(N,r),e(N,X,r),_.readHexNumber(X,r),e(X,N,r),_.readNumber();break;case 2:_.readHex(R,r),E=_.readNumber(),g.mapOne(P(R,r),E);for(let m=1;m<o;m++)t(R,r),T||(_.readHexNumber(b,r),e(R,b,r)),E=_.readSigned()+(E+1),g.mapOne(P(R,r),E);break;case 3:_.readHex(N,r),_.readHexNumber(X,r),e(X,N,r),E=_.readNumber(),g.mapCidRange(P(N,r),P(X,r),E);for(let m=1;m<o;m++)t(X,r),T?N.set(X):(_.readHexNumber(N,r),e(N,X,r)),_.readHexNumber(X,r),e(X,N,r),E=_.readNumber(),g.mapCidRange(P(N,r),P(X,r),E);break;case 4:_.readHex(R,s),_.readHex(q,r),g.mapOne(P(R,s),j(q,r));for(let m=1;m<o;m++)t(R,s),T||(_.readHexNumber(b,s),e(R,b,s)),t(q,r),_.readHexSigned(b,r),e(q,b,r),g.mapOne(P(R,s),j(q,r));break;case 5:_.readHex(N,s),_.readHexNumber(X,s),e(X,N,s),_.readHex(q,r),g.mapBfRange(P(N,s),P(X,s),j(q,r));for(let m=1;m<o;m++)t(X,s),T?N.set(X):(_.readHexNumber(N,s),e(N,X,s)),_.readHexNumber(X,s),e(X,N,s),_.readHex(q,r),g.mapBfRange(P(N,s),P(X,s),j(q,r));break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${u}`)}}return O?a(O):g}}p.BinaryCMapReader=B},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Parser=p.Linearization=p.Lexer=void 0;var n=re(2),P=re(4),j=re(3),e=re(8),t=re(17),l=re(19),V=re(20),J=re(22),B=re(23),I=re(26),f=re(29),g=re(31),a=re(32),_=re(33);const y=1e3;function O(E){const c=[],u=E.length;let T=0;for(;T<u-1;)c.push(E[T++]<<8|E[T++]);return T<u&&c.push(E[T]),u+"_"+String.fromCharCode.apply(null,c)}class N{constructor({lexer:c,xref:u,allowStreams:T=!1,recoveryMode:r=!1}){this.lexer=c,this.xref=u,this.allowStreams=T,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 P.Cmd&&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(c){if(c instanceof j.MissingDataException)throw c;return!1}}getObj(c=null){const u=this.buf1;if(this.shift(),u instanceof P.Cmd)switch(u.cmd){case"BI":return this.makeInlineImage(c);case"[":const T=[];for(;!(0,P.isCmd)(this.buf1,"]")&&this.buf1!==P.EOF;)T.push(this.getObj(c));if(this.buf1===P.EOF){if(this.recoveryMode)return T;throw new j.ParserEOFException("End of file inside array.")}return this.shift(),T;case"<<":const r=new P.Dict(this.xref);for(;!(0,P.isCmd)(this.buf1,">>")&&this.buf1!==P.EOF;){if(!(this.buf1 instanceof P.Name)){(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const s=this.buf1.name;if(this.shift(),this.buf1===P.EOF)break;r.set(s,this.getObj(c))}if(this.buf1===P.EOF){if(this.recoveryMode)return r;throw new j.ParserEOFException("End of file inside dictionary.")}return(0,P.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(r,c):r:(this.shift(),r);default:return u}if(Number.isInteger(u)){if(Number.isInteger(this.buf1)&&(0,P.isCmd)(this.buf2,"R")){const T=P.Ref.get(u,this.buf1);return this.shift(),this.shift(),T}return u}return typeof u=="string"&&c?c.decryptString(u):u}findDefaultInlineStreamEnd(c){const{knownCommands:h}=this.lexer,A=c.pos,L=15;let H=0,F,M;for(;(F=c.getByte())!==-1;)if(H===0)H=F===69?1:0;else if(H===1)H=F===73?2:0;else if(F===32||F===10||F===13){M=c.pos;const x=c.peekBytes(L),C=x.length;if(C===0)break;for(let ae=0;ae<C;ae++)if(F=x[ae],!(F===0&&x[ae+1]!==0)&&F!==10&&F!==13&&(F<32||F>127)){H=0;break}if(H!==2)continue;if(!h){(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const G=new q(new e.Stream(x.slice()),h);G._hexStringWarn=()=>{};let Z=0;for(;;){const ae=G.getObj();if(ae===P.EOF){H=0;break}if(ae instanceof P.Cmd){const oe=h[ae.cmd];if(oe){if(oe.variableArgs?Z<=oe.numArgs:Z===oe.numArgs)break}else{H=0;break}Z=0;continue}Z++}if(H===2)break}else H=0;F===-1&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),M&&((0,n.warn)('... trying to re
23cover by using the last "EI" occurrence.'),c.skip(-(c.pos-M))));let k=4;return c.skip(-k),F=c.peekByte(),c.skip(k),(0,j.isWhiteSpace)(F)||k--,c.pos-k-A}findDCTDecodeInlineStreamEnd(c){const u=c.pos;let T=!1,r,s;for(;(r=c.getByte())!==-1;)if(r===255){switch(c.getByte()){case 0:break;case 255:c.skip(-1);break;case 217:T=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:s=c.getUint16(),s>2?c.skip(s-2):c.skip(-2);break}if(T)break}const o=c.pos-u;return r===-1?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),c.skip(-o),this.findDefaultInlineStreamEnd(c)):(this.inlineStreamSkipEI(c),o)}findASCII85DecodeInlineStreamEnd(c){const r=c.pos;let s;for(;(s=c.getByte())!==-1;)if(s===126){const m=c.pos;for(s=c.peekByte();(0,j.isWhiteSpace)(s);)c.skip(),s=c.peekByte();if(s===62){c.skip();break}if(c.pos>m){const h=c.peekBytes(2);if(h[0]===69&&h[1]===73)break}}const o=c.pos-r;return s===-1?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),c.skip(-o),this.findDefaultInlineStreamEnd(c)):(this.inlineStreamSkipEI(c),o)}findASCIIHexDecodeInlineStreamEnd(c){const T=c.pos;let r;for(;(r=c.getByte())!==-1&&r!==62;);const s=c.pos-T;return r===-1?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),c.skip(-s),this.findDefaultInlineStreamEnd(c)):(this.inlineStreamSkipEI(c),s)}inlineStreamSkipEI(c){let r=0,s;for(;(s=c.getByte())!==-1;)if(r===0)r=s===69?1:0;else if(r===1)r=s===73?2:0;else if(r===2)break}makeInlineImage(c){const u=this.lexer,T=u.stream,r=Object.create(null);let s;for(;!(0,P.isCmd)(this.buf1,"ID")&&this.buf1!==P.EOF;){if(!(this.buf1 instanceof P.Name))throw new n.FormatError("Dictionary key must be a name object");const M=this.buf1.name;if(this.shift(),this.buf1===P.EOF)break;r[M]=this.getObj(c)}u.beginInlineImagePos!==-1&&(s=T.pos-u.beginInlineImagePos);const o=this.xref.fetchIfRef(r.F||r.Filter);let m;if(o instanceof P.Name)m=o.name;else if(Array.isArray(o)){const M=this.xref.fetchIfRef(o[0]);M instanceof P.Name&&(m=M.name)}const h=T.pos;let A;switch(m){case"DCT":case"DCTDecode":A=this.findDCTDecodeInlineStreamEnd(T);break;case"A85":case"ASCII85Decode":A=this.findASCII85DecodeInlineStreamEnd(T);break;case"AHx":case"ASCIIHexDecode":A=this.findASCIIHexDecodeInlineStreamEnd(T);break;default:A=this.findDefaultInlineStreamEnd(T)}let L;if(A<y&&s>0){const M=T.pos;T.pos=u.beginInlineImagePos,L=O(T.getBytes(s+A)),T.pos=M;const k=this.imageCache[L];if(k!==void 0)return this.buf2=P.Cmd.get("EI"),this.shift(),k.reset(),k}const H=new P.Dict(this.xref);for(const M in r)H.set(M,r[M]);let F=T.makeSubStream(h,A,H);return c&&(F=c.createStream(F,A)),F=this.filter(F,H,A),F.dict=H,L!==void 0&&(F.cacheKey=`inline_img_${++this._imageId}`,this.imageCache[L]=F),this.buf2=P.Cmd.get("EI"),this.shift(),F}_findStreamLength(c,u){const{stream:T}=this.lexer;T.pos=c;const r=2048,s=u.length;for(;T.pos<T.end;){const o=T.peekBytes(r),m=o.length-s;if(m<=0)break;let h=0;for(;h<m;){let A=0;for(;A<s&&o[h+A]===u[A];)A++;if(A>=s)return T.pos+=h,T.pos-c;h++}T.pos+=m}return-1}makeStream(c,u){const T=this.lexer;let r=T.stream;T.skipToNextLine();const s=r.pos-1;let o=c.get("Length");if(Number.isInteger(o)||((0,n.info)(`Bad length "${o&&o.toString()}" in stream.`),o=0),r.pos=s+o,T.nextChar(),this.tryShift()&&(0,P.isCmd)(this.buf2,"endstream"))this.shift();else{const m=new Uint8Array([101,110,100,115,116,114,101,97,109]);let h=this._findStreamLength(s,m);if(h<0){for(let L=1;L<=1;L++){const H=m.length-L,F=m.slice(0,H),M=this._findStreamLength(s,F);if(M>=0){const k=r.peekBytes(H+1)[H];if(!(0,j.isWhiteSpace)(k))break;(0,n.info)(`Found "${(0,n.bytesToString)(F)}" when searching for endstream command.`),h=M;break}}if(h<0)throw new n.FormatError("Missing endstream command.")}o=h,T.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(s,o,c),u&&(r=u.createStream(r,o)),r=this.filter(r,c,o),r.dict=c,r}filter(c,u,T){let r=u.get("F","Filter"),s=u.get("DP","DecodeParms");if(r instanceof P.Name)return Array.isArray(s)&&(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(c,r.name,T,s);let o=T;if(Array.isArray(r)){const m=r,h=s;for(let A=0,L=m.length;A<L;++A){if(r=this.xref.fetchIfRef(m[A]),!(r instanceof P.Name))throw new n.FormatError(`Bad filter name "${r}"`);s=null,Array.isArray(h)&&A in h&&(s=this.xref.fetchIfRef(h[A])),c=this.makeFilter(c,r.name,o,s),o=null}}return c}makeFilter(c,u,T,r){if(T===0)return(0,n.warn)(`Empty "${u}" stream.`),new e.NullStream;try{switch(u){case"Fl":case"FlateDecode":return r?new a.PredictorStream(new J.FlateStream(c,T),T,r):new J.FlateStream(c,T);case"LZW":case"LZWDecode":let s=1;return r?(r.has("EarlyChange")&&(s=r.get("EarlyChange")),new a.PredictorStream(new g.LZWStream(c,T,s),T,r)):new g.LZWStream(c,T,s);case"DCT":case"DCTDecode":return new I.JpegStream(c,T,r);case"JPX":case"JPXDecode":return new f.JpxStream(c,T,r);case"A85":case"ASCII85Decode":return new t.Ascii85Stream(c,T);case"AHx":case"ASCIIHexDecode":return new l.AsciiHexStream(c,T);case"CCF":case"CCITTFaxDecode":return new V.CCITTFaxStream(c,T,r);case"RL":case"RunLengthDecode":return new _.RunLengthStream(c,T);case"JBIG2Decode":return new B.Jbig2Stream(c,T,r)}return(0,n.warn)(`Filter "${u}" is not supported.`),c}catch(s){if(s instanceof j.MissingDataException)throw s;return(0,n.warn)(`Invalid stream: "${s}"`),new e.NullStream}}}p.Parser=N;const X=[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 R(E){return E>=48&&E<=57?E&15:E>=65&&E<=70||E>=97&&E<=102?(E&15)+9:-1}class q{constructor(c,u=null){this.stream=c,this.nextChar(),this.strBuf=[],this.knownCommands=u,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let c=this.currentChar,u=!1,T=0,r=1;if(c===45?(r=-1,c=this.nextChar(),c===45&&(c=this.nextChar())):c===43&&(c=this.nextChar()),c===10||c===13)do c=this.nextChar();while(c===10||c===13);
23if(c===46&&(T=10,c=this.nextChar()),c<48||c>57){const h=`Invalid number: ${String.fromCharCode(c)} (charCode ${c})`;if((0,j.isWhiteSpace)(c)||c===-1)return(0,n.info)(`Lexer.getNumber - "${h}".`),0;throw new n.FormatError(h)}let s=c-48,o=0,m=1;for(;(c=this.nextChar())>=0;)if(c>=48&&c<=57){const h=c-48;u?o=o*10+h:(T!==0&&(T*=10),s=s*10+h)}else if(c===46)if(T===0)T=1;else break;else if(c===45)(0,n.warn)("Badly formatted number: minus sign in the middle");else if(c===69||c===101){if(c=this.peekChar(),c===43||c===45)m=c===45?-1:1,this.nextChar();else if(c<48||c>57)break;u=!0}else break;return T!==0&&(s/=T),u&&(s*=10**(m*o)),r*s}getString(){let c=1,u=!1;const T=this.strBuf;T.length=0;let r=this.nextChar();for(;;){let s=!1;switch(r|0){case-1:(0,n.warn)("Unterminated string"),u=!0;break;case 40:++c,T.push("(");break;case 41:--c===0?(this.nextChar(),u=!0):T.push(")");break;case 92:switch(r=this.nextChar(),r){case-1:(0,n.warn)("Unterminated string"),u=!0;break;case 110:T.push(` 24`);break;case 114:T.push("\r");break;case 116:T.push(" ");break;case 98:T.push("\b");break;case 102:T.push("\f");break;case 92:case 40:case 41:T.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let o=r&15;r=this.nextChar(),s=!0,r>=48&&r<=55&&(o=(o<<3)+(r&15),r=this.nextChar(),r>=48&&r<=55&&(s=!1,o=(o<<3)+(r&15))),T.push(String.fromCharCode(o));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:T.push(String.fromCharCode(r));break}break;default:T.push(String.fromCharCode(r));break}if(u)break;s||(r=this.nextChar())}return T.join("")}getName(){let c,u;const T=this.strBuf;for(T.length=0;(c=this.nextChar())>=0&&!X[c];)if(c===35){if(c=this.nextChar(),X[c]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),T.push("#");break}const r=R(c);if(r!==-1){u=c,c=this.nextChar();const s=R(c);if(s===-1){if((0,n.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(c)}) in hexadecimal number.`),T.push("#",String.fromCharCode(u)),X[c])break;T.push(String.fromCharCode(c));continue}T.push(String.fromCharCode(r<<4|s))}else T.push("#",String.fromCharCode(c))}else T.push(String.fromCharCode(c));return T.length>127&&(0,n.warn)(`Name token is longer than allowed by the spec: ${T.length}`),P.Name.get(T.join(""))}_hexStringWarn(c){if(this._hexStringNumWarn++===5){(0,n.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,n.warn)(`getHexString - ignoring invalid character: ${c}`)}getHexString(){const c=this.strBuf;c.length=0;let u=this.currentChar,T=!0,r,s;for(this._hexStringNumWarn=0;;)if(u<0){(0,n.warn)("Unterminated hex string");break}else if(u===62){this.nextChar();break}else if(X[u]===1){u=this.nextChar();continue}else{if(T){if(r=R(u),r===-1){this._hexStringWarn(u),u=this.nextChar();continue}}else{if(s=R(u),s===-1){this._hexStringWarn(u),u=this.nextChar();continue}c.push(String.fromCharCode(r<<4|s))}T=!T,u=this.nextChar()}return c.join("")}getObj(){let c=!1,u=this.currentChar;for(;;){if(u<0)return P.EOF;if(c)(u===10||u===13)&&(c=!1);else if(u===37)c=!0;else if(X[u]!==1)break;u=this.nextChar()}switch(u|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),P.Cmd.get("[");case 93:return this.nextChar(),P.Cmd.get("]");case 60:return u=this.nextChar(),u===60?(this.nextChar(),P.Cmd.get("<<")):this.getHexString();case 62:return u=this.nextChar(),u===62?(this.nextChar(),P.Cmd.get(">>")):P.Cmd.get(">");case 123:return this.nextChar(),P.Cmd.get("{");case 125:return this.nextChar(),P.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError(`Illegal character: ${u}`)}let T=String.fromCharCode(u);if(u<32||u>127){const o=this.peekChar();if(o>=32&&o<=127)return this.nextChar(),P.Cmd.get(T)}const r=this.knownCommands;let s=(r==null?void 0:r[T])!==void 0;for(;(u=this.nextChar())>=0&&!X[u];){const o=T+String.fromCharCode(u);if(s&&r[o]===void 0)break;if(T.length===128)throw new n.FormatError(`Command token too long: ${T.length}`);T=o,s=(r==null?void 0:r[T])!==void 0}return T==="true"?!0:T==="false"?!1:T==="null"?null:(T==="BI"&&(this.beginInlineImagePos=this.stream.pos),P.Cmd.get(T))}skipToNextLine(){let c=this.currentChar;for(;c>=0;){if(c===13){c=this.nextChar(),c===10&&this.nextChar();break}else if(c===10){this.nextChar();break}c=this.nextChar()}}}p.Lexer=q;class b{static create(c){function u(H,F,M=!1){const k=H.get(F);if(Number.isInteger(k)&&(M?k>=0:k>0))return k;throw new Error(`The "${F}
24" parameter in the linearization dictionary is invalid.`)}function T(H){const F=H.get("H");let M;if(Array.isArray(F)&&((M=F.length)===2||M===4)){for(let k=0;k<M;k++){const x=F[k];if(!(Number.isInteger(x)&&x>0))throw new Error(`Hint (${k}) in the linearization dictionary is invalid.`)}return F}throw new Error("Hint array in the linearization dictionary is invalid.")}const r=new N({lexer:new q(c),xref:null}),s=r.getObj(),o=r.getObj(),m=r.getObj(),h=r.getObj();let A,L;if(Number.isInteger(s)&&Number.isInteger(o)&&(0,P.isCmd)(m,"obj")&&h instanceof P.Dict&&typeof(A=h.get("Linearized"))=="number"&&A>0){if((L=u(h,"L"))!==c.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:L,hints:T(h),objectNumberFirst:u(h,"O"),endFirst:u(h,"E"),numPages:u(h,"N"),mainXRefEntriesOffset:u(h,"T"),pageFirst:h.has("P")?u(h,"P",!0):0}}}p.Linearization=b},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Ascii85Stream=void 0;var n=re(18),P=re(3);class j extends n.DecodeStream{constructor(t,l){l&&(l*=.8),super(l),this.str=t,this.dict=t.dict,this.input=new Uint8Array(5)}readBlock(){const J=this.str;let B=J.getByte();for(;(0,P.isWhiteSpace)(B);)B=J.getByte();if(B===-1||B===126){this.eof=!0;return}const I=this.bufferLength;let f,g;if(B===122){for(f=this.ensureBuffer(I+4),g=0;g<4;++g)f[I+g]=0;this.bufferLength+=4}else{const a=this.input;for(a[0]=B,g=1;g<5;++g){for(B=J.getByte();(0,P.isWhiteSpace)(B);)B=J.getByte();if(a[g]=B,B===-1||B===126)break}if(f=this.ensureBuffer(I+g-1),this.bufferLength+=g-1,g<5){for(;g<5;++g)a[g]=117;this.eof=!0}let _=0;for(g=0;g<5;++g)_=_*85+(a[g]-33);for(g=3;g>=0;--g)f[I+g]=_&255,_>>=8}}}p.Ascii85Stream=j},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StreamsSequenceStream=p.DecodeStream=void 0;var n=re(5),P=re(8);const j=new Uint8Array(0);class e extends n.BaseStream{constructor(V){if(super(),this._rawMinBufferLength=V||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=j,this.minBufferLength=512,V)for(;this.minBufferLength<V;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(V){const J=this.buffer;if(V<=J.byteLength)return J;let B=this.minBufferLength;for(;B<V;)B*=2;const I=new Uint8Array(B);return I.set(J),this.buffer=I}getByte(){const V=this.pos;for(;this.bufferLength<=V;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(V){const J=this.pos;let B;if(V){for(this.ensureBuffer(J+V),B=J+V;!this.eof&&this.bufferLength<B;)this.readBlock();const I=this.bufferLength;B>I&&(B=I)}else{for(;!this.eof;)this.readBlock();B=this.bufferLength}return this.pos=B,this.buffer.subarray(J,B)}reset(){this.pos=0}makeSubStream(V,J,B=null){if(J===void 0)for(;!this.eof;)this.readBlock();else{const I=V+J;for(;this.bufferLength<=I&&!this.eof;)this.readBlock()}return new P.Stream(this.buffer,V,J,B)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}p.DecodeStream=e;class t extends e{constructor(V,J=null){let B=0;for(const I of V)B+=I instanceof e?I._rawMinBufferLength:I.length;super(B),this.streams=V,this._onError=J}readBlock(){var a;const V=this.streams;if(V.length===0){this.eof=!0;return}const J=V.shift();let B;try{B=J.getBytes()}catch(_){if(this._onError){this._onError(_,(a=J.dict)==null?void 0:a.objId);return}throw _}const I=this.bufferLength,f=I+B.length;this.ensureBuffer(f).set(B,I),this.bufferLength=f}getBaseStreams(){const V=[];for(const J of this.streams){const B=J.getBaseStreams();B&&V.push(...B)}return V.length>0?V:null}}p.StreamsSequenceStream=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.AsciiHexStream=void 0;var n=re(18);class P extends n.DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){const t=this.str.getBytes(8e3);if(!t.length){this.eof=!0;return}const l=t.length+1>>1,V=this.ensureBuffer(this.bufferLength+l);let J=this.bufferLength,B=this.firstDigit;for(const I of t){let f;if(I>=48&&I<=57)f=I&15;else if(I>=65&&I<=70||I>=97&&I<=102)f=(I&15)+9;else if(I===62){this.eof=!0;break}else continue;B<0?B=f:(V[J++]=B<<4|f,B=-1)}B>=0&&this.eof&&(V[J++]=B<<4,B=-1),this.firstDigit=B,this.bufferLength=J}}
24p.AsciiHexStream=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CCITTFaxStream=void 0;var n=re(21),P=re(18),j=re(4);class e extends P.DecodeStream{constructor(l,V,J){super(V),this.str=l,this.dict=l.dict,J instanceof j.Dict||(J=j.Dict.empty);const B={next(){return l.getByte()}};this.ccittFaxDecoder=new n.CCITTFaxDecoder(B,{K:J.get("K"),EndOfLine:J.get("EndOfLine"),EncodedByteAlign:J.get("EncodedByteAlign"),Columns:J.get("Columns"),Rows:J.get("Rows"),EndOfBlock:J.get("EndOfBlock"),BlackIs1:J.get("BlackIs1")})}readBlock(){for(;!this.eof;){const l=this.ccittFaxDecoder.readNextChar();if(l===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=l}}}p.CCITTFaxStream=e},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CCITTFaxDecoder=void 0;var n=re(2);const P=-2,j=-1,e=0,t=1,l=2,V=3,J=4,B=5,I=6,f=7,g=8,a=[[-1,-1],[-1,-1],[7,g],[7,f],[6,I],[6,I],[6,B],[6,B],[4,e],[4,e],[4,e],[4,e],[4,e],[4,e],[4,e],[4,e],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,J],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[3,V],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l]],_=[[-1,-1],[12,P],[-1,-1],[-1,-1],[-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]],y=[[-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]],O=[[-1,-1],[-1,-1],[12,P],[12,P],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],N=[[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]],X=[[-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]];class R{constructor(b,E={}){if(!b||typeof b.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=b,this.eof=!1,this.encoding=E.K||0,this.eoline=E.EndOfLine||!1,this.byteAlign=E.EncodedByteAlign||!1,this.columns=E.Columns||1728,this.rows=E.Rows||0,this.eoblock=E.EndOfBlock??!0,this.black=E.BlackIs1||!1,this.codingLine=new
24Uint32Array(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;let c;for(;(c=this._lookBits(12))===0;)this._eatBits(1);c===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const b=this.refLine,E=this.codingLine,c=this.columns;let u,T,r,s;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let m,h,A;if(this.nextLine2D){for(s=0;E[s]<c;++s)b[s]=E[s];for(b[s++]=c,b[s]=c,E[0]=0,this.codingPos=0,u=0,T=0;E[this.codingPos]<c;)switch(m=this._getTwoDimCode(),m){case e:this._addPixels(b[u+1],T),b[u+1]<c&&(u+=2);break;case t:if(m=h=0,T){do m+=A=this._getBlackCode();while(A>=64);do h+=A=this._getWhiteCode();while(A>=64)}else{do m+=A=this._getWhiteCode();while(A>=64);do h+=A=this._getBlackCode();while(A>=64)}for(this._addPixels(E[this.codingPos]+m,T),E[this.codingPos]<c&&this._addPixels(E[this.codingPos]+h,T^1);b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case f:if(this._addPixels(b[u]+3,T),T^=1,E[this.codingPos]<c)for(++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case B:if(this._addPixels(b[u]+2,T),T^=1,E[this.codingPos]<c)for(++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case V:if(this._addPixels(b[u]+1,T),T^=1,E[this.codingPos]<c)for(++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case l:if(this._addPixels(b[u],T),T^=1,E[this.codingPos]<c)for(++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case g:if(this._addPixelsNeg(b[u]-3,T),T^=1,E[this.codingPos]<c)for(u>0?--u:++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case I:if(this._addPixelsNeg(b[u]-2,T),T^=1,E[this.codingPos]<c)for(u>0?--u:++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case J:if(this._addPixelsNeg(b[u]-1,T),T^=1,E[this.codingPos]<c)for(u>0?--u:++u;b[u]<=E[this.codingPos]&&b[u]<c;)u+=2;break;case j:this._addPixels(c,0),this.eof=!0;break;default:(0,n.info)("bad 2d code"),this._addPixels(c,0),this.err=!0}}else for(E[0]=0,this.codingPos=0,T=0;E[this.codingPos]<c;){if(m=0,T)do m+=A=this._getBlackCode();while(A>=64);else do m+=A=this._getWhiteCode();while(A>=64);this._addPixels(E[this.codingPos]+m,T),T^=1}let L=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(m=this._lookBits(12),this.eoline)for(;m!==j&&m!==1;)this._eatBits(1),m=this._lookBits(12);else for(;m===0;)this._eatBits(1),m=this._lookBits(12);m===1?(this._eatBits(12),L=!0):m===j&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&L&&this.byteAlign){if(m=this._lookBits(12),m===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(s=0;s<4;++s)m=this._lookBits(12),m!==1&&(0,n.info)("bad rtc code: "+m),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(m=this._lookBits(13),m===j)return this.eof=!0,-1;if(m>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(m&1))}this.outputBits=E[0]>0?E[this.codingPos=0]:E[this.codingPos=1],this.row++}let o;if(this.outputBits>=8)o=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&E[this.codingPos]<c&&(this.codingPos++,this.outputBits=E[this.codingPos]-E[this.codingPos-1]);else{r=8,o=0;do{if(typeof this.outputBits!="number")throw new n.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>r?(o<<=r,this.codingPos&1||(o|=255>>8-r),this.outputBits-=r,r=0):(o<<=this.outputBits,this.codingPos&1||(o|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,E[this.codingPos]<c?(this.codingPos++,this.outputBits=E[this.codingPos]-E[this.codingPos-1]):r>0&&(o<<=r,r=0))}while(r)}return this.black&&(o^=255),o}_addPixels(b,E){const c=this.codingLine;let u=this.codingPos;b>c[u]&&(b>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,b=this.columns),u&1^E&&++u,c[u]=b),this.codingPos=u}_addPixelsNeg(b,E){const c=this.codingLine;let u=this.codingPos;if(b>c[u])b>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,b=this.columns),u&1^E&&++u,c[u]=b;else if(b<c[u]){for(b<0&&((0,n.info)("invalid code"),this.err=!0,b=0);u>0&&b<c[u-1];)--u;c[u]=b}this.codingPos=u}_findTableCode(b,E,c,u){const T=u||0;for(let r=b;r<=E;++r){let s=this._lookBits(r);if(s===j)return[!0,1,!1];if(r<E&&(s<<=E-r),!T||s>=T){const o=c[s-T];if(o[0]===r)return this._eatBits(r),[!0,o[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let b=0,E;if(this.eoblock){if(b=this._lookBits(7),E=a[b],(E==null?void 0:E[0])>0)return this._eatBits(E[0]),E[1]}else{const c=this._findTableCode(1,7,a);if(c[0]&&c[2])return c[1]}return(0,n.info)("Bad two dim code"),j}_getWhiteCode(){let b=0,E;if(this.eoblock){if(b=this._lookBits(12),b===j)return 1;if(E=b>>5?y[b>>3]:_[b],E[0]>0)return this._eatBits(E[0]),E[1]}else{let c=this._findTableCode(1,9,y);if(c[0]||(c=this._findTableCode(11,12,_),c[0]))return c[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let b,E;if(this.eoblock){if(b=this._lookBits(13),b===j)return 1;if(b>>7?!(b>>9)&&b>>7?E=N[(b>>1)-64]:E=X[b>>7]:E=O[b],E[0]>0)return this._eatBits(E[0]),E[1]}
24else{let c=this._findTableCode(2,6,X);if(c[0]||(c=this._findTableCode(7,12,N,64),c[0])||(c=this._findTableCode(10,13,O),c[0]))return c[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}_lookBits(b){let E;for(;this.inputBits<b;){if((E=this.source.next())===-1)return this.inputBits===0?j:this.inputBuf<<b-this.inputBits&65535>>16-b;this.inputBuf=this.inputBuf<<8|E,this.inputBits+=8}return this.inputBuf>>this.inputBits-b&65535>>16-b}_eatBits(b){(this.inputBits-=b)<0&&(this.inputBits=0)}}p.CCITTFaxDecoder=R},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.FlateStream=void 0;var n=re(18),P=re(2);const j=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=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]),t=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]),l=[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],
24V=[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];class J extends n.DecodeStream{constructor(I,f){super(f),this.str=I,this.dict=I.dict;const g=I.getByte(),a=I.getByte();if(g===-1||a===-1)throw new P.FormatError(`Invalid header in flate stream: ${g}, ${a}`);if((g&15)!==8)throw new P.FormatError(`Unknown compression method in flate stream: ${g}, ${a}`);if(((g<<8)+a)%31!==0)throw new P.FormatError(`Bad FCHECK in flate stream: ${g}, ${a}`);if(a&32)throw new P.FormatError(`FDICT bit set in flate stream: ${g}, ${a}`);this.codeSize=0,this.codeBuf=0}getBits(I){const f=this.str;let g=this.codeSize,a=this.codeBuf,_;for(;g<I;){if((_=f.getByte())===-1)throw new P.FormatError("Bad encoding in flate stream");a|=_<<g,g+=8}return _=a&(1<<I)-1,this.codeBuf=a>>I,this.codeSize=g-=I,_}getCode(I){const f=this.str,g=I[0],a=I[1];let _=this.codeSize,y=this.codeBuf,O;for(;_<a&&(O=f.getByte())!==-1;)y|=O<<_,_+=8;const N=g[y&(1<<a)-1],X=N>>16,R=N&65535;if(X<1||_<X)throw new P.FormatError("Bad encoding in flate stream");return this.codeBuf=y>>X,this.codeSize=_-X,R}generateHuffmanTable(I){const f=I.length;let g=0,a;for(a=0;a<f;++a)I[a]>g&&(g=I[a]);const _=1<<g,y=new Int32Array(_);for(let O=1,N=0,X=2;O<=g;++O,N<<=1,X<<=1)for(let R=0;R<f;++R)if(I[R]===O){let q=0,b=N;for(a=0;a<O;++a)q=q<<1|b&1,b>>=1;for(a=q;a<_;a+=X)y[a]=O<<16|R;++N}return[y,g]}readBlock(){let I,f;const g=this.str;let a=this.getBits(3);if(a&1&&(this.eof=!0),a>>=1,a===0){let X;if((X=g.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");let R=X;if((X=g.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");if(R|=X<<8,(X=g.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");let q=X;if((X=g.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");if(q|=X<<8,q!==(~R&65535)&&(R!==0||q!==0))throw new P.FormatError("Bad uncompressed block length in flate stream");
24this.codeBuf=0,this.codeSize=0;const b=this.bufferLength,E=b+R;if(I=this.ensureBuffer(E),this.bufferLength=E,R===0)g.peekByte()===-1&&(this.eof=!0);else{const c=g.getBytes(R);I.set(c,b),c.length<R&&(this.eof=!0)}return}let _,y;if(a===1)_=l,y=V;else if(a===2){const X=this.getBits(5)+257,R=this.getBits(5)+1,q=this.getBits(4)+4,b=new Uint8Array(j.length);let E;for(E=0;E<q;++E)b[j[E]]=this.getBits(3);const c=this.generateHuffmanTable(b);f=0,E=0;const u=X+R,T=new Uint8Array(u);let r,s,o;for(;E<u;){const m=this.getCode(c);if(m===16)r=2,s=3,o=f;else if(m===17)r=3,s=3,o=f=0;else if(m===18)r=7,s=11,o=f=0;else{T[E++]=f=m;continue}let h=this.getBits(r)+s;for(;h-- >0;)T[E++]=o}_=this.generateHuffmanTable(T.subarray(0,X)),y=this.generateHuffmanTable(T.subarray(X,u))}else throw new P.FormatError("Unknown block type in flate stream");I=this.buffer;let O=I?I.length:0,N=this.bufferLength;for(;;){let X=this.getCode(_);if(X<256){N+1>=O&&(I=this.ensureBuffer(N+1),O=I.length),I[N++]=X;continue}if(X===256){this.bufferLength=N;return}X-=257,X=e[X];let R=X>>16;R>0&&(R=this.getBits(R)),f=(X&65535)+R,X=this.getCode(y),X=t[X],R=X>>16,R>0&&(R=this.getBits(R));const q=(X&65535)+R;N+f>=O&&(I=this.ensureBuffer(N+f),O=I.length);for(let b=0;b<f;++b,++N)I[N]=I[N-q]}}}p.FlateStream=J},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Jbig2Stream=void 0;var n=re(5),P=re(18),j=re(4),e=re(24),t=re(2);class l extends P.DecodeStream{constructor(J,B,I){super(B),this.stream=J,this.dict=J.dict,this.maybeLength=B,this.params=I}get bytes(){return(0,t.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(J){}readBlock(){if(this.eof)return;const J=new e.Jbig2Image,B=[];if(this.params instanceof j.Dict){const g=this.params.get("JBIG2Globals");if(g instanceof n.BaseStream){const a=g.getBytes();B.push({data:a,start:0,end:a.length})}}B.push({data:this.bytes,start:0,end:this.bytes.length});const I=J.parseChunks(B),f=I.length;for(let g=0;g<f;g++)I[g]^=255;this.buffer=I,this.bufferLength=f,this.eof=!0}}p.Jbig2Stream=l},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Jbig2Image=void 0;var n=re(2),P=re(3),j=re(25),e=re(21);class t extends n.BaseException{constructor(v){super(`JBIG2 error: ${v}`,"Jbig2Error")}}class l{getContexts(v){return v in this?this[v]:this[v]=new Int8Array(65536)}}class V{constructor(v,$,d){this.data=v,this.start=$,this.end=d}get decoder(){const v=new j.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",v)}get contextCache(){const v=new l;return(0,n.shadow)(this,"contextCache",v)}}const J=2**31-1,B=-(2**31);function I(K,v,$){const d=K.getContexts(v);let w=1;function S(Q){let D=0;for(let Y=0;Y<Q;Y++){const ie=$.readBit(d,w);w=w<256?w<<1|ie:(w<<1|ie)&511|256,D=D<<1|ie}return D>>>0}const z=S(1),W=S(1)?S(1)?S(1)?S(1)?S(1)?S(32)+4436:S(12)+340:S(8)+84:S(6)+20:S(4)+4:S(2);let ne;return z===0?ne=W:W>0&&(ne=-W),ne>=B&&ne<=J?ne:null}function f(K,v,$){const d=K.getContexts("IAID");let w=1;for(let S=0;S<$;S++){const z=v.readBit(d,w);w=w<<1|z}return $<31?w&(1<<$)-1:w&2147483647}const g=["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"],a=[[{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}]],_=[{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}]}],y=[39717,1941,229,405];function O(K,v,$){const d=$.decoder,w=$.contextCache.getContexts("GB"),S=[];let z,W,ne,Q,D,Y,ie;
24const ee=31735;for(W=0;W<v;W++)for(D=S[W]=new Uint8Array(K),Y=W<1?D:S[W-1],ie=W<2?D:S[W-2],z=ie[0]<<13|ie[1]<<12|ie[2]<<11|Y[0]<<7|Y[1]<<6|Y[2]<<5|Y[3]<<4,ne=0;ne<K;ne++)D[ne]=Q=d.readBit(w,z),z=(z&ee)<<1|(ne+3<K?ie[ne+3]<<11:0)|(ne+4<K?Y[ne+4]<<4:0)|Q;return S}function N(K,v,$,d,w,S,z,W){if(K){const tt=new x(W.data,W.start,W.end);return oe(tt,v,$,!1)}if(d===0&&!S&&!w&&z.length===4&&z[0].x===3&&z[0].y===-1&&z[1].x===-3&&z[1].y===-1&&z[2].x===2&&z[2].y===-2&&z[3].x===-2&&z[3].y===-2)return O(v,$,W);const ne=a[d].concat(z);ne.sort(function(tt,Ne){return tt.y-Ne.y||tt.x-Ne.x});const Q=ne.length,D=new Int8Array(Q),Y=new Int8Array(Q),ie=[];let ee=0,se=0,ce=0,le=0,de,he;for(he=0;he<Q;he++)D[he]=ne[he].x,Y[he]=ne[he].y,se=Math.min(se,ne[he].x),ce=Math.max(ce,ne[he].x),le=Math.min(le,ne[he].y),he<Q-1&&ne[he].y===ne[he+1].y&&ne[he].x===ne[he+1].x-1?ee|=1<<Q-1-he:ie.push(he);const me=ie.length,Se=new Int8Array(me),pe=new Int8Array(me),ge=new Uint16Array(me);for(de=0;de<me;de++)he=ie[de],Se[de]=ne[he].x,pe[de]=ne[he].y,ge[de]=1<<Q-1-he;const Ae=-se,Me=-le,xe=v-ce,ue=y[d];let fe=new Uint8Array(v);const ke=[],ye=W.decoder,$e=W.contextCache.getContexts("GB");let Xe=0,Ze,Fe,nt,We=0,Ee,Ve;for(let tt=0;tt<$;tt++){if(w){const Ne=ye.readBit($e,ue);if(Xe^=Ne,Xe){ke.push(fe);continue}}for(fe=new Uint8Array(fe),ke.push(fe),Ze=0;Ze<v;Ze++){if(Ze>=Ae&&Ze<xe&&tt>=Me)for(We=We<<1&ee,he=0;he<me;he++)Fe=tt+pe[he],nt=Ze+Se[he],Ee=ke[Fe][nt],Ee&&(Ee=ge[he],We|=Ee);else for(We=0,Ve=Q-1,he=0;he<Q;he++,Ve--)nt=Ze+D[he],nt>=0&&nt<v&&(Fe=tt+Y[he],Fe>=0&&(Ee=ke[Fe][nt],Ee&&(We|=Ee<<Ve)));const Ne=ye.readBit($e,We);fe[Ze]=Ne}}return ke}function X(K,v,$,d,w,S,z,W,ne){let Q=_[$].coding;$===0&&(Q=Q.concat([W[0]]));const D=Q.length,Y=new Int32Array(D),ie=new Int32Array(D);let ee;for(ee=0;ee<D;ee++)Y[ee]=Q[ee].x,ie[ee]=Q[ee].y;let se=_[$].reference;$===0&&(se=se.concat([W[1]]));const ce=se.length,le=new Int32Array(ce),de=new Int32Array(ce);for(ee=0;ee<ce;ee++)le[ee]=se[ee].x,de[ee]=se[ee].y;const he=d[0].length,me=d.length,Se=[],pe=ne.decoder,ge=ne.contextCache.getContexts("GR");for(let Ae=0;Ae<v;Ae++){const Me=new Uint8Array(K);Se.push(Me);for(let xe=0;xe<K;xe++){let ue,fe,ke=0;for(ee=0;ee<D;ee++)ue=Ae+ie[ee],fe=xe+Y[ee],ue<0||fe<0||fe>=K?ke<<=1:ke=ke<<1|Se[ue][fe];for(ee=0;ee<ce;ee++)ue=Ae+de[ee]-S,fe=xe+le[ee]-w,ue<0||ue>=me||fe<0||fe>=he?ke<<=1:ke=ke<<1|d[ue][fe];const ye=pe.readBit(ge,ke);Me[xe]=ye}}return Se}function R(K,v,$,d,w,S,z,W,ne,Q,D,Y){if(K&&v)throw new t("symbol refinement with Huffman is not supported");const ie=[];let ee=0,se=(0,P.log2)($.length+d);const ce=D.decoder,le=D.contextCache;let de,he;for(K&&(de=k(1),he=[],se=Math.max(se,1));ie.length<d;){const xe=K?S.tableDeltaHeight.decode(Y):I(le,"IADH",ce);ee+=xe;let ue=0,fe=0;const ke=K?he.length:0;for(;;){const ye=K?S.tableDeltaWidth.decode(Y):I(le,"IADW",ce);if(ye===null)break;ue+=ye,fe+=ue;let $e;if(v){const Xe=I(le,"IAAI",ce);if(Xe>1)$e=q(K,v,ue,ee,0,Xe,1,$.concat(ie),se,0,0,1,0,S,ne,Q,D,0,Y);else{const Ze=f(le,ce,se),Fe=I(le,"IARDX",ce),nt=I(le,"IARDY",ce),We=Ze<$.length?$[Ze]:ie[Ze-$.length];$e=X(ue,ee,ne,We,Fe,nt,!1,Q,D)}ie.push($e)}else K?he.push(ue):($e=N(!1,ue,ee,z,!1,null,W,D),ie.push($e))}if(K&&!v){const ye=S.tableBitmapSize.decode(Y);Y.byteAlign();let $e;if(ye===0)$e=ae(Y,fe,ee);else{const Ze=Y.end,Fe=Y.position+ye;Y.end=Fe,$e=oe(Y,fe,ee,!1),Y.end=Ze,Y.position=Fe}const Xe=he.length;if(ke===Xe-1)ie.push($e);else{let Ze,Fe,nt=0,We,Ee,Ve;for(Ze=ke;Ze<Xe;Ze++){for(Ee=he[Ze],We=nt+Ee,Ve=[],Fe=0;Fe<ee;Fe++)Ve.push($e[Fe].subarray(nt,We));ie.push(Ve),nt=We}}}}const me=[],Se=[];let pe=!1,ge,Ae;const Me=$.length+d;for(;Se.length<Me;){let xe=K?de.decode(Y):I(le,"IAEX",ce);for(;xe--;)Se.push(pe);pe=!pe}for(ge=0,Ae=$.length;ge<Ae;ge++)Se[ge]&&me.push($[ge]);for(let xe=0;xe<d;ge++,xe++)Se[ge]&&me.push(ie[xe]);return me}function q(K,v,$,d,w,S,z,W,ne,Q,D,Y,ie,ee,se,ce,le,de,he){if(K&&v)throw new t("refinement with Huffman is not supported");const me=[];let Se,pe;for(Se=0;Se<d;Se++){if(pe=new Uint8Array($),w)for(let ue=0;ue<$;ue++)pe[ue]=w;me.push(pe)}const ge=le.decoder,Ae=le.contextCache;let Me=K?-ee.tableDeltaT.decode(he):-I(Ae,"IADT",ge),xe=0;for(Se=0;Se<S;){const ue=K?ee.tableDeltaT.decode(he):I(Ae,"IADT",ge);Me+=ue;const fe=K?ee.tableFirstS.decode(he):I(Ae,"IAFS",ge);xe+=fe;let ke=xe;do{let ye=0;z>1&&(ye=K?he.readBits(de):I(Ae,"IAIT",ge));const $e=z*Me+ye,Xe=K?ee.symbolIDTable.decode(he):f(Ae,ge,ne),Ze=v&&(K?he.readBit():I(Ae,"IARI",ge));let Fe=W[Xe],nt=Fe[0].length,We=Fe.length;if(Ze){const pt=I(Ae,"IARDW",ge),Ot=I(Ae,"IARDH",ge),ze=I(Ae,"IARDX",ge),Ge=I(Ae,"IARDY",ge);nt+=pt,We+=Ot,Fe=X(nt,We,se,Fe,(pt>>1)+ze,(Ot>>1)+Ge,!1,ce,le)}const Ee=$e-(Y&1?0:We-1),Ve=ke-(Y&2?nt-1:0);let tt,Ne,wt;if(Q){for(tt=0;tt<We;tt++){if(pe=me[Ve+tt],!pe)continue;wt=Fe[tt];const pt=Math.min($-Ee,nt);switch(ie){case 0:for(Ne=0;Ne<pt;
24Ne++)pe[Ee+Ne]|=wt[Ne];break;case 2:for(Ne=0;Ne<pt;Ne++)pe[Ee+Ne]^=wt[Ne];break;default:throw new t(`operator ${ie} is not supported`)}}ke+=We-1}else{for(Ne=0;Ne<We;Ne++)if(pe=me[Ee+Ne],!!pe)switch(wt=Fe[Ne],ie){case 0:for(tt=0;tt<nt;tt++)pe[Ve+tt]|=wt[tt];break;case 2:for(tt=0;tt<nt;tt++)pe[Ve+tt]^=wt[tt];break;default:throw new t(`operator ${ie} is not supported`)}ke+=nt-1}Se++;const dt=K?ee.tableDeltaS.decode(he):I(Ae,"IADS",ge);if(dt===null)break;ke+=dt+D}while(!0)}return me}function b(K,v,$,d,w,S){const z=[];K||(z.push({x:-v,y:0}),w===0&&z.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const W=(d+1)*v,ne=N(K,W,$,w,!1,null,z,S),Q=[];for(let D=0;D<=d;D++){const Y=[],ie=v*D,ee=ie+v;for(let se=0;se<$;se++)Y.push(ne[se].subarray(ie,ee));Q.push(Y)}return Q}function E(K,v,$,d,w,S,z,W,ne,Q,D,Y,ie,ee,se){if(z)throw new t("skip is not supported");if(W!==0)throw new t(`operator "${W}" is not supported in halftone region`);const le=[];let de,he,me;for(de=0;de<w;de++){if(me=new Uint8Array(d),S)for(he=0;he<d;he++)me[he]=S;le.push(me)}const Se=v.length,pe=v[0],ge=pe[0].length,Ae=pe.length,Me=(0,P.log2)(Se),xe=[];K||(xe.push({x:$<=1?3:2,y:-1}),$===0&&xe.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const ue=[];let fe,ke;for(K&&(fe=new x(se.data,se.start,se.end)),de=Me-1;de>=0;de--)K?ke=oe(fe,ne,Q,!0):ke=N(!1,ne,Q,$,!1,null,xe,se),ue[de]=ke;let ye,$e,Xe,Ze,Fe,nt,We,Ee,Ve;for(ye=0;ye<Q;ye++)for($e=0;$e<ne;$e++){for(Xe=0,Ze=0,he=Me-1;he>=0;he--)Xe^=ue[he][ye][$e],Ze|=Xe<<he;if(Fe=v[Ze],nt=D+ye*ee+$e*ie>>8,We=Y+ye*ie-$e*ee>>8,nt>=0&&nt+ge<=d&&We>=0&&We+Ae<=w)for(de=0;de<Ae;de++)for(Ve=le[We+de],Ee=Fe[de],he=0;he<ge;he++)Ve[nt+he]|=Ee[he];else{let tt,Ne;for(de=0;de<Ae;de++)if(Ne=We+de,!(Ne<0||Ne>=w))for(Ve=le[Ne],Ee=Fe[de],he=0;he<ge;he++)tt=nt+he,tt>=0&&tt<d&&(Ve[tt]|=Ee[he])}}return le}function c(K,v){const $={};$.number=(0,P.readUint32)(K,v);const d=K[v+4],w=d&63;if(!g[w])throw new t("invalid segment type: "+w);$.type=w,$.typeName=g[w],$.deferredNonRetain=!!(d&128);const S=!!(d&64),z=K[v+5];let W=z>>5&7;const ne=[z&31];let Q=v+6;if(z===7){W=(0,P.readUint32)(K,Q-1)&536870911,Q+=3;let se=W+7>>3;for(ne[0]=K[Q++];--se>0;)ne.push(K[Q++])}else if(z===5||z===6)throw new t("invalid referred-to flags");$.retainBits=ne;let D=4;$.number<=256?D=1:$.number<=65536&&(D=2);const Y=[];let ie,ee;for(ie=0;ie<W;ie++){let se;D===1?se=K[Q]:D===2?se=(0,P.readUint16)(K,Q):se=(0,P.readUint32)(K,Q),Y.push(se),Q+=D}if($.referredTo=Y,S?($.pageAssociation=(0,P.readUint32)(K,Q),Q+=4):$.pageAssociation=K[Q++],$.length=(0,P.readUint32)(K,Q),Q+=4,$.length===4294967295)if(w===38){const se=T(K,Q),le=!!(K[Q+r]&1),de=6,he=new Uint8Array(de);for(le||(he[0]=255,he[1]=172),he[2]=se.height>>>24&255,he[3]=se.height>>16&255,he[4]=se.height>>8&255,he[5]=se.height&255,ie=Q,ee=K.length;ie<ee;ie++){let me=0;for(;me<de&&he[me]===K[ie+me];)me++;if(me===de){$.length=ie+de;break}}if($.length===4294967295)throw new t("segment end was not found")}else throw new t("invalid unknown segment length");return $.headerEnd=Q,$}function u(K,v,$,d){const w=[];let S=$;for(;S<d;){const z=c(v,S);S=z.headerEnd;const W={header:z,data:v};if(K.randomAccess||(W.start=S,S+=z.length,W.end=S),w.push(W),z.type===51)break}if(K.randomAccess)for(let z=0,W=w.length;z<W;z++)w[z].start=S,S+=w[z].header.length,w[z].end=S;return w}function T(K,v){return{width:(0,P.readUint32)(K,v),height:(0,P.readUint32)(K,v+4),x:(0,P.readUint32)(K,v+8),y:(0,P.readUint32)(K,v+12),combinationOperator:K[v+16]&7}}const r=17;function s(K,v){const $=K.header,d=K.data,w=K.end;let S=K.start,z,W,ne,Q;switch($.type){case 0:const Y={},ie=(0,P.readUint16)(d,S);if(Y.huffman=!!(ie&1),Y.refinement=!!(ie&2),Y.huffmanDHSelector=ie>>2&3,Y.huffmanDWSelector=ie>>4&3,Y.bitmapSizeSelector=ie>>6&1,Y.aggregationInstancesSelector=ie>>7&1,Y.bitmapCodingContextUsed=!!(ie&256),Y.bitmapCodingContextRetained=!!(ie&512),Y.template=ie>>10&3,Y.refinementTemplate=ie>>12&1,S+=2,!Y.huffman){for(Q=Y.template===0?4:1,W=[],ne=0;ne<Q;ne++)W.push({x:(0,P.readInt8)(d,S),y:(0,P.readInt8)(d,S+1)}),S+=2;Y.at=W}if(Y.refinement&&!Y.refinementTemplate){for(W=[],ne=0;ne<2;ne++)W.push({x:(0,P.readInt8)(d,S),y:(0,P.readInt8)(d,S+1)}),S+=2;Y.refinementAt=W}Y.numberOfExportedSymbols=(0,P.readUint32)(d,S),S+=4,Y.numberOfNewSymbols=(0,P.readUint32)(d,S),S+=4,z=[Y,$.number,$.referredTo,d,S,w];break;case 6:case 7:const ee={};ee.info=T(d,S),S+=r;const se=(0,P.readUint16)(d,S);if(S+=2,ee.huffman=!!(se&1),ee.refinement=!!(se&2),ee.logStripSize=se>>2&3,ee.stripSize=1<<ee.logStripSize,ee.referenceCorner=se>>4&3,ee.transposed=!!(se&64),ee.combinationOperator=se>>7&3,ee.defaultPixelValue=se>>9&1,ee.dsOffset=se<<17>>27,ee.refinementTemplate=se>>15&1,ee.huffman){const Ae=(0,P.readUint16)(d,S);S+=2,ee.huffmanFS=Ae&3,ee.huffmanDS=Ae>>2&3,ee.huffmanDT=Ae>>4&3,ee.huffmanRefinementDW=Ae>>6&3,ee.huffmanRefinementDH=Ae>>8&3,ee.huffmanRefinementDX=Ae>>10&3,ee.huffmanRefinementDY=Ae>>12&3,ee.huffmanRefinementSizeSelector=!!(Ae&16384)}if(ee.refinement&&!ee.refinementTemplate){for(W=[],ne=0;ne<2;ne++)W.push({x:(0,P.readInt8)(d,S),y:(0,P.readInt8)(d,S+1)}),S+=2;ee.refinementAt=W}ee.numberOfSymbolInstances=(0,P.readUint32)(d,S),S+=4,z=[ee,$.referredTo,d,S,w];break;case 16:const ce={},le=d[S++];ce.mmr=!!(le&1),ce.template=le>>1&3,ce.patternWidth=d[S++],ce.patternHeight=d[S++],ce.maxPatternIndex=(0,P.readUint32)(d,S),S+=4,z=[ce,$.number,d,S,w];break;case 22:case 23:const de={};de.info=T(d,S),S+=r;const he=d[S++];de.mmr=!!(he&1),de.template=he>>
241&3,de.enableSkip=!!(he&8),de.combinationOperator=he>>4&7,de.defaultPixelValue=he>>7&1,de.gridWidth=(0,P.readUint32)(d,S),S+=4,de.gridHeight=(0,P.readUint32)(d,S),S+=4,de.gridOffsetX=(0,P.readUint32)(d,S)&4294967295,S+=4,de.gridOffsetY=(0,P.readUint32)(d,S)&4294967295,S+=4,de.gridVectorX=(0,P.readUint16)(d,S),S+=2,de.gridVectorY=(0,P.readUint16)(d,S),S+=2,z=[de,$.referredTo,d,S,w];break;case 38:case 39:const me={};me.info=T(d,S),S+=r;const Se=d[S++];if(me.mmr=!!(Se&1),me.template=Se>>1&3,me.prediction=!!(Se&8),!me.mmr){for(Q=me.template===0?4:1,W=[],ne=0;ne<Q;ne++)W.push({x:(0,P.readInt8)(d,S),y:(0,P.readInt8)(d,S+1)}),S+=2;me.at=W}z=[me,d,S,w];break;case 48:const pe={width:(0,P.readUint32)(d,S),height:(0,P.readUint32)(d,S+4),resolutionX:(0,P.readUint32)(d,S+8),resolutionY:(0,P.readUint32)(d,S+12)};pe.height===4294967295&&delete pe.height;const ge=d[S+16];(0,P.readUint16)(d,S+17),pe.lossless=!!(ge&1),pe.refinement=!!(ge&2),pe.defaultPixelValue=ge>>2&1,pe.combinationOperator=ge>>3&3,pe.requiresBuffer=!!(ge&32),pe.combinationOperatorOverride=!!(ge&64),z=[pe];break;case 49:break;case 50:break;case 51:break;case 53:z=[$.number,d,S,w];break;case 62:break;default:throw new t(`segment type ${$.typeName}(${$.type}) is not implemented`)}const D="on"+$.typeName;D in v&&v[D].apply(v,z)}function o(K,v){for(let $=0,d=K.length;$<d;$++)s(K[$],v)}function m(K){const v=new h;for(let $=0,d=K.length;$<d;$++){const w=K[$],S=u({},w.data,w.start,w.end);o(S,v)}return v.buffer}class h{onPageInformation(v){this.currentPageInfo=v;const $=v.width+7>>3,d=new Uint8ClampedArray($*v.height);v.defaultPixelValue&&d.fill(255),this.buffer=d}drawBitmap(v,$){const d=this.currentPageInfo,w=v.width,S=v.height,z=d.width+7>>3,W=d.combinationOperatorOverride?v.combinationOperator:d.combinationOperator,ne=this.buffer,Q=128>>(v.x&7);let D=v.y*z+(v.x>>3),Y,ie,ee,se;switch(W){case 0:for(Y=0;Y<S;Y++){for(ee=Q,se=D,ie=0;ie<w;ie++)$[Y][ie]&&(ne[se]|=ee),ee>>=1,ee||(ee=128,se++);D+=z}break;case 2:for(Y=0;Y<S;Y++){for(ee=Q,se=D,ie=0;ie<w;ie++)$[Y][ie]&&(ne[se]^=ee),ee>>=1,ee||(ee=128,se++);D+=z}break;default:throw new t(`operator ${W} is not supported`)}}onImmediateGenericRegion(v,$,d,w){const S=v.info,z=new V($,d,w),W=N(v.mmr,S.width,S.height,v.template,v.prediction,null,v.at,z);this.drawBitmap(S,W)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(v,$,d,w,S,z){let W,ne;v.huffman&&(W=Z(v,d,this.customTables),ne=new x(w,S,z));let Q=this.symbols;Q||(this.symbols=Q={});const D=[];for(const ie of d){const ee=Q[ie];ee&&D.push(...ee)}const Y=new V(w,S,z);Q[$]=R(v.huffman,v.refinement,D,v.numberOfNewSymbols,v.numberOfExportedSymbols,W,v.template,v.at,v.refinementTemplate,v.refinementAt,Y,ne)}onImmediateTextRegion(v,$,d,w,S){const z=v.info;let W,ne;const Q=this.symbols,D=[];for(const se of $){const ce=Q[se];ce&&D.push(...ce)}const Y=(0,P.log2)(D.length);v.huffman&&(ne=new x(d,w,S),W=G(v,$,this.customTables,D.length,ne));const ie=new V(d,w,S),ee=q(v.huffman,v.refinement,z.width,z.height,v.defaultPixelValue,v.numberOfSymbolInstances,v.stripSize,D,Y,v.transposed,v.dsOffset,v.referenceCorner,v.combinationOperator,W,v.refinementTemplate,v.refinementAt,ie,v.logStripSize,ne);this.drawBitmap(z,ee)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(v,$,d,w,S){let z=this.patterns;z||(this.patterns=z={});const W=new V(d,w,S);z[$]=b(v.mmr,v.patternWidth,v.patternHeight,v.maxPatternIndex,v.template,W)}onImmediateHalftoneRegion(v,$,d,w,S){const z=this.patterns[$[0]],W=v.info,ne=new V(d,w,S),Q=E(v.mmr,z,v.template,W.width,W.height,v.defaultPixelValue,v.enableSkip,v.combinationOperator,v.gridWidth,v.gridHeight,v.gridOffsetX,v.gridOffsetY,v.gridVectorX,v.gridVectorY,ne);this.drawBitmap(W,Q)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(v,$,d,w){let S=this.customTables;S||(this.customTables=S={}),S[v]=F($,d,w)}}class A{constructor(v){v.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=v[0],this.rangeLength=0,this.prefixCode=v[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=v[0],this.prefixLength=v[1],this.rangeLength=v[2],this.prefixCode=v[3],this.isLowerRange=v[4]==="lower")}}class L{constructor(v){this.children=[],v?(this.isLeaf=!0,this.rangeLength=v.rangeLength,this.rangeLow=v.rangeLow,this.isLowerRange=v.isLowerRange,this.isOOB=v.isOOB):this.isLeaf=!1}buildTree(v,$){const d=v.prefixCode>>$&1;if($<=0)this.children[d]=new L(v);else{let w=this.children[d];w||(this.children[d]=w=new L(null)),w.buildTree(v,$-1)}}decodeNode(v){if(this.isLeaf){if(this.isOOB)return null;const d=v.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-d:d)}const $=this.children[v.readBit()];if(!$)throw new t("invalid Huffman data");
24return $.decodeNode(v)}}class H{constructor(v,$){$||this.assignPrefixCodes(v),this.rootNode=new L(null);for(let d=0,w=v.length;d<w;d++){const S=v[d];S.prefixLength>0&&this.rootNode.buildTree(S,S.prefixLength-1)}}decode(v){return this.rootNode.decodeNode(v)}assignPrefixCodes(v){const $=v.length;let d=0;for(let D=0;D<$;D++)d=Math.max(d,v[D].prefixLength);const w=new Uint32Array(d+1);for(let D=0;D<$;D++)w[v[D].prefixLength]++;let S=1,z=0,W,ne,Q;for(w[0]=0;S<=d;){for(z=z+w[S-1]<<1,W=z,ne=0;ne<$;)Q=v[ne],Q.prefixLength===S&&(Q.prefixCode=W,W++),ne++;S++}}}function F(K,v,$){const d=K[v],w=(0,P.readUint32)(K,v+1)&4294967295,S=(0,P.readUint32)(K,v+5)&4294967295,z=new x(K,v+9,$),W=(d>>1&7)+1,ne=(d>>4&7)+1,Q=[];let D,Y,ie=w;do D=z.readBits(W),Y=z.readBits(ne),Q.push(new A([ie,D,Y,0])),ie+=1<<Y;while(ie<S);return D=z.readBits(W),Q.push(new A([w-1,D,32,0,"lower"])),D=z.readBits(W),Q.push(new A([S,D,32,0])),d&1&&(D=z.readBits(W),Q.push(new A([D,0]))),new H(Q,!1)}const M={};function k(K){let v=M[K];if(v)return v;let $;switch(K){case 1:$=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:$=[[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:$=[[-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:$=[[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:$=[[-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:$=[[-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:$=[[-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:$=[[-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:$=[[-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:$=[[-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:$=[[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:$=[[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:$=[[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:$=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:$=[[-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 t(`standard table B.${K} does not exist`)}for(let d=0,w=$.length;d<w;d++)$[d]=new A($[d]);return v=new H($,!0),M[K]=v,v}class x{constructor(v,$,d){this.data=v,this.start=$,this.end=d,this.position=$,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new t("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const v=this.currentByte>>this.shift&1;return this.shift--,v}readBits(v){let $=0,d;for(d=v-1;d>=0;d--)$|=this.readBit()<<d;return $}byteAlign(){this.shift=-1}
24next(){return this.position>=this.end?-1:this.data[this.position++]}}function C(K,v,$){let d=0;for(let w=0,S=v.length;w<S;w++){const z=$[v[w]];if(z){if(K===d)return z;d++}}throw new t("can't find custom Huffman table")}function G(K,v,$,d,w){const S=[];for(let ie=0;ie<=34;ie++){const ee=w.readBits(4);S.push(new A([ie,ee,0,0]))}const z=new H(S,!1);S.length=0;for(let ie=0;ie<d;){const ee=z.decode(w);if(ee>=32){let se,ce,le;switch(ee){case 32:if(ie===0)throw new t("no previous value in symbol ID table");ce=w.readBits(2)+3,se=S[ie-1].prefixLength;break;case 33:ce=w.readBits(3)+3,se=0;break;case 34:ce=w.readBits(7)+11,se=0;break;default:throw new t("invalid code length in symbol ID table")}for(le=0;le<ce;le++)S.push(new A([ie,se,0,0])),ie++}else S.push(new A([ie,ee,0,0])),ie++}w.byteAlign();const W=new H(S,!1);let ne=0,Q,D,Y;switch(K.huffmanFS){case 0:case 1:Q=k(K.huffmanFS+6);break;case 3:Q=C(ne,v,$),ne++;break;default:throw new t("invalid Huffman FS selector")}switch(K.huffmanDS){case 0:case 1:case 2:D=k(K.huffmanDS+8);break;case 3:D=C(ne,v,$),ne++;break;default:throw new t("invalid Huffman DS selector")}switch(K.huffmanDT){case 0:case 1:case 2:Y=k(K.huffmanDT+11);break;case 3:Y=C(ne,v,$),ne++;break;default:throw new t("invalid Huffman DT selector")}if(K.refinement)throw new t("refinement with Huffman is not supported");return{symbolIDTable:W,tableFirstS:Q,tableDeltaS:D,tableDeltaT:Y}}function Z(K,v,$){let d=0,w,S;switch(K.huffmanDHSelector){case 0:case 1:w=k(K.huffmanDHSelector+4);break;case 3:w=C(d,v,$),d++;break;default:throw new t("invalid Huffman DH selector")}switch(K.huffmanDWSelector){case 0:case 1:S=k(K.huffmanDWSelector+2);break;case 3:S=C(d,v,$),d++;break;default:throw new t("invalid Huffman DW selector")}let z,W;return K.bitmapSizeSelector?(z=C(d,v,$),d++):z=k(1),K.aggregationInstancesSelector?W=C(d,v,$):W=k(1),{tableDeltaHeight:w,tableDeltaWidth:S,tableBitmapSize:z,tableAggregateInstances:W}}function ae(K,v,$){const d=[];for(let w=0;w<$;w++){const S=new Uint8Array(v);d.push(S);for(let z=0;z<v;z++)S[z]=K.readBit();K.byteAlign()}return d}function oe(K,v,$,d){const w={K:-1,Columns:v,Rows:$,BlackIs1:!0,EndOfBlock:d},S=new e.CCITTFaxDecoder(K,w),z=[];let W,ne=!1;for(let Q=0;Q<$;Q++){const D=new Uint8Array(v);z.push(D);let Y=-1;for(let ie=0;ie<v;ie++)Y<0&&(W=S.readNextChar(),W===-1&&(W=0,ne=!0),Y=7),D[ie]=W>>Y&1,Y--}if(d&&!ne)for(let D=0;D<5&&S.readNextChar()!==-1;D++);return z}class te{parseChunks(v){return m(v)}parse(v){throw new Error("Not implemented: Jbig2Image.parse")}}p.Jbig2Image=te},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ArithmeticDecoder=void 0;const re=[{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}];
24class n{constructor(j,e,t){this.data=j,this.bp=e,this.dataEnd=t,this.chigh=j[e],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(){const j=this.data;let e=this.bp;j[e]===255?j[e+1]>143?(this.clow+=65280,this.ct=8):(e++,this.clow+=j[e]<<9,this.ct=7,this.bp=e):(e++,this.clow+=e<this.dataEnd?j[e]<<8:65280,this.ct=8,this.bp=e),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(j,e){let t=j[e]>>1,l=j[e]&1;const V=re[t],J=V.qe;let B,I=this.a-J;if(this.chigh<J)I<J?(I=J,B=l,t=V.nmps):(I=J,B=1^l,V.switchFlag===1&&(l=B),t=V.nlps);else{if(this.chigh-=J,I&32768)return this.a=I,l;I<J?(B=1^l,V.switchFlag===1&&(l=B),t=V.nlps):(B=l,t=V.nmps)}do this.ct===0&&this.byteIn(),I<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(I&32768));return this.a=I,j[e]=t<<1|l,B}}p.ArithmeticDecoder=n},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.JpegStream=void 0;var n=re(18),P=re(4),j=re(27),e=re(2);class t extends n.DecodeStream{constructor(V,J,B){let I;for(;(I=V.getByte())!==-1;)if(I===255){V.skip(-1);break}super(J),this.stream=V,this.dict=V.dict,this.maybeLength=J,this.params=B}get bytes(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(V){}readBlock(){if(this.eof)return;const V={decodeTransform:void 0,colorTransform:void 0},J=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(J)){const f=this.dict.get("BPC","BitsPerComponent")||8,g=J.length,a=new Int32Array(g);let _=!1;const y=(1<<f)-1;for(let O=0;O<g;O+=2)a[O]=(J[O+1]-J[O])*256|0,a[O+1]=J[O]*y|0,(a[O]!==256||a[O+1]!==0)&&(_=!0);_&&(V.decodeTransform=a)}if(this.params instanceof P.Dict){const f=this.params.get("ColorTransform");Number.isInteger(f)&&(V.colorTransform=f)}const B=new j.JpegImage(V);B.parse(this.bytes);const I=B.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=I,this.bufferLength=I.length,this.eof=!0}}p.JpegStream=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.JpegImage=void 0;var n=re(2),P=re(28),j=re(3);class e extends n.BaseException{constructor(u){super(`JPEG error: ${u}`,"JpegError")}}class t extends n.BaseException{constructor(u,T){super(u,"DNLMarkerError"),this.scanLines=T}}class l extends n.BaseException{constructor(u){super(u,"EOIMarkerError")}}const V=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]),J=4017,B=799,I=3406,f=2276,g=1567,a=3784,_=5793,y=2896;function O(c,u){let T=0,r,s,o=16;for(;o>0&&!c[o-1];)o--;const m=[{children:[],index:0}];let h=m[0],A;for(r=0;r<o;r++){for(s=0;s<c[r];s++){for(h=m.pop(),h.children[h.index]=u[T];h.index>0;)h=m.pop();for(h.index++,m.push(h);m.length<=r;)m.push(A={children:[],index:0}),h.children[h.index]=A.children,h=A;T++}r+1<o&&(m.push(A={children:[],index:0}),h.children[h.index]=A.children,h=A)}return m[0].children}function N(c,u,T){return 64*((c.blocksPerLine+1)*u+T)}function X(c,u,T,r,s,o,m,h,A,L=!1){const H=T.mcusPerLine,F=T.progressive,M=u;let k=0,x=0;function C(){if(x>0)return x--,k>>x&1;if(k=c[u++],k===255){const pe=c[u++];if(pe){if(pe===220&&L){u+=2;const ge=(0,j.readUint16)(c,u);if(u+=2,ge>0&&ge!==T.scanLines)throw new t("Found DNL marker (0xFFDC) while parsing scan data",ge)}
24else if(pe===217){if(L){const ge=z*(T.precision===8?8:0);if(ge>0&&Math.round(T.scanLines/ge)>=5)throw new t("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",ge)}throw new l("Found EOI marker (0xFFD9) while parsing scan data")}throw new e(`unexpected marker ${(k<<8|pe).toString(16)}`)}}return x=7,k>>>7}function G(pe){let ge=pe;for(;;){switch(ge=ge[C()],typeof ge){case"number":return ge;case"object":continue}throw new e("invalid huffman sequence")}}function Z(pe){let ge=0;for(;pe>0;)ge=ge<<1|C(),pe--;return ge}function ae(pe){if(pe===1)return C()===1?1:-1;const ge=Z(pe);return ge>=1<<pe-1?ge:ge+(-1<<pe)+1}function oe(pe,ge){const Ae=G(pe.huffmanTableDC),Me=Ae===0?0:ae(Ae);pe.blockData[ge]=pe.pred+=Me;let xe=1;for(;xe<64;){const ue=G(pe.huffmanTableAC),fe=ue&15,ke=ue>>4;if(fe===0){if(ke<15)break;xe+=16;continue}xe+=ke;const ye=V[xe];pe.blockData[ge+ye]=ae(fe),xe++}}function te(pe,ge){const Ae=G(pe.huffmanTableDC),Me=Ae===0?0:ae(Ae)<<A;pe.blockData[ge]=pe.pred+=Me}function K(pe,ge){pe.blockData[ge]|=C()<<A}let v=0;function $(pe,ge){if(v>0){v--;return}let Ae=o;const Me=m;for(;Ae<=Me;){const xe=G(pe.huffmanTableAC),ue=xe&15,fe=xe>>4;if(ue===0){if(fe<15){v=Z(fe)+(1<<fe)-1;break}Ae+=16;continue}Ae+=fe;const ke=V[Ae];pe.blockData[ge+ke]=ae(ue)*(1<<A),Ae++}}let d=0,w;function S(pe,ge){let Ae=o;const Me=m;let xe=0,ue,fe;for(;Ae<=Me;){const ke=ge+V[Ae],ye=pe.blockData[ke]<0?-1:1;switch(d){case 0:if(fe=G(pe.huffmanTableAC),ue=fe&15,xe=fe>>4,ue===0)xe<15?(v=Z(xe)+(1<<xe),d=4):(xe=16,d=1);else{if(ue!==1)throw new e("invalid ACn encoding");w=ae(ue),d=xe?2:3}continue;case 1:case 2:pe.blockData[ke]?pe.blockData[ke]+=ye*(C()<<A):(xe--,xe===0&&(d=d===2?3:0));break;case 3:pe.blockData[ke]?pe.blockData[ke]+=ye*(C()<<A):(pe.blockData[ke]=w<<A,d=0);break;case 4:pe.blockData[ke]&&(pe.blockData[ke]+=ye*(C()<<A));break}Ae++}d===4&&(v--,v===0&&(d=0))}let z=0;function W(pe,ge,Ae,Me,xe){const ue=Ae/H|0,fe=Ae%H;z=ue*pe.v+Me;const ke=fe*pe.h+xe,ye=N(pe,z,ke);ge(pe,ye)}function ne(pe,ge,Ae){z=Ae/pe.blocksPerLine|0;const Me=Ae%pe.blocksPerLine,xe=N(pe,z,Me);ge(pe,xe)}const Q=r.length;let D,Y,ie,ee,se,ce;F?o===0?ce=h===0?te:K:ce=h===0?$:S:ce=oe;let le=0,de;const he=Q===1?r[0].blocksPerLine*r[0].blocksPerColumn:H*T.mcusPerColumn;let me,Se;for(;le<=he;){const pe=s?Math.min(he-le,s):he;if(pe>0){for(Y=0;Y<Q;Y++)r[Y].pred=0;if(v=0,Q===1)for(D=r[0],se=0;se<pe;se++)ne(D,ce,le),le++;else for(se=0;se<pe;se++){for(Y=0;Y<Q;Y++)for(D=r[Y],me=D.h,Se=D.v,ie=0;ie<Se;ie++)for(ee=0;ee<me;ee++)W(D,ce,le,ie,ee);le++}}if(x=0,de=b(c,u),!de)break;if(de.invalid){const ge=pe>0?"unexpected":"excessive";(0,n.warn)(`decodeScan - ${ge} MCU data, current marker is: ${de.invalid}`),u=de.offset}if(de.marker>=65488&&de.marker<=65495)u+=2;else break}return u-M}function R(c,u,T){const r=c.quantizationTable,s=c.blockData;let o,m,h,A,L,H,F,M,k,x,C,G,Z,ae,oe,te,K;if(!r)throw new e("missing required Quantization Table.");for(let v=0;v<64;v+=8){if(k=s[u+v],x=s[u+v+1],C=s[u+v+2],G=s[u+v+3],Z=s[u+v+4],ae=s[u+v+5],oe=s[u+v+6],te=s[u+v+7],k*=r[v],!(x|C|G|Z|ae|oe|te)){K=_*k+512>>10,T[v]=K,T[v+1]=K,T[v+2]=K,T[v+3]=K,T[v+4]=K,T[v+5]=K,T[v+6]=K,T[v+7]=K;continue}x*=r[v+1],C*=r[v+2],G*=r[v+3],Z*=r[v+4],ae*=r[v+5],oe*=r[v+6],te*=r[v+7],o=_*k+128>>8,m=_*Z+128>>8,h=C,A=oe,L=y*(x-te)+128>>8,M=y*(x+te)+128>>8,H=G<<4,F=ae<<4,o=o+m+1>>1,m=o-m,K=h*a+A*g+128>>8,h=h*g-A*a+128>>8,A=K,L=L+F+1>>1,F=L-F,M=M+H+1>>1,H=M-H,o=o+A+1>>1,A=o-A,m=m+h+1>>1,h=m-h,K=L*f+M*I+2048>>12,L=L*I-M*f+2048>>12,M=K,K=H*B+F*J+2048>>12,H=H*J-F*B+2048>>12,F=K,T[v]=o+M,T[v+7]=o-M,T[v+1]=m+F,T[v+6]=m-F,T[v+2]=h+H,T[v+5]=h-H,T[v+3]=A+L,T[v+4]=A-L}for(let v=0;v<8;++v){if(k=T[v],x=T[v+8],C=T[v+16],G=T[v+24],Z=T[v+32],ae=T[v+40],oe=T[v+48],te=T[v+56],!(x|C|G|Z|ae|oe|te)){K=_*k+8192>>14,K<-2040?K=0:K>=2024?K=255:K=K+2056>>4,s[u+v]=K,s[u+v+8]=K,s[u+v+16]=K,s[u+v+24]=K,s[u+v+32]=K,s[u+v+40]=K,s[u+v+48]=K,s[u+v+56]=K;continue}o=_*k+2048>>12,m=_*Z+2048>>12,h=C,A=oe,L=y*(x-te)+2048>>12,M=y*(x+te)+2048>>12,H=G,F=ae,o=(o+m+1>>1)+4112,m=o-m,K=h*a+A*g+2048>>12,h=h*g-A*a+2048>>12,A=K,L=L+F+1>>1,F=L-F,M=M+H+1>>1,H=M-H,o=o+A+1>>1,A=o-A,m=m+h+1>>1,h=m-h,K=L*f+M*I+2048>>12,L=L*I-M*f+2048>>12,M=K,K=H*B+F*J+2048>>12,H=H*J-F*B+2048>>12,F=K,k=o+M,te=o-M,x=m+F,oe=m-F,C=h+H,ae=h-H,G=A+L,Z=A-L,k<16?k=0:k>=4080?k=255:k>>=4,x<16?x=0:x>=4080?x=255:x>>=4,C<16?C=0:C>=4080?C=255:C>>=4,G<16?G=0:G>=4080?G=255:G>>
24=4,Z<16?Z=0:Z>=4080?Z=255:Z>>=4,ae<16?ae=0:ae>=4080?ae=255:ae>>=4,oe<16?oe=0:oe>=4080?oe=255:oe>>=4,te<16?te=0:te>=4080?te=255:te>>=4,s[u+v]=k,s[u+v+8]=x,s[u+v+16]=C,s[u+v+24]=G,s[u+v+32]=Z,s[u+v+40]=ae,s[u+v+48]=oe,s[u+v+56]=te}}function q(c,u){const T=u.blocksPerLine,r=u.blocksPerColumn,s=new Int16Array(64);for(let o=0;o<r;o++)for(let m=0;m<T;m++){const h=N(u,o,m);R(u,h,s)}return u.blockData}function b(c,u,T=u){const r=c.length-1;let s=T<u?T:u;if(u>=r)return null;const o=(0,j.readUint16)(c,u);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:u};let m=(0,j.readUint16)(c,s);for(;!(m>=65472&&m<=65534);){if(++s>=r)return null;m=(0,j.readUint16)(c,s)}return{invalid:o.toString(16),marker:m,offset:s}}class E{constructor({decodeTransform:u=null,colorTransform:T=-1}={}){this._decodeTransform=u,this._colorTransform=T}parse(u,{dnlScanLines:T=null}={}){function r(){const C=(0,j.readUint16)(u,o);o+=2;let G=o+C-2;const Z=b(u,G,o);Z!=null&&Z.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+Z.invalid),G=Z.offset);const ae=u.subarray(o,G);return o+=ae.length,ae}function s(C){const G=Math.ceil(C.samplesPerLine/8/C.maxH),Z=Math.ceil(C.scanLines/8/C.maxV);for(const ae of C.components){const oe=Math.ceil(Math.ceil(C.samplesPerLine/8)*ae.h/C.maxH),te=Math.ceil(Math.ceil(C.scanLines/8)*ae.v/C.maxV),K=G*ae.h,$=64*(Z*ae.v)*(K+1);ae.blockData=new Int16Array($),ae.blocksPerLine=oe,ae.blocksPerColumn=te}C.mcusPerLine=G,C.mcusPerColumn=Z}let o=0,m=null,h=null,A,L,H=0;const F=[],M=[],k=[];let x=(0,j.readUint16)(u,o);if(o+=2,x!==65496)throw new e("SOI not found");x=(0,j.readUint16)(u,o),o+=2;e:for(;x!==65497;){let C,G,Z;switch(x){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:const ae=r();x===65504&&ae[0]===74&&ae[1]===70&&ae[2]===73&&ae[3]===70&&ae[4]===0&&(m={version:{major:ae[5],minor:ae[6]},densityUnits:ae[7],xDensity:ae[8]<<8|ae[9],yDensity:ae[10]<<8|ae[11],thumbWidth:ae[12],thumbHeight:ae[13],thumbData:ae.subarray(14,14+3*ae[12]*ae[13])}),x===65518&&ae[0]===65&&ae[1]===100&&ae[2]===111&&ae[3]===98&&ae[4]===101&&(h={version:ae[5]<<8|ae[6],flags0:ae[7]<<8|ae[8],flags1:ae[9]<<8|ae[10],transformCode:ae[11]});break;case 65499:const oe=(0,j.readUint16)(u,o);o+=2;const te=oe+o-2;let K;for(;o<te;){const ee=u[o++],se=new Uint16Array(64);if(ee>>4)if(ee>>4===1)for(G=0;G<64;G++)K=V[G],se[K]=(0,j.readUint16)(u,o),o+=2;else throw new e("DQT - invalid table spec");else for(G=0;G<64;G++)K=V[G],se[K]=u[o++];F[ee&15]=se}break;case 65472:case 65473:case 65474:if(A)throw new e("Only single frame JPEGs supported");o+=2,A={},A.extended=x===65473,A.progressive=x===65474,A.precision=u[o++];const v=(0,j.readUint16)(u,o);o+=2,A.scanLines=T||v,A.samplesPerLine=(0,j.readUint16)(u,o),o+=2,A.components=[],A.componentIds={};const $=u[o++];let d=0,w=0;for(C=0;C<$;C++){const ee=u[o],se=u[o+1]>>4,ce=u[o+1]&15;d<se&&(d=se),w<ce&&(w=ce);const le=u[o+2];Z=A.components.push({h:se,v:ce,quantizationId:le,quantizationTable:null}),A.componentIds[ee]=Z-1,o+=3}A.maxH=d,A.maxV=w,s(A);break;case 65476:const S=(0,j.readUint16)(u,o);for(o+=2,C=2;C<S;){const ee=u[o++],se=new Uint8Array(16);let ce=0;for(G=0;G<16;G++,o++)ce+=se[G]=u[o];const le=new Uint8Array(ce);for(G=0;G<ce;G++,o++)le[G]=u[o];C+=17+ce,(ee>>4?M:k)[ee&15]=O(se,le)}break;case 65501:o+=2,L=(0,j.readUint16)(u,o),o+=2;break;case 65498:const z=++H===1&&!T;o+=2;const W=u[o++],ne=[];for(C=0;C<W;C++){const ee=u[o++],se=A.componentIds[ee],ce=A.components[se];ce.index=ee;const le=u[o++];ce.huffmanTableDC=k[le>>4],ce.huffmanTableAC=M[le&15],ne.push(ce)}const Q=u[o++],D=u[o++],Y=u[o++];try{const ee=X(u,o,A,ne,L,Q,D,Y>>4,Y&15,z);o+=ee}catch(ee){if(ee instanceof t)return(0,n.warn)(`${ee.message} -- attempting to re-parse the JPEG image.`),this.parse(u,{dnlScanLines:ee.scanLines});if(ee instanceof l){(0,n.warn)(`${ee.message} -- ignoring the rest of the image data.`);break e}throw ee}break;case 65500:o+=4;break;case 65535:u[o]!==255&&o--;break;default:const ie=b(u,o-2,o-3);if(ie!=null&&ie.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+ie.invalid),o=ie.offset;break}if(!ie||o>=u.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new e("JpegImage.parse - unknown marker: "+x.toString(16))}x=(0,j.readUint16)(u,o),o+=2}this.width=A.samplesPerLine,this.height=A.scanLines,this.jfif=m,this.adobe=h,this.components=[];for(const C of A.components){const G=F[C.quantizationId];G&&(C.quantizationTable=G),this.components.push({index:C.index,output:q(A,C),scaleX:C.h/A.maxH,scaleY:C.v/A.maxV,blocksPerLine:C.blocksPerLine,blocksPerColumn:C.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(u,T,r=!1){const s=this.width/u,o=this.height/T;let m,h,A,L,H,F,M,k,x,C,G=0,Z;const ae=this.components.length,oe=u*T*ae,te=new Uint8ClampedArray(oe),K=new Uint32Array(u),v=4294967288;let $;for(M=0;M<ae;M++){if(m=this.components[M],h=m.scaleX*s,A=m.scaleY*o,G=M,Z=m.output,L=m.blocksPerLine+1<<3,h!==$){for(H=0;H<u;H++)k=0|H*h,K[H]=(k&v)<<3|k&7;$=h}for(F=0;F<T;F++)for(k=0|F*A,C=L*(k&v)|(k&7)<<3,H=0;H<u;H++)te[G]=Z[C+K[H]],G+=ae}let d=this._decodeTransform;
24if(!r&&ae===4&&!d&&(d=new Int32Array([-256,255,-256,255,-256,255,-256,255])),d)for(M=0;M<oe;)for(k=0,x=0;k<ae;k++,M++,x+=2)te[M]=(te[M]*d[x]>>8)+d[x+1];return te}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform===0?!1:!(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(u){let T,r,s;for(let o=0,m=u.length;o<m;o+=3)T=u[o],r=u[o+1],s=u[o+2],u[o]=T-179.456+1.402*s,u[o+1]=T+135.459-.344*r-.714*s,u[o+2]=T-226.816+1.772*r;return u}_convertYccToRgba(u,T){for(let r=0,s=0,o=u.length;r<o;r+=3,s+=4){const m=u[r],h=u[r+1],A=u[r+2];T[s]=m-179.456+1.402*A,T[s+1]=m+135.459-.344*h-.714*A,T[s+2]=m-226.816+1.772*h,T[s+3]=255}return T}_convertYcckToRgb(u){let T,r,s,o,m=0;for(let h=0,A=u.length;h<A;h+=4)T=u[h],r=u[h+1],s=u[h+2],o=u[h+3],u[m++]=-122.67195406894+r*(-660635669420364e-19*r+.000437130475926232*s-54080610064599e-18*T+.00048449797120281*o-.154362151871126)+s*(-.000957964378445773*s+.000817076911346625*T-.00477271405408747*o+1.53380253221734)+T*(.000961250184130688*T-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),u[m++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*s+.000659397001245577*T+.000426105652938837*o-.176491792462875)+s*(-.000778269941513683*s+.00130872261408275*T+.000770482631801132*o-.151051492775562)+T*(.00126935368114843*T-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),u[m++]=-20.810012546947+r*(-.000570115196973677*r-263409051004589e-19*s+.0020741088115012*T-.00288260236853442*o+.814272968359295)+s*(-153496057440975e-19*s-.000132689043961446*T+.000560833691242812*o-.195152027534049)+T*(.00174418132927582*T-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return u.subarray(0,m)}_convertYcckToRgba(u){for(let T=0,r=u.length;T<r;T+=4){const s=u[T],o=u[T+1],m=u[T+2],h=u[T+3];u[T]=-122.67195406894+o*(-660635669420364e-19*o+.000437130475926232*m-54080610064599e-18*s+.00048449797120281*h-.154362151871126)+m*(-.000957964378445773*m+.000817076911346625*s-.00477271405408747*h+1.53380253221734)+s*(.000961250184130688*s-.00266257332283933*h+.48357088451265)+h*(-.000336197177618394*h+.484791561490776),u[T+1]=107.268039397724+o*(219927104525741e-19*o-.000640992018297945*m+.000659397001245577*s+.000426105652938837*h-.176491792462875)+m*(-.000778269941513683*m+.00130872261408275*s+.000770482631801132*h-.151051492775562)+s*(.00126935368114843*s-.00265090189010898*h+.25802910206845)+h*(-.000318913117588328*h-.213742400323665),u[T+2]=-20.810012546947+o*(-.000570115196973677*o-263409051004589e-19*m+.0020741088115012*s-.00288260236853442*h+.814272968359295)+m*(-153496057440975e-19*m-.000132689043961446*s+.000560833691242812*h-.195152027534049)+s*(.00174418132927582*s-.00255243321439347*h+.116935020465145)+h*(-.000343531996510555*h+.24165260232407),u[T+3]=255}return u}_convertYcckToCmyk(u){let T,r,s;for(let o=0,m=u.length;o<m;o+=4)T=u[o],r=u[o+1],s=u[o+2],u[o]=434.456-T-1.402*s,u[o+1]=119.541-T+.344*r+.714*s,u[o+2]=481.816-T-1.772*r;return u}_convertCmykToRgb(u){let T,r,s,o,m=0;for(let h=0,A=u.length;h<A;h+=4)T=u[h],r=u[h+1],s=u[h+2],o=u[h+3],u[m++]=255+T*(-6747147073602441e-20*T+.0008379262121013727*r+.0002894718188643294*s+.003264231057537806*o-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*s-.0002748769067499491*o-.02155688794978967)+s*(-3878099212869363e-20*s-.0003267808279485286*o+.0686742238595345)-o*(.0003361971776183937*o+.7430659151342254),u[m++]=255+T*(.00013596372813588848*T+.000924537132573585*r+.00010567359618683593*s+.0004791864687436512*o-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*s+.0020200308977307156*o-.7488052167015494)+s*(6834815998235662e-20*s+.00015168452363460973*o-.09751927774728933)-o*(.0003189131175883281*o+.7364883807733168),u[m++]=255+T*(13598650411385307e-21*T+.00012423956175490851*r+.0004751985097583589*s-36729317476630422e-22*o-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*s+.0007782692450036253*o-.44015232367526463)+s*(5068882914068769e-22*s+.0017778369011375071*o-.7591454649749609)-o*(.
240003435319965105553*o+.7063770186160144);return u.subarray(0,m)}_convertCmykToRgba(u){for(let T=0,r=u.length;T<r;T+=4){const s=u[T],o=u[T+1],m=u[T+2],h=u[T+3];u[T]=255+s*(-6747147073602441e-20*s+.0008379262121013727*o+.0002894718188643294*m+.003264231057537806*h-1.1185611867203937)+o*(26374107616089405e-21*o-8626949158638572e-20*m-.0002748769067499491*h-.02155688794978967)+m*(-3878099212869363e-20*m-.0003267808279485286*h+.0686742238595345)-h*(.0003361971776183937*h+.7430659151342254),u[T+1]=255+s*(.00013596372813588848*s+.000924537132573585*o+.00010567359618683593*m+.0004791864687436512*h-.3109689587515875)+o*(-.00023545346108370344*o+.0002702845253534714*m+.0020200308977307156*h-.7488052167015494)+m*(6834815998235662e-20*m+.00015168452363460973*h-.09751927774728933)-h*(.0003189131175883281*h+.7364883807733168),u[T+2]=255+s*(13598650411385307e-21*s+.00012423956175490851*o+.0004751985097583589*m-36729317476630422e-22*h-.05562186980264034)+o*(.00016141380598724676*o+.0009692239130725186*m+.0007782692450036253*h-.44015232367526463)+m*(5068882914068769e-22*m+.0017778369011375071*h-.7591454649749609)-h*(.0003435319965105553*h+.7063770186160144),u[T+3]=255}return u}getData({width:u,height:T,forceRGBA:r=!1,forceRGB:s=!1,isSourcePDF:o=!1}){if(this.numComponents>4)throw new e("Unsupported color mode");const m=this._getLinearizedBlockData(u,T,o);if(this.numComponents===1&&(r||s)){const h=m.length*(r?4:3),A=new Uint8ClampedArray(h);let L=0;if(r)(0,P.grayToRGBA)(m,new Uint32Array(A.buffer));else for(const H of m)A[L++]=H,A[L++]=H,A[L++]=H;return A}else if(this.numComponents===3&&this._isColorConversionNeeded){if(r){const h=new Uint8ClampedArray(m.length/3*4);return this._convertYccToRgba(m,h)}return this._convertYccToRgb(m)}else if(this.numComponents===4){if(this._isColorConversionNeeded)return r?this._convertYcckToRgba(m):s?this._convertYcckToRgb(m):this._convertYcckToCmyk(m);if(r)return this._convertCmykToRgba(m);if(s)return this._convertCmykToRgb(m)}return m}}p.JpegImage=E},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.convertBlackAndWhiteToRGBA=j,p.convertToRGBA=P,p.grayToRGBA=t;var n=re(2);function P(l){switch(l.kind){case n.ImageKind.GRAYSCALE_1BPP:return j(l);case n.ImageKind.RGB_24BPP:return e(l)}return null}function j({src:l,srcPos:V=0,dest:J,width:B,height:I,nonBlackColor:f=4294967295,inverseDecode:g=!1}){const a=n.FeatureTest.isLittleEndian?4278190080:255,[_,y]=g?[f,a]:[a,f],O=B>>3,N=B&7,X=l.length;J=new Uint32Array(J.buffer);let R=0;for(let q=0;q<I;q++){for(const E=V+O;V<E;V++){const c=V<X?l[V]:255;J[R++]=c&128?y:_,J[R++]=c&64?y:_,J[R++]=c&32?y:_,J[R++]=c&16?y:_,J[R++]=c&8?y:_,J[R++]=c&4?y:_,J[R++]=c&2?y:_,J[R++]=c&1?y:_}if(N===0)continue;const b=V<X?l[V++]:255;for(let E=0;E<N;E++)J[R++]=b&1<<7-E?y:_}return{srcPos:V,destPos:R}}function e({src:l,srcPos:V=0,dest:J,destPos:B=0,width:I,height:f}){let g=0;const a=l.length>>2,_=new Uint32Array(l.buffer,V,a);if(n.FeatureTest.isLittleEndian){for(;g<a-2;g+=3,B+=4){const y=_[g],O=_[g+1],N=_[g+2];J[B]=y|4278190080,J[B+1]=y>>>24|O<<8|4278190080,J[B+2]=O>>>16|N<<16|4278190080,J[B+3]=N>>>8|4278190080}for(let y=g*4,O=l.length;y<O;y+=3)J[B++]=l[y]|l[y+1]<<8|l[y+2]<<16|4278190080}else{for(;g<a-2;g+=3,B+=4){const y=_[g],O=_[g+1],N=_[g+2];J[B]=y|255,J[B+1]=y<<24|O>>>8|255,J[B+2]=O<<16|N>>>16|255,J[B+3]=N<<8|255}for(let y=g*4,O=l.length;y<O;y+=3)J[B++]=l[y]<<24|l[y+1]<<16|l[y+2]<<8|255}return{srcPos:V,destPos:B}}function t(l,V){if(n.FeatureTest.isLittleEndian)for(let J=0,B=l.length;J<B;J++)V[J]=l[J]*65793|4278190080;else for(let J=0,B=l.length;J<B;J++)V[J]=l[J]*16843008|255}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.JpxStream=void 0;var n=re(18),P=re(30),j=re(2);class e extends n.DecodeStream{constructor(l,V,J){super(V),this.stream=l,this.dict=l.dict,this.maybeLength=V,this.params=J}get bytes(){return(0,j.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(l){}readBlock(){if(this.eof)return;const l=new P.JpxImage;l.parse(this.bytes);const V=l.width,J=l.height,B=l.componentsCount,I=l.tiles.length;if(I===1)this.buffer=l.tiles[0].items;else{const f=new Uint8ClampedArray(V*J*B);for(let g=0;g<I;g++){const a=l.tiles[g],_=a.width,y=a.height,O=a.left,N=a.top,X=a.items;let R=0,q=(V*N+O)*B;const b=V*B,E=_*B;for(let c=0;c<y;c++){const u=X.subarray(R,R+E);f.set(u,q),R+=E,q+=b}}this.buffer=f}this.bufferLength=this.buffer.length,this.eof=!0}}p.JpxStream=e},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.JpxImage=void 0;var n=re(2),P=re(3),j=re(25);class e extends n.BaseException{constructor(F){super(`JPX error: ${F}`,"JpxError")}}const t={LL:0,LH:1,HL:1,HH:2};class l{constructor(){this.failOnCorruptedImage=!1}parse(F){if((0,P.readUint16)(F,0)===65359){this.parseCodestream(F,0,F.length);return}const k=F.length;let x=0;for(;x<k;){let C=8,G=(0,P.readUint32)(F,x);const Z=(0,P.readUint32)(F,x+4);if(x+=C,G===1&&(G=(0,P.readUint32)(F,x)*4294967296+(0,P.readUint32)(F,x+4),x+=8,C+=8),G===0&&(G=k-x+C),G<C)throw new e("Invalid box field size");const ae=G-C;let oe=!0;switch(Z){case 1785737832:oe=!1;break;case 1668246642:const te=F[x];if(te===1){const v=(0,P.readUint32)(F,x+3);switch(v){case 16:case 17:case 18:break;default:(0,n.warn)("Unknown colorspace "+v);break}}else te===2&&(0,n.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(F,x,x+ae);break;case 1783636e3:(0,P.readUint32)(F,x)!==218793738&&(0,n.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const K=String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255);(0,n.warn)(`Unsupported header type ${Z} (${K}).`);break}oe&&(x+=ae)}}parseImageProperties(F){let M=F.getByte();for(;M>=0;){const k=M;if(M=F.getByte(),(k<<8|M)===65361){F.skip(4);const C=F.getInt32()>>>0,G=F.getInt32()>>>0,Z=F.getInt32()>>>0,ae=F.getInt32()>>>0;F.skip(16);const oe=F.getUint16();this.width=C-Z,this.height=G-ae,this.componentsCount=oe,this.bitsPerComponent=8;return}}throw new e("No size marker found in JPX stream")}parseCodestream(F,M,k){const x={};let C=!1;try{let G=M;for(;G+1<k;){const Z=(0,P.readUint16)(F,G);G+=2;let ae=0,oe,te,K,v,$,d;switch(Z){case 65359:x.mainHeader=!0;break;case 65497:break;case 65361:ae=(0,P.readUint16)(F,G);const w={};w.Xsiz=(0,P.readUint32)(F,G+4),w.Ysiz=(0,P.readUint32)(F,G+8),w.XOsiz=(0,P.readUint32)(F,G+12),w.YOsiz=(0,P.readUint32)(F,G+16),w.XTsiz=(0,P.readUint32)(F,G+20),w.YTsiz=(0,P.readUint32)(F,G+24),w.XTOsiz=(0,P.readUint32)(F,G+28),w.YTOsiz=(0,P.readUint32)(F,G+32);const S=(0,P.readUint16)(F,G+36);w.Csiz=S;const z=[];oe=G+38;for(let se=0;se<S;se++){const ce={precision:(F[oe]&127)+1,isSigned:!!(F[oe]&128),XRsiz:F[oe+1],YRsiz:F[oe+2]};
24oe+=3,V(ce,w),z.push(ce)}x.SIZ=w,x.components=z,J(x,z),x.QCC=[],x.COC=[];break;case 65372:ae=(0,P.readUint16)(F,G);const W={};switch(oe=G+2,te=F[oe++],te&31){case 0:v=8,$=!0;break;case 1:v=16,$=!1;break;case 2:v=16,$=!0;break;default:throw new Error("Invalid SQcd value "+te)}for(W.noQuantization=v===8,W.scalarExpounded=$,W.guardBits=te>>5,K=[];oe<ae+G;){const se={};v===8?(se.epsilon=F[oe++]>>3,se.mu=0):(se.epsilon=F[oe]>>3,se.mu=(F[oe]&7)<<8|F[oe+1],oe+=2),K.push(se)}W.SPqcds=K,x.mainHeader?x.QCD=W:(x.currentTile.QCD=W,x.currentTile.QCC=[]);break;case 65373:ae=(0,P.readUint16)(F,G);const ne={};oe=G+2;let Q;switch(x.SIZ.Csiz<257?Q=F[oe++]:(Q=(0,P.readUint16)(F,oe),oe+=2),te=F[oe++],te&31){case 0:v=8,$=!0;break;case 1:v=16,$=!1;break;case 2:v=16,$=!0;break;default:throw new Error("Invalid SQcd value "+te)}for(ne.noQuantization=v===8,ne.scalarExpounded=$,ne.guardBits=te>>5,K=[];oe<ae+G;){const se={};v===8?(se.epsilon=F[oe++]>>3,se.mu=0):(se.epsilon=F[oe]>>3,se.mu=(F[oe]&7)<<8|F[oe+1],oe+=2),K.push(se)}ne.SPqcds=K,x.mainHeader?x.QCC[Q]=ne:x.currentTile.QCC[Q]=ne;break;case 65362:ae=(0,P.readUint16)(F,G);const D={};oe=G+2;const Y=F[oe++];D.entropyCoderWithCustomPrecincts=!!(Y&1),D.sopMarkerUsed=!!(Y&2),D.ephMarkerUsed=!!(Y&4),D.progressionOrder=F[oe++],D.layersCount=(0,P.readUint16)(F,oe),oe+=2,D.multipleComponentTransform=F[oe++],D.decompositionLevelsCount=F[oe++],D.xcb=(F[oe++]&15)+2,D.ycb=(F[oe++]&15)+2;const ie=F[oe++];if(D.selectiveArithmeticCodingBypass=!!(ie&1),D.resetContextProbabilities=!!(ie&2),D.terminationOnEachCodingPass=!!(ie&4),D.verticallyStripe=!!(ie&8),D.predictableTermination=!!(ie&
2416),D.segmentationSymbolUsed=!!(ie&32),D.reversibleTransformation=F[oe++],D.entropyCoderWithCustomPrecincts){const se=[];for(;oe<ae+G;){const ce=F[oe++];se.push({PPx:ce&15,PPy:ce>>4})}D.precinctsSizes=se}const ee=[];D.selectiveArithmeticCodingBypass&&ee.push("selectiveArithmeticCodingBypass"),D.terminationOnEachCodingPass&&ee.push("terminationOnEachCodingPass"),D.verticallyStripe&&ee.push("verticallyStripe"),D.predictableTermination&&ee.push("predictableTermination"),ee.length>0&&(C=!0,(0,n.warn)(`JPX: Unsupported COD options (${ee.join(", ")}).`)),x.mainHeader?x.COD=D:(x.currentTile.COD=D,x.currentTile.COC=[]);break;case 65424:ae=(0,P.readUint16)(F,G),d={},d.index=(0,P.readUint16)(F,G+2),d.length=(0,P.readUint32)(F,G+4),d.dataEnd=d.length+G-2,d.partIndex=F[G+8],d.partsCount=F[G+9],x.mainHeader=!1,d.partIndex===0&&(d.COD=x.COD,d.COC=x.COC.slice(0),d.QCD=x.QCD,d.QCC=x.QCC.slice(0)),x.currentTile=d;break;case 65427:d=x.currentTile,d.partIndex===0&&(T(x,d.index),q(x)),ae=d.dataEnd-G,b(x,F,G,ae);break;case 65363:(0,n.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:ae=(0,P.readUint16)(F,G);break;default:throw new Error("Unknown codestream code: "+Z.toString(16))}G+=ae}}catch(G){if(C||this.failOnCorruptedImage)throw new e(G.message);(0,n.warn)(`JPX: Trying to recover from: "${G.message}".`)}this.tiles=u(x),this.width=x.SIZ.Xsiz-x.SIZ.XOsiz,this.height=x.SIZ.Ysiz-x.SIZ.YOsiz,this.componentsCount=x.SIZ.Csiz}}p.JpxImage=l;function V(H,F){H.x0=Math.ceil(F.XOsiz/H.XRsiz),H.x1=Math.ceil(F.Xsiz/H.XRsiz),H.y0=Math.ceil(F.YOsiz/H.YRsiz),H.y1=Math.ceil(F.Ysiz/H.YRsiz),H.width=H.x1-H.x0,H.height=H.y1-H.y0}function J(H,F){const M=H.SIZ,k=[];let x;const C=Math.ceil((M.Xsiz-M.XTOsiz)/M.XTsiz),G=Math.ceil((M.Ysiz-M.YTOsiz)/M.YTsiz);for(let ae=0;ae<G;ae++)for(let oe=0;oe<C;oe++)x={},x.tx0=Math.max(M.XTOsiz+oe*M.XTsiz,M.XOsiz),x.ty0=Math.max(M.YTOsiz+ae*M.YTsiz,M.YOsiz),x.tx1=Math.min(M.XTOsiz+(oe+1)*M.XTsiz,M.Xsiz),x.ty1=Math.min(M.YTOsiz+(ae+1)*M.YTsiz,M.Ysiz),x.width=x.tx1-x.tx0,x.height=x.ty1-x.ty0,x.components=[],k.push(x);H.tiles=k;const Z=M.Csiz;for(let ae=0,oe=Z;ae<oe;ae++){const te=F[ae];for(let K=0,v=k.length;K<v;K++){const $={};x=k[K],$.tcx0=Math.ceil(x.tx0/te.XRsiz),$.tcy0=Math.ceil(x.ty0/te.YRsiz),$.tcx1=Math.ceil(x.tx1/te.XRsiz),$.tcy1=Math.ceil(x.ty1/te.YRsiz),$.width=$.tcx1-$.tcx0,$.height=$.tcy1-$.tcy0,x.components[ae]=$}}}function B(H,F,M){const k=F.codingStyleParameters,x={};return k.entropyCoderWithCustomPrecincts?(x.PPx=k.precinctsSizes[M].PPx,x.PPy=k.precinctsSizes[M].PPy):(x.PPx=15,x.PPy=15),x.xcb_=M>0?Math.min(k.xcb,x.PPx-1):Math.min(k.xcb,x.PPx),x.ycb_=M>0?Math.min(k.ycb,x.PPy-1):Math.min(k.ycb,x.PPy),x}function I(H,F,M){const k=1<<M.PPx,x=1<<M.PPy,C=F.resLevel===0,G=1<<M.PPx+(C?0:-1),Z=1<<M.PPy+(C?0:-1),ae=F.trx1>F.trx0?Math.ceil(F.trx1/k)-Math.floor(F.trx0/k):0,oe=F.try1>F.try0?Math.ceil(F.try1/x)-Math.floor(F.try0/x):0,te=ae*oe;F.precinctParameters={precinctWidth:k,precinctHeight:x,numprecinctswide:ae,numprecinctshigh:oe,numprecincts:te,precinctWidthInSubband:G,precinctHeightInSubband:Z}}function f(H,F,M){const k=M.xcb_,x=M.ycb_,C=1<<k,G=1<<x,Z=F.tbx0>>k,ae=F.tby0>>x,oe=F.tbx1+C-1>>k,te=F.tby1+G-1>>x,K=F.resolution.precinctParameters,v=[],$=[];let d,w,S,z;for(w=ae;w<te;w++)for(d=Z;d<oe;d++){S={cbx:d,cby:w,tbx0:C*d,tby0:G*w,tbx1:C*(d+1),tby1:G*(w+1)},S.tbx0_=Math.max(F.tbx0,S.tbx0),S.tby0_=Math.max(F.tby0,S.tby0),S.tbx1_=Math.min(F.tbx1,S.tbx1),S.tby1_=Math.min(F.tby1,S.tby1);const W=Math.floor((S.tbx0_-F.tbx0)/K.precinctWidthInSubband),ne=Math.floor((S.tby0_-F.tby0)/K.precinctHeightInSubband);if(z=W+ne*K.numprecinctswide,S.precinctNumber=z,S.subbandType=F.type,S.Lblock=3,S.tbx1_<=S.tbx0_||S.tby1_<=S.tby0_)continue;v.push(S);let Q=$[z];Q!==void 0?(d<Q.cbxMin?Q.cbxMin=d:d>Q.cbxMax&&(Q.cbxMax=d),w<Q.cbyMin?Q.cbxMin=w:w>Q.cbyMax&&(Q.cbyMax=w)):$[z]=Q={cbxMin:d,cbyMin:w,cbxMax:d,cbyMax:w},S.precinct=Q}F.codeblockParameters={codeblockWidth:k,codeblockHeight:x,numcodeblockwide:oe-Z+1,numcodeblockhigh:te-ae+1},F.codeblocks=v,F.precincts=$}function g(H,F,M){const k=[],x=H.subbands;for(let C=0,G=x.length;C<G;C++){const ae=x[C].codeblocks;for(let oe=0,te=ae.length;oe<te;oe++){const K=ae[oe];K.precinctNumber===F&&k.push(K)}}return{layerNumber:M,codeblocks:k}}function a(H){const F=H.SIZ,M=H.currentTile.index,k=H.tiles[M],x=k.codingStyleDefaultParameters.layersCount,C=F.Csiz;let G=0;for(let K=0;K<C;K++)G=Math.max(G,k.components[K].codingStyleParameters.decompositionLevelsCount);let Z=0,ae=0,oe=0,te=0;this.nextPacket=function(){for(;Z<x;Z++){for(;ae<=G;ae++){for(;oe<C;oe++){const v=k.components[oe];if(ae>v.codingStyleParameters.decompositionLevelsCount)continue;const $=v.resolutions[ae],d=$.precinctParameters.numprecincts;for(;te<d;){const w=g($,te,Z);return te++,w}te=0}oe=0}ae=0}throw new e("Out of packets")}}function _(H){const F=H.SIZ,M=H.currentTile.index,k=H.tiles[M],x=k.codingStyleDefaultParameters.layersCount,C=F.Csiz;let G=0;for(let K=0;K<C;K++)G=Math.max(G,k.components[K].codingStyleParameters.decompositionLevelsCount);let Z=0,ae=0,oe=0,te=0;this.nextPacket=function(){for(;Z<=G;Z++){for(;ae<x;ae++){for(;oe<C;oe++){const v=k.components[oe];if(Z>v.codingStyleParameters.decompositionLevelsCount)continue;const $=v.resolutions[Z],d=$.precinctParameters.numprecincts;for(;te<d;){const w=g($,te,ae);return te++,w}te=0}oe=0}ae=0}throw new e("Out of packets")}}function y(H){const F=H.SIZ,M=H.currentTile.index,k=H.tiles[M],x=k.codingStyleDefaultParameters.layersCount,C=F.Csiz;let G,Z,ae,oe,te=0;for(ae=0;ae<C;ae++){const v=k.components[ae];te=Math.max(te,v.codingStyleParameters.decompositionLevelsCount)}const K=new Int32Array(te+1);for(Z=0;Z<=te;++Z){let v=0;for(ae=0;ae<C;++ae){const $=k.components[ae].resolutions;Z<$.length&&(v=Math.max(v,$[Z].precinctParameters.numprecincts))}K[Z]=v}G=0,Z=0,ae=0,oe=0,this.nextPacket=function(){for(;Z<=te;Z++){for(;oe<K[Z];oe++){for(;ae<C;ae++){const $=k.components[ae];if(Z>$.codingStyleParameters.decompositionLevelsCount)continue;const d=$.resolutions[Z],w=d.precinctParameters.numprecincts;if(!(oe>=w)){for(;G<x;){const S=g(d,oe,G);return G++,S}G=0}}ae=0}oe=0}throw new e("Out of packets")}}function O(H){const F=H.SIZ,M=H.currentTile.index,k=H.tiles[M],x=k.codingStyleDefaultParameters.layersCount,C=F.Csiz,G=R(k),Z=G;let ae=0,oe=0,te=0,K=0,v=0;this.nextPacket=function(){for(;v<Z.maxNumHigh;v++){for(;K<Z.maxNumWide;K++){for(;te<C;te++){const d=k.components[te],w=d.codingStyleParameters.decompositionLevelsCount;for(;oe<=w;oe++){const S=d.resolutions[oe],z=G.components[te].resolutions[oe],W=X(K,v,z,Z,S);if(W!==null){for(;ae<x;){const ne=g(S,W,ae);return ae++,ne}ae=0}}oe=0}te=0}K=0}throw new e("Out of packets")}}function N(H){const F=H.SIZ,M=H.currentTile.index,k=H.tiles[M],x=k.codingStyleDefaultParameters.layersCount,C=F.Csiz,G=R(k);let Z=0,ae=0,oe=0,te=0,K=0;this.nextPacket=function(){for(;oe<C;++oe){const $=k.components[oe],d=G.components[oe],w=$.codingStyleParameters.decompositionLevelsCount;for(;K<d.maxNumHigh;K++){for(;te<d.maxNumWide;te++){for(;ae<=w;ae++){const S=$.resolutions[ae],z=d.resolutions[ae],W=X(te,K,z,d,S);if(W!==null){for(;Z<x;){const ne=g(S,W,Z);return Z++,ne}Z=0}}ae=0}te=0}K=0}throw new e("Out of packets")}}function X(H,F,M,k,x){const C=H*k.minWidth,G=F*k.minHeight;if(C%M.width!==0||G%M.height!==0)return null;const Z=G/M.width*x.precinctParameters.numprecinctswide;return C/M.height+Z}
24function R(H){const F=H.components.length;let M=Number.MAX_VALUE,k=Number.MAX_VALUE,x=0,C=0;const G=new Array(F);for(let Z=0;Z<F;Z++){const ae=H.components[Z],oe=ae.codingStyleParameters.decompositionLevelsCount,te=new Array(oe+1);let K=Number.MAX_VALUE,v=Number.MAX_VALUE,$=0,d=0,w=1;for(let S=oe;S>=0;--S){const z=ae.resolutions[S],W=w*z.precinctParameters.precinctWidth,ne=w*z.precinctParameters.precinctHeight;K=Math.min(K,W),v=Math.min(v,ne),$=Math.max($,z.precinctParameters.numprecinctswide),d=Math.max(d,z.precinctParameters.numprecinctshigh),te[S]={width:W,height:ne},w<<=1}M=Math.min(M,K),k=Math.min(k,v),x=Math.max(x,$),C=Math.max(C,d),G[Z]={resolutions:te,minWidth:K,minHeight:v,maxNumWide:$,maxNumHigh:d}}return{components:G,minWidth:M,minHeight:k,maxNumWide:x,maxNumHigh:C}}function q(H){const F=H.SIZ,M=H.currentTile.index,k=H.tiles[M],x=F.Csiz;for(let G=0;G<x;G++){const Z=k.components[G],ae=Z.codingStyleParameters.decompositionLevelsCount,oe=[],te=[];for(let K=0;K<=ae;K++){const v=B(H,Z,K),$={},d=1<<ae-K;$.trx0=Math.ceil(Z.tcx0/d),$.try0=Math.ceil(Z.tcy0/d),$.trx1=Math.ceil(Z.tcx1/d),$.try1=Math.ceil(Z.tcy1/d),$.resLevel=K,I(H,$,v),oe.push($);let w;if(K===0)w={},w.type="LL",w.tbx0=Math.ceil(Z.tcx0/d),w.tby0=Math.ceil(Z.tcy0/d),w.tbx1=Math.ceil(Z.tcx1/d),w.tby1=Math.ceil(Z.tcy1/d),w.resolution=$,f(H,w,v),te.push(w),$.subbands=[w];else{const S=1<<ae-K+1,z=[];w={},w.type="HL",w.tbx0=Math.ceil(Z.tcx0/S-.5),w.tby0=Math.ceil(Z.tcy0/S),w.tbx1=Math.ceil(Z.tcx1/S-.5),w.tby1=Math.ceil(Z.tcy1/S),w.resolution=$,f(H,w,v),te.push(w),z.push(w),w={},w.type="LH",w.tbx0=Math.ceil(Z.tcx0/S),w.tby0=Math.ceil(Z.tcy0/S-.5),w.tbx1=Math.ceil(Z.tcx1/S),w.tby1=Math.ceil(Z.tcy1/S-.5),w.resolution=$,f(H,w,v),te.push(w),z.push(w),w={},w.type="HH",w.tbx0=Math.ceil(Z.tcx0/S-.5),w.tby0=Math.ceil(Z.tcy0/S-.5),w.tbx1=Math.ceil(Z.tcx1/S-.5),w.tby1=Math.ceil(Z.tcy1/S-.5),w.resolution=$,f(H,w,v),te.push(w),z.push(w),$.subbands=z}}Z.resolutions=oe,Z.subbands=te}const C=k.codingStyleDefaultParameters.progressionOrder;switch(C){case 0:k.packetsIterator=new a(H);break;case 1:k.packetsIterator=new _(H);break;case 2:k.packetsIterator=new y(H);break;case 3:k.packetsIterator=new O(H);break;case 4:k.packetsIterator=new N(H);break;default:throw new e(`Unsupported progression order ${C}`)}}function b(H,F,M,k){let x=0,C,G=0,Z=!1;function ae(W){for(;G<W;){const ne=F[M+x];x++,Z?(C=C<<7|ne,G+=7,Z=!1):(C=C<<8|ne,G+=8),ne===255&&(Z=!0)}return G-=W,C>>>G&(1<<W)-1}function oe(W){return F[M+x-1]===255&&F[M+x]===W?(te(1),!0):F[M+x]===255&&F[M+x+1]===W?(te(2),!0):!1}function te(W){x+=W}function K(){G=0,Z&&(x++,Z=!1)}function v(){if(ae(1)===0)return 1;if(ae(1)===0)return 2;let W=ae(2);return W<3?W+3:(W=ae(5),W<31?W+6:(W=ae(7),W+37))}const $=H.currentTile.index,d=H.tiles[$],w=H.COD.sopMarkerUsed,S=H.COD.ephMarkerUsed,z=d.packetsIterator;for(;x<k;){K(),w&&oe(145)&&te(4);const W=z.nextPacket();if(!ae(1))continue;const ne=W.layerNumber,Q=[];let D;for(let Y=0,ie=W.codeblocks.length;Y<ie;Y++){D=W.codeblocks[Y];let ee=D.precinct;const se=D.cbx-ee.cbxMin,ce=D.cby-ee.cbyMin;let le=!1,de=!1,he,me;if(D.included!==void 0)le=!!ae(1);else{ee=D.precinct;let Me;if(ee.inclusionTree!==void 0)Me=ee.inclusionTree;else{const xe=ee.cbxMax-ee.cbxMin+1,ue=ee.cbyMax-ee.cbyMin+1;Me=new s(xe,ue,ne),me=new r(xe,ue),ee.inclusionTree=Me,ee.zeroBitPlanesTree=me;for(let fe=0;fe<ne;fe++)if(ae(1)!==0)throw new e("Invalid tag tree")}if(Me.reset(se,ce,ne))for(;;)if(ae(1)){if(he=!Me.nextLevel(),he){D.included=!0,le=de=!0;break}}else{Me.incrementValue(ne);break}}if(!le)continue;if(de){for(me=ee.zeroBitPlanesTree,me.reset(se,ce);;)if(ae(1)){if(he=!me.nextLevel(),he)break}else me.incrementValue();D.zeroBitPlanes=me.value}const Se=v();for(;ae(1);)D.Lblock++;const pe=(0,P.log2)(Se),ge=(Se<1<<pe?pe-1:pe)+D.Lblock,Ae=ae(ge);Q.push({codeblock:D,codingpasses:Se,dataLength:Ae})}for(K(),S&&oe(146);Q.length>0;){const Y=Q.shift();D=Y.codeblock,D.data===void 0&&(D.data=[]),D.data.push({data:F,start:M+x,end:M+x+Y.dataLength,codingpasses:Y.codingpasses}),x+=Y.dataLength}}return x}function E(H,F,M,k,x,C,G,Z,ae){const oe=k.tbx0,te=k.tby0,K=k.tbx1-k.tbx0,v=k.codeblocks,$=k.type.charAt(0)==="H"?1:0,d=k.type.charAt(1)==="H"?F:0;for(let w=0,S=v.length;w<S;++w){const z=v[w],W=z.tbx1_-z.tbx0_,ne=z.tby1_-z.tby0_;if(W===0||ne===0||z.data===void 0)continue;const Q=new o(W,ne,z.subbandType,z.zeroBitPlanes,C);let D=2;const Y=z.data;let ie=0,ee=0,se,ce,le;for(se=0,ce=Y.length;se<ce;se++)le=Y[se],ie+=le.end-le.start,ee+=le.codingpasses;const de=new Uint8Array(ie);let he=0;for(se=0,ce=Y.length;se<ce;se++){le=Y[se];const ye=le.data.subarray(le.start,le.end);de.set(ye,he),he+=ye.length}const me=new j.ArithmeticDecoder(de,0,ie);for(Q.setDecoder(me),se=0;se<ee;se++){switch(D){case 0:Q.runSignificancePropagationPass();break;case 1:Q.runMagnitudeRefinementPass();break;case 2:Q.runCleanupPass(),Z&&Q.checkSegmentationSymbol();break}ae&&Q.reset(),D=(D+1)%3}let Se=z.tbx0_-oe+(z.tby0_-te)*K;const pe=Q.coefficentsSign,ge=Q.coefficentsMagnitude,Ae=Q.bitsDecoded,Me=G?0:.5;let xe,ue,fe;he=0;const ke=k.type!=="LL";for(se=0;se<ne;
24se++){const $e=2*(Se/K|0)*(F-K)+$+d;for(xe=0;xe<W;xe++){if(ue=ge[he],ue!==0){ue=(ue+Me)*x,pe[he]!==0&&(ue=-ue),fe=Ae[he];const Xe=ke?$e+(Se<<1):Se;H[Xe]=G&&fe>=C?ue:ue*(1<<C-fe)}Se++,he++}Se+=K-W}}}function c(H,F,M){const k=F.components[M],x=k.codingStyleParameters,C=k.quantizationParameters,G=x.decompositionLevelsCount,Z=C.SPqcds,ae=C.scalarExpounded,oe=C.guardBits,te=x.segmentationSymbolUsed,K=x.resetContextProbabilities,v=H.components[M].precision,$=x.reversibleTransformation,d=$?new A:new h,w=[];let S=0;for(let W=0;W<=G;W++){const ne=k.resolutions[W],Q=ne.trx1-ne.trx0,D=ne.try1-ne.try0,Y=new Float32Array(Q*D);for(let ie=0,ee=ne.subbands.length;ie<ee;ie++){let se,ce;ae?(se=Z[S].mu,ce=Z[S].epsilon,S++):(se=Z[0].mu,ce=Z[0].epsilon+(W>0?1-W:0));const le=ne.subbands[ie],de=t[le.type],he=$?1:2**(v+de-ce)*(1+se/2048),me=oe+ce-1;E(Y,Q,D,le,he,me,$,te,K)}w.push({width:Q,height:D,items:Y})}const z=d.calculate(w,k.tcx0,k.tcy0);return{left:k.tcx0,top:k.tcy0,width:z.width,height:z.height,items:z.items}}function u(H){const F=H.SIZ,M=H.components,k=F.Csiz,x=[];for(let C=0,G=H.tiles.length;C<G;C++){const Z=H.tiles[C],ae=[];for(let Q=0;Q<k;Q++)ae[Q]=c(H,Z,Q);const oe=ae[0],te=new Uint8ClampedArray(oe.items.length*k),K={left:oe.left,top:oe.top,width:oe.width,height:oe.height,items:te};let v,$,d=0,w,S,z,W,ne;if(Z.codingStyleDefaultParameters.multipleComponentTransform){const Q=k===4,D=ae[0].items,Y=ae[1].items,ie=ae[2].items,ee=Q?ae[3].items:null;v=M[0].precision-8,$=(128<<v)+.5;const se=Z.components[0],ce=k-3;if(S=D.length,se.codingStyleParameters.reversibleTransformation)for(w=0;w<S;w++,d+=ce){z=D[w]+$,W=Y[w],ne=ie[w];const le=z-(ne+W>>2);te[d++]=le+ne>>v,te[d++]=le>>v,te[d++]=le+W>>v}else for(w=0;w<S;w++,d+=ce)z=D[w]+$,W=Y[w],ne=ie[w],te[d++]=z+1.402*ne>>v,te[d++]=z-.34413*W-.71414*ne>>v,te[d++]=z+1.772*W>>v;if(Q)for(w=0,d=3;w<S;w++,d+=4)te[d]=ee[w]+$>>v}else for(let Q=0;Q<k;Q++){const D=ae[Q].items;for(v=M[Q].precision-8,$=(128<<v)+.5,d=Q,w=0,S=D.length;w<S;w++)te[d]=D[w]+$>>v,d+=k}x.push(K)}return x}function T(H,F){const k=H.SIZ.Csiz,x=H.tiles[F];for(let C=0;C<k;C++){const G=x.components[C],Z=H.currentTile.QCC[C]!==void 0?H.currentTile.QCC[C]:H.currentTile.QCD;G.quantizationParameters=Z;const ae=H.currentTile.COC[C]!==void 0?H.currentTile.COC[C]:H.currentTile.COD;G.codingStyleParameters=ae}x.codingStyleDefaultParameters=H.currentTile.COD}class r{constructor(F,M){const k=(0,P.log2)(Math.max(F,M))+1;this.levels=[];for(let x=0;x<k;x++){const C={width:F,height:M,items:[]};this.levels.push(C),F=Math.ceil(F/2),M=Math.ceil(M/2)}}reset(F,M){let k=0,x=0,C;for(;k<this.levels.length;){C=this.levels[k];const G=F+M*C.width;if(C.items[G]!==void 0){x=C.items[G];break}C.index=G,F>>=1,M>>=1,k++}k--,C=this.levels[k],C.items[C.index]=x,this.currentLevel=k,delete this.value}incrementValue(){const F=this.levels[this.currentLevel];F.items[F.index]++}nextLevel(){let F=this.currentLevel,M=this.levels[F];const k=M.items[M.index];return F--,F<0?(this.value=k,!1):(this.currentLevel=F,M=this.levels[F],M.items[M.index]=k,!0)}}class s{constructor(F,M,k){const x=(0,P.log2)(Math.max(F,M))+1;this.levels=[];for(let C=0;C<x;C++){const G=new Uint8Array(F*M);for(let ae=0,oe=G.length;ae<oe;ae++)G[ae]=k;const Z={width:F,height:M,items:G};this.levels.push(Z),F=Math.ceil(F/2),M=Math.ceil(M/2)}}reset(F,M,k){let x=0;for(;x<this.levels.length;){const C=this.levels[x],G=F+M*C.width;C.index=G;const Z=C.items[G];if(Z===255)break;if(Z>
24k)return this.currentLevel=x,this.propagateValues(),!1;F>>=1,M>>=1,x++}return this.currentLevel=x-1,!0}incrementValue(F){const M=this.levels[this.currentLevel];M.items[M.index]=F+1,this.propagateValues()}propagateValues(){let F=this.currentLevel,M=this.levels[F];const k=M.items[M.index];for(;--F>=0;)M=this.levels[F],M.items[M.index]=k}nextLevel(){let F=this.currentLevel,M=this.levels[F];const k=M.items[M.index];return M.items[M.index]=255,F--,F<0?!1:(this.currentLevel=F,M=this.levels[F],M.items[M.index]=k,!0)}}const L=class L{constructor(F,M,k,x,C){this.width=F,this.height=M;let G;k==="HH"?G=L.HHContextLabel:k==="HL"?G=L.HLContextLabel:G=L.LLAndLHContextsLabel,this.contextLabelTable=G;const Z=F*M;this.neighborsSignificance=new Uint8Array(Z),this.coefficentsSign=new Uint8Array(Z);let ae;C>14?ae=new Uint32Array(Z):C>6?ae=new Uint16Array(Z):ae=new Uint8Array(Z),this.coefficentsMagnitude=ae,this.processingFlags=new Uint8Array(Z);const oe=new Uint8Array(Z);if(x!==0)for(let te=0;te<Z;te++)oe[te]=x;this.bitsDecoded=oe,this.reset()}setDecoder(F){this.decoder=F}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[L.UNIFORM_CONTEXT]=92,this.contexts[L.RUNLENGTH_CONTEXT]=6}setNeighborsSignificance(F,M,k){const x=this.neighborsSignificance,C=this.width,G=this.height,Z=M>0,ae=M+1<C;let oe;F>0&&(oe=k-C,Z&&(x[oe-1]+=16),ae&&(x[oe+1]+=16),x[oe]+=4),F+1<G&&(oe=k+C,Z&&(x[oe-1]+=16),ae&&(x[oe+1]+=16),x[oe]+=4),Z&&(x[k-1]+=1),ae&&(x[k+1]+=1),x[k]|=128}runSignificancePropagationPass(){const F=this.decoder,M=this.width,k=this.height,x=this.coefficentsMagnitude,C=this.coefficentsSign,G=this.neighborsSignificance,Z=this.processingFlags,ae=this.contexts,oe=this.contextLabelTable,te=this.bitsDecoded,K=-2,v=1,$=2;for(let d=0;d<k;d+=4)for(let w=0;w<M;w++){let S=d*M+w;for(let z=0;z<4;z++,S+=M){const W=d+z;if(W>=k)break;if(Z[S]&=K,x[S]||!G[S])continue;const ne=oe[G[S]];if(F.readBit(ae,ne)){const D=this.decodeSignBit(W,w,S);C[S]=D,x[S]=1,this.setNeighborsSignificance(W,w,S),Z[S]|=$}te[S]++,Z[S]|=v}}}decodeSignBit(F,M,k){const x=this.width,C=this.height,G=this.coefficentsMagnitude,Z=this.coefficentsSign;let ae,oe,te,K,v,$;K=M>0&&G[k-1]!==0,M+1<x&&G[k+1]!==0?(te=Z[k+1],K?(oe=Z[k-1],ae=1-te-oe):ae=1-te-te):K?(oe=Z[k-1],ae=1-oe-oe):ae=0;const d=3*ae;return K=F>0&&G[k-x]!==0,F+1<C&&G[k+x]!==0?(te=Z[k+x],K?(oe=Z[k-x],ae=1-te-oe+d):ae=1-te-te+d):K?(oe=Z[k-x],ae=1-oe-oe+d):ae=d,ae>=0?(v=9+ae,$=this.decoder.readBit(this.contexts,v)):(v=9-ae,$=this.decoder.readBit(this.contexts,v)^1),$}runMagnitudeRefinementPass(){const F=this.decoder,M=this.width,k=this.height,x=this.coefficentsMagnitude,C=this.neighborsSignificance,G=this.contexts,Z=this.bitsDecoded,ae=this.processingFlags,oe=1,te=2,K=M*k,v=M*4;for(let $=0,d;$<K;$=d){d=Math.min(K,$+v);for(let w=0;w<M;w++)for(let S=$+w;S<d;S+=M){if(!x[S]||ae[S]&oe)continue;let z=16;ae[S]&te&&(ae[S]^=te,z=(C[S]&127)===0?15:14);const W=F.readBit(G,z);x[S]=x[S]<<1|W,Z[S]++,ae[S]|=oe}}}runCleanupPass(){const F=this.decoder,M=this.width,k=this.height,x=this.neighborsSignificance,C=this.coefficentsMagnitude,G=this.coefficentsSign,Z=this.contexts,ae=this.contextLabelTable,oe=this.bitsDecoded,te=this.processingFlags,K=1,v=2,$=M,d=M*2,w=M*3;let S;for(let z=0;z<k;z=S){S=Math.min(z+4,k);const W=z*M,ne=z+3<k;for(let Q=0;Q<M;Q++){const D=W+Q,Y=ne&&te[D]===0&&te[D+$]===0&&te[D+d]===0&&te[D+w]===0&&x[D]===0&&x[D+$]===0&&x[D+d]===0&&x[D+w]===0;let ie=0,ee=D,se=z,ce;if(Y){if(!F.readBit(Z,L.RUNLENGTH_CONTEXT)){oe[D]++,oe[D+$]++,oe[D+d]++,oe[D+w]++;continue}ie=F.readBit(Z,L.UNIFORM_CONTEXT)<<1|F.readBit(Z,L.UNIFORM_CONTEXT),ie!==0&&(se=z+ie,ee+=ie*M),ce=this.decodeSignBit(se,Q,ee),G[ee]=ce,C[ee]=1,this.setNeighborsSignificance(se,Q,ee),te[ee]|=v,ee=D;for(let de=z;de<=se;de++,ee+=M)oe[ee]++;ie++}for(se=z+ie;se<S;se++,ee+=M){if(C[ee]||te[ee]&K)continue;const le=ae[x[ee]];F.readBit(Z,le)===1&&(ce=this.decodeSignBit(se,Q,ee),G[ee]=ce,C[ee]=1,this.setNeighborsSignificance(se,Q,ee),te[ee]|=v),oe[ee]++}}}}checkSegmentationSymbol(){const F=this.decoder,M=this.contexts;if((F.readBit(M,L.UNIFORM_CONTEXT)<<3|F.readBit(M,L.UNIFORM_CONTEXT)<<2|F.readBit(M,L.UNIFORM_CONTEXT)<<1|F.readBit(M,L.UNIFORM_CONTEXT))!==10)throw new e("Invalid segmentation symbol")}};jt(L,"UNIFORM_CONTEXT",17),jt(L,"RUNLENGTH_CONTEXT",18),jt(L,"LLAndLHContextsLabel",new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8])),jt(L,"HLContextLabel",new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8])),jt(L,"HHContextLabel",new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]));let o=L;class m{constructor(){this.constructor===m&&(0,n.unreachable)("Cannot initialize Transform.")}calculate(F,M,k){let x=F[0];for(let C=1,G=F.length;C<G;C++)x=this.iterate(x,F[C],M,k);return x}extend(F,M,k){let x=M-1,C=M+1,G=M+k-2,Z=M+k;F[x--]=F[C++],F[Z++]=F[G--],F[x--]=F[C++],F[Z++]=F[G--],F[x--]=F[C++],F[Z++]=F[G--],F[x]=F[C],F[Z]=F[G]}filter(F,M,k){(0,n.unreachable)("Abstract method `filter` called")}iterate(F,M,k,x){const C=F.width,G=F.height;let Z=F.items;const ae=M.width,oe=M.height,te=M.items;let K,v,$,d,w,S;for($=0,K=0;K<G;K++)for(d=K*2*ae,v=0;v<C;v++,$++,d+=2)te[d]=Z[$];Z=F.items=null;const z=4,W=new Float32Array(ae+2*z);if(ae===1){if(k&1)for(S=0,$=0;S<oe;S++,$+=ae)te[$]*=.5}else for(S=0,$=0;S<oe;S++,$+=ae)W.set(te.subarray($,$+ae),z),this.extend(W,z,ae),this.filter(W,z,ae),te.set(W.subarray(z,z+ae),$);let ne=16;const Q=[];for(K=0;K<ne;K++)Q.push(new Float32Array(oe+2*z));let D,Y=0;
24if(F=z+oe,oe===1){if(x&1)for(w=0;w<ae;w++)te[w]*=.5}else for(w=0;w<ae;w++){if(Y===0){for(ne=Math.min(ae-w,ne),$=w,d=z;d<F;$+=ae,d++)for(D=0;D<ne;D++)Q[D][d]=te[$+D];Y=ne}Y--;const ie=Q[Y];if(this.extend(ie,z,oe),this.filter(ie,z,oe),Y===0)for($=w-ne+1,d=z;d<F;$+=ae,d++)for(D=0;D<ne;D++)te[$+D]=Q[D][d]}return{width:ae,height:oe,items:te}}}class h extends m{filter(F,M,k){const x=k>>1;M|=0;let C,G,Z,ae;const oe=-1.586134342059924,te=-.052980118572961,K=.882911075530934,v=.443506852043971,$=1.230174104914001,d=1/$;for(C=M-3,G=x+4;G--;C+=2)F[C]*=d;for(C=M-2,Z=v*F[C-1],G=x+3;G--&&(ae=v*F[C+1],F[C]=$*F[C]-Z-ae,G--);C+=2)C+=2,Z=v*F[C+1],F[C]=$*F[C]-Z-ae;for(C=M-1,Z=K*F[C-1],G=x+2;G--&&(ae=K*F[C+1],F[C]-=Z+ae,G--);C+=2)C+=2,Z=K*F[C+1],F[C]-=Z+ae;for(C=M,Z=te*F[C-1],G=x+1;G--&&(ae=te*F[C+1],F[C]-=Z+ae,G--);C+=2)C+=2,Z=te*F[C+1],F[C]-=Z+ae;if(x!==0)for(C=M+1,Z=oe*F[C-1],G=x;G--&&(ae=oe*F[C+1],F[C]-=Z+ae,G--);C+=2)C+=2,Z=oe*F[C+1],F[C]-=Z+ae}}class A extends m{filter(F,M,k){const x=k>>1;M|=0;let C,G;for(C=M,G=x+1;G--;C+=2)F[C]-=F[C-1]+F[C+1]+2>>2;for(C=M+1,G=x;G--;C+=2)F[C]+=F[C-1]+F[C+1]>>1}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.LZWStream=void 0;var n=re(18);class P extends n.DecodeStream{constructor(e,t,l){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;const V=4096,J={earlyChange:l,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(V),dictionaryLengths:new Uint16Array(V),dictionaryPrevCodes:new Uint16Array(V),currentSequence:new Uint8Array(V),currentSequenceLength:0};for(let B=0;B<256;++B)J.dictionaryValues[B]=B,J.dictionaryLengths[B]=1;this.lzwState=J}readBits(e){let t=this.bitsCached,l=this.cachedData;for(;t<e;){const V=this.str.getByte();if(V===-1)return this.eof=!0,null;l=l<<8|V,t+=8}return this.bitsCached=t-=e,this.cachedData=l,this.lastCode=null,l>>>t&(1<<e)-1}readBlock(){let l=1024,V,J,B;const I=this.lzwState;if(!I)return;const f=I.earlyChange;let g=I.nextCode;const a=I.dictionaryValues,_=I.dictionaryLengths,y=I.dictionaryPrevCodes;let O=I.codeLength,N=I.prevCode;const X=I.currentSequence;let R=I.currentSequenceLength,q=0,b=this.bufferLength,E=this.ensureBuffer(this.bufferLength+l);for(V=0;V<512;V++){const c=this.readBits(O),u=R>0;if(c<256)X[0]=c,R=1;else if(c>=258)if(c<g)for(R=_[c],J=R-1,B=c;J>=0;J--)X[J]=a[B],B=y[B];else X[R++]=X[0];else if(c===256){O=9,g=258,R=0;continue}else{this.eof=!0,delete this.lzwState;break}if(u&&(y[g]=N,_[g]=_[N]+1,a[g]=X[0],g++,O=g+f&g+f-1?O:Math.min(Math.log(g+f)/.6931471805599453+1,12)|0),N=c,q+=R,l<q){do l+=512;while(l<q);E=this.ensureBuffer(this.bufferLength+l)}for(J=0;J<R;J++)E[b++]=X[J]}I.nextCode=g,I.codeLength=O,I.prevCode=N,I.currentSequenceLength=R,this.bufferLength=b}}p.LZWStream=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PredictorStream=void 0;var n=re(18),P=re(4),j=re(2);class e extends n.DecodeStream{constructor(l,V,J){if(super(V),!(J instanceof P.Dict))return l;const B=this.predictor=J.get("Predictor")||1;if(B<=1)return l;if(B!==2&&(B<10||B>15))throw new j.FormatError(`Unsupported predictor: ${B}`);this.readBlock=B===2?this.readBlockTiff:this.readBlockPng,this.str=l,this.dict=l.dict;const I=this.colors=J.get("Colors")||1,f=this.bits=J.get("BPC","BitsPerComponent")||8,g=this.columns=J.get("Columns")||1;return this.pixBytes=I*f+7>>3,this.rowBytes=g*I*f+7>>3,this}readBlockTiff(){const l=this.rowBytes,V=this.bufferLength,J=this.ensureBuffer(V+l),B=this.bits,I=this.colors,f=this.str.getBytes(l);if(this.eof=!f.length,this.eof)return;let g=0,a=0,_=0,y=0,O=V,N;if(B===1&&I===1)for(N=0;N<l;++N){let X=f[N]^g;X^=X>>1,X^=X>>2,X^=X>>4,g=(X&1)<<7,J[O++]=X}else if(B===8){for(N=0;N<I;++N)J[O++]=f[N];for(;N<l;++N)J[O]=J[O-I]+f[N],O++}else if(B===16){const X=I*2;for(N=0;N<X;++N)J[O++]=f[N];for(;N<l;N+=2){const R=((f[N]&255)<<8)+(f[N+1]&255)+((J[O-X]&255)<<8)+(J[O-X+1]&255);J[O++]=R>>8&255,J[O++]=R&255}}else{const X=new Uint8Array(I+1),R=(1<<B)-1;let q=0,b=V;const E=this.columns;for(N=0;N<E;++N)for(let c=0;c<I;
24++c)_<B&&(g=g<<8|f[q++]&255,_+=8),X[c]=X[c]+(g>>_-B)&R,_-=B,a=a<<B|X[c],y+=B,y>=8&&(J[b++]=a>>y-8&255,y-=8);y>0&&(J[b++]=(a<<8-y)+(g&(1<<8-y)-1))}this.bufferLength+=l}readBlockPng(){const l=this.rowBytes,V=this.pixBytes,J=this.str.getByte(),B=this.str.getBytes(l);if(this.eof=!B.length,this.eof)return;const I=this.bufferLength,f=this.ensureBuffer(I+l);let g=f.subarray(I-l,I);g.length===0&&(g=new Uint8Array(l));let a,_=I,y,O;switch(J){case 0:for(a=0;a<l;++a)f[_++]=B[a];break;case 1:for(a=0;a<V;++a)f[_++]=B[a];for(;a<l;++a)f[_]=f[_-V]+B[a]&255,_++;break;case 2:for(a=0;a<l;++a)f[_++]=g[a]+B[a]&255;break;case 3:for(a=0;a<V;++a)f[_++]=(g[a]>>1)+B[a];for(;a<l;++a)f[_]=(g[a]+f[_-V]>>1)+B[a]&255,_++;break;case 4:for(a=0;a<V;++a)y=g[a],O=B[a],f[_++]=y+O;for(;a<l;++a){y=g[a];const N=g[a-V],X=f[_-V],R=X+y-N;let q=R-X;q<0&&(q=-q);let b=R-y;b<0&&(b=-b);let E=R-N;E<0&&(E=-E),O=B[a],q<=b&&q<=E?f[_++]=X+O:b<=E?f[_++]=y+O:f[_++]=N+O}break;default:throw new j.FormatError(`Unsupported predictor: ${J}`)}this.bufferLength+=l}}p.PredictorStream=e},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.RunLengthStream=void 0;var n=re(18);class P extends n.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||e[0]===128){this.eof=!0;return}let t,l=this.bufferLength,V=e[0];if(V<128){if(t=this.ensureBuffer(l+V+1),t[l++]=e[1],V>0){const J=this.str.getBytes(V);t.set(J,l),l+=V}}else{V=257-V;const J=e[1];t=this.ensureBuffer(l+V+1);for(let B=0;B<V;B++)t[l++]=J}this.bufferLength=l}}p.RunLengthStream=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Font=p.ErrorFont=void 0;var n=re(2),P=re(35),j=re(38),e=re(40),t=re(39),l=re(37),V=re(41),J=re(42),B=re(43),I=re(44),f=re(45),g=re(46),a=re(14),_=re(47),y=re(3),O=re(8),N=re(48);const X=[[57344,63743],[1048576,1114109]],R=1e3,q=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"],b=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function E(D){if(!D.fontMatrix||D.fontMatrix[0]===n.FONT_IDENTITY_MATRIX[0])return;const Y=.001/D.fontMatrix[0],ie=D.widths;for(const ee in ie)ie[ee]*=Y;D.defaultWidth*=Y}function c(D,Y,ie){if(D.isInternalFont||D.hasIncludedToUnicodeMap||D.hasEncoding||D.toUnicode instanceof J.IdentityToUnicodeMap||!Y||ie.length===0||D.defaultEncoding===l.WinAnsiEncoding)return;for(const le of ie)if(!oe(le))return;const ee=l.WinAnsiEncoding,se=[],ce=(0,t.getGlyphsUnicode)();for(const le in ee){const de=ee[le];if(de==="")continue;const he=ce[de];he!==void 0&&(se[le]=String.fromCharCode(he))}se.length>0&&D.toUnicode.amend(se)}function u(D,Y){if(D.isInternalFont||D.hasIncludedToUnicodeMap||Y===D.defaultEncoding||D.toUnicode instanceof J.IdentityToUnicodeMap)return;const ie=[],ee=(0,t.getGlyphsUnicode)();for(const se in Y){if(D.hasEncoding&&(D.baseEncodingName||D.differences[se]!==void 0))continue;const ce=Y[se],le=(0,e.getUnicodeForGlyph)(ce,ee);le!==-1&&(ie[se]=String.fromCharCode(le))}ie.length>0&&D.toUnicode.amend(ie)}function T(D){if(!D.fallbackToUnicode||D.toUnicode instanceof J.IdentityToUnicodeMap)return;const Y=[];for(const ie in D.fallbackToUnicode)D.toUnicode.has(ie)||(Y[ie]=D.fallbackToUnicode[ie]);Y.length>0&&D.toUnicode.amend(Y)}class r{constructor(Y,ie,ee,se,ce,le,de,he,me){this.originalCharCode=Y,this.fontChar=ie,this.unicode=ee,this.accent=se,this.width=ce,this.vmetric=le,this.operatorListId=de,this.isSpace=he,this.isInFont=me}get category(){return(0,n.shadow)(this,"category",(0,e.getCharUnicodeCategory)(this.unicode),!0)}}function s(D,Y){return(D<<8)+Y}function o(D,Y,ie){D[Y+1]=ie,D[Y]=ie>>>8}function m(D,Y){const ie=(D<<8)+Y;return ie&32768?ie-65536:ie}function h(D,Y,ie,ee){return(D<<24)+(Y<<16)+(ie<<8)+ee}function A(D){return String.fromCharCode(D>>8&255,D&255)}function L(D){return D>32767?D=32767:D<-32768&&(D=-32768),String.fromCharCode(D>>8&255,D&255)}function H(D){const Y=D.peekBytes(4);
24return(0,y.readUint32)(Y,0)===65536||(0,n.bytesToString)(Y)==="true"}function F(D){const Y=D.peekBytes(4);return(0,n.bytesToString)(Y)==="ttcf"}function M(D){const Y=D.peekBytes(4);return(0,n.bytesToString)(Y)==="OTTO"}function k(D){const Y=D.peekBytes(2);return Y[0]===37&&Y[1]===33||Y[0]===128&&Y[1]===1}function x(D){const Y=D.peekBytes(4);return Y[0]>=1&&Y[3]>=1&&Y[3]<=4}function C(D,{type:Y,subtype:ie,composite:ee}){let se,ce;return H(D)||F(D)?se=ee?"CIDFontType2":"TrueType":M(D)?se=ee?"CIDFontType2":"OpenType":k(D)?ee?se="CIDFontType0":se=Y==="MMType1"?"MMType1":"Type1":x(D)?ee?(se="CIDFontType0",ce="CIDFontType0C"):(se=Y==="MMType1"?"MMType1":"Type1",ce="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),se=Y,ce=ie),[se,ce]}function G(D,Y){for(const ie in Y)D[+ie]=Y[ie]}function Z(D,Y,ie){const ee=[];let se;for(let ce=0,le=D.length;ce<le;ce++)se=(0,e.getUnicodeForGlyph)(D[ce],Y),se!==-1&&(ee[ce]=se);for(const ce in ie)se=(0,e.getUnicodeForGlyph)(ie[ce],Y),se!==-1&&(ee[+ce]=se);return ee}function ae(D){return D.platform===1&&D.encoding===0&&D.language===0}function oe(D){return D.platform===3&&D.encoding===1&&D.language===1033}function te(D,Y,ie=!1){switch(Y.length){case 1:return Y.charCodeAt(0);case 2:return Y.charCodeAt(0)<<8|Y.charCodeAt(1)}const ee=`Unsupported CID string (charCode ${D}): "${Y}".`;if(ie)throw new n.FormatError(ee);return(0,n.warn)(ee),Y}function K(D,Y,ie,ee){const se=Object.create(null),ce=new Map,le=[],de=new Set;let he=0,Se=X[he][0],pe=X[he][1];const ge=Ae=>X[0][0]<=Ae&&Ae<=X[0][1]||X[1][0]<=Ae&&Ae<=X[1][1];for(let Ae in D){Ae|=0;let Me=D[Ae];if(!Y(Me))continue;if(Se>pe){if(he++,he>=X.length){(0,n.warn)("Ran out of space in font private use area.");break}Se=X[he][0],pe=X[he][1]}const xe=Se++;Me===0&&(Me=ie);let ue=ee.get(Ae);typeof ue=="string"&&(ue=ue.codePointAt(0)),ue&&!ge(ue)&&!de.has(Me)&&(ce.set(ue,Me),de.add(Me)),se[xe]=Me,le[Ae]=xe}return{toFontChar:le,charCodeToGlyphId:se,toUnicodeExtraMap:ce,nextAvailableFontCharCode:Se}}function v(D,Y,ie){const ee=[];for(const le in D)D[le]>=ie||ee.push({fontCharCode:le|0,glyphId:D[le]});if(Y)for(const[le,de]of Y)de>=ie||ee.push({fontCharCode:le,glyphId:de});ee.length===0&&ee.push({fontCharCode:0,glyphId:0}),ee.sort(function(de,he){return de.fontCharCode-he.fontCharCode});const se=[],ce=ee.length;for(let le=0;le<ce;){const de=ee[le].fontCharCode,he=[ee[le].glyphId];++le;let me=de;for(;le<ce&&me+1===ee[le].fontCharCode&&(he.push(ee[le].glyphId),++me,++le,me!==65535););se.push([de,me,he])}return se}function $(D,Y,ie){const ee=v(D,Y,ie),se=ee.at(-1)[1]>65535?2:1;let ce="\0\0"+A(se)+"\0�\0�"+(0,n.string32)(4+se*8),le,de,he,me;for(le=ee.length-1;le>=0&&!(ee[le][0]<=65535);--le);const Se=le+1;ee[le][0]<65535&&ee[le][1]===65535&&(ee[le][1]=65534);const pe=ee[le][1]<65535?1:0,ge=Se+pe,Ae=_.OpenTypeFileBuilder.getSearchParams(ge,2);let Me="",xe="",ue="",fe="",ke="",ye=0,$e,Xe,Ze,Fe;for(le=0,de=Se;le<de;le++){$e=ee[le],Xe=$e[0],Ze=$e[1],Me+=A(Xe),xe+=A(Ze),Fe=$e[2];let Ve=!0;for(he=1,me=Fe.length;he<me;++he)if(Fe[he]!==Fe[he-1]+1){Ve=!1;break}if(Ve){const tt=Fe[0];ue+=A(tt-Xe&65535),fe+=A(0)}else{const tt=(ge-le)*2+ye*2;for(ye+=Ze-Xe+1,ue+=A(0),fe+=A(tt),he=0,me=Fe.length;he<me;++he)ke+=A(Fe[he])}}pe>0&&(xe+="ÿÿ",Me+="ÿÿ",ue+="\0�",fe+="\0\0");const nt="\0\0"+A(2*ge)+A(Ae.range)+A(Ae.entry)+A(Ae.rangeShift)+xe+"\0\0"+Me+ue+fe+ke;let We="",Ee="";if(se>1){for(ce+=`\0�\0 25`+(0,n.string32)(4+se*8+4+nt.length),We="",le=0,de=ee.length;le<de;le++){$e=ee[le],Xe=$e[0],Fe=$e[2];let Ve=Fe[0];for(he=1,me=Fe.length;he<me;++he)Fe[he]!==Fe[he-1]+1&&(Ze=$e[0]+he-1,We+=(0,n.string32)(Xe)+(0,n.string32)(Ze)+(0,n.string32)(Ve),Xe=Ze+1,Ve=Fe[he]);We+=(0,n.string32)(Xe)+(0,n.string32)($e[1])+(0,n.string32)(Ve)}Ee="\0\f\0\0"+(0,n.string32)(We.length+16)+"\0\0\0\0"+(0,n.string32)(We.length/12)}return ce+"\0�"+A(nt.length+4)+nt+Ee+We}function d(D,Y){Y.pos=(Y.start||0)+D.offset;const ie=Y.getUint16();Y.skip(60);const ee=Y.getUint16();if(ie<4&&ee&768)return!1;const se=Y.getUint16(),ce=Y.getUint16();return se>ce||(Y.skip(6),Y.getUint16()===0)?!1:(D.data[8]=D.data[9]=0,!0)}function w(D,Y,ie){ie||(ie={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0});let ee=0,se=0,ce=0,le=0,de=null,he=0,me=-1;if(Y){for(let fe in Y)if(fe|=0,(de>fe||!de)&&(de=fe),he<fe&&(he=fe),me=(0,e.getUnicodeRangeFor)(fe,me),me<32)ee|=1<<me;else if(me<64)se|=1<<me-32;else if(me<96)ce|=1<<me-64;else if(me<123)le|=1<<me-96;else throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");he>65535&&(he=65535)}else de=0,he=255;
25const Se=D.bbox||[0,0,0,0],pe=ie.unitsPerEm||1/(D.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],ge=D.ascentScaled?1:pe/R,Ae=ie.ascent||Math.round(ge*(D.ascent||Se[3]));let Me=ie.descent||Math.round(ge*(D.descent||Se[1]));Me>0&&D.descent>0&&Se[1]<0&&(Me=-Me);const xe=ie.yMax||Ae,ue=-ie.yMin||-Me;return"\0��$�ô\0�\0\0�Â�»\0\0\0Â�Â�»\0\0�Ã\x001��\0\0\0\0�"+String.fromCharCode(D.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(ee)+(0,n.string32)(se)+(0,n.string32)(ce)+(0,n.string32)(le)+"*21*"+A(D.italicAngle?1:0)+A(de||D.firstChar)+A(he||D.lastChar)+A(Ae)+A(Me)+"\0d"+A(xe)+A(ue)+"\0\0\0\0\0\0\0\0"+A(D.xHeight)+A(D.capHeight)+A(0)+A(de||D.firstChar)+"\0�"}function S(D){const Y=Math.floor(D.italicAngle*65536);return"\0�\0\0"+(0,n.string32)(Y)+"\0\0\0\0"+(0,n.string32)(D.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function z(D){return D.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function W(D,Y){Y||(Y=[[],[]]);const ie=[Y[0][0]||"Original licence",Y[0][1]||D,Y[0][2]||"Unknown",Y[0][3]||"uniqueID",Y[0][4]||D,Y[0][5]||"Version 0.11",Y[0][6]||z(D),Y[0][7]||"Unknown",Y[0][8]||"Unknown",Y[0][9]||"Unknown"],ee=[];let se,ce,le,de,he;for(se=0,ce=ie.length;se<ce;se++){he=Y[1][se]||ie[se];const ue=[];for(le=0,de=he.length;le<de;le++)ue.push(A(he.charCodeAt(le)));ee.push(ue.join(""))}const me=[ie,ee],Se=["\0�","\0�"],pe=["\0\0","\0�"],ge=["\0\0","� "],Ae=ie.length*Se.length;let Me="\0\0"+A(Ae)+A(Ae*12+6),xe=0;for(se=0,ce=Se.length;se<ce;se++){const ue=me[se];for(le=0,de=ue.length;le<de;le++){he=ue[le];const fe=Se[se]+pe[se]+ge[se]+A(le)+A(he.length)+A(xe);Me+=fe,xe+=he.length}}return Me+=ie.join("")+ee.join(""),Me}class ne{constructor(Y,ie,ee){var me;this.name=Y,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=ee.loadedName,this.isType3Font=ee.isType3Font,this.missingFile=!1,this.cssFontInfo=ee.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let se=!!(ee.flags&j.FontFlags.Serif);if(!se&&!ee.isSimulatedFlags){const Se=Y.replaceAll(/[,_]/g,"-").split("-")[0],pe=(0,V.getSerifFonts)();for(const ge of Se.split("+"))if(pe[ge]){se=!0;break}}this.isSerifFont=se,this.isSymbolicFont=!!(ee.flags&j.FontFlags.Symbolic),this.isMonospace=!!(ee.flags&j.FontFlags.FixedPitch);let{type:ce,subtype:le}=ee;this.type=ce,this.subtype=le,this.systemFontInfo=ee.systemFontInfo;const de=Y.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!de,this.isInvalidPDFjsFont?this.fallbackName=de[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",(me=this.systemFontInfo)!=null&&me.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=ee.differences,this.widths=ee.widths,this.defaultWidth=ee.defaultWidth,this.composite=ee.composite,this.cMap=ee.cMap,this.capHeight=ee.capHeight/R,this.ascent=ee.ascent/R,this.descent=ee.descent/R,this.lineHeight=this.ascent-this.descent,this.fontMatrix=ee.fontMatrix,this.bbox=ee.bbox,this.defaultEncoding=ee.defaultEncoding,this.toUnicode=ee.toUnicode,this.toFontChar=[],ee.type==="Type3"){for(let Se=0;Se<256;Se++)this.toFontChar[Se]=this.differences[Se]||ee.defaultEncoding[Se];return}if(this.cidEncoding=ee.cidEncoding||"",this.vertical=!!ee.vertical,this.vertical&&(this.vmetrics=ee.vmetrics,this.defaultVMetrics=ee.defaultVMetrics),!ie||ie.isEmpty){ie&&(0,n.warn)('Font file is empty in "'+Y+'" ('+this.loadedName+")"),this.fallbackToSystemFont(ee);return}[ce,le]=C(ie,ee),(ce!==this.type||le!==this.subtype)&&(0,n.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${ce}/${le}.`);let he;try{switch(ce){case"MMType1":(0,n.info)("MMType1 font ("+Y+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const Se=le==="Type1C"||le==="CIDFontType0C"?new B.CFFFont(ie,ee):new N.Type1Font(Y,ie,ee);E(ee),he=this.convert(Y,Se,ee);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",he=this.checkAndRepair(Y,ie,ee),this.isOpenType&&(E(ee),ce="OpenType");break;default:throw new n.FormatError(`Font ${ce} is not supported`)}}catch(Se){(0,n.warn)(Se),this.fallbackToSystemFont(ee);return}T(ee),this.data=he,this.type=ce,this.subtype=le,this.fontMatrix=ee.fontMatrix,this.widths=ee.widths,this.defaultWidth=ee.defaultWidth,this.toUnicode=ee.toUnicode,this.seacMap=ee.
25seacMap}get renderer(){const Y=I.FontRendererFactory.create(this,j.SEAC_ANALYSIS_ENABLED);return(0,n.shadow)(this,"renderer",Y)}exportData(Y=!1){const ie=Y?[...q,...b]:q,ee=Object.create(null);let se,ce;for(se of ie)ce=this[se],ce!==void 0&&(ee[se]=ce);return ee}fallbackToSystemFont(Y){this.missingFile=!0;const{name:ie,type:ee}=this;let se=(0,j.normalizeFontName)(ie);const ce=(0,V.getStdFontMap)(),le=(0,V.getNonStdFontMap)(),de=!!ce[se],he=!!(le[se]&&ce[le[se]]);se=ce[se]||le[se]||se;const Se=(0,f.getFontBasicMetrics)()[se];Se&&(isNaN(this.ascent)&&(this.ascent=Se.ascent/R),isNaN(this.descent)&&(this.descent=Se.descent/R),isNaN(this.capHeight)&&(this.capHeight=Se.capHeight/R)),this.bold=/bold/gi.test(se),this.italic=/oblique|italic/gi.test(se),this.black=/Black/g.test(ie);const pe=/Narrow/g.test(ie);if(this.remeasure=(!de||pe)&&Object.keys(this.widths).length>0,(de||he)&&ee==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const ge=Y.cidToGidMap,Ae=[];if(G(Ae,(0,V.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(ie)?G(Ae,(0,V.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(ie)&&G(Ae,(0,V.getSupplementalGlyphMapForCalibri)()),ge){for(const Me in Ae){const xe=Ae[Me];ge[xe]!==void 0&&(Ae[+Me]=ge[xe])}ge.length!==this.toUnicode.length&&Y.hasIncludedToUnicodeMap&&this.toUnicode instanceof J.IdentityToUnicodeMap&&this.toUnicode.forEach(function(Me,xe){const ue=Ae[Me];ge[ue]===void 0&&(Ae[+Me]=xe)})}this.toUnicode instanceof J.IdentityToUnicodeMap||this.toUnicode.forEach(function(Me,xe){Ae[+Me]=xe}),this.toFontChar=Ae,this.toUnicode=new J.ToUnicodeMap(Ae)}else if(/Symbol/i.test(se))this.toFontChar=Z(l.SymbolSetEncoding,(0,t.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(se))this.toFontChar=Z(l.ZapfDingbatsEncoding,(0,t.getDingbatsGlyphsUnicode)(),this.differences);else if(de){const ge=Z(this.defaultEncoding,(0,t.getGlyphsUnicode)(),this.differences);ee==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof J.IdentityToUnicodeMap)&&this.toUnicode.forEach(function(Ae,Me){ge[+Ae]=Me}),this.toFontChar=ge}else{const ge=(0,t.getGlyphsUnicode)(),Ae=[];this.toUnicode.forEach((Me,xe)=>{if(!this.composite){const ue=this.differences[Me]||this.defaultEncoding[Me],fe=(0,e.getUnicodeForGlyph)(ue,ge);fe!==-1&&(xe=fe)}Ae[+Me]=xe}),this.composite&&this.toUnicode instanceof J.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(ie)&&G(Ae,(0,V.getGlyphMapForStandardFonts)()),this.toFontChar=Ae}T(Y),this.loadedName=se.split("-")[0]}
25checkAndRepair(Y,ie,ee){var lt,Nt,Ut;const se=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function ce(Ie,ve){const Te=Object.create(null);Te["OS/2"]=null,Te.cmap=null,Te.head=null,Te.hhea=null,Te.hmtx=null,Te.maxp=null,Te.name=null,Te.post=null;for(let De=0;De<ve;De++){const Le=le(Ie);se.includes(Le.tag)&&Le.length!==0&&(Te[Le.tag]=Le)}return Te}function le(Ie){const ve=Ie.getString(4),Te=Ie.getInt32()>>>0,De=Ie.getInt32()>>>0,Le=Ie.getInt32()>>>0,Qe=Ie.pos;Ie.pos=Ie.start||0,Ie.skip(De);const Be=Ie.getBytes(Le);return Ie.pos=Qe,ve==="head"&&(Be[8]=Be[9]=Be[10]=Be[11]=0,Be[17]|=32),{tag:ve,checksum:Te,length:Le,offset:De,data:Be}}function de(Ie){return{version:Ie.getString(4),numTables:Ie.getUint16(),searchRange:Ie.getUint16(),entrySelector:Ie.getUint16(),rangeShift:Ie.getUint16()}}function he(Ie){const ve=Ie.getString(4);(0,n.assert)(ve==="ttcf","Must be a TrueType Collection font.");const Te=Ie.getUint16(),De=Ie.getUint16(),Le=Ie.getInt32()>>>0,Qe=[];for(let Pe=0;Pe<Le;Pe++)Qe.push(Ie.getInt32()>>>0);const Be={ttcTag:ve,majorVersion:Te,minorVersion:De,numFonts:Le,offsetTable:Qe};switch(Te){case 1:return Be;case 2:return Be.dsigTag=Ie.getInt32()>>>0,Be.dsigLength=Ie.getInt32()>>>0,Be.dsigOffset=Ie.getInt32()>>>0,Be}throw new n.FormatError(`Invalid TrueType Collection majorVersion: ${Te}.`)}function me(Ie,ve){var Be;const{numFonts:Te,offsetTable:De}=he(Ie),Le=ve.split("+");let Qe;for(let Pe=0;Pe<Te;Pe++){Ie.pos=(Ie.start||0)+De[Pe];const He=de(Ie),st=ce(Ie,He.numTables);if(!st.name)throw new n.FormatError('TrueType Collection font must contain a "name" table.');const[xt]=ue(st.name);for(let et=0,at=xt.length;et<at;et++)for(let ut=0,qe=xt[et].length;ut<qe;ut++){const rt=(Be=xt[et][ut])==null?void 0:Be.replaceAll(/\s/g,"");if(rt){if(rt===ve)return{header:He,tables:st};if(!(Le.length<2))for(const _e of Le)rt===_e&&(Qe={name:_e,header:He,tables:st})}}}if(Qe)return(0,n.warn)(`TrueType Collection does not contain "${ve}" font, falling back to "${Qe.name}" font instead.`),{header:Qe.header,tables:Qe.tables};throw new n.FormatError(`TrueType Collection does not contain "${ve}" font.`)}function Se(Ie,ve,Te,De){if(!Ie)return(0,n.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let Le,Qe=(ve.start||0)+Ie.offset;ve.pos=Qe,ve.skip(2);const Be=ve.getUint16();let Pe,He=!1;for(let qe=0;qe<Be;qe++){const rt=ve.getUint16(),_e=ve.getUint16(),ht=ve.getInt32()>>>0;let mt=!1;if(!((Pe==null?void 0:Pe.platformId)===rt&&(Pe==null?void 0:Pe.encodingId)===_e)){if(rt===0&&(_e===0||_e===1||_e===3))mt=!0;else if(rt===1&&_e===0)mt=!0;else if(rt===3&&_e===1&&(De||!Pe))mt=!0,Te||(He=!0);else if(Te&&rt===3&&_e===0){mt=!0;let $t=!0;if(qe<Be-1){const ot=ve.peekBytes(2);s(ot[0],ot[1])<rt&&($t=!1)}$t&&(He=!0)}if(mt&&(Pe={platformId:rt,encodingId:_e,offset:ht}),He)break}}if(Pe&&(ve.pos=Qe+Pe.offset),!Pe||ve.peekByte()===-1)return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};const st=ve.getUint16();let xt=!1;const et=[];let at,ut;if(st===0){for(ve.skip(4),at=0;at<256;at++){const qe=ve.getByte();qe&&et.push({charCode:at,glyphId:qe})}xt=!0}else if(st===2){ve.skip(4);const qe=[];let rt=0;for(let ht=0;ht<256;ht++){const mt=ve.getUint16()>>3;qe.push(mt),rt=Math.max(mt,rt)}const _e=[];for(let ht=0;ht<=rt;ht++)_e.push({firstCode:ve.getUint16(),entryCount:ve.getUint16(),idDelta:m(ve.getByte(),ve.getByte()),idRangePos:ve.pos+ve.getUint16()});for(let ht=0;ht<256;ht++)if(qe[ht]===0)ve.pos=_e[0].idRangePos+2*ht,ut=ve.getUint16(),et.push({charCode:ht,glyphId:ut});else{const mt=_e[qe[ht]];for(at=0;at<mt.entryCount;at++){const $t=(ht<<8)+at+mt.firstCode;ve.pos=mt.idRangePos+2*at,ut=ve.getUint16(),ut!==0&&(ut=(ut+mt.idDelta)%65536),et.push({charCode:$t,glyphId:ut})}}}else if(st===4){ve.skip(4);const qe=ve.getUint16()>>1;ve.skip(6);const rt=[];let _e;for(_e=0;_e<qe;_e++)rt.push({end:ve.getUint16()});for(ve.skip(2),_e=0;_e<qe;_e++)rt[_e].start=ve.getUint16();for(_e=0;_e<qe;_e++)rt[_e].delta=ve.getUint16();let ht=0,mt;for(_e=0;_e<qe;_e++){Le=rt[_e];const ot=ve.getUint16();if(!ot){Le.offsetIndex=-1;continue}mt=(ot>>1)-(qe-_e),Le.offsetIndex=mt,ht=Math.max(ht,mt+Le.end-Le.start+1)}const $t=[];for(at=0;at<ht;
25at++)$t.push(ve.getUint16());for(_e=0;_e<qe;_e++){Le=rt[_e],Qe=Le.start;const ot=Le.end,ct=Le.delta;for(mt=Le.offsetIndex,at=Qe;at<=ot;at++)at!==65535&&(ut=mt<0?at:$t[mt+at-Qe],ut=ut+ct&65535,et.push({charCode:at,glyphId:ut}))}}else if(st===6){ve.skip(4);const qe=ve.getUint16(),rt=ve.getUint16();for(at=0;at<rt;at++){ut=ve.getUint16();const _e=qe+at;et.push({charCode:_e,glyphId:ut})}}else if(st===12){ve.skip(10);const qe=ve.getInt32()>>>0;for(at=0;at<qe;at++){const rt=ve.getInt32()>>>0,_e=ve.getInt32()>>>0;let ht=ve.getInt32()>>>0;for(let mt=rt;mt<=_e;mt++)et.push({charCode:mt,glyphId:ht++})}}else return(0,n.warn)("cmap table has unsupported format: "+st),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};et.sort(function(qe,rt){return qe.charCode-rt.charCode});for(let qe=1;qe<et.length;qe++)et[qe-1].charCode===et[qe].charCode&&(et.splice(qe,1),qe--);return{platformId:Pe.platformId,encodingId:Pe.encodingId,mappings:et,hasShortCmap:xt}}function pe(Ie,ve,Te,De,Le,Qe){if(!ve){Te&&(Te.data=null);return}Ie.pos=(Ie.start||0)+ve.offset,Ie.pos+=4,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2;const Be=Ie.getUint16();Ie.pos+=8,Ie.pos+=2;let Pe=Ie.getUint16();Be!==0&&(s(De.data[44],De.data[45])&2||(ve.data[22]=0,ve.data[23]=0)),Pe>Le&&((0,n.info)(`The numOfMetrics (${Pe}) should not be greater than the numGlyphs (${Le}).`),Pe=Le,ve.data[34]=(Pe&65280)>>8,ve.data[35]=Pe&255);const st=Le-Pe-(Te.length-Pe*4>>1);if(st>0){const xt=new Uint8Array(Te.length+st*2);xt.set(Te.data),Qe&&(xt[Te.length]=Te.data[2],xt[Te.length+1]=Te.data[3]),Te.data=xt}}function ge(Ie,ve,Te,De,Le,Qe){const Be={length:0,sizeOfInstructions:0};if(ve<0||ve>=Ie.length||Te>Ie.length||Te-ve<=12)return Be;const Pe=Ie.subarray(ve,Te),He=m(Pe[2],Pe[3]),st=m(Pe[4],Pe[5]),xt=m(Pe[6],Pe[7]),et=m(Pe[8],Pe[9]);He>xt&&(o(Pe,2,xt),o(Pe,6,He)),st>et&&(o(Pe,4,et),o(Pe,8,st));const at=m(Pe[0],Pe[1]);if(at<0)return at<-1||(De.set(Pe,Le),Be.length=Pe.length),Be;let ut,qe=10,rt=0;for(ut=0;ut<at;ut++)rt=(Pe[qe]<<8|Pe[qe+1])+1,qe+=2;const _e=qe,ht=Pe[qe]<<8|Pe[qe+1];Be.sizeOfInstructions=ht,qe+=2+ht;const mt=qe;let $t=0;for(ut=0;ut<rt;ut++){const ct=Pe[qe++];ct&192&&(Pe[qe-1]=ct&63);let kt=2;ct&2?kt=1:ct&16&&(kt=0);let Pt=2;ct&4?Pt=1:ct&32&&(Pt=0);const zt=kt+Pt;if($t+=zt,ct&8){const Zt=Pe[qe++];Zt===0&&(Pe[qe-1]^=8),ut+=Zt,$t+=Zt*zt}}if($t===0)return Be;let ot=qe+$t;return ot>Pe.length?Be:!Qe&&ht>0?(De.set(Pe.subarray(0,_e),Le),De.set([0,0],Le+_e),De.set(Pe.subarray(mt,ot),Le+_e+2),ot-=ht,Pe.length-ot>3&&(ot=ot+3&-4),Be.length=ot,Be):Pe.length-ot>3?(ot=ot+3&-4,De.set(Pe.subarray(0,ot),Le),Be.length=ot,Be):(De.set(Pe,Le),Be.length=Pe.length,Be)}function Ae(Ie,ve,Te){const De=Ie.data,Le=h(De[0],De[1],De[2],De[3]);Le>>16!==1&&((0,n.info)("Attempting to fix invalid version in head table: "+Le),De[0]=0,De[1]=1,De[2]=0,De[3]=0);const Qe=s(De[50],De[51]);if(Qe<0||Qe>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+Qe);const Be=ve+1;if(Te===Be<<1)De[50]=0,De[51]=0;else if(Te===Be<<2)De[50]=0,De[51]=1;else throw new n.FormatError("Could not fix indexToLocFormat: "+Qe)}}function Me(Ie,ve,Te,De,Le,Qe,Be){let Pe,He,st;De?(Pe=4,He=function(kt,Pt){return kt[Pt]<<24|kt[Pt+1]<<16|kt[Pt+2]<<8|kt[Pt+3]},st=function(kt,Pt,zt){kt[Pt]=zt>>>24&255,kt[Pt+1]=zt>>16&255,kt[Pt+2]=zt>>8&255,kt[Pt+3]=zt&255}):(Pe=2,He=function(kt,Pt){return kt[Pt]<<9|kt[Pt+1]<<1},st=function(kt,Pt,zt){kt[Pt]=zt>>9&255,kt[Pt+1]=zt>>1&255});const xt=Qe?Te+1:Te,et=Pe*(1+xt),at=new Uint8Array(et);at.set(Ie.data.subarray(0,et)),Ie.data=at;const ut=ve.data,qe=ut.length,rt=new Uint8Array(qe);let _e,ht;const mt=[];for(_e=0,ht=0;_e<Te+1;_e++,ht+=Pe){let ct=He(at,ht);ct>qe&&(ct=qe),mt.push({index:_e,offset:ct,endOffset:0})}for(mt.sort((ct,kt)=>ct.offset-kt.offset),_e=0;_e<Te;
25_e++)mt[_e].endOffset=mt[_e+1].offset;for(mt.sort((ct,kt)=>ct.index-kt.index),_e=0;_e<Te;_e++){const{offset:ct,endOffset:kt}=mt[_e];if(ct!==0||kt!==0)break;const Pt=mt[_e+1].offset;if(Pt!==0){mt[_e].endOffset=Pt;break}}const $t=Object.create(null);let ot=0;for(st(at,0,ot),_e=0,ht=Pe;_e<Te;_e++,ht+=Pe){const ct=ge(ut,mt[_e].offset,mt[_e].endOffset,rt,ot,Le),kt=ct.length;kt===0&&($t[_e]=!0),ct.sizeOfInstructions>Be&&(Be=ct.sizeOfInstructions),ot+=kt,st(at,ht,ot)}if(ot===0){const ct=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(_e=0,ht=Pe;_e<xt;_e++,ht+=Pe)st(at,ht,ct.length);ve.data=ct}else if(Qe){const ct=He(at,Pe);rt.length>ct+ot?ve.data=rt.subarray(0,ct+ot):(ve.data=new Uint8Array(ct+ot),ve.data.set(rt.subarray(0,ot))),ve.data.set(rt.subarray(0,ct),ot),st(Ie.data,at.length-Pe,ot+ct)}else ve.data=rt.subarray(0,ot);return{missingGlyphs:$t,maxSizeOfInstructions:Be}}function xe(Ie,ve,Te){const De=(ie.start||0)+Ie.offset;ie.pos=De;const Le=Ie.length,Qe=De+Le,Be=ie.getInt32();ie.skip(28);let Pe,He=!0,st;switch(Be){case 65536:Pe=j.MacStandardGlyphOrdering;break;case 131072:const xt=ie.getUint16();if(xt!==Te){He=!1;break}const et=[];for(st=0;st<xt;++st){const qe=ie.getUint16();if(qe>=32768){He=!1;break}et.push(qe)}if(!He)break;const at=[],ut=[];for(;ie.pos<Qe;){const qe=ie.getByte();for(ut.length=qe,st=0;st<qe;++st)ut[st]=String.fromCharCode(ie.getByte());at.push(ut.join(""))}for(Pe=[],st=0;st<xt;++st){const qe=et[st];if(qe<258){Pe.push(j.MacStandardGlyphOrdering[qe]);continue}Pe.push(at[qe-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+Be),He=!1,ve.defaultEncoding&&(Pe=ve.defaultEncoding);break}return ve.glyphNames=Pe,He}function ue(Ie){const ve=(ie.start||0)+Ie.offset;ie.pos=ve;const Te=[[],[]],De=[],Le=Ie.length,Qe=ve+Le;if(ie.getUint16()!==0||Le<6)return[Te,De];const He=ie.getUint16(),st=ie.getUint16(),xt=12;let et,at;for(et=0;et<He&&ie.pos+xt<=Qe;et++){const ut={platform:ie.getUint16(),encoding:ie.getUint16(),language:ie.getUint16(),name:ie.getUint16(),length:ie.getUint16(),offset:ie.getUint16()};(ae(ut)||oe(ut))&&De.push(ut)}for(et=0,at=De.length;et<at;et++){const ut=De[et];if(ut.length<=0)continue;const qe=ve+st+ut.offset;if(qe+ut.length>Qe)continue;ie.pos=qe;const rt=ut.name;if(ut.encoding){let _e="";for(let ht=0,mt=ut.length;ht<mt;ht+=2)_e+=String.fromCharCode(ie.getUint16());Te[1][rt]=_e}else Te[0][rt]=ie.getString(ut.length)}return[Te,De]}const fe=[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 ke(Ie,ve){let Te=Ie.data,De=0,Le,Qe,Be,Pe,He,st=0,xt=0;const et=[],at=[],ut=[];let qe=ve.tooComplexToFollowFunctions,rt=!1,_e=0,ht=0;for(let $t=Te.length;De<$t;){const ot=Te[De++];if(ot===64)if(Qe=Te[De++],rt||ht)De+=Qe;else for(Le=0;Le<Qe;Le++)et.push(Te[De++]);else if(ot===65)if(Qe=Te[De++],rt||ht)De+=Qe*2;else for(Le=0;Le<Qe;Le++)Be=Te[De++],et.push(Be<<8|Te[De++]);else if((ot&248)===176)if(Qe=ot-176+1,rt||ht)De+=Qe;else for(Le=0;Le<Qe;Le++)et.push(Te[De++]);else if((ot&248)===184)if(Qe=ot-184+1,rt||ht)De+=Qe*2;else for(Le=0;Le<Qe;Le++)Be=Te[De++],et.push(Be<<8|Te[De++]);else if(ot===43&&!qe){if(!rt&&!ht){if(Pe=et.at(-1),isNaN(Pe))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(ve.functionsUsed[Pe]=!0,Pe in ve.functionsStackDeltas){const ct=et.length+ve.functionsStackDeltas[Pe];
25if(ct<0){(0,n.warn)("TT: CALL invalid functions stack delta."),ve.hintsValid=!1;return}et.length=ct}else if(Pe in ve.functionsDefined&&!ut.includes(Pe)){if(at.push({data:Te,i:De,stackTop:et.length-1}),ut.push(Pe),He=ve.functionsDefined[Pe],!He){(0,n.warn)("TT: CALL non-existent function"),ve.hintsValid=!1;return}Te=He.data,De=He.i}}}else if(ot===44&&!qe)(rt||ht)&&((0,n.warn)("TT: nested FDEFs not allowed"),qe=!0),rt=!0,xt=De,Pe=et.pop(),ve.functionsDefined[Pe]={data:Te,i:De};else if(ot===45)if(rt)rt=!1,st=De;else{if(He=at.pop(),!He){(0,n.warn)("TT: ENDF bad stack"),ve.hintsValid=!1;return}Pe=ut.pop(),Te=He.data,De=He.i,ve.functionsStackDeltas[Pe]=et.length-He.stackTop}else if(ot===137)(rt||ht)&&((0,n.warn)("TT: nested IDEFs not allowed"),qe=!0),rt=!0,xt=De;else if(ot===88)++_e;else if(ot===27)ht=_e;else if(ot===89)ht===_e&&(ht=0),--_e;else if(ot===28&&!rt&&!ht){const ct=et.at(-1);ct>0&&(De+=ct-1)}if(!rt&&!ht){let ct=0;for(ot<=142?ct=fe[ot]:ot>=192&&ot<=223?ct=-1:ot>=224&&(ct=-2),ot>=113&&ot<=117&&(Qe=et.pop(),isNaN(Qe)||(ct=-Qe*2));ct<0&&et.length>0;)et.pop(),ct++;for(;ct>0;)et.push(NaN),ct--}}ve.tooComplexToFollowFunctions=qe;const mt=[Te];De>Te.length&&mt.push(new Uint8Array(De-Te.length)),xt>st&&((0,n.warn)("TT: complementing a missing function tail"),mt.push(new Uint8Array([34,45]))),$e(Ie,mt)}function ye(Ie,ve){if(!Ie.tooComplexToFollowFunctions){if(Ie.functionsDefined.length>ve){(0,n.warn)("TT: more functions defined than expected"),Ie.hintsValid=!1;return}for(let Te=0,De=Ie.functionsUsed.length;Te<De;Te++){if(Te>ve){(0,n.warn)("TT: invalid function id: "+Te),Ie.hintsValid=!1;return}if(Ie.functionsUsed[Te]&&!Ie.functionsDefined[Te]){(0,n.warn)("TT: undefined function: "+Te),Ie.hintsValid=!1;return}}}}function $e(Ie,ve){if(ve.length>1){let Te=0,De,Le;for(De=0,Le=ve.length;De<Le;De++)Te+=ve[De].length;Te=Te+3&-4;const Qe=new Uint8Array(Te);let Be=0;for(De=0,Le=ve.length;De<Le;De++)Qe.set(ve[De],Be),Be+=ve[De].length;Ie.data=Qe,Ie.length=Te}}function Xe(Ie,ve,Te,De){const Le={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Ie&&ke(Ie,Le),ve&&ke(ve,Le),Ie&&ye(Le,De),Te&&Te.length&1){const Qe=new Uint8Array(Te.length+1);Qe.set(Te.data),Te.data=Qe}return Le.hintsValid}ie=new O.Stream(new Uint8Array(ie.getBytes()));let Ze,Fe;if(F(ie)){const Ie=me(ie,this.name);Ze=Ie.header,Fe=Ie.tables}else Ze=de(ie),Fe=ce(ie,Ze.numTables);let nt,We;const Ee=!Fe["CFF "];if(Ee){if(!Fe.loca)throw new n.FormatError('Required "loca" table is not found');Fe.glyf||((0,n.warn)('Required "glyf" table is not found -- trying to recover.'),Fe.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const Ie=ee.composite&&(((lt=ee.cidToGidMap)==null?void 0:lt.length)>0||!(ee.cMap instanceof a.IdentityCMap));if(Ze.version==="OTTO"&&!Ie||!Fe.head||!Fe.hhea||!Fe.maxp||!Fe.post)return We=new O.Stream(Fe["CFF "].data),nt=new B.CFFFont(We,ee),E(ee),this.convert(Y,nt,ee);delete Fe.glyf,delete Fe.loca,delete Fe.fpgm,delete Fe.prep,delete Fe["cvt "],this.isOpenType=!0}if(!Fe.maxp)throw new n.FormatError('Required "maxp" table is not found');ie.pos=(ie.start||0)+Fe.maxp.offset;const Ve=ie.getInt32(),tt=ie.getUint16();if(((Nt=ee.scaleFactors)==null?void 0:Nt.length)===tt&&Ee){const{scaleFactors:Ie}=ee,ve=s(Fe.head.data[50],Fe.head.data[51]),Te=new g.GlyfTable({glyfTable:Fe.glyf.data,isGlyphLocationsLong:ve,locaTable:Fe.loca.data,numGlyphs:tt});Te.scale(Ie);const{glyf:De,loca:Le,isLocationLong:Qe}=Te.write();Fe.glyf.data=De,Fe.loca.data=Le,Qe!==!!ve&&(Fe.head.data[50]=0,Fe.head.data[51]=Qe?1:0);const Be=Fe.hmtx.data;for(let Pe=0;Pe<tt;Pe++){const He=4*Pe,st=Math.round(Ie[Pe]*s(Be[He],Be[He+1]));Be[He]=st>>8&255,Be[He+1]=st&255;const xt=Math.round(Ie[Pe]*m(Be[He+2],Be[He+3]));o(Be,He+2,xt)}}let Ne=tt+1,wt=!0;Ne>65535&&(wt=!1,Ne=tt,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));let dt=0,pt=0;Ve>=65536&&Fe.maxp.length>=22&&(ie.pos+=8,ie.getUint16()>2&&(Fe.maxp.data[14]=0,Fe.maxp.data[15]=2),ie.pos+=4,dt=ie.getUint16(),ie.pos+=4,pt=ie.getUint16()),Fe.maxp.data[4]=Ne>>8,Fe.maxp.data[5]=Ne&255;const Ot=Xe(Fe.fpgm,Fe.prep,Fe["cvt "],dt);if(Ot||(delete Fe.fpgm,delete Fe.prep,delete Fe["cvt "]),pe(ie,Fe.hhea,Fe.hmtx,Fe.head,Ne,wt),!Fe.head)throw new n.FormatError('Required "head" table is not found');Ae(Fe.head,tt,Ee?Fe.loca.length:0);let ze=Object.create(null);if(Ee){const Ie=s(Fe.head.data[50],Fe.head.data[51]),ve=Me(Fe.loca,Fe.glyf,tt,Ie,Ot,wt,pt);ze=ve.missingGlyphs,Ve>=65536&&Fe.maxp.length>
25=22&&(Fe.maxp.data[26]=ve.maxSizeOfInstructions>>8,Fe.maxp.data[27]=ve.maxSizeOfInstructions&255)}if(!Fe.hhea)throw new n.FormatError('Required "hhea" table is not found');Fe.hhea.data[10]===0&&Fe.hhea.data[11]===0&&(Fe.hhea.data[10]=255,Fe.hhea.data[11]=255);const Ge={unitsPerEm:s(Fe.head.data[18],Fe.head.data[19]),yMax:m(Fe.head.data[42],Fe.head.data[43]),yMin:m(Fe.head.data[38],Fe.head.data[39]),ascent:m(Fe.hhea.data[4],Fe.hhea.data[5]),descent:m(Fe.hhea.data[6],Fe.hhea.data[7]),lineGap:m(Fe.hhea.data[8],Fe.hhea.data[9])};this.ascent=Ge.ascent/Ge.unitsPerEm,this.descent=Ge.descent/Ge.unitsPerEm,this.lineGap=Ge.lineGap/Ge.unitsPerEm,(Ut=this.cssFontInfo)!=null&&Ut.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,Fe.post&&xe(Fe.post,ee,tt),Fe.post={tag:"post",data:S(ee)};const Ue=[];function bt(Ie){return!ze[Ie]}if(ee.composite){const Ie=ee.cidToGidMap||[],ve=Ie.length===0;ee.cMap.forEach(function(Te,De){if(typeof De=="string"&&(De=te(Te,De,!0)),De>65535)throw new n.FormatError("Max size of CID is 65,535");let Le=-1;ve?Le=De:Ie[De]!==void 0&&(Le=Ie[De]),Le>=0&&Le<tt&&bt(Le)&&(Ue[Te]=Le)})}else{const Ie=Se(Fe.cmap,ie,this.isSymbolicFont,ee.hasEncoding),ve=Ie.platformId,Te=Ie.encodingId,De=Ie.mappings;let Le=[],Qe=!1;if(ee.hasEncoding&&(ee.baseEncodingName==="MacRomanEncoding"||ee.baseEncodingName==="WinAnsiEncoding")&&(Le=(0,l.getEncoding)(ee.baseEncodingName)),ee.hasEncoding&&!this.isSymbolicFont&&(ve===3&&Te===1||ve===1&&Te===0)){const Be=(0,t.getGlyphsUnicode)();for(let Pe=0;Pe<256;Pe++){let He;if(this.differences[Pe]!==void 0?He=this.differences[Pe]:Le.length&&Le[Pe]!==""?He=Le[Pe]:He=l.StandardEncoding[Pe],!He)continue;const st=(0,j.recoverGlyphName)(He,Be);let xt;if(ve===3&&Te===1?xt=Be[st]:ve===1&&Te===0&&(xt=l.MacRomanEncoding.indexOf(st)),xt===void 0){if(!ee.glyphNames&&ee.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof J.IdentityToUnicodeMap)){const et=this.toUnicode.get(Pe);et&&(xt=et.codePointAt(0))}if(xt===void 0)continue}for(const et of De)if(et.charCode===xt){Ue[Pe]=et.glyphId;break}}}else if(ve===0){for(const Be of De)Ue[Be.charCode]=Be.glyphId;Qe=!0}else for(const Be of De){let Pe=Be.charCode;ve===3&&Pe>=61440&&Pe<=61695&&(Pe&=255),Ue[Pe]=Be.glyphId}if(ee.glyphNames&&(Le.length||this.differences.length))for(let Be=0;Be<256;++Be){if(!Qe&&Ue[Be]!==void 0)continue;const Pe=this.differences[Be]||Le[Be];if(!Pe)continue;const He=ee.glyphNames.indexOf(Pe);He>0&&bt(He)&&(Ue[Be]=He)}}Ue.length===0&&(Ue[0]=0);let vt=Ne-1;if(wt||(vt=0),!ee.cssFontInfo){const Ie=K(Ue,bt,vt,this.toUnicode);this.toFontChar=Ie.toFontChar,Fe.cmap={tag:"cmap",data:$(Ie.charCodeToGlyphId,Ie.toUnicodeExtraMap,Ne)},(!Fe["OS/2"]||!d(Fe["OS/2"],ie))&&(Fe["OS/2"]={tag:"OS/2",data:w(ee,Ie.charCodeToGlyphId,Ge)})}if(!Ee)try{We=new O.Stream(Fe["CFF "].data),nt=new P.CFFParser(We,ee,j.SEAC_ANALYSIS_ENABLED).parse(),nt.duplicateFirstGlyph();const ve=new P.CFFCompiler(nt);Fe["CFF "].data=ve.compile()}catch{(0,n.warn)("Failed to compile font "+ee.loadedName)}if(!Fe.name)Fe.name={tag:"name",data:W(this.name)};else{const[Ie,ve]=ue(Fe.name);Fe.name.data=W(Y,Ie),this.psName=Ie[0][6]||null,ee.composite||c(ee,this.isSymbolicFont,ve)}const At=new _.OpenTypeFileBuilder(Ze.version);for(const Ie in Fe)At.addTable(Ie,Fe[Ie].data);return At.toArray()}convert(Y,ie,ee){ee.fixedPitch=!1,ee.builtInEncoding&&u(ee,ee.builtInEncoding);let se=1;ie instanceof B.CFFFont&&(se=ie.numGlyphs-1);const ce=ie.getGlyphMapping(ee);let le=null,de=ce,he=null;ee.cssFontInfo||(le=K(ce,ie.hasGlyphId.bind(ie),se,this.toUnicode),this.toFontChar=le.toFontChar,de=le.charCodeToGlyphId,he=le.toUnicodeExtraMap);const me=ie.numGlyphs;function Se(xe,ue){let fe=null;for(const ke in xe)ue===xe[ke]&&(fe||(fe=[])).push(ke|0);return fe}function pe(xe,ue){for(const fe in xe)if(ue===xe[fe])return fe|0;return le.charCodeToGlyphId[le.nextAvailableFontCharCode]=ue,le.nextAvailableFontCharCode++}const ge=ie.seacs;if(le&&j.SEAC_ANALYSIS_ENABLED&&(ge!=null&&ge.length)){const xe=ee.fontMatrix||n.FONT_IDENTITY_MATRIX,ue=ie.getCharset(),fe=Object.create(null);for(let ke in ge){ke|=0;const ye=ge[ke],$e=l.StandardEncoding[ye[2]],Xe=l.StandardEncoding[ye[3]],Ze=ue.indexOf($e),Fe=ue.indexOf(Xe);if(Ze<0||Fe<0)continue;const nt={x:ye[0]*xe[0]+ye[1]*xe[2]+xe[4],y:ye[0]*xe[1]+ye[1]*xe[3]+xe[5]},We=Se(ce,ke);if(We)for(const Ee of We){const Ve=le.charCodeToGlyphId,tt=pe(Ve,Ze),Ne=pe(Ve,Fe);
25fe[Ee]={baseFontCharCode:tt,accentFontCharCode:Ne,accentOffset:nt}}}ee.seacMap=fe}const Ae=1/(ee.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],Me=new _.OpenTypeFileBuilder("OTTO");return Me.addTable("CFF ",ie.data),Me.addTable("OS/2",w(ee,de)),Me.addTable("cmap",$(de,he,me)),Me.addTable("head","\0�\0\0\0\0�\0\0\0\0\0_�<õ\0\0"+L(Ae)+"\0\0\0\0Â\v~'\0\0\0\0Â\v~'\0\0"+L(ee.descent)+"�ÿ"+L(ee.ascent)+A(ee.italicAngle?2:0)+"\0�\0\0\0\0\0\0"),Me.addTable("hhea","\0�\0\0"+L(ee.ascent)+L(ee.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+L(ee.capHeight)+L(Math.tan(ee.italicAngle)*ee.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+A(me)),Me.addTable("hmtx",function(){const ue=ie.charstrings,fe=ie.cff?ie.cff.widths:null;let ke="\0\0\0\0";for(let ye=1,$e=me;ye<$e;ye++){let Xe=0;if(ue){const Ze=ue[ye-1];Xe="width"in Ze?Ze.width:0}else fe&&(Xe=Math.ceil(fe[ye]||0));ke+=A(Xe)+A(0)}return ke}()),Me.addTable("maxp","\0\0P\0"+A(me)),Me.addTable("name",W(Y)),Me.addTable("post",S(ee)),Me.toArray()}get spaceWidth(){const Y=["space","minus","one","i","I"];let ie;for(const ee of Y){if(ee in this.widths){ie=this.widths[ee];break}const ce=(0,t.getGlyphsUnicode)()[ee];let le=0;if(this.composite&&this.cMap.contains(ce)&&(le=this.cMap.lookup(ce),typeof le=="string"&&(le=te(ce,le))),!le&&this.toUnicode&&(le=this.toUnicode.charCodeOf(ce)),le<=0&&(le=ce),ie=this.widths[le],ie)break}return(0,n.shadow)(this,"spaceWidth",ie||this.defaultWidth)}_charToGlyph(Y,ie=!1){var Ae,Me,xe;let ee=this._glyphCache[Y];if((ee==null?void 0:ee.isSpace)===ie)return ee;let se,ce,le,de=Y;(Ae=this.cMap)!=null&&Ae.contains(Y)&&(de=this.cMap.lookup(Y),typeof de=="string"&&(de=te(Y,de))),ce=this.widths[de],typeof ce!="number"&&(ce=this.defaultWidth);const he=(Me=this.vmetrics)==null?void 0:Me[de];let me=this.toUnicode.get(Y)||Y;typeof me=="number"&&(me=String.fromCharCode(me));let Se=this.toFontChar[Y]!==void 0;if(se=this.toFontChar[Y]||Y,this.missingFile){const ue=this.differences[Y]||this.defaultEncoding[Y];(ue===".notdef"||ue==="")&&this.type==="Type1"&&(se=32),se=(0,e.mapSpecialUnicodeValues)(se)}this.isType3Font&&(le=se);let pe=null;if((xe=this.seacMap)!=null&&xe[Y]){Se=!0;const ue=this.seacMap[Y];se=ue.baseFontCharCode,pe={fontChar:String.fromCodePoint(ue.accentFontCharCode),offset:ue.accentOffset}}let ge="";return typeof se=="number"&&(se<=1114111?ge=String.fromCodePoint(se):(0,n.warn)(`charToGlyph - invalid fontCharCode: ${se}`)),ee=new r(Y,ge,me,pe,ce,he,le,ie,Se),this._glyphCache[Y]=ee}charsToGlyphs(Y){let ie=this._charsCache[Y];if(ie)return ie;if(ie=[],this.cMap){const ee=Object.create(null),se=Y.length;let ce=0;for(;ce<se;){this.cMap.readCharCode(Y,ce,ee);const{charcode:le,length:de}=ee;ce+=de;const he=this._charToGlyph(le,de===1&&Y.charCodeAt(ce-1)===32);ie.push(he)}}else for(let ee=0,se=Y.length;ee<se;++ee){const ce=Y.charCodeAt(ee),le=this._charToGlyph(ce,ce===32);ie.push(le)}return this._charsCache[Y]=ie}getCharPositions(Y){const ie=[];if(this.cMap){const ee=Object.create(null);let se=0;for(;se<Y.length;){this.cMap.readCharCode(Y,se,ee);const ce=ee.length;ie.push([se,se+ce]),se+=ce}}else for(let ee=0,se=Y.length;ee<se;++ee)ie.push([ee,ee+1]);return ie}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(Y){const ie=[],ee=[],se=()=>ie.length%2===1,ce=this.toUnicode instanceof J.IdentityToUnicodeMap?le=>this.toUnicode.charCodeOf(le):le=>this.toUnicode.charCodeOf(String.fromCodePoint(le));for(let le=0,de=Y.length;le<de;le++){const he=Y.codePointAt(le);if(he>55295&&(he<57344||he>65533)&&le++,this.toUnicode){const me=ce(he);if(me!==-1){se()&&(ie.push(ee.join("")),ee.length=0);const Se=this.cMap?this.cMap.getCharCodeLength(me):1;for(let pe=Se-1;pe>=0;pe--)ee.push(String.fromCharCode(me>>8*pe&255));continue}}se()||(ie.push(ee.join("")),ee.length=0),ee.push(String.fromCodePoint(he))}return ie.push(ee.join("")),ie}}p.Font=ne;class Q{constructor(Y){this.error=Y,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(Y){return[Y]}exportData(Y=!1){return{error:this.error}}}p.ErrorFont=Q},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CFFTopDict=p.CFFStrings=p.CFFStandardStrings=p.CFFPrivateDict=p.
25CFFParser=p.CFFIndex=p.CFFHeader=p.CFFFDSelect=p.CFFCompiler=p.CFFCharset=p.CFF=void 0;var n=re(2),P=re(36),j=re(37);const e=10,t=[".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"];p.CFFStandardStrings=t;const l=391,V=[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}],J=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(T,r){T[r-2]=T[r-2]+T[r-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(T,r){T[r-2]=T[r-2]-T[r-1]}},{id:"div",min:2,stackDelta:-1,stackFn(T,r){T[r-2]=T[r-2]/T[r-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(T,r){T[r-1]=-T[r-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(T,r){T[r-2]=T[r-2]*T[r-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}];class B{constructor(r,s,o){this.bytes=r.getBytes(),this.properties=s,this.seacAnalysisEnabled=!!o}parse(){const r=this.properties,s=new I;this.cff=s;const o=this.parseHeader(),m=this.parseIndex(o.endPos),h=this.parseIndex(m.endPos),A=this.parseIndex(h.endPos),L=this.parseIndex(A.endPos),H=this.parseDict(h.obj.get(0)),F=this.createDict(O,H,s.strings);s.header=o.obj,s.names=this.parseNameIndex(m.obj),s.strings=this.parseStringIndex(A.obj),s.topDict=F,s.globalSubrIndex=L.obj,this.parsePrivateDict(s.topDict),s.isCIDFont=F.hasName("ROS");const M=F.getByName("CharStrings"),k=this.parseIndex(M).obj,x=F.getByName("FontMatrix");x&&(r.fontMatrix=x);const C=F.getByName("FontBBox");
25C&&(r.ascent=Math.max(C[3],C[1]),r.descent=Math.min(C[1],C[3]),r.ascentScaled=!0);let G,Z;if(s.isCIDFont){const oe=this.parseIndex(F.getByName("FDArray")).obj;for(let te=0,K=oe.count;te<K;++te){const v=oe.get(te),$=this.createDict(O,this.parseDict(v),s.strings);this.parsePrivateDict($),s.fdArray.push($)}Z=null,G=this.parseCharsets(F.getByName("charset"),k.count,s.strings,!0),s.fdSelect=this.parseFDSelect(F.getByName("FDSelect"),k.count)}else G=this.parseCharsets(F.getByName("charset"),k.count,s.strings,!1),Z=this.parseEncoding(F.getByName("Encoding"),r,s.strings,G.charset);s.charset=G,s.encoding=Z;const ae=this.parseCharStrings({charStrings:k,localSubrIndex:F.privateDict.subrsIndex,globalSubrIndex:L.obj,fdSelect:s.fdSelect,fdArray:s.fdArray,privateDict:F.privateDict});return s.charStrings=ae.charStrings,s.seacs=ae.seacs,s.widths=ae.widths,s}parseHeader(){let r=this.bytes;const s=r.length;let o=0;for(;o<s&&r[o]!==1;)++o;if(o>=s)throw new n.FormatError("Invalid CFF header");o!==0&&((0,n.info)("cff data is shifted"),r=r.subarray(o),this.bytes=r);const m=r[0],h=r[1],A=r[2],L=r[3];return{obj:new f(m,h,A,L),endPos:A}}parseDict(r){let s=0;function o(){let H=r[s++];return H===30?m():H===28?(H=r[s++],H=(H<<24|r[s++]<<16)>>16,H):H===29?(H=r[s++],H=H<<8|r[s++],H=H<<8|r[s++],H=H<<8|r[s++],H):H>=32&&H<=246?H-139:H>=247&&H<=250?(H-247)*256+r[s++]+108:H>=251&&H<=254?-((H-251)*256)-r[s++]-108:((0,n.warn)('CFFParser_parseDict: "'+H+'" is a reserved command.'),NaN)}function m(){let H="";const M=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],k=r.length;for(;s<k;){const x=r[s++],C=x>>4,G=x&15;if(C===15||(H+=M[C],G===15))break;H+=M[G]}return parseFloat(H)}let h=[];const A=[];s=0;const L=r.length;for(;s<L;){let H=r[s];H<=21?(H===12&&(H=H<<8|r[++s]),A.push([H,h]),h=[],++s):h.push(o())}return A}parseIndex(r){const s=new a,o=this.bytes,m=o[r++]<<8|o[r++],h=[];let A=r,L,H;if(m!==0){const F=o[r++],M=r+(m+1)*F-1;for(L=0,H=m+1;L<H;++L){let k=0;for(let x=0;x<F;++x)k<<=8,k+=o[r++];h.push(M+k)}A=h[m]}for(L=0,H=h.length-1;L<H;++L){const F=h[L],M=h[L+1];s.add(o.subarray(F,M))}return{obj:s,endPos:A}}parseNameIndex(r){const s=[];for(let o=0,m=r.count;o<m;++o){const h=r.get(o);s.push((0,n.bytesToString)(h))}return s}parseStringIndex(r){const s=new g;for(let o=0,m=r.count;o<m;++o){const h=r.get(o);s.add((0,n.bytesToString)(h))}return s}createDict(r,s,o){const m=new r(o);for(const[h,A]of s)m.setByKey(h,A);return m}parseCharString(r,s,o,m){if(!s||r.callDepth>e)return!1;let h=r.stackSize;const A=r.stack;let L=s.length;for(let H=0;H<L;){const F=s[H++];let M=null;if(F===12){const k=s[H++];k===0?(s[H-2]=139,s[H-1]=22,h=0):M=J[k]}else if(F===28)A[h]=(s[H]<<24|s[H+1]<<16)>>16,H+=2,h++;else if(F===14){if(h>=4&&(h-=4,this.seacAnalysisEnabled))return r.seac=A.slice(h,h+4),!1;M=V[F]}else if(F>=32&&F<=246)A[h]=F-139,h++;else if(F>=247&&F<=254)A[h]=F<251?(F-247<<8)+s[H]+108:-(F-251<<8)-s[H]-108,H++,h++;else if(F===255)A[h]=(s[H]<<24|s[H+1]<<16|s[H+2]<<8|s[H+3])/65536,H+=4,h++;else if(F===19||F===20){if(r.hints+=h>>1,r.hints===0){s.copyWithin(H-1,H,-1),H-=1,L-=1;continue}H+=r.hints+7>>3,h%=2,M=V[F]}else if(F===10||F===29){const k=F===10?o:m;if(!k)return M=V[F],(0,n.warn)("Missing subrsIndex for "+M.id),!1;let x=32768;k.count<1240?x=107:k.count<33900&&(x=1131);const C=A[--h]+x;if(C<0||C>=k.count||isNaN(C))return M=V[F],(0,n.warn)("Out of bounds subrIndex for "+M.id),!1;if(r.stackSize=h,r.callDepth++,!this.parseCharString(r,k.get(C),o,m))return!1;r.callDepth--,h=r.stackSize;continue}else{if(F===11)return r.stackSize=h,!0;if(F===0&&H===s.length)s[H-1]=14,M=V[14];else if(F===9){s.copyWithin(H-1,H,-1),H-=1,L-=1;continue}else M=V[F]}if(M){if(M.stem&&(r.hints+=h>>1,F===3||F===23?r.hasVStems=!0:r.hasVStems&&(F===1||F===18)&&((0,n.warn)("CFF stem hints are in wrong order"),s[H-1]=F===1?3:23)),"min"in M&&!r.undefStack&&h<M.min)return(0,n.warn)("Not enough parameters for "+M.id+"; actual: "+h+", expected: "+M.min),h===0?(s[H-1]=14,!0):!1;r.firstStackClearing&&M.stackClearing&&(r.firstStackClearing=!1,h-=M.min,h>=2&&M.stem?h%=2:h>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),h>0&&(r.width=A[h-1])),"stackDelta"in M?("stackFn"in M&&M.stackFn(A,h),h+=M.stackDelta):M.stackClearing?h=0:M.resetStack?(h=0,r.undefStack=!1):M.undefStack&&(h=0,r.undefStack=!0,r.f
25irstStackClearing=!1)}}return L<s.length&&s.fill(14,L),r.stackSize=h,!0}parseCharStrings({charStrings:r,localSubrIndex:s,globalSubrIndex:o,fdSelect:m,fdArray:h,privateDict:A}){const L=[],H=[],F=r.count;for(let M=0;M<F;M++){const k=r.get(M),x={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let C=!0,G=null,Z=A;if(m&&h.length){const ae=m.getFDIndex(M);ae===-1&&((0,n.warn)("Glyph index is not in fd select."),C=!1),ae>=h.length&&((0,n.warn)("Invalid fd index for glyph index."),C=!1),C&&(Z=h[ae].privateDict,G=Z.subrsIndex)}else s&&(G=s);if(C&&(C=this.parseCharString(x,k,G,o)),x.width!==null){const ae=Z.getByName("nominalWidthX");H[M]=ae+x.width}else{const ae=Z.getByName("defaultWidthX");H[M]=ae}x.seac!==null&&(L[M]=x.seac),C||r.set(M,new Uint8Array([14]))}return{charStrings:r,seacs:L,widths:H}}emptyPrivateDictionary(r){const s=this.createDict(X,[],r.strings);r.setByKey(18,[0,0]),r.privateDict=s}parsePrivateDict(r){if(!r.hasName("Private")){this.emptyPrivateDictionary(r);return}const s=r.getByName("Private");if(!Array.isArray(s)||s.length!==2){r.removeByName("Private");return}const o=s[0],m=s[1];if(o===0||m>=this.bytes.length){this.emptyPrivateDictionary(r);return}const h=m+o,A=this.bytes.subarray(m,h),L=this.parseDict(A),H=this.createDict(X,L,r.strings);if(r.privateDict=H,H.getByName("ExpansionFactor")===0&&H.setByName("ExpansionFactor",.06),!H.getByName("Subrs"))return;const F=H.getByName("Subrs"),M=m+F;if(F===0||M>=this.bytes.length){this.emptyPrivateDictionary(r);return}const k=this.parseIndex(M);H.subrsIndex=k.obj}parseCharsets(r,s,o,m){if(r===0)return new q(!0,R.ISO_ADOBE,P.ISOAdobeCharset);if(r===1)return new q(!0,R.EXPERT,P.ExpertCharset);if(r===2)return new q(!0,R.EXPERT_SUBSET,P.ExpertSubsetCharset);const h=this.bytes,A=r,L=h[r++],H=[m?0:".notdef"];let F,M,k;switch(s-=1,L){case 0:for(k=0;k<s;k++)F=h[r++]<<8|h[r++],H.push(m?F:o.get(F));break;case 1:for(;H.length<=s;)for(F=h[r++]<<8|h[r++],M=h[r++],k=0;k<=M;k++)H.push(m?F++:o.get(F++));break;case 2:for(;H.length<=s;)for(F=h[r++]<<8|h[r++],M=h[r++]<<8|h[r++],k=0;k<=M;k++)H.push(m?F++:o.get(F++));break;default:throw new n.FormatError("Unknown charset format")}const x=r,C=h.subarray(A,x);return new q(!1,L,H,C)}parseEncoding(r,s,o,m){const h=Object.create(null),A=this.bytes;let L=!1,H,F,M,k=null;function x(){const C=A[r++];for(F=0;F<C;F++){const G=A[r++],Z=(A[r++]<<8)+(A[r++]&255);h[G]=m.indexOf(o.get(Z))}}if(r===0||r===1){L=!0,H=r;const C=r?j.ExpertEncoding:j.StandardEncoding;for(F=0,M=m.length;F<M;F++){const G=C.indexOf(m[F]);G!==-1&&(h[G]=F)}}else{const C=r;switch(H=A[r++],H&127){case 0:const Z=A[r++];for(F=1;F<=Z;F++)h[A[r++]]=F;break;case 1:const ae=A[r++];let oe=1;for(F=0;F<ae;F++){const te=A[r++],K=A[r++];for(let v=te;v<=te+K;v++)h[v]=oe++}break;default:throw new n.FormatError(`Unknown encoding format: ${H} in CFF`)}const G=r;H&128&&(A[C]&=127,x()),k=A.subarray(C,G)}return H&=127,new b(L,H,h,k)}parseFDSelect(r,s){const o=this.bytes,m=o[r++],h=[];let A;switch(m){case 0:for(A=0;A<s;++A){const H=o[r++];h.push(H)}break;case 3:const L=o[r++]<<8|o[r++];for(A=0;A<L;++A){let H=o[r++]<<8|o[r++];A===0&&H!==0&&((0,n.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),H=0);const F=o[r++],M=o[r]<<8|o[r+1];for(let k=H;k<M;++k)h.push(F)}r+=2;break;default:throw new n.FormatError(`parseFDSelect: Unknown format "${m}".`)}if(h.length!==s)throw new n.FormatError("parseFDSelect: Invalid font data.");return new E(m,h)}}p.CFFParser=B;class I{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new g,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){(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");return}const r=this.charStrings.get(0);this.charStrings.add(r),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(r){return r<0||r>=this.charStrings.count?!1:this.charStrings.get(r).length>0}}p.CFF=I;class f{constructor(r,s,o,m){this.major=r,this.minor=s,this.hdrSize=o,this.offSize=m}}p.CFFHeader=f;class g{constructor(){this.strings=[]}get(r){return r>=0&&r<=l-1?t[r]:r-l<=this.strings.length?this.strings[r-l]:t[0]}getSID(r){let s=t.indexOf(r);return s!==-1?s:(s=this.strings.indexOf(r),s!==-1?s+l:-1)}add(r){this.strings.push(r)}get count(){return this.strings.length}}p.CFFStrings=g;class a{constructor(){this.objects=[],this.length=0}add(r){this.length+=r.length,this.objects.push(r)}set(r,s){this.length+=s.length-this.objects[r].length,this.objects[r]=s}get(r){return this.objects[r]}get count(){return this.objects.length}}p.CFFIndex=a;class _{constructor(r,s){this.keyToNameMap=r.keyToNameMap,this.nameToKeyMap=r.nameToKeyMap,this.defaults=r.defaults,this.types=r.types,this.opcodes=r.opcodes,this.order=r.order,this.strings=s,this.values=Object.create(null)}setByKey(r,s){if(!(r in this.keyToNameMap))return!1;if(s.length===0)return!0;for(const m of s)if(isNaN(m))return(0,n.warn)(`Invalid CFFDict value: "${s}" for key "${r}".`),!0;const o=this.types[r];return(o==="num"||o==="sid"||o==="offset")&&(s=s[0]),this.values[r]=s,!0}setByName(r,s){if(!(r in this.nameToKeyMap))throw new n.FormatError(`Invalid dictionary name "${r}"`);this.values[this.nameToKeyMap[r]]=s}hasName(r){return this.nameToKeyMap[r]in this.values}getByName(r){if(!(r in this.nameToKeyMap))throw new n.FormatError(`Invalid dictionary name ${r}"`);const s=this.nameToKeyMap[r];return s in this.values?this.values[s]:this.defaults[s]}removeByName(r){delete this.values[this.nameToKeyMap[r]]}static createTables(r){const s={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const o of r){const m=Array.isArray(o[0])?(o[0][0]<<8)+o[0][1]:o[0];
25s.keyToNameMap[m]=o[1],s.nameToKeyMap[o[1]]=m,s.types[m]=o[2],s.defaults[m]=o[3],s.opcodes[m]=Array.isArray(o[0])?o[0]:[o[0]],s.order.push(m)}return s}}const y=[[[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]];class O extends _{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(y))}constructor(r){super(O.tables,r),this.privateDict=null}}p.CFFTopDict=O;const N=[[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]];class X extends _{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(N))}constructor(r){super(X.tables,r),this.subrsIndex=null}}p.CFFPrivateDict=X;const R={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class q{constructor(r,s,o,m){this.predefined=r,this.format=s,this.charset=o,this.raw=m}}p.CFFCharset=q;class b{constructor(r,s,o,m){this.predefined=r,this.format=s,this.encoding=o,this.raw=m}}class E{constructor(r,s){this.format=r,this.fdSelect=s}getFDIndex(r){return r<0||r>=this.fdSelect.length?-1:this.fdSelect[r]}}p.CFFFDSelect=E;class c{constructor(){this.offsets=Object.create(null)}isTracking(r){return r in this.offsets}track(r,s){if(r in this.offsets)throw new n.FormatError(`Already tracking location of ${r}`);this.offsets[r]=s}offset(r){for(const s in this.offsets)this.offsets[s]+=r}setEntryLocation(r,s,o){if(!(r in this.offsets))throw new n.FormatError(`Not tracking location of ${r}`);const m=o.data,h=this.offsets[r],A=5;for(let L=0,H=s.length;L<H;++L){const F=L*A+h,M=F+1,k=F+2,x=F+3,C=F+4;if(m[F]!==29||m[M]!==0||m[k]!==0||m[x]!==0||m[C]!==0)throw new n.FormatError("writing to an offset that is not empty");const G=s[L];m[F]=29,m[M]=G>>24&255,m[k]=G>>16&255,m[x]=G>>8&255,m[C]=G&255}}}class u{constructor(r){this.cff=r}compile(){const r=this.cff,s={data:[],length:0,add(x){try{this.data.push(...x)}catch{this.data=this.data.concat(x)}this.length=this.data.length}},o=this.compileHeader(r.header);s.add(o);const m=this.compileNameIndex(r.names);if(s.add(m),r.isCIDFont&&r.topDict.hasName("FontMatrix")){const x=r.topDict.getByName("FontMatrix");r.topDict.removeByName("FontMatrix");for(const C of r.fdArray){let G=x.slice(0);C.hasName("FontMatrix")&&(G=n.Util.transform(G,C.getByName("FontMatrix"))),C.setByName("FontMatrix",G)}}const h=r.topDict.getByName("XUID");(h==null?void 0:h.length)>16&&r.topDict.removeByName("XUID"),r.topDict.setByName("charset",0);let A=this.compileTopDicts([r.topDict],s.length,r.isCIDFont);s.add(A.output);const L=A.trackers[0],H=this.compileStringIndex(r.strings.strings);s.add(H);const F=this.compileIndex(r.globalSubrIndex);if(s.add(F),r.encoding&&r.topDict.hasName("Encoding"))if(r.encoding.predefined)L.setEntryLocation("Encoding",[r.encoding.format],s);else{const x=this.compileEncoding(r.encoding);L.setEntryLocation("Encoding",[s.length],s),s.add(x)}const M=this.compileCharset(r.charset,r.charStrings.count,r.strings,r.isCIDFont);L.setEntryLocation("charset",[s.length],s),s.add(M);const k=this.compileCharStrings(r.charStrings);if(L.setEntryLocation("CharStrings",[s.length],s),s.add(k),r.isCIDFont){L.setEntryLocation("FDSelect",[s.length],s);const x=this.compileFDSelect(r.fdSelect);s.add(x),A=this.compileTopDicts(r.fdArray,s.length,!0),L.setEntryLocation("FDArray",[s.length],s),s.add(A.output);const C=A.trackers;this.compilePrivateDicts(r.fdArray,C,s)}return this.compilePrivateDicts([r.topDict],[L],s),s.add([0]),s.data}encodeNumber(r){return Number.isInteger(r)?this.encodeInteger(r):this.encodeFloat(r)}static get EncodeFloatRegExp(){return(0,n.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(r){let s=r.toString();const o=u.EncodeFloatRegExp.exec(s);if(o){const H=parseFloat("1e"+((o[2]?+o[2]:0)+o[1].length));s=(Math.round(r*H)/H).toString()}let m="",h,A;for(h=0,A=s.length;h<A;++h){const H=s[h];
25H==="e"?m+=s[++h]==="-"?"c":"b":H==="."?m+="a":H==="-"?m+="e":m+=H}m+=m.length&1?"f":"ff";const L=[30];for(h=0,A=m.length;h<A;h+=2)L.push(parseInt(m.substring(h,h+2),16));return L}encodeInteger(r){let s;return r>=-107&&r<=107?s=[r+139]:r>=108&&r<=1131?(r-=108,s=[(r>>8)+247,r&255]):r>=-1131&&r<=-108?(r=-r-108,s=[(r>>8)+251,r&255]):r>=-32768&&r<=32767?s=[28,r>>8&255,r&255]:s=[29,r>>24&255,r>>16&255,r>>8&255,r&255],s}compileHeader(r){return[r.major,r.minor,4,r.offSize]}compileNameIndex(r){const s=new a;for(const o of r){const m=Math.min(o.length,127);let h=new Array(m);for(let A=0;A<m;A++){let L=o[A];(L<"!"||L>"~"||L==="["||L==="]"||L==="("||L===")"||L==="{"||L==="}"||L==="<"||L===">"||L==="/"||L==="%")&&(L="_"),h[A]=L}h=h.join(""),h===""&&(h="Bad_Font_Name"),s.add((0,n.stringToBytes)(h))}return this.compileIndex(s)}compileTopDicts(r,s,o){const m=[];let h=new a;for(const A of r){o&&(A.removeByName("CIDFontVersion"),A.removeByName("CIDFontRevision"),A.removeByName("CIDFontType"),A.removeByName("CIDCount"),A.removeByName("UIDBase"));const L=new c,H=this.compileDict(A,L);m.push(L),h.add(H),L.offset(s)}return h=this.compileIndex(h,m),{trackers:m,output:h}}compilePrivateDicts(r,s,o){for(let m=0,h=r.length;m<h;++m){const A=r[m],L=A.privateDict;if(!L||!A.hasName("Private"))throw new n.FormatError("There must be a private dictionary.");const H=new c,F=this.compileDict(L,H);let M=o.length;if(H.offset(M),F.length||(M=0),s[m].setEntryLocation("Private",[F.length,M],o),o.add(F),L.subrsIndex&&L.hasName("Subrs")){const k=this.compileIndex(L.subrsIndex);H.setEntryLocation("Subrs",[F.length],o),o.add(k)}}}compileDict(r,s){const o=[];for(const m of r.order){if(!(m in r.values))continue;let h=r.values[m],A=r.types[m];if(Array.isArray(A)||(A=[A]),Array.isArray(h)||(h=[h]),h.length!==0){for(let L=0,H=A.length;L<H;++L){const F=A[L],M=h[L];switch(F){case"num":case"sid":o.push(...this.encodeNumber(M));break;case"offset":const k=r.keyToNameMap[m];s.isTracking(k)||s.track(k,o.length),o.push(29,0,0,0,0);break;case"array":case"delta":o.push(...this.encodeNumber(M));for(let x=1,C=h.length;x<C;++x)o.push(...this.encodeNumber(h[x]));break;default:throw new n.FormatError(`Unknown data type of ${F}`)}}o.push(...r.opcodes[m])}}return o}compileStringIndex(r){const s=new a;for(const o of r)s.add((0,n.stringToBytes)(o));return this.compileIndex(s)}compileCharStrings(r){const s=new a;for(let o=0;o<r.count;o++){const m=r.get(o);if(m.length===0){s.add(new Uint8Array([139,14]));continue}s.add(m)}return this.compileIndex(s)}compileCharset(r,s,o,m){let h;const A=s-1;if(m)h=new Uint8Array([2,0,0,A>>8&255,A&255]);else{const L=1+A*2;h=new Uint8Array(L),h[0]=0;let H=0;const F=r.charset.length;let M=!1;for(let k=1;k<h.length;k+=2){let x=0;if(H<F){const C=r.charset[H++];x=o.getSID(C),x===-1&&(x=0,M||(M=!0,(0,n.warn)(`Couldn't find ${C} in CFF strings`)))}h[k]=x>>8&255,h[k+1]=x&255}}return this.compileTypedArray(h)}compileEncoding(r){return this.compileTypedArray(r.raw)}compileFDSelect(r){const s=r.format;let o,m;switch(s){case 0:for(o=new Uint8Array(1+r.fdSelect.length),o[0]=s,m=0;m<r.fdSelect.length;m++)o[m+1]=r.fdSelect[m];break;case 3:const h=0;let A=r.fdSelect[0];const L=[s,0,0,h>>8&255,h&255,A];for(m=1;m<r.fdSelect.length;m++){const F=r.fdSelect[m];F!==A&&(L.push(m>>8&255,m&255,F),A=F)}const H=(L.length-3)/3;L[1]=H>>8&255,L[2]=H&255,L.push(m>>8&255,m&255),o=new Uint8Array(L);break}return this.compileTypedArray(o)}compileTypedArray(r){return Array.from(r)}compileIndex(r,s=[]){const o=r.objects,m=o.length;if(m===0)return[0,0];const h=[m>>8&255,m&255];let A=1,L;for(L=0;L<m;++L)A+=o[L].length;let H;A<256?H=1:A<65536?H=2:A<16777216?H=3:H=4,h.push(H);let F=1;for(L=0;L<m+1;L++)H===1?h.push(F&255):H===2?h.push(F>>8&255,F&255):H===3?h.push(F>>16&255,F>>8&255,F&255):h.push(F>>>24&255,F>>16&255,F>>8&255,F&255),o[L]&&(F+=o[L].length);for(L=0;L<m;L++)s[L]&&s[L].offset(h.length),h.push(...o[L]);return h}}p.CFFCompiler=u},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ISOAdobeCharset=p.ExpertSubsetCharset=p.ExpertCharset=void 0;const re=[".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","periodce
25ntered","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"];p.ISOAdobeCharset=re;const n=[".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"];p.ExpertCharset=n;const P=[".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"];p.ExpertSubsetCharset=P},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ZapfDingbatsEncoding=p.WinAnsiEncoding=p.SymbolSetEncoding=p.StandardEncoding=p.MacRomanEncoding=p.ExpertEncoding=void 0,p.getEncoding=V;const re=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];p.ExpertEncoding=re;const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","one
25superior","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","","","",""],P=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];p.MacRomanEncoding=P;const j=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];p.StandardEncoding=j;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","periodce
25ntered","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"];p.WinAnsiEncoding=e;const t=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];p.SymbolSetEncoding=t;const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];p.ZapfDingbatsEncoding=l;function V(J){switch(J){case"WinAnsiEncoding":return e;case"StandardEncoding":return j;case"MacRomanEncoding":return P;case"SymbolSetEncoding":return t;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return re;case"MacExpertEncoding":return n;default:return null}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.SEAC_ANALYSIS_ENABLED=p.MacStandardGlyphOrdering=p.FontFlags=void 0,p.normalizeFontName=I,p.recoverGlyphName=J,p.type1FontGlyphMapping=B;var n=re(37),P=re(39),j=re(40),e=re(2);const t=!0;p.SEAC_ANALYSIS_ENABLED=t;const l={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};p.FontFlags=l;const V=[".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","oslas
25h","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"];p.MacStandardGlyphOrdering=V;function J(f,g){if(g[f]!==void 0)return f;const a=(0,j.getUnicodeForGlyph)(f,g);if(a!==-1){for(const _ in g)if(g[_]===a)return _}return(0,e.info)("Unable to recover a standard glyph name for: "+f),f}function B(f,g,a){const _=Object.create(null);let y,O,N;const X=!!(f.flags&l.Symbolic);if(f.isInternalFont)for(N=g,O=0;O<N.length;O++)y=a.indexOf(N[O]),_[O]=y>=0?y:0;else if(f.baseEncodingName)for(N=(0,n.getEncoding)(f.baseEncodingName),O=0;O<N.length;O++)y=a.indexOf(N[O]),_[O]=y>=0?y:0;else if(X)for(O in g)_[O]=g[O];else for(N=n.StandardEncoding,O=0;O<N.length;O++)y=a.indexOf(N[O]),_[O]=y>=0?y:0;const R=f.differences;let q;if(R)for(O in R){const b=R[O];if(y=a.indexOf(b),y===-1){q||(q=(0,P.getGlyphsUnicode)());const E=J(b,q);E!==b&&(y=a.indexOf(E))}_[O]=y>=0?y:0}return _}function I(f){return f.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.getGlyphsUnicode=p.getDingbatsGlyphsUnicode=void 0;var n=re(3);const P=(0,n.getLookupTableFactory)(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.
25Ecyrillic=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.Gheuptur
25ncyrillic=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.S
25oftsigncyrillic=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=1
25711,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=6
255168,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=87
2550,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=6
255396,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=6
255230,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.i
25deographiclaborparen=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=6
255190,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=6
255250,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=6
255415,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.periodce
25ntered=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=6
255432,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.
25sigmalunatesymbolgreek=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.
25squareupperlefttolowerrightfill=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.t
25iwnarmenian=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=6
255438,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=6
255222,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});p.getGlyphsUnicode=P;const j=(0,n.getLookupTableFactory)(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.a6
255=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});p.getDingbatsGlyphsUnicode=j},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.clearUnicodeCaches=I,p.getCharUnicodeCategory=B,p.getUnicodeForGlyph=e,p.getUnicodeRangeFor=l,p.mapSpecialUnicodeValues=j;var n=re(3);const P=(0,n.getLookupTableFactory)(function(f){f[63721]=169,f[63193]=169,f[63720]=174,f[63194]=174,f[63722]=8482,f[63195]=8482,f[63729]=9127,f[63730]=9128,f[63731]=9129,f[63740]=9131,f[63741]=9132,f[63742]=9133,f[63726]=9121,f[63727]=9122,f[63728]=9123,f[63737]=9124,f[63738]=9125,f[63739]=9126,f[63723]=9115,f[63724]=9116,f[63725]=9117,f[63734]=9118,f[63735]=9119,f[63736]=9120});function j(f){return f>=65520&&f<=65535?0:f>=62976&&f<=63743?P()[f]||f:f===173?45:f}function e(f,g){let a=g[f];if(a!==void 0)return a;if(!f)return-1;if(f[0]==="u"){const _=f.length;let y;if(_===7&&f[1]==="n"&&f[2]==="i")y=f.substring(3);else if(_>=5&&_<=7)y=f.substring(1);else return-1;if(y===y.toUpperCase()&&(a=parseInt(y,16),a>=0))return a}return-1}const t=[[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 l(f,g=-1){if(g!==-1){const a=t[g];for(let _=0,y=a.length;_<y;_+=2)if(f>=a[_]&&f<=a[_+1])return g}for(let a=0,_=t.length;a<_;a++){const y=t[a];for(let O=0,N=y.length;O<N;O+=2)if(f>=y[O]&&f<=y[O+1])return a}return-1}const V=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),J=new Map;function B(f){const g=J.get(f);if(g)return g;const a=f.match(V),_={isWhitespace:!!(a!=null&&a[1]),isZeroWidthDiacritic:!!(a!=null&&a[2]),isInvisibleFormatMark:!!(a!=null&&a[3])};return J.set(f,_),_}function I(){J.clear()}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}
25),p.getSerifFonts=p.getNonStdFontMap=p.getGlyphMapForStandardFonts=p.getFontNameToFileMap=void 0,p.getStandardFontName=f,p.getSymbolsFonts=p.getSupplementalGlyphMapForCalibri=p.getSupplementalGlyphMapForArialBlack=p.getStdFontMap=void 0,p.isKnownFontName=g;var n=re(3),P=re(38);const j=(0,n.getLookupTableFactory)(function(a){a["Times-Roman"]="Times-Roman",a.Helvetica="Helvetica",a.Courier="Courier",a.Symbol="Symbol",a["Times-Bold"]="Times-Bold",a["Helvetica-Bold"]="Helvetica-Bold",a["Courier-Bold"]="Courier-Bold",a.ZapfDingbats="ZapfDingbats",a["Times-Italic"]="Times-Italic",a["Helvetica-Oblique"]="Helvetica-Oblique",a["Courier-Oblique"]="Courier-Oblique",a["Times-BoldItalic"]="Times-BoldItalic",a["Helvetica-BoldOblique"]="Helvetica-BoldOblique",a["Courier-BoldOblique"]="Courier-BoldOblique",a.ArialNarrow="Helvetica",a["ArialNarrow-Bold"]="Helvetica-Bold",a["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",a["ArialNarrow-Italic"]="Helvetica-Oblique",a.ArialBlack="Helvetica",a["ArialBlack-Bold"]="Helvetica-Bold",a["Ar
25ialBlack-BoldItalic"]="Helvetica-BoldOblique",a["ArialBlack-Italic"]="Helvetica-Oblique",a["Arial-Black"]="Helvetica",a["Arial-Black-Bold"]="Helvetica-Bold",a["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",a["Arial-Black-Italic"]="Helvetica-Oblique",a.Arial="Helvetica",a["Arial-Bold"]="Helvetica-Bold",a["Arial-BoldItalic"]="Helvetica-BoldOblique",a["Arial-Italic"]="Helvetica-Oblique",a.ArialMT="Helvetica",a["Arial-BoldItalicMT"]="Helvetica-BoldOblique",a["Arial-BoldMT"]="Helvetica-Bold",a["Arial-ItalicMT"]="Helvetica-Oblique",a["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",a["Arial-BoldMT-Bold"]="Helvetica-Bold",a["Arial-ItalicMT-Italic"]="Helvetica-Oblique",a.ArialUnicodeMS="Helvetica",a["ArialUnicodeMS-Bold"]="Helvetica-Bold",a["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",a["ArialUnicodeMS-Italic"]="Helvetica-Oblique",a["Courier-BoldItalic"]="Courier-BoldOblique",a["Courier-Italic"]="Courier-Oblique",a.CourierNew="Courier",a["CourierNew-Bold"]="Courier-Bold",a["CourierNew-BoldItalic"]="Courier-BoldOblique",a["CourierNew-Italic"]="Courier-Oblique",a["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",a["CourierNewPS-BoldMT"]="Courier-Bold",a["CourierNewPS-ItalicMT"]="Courier-Oblique",a.CourierNewPSMT="Courier",a["Helvetica-BoldItalic"]="Helvetica-BoldOblique",a["Helvetica-Italic"]="Helvetica-Oblique",a["Symbol-Bold"]="Symbol",a["Symbol-BoldItalic"]="Symbol",a["Symbol-Italic"]="Symbol",a.TimesNewRoman="Times-Roman",a["TimesNewRoman-Bold"]="Times-Bold",a["TimesNewRoman-BoldItalic"]="Times-BoldItalic",a["TimesNewRoman-Italic"]="Times-Italic",a.TimesNewRomanPS="Times-Roman",a["TimesNewRomanPS-Bold"]="Times-Bold",a["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",a["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",a["TimesNewRomanPS-BoldMT"]="Times-Bold",a["TimesNewRomanPS-Italic"]="Times-Italic",a["TimesNewRomanPS-ItalicMT"]="Times-Italic",a.TimesNewRomanPSMT="Times-Roman",a["TimesNewRomanPSMT-Bold"]="Times-Bold",a["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",a["TimesNewRomanPSMT-Italic"]="Times-Italic"});p.getStdFontMap=j;const e=(0,n.getLookupTableFactory)(function(a){a.Courier="FoxitFixed.pfb",a["Courier-Bold"]="FoxitFixedBold.pfb",a["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",a["Courier-Oblique"]="FoxitFixedItalic.pfb",a.Helvetica="LiberationSans-Regular.ttf",a["Helvetica-Bold"]="LiberationSans-Bold.ttf",a["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",a["Helvetica-Oblique"]="LiberationSans-Italic.ttf",a["Times-Roman"]="FoxitSerif.pfb",a["Times-Bold"]="FoxitSerifBold.pfb",a["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",a["Times-Italic"]="FoxitSerifItalic.pfb",a.Symbol="FoxitSymbol.pfb",a.ZapfDingbats="FoxitDingbats.pfb",a["LiberationSans-Regular"]="LiberationSans-Regular.ttf",a["LiberationSans-Bold"]="LiberationSans-Bold.ttf",a["LiberationSans-Italic"]="LiberationSans-Italic.ttf",a["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});p.getFontNameToFileMap=e;const t=(0,n.getLookupTableFactory)(function(a){a.Calibri="Helvetica",a["Calibri-Bold"]="Helvetica-Bold",a["Calibri-BoldItalic"]="Helvetica-BoldOblique",a["Calibri-Italic"]="Helvetica-Oblique",a.CenturyGothic="Helvetica",a["CenturyGothic-Bold"]="Helvetica-Bold",a["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",a["CenturyGothic-Italic"]="Helvetica-Oblique",a.ComicSansMS="Comic Sans MS",a["ComicSansMS-Bold"]="Comic Sans MS-Bold",a["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",a["ComicSansMS-Italic"]="Comic Sans MS-Italic",a.Impact="Helvetica",a["ItcSymbol-Bold"]="Helvetica-Bold",a["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",a["ItcSymbol-Book"]="Helvetica",a["ItcSymbol-BookItalic"]="Helvetica-Oblique",a["ItcSymbol-Medium"]="Helvetica",a["ItcSymbol-MediumItalic"]="Helvetica-Oblique",a.LucidaConsole="Courier",a["LucidaConsole-Bold"]="Courier-Bold",a["LucidaConsole-BoldItalic"]="Courier-BoldOblique",a["LucidaConsole-Italic"]="Courier-Oblique",a["LucidaSans-Demi"]="Helvetica-Bold",a["MS-Gothic"]="MS Gothic",a["MS-Gothic-Bold"]="MS Gothic-Bold",a["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",a["MS-Gothic-Italic"]="MS Gothic-Italic",a["MS-Mincho"]="MS Mincho",a["MS-Mincho-Bold"]="MS Mincho-Bold",a["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",a["MS-Mincho-Italic"]="MS Mincho-Italic",a["MS-PGothic"]="MS PGothic",a["MS-PGothic-Bold"]="MS PGothic-Bold",a["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",a["MS-PGothic-Italic"]="MS PGothic-Italic",a["MS-PMincho"]="MS PMincho",a["MS-PMincho-Bold"]="MS PMincho-Bold",a["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",a["MS-PMincho-Italic"]="MS PMincho-Italic",a.NuptialScript="Times-Italic",a.SegoeUISymbol="Helvetica"});p.getNonStdFontMap=t;const l=(0,n.getLookupTableFactory)(function(a){a["Adobe Jenson"]=!0,a["Adobe Text"]=!0,a.Albertus=!0,a.Aldus=!0,a.Alexandria=!0,a.Algerian=!0,a["American Typewriter"]=!0,a.Antiqua=!0,a.Apex=!0,a.Arno=!0,a.Aster=!0,a.Aurora=!0,a.Baskerville=!0,a.Bell=!0,a.Bembo=!0,a["Bembo Schoolbook"]=!0,a.Benguiat=!0,a["Berkeley Old Style"]=!0,a["Bernhard Modern"]=!0,a["Berthold City"]=!0,a.Bodoni=!0,a["Bauer Bodoni"]=!0,a["Book Antiqua"]=!0,a.Bookman=!0,a["Bordeaux Roman"]=!0,a["Californian FB"]=!0,a.Calisto=!0,a.Calvert=!0,a.Capitals=!0,a.Cambria=!0,a.Cartier=!0,a.Caslon=!0,a.Catull=!0,a.Centaur=!0,a["Century Old Style"]=!0,a["Century Schoolbook"]=!0,a.Chaparral=!0,a["Charis SIL"]=!0,a.Cheltenham=!0,a["Cholla Slab"]=!0,a.Clarendon=!0,a.Clearface=!0,a.Cochin=!0,a.Colonna=!0,a["Computer Modern"]=!0,a["Concrete Roman"]=!0,a.Constantia=!0,a["Cooper Black"]=!0,a.Corona=!0,a.Ecotype=!0,a.Egyptienne=!0,a.Elephant=!0,a.Excelsior=!0,a.Fairfield=!0,a["FF Scala"]=!0,a.Folkard=!0,a.Footlight=!0,a.FreeSerif=!0,a["Friz Quadrata"]=!0,a.Garamond=!0,a.Gentium=!0,a.Georgia=!0,a.Gloucester=!0,a["Goudy Old Style"]=!0,a["Goudy Schoolbook"]=!0,a["Goudy Pro Font"]=!0,a.Granjon=!0,a["Guardian Egyptian"]=!0,a.Heather=!0,a.Hercules=!0,a["High Tower Text"]=!0,a.Hiroshige=!0,a["Hoefler Text"]=!0,a["Humana Serif"]=!0,a.Imprint=!0,a["Ionic No. 5"]=!0,a.Janson=!0,a.Joanna=!0,a.Korinna=!0,a.Lexicon=!0,a.LiberationSerif=!0,a["Liberation Serif"]=!0,a["Linux Libertine"]=!0,a.Literaturnaya=!0,a.Lucida=!0,a["Lucida Bright"]=!0,a.Melior=!0,a.Memphis=!0,a.Miller=!0,a.Minion=!0,a.Modern=!0,a["Mona Lisa"]=!0,a["Mrs Eaves"]=!0,a["MS Serif"]=!0,a["Museo Slab"]=!0,a["New York"]=!0,a["Nimbus Roman"]=!0,a["NPS Rawlinson Roadway"]=!0,a.NuptialScript=!0,a.Palatino=!0,a.Perpetua=!0,a.Plantin=!0,a["Plantin Schoolbook"]=!0,a.Playbill=!0,a["Poor Richard"]=!0,a["Rawlinson Roadway"]=!0,a.Renault=!0,a.Requiem=!0,a.Rockwell=!0,a.Roman=!0,a["Rotis Serif"]=!0,a.Sabon=!0,a.Scala=!0,a.Seagull=!0,a.Sistina=!0,a.Souvenir=!0,a.STIX=!0,a["Stone Informal"]=!0,a["Stone Serif"]=!0,a.Sylfaen=!0,a.Times=!0,a.Trajan=!0,a.Trinit
25é=!0,a["Trump Mediaeval"]=!0,a.Utopia=!0,a["Vale Type"]=!0,a["Bitstream Vera"]=!0,a["Vera Serif"]=!0,a.Versailles=!0,a.Wanted=!0,a.Weiss=!0,a["Wide Latin"]=!0,a.Windsor=!0,a.XITS=!0});p.getSerifFonts=l;const V=(0,n.getLookupTableFactory)(function(a){a.Dingbats=!0,a.Symbol=!0,a.ZapfDingbats=!0,a.Wingdings=!0,a["Wingdings-Bold"]=!0,a["Wingdings-Regular"]=!0});p.getSymbolsFonts=V;const J=(0,n.getLookupTableFactory)(function(a){a[2]=10,a[3]=32,a[4]=33,a[5]=34,a[6]=35,a[7]=36,a[8]=37,a[9]=38,a[10]=39,a[11]=40,a[12]=41,a[13]=42,a[14]=43,a[15]=44,a[16]=45,a[17]=46,a[18]=47,a[19]=48,a[20]=49,a[21]=50,a[22]=51,a[23]=52,a[24]=53,a[25]=54,a[26]=55,a[27]=56,a[28]=57,a[29]=58,a[30]=894,a[31]=60,a[32]=61,a[33]=62,a[34]=63,a[35]=64,a[36]=65,a[37]=66,a[38]=67,a[39]=68,a[40]=69,a[41]=70,a[42]=71,a[43]=72,a[44]=73,a[45]=74,a[46]=75,a[47]=76,a[48]=77,a[49]=78,a[50]=79,a[51]=80,a[52]=81,a[53]=82,a[54]=83,a[55]=84,a[56]=85,a[57]=86,a[58]=87,a[59]=88,a[60]=89,a[61]=90,a[62]=91,a[63]=92,a[64]=93,a[65]=94,a[66]=95,a[67]=96,a[68]=97,a[69]=98,a[70]=99,a[71]=100,a[72]=101,a[73]=102,a[74]=103,a[75]=104,a[76]=105,a[77]=106,a[78]=107,a[79]=108,a[80]=109,a[81]=110,a[82]=111,a[83]=112,a[84]=113,a[85]=114,a[86]=115,a[87]=116,a[88]=117,a[89]=118,a[90]=119,a[91]=120,a[92]=121,a[93]=122,a[94]=123,a[95]=124,a[96]=125,a[97]=126,a[98]=196,a[99]=197,a[100]=199,a[101]=201,a[102]=209,a[103]=214,a[104]=220,a[105]=225,a[106]=224,a[107]=226,a[108]=228,a[109]=227,a[110]=229,a[111]=231,a[112]=233,a[113]=232,a[114]=234,a[115]=235,a[116]=237,a[117]=236,a[118]=238,a[119]=239,a[120]=241,a[121]=243,a[122]=242,a[123]=244,a[124]=246,a[125]=245,a[126]=250,a[127]=249,a[128]=251,a[129]=252,a[130]=8224,a[131]=176,a[132]=162,a[133]=163,a[134]=167,a[135]=8226,a[136]=182,a[137]=223,a[138]=174,a[139]=169,a[140]=8482,a[141]=180,a[142]=168,a[143]=8800,a[144]=198,a[145]=216,a[146]=8734,a[147]=177,a[148]=8804,a[149]=8805,a[150]=165,a[151]=181,a[152]=8706,a[153]=8721,a[154]=8719,a[156]=8747,a[157]=170,a[158]=186,a[159]=8486,a[160]=230,a[161]=248,a[162]=191,a[163]=161,a[164]=172,a[165]=8730,a[166]=402,a[167]=8776,a[168]=8710,a[169]=171,a[170]=187,a[171]=8230,a[179]=8220,a[180]=8221,a[181]=8216,a[182]=8217,a[200]=193,a[203]=205,a[207]=211,a[210]=218,a[223]=711,a[224]=321,a[225]=322,a[226]=352,a[227]=353,a[228]=381,a[229]=382,a[233]=221,a[234]=253,a[252]=263,a[253]=268,a[254]=269,a[258]=258,a[260]=260,a[261]=261,a[265]=280,a[266]=281,a[267]=282,a[268]=283,a[269]=313,a[275]=323,a[276]=324,a[278]=328,a[283]=344,a[284]=345,a[285]=346,a[286]=347,a[292]=367,a[295]=377,a[296]=378,a[298]=380,a[305]=963,a[306]=964,a[307]=966,a[308]=8215,a[309]=8252,a[310]=8319,a[311]=8359,a[312]=8592,a[313]=8593,a[337]=9552,a[493]=1039,a[494]=1040,a[672]=1488,a[673]=1489,a[674]=1490,a[675]=1491,a[676]=1492,a[677]=1493,a[678]=1494,a[679]=1495,a[680]=1496,a[681]=1497,a[682]=1498,a[683]=1499,a[684]=1500,a[685]=1501,a[686]=1502,a[687]=1503,a[688]=1504,a[689]=1505,a[690]=1506,a[691]=1507,a[692]=1508,a[693]=1509,a[694]=1510,a[695]=1511,a[696]=1512,a[697]=1513,a[698]=1514,a[705]=1524,a[706]=8362,a[710]=64288,a[711]=64298,a[759]=1617,a[761]=1776,a[763]=1778,a[775]=1652,a[777]=1764,a[778]=1780,a[779]=1781,a[780]=1782,a[782]=771,a[783]=64726,a[786]=8363,a[788]=8532,a[790]=768,a[791]=769,a[792]=768,a[795]=803,a[797]=64336,a[798]=64337,a[799]=64342,a[800]=64343,a[801]=64344,a[802]=64345,a[803]=64362,a[804]=64363,a[805]=64364,a[2424]=7821,a[2425]=7822,a[2426]=7823,a[2427]=7824,a[2428]=7825,a[2429]=7826,a[2430]=7827,a[2433]=7682,a[2678]=8045,a[2679]=8046,a[2830]=1552,a[2838]=686,a[2840]=751,a[2842]=753,a[2843]=754,a[2844]=755,a[2846]=757,a[2856]=767,a[2857]=848,a[2858]=849,a[2862]=853,a[2863]=854,a[2864]=855,a[2865]=861,a[2866]=862,a[2906]=7460,a[2908]=7462,a[2909]=7463,a[2910]=7464,a[2912]=7466,a[2913]=7467,a[2914]=7468,a[2916]=7470,a[2917]=7471,a[2918]=7472,a[2920]=7474,a[2921]=7475,a[2922]=7476,a[2924]=7478,a[2925]=7479,a[2926]=7480,a[2928]=7482,a[2929]=7483,a[2930]=7484,a[2932]=7486,a[2933]=7487,a[2934]=7488,a[2936]=7490,a[2937]=7491,a[2938]=7492,a[2940]=7494,a[2941]=7495,a[2942]=7496,a[2944]=7498,a[2946]=7500,a[2948]=7502,a[2950]=7504,a[2951]=7505,a[2952]=
257506,a[2954]=7508,a[2955]=7509,a[2956]=7510,a[2958]=7512,a[2959]=7513,a[2960]=7514,a[2962]=7516,a[2963]=7517,a[2964]=7518,a[2966]=7520,a[2967]=7521,a[2968]=7522,a[2970]=7524,a[2971]=7525,a[2972]=7526,a[2974]=7528,a[2975]=7529,a[2976]=7530,a[2978]=1537,a[2979]=1538,a[2980]=1539,a[2982]=1549,a[2983]=1551,a[2984]=1552,a[2986]=1554,a[2987]=1555,a[2988]=1556,a[2990]=1623,a[2991]=1624,a[2995]=1775,a[2999]=1791,a[3002]=64290,a[3003]=64291,a[3004]=64292,a[3006]=64294,a[3007]=64295,a[3008]=64296,a[3011]=1900,a[3014]=8223,a[3015]=8244,a[3017]=7532,a[3018]=7533,a[3019]=7534,a[3075]=7590,a[3076]=7591,a[3079]=7594,a[3080]=7595,a[3083]=7598,a[3084]=7599,a[3087]=7602,a[3088]=7603,a[3091]=7606,a[3092]=7607,a[3095]=7610,a[3096]=7611,a[3099]=7614,a[3100]=7615,a[3103]=7618,a[3104]=7619,a[3107]=8337,a[3108]=8338,a[3116]=1884,a[3119]=1885,a[3120]=1885,a[3123]=1886,a[3124]=1886,a[3127]=1887,a[3128]=1887,a[3131]=1888,a[3132]=1888,a[3135]=1889,a[3136]=1889,a[3139]=1890,a[3140]=1890,a[3143]=1891,a[3144]=1891,a[3147]=1892,a[3148]=1892,a[3153]=580,a[3154]=581,a[3157]=584,a[3158]=585,a[3161]=588,a[3162]=589,a[3165]=891,a[3166]=892,a[3169]=1274,a[3170]=1275,a[3173]=1278,a[3174]=1279,a[3181]=7622,a[3182]=7623,a[3282]=11799,a[3316]=578,a[3379]=42785,a[3393]=1159,a[3416]=8377});p.getGlyphMapForStandardFonts=J;const B=(0,n.getLookupTableFactory)(function(a){a[227]=322,a[264]=261,a[291]=346});p.getSupplementalGlyphMapForArialBlack=B;const I=(0,n.getLookupTableFactory)(function(a){a[1]=32,a[4]=65,a[5]=192,a[6]=193,a[9]=196,a[17]=66,a[18]=67,a[21]=268,a[24]=68,a[28]=69,a[29]=200,a[30]=201,a[32]=282,a[38]=70,a[39]=71,a[44]=72,a[47]=73,a[48]=204,a[49]=205,a[58]=74,a[60]=75,a[62]=76,a[68]=77,a[69]=78,a[75]=79,a[76]=210,a[80]=214,a[87]=80,a[89]=81,a[90]=82,a[92]=344,a[94]=83,a[97]=352,a[100]=84,a[104]=85,a[109]=220,a[115]=86,a[116]=87,a[121]=88,a[122]=89,a[124]=221,a[127]=90,a[129]=381,a[258]=97,a[259]=224,a[260]=225,a[263]=228,a[268]=261,a[271]=98,a[272]=99,a[273]=263,a[275]=269,a[282]=100,a[286]=101,a[287]=232,a[288]=233,a[290]=283,a[295]=281,a[296]=102,a[336]=103,a[346]=104,a[349]=105,a[350]=236,a[351]=237,a[361]=106,a[364]=107,a[367]=108,a[371]=322,a[373]=109,a[374]=110,a[381]=111,a[382]=242,a[383]=243,a[386]=246,a[393]=112,a[395]=113,a[396]=114,a[398]=345,a[400]=115,a[401]=347,a[403]=353,a[410]=116,a[437]=117,a[442]=252,a[448]=118,a[449]=119,a[454]=120,a[455]=121,a[457]=253,a[460]=122,a[462]=382,a[463]=380,a[853]=44,a[855]=58,a[856]=46,a[876]=47,a[878]=45,a[882]=45,a[894]=40,a[895]=41,a[896]=91,a[897]=93,a[923]=64,a[1004]=48,a[1005]=49,a[1006]=50,a[1007]=51,a[1008]=52,a[1009]=53,a[1010]=54,a[1011]=55,a[1012]=56,a[1013]=57,a[1081]=37,a[1085]=43,a[1086]=45});p.getSupplementalGlyphMapForCalibri=I;function f(a){const _=(0,P.normalizeFontName)(a);return j()[_]}function g(a){const _=(0,P.normalizeFontName)(a);return!!(j()[_]||t()[_]||l()[_]||V()[_])}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ToUnicodeMap=p.IdentityToUnicodeMap=void 0;var n=re(2);class P{constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(const l in this._map)t(l,this._map[l].charCodeAt(0))}has(t){return this._map[t]!==void 0}get(t){return this._map[t]}charCodeOf(t){const l=this._map;if(l.length<=65536)return l.indexOf(t);for(const V in l)if(l[V]===t)return V|0;return-1}amend(t){for(const l in t)this._map[l]=t[l]}}p.ToUnicodeMap=P;class j{constructor(t,l){this.firstChar=t,this.lastChar=l}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let l=this.firstChar,V=this.lastChar;l<=V;l++)t(l,l)}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){(0,n.unreachable)("Should not call amend()")}}p.IdentityToUnicodeMap=j},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CFFFont=void 0;var n=re(35),P=re(38),j=re(2);class e{constructor(l,V){this.properties=V;const J=new n.CFFParser(l,V,P.SEAC_ANALYSIS_ENABLED);this.cff=J.parse(),this.cff.duplicateFirstGlyph();const B=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=B.compile()}catch{(0,j.warn)("Failed to compile font "+V.loadedName),this.data=l}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const l=this.cff,V=this.properties,{cidToGidMap:J,cMap:B}=V,I=l.charset.charset;let f,g;if(V.composite){let _;if((J==null?void 0:J.length)>0){_=Object.create(null);for(let O=0,N=J.length;O<N;O++){const X=J[O];X!==void 0&&(_[X]=O)}}f=Object.create(null);let y;if(l.isCIDFont)for(g=0;g<I.length;g++){const O=I[g];
25y=B.charCodeOf(O),(_==null?void 0:_[y])!==void 0&&(y=_[y]),f[y]=g}else for(g=0;g<l.charStrings.count;g++)y=B.charCodeOf(g),f[y]=g;return f}let a=l.encoding?l.encoding.encoding:null;return V.isInternalFont&&(a=V.defaultEncoding),f=(0,P.type1FontGlyphMapping)(V,a,I),f}hasGlyphId(l){return this.cff.hasGlyphId(l)}_createBuiltInEncoding(){const{charset:l,encoding:V}=this.cff;if(!l||!V)return;const J=l.charset,B=V.encoding,I=[];for(const f in B){const g=B[f];if(g>=0){const a=J[g];a&&(I[f]=a)}}I.length>0&&(this.properties.builtInEncoding=I)}}p.CFFFont=e},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.FontRendererFactory=void 0;var n=re(2),P=re(35),j=re(39),e=re(37),t=re(8);function l(c,u){return(c[u]<<24|c[u+1]<<16|c[u+2]<<8|c[u+3])>>>0}function V(c,u){return c[u]<<8|c[u+1]}function J(c,u){return(c[u]<<24|c[u+1]<<16)>>16}function B(c,u){return c[u]<<24>>24}function I(c,u){return J(c,u)/16384}function f(c){const u=c.length;let T=32768;return u<1240?T=107:u<33900&&(T=1131),T}function g(c,u,T){const r=V(c,u+2)===1?l(c,u+8):l(c,u+16),s=V(c,u+r);let o,m,h;if(s===4){V(c,u+r+2);const A=V(c,u+r+6)>>1;for(m=u+r+14,o=[],h=0;h<A;h++,m+=2)o[h]={end:V(c,m)};for(m+=2,h=0;h<A;h++,m+=2)o[h].start=V(c,m);for(h=0;h<A;h++,m+=2)o[h].idDelta=V(c,m);for(h=0;h<A;h++,m+=2){let L=V(c,m);if(L!==0){o[h].ids=[];for(let H=0,F=o[h].end-o[h].start+1;H<F;H++)o[h].ids[H]=V(c,m+L),L+=2}}return o}else if(s===12){const A=l(c,u+r+12);for(m=u+r+16,o=[],h=0;h<A;h++)u=l(c,m),o.push({start:u,end:l(c,m+4),idDelta:l(c,m+8)-u}),m+=12;return o}throw new n.FormatError(`unsupported cmap: ${s}`)}function a(c,u,T,r){var h,A,L;const s={},m=new P.CFFParser(new t.Stream(c,u,T-u),s,r).parse();return{glyphs:m.charStrings.objects,subrs:(A=(h=m.topDict.privateDict)==null?void 0:h.subrsIndex)==null?void 0:A.objects,gsubrs:(L=m.globalSubrIndex)==null?void 0:L.objects,isCFFCIDFont:m.isCIDFont,fdSelect:m.fdSelect,fdArray:m.fdArray}}function _(c,u,T){let r,s;T?(r=4,s=l):(r=2,s=(h,A)=>2*V(h,A));const o=[];let m=s(u,0);for(let h=r;h<u.length;h+=r){const A=s(u,h);o.push(c.subarray(m,A)),m=A}return o}function y(c,u){const T=u.codePointAt(0);let r=0,s=0,o=c.length-1;for(;s<o;){const m=s+o+1>>1;T<c[m].start?o=m-1:s=m}return c[s].start<=T&&T<=c[s].end&&(r=c[s].idDelta+(c[s].ids?c[s].ids[T-c[s].start]:T)&65535),{charCode:T,glyphId:r}}function O(c,u,T){function r(F,M){u.push({cmd:"moveTo",args:[F,M]})}function s(F,M){u.push({cmd:"lineTo",args:[F,M]})}function o(F,M,k,x){u.push({cmd:"quadraticCurveTo",args:[F,M,k,x]})}let m=0;const h=J(c,m);let A,L=0,H=0;if(m+=10,h<0)do{A=V(c,m);const F=V(c,m+2);m+=4;let M,k;A&1?(A&2?(M=J(c,m),k=J(c,m+2)):(M=V(c,m),k=V(c,m+2)),m+=4):A&2?(M=B(c,m++),k=B(c,m++)):(M=c[m++],k=c[m++]),A&2?(L=M,H=k):(L=0,H=0);let x=1,C=1,G=0,Z=0;A&8?(x=C=I(c,m),m+=2):A&64?(x=I(c,m),C=I(c,m+2),m+=4):A&128&&(x=I(c,m),G=I(c,m+2),Z=I(c,m+4),C=I(c,m+6),m+=8);const ae=T.glyphs[F];ae&&(u.push({cmd:"save"},{cmd:"transform",args:[x,G,Z,C,L,H]}),O(ae,u,T),u.push({cmd:"restore"}))}while(A&32);else{const F=[];let M,k;for(M=0;M<h;M++)F.push(V(c,m)),m+=2;const x=V(c,m);m+=2+x;const C=F.at(-1)+1,G=[];for(;G.length<C;){A=c[m++];let ae=1;for(A&8&&(ae+=c[m++]);ae-- >0;)G.push({flags:A})}for(M=0;M<C;M++){switch(G[M].flags&18){case 0:L+=J(c,m),m+=2;break;case 2:L-=c[m++];break;case 18:L+=c[m++];break}G[M].x=L}for(M=0;M<C;M++){switch(G[M].flags&36){case 0:H+=J(c,m),m+=2;break;case 4:H-=c[m++];break;case 36:H+=c[m++];break}G[M].y=H}let Z=0;for(m=0;m<h;m++){const ae=F[m],oe=G.slice(Z,ae+1);if(oe[0].flags&1)oe.push(oe[0]);else if(oe.at(-1).flags&1)oe.unshift(oe.at(-1));else{const te={flags:1,x:(oe[0].x+oe.at(-1).x)/2,y:(oe[0].y+oe.at(-1).y)/2};oe.unshift(te),oe.push(te)}for(r(oe[0].x,oe[0].y),M=1,k=oe.length;M<k;M++)oe[M].flags&1?s(oe[M].x,oe[M].y):oe[M+1].flags&1?(o(oe[M].x,oe[M].y,oe[M+1].x,oe[M+1].y),M++):o(oe[M].x,oe[M].y,(oe[M].x+oe[M+1].x)/2,(oe[M].y+oe[M+1].y)/2);Z=ae+1}}}function N(c,u,T,r){function s(M,k){u.push({cmd:"moveTo",args:[M,k]})}function o(M,k){u.push({cmd:"lineTo",args:[M,k]})}function m(M,k,x,C,G,Z){u.push({cmd:"bezierCurveTo",args:[M,k,x,C,G,Z]})}const h=[];let A=0,L=0,H=0;function F(M){var x;let k=0;for(;k<M.length;){let C=!1,G=M[k++],Z,ae,oe,te,K,v,$,d,w;switch(G){case 1:H+=h.length>>1,C=!0;break;case 3:H+=h.length>>1,C=!0;break;case 4:L+=h.pop(),s(A,L),C=!0;break;case 5:for(;h.length>0;)A+=h.shift(),L+=h.shift(),o(A,L);break;case 6:for(;h.length>0&&(A+=h.shift(),o(A,L),h.length!==0);)L+=h.shift(),o(A,L);break;case 7:for(;h.length>0&&(L+=h.shift(),o(A,L),h.length!==0);)A+=h.shift(),o(A,L);break;case 8:for(;h.length>0;)Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+h.shift(),m(Z,oe,ae,te,A,L);break;case 10:if(d=h.pop(),w=null,T.isCFFCIDFont){const S=T.fdSelect.getFDIndex(r);if(S>=0&&S<T.fdArray.length){const z=T.fdArray[S];let W;(x=z.privateDict)!=null&&x.subrsIndex&&(W=z.privateDict.subrsIndex.objects),W&&(d+=f(W),w=W[d])}else(0,n.warn)("Invalid fd index for glyph index.")}else w=T.subrs[d+T.subrsBias];w&&F(w);break;case 11:return;case 12:switch(G=M[k++],G){case 34:Z=A+h.shift(),ae=Z+h.shift(),K=L+h.shift(),A=ae+h.shift(),m(Z,L,ae,K,A,K),Z=A+h.shift(),ae=Z+h.shift(),A=ae+h.shift(),m(Z,K,ae,L,A,L);break;case 35:Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+h.shift(),m(Z,oe,ae,te,A,L),Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+h.shift(),m(Z,oe,ae,te,A,L),h.pop();break;case 36:Z=A+h.shift(),K=L+h.shift(),ae=Z+h.shift(),v=K+h.shift(),A=ae+h.shift(),m(Z,K,ae,v,A,v),Z=A+h.shift(),ae=Z+h.shift(),$=v+h.shift(),A=ae+h.shift(),m(Z,v,ae,$,A,L);break;case 37:const S=A,z=L;Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+h.shift(),m(Z,oe,ae,te,A,L),Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae,L=te,Math.abs(A-S)>Math.abs(L-z)?A+=h.shift():L+=h.shift(),m(Z,oe,ae,te,A,L);break;default:throw new n.FormatError(`unknown operator: 12 ${G}`)}break;case 14:if(h.length>=4){const S=h.pop(),z=h.pop();L=h.pop(),A=h.pop(),u.push({cmd:"save"},{cmd:"translate",args:[A,L]});let W=y(T.cmap,String.fromCharCode(T.glyphNameMap[e.StandardEncoding[S]]));N(T.glyphs[W.glyphId],u,T,W.glyphId),u.push({cmd:"restore"}),W=y(T.cmap,String.fromCharCode(T.glyphNameMap[e.StandardEncoding[z]])),N(T.glyphs[W.glyphId],u,T,W.glyphId)}return;case 18:H+=h.length>>1,C=!0;break;
25case 19:H+=h.length>>1,k+=H+7>>3,C=!0;break;case 20:H+=h.length>>1,k+=H+7>>3,C=!0;break;case 21:L+=h.pop(),A+=h.pop(),s(A,L),C=!0;break;case 22:A+=h.pop(),s(A,L),C=!0;break;case 23:H+=h.length>>1,C=!0;break;case 24:for(;h.length>2;)Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+h.shift(),m(Z,oe,ae,te,A,L);A+=h.shift(),L+=h.shift(),o(A,L);break;case 25:for(;h.length>6;)A+=h.shift(),L+=h.shift(),o(A,L);Z=A+h.shift(),oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+h.shift(),m(Z,oe,ae,te,A,L);break;case 26:for(h.length%2&&(A+=h.shift());h.length>0;)Z=A,oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae,L=te+h.shift(),m(Z,oe,ae,te,A,L);break;case 27:for(h.length%2&&(L+=h.shift());h.length>0;)Z=A+h.shift(),oe=L,ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te,m(Z,oe,ae,te,A,L);break;case 28:h.push((M[k]<<24|M[k+1]<<16)>>16),k+=2;break;case 29:d=h.pop()+T.gsubrsBias,w=T.gsubrs[d],w&&F(w);break;case 30:for(;h.length>0&&(Z=A,oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+(h.length===1?h.shift():0),m(Z,oe,ae,te,A,L),h.length!==0);)Z=A+h.shift(),oe=L,ae=Z+h.shift(),te=oe+h.shift(),L=te+h.shift(),A=ae+(h.length===1?h.shift():0),m(Z,oe,ae,te,A,L);break;case 31:for(;h.length>0&&(Z=A+h.shift(),oe=L,ae=Z+h.shift(),te=oe+h.shift(),L=te+h.shift(),A=ae+(h.length===1?h.shift():0),m(Z,oe,ae,te,A,L),h.length!==0);)Z=A,oe=L+h.shift(),ae=Z+h.shift(),te=oe+h.shift(),A=ae+h.shift(),L=te+(h.length===1?h.shift():0),m(Z,oe,ae,te,A,L);break;default:if(G<32)throw new n.FormatError(`unknown operator: ${G}`);G<247?h.push(G-139):G<251?h.push((G-247)*256+M[k++]+108):G<255?h.push(-(G-251)*256-M[k++]-108):(h.push((M[k]<<24|M[k+1]<<16|M[k+2]<<8|M[k+3])/65536),k+=4);break}C&&(h.length=0)}}F(c)}const X=[];class R{constructor(u){this.constructor===R&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=u,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(u){const{charCode:T,glyphId:r}=y(this.cmap,u);let s=this.compiledGlyphs[r];if(!s)try{s=this.compileGlyph(this.glyphs[r],r),this.compiledGlyphs[r]=s}catch(o){throw this.compiledGlyphs[r]=X,this.compiledCharCodeToGlyphId[T]===void 0&&(this.compiledCharCodeToGlyphId[T]=r),o}return this.compiledCharCodeToGlyphId[T]===void 0&&(this.compiledCharCodeToGlyphId[T]=r),s}compileGlyph(u,T){if(!u||u.length===0||u[0]===14)return X;let r=this.fontMatrix;if(this.isCFFCIDFont){const o=this.fdSelect.getFDIndex(T);o>=0&&o<this.fdArray.length?r=this.fdArray[o].getByName("FontMatrix")||n.FONT_IDENTITY_MATRIX:(0,n.warn)("Invalid fd index for glyph index.")}const s=[{cmd:"save"},{cmd:"transform",args:r.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(u,s,T),s.push({cmd:"restore"}),s}compileGlyphImpl(){(0,n.unreachable)("Children classes should implement this.")}hasBuiltPath(u){const{charCode:T,glyphId:r}=y(this.cmap,u);return this.compiledGlyphs[r]!==void 0&&this.compiledCharCodeToGlyphId[T]!==void 0}}class q extends R{constructor(u,T,r){super(r||[488e-6,0,0,488e-6,0,0]),this.glyphs=u,this.cmap=T}compileGlyphImpl(u,T){O(u,T,this)}}class b extends R{constructor(u,T,r,s){super(r||[.001,0,0,.001,0,0]),this.glyphs=u.glyphs,this.gsubrs=u.gsubrs||[],this.subrs=u.subrs||[],this.cmap=T,this.glyphNameMap=s||(0,j.getGlyphsUnicode)(),this.gsubrsBias=f(this.gsubrs),this.subrsBias=f(this.subrs),this.isCFFCIDFont=u.isCFFCIDFont,this.fdSelect=u.fdSelect,this.fdArray=u.fdArray}compileGlyphImpl(u,T,r){N(u,T,this,r)}}class E{static create(u,T){const r=new Uint8Array(u.data);let s,o,m,h,A,L;const H=V(r,4);for(let F=0,M=12;F<H;F++,M+=16){const k=(0,n.bytesToString)(r.subarray(M,M+4)),x=l(r,M+8),C=l(r,M+12);switch(k){case"cmap":s=g(r,x);break;case"glyf":o=r.subarray(x,x+C);break;case"loca":m=r.subarray(x,x+C);break;case"head":L=V(r,x+18),A=V(r,x+50);break;case"CFF ":h=a(r,x,x+C,T);break}}if(o){const F=L?[1/L,0,0,1/L,0,0]:u.fontMatrix;return new q(_(o,m,A),s,F)}return new b(h,s,u.fontMatrix,u.glyphNameMap)}}p.FontRendererFactory=E},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.getMetrics=p.getFontBasicMetrics=void 0;var n=re(3);const P=(0,n.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,n.getLookupTableFactory)(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.
25S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.i
25ogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-Bold"]=(0,n.getLookupTableFactory)
vendor: 4,278 bytes, line 25
25(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),
25e["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)
vendor: 4,278 bytes, line 25
25(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),
25e["Helvetica-Oblique"]=(0,n.getLookupTableFactory)
vendor: 4,279 bytes, line 25
25(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),
25e.Symbol=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.universal=713,t.numbersign=500,t.existential=549,t.percent=833,t.ampersand=778,t.suchthat=439,t.parenleft=333,t.parenright=333,t.asteriskmath=500,t.plus=549,t.comma=250,t.minus=549,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=549,t.equal=549,t.greater=549,t.question=444,t.congruent=549,t.Alpha=722,t.Beta=667,t.Chi=722,t.Delta=612,t.Epsilon=611,t.Phi=763,t.Gamma=603,t.Eta=722,t.Iota=333,t.theta1=631,t.Kappa=722,t.Lambda=686,t.Mu=889,t.Nu=722,t.Omicron=722,t.Pi=768,t.Theta=741,t.Rho=556,t.Sigma=592,t.Tau=611,t.Upsilon=690,t.sigma1=439,t.Omega=768,t.Xi=645,t.Psi=795,t.Zeta=611,t.bracketleft=333,t.therefore=863,t.bracketright=333,t.perpendicular=658,t.underscore=500,t.radicalex=500,t.alpha=631,t.beta=549,t.chi=549,t.delta=494,t.epsilon=439,t.phi=521,t.gamma=411,t.eta=603,t.iota=329,t.phi1=603,t.kappa=549,t.lambda=549,t.mu=576,t.nu=521,t.omicron=549,t.pi=549,t.theta=521,t.rho=549,t.sigma=603,t.tau=439,t.upsilon=576,t.omega1=713,t.omega=686,t.xi=493,t.psi=686,t.zeta=494,t.braceleft=480,t.bar=200,t.braceright=480,t.similar=549,t.Euro=750,t.Upsilon1=620,t.minute=247,t.lessequal=549,t.fraction=167,t.infinity=713,t.florin=500,t.club=753,t.diamond=753,t.heart=753,t.spade=753,t.arrowboth=1042,t.arrowleft=987,t.arrowup=603,t.arrowright=987,t.arrowdown=603,t.degree=400,t.plusminus=549,t.second=411,t.greaterequal=549,t.multiply=549,t.proportional=713,t.partialdiff=494,t.bullet=460,t.divide=549,t.notequal=549,t.equivalence=549,t.approxequal=549,t.ellipsis=1e3,t.arrowvertex=603,t.arrowhorizex=1e3,t.carriagereturn=658,t.aleph=823,t.Ifraktur=686,t.Rfraktur=795,t.weierstrass=987,t.circlemultiply=768,t.circleplus=768,t.emptyset=823,t.intersection=768,t.union=768,t.propersuperset=713,t.reflexsuperset=713,t.notsubset=713,t.propersubset=713,t.reflexsubset=713,t.element=713,t.notelement=713,t.angle=768,t.gradient=713,t.registerserif=790,t.copyrightserif=790,t.trademarkserif=890,t.product=823,t.radical=549,t.dotmath=250,t.logicalnot=713,t.logicaland=603,t.logicalor=603,t.arrowdblboth=1042,t.arrowdblleft=987,t.arrowdblup=603,t.arrowdblright=987,t.arrowdbldown=603,t.lozenge=494,t.angleleft=329,t.registersans=790,t.copyrightsans=790,t.trademarksans=786,t.summation=713,t.parenlefttp=384,t.parenleftex=384,t.parenleftbt=384,t.bracketlefttp=384,t.bracketleftex=384,t.bracketleftbt=384,t.bracelefttp=494,t.braceleftmid=494,t.braceleftbt=494,t.braceex=494,t.angleright=329,t.integral=274,t.integraltp=686,t.integralex=686,t.integralbt=686,t.parenrighttp=384,t.parenrightex=384,t.parenrightbt=384,t.bracketrighttp=384,t.bracketrightex=384,t.bracketrightbt=384,t.bracerighttp=494,t.bracerightmid=494,t.bracerightbt=494,t.apple=790}),e["Times-Roman"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.quotedbl=408,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=564,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=564,t.equal=564,t.greater=564,t.question=444,t.at=921,t.A=722,t.B=667,t.C=667,t.D=722,t.E=611,t.F=556,t.G=722,t.H=722,t.I=333,t.J=389,t.K=722,t.L=611,t.M=889,t.N=722,t.O=722,t.P=556,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=722,t.W=944,t.X=722,t.Y=722,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=469,t.underscore=500,t.quoteleft=333,t.a=444,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=500,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=500,t.o=500,t.p=500,t.q=500,t.r=333,t.s=389,t.t=278,t.u=500,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=480,t.bar=200,t.braceright=480,t.asciitilde=541,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=180,t.quotedblleft=444,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodce
25ntered=250,t.paragraph=453,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=444,t.quotedblright=444,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=444,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=889,t.ordfeminine=276,t.Lslash=611,t.Oslash=722,t.OE=889,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=444,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=722,t.divide=564,t.Yacute=722,t.Acircumflex=722,t.aacute=444,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=444,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=444,t.Ncommaaccent=722,t.lacute=278,t.agrave=444,t.Tcommaaccent=611,t.Cacute=667,t.atilde=444,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=444,t.Amacron=722,t.rcaron=333,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=556,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=588,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=722,t.Abreve=722,t.multiply=564,t.uacute=500,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=444,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=722,t.Iacute=333,t.plusminus=564,t.brokenbar=200,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=333,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=326,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=444,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=344,t.Kcommaaccent=722,t.Lacute=611,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=722,t.zdotaccent=444,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=500,t.minus=564,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=564,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-Bold"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=1e3,t.ampersand=833,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=930,t.A=722,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=778,t.I=389,t.J=500,t.K=778,t.L=667,t.M=944,t.N=722,t.O=778,t.P=611,t.Q=778,t.R=722,t.S=556,t.T=667,t.U=722,t.V=722,t.W=1e3,t.X=722,t.Y=722,t.Z=667,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=581,t.underscore=500,t.quoteleft=333,t.a=500,t.b=556,t.c=444,t.d=556,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=333,t.k=556,t.l=278,t.m=833,t.n=556,t.o=500,t.p=556,t.q=556,t.r=444,t.s=389,t.t=333,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=394,t.bar=220,t.braceright=394,t.asciitilde=520,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodce
25ntered=250,t.paragraph=540,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=300,t.Lslash=667,t.Oslash=778,t.OE=1e3,t.ordmasculine=330,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=556,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=722,t.divide=570,t.Yacute=722,t.Acircumflex=722,t.aacute=500,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=667,t.Cacute=722,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=500,t.Amacron=722,t.rcaron=444,t.ccedilla=444,t.Zdotaccent=667,t.Thorn=611,t.Omacron=778,t.Racute=722,t.Sacute=556,t.dcaron=672,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=570,t.uacute=556,t.Tcaron=667,t.partialdiff=494,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=778,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=444,t.omacron=500,t.Zacute=667,t.Zcaron=667,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=416,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=778,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=300,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=556,t.threequarters=750,t.Scedilla=556,t.lcaron=394,t.Kcommaaccent=778,t.Lacute=667,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=667,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=778,t.degree=400,t.ograve=500,t.Ccaron=722,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=444,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=722,t.Lcommaaccent=667,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=444,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=556,t.minus=570,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=333,t.logicalnot=570,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-BoldItalic"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=389,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=832,t.A=667,t.B=667,t.C=667,t.D=722,t.E=667,t.F=667,t.G=722,t.H=778,t.I=389,t.J=500,t.K=667,t.L=611,t.M=889,t.N=722,t.O=722,t.P=611,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=667,t.W=889,t.X=667,t.Y=611,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=570,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=556,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=556,t.v=444,t.w=667,t.x=500,t.y=444,t.z=389,t.braceleft=348,t.bar=220,t.braceright=348,t.asciitilde=570,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodce
25ntered=250,t.paragraph=500,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=944,t.ordfeminine=266,t.Lslash=611,t.Oslash=722,t.OE=944,t.ordmasculine=300,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=611,t.divide=570,t.Yacute=611,t.Acircumflex=667,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=611,t.Cacute=667,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=556,t.acircumflex=500,t.Amacron=667,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=611,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=608,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=722,t.Agrave=667,t.Abreve=667,t.multiply=570,t.uacute=556,t.Tcaron=611,t.partialdiff=494,t.ydieresis=444,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=722,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=366,t.eogonek=444,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=576,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=382,t.Kcommaaccent=667,t.Lacute=611,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=722,t.zdotaccent=389,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=500,t.minus=606,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=606,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-Italic"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.quotedbl=420,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=675,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=675,t.equal=675,t.greater=675,t.question=500,t.at=920,t.A=611,t.B=611,t.C=667,t.D=
25722,t.E=611,t.F=611,t.G=722,t.H=722,t.I=333,t.J=444,t.K=667,t.L=556,t.M=833,t.N=667,t.O=722,t.P=611,t.Q=722,t.R=611,t.S=500,t.T=556,t.U=722,t.V=611,t.W=833,t.X=611,t.Y=556,t.Z=556,t.bracketleft=389,t.backslash=278,t.bracketright=389,t.asciicircum=422,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=278,t.g=500,t.h=500,t.i=278,t.j=278,t.k=444,t.l=278,t.m=722,t.n=500,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=500,t.v=444,t.w=667,t.x=444,t.y=444,t.z=389,t.braceleft=400,t.bar=275,t.braceright=400,t.asciitilde=541,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=214,t.quotedblleft=556,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=523,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=556,t.quotedblright=556,t.guillemotright=500,t.ellipsis=889,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=889,t.AE=889,t.ordfeminine=276,t.Lslash=556,t.Oslash=722,t.OE=944,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=667,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=500,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=556,t.divide=675,t.Yacute=556,t.Acircumflex=611,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=500,t.Ncommaaccent=667,t.lacute=278,t.agrave=500,t.Tcommaaccent=556,t.Cacute=667,t.atilde=500,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=611,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=500,t.Amacron=611,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=556,t.Thorn=611,t.Omacron=722,t.Racute=611,t.Sacute=500,t.dcaron=544,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=611,t.Abreve=611,t.multiply=675,t.uacute=500,t.Tcaron=556,t.partialdiff=476,t.ydieresis=444,t.Nacute=667,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=667,t.Iacute=333,t.plusminus=675,t.brokenbar=275,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=389,t.omacron=500,t.Zacute=556,t.Zcaron=556,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=300,t.eogonek=444,t.Uogonek=722,t.Aacute=611,t.Adieresis=611,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=500,t.lcaron=300,t.Kcommaaccent=667,t.Lacute=556,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=500,t.Scommaaccent=500,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=667,t.otilde=500,t.Rcommaaccent=611,t.Lcommaaccent=556,t.Atilde=611,t.Aogonek=611,t.Aring=611,t.Otilde=722,t.zdotaccent=389,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=444,t.minus=675,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=675,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),e.ZapfDingbats=(0,n.getLookupTableFactory)(function(t){t.space=278,t.a1=974,t.a2=961,t.a202=974,t.a3=980,t.a4=719,t.a5=789,t.a119=790,t.a118=791,t.a117=690,t.a11=960,t.a12=939,t.a13=549,t.a14=855,t.a15=911,t.a16=933,t.a105=911,t.a17=945,t.a18=974,t.a19=755,t.a20=846,t.a21=762,t.a22=761,t.a23=571,t.a24=677,t.a25=763,t.a26=760,t.a27=759,t.a28=754,t.a6=494,t.a7=552,t.a8=537,t.a9=577,t.a10=692,t.a29=786,t.a30=788,t.a31=788,t.a32=790,t.a33=793,t.a34=794,t.a35=816,t.a36=823,t.a37=789,t.a38=841,t.a39=823,t.a40=833,t.a41=816,t.a42=831,t.a43=923,t.a44=744,t.a45=723,t.a46=749,t.a47=790,t.a48=792,t.a49=695,t.a50=776,t.a51=768,t.a52=792,t.a53=759,t.a54=707,t.a55=708,t.a56=682,t.a57=701,t.a58=826,t.a59=815,t.a60=789,t.a61=789,t.a62=707,t.a63=687,t.a64=696,t.a65=689,t.a66=786,t.a67=787,t.a68=713,t.a69=791,t.a70=785,t.a71=791,t.a72=873,t.a73=761,t.a74=762,t.a203=762,t.a75=759,t.a204=759,t.a76=892,t.a77=892,t.a78=788,t.a79=784,t.a81=438,t.a82=138,t.a83=277,t.a84=415,t.a97=392,t.a98=392,t.a99=668,t.a100=668,t.a89=390,t.a90=390,t.a93=317,t.a94=317,t.a91=276,t.a92=276,t.a205=509,t.a85=509,t.a206=410,t.a86=410,t.a87=234,t.a88=234,t.a95=334,t.a96=334,t.a101=732,t.a102=544,t.a103=544,t.a104=910,t.a106=667,t.a107=760,t.a108=760,t.a112=776,t.a111=595,t.a110=694,t.a109=626,t.a120=788,t.a121=788,t.a122=788,t.a123=788,t.a124=788,t.a125=788,t.a126=788,t.a127=788,t.a128=788,t.a129=788,t.a130=788,t.a131=788,t.a132=788,t.a133=788,t.a134=788,t.a135=788,t.a136=788,t.a137=788,t.a138=788,t.a139=788,t.a140=788,t.a141=788,t.a142=788,t.a143=788,t.a144=788,t.a145=788,t.a146=788,t.a147=788,t.a148=788,t.a149=788,t.a150=788,t.a151=788,t.a152=788,t.a153=788,t.a154=788,t.a155=788,t.a156=788,t.a157=788,t.a158=788,t.a159=788,t.a160=894,t.a161=838,t.a163=1016,t.a164=458,t.a196=748,t.a165=924,t.a192=748,t.a166=918,t.a167=927,t.a168=928,t.a169=928,t.a170=834,t.a171=873,t.a172=828,t.a173=924,t.a162=924,t.a174=917,t.a175=930,t.a176=931,t.a177=463,t.a178=883,t.a179=836,t.a193=836,t.a180=867,t.a199=867,t.a181=696,t.a200=696,t.a182=874,t.a201=874,t.a183=760,t.a184=946,t.a197=771,t.a185=865,t.a194=771,t.a198=888,t.a186=967,t.a195=888,t.a187=831,t.a188=873,t.a189=927,t.a190=970,t.a191=918})});p.getMetrics=P;const j=(0,n.getLookupTableFactory)(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}});p.getFontBasicMetrics=j},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.GlyfTable=void 0;const re=1,n=2,P=4,j=8,e=16,t=32,l=64,V=1,J=2,B=8,I=32,f=64,g=128,a=256;class _{constructor({glyfTable:b,isGlyphLocationsLong:E,locaTable:c,numGlyphs:u}){this.glyphs=[];const T=new DataView(c.buffer,c.byteOffset,c.byteLength),r=new DataView(b.buffer,b.byteOffset,b.byteLength),s=E?4:2;let o=E?T.getUint32(0):2*T.getUint16(0),m=0;for(let h=0;h<u;h++){m+=s;const A=E?T.getUint32(m):2*T.getUint16(m);if(A===o){this.glyphs.push(new y({}));continue}const L=y.parse(o,r);this.glyphs.push(L),o=A}}getSize(){return this.glyphs.reduce((b,E)=>{const c=E.getSize();return b+(c+3&-4)},0)}write(){const b=this.getSize(),E=new DataView(new ArrayBuffer(b)),c=b>131070,u=c?4:2,T=new DataView(new ArrayBuffer((this.glyphs.length+1)*u));c?T.setUint32(0,0):T.setUint16(0,0);let r=0,s=0;for(const o of this.glyphs)r+=o.write(r,E),r=r+3&-4,s+=u,c?T.setUint32(s,r):T.setUint16(s,r>>1);return{isLocationLong:c,loca:new Uint8Array(T.buffer),glyf:new Uint8Array(E.buffer)}}scale(b){for(let E=0,c=this.glyphs.length;E<c;E++)this.glyphs[E].scale(b[E])}}p.GlyfTable=_;class y{constructor({header:b=null,simple:E=null,composites:c=null}){this.header=b,this.simple=E,this.composites=c}static parse(b,E){const[c,u]=O.parse(b,E);if(b+=c,u.numberOfContours<0){const r=[];for(;;){const[s,o]=R.parse(b,E);if(b+=s,r.push(o),!(o.flags&I))break}return new y({header:u,composites:r})}const T=X.parse(b,E,u.numberOfContours);return new y({header:u,simple:T})}getSize(){if(!this.header)return 0;const b=this.simple?this.simple.getSize():this.composites.reduce((E,c)=>E+c.getSize(),0);return this.header.getSize()+b}write(b,E){if(!this.header)return 0;const c=b;if(b+=this.header.write(b,E),this.simple)b+=this.simple.write(b,E);else for(const u of this.composites)b+=u.write(b,E);return b-c}scale(b){if(!this.header)return;const E=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(E,b),this.simple)this.simple.scale(E,b);else for(const c of this.composites)c.scale(E,b)}}class O{constructor({numberOfContours:b,xMin:E,yMin:c,xMax:u,yMax:T}){this.numberOfContours=b,this.xMin=E,this.yMin=c,this.xMax=u,this.yMax=T}static parse(b,E){return[10,new O({numberOfContours:E.getInt16(b),xMin:E.getInt16(b+2),yMin:E.getInt16(b+4),xMax:E.getInt16(b+6),yMax:E.getInt16(b+8)})]}getSize(){return 10}write(b,E){return E.setInt16(b,this.numberOfContours),E.setInt16(b+2,this.xMin),E.setInt16(b+4,this.yMin),E.setInt16(b+6,this.xMax),E.setInt16(b+8,this.yMax
25),10}scale(b,E){this.xMin=Math.round(b+(this.xMin-b)*E),this.xMax=Math.round(b+(this.xMax-b)*E)}}class N{constructor({flags:b,xCoordinates:E,yCoordinates:c}){this.xCoordinates=E,this.yCoordinates=c,this.flags=b}}class X{constructor({contours:b,instructions:E}){this.contours=b,this.instructions=E}static parse(b,E,c){const u=[];for(let k=0;k<c;k++){const x=E.getUint16(b);b+=2,u.push(x)}const T=u[c-1]+1,r=E.getUint16(b);b+=2;const s=new Uint8Array(E).slice(b,b+r);b+=r;const o=[];for(let k=0;k<T;b++,k++){let x=E.getUint8(b);if(o.push(x),x&j){const C=E.getUint8(++b);x^=j;for(let G=0;G<C;G++)o.push(x);k+=C}}const m=[];let h=[],A=[],L=[];const H=[];let F=0,M=0;for(let k=0;k<T;k++){const x=o[k];if(x&n){const C=E.getUint8(b++);M+=x&e?C:-C,h.push(M)}else x&e||(M+=E.getInt16(b),b+=2),h.push(M);u[F]===k&&(F++,m.push(h),h=[])}M=0,F=0;for(let k=0;k<T;k++){const x=o[k];if(x&P){const C=E.getUint8(b++);M+=x&t?C:-C,A.push(M)}else x&t||(M+=E.getInt16(b),b+=2),A.push(M);L.push(x&re|x&l),u[F]===k&&(h=m[F],F++,H.push(new N({flags:L,xCoordinates:h,yCoordinates:A})),A=[],L=[])}return new X({contours:H,instructions:s})}getSize(){let b=this.contours.length*2+2+this.instructions.length,E=0,c=0;for(const u of this.contours){b+=u.flags.length;for(let T=0,r=u.xCoordinates.length;T<r;T++){const s=u.xCoordinates[T],o=u.yCoordinates[T];let m=Math.abs(s-E);m>255?b+=2:m>0&&(b+=1),E=s,m=Math.abs(o-c),m>255?b+=2:m>0&&(b+=1),c=o}}return b}write(b,E){const c=b,u=[],T=[],r=[];let s=0,o=0;for(const m of this.contours){for(let h=0,A=m.xCoordinates.length;h<A;h++){let L=m.flags[h];const H=m.xCoordinates[h];let F=H-s;if(F===0)L|=e,u.push(0);
25else{const k=Math.abs(F);k<=255?(L|=F>=0?n|e:n,u.push(k)):u.push(F)}s=H;const M=m.yCoordinates[h];if(F=M-o,F===0)L|=t,T.push(0);else{const k=Math.abs(F);k<=255?(L|=F>=0?P|t:P,T.push(k)):T.push(F)}o=M,r.push(L)}E.setUint16(b,u.length-1),b+=2}E.setUint16(b,this.instructions.length),b+=2,this.instructions.length&&(new Uint8Array(E.buffer,0,E.buffer.byteLength).set(this.instructions,b),b+=this.instructions.length);for(const m of r)E.setUint8(b++,m);for(let m=0,h=u.length;m<h;m++){const A=u[m],L=r[m];L&n?E.setUint8(b++,A):L&e||(E.setInt16(b,A),b+=2)}for(let m=0,h=T.length;m<h;m++){const A=T[m],L=r[m];L&P?E.setUint8(b++,A):L&t||(E.setInt16(b,A),b+=2)}return b-c}scale(b,E){for(const c of this.contours)if(c.xCoordinates.length!==0)for(let u=0,T=c.xCoordinates.length;u<T;u++)c.xCoordinates[u]=Math.round(b+(c.xCoordinates[u]-b)*E)}}class R{constructor({flags:b,glyphIndex:E,argument1:c,argument2:u,transf:T,instructions:r}){this.flags=b,this.glyphIndex=E,this.argument1=c,this.argument2=u,this.transf=T,this.instructions=r}static parse(b,E){const c=b,u=[];let T=E.getUint16(b);const r=E.getUint16(b+2);b+=4;let s,o;T&V?(T&J?(s=E.getInt16(b),o=E.getInt16(b+2)):(s=E.getUint16(b),o=E.getUint16(b+2)),b+=4,T^=V):(T&J?(s=E.getInt8(b),o=E.getInt8(b+1)):(s=E.getUint8(b),o=E.getUint8(b+1)),b+=2),T&B?(u.push(E.getUint16(b)),b+=2):T&f?(u.push(E.getUint16(b),E.getUint16(b+2)),b+=4):T&g&&(u.push(E.getUint16(b),E.getUint16(b+2),E.getUint16(b+4),E.getUint16(b+6)),b+=8);let m=null;if(T&a){const h=E.getUint16(b);b+=2,m=new Uint8Array(E).slice(b,b+h),b+=h}return[b-c,new R({flags:T,glyphIndex:r,argument1:s,argument2:o,transf:u,instructions:m})]}getSize(){let b=4+this.transf.length*2;return this.flags&a&&(b+=2+this.instructions.length),b+=2,this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(b+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(b+=2),b}write(b,E){const c=b;return this.flags&J?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=V):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=V),E.setUint16(b,this.flags),E.setUint16(b+2,this.glyphIndex),b+=4,this.flags&V?(this.flags&J?(E.setInt16(b,this.argument1),E.setInt16(b+2,this.argument2)):(E.setUint16(b,this.argument1),E.setUint16(b+2,this.argument2)),b+=4):(E.setUint8(b,this.argument1),E.setUint8(b+1,this.argument2),b+=2),this.flags&a&&(E.setUint16(b,this.instructions.length),b+=2,this.instructions.length&&(new Uint8Array(E.buffer,0,E.buffer.byteLength).set(this.instructions,b),b+=this.instructions.length)),b-c}scale(b,E){}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.OpenTypeFileBuilder=void 0;var n=re(3),P=re(2);function j(B,I,f){B[I]=f>>8&255,B[I+1]=f&255}function e(B,I,f){B[I]=f>>24&255,B[I+1]=f>>16&255,B[I+2]=f>>8&255,B[I+3]=f&255}function t(B,I,f){if(f instanceof Uint8Array)B.set(f,I);else if(typeof f=="string")for(let g=0,a=f.length;g<a;g++)B[I++]=f.charCodeAt(g)&255;else for(const g of f)B[I++]=g&255}const l=12,V=16;class J{constructor(I){this.sfnt=I,this.tables=Object.create(null)}static getSearchParams(I,f){let g=1,a=0;for(;(g^I)>g;)g<<=1,a++;const _=g*f;return{range:_,entry:a,rangeShift:f*I-_}}toArray(){let I=this.sfnt;const f=this.tables,g=Object.keys(f);g.sort();const a=g.length;let _,y,O,N,X,R=l+a*V;const q=[R];for(_=0;_<a;_++){N=f[g[_]];const c=(N.length+3&-4)>>>0;R+=c,q.push(R)}const b=new Uint8Array(R);for(_=0;_<a;_++)N=f[g[_]],t(b,q[_],N);I==="true"&&(I=(0,P.string32)(65536)),b[0]=I.charCodeAt(0)&255,b[1]=I.charCodeAt(1)&255,b[2]=I.charCodeAt(2)&255,b[3]=I.charCodeAt(3)&255,j(b,4,a);const E=J.getSearchParams(a,16);for(j(b,6,E.range),j(b,8,E.entry),j(b,10,E.rangeShift),R=l,_=0;_<a;_++){X=g[_],b[R]=X.charCodeAt(0)&255,b[R+1]=X.charCodeAt(1)&255,b[R+2]=X.charCodeAt(2)&255,b[R+3]=X.charCodeAt(3)&255;let c=0;for(y=q[_],O=q[_+1];y<O;y+=4){const u=(0,n.readUint32)(b,y);c=c+u>>>0}e(b,R+4,c),e(b,R+8,q[_]),e(b,R+12,f[X].length),R+=V}return b}addTable(I,f){if(I in this.tables)throw new Error("Table "+I+" already exists");this.tables[I]=f}}p.OpenTypeFileBuilder=J},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Type1Font=void 0;var n=re(35),P=re(2),j=re(38),e=re(3),t=re(8),l=re(49);function V(f,g,a){const _=f.length,y=g.length,O=_-y;let N=a,X=!1;for(;N<O;){let R=0;for(;R<y&&f[N+R]===g[R];)R++;if(R>=y){for(N+=R;N<_&&(0,e.isWhiteSpace)(f[N]);)N++;X=!0;break}N++}return{found:X,length:N}}
25function J(f,g){const a=[101,101,120,101,99],_=f.pos;let y,O,N;try{y=f.getBytes(g),O=y.length}catch{}if(O===g&&(N=V(y,a,g-2*a.length),N.found&&N.length===g))return{stream:new t.Stream(y),length:g};(0,P.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),f.pos=_;const X=2048;let R;for(;;){const q=f.peekBytes(X);if(N=V(q,a,0),N.length===0)break;if(f.pos+=N.length,N.found){R=f.pos-_;break}}return f.pos=_,R?{stream:new t.Stream(f.getBytes(R)),length:R}:((0,P.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new t.Stream(f.getBytes(g)),length:g})}function B(f,g){const a=f.getBytes();if(a.length===0)throw new P.FormatError("getEexecBlock - no font program found.");return{stream:new t.Stream(a),length:a.length}}class I{constructor(g,a,_){let O=_.length1;_.length2;let N=a.peekBytes(6);const X=N[0]===128&&N[1]===1;X&&(a.skip(6),O=N[5]<<24|N[4]<<16|N[3]<<8|N[2]);const R=J(a,O);new l.Type1Parser(R.stream,!1,j.SEAC_ANALYSIS_ENABLED).extractFontHeader(_),X&&(N=a.getBytes(6),N[5]<<24|N[4]<<16|N[3]<<8|N[2]);const b=B(a),c=new l.Type1Parser(b.stream,!0,j.SEAC_ANALYSIS_ENABLED).extractFontProgram(_);for(const s in c.properties)_[s]=c.properties[s];const u=c.charstrings,T=this.getType2Charstrings(u),r=this.getType2Subrs(c.subrs);this.charstrings=u,this.data=this.wrap(g,T,this.charstrings,r,_),this.seacs=this.getSeacs(c.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const g=[".notdef"];for(const{glyphName:a}of this.charstrings)g.push(a);return g}getGlyphMapping(g){const a=this.charstrings;if(g.composite){const X=Object.create(null);for(let R=0,q=a.length;R<q;R++){const b=g.cMap.charCodeOf(R);X[b]=R+1}return X}const _=[".notdef"];let y,O;for(O=0;O<a.length;O++)_.push(a[O].glyphName);const N=g.builtInEncoding;if(N){y=Object.create(null);
25for(const X in N)O=_.indexOf(N[X]),O>=0&&(y[X]=O)}return(0,j.type1FontGlyphMapping)(g,y,_)}hasGlyphId(g){return g<0||g>=this.numGlyphs?!1:g===0?!0:this.charstrings[g-1].charstring.length>0}getSeacs(g){const a=[];for(let _=0,y=g.length;_<y;_++){const O=g[_];O.seac&&(a[_+1]=O.seac)}return a}getType2Charstrings(g){const a=[];for(const _ of g)a.push(_.charstring);return a}getType2Subrs(g){let a=0;const _=g.length;_<1133?a=107:_<33769?a=1131:a=32768;const y=[];let O;for(O=0;O<a;O++)y.push([11]);for(O=0;O<_;O++)y.push(g[O]);return y}wrap(g,a,_,y,O){const N=new n.CFF;N.header=new n.CFFHeader(1,0,4,4),N.names=[g];const X=new n.CFFTopDict;X.setByName("version",391),X.setByName("Notice",392),X.setByName("FullName",393),X.setByName("FamilyName",394),X.setByName("Weight",395),X.setByName("Encoding",null),X.setByName("FontMatrix",O.fontMatrix),X.setByName("FontBBox",O.bbox),X.setByName("charset",null),X.setByName("CharStrings",null),X.setByName("Private",null),N.topDict=X;const R=new n.CFFStrings;R.add("Version 0.11"),R.add("See original notice"),R.add(g),R.add(g),R.add("Medium"),N.strings=R,N.globalSubrIndex=new n.CFFIndex;const q=a.length,b=[".notdef"];let E,c;for(E=0;E<q;E++){const m=_[E].glyphName;n.CFFStandardStrings.indexOf(m)===-1&&R.add(m),b.push(m)}N.charset=new n.CFFCharset(!1,0,b);const u=new n.CFFIndex;for(u.add([139,14]),E=0;E<q;E++)u.add(a[E]);N.charStrings=u;const T=new n.CFFPrivateDict;T.setByName("Subrs",null);const r=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(E=0,c=r.length;E<c;E++){const m=r[E];if(!(m in O.privateData))continue;const h=O.privateData[m];if(Array.isArray(h))for(let A=h.length-1;A>0;A--)h[A]-=h[A-1];T.setByName(m,h)}N.topDict.privateDict=T;const s=new n.CFFIndex;for(E=0,c=y.length;E<c;E++)s.add(y[E]);return T.subrsIndex=s,new n.CFFCompiler(N).compile()}}p.Type1Font=I},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Type1Parser=void 0;var n=re(37),P=re(3),j=re(8),e=re(2);const t=!1,l={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class V{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(O,N,X){const R=O.length;let q=!1,b,E,c;for(let u=0;u<R;u++){let T=O[u];if(T<32){switch(T===12&&(T=(T<<8)+O[++u]),T){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){q=!0;break}const h=this.stack.pop();this.stack.push(0,h);break}q=this.executeCommand(1,l.vmoveto);break;case 5:q=this.executeCommand(2,l.rlineto);break;case 6:q=this.executeCommand(1,l.hlineto);break;case 7:q=this.executeCommand(1,l.vlineto);break;case 8:q=this.executeCommand(6,l.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){q=!0;break}if(c=this.stack.pop(),!N[c]){q=!0;break}q=this.convert(N[c],N,X);break;case 11:return q;case 13:if(this.stack.length<2){q=!0;break}b=this.stack.pop(),E=this.stack.pop(),this.lsb=E,this.width=b,this.stack.push(b,E),q=this.executeCommand(2,l.hmoveto);break;case 14:this.output.push(l.endchar[0]);break;case 21:if(this.flexing)break;q=this.executeCommand(2,l.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}q=this.executeCommand(1,l.hmoveto);break;case 30:q=this.executeCommand(4,l.vhcurveto);break;case 31:q=this.executeCommand(4,l.hvcurveto);break;case 3072:this.stack=[];break;case 3073:{this.stack=[];break}case 3074:{this.stack=[];break}case 3078:if(X){const h=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-h,q=this.executeCommand(0,l.endchar)}else q=this.executeCommand(4,l.endchar);break;case 3079:if(this.stack.length<4){q=!0;break}this.stack.pop(),b=this.stack.pop();const r=this.stack.pop();E=this.stack.pop(),this.lsb=E,this.width=b,this.stack.push(b,E,r),q=this.executeCommand(3,l.rmoveto);break;case 3084:if(this.stack.length<2){q=!0;break}const s=this.stack.pop(),o=this.stack.pop();this.stack.push(o/s);break;case 3088:if(this.stack.length<2){q=!0;break}c=this.stack.pop();const m=this.stack.pop();if(c===0&&m===3){const h=this.stack.splice(-17,17);this.stack.push(h[2]+h[0],h[3]+h[1],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14]),q=this.executeCommand(13,l.flex,!0),this.flexing=!1,this.stack.push(h[15],h[16])}else c===1&&m===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,e.warn)('Unknown type 1 charstring command of "'+T+'"');break}if(q)break;continue}else T<=246?T-=139:T<=250?T=(T-247)*256+O[++u]+108:T<=254?T=-((T-251)*256)-O[++u]-108
25:T=(O[++u]&255)<<24|(O[++u]&255)<<16|(O[++u]&255)<<8|(O[++u]&255)<<0;this.stack.push(T)}return q}executeCommand(O,N,X){const R=this.stack.length;if(O>R)return!0;const q=R-O;for(let b=q;b<R;b++){let E=this.stack[b];Number.isInteger(E)?this.output.push(28,E>>8&255,E&255):(E=65536*E|0,this.output.push(255,E>>24&255,E>>16&255,E>>8&255,E&255))}return this.output.push(...N),X?this.stack.splice(q,O):this.stack.length=0,!1}}const J=55665,B=4330;function I(y){return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}function f(y,O,N){if(N>=y.length)return new Uint8Array(0);const X=52845,R=22719;let q=O|0,b,E;for(b=0;b<N;b++)q=(y[b]+q)*X+R&65535;const c=y.length-N,u=new Uint8Array(c);for(b=N,E=0;E<c;b++,E++){const T=y[b];u[E]=T^q>>8,q=(T+q)*X+R&65535}return u}function g(y,O,N){let q=O|0;const b=y.length,E=b>>>1,c=new Uint8Array(E);let u,T;for(u=0,T=0;u<b;u++){const r=y[u];if(!I(r))continue;u++;let s;for(;u<b&&!I(s=y[u]);)u++;if(u<b){const o=parseInt(String.fromCharCode(r,s),16);c[T++]=o^q>>8,q=(o+q)*52845+22719&65535}}return c.slice(N,T)}function a(y){return y===47||y===91||y===93||y===123||y===125||y===40||y===41}class _{constructor(O,N,X){if(N){const R=O.getBytes(),q=!((I(R[0])||(0,P.isWhiteSpace)(R[0]))&&I(R[1])&&I(R[2])&&I(R[3])&&I(R[4])&&I(R[5])&&I(R[6])&&I(R[7]));O=new j.Stream(q?f(R,J,4):g(R,J,4))}this.seacAnalysisEnabled=!!X,this.stream=O,this.nextChar()}readNumberArray(){this.getToken();const O=[];for(;;){const N=this.getToken();if(N===null||N==="]"||N==="}")break;O.push(parseFloat(N||0))}return O}readNumber(){const O=this.getToken();return parseFloat(O||0)}readInt(){const O=this.getToken();return parseInt(O||0,10)|0}readBoolean(){return this.getToken()==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let O=!1,N=this.currentChar;for(;;){if(N===-1)return null;if(O)(N===10||N===13)&&(O=!1);else if(N===37)O=!0;else if(!(0,P.isWhiteSpace)(N))break;N=this.nextChar()}if(a(N))return this.nextChar(),String.fromCharCode(N);let X="";do X+=String.fromCharCode(N),N=this.nextChar();while(N>=0&&!(0,P.isWhiteSpace)(N)&&!a(N));return X}readCharStrings(O,N){return N===-1?O:f(O,B,N)}extractFontProgram(O){const N=this.stream,X=[],R=[],q=Object.create(null);q.lenIV=4;const b={subrs:[],charstrings:[],properties:{privateData:q}};let E,c,u,T;for(;(E=this.getToken())!==null;)if(E==="/")switch(E=this.getToken(),E){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();E=this.getToken(),!(E===null||E==="end");){if(E!=="/")continue;const s=this.getToken();c=this.readInt(),this.getToken(),u=c>0?N.getBytes(c):new Uint8Array(0),T=b.properties.privateData.lenIV;const o=this.readCharStrings(u,T);this.nextChar(),E=this.getToken(),E==="noaccess"?this.getToken():E==="/"&&this.prevChar(),R.push({glyph:s,encoded:o})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const s=this.readInt();c=this.readInt(),this.getToken(),u=c>0?N.getBytes(c):new Uint8Array(0),T=b.properties.privateData.lenIV;const o=this.readCharStrings(u,T);this.nextChar(),E=this.getToken(),E==="noaccess"&&this.getToken(),X[s]=o}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const r=this.readNumberArray();r.length>0&&r.length%2===0&&t&&(b.properties.privateData[E]=r);break;case"StemSnapH":case"StemSnapV":b.properties.privateData[E]=this.readNumberArray();break;case"StdHW":case"StdVW":b.properties.privateData[E]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":b.properties.privateData[E]=this.readNumber();break;case"ExpansionFactor":b.properties.privateData[E]=this.readNumber()||.06;break;case"ForceBold":b.properties.privateData[E]=this.readBoolean();break}for(const{encoded:r,glyph:s}of R){const o=new V,m=o.convert(r,X,this.seacAnalysisEnabled);let h=o.output;m&&(h=[14]);const A={glyphName:s,charstring:h,width:o.width,lsb:o.lsb,seac:o.seac};if(s===".notdef"?b.charstrings.unshift(A):b.charstrings.push(A),O.builtInEncoding){const L=O.builtInEncoding.indexOf(s);L>-1&&O.widths[L]===void 0&&L>=O.firstChar&&L<=O.lastChar&&(O.widths[L]=o.width)}}return b}extractFontHeader(O){let N;for(;(N=this.getToken())!==null;)if(N==="/")switch(N=this.getToken(),N){case"FontMatrix":const X=this.readNumberArray();O.fontMatrix=X;break;case"Encoding":const R=this.getToken();let q;if(!/^\d+$/.test(R))q=(0,n.getEncoding)(R);else{q=[];const E=parseInt(R,10)|0;this.getToken();for(let c=0;c<E;c++){for(N=this.getToken();N!=="dup"&&N!=="def";)if(N=this.getToken(),N===null)return;if(N==="def")break;const u=this.readInt();this.getToken();const T=this.getToken();q[u]=T,this.getToken()}}O.builtInEncoding=q;break;case"FontBBox":const b=this.readNumberArray();
25O.ascent=Math.max(b[3],b[1]),O.descent=Math.min(b[1],b[3]),O.ascentScaled=!0;break}}}p.Type1Parser=_},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Pattern=void 0,p.clearPatternCaches=a,p.getTilingPatternIR=O;var n=re(2),P=re(5),j=re(12),e=re(3);const t={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class l{constructor(){(0,n.unreachable)("Cannot initialize Pattern.")}static parseShading(q,b,E,c,u){const T=q instanceof P.BaseStream?q.dict:q,r=T.get("ShadingType");try{switch(r){case t.AXIAL:case t.RADIAL:return new J(T,b,E,c,u);case t.FREE_FORM_MESH:case t.LATTICE_FORM_MESH:case t.COONS_PATCH_MESH:case t.TENSOR_PATCH_MESH:return new _(q,b,E,c,u);default:throw new n.FormatError("Unsupported ShadingType: "+r)}}catch(s){if(s instanceof e.MissingDataException)throw s;return(0,n.warn)(s),new y}}}p.Pattern=l;const N=class N{constructor(){this.constructor===N&&(0,n.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,n.unreachable)("Abstract method `getIR` called.")}};jt(N,"SMALL_NUMBER",1e-6);let V=N;class J extends V{constructor(q,b,E,c,u){super(),this.coordsArr=q.getArray("Coords"),this.shadingType=q.get("ShadingType");const T=j.ColorSpace.parse({cs:q.getRaw("CS")||q.getRaw("ColorSpace"),xref:b,resources:E,pdfFunctionFactory:c,localColorSpaceCache:u}),r=q.getArray("BBox");this.bbox=Array.isArray(r)&&r.length===4?n.Util.normalizeRect(r):null;let s=0,o=1;if(q.has("Domain")){const ne=q.getArray("Domain");s=ne[0],o=ne[1]}let m=!1,h=!1;if(q.has("Extend")){const ne=q.getArray("Extend");m=ne[0],h=ne[1]}if(this.shadingType===t.RADIAL&&(!m||!h)){const[ne,Q,D,Y,ie,ee]=this.coordsArr,se=Math.hypot(ne-Y,Q-ie);D<=ee+se&&ee<=D+se&&(0,n.warn)("Unsupported radial gradient.")}this.extendStart=m,this.extendEnd=h;const A=q.getRaw("Function"),L=c.createFromArray(A),H=840,F=(o-s)/H,M=this.colorStops=[];if(s>=o||F<=0){(0,n.info)("Bad shading domain.");return}const k=new Float32Array(T.numComps),x=new Float32Array(1);let C,G=0;x[0]=s,L(x,0,k,0);let Z=T.getRgb(k,0);const ae=n.Util.makeHexColor(Z[0],Z[1],Z[2]);M.push([0,ae]);let oe=1;x[0]=s+F,L(x,0,k,0);let te=T.getRgb(k,0),K=te[0]-Z[0]+1,v=te[1]-Z[1]+1,$=te[2]-Z[2]+1,d=te[0]-Z[0]-1,w=te[1]-Z[1]-1,S=te[2]-Z[2]-1;for(let ne=2;ne<H;ne++){x[0]=s+ne*F,L(x,0,k,0),C=T.getRgb(k,0);const Q=ne-G;if(K=Math.min(K,(C[0]-Z[0]+1)/Q),v=Math.min(v,(C[1]-Z[1]+1)/Q),$=Math.min($,(C[2]-Z[2]+1)/Q),d=Math.max(d,(C[0]-Z[0]-1)/Q),w=Math.max(w,(C[1]-Z[1]-1)/Q),S=Math.max(S,(C[2]-Z[2]-1)/Q),!(d<=K&&w<=v&&S<=$)){const Y=n.Util.makeHexColor(te[0],te[1],te[2]);M.push([oe/H,Y]),K=C[0]-te[0]+1,v=C[1]-te[1]+1,$=C[2]-te[2]+1,d=C[0]-te[0]-1,w=C[1]-te[1]-1,S=C[2]-te[2]-1,G=oe,Z=te}oe=ne,te=C}const z=n.Util.makeHexColor(te[0],te[1],te[2]);M.push([1,z]);let W="transparent";
25q.has("Background")&&(C=T.getRgb(q.get("Background"),0),W=n.Util.makeHexColor(C[0],C[1],C[2])),m||(M.unshift([0,W]),M[1][0]+=V.SMALL_NUMBER),h||(M.at(-1)[0]-=V.SMALL_NUMBER,M.push([1,W])),this.colorStops=M}getIR(){const q=this.coordsArr,b=this.shadingType;let E,c,u,T,r;return b===t.AXIAL?(c=[q[0],q[1]],u=[q[2],q[3]],T=null,r=null,E="axial"):b===t.RADIAL?(c=[q[0],q[1]],u=[q[3],q[4]],T=q[2],r=q[5],E="radial"):(0,n.unreachable)(`getPattern type unknown: ${b}`),["RadialAxial",E,this.bbox,this.colorStops,c,u,T,r]}}class B{constructor(q,b){this.stream=q,this.context=b,this.buffer=0,this.bufferLength=0;const E=b.numComps;this.tmpCompsBuf=new Float32Array(E);const c=b.colorSpace.numComps;this.tmpCsCompsBuf=b.colorFn?new Float32Array(c):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const q=this.stream.getByte();return q<0?!1:(this.buffer=q,this.bufferLength=8,!0)}readBits(q){let b=this.buffer,E=this.bufferLength;if(q===32){if(E===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;b=b<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const c=this.stream.getByte();return this.buffer=c&(1<<E)-1,(b<<8-E|(c&255)>>E)>>>0}if(q===8&&E===0)return this.stream.getByte();for(;E<q;)b=b<<8|this.stream.getByte(),E+=8;return E-=q,this.bufferLength=E,this.buffer=b&(1<<E)-1,b>>E}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const q=this.context.bitsPerCoordinate,b=this.readBits(q),E=this.readBits(q),c=this.context.decode,u=q<32?1/((1<<q)-1):23283064365386963e-26;return[b*u*(c[1]-c[0])+c[0],E*u*(c[3]-c[2])+c[2]]}readComponents(){const q=this.context.numComps,b=this.context.bitsPerComponent,E=b<32?1/((1<<b)-1):23283064365386963e-26,c=this.context.decode,u=this.tmpCompsBuf;for(let r=0,s=4;r<q;r++,s+=2){const o=this.readBits(b);u[r]=o*E*(c[s+1]-c[s])+c[s]}const T=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(u,0,T,0),this.context.colorSpace.getRgb(T,0)}}let I=Object.create(null);function f(R){const q=[];for(let b=0;b<=R;b++){const E=b/R,c=1-E;q.push(new Float32Array([c**3,3*E*c**2,3*E**2*c,E**3]))}return q}function g(R){return I[R]||(I[R]=f(R))}function a(){I=Object.create(null)}const X=class X extends V{constructor(q,b,E,c,u){if(super(),!(q instanceof P.BaseStream))throw new n.FormatError("Mesh data is not a stream");const T=q.dict;this.shadingType=T.get("ShadingType");const r=T.getArray("BBox");this.bbox=Array.isArray(r)&&r.length===4?n.Util.normalizeRect(r):null;const s=j.ColorSpace.parse({cs:T.getRaw("CS")||T.getRaw("ColorSpace"),xref:b,resources:E,pdfFunctionFactory:c,localColorSpaceCache:u});
25this.background=T.has("Background")?s.getRgb(T.get("Background"),0):null;const o=T.getRaw("Function"),m=o?c.createFromArray(o):null;this.coords=[],this.colors=[],this.figures=[];const h={bitsPerCoordinate:T.get("BitsPerCoordinate"),bitsPerComponent:T.get("BitsPerComponent"),bitsPerFlag:T.get("BitsPerFlag"),decode:T.getArray("Decode"),colorFn:m,colorSpace:s,numComps:m?1:s.numComps},A=new B(q,h);let L=!1;switch(this.shadingType){case t.FREE_FORM_MESH:this._decodeType4Shading(A);break;case t.LATTICE_FORM_MESH:const H=T.get("VerticesPerRow")|0;if(H<2)throw new n.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(A,H);break;case t.COONS_PATCH_MESH:this._decodeType6Shading(A),L=!0;break;case t.TENSOR_PATCH_MESH:this._decodeType7Shading(A),L=!0;break;default:(0,n.unreachable)("Unsupported mesh type.");break}if(L){this._updateBounds();for(let H=0,F=this.figures.length;H<F;H++)this._buildFigureFromPatch(H)}this._updateBounds(),this._packData()}_decodeType4Shading(q){const b=this.coords,E=this.colors,c=[];let u=0;for(;q.hasData;){const T=q.readFlag(),r=q.readCoordinate(),s=q.readComponents();if(u===0){if(!(0<=T&&T<=2))throw new n.FormatError("Unknown type4 flag");switch(T){case 0:u=3;break;case 1:c.push(c.at(-2),c.at(-1)),u=1;break;case 2:c.push(c.at(-3),c.at(-1)),u=1;break}}c.push(b.length),b.push(r),E.push(s),u--,q.align()}this.figures.push({type:"triangles",coords:new Int32Array(c),colors:new Int32Array(c)})}_decodeType5Shading(q,b){const E=this.coords,c=this.colors,u=[];for(;q.hasData;){const T=q.readCoordinate(),r=q.readComponents();u.push(E.length),E.push(T),c.push(r)}this.figures.push({type:"lattice",coords:new Int32Array(u),colors:new Int32Array(u),verticesPerRow:b})}_decodeType6Shading(q){const b=this.coords,E=this.colors,c=new Int32Array(16),u=new Int32Array(4);for(;q.hasData;){const T=q.readFlag();if(!(0<=T&&T<=3))throw new n.FormatError("Unknown type6 flag");const r=b.length;for(let L=0,H=T!==0?8:12;L<H;L++)b.push(q.readCoordinate());const s=E.length;for(let L=0,H=T!==0?2:4;L<H;L++)E.push(q.readComponents());let o,m,h,A;switch(T){case 0:c[12]=r+3,c[13]=r+4,c[14]=r+5,c[15]=r+6,c[8]=r+2,c[11]=r+7,c[4]=r+1,c[7]=r+8,c[0]=r,c[1]=r+11,c[2]=r+10,c[3]=r+9,u[2]=s+1,u[3]=s+2,u[0]=s,u[1]=s+3;break;case 1:o=c[12],m=c[13],h=c[14],A=c[15],c[12]=A,c[13]=r+0,c[14]=r+1,c[15]=r+2,c[8]=h,c[11]=r+3,c[4]=m,c[7]=r+4,c[0]=o,c[1]=r+7,c[2]=r+6,c[3]=r+5,o=u[2],m=u[3],u[2]=m,u[3]=s,u[0]=o,u[1]=s+1;break;case 2:o=c[15],m=c[11],c[12]=c[3],c[13]=r+0,c[14]=r+1,c[15]=r+2,c[8]=c[7],c[11]=r+3,c[4]=m,c[7]=r+4,c[0]=o,c[1]=r+7,c[2]=r+6,c[3]=r+5,o=u[3],u[2]=u[1],u[3]=s,u[0]=o,u[1]=s+1;break;case 3:c[12]=c[0],c[13]=r+0,c[14]=r+1,c[15]=r+2,c[8]=c[1],c[11]=r+3,c[4]=c[2],c[7]=r+4,c[0]=c[3],c[1]=r+7,c[2]=r+6,c[3]=r+5,u[2]=u[0],u[3]=s,u[0]=u[1],u[1]=s+1;break}c[5]=b.length,b.push([(-4*b[c[0]][0]-b[c[15]][0]+6*(b[c[4]][0]+b[c[1]][0])-2*(b[c[12]][0]+b[c[3]][0])+3*(b[c[13]][0]+b[c[7]][0]))/9,(-4*b[c[0]][1]-b[c[15]][1]+6*(b[c[4]][1]+b[c[1]][1])-2*(b[c[12]][1]+b[c[3]][1])+3*(b[c[13]][1]+b[c[7]][1]))/9]),c[6]=b.length,b.push([(-4*b[c[3]][0]-b[c[12]][0]+6*(b[c[2]][0]+b[c[7]][0])-2*(b[c[0]][0]+b[c[15]][0])+3*(b[c[4]][0]+b[c[14]][0]))/9,(-4*b[c[3]][1]-b[c[12]][1]+6*(b[c[2]][1]+b[c[7]][1])-2*(b[c[0]][1]+b[c[15]][1])+3*(b[c[4]][1]+b[c[14]][1]))/9]),c[9]=b.length,b.push([(-4*b[c[12]][0]-b[c[3]][0]+6*(b[c[8]][0]+b[c[13]][0])-2*(b[c[0]][0]+b[c[15]][0])+3*(b[c[11]][0]+b[c[1]][0]))/9,(-4*b[c[12]][1]-b[c[3]][1]+6*(b[c[8]][1]+b[c[13]][1])-2*(b[c[0]][1]+b[c[15]][1])+3*(b[c[11]][1]+b[c[1]][1]))/9]),c[10]=b.length,b.push([(-4*b[c[15]][0]-b[c[0]][0]+6*(b[c[11]][0]+b[c[14]][0])-2*(b[c[12]][0]+b[c[3]][0])+3*(b[c[2]][0]+b[c[8]][0]))/9,(-4*b[c[15]][1]-b[c[0]][1]+6*(b[c[11]][1]+b[c[14]][1])-2*(b[c[12]][1]+b[c[3]][1])+3*(b[c[2]][1]+b[c[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(u)})}}_decodeType7Shading(q){const b=this.coords,E=this.colors,c=new Int32Array(16),u=new Int32Array(4);for(;q.hasData;){const T=q.readFlag();if(!(0<=T&&T<=3))throw new n.FormatError("Unknown type7 flag");const r=b.length;for(let L=0,H=T!==0?12:16;L<H;L++)b.push(q.readCoordinate());const s=E.length;for(let L=0,H=T!==0?2:4;L<H;L++)E.push(q.readComponents());let o,m,h,A;switch(T){case 0:c[12]=r+3,c[13]=r+4,c[14]=r+5,c[15]=r+6,c[8]=r+2,c[9]=r+13,c[10]=r+14,c[11]=r+7,c[4]=r+1,c[5]=r+12,c[6]=r+15,c[7]=r+8,c[0]=r,c[1]=r+11,c[2]=r+10,c[3]=r+9,u[2]=s+1,u[3]=s+2,u[0]=s,u[1]=s+3;break;case 1:o=c[12],m=c[13],h=c[14],A=c[15],c[12]=A,c[13]=r+0,c[14]=r+1,c[15]=r+2,c[8]=h,c[9]=r+9,c[10]=r+10,c[11]=r+3,c[4]=m,c[5]=r+8,c[6]=r+11,c[7]=r+4,c[0]=o,c[1]=r+7,c[2]=r+6,c[3]=r+5,o=u[2],m=u[3],u[2]=m,u[3]=s,u[0]=o,u[1]=s+1;break;case 2:o=c[15],m=c[11],c[12]=c[3],c[13]=r+0,c[14]=r+1,c[15]=r+2,c[8]=c[7],c[9]=r+9,c[10]=r+10,c[11]=r+3,c[4]=m,c[5]=r+8,c[6]=r+11,c[7]=r+4,c[0]=o,c[1]=r+7,c[2]=r+6,c[3]=r+5,o=u[3],u[2]=u[1],u[3]=s,u[0]=o,u[1]=s+1;break;case 3:c[12]=c[0],c[13]=r+0,c[14]=r+1,c[15]=r+2,c[8]=c[1],c[9]=r+9,c[10]=r+10,c[11]=r+3,c[4]=c[2],c[5]=r+8,c[6]=r+11,c[7]=r+4,c[0]=c[3],c[1]=r+7,c[2]=r+6,c[3]=r+5,u[2]=u[0],u[3]=s,u[0]=u[1],u[1]=s+1;break}this.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(u)})}}_buildFigureFromPatch(q){const b=this.figures[q];(0,n.assert)(b.type==="patch","Unexpected patch mesh figure");
25const E=this.coords,c=this.colors,u=b.coords,T=b.colors,r=Math.min(E[u[0]][0],E[u[3]][0],E[u[12]][0],E[u[15]][0]),s=Math.min(E[u[0]][1],E[u[3]][1],E[u[12]][1],E[u[15]][1]),o=Math.max(E[u[0]][0],E[u[3]][0],E[u[12]][0],E[u[15]][0]),m=Math.max(E[u[0]][1],E[u[3]][1],E[u[12]][1],E[u[15]][1]);let h=Math.ceil((o-r)*X.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));h=Math.max(X.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(X.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,h));let A=Math.ceil((m-s)*X.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));A=Math.max(X.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(X.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,A));const L=h+1,H=new Int32Array((A+1)*L),F=new Int32Array((A+1)*L);let M=0;const k=new Uint8Array(3),x=new Uint8Array(3),C=c[T[0]],G=c[T[1]],Z=c[T[2]],ae=c[T[3]],oe=g(A),te=g(h);for(let K=0;K<=A;K++){k[0]=(C[0]*(A-K)+Z[0]*K)/A|0,k[1]=(C[1]*(A-K)+Z[1]*K)/A|0,k[2]=(C[2]*(A-K)+Z[2]*K)/A|0,x[0]=(G[0]*(A-K)+ae[0]*K)/A|0,x[1]=(G[1]*(A-K)+ae[1]*K)/A|0,x[2]=(G[2]*(A-K)+ae[2]*K)/A|0;for(let v=0;v<=h;v++,M++){if((K===0||K===A)&&(v===0||v===h))continue;let $=0,d=0,w=0;for(let z=0;z<=3;z++)for(let W=0;W<=3;W++,w++){const ne=oe[K][z]*te[v][W];$+=E[u[w]][0]*ne,d+=E[u[w]][1]*ne}H[M]=E.length,E.push([$,d]),F[M]=c.length;const S=new Uint8Array(3);S[0]=(k[0]*(h-v)+x[0]*v)/h|0,S[1]=(k[1]*(h-v)+x[1]*v)/h|0,S[2]=(k[2]*(h-v)+x[2]*v)/h|0,c.push(S)}}H[0]=u[0],F[0]=T[0],H[h]=u[3],F[h]=T[1],H[L*A]=u[12],F[L*A]=T[2],H[L*A+h]=u[15],F[L*A+h]=T[3],this.figures[q]={type:"lattice",coords:H,colors:F,verticesPerRow:L}}_updateBounds(){let q=this.coords[0][0],b=this.coords[0][1],E=q,c=b;for(let u=1,T=this.coords.length;u<T;u++){const r=this.coords[u][0],s=this.coords[u][1];q=q>r?r:q,b=b>s?s:b,E=E<r?r:E,c=c<s?s:c}this.bounds=[q,b,E,c]}_packData(){let q,b,E,c;const u=this.coords,T=new Float32Array(u.length*2);for(q=0,E=0,b=u.length;q<b;q++){const m=u[q];T[E++]=m[0],T[E++]=m[1]}this.coords=T;const r=this.colors,s=new Uint8Array(r.length*3);for(q=0,E=0,b=r.length;q<b;q++){const m=r[q];s[E++]=m[0],s[E++]=m[1],s[E++]=m[2]}this.colors=s;const o=this.figures;for(q=0,b=o.length;q<b;q++){const m=o[q],h=m.coords,A=m.colors;for(E=0,c=h.length;E<c;E++)h[E]*=2,A[E]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}};jt(X,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3),jt(X,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20),jt(X,"TRIANGLE_DENSITY",20);let _=X;class y extends V{getIR(){return["Dummy"]}}function O(R,q,b){const E=q.getArray("Matrix"),c=n.Util.normalizeRect(q.getArray("BBox")),u=q.get("XStep"),T=q.get("YStep"),r=q.get("PaintType"),s=q.get("TilingType");if(c[2]-c[0]===0||c[3]-c[1]===0)throw new n.FormatError(`Invalid getTilingPatternIR /BBox array: [${c}].`);return["TilingPattern",b,R,E,c,u,T,r,s]}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.getXfaFontDict=g,p.getXfaFontName=I;var n=re(52),P=re(4),j=re(53),e=re(54),t=re(55),l=re(56),V=re(3),J=re(38);const B=(0,V.getLookupTableFactory)(function(a){a["MyriadPro-Regular"]=a["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:t.MyriadProRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:t.MyriadProRegularMetrics},a["MyriadPro-Bold"]=a["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:t.MyriadProBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:t.MyriadProBoldMetrics},a["MyriadPro-It"]=a["MyriadPro-Italic"]=a["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:t.MyriadProItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:t.MyriadProItalicMetrics},a["MyriadPro-BoldIt"]=a["MyriadPro-BoldItalic"]=a["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:t.MyriadProBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:t.MyriadProBoldItalicMetrics},a.ArialMT=a.Arial=a["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping},a["Arial-BoldMT"]=a["Arial-Bold"]={name:"LiberationSans-Bold",baseWi
25dths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping},a["Arial-ItalicMT"]=a["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping},a["Arial-BoldItalicMT"]=a["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping},a["Calibri-Regular"]={name:"LiberationSans-Regular",factors:n.CalibriRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:n.CalibriRegularMetrics},a["Calibri-Bold"]={name:"LiberationSans-Bold",factors:n.CalibriBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:n.CalibriBoldMetrics},a["Calibri-Italic"]={name:"LiberationSans-Italic",factors:n.CalibriItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:n.CalibriItalicMetrics},a["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.CalibriBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:n.CalibriBoldItalicMetrics},a["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},a["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},a["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},a["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},a["Helvetica-Regular"]=a.Helvetica={name:"LiberationSans-Regular",factors:j.HelveticaRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:j.HelveticaRegularMetrics},a["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:j.HelveticaBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:j.HelveticaBoldMetrics},a["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:j.HelveticaItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:j.HelveticaItalicMetrics},a["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:j.HelveticaBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:j.HelveticaBoldItalicMetrics}});function I(a){const _=(0,J.normalizeFontName)(a);return B()[_]}function f(a){const _=I(a);if(!_)return null;const{baseWidths:y,baseMapping:O,factors:N}=_,X=N?y.map((E,c)=>E*N[c]):y;let R=-2,q;const b=[];for(const[E,c]of O.map((u,T)=>[u,T]).sort(([u],[T])=>u-T))E!==-1&&(E===R+1?(q.push(X[c]),R+=1):(R=E,q=[X[c]],b.push(E,q)));return b}function g(a){const _=f(a),y=new P.Dict(null);y.set("BaseFont",P.Name.get(a)),y.set("Type",P.Name.get("Font")),y.set("Subtype",P.Name.get("CIDFontType2")),y.set("Encoding",P.Name.get("Identity-H")),y.set("CIDToGIDMap",P.Name.get("Identity")),y.set("W",_),y.set("FirstChar",_[0]),y.set("LastChar",_.at(-2)+_.at(-1).length-1);const O=new P.Dict(null);y.set("FontDescriptor",O);const N=new P.Dict(null);return N.set("Ordering","Identity"),N.set("Registry","Adobe"),N.set("Supplement",0),y.set("CIDSystemInfo",N),y}},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CalibriRegularMetrics=p.CalibriRegularFactors=p.CalibriItalicMetrics=p.CalibriItalicFactors=p.CalibriBoldMetrics=p.CalibriBoldItalicMetrics=p.CalibriBoldItalicFactors=p.CalibriBoldFactors=void 0;const re=[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,.8
251055,.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];p.CalibriBoldFactors=re;const n={lineHeight:1.2207,lineGap:.2207};p.CalibriBoldMetrics=n;const P=[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];p.CalibriBoldItalicFactors=P;const j={lineHeight:1.2207,lineGap:.2207};p.CalibriBoldItalicMetrics=j;const e=[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,.8633
251,.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];p.CalibriItalicFactors=e;const t={lineHeight:1.2207,lineGap:.2207};p.CalibriItalicMetrics=t;const l=[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.01
2576,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];p.CalibriRegularFactors=l;const V={lineHeight:1.2207,lineGap:.2207};p.CalibriRegularMetrics=V},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.HelveticaRegularMetrics=p.HelveticaRegularFactors=p.HelveticaItalicMetrics=p.HelveticaItalicFactors=p.HelveticaBoldMetrics=p.HelveticaBoldItalicMetrics=p.HelveticaBoldItalicFactors=p.HelveticaBoldFactors=void 0;const re=[.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];
25p.HelveticaBoldFactors=re;const n={lineHeight:1.2,lineGap:.2};p.HelveticaBoldMetrics=n;const P=[.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];
25p.HelveticaBoldItalicFactors=P;const j={lineHeight:1.35,lineGap:.2};p.HelveticaBoldItalicMetrics=j;const e=[.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];p.HelveticaItalicFactors=e;const t={lineHeight:1.35,lineGap:.2};p.HelveticaItalicMetrics=t;const l=[.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];p.HelveticaRegularFactors=l;const V={lineHeight:1.2,lineGap:.2};p.HelveticaRegularMetrics=V},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.LiberationSansRegularWidths=p.LiberationSansRegularMapping=p.LiberationSansItalicWidths=p.LiberationSansItalicMapping=p.LiberationSansBoldWidths=p.LiberationSansBoldMapping=p.LiberationSansBoldItalicWidths=p.LiberationSansBoldItalicMapping=void 0;const re=[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,66
257,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];p.LiberationSansBoldWidths=re;const n=[-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];p.LiberationSansBoldMapping=n;const P=[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,66
257,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];p.LiberationSansBoldItalicWidths=P;const j=[-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];p.LiberationSansBoldItalicMapping=j;const e=[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,66
257,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];p.LiberationSansItalicWidths=e;const t=[-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];p.LiberationSansItalicMapping=t;const l=[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,66
257,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];p.LiberationSansRegularWidths=l;const V=[-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];p.LiberationSansRegularMapping=V},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.MyriadProRegularMetrics=p.MyriadProRegularFactors=p.MyriadProItalicMetrics=p.MyriadProItalicFactors=p.MyriadProBoldMetrics=p.MyriadProBoldItalicMetrics=p.MyriadProBoldItalicFactors=p.MyriadProBoldFactors=void 0;const re=[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];p.MyriadProBoldFactors=re;const n={lineHeight:1.2,lineGap:.2};p.MyriadProBoldMetrics=n;const P=[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,.764
2563,.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];p.MyriadProBoldItalicFactors=P;const j={lineHeight:1.2,lineGap:.2};p.MyriadProBoldItalicMetrics=j;const e=[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,
251.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];p.MyriadProItalicFactors=e;const t={lineHeight:1.2,lineGap:.2};p.MyriadProItalicMetrics=t;const l=[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];p.MyriadProRegularFactors=l;const V={lineHeight:1.2,lineGap:.2};p.MyriadProRegularMetrics=V},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.SegoeuiRegularMetrics=p.SegoeuiRegularFactors=p.SegoeuiItalicMetrics=p.SegoeuiItalicFactors=p.SegoeuiBoldMetrics=p.SegoeuiBoldItalicMetrics=p.SegoeuiBoldItalicFactors=p.SegoeuiBoldFactors=void 0;const re=[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,.74
25627,.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];p.SegoeuiBoldFactors=re;const n={lineHeight:1.33008,lineGap:0};p.SegoeuiBoldMetrics=n;const P=[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,
251,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];p.SegoeuiBoldItalicFactors=P;const j={lineHeight:1.33008,lineGap:0};p.SegoeuiBoldItalicMetrics=j;const e=[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,.9987
257,.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];p.SegoeuiItalicFactors=e;const t={lineHeight:1.33008,lineGap:0};p.SegoeuiItalicMetrics=t;const l=[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];p.SegoeuiRegularFactors=l;const V={lineHeight:1.33008,lineGap:0};p.SegoeuiRegularMetrics=V},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PostScriptEvaluator=p.PostScriptCompiler=p.PDFFunctionFactory=void 0,p.isPDFFunction=B;var n=re(4),P=re(2),j=re(58),e=re(5),t=re(59);class l{constructor({xref:s,isEvalSupported:o=!0}){this.xref=s,this.isEvalSupported=o!==!1}create(s){const o=this.getCached(s);if(o)return o;const m=J.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:s instanceof n.Ref?this.xref.fetch(s):s});return this._cache(s,m),m}createFromArray(s){const o=this.getCached(s);if(o)return o;const m=J.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:s instanceof n.Ref?this.xref.fetch(s):s});return this._cache(s,m),m}getCached(s){var m;let o;if(s instanceof n.Ref?o=s:s instanceof n.Dict?o=s.objId:s instanceof e.BaseStream&&(o=(m=s.dict)==null?void 0:m.objId),o){const h=this._localFunctionCache.getByRef(o);if(h)return h}return null}_cache(s,o){var h;if(!o)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let m;s instanceof n.Ref?m=s:s instanceof n.Dict?m=s.objId:s instanceof e.BaseStream&&(m=(h=s.dict)==null?void 0:h.objId),m&&this._localFunctionCache.set(null,m,o)}get _localFunctionCache(){return(0,P.shadow)(this,"_localFunctionCache",new t.LocalFunctionCache)}}p.PDFFunctionFactory=l;function V(r){if(!Array.isArray(r))return null;const s=r.length;for(let o=0;o<s;o++)if(typeof r[o]!="number"){const m=new Array(s);for(let h=0;h<s;h++)m[h]=+r[h];return m}return r}class J{static getSampleArray(s,o,m,h){let A,L,H=1;for(A=0,L=s.length;A<L;A++)H*=s[A];H*=o;const F=new Array(H);let M=0,k=0;const x=1/(2**m-1),C=h.getBytes((H*m+7)/8);let G=0;for(A=0;A<H;A++){for(;M<m;)k<<=8,k|=C[G++],M+=8;M-=m,F[A]=(k>>M)*x,k&=(1<<M)-1}return F}static parse({xref:s,isEvalSupported:o,fn:m}){const h=m.dict||m;switch(h.get("FunctionType")){case 0:return this.constructSampled({xref:s,isEvalSupported:o,fn:m,dict:h});case 1:break;case 2:return this.constructInterpolated({xref:s,isEvalSupported:o,dict:h});case 3:return this.constructStiched({xref:s,isEvalSupported:o,dict:h});case 4:return this.constructPostScript({xref:s,isEvalSupported:o,fn:m,dict:h})}throw new P.FormatError("Unknown type of function")}static parseArray({xref:s,isEvalSupported:o,fnObj:m}){if(!Array.isArray(m))return this.parse({xref:s,isEvalSupported:o,fn:m});const h=[];for(const A of m)h.push(this.parse({xref:s,isEvalSupported:o,fn:s.fetchIfRef(A)}));return function(A,L,H,F){for(let M=0,k=h.length;M<k;M++)h[M](A,L,H,F+M)}}static constructSampled({xref:s,isEvalSupported:o,fn:m,dict:h}){function A(te){const K=te.length,v=[];let $=0;for(let d=0;d<K;d+=2)v[$++]=[te[d],te[d+1]];return v}function L(te,K,v,$,d){return $+(te-K)*((d-$)/(v-K))}let H=V(h.getArray("Domain")),F=V(h.getArray("Range"));if(!H||!F)throw new P.FormatError("No domain or range");const M=H.length/2,k=F.length/2;H=A(H),F=A(F);const x=V(h.getArray("Size")),C=h.get("BitsPerSample"),G=h.get("Order")||1;G!==1&&(0,P.info)("No support for cubic spline interpolation: "+G);let Z=V(h.getArray("Encode"));if(Z)Z=A(Z);else{Z=[];for(let te=0;te<M;++te)Z.push([0,x[te]-1])}let ae=V(h.getArray("Decode"));ae=ae?A(ae):F;const oe=this.getSampleArray(x,k,C,m);return function(K,v,$,d){const w=1<<M,S=new Float64Array(w),z=new Uint32Array(w);let W,ne;for(ne=0;ne<w;ne++)S[ne]=1;let Q=k,D=1;for(W=0;W<M;++W){const Y=H[W][0],ie=H[W][1],ee=Math.min(Math.max(K[v+W],Y),ie);let se=L(ee,Y,ie,Z[W][0],Z[W][1]);const ce=x[W];se=Math.min(Math.max(se,0),ce-1);const le=se<ce-1?Math.floor(se):se-1,de=le+1-se,he=se-le,me=le*Q,Se=me+Q;for(ne=0;ne<w;ne++)ne&D?(S[ne]*=he,z[ne]+=Se):(S[ne]*=de,z[ne]+=me);Q*=ce,D<<=1}for(ne=0;ne<k;++ne){let Y=0;for(W=0;W<w;W++)Y+=oe[z[W]+ne]*S[W];Y=L(Y,0,1,ae[ne][0],ae[ne][1]),$[d+ne]=Math.min(Math.max(Y,F[ne][0]),F[ne][1])}}}static constructInterpolated({xref:s,isEvalSupported:o,dict:m}){const h=V(m.getArray("C0"))||[0],A=V(m.getArray("C1"))||[1],L=m.get("N"),H=[];for(let M=0,k=h.length;M<k;
25++M)H.push(A[M]-h[M]);const F=H.length;return function(k,x,C,G){const Z=L===1?k[x]:k[x]**L;for(let ae=0;ae<F;++ae)C[G+ae]=h[ae]+Z*H[ae]}}static constructStiched({xref:s,isEvalSupported:o,dict:m}){const h=V(m.getArray("Domain"));if(!h)throw new P.FormatError("No domain");if(h.length/2!==1)throw new P.FormatError("Bad domain for stiched function");const L=[];for(const k of m.get("Functions"))L.push(this.parse({xref:s,isEvalSupported:o,fn:s.fetchIfRef(k)}));const H=V(m.getArray("Bounds")),F=V(m.getArray("Encode")),M=new Float32Array(1);return function(x,C,G,Z){const oe=function(z,W,ne){return z>ne?z=ne:z<W&&(z=W),z}(x[C],h[0],h[1]),te=H.length;let K;for(K=0;K<te&&!(oe<H[K]);++K);let v=h[0];K>0&&(v=H[K-1]);let $=h[1];K<H.length&&($=H[K]);const d=F[2*K],w=F[2*K+1];M[0]=v===$?d:d+(oe-v)*(w-d)/($-v),L[K](M,0,G,Z)}}static constructPostScript({xref:s,isEvalSupported:o,fn:m,dict:h}){const A=V(h.getArray("Domain")),L=V(h.getArray("Range"));if(!A)throw new P.FormatError("No domain.");if(!L)throw new P.FormatError("No range.");const H=new j.PostScriptLexer(m),M=new j.PostScriptParser(H).parse();if(o&&P.FeatureTest.isEvalSupported){const te=new u().compile(M,A,L);if(te)return new Function("src","srcOffset","dest","destOffset",te)}(0,P.info)("Unable to compile PS function");const k=L.length>>1,x=A.length>>1,C=new f(M),G=Object.create(null);let ae=2048*4;const oe=new Float32Array(x);return function(K,v,$,d){let w,S,z="";const W=oe;for(w=0;w<x;w++)S=K[v+w],W[w]=S,z+=S+"_";const ne=G[z];if(ne!==void 0){$.set(ne,d);return}const Q=new Float32Array(k),D=C.execute(W),Y=D.length-k;for(w=0;w<k;w++){S=D[Y+w];let ie=L[w*2];S<ie?S=ie:(ie=L[w*2+1],S>ie&&(S=ie)),Q[w]=S}ae>0&&(ae--,G[z]=Q),$.set(Q,d)}}}function B(r){let s;if(r instanceof n.Dict)s=r;else if(r instanceof e.BaseStream)s=r.dict;else return!1;return s.has("FunctionType")}const T=class T{constructor(s){this.stack=s?Array.from(s):[]}push(s){if(this.stack.length>=T.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(s)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(s){if(this.stack.length+s>=T.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const o=this.stack;for(let m=o.length-s,h=s-1;h>=0;h--,m++)o.push(o[m])}index(s){this.push(this.stack[this.stack.length-s-1])}roll(s,o){const m=this.stack,h=m.length-s,A=m.length-1,L=h+(o-Math.floor(o/s)*s);for(let H=h,F=A;H<F;H++,F--){const M=m[H];m[H]=m[F],m[F]=M}for(let H=h,F=L-1;H<F;H++,F--){const M=m[H];m[H]=m[F],m[F]=M}for(let H=L,F=A;H<F;H++,F--){const M=m[H];m[H]=m[F],m[F]=M}}};jt(T,"MAX_STACK_SIZE",100);let I=T;class f{constructor(s){this.operators=s}execute(s){const o=new I(s);let m=0;const h=this.operators,A=h.length;let L,H,F;for(;m<A;){if(L=h[m++],typeof L=="number"){o.push(L);continue}switch(L){case"jz":F=o.pop(),H=o.pop(),H||(m=F);break;case"j":H=o.pop(),m=H;break;case"abs":H=o.pop(),o.push(Math.abs(H));break;case"add":F=o.pop(),H=o.pop(),o.push(H+F);break;case"and":F=o.pop(),H=o.pop(),typeof H=="boolean"&&typeof F=="boolean"?o.push(H&&F):o.push(H&F);break;case"atan":F=o.pop(),H=o.pop(),H=Math.atan2(H,F)/Math.PI*180,H<0&&(H+=360),o.push(H);break;case"bitshift":F=o.pop(),H=o.pop(),H>0?o.push(H<<F):o.push(H>>F);break;case"ceiling":H=o.pop(),o.push(Math.ceil(H));break;case"copy":H=o.pop(),o.copy(H);break;case"cos":H=o.pop(),o.push(Math.cos(H%360/180*Math.PI));break;case"cvi":H=o.pop()|0,o.push(H);break;case"cvr":break;case"div":F=o.pop(),H=o.pop(),o.push(H/F);break;case"dup":o.copy(1);break;case"eq":F=o.pop(),H=o.pop(),o.push(H===F);break;case"exch":o.roll(2,1);break;case"exp":F=o.pop(),H=o.pop(),o.push(H**F);break;case"false":o.push(!1);break;case"floor":H=o.pop(),o.push(Math.floor(H));break;case"ge":F=o.pop(),H=o.pop(),o.push(H>=F);break;case"gt":F=o.pop(),H=o.pop(),o.push(H>F);break;case"idiv":F=o.pop(),H=o.pop(),o.push(H/F|0);break;case"index":H=o.pop(),o.index(H);break;case"le":F=o.pop(),H=o.pop(),o.push(H<=F);break;case"ln":H=o.pop(),o.push(Math.log(H));break;case"log":H=o.pop(),o.push(Math.log10(H));break;case"lt":F=o.pop(),H=o.pop(),o.push(H<F);break;case"mod":F=o.pop(),H=o.pop(),o.push(H%F);break;case"mul":F=o.pop(),H=o.pop(),o.push(H*F);break;case"ne":F=o.pop(),H=o.pop(),o.push(H!==F);break;
25case"neg":H=o.pop(),o.push(-H);break;case"not":H=o.pop(),typeof H=="boolean"?o.push(!H):o.push(~H);break;case"or":F=o.pop(),H=o.pop(),typeof H=="boolean"&&typeof F=="boolean"?o.push(H||F):o.push(H|F);break;case"pop":o.pop();break;case"roll":F=o.pop(),H=o.pop(),o.roll(H,F);break;case"round":H=o.pop(),o.push(Math.round(H));break;case"sin":H=o.pop(),o.push(Math.sin(H%360/180*Math.PI));break;case"sqrt":H=o.pop(),o.push(Math.sqrt(H));break;case"sub":F=o.pop(),H=o.pop(),o.push(H-F);break;case"true":o.push(!0);break;case"truncate":H=o.pop(),H=H<0?Math.ceil(H):Math.floor(H),o.push(H);break;case"xor":F=o.pop(),H=o.pop(),typeof H=="boolean"&&typeof F=="boolean"?o.push(H!==F):o.push(H^F);break;default:throw new P.FormatError(`Unknown operator ${L}`)}}return o.stack}}p.PostScriptEvaluator=f;class g{constructor(s){this.type=s}visit(s){(0,P.unreachable)("abstract method")}}class a extends g{constructor(s,o,m){super("args"),this.index=s,this.min=o,this.max=m}visit(s){s.visitArgument(this)}}class _ extends g{constructor(s){super("literal"),this.number=s,this.min=s,this.max=s}visit(s){s.visitLiteral(this)}}class y extends g{constructor(s,o,m,h,A){super("binary"),this.op=s,this.arg1=o,this.arg2=m,this.min=h,this.max=A}visit(s){s.visitBinaryOperation(this)}}class O extends g{constructor(s,o){super("max"),this.arg=s,this.min=s.min,this.max=o}visit(s){s.visitMin(this)}}class N extends g{constructor(s,o,m){super("var"),this.index=s,this.min=o,this.max=m}visit(s){s.visitVariable(this)}}class X extends g{constructor(s,o){super("definition"),this.variable=s,this.arg=o}visit(s){s.visitVariableDefinition(this)}}class R{constructor(){this.parts=[]}visitArgument(s){this.parts.push("Math.max(",s.min,", Math.min(",s.max,", src[srcOffset + ",s.index,"]))")}visitVariable(s){this.parts.push("v",s.index)}visitLiteral(s){this.parts.push(s.number)}visitBinaryOperation(s){this.parts.push("("),s.arg1.visit(this),this.parts.push(" ",s.op," "),s.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(s){this.parts.push("var "),s.variable.visit(this),this.parts.push(" = "),s.arg.visit(this),this.parts.push(";")}visitMin(s){this.parts.push("Math.min("),s.arg.visit(this),this.parts.push(", ",s.max,")")}toString(){return this.parts.join("")}}function q(r,s){return s.type==="literal"&&s.number===0?r:r.type==="literal"&&r.number===0?s:s.type==="literal"&&r.type==="literal"?new _(r.number+s.number):new y("+",r,s,r.min+s.min,r.max+s.max)}function b(r,s){if(s.type==="literal"){if(s.number===0)return new _(0);if(s.number===1)return r;if(r.type==="literal")return new _(r.number*s.number)}if(r.type==="literal"){if(r.number===0)return new _(0);if(r.number===1)return s}const o=Math.min(r.min*s.min,r.min*s.max,r.max*s.min,r.max*s.max),m=Math.max(r.min*s.min,r.min*s.max,r.max*s.min,r.max*s.max);return new y("*",r,s,o,m)}function E(r,s){if(s.type==="literal"){if(s.number===0)return r;if(r.type==="literal")return new _(r.number-s.number)}return s.type==="binary"&&s.op==="-"&&r.type==="literal"&&r.number===1&&s.arg1.type==="literal"&&s.arg1.number===1?s.arg2:new y("-",r,s,r.min-s.max,r.max-s.min)}function c(r,s){return r.min>=s?new _(s):r.max<=s?r:new O(r,s)}class u{compile(s,o,m){const h=[],A=[],L=o.length>>1,H=m.length>>1;let F=0,M,k,x,C,G,Z,ae,oe;for(let K=0;K<L;K++)h.push(new a(K,o[K*2],o[K*2+1]));for(let K=0,v=s.length;K<v;K++){if(oe=s[K],typeof oe=="number"){h.push(new _(oe));continue}switch(oe){case"add":if(h.length<2)return null;C=h.pop(),x=h.pop(),h.push(q(x,C));break;case"cvr":if(h.length<1)return null;break;case"mul":if(h.length<2)return null;C=h.pop(),x=h.pop(),h.push(b(x,C));break;case"sub":if(h.length<2)return null;C=h.pop(),x=h.pop(),h.push(E(x,C));break;case"exch":if(h.length<2)return null;G=h.pop(),Z=h.pop(),h.push(G,Z);break;case"pop":if(h.length<1)return null;h.pop();break;case"index":if(h.length<1||(x=h.pop(),x.type!=="literal")||(M=x.number,M<0||!Number.isInteger(M)||h.length<M))return null;if(G=h[h.length-M-1],G.type==="literal"||G.type==="var"){h.push(G);break}ae=new N(F++,G.min,G.max),h[h.length-M-1]=ae,h.push(ae),A.push(new X(ae,G));break;case"dup":if(h.length<1)return null;if(typeof s[K+1]=="number"&&s[K+2]==="gt"&&s[K+3]===K+7&&s[K+4]==="jz"&&s[K+5]==="pop"&&s[K+6]===s[K+1]){x=h.pop(),h.push(c(x,s[K+1])),K+=6;break}if(G=h.at(-1),G.type==="literal"||G.type==="var"){h.push(G);break}ae=new N(F++,G.min,G.max),h[h.length-1]=ae,h.push(ae),A.push(new X(ae,G));break;case"roll":if(h.length<2||(C=h.pop(),x=h.pop(),C.type!=="literal"||x.type!=="literal")||(k=C.number,M=x.number,M<=0||!Number.isInteger(M)||!Number.isInteger(k)||h.length<M))return null;if(k=(k%M+M)%M,k===0)break;h.push(...h.splice(h.length-M,M-k));break;default:return null}}if(h.length!==H)return null;const te=[];for(const K of A){const v=new R;K.visit(v),te.push(v.toString())}for(let K=0,v=h.length;K<v;K++){const $=h[K],d=new R;$.visit(d);const w=m[K*2],S=m[K*2+1],z=[d.toString()];w>$.min&&(z.unshift("Math.max(",w,", "),z.push(")")),S<$.max&&(z.unshift("Math.min(",S,", "),z.push(")")),z.unshift("dest[destOffset + ",K,"] = "),z.push(";"),te.push(z.join(""))}
25return te.join(` 26`)}}p.PostScriptCompiler=u},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PostScriptParser=p.PostScriptLexer=void 0;var n=re(2),P=re(4),j=re(3);class e{constructor(B){this.lexer=B,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(B){return this.token.type===B?(this.nextToken(),!0):!1}expect(B){if(this.accept(B))return!0;throw new n.FormatError(`Unexpected symbol: found ${this.token.type} expected ${B}.`)}parse(){return this.nextToken(),this.expect(t.LBRACE),this.parseBlock(),this.expect(t.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(t.NUMBER))this.operators.push(this.prev.value);else if(this.accept(t.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(t.LBRACE))this.parseCondition();else return}parseCondition(){const B=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(t.RBRACE),this.accept(t.IF))this.operators[B]=this.operators.length,this.operators[B+1]="jz";else if(this.accept(t.LBRACE)){const I=this.operators.length;this.operators.push(null,null);const f=this.operators.length;this.parseBlock(),this.expect(t.RBRACE),this.expect(t.IFELSE),this.operators[I]=this.operators.length,this.operators[I+1]="j",this.operators[B]=f,this.operators[B+1]="jz"}else throw new n.FormatError("PS Function: error parsing conditional.")}}p.PostScriptParser=e;const t={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class l{static get opCache(){return(0,n.shadow)(this,"opCache",Object.create(null))}constructor(B,I){this.type=B,this.value=I}static getOperator(B){var I;return(I=l.opCache)[B]||(I[B]=new l(t.OPERATOR,B))}static get LBRACE(){return(0,n.shadow)(this,"LBRACE",new l(t.LBRACE,"{"))}static get RBRACE(){return(0,n.shadow)(this,"RBRACE",new l(t.RBRACE,"}"))}static get IF(){return(0,n.shadow)(this,"IF",new l(t.IF,"IF"))}static get IFELSE(){return(0,n.shadow)(this,"IFELSE",new l(t.IFELSE,"IFELSE"))}}class V{constructor(B){this.stream=B,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let B=!1,I=this.currentChar;for(;;){if(I<0)return P.EOF;if(B)(I===10||I===13)&&(B=!1);else if(I===37)B=!0;else if(!(0,j.isWhiteSpace)(I))break;I=this.nextChar()}switch(I|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new l(t.NUMBER,this.getNumber());case 123:return this.nextChar(),l.LBRACE;case 125:return this.nextChar(),l.RBRACE}const f=this.strBuf;for(f.length=0,f[0]=String.fromCharCode(I);(I=this.nextChar())>=0&&(I>=65&&I<=90||I>=97&&I<=122);)f.push(String.fromCharCode(I));const g=f.join("");switch(g.toLowerCase()){case"if":return l.IF;case"ifelse":return l.IFELSE;default:return l.getOperator(g)}}getNumber(){let B=this.currentChar;const I=this.strBuf;for(I.length=0,I[0]=String.fromCharCode(B);(B=this.nextChar())>=0&&(B>=48&&B<=57||B===45||B===46);)I.push(String.fromCharCode(B));const f=parseFloat(I.join(""));if(isNaN(f))throw new n.FormatError(`Invalid floating point number: ${f}`);return f}}p.PostScriptLexer=V},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.RegionalImageCache=p.LocalTilingPatternCache=p.LocalImageCache=p.LocalGStateCache=p.LocalFunctionCache=p.LocalColorSpaceCache=p.GlobalImageCache=void 0;var n=re(2),P=re(4);class j{constructor(a){this.constructor===j&&(0,n.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=(a==null?void 0:a.onlyRefs)===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new P.RefSetCache}getByName(a){this._onlyRefs&&(0,n.unreachable)("Should not call `getByName` method.");const _=this._nameRefMap.get(a);return _?this.getByRef(_):this._imageMap.get(a)||null}getByRef(a){return this._imageCache.get(a)||null}set(a,_,y){(0,n.unreachable)("Abstract method `set` called.")}}
26class e extends j{set(a,_=null,y){if(typeof a!="string")throw new Error('LocalImageCache.set - expected "name" argument.');if(_){if(this._imageCache.has(_))return;this._nameRefMap.set(a,_),this._imageCache.put(_,y);return}this._imageMap.has(a)||this._imageMap.set(a,y)}}p.LocalImageCache=e;class t extends j{set(a=null,_=null,y){if(typeof a!="string"&&!_)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(_){if(this._imageCache.has(_))return;a!==null&&this._nameRefMap.set(a,_),this._imageCache.put(_,y);return}this._imageMap.has(a)||this._imageMap.set(a,y)}}p.LocalColorSpaceCache=t;class l extends j{constructor(a){super({onlyRefs:!0})}set(a=null,_,y){if(!_)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(_)||this._imageCache.put(_,y)}}p.LocalFunctionCache=l;class V extends j{set(a,_=null,y){if(typeof a!="string")throw new Error('LocalGStateCache.set - expected "name" argument.');if(_){if(this._imageCache.has(_))return;this._nameRefMap.set(a,_),this._imageCache.put(_,y);return}this._imageMap.has(a)||this._imageMap.set(a,y)}}p.LocalGStateCache=V;class J extends j{constructor(a){super({onlyRefs:!0})}set(a=null,_,y){if(!_)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(_)||this._imageCache.put(_,y)}}p.LocalTilingPatternCache=J;class B extends j{constructor(a){super({onlyRefs:!0})}set(a=null,_,y){if(!_)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(_)||this._imageCache.put(_,y)}}p.RegionalImageCache=B;const f=class f{constructor(){this._refCache=new P.RefSetCache,this._imageCache=new P.RefSetCache}get _byteSize(){let a=0;for(const _ of this._imageCache)a+=_.byteSize;return a}get _cacheLimitReached(){return!(this._imageCache.size<f.MIN_IMAGES_TO_CACHE||this._byteSize<f.MAX_BYTE_SIZE)}shouldCache(a,_){let y=this._refCache.get(a);return y||(y=new Set,this._refCache.put(a,y)),y.add(_),!(y.size<f.NUM_PAGES_THRESHOLD||!this._imageCache.has(a)&&this._cacheLimitReached)}addByteSize(a,_){const y=this._imageCache.get(a);y&&(y.byteSize||(y.byteSize=_))}getData(a,_){const y=this._refCache.get(a);if(!y||y.size<f.NUM_PAGES_THRESHOLD)return null;const O=this._imageCache.get(a);return O?(y.add(_),O):null}setData(a,_){if(!this._refCache.has(a))throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');if(!this._imageCache.has(a)){if(this._cacheLimitReached){(0,n.warn)("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(a,_)}}clear(a=!1){a||this._refCache.clear(),this._imageCache.clear()}};jt(f,"NUM_PAGES_THRESHOLD",2),jt(f,"MIN_IMAGES_TO_CACHE",10),jt(f,"MAX_BYTE_SIZE",5*n.MAX_IMAGE_SIZE_TO_CACHE);let I=f;p.GlobalImageCache=I},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.bidi=g;var n=re(2);const P=["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"],j=["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"];function e(a){return(a&1)!==0}function t(a){return(a&1)===0}function l(a,_,y){let O,N;for(O=_,N=a.length;O<N;++O)if(a[O]!==y)return O;return O}function V(a,_,y,O){for(let N=_;N<y;++N)a[N]=O}function J(a,_,y){for(let O=_,N=y-1;O<N;++O,--N){const X=a[O];a[O]=a[N],a[N]=X}}function B(a,_,y=!1){let O="ltr";return y?O="ttb":_||(O="rtl"),{str:a,dir:O}}const I=[],f=[];function g(a,_=-1,y=!1){let O=!0;const N=a.length;if(N===0||y)return B(a,O,y);I.length=N,f.length=N;let X=0,R,q;for(R=0;R<N;++R){I[R]=a.charAt(R);
26const h=a.charCodeAt(R);let A="L";h<=255?A=P[h]:1424<=h&&h<=1524?A="R":1536<=h&&h<=1791?(A=j[h&255],A||(0,n.warn)("Bidi: invalid Unicode character "+h.toString(16))):(1792<=h&&h<=2220||64336<=h&&h<=65023||65136<=h&&h<=65279)&&(A="AL"),(A==="R"||A==="AL"||A==="AN")&&X++,f[R]=A}if(X===0)return O=!0,B(a,O);_===-1&&(X/N<.3&&N>4?(O=!0,_=0):(O=!1,_=1));const b=[];for(R=0;R<N;++R)b[R]=_;const E=e(_)?"R":"L",c=E,u=c;let T=c;for(R=0;R<N;++R)f[R]==="NSM"?f[R]=T:T=f[R];T=c;let r;for(R=0;R<N;++R)r=f[R],r==="EN"?f[R]=T==="AL"?"AN":"EN":(r==="R"||r==="L"||r==="AL")&&(T=r);for(R=0;R<N;++R)r=f[R],r==="AL"&&(f[R]="R");for(R=1;R<N-1;++R)f[R]==="ES"&&f[R-1]==="EN"&&f[R+1]==="EN"&&(f[R]="EN"),f[R]==="CS"&&(f[R-1]==="EN"||f[R-1]==="AN")&&f[R+1]===f[R-1]&&(f[R]=f[R-1]);for(R=0;R<N;++R)if(f[R]==="EN"){for(let h=R-1;h>=0&&f[h]==="ET";--h)f[h]="EN";for(let h=R+1;h<N&&f[h]==="ET";++h)f[h]="EN"}for(R=0;R<N;++R)r=f[R],(r==="WS"||r==="ES"||r==="ET"||r==="CS")&&(f[R]="ON");for(T=c,R=0;R<N;++R)r=f[R],r==="EN"?f[R]=T==="L"?"L":"EN":(r==="R"||r==="L")&&(T=r);for(R=0;R<N;++R)if(f[R]==="ON"){const h=l(f,R+1,"ON");let A=c;R>0&&(A=f[R-1]);let L=u;h+1<N&&(L=f[h+1]),A!=="L"&&(A="R"),L!=="L"&&(L="R"),A===L&&V(f,R,h,A),R=h-1}for(R=0;R<N;++R)f[R]==="ON"&&(f[R]=E);for(R=0;R<N;++R)r=f[R],t(b[R])?r==="R"?b[R]+=1:(r==="AN"||r==="EN")&&(b[R]+=2):(r==="L"||r==="AN"||r==="EN")&&(b[R]+=1);let s=-1,o=99,m;for(R=0,q=b.length;R<q;++R)m=b[R],s<m&&(s=m),o>m&&e(m)&&(o=m);for(m=s;m>=o;--m){let h=-1;for(R=0,q=b.length;R<q;++R)b[R]<m?h>=0&&(J(I,h,R),h=-1):h<0&&(h=R);h>=0&&J(I,h,b.length)}for(R=0,q=I.length;R<q;++R){const h=I[R];(h==="<"||h===">")&&(I[R]="")}return B(I.join(""),O)}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.getFontSubstitution=f;var n=re(38),P=re(3);const j={style:"normal",weight:"normal"},e={style:"normal",weight:"bold"},t={style:"italic",weight:"normal"},l={style:"italic",weight:"bold"},V=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman
26L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:j,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:e,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:t,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:l,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:j,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:e,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:t,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:l,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:j,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:e,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:t,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:l,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:j,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:e,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:t,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:l,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:j,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:e,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:t,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:l,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:j}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),J=new Map([["Arial-Black","ArialBlack"]]);function B(g){switch(g){case e:return"Bold";case t:return"Italic";case l:return"Bold Italic";default:if((g==null?void 0:g.weight)==="bold")return"Bold";if((g==null?void 0:g.style)==="italic")return"Italic"}return""}function I({alias:g,local:a,path:_,fallback:y,style:O,ultimate:N},X,R,q=!0,b=!0,E=""){const c={style:null,ultimate:null};if(a){const u=E?` ${E}`:"";for(const T of a)X.push(`local(${T}${u})`)}if(g){const u=V.get(g),T=E||B(O);Object.assign(c,I(u,X,R,q&&!y,b&&!_,T))}if(O&&(c.style=O),N&&(c.ultimate=N),q&&y){const u=V.get(y),{ultimate:T}=I(u,X,R,q,b&&!_,E);c.ultimate||(c.ultimate=T)}return b&&_&&R&&X.push(`url(${R}${_})`),c}function f(g,a,_,y,O){y=(0,n.normalizeFontName)(y);const N=y;let X=g.get(N);if(X)return X;let R=V.get(y);if(!R){for(const[s,o]of J)if(y.startsWith(s)){y=`${o}${y.substring(s.length)}`,R=V.get(y);break}}let q=!1;R||(R=V.get(O),q=!0);const b=`${a.getDocId()}_s${a.createFontId()}`;if(!R){if(!(0,P.validateFontName)(y))return g.set(N,null),null;const s=/bold/gi.test(y),o=/oblique|italic/gi.test(y),m=s&&o&&l||s&&e||o&&t||j;return X={css:b,guessFallback:!0,loadedName:b,baseFontName:y,src:`local(${y})`,style:m},g.set(N,X),X}const E=[];q&&(0,P.validateFontName)(y)&&E.push(`local(${y})`);const{style:c,ultimate:u}=I(R,E,_),T=u===null,r=T?"":`,${u}`;return X={css:`${b}${r}`,guessFallback:T,loadedName:b,baseFontName:y,src:E.join(","),style:c},g.set(N,X),X}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ImageResizer=void 0;var n=re(2);const P=2048,j=65537,e=128;class t{constructor(V,J){this._imgData=V,this._isMask=J}static needsToBeResized(V,J){if(V<=this._goodSquareLength&&J<=this._goodSquareLength)return!1;const{MAX_DIM:B}=this;if(V>B||J>B)return!0;const I=V*J;if(this._hasMaxArea)return I>this.MAX_AREA;if(I<this._goodSquareLength**2)return!1;if(this._areGoodDims(V,J))return this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(V*J))),!1;this._goodSquareLength=this._guessMax(this._goodSquareLength,B,e,0);const f=this.MAX_AREA=this._goodSquareLength**2;return I>f}static get MAX_DIM(){return(0,n.shadow)(this,"MAX_DIM",this._guessMax(P,j,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",this._guessMax(t._goodSquareLength,this.MAX_DIM,e,0)**2)}static set MAX_AREA(V){V>=0&&(this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",V))}static setMaxArea(V){this._hasMaxArea||(this.MAX_AREA=V>
26>2)}static _areGoodDims(V,J){try{const B=new OffscreenCanvas(V,J),I=B.getContext("2d");I.fillRect(0,0,1,1);const f=I.getImageData(0,0,1,1).data[3];return B.width=B.height=1,f!==0}catch{return!1}}static _guessMax(V,J,B,I){for(;V+B+1<J;){const f=Math.floor((V+J)/2),g=I||f;this._areGoodDims(f,g)?V=f:J=f}return V}static async createImage(V,J=!1){return new t(V,J)._createImage()}async _createImage(){const V=this._encodeBMP(),J=new Blob([V.buffer],{type:"image/bmp"}),B=createImageBitmap(J),{MAX_AREA:I,MAX_DIM:f}=t,{_imgData:g}=this,{width:a,height:_}=g,y=Math.max(a/f,_/f,Math.sqrt(a*_/I)),O=Math.max(y,2),N=Math.round(10*(y+1.25))/10/O,X=Math.floor(Math.log2(N)),R=new Array(X+2).fill(2);R[0]=O,R.splice(-1,1,N/(1<<X));let q=a,b=_,E=await B;for(const c of R){const u=q,T=b;q=Math.floor(q/c)-1,b=Math.floor(b/c)-1;const r=new OffscreenCanvas(q,b);r.getContext("2d").drawImage(E,0,0,u,T,0,0,q,b),E=r.transferToImageBitmap()}return g.data=null,g.bitmap=E,g.width=q,g.height=b,g}_encodeBMP(){const{width:V,height:J,kind:B}=this._imgData;let I=this._imgData.data,f,g=new Uint8Array(0),a=g,_=0;switch(B){case n.ImageKind.GRAYSCALE_1BPP:{f=1,g=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);const b=V+7>>3,E=b+3&-4;if(b!==E){const c=new Uint8Array(E*J);let u=0;for(let T=0,r=J*b;T<r;T+=b,u+=E)c.set(I.subarray(T,T+b),u);I=c}break}case n.ImageKind.RGB_24BPP:{if(f=24,V&3){const b=3*V,E=b+3&-4,c=E-b,u=new Uint8Array(E*J);let T=0;for(let r=0,s=J*b;r<s;r+=b){const o=I.subarray(r,r+b);for(let m=0;m<b;m+=3)u[T++]=o[m+2],u[T++]=o[m+1],u[T++]=o[m];T+=c}I=u}else for(let b=0,E=I.length;b<E;b+=3){const c=I[b];I[b]=I[b+2],I[b+2]=c}break}case n.ImageKind.RGBA_32BPP:f=32,_=3,a=new Uint8Array(68);const q=new DataView(a.buffer);n.FeatureTest.isLittleEndian?(q.setUint32(0,255,!0),q.setUint32(4,65280,!0),q.setUint32(8,16711680,!0),q.setUint32(12,4278190080,!0)):(q.setUint32(0,4278190080,!0),q.setUint32(4,16711680,!0),q.setUint32(8,65280,!0),q.setUint32(12,255,!0));break;default:throw new Error("invalid format")}let y=0;const O=40+a.length,N=14+O+g.length+I.length,X=new Uint8Array(N),R=new DataView(X.buffer);return R.setUint16(y,19778,!0),y+=2,R.setUint32(y,N,!0),y+=4,R.setUint32(y,0,!0),y+=4,R.setUint32(y,14+O+g.length,!0),y+=4,R.setUint32(y,O,!0),y+=4,R.setInt32(y,V,!0),y+=4,R.setInt32(y,-J,!0),y+=4,R.setUint16(y,1,!0),y+=2,R.setUint16(y,f,!0),y+=2,R.setUint32(y,_,!0),y+=4,R.setUint32(y,0,!0),y+=4,R.setInt32(y,0,!0),y+=4,R.setInt32(y,0,!0),y+=4,R.setUint32(y,g.length/4,!0),y+=4,R.setUint32(y,0,!0),y+=4,X.set(a,y),y+=a.length,X.set(g,y),y+=g.length,X.set(I,y),X}}p.ImageResizer=t,t._goodSquareLength=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.MurmurHash3_64=void 0;var n=re(2);const P=3285377520,j=4294901760,e=65535;class t{constructor(V){this.h1=V?V&4294967295:P,this.h2=V?V&4294967295:P}update(V){let J,B;if(typeof V=="string"){J=new Uint8Array(V.length*2),B=0;for(let b=0,E=V.length;b<E;b++){const c=V.charCodeAt(b);c<=255?J[B++]=c:(J[B++]=c>>>8,J[B++]=c&255)}}else if((0,n.isArrayBuffer)(V))J=V.slice(),B=J.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const I=B>>2,f=B-I*4,g=new Uint32Array(J.buffer,0,I);let a=0,_=0,y=this.h1,O=this.h2;const N=3432918353,X=461845907,R=N&e,q=X&e;for(let b=0;b<I;b++)b&1?(a=g[b],a=a*N&j|a*R&e,a=a<<15|a>>>17,a=a*X&j|a*q&e,y^=a,y=y<<13|y>>>19,y=y*5+3864292196):(_=g[b],_=_*N&j|_*R&e,_=_<<15|_>>>17,_=_*X&j|_*q&e,O^=_,O=O<<13|O>>>19,O=O*5+3864292196);switch(a=0,f){case 3:a^=J[I*4+2]<<16;case 2:a^=J[I*4+1]<<8;case 1:a^=J[I*4],a=a*N&j|a*R&e,a=a<<15|a>>>17,a=a*X&j|a*q&e,I&1?y^=a:O^=a}this.h1=y,this.h2=O}hexdigest(){let V=this.h1,J=this.h2;return V^=J>>>1,V=V*3981806797&j|V*36045&e,J=J*4283543511&j|((J<<16|V>>>16)*2950163797&j)>>>16,V^=J>>>1,V=V*444984403&j|V*60499&e,J=J*3301882366&j|((J<<16|V>>>16)*3120437893&j)>>>16,V^=J>>>1,(V>>>0).toString(16).padStart(8,"0")+(J>>>0).toString(16).padStart(8,"0")}}p.MurmurHash3_64=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.OperatorList=void 0;var n=re(2);function P(J,B,I,f,g){let a=J;for(let _=0,y=B.length-1;_<y;_++){const O=B[_];a=a[O]||(a[O]=[])}
26a[B.at(-1)]={checkFn:I,iterateFn:f,processFn:g}}const j=[];P(j,[n.OPS.save,n.OPS.transform,n.OPS.paintInlineImageXObject,n.OPS.restore],null,function(B,I){const f=B.fnArray,g=B.iCurr-3,a=(I-g)%4;switch(a){case 0:return f[I]===n.OPS.save;case 1:return f[I]===n.OPS.transform;case 2:return f[I]===n.OPS.paintInlineImageXObject;case 3:return f[I]===n.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${a}`)},function(B,I){const y=B.fnArray,O=B.argsArray,N=B.iCurr,X=N-3,R=N-2,q=N-1,b=Math.min(Math.floor((I-X)/4),200);if(b<10)return I-(I-X)%4;let E=0;const c=[];let u=0,T=1,r=1;for(let L=0;L<b;L++){const H=O[R+(L<<2)],F=O[q+(L<<2)][0];T+F.width>1e3&&(E=Math.max(E,T),r+=u+2,T=0,u=0),c.push({transform:H,x:T,y:r,w:F.width,h:F.height}),T+=F.width+2,u=Math.max(u,F.height)}const s=Math.max(E,T)+1,o=r+u+1,m=new Uint8Array(s*o*4),h=s<<2;for(let L=0;L<b;L++){const H=O[q+(L<<2)][0].data,F=c[L].w<<2;let M=0,k=c[L].x+c[L].y*s<<2;m.set(H.subarray(0,F),k-h);for(let x=0,C=c[L].h;x<C;x++)m.set(H.subarray(M,M+F),k),M+=F,k+=h;for(m.set(H.subarray(M-F,M),k);k>=0;)H[k-4]=H[k],H[k-3]=H[k+1],H[k-2]=H[k+2],H[k-1]=H[k+3],H[k+F]=H[k+F-4],H[k+F+1]=H[k+F-3],H[k+F+2]=H[k+F-2],H[k+F+3]=H[k+F-1],k-=h}const A={width:s,height:o};if(B.isOffscreenCanvasSupported){const L=new OffscreenCanvas(s,o);L.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(m.buffer),s,o),0,0),A.bitmap=L.transferToImageBitmap(),A.data=null}else A.kind=n.ImageKind.RGBA_32BPP,A.data=m;return y.splice(X,b*4,n.OPS.paintInlineImageXObjectGroup),O.splice(X,b*4,[A,c]),X+1}),P(j,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,function(B,I){const f=B.fnArray,g=B.iCurr-3,a=(I-g)%4;switch(a){case 0:return f[I]===n.OPS.save;case 1:return f[I]===n.OPS.transform;case 2:return f[I]===n.OPS.paintImageMaskXObject;case 3:return f[I]===n.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${a}`)},function(B,I){const _=B.fnArray,y=B.argsArray,O=B.iCurr,N=O-3,X=O-2,R=O-1;let q=Math.floor((I-N)/4);if(q<10)return I-(I-N)%4;let b=!1,E,c;const u=y[R][0],T=y[X][0],r=y[X][1],s=y[X][2],o=y[X][3];if(r===s){b=!0,E=X+4;let m=R+4;for(let h=1;h<q;h++,E+=4,m+=4)if(c=y[E],y[m][0]!==u||c[0]!==T||c[1]!==r||c[2]!==s||c[3]!==o){h<10?b=!1:q=h;break}}if(b){q=Math.min(q,1e3);const m=new Float32Array(q*2);E=X;for(let h=0;h<q;h++,E+=4)c=y[E],m[h<<1]=c[4],m[(h<<1)+1]=c[5];_.splice(N,q*4,n.OPS.paintImageMaskXObjectRepeat),y.splice(N,q*4,[u,T,r,s,o,m])}else{q=Math.min(q,100);const m=[];for(let h=0;h<q;h++){c=y[X+(h<<2)];const A=y[R+(h<<2)][0];m.push({data:A.data,width:A.width,height:A.height,interpolate:A.interpolate,count:A.count,transform:c})}_.splice(N,q*4,n.OPS.paintImageMaskXObjectGroup),y.splice(N,q*4,[m])}return N+1}),P(j,[n.OPS.save,n.OPS.transform,n.OPS.paintImageXObject,n.OPS.restore],function(J){const B=J.argsArray,I=J.iCurr-2;return B[I][1]===0&&B[I][2]===0},function(B,I){const f=B.fnArray,g=B.argsArray,a=B.iCurr-3,_=(I-a)%4;switch(_){case 0:return f[I]===n.OPS.save;case 1:if(f[I]!==n.OPS.transform)return!1;const y=B.iCurr-2,O=g[y][0],N=g[y][3];return!(g[I][0]!==O||g[I][1]!==0||g[I][2]!==0||g[I][3]!==N);case 2:if(f[I]!==n.OPS.paintImageXObject)return!1;const X=B.iCurr-1,R=g[X][0];return g[I][0]===R;case 3:return f[I]===n.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${_}`)},function(J,B){const g=J.fnArray,a=J.argsArray,_=J.iCurr,y=_-3,O=_-2,N=_-1,X=a[N][0],R=a[O][0],q=a[O][3],b=Math.min(Math.floor((B-y)/4),1e3);if(b<3)return B-(B-y)%4;const E=new Float32Array(b*2);let c=O;for(let T=0;T<b;T++,c+=4){const r=a[c];E[T<<1]=r[4],E[(T<<1)+1]=r[5]}const u=[X,R,q,E];return g.splice(y,b*4,n.OPS.paintImageXObjectRepeat),a.splice(y,b*4,u),y+1}),P(j,[n.OPS.beginText,n.OPS.setFont,n.OPS.setTextMatrix,n.OPS.showText,n.OPS.endText],null,function(B,I){const f=B.fnArray,g=B.argsArray,a=B.iCurr-4,_=(I-a)%5;switch(_){case 0:return f[I]===n.OPS.beginText;case 1:return f[I]===n.OPS.setFont;case 2:return f[I]===n.OPS.setTextMatrix;case 3:if(f[I]!==n.OPS.showText)return!1;const y=B.iCurr-3,O=g[y][0],N=g[y][1];return!(g[I][0]!==O||g[I][1]!==N);case 4:return f[I]===n.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${_}`)},function(J,B){const g=J.fnArray,a=J.argsArray,_=J.iCurr,y=_-4,O=_-3,N=_-2,X=_-1,R=_,q=a[O][0],b=a[O][1];let E=Math.min(Math.floor((B-y)/5),1e3);if(E<3)return B-(B-y)%5;let c=y;y>=4&&g[y-4]===g[O]&&g[y-3]===g[N]&&g[y-2]===g[X]&&g[y-1]===g[R]&&a[y-4][0]===q&&a[y-4][1]===b&&(E++,c-=5);let u=c+4;for(let T=1;T<E;T++)g.splice(u,3),a.splice(u,3),u+=2;return u+1});class e{constructor(B){this.queue=B}_optimize(){}push(B,I){this.queue.fnArray.push(B),this.queue.argsArray.push(I),this._optimize()}flush(){}reset(){}}class t extends e{constructor(B){super(B),this.state=null,this.context={iCurr:0,fnArray:B.fnArray,argsArray:B.argsArray,isOffscreenCanvasSupported:!1},this.match=null,this.lastProcessed=0}
26set isOffscreenCanvasSupported(B){this.context.isOffscreenCanvasSupported=B}_optimize(){const B=this.queue.fnArray;let I=this.lastProcessed,f=B.length,g=this.state,a=this.match;if(!g&&!a&&I+1===f&&!j[B[I]]){this.lastProcessed=f;return}const _=this.context;for(;I<f;){if(a){if((0,a.iterateFn)(_,I)){I++;continue}if(I=(0,a.processFn)(_,I+1),f=B.length,a=null,g=null,I>=f)break}if(g=(g||j)[B[I]],!g||Array.isArray(g)){I++;continue}if(_.iCurr=I,I++,g.checkFn&&!(0,g.checkFn)(_)){g=null;continue}a=g,g=null}this.state=g,this.match=a,this.lastProcessed=I}flush(){for(;this.match;){const B=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,B),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}const V=class V{constructor(B=0,I){this._streamSink=I,this.fnArray=[],this.argsArray=[],this.optimizer=I&&!(B&n.RenderingIntentFlag.OPLIST)?new t(this):new e(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=I?null:Promise.resolve()}set isOffscreenCanvasSupported(B){this.optimizer.isOffscreenCanvasSupported=B}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(B,I){this.optimizer.push(B,I),this.weight++,this._streamSink&&(this.weight>=V.CHUNK_SIZE?this.flush():this.weight>=V.CHUNK_SIZE_ABOUT&&(B===n.OPS.restore||B===n.OPS.endText)&&this.flush())}addImageOps(B,I,f){f!==void 0&&this.addOp(n.OPS.beginMarkedContentProps,["OC",f]),this.addOp(B,I),f!==void 0&&this.addOp(n.OPS.endMarkedContent,[])}addDependency(B){this.dependencies.has(B)||(this.dependencies.add(B),this.addOp(n.OPS.dependency,[B]))}addDependencies(B){for(const I of B)this.addDependency(I)}addOpList(B){if(!(B instanceof V)){(0,n.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const I of B.dependencies)this.dependencies.add(I);for(let I=0,f=B.length;I<f;I++)this.addOp(B.fnArray[I],B.argsArray[I])}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){var a;const B=[],{fnArray:I,argsArray:f,length:g}=this;for(let _=0;_<g;_++)switch(I[_]){case n.OPS.paintInlineImageXObject:case n.OPS.paintInlineImageXObjectGroup:case n.OPS.paintImageMaskXObject:const y=f[_][0];!y.cached&&((a=y.data)==null?void 0:a.buffer)instanceof ArrayBuffer&&B.push(y.data.buffer);break}return B}flush(B=!1,I=null){this.optimizer.flush();const f=this.length;this._totalLength+=f,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:B,separateAnnots:I,length:f},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}};jt(V,"CHUNK_SIZE",1e3),jt(V,"CHUNK_SIZE_ABOUT",V.CHUNK_SIZE-5);let l=V;p.OperatorList=l},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PDFImage=void 0;var n=re(2),P=re(28),j=re(5),e=re(12),t=re(18),l=re(62),V=re(26),J=re(30),B=re(4);function I(a,_,y,O){return a=_+a*y,a<0?a=0:a>O&&(a=O),a}function f(a,_,y,O,N,X){const R=N*X;let q;_<=8?q=new Uint8Array(R):_<=16?q=new Uint16Array(R):q=new Uint32Array(R);const b=y/N,E=O/X;let c,u,T,r=0,s;const o=new Uint16Array(N),m=y;for(c=0;c<N;c++)o[c]=Math.floor(c*b);for(c=0;c<X;c++)for(T=Math.floor(c*E)*m,u=0;u<N;u++)s=T+o[u],q[r++]=a[s];return q}class g{constructor({xref:_,res:y,image:O,isInline:N=!1,smask:X=null,mask:R=null,isMask:q=!1,pdfFunctionFactory:b,localColorSpaceCache:E}){var m;this.image=O;const c=O.dict,u=c.get("F","Filter");let T;if(u instanceof B.Name)T=u.name;else if(Array.isArray(u)){const h=_.fetchIfRef(u[0]);h instanceof B.Name&&(T=h.name)}switch(T){case"JPXDecode":const h=new J.JpxImage;h.parseImageProperties(O.stream),O.stream.reset(),O.width=h.width,O.height=h.height,O.bitsPerComponent=h.bitsPerComponent,O.numComps=h.componentsCount;break;case"JBIG2Decode":O.bitsPerComponent=1,O.numComps=1;break}let r=c.get("W","Width"),s=c.get("H","Height");if(Number.isInteger(O.width)&&O.width>0&&Number.isInteger(O.height)&&O.height>0&&(O.width!==r||O.height!==s)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),r=O.width,s=O.height),r<1||s<1)throw new n.FormatError(`Invalid image width: ${r} or height: ${s}`);this.width=r,this.height=s,this.interpolate=c.get("I","Interpolate"),this.imageMask=c.get("IM","ImageMask")||!1,this.matte=c.get("Matte")||!1;let o=O.bitsPerComponent;if(!o&&(o=c.get("BPC","BitsPerComponent"),!o))if(this.imageMask)o=1;else throw new n.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=o,!this.imageMask){let h=c.getRaw("CS")||c.getRaw("ColorSpace");if(!h)switch((0,n.info)("JPX images (which do not require color spaces)"),O.numComps){case 1:h=B.Name.get("DeviceGray");break;case 3:h=B.Name.get("DeviceRGB");break;case 4:h=B.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${O.numComps} color components not supported.`)}
26this.colorSpace=e.ColorSpace.parse({cs:h,xref:_,resources:N?y:null,pdfFunctionFactory:b,localColorSpaceCache:E}),this.numComps=this.colorSpace.numComps}if(this.decode=c.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,o)||q&&!e.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const h=(1<<o)-1;this.decodeCoefficients=[],this.decodeAddends=[];const A=((m=this.colorSpace)==null?void 0:m.name)==="Indexed";for(let L=0,H=0;L<this.decode.length;L+=2,++H){const F=this.decode[L],M=this.decode[L+1];this.decodeCoefficients[H]=A?(M-F)/h:M-F,this.decodeAddends[H]=A?F:h*F}}X?this.smask=new g({xref:_,res:y,image:X,isInline:N,pdfFunctionFactory:b,localColorSpaceCache:E}):R&&(R instanceof j.BaseStream?R.dict.get("IM","ImageMask")?this.mask=new g({xref:_,res:y,image:R,isInline:N,isMask:!0,pdfFunctionFactory:b,localColorSpaceCache:E}):(0,n.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=R)}static async buildImage({xref:_,res:y,image:O,isInline:N=!1,pdfFunctionFactory:X,localColorSpaceCache:R}){const q=O;let b=null,E=null;const c=O.dict.get("SMask"),u=O.dict.get("Mask");return c?c instanceof j.BaseStream?b=c:(0,n.warn)("Unsupported /SMask format."):u&&(u instanceof j.BaseStream||Array.isArray(u)?E=u:(0,n.warn)("Unsupported /Mask format.")),new g({xref:_,res:y,image:q,isInline:N,smask:b,mask:E,pdfFunctionFactory:X,localColorSpaceCache:R})}static createRawMask({imgArray:_,width:y,height:O,imageIsFromDecodeStream
26:N,inverseDecode:X,interpolate:R}){const q=(y+7>>3)*O,b=_.byteLength,E=q===b;let c,u;if(N&&(!X||E)?c=_:X?(c=new Uint8Array(q),c.set(_),c.fill(255,b)):c=new Uint8Array(_),X)for(u=0;u<b;u++)c[u]^=255;return{data:c,width:y,height:O,interpolate:R}}static async createMask({imgArray:_,width:y,height:O,imageIsFromDecodeStream:N,inverseDecode:X,interpolate:R,isOffscreenCanvasSupported:q=!1}){const b=y===1&&O===1&&X===(_.length===0||!!(_[0]&128));if(b)return{isSingleOpaquePixel:b};if(q){if(l.ImageResizer.needsToBeResized(y,O)){const r=new Uint8ClampedArray(y*O*4);return(0,P.convertBlackAndWhiteToRGBA)({src:_,dest:r,width:y,height:O,nonBlackColor:0,inverseDecode:X}),l.ImageResizer.createImage({kind:n.ImageKind.RGBA_32BPP,data:r,width:y,height:O,interpolate:R})}const E=new OffscreenCanvas(y,O),c=E.getContext("2d"),u=c.createImageData(y,O);(0,P.convertBlackAndWhiteToRGBA)({src:_,dest:u.data,width:y,height:O,nonBlackColor:0,inverseDecode:X}),c.putImageData(u,0,0);const T=E.transferToImageBitmap();return{data:null,width:y,height:O,interpolate:R,bitmap:T}}return this.createRawMask({imgArray:_,width:y,height:O,inverseDecode:X,imageIsFromDecodeStream
26:N,interpolate:R})}get drawWidth(){var _,y;return Math.max(this.width,((_=this.smask)==null?void 0:_.width)||0,((y=this.mask)==null?void 0:y.width)||0)}get drawHeight(){var _,y;return Math.max(this.height,((_=this.smask)==null?void 0:_.height)||0,((y=this.mask)==null?void 0:y.height)||0)}decodeBuffer(_){const y=this.bpc,O=this.numComps,N=this.decodeAddends,X=this.decodeCoefficients,R=(1<<y)-1;let q,b;if(y===1){for(q=0,b=_.length;q<b;q++)_[q]=+!_[q];return}let E=0;for(q=0,b=this.width*this.height;q<b;q++)for(let c=0;c<O;c++)_[E]=I(_[E],N[c],X[c],R),E++}getComponents(_){const y=this.bpc;if(y===8)return _;const O=this.width,N=this.height,X=this.numComps,R=O*N*X;let q=0,b;y<=8?b=new Uint8Array(R):y<=16?b=new Uint16Array(R):b=new Uint32Array(R);const E=O*X,c=(1<<y)-1;let u=0,T,r;if(y===1){let s,o,m;for(let h=0;h<N;h++){for(o=u+(E&-8),m=u+E;u<o;)r=_[q++],b[u]=r>>7&1,b[u+1]=r>>6&1,b[u+2]=r>>5&1,b[u+3]=r>>4&1,b[u+4]=r>>3&1,b[u+5]=r>>2&1,b[u+6]=r>>1&1,b[u+7]=r&1,u+=8;if(u<m)for(r=_[q++],s=128;u<m;)b[u++]=+!!(r&s),s>>=1}}else{let s=0;for(r=0,u=0,T=R;u<T;++u){for(u%E===0&&(r=0,s=0);s<y;)r=r<<8|_[q++],s+=8;const o=s-y;let m=r>>o;m<0?m=0:m>c&&(m=c),b[u]=m,r&=(1<<o)-1,s=o}}return b}fillOpacity(_,y,O,N,X){const R=this.smask,q=this.mask;let b,E,c,u,T,r;if(R)E=R.width,c=R.height,b=new Uint8ClampedArray(E*c),R.fillGrayBuffer(b),(E!==y||c!==O)&&(b=f(b,R.bpc,E,c,y,O));else if(q)if(q instanceof g){for(E=q.width,c=q.height,b=new Uint8ClampedArray(E*c),q.numComps=1,q.fillGrayBuffer(b),u=0,T=E*c;u<T;++u)b[u]=255-b[u];(E!==y||c!==O)&&(b=f(b,q.bpc,E,c,y,O))}else if(Array.isArray(q)){b=new Uint8ClampedArray(y*O);const s=this.numComps;for(u=0,T=y*O;u<T;++u){let o=0;const m=u*s;for(r=0;r<s;++r){const h=X[m+r],A=r*2;if(h<q[A]||h>q[A+1]){o=255;break}}b[u]=o}}else throw new n.FormatError("Unknown mask format.");if(b)for(u=0,r=3,T=y*N;u<T;++u,r+=4)_[r]=b[u];else for(u=0,r=3,T=y*N;u<T;++u,r+=4)_[r]=255}undoPreblend(_,y,O){var c;const N=(c=this.smask)==null?void 0:c.matte;if(!N)return;const X=this.colorSpace.getRgb(N,0),R=X[0],q=X[1],b=X[2],E=y*O*4;for(let u=0;u<E;u+=4){const T=_[u+3];if(T===0){_[u]=255,_[u+1]=255,_[u+2]=255;continue}const r=255/T;_[u]=(_[u]-R)*r+R,_[u+1]=(_[u+1]-q)*r+q,_[u+2]=(_[u+2]-b)*r+b}}async createImageData(_=!1,y=!1){const O=this.drawWidth,N=this.drawHeight,X={width:O,height:N,interpolate:this.interpolate,kind:0,data:null},R=this.numComps,q=this.width,b=this.height,E=this.bpc,c=q*R*E+7>>3,u=y&&l.ImageResizer.needsToBeResized(O,N);if(!_){let F;if(this.colorSpace.name==="DeviceGray"&&E===1?F=n.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&E===8&&!this.needsDecode&&(F=n.ImageKind.RGB_24BPP),F&&!this.smask&&!this.mask&&O===q&&N===b){const M=this.getImageBytes(b*c,{});if(y)return u?l.ImageResizer.createImage({data:M,kind:F,width:O,height:N,interpolate:this.interpolate},this.needsDecode):this.createBitmap(F,q,b,M);if(X.kind=F,X.data=M,this.needsDecode){(0,n.assert)(F===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const k=X.data;for(let x=0,C=k.length;x<C;x++)k[x]^=255}return X}if(this.image instanceof V.JpegStream&&!this.smask&&!this.mask&&!this.needsDecode){let M=b*c;if(y&&!u){let k=!1;switch(this.colorSpace.name){case"DeviceGray":M*=4,k=!0;break;case"DeviceRGB":M=M/3*4,k=!0;break;case"DeviceCMYK":k=!0;break}if(k){const x=this.getImageBytes(M,{drawWidth:O,drawHeight:N,forceRGBA:!0});return this.createBitmap(n.ImageKind.RGBA_32BPP,O,N,x)}}else switch(this.colorSpace.name){case"DeviceGray":M*=3;case"DeviceRGB":case"DeviceCMYK":return X.kind=n.ImageKind.RGB_24BPP,X.data=this.getImageBytes(M,{drawWidth:O,drawHeight:N,forceRGB:!0}),u?l.ImageResizer.createImage(X):X}}}const T=this.getImageBytes(b*c,{internal:!0}),r=0|T.length/c*N/b,s=this.getComponents(T);let o,m,h,A,L,H;if(y&&!u&&(h=new OffscreenCanvas(O,N),A=h.getContext("2d"),L=A.createImageData(O,N),H=L.data),X.kind=n.ImageKind.RGBA_32BPP,!_&&!this.smask&&!this.mask?(!y||u?(X.kind=n.ImageKind.RGB_24BPP,H=new Uint8ClampedArray(O*N*3),o=0):(new Uint32Array(H.buffer).fill(n.FeatureTest.isLittleEndian?4278190080:255),o=1),m=!1):((!y||u)&&(H=new Uint8ClampedArray(O*N*4)),o=1,m=!0,this.fillOpacity(H,O,N,r,s)),this.needsDecode&&this.decodeBuffer(s),this.colorSpace.fillRgb(H,q,b,O,N,r,E,s,o),m&&this.undoPreblend(H,O,r),y&&!u){A.putImageData(L,0,0);const F=h.transferToImageBitmap();return{data:null,width:O,height:N,bitmap:F,interpolate:this.interpolate}}return X.data=H,u?l.ImageResizer.createImage(X):X}fillGrayBuffer(_){const y=this.numComps;
26if(y!==1)throw new n.FormatError(`Reading gray scale from a color image: ${y}`);const O=this.width,N=this.height,X=this.bpc,R=O*y*X+7>>3,q=this.getImageBytes(N*R,{internal:!0}),b=this.getComponents(q);let E,c;if(X===1){if(c=O*N,this.needsDecode)for(E=0;E<c;++E)_[E]=b[E]-1&255;else for(E=0;E<c;++E)_[E]=-b[E]&255;return}this.needsDecode&&this.decodeBuffer(b),c=O*N;const u=255/((1<<X)-1);for(E=0;E<c;++E)_[E]=u*b[E]}createBitmap(_,y,O,N){const X=new OffscreenCanvas(y,O),R=X.getContext("2d");let q;_===n.ImageKind.RGBA_32BPP?q=new ImageData(N,y,O):(q=R.createImageData(y,O),(0,P.convertToRGBA)({kind:_,src:N,dest:new Uint32Array(q.data.buffer),width:y,height:O,inverseDecode:this.needsDecode})),R.putImageData(q,0,0);const b=X.transferToImageBitmap();return{data:null,width:y,height:O,bitmap:b,interpolate:this.interpolate}}getImageBytes(_,{drawWidth:y,drawHeight:O,forceRGBA:N=!1,forceRGB:X=!1,internal:R=!1}){this.image.reset(),this.image.drawWidth=y||this.width,this.image.drawHeight=O||this.height,this.image.forceRGBA=!!N,this.image.forceRGB=!!X;const q=this.image.getBytes(_);return R||this.image instanceof t.DecodeStream?q:((0,n.assert)(q instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(q))}}p.PDFImage=g},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Catalog=void 0;var n=re(3),P=re(2),j=re(4),e=re(67),t=re(5),l=re(68),V=re(12),J=re(69),B=re(59),I=re(70),f=re(72);function g(_){return _ instanceof j.Dict&&(_=_.get("D")),Array.isArray(_)?_:null}class a{constructor(y,O){if(this.pdfManager=y,this.xref=O,this._catDict=O.getCatalogObj(),!(this._catDict instanceof j.Dict))throw new P.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new j.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new B.GlobalImageCache,this.pageKidsCountCache=new j.RefSetCache,this.pageIndexCache=new j.RefSetCache,this.nonBlendModesSet=new j.RefSet,this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){const y=this._catDict.get("Version");if(y instanceof j.Name){if(n.PDF_VERSION_REGEXP.test(y.name))return(0,P.shadow)(this,"version",y.name);(0,P.warn)(`Invalid PDF catalog version: ${y.name}`)}return(0,P.shadow)(this,"version",null)}get lang(){const y=this._catDict.get("Lang");return(0,P.shadow)(this,"lang",typeof y=="string"?(0,P.stringToPDFString)(y):null)}get needsRendering(){const y=this._catDict.get("NeedsRendering");return(0,P.shadow)(this,"needsRendering",typeof y=="boolean"?y:!1)}get collection(){let y=null;try{const O=this._catDict.get("Collection");O instanceof j.Dict&&O.size>0&&(y=O)}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,P.shadow)(this,"collection",y)}get acroForm(){let y=null;try{const O=this._catDict.get("AcroForm");O instanceof j.Dict&&O.size>0&&(y=O)}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,P.shadow)(this,"acroForm",y)}get acroFormRef(){const y=this._catDict.getRaw("AcroForm");return(0,P.shadow)(this,"acroFormRef",y instanceof j.Ref?y:null)}get metadata(){var N;const y=this._catDict.getRaw("Metadata");if(!(y instanceof j.Ref))return(0,P.shadow)(this,"metadata",null);let O=null;try{const X=this.xref.fetch(y,!((N=this.xref.encrypt)!=null&&N.encryptMetadata));if(X instanceof t.BaseStream&&X.dict instanceof j.Dict){const R=X.dict.get("Type"),q=X.dict.get("Subtype");if((0,j.isName)(R,"Metadata")&&(0,j.isName)(q,"XML")){const b=(0,P.stringToUTF8String)(X.getString());b&&(O=new I.MetadataParser(b).serializable)}}}catch(X){if(X instanceof n.MissingDataException)throw X;(0,P.info)(`Skipping invalid Metadata: "${X}".`)}return(0,P.shadow)(this,"metadata",O)}get markInfo(){let y=null;try{y=this._readMarkInfo()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read mark info.")}return(0,P.shadow)(this,"markInfo",y)}_readMarkInfo(){const y=this._catDict.get("MarkInfo");if(!(y instanceof j.Dict))return null;const O={Marked:!1,UserProperties:!1,Suspects:!1};for(const N in O){const X=y.get(N);typeof X=="boolean"&&(O[N]=X)}return O}get structTreeRoot(){let y=null;try{y=this._readStructTreeRoot()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable read to structTreeRoot info.")}return(0,P.shadow)(this,"structTreeRoot",y)}_readStructTreeRoot(){const y=this._catDict.getRaw("StructTreeRoot"),O=this.xref.fetchIfRef(y);if(!(O instanceof j.Dict))return null;const N=new f.StructTreeRoot(O,y);return N.init(),N}get toplevelPagesDict(){const y=this._catDict.get("Pages");if(!(y instanceof j.Dict))throw new P.FormatError("Invalid top-level pages dictionary.");return(0,P.shadow)(this,"toplevelPagesDict",y)}get documentOutline(){let y=null;try{y=this._readDocumentOutline()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read document outline.")}return(0,P.shadow)(this,"documentOutline",y)}_readDocumentOutline(){let y=this._catDict.get("Outlines");if(!(y instanceof j.Dict)||(y=y.getRaw("First"),!(y instanceof j.Ref)))return null;const O={items:[]},N=[{obj:y,parent:O}],X=new j.RefSet;X.put(y);const R=this.xref,q=new Uint8ClampedArray(3);for(;N.length>0;){const b=N.shift(),E=R.fetchIfRef(b.obj);if(E===null)continue;if(!E.has("Title"))throw new P.FormatError("Invalid outline item encountered.");const c={url:null,dest:null,action:null};a.parseDestDictionary({destDict:E,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const u=E.get("Title"),T=E.get("F")||0,r=E.getArray("C"),s=E.get("Count");let o=q;Array.isArray(r)&&r.length===3&&(r[0]!==0||r[1]!==0||r[2]!==0)&&(o=V.ColorSpace.singletons.rgb.getRgb(r,0));const m={action:c.action,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:(0,P.stringToPDFString)(u),color:o,count:Number.isInteger(s)?s:void 0,bold:!!(T&2),italic:!!(T&1),items:[]};b.parent.items.push(m),y=E.getRaw("First"),y instanceof j.Ref&&!X.has(y)&&(N.push({obj:y,parent:m}),X.put(y)),y=E.getRaw("Next"),y instanceof j.Ref&&!X.has(y)&&(N.push({obj:y,parent:b.parent}),X.put(y))}return O.items.length>0?O.items:null}get permissions(){let y=null;try{y=this._readPermissions()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read permissions.")}return(0,P.shadow)(this,"permissions",y)}_readPermissions(){const y=this.xref.trailer.get("Encrypt");
26if(!(y instanceof j.Dict))return null;let O=y.get("P");if(typeof O!="number")return null;O+=4294967296;const N=[];for(const X in P.PermissionFlag){const R=P.PermissionFlag[X];O&R&&N.push(R)}return N}get optionalContentConfig(){let y=null;try{const O=this._catDict.get("OCProperties");if(!O)return(0,P.shadow)(this,"optionalContentConfig",null);const N=O.get("D");if(!N)return(0,P.shadow)(this,"optionalContentConfig",null);const X=O.get("OCGs");if(!Array.isArray(X))return(0,P.shadow)(this,"optionalContentConfig",null);const R=[],q=[];for(const b of X){if(!(b instanceof j.Ref))continue;q.push(b);const E=this.xref.fetchIfRef(b);R.push({id:b.toString(),name:typeof E.get("Name")=="string"?(0,P.stringToPDFString)(E.get("Name")):null,intent:typeof E.get("Intent")=="string"?(0,P.stringToPDFString)(E.get("Intent")):null})}y=this._readOptionalContentConfig(N,q),y.groups=R}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)(`Unable to read optional content config: ${O}`)}return(0,P.shadow)(this,"optionalContentConfig",y)}_readOptionalContentConfig(y,O){function N(c){const u=[];if(Array.isArray(c))for(const T of c)T instanceof j.Ref&&O.includes(T)&&u.push(T.toString());return u}function X(c,u=0){if(!Array.isArray(c))return null;const T=[];for(const s of c){if(s instanceof j.Ref&&O.includes(s)){b.put(s),T.push(s.toString());continue}const o=R(s,u);o&&T.push(o)}if(u>0)return T;const r=[];for(const s of O)b.has(s)||r.push(s.toString());return r.length&&T.push({name:null,order:r}),T}function R(c,u){if(++u>E)return(0,P.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const T=q.fetchIfRef(c);if(!Array.isArray(T))return null;const r=q.fetchIfRef(T[0]);if(typeof r!="string")return null;const s=X(T.slice(1),u);return!s||!s.length?null:{name:(0,P.stringToPDFString)(r),order:s}}const q=this.xref,b=new j.RefSet,E=10;return{name:typeof y.get("Name")=="string"?(0,P.stringToPDFString)(y.get("Name")):null,creator:typeof y.get("Creator")=="string"?(0,P.stringToPDFString)(y.get("Creator")):null,baseState:y.get("BaseState")instanceof j.Name?y.get("BaseState").name:null,on:N(y.get("ON")),off:N(y.get("OFF")),order:X(y.get("Order")),groups:null}}setActualNumPages(y=null){this._actualNumPages=y}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const y=this.toplevelPagesDict.get("Count");if(!Number.isInteger(y))throw new P.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,P.shadow)(this,"_pagesCount",y)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const y=this._readDests(),O=Object.create(null);if(y instanceof e.NameTree)for(const[N,X]of y.getAll()){const R=g(X);R&&(O[(0,P.stringToPDFString)(N)]=R)}else y instanceof j.Dict&&y.forEach(function(N,X){const R=g(X);R&&(O[N]=R)});return(0,P.shadow)(this,"destinations",O)}getDestination(y){const O=this._readDests();if(O instanceof e.NameTree){const N=g(O.get(y));if(N)return N;const X=this.destinations[y];if(X)return(0,P.warn)(`Found "${y}" at an incorrect position in the NameTree.`),X}else if(O instanceof j.Dict){const N=g(O.get(y));if(N)return N}return null}_readDests(){const y=this._catDict.get("Names");if(y!=null&&y.has("Dests"))return new e.NameTree(y.getRaw("Dests"),this.xref);if(this._catDict.has("Dests"))return this._catDict.get("Dests")}get pageLabels(){let y=null;try{y=this._readPageLabels()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read page labels.")}return(0,P.shadow)(this,"pageLabels",y)}_readPageLabels(){const y=this._catDict.getRaw("PageLabels");if(!y)return null;const O=new Array(this.numPages);let N=null,X="";const q=new e.NumberTree(y,this.xref).getAll();let b="",E=1;for(let c=0,u=this.numPages;c<u;c++){const T=q.get(c);if(T!==void 0){if(!(T instanceof j.Dict))throw new P.FormatError("PageLabel is not a dictionary.");if(T.has("Type")&&!(0,j.isName)(T.get("Type"),"PageLabel"))throw new P.FormatError("Invalid type in PageLabel dictionary.");if(T.has("S")){const r=T.get("S");if(!(r instanceof j.Name))throw new P.FormatError("Invalid style in PageLabel dictionary.");N=r.name}else N=null;if(T.has("P")){const r=T.get("P");if(typeof r!="string")throw new P.FormatError("Invalid prefix in PageLabel dictionary.");X=(0,P.stringToPDFString)(r)}else X="";if(T.has("St")){const r=T.get("St");
26if(!(Number.isInteger(r)&&r>=1))throw new P.FormatError("Invalid start in PageLabel dictionary.");E=r}else E=1}switch(N){case"D":b=E;break;case"R":case"r":b=(0,n.toRomanNumerals)(E,N==="r");break;case"A":case"a":const r=26,m=N==="a"?97:65,h=E-1;b=String.fromCharCode(m+h%r).repeat(Math.floor(h/r)+1);break;default:if(N)throw new P.FormatError(`Invalid style "${N}" in PageLabel dictionary.`);b=""}O[c]=X+b,E++}return O}get pageLayout(){const y=this._catDict.get("PageLayout");let O="";if(y instanceof j.Name)switch(y.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":O=y.name}return(0,P.shadow)(this,"pageLayout",O)}get pageMode(){const y=this._catDict.get("PageMode");let O="UseNone";if(y instanceof j.Name)switch(y.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":O=y.name}return(0,P.shadow)(this,"pageMode",O)}get viewerPreferences(){const y=this._catDict.get("ViewerPreferences");if(!(y instanceof j.Dict))return(0,P.shadow)(this,"viewerPreferences",null);let O=null;for(const N of y.getKeys()){const X=y.get(N);let R;switch(N){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof X=="boolean"&&(R=X);break;case"NonFullScreenPageMode":if(X instanceof j.Name)switch(X.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":R=X.name;break;default:R="UseNone"}break;case"Direction":if(X instanceof j.Name)switch(X.name){case"L2R":case"R2L":R=X.name;break;default:R="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(X instanceof j.Name)switch(X.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":R=X.name;break;default:R="CropBox"}break;case"PrintScaling":if(X instanceof j.Name)switch(X.name){case"None":case"AppDefault":R=X.name;break;default:R="AppDefault"}break;case"Duplex":if(X instanceof j.Name)switch(X.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":R=X.name;break;default:R="None"}break;case"PrintPageRange":Array.isArray(X)&&X.length%2===0&&X.every((b,E,c)=>Number.isInteger(b)&&b>0&&(E===0||b>=c[E-1])&&b<=this.numPages)&&(R=X);break;case"NumCopies":Number.isInteger(X)&&X>0&&(R=X);break;default:(0,P.warn)(`Ignoring non-standard key in ViewerPreferences: ${N}.`);continue}if(R===void 0){(0,P.warn)(`Bad value, for key "${N}", in ViewerPreferences: ${X}.`);continue}O||(O=Object.create(null)),O[N]=R}return(0,P.shadow)(this,"viewerPreferences",O)}get openAction(){const y=this._catDict.get("OpenAction"),O=Object.create(null);if(y instanceof j.Dict){const N=new j.Dict(this.xref);N.set("A",y);const X={url:null,dest:null,action:null};a.parseDestDictionary({destDict:N,resultObj:X}),Array.isArray(X.dest)?O.dest=X.dest:X.action&&(O.action=X.action)}else Array.isArray(y)&&(O.dest=y);return(0,P.shadow)(this,"openAction",(0,P.objectSize)(O)>0?O:null)}get attachments(){const y=this._catDict.get("Names");let O=null;if(y instanceof j.Dict&&y.has("EmbeddedFiles")){const N=new e.NameTree(y.getRaw("EmbeddedFiles"),this.xref);for(const[X,R]of N.getAll()){const q=new J.FileSpec(R,this.xref);O||(O=Object.create(null)),O[(0,P.stringToPDFString)(X)]=q.serializable}}return(0,P.shadow)(this,"attachments",O)}get xfaImages(){const y=this._catDict.get("Names");let O=null;if(y instanceof j.Dict&&y.has("XFAImages")){const N=new e.NameTree(y.getRaw("XFAImages"),this.xref);for(const[X,R]of N.getAll())O||(O=new j.Dict(this.xref)),O.set((0,P.stringToPDFString)(X),R)}return(0,P.shadow)(this,"xfaImages",O)}_collectJavaScript(){const y=this._catDict.get("Names");let O=null;function N(R,q){if(!(q instanceof j.Dict)||!(0,j.isName)(q.get("S"),"JavaScript"))return;let b=q.get("JS");if(b instanceof t.BaseStream)b=b.getString();else if(typeof b!="string")return;b=(0,P.stringToPDFString)(b).replaceAll("\0",""),b&&(O||(O=new Map)).set(R,b)}if(y instanceof j.Dict&&y.has("JavaScript")){const R=new e.NameTree(y.getRaw("JavaScript"),this.xref);for(const[q,b]of R.getAll())N((0,P.stringToPDFString)(q),b)}const X=this._catDict.get("OpenAction");return X&&N("OpenAction",X),O}get jsActions(){const y=this._collectJavaScript();
26let O=(0,n.collectActions)(this.xref,this._catDict,P.DocumentActionEventType);if(y){O||(O=Object.create(null));for(const[N,X]of y)N in O?O[N].push(X):O[N]=[X]}return(0,P.shadow)(this,"jsActions",O)}async fontFallback(y,O){const N=await Promise.all(this.fontCache);for(const X of N)if(X.loadedName===y){X.fallback(O);return}}async cleanup(y=!1){(0,l.clearGlobalCaches)(),this.globalImageCache.clear(y),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const O=await Promise.all(this.fontCache);for(const{dict:N}of O)delete N.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(y){const O=[this.toplevelPagesDict],N=new j.RefSet,X=this._catDict.getRaw("Pages");X instanceof j.Ref&&N.put(X);const R=this.xref,q=this.pageKidsCountCache,b=this.pageIndexCache;let E=0;for(;O.length;){const c=O.pop();if(c instanceof j.Ref){const s=q.get(c);if(s>=0&&E+s<=y){E+=s;continue}if(N.has(c))throw new P.FormatError("Pages tree contains circular reference.");N.put(c);const o=await R.fetchAsync(c);if(o instanceof j.Dict){let m=o.getRaw("Type");if(m instanceof j.Ref&&(m=await R.fetchAsync(m)),(0,j.isName)(m,"Page")||!o.has("Kids")){if(q.has(c)||q.put(c,1),b.has(c)||b.put(c,E),E===y)return[o,c];E++;continue}}O.push(o);continue}if(!(c instanceof j.Dict))throw new P.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:u}=c;let T=c.getRaw("Count");if(T instanceof j.Ref&&(T=await R.fetchAsync(T)),Number.isInteger(T)&&T>=0&&(u&&!q.has(u)&&q.put(u,T),E+T<=y)){E+=T;continue}let r=c.getRaw("Kids");if(r instanceof j.Ref&&(r=await R.fetchAsync(r)),!Array.isArray(r)){let s=c.getRaw("Type");if(s instanceof j.Ref&&(s=await R.fetchAsync(s)),(0,j.isName)(s,"Page")||!c.has("Kids")){if(E===y)return[c,null];E++;continue}throw new P.FormatError("Page dictionary kids object is not an array.")}for(let s=r.length-1;s>=0;s--)O.push(r[s])}throw new Error(`Page index ${y} not found.`)}async getAllPageDicts(y=!1){const{ignoreErrors:O}=this.pdfManager.evaluatorOptions,N=[{currentNode:this.toplevelPagesDict,posInKids:0}],X=new j.RefSet,R=this._catDict.getRaw("Pages");R instanceof j.Ref&&X.put(R);const q=new Map,b=this.xref,E=this.pageIndexCache;let c=0;function u(r,s){s&&!E.has(s)&&E.put(s,c),q.set(c++,[r,s])}function T(r){if(r instanceof n.XRefEntryException&&!y)throw r;y&&O&&c===0&&((0,P.warn)(`getAllPageDicts - Skipping invalid first page: "${r}".`),r=j.Dict.empty),q.set(c++,[r,null])}for(;N.length>0;){const r=N.at(-1),{currentNode:s,posInKids:o}=r;let m=s.getRaw("Kids");if(m instanceof j.Ref)try{m=await b.fetchAsync(m)}catch(H){T(H);break}if(!Array.isArray(m)){T(new P.FormatError("Page dictionary kids object is not an array."));break}if(o>=m.length){N.pop();continue}const h=m[o];let A;if(h instanceof j.Ref){if(X.has(h)){T(new P.FormatError("Pages tree contains circular reference."));break}X.put(h);try{A=await b.fetchAsync(h)}catch(H){T(H);break}}else A=h;if(!(A instanceof j.Dict)){T(new P.FormatError("Page dictionary kid reference points to wrong type of object."));break}let L=A.getRaw("Type");if(L instanceof j.Ref)try{L=await b.fetchAsync(L)}catch(H){T(H);break}(0,j.isName)(L,"Page")||!A.has("Kids")?u(A,h instanceof j.Ref?h:null):N.push({currentNode:A,posInKids:0}),r.posInKids++}return q}getPageIndex(y){const O=this.pageIndexCache.get(y);if(O!==void 0)return Promise.resolve(O);const N=this.xref;function X(b){let E=0,c;return N.fetchAsync(b).then(function(u){if((0,j.isRefsEqual)(b,y)&&!(0,j.isDict)(u,"Page")&&!(u instanceof j.Dict&&!u.has("Type")&&u.has("Contents")))throw new P.FormatError("The reference does not point to a /Page dictionary.");if(!u)return null;if(!(u instanceof j.Dict))throw new P.FormatError("Node must be a dictionary.");return c=u.getRaw("Parent"),u.getAsync("Parent")}).then(function(u){if(!u)return null;if(!(u instanceof j.Dict))throw new P.FormatError("Parent must be a dictionary.");return u.getAsync("Kids")}).then(function(u){if(!u)return null;const T=[];let r=!1;for(const s of u){if(!(s instanceof j.Ref))throw new P.FormatError("Kid must be a reference.");if((0,j.isRefsEqual)(s,b)){r=!0;break}
26T.push(N.fetchAsync(s).then(function(o){if(!(o instanceof j.Dict))throw new P.FormatError("Kid node must be a dictionary.");o.has("Count")?E+=o.get("Count"):E++}))}if(!r)throw new P.FormatError("Kid reference not found in parent's kids.");return Promise.all(T).then(function(){return[E,c]})})}let R=0;const q=b=>X(b).then(E=>{if(!E)return this.pageIndexCache.put(y,R),R;const[c,u]=E;return R+=c,q(u)});return q(y)}get baseUrl(){const y=this._catDict.get("URI");if(y instanceof j.Dict){const O=y.get("Base");if(typeof O=="string"){const N=(0,P.createValidAbsoluteUrl)(O,null,{tryConvertEncoding:!0});if(N)return(0,P.shadow)(this,"baseUrl",N.href)}}return(0,P.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:y,resultObj:O,docBaseUrl:N=null,docAttachments:X=null}){if(!(y instanceof j.Dict)){(0,P.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}let R=y.get("A"),q,b;if(R instanceof j.Dict||(y.has("Dest")?R=y.get("Dest"):(R=y.get("AA"),R instanceof j.Dict&&(R.has("D")?R=R.get("D"):R.has("U")&&(R=R.get("U"))))),R instanceof j.Dict){const E=R.get("S");if(!(E instanceof j.Name)){(0,P.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const c=E.name;switch(c){case"ResetForm":const u=R.get("Flags"),T=((typeof u=="number"?u:0)&1)===0,r=[],s=[];for(const Z of R.get("Fields")||[])Z instanceof j.Ref?s.push(Z.toString()):typeof Z=="string"&&r.push((0,P.stringToPDFString)(Z));O.resetForm={fields:r,refs:s,include:T};break;case"URI":q=R.get("URI"),q instanceof j.Name&&(q="/"+q.name);break;case"GoTo":b=R.get("D");break;case"Launch":case"GoToR":const o=R.get("F");o instanceof j.Dict?q=o.get("F")||null:typeof o=="string"&&(q=o);let m=R.get("D");if(m&&(m instanceof j.Name&&(m=m.name),typeof q=="string")){const Z=q.split("#")[0];typeof m=="string"?q=Z+"#"+m:Array.isArray(m)&&(q=Z+"#"+JSON.stringify(m))}const h=R.get("NewWindow");typeof h=="boolean"&&(O.newWindow=h);break;case"GoToE":const A=R.get("T");let L;if(X&&A instanceof j.Dict){const Z=A.get("R"),ae=A.get("N");(0,j.isName)(Z,"C")&&typeof ae=="string"&&(L=X[(0,P.stringToPDFString)(ae)])}L?O.attachment=L:(0,P.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const H=R.get("N");H instanceof j.Name&&(O.action=H.name);break;case"SetOCGState":const F=R.get("State"),M=R.get("PreserveRB");if(!Array.isArray(F)||F.length===0)break;const k=[];for(const Z of F)if(Z instanceof j.Name)switch(Z.name){case"ON":case"OFF":case"Toggle":k.push(Z.name);break}else Z instanceof j.Ref&&k.push(Z.toString());if(k.length!==F.length)break;O.setOCGState={state:k,preserveRB:typeof M=="boolean"?M:!0};break;case"JavaScript":const x=R.get("JS");let C;x instanceof t.BaseStream?C=x.getString():typeof x=="string"&&(C=x);const G=C&&(0,n.recoverJsURL)((0,P.stringToPDFString)(C));if(G){q=G.url,O.newWindow=G.newWindow;break}default:if(c==="JavaScript"||c==="SubmitForm")break;(0,P.warn)(`parseDestDictionary - unsupported action: "${c}".`);break}}else y.has("Dest")&&(b=y.get("Dest"));if(typeof q=="string"){const E=(0,P.createValidAbsoluteUrl)(q,N,{addDefaultProtocol:!0,tryConvertEncoding:!0});E&&(O.url=E.href),O.unsafeUrl=q}b&&(b instanceof j.Name&&(b=b.name),typeof b=="string"?O.dest=(0,P.stringToPDFString)(b):Array.isArray(b)&&(O.dest=b))}}p.Catalog=a},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.NumberTree=p.NameTree=void 0;var n=re(4),P=re(2);class j{constructor(V,J,B){this.constructor===j&&(0,P.unreachable)("Cannot initialize NameOrNumberTree."),this.root=V,this.xref=J,this._type=B}getAll(){const V=new Map;if(!this.root)return V;const J=this.xref,B=new n.RefSet;B.put(this.root);const I=[this.root];for(;I.length>0;){const f=J.fetchIfRef(I.shift());if(!(f instanceof n.Dict))continue;if(f.has("Kids")){const a=f.get("Kids");if(!Array.isArray(a))continue;for(const _ of a){if(B.has(_))throw new P.FormatError(`Duplicate entry in "${this._type}" tree.`);I.push(_),B.put(_)}continue}const g=f.get(this._type);if(Array.isArray(g))for(let a=0,_=g.length;a<_;a+=2)V.set(J.fetchIfRef(g[a]),J.fetchIfRef(g[a+1]))}return V}get(V){if(!this.root)return null;const J=this.xref;let B=J.fetchIfRef(this.root),I=0;const f=10;for(;B.has("Kids");){if(++I>f)return(0,P.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const a=B.get("Kids");if(!Array.isArray(a))return null;let _=0,y=a.length-1;for(;_<=y;){const O=_+y>>1,N=J.fetchIfRef(a[O]),X=N.get("Limits");if(V<J.fetchIfRef(X[0]))y=O-1;else if(V>J.fetchIfRef(X[1]))_=O+1;else{B=N;break}}if(_>y)return null}const g=B.get(this._type);if(Array.isArray(g)){let a=0,_=g.length-2;for(;a<=_;){const y=a+_>>1,O=y+(y&1),N=J.fetchIfRef(g[O]);if(V<N)_=O-2;else if(V>N)a=O+2;else return J.fetchIfRef(g[O+1])}}return null}}class e extends j{constructor(V,J){super(V,J,"Names")}}p.NameTree=e;class t extends j{constructor(V,J){super(V,J,"Nums")}}p.NumberTree=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.clearGlobalCaches=e;var n=re(50),P=re(4),j=re(40);function e(){(0,n.clearPatternCaches)(),(0,P.clearPrimitiveCaches)(),(0,j.clearUnicodeCaches)()}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.FileSpec=void 0;var n=re(2),P=re(5),j=re(4);function e(l){return l.has("UF")?l.get("UF"):l.has("F")?l.get("F"):l.has("Unix")?l.get("Unix"):l.has("Mac")?l.get("Mac"):l.has("DOS")?l.get("DOS"):null}class t{constructor(V,J){V instanceof j.Dict&&(this.xref=J,this.root=V,V.has("FS")&&(this.fs=V.get("FS")),this.description=V.has("Desc")?(0,n.stringToPDFString)(V.get("Desc")):"",V.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,V.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const V=e(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(V).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=e(this.root.get("EF")));let V=null;if(this.contentRef){const J=this.xref.fetchIfRef(this.contentRef);J instanceof P.BaseStream?V=J.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return V}get serializable(){return{filename:this.filename,content:this.content}}}p.FileSpec=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.MetadataParser=void 0;var n=re(71);class P{constructor(e){e=this._repair(e);const l=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,l&&this._parse(l)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(t,l){const V=l.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(B,I,f,g){return String.fromCharCode(I*64+f*8+g*1)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(B,I){switch(I){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${I} isn't defined.`)}),J=[">"];for(let B=0,I=V.length;B<I;B+=2){const f=V.charCodeAt(B)*256+V.charCodeAt(B+1);f>=32&&f<127&&f!==60&&f!==62&&f!==38?J.push(String.fromCharCode(f)):J.push("&#x"+(65536+f).toString(16).substring(1)+";")}
26return J.join("")})}_getSequence(e){const t=e.nodeName;return t!=="rdf:bag"&&t!=="rdf:seq"&&t!=="rdf:alt"?null:e.childNodes.filter(l=>l.nodeName==="rdf:li")}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,l=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,l.map(V=>V.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(const l of t.childNodes)if(l.nodeName==="rdf:description")for(const V of l.childNodes){const J=V.nodeName;switch(J){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(V);continue}this._metadataMap.set(J,V.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}p.MetadataParser=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XMLParserErrorCode=p.XMLParserBase=p.SimpleXMLParser=p.SimpleDOMNode=void 0;var n=re(3);const P={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};p.XMLParserErrorCode=P;function j(J,B){const I=J[B];return I===" "||I===` 27`||I==="\r"||I===" "}function e(J){for(let B=0,I=J.length;B<I;B++)if(!j(J,B))return!1;return!0}class t{_resolveEntities(B){return B.replaceAll(/&([^;]+);/g,(I,f)=>{if(f.substring(0,2)==="#x")return String.fromCodePoint(parseInt(f.substring(2),16));if(f.substring(0,1)==="#")return String.fromCodePoint(parseInt(f.substring(1),10));switch(f){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(f)})}_parseContent(B,I){const f=[];let g=I;function a(){for(;g<B.length&&j(B,g);)++g}for(;g<B.length&&!j(B,g)&&B[g]!==">"&&B[g]!=="/";)++g;const _=B.substring(I,g);for(a();g<B.length&&B[g]!==">"&&B[g]!=="/"&&B[g]!=="?";){a();let y="",O="";for(;g<B.length&&!j(B,g)&&B[g]!=="=";)y+=B[g],++g;if(a(),B[g]!=="=")return null;++g,a();const N=B[g];if(N!=='"'&&N!=="'")return null;const X=B.indexOf(N,++g);if(X<0)return null;O=B.substring(g,X),f.push({name:y,value:this._resolveEntities(O)}),g=X+1,a()}return{name:_,attributes:f,parsed:g-I}}_parseProcessingInstruction(B,I){let f=I;function g(){for(;f<B.length&&j(B,f);)++f}for(;f<B.length&&!j(B,f)&&B[f]!==">"&&B[f]!=="?"&&B[f]!=="/";)++f;const a=B.substring(I,f);g();const _=f;for(;f<B.length&&(B[f]!=="?"||B[f+1]!==">");)++f;const y=B.substring(_,f);return{name:a,value:y,parsed:f-I}}parseXml(B){let I=0;for(;I<B.length;){const f=B[I];let g=I;if(f==="<"){++g;const a=B[g];let _;switch(a){case"/":if(++g,_=B.indexOf(">",g),_<0){this.onError(P.UnterminatedElement);return}this.onEndElement(B.substring(g,_)),g=_+1;break;case"?":++g;const y=this._parseProcessingInstruction(B,g);if(B.substring(g+y.parsed,g+y.parsed+2)!=="?>"){this.onError(P.UnterminatedXmlDeclaration);return}this.onPi(y.name,y.value),g+=y.parsed+2;break;case"!":if(B.substring(g+1,g+3)==="--"){if(_=B.indexOf("-->",g+3),_<0){this.onError(P.UnterminatedComment);return}this.onComment(B.substring(g+3,_)),g=_+3}else if(B.substring(g+1,g+8)==="[CDATA["){if(_=B.indexOf("]]>",g+8),_<0){this.onError(P.UnterminatedCdat);return}this.onCdata(B.substring(g+8,_)),g=_+3}else if(B.substring(g+1,g+8)==="DOCTYPE"){const X=B.indexOf("[",g+8);let R=!1;if(_=B.indexOf(">",g+8),_<0){this.onError(P.UnterminatedDoctypeDeclaration);return}if(X>0&&_>X){if(_=B.indexOf("]>",g+8),_<0){this.onError(P.UnterminatedDoctypeDeclaration);return}R=!0}const q=B.substring(g+8,_+(R?1:0));this.onDoctype(q),g=_+(R?2:1)}else{this.onError(P.MalformedElement);return}break;default:const O=this._parseContent(B,g);if(O===null){this.onError(P.MalformedElement);return}let N=!1;if(B.substring(g+O.parsed,g+O.parsed+2)==="/>")N=!0;else if(B.substring(g+O.parsed,g+O.parsed+1)!==">"){this.onError(P.UnterminatedElement);return}this.onBeginElement(O.name,O.attributes,N),g+=O.parsed+(N?2:1);break}}else{for(;g<B.length&&B[g]!=="<";)g++;const a=B.substring(I,g);this.onText(this._resolveEntities(a))}I=g}}onResolveEntity(B){return`&${B};`}onPi(B,I){}onComment(B){}onCdata(B){}onDoctype(B){}onText(B){}
27onBeginElement(B,I,f){}onEndElement(B){}onError(B){}}p.XMLParserBase=t;class l{constructor(B,I){this.nodeName=B,this.nodeValue=I,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){var B;return(B=this.childNodes)==null?void 0:B[0]}get nextSibling(){const B=this.parentNode.childNodes;if(!B)return;const I=B.indexOf(this);if(I!==-1)return B[I+1]}get textContent(){return this.childNodes?this.childNodes.map(function(B){return B.textContent}).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){var B;return((B=this.childNodes)==null?void 0:B.length)>0}searchNode(B,I){var _;if(I>=B.length)return this;const f=B[I];if(f.name.startsWith("#")&&I<B.length-1)return this.searchNode(B,I+1);const g=[];let a=this;for(;;){if(f.name===a.nodeName)if(f.pos===0){const y=a.searchNode(B,I+1);if(y!==null)return y}else{if(g.length===0)return null;{const[y]=g.pop();let O=0;for(const N of y.childNodes)if(f.name===N.nodeName){if(O===f.pos)return N.searchNode(B,I+1);O++}return a.searchNode(B,I+1)}}if(((_=a.childNodes)==null?void 0:_.length)>0)g.push([a,0]),a=a.childNodes[0];else{if(g.length===0)return null;for(;g.length!==0;){const[y,O]=g.pop(),N=O+1;if(N<y.childNodes.length){g.push([y,N]),a=y.childNodes[N];break}}if(g.length===0)return null}}}dump(B){if(this.nodeName==="#text"){B.push((0,n.encodeToXmlString)(this.nodeValue));return}if(B.push(`<${this.nodeName}`),this.attributes)for(const I of this.attributes)B.push(` ${I.name}="${(0,n.encodeToXmlString)(I.value)}"`);if(this.hasChildNodes()){B.push(">");for(const I of this.childNodes)I.dump(B);B.push(`</${this.nodeName}>`)}else this.nodeValue?B.push(`>${(0,n.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):B.push("/>")}}p.SimpleDOMNode=l;class V extends t{constructor({hasAttributes:B=!1,lowerCaseName:I=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=P.NoError,this._hasAttributes=B,this._lowerCaseName=I}parseFromString(B){if(this._currentFragment=[],this._stack=[],this._errorCode=P.NoError,this.parseXml(B),this._errorCode!==P.NoError)return;const[I]=this._currentFragment;if(I)return{documentElement:I}}onText(B){if(e(B))return;const I=new l("#text",B);this._currentFragment.push(I)}onCdata(B){const I=new l("#text",B);this._currentFragment.push(I)}onBeginElement(B,I,f){this._lowerCaseName&&(B=B.toLowerCase());const g=new l(B);g.childNodes=[],this._hasAttributes&&(g.attributes=I),this._currentFragment.push(g),!f&&(this._stack.push(this._currentFragment),this._currentFragment=g.childNodes)}onEndElement(B){this._currentFragment=this._stack.pop()||[];const I=this._currentFragment.at(-1);if(!I)return null;for(const f of I.childNodes)f.parentNode=I;return I}onError(B){this._errorCode=B}}p.SimpleXMLParser=V},(Re,p,re)=>{var f,ea,a,Hn,ta,na;Object.defineProperty(p,"__esModule",{value:!0}),p.StructTreeRoot=p.StructTreePage=void 0;var n=re(2),P=re(4),j=re(67),e=re(73);const t=40,l={PAGE_CONTENT:1,STREAM_CONTENT:2,OBJECT:3,ANNOTATION:4,ELEMENT:5},N=class N{constructor(R,q){Lt(this,f);this.dict=R,this.ref=q instanceof P.Ref?q:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}addAnnotationIdToPage(R,q){it(this,f,ea).call(this,R,q,l.ANNOTATION)}readRoleMap(){const R=this.dict.get("RoleMap");R instanceof P.Dict&&R.forEach((q,b)=>{b instanceof P.Name&&this.roleMap.set(q,b.name)})}static async canCreateStructureTree({catalogRef:R,pdfManager:q,newAnnotationsByPage:b}){var u;if(!(R instanceof P.Ref))return(0,n.warn)("Cannot save the struct tree: no catalog reference."),!1;let E=0,c=!0;for(const[T,r]of b){const{ref:s}=await q.getPage(T);if(!(s instanceof P.Ref)){(0,n.warn)(`Cannot save the struct tree: page ${T} has no ref.`),c=!0;break}for(const o of r)(u=o.accessibilityData)!=null&&u.type&&(o.parentTreeId=E++,c=!1)}if(c){for(const T of b.values())for(const r of T)delete r.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:R,xref:q,catalogRef:b,pdfManager:E,newRefs:c}){const u=E.catalog.cloneDict(),T=q.getNewTemporaryRef();u.set("StructTreeRoot",T);const r=[];await(0,e.writeObject)(b,u,r,q),c.push({ref:b,data:r.join("")});const s=new P.Dict(q);s.set("Type",P.Name.get("StructTreeRoot"));const o=q.getNewTemporaryRef();s.set("ParentTree",o);const m=[];s.set("K",m);const h=new P.Dict(q),A=[];h.set("Nums",A);const L=await it(this,a,Hn).call(this,{newAnnotationsByPage:R,structTreeRootRef:T,kids:m,nums:A,xref:q,pdfManager:E,newRefs:c,buffer:r});s.set("ParentTreeNextKey",L),r.length=0,await(0,e.writeObject)(o,h,r,q),c.push({ref:o,data:r.join("")}),r.length=0,await(0,e.writeObject)(T,s,r,q),c.push({ref:T,data:r.join("")})}async canUpdateStructTree({pdfManager:R,newAnnotationsByPage:q}){var r,s;
27if(!this.ref)return(0,n.warn)("Cannot update the struct tree: no root reference."),!1;let b=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(b)||b<0)return(0,n.warn)("Cannot update the struct tree: invalid next key."),!1;const E=this.dict.get("ParentTree");if(!(E instanceof P.Dict))return(0,n.warn)("Cannot update the struct tree: ParentTree isn't a dict."),!1;const c=E.get("Nums");if(!Array.isArray(c))return(0,n.warn)("Cannot update the struct tree: nums isn't an array."),!1;const{numPages:u}=R.catalog;for(const o of q.keys()){const{pageDict:m,ref:h}=await R.getPage(o);if(!(h instanceof P.Ref))return(0,n.warn)(`Cannot save the struct tree: page ${o} has no ref.`),!1;const A=m.get("StructParents");if(!Number.isInteger(A)||A<0||A>=u)return(0,n.warn)(`Cannot save the struct tree: page ${o} has no id.`),!1}let T=!0;for(const[o,m]of q){const{pageDict:h}=await R.getPage(o);it(r=N,a,ta).call(r,{elements:m,xref:this.dict.xref,pageDict:h,parentTree:E});for(const A of m)(s=A.accessibilityData)!=null&&s.type&&(A.parentTreeId=b++,T=!1)}if(T){for(const o of q.values())for(const m of o)delete m.parentTreeId,delete m.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:R,pdfManager:q,newRefs:b}){var H;const E=this.dict.xref,c=this.dict.clone(),u=this.ref;let T=c.getRaw("ParentTree"),r;T instanceof P.Ref?r=E.fetch(T):(r=T,T=E.getNewTemporaryRef(),c.set("ParentTree",T)),r=r.clone();let s=r.getRaw("Nums"),o=null;s instanceof P.Ref&&(o=s,s=E.fetch(o)),s=s.slice(),o||r.set("Nums",s);let m=c.getRaw("K"),h=null;m instanceof P.Ref?(h=m,m=E.fetch(h)):(h=E.getNewTemporaryRef(),c.set("K",h)),m=Array.isArray(m)?m.slice():[m];const A=[],L=await it(H=N,a,Hn).call(H,{newAnnotationsByPage:R,structTreeRootRef:u,kids:m,nums:s,xref:E,pdfManager:q,newRefs:b,buffer:A});c.set("ParentTreeNextKey",L),A.length=0,await(0,e.writeObject)(h,m,A,E),b.push({ref:h,data:A.join("")}),o&&(A.length=0,await(0,e.writeObject)(o,s,A,E),b.push({ref:o,data:A.join("")})),A.length=0,await(0,e.writeObject)(T,r,A,E),b.push({ref:T,data:A.join("")}),A.length=0,await(0,e.writeObject)(u,c,A,E),b.push({ref:u,data:A.join("")})}};f=new WeakSet,ea=function(R,q,b){if(!(R instanceof P.Ref)||q<0)return;this.structParentIds||(this.structParentIds=new P.RefSetCache);let E=this.structParentIds.get(R);E||(E=[],this.structParentIds.put(R,E)),E.push([q,b])},a=new WeakSet,Hn=async function({newAnnotationsByPage:R,structTreeRootRef:q,kids:b,nums:E,xref:c,pdfManager:u,newRefs:T,buffer:r}){const s=P.Name.get("OBJR");let o=-1/0;for(const[m,h]of R){const{ref:A}=await u.getPage(m);for(const{accessibilityData:{type:L,title:H,lang:F,alt:M,expanded:k,actualText:x},ref:C,parentTreeId:G,structTreeParent:Z}of h){o=Math.max(o,G);const ae=c.getNewTemporaryRef(),oe=new P.Dict(c);oe.set("S",P.Name.get(L)),H&&oe.set("T",H),F&&oe.set("Lang",F),M&&oe.set("Alt",M),k&&oe.set("E",k),x&&oe.set("ActualText",x),Z?await it(this,a,na).call(this,{structTreeParent:Z,tagDict:oe,newTagRef:ae,fallbackRef:q,xref:c,newRefs:T,buffer:r}):oe.set("P",q);const te=new P.Dict(c);oe.set("K",te),te.set("Type",s),te.set("Pg",A),te.set("Obj",C),r.length=0,await(0,e.writeObject)(ae,oe,r,c),T.push({ref:ae,data:r.join("")}),E.push(G,ae),b.push(ae)}}return o+1},ta=function({elements:R,xref:q,pageDict:b,parentTree:E}){const c=new Map;for(const o of R)if(o.structTreeParentId){const m=parseInt(o.structTreeParentId.split("_mc")[1],10);c.set(m,o)}const u=b.get("StructParents"),r=new j.NumberTree(E,q).get(u);if(!Array.isArray(r))return;const s=(o,m,h)=>{const A=c.get(o);if(A){const L=m.getRaw("P"),H=q.fetchIfRef(L);return L instanceof P.Ref&&H instanceof P.Dict&&(A.structTreeParent={ref:h,dict:m}),!0}return!1};for(const o of r){if(!(o instanceof P.Ref))continue;const m=q.fetch(o),h=m.get("K");if(Number.isInteger(h)){s(h,m,o);continue}if(Array.isArray(h)){for(let A of h)if(A=q.fetchIfRef(A),Number.isInteger(A)&&s(A,m,o))break}}},na=async function({structTreeParent:{ref:R,dict:q},tagDict:b,newTagRef:E,fallbackRef:c,xref:u,newRefs:T,buffer:r}){const s=q.getRaw("P");let o=u.fetchIfRef(s);b.set("P",s);let m=!1,h,A=o.getRaw("K");if(A instanceof P.Ref?h=u.fetch(A):(h=A,A=u.getNewTemporaryRef(),o=o.clone(),o.set("K",A),m=!0),Array.isArray(h)){const L=h.indexOf(R);if(L>=0)h=h.slice(),h.splice(L+1,0,E);else{(0,n.warn)("Cannot update the struct tree: parent kid not found."),b.set("P",c);return}}else h instanceof P.Dict&&(h=[A,E],A=u.getNewTemporaryRef(),o.set("K",A),m=!0);r.length=0,await(0,e.writeObject)(A,h,r,u),T.push({ref:A,data:r.join("")}),m&&(r.length=0,await(0,e.writeObject)(s,o,r,u),T.push({ref:s,data:r.join("")}))},Lt(N,a);let V=N;p.StructTreeRoot=V;class J{constructor(R,q){this.tree=R,this.dict=q,this.kids=[],this.parseKids()}get role(){const R=this.dict.get("S"),q=R instanceof P.Name?R.name:"",{root:b}=this.tree;return b.roleMap.has(q)?b.roleMap.get(q):q}parseKids(){let R=null;const q=this.dict.getRaw("Pg");q instanceof P.Ref&&(R=q.toString());const b=this.dict.get("K");if(Array.isArray(b))for(const E of b){const c=this.parseKid(R,E);c&&this.kids.push(c)}else{const E=this.parseKid(R,b);E&&this.kids.push(E)}}parseKid(R,q){if(Number.isInteger(q))return this.tree.pageDict.objId!==R?null:new B({type:l.PAGE_CONTENT,mcid:q,pageObjId:R});let b=null;if(q instanceof P.Ref?b=this.dict.xref.fetch(q):q instanceof P.Dict&&(b=q),!b)return null;const E=b.getRaw("Pg");E instanceof P.Ref&&(R=E.toString());const c=b.get("Type")instanceof P.Name?b.get("Type").name:null;if(c==="MCR"){if(this.tree.pageDict.objId!==R)return null;const u=b.getRaw("Stm");return new B({type:l.STREAM_CONTENT,refObjId:u instanceof P.Ref?u.toString():null,pageObjId:R,mcid:b.get("MCID")})}if(c==="OBJR"){if(this.tree.pageDict.objId!==R)return null;const u=b.getRaw("Obj");return new B({type:l.OBJECT,refObjId:u instanceof P.Ref?u.toString():null,pageObjId:R})}return new B({type:l.ELEMENT,dict:b})}}class B{constructor({type:R,dict:q=null,mcid:b=null,pageObjId:E=null,refObjId:c=null}){this.type=R,this.dict=q,this.mcid=b,this.pageObjId=E,this.refObjId=c,this.parentNode=null}}class I{constructor(R,q){this.root=R,this.rootDict=R?R.dict:null,this.pageDict=q,this.nodes=[]}parse(R){var T,r;if(!this.root||!this.rootDict)return;const q=this.rootDict.get("ParentTree");if(!q)return;const b=this.pageDict.get("StructParents"),E=R instanceof P.Ref&&((T=this.root.structParentIds)==null?void 0:T.get(R));if(!Number.isInteger(b)&&!E)return;const c=new Map,u=new j.NumberTree(q,this.rootDict.xref);if(Number.isInteger(b)){const s=u.get(b);if(Array.isArray(s))for(const o of s)o instanceof P.Ref&&this.addNode(this.rootDict.xref.fetch(o),c)}if(E)for(const[s,o]of E){const m=u.get(s);if(m){const h=this.addNode(this.rootDict.xref.fetchIfRef(m),c);((r=h==null?void 0:h.kids)==null?void 0:r.length)===1&&h.kids[0].type===l.OBJECT&&(h.kids[0].type=o)}}}addNode(R,q,b=0){if(b>t)return(0,n.warn)("StructTree MAX_DEPTH reached."),null;if(q.has(R))return q.get(R);const E=new J(this,R);q.set(R,E);const c=R.get("P");if(!c||(0,P.isName)(c.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(R,E)||q.delete(R),E;const u=this.addNode(c,q,b+1);if(!u)return E;let T=!1;for(const r of u.kids)r.type===l.ELEMENT&&r.dict===R&&(r.parentNode=E,T=!0);return T||q.delete(R),E}addTopLevelNode(R,q){const b=this.rootDict.get("K");if(!b)return!1;if(b instanceof P.Dict)return b.objId!==R.objId?!1:(this.nodes[0]=q,!0);if(!Array.isArray(b))return!0;let E=!1;for(let c=0;c<b.length;c++){const u=b[c];(u==null?void 0:u.toString())===R.objId&&(this.nodes[c]=q,E=!0)}return E}get serializable(){function R(b,E,c=0){if(c>t){(0,n.warn)("StructTree too deep to be fully serialized.");return}const u=Object.create(null);u.role=b.role,u.children=[],E.children.push(u);const T=b.dict.get("Alt");typeof T=="string"&&(u.alt=(0,n.stringToPDFString)(T));const r=b.dict.get("Lang");typeof r=="string"&&(u.lang=(0,n.stringToPDFString)(r));for(const s of b.kids){const o=s.type===l.ELEMENT?s.parentNode:null;if(o){R(o,u,c+1);continue}else s.type===l.PAGE_CONTENT||s.type===l.STREAM_CONTENT?u.children.push({type:"content",id:`p${s.pageObjId}_mc${s.mcid}`}):s.type===l.OBJECT?u.children.push({type:"object",id:s.refObjId}):s.type===l.ANNOTATION&&u.children.push({type:"annotation",id:`${n.AnnotationPrefix}${s.refObjId}`})}}const q=Object.create(null);q.children=[],q.role="Root";for(const b of this.nodes)b&&R(b,q);return q}}p.StructTreePage=I},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.incrementalUpdate=X,p.writeDict=J,p.writeObject=V;var n=re(2),P=re(4),j=re(3),e=re(71),t=re(5),l=re(74);async function V(R,q,b,{encrypt:E=null}
27){const c=E==null?void 0:E.createCipherTransform(R.num,R.gen);b.push(`${R.num} ${R.gen} obj 28`),q instanceof P.Dict?await J(q,b,c):q instanceof t.BaseStream?await B(q,b,c):Array.isArray(q)&&await I(q,b,c),b.push(` 29endobj 30`)}async function J(R,q,b){q.push("<<");for(const E of R.getKeys())q.push(` /${(0,j.escapePDFName)(E)} `),await f(R.getRaw(E),q,b);q.push(">>")}async function B(R,q,b){let E=R.getString();const{dict:c}=R,[u,T]=await Promise.all([c.getAsync("Filter"),c.getAsync("DecodeParms")]),r=Array.isArray(u)?await c.xref.fetchIfRefAsync(u[0]):u,s=(0,P.isName)(r,"FlateDecode");if(typeof CompressionStream<"u"&&(E.length>=256||s))try{const m=(0,n.stringToBytes)(E),h=new CompressionStream("deflate"),A=h.writable.getWriter();A.write(m),A.close();const L=await new Response(h.readable).arrayBuffer();E=(0,n.bytesToString)(new Uint8Array(L));let H,F;u?s||(H=Array.isArray(u)?[P.Name.get("FlateDecode"),...u]:[P.Name.get("FlateDecode"),u],T&&(F=Array.isArray(T)?[null,...T]:[null,T])):H=P.Name.get("FlateDecode"),H&&c.set("Filter",H),F&&c.set("DecodeParms",F)}catch(m){(0,n.info)(`writeStream - cannot compress data: "${m}".`)}b&&(E=b.encryptString(E)),c.set("Length",E.length),await J(c,q,b),q.push(` stream 31`,E,` 32endstream`)}async function I(R,q,b){q.push("[");let E=!0;for(const c of R)E?E=!1:q.push(" "),await f(c,q,b);q.push("]")}async function f(R,q,b){R instanceof P.Name?q.push(`/${(0,j.escapePDFName)(R.name)}`):R instanceof P.Ref?q.push(`${R.num} ${R.gen} R`):Array.isArray(R)?await I(R,q,b):typeof R=="string"?(b&&(R=b.encryptString(R)),q.push(`(${(0,j.escapeString)(R)})`)):typeof R=="number"?q.push((0,j.numberToString)(R)):typeof R=="boolean"?q.push(R.toString()):R instanceof P.Dict?await J(R,q,b):R instanceof t.BaseStream?await B(R,q,b):R===null?q.push("null"):(0,n.warn)(`Unhandled value in writer: ${typeof R}, please file a bug.`)}function g(R,q,b,E){for(let c=q+b-1;c>b-1;c--)E[c]=R&255,R>>=8;return b+q}function a(R,q,b){for(let E=0,c=R.length;E<c;E++)b[q+E]=R.charCodeAt(E)&255}function _(R,q){const b=Math.floor(Date.now()/1e3),E=q.filename||"",c=[b.toString(),E,R.toString()];let u=c.reduce((s,o)=>s+o.length,0);for(const s of Object.values(q.info))c.push(s),u+=s.length;const T=new Uint8Array(u);let r=0;for(const s of c)a(s,r,T),r+=s.length;return(0,n.bytesToString)((0,l.calculateMD5)(T))}function y(R,q){const b=new e.SimpleXMLParser({hasAttributes:!0}).parseFromString(R);for(const{xfa:c}of q){if(!c)continue;const{path:u,value:T}=c;if(!u)continue;const r=(0,j.parseXFAPath)(u);let s=b.documentElement.searchNode(r,0);!s&&r.length>1&&(s=b.documentElement.searchNode([r.at(-1)],0)),s?s.childNodes=Array.isArray(T)?T.map(o=>new e.SimpleDOMNode("value",o)):[new e.SimpleDOMNode("#text",T)]:(0,n.warn)(`Node not found for path: ${u}`)}const E=[];return b.documentElement.dump(E),E.join("")}async function O({xref:R,acroForm:q,acroFormRef:b,hasXfa:E,hasXfaDatasetsEntry:c,xfaDatasetsRef:u,needAppearances:T,newRefs:r}){if(E&&!c&&!u&&(0,n.warn)("XFA - Cannot save it"),!T&&(!E||!u||c))return;const s=q.clone();if(E&&!c){const m=q.get("XFA").slice();m.splice(2,0,"datasets"),m.splice(3,0,u),s.set("XFA",m)}T&&s.set("NeedAppearances",!0);const o=[];await V(b,s,o,R),r.push({ref:b,data:o.join("")})}function N({xfaData:R,xfaDatasetsRef:q,newRefs:b,xref:E}){if(R===null){const T=E.fetchIfRef(q);R=y(T.getString(),b)}const c=E.encrypt;c&&(R=c.createCipherTransform(q.num,q.gen).encryptString(R));const u=`${q.num} ${q.gen} obj 33<< /Type /EmbeddedFile /Length ${R.length}>> 34stream 35`+R+` 36endstream 37endobj 38`;b.push({ref:q,data:u})}async function X({originalData:R,xrefInfo:q,newRefs:b,xref:E=null,hasXfa:c=!1,xfaDatasetsRef:u=null,hasXfaDatasetsEntry:T=!1,needAppearances:r,acroFormRef:s=null,acroForm:o=null,xfaData:m=null}){await O({xref:E,acroForm:o,acroFormRef:s,hasXfa:c,hasXfaDatasetsEntry:T,xfaDatasetsRef:u,needAppearances:r,newRefs:b}),c&&N({xfaData:m,xfaDatasetsRef:u,newRefs:b,xref:E});const h=new P.Dict(null),A=q.newRef;let L,H;const F=R.at(-1);F===10||F===13?(L=[],H=R.length):(L=[` 39`],H=R.length+1),h.set("Size",A.num+1),h.set("Prev",q.startXRef),h.set("Type",P.Name.get("XRef")),q.rootRef!==null&&h.set("Root",q.rootRef),q.infoRef!==null&&h.set("Info",q.infoRef),q.encryptRef!==null&&h.set("Encrypt",q.encryptRef),b.push({ref:A,data:""}),b=b.sort(($,d)=>$.ref.num-d.ref.num);const M=[[0,1,65535]],k=[0,1];let x=0;for(const{ref:$,data:d}of b)x=Math.max(x,H),M.push([1,H,Math.min($.gen,65535)]),H+=d.length,k.push($.num,1),L.push(d);if(h.set("Index",k),Array.isArray(q.fileIds)&&q.fileIds.length>0){const $=_(H,q);h.set("ID",[q.fileIds[0],$])}const G=[1,Math.ceil(Math.log2(x)/8),2],ae=(G[0]+G[1]+G[2])*M.length;h.set("W",G),h.set("Length",ae),L.push(`${A.num} ${A.gen} obj 40`),await J(h,L,null),L.push(` stream 41`);const oe=L.reduce(($,d)=>$+d.length,0),te=` 42endstream 43endobj 44startxref 45${H} 46%%EOF 47`,K=new Uint8Array(R.length+oe+ae+te.length);K.set(R);let v=R.length;for(const $ of L)a($,v,K),v+=$.length;for(const[$,d,w]of M)v=g($,G[0],v,K),v=g(d,G[1],v,K),v=g(w,G[2],v,K);return a(te,v,K),K}},(Re,p,re)=>{var X,R,aa,zn,ia,yn,Gn;Object.defineProperty(p,"__esModule",{value:!0}),p.calculateSHA256=p.calculateMD5=p.PDF20=p.PDF17=p.CipherTransformFactory=p.ARCFourCipher=p.AES256Cipher=p.AES128Cipher=void 0,p.calculateSHA384=B,p.calculateSHA512=void 0;var n=re(2),P=re(4),j=re(75);class e{constructor(s){this.a=0,this.b=0;const o=new Uint8Array(256),m=s.length;for(let h=0;h<256;++h)o[h]=h;for(let h=0,A=0;h<256;++h){const L=o[h];A=A+L+s[h%m]&255,o[h]=o[A],o[A]=L}this.s=o}encryptBlock(s){let o=this.a,m=this.b;const h=this.s,A=s.length,L=new Uint8Array(A);for(let H=0;H<A;++H){o=o+1&255;const F=h[o];m=m+F&255;const M=h[m];h[o]=M,h[m]=F,L[H]=s[H]^h[F+M&255]}return this.a=o,this.b=m,L}decryptBlock(s){return this.encryptBlock(s)}encrypt(s){return this.encryptBlock(s)}}p.ARCFourCipher=e;const t=function(){const s=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),o=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function m(h,A,L){let H=1732584193,F=-271733879,M=-1732584194,k=271733878;const x=L+72&-64,C=new Uint8Array(x);let G,Z;for(G=0;G<L;++G)C[G]=h[A++];C[G++]=128;const ae=x-8;for(;G<ae;)C[G++]=0;C[G++]=L<<3&255,C[G++]=L>>5&255,C[G++]=L>>13&255,C[G++]=L>>21&255,C[G++]=L>>>29&255,C[G++]=0,C[G++]=0,C[G++]=0;const oe=new Int32Array(16);for(G=0;
47G<x;){for(Z=0;Z<16;++Z,G+=4)oe[Z]=C[G]|C[G+1]<<8|C[G+2]<<16|C[G+3]<<24;let te=H,K=F,v=M,$=k,d,w;for(Z=0;Z<64;++Z){Z<16?(d=K&v|~K&$,w=Z):Z<32?(d=$&K|~$&v,w=5*Z+1&15):Z<48?(d=K^v^$,w=3*Z+5&15):(d=v^(K|~$),w=7*Z&15);const S=$,z=te+d+o[Z]+oe[w]|0,W=s[Z];$=v,v=K,K=K+(z<<W|z>>>32-W)|0,te=S}H=H+te|0,F=F+K|0,M=M+v|0,k=k+$|0}return new Uint8Array([H&255,H>>8&255,H>>16&255,H>>>24&255,F&255,F>>8&255,F>>16&255,F>>>24&255,M&255,M>>8&255,M>>16&255,M>>>24&255,k&255,k>>8&255,k>>16&255,k>>>24&255])}return m}();p.calculateMD5=t;class l{constructor(s,o){this.high=s|0,this.low=o|0}and(s){this.high&=s.high,this.low&=s.low}xor(s){this.high^=s.high,this.low^=s.low}or(s){this.high|=s.high,this.low|=s.low}shiftRight(s){s>=32?(this.low=this.high>>>s-32|0,this.high=0):(this.low=this.low>>>s|this.high<<32-s,this.high=this.high>>>s|0)}shiftLeft(s){s>=32?(this.high=this.low<<s-32,this.low=0):(this.high=this.high<<s|this.low>>>32-s,this.low<<=s)}rotateRight(s){let o,m;s&32?(m=this.low,o=this.high):(o=this.low,m=this.high),s&=31,this.low=o>>>s|m<<32-s,this.high=m>>>s|o<<32-s}not(){this.high=~this.high,this.low=~this.low}add(s){const o=(this.low>>>0)+(s.low>>>0);let m=(this.high>>>0)+(s.high>>>0);o>4294967295&&(m+=1),this.low=o|0,this.high=m|0}copyTo(s,o){s[o]=this.high>>>24&255,s[o+1]=this.high>>16&255,s[o+2]=this.high>>8&255,s[o+3]=this.high&255,s[o+4]=this.low>>>24&255,s[o+5]=this.low>>16&255,s[o+6]=this.low>>8&255,s[o+7]=this.low&255}assign(s){this.high=s.high,this.low=s.low}}const V=function(){function s(k,x){return k>>>x|k<<32-x}function o(k,x,C){return k&x^~k&C}function m(k,x,C){return k&x^k&C^x&C}function h(k){return s(k,2)^s(k,13)^s(k,22)}function A(k){return s(k,6)^s(k,11)^s(k,25)}function L(k){return s(k,7)^s(k,18)^k>>>3}function H(k){return s(k,17)^s(k,19)^k>>>10}const F=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function M(k,x,C){let G=1779033703,Z=3144134277,ae=1013904242,oe=2773480762,te=1359893119,K=2600822924,v=528734635,$=1541459225;const d=Math.ceil((C+9)/64)*64,w=new Uint8Array(d);let S,z;for(S=0;S<C;++S)w[S]=k[x++];w[S++]=128;const W=d-8;for(;S<W;)w[S++]=0;w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=C>>>29&255,w[S++]=C>>21&255,w[S++]=C>>13&255,w[S++]=C>>5&255,w[S++]=C<<3&255;const ne=new Uint32Array(64);for(S=0;S<d;){for(z=0;z<16;++z)ne[z]=w[S]<<24|w[S+1]<<16|w[S+2]<<8|w[S+3],S+=4;for(z=16;z<64;++z)ne[z]=H(ne[z-2])+ne[z-7]+L(ne[z-15])+ne[z-16]|0;let Q=G,D=Z,Y=ae,ie=oe,ee=te,se=K,ce=v,le=$,de,he;for(z=0;z<64;++z)de=le+A(ee)+o(ee,se,ce)+F[z]+ne[z],he=h(Q)+m(Q,D,Y),le=ce,ce=se,se=ee,ee=ie+de|0,ie=Y,Y=D,D=Q,Q=de+he|0;G=G+Q|0,Z=Z+D|0,ae=ae+Y|0,oe=oe+ie|0,te=te+ee|0,K=K+se|0,v=v+ce|0,$=$+le|0}return new Uint8Array([G>>24&255,G>>16&255,G>>8&255,G&255,Z>>24&255,Z>>16&255,Z>>8&255,Z&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255,oe>>24&255,oe>>16&255,oe>>8&255,oe&255,te>>24&255,te>>16&255,te>>8&255,te&255,K>>24&255,K>>16&255,K>>8&255,K&255,v>>24&255,v>>16&255,v>>8&255,v&255,$>>24&255,$>>16&255,$>>8&255,$&255])}return M}();p.calculateSHA256=V;const J=function(){function s(M,k,x,C,G){M.assign(k),M.and(x),G.assign(k),G.not(),G.and(C),M.xor(G)}function o(M,k,x,C,G){M.assign(k),M.and(x),G.assign(k),G.and(C),M.xor(G),G.assign(x),G.and(C),M.xor(G)}function m(M,k,x){M.assign(k),M.rotateRight(28),x.assign(k),x.rotateRight(34),M.xor(x),x.assign(k),x.rotateRight(39),M.xor(x)}function h(M,k,x){M.assign(k),M.rotateRight(14),x.assign(k),x.rotateRight(18),M.xor(x),x.assign(k),x.rotateRight(41),M.xor(x)}function A(M,k,x){M.assign(k),M.rotateRight(1),x.assign(k),x.rotateRight(8),M.xor(x),x.assign(k),x.shiftRight(7),M.xor(x)}function L(M,k,x){M.assign(k),M.rotateRight(19),x.assign(k),x.rotateRight(61),M.xor(x),x.assign(k),x.shiftRight(6),M.xor(x)}const H=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];function F(M,k,x,C=!1){let G,Z,ae,oe,te,K,v,$;C?(G=new l(3418070365,3238371032),Z=new l(1654270250,914150663),ae=new l(2438529370,812702999),oe=new l(355462360,4144912697),te=new l(1731405415,4290775857),K=new l(2394180231,1750603025),v=new l(3675008525,1694076839),$=new l(1203062813,3204075428)):(G=new l(1779033703,4089235720),Z=new l(3144134277,2227873595),ae=new l(1013904242,4271175723),oe=new l(2773480762,1595750129),te=new l(1359893119,2917565137),K=new l(2600822924,725511199),v=new l(528734635,4215389547),$=new l(1541459225,327033209));const d=Math.ceil((x+17)/128)*128,w=new Uint8Array(d);let S,z;for(S=0;S<x;++S)w[S]=M[k++];w[S++]=128;const W=d-16;for(;S<W;)w[S++]=0;w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=0,w[S++]=x>>>29&255,w[S++]=x>>21&255,w[S++]=x>>13&255,w[S++]=x>>5&255,w[S++]=x<<3&255;const ne=new Array(80);for(S=0;S<80;S++)ne[S]=new l(0,0);let Q=new l(0,0),D=new l(0,0),Y=new l(0,0),ie=new l(0,0),ee=new l(0,0),se=new l(0,0),ce=new l(0,0),le=new l(0,0);const de=new l(0,0),he=new l(0,0),me=new l(0,0),Se=new l(0,0);let pe;for(S=0;S<d;){for(z=0;z<16;++z)ne[z].high=w[S]<<24|w[S+1]<<16|w[S+2]<<8|w[S+3],ne[z].low=w[S+4]<<24|w[S+5]<<16|w[S+6]<<8|w[S+7],S+=8;for(z=16;z<80;++z)pe=ne[z],L(pe,ne[z-2],Se),pe.add(ne[z-7]),A(me,ne[z-15],Se),pe.add(me),pe.add(ne[z-16]);for(Q.assign(G),D.assign(Z),Y.assign(ae),ie.assign(oe),ee.assign(te),se.assign(K),ce.assign(v),le.assign($),z=0;z<80;++z)de.assign(le),h(me,ee,Se),de.add(me),s(me,ee,se,ce,Se),de.add(me),de.add(H[z]),de.add(ne[z]),m(he,Q,Se),o(me,Q,D,Y,Se),he.add(me),pe=le,le=ce,ce=se,se=ee,ie.add(de),ee=ie,ie=Y,Y=D,D=Q,pe.assign(de),pe.add(he),Q=pe;G.add(Q),Z.add(D),ae.add(Y),oe.add(ie),te.add(ee),K.add(se),v.add(ce),$.add(le)}let ge;return C?(ge=new Uint8Array(48),G.copyTo(ge,0),Z.copyTo(ge,8),ae.copyTo(ge,16),oe.copyTo(ge,24),te.copyTo(ge,32),K.copyTo(ge,40)):(ge=new Uint8Array(64),G.copyTo(ge,0),Z.copyTo(ge,8),ae.copyTo(ge,16),oe.copyTo(ge,24),te.copyTo(ge,32),K.copyTo(ge,40),v.copyTo(ge,48),$.copyTo(ge,56)),ge}return F}();p.calculateSHA512=J;function B(r,s,o){return J(r,s,o,!0)}class I{decryptBlock(s){return s}encrypt(s){return s}}class f{constructor(){this.constructor===f&&(0,n.unreachable)("Cannot initialize AESBaseCipher."),
vendor: 4,689 bytes, line 47
47this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256)
vendor: 4,460 bytes, line 47
47;for(let s=0;s<256;s++)this._mixCol[s]=s<128?s<<1:s<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(s){(0,n.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(s,o){let m,h,A;const L=new Uint8Array(16);L.set(s);for(let H=0,F=this._keySize;H<16;++H,++F)L[H]^=o[F];for(let H=this._cyclesOfRepetition-1;H>=1;--H){m=L[13],L[13]=L[9],L[9]=L[5],L[5]=L[1],L[1]=m,m=L[14],h=L[10],L[14]=L[6],L[10]=L[2],L[6]=m,L[2]=h,m=L[15],h=L[11],A=L[7],L[15]=L[3],L[11]=m,L[7]=h,L[3]=A;for(let F=0;F<16;++F)L[F]=this._inv_s[L[F]];for(let F=0,M=H*16;F<16;++F,++M)L[F]^=o[M];for(let F=0;F<16;F+=4){const M=this._mix[L[F]],k=this._mix[L[F+1]],x=this._mix[L[F+2]],C=this._mix[L[F+3]];m=M^k>>>8^k<<24^x>>>16^x<<16^C>>>24^C<<8,L[F]=m>>>24&255,L[F+1]=m>>16&255,L[F+2]=m>>8&255,L[F+3]=m&255}}m=L[13],L[13]=L[9],L[9]=L[5],L[5]=L[1],L[1]=m,m=L[14],h=L[10],L[14]=L[6],L[10]=L[2],L[6]=m,L[2]=h,m=L[15],h=L[11],A=L[7],L[15]=L[3],L[11]=m,L[7]=h,L[3]=A;for(let H=0;H<16;++H)L[H]=this._inv_s[L[H]],L[H]^=o[H];return L}_encrypt(s,o){const m=this._s;let h,A,L;const H=new Uint8Array(16);H.set(s);for(let F=0;F<16;++F)H[F]^=o[F];for(let F=1;F<this._cyclesOfRepetition;F++){for(let M=0;M<16;++M)H[M]=m[H[M]];L=H[1],H[1]=H[5],H[5]=H[9],H[9]=H[13],H[13]=L,L=H[2],A=H[6],H[2]=H[10],H[6]=H[14],H[10]=L,H[14]=A,L=H[3],A=H[7],h=H[11],H[3]=H[15],H[7]=L,H[11]=A,H[15]=h;for(let M=0;M<16;M+=4){const k=H[M+0],x=H[M+1],C=H[M+2],G=H[M+3];h=k^x^C^G,H[M+0]^=h^this._mixCol[k^x],H[M+1]^=h^this._mixCol[x^C],H[M+2]^=h^this._mixCol[C^G],H[M+3]^=h^this._mixCol[G^k]}for(let M=0,k=F*16;M<16;++M,++k)H[M]^=o[k]}for(let F=0;F<16;++F)H[F]=m[H[F]];L=H[1],H[1]=H[5],H[5]=H[9],H[9]=H[13],H[13]=L,L=H[2],A=H[6],H[2]=H[10],H[6]=H[14],H[10]=L,H[14]=A,L=H[3],A=H[7],h=H[11],H[3]=H[15],H[7]=L,H[11]=A,H[15]=h;for(let F=0,M=this._keySize;F<16;++F,++M)H[F]^=o[M];return H}_decryptBlock2(s,o){const m=s.length;let h=this.buffer,A=this.bufferPosition;const L=[];let H=this.iv;for(let k=0;k<m;++k){if(h[A]=s[k],++A,A<16)continue;const x=this._decrypt(h,this._key);for(let C=0;C<16;++C)x[C]^=H[C];H=h,L.push(x),h=new Uint8Array(16),A=0}if(this.buffer=h,this.bufferLength=A,this.iv=H,L.length===0)return new Uint8Array(0);let F=16*L.length;if(o){const k=L.at(-1);let x=k[15];if(x<=16){for(let C=15,G=16-x;C>=G;--C)if(k[C]!==x){x=0;break}F-=x,L[L.length-1]=k.subarray(0,16-x)}}const M=new Uint8Array(F);for(let k=0,x=0,C=L.length;k<C;++k,x+=16)M.set(L[k],x);return M}decryptBlock(s,o,m=null){const h=s.length,A=this.buffer;let L=this.bufferPosition;if(m)this.iv=m;else{for(let H=0;L<16&&H<h;++H,++L)A[L]=s[H];if(L<16)return this.bufferLength=L,new Uint8Array(0);this.iv=A,s=s.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(s,o)}encrypt(s,o){const m=s.length;let h=this.buffer,A=this.bufferPosition;const L=[];o||(o=new Uint8Array(16));for(let M=0;M<m;++M){if(h[A]=s[M],++A,A<16)continue;for(let x=0;x<16;++x)h[x]^=o[x];const k=this._encrypt(h,this._key);o=k,L.push(k),h=new Uint8Array(16),A=0}if(this.buffer=h,this.bufferLength=A,this.iv=o,L.length===0)return new Uint8Array(0);const H=16*L.length,F=new Uint8Array(H);for(let M=0,k=0,x=L.length;M<x;++M,k+=16)F.set(L[M],k);return F}}class g extends f{constructor(s){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(s)}_expandKey(s){const m=this._s,h=this._rcon,A=new Uint8Array(176);A.set(s);for(let L=16,H=1;L<176;++H){let F=A[L-3],M=A[L-2],k=A[L-1],x=A[L-4];F=m[F],M=m[M],k=m[k],x=m[x],F^=h[H];for(let C=0;C<4;
47++C)A[L]=F^=A[L-16],L++,A[L]=M^=A[L-16],L++,A[L]=k^=A[L-16],L++,A[L]=x^=A[L-16],L++}return A}}p.AES128Cipher=g;class a extends f{constructor(s){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(s)}_expandKey(s){const m=this._s,h=new Uint8Array(240);h.set(s);let A=1,L,H,F,M;for(let k=32,x=1;k<240;++x){k%32===16?(L=m[L],H=m[H],F=m[F],M=m[M]):k%32===0&&(L=h[k-3],H=h[k-2],F=h[k-1],M=h[k-4],L=m[L],H=m[H],F=m[F],M=m[M],L^=A,(A<<=1)>=256&&(A=(A^27)&255));for(let C=0;C<4;++C)h[k]=L^=h[k-32],k++,h[k]=H^=h[k-32],k++,h[k]=F^=h[k-32],k++,h[k]=M^=h[k-32],k++}return h}}p.AES256Cipher=a;class _{checkOwnerPassword(s,o,m,h){const A=new Uint8Array(s.length+56);A.set(s,0),A.set(o,s.length),A.set(m,s.length+o.length);const L=V(A,0,A.length);return(0,n.isArrayEqual)(L,h)}checkUserPassword(s,o,m){const h=new Uint8Array(s.length+8);h.set(s,0),h.set(o,s.length);const A=V(h,0,h.length);return(0,n.isArrayEqual)(A,m)}getOwnerKey(s,o,m,h){const A=new Uint8Array(s.length+56);A.set(s,0),A.set(o,s.length),A.set(m,s.length+o.length);const L=V(A,0,A.length);return new a(L).decryptBlock(h,!1,new Uint8Array(16))}getUserKey(s,o,m){const h=new Uint8Array(s.length+8);h.set(s,0),h.set(o,s.length);const A=V(h,0,h.length);return new a(A).decryptBlock(m,!1,new Uint8Array(16))}}p.PDF17=_;class y{_hash(s,o,m){let h=V(o,0,o.length).subarray(0,32),A=[0],L=0;for(;L<64||A.at(-1)>L-32;){const H=s.length+h.length+m.length,F=new Uint8Array(H);let M=0;F.set(s,M),M+=s.length,F.set(h,M),M+=h.length,F.set(m,M);const k=new Uint8Array(H*64);for(let G=0,Z=0;G<64;G++,Z+=H)k.set(F,Z);A=new g(h.subarray(0,16)).encrypt(k,h.subarray(16,32));const C=A.slice(0,16).reduce((G,Z)=>G+Z,0)%3;C===0?h=V(A,0,A.length):C===1?h=B(A,0,A.length):C===2&&(h=J(A,0,A.length)),L++}return h.subarray(0,32)}checkOwnerPassword(s,o,m,h){const A=new Uint8Array(s.length+56);A.set(s,0),A.set(o,s.length),A.set(m,s.length+o.length);const L=this._hash(s,A,m);return(0,n.isArrayEqual)(L,h)}checkUserPassword(s,o,m){const h=new Uint8Array(s.length+8);h.set(s,0),h.set(o,s.length);const A=this._hash(s,h,[]);return(0,n.isArrayEqual)(A,m)}getOwnerKey(s,o,m,h){const A=new Uint8Array(s.length+56);A.set(s,0),A.set(o,s.length),A.set(m,s.length+o.length);const L=this._hash(s,A,m);return new a(L).decryptBlock(h,!1,new Uint8Array(16))}getUserKey(s,o,m){const h=new Uint8Array(s.length+8);h.set(s,0),h.set(o,s.length);const A=this._hash(s,h,[]);return new a(A).decryptBlock(m,!1,new Uint8Array(16))}}p.PDF20=y;class O{constructor(s,o){this.StringCipherConstructor=s,this.StreamCipherConstructor=o}createStream(s,o){const m=new this.StreamCipherConstructor;return new j.DecryptStream(s,o,function(A,L){return m.decryptBlock(A,L)})}decryptString(s){const o=new this.StringCipherConstructor;let m=(0,n.stringToBytes)(s);return m=o.decryptBlock(m,!0),(0,n.bytesToString)(m)}encryptString(s){const o=new this.StringCipherConstructor;if(o instanceof f){const A=16-s.length%16;s+=String.fromCharCode(A).repeat(A);const L=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(L);else for(let M=0;M<16;M++)L[M]=Math.floor(256*Math.random());let H=(0,n.stringToBytes)(s);H=o.encrypt(H,L);const F=new Uint8Array(16+H.length);return F.set(L),F.set(H,16),(0,n.bytesToString)(F)}let m=(0,n.stringToBytes)(s);return m=o.encrypt(m),(0,n.bytesToString)(m)}}const T=class T{constructor(s,o,m){Lt(this,R);const h=s.get("Filter");if(!(0,P.isName)(h,"Standard"))throw new n.FormatError("unknown encryption method");this.filterName=h.name,this.dict=s;const A=s.get("V");if(!Number.isInteger(A)||A!==1&&A!==2&&A!==4&&A!==5)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=A;let L=s.get("Length");if(!L)if(A<=3)L=40;else{const te=s.get("CF"),K=s.get("StmF");if(te instanceof P.Dict&&K instanceof P.Name){te.suppressEncryption=!0;const v=te.get(K.name);L=(v==null?void 0:v.get("Length"))||128,L<40&&(L<<=3)}}if(!Number.isInteger(L)||L<40||L%8!==0)throw new n.FormatError("invalid key length");const H=(0,n.stringToBytes)(s.get("O")),F=(0,n.stringToBytes)(s.get("U")),M=H.subarray(0,32),k=F.subarray(0,32),x=s.get("P"),C=s.get("R"),G=(A===4||A===5)&&s.get("EncryptMetadata")!==!1;this.encryptMetadata=G;const Z=(0,n.stringToBytes)(o);let ae;if(m){if(C===6)try{m=(0,n.utf8StringToString)(m)}catch{(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}ae=(0,n.stringToBytes)(m)}let oe;
47if(A!==5)oe=it(this,R,zn).call(this,Z,ae,M,k,x,C,L,G);else{const te=H.subarray(32,40),K=H.subarray(40,48),v=F.subarray(0,48),$=F.subarray(32,40),d=F.subarray(40,48),w=(0,n.stringToBytes)(s.get("OE")),S=(0,n.stringToBytes)(s.get("UE")),z=(0,n.stringToBytes)(s.get("Perms"));oe=it(this,R,aa).call(this,C,ae,M,te,K,v,k,$,d,w,S,z)}if(!oe&&!m)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!oe&&m){const te=it(this,R,ia).call(this,ae,M,C,L);oe=it(this,R,zn).call(this,Z,te,M,k,x,C,L,G)}if(!oe)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=oe,A>=4){const te=s.get("CF");te instanceof P.Dict&&(te.suppressEncryption=!0),this.cf=te,this.stmf=s.get("StmF")||P.Name.get("Identity"),this.strf=s.get("StrF")||P.Name.get("Identity"),this.eff=s.get("EFF")||this.stmf}}createCipherTransform(s,o){if(this.algorithm===4||this.algorithm===5)return new O(it(this,R,Gn).call(this,this.cf,this.strf,s,o,this.encryptionKey),it(this,R,Gn).call(this,this.cf,this.stmf,s,o,this.encryptionKey));const m=it(this,R,yn).call(this,s,o,this.encryptionKey,!1),h=function(){return new e(m)};return new O(h,h)}};X=new WeakMap,R=new WeakSet,aa=function(s,o,m,h,A,L,H,F,M,k,x,C){if(o){const Z=Math.min(127,o.length);o=o.subarray(0,Z)}else o=[];const G=s===6?new y:new _;return G.checkUserPassword(o,F,H)?G.getUserKey(o,M,x):o.length&&G.checkOwnerPassword(o,h,L,m)?G.getOwnerKey(o,A,L,k):null},zn=function(s,o,m,h,A,L,H,F){const M=40+m.length+s.length,k=new Uint8Array(M);let x=0,C,G;if(o)for(G=Math.min(32,o.length);x<G;++x)k[x]=o[x];for(C=0;x<32;)k[x++]=Bt(T,X)[C++];for(C=0,G=m.length;C<G;++C)k[x++]=m[C];for(k[x++]=A&255,k[x++]=A>>8&255,k[x++]=A>>16&255,k[x++]=A>>>24&255,C=0,G=s.length;C<G;++C)k[x++]=s[C];L>=4&&!F&&(k[x++]=255,k[x++]=255,k[x++]=255,k[x++]=255);let Z=t(k,0,x);const ae=H>>3;if(L>=3)for(C=0;C<50;++C)Z=t(Z,0,ae);const oe=Z.subarray(0,ae);let te,K;if(L>=3){for(x=0;x<32;++x)k[x]=Bt(T,X)[x];for(C=0,G=s.length;C<G;++C)k[x++]=s[C];te=new e(oe),K=te.encryptBlock(t(k,0,x)),G=oe.length;const v=new Uint8Array(G);for(C=1;C<=19;++C){for(let $=0;$<G;++$)v[$]=oe[$]^C;te=new e(v),K=te.encryptBlock(K)}for(C=0,G=K.length;C<G;++C)if(h[C]!==K[C])return null}else for(te=new e(oe),K=te.encryptBlock(Bt(T,X)),C=0,G=K.length;C<G;++C)if(h[C]!==K[C])return null;return oe},ia=function(s,o,m,h){const A=new Uint8Array(32);let L=0;const H=Math.min(32,s.length);for(;L<H;++L)A[L]=s[L];let F=0;for(;L<32;)A[L++]=Bt(T,X)[F++];let M=t(A,0,L);const k=h>>3;if(m>=3)for(F=0;F<50;++F)M=t(M,0,M.length);let x,C;if(m>=3){C=o;const G=new Uint8Array(k);for(F=19;F>=0;F--){for(let Z=0;Z<k;++Z)G[Z]=M[Z]^F;x=new e(G),C=x.encryptBlock(C)}}else x=new e(M.subarray(0,k)),C=x.encryptBlock(o);return C},yn=function(s,o,m,h=!1){const A=new Uint8Array(m.length+9),L=m.length;let H;for(H=0;H<L;++H)A[H]=m[H];return A[H++]=s&255,A[H++]=s>>8&255,A[H++]=s>>16&255,A[H++]=o&255,A[H++]=o>>8&255,h&&(A[H++]=115,A[H++]=65,A[H++]=108,A[H++]=84),t(A,0,H).subarray(0,Math.min(m.length+5,16))},Gn=function(s,o,m,h,A){if(!(o instanceof P.Name))throw new n.FormatError("Invalid crypt filter name.");const L=this,H=s.get(o.name),F=H==null?void 0:H.get("CFM");if(!F||F.name==="None")return function(){return new I};if(F.name==="V2")return function(){var M;return new e(it(M=L,R,yn).call(M,m,h,A,!1))};if(F.name==="AESV2")return function(){var M;return new g(it(M=L,R,yn).call(M,m,h,A,!0))};if(F.name==="AESV3")return function(){return new a(A)};throw new n.FormatError("Unknown crypto method")},Lt(T,X,new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]));let N=T;p.CipherTransformFactory=N},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.DecryptStream=void 0;var n=re(18);const P=512;class j extends n.DecodeStream{constructor(t,l,V){super(l),this.str=t,this.dict=t.dict,this.decrypt=V,this.nextChunk=null,this.initialized=!1}readBlock(){var f;let t;if(this.initialized?t=this.nextChunk:(t=this.str.getBytes(P),this.initialized=!0),!t||t.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(P);const l=((f=this.nextChunk)==null?void 0:f.length)>0,V=this.decrypt;t=V(t,!l);const J=this.bufferLength,B=J+t.length;this.ensureBuffer(B).set(t,J),this.bufferLength=B}}p.DecryptStream=j},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ObjectLoader=void 0;var n=re(4),P=re(5),j=re(3),e=re(2);function t(J){return J instanceof n.Ref||J instanceof n.Dict||J instanceof P.BaseStream||Array.isArray(J)}
47function l(J,B){if(J instanceof n.Dict)J=J.getRawValues();else if(J instanceof P.BaseStream)J=J.dict.getRawValues();else if(!Array.isArray(J))return;for(const I of J)t(I)&&B.push(I)}class V{constructor(B,I,f){this.dict=B,this.keys=I,this.xref=f,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:B,dict:I}=this;this.refSet=new n.RefSet;const f=[];for(const g of B){const a=I.getRaw(g);a!==void 0&&f.push(a)}return this._walk(f)}async _walk(B){const I=[],f=[];for(;B.length;){let g=B.pop();if(g instanceof n.Ref){if(this.refSet.has(g))continue;try{this.refSet.put(g),g=this.xref.fetch(g)}catch(a){if(!(a instanceof j.MissingDataException)){(0,e.warn)(`ObjectLoader._walk - requesting all data: "${a}".`),this.refSet=null;const{manager:_}=this.xref.stream;return _.requestAllChunks()}I.push(g),f.push({begin:a.begin,end:a.end})}}if(g instanceof P.BaseStream){const a=g.getBaseStreams();if(a){let _=!1;for(const y of a)y.isDataLoaded||(_=!0,f.push({begin:y.start,end:y.end}));_&&I.push(g)}}l(g,B)}if(f.length){await this.xref.stream.manager.requestRanges(f);for(const g of I)g instanceof n.Ref&&this.refSet.remove(g);return this._walk(I)}this.refSet=null}}p.ObjectLoader=V},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XFAFactory=void 0;var n=re(78),P=re(79),j=re(89),e=re(85),t=re(84),l=re(2),V=re(90),J=re(100);class B{constructor(f){try{this.root=new V.XFAParser().parse(B._createDocument(f));const g=new P.Binder(this.root);this.form=g.bind(),this.dataHandler=new j.DataHandler(this.root,g.getData()),this.form[n.$globalData].template=this.form}catch(g){(0,l.warn)(`XFA - an error occurred during parsing and binding: ${g}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const f=this.form[n.$toPages]();return new Promise((g,a)=>{const _=()=>{try{const y=f.next();y.done?g(y.value):setTimeout(_,0)}catch(y){a(y)}};setTimeout(_,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(f=>{const{width:g,height:a}=f.attributes.style;return[0,0,parseInt(g),parseInt(a)]})}catch(f){(0,l.warn)(`XFA - an error occurred during layout: ${f}`)}}getBoundingBox(f){return this.dims[f]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(f){this.form[n.$globalData].images=f}setFonts(f){this.form[n.$globalData].fontFinder=new e.FontFinder(f);const g=[];for(let a of this.form[n.$globalData].usedTypefaces)a=(0,t.stripQuotes)(a),this.form[n.$globalData].fontFinder.find(a)||g.push(a);return g.length>0?g:null}appendFonts(f,g){this.form[n.$globalData].fontFinder.add(f,g)}async getPages(){this.pages||await this._createPages();const f=this.pages;return this.pages=null,f}serializeData(f){return this.dataHandler.serialize(f)}static _createDocument(f){return f["/xdp:xdp"]?Object.values(f).join(""):f["xdp:xdp"]}static getRichTextAsHtml(f){if(!f||typeof f!="string")return null;try{let g=new V.XFAParser(J.XhtmlNamespace,!0).parse(f);if(!["body","xhtml"].includes(g[n.$nodeName])){const O=J.XhtmlNamespace.body({});O[n.$appendChild](g),g=O}const a=g[n.$toHTML]();if(!a.success)return null;const{html:_}=a,{attributes:y}=_;return y&&(y.class&&(y.class=y.class.filter(O=>!O.startsWith("xfa"))),y.dir="auto"),{html:_,str:g[n.$text]()}}catch(g){(0,l.warn)(`XFA - an error occurred during parsing of rich text: ${g}`)}return null}}p.XFAFactory=B},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.$uid=p.$toStyle=p.$toString=p.$toPages=p.$toHTML=p.$text=p.$tabIndex=p.$setValue=p.$setSetAttributes=p.$setId=p.$searchNode=p.$root=p.$resolvePrototypes=p.$removeChild=p.$pushPara=p.$pushGlyphs=p.$popPara=p.$onText=p.$onChildCheck=p.$onChild=p.$nsAttributes=p.$nodeName=p.$namespaceId=p.$lastAttribute=p.$isUsable=p.$isTransparent=p.$isThereMoreWidth=p.$isSplittable=p.$isNsAgnostic=p.$isDescendent=p.$isDataValue=p.$isCDATAXml=p.$isBindable=p.$insertAt=p.$indexOf=p.$ids=p.$hasSettableValue=p.$globalData=p.$getTemplateRoot=p.$getSubformParent=p.$getRealChildrenByNameIt=p.$getParent=p.$getNextPage=p.$getExtra=p.$getDataValue=p.$getContainedChildren=p.$getChildrenByNameIt=p.$getChildrenByName=p.$getChildrenByClass=p.$getChildren=p.$getAvailableSpace=p.$getAttributes=p.$getAttributeIt=p.$flushHTML=p.$finalize=p.$extra=p.$dump=p.$data=p.$content=p.$consumed=p.$clone=p.$cleanup=p.$cleanPage=p.$clean=p.$childrenToHTML=p.$appendChild=p.$addHTML=p.$acceptWhitespace=void 0;const re=Symbol();p.$acceptWhitespace=re;const n=Symbol();p.$addHTML=n;const P=Symbol();p.$appendChild=P;const j=Symbol();p.$childrenToHTML=j;const e=Symbol();p.$clean=e;const t=Symbol();p.$cleanPage=t;const l=Symbol();p.$cleanup=l;const V=Symbol();p.$clone=V;const J=Symbol();p.$consumed=J;const B=Symbol("content");p.$content=B;const I=Symbol("data");p.$data=I;const f=Symbol();p.$dump=f;const g=Symbol("extra");p.$extra=g;const a=Symbol();p.$finalize=a;const _=Symbol();p.$flushHTML=_;const y=Symbol();p.$getAttributeIt=y;const O=Symbol();p.$getAttributes=O;const N=Symbol();p.$getAvailableSpace=N;const X=Symbol();p.$getChildrenByClass=X;const R=Symbol();p.$getChildrenByName=R;const q=Symbol();p.$getChildrenByNameIt=q;const b=Symbol();p.$getDataValue=b;const E=Symbol();p.$getExtra=E;const c=Symbol();p.$getRealChildrenByNameIt=c;const u=Symbol();p.$getChildren=u;const T=Symbol();p.$getContainedChildren=T;const r=Symbol();p.$getNextPage=r;const s=Symbol();p.$getSubformParent=s;const o=Symbol();p.$getParent=o;const m=Symbol();p.$getTemplateRoot=m;const h=Symbol();p.$globalData=h;const A=Symbol();p.$hasSettableValue=A;
47const L=Symbol();p.$ids=L;const H=Symbol();p.$indexOf=H;const F=Symbol();p.$insertAt=F;const M=Symbol();p.$isCDATAXml=M;const k=Symbol();p.$isBindable=k;const x=Symbol();p.$isDataValue=x;const C=Symbol();p.$isDescendent=C;const G=Symbol();p.$isNsAgnostic=G;const Z=Symbol();p.$isSplittable=Z;const ae=Symbol();p.$isThereMoreWidth=ae;const oe=Symbol();p.$isTransparent=oe;const te=Symbol();p.$isUsable=te;const K=Symbol();p.$lastAttribute=K;const v=Symbol("namespaceId");p.$namespaceId=v;const $=Symbol("nodeName");p.$nodeName=$;const d=Symbol();p.$nsAttributes=d;const w=Symbol();p.$onChild=w;const S=Symbol();p.$onChildCheck=S;const z=Symbol();p.$onText=z;const W=Symbol();p.$pushGlyphs=W;const ne=Symbol();p.$popPara=ne;const Q=Symbol();p.$pushPara=Q;const D=Symbol();p.$removeChild=D;const Y=Symbol("root");p.$root=Y;const ie=Symbol();p.$resolvePrototypes=ie;const ee=Symbol();p.$searchNode=ee;const se=Symbol();p.$setId=se;const ce=Symbol();p.$setSetAttributes=ce;const le=Symbol();p.$setValue=le;const de=Symbol();p.$tabIndex=de;const he=Symbol();p.$text=he;const me=Symbol();p.$toPages=me;const Se=Symbol();p.$toHTML=Se;const pe=Symbol();p.$toString=pe;const ge=Symbol();p.$toStyle=ge;const Ae=Symbol("uid");p.$uid=Ae},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Binder=void 0;var n=re(78),P=re(80),j=re(88),e=re(87),t=re(81),l=re(2);const V=t.NamespaceIds.datasets.id;function J(I){const f=new P.Text({});return f[n.$content]=I,f}class B{constructor(f){var g;this.root=f,this.datasets=f.datasets,this.data=((g=f.datasets)==null?void 0:g.data)||new e.XmlObject(t.NamespaceIds.datasets.id,"data"),this.emptyMerge=this.data[n.$getChildren]().length===0,this.root.form=this.form=f.template[n.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(f,g,a){var _,y;if(f[n.$data]=g,f[n.$hasSettableValue]())if(g[n.$isDataValue]()){const O=g[n.$getDataValue]();f[n.$setValue](J(O))}else if(f instanceof P.Field&&((y=(_=f.ui)==null?void 0:_.choiceList)==null?void 0:y.open)==="multiSelect"){const O=g[n.$getChildren]().map(N=>N[n.$content].trim()).join(` 48`);f[n.$setValue](J(O))}else this._isConsumeData()&&(0,l.warn)("XFA - Nodes haven't the same type.");else!g[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(f,g):(0,l.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(f,g,a,_){if(!f)return null;let y,O;for(let N=0;N<3;N++){for(y=a[n.$getRealChildrenByNameIt](f,!1,!0);O=y.next().value,!!O;)if(g===O[n.$isDataValue]())return O;if(a[n.$namespaceId]===t.NamespaceIds.datasets.id&&a[n.$nodeName]==="data")break;a=a[n.$getParent]()}return _?(y=this.data[n.$getRealChildrenByNameIt](f,!0,!1),O=y.next().value,O||(y=this.data[n.$getAttributeIt](f,!0),O=y.next().value,O!=null&&O[n.$isDataValue]())?O:null):null}_setProperties(f,g){if(f.hasOwnProperty("setProperty"))for(const{ref:a,target:_,connection:y}of f.setProperty.children){if(y||!a)continue;const O=(0,j.searchNode)(this.root,g,a,!1,!1);if(!O){(0,l.warn)(`XFA - Invalid reference: ${a}.`);continue}const[N]=O;if(!N[n.$isDescendent](this.data)){(0,l.warn)("XFA - Invalid node: must be a data node.");continue}const X=(0,j.searchNode)(this.root,f,_,!1,!1);if(!X){(0,l.warn)(`XFA - Invalid target: ${_}.`);continue}const[R]=X;if(!R[n.$isDescendent](f)){(0,l.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const q=R[n.$getParent]();if(R instanceof P.SetProperty||q instanceof P.SetProperty){(0,l.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(R instanceof P.BindItems||q instanceof P.BindItems){(0,l.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const b=N[n.$text](),E=R[n.$nodeName];if(R instanceof e.XFAAttribute){const c=Object.create(null);c[E]=b;const u=Reflect.construct(Object.getPrototypeOf(q).constructor,[c]);q[E]=u[E];continue}if(!R.hasOwnProperty(n.$content)){(0,l.warn)("XFA - Invalid node to use in setProperty");continue}R[n.$data]=N,R[n.$content]=b,R[n.$finalize]()}}_bindItems(f,g){if(!f.hasOwnProperty("items")||!f.hasOwnProperty("bindItems")||f.bindItems.isEmpty())return;for(const y of f.items.children)f[n.$removeChild](y);f.items.clear();const a=new P.Items({}),_=new P.Items({});f[n.$appendChild](a),f.items.push(a),f[n.$appendChild](_),f.items.push(_);for(const{ref:y,labelRef:O,valueRef:N,connection:X}of f.bindItems.children){if(X||!y)continue;const R=(0,j.searchNode)(this.root,g,y,!1,!1);if(!R){(0,l.warn)(`XFA - Invalid reference: ${y}.`);continue}for(const q of R){if(!q[n.$isDescendent](this.datasets)){(0,l.warn)(`XFA - Invalid ref (${y}): must be a datasets child.`);continue}const b=(0,j.searchNode)(this.root,q,O,!0,!1);if(!b){(0,l.warn)(`XFA - Invalid label: ${O}.`);continue}const[E]=b;if(!E[n.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid label: must be a datasets child.");continue}const c=(0,j.searchNode)(this.root,q,N,!0,!1);if(!c){(0,l.warn)(`XFA - Invalid value: ${N}.`);continue}const[u]=c;if(!u[n.$isDescendent](this.datasets)){(0,l.warn)("XFA - Invalid value: must be a datasets child.");continue}
48const T=J(E[n.$text]()),r=J(u[n.$text]());a[n.$appendChild](T),a.text.push(T),_[n.$appendChild](r),_.text.push(r)}}}_bindOccurrences(f,g,a){let _;if(g.length>1&&(_=f[n.$clone](),_[n.$removeChild](_.occur),_.occur=null),this._bindValue(f,g[0],a),this._setProperties(f,g[0]),this._bindItems(f,g[0]),g.length===1)return;const y=f[n.$getParent](),O=f[n.$nodeName],N=y[n.$indexOf](f);for(let X=1,R=g.length;X<R;X++){const q=g[X],b=_[n.$clone]();y[O].push(b),y[n.$insertAt](N+X,b),this._bindValue(b,q,a),this._setProperties(b,q),this._bindItems(b,q)}}_createOccurrences(f){if(!this.emptyMerge)return;const{occur:g}=f;if(!g||g.initial<=1)return;const a=f[n.$getParent](),_=f[n.$nodeName];if(!(a[_]instanceof e.XFAObjectArray))return;let y;f.name?y=a[_].children.filter(X=>X.name===f.name).length:y=a[_].children.length;const O=a[n.$indexOf](f)+1,N=g.initial-y;if(N){const X=f[n.$clone]();X[n.$removeChild](X.occur),X.occur=null,a[_].push(X),a[n.$insertAt](O,X);for(let R=1;R<N;R++){const q=X[n.$clone]();a[_].push(q),a[n.$insertAt](O+R,q)}}}_getOccurInfo(f){const{name:g,occur:a}=f;if(!a||!g)return[1,1];const _=a.max===-1?1/0:a.max;return[a.min,_]}_setAndBind(f,g){this._setProperties(f,g),this._bindItems(f,g),this._bindElement(f,g)}_bindElement(f,g){const a=[];this._createOccurrences(f);for(const _ of f[n.$getChildren]()){if(_[n.$data])continue;if(this._mergeMode===void 0&&_[n.$nodeName]==="subform"){this._mergeMode=_.mergeMode==="consumeData";const b=g[n.$getChildren]();if(b.length>0)this._bindOccurrences(_,[b[0]],null);else if(this.emptyMerge){const E=g[n.$namespaceId]===V?-1:g[n.$namespaceId],c=_[n.$data]=new e.XmlObject(E,_.name||"root");g[n.$appendChild](c),this._bindElement(_,c)}continue}if(!_[n.$isBindable]())continue;let y=!1,O=null,N=null,X=null;if(_.bind){switch(_.bind.match){case"none":this._setAndBind(_,g);continue;case"global":y=!0;break;case"dataRef":if(!_.bind.ref){(0,l.warn)(`XFA - ref is empty in node ${_[n.$nodeName]}.`),this._setAndBind(_,g);continue}N=_.bind.ref;break}_.bind.picture&&(O=_.bind.picture[n.$content])}const[R,q]=this._getOccurInfo(_);if(N)if(X=(0,j.searchNode)(this.root,g,N,!0,!1),X===null){if(X=(0,j.createDataNode)(this.data,g,N),!X)continue;this._isConsumeData()&&(X[n.$consumed]=!0),this._setAndBind(_,X);continue}else this._isConsumeData()&&(X=X.filter(b=>!b[n.$consumed])),X.length>q?X=X.slice(0,q):X.length===0&&(X=null),X&&this._isConsumeData()&&X.forEach(b=>{b[n.$consumed]=!0});else{if(!_.name){this._setAndBind(_,g);continue}if(this._isConsumeData()){const b=[];for(;b.length<q;){const E=this._findDataByNameToConsume(_.name,_[n.$hasSettableValue](),g,y);if(!E)break;E[n.$consumed]=!0,b.push(E)}X=b.length>0?b:null}else{if(X=g[n.$getRealChildrenByNameIt](_.name,!1,this.emptyMerge).next().value,!X){if(R===0){a.push(_);continue}const b=g[n.$namespaceId]===V?-1:g[n.$namespaceId];X=_[n.$data]=new e.XmlObject(b,_.name),this.emptyMerge&&(X[n.$consumed]=!0),g[n.$appendChild](X),this._setAndBind(_,X);continue}this.emptyMerge&&(X[n.$consumed]=!0),X=[X]}}X?this._bindOccurrences(_,X,O):R>0?this._setAndBind(_,g):a.push(_)}a.forEach(_=>_[n.$getParent]()[n.$removeChild](_))}}p.Binder=B},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Value=p.Text=p.TemplateNamespace=p.Template=p.SetProperty=p.Items=p.Field=p.BindItems=void 0;var n=re(78),P=re(81),j=re(82),e=re(83),t=re(87),l=re(84),V=re(2),J=re(85),B=re(3),I=re(88);const f=P.NamespaceIds.template.id,g="http://www.w3.org/2000/svg",a=2,_=3,y=5e3,O=/^H(\d+)$/,N=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"]),X=[[[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 R(we){if(!we||!we.border)return{w:0,h:0};const i=we.border[n.$getExtra]();return i?{w:i.widths[0]+i.widths[2]+i.insets[0]+i.insets[2],h:i.widths[1]+i.widths[3]+i.insets[1]+i.insets[3]}:{w:0,h:0}}function q(we){return we.margin&&(we.margin.topInset||we.margin.rightInset||we.margin.bottomInset||we.margin.leftInset)}function b(we,i){if(!we.value){const U=new en({});we[n.$appendChild](U),we.value=U}we.value[n.$setValue](i)}function*E(we){for(const i of we[n.$getChildren]()){if(i instanceof on){yield*i[n.$getContainedChildren]();continue}yield i}}function c(we){var i;return((i=we.validate)==null?void 0:i.nullTest)==="error"}function u(we){for(;we;){if(!we.traversal){we[n.$tabIndex]=we[n.$getParent]()[n.$tabIndex];return}if(we[n.$tabIndex])return;let i=null;for(const Ce of we.traversal[n.$getChildren]())if(Ce.operation==="next"){i=Ce;break}if(!i||!i.ref){we[n.$tabIndex]=we[n.$getParent]()[n.$tabIndex];return}const U=we[n.$getTemplateRoot]();we[n.$tabIndex]=++U[n.$tabIndex];const be=U[n.$searchNode](i.ref,we);if(!be)return;we=be[0]}}function T(we,i){var be;const U=we.assist;if(U){const Ce=U[n.$toHTML]();Ce&&(i.title=Ce);const je=U.role.match(O);if(je){const Ke="heading",Ye=je[1];i.role=Ke,i["aria-level"]=Ye}}if(we.layout==="table")i.role="table";else if(we.layout==="row")i.role="row";else{const Ce=we[n.$getParent]();Ce.layout==="row"&&(i.role=((be=Ce.assist)==null?void 0:be.role)==="TH"?"columnheader":"cell")}}function r(we){if(!we.assist)return null;const i=we.assist;return i.speak&&i.speak[n.$content]!==""?i.speak[n.$content]:i.toolTip?i.toolTip[n.$content]:null}function s(we){return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:we}]})}function o(we){const i=we[n.$getTemplateRoot]();i[n.$extra].firstUnsplittable===null&&(i[n.$extra].firstUnsplittable=we,i[n.$extra].noLayoutFailure=!0)}function m(we){const i=we[n.$getTemplateRoot]();i[n.$extra].firstUnsplittable===we&&(i[n.$extra].noLayoutFailure=!1)}function h(we){if(we[n.$extra]||(we[n.$extra]=Object.create(null),we.targetType==="auto"))return!1;const i=we[n.$getTemplateRoot]();let U=null;if(we.target){if(U=i[n.$searchNode](we.target,we[n.$getParent]()),!U)return!1;U=U[0]}const{currentPageArea:be,currentContentArea:Ce}=i[n.$extra];if(we.targetType==="pageArea")return U instanceof et||(U=null),we.startNew?(we[n.$extra].target=U||be,!0):U&&U!==be?(we[n.$extra].target=U,!0):!1;U instanceof Y||(U=null);const Oe=U&&U[n.$getParent]();let je,Ke=Oe;if(we.startNew)if(U){const Ye=Oe.contentArea.children,ft=Ye.indexOf(Ce),yt=Ye.indexOf(U);ft!==-1&&ft<yt&&(Ke=null),je=yt-1}else je=be.contentArea.children.indexOf(Ce);else if(U&&U!==Ce)je=Oe.contentArea.children.indexOf(U)-1,Ke=Oe===be?null:Oe;else return!1;return we[n.$extra].target=Ke,we[n.$extra].index=je,!0}function A(we,i,U){const be=we[n.$getTemplateRoot](),Ce=be[n.$extra].noLayoutFailure,Oe=i[n.$getSubformParent];i[n.$getSubformParent]=()=>we,be[n.$extra].noLayoutFailure=!0;const je=i[n.$toHTML](U);we[n.$addHTML](je.html,je.bbox),be[n.$extra].noLayoutFailure=Ce,i[n.$getSubformParent]=Oe}class L extends t.StringObject{constructor(i){super(f,"appearanceFilter"),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class H extends t.XFAObject{constructor(i){super(f,"arc",!0),this.circular=(0,l.getInteger)({data:i.circular,defaultValue:0,validate:U=>U===1}),this.hand=(0,l.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.startAngle=(0,l.getFloat)({data:i.startAngle,defaultValue:0,validate:U=>!0}),this.sweepAngle=(0,l.getFloat)({data:i.sweepAngle,defaultValue:360,validate:U=>!0}),this.use=i.use||"",this.usehref=i.usehref||"",this.edge=null,this.fill=null}[n.$toHTML](){var Ye;const i=this.edge||new ge({}),U=i[n.$toStyle](),be=Object.create(null);((Ye=this.fill)==null?void 0:Ye.presence)==="visible"?Object.assign(be,this.fill[n.$toStyle]()):be.fill="transparent",be.strokeWidth=(0,e.measureToString)(i.presence==="visible"?i.thickness:0),be.stroke=U.color;let Ce;const Oe={xmlns:g,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)Ce={name:"ellipse",attributes:{xmlns:g,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:be}};
48else{const ft=this.startAngle*Math.PI/180,yt=this.sweepAngle*Math.PI/180,It=this.sweepAngle>180?1:0,[Ct,Tt,Rt,gt]=[50*(1+Math.cos(ft)),50*(1-Math.sin(ft)),50*(1+Math.cos(ft+yt)),50*(1-Math.sin(ft+yt))];Ce={name:"path",attributes:{xmlns:g,d:`M ${Ct} ${Tt} A 50 50 0 ${It} 0 ${Rt} ${gt}`,vectorEffect:"non-scaling-stroke",style:be}},Object.assign(Oe,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const je={name:"svg",children:[Ce],attributes:Oe},Ke=this[n.$getParent]()[n.$getParent]();return q(Ke)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[je]}):(je.attributes.style.position="absolute",l.HTMLResult.success(je))}}class F extends t.XFAObject{constructor(i){super(f,"area",!0),this.colSpan=(0,l.getInteger)({data:i.colSpan,defaultValue:1,validate:U=>U>=1||U===-1}),this.id=i.id||"",this.name=i.name||"",this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.x=(0,l.getMeasurement)(i.x,"0pt"),this.y=(0,l.getMeasurement)(i.y,"0pt"),this.desc=null,this.extras=null,this.area=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}*[n.$getContainedChildren](){yield*E(this)}[n.$isTransparent](){return!0}[n.$isBindable](){return!0}[n.$addHTML](i,U){const[be,Ce,Oe,je]=U;this[n.$extra].width=Math.max(this[n.$extra].width,be+Oe),this[n.$extra].height=Math.max(this[n.$extra].height,Ce+je),this[n.$extra].children.push(i)}[n.$getAvailableSpace](){return this[n.$extra].availableSpace}[n.$toHTML](i){const U=(0,e.toStyle)(this,"position"),be={style:U,id:this[n.$uid],class:["xfaArea"]};(0,e.isPrintOnly)(this)&&be.class.push("xfaPrintOnly"),this.name&&(be.xfaName=this.name);const Ce=[];this[n.$extra]={children:Ce,width:0,height:0,availableSpace:i};const Oe=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!Oe.success)return Oe.isBreak()?Oe:(delete this[n.$extra],l.HTMLResult.FAILURE);U.width=(0,e.measureToString)(this[n.$extra].width),U.height=(0,e.measureToString)(this[n.$extra].height);const je={name:"div",attributes:be,children:Ce},Ke=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];return delete this[n.$extra],l.HTMLResult.success(je,Ke)}}class M extends t.XFAObject{constructor(i){super(f,"assist",!0),this.id=i.id||"",this.role=i.role||"",this.use=i.use||"",this.usehref=i.usehref||"",this.speak=null,this.toolTip=null}[n.$toHTML](){var i;return((i=this.toolTip)==null?void 0:i[n.$content])||null}}class k extends t.XFAObject{constructor(i){super(f,"barcode",!0),this.charEncoding=(0,l.getKeyword)({data:i.charEncoding?i.charEncoding.toLowerCase():"",defaultValue:"",validate:U=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(U)||U.match(/iso-8859-\d{2}/)}),this.checksum=(0,l.getStringOption)(i.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,l.getInteger)({data:i.dataColumnCount,defaultValue:-1,validate:U=>U>=0}),this.dataLength=(0,l.getInteger)({data:i.dataLength,defaultValue:-1,validate:U=>U>=0}),this.dataPrep=(0,l.getStringOption)(i.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,l.getInteger)({data:i.dataRowCount,defaultValue:-1,validate:U=>U>=0}),this.endChar=i.endChar||"",this.errorCorrectionLevel=(0,l.getInteger)({data:i.errorCorrectionLevel,defaultValue:-1,validate:U=>U>=0&&U<=8}),this.id=i.id||"",this.moduleHeight=(0,l.getMeasurement)(i.moduleHeight,"5mm"),this.moduleWidth=(0,l.getMeasurement)(i.moduleWidth,"0.25mm"),this.printCheckDigit=(0,l.getInteger)({data:i.printCheckDigit,defaultValue:0,validate:U=>U===1}),this.rowColumnRatio=(0,l.getRatio)(i.rowColumnRatio),this.startChar=i.startChar||"",this.textLocation=(0,l.getStringOption)(i.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,l.getInteger)({data:i.truncate,defaultValue:0,validate:U=>U===1}),this.type=(0,l.getStringOption)(i.type?i.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"]),this.upsMode=(0,l.getStringOption)(i.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=i.use||"",this.usehref=i.usehref||"",this.wideNarrowRatio=(0,l.getRatio)(i.wideNarrowRatio),this.encrypt=null,this.extras=null}}class x extends t.XFAObject{constructor(i){super(f,"bind",!0),this.match=(0,l.getStringOption)(i.match,["once","dataRef","global","none"]),this.ref=i.ref||"",this.picture=null}}class C extends t.XFAObject{constructor(i){super(f,"bindItems"),this.connection=i.connection||"",this.labelRef=i.labelRef||"",this.ref=i.ref||"",this.valueRef=i.valueRef||""}}p.BindItems=C;class G extends t.XFAObject{constructor(i){super(f,"bookend"),this.id=i.id||"",this.leader=i.leader||"",this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Z extends t.Option01{constructor(i){super(f,"boolean"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$toHTML](i){return s(this[n.$content]===1?"1":"0")}}class ae extends t.XFAObject{constructor(i){super(f,"border",!0),this.break=(0,l.getStringOption)(i.break,["close","open"]),this.hand=(0,l.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.corner=new t.XFAObjectArray(4),this.edge=new t.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[n.$getExtra](){if(!this[n.$extra]){const i=this.edge.children.slice();if(i.length<4){const Ce=i.at(-1)||new ge({});for(let Oe=i.length;Oe<4;Oe++)i.push(Ce)}const U=i.map(Ce=>Ce.thickness),be=[0,0,0,0];this.margin&&(be[0]=this.margin.topInset,be[1]=this.margin.rightInset,be[2]=this.margin.bottomInset,be[3]=this.margin.leftInset),this[n.$extra]={widths:U,insets:be,edges:i}}return this[n.$extra]}[n.$toStyle](){var Ce;const{edges:i}=this[n.$getExtra](),U=i.map(Oe=>{const je=Oe[n.$toStyle]();return je.color||(je.color="#000000"),je}),be=Object.create(null);if(this.margin&&Object.assign(be,this.margin[n.$toStyle]()),((Ce=this.fill)==null?void 0:Ce.presence)==="visible"&&Object.assign(be,this.fill[n.$toStyle]()),this.corner.children.some(Oe=>Oe.radius!==0)){const Oe=this.corner.children.map(je=>je[n.$toStyle]());if(Oe.length===2||Oe.length===3){const je=Oe.at(-1);for(let Ke=Oe.length;Ke<4;Ke++)Oe.push(je)}be.borderRadius=Oe.map(je=>je.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":be.borderStyle="";break;case"inactive":be.borderStyle="none";break;default:be.borderStyle=U.map(Oe=>Oe.style).join(" ");break}return be.borderWidth=U.map(Oe=>Oe.width).join(" "),be.borderColor=U.map(Oe=>Oe.color).join(" "),be}}class oe extends t.XFAObject{constructor(i){super(f,"break",!0),this.after=(0,l.getStringOption)(i.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=i.afterTarget||"",this.before=(0,l.getStringOption)(i.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=i.beforeTarget||"",this.bookendLeader=i.bookendLeader||"",this.bookendTrailer=i.bookendTrailer||"",this.id=i.id||"",this.overflowLeader=i.overflowLeader||"",this.overflowTarget=i.overflowTarget||"",this.overflowTrailer=i.overflowTrailer||"",this.startNew=(0,l.getInteger)({data:i.startNew,defaultValue:0,validate:U=>U===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}}class te extends t.XFAObject{constructor(i){super(f,"breakAfter",!0),this.id=i.id||"",this.leader=i.leader||"",this.startNew=(0,l.getInteger)({data:i.startNew,defaultValue:0,validate:U=>U===1}),this.target=i.target||"",this.targetType=(0,l.getStringOption)(i.targetType,["auto","contentArea","pageArea"]),this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||"",this.script=null}}class K extends t.XFAObject{constructor(i){super(f,"breakBefore",!0),this.id=i.id||"",this.leader=i.leader||"",this.startNew=(0,l.getInteger)({data:i.startNew,defaultValue:0,validate:U=>U===1}),this.target=i.target||"",this.targetType=(0,l.getStringOption)(i.targetType,["auto","contentArea","pageArea"]),this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||"",this.script=null}[n.$toHTML](i){return this[n.$extra]={},l.HTMLResult.FAILURE}}class v extends t.XFAObject{constructor(i){super(f,"button",!0),this.highlight=(0,l.getStringOption)(i.highlight,["inverted","none","outline","push"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$toHTML](i){const be=this[n.$getParent]()[n.$getParent](),Ce={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]};for(const Oe of be.event.children){if(Oe.activity!=="click"||!Oe.script)continue;const je=(0,B.recoverJsURL)(Oe.script[n.$content]);if(!je)continue;const Ke=(0,e.fixURL)(je.url);Ke&&Ce.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:Ke,newWindow:je.newWindow,class:["xfaLink"],style:{}},children:[]})}return l.HTMLResult.success(Ce)}}class $ extends t.XFAObject{constructor(i){super(f,"calculate",!0),this.id=i.id||"",this.override=(0,l.getStringOption)(i.override,["disabled","error","ignore","warning"]),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.message=null,this.script=null}}class d extends t.XFAObject{constructor(i){super(f,"caption",!0),this.id=i.id||"",this.placement=(0,l.getStringOption)(i.placement,["left","bottom","inline","right","top"]),this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,l.getMeasurement)(i.reserve)),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[n.$setValue](i){b(this,i)}[n.$getExtra](i){if(!this[n.$extra]){let{width:U,height:be}=i;switch(this.placement){case"left":case"right":case"inline":U=this.reserve<=0?U:this.reserve;break;case"top":case"bottom":be=this.reserve<=0?be:this.reserve;break}this[n.$extra]=(0,e.layoutNode)(this,{width:U,height:be})}return this[n.$extra]}[n.$toHTML](i){if(!this.value)return l.HTMLResult.EMPTY;this[n.$pushPara]();const U=this.value[n.$toHTML](i).html;if(!U)return this[n.$popPara](),l.HTMLResult.EMPTY;const be=this.reserve;if(this.reserve<=0){const{w:je,h:Ke}=this[n.$getExtra](i);switch(this.placement){case"left":case"right":case"inline":this.reserve=je;break;case"top":case"bottom":this.reserve=Ke;break}}const Ce=[];typeof U=="string"?Ce.push({name:"#text",value:U}):Ce.push(U);const Oe=(0,e.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(Oe.width=(0,e.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(Oe.height=(0,e.measureToString)(this.reserve));break}return(0,e.setPara)(this,null,U),this[n.$popPara](),this.reserve=be,l.HTMLResult.success({name:"div",attributes:{style:Oe,class:["xfaCaption"]},children:Ce})}}class w extends t.StringObject{constructor(i){super(f,"certificate"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}}class S extends t.XFAObject{constructor(i){super(f,"certificates",!0),this.credentialServerPolicy=(0,l.getStringOption)(i.credentialServerPolicy,["optional","required"]),this.id=i.id||"",this.url=i.url||"",this.urlPolicy=i.urlPolicy||"",this.use=i.use||"",this.usehref=i.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class z extends t.XFAObject{constructor(i){super(f,"checkButton",!0),this.id=i.id||"",this.mark=(0,l.getStringOption)(i.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,l.getStringOption)(i.shape,["square","round"]),this.size=(0,l.getMeasurement)(i.size,"10pt"),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](i){var _t,Et,qt;const U=(0,e.toStyle)("margin"),be=(0,e.measureToString)(this.size);U.width=U.height=be;let Ce,Oe,je;const Ke=this[n.$getParent]()[n.$getParent](),Ye=Ke.items.children.length&&Ke.items.children[0][n.$toHTML]().html||[],ft={on:(Ye[0]!==void 0?Ye[0]:"on").toString(),off:(Ye[1]!==void 0?Ye[1]:"off").toString()},It=(((_t=Ke.value)==null?void 0:_t[n.$text]())||"off")===ft.on||void 0,Ct=Ke[n.$getSubformParent](),Tt=Ke[n.$uid];let Rt;Ct instanceof Fe?(je=Ct[n.$uid],Ce="radio",Oe="xfaRadio",Rt=((Et=Ct[n.$data])==null?void 0:Et[n.$uid])||Ct[n.$uid]):(Ce="checkbox",Oe="xfaCheckbox",Rt=((qt=Ke[n.$data])==null?void 0:qt[n.$uid])||Ke[n.$uid]);const gt={name:"input",attributes:{class:[Oe],style:U,fieldId:Tt,dataId:Rt,type:Ce,checked:It,xfaOn:ft.on,xfaOff:ft.off,"aria-label":r(Ke),"aria-required":!1}};return je&&(gt.attributes.name=je),c(Ke)&&(gt.attributes["aria-required"]=!0,gt.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[gt]})}}class W extends t.XFAObject{constructor(i){super(f,"choiceList",!0),this.commitOn=(0,l.getStringOption)(i.commitOn,["select","exit"]),this.id=i.id||"",this.open=(0,l.getStringOption)(i.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,l.getInteger)({data:i.textEntry,defaultValue:0,validate:U=>U===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](i){var ft,yt,It;const U=(0,e.toStyle)(this,"border","margin"),Ce=this[n.$getParent]()[n.$getParent](),je={fontSize:`calc(${((ft=Ce.font)==null?void 0:ft.size)||10}px * var(--scale-factor))`},Ke=[];if(Ce.items.children.length>0){const Ct=Ce.items;let Tt=0,Rt=0;Ct.children.length===2&&(Tt=Ct.children[0].save,Rt=1-Tt);const gt=Ct.children[Tt][n.$toHTML]().html,_t=Ct.children[Rt][n.$toHTML]().html;let Et=!1;const qt=((yt=Ce.value)==null?void 0:yt[n.$text]())||"";for(let Xt=0,St=gt.length;Xt<St;Xt++){const Je={name:"option",attributes:{value:_t[Xt]||gt[Xt],style:je},value:gt[Xt]};_t[Xt]===qt&&(Je.attributes.selected=Et=!0),Ke.push(Je)}Et||Ke.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const Ye={class:["xfaSelect"],fieldId:Ce[n.$uid],dataId:((It=Ce[n.$data])==null?void 0:It[n.$uid])||Ce[n.$uid],style:U,"aria-label":r(Ce),"aria-required":!1};return c(Ce)&&(Ye["aria-required"]=!0,Ye.required=!0),this.open==="multiSelect"&&(Ye.multiple=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:Ke,attributes:Ye}]})}}class ne extends t.XFAObject{constructor(i){super(f,"color",!0),this.cSpace=(0,l.getStringOption)(i.cSpace,["SRGB"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.value=i.value?(0,l.getColor)(i.value):"",this.extras=null}[n.$hasSettableValue](){return!1}[n.$toStyle](){return this.value?V.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class Q extends t.XFAObject{constructor(i){super(f,"comb"),this.id=i.id||"",this.numberOfCells=(0,l.getInteger)({data:i.numberOfCells,defaultValue:0,validate:U=>U>=0}),this.use=i.use||"",this.usehref=i.usehref||""}}class D extends t.XFAObject{constructor(i){super(f,"connect",!0),this.connection=i.connection||"",this.id=i.id||"",this.ref=i.ref||"",this.usage=(0,l.getStringOption)(i.usage,["exportAndImport","exportOnly","importOnly"]),this.use=i.use||"",this.usehref=i.usehref||"",this.picture=null}}class Y extends t.XFAObject{constructor(i){super(f,"contentArea",!0),this.h=(0,l.getMeasurement)(i.h),this.id=i.id||"",this.name=i.name||"",this.releva
48nt=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.w=(0,l.getMeasurement)(i.w),this.x=(0,l.getMeasurement)(i.x,"0pt"),this.y=(0,l.getMeasurement)(i.y,"0pt"),this.desc=null,this.extras=null}[n.$toHTML](i){const U=(0,e.measureToString)(this.x),be=(0,e.measureToString)(this.y),Ce={left:U,top:be,width:(0,e.measureToString)(this.w),height:(0,e.measureToString)(this.h)},Oe=["xfaContentarea"];return(0,e.isPrintOnly)(this)&&Oe.push("xfaPrintOnly"),l.HTMLResult.success({name:"div",children:[],attributes:{style:Ce,class:Oe,id:this[n.$uid]}})}}class ie extends t.XFAObject{constructor(i){super(f,"corner",!0),this.id=i.id||"",this.inverted=(0,l.getInteger)({data:i.inverted,defaultValue:0,validate:U=>U===1}),this.join=(0,l.getStringOption)(i.join,["square","round"]),this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,l.getMeasurement)(i.radius),this.stroke=(0,l.getStringOption)(i.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,l.getMeasurement)(i.thickness,"0.5pt"),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const i=(0,e.toStyle)(this,"visibility");return i.radius=(0,e.measureToString)(this.join==="square"?0:this.radius),i}}class ee extends t.ContentObject{constructor(i){super(f,"date"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=this[n.$content].trim();this[n.$content]=i?new Date(i):null}[n.$toHTML](i){return s(this[n.$content]?this[n.$content].toString():"")}}class se extends t.ContentObject{constructor(i){super(f,"dateTime"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=this[n.$content].trim();this[n.$content]=i?new Date(i):null}[n.$toHTML](i){return s(this[n.$content]?this[n.$content].toString():"")}}class ce extends t.XFAObject{constructor(i){super(f,"dateTimeEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.picker=(0,l.getStringOption)(i.picker,["host","none"]),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Oe;const U=(0,e.toStyle)(this,"border","font","margin"),be=this[n.$getParent]()[n.$getParent](),Ce={name:"input",attributes:{type:"text",fieldId:be[n.$uid],dataId:((Oe=be[n.$data])==null?void 0:Oe[n.$uid])||be[n.$uid],class:["xfaTextfield"],style:U,"aria-label":r(be),"aria-required":!1}};return c(be)&&(Ce.attributes["aria-required"]=!0,Ce.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Ce]})}}class le extends t.ContentObject{constructor(i){super(f,"decimal"),this.fracDigits=(0,l.getInteger)({data:i.fracDigits,defaultValue:2,validate:U=>!0}),this.id=i.id||"",this.leadDigits=(0,l.getInteger)({data:i.leadDigits,defaultValue:-1,validate:U=>!0}),this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(i)?null:i}[n.$toHTML](i){return s(this[n.$content]!==null?this[n.$content].toString():"")}}class de extends t.XFAObject{constructor(i){super(f,"defaultUi",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}}class he extends t.XFAObject{constructor(i){super(f,"desc",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class me extends t.OptionObject{constructor(i){super(f,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Se extends t.XFAObject{constructor(i){super(f,"digestMethods",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.digestMethod=new t.XFAObjectArray}}class pe extends t.XFAObject{constructor(i){super(f,"draw",!0),this.anchorType=(0,l.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:i.colSpan,defaultValue:1,validate:U=>U>=1||U===-1}),this.h=i.h?(0,l.getMeasurement)(i.h):"",this.hAlign=(0,l.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.locale=i.locale||"",this.maxH=(0,l.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(i.maxW,"0pt"),this.minH=(0,l.getMeasurement)(i.minH,"0pt"),this.minW=(0,l.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(i.relevant),this.rotate=(0,l.getInteger)({data:i.rotate,defaultValue:0,validate:U=>U%90===0}),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,l.getMeasurement)(i.w):"",this.x=(0,l.getMeasurement)(i.x,"0pt"),this.y=(0,l.getMeasurement)(i.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 t.XFAObjectArray}[n.$setValue](i){b(this,i)}[n.$toHTML](i){if(u(this),this.presence==="hidden"||this.presence==="inactive")return l.HTMLResult.EMPTY;(0,e.fixDimensions)(this),this[n.$pushPara]();const U=this.w,be=this.h,{w:Ce,h:Oe,isBroken:je}=(0,e.layoutNode)(this,i);if(Ce&&this.w===""){if(je&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),l.HTMLResult.FAILURE;this.w=Ce}if(Oe&&this.h===""&&(this.h=Oe),o(this),!(0,j.checkDimensions)(this,i))return this.w=U,this.h=be,this[n.$popPara](),l.HTMLResult.FAILURE;m(this);const Ke=(0,e.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,e.setMinMaxDimensions)(this,Ke),Ke.margin&&(Ke.padding=Ke.margin,delete Ke.margin);const Ye=["xfaDraw"];this.font&&Ye.push("xfaFont"),(0,e.isPrintOnly)(this)&&Ye.push("xfaPrintOnly");
48const ft={style:Ke,id:this[n.$uid],class:Ye};this.name&&(ft.xfaName=this.name);const yt={name:"div",attributes:ft,children:[]};T(this,ft);const It=(0,e.computeBbox)(this,yt,i),Ct=this.value?this.value[n.$toHTML](i).html:null;return Ct===null?(this.w=U,this.h=be,this[n.$popPara](),l.HTMLResult.success((0,e.createWrapper)(this,yt),It)):(yt.children.push(Ct),(0,e.setPara)(this,Ke,Ct),this.w=U,this.h=be,this[n.$popPara](),l.HTMLResult.success((0,e.createWrapper)(this,yt),It))}}class ge extends t.XFAObject{constructor(i){super(f,"edge",!0),this.cap=(0,l.getStringOption)(i.cap,["square","butt","round"]),this.id=i.id||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,l.getStringOption)(i.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,l.getMeasurement)(i.thickness,"0.5pt"),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const i=(0,e.toStyle)(this,"visibility");if(Object.assign(i,{linecap:this.cap,width:(0,e.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""}),this.presence!=="visible")i.style="none";else switch(this.stroke){case"solid":i.style="solid";break;case"dashDot":i.style="dashed";break;case"dashDotDot":i.style="dashed";break;case"dashed":i.style="dashed";break;case"dotted":i.style="dotted";break;case"embossed":i.style="ridge";break;case"etched":i.style="groove";break;case"lowered":i.style="inset";break;case"raised":i.style="outset";break}return i}}class Ae extends t.OptionObject{constructor(i){super(f,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Me extends t.XFAObject{constructor(i){super(f,"encodings",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.encoding=new t.XFAObjectArray}}class xe extends t.XFAObject{constructor(i){super(f,"encrypt",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=null}}class ue extends t.XFAObject{constructor(i){super(f,"encryptData",!0),this.id=i.id||"",this.operation=(0,l.getStringOption)(i.operation,["encrypt","decrypt"]),this.target=i.target||"",this.use=i.use||"",this.usehref=i.usehref||"",this.filter=null,this.manifest=null}}class fe extends t.XFAObject{constructor(i){super(f,"encryption",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=new t.XFAObjectArray}}class ke extends t.OptionObject{constructor(i){super(f,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class ye extends t.XFAObject{constructor(i){super(f,"encryptionMethods",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.encryptionMethod=new t.XFAObjectArray}}class $e extends t.XFAObject{constructor(i){super(f,"event",!0),this.activity=(0,l.getStringOption)(i.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"]),this.id=i.id||"",this.listen=(0,l.getStringOption)(i.listen,["refOnly","refAndDescendents"]),this.name=i.name||"",this.ref=i.ref||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Xe extends t.ContentObject{constructor(i){super(f,"exData"),this.contentType=i.contentType||"",this.href=i.href||"",this.id=i.id||"",this.maxLength=(0,l.getInteger)({data:i.maxLength,defaultValue:-1,validate:U=>U>=-1}),this.name=i.name||"",this.rid=i.rid||"",this.transferEncoding=(0,l.getStringOption)(i.transferEncoding,["none","base64","package"]),this.use=i.use||"",this.usehref=i.usehref||""}[n.$isCDATAXml](){return this.contentType==="text/html"}[n.$onChild](i){return this.contentType==="text/html"&&i[n.$namespaceId]===P.NamespaceIds.xhtml.id?(this[n.$content]=i,!0):this.contentType==="text/xml"?(this[n.$content]=i,!0):!1}[n.$toHTML](i){return this.contentType!=="text/html"||!this[n.$content]?l.HTMLResult.EMPTY:this[n.$content][n.$toHTML](i)}}class Ze extends t.XFAObject{constructor(i){super(f,"exObject",!0),this.archive=i.archive||"",this.classId=i.classId||"",this.co
48deBase=i.codeBase||"",this.codeType=i.codeType||"",this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class Fe extends t.XFAObject{constructor(i){super(f,"exclGroup",!0),this.access=(0,l.getStringOption)(i.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=i.accessKey||"",this.anchorType=(0,l.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:i.colSpan,defaultValue:1,validate:U=>U>=1||U===-1}),this.h=i.h?(0,l.getMeasurement)(i.h):"",this.hAlign=(0,l.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.layout=(0,l.getStringOption)(i.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,l.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(i.maxW,"0pt"),this.minH=(0,l.getMeasurement)(i.minH,"0pt"),this.minW=(0,l.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,l.getMeasurement)(i.w):"",this.x=(0,l.getMeasurement)(i.x,"0pt"),this.y=(0,l.getMeasurement)(i.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 t.XFAObjectArray,this.event=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray}[n.$isBindable](){return!0}[n.$hasSettableValue](){return!0}[n.$setValue](i){for(const U of this.field.children){if(!U.value){const be=new en({});U[n.$appendChild](be),U.value=be}U.value[n.$setValue](i)}}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}[n.$isSplittable](){var U;const i=this[n.$getSubformParent]();return i[n.$isSplittable]()?this[n.$extra]._isSplittable!==void 0?this[n.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):(U=i.layout)!=null&&U.endsWith("-tb")&&i[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$flushHTML](){return(0,j.flushHTML)(this)}[n.$addHTML](i,U){(0,j.addHTML)(this,i,U)}[n.$getAvailableSpace](){return(0,j.getAvailableSpace)(this)}[n.$toHTML](i){if(u(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return l.HTMLResult.EMPTY;(0,e.fixDimensions)(this);const U=[],be={id:this[n.$uid],class:[]};(0,e.setAccess)(this,be.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:U,attributes:be,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,i.width),height:Math.min(this.h||1/0,i.height)},width:0,height:0,prevHeight:0,currentWidth:0});const Ce=this[n.$isSplittable]();if(Ce||o(this),!(0,j.checkDimensions)(this,i))return l.HTMLResult.FAILURE;const Oe=new Set(["field"]);if(this.layout.includes("row")){const Et=this[n.$getSubformParent]().columnWidths;Array.isArray(Et)&&Et.length>0&&(this[n.$extra].columnWidths=Et,this[n.$extra].currentColumn=0)}const je=(0,e.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),Ke=["xfaExclgroup"],Ye=(0,e.layoutClass)(this);Ye&&Ke.push(Ye),(0,e.isPrintOnly)(this)&&Ke.push("xfaPrintOnly"),be.style=je,be.class=Ke,this.name&&(be.xfaName=this.name),this[n.$pushPara]();
48const ft=this.layout==="lr-tb"||this.layout==="rl-tb",yt=ft?a:1;for(;this[n.$extra].attempt<yt;this[n.$extra].attempt++){ft&&this[n.$extra].attempt===a-1&&(this[n.$extra].numberInLine=0);const Et=this[n.$childrenToHTML]({filter:Oe,include:!0});if(Et.success)break;if(Et.isBreak())return this[n.$popPara](),Et;if(ft&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine===0&&!this[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){this[n.$extra].attempt=yt;break}}if(this[n.$popPara](),Ce||m(this),this[n.$extra].attempt===yt)return Ce||delete this[n.$extra],l.HTMLResult.FAILURE;let It=0,Ct=0;this.margin&&(It=this.margin.leftInset+this.margin.rightInset,Ct=this.margin.topInset+this.margin.bottomInset);const Tt=Math.max(this[n.$extra].width+It,this.w||0),Rt=Math.max(this[n.$extra].height+Ct,this.h||0),gt=[this.x,this.y,Tt,Rt];this.w===""&&(je.width=(0,e.measureToString)(Tt)),this.h===""&&(je.height=(0,e.measureToString)(Rt));const _t={name:"div",attributes:be,children:U};return T(this,be),delete this[n.$extra],l.HTMLResult.success((0,e.createWrapper)(this,_t),gt)}}class nt extends t.XFAObject{constructor(i){super(f,"execute"),this.connection=i.connection||"",this.executeType=(0,l.getStringOption)(i.executeType,["import","remerge"]),this.id=i.id||"",this.runAt=(0,l.getStringOption)(i.runAt,["client","both","server"]),this.use=i.use||"",this.usehref=i.usehref||""}}class We extends t.XFAObject{constructor(i){super(f,"extras",!0),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.extras=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class Ee extends t.XFAObject{constructor(i){super(f,"field",!0),this.access=(0,l.getStringOption)(i.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=i.accessKey||"",this.anchorType=(0,l.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:i.colSpan,defaultValue:1,validate:U=>U>=1||U===-1}),this.h=i.h?(0,l.getMeasurement)(i.h):"",this.hAlign=(0,l.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.locale=i.locale||"",this.maxH=(0,l.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(i.maxW,"0pt"),this.minH=(0,l.getMeasurement)(i.minH,"0pt"),this.minW=(0,l.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(i.relevant),this.rotate=(0,l.getInteger)({data:i.rotate,defaultValue:0,validate:U=>U%90===0}),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,l.getMeasurement)(i.w):"",this.x=(0,l.getMeasurement)(i.x,"0pt"),this.y=(0,l.getMeasurement)(i.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 t.XFAObjectArray(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 t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray}[n.$isBindable](){return!0}[n.$setValue](i){b(this,i)}[n.$toHTML](i){var Et,qt,Xt;if(u(this),!this.ui){this.ui=new ln({}),this.ui[n.$globalData]=this[n.$globalData],this[n.$appendChild](this.ui);let St;switch(this.items.children.length){case 0:St=new dn({}),this.ui.textEdit=St;break;case 1:St=new z({}),this.ui.checkButton=St;break;case 2:St=new W({}),this.ui.choiceList=St;break}this.ui[n.$appendChild](St)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return l.HTMLResult.EMPTY;this.caption&&delete this.caption[n.$extra],this[n.$pushPara]();const U=this.caption?this.caption[n.$toHTML](i).html:null,be=this.w,Ce=this.h;let Oe=0,je=0;this.margin&&(Oe=this.margin.leftInset+this.margin.rightInset,je=this.margin.topInset+this.margin.bottomInset);let Ke=null;if(this.w===""||this.h===""){let St=null,Je=null,Vt=0,Wt=0;if(this.ui.checkButton)Vt=Wt=this.ui.checkButton.size;else{const{w:Jt,h:Yt}=(0,e.layoutNode)(this,i);Jt!==null?(Vt=Jt,Wt=Yt):Wt=(0,J.getMetrics)(this.font,!0).lineNoGap}if(Ke=R(this.ui[n.$getExtra]()),Vt+=Ke.w,Wt+=Ke.h,this.caption){const{w:Jt,h:Yt,isBroken:Ht}=this.caption[n.$getExtra](i);if(Ht&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),l.HTMLResult.FAILURE;switch(St=Jt,Je=Yt,this.caption.placement){case"left":case"right":case"inline":St+=Vt;break;case"top":case"bottom":Je+=Wt;break}}else St=Vt,Je=Wt;St&&this.w===""&&(St+=Oe,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<St?St:this.minW)),Je&&this.h===""&&(Je+=je,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<Je?Je:this.minH))}if(this[n.$popPara](),(0,e.fixDimensions)(this),o(this),!(0,j.checkDimensions)(this,i))return this.w=be,this.h=Ce,this[n.$popPara](),l.HTMLResult.FAILURE;m(this);const Ye=(0,e.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,e.setMinMaxDimensions)(this,Ye);
48const ft=["xfaField"];this.font&&ft.push("xfaFont"),(0,e.isPrintOnly)(this)&&ft.push("xfaPrintOnly");const yt={style:Ye,id:this[n.$uid],class:ft};Ye.margin&&(Ye.padding=Ye.margin,delete Ye.margin),(0,e.setAccess)(this,ft),this.name&&(yt.xfaName=this.name);const It=[],Ct={name:"div",attributes:yt,children:It};T(this,yt);const Tt=this.border?this.border[n.$toStyle]():null,Rt=(0,e.computeBbox)(this,Ct,i),gt=this.ui[n.$toHTML]().html;if(!gt)return Object.assign(Ye,Tt),l.HTMLResult.success((0,e.createWrapper)(this,Ct),Rt);this[n.$tabIndex]&&((Et=gt.children)!=null&&Et[0]?gt.children[0].attributes.tabindex=this[n.$tabIndex]:gt.attributes.tabindex=this[n.$tabIndex]),gt.attributes.style||(gt.attributes.style=Object.create(null));let _t=null;if(this.ui.button?(gt.children.length===1&&([_t]=gt.children.splice(0,1)),Object.assign(gt.attributes.style,Tt)):Object.assign(Ye,Tt),It.push(gt),this.value){if(this.ui.imageEdit)gt.children.push(this.value[n.$toHTML]().html);else if(!this.ui.button){let St="";if(this.value.exData)St=this.value.exData[n.$text]();else if(this.value.text)St=this.value.text[n.$getExtra]();else{const Je=this.value[n.$toHTML]().html;Je!==null&&(St=Je.children[0].value)}this.ui.textEdit&&((qt=this.value.text)!=null&&qt.maxChars)&&(gt.children[0].attributes.maxLength=this.value.text.maxChars),St&&(this.ui.numericEdit&&(St=parseFloat(St),St=isNaN(St)?"":St.toString()),gt.children[0].name==="textarea"?gt.children[0].attributes.textContent=St:gt.children[0].attributes.value=St)}}if(!this.ui.imageEdit&&((Xt=gt.children)!=null&&Xt[0])&&this.h){Ke=Ke||R(this.ui[n.$getExtra]());let St=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){St=this.caption.reserve,St<=0&&(St=this.caption[n.$getExtra](i).h);const Je=this.h-St-je-Ke.h;gt.children[0].attributes.style.height=(0,e.measureToString)(Je)}else gt.children[0].attributes.style.height="100%"}if(_t&>.children.push(_t),!U)return gt.attributes.class&>.attributes.class.push("xfaLeft"),this.w=be,this.h=Ce,l.HTMLResult.success((0,e.createWrapper)(this,Ct),Rt);if(this.ui.button)return Ye.padding&&delete Ye.padding,U.name==="div"&&(U.name="span"),gt.children.push(U),l.HTMLResult.success(Ct,Rt);switch(this.ui.checkButton&&(U.attributes.class[0]="xfaCaptionForCheckButton"),gt.attributes.class||(gt.attributes.class=[]),gt.children.splice(0,0,U),this.caption.placement){case"left":gt.attributes.class.push("xfaLeft");break;case"right":gt.attributes.class.push("xfaRight");break;case"top":gt.attributes.class.push("xfaTop");break;case"bottom":gt.attributes.class.push("xfaBottom");break;case"inline":gt.attributes.class.push("xfaLeft");break}return this.w=be,this.h=Ce,l.HTMLResult.success((0,e.createWrapper)(this,Ct),Rt)}}p.Field=Ee;class Ve extends t.XFAObject{constructor(i){super(f,"fill",!0),this.id=i.id||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[n.$toStyle](){var Ke;const i=this[n.$getParent](),be=i[n.$getParent]()[n.$getParent](),Ce=Object.create(null);let Oe="color",je=Oe;i instanceof ae&&(Oe="background-color",je="background",be instanceof ln&&(Ce.backgroundColor="white")),(i instanceof ct||i instanceof H)&&(Oe=je="fill",Ce.fill="white");for(const Ye of Object.getOwnPropertyNames(this)){if(Ye==="extras"||Ye==="color")continue;const ft=this[Ye];if(!(ft instanceof t.XFAObject))continue;const yt=ft[n.$toStyle](this.color);return yt&&(Ce[yt.startsWith("#")?Oe:je]=yt),Ce}if((Ke=this.color)!=null&&Ke.value){const Ye=this.color[n.$toStyle]();Ce[Ye.startsWith("#")?Oe:je]=Ye}return Ce}}class tt extends t.XFAObject{constructor(i){super(f,"filter",!0),this.addRevocationInfo=(0,l.getStringOption)(i.addRevocationInfo,["","required","optional","none"]),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.version=(0,l.getInteger)({data:this.version,defaultValue:5,validate:U=>U>=1&&U<=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}}class Ne extends t.ContentObject{constructor(i){super(f,"float"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(i)?null:i}[n.$toHTML](i){return s(this[n.$content]!==null?this[n.$content].toString():"")}}class wt extends t.XFAObject{constructor(i){super(f,"font",!0),this.baselineShift=(0,l.getMeasurement)(i.baselineShift),this.fontHorizontalScale=(0,l.getFloat)({data:i.fontHorizontalScale,defaultValue:100,validate:U=>U>=0}),this.fontVerticalScale=(0,l.getFloat)({data:i.fontVerticalScale,defaultValue:100,validate:U=>U>=0}),this.id=i.id||"",this.kerningMode=(0,l.getStringOption)(i.kerningMode,["none","pair"]),this.letterSpacing=(0,l.getMeasurement)(i.letterSpacing,"0"),this.lineThrough=(0,l.getInteger)({data:i.lineThrough,defaultValue:0,validate:U=>U===1||U===2}),this.lineThroughPeriod=(0,l.getStringOption)(i.lineThroughPeriod,["all","word"]),this.overline=(0,l.getInteger)({data:i.overline,defaultValue:0,validate:U=>U===1||U===2}),this.overlinePeriod=(0,l.getStringOption)(i.overlinePeriod,["all","word"]),this.posture=(0,l.getStringOption)(i.posture,["normal","italic"]),this.size=(0,l.getMeasurement)(i.size,"10pt"),this.typeface=i.typeface||"Courier",this.underline=(0,l.getInteger)({data:i.underline,defaultValue:0,validate:U=>U===1||U===2}),this.underlinePeriod=(0,l.getStringOption)(i.underlinePeriod,["all","word"]),this.use=i.use||"",this.usehref=i.usehref||"",this.weight=(0,l.getStringOption)(i.weight,["normal","bold"]),this.extras=null,this.fill=null}[n.$clean](i){super[n.$clean](i),this[n.$globalData].usedTypefaces.add(this.typeface)}[n.$toStyle](){const i=(0,e.toStyle)(this,"fill"),U=i.color;return U&&(U==="#000000"?delete i.color:U.startsWith("#")||(i.background=U,i.backgroundClip="text",i.color="transparent")),this.baselineShift&&(i.verticalAlign=(0,e.measureToString)(this.baselineShift)),i.fontKerning=this.kerningMode==="none"?"none":"normal",i.letterSpacing=(0,e.measureToString)(this.letterSpacing),this.lineThrough!==0&&(i.textDecoration="line-through",this.lineThrough===2&&(i.textDecorationStyle="double")),this.overline!==0&&(i.textDecoration="overline",this.overline===2&&(i.textDecorationStyle="double")),i.fontStyle=this.posture,i.fontSize=(0,e.measureToString)(.99*this.size),(0,e.setFontFamily)(this,this,this[n.$globalData].fontFinder,i),this.underline!==0&&(i.textDecoration="underline",this.underline===2&&(i.textDecorationStyle="double")),i.fontWeight=this.weight,i}}class dt extends t.XFAObject{constructor(i){super(f,"format",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.picture=null}}class pt extends t.StringObject{constructor(i){super(f,"handler"),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Ot extends t.XFAObject{constructor(i){super(f,"hyphenation"),this.excludeAllCaps=(0,l.getInteger)({data:i.excludeAllCaps,defaultValue:0,validate:U=>U===1}),this.excludeInitialCap=(0,l.getInteger)({data:i.excludeInitialCap,defaultValue:0,validate:U=>U===1}),this.hyphenate=(0,l.getInteger)({data:i.hyphenate,defaultValue:0,validate:U=>U===1}),this.id=i.id||"",this.pushCharacterCount=(0,l.getInteger)({data:i.pushCharacterCount,defaultValue:3,validate:U=>U>=0}
48),this.remainCharacterCount=(0,l.getInteger)({data:i.remainCharacterCount,defaultValue:3,validate:U=>U>=0}),this.use=i.use||"",this.usehref=i.usehref||"",this.wordCharacterCount=(0,l.getInteger)({data:i.wordCharacterCount,defaultValue:7,validate:U=>U>=0})}}class ze extends t.StringObject{constructor(i){super(f,"image"),this.aspect=(0,l.getStringOption)(i.aspect,["fit","actual","height","none","width"]),this.contentType=i.contentType||"",this.href=i.href||"",this.id=i.id||"",this.name=i.name||"",this.transferEncoding=(0,l.getStringOption)(i.transferEncoding,["base64","none","package"]),this.use=i.use||"",this.usehref=i.usehref||""}[n.$toHTML](){if(this.contentType&&!N.has(this.contentType.toLowerCase()))return l.HTMLResult.EMPTY;let i=this[n.$globalData].images&&this[n.$globalData].images.get(this.href);if(!i&&(this.href||!this[n.$content])||(!i&&this.transferEncoding==="base64"&&(i=(0,V.stringToBytes)(atob(this[n.$content]))),!i))return l.HTMLResult.EMPTY;if(!this.contentType){for(const[Oe,je]of X)if(i.length>Oe.length&&Oe.every((Ke,Ye)=>Ke===i[Ye])){this.contentType=je;break}if(!this.contentType)return l.HTMLResult.EMPTY}const U=new Blob([i],{type:this.contentType});let be;switch(this.aspect){case"fit":case"actual":break;case"height":be={height:"100%",objectFit:"fill"};break;case"none":be={width:"100%",height:"100%",objectFit:"fill"};break;case"width":be={width:"100%",objectFit:"fill"};break}const Ce=this[n.$getParent]();return l.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:be,src:URL.createObjectURL(U),alt:Ce?r(Ce[n.$getParent]()):null}})}}class Ge extends t.XFAObject{constructor(i){super(f,"imageEdit",!0),this.data=(0,l.getStringOption)(i.data,["link","embed"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](i){return this.data==="embed"?l.HTMLResult.success({name:"div",children:[],attributes:{}}):l.HTMLResult.EMPTY}}class Ue extends t.ContentObject{constructor(i){super(f,"integer"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(i)?null:i}[n.$toHTML](i){return s(this[n.$content]!==null?this[n.$content].toString():"")}}class bt extends t.XFAObject{constructor(i){super(f,"issuers",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=new t.XFAObjectArray}}class vt extends t.XFAObject{constructor(i){super(f,"items",!0),this.id=i.id||"",this.name=i.name||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.ref=i.ref||"",this.save=(0,l.getInteger)({data:i.save,defaultValue:0,validate:U=>U===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}[n.$toHTML](){const i=[];for(const U of this[n.$getChildren]())i.push(U[n.$text]());return l.HTMLResult.success(i)}}p.Items=vt;class At extends t.XFAObject{constructor(i){super(f,"keep",!0),this.id=i.id||"";const U=["none","contentArea","pageArea"];this.intact=(0,l.getStringOption)(i.intact,U),this.next=(0,l.getStringOption)(i.next,U),this.previous=(0,l.getStringOption)(i.previous,U),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}}class lt extends t.XFAObject{constructor(i){super(f,"keyUsage");const U=["","yes","no"];this.crlSign=(0,l.getStringOption)(i.crlSign,U),this.dataEncipherment=(0,l.getStringOption)(i.dataEncipherment,U),this.decipherOnly=(0,l.getStringOption)(i.decipherOnly,U),this.digitalSignature=(0,l.getStringOption)(i.digitalSignature,U),this.encipherOnly=(0,l.getStringOption)(i.encipherOnly,U),this.id=i.id||"",this.keyAgreement=(0,l.getStringOption)(i.keyAgreement,U),this.keyCertSign=(0,l.getStringOption)(i.keyCertSign,U),this.keyEncipherment=(0,l.getStringOption)(i.keyEncipherment,U),this.nonRepudiation=(0,l.getStringOption)(i.nonRepudiation,U),this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Nt extends t.XFAObject{constructor(i){super(f,"line",!0),this.hand=(0,l.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.slope=(0,l.getStringOption)(i.slope,["\\","/"]),this.use=i.use||"",this.usehref=i.usehref||"",this.edge=null}[n.$toHTML](){const i=this[n.$getParent]()[n.$getParent](),U=this.edge||new ge({}),be=U[n.$toStyle](),Ce=Object.create(null),Oe=U.presence==="visible"?U.thickness:0;Ce.strokeWidth=(0,e.measureToString)(Oe),Ce.stroke=be.color;let je,Ke,Ye,ft,yt="100%",It="100%";i.w<=Oe?([je,Ke,Ye,ft]=["50%",0,"50%","100%"],yt=Ce.strokeWidth):i.h<=Oe?([je,Ke,Ye,ft]=[0,"50%","100%","50%"],It=Ce.strokeWidth):this.slope==="\\"?[je,Ke,Ye,ft]=[0,0,"100%","100%"]:[je,Ke,Ye,ft]=[0,"100%","100%",0];const Tt={name:"svg",children:[{name:"line",attributes:{xmlns:g,x1:je,y1:Ke,x2:Ye,y2:ft,style:Ce}}],attributes:{xmlns:g,width:yt,height:It,style:{overflow:"visible"}}};return q(i)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Tt]}):(Tt.attributes.style.position="absolute",l.HTMLResult.success(Tt))}}class Ut extends t.XFAObject{constructor(i){super(f,"linear",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["toRight","toBottom","toLeft","toTop"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){i=i?i[n.$toStyle]():"#FFFFFF";const U=this.type.replace(/([RBLT])/," $1").toLowerCase(),be=this.color?this.color[n.$toStyle]():"#000000";return`linear-gradient(${U}, ${i}, ${be})`}}class Ie extends t.ContentObject{constructor(i){super(f,"lockDocument"),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){this[n.$content]=(0,l.getStringOption)(this[n.$content],["auto","0","1"])}}class ve extends t.XFAObject{constructor(i){super(f,"manifest",!0),this.action=(0,l.getStringOption)(i.action,["include","all","exclude"]),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.ref=new t.XFAObjectArray}}class Te extends t.XFAObject{constructor(i){super(f,"margin",!0),this.bottomInset=(0,l.getMeasurement)(i.bottomInset,"0"),this.id=i.id||"",this.leftInset=(0,l.getMeasurement)(i.leftInset,"0"),this.rightInset=(0,l.getMeasurement)(i.rightInset,"0"),this.topInset=(0,l.getMeasurement)(i.topInset,"0"),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$toStyle](){return{margin:(0,e.measureToString)(this.topInset)+" "+(0,e.measureToString)(this.rightInset)+" "+(0,e.measureToString)(this.bottomInset)+" "+(0,e.measureToString)(this.leftInset)}}}class De extends t.XFAObject{constructor(i){super(f,"mdp"),this.id=i.id||"",this.permissions=(0,l.getInteger)({data:i.permissions,defaultValue:2,validate:U=>U===1||U===3}),this.signatureType=(0,l.getStringOption)(i.signatureType,["filler","author"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Le extends t.XFAObject{constructor(i){super(f,"medium"),this.id=i.id||"",this.imagingBBox=(0,l.getBBox)(i.imagingBBox),this.long=(0,l.getMeasurement)(i.long),this.orientation=(0,l.getStringOption)(i.orientation,["portrait","landscape"]),this.short=(0,l.getMeasurement)(i.short),this.stock=i.stock||"",this.trayIn=(0,l.getStringOption)(i.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,l.getStringOption)(i.trayOut,["auto","delegate"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Qe extends t.XFAObject{constructor(i){super(f,"message",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.text=new t.XFAObjectArray}}class Be extends t.XFAObject{constructor(i){super(f,"numericEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Oe;const U=(0,e.toStyle)(this,"border","font","margin"),be=this[n.$getParent]()[n.$getParent](),Ce={name:"input",attributes:{type:"text",fieldId:be[n.$uid],dataId:((Oe=be[n.$data])==null?void 0:Oe[n.$uid])||be[n.$uid],class:["xfaTextfield"],style:U,"aria-label":r(be),"aria-required":!1}};return c(be)&&(Ce.attributes["aria-required"]=!0,Ce.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Ce]})}}class Pe extends t.XFAObject{constructor(i){super(f,"occur",!0),this.id=i.id||"",this.initial=i.initial!==""?(0,l.getInteger)({data:i.initial,defaultValue:"",validate:U=>!0}):"",this.max=i.max!==""?(0,l.getInteger)({data:i.max,defaultValue:1,validate:U=>!0}):"",this.min=i.min!==""?(0,l.getInteger)({data:i.min,defaultValue:1,validate:U=>!0}):"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$clean](){const i=this[n.$getParent](),U=this.min;this.min===""&&(this.min=i instanceof et||i instanceof at?0:1),this.max===""&&(U===""?this.max=i instanceof et||i instanceof at?-1:1:this.max=this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=i instanceof cn?1:this.min)}}class He extends t.StringObject{constructor(i){super(f,"oid"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}}class st extends t.XFAObject{constructor(i){super(f,"oids",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.oid=new t.XFAObjectArray}}class xt extends t.XFAObject{constructor(i){super(f,"overflow"),this.id=i.id||"",this.leader=i.leader||"",this.target=i.target||"",this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$getExtra](){if(!this[n.$extra]){const i=this[n.$getParent](),U=this[n.$getTemplateRoot](),be=U[n.$searchNode](this.target,i
48),Ce=U[n.$searchNode](this.leader,i),Oe=U[n.$searchNode](this.trailer,i);this[n.$extra]={target:(be==null?void 0:be[0])||null,leader:(Ce==null?void 0:Ce[0])||null,trailer:(Oe==null?void 0:Oe[0])||null,addLeader:!1,addTrailer:!1}}return this[n.$extra]}}class et extends t.XFAObject{constructor(i){super(f,"pageArea",!0),this.blankOrNotBlank=(0,l.getStringOption)(i.blankOrNotBlank,["any","blank","notBlank"]),this.id=i.id||"",this.initialNumber=(0,l.getInteger)({data:i.initialNumber,defaultValue:1,validate:U=>!0}),this.name=i.name||"",this.numbered=(0,l.getInteger)({data:i.numbered,defaultValue:1,validate:U=>!0}),this.oddOrEven=(0,l.getStringOption)(i.oddOrEven,["any","even","odd"]),this.pagePosition=(0,l.getStringOption)(i.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new t.XFAObjectArray,this.contentArea=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.subform=new t.XFAObjectArray}[n.$isUsable](){return this[n.$extra]?!this.occur||this.occur.max===-1||this[n.$extra].numberOfUse<this.occur.max:(this[n.$extra]={numberOfUse:0},!0)}[n.$cleanPage](){delete this[n.$extra]}[n.$getNextPage](){this[n.$extra]||(this[n.$extra]={numberOfUse:0});const i=this[n.$getParent]();return i.relation==="orderedOccurrence"&&this[n.$isUsable]()?(this[n.$extra].numberOfUse+=1,this):i[n.$getNextPage]()}[n.$getAvailableSpace](){return this[n.$extra].space||{width:0,height:0}}[n.$toHTML](){this[n.$extra]||(this[n.$extra]={numberOfUse:1});const i=[];this[n.$extra].children=i;const U=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(U.width=(0,e.measureToString)(this.medium.short),U.height=(0,e.measureToString)(this.medium.long),this[n.$extra].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){const be=U.width;U.width=U.height,U.height=be,this[n.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,V.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[n.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[n.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),l.HTMLResult.success({name:"div",children:i,attributes:{class:["xfaPage"],id:this[n.$uid],style:U,xfaName:this.name}})}}class at extends t.XFAObject{constructor(i){super(f,"pageSet",!0),this.duplexImposition=(0,l.getStringOption)(i.duplexImposition,["longEdge","shortEdge"]),this.id=i.id||"",this.name=i.name||"",this.relation=(0,l.getStringOption)(i.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.occur=null,this.pageArea=new t.XFAObjectArray,this.pageSet=new t.XFAObjectArray}[n.$cleanPage](){for(const i of this.pageArea.children)i[n.$cleanPage]();for(const i of this.pageSet.children)i[n.$cleanPage]()}[n.$isUsable](){return!this.occur||this.occur.max===-1||this[n.$extra].numberOfUse<this.occur.max}[n.$getNextPage](){if(this[n.$extra]||(this[n.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),this.relation==="orderedOccurrence"){if(this[n.$extra].pageIndex+1<this.pageArea.children.length)return this[n.$extra].pageIndex+=1,this.pageArea.children[this[n.$extra].pageIndex][n.$getNextPage]();if(this[n.$extra].pageSetIndex+1<this.pageSet.children.length)return this[n.$extra].pageSetIndex+=1,this.pageSet.children[this[n.$extra].pageSetIndex][n.$getNextPage]();if(this[n.$isUsable]())return this[n.$extra].numberOfUse+=1,this[n.$extra].pageIndex=-1,this[n.$extra].pageSetIndex=-1,this[n.$getNextPage]();const Oe=this[n.$getParent]();return Oe instanceof at?Oe[n.$getNextPage]():(this[n.$cleanPage](),this[n.$getNextPage]())}const i=this[n.$getTemplateRoot]()[n.$extra].pageNumber,U=i%2===0?"even":"odd",be=i===0?"first":"rest";let Ce=this.pageArea.children.find(Oe=>Oe.oddOrEven===U&&Oe.pagePosition===be);return Ce||(Ce=this.pageArea.children.find(Oe=>Oe.oddOrEven==="any"&&Oe.pagePosition===be),Ce)||(Ce=this.pageArea.children.find(Oe=>Oe.oddOrEven==="any"&&Oe.pagePosition==="any"),Ce)?Ce:this.pageArea.children[0]}}class ut extends t.XFAObject{constructor(i){super(f,"para",!0),this.hAlign=(0,l.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.lineHeight=i.lineHeight?(0,l.getMeasurement)(i.lineHeight,"0pt"):"",this.marginLeft=i.marginLeft?(0,l.getMeasurement)(i.marginLeft,"0pt"):"",this.marginRight=i.marginRight?(0,l.getMeasurement)(i.marginRight,"0pt"):"",this.orphans=(0,l.getInteger)({data:i.orphans,defaultValue:0,validate:U=>U>=0}),this.preserve=i.preserve||"",this.radixOffset=i.radixOffset?(0,l.getMeasurement)(i.radixOffset,"0pt"):"",this.spaceAbove=i.spaceAbove?(0,l.getMeasurement)(i.spaceAbove,"0pt"):"",this.spaceBelow=i.spaceBelow?(0,l.getMeasurement)(i.spaceBelow,"0pt"):"",this.tabDefault=i.tabDefault?(0,l.getMeasurement)(this.tabDefault):"",this.tabStops=(i.tabStops||"").trim().split(/\s+/).map((U,be)=>be%2===1?(0,l.getMeasurement)(U):U),this.textIndent=i.textIndent?(0,l.getMeasurement)(i.textIndent,"0pt"):"",this.use=i.use||"",this.usehref=i.usehref||"",this.vAlign=(0,l.getStringOption)(i.vAlign,["top","bottom","middle"]),this.widows=(0,l.getInteger)({data:i.widows,defaultValue:0,validate:U=>U>=0}),this.hyphenation=null}[n.$toStyle](){const i=(0,e.toStyle)(this,"hAlign");return this.marginLeft!==""&&(i.paddingLeft=(0,e.measureToString)(this.marginLeft)),this.marginRight!==""&&(i.paddingight=(0,e.measureToString)(this.marginRight)),this.spaceAbove!==""&&(i.paddingTop=(0,e.measureToString)(this.spaceAbove)),this.spaceBelow!==""&&(i.paddingBottom=(0,e.measureToString)(this.spaceBelow)),this.textIndent!==""&&(i.textIndent=(0,e.measureToString)(this.textIndent),(0,e.fixTextIndent)(i)),this.lineHeight>0&&(i.lineHeight=(0,e.measureToString)(this.lineHeight)),this.tabDefault!==""&&(i.tabSize=(0,e.measureToString)(this.tabDefault)),this.tabStops.length>0,this.hyphenatation&&Object.assign(i,this.hyphenatation[n.$toStyle]()),i}}class qe extends t.XFAObject{constructor(i){super(f,"passwordEdit",!0),this.hScrollPolicy=(0,l.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.passwordChar=i.passwordChar||"*",this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}}class rt extends t.XFAObject{constructor(i){super(f,"pattern",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){i=i?i[n.$toStyle]():"#FFFFFF";const U=this.color?this.color[n.$toStyle]():"#000000",be=5,Ce="repeating-linear-gradient",Oe=`${i},${i} ${be}px,${U} ${be}px,${U} ${2*be}px`;switch(this.type){case"crossHatch":return`${Ce}(to top,${Oe}) ${Ce}(to right,${Oe})`;case"crossDiagonal":return`${Ce}(45deg,${Oe}) ${Ce}(-45deg,${Oe})`;case"diagonalLeft":return`${Ce}(45deg,${Oe})`;case"diagonalRight":return`${Ce}(-45deg,${Oe})`;case"horizontal":return`${Ce}(to top,${Oe})`;case"vertical":return`${Ce}(to right,${Oe})`}return""}}class _e extends t.StringObject{constructor(i){super(f,"picture"),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class ht extends t.XFAObject{constructor(i){super(f,"proto",!0),this.appearanceFilter=new t.XFAObjectArray,this.arc=new t.XFAObjectArray,this.area=new t.XFAObjectArray,this.assist=new t.XFAObjectArray,this.barcode=new t.XFAObjectArray,this.bindItems=new t.XFAObjectArray,this.bookend=new t.XFAObjectArray,this.boolean=new t.XFAObjectArray,this.border=new t.XFAObjectArray,this.break=new t.XFAObjectArray,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.button=new t.XFAObjectArray,this.calculate=new t.XFAObjectArray,this.caption=new t.XFAObjectArray,this.certificate=new t.XFAObjectArray,this.certificates=new t.XFAObjectArray,this.checkButton=new t.XFAObjectArray,this.choiceList=new t.XFAObjectArray,this.color=new t.XFAObjectArray,this.comb=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.contentArea=new t.XFAObjectArray,this.corner=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.dateTimeEdit=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.defaultUi=new t.XFAObjectArray,this.desc=new t.XFAObjectArray,this.digestMethod=new t.XFAObjectArray,this.digestMethods=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.edge=new t.XFAObjectArray,this.encoding=new t.XFAObjectArray,this.encodings=new t.XFAObjectArray,this.encrypt=new t.XFAObjectArray,this.encryptData=new t.XFAObjectArray,this.encryption=new t.XFAObjectArray,this.encryptionMethod=new t.XFAObjectArray,this.encryptionMethods=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.exObject=ne
48w t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.execute=new t.XFAObjectArray,this.extras=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.fill=new t.XFAObjectArray,this.filter=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.font=new t.XFAObjectArray,this.format=new t.XFAObjectArray,this.handler=new t.XFAObjectArray,this.hyphenation=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.imageEdit=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.issuers=new t.XFAObjectArray,this.items=new t.XFAObjectArray,this.keep=new t.XFAObjectArray,this.keyUsage=new t.XFAObjectArray,this.line=new t.XFAObjectArray,this.linear=new t.XFAObjectArray,this.lockDocument=new t.XFAObjectArray,this.manifest=new t.XFAObjectArray,this.margin=new t.XFAObjectArray,this.mdp=new t.XFAObjectArray,this.medium=new t.XFAObjectArray,this.message=new t.XFAObjectArray,this.numericEdit=new t.XFAObjectArray,this.occur=new t.XFAObjectArray,this.oid=new t.XFAObjectArray,this.oids=new t.XFAObjectArray,this.overflow=new t.XFAObjectArray,this.pageArea=new t.XFAObjectArray,this.pageSet=new t.XFAObjectArray,this.para=new t.XFAObjectArray,this.passwordEdit=new t.XFAObjectArray,this.pattern=new t.XFAObjectArray,this.picture=new t.XFAObjectArray,this.radial=new t.XFAObjectArray,this.reason=new t.XFAObjectArray,this.reasons=new t.XFAObjectArray,this.rectangle=new t.XFAObjectArray,this.ref=new t.XFAObjectArray,this.script=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray,this.signData=new t.XFAObjectArray,this.signature=new t.XFAObjectArray,this.signing=new t.XFAObjectArray,this.solid=new t.XFAObjectArray,this.speak=new t.XFAObjectArray,this.stipple=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray,this.subjectDN=new t.XFAObjectArray,this.subjectDNs=new t.XFAObjectArray,this.submit=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.textEdit=new t.XFAObjectArray,this.time=new t.XFAObjectArray,this.timeStamp=new t.XFAObjectArray,this.toolTip=new t.XFAObjectArray,this.traversal=new t.XFAObjectArray,this.traverse=new t.XFAObjectArray,this.ui=new t.XFAObjectArray,this.validate=new t.XFAObjectArray,this.value=new t.XFAObjectArray,this.variables=new t.XFAObjectArray}}class mt extends t.XFAObject{constructor(i){super(f,"radial",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["toEdge","toCenter"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){i=i?i[n.$toStyle]():"#FFFFFF";const U=this.color?this.color[n.$toStyle]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${i},${U}`:`${U},${i}`})`}}class $t extends t.StringObject{constructor(i){super(f,"reason"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}}class ot extends t.XFAObject{constructor(i){super(f,"reasons",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.reason=new t.XFAObjectArray}}class ct extends t.XFAObject{constructor(i){super(f,"rectangle",!0),this.hand=(0,l.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.corner=new t.XFAObjectArray(4),this.edge=new t.XFAObjectArray(4),this.fill=null}[n.$toHTML](){var ft;const i=this.edge.children.length?this.edge.children[0]:new ge({}),U=i[n.$toStyle](),be=Object.create(null);((ft=this.fill)==null?void 0:ft.presence)==="visible"?Object.assign(be,this.fill[n.$toStyle]()):be.fill="transparent",be.strokeWidth=(0,e.measureToString)(i.presence==="visible"?i.thickness:0),be.stroke=U.color;const Oe=(this.corner.children.length?this.corner.children[0]:new ie({}))[n.$toStyle](),Ke={name:"svg",children:[{name:"rect",attributes:{xmlns:g,width:"100%",height:"100%",x:0,y:0,rx:Oe.radius,ry:Oe.radius,style:be}}],attributes:{xmlns:g,style:{overflow:"visible"},width:"100%",height:"100%"}},Ye=this[n.$getParent]()[n.$getParent]();return q(Ye)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Ke]}):(Ke.attributes.style.position="absolute",l.HTMLResult.success(Ke))}}class kt extends t.StringObject{constructor(i){super(f,"ref"),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Pt extends t.StringObject{constructor(i){super(f,"script"),this.binding=i.binding||"",this.contentType=i.contentType||"",this.id=i.id||"",this.name=i.name||"",this.runAt=(0,l.getStringOption)(i.runAt,["client","both","server"]),this.use=i.use||"",this.usehref=i.usehref||""}}class zt extends t.XFAObject{constructor(i){super(f,"setProperty"),this.connection=i.connection||"",this.ref=i.ref||"",this.target=i.target||""}}p.SetProperty=zt;class Zt extends t.XFAObject{constructor(i){super(f,"signData",!0),this.id=i.id||"",this.operation=(0,l.getStringOption)(i.operation,["sign","clear","verify"]),this.ref=i.ref||"",this.target=i.target||"",this.use=i.use||"",this.usehref=i.usehref||"",this.filter=null,this.manifest=null}}class Sn extends t.XFAObject{constructor(i){super(f,"signature",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["PDF1.3","PDF1.6"]),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class An extends t.XFAObject{constructor(i){super(f,"signing",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=new t.XFAObjectArray}}class kn extends t.XFAObject{constructor(i){super(f,"solid",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$toStyle](i){return i?i[n.$toStyle]():"#FFFFFF"}}class Cn extends t.StringObject{constructor(i){super(f,"speak"),this.disable=(0,l.getInteger)({data:i.disable,defaultValue:0,validate:U=>U===1}),this.id=i.id||"",this.priority=(0,l.getStringOption)(i.priority,["custom","caption","name","toolTip"]),this.rid=i.rid||"",this.use=i.use||"",this.usehref=i.usehref||""}}class vn extends t.XFAObject{constructor(i){super(f,"stipple",!0),this.id=i.id||"",this.rate=(0,l.getInteger)({data:i.rate,defaultValue:50,validate:U=>U>=0&&U<=100}),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){const U=this.rate/100;return V.Util.makeHexColor(Math.round(i.value.r*(1-U)+this.value.r*U),Math.round(i.value.g*(1-U)+this.value.g*U),Math.round(i.value.b*(1-U)+this.value.b*U))}}class un extends t.XFAObject{constructor(i){super(f,"subform",!0),this.access=(0,l.getStringOption)(i.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,l.getInteger)({data:i.allowMacro,defaultValue:0,validate:U=>U===1}),this.anchorType=(0,l.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,l.getInteger)({data:i.colSpan,defaultValue:1,validate:U=>U>=1||U===-1}
48),this.columnWidths=(i.columnWidths||"").trim().split(/\s+/).map(U=>U==="-1"?-1:(0,l.getMeasurement)(U)),this.h=i.h?(0,l.getMeasurement)(i.h):"",this.hAlign=(0,l.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.layout=(0,l.getStringOption)(i.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=i.locale||"",this.maxH=(0,l.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,l.getMeasurement)(i.maxW,"0pt"),this.mergeMode=(0,l.getStringOption)(i.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,l.getMeasurement)(i.minH,"0pt"),this.minW=(0,l.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,l.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,l.getRelevant)(i.relevant),this.restoreState=(0,l.getStringOption)(i.restoreState,["manual","auto"]),this.scope=(0,l.getStringOption)(i.scope,["name","none"]),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,l.getMeasurement)(i.w):"",this.x=(0,l.getMeasurement)(i.x,"0pt"),this.y=(0,l.getMeasurement)(i.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 t.XFAObjectArray,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.proto=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}[n.$getSubformParent](){const i=this[n.$getParent]();return i instanceof on?i[n.$getSubformParent]():i}[n.$isBindable](){return!0}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}*[n.$getContainedChildren](){yield*E(this)}[n.$flushHTML](){return(0,j.flushHTML)(this)}[n.$addHTML](i,U){(0,j.addHTML)(this,i,U)}[n.$getAvailableSpace](){return(0,j.getAvailableSpace)(this)}[n.$isSplittable](){var U;const i=this[n.$getSubformParent]();return i[n.$isSplittable]()?this[n.$extra]._isSplittable!==void 0?this[n.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[n.$extra]._isSplittable=!1,!1):(U=i.layout)!=null&&U.endsWith("-tb")&&i[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$toHTML](i){var St;if(u(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const Je=new te({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});Je[n.$globalData]=this[n.$globalData],this[n.$appendChild](Je),this.breakAfter.push(Je)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const Je=new K({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});Je[n.$globalData]=this[n.$globalData],this[n.$appendChild](Je),this.breakBefore.push(Je)}if(this.break.overflowTarget!==""){const Je=new xt({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});Je[n.$globalData]=this[n.$globalData],this[n.$appendChild](Je),this.overflow.push(Je)}this[n.$removeChild](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return l.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,V.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const Je=this.breakBefore.children[0];if(h(Je))return l.HTMLResult.breakNode(Je)}if((St=this[n.$extra])!=null&&St.afterBreakAfter)return l.HTMLResult.EMPTY;(0,e.fixDimensions)(this);const U=[],be={id:this[n.$uid],class:[]};(0,e.setAccess)(this,be.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:U,line:null,attributes:be,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,i.width),height:Math.min(this.h||1/0,i.height)},width:0,height:0,prevHeight:0,currentWidth:0});const Ce=this[n.$getTemplateRoot](),Oe=Ce[n.$extra].noLayoutFailure,je=this[n.$isSplittable]();if(je||o(this),!(0,j.checkDimensions)(this,i))return l.HTMLResult.FAILURE;const Ke=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const Je=this[n.$getSubformParent]().columnWidths;Array.isArray(Je)&&Je.length>0&&(this[n.$extra].columnWidths=Je,this[n.$extra].currentColumn=0)}const Ye=(0,e.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),ft=["xfaSubform"],yt=(0,e.layoutClass)(this);if(yt&&ft.push(yt),be.style=Ye,be.class=ft,this.name&&(be.xfaName=this.name),this.overflow){const Je=this.overflow[n.$getExtra]();Je.addLeader&&(Je.addLeader=!1,A(this,Je.leader,i))}this[n.$pushPara]();const It=this.layout==="lr-tb"||this.layout==="rl-tb",Ct=It?a:1;for(;this[n.$extra].attempt<Ct;this[n.$extra].attempt++){It&&this[n.$extra].attempt===a-1&&(this[n.$extra].numberInLine=0);const Je=this[n.$childrenToHTML]({filter:Ke,include:!0});if(Je.success)break;if(Je.isBreak())return this[n.$popPara](),Je;if(It&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine===0&&!Ce[n.$extra].noLayoutFailure){this[n.$extra].attempt=Ct;break}}if(this[n.$popPara](),je||m(this),Ce[n.$extra].noLayoutFailure=Oe,this[n.$extra].attempt===Ct)return this.overflow&&(this[n.$getTemplateRoot]()[n.$extra].overflowNode=this.overflow),je||delete this[n.$extra],l.HTMLResult.FAILURE;if(this.overflow){const Je=this.overflow[n.$getExtra]();Je.addTrailer&&(Je.addTrailer=!1,A(this,Je.trailer,i))}let Tt=0,Rt=0;this.margin&&(Tt=this.margin.leftInset+this.margin.rightInset,Rt=this.margin.topInset+this.margin.bottomInset);const gt=Math.max(this[n.$extra].width+Tt,this.w||0),_t=Math.max(this[n.$extra].height+Rt,this.h||0),Et=[this.x,this.y,gt,_t];if(this.w===""&&(Ye.width=(0,e.measureToString)(gt)),this.h===""&&(Ye.height=(0,e.measureToString)(_t)),(Ye.width==="0px"||Ye.height==="0px")&&U.length===0)return l.HTMLResult.EMPTY;const qt={name:"div",attributes:be,children:U};T(this,be);const Xt=l.HTMLResult.success((0,e.createWrapper)(this,qt),Et);if(this.breakAfter.children.length>=1){const Je=this.breakAfter.children[0];if(h(Je))return this[n.$extra].afterBreakAfter=Xt,l.HTMLResult.breakNode(Je)}return delete this[n.$extra],Xt}}class on extends t.XFAObject{constructor(i){super(f,"subformSet",!0),this.id=i.id||"",this.name=i.name||"",this.relation=(0,l.getStringOption)(i.relation,["ordered","choice","unordered"]),this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}*[n.$getContainedChildren](){yield*E(this)}[n.$getSubformParent](){let i=this[n.$getParent]();for(;!(i instanceof un);)i=i[n.$getParent]();return i}[n.$isBindable](){return!0}}class Fn extends t.ContentObject{constructor(i){super(f,"subjectDN"),this.delimiter=i.delimiter||",",this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map(i=>
48(i=i.split("=",2),i[0]=i[0].trim(),i)))}}class In extends t.XFAObject{constructor(i){super(f,"subjectDNs",!0),this.id=i.id||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.subjectDN=new t.XFAObjectArray}}class On extends t.XFAObject{constructor(i){super(f,"submit",!0),this.embedPDF=(0,l.getInteger)({data:i.embedPDF,defaultValue:0,validate:U=>U===1}),this.format=(0,l.getStringOption)(i.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=i.id||"",this.target=i.target||"",this.textEncoding=(0,l.getKeyword)({data:i.textEncoding?i.textEncoding.toLowerCase():"",defaultValue:"",validate:U=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(U)||U.match(/iso-8859-\d{2}/)}),this.use=i.use||"",this.usehref=i.usehref||"",this.xdpContent=i.xdpContent||"",this.encrypt=null,this.encryptData=new t.XFAObjectArray,this.signData=new t.XFAObjectArray}}class cn extends t.XFAObject{constructor(i){super(f,"template",!0),this.baseProfile=(0,l.getStringOption)(i.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new t.XFAObjectArray}[n.$finalize](){this.subform.children.length===0&&(0,V.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,V.warn)("XFA - Several subforms in template node: please file a bug."),this[n.$tabIndex]=y}[n.$isSplittable](){return!0}[n.$searchNode](i,U){return i.startsWith("#")?[this[n.$ids].get(i.slice(1))]:(0,I.searchNode)(this,U,i,!0,!0)}*[n.$toPages](){var Rt,gt,_t;if(!this.subform.children.length)return l.HTMLResult.success({name:"div",children:[]});this[n.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const i=this.subform.children[0];i.pageSet[n.$cleanPage]();const U=i.pageSet.pageArea.children,be={name:"div",children:[]};let Ce=null,Oe=null,je=null;if(i.breakBefore.children.length>=1?(Oe=i.breakBefore.children[0],je=Oe.target):i.subform.children.length>=1&&i.subform.children[0].breakBefore.children.length>=1?(Oe=i.subform.children[0].breakBefore.children[0],je=Oe.target):(Rt=i.break)!=null&&Rt.beforeTarget?(Oe=i.break,je=Oe.beforeTarget):i.subform.children.length>=1&&((gt=i.subform.children[0].break)!=null&>.beforeTarget)&&(Oe=i.subform.children[0].break,je=Oe.beforeTarget),Oe){const Et=this[n.$searchNode](je,Oe[n.$getParent]());Et instanceof et&&(Ce=Et,Oe[n.$extra]={})}Ce||(Ce=U[0]),Ce[n.$extra]={numberOfUse:1};const Ke=Ce[n.$getParent]();Ke[n.$extra]={numberOfUse:1,pageIndex:Ke.pageArea.children.indexOf(Ce),pageSetIndex:0};let Ye,ft=null,yt=null,It=!0,Ct=0,Tt=0;for(;;){if(It)Ct=0;else if(be.children.pop(),++Ct===_)return(0,V.warn)("XFA - Something goes wrong: please file a bug."),be;Ye=null,this[n.$extra].currentPageArea=Ce;const Et=Ce[n.$toHTML]().html;be.children.push(Et),ft&&(this[n.$extra].noLayoutFailure=!0,Et.children.push(ft[n.$toHTML](Ce[n.$extra].space).html),ft=null),yt&&(this[n.$extra].noLayoutFailure=!0,Et.children.push(yt[n.$toHTML](Ce[n.$extra].space).html),yt=null);const qt=Ce.contentArea.children,Xt=Et.children.filter(Je=>Je.attributes.class.includes("xfaContentarea"));It=!1,this[n.$extra].firstUnsplittable=null,this[n.$extra].noLayoutFailure=!1;const St=Je=>{var Wt;const Vt=i[n.$flushHTML]();Vt&&(It||(It=((Wt=Vt.children)==null?void 0:Wt.length)>0),Xt[Je].children.push(Vt))};for(let Je=Tt,Vt=qt.length;Je<Vt;Je++){const Wt=this[n.$extra].currentContentArea=qt[Je],Jt={width:Wt.w,height:Wt.h};Tt=0,ft&&(Xt[Je].children.push(ft[n.$toHTML](Jt).html),ft=null),yt&&(Xt[Je].children.push(yt[n.$toHTML](Jt).html),yt=null);const Yt=i[n.$toHTML](Jt);if(Yt.success)return Yt.html?(It||(It=((_t=Yt.html.children)==null?void 0:_t.length)>0),Xt[Je].children.push(Yt.html)):!It&&be.children.length>1&&be.children.pop(),be;if(Yt.isBreak()){const Ht=Yt.breakNode;if(St(Je),Ht.targetType==="auto")continue;Ht.leader&&(ft=this[n.$searchNode](Ht.leader,Ht[n.$getParent]()),ft=ft?ft[0]:null),Ht.trailer&&(yt=this[n.$searchNode](Ht.trailer,Ht[n.$getParent]()),yt=yt?yt[0]:null),Ht.targetType==="pageArea"?(Ye=Ht[n.$extra].target,Je=1/0):Ht[n.$extra].target?(Ye=Ht[n.$extra].target,Tt=Ht[n.$extra].index+1,Je=1/0):Je=Ht[n.$extra].index;continue}if(this[n.$extra].overflowNode){const Ht=this[n.$extra].overflowNode;this[n.$extra].overflowNode=null;const hn=Ht[n.$getExtra](),nn=hn.target;hn.addLeader=hn.leader!==null,hn.addTrailer=hn.trailer!==null,St(Je);const oa=Je;if(Je=1/0,nn instanceof et)Ye=nn;else if(nn instanceof Y){const gn=qt.indexOf(nn);gn!==-1?gn>oa?Je=gn-1:Tt=gn:(Ye=nn[n.$getParent](),Tt=Ye.contentArea.children.indexOf(nn))}continue}St(Je)}this[n.$extra].pageNumber+=1,Ye&&(Ye[n.$isUsable]()?Ye[n.$extra].numberOfUse+=1:Ye=null),Ce=Ye||Ce[n.$getNextPage](),yield null}}}p.Template=cn;class fn extends t.ContentObject{constructor(i){super(f,"text"),this.id=i.id||"",this.maxChars=(0,l.getInteger)({data:i.maxChars,defaultValue:0,validate:U=>U>=0}),this.name=i.name||"",this.rid=i.rid||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$acceptWhitespace](){return!0}[n.$onChild](i){return i[n.$namespaceId]===P.NamespaceIds.xhtml.id?(this[n.$content]=i,!0):((0,V.warn)(`XFA - Invalid content in Text: ${i[n.$nodeName]}.`),!1)}[n.$onText](i){this[n.$content]instanceof t.XFAObject||super[n.$onText](i)}[n.$finalize](){typeof this[n.$content]=="string"&&(this[n.$content]=this[n.$content].replaceAll(`\r 49`,` 50`))}[n.$getExtra](){return typeof this[n.$content]=="string"?this[n.$content].split(/[\u2029\u2028\n]/).reduce((i,U)=>(U&&i.push(U),i),[]).join(` 51`):this[n.$content][n.$text]()}[n.$toHTML](i){if(typeof this[n.$content]=="string"){const U=s(this[n.$content]).html;return this[n.$content].includes("\u2029")?(U.name="div",U.children=[],this[n.$content].split("\u2029").map(be=>be.split(/[\u2028\n]/).reduce((Ce,Oe)=>(Ce.push({name:"span",value:Oe},{name:"br"}
51),Ce),[])).forEach(be=>{U.children.push({name:"p",children:be})})):/[\u2028\n]/.test(this[n.$content])&&(U.name="div",U.children=[],this[n.$content].split(/[\u2028\n]/).forEach(be=>{U.children.push({name:"span",value:be},{name:"br"})})),l.HTMLResult.success(U)}return this[n.$content][n.$toHTML](i)}}p.Text=fn;class dn extends t.XFAObject{constructor(i){super(f,"textEdit",!0),this.allowRichText=(0,l.getInteger)({data:i.allowRichText,defaultValue:0,validate:U=>U===1}),this.hScrollPolicy=(0,l.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.multiLine=(0,l.getInteger)({data:i.multiLine,defaultValue:"",validate:U=>U===0||U===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.vScrollPolicy=(0,l.getStringOption)(i.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Oe,je;const U=(0,e.toStyle)(this,"border","font","margin");let be;const Ce=this[n.$getParent]()[n.$getParent]();return this.multiLine===""&&(this.multiLine=Ce instanceof pe?1:0),this.multiLine===1?be={name:"textarea",attributes:{dataId:((Oe=Ce[n.$data])==null?void 0:Oe[n.$uid])||Ce[n.$uid],fieldId:Ce[n.$uid],class:["xfaTextfield"],style:U,"aria-label":r(Ce),"aria-required":!1}}:be={name:"input",attributes:{type:"text",dataId:((je=Ce[n.$data])==null?void 0:je[n.$uid])||Ce[n.$uid],fieldId:Ce[n.$uid],class:["xfaTextfield"],style:U,"aria-label":r(Ce),"aria-required":!1}},c(Ce)&&(be.attributes["aria-required"]=!0,be.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[be]})}}class Tn extends t.StringObject{constructor(i){super(f,"time"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=this[n.$content].trim();this[n.$content]=i?new Date(i):null}[n.$toHTML](i){return s(this[n.$content]?this[n.$content].toString():"")}}class Mn extends t.XFAObject{constructor(i){super(f,"timeStamp"),this.id=i.id||"",this.server=i.server||"",this.type=(0,l.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Pn extends t.StringObject{constructor(i){super(f,"toolTip"),this.id=i.id||"",this.rid=i.rid||"",this.use=i.use||"",this.usehref=i.usehref||""}}class En extends t.XFAObject{constructor(i){super(f,"traversal",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.traverse=new t.XFAObjectArray}}class Nn extends t.XFAObject{constructor(i){super(f,"traverse",!0),this.id=i.id||"",this.operation=(0,l.getStringOption)(i.operation,["next","back","down","first","left","right","up"]),this.ref=i.ref||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[n.$isTransparent](){return!1}}class ln extends t.XFAObject{constructor(i){super(f,"ui",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[n.$getExtra](){if(this[n.$extra]===void 0){for(const i of Object.getOwnPropertyNames(this)){if(i==="extras"||i==="picture")continue;const U=this[i];if(U instanceof t.XFAObject)return this[n.$extra]=U,U}this[n.$extra]=null}return this[n.$extra]}[n.$toHTML](i){const U=this[n.$getExtra]();return U?U[n.$toHTML](i):l.HTMLResult.EMPTY}}class Dn extends t.XFAObject{constructor(i){super(f,"validate",!0),this.formatTest=(0,l.getStringOption)(i.formatTest,["warning","disabled","error"]),this.id=i.id||"",this.nullTest=(0,l.getStringOption)(i.nullTest,["disabled","error","warning"]),this.scriptTest=(0,l.getStringOption)(i.scriptTest,["error","disabled","warning"]),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class en extends t.XFAObject{constructor(i){super(f,"value",!0),this.id=i.id||"",this.override=(0,l.getInteger)({data:i.override,defaultValue:0,validate:U=>U===1}),this.relevant=(0,l.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[n.$setValue](i){var Ce;const U=this[n.$getParent]();if(U instanceof Ee&&(Ce=U.ui)!=null&&Ce.imageEdit){this.image||(this.image=new ze({}),this[n.$appendChild](this.image)),this.image[n.$content]=i[n.$content];return}const be=i[n.$nodeName];if(this[be]!==null){this[be][n.$content]=i[n.$content];return}
51for(const Oe of Object.getOwnPropertyNames(this)){const je=this[Oe];je instanceof t.XFAObject&&(this[Oe]=null,this[n.$removeChild](je))}this[i[n.$nodeName]]=i,this[n.$appendChild](i)}[n.$text](){if(this.exData)return typeof this.exData[n.$content]=="string"?this.exData[n.$content].trim():this.exData[n.$content][n.$text]().trim();for(const i of Object.getOwnPropertyNames(this)){if(i==="image")continue;const U=this[i];if(U instanceof t.XFAObject)return(U[n.$content]||"").toString().trim()}return null}[n.$toHTML](i){for(const U of Object.getOwnPropertyNames(this)){const be=this[U];if(be instanceof t.XFAObject)return be[n.$toHTML](i)}return l.HTMLResult.EMPTY}}p.Value=en;class Rn extends t.XFAObject{constructor(i){super(f,"variables",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.manifest=new t.XFAObjectArray,this.script=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}[n.$isTransparent](){return!0}}class tn{static[P.$buildXFAObject](i,U){if(tn.hasOwnProperty(i)){const be=tn[i](U);return be[n.$setSetAttributes](U),be}}static appearanceFilter(i){return new L(i)}static arc(i){return new H(i)}static area(i){return new F(i)}static assist(i){return new M(i)}static barcode(i){return new k(i)}static bind(i){return new x(i)}static bindItems(i){return new C(i)}static bookend(i){return new G(i)}static boolean(i){return new Z(i)}static border(i){return new ae(i)}static break(i){return new oe(i)}static breakAfter(i){return new te(i)}static breakBefore(i){return new K(i)}static button(i){return new v(i)}static calculate(i){return new $(i)}static caption(i){return new d(i)}static certificate(i){return new w(i)}static certificates(i){return new S(i)}static checkButton(i){return new z(i)}static choiceList(i){return new W(i)}static color(i){return new ne(i)}static comb(i){return new Q(i)}static connect(i){return new D(i)}static contentArea(i){return new Y(i)}static corner(i){return new ie(i)}static date(i){return new ee(i)}static dateTime(i){return new se(i)}static dateTimeEdit(i){return new ce(i)}static decimal(i){return new le(i)}static defaultUi(i){return new de(i)}static desc(i){return new he(i)}static digestMethod(i){return new me(i)}static digestMethods(i){return new Se(i)}static draw(i){return new pe(i)}static edge(i){return new ge(i)}static encoding(i){return new Ae(i)}static encodings(i){return new Me(i)}static encrypt(i){return new xe(i)}static encryptData(i){return new ue(i)}static encryption(i){return new fe(i)}static encryptionMethod(i){return new ke(i)}static encryptionMethods(i){return new ye(i)}static event(i){return new $e(i)}static exData(i){return new Xe(i)}static exObject(i){return new Ze(i)}static exclGroup(i){return new Fe(i)}static execute(i){return new nt(i)}static extras(i){return new We(i)}static field(i){return new Ee(i)}static fill(i){return new Ve(i)}static filter(i){return new tt(i)}static float(i){return new Ne(i)}static font(i){return new wt(i)}static format(i){return new dt(i)}static handler(i){return new pt(i)}static hyphenation(i){return new Ot(i)}static image(i){return new ze(i)}static imageEdit(i){return new Ge(i)}static integer(i){return new Ue(i)}static issuers(i){return new bt(i)}static items(i){return new vt(i)}static keep(i){return new At(i)}static keyUsage(i){return new lt(i)}static line(i){return new Nt(i)}static linear(i){return new Ut(i)}static lockDocument(i){return new Ie(i)}static manifest(i){return new ve(i)}static margin(i){return new Te(i)}static mdp(i){return new De(i)}static medium(i){return new Le(i)}static message(i){return new Qe(i)}static numericEdit(i){return new Be(i)}static occur(i){return new Pe(i)}static oid(i){return new He(i)}static oids(i){return new st(i)}static overflow(i){return new xt(i)}static pageArea(i){return new et(i)}static pageSet(i){return new at(i)}static para(i){return new ut(i)}static passwordEdit(i){return new qe(i)}static pattern(i){return new rt(i)}static picture(i){return new _e(i)}static proto(i){return new ht(i)}static radial(i){return new mt(i)}static reason(i){return new $t(i)}static reasons(i){return new ot(i)}static rectangle(i){return new ct(i)}static ref(i){return new kt(i)}static script(i){return new Pt(i)}static setProperty(i){return new zt(i)}static signData(i){return new Zt(i)}static signature(i){return new Sn(i)}static signing(i){return new An(i)}static solid(i){return new kn(i)}static speak(i){return new Cn(i)}static stipple(i){return new vn(i)}static subform(i){return new un(i)}static subformSet(i){return new on(i)}static subjectDN(i){return new Fn(i)}static subjectDNs(i){return new In(i)}static submit(i){return new On(i)}static template(i){return new cn(i)}static text(i){return new fn(i)}static textEdit(i){return new dn(i)}static time(i){return new Tn(i)}static timeStamp(i){return new Mn(i)}static toolTip(i){return new Pn(i)}static traversal(i){return new En(i)}static traverse(i){return new Nn(i)}static ui(i){return new ln(i)}static validate(i){return new Dn(i)}static value(i){return new en(i)}static variables(i){return new Rn(i)}}p.TemplateNamespace=tn},(Re,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.NamespaceIds=p.$buildXFAObject=void 0;const re=Symbol();p.$buildXFAObject=re;const n={config:{id:0,check:P=>P.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:P=>P==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:P=>P==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:P=>P==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:P=>
51P.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:P=>P==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:P=>P==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:P=>P==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:P=>P==="http://ns.adobe.com/xmpmeta/"}};p.NamespaceIds=n},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.addHTML=t,p.checkDimensions=J,p.flushHTML=e,p.getAvailableSpace=l;var n=re(78),P=re(83);function j(B,I){return{name:"div",attributes:{class:[B.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:I}}function e(B){if(!B[n.$extra])return null;const f={name:"div",attributes:B[n.$extra].attributes,children:B[n.$extra].children};if(B[n.$extra].failingNode){const g=B[n.$extra].failingNode[n.$flushHTML]();g&&(B.layout.endsWith("-tb")?f.children.push(j(B,[g])):f.children.push(g))}return f.children.length===0?null:f}function t(B,I,f){const g=B[n.$extra],a=g.availableSpace,[_,y,O,N]=f;switch(B.layout){case"position":{g.width=Math.max(g.width,_+O),g.height=Math.max(g.height,y+N),g.children.push(I);break}case"lr-tb":case"rl-tb":(!g.line||g.attempt===1)&&(g.line=j(B,[]),g.children.push(g.line),g.numberInLine=0),g.numberInLine+=1,g.line.children.push(I),g.attempt===0?(g.currentWidth+=O,g.height=Math.max(g.height,g.prevHeight+N)):(g.currentWidth=O,g.prevHeight=g.height,g.height+=N,g.attempt=0),g.width=Math.max(g.width,g.currentWidth);break;case"rl-row":case"row":{g.children.push(I),g.width+=O,g.height=Math.max(g.height,N);const X=(0,P.measureToString)(g.height);for(const R of g.children)R.attributes.style.height=X;break}case"table":{g.width=Math.min(a.width,Math.max(g.width,O)),g.height+=N,g.children.push(I);break}case"tb":{g.width=Math.min(a.width,Math.max(g.width,O)),g.height+=N,g.children.push(I);break}}}function l(B){const I=B[n.$extra].availableSpace,f=B.margin?B.margin.topInset+B.margin.bottomInset:0,g=B.margin?B.margin.leftInset+B.margin.rightInset:0;switch(B.layout){case"lr-tb":case"rl-tb":return B[n.$extra].attempt===0?{width:I.width-g-B[n.$extra].currentWidth,height:I.height-f-B[n.$extra].prevHeight}:{width:I.width-g,height:I.height-f-B[n.$extra].height};case"rl-row":case"row":return{width:B[n.$extra].columnWidths.slice(B[n.$extra].currentColumn).reduce((_,y)=>_+y),height:I.height-g};case"table":case"tb":return{width:I.width-g,height:I.height-f-B[n.$extra].height};case"position":default:return I}}function V(B){let I=B.w===""?NaN:B.w,f=B.h===""?NaN:B.h,[g,a]=[0,0];switch(B.anchorType||""){case"bottomCenter":[g,a]=[I/2,f];break;case"bottomLeft":[g,a]=[0,f];break;case"bottomRight":[g,a]=[I,f];break;case"middleCenter":[g,a]=[I/2,f/2];break;case"middleLeft":[g,a]=[0,f/2];break;case"middleRight":[g,a]=[I,f/2];break;case"topCenter":[g,a]=[I/2,0];break;case"topRight":[g,a]=[I,0];break}let _,y;switch(B.rotate||0){case 0:[_,y]=[-g,-a];break;case 90:[_,y]=[-a,g],[I,f]=[f,-I];break;case 180:[_,y]=[g,a],[I,f]=[-I,-f];break;case 270:[_,y]=[a,-g],[I,f]=[-f,I];break}return[B.x+_+Math.min(0,I),B.y+y+Math.min(0,f),Math.abs(I),Math.abs(f)]}function J(B,I){var N;if(B[n.$getTemplateRoot]()[n.$extra].firstUnsplittable===null||B.w===0||B.h===0)return!0;const f=2,g=B[n.$getSubformParent](),a=((N=g[n.$extra])==null?void 0:N.attempt)||0,[,_,y,O]=V(B);switch(g.layout){case"lr-tb":case"rl-tb":return a===0?B[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?B.w!==""?Math.round(y-I.width)<=f:I.width>f:B.h!==""&&Math.round(O-I.height)>f?!1:B.w!==""?Math.round(y-I.width)<=f?!0:g[n.$extra].numberInLine===0?I.height>f:!1:I.width>f:B[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:B.h!==""&&Math.round(O-I.height)>f?!1:B.w===""||Math.round(y-I.width)<=f?I.height>f:g[n.$isThereMoreWidth]()?!1:I.height>f;case"table":case"tb":return B[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:B.h!==""&&!B[n.$isSplittable]()?Math.round(O-I.height)<=f:B.w===""||Math.round(y-I.width)<=f?I.height>f:g[n.$isThereMoreWidth]()?!1:I.height>f;case"position":if(B[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||B.h===""||Math.round(O+_-I.height)<=f)return!0;const X=B[n.$getTemplateRoot]()[n.$extra].currentContentArea;return O+_>X.h;case"rl-row":case"row":return B[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:B.h!==""?Math.round(O-I.height)<=f:!0;default:return!0}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.computeBbox=g,p.createWrapper=O,p.fixDimensions=a,p.fixTextIndent=N,p.fixURL=c,p.isPrintOnly=R,p.layoutClass=_,p.layoutNode=f,p.measureToString=V,p.setAccess=X,p.setFontFamily=E,p.setMinMaxDimensions=B,p.setPara=b,p.toStyle=y;var n=re(78),P=re(2),j=re(84),e=re(85),t=re(86),l=re(87);function V(u){return typeof u=="string"?"0px":Number.isInteger(u)?`${u}px`:`${u.toFixed(2)}px`}const J={anchorType(u,T){const r=u[n.$getSubformParent]();if(!(!r||r.layout&&r.layout!=="position"))switch("transform"in T||(T.transform=""),u.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;
51case"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)";break}},dimensions(u,T){var m;const r=u[n.$getSubformParent]();let s=u.w;const o=u.h;if((m=r.layout)!=null&&m.includes("row")){const h=r[n.$extra],A=u.colSpan;let L;A===-1?(L=h.columnWidths.slice(h.currentColumn).reduce((H,F)=>H+F,0),h.currentColumn=0):(L=h.columnWidths.slice(h.currentColumn,h.currentColumn+A).reduce((H,F)=>H+F,0),h.currentColumn=(h.currentColumn+u.colSpan)%h.columnWidths.length),isNaN(L)||(s=u.w=L)}T.width=s!==""?V(s):"auto",T.height=o!==""?V(o):"auto"},position(u,T){const r=u[n.$getSubformParent]();r!=null&&r.layout&&r.layout!=="position"||(T.position="absolute",T.left=V(u.x),T.top=V(u.y))},rotate(u,T){u.rotate&&("transform"in T||(T.transform=""),T.transform+=`rotate(-${u.rotate}deg)`,T.transformOrigin="top left")},presence(u,T){switch(u.presence){case"invisible":T.visibility="hidden";break;case"hidden":case"inactive":T.display="none";break}},hAlign(u,T){if(u[n.$nodeName]==="para")switch(u.hAlign){case"justifyAll":T.textAlign="justify-all";break;case"radix":T.textAlign="left";break;default:T.textAlign=u.hAlign}else switch(u.hAlign){case"left":T.alignSelf="start";break;case"center":T.alignSelf="center";break;case"right":T.alignSelf="end";break}},margin(u,T){u.margin&&(T.margin=u.margin[n.$toStyle]().margin)}};function B(u,T){u[n.$getSubformParent]().layout==="position"&&(u.minW>0&&(T.minWidth=V(u.minW)),u.maxW>0&&(T.maxWidth=V(u.maxW)),u.minH>0&&(T.minHeight=V(u.minH)),u.maxH>0&&(T.maxHeight=V(u.maxH)))}function I(u,T,r,s,o,m){const h=new t.TextMeasure(T,r,s,o);return typeof u=="string"?h.addString(u):u[n.$pushGlyphs](h),h.compute(m)}function f(u,T){let r=null,s=null,o=!1;if((!u.w||!u.h)&&u.value){let m=0,h=0;u.margin&&(m=u.margin.leftInset+u.margin.rightInset,h=u.margin.topInset+u.margin.bottomInset);let A=null,L=null;u.para&&(L=Object.create(null),A=u.para.lineHeight===""?null:u.para.lineHeight,L.top=u.para.spaceAbove===""?0:u.para.spaceAbove,L.bottom=u.para.spaceBelow===""?0:u.para.spaceBelow,L.left=u.para.marginLeft===""?0:u.para.marginLeft,L.right=u.para.marginRight===""?0:u.para.marginRight);let H=u.font;if(!H){const k=u[n.$getTemplateRoot]();let x=u[n.$getParent]();for(;x&&x!==k;){if(x.font){H=x.font;break}x=x[n.$getParent]()}}const F=(u.w||T.width)-m,M=u[n.$globalData].fontFinder;if(u.value.exData&&u.value.exData[n.$content]&&u.value.exData.contentType==="text/html"){const k=I(u.value.exData[n.$content],H,L,A,M,F);s=k.width,r=k.height,o=k.isBroken}else{const k=u.value[n.$text]();if(k){const x=I(k,H,L,A,M,F);s=x.width,r=x.height,o=x.isBroken}}s!==null&&!u.w&&(s+=m),r!==null&&!u.h&&(r+=h)}return{w:s,h:r,isBroken:o}}function g(u,T,r){let s;if(u.w!==""&&u.h!=="")s=[u.x,u.y,u.w,u.h];else{if(!r)return null;let o=u.w;if(o===""){if(u.maxW===0){const h=u[n.$getSubformParent]();o=h.layout==="position"&&h.w!==""?0:u.minW}else o=Math.min(u.maxW,r.width);T.attributes.style.width=V(o)}let m=u.h;if(m===""){if(u.maxH===0){const h=u[n.$getSubformParent]();m=h.layout==="position"&&h.h!==""?0:u.minH}else m=Math.min(u.maxH,r.height);T.attributes.style.height=V(m)}s=[u.x,u.y,o,m]}return s}function a(u){var r;const T=u[n.$getSubformParent]();if((r=T.layout)!=null&&r.includes("row")){const s=T[n.$extra],o=u.colSpan;let m;o===-1?m=s.columnWidths.slice(s.currentColumn).reduce((h,A)=>h+A,0):m=s.columnWidths.slice(s.currentColumn,s.currentColumn+o).reduce((h,A)=>h+A,0),isNaN(m)||(u.w=m)}T.layout&&T.layout!=="position"&&(u.x=u.y=0),u.layout==="table"&&u.w===""&&Array.isArray(u.columnWidths)&&(u.w=u.columnWidths.reduce((s,o)=>s+o,0))}function _(u){switch(u.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function y(u,...T){const r=Object.create(null);for(const s of T){const o=u[s];if(o!==null){if(J.hasOwnProperty(s)){J[s](u,r);continue}if(o instanceof l.XFAObject){const m=o[n.$toStyle]();m?Object.assign(r,m):(0,P.warn)(`(DEBUG) - XFA - style for ${s} not implemented yet`)}}}return r}function O(u,T){const{attributes:r}=T,{style:s}=r,o={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(r.class.push("xfaWrapped"),u.border){const{widths:m,insets:h}=u.border[n.$extra];let A,L,H=h[0],F=h[3];const M=h[0]+h[2],k=h[1]+h[3];switch(u.border.hand){case"even":H-=m[0]/2,F-=m[3]/2,A=`calc(100% + ${(m[1]+m[3])/2-k}px)`,L=`calc(100% + ${(m[0]+m[2])/2-M}px)`;break;case"left":H-=m[0],F-=m[3],A=`calc(100% + ${m[1]+m[3]-k}px)`,L=`calc(100% + ${m[0]+m[2]-M}px)`;break;case"right":A=k?`calc(100% - ${k}px)`:"100%",L=M?`calc(100% - ${M}px)`:"100%";break}const x=["xfaBorder"];R(u.border)&&x.push("xfaPrintOnly");
51const C={name:"div",attributes:{class:x,style:{top:`${H}px`,left:`${F}px`,width:A,height:L}},children:[]};for(const G of["border","borderWidth","borderColor","borderRadius","borderStyle"])s[G]!==void 0&&(C.attributes.style[G]=s[G],delete s[G]);o.children.push(C,T)}else o.children.push(T);for(const m of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])s[m]!==void 0&&(o.attributes.style[m]=s[m],delete s[m]);return o.attributes.style.position=s.position==="absolute"?"absolute":"relative",delete s.position,s.alignSelf&&(o.attributes.style.alignSelf=s.alignSelf,delete s.alignSelf),o}function N(u){const T=(0,j.getMeasurement)(u.textIndent,"0px");if(T>=0)return;const s="padding"+((u.textAlign==="right"?"right":"left")==="left"?"Left":"Right"),o=(0,j.getMeasurement)(u[s],"0px");u[s]=`${o-T}px`}function X(u,T){switch(u.access){case"nonInteractive":T.push("xfaNonInteractive");break;case"readOnly":T.push("xfaReadOnly");break;case"protected":T.push("xfaDisabled");break}}function R(u){return u.relevant.length>0&&!u.relevant[0].excluded&&u.relevant[0].viewname==="print"}function q(u){const T=u[n.$getTemplateRoot]()[n.$extra].paraStack;return T.length?T.at(-1):null}function b(u,T,r){var s;if((s=r.attributes.class)!=null&&s.includes("xfaRich")){T&&(u.h===""&&(T.height="auto"),u.w===""&&(T.width="auto"));const o=q(u);if(o){const m=r.attributes.style;switch(m.display="flex",m.flexDirection="column",o.vAlign){case"top":m.justifyContent="start";break;case"bottom":m.justifyContent="end";break;case"middle":m.justifyContent="center";break}const h=o[n.$toStyle]();for(const[A,L]of Object.entries(h))A in m||(m[A]=L)}}}function E(u,T,r,s){if(!r){delete s.fontFamily;return}const o=(0,j.stripQuotes)(u.typeface);s.fontFamily=`"${o}"`;const m=r.find(o);if(m){const{fontFamily:h}=m.regular.cssFontInfo;h!==o&&(s.fontFamily=`"${h}"`);const A=q(T);if(A&&A.lineHeight!==""||s.lineHeight)return;const L=(0,e.selectFont)(u,m);L&&(s.lineHeight=Math.max(1.2,L.lineHeight))}}function c(u){const T=(0,P.createValidAbsoluteUrl)(u,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return T?T.href:null}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.HTMLResult=void 0,p.getBBox=a,p.getColor=g,p.getFloat=l,p.getInteger=t,p.getKeyword=V,p.getMeasurement=B,p.getRatio=I,p.getRelevant=f,p.getStringOption=J,p.stripQuotes=e;var n=re(2);const P={pt:y=>y,cm:y=>y/2.54*72,mm:y=>y/(10*2.54)*72,in:y=>y*72,px:y=>y},j=/([+-]?\d+\.?\d*)(.*)/;function e(y){return y.startsWith("'")||y.startsWith('"')?y.slice(1,-1):y}function t({data:y,defaultValue:O,validate:N}){if(!y)return O;y=y.trim();const X=parseInt(y,10);return!isNaN(X)&&N(X)?X:O}function l({data:y,defaultValue:O,validate:N}){if(!y)return O;y=y.trim();const X=parseFloat(y);return!isNaN(X)&&N(X)?X:O}function V({data:y,defaultValue:O,validate:N}){return y?(y=y.trim(),N(y)?y:O):O}function J(y,O){return V({data:y,defaultValue:O[0],validate:N=>O.includes(N)})}function B(y,O="0"){if(O||(O="0"),!y)return B(O);const N=y.trim().match(j);if(!N)return B(O);const[,X,R]=N,q=parseFloat(X);if(isNaN(q))return B(O);if(q===0)return 0;const b=P[R];return b?b(q):q}function I(y){if(!y)return{num:1,den:1};const O=y.trim().split(/\s*:\s*/).map(R=>parseFloat(R)).filter(R=>!isNaN(R));if(O.length===1&&O.push(1),O.length===0)return{num:1,den:1};const[N,X]=O;return{num:N,den:X}}function f(y){return y?y.trim().split(/\s+/).map(O=>({excluded:O[0]==="-",viewname:O.substring(1)})):[]}function g(y,O=[0,0,0]){let[N,X,R]=O;if(!y)return{r:N,g:X,b:R};const q=y.trim().split(/\s*,\s*/).map(b=>Math.min(Math.max(0,parseInt(b.trim(),10)),255)).map(b=>isNaN(b)?0:b);return q.length<3?{r:N,g:X,b:R}:([N,X,R]=q,{r:N,g:X,b:R})}function a(y){if(!y)return{x:-1,y:-1,width:-1,height:-1};const N=y.trim().split(/\s*,\s*/).map(E=>B(E,"-1"));if(N.length<4||N[2]<0||N[3]<0)return{x:-1,y:-1,width:-1,height:-1};const[X,R,q,b]=N;return{x:X,y:R,width:q,height:b}}class _{static get FAILURE(){return(0,n.shadow)(this,"FAILURE",new _(!1,null,null,null))}static get EMPTY(){return(0,n.shadow)(this,"EMPTY",new _(!0,null,
51null,null))}constructor(O,N,X,R){this.success=O,this.html=N,this.bbox=X,this.breakNode=R}isBreak(){return!!this.breakNode}static breakNode(O){return new _(!1,null,null,O)}static success(O,N=null){return new _(!0,O,N,null)}}p.HTMLResult=_},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.FontFinder=void 0,p.getMetrics=l,p.selectFont=t;var n=re(78),P=re(84),j=re(2);class e{constructor(J){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(J)}add(J,B=null){for(const f of J)this.addPdfFont(f);for(const f of this.fonts.values())f.regular||(f.regular=f.italic||f.bold||f.bolditalic);if(!B||B.size===0)return;const I=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const f of B)this.fonts.set(f,I)}addPdfFont(J){var _,y,O;const B=J.cssFontInfo,I=B.fontFamily;let f=this.fonts.get(I);f||(f=Object.create(null),this.fonts.set(I,f),this.defaultFont||(this.defaultFont=f));let g="";const a=parseFloat(B.fontWeight);parseFloat(B.italicAngle)!==0?g=a>=700?"bolditalic":"italic":a>=700&&(g="bold"),g||((J.name.includes("Bold")||(_=J.psName)!=null&&_.includes("Bold"))&&(g="bold"),(J.name.includes("Italic")||J.name.endsWith("It")||(y=J.psName)!=null&&y.includes("Italic")||(O=J.psName)!=null&&O.endsWith("It"))&&(g+="italic")),g||(g="regular"),f[g]=J}getDefault(){return this.defaultFont}find(J,B=!0){var _,y;let I=this.fonts.get(J)||this.cache.get(J);if(I)return I;const f=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let g=J.replaceAll(f,"");if(I=this.fonts.get(g),I)return this.cache.set(J,I),I;g=g.toLowerCase();const a=[];for(const[O,N]of this.fonts.entries())O.replaceAll(f,"").toLowerCase().startsWith(g)&&a.push(N);if(a.length===0)for(const[,O]of this.fonts.entries())(_=O.regular.name)!=null&&_.replaceAll(f,"").toLowerCase().startsWith(g)&&a.push(O);if(a.length===0){g=g.replaceAll(/psmt|mt/gi,"");for(const[O,N]of this.fonts.entries())O.replaceAll(f,"").toLowerCase().startsWith(g)&&a.push(N)}if(a.length===0)for(const O of this.fonts.values())(y=O.regular.name)!=null&&y.replaceAll(f,"").toLowerCase().startsWith(g)&&a.push(O);return a.length>=1?(a.length!==1&&B&&(0,j.warn)(`XFA - Too many choices to guess the correct font: ${J}`),this.cache.set(J,a[0]),a[0]):(B&&!this.warned.has(J)&&(this.warned.add(J),(0,j.warn)(`XFA - Cannot find the font: ${J}`)),null)}}p.FontFinder=e;function t(V,J){return V.posture==="italic"?V.weight==="bold"?J.bolditalic:J.italic:V.weight==="bold"?J.bold:J.regular}function l(V,J=!1){let B=null;if(V){const a=(0,P.stripQuotes)(V.typeface),_=V[n.$globalData].fontFinder.find(a);B=t(V,_)}if(!B)return{lineHeight:12,lineGap:2,lineNoGap:10};const I=V.size||10,f=B.lineHeight?Math.max(J?0:1.2,B.lineHeight):1.2,g=B.lineGap===void 0?.2:B.lineGap;return{lineHeight:f*I,lineGap:g*I,lineNoGap:Math.max(1,f-g)*I}}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.TextMeasure=void 0;var n=re(85);const P=1.02;class j{constructor(V,J,B,I){if(this.lineHeight=B,this.paraMargin=J||{top:0,bottom:0,left:0,right:0},!V){[this.pdfFont,this.xfaFont]=this.defaultFont(I);return}this.xfaFont={typeface:V.typeface,posture:V.posture,weight:V.weight,size:V.size,letterSpacing:V.letterSpacing};const f=I.find(V.typeface);if(!f){[this.pdfFont,this.xfaFont]=this.defaultFont(I);return}this.pdfFont=(0,n.selectFont)(V,f),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(I))}defaultFont(V){const J=V.find("Helvetica",!1)||V.find("Myriad Pro",!1)||V.find("Arial",!1)||V.getDefault();if(J!=null&&J.regular){const I=J.regular,g={typeface:I.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[I,g]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class e{constructor(V,J,B,I){this.fontFinder=I,this.stack=[new j(V,J,B,I)]}pushData(V,J,B){const I=this.stack.at(-1);for(const g of["typeface","posture","weight","size","letterSpacing"])V[g]||(V[g]=I.xfaFont[g]);for(const g of["top","bottom","left","right"])isNaN(J[g])&&(J[g]=I.paraMargin[g]);const f=new j(V,J,B||I.lineHeight,this.fontFinder);f.pdfFont||(f.pdfFont=I.pdfFont),this.stack.push(f)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class t{constructor(V,J,B,I){this.glyphs=[],this.fontSelector=new e(V,J,B,I),this.extraHeight=0}pushData(V,J,B){this.fontSelector.pushData(V,J,B)}popFont(V){return this.fontSelector.popFont()}addPara(){const V=this.fontSelector.topFont();this.extraHeight+=V.paraMargin.top+V.paraMargin.bottom}addString(V){if(!V)return;const J=this.fontSelector.topFont(),B=J.xfaFont.size;if(J.pdfFont){const I=J.xfaFont.letterSpacing,f=J.pdfFont,g=f.lineHeight||1.2,a=J.lineHeight||Math.max(1.2,g)*B,_=f.lineGap===void 0?.2:f.lineGap,y=g-_,O=Math.max(1,y)*B,N=B/1e3,X=f.defaultWidth||f.charsToGlyphs(" ")[0].width;for(const R of V.split(/[\u2029\n]/)){const q=f.encodeString(R).join(""),b=f.charsToGlyphs(q);for(const E of b){const c=E.width||X;this.glyphs.push([c*N+I,a,O,E.unicode,!1])}this.glyphs.push([0,0,0,` 52`,!0])}this.glyphs.pop();return}for(const I of V.split(/[\u2029\n]/)){for(const f of I.split(""))this.glyphs.push([B,1.2*B,B,f,!1]);this.glyphs.push([0,0,0,` 53`,!0])}this.glyphs.pop()}compute(V){let J=-1,B=0,I=0,f=0,g=0,a=0,_=!1,y=!0;for(let O=0,N=this.glyphs.length;O<N;O++){const[X,R,q,b,E]=this.glyphs[O],c=b===" ",u=y?q:R;if(E){I=Math.max(I,g),g=0,f+=a,a=u,J=-1,B=0,y=!1;continue}if(c){g+X>V?(I=Math.max(I,g),g=0,f+=a,a=u,J=-1,B=0,_=!0,y=!1):(a=Math.max(u,a),B=g,g+=X,J=O);continue}if(g+X>
53V){f+=a,a=u,J!==-1?(O=J,I=Math.max(I,B),g=0,J=-1,B=0):(I=Math.max(I,g),g=X),_=!0,y=!1;continue}g+=X,a=Math.max(u,a)}return I=Math.max(I,g),f+=a+this.extraHeight,{width:P*I,height:f,isBroken:_}}}p.TextMeasure=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XmlObject=p.XFAObjectArray=p.XFAObject=p.XFAAttribute=p.StringObject=p.OptionObject=p.Option10=p.Option01=p.IntegerObject=p.ContentObject=void 0;var n=re(78),P=re(84),j=re(2),e=re(3),t=re(81),l=re(88);const V=Symbol(),J=Symbol(),B=Symbol(),I=Symbol("_children"),f=Symbol(),g=Symbol(),a=Symbol(),_=Symbol(),y=Symbol(),O=Symbol(),N=Symbol(),X=Symbol(),R=Symbol(),q=Symbol("parent"),b=Symbol(),E=Symbol(),c=Symbol();let u=0;const T=t.NamespaceIds.datasets.id;class r{constructor(x,C,G=!1){this[n.$namespaceId]=x,this[n.$nodeName]=C,this[N]=G,this[q]=null,this[I]=[],this[n.$uid]=`${C}${u++}`,this[n.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(x){let C=this,G=null;for(const{name:Z,index:ae}of x){for(let oe=0,te=isFinite(ae)?ae:0;oe<=te;oe++){const K=C[n.$namespaceId]===T?-1:C[n.$namespaceId];G=new m(K,Z),C[n.$appendChild](G)}C=G}return G}[n.$onChild](x){if(!this[N]||!this[n.$onChildCheck](x))return!1;const C=x[n.$nodeName],G=this[C];if(G instanceof s){if(G.push(x))return this[n.$appendChild](x),!0}else return G!==null&&this[n.$removeChild](G),this[C]=x,this[n.$appendChild](x),!0;let Z="";return this.id?Z=` (id: ${this.id})`:this.name&&(Z=` (name: ${this.name} ${this.h.value})`),(0,j.warn)(`XFA - node "${this[n.$nodeName]}"${Z} has already enough "${C}"!`),!1}[n.$onChildCheck](x){return this.hasOwnProperty(x[n.$nodeName])&&x[n.$namespaceId]===this[n.$namespaceId]}[n.$isNsAgnostic](){return!1}[n.$acceptWhitespace](){return!1}[n.$isCDATAXml](){return!1}[n.$isBindable](){return!1}[n.$popPara](){this.para&&this[n.$getTemplateRoot]()[n.$extra].paraStack.pop()}[n.$pushPara](){this[n.$getTemplateRoot]()[n.$extra].paraStack.push(this.para)}[n.$setId](x){this.id&&this[n.$namespaceId]===t.NamespaceIds.template.id&&x.set(this.id,this)}[n.$getTemplateRoot](){return this[n.$globalData].template}[n.$isSplittable](){return!1}[n.$isThereMoreWidth](){return!1}[n.$appendChild](x){x[q]=this,this[I].push(x),!x[n.$globalData]&&this[n.$globalData]&&(x[n.$globalData]=this[n.$globalData])}[n.$removeChild](x){const C=this[I].indexOf(x);this[I].splice(C,1)}[n.$hasSettableValue](){return this.hasOwnProperty("value")}[n.$setValue](x){}[n.$onText](x){}[n.$finalize](){}[n.$clean](x){delete this[N],this[n.$cleanup]&&(x.clean(this[n.$cleanup]),delete this[n.$cleanup])}[n.$indexOf](x){return this[I].indexOf(x)}[n.$insertAt](x,C){C[q]=this,this[I].splice(x,0,C),!C[n.$globalData]&&this[n.$globalData]&&(C[n.$globalData]=this[n.$globalData])}[n.$isTransparent](){return!this.name}[n.$lastAttribute](){return""}[n.$text](){return this[I].length===0?this[n.$content]:this[I].map(x=>x[n.$text]()).join("")}get[B](){const x=Object.getPrototypeOf(this);if(!x._attributes){const C=x._attributes=new Set;for(const G of Object.getOwnPropertyNames(this)){if(this[G]===null||this[G]instanceof r||this[G]instanceof s)break;C.add(G)}}return(0,j.shadow)(this,B,x._attributes)}[n.$isDescendent](x){let C=this;for(;C;){if(C===x)return!0;C=C[n.$getParent]()}return!1}[n.$getParent](){return this[q]}[n.$getSubformParent](){return this[n.$getParent]()}[n.$getChildren](x=null){return x?this[x]:this[I]}[n.$dump](){const x=Object.create(null);this[n.$content]&&(x.$content=this[n.$content]);for(const C of Object.getOwnPropertyNames(this)){const G=this[C];G!==null&&(G instanceof r?x[C]=G[n.$dump]():G instanceof s?G.isEmpty()||(x[C]=G.dump()):x[C]=G)}return x}[n.$toStyle](){return null}[n.$toHTML](){return P.HTMLResult.EMPTY}*[n.$getContainedChildren](){for(const x of this[n.$getChildren]())yield x}*[_](x,C){for(const G of this[n.$getContainedChildren]())if(!x||C===x.has(G[n.$nodeName])){const Z=this[n.$getAvailableSpace](),ae=G[n.$toHTML](Z);ae.success||(this[n.$extra].failingNode=G),yield ae}}[n.$flushHTML](){return null}[n.$addHTML](x,C){this[n.$extra].children.push(x)}[n.$getAvailableSpace](){}[n.$childrenToHTML]({filter:x=null,include:C=!0}){if(!this[n.$extra].generator)this[n.$extra].generator=this[_](x,C);else{const G=this[n.$getAvailableSpace](),Z=this[n.$extra].failingNode[n.$toHTML](G);if(!Z.success)return Z;Z.html&&this[n.$addHTML](Z.html,Z.bbox),delete this[n.$extra].failingNode}for(;;){const G=this[n.$extra].generator.next();if(G.done)break;const Z=G.value;if(!Z.success)return Z;Z.html&&this[n.$addHTML](Z.html,Z.bbox)}return this[n.$extra].generator=null,P.HTMLResult.EMPTY}[n.$setSetAttributes](x){this[E]=new Set(Object.keys(x))}[O](x){const C=this[B],G=this[E];return[...x].filter(Z=>
53C.has(Z)&&!G.has(Z))}[n.$resolvePrototypes](x,C=new Set){for(const G of this[I])G[b](x,C)}[b](x,C){const G=this[y](x,C);G?this[V](G,x,C):this[n.$resolvePrototypes](x,C)}[y](x,C){const{use:G,usehref:Z}=this;if(!G&&!Z)return null;let ae=null,oe=null,te=null,K=G;if(Z?(K=Z,Z.startsWith("#som(")&&Z.endsWith(")")?oe=Z.slice(5,-1):Z.startsWith(".#som(")&&Z.endsWith(")")?oe=Z.slice(6,-1):Z.startsWith("#")?te=Z.slice(1):Z.startsWith(".#")&&(te=Z.slice(2))):G.startsWith("#")?te=G.slice(1):oe=G,this.use=this.usehref="",te?ae=x.get(te):(ae=(0,l.searchNode)(x.get(n.$root),this,oe,!0,!1),ae&&(ae=ae[0])),!ae)return(0,j.warn)(`XFA - Invalid prototype reference: ${K}.`),null;if(ae[n.$nodeName]!==this[n.$nodeName])return(0,j.warn)(`XFA - Incompatible prototype: ${ae[n.$nodeName]} !== ${this[n.$nodeName]}.`),null;if(C.has(ae))return(0,j.warn)("XFA - Cycle detected in prototypes use."),null;C.add(ae);const v=ae[y](x,C);return v&&ae[V](v,x,C),ae[n.$resolvePrototypes](x,C),C.delete(ae),ae}[V](x,C,G){if(G.has(x)){(0,j.warn)("XFA - Cycle detected in prototypes use.");return}!this[n.$content]&&x[n.$content]&&(this[n.$content]=x[n.$content]),new Set(G).add(x);for(const ae of this[O](x[E]))this[ae]=x[ae],this[E]&&this[E].add(ae);for(const ae of Object.getOwnPropertyNames(this)){if(this[B].has(ae))continue;const oe=this[ae],te=x[ae];if(oe instanceof s){for(const K of oe[I])K[b](C,G);for(let K=oe[I].length,v=te[I].length;K<v;K++){const $=x[I][K][n.$clone]();if(oe.push($))$[q]=this,this[I].push($),$[b](C,G);else break}continue}if(oe!==null){oe[n.$resolvePrototypes](C,G),te&&oe[V](te,C,G);continue}if(te!==null){const K=te[n.$clone]();K[q]=this,this[ae]=K,this[I].push(K),K[b](C,G)}}}static[f](x){return Array.isArray(x)?x.map(C=>r[f](C)):typeof x=="object"&&x!==null?Object.assign({},x):x}[n.$clone](){const x=Object.create(Object.getPrototypeOf(this));for(const C of Object.getOwnPropertySymbols(this))try{x[C]=this[C]}catch{(0,j.shadow)(x,C,this[C])}x[n.$uid]=`${x[n.$nodeName]}${u++}`,x[I]=[];for(const C of Object.getOwnPropertyNames(this)){if(this[B].has(C)){x[C]=r[f](this[C]);continue}const G=this[C];x[C]=G instanceof s?new s(G[X]):null}for(const C of this[I]){const G=C[n.$nodeName],Z=C[n.$clone]();x[I].push(Z),Z[q]=x,x[G]===null?x[G]=Z:x[G][I].push(Z)}return x}[n.$getChildren](x=null){return x?this[I].filter(C=>C[n.$nodeName]===x):this[I]}[n.$getChildrenByClass](x){return this[x]}[n.$getChildrenByName](x,C,G=!0){return Array.from(this[n.$getChildrenByNameIt](x,C,G))}*[n.$getChildrenByNameIt](x,C,G=!0){if(x==="parent"){yield this[q];return}for(const Z of this[I])Z[n.$nodeName]===x&&(yield Z),Z.name===x&&(yield Z),(C||Z[n.$isTransparent]())&&(yield*Z[n.$getChildrenByNameIt](x,C,!1));G&&this[B].has(x)&&(yield new o(this,x,this[x]))}}p.XFAObject=r;class s{constructor(x=1/0){this[X]=x,this[I]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(x){return this[I].length<=this[X]?(this[I].push(x),!0):((0,j.warn)(`XFA - node "${x[n.$nodeName]}" accepts no more than ${this[X]} children`),!1)}isEmpty(){return this[I].length===0}dump(){return this[I].length===1?this[I][0][n.$dump]():this[I].map(x=>x[n.$dump]())}[n.$clone](){const x=new s(this[X]);return x[I]=this[I].map(C=>C[n.$clone]()),x}get children(){return this[I]}clear(){this[I].length=0}}p.XFAObjectArray=s;class o{constructor(x,C,G){this[q]=x,this[n.$nodeName]=C,this[n.$content]=G,this[n.$consumed]=!1,this[n.$uid]=`attribute${u++}`}[n.$getParent](){return this[q]}[n.$isDataValue](){return!0}[n.$getDataValue](){return this[n.$content].trim()}[n.$setValue](x){x=x.value||"",this[n.$content]=x.toString()}[n.$text](){return this[n.$content]}[n.$isDescendent](x){return this[q]===x||this[q][n.$isDescendent](x)}}p.XFAAttribute=o;class m extends r{constructor(x,C,G={}){if(super(x,C),this[n.$content]="",this[g]=null,C!=="#text"){const Z=new Map;this[J]=Z;for(const[ae,oe]of Object.entries(G))Z.set(ae,new o(this,ae,oe));if(G.hasOwnProperty(n.$nsAttributes)){const ae=G[n.$nsAttributes].xfa.dataNode;ae!==void 0&&(ae==="dataGroup"?this[g]=!1:ae==="dataValue"&&(this[g]=!0))}}this[n.$consumed]=!1}[n.$toString](x){const C=this[n.$nodeName];if(C==="#text"){x.push((0,e.encodeToXmlString)(this[n.$content]));return}const G=(0,j.utf8StringToString)(C),Z=this[n.$namespaceId]===T?"xfa:":"";x.push(`<${Z}${G}`);for(const[ae,oe]of this[J].entries()){const te=(0,j.utf8StringToString)(ae);x.push(` ${te}="${(0,e.encodeToXmlString)(oe[n.$content])}"`)}if(this[g]!==null&&(this[g]?x.push(' xfa:dataNode="dataValue"'):x.push(' xfa:dataNode="dataGroup"')),!this[n.$content]&&this[I].length===0){x.push("/>");return}if(x.push(">"),this[n.$content])typeof this[n.$content]=="string"?x.push((0,e.encodeToXmlString)(this[n.$content])):this[n.$content][n.$toString](x);else for(const ae of this[I])ae[n.$toString](x);x.push(`</${Z}${G}>`)}[n.$onChild](x){if(this[n.$content]){const C=new m(this[n.$namespaceId],"#text");this[n.$appendChild](C),C[n.$content]=this[n.$content],this[n.$content]=""}return this[n.$appendChild](x),!0}[n.$onText](x){this[n.$content]+=x}[n.$finalize](){if(this[n.$content]&&this[I].length>0){const x=new m(this[n.$namespaceId],"#text");this[n.$appendChild](x),x[n.$content]=this[n.$content],delete this[n.$content]}}[n.$toHTML](){return this[n.$nodeName]==="#text"?P.HTMLResult.success({name:"#text",value:this[n.$content]}
53):P.HTMLResult.EMPTY}[n.$getChildren](x=null){return x?this[I].filter(C=>C[n.$nodeName]===x):this[I]}[n.$getAttributes](){return this[J]}[n.$getChildrenByClass](x){const C=this[J].get(x);return C!==void 0?C:this[n.$getChildren](x)}*[n.$getChildrenByNameIt](x,C){const G=this[J].get(x);G&&(yield G);for(const Z of this[I])Z[n.$nodeName]===x&&(yield Z),C&&(yield*Z[n.$getChildrenByNameIt](x,C))}*[n.$getAttributeIt](x,C){const G=this[J].get(x);G&&(!C||!G[n.$consumed])&&(yield G);for(const Z of this[I])yield*Z[n.$getAttributeIt](x,C)}*[n.$getRealChildrenByNameIt](x,C,G){for(const Z of this[I])Z[n.$nodeName]===x&&(!G||!Z[n.$consumed])&&(yield Z),C&&(yield*Z[n.$getRealChildrenByNameIt](x,C,G))}[n.$isDataValue](){return this[g]===null?this[I].length===0||this[I][0][n.$namespaceId]===t.NamespaceIds.xhtml.id:this[g]}[n.$getDataValue](){return this[g]===null?this[I].length===0?this[n.$content].trim():this[I][0][n.$namespaceId]===t.NamespaceIds.xhtml.id?this[I][0][n.$text]().trim():null:this[n.$content].trim()}[n.$setValue](x){x=x.value||"",this[n.$content]=x.toString()}[n.$dump](x=!1){const C=Object.create(null);x&&(C.$ns=this[n.$namespaceId]),this[n.$content]&&(C.$content=this[n.$content]),C.$name=this[n.$nodeName],C.children=[];for(const G of this[I])C.children.push(G[n.$dump](x));C.attributes=Object.create(null);for(const[G,Z]of this[J])C.attributes[G]=Z[n.$content];return C}}p.XmlObject=m;class h extends r{constructor(x,C){super(x,C),this[n.$content]=""}[n.$onText](x){this[n.$content]+=x}[n.$finalize](){}}p.ContentObject=h;class A extends h{constructor(x,C,G){super(x,C),this[R]=G}[n.$finalize](){this[n.$content]=(0,P.getKeyword)({data:this[n.$content],defaultValue:this[R][0],validate:x=>this[R].includes(x)})}[n.$clean](x){super[n.$clean](x),delete this[R]}}p.OptionObject=A;class L extends h{[n.$finalize](){this[n.$content]=this[n.$content].trim()}}p.StringObject=L;class H extends h{constructor(x,C,G,Z){super(x,C),this[a]=G,this[c]=Z}[n.$finalize](){this[n.$content]=(0,P.getInteger)({data:this[n.$content],defaultValue:this[a],validate:this[c]})}[n.$clean](x){super[n.$clean](x),delete this[a],delete this[c]}}p.IntegerObject=H;class F extends H{constructor(x,C){super(x,C,0,G=>G===1)}}p.Option01=F;class M extends H{constructor(x,C){super(x,C,1,G=>G===0)}}p.Option10=M},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.createDataNode=f,p.searchNode=I;var n=re(78),P=re(2);const j=/^[^.[]+/,e=/^[^\]]+/,t={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},l=new Map([["$data",(g,a)=>g.datasets?g.datasets.data:g],["$record",(g,a)=>(g.datasets?g.datasets.data:g)[n.$getChildren]()[0]],["$template",(g,a)=>g.template],["$connectionSet",(g,a)=>g.connectionSet],["$form",(g,a)=>g.form],["$layout",(g,a)=>g.layout],["$host",(g,a)=>g.host],["$dataWindow",(g,a)=>g.dataWindow],["$event",(g,a)=>g.event],["!",(g,a)=>g.datasets],["$xfa",(g,a)=>g],["xfa",(g,a)=>g],["$",(g,a)=>a]]),V=new WeakMap;function J(g){return g=g.trim(),g==="*"?1/0:parseInt(g,10)||0}function B(g,a,_=!0){let y=g.match(j);if(!y)return null;let[O]=y;const N=[{name:O,cacheName:"."+O,index:0,js:null,formCalc:null,operator:t.dot}];let X=O.length;for(;X<g.length;){const R=X;if(g.charAt(X++)==="["){if(y=g.slice(X).match(e),!y)return(0,P.warn)("XFA - Invalid index in SOM expression"),null;N.at(-1).index=J(y[0]),X+=y[0].length+1;continue}let b;switch(g.charAt(X)){case".":if(!a)return null;X++,b=t.dotDot;break;case"#":X++,b=t.dotHash;break;case"[":if(_)return(0,P.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;b=t.dotBracket;break;case"(":if(_)return(0,P.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;b=t.dotParen;break;default:b=t.dot;break}if(y=g.slice(X).match(j),!y)break;[O]=y,X+=O.length,N.push({name:O,cacheName:g.slice(R,X),operator:b,index:0,js:null,formCalc:null})}return N}function I(g,a,_,y=!0,O=!0){const N=B(_,y);if(!N)return null;const X=l.get(N[0].name);let R=0,q;X?(q=!0,g=[X(g,a)],R=1):(q=a===null,g=[a||g]);for(let b=N.length;R<b;R++){const{name:E,cacheName:c,operator:u,index:T}=N[R],r=[];for(const s of g){if(!s.isXFAObject)continue;let o,m;if(O&&(m=V.get(s),m||(m=new Map,V.set(s,m)),o=m.get(c)),!o){switch(u){case t.dot:o=s[n.$getChildrenByName](E,!1);break;case t.dotDot:o=s[n.$getChildrenByName](E,!0);break;case t.dotHash:o=s[n.$getChildrenByClass](E),o=o.isXFAObjectArray?o.children:[o];break}O&&m.set(c,o)}o.length>0&&r.push(o)}if(r.length===0&&!q&&R===0){if(a=a[n.$getParent](),!a)return null;R=-1,g=[a];continue}g=isFinite(T)?r.filter(s=>T<s.length).map(s=>s[T]):r.flat()}return g.length===0?null:g}function f(g,a,_){const y=B(_);if(!y||y.some(X=>X.operator===t.dotDot))return null;const O=l.get(y[0].name);let N=0;O?(g=O(g,a),N=1):g=a||g;for(let X=y.length;N<X;N++){const{name:R,operator:q,index:b}=y[N];if(!isFinite(b))return y[N].index=0,g.createNodes(y.slice(N));let E;switch(q){case t.dot:E=g[n.$getChildrenByName](R,!1);break;case t.dotDot:E=g[n.$getChildrenByName](R,!0);break;case t.dotHash:E=g[n.$getChildrenByClass](R),E=E.isXFAObjectArray?E.children:[E];break}if(E.length===0)return g.createNodes(y.slice(N));if(b<E.length){const c=E[b];
53if(!c.isXFAObject)return(0,P.warn)("XFA - Cannot create a node."),null;g=c}else return y[N].index=b-E.length,g.createNodes(y.slice(N))}return null}},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.DataHandler=void 0;var n=re(78);class P{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[n.$getChildren]()]];for(;t.length>0;){const V=t.at(-1),[J,B]=V;if(J+1===B.length){t.pop();continue}const I=B[++V[0]],f=e.get(I[n.$uid]);if(f)I[n.$setValue](f);else{const a=I[n.$getAttributes]();for(const _ of a.values()){const y=e.get(_[n.$uid]);if(y){_[n.$setValue](y);break}}}const g=I[n.$getChildren]();g.length>0&&t.push([-1,g])}const l=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const V of this.dataset[n.$getChildren]())V[n.$nodeName]!=="data"&&V[n.$toString](l);return this.data[n.$toString](l),l.push("</xfa:datasets>"),l.join("")}}p.DataHandler=P},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XFAParser=void 0;var n=re(78),P=re(71),j=re(91),e=re(2);class t extends P.XMLParserBase{constructor(V=null,J=!1){super(),this._builder=new j.Builder(V),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=P.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=J}parse(V){if(this.parseXml(V),this._errorCode===P.XMLParserErrorCode.NoError)return this._current[n.$finalize](),this._current.element}onText(V){if(V=V.replace(this._nbsps,J=>J.slice(1)+" "),this._richText||this._current[n.$acceptWhitespace]()){this._current[n.$onText](V,this._richText);return}this._whiteRegex.test(V)||this._current[n.$onText](V.trim())}onCdata(V){this._current[n.$onText](V)}_mkAttributes(V,J){let B=null,I=null;const f=Object.create({});for(const{name:g,value:a}of V)if(g==="xmlns")B?(0,e.warn)(`XFA - multiple namespace definition in <${J}>`):B=a;else if(g.startsWith("xmlns:")){const _=g.substring(6);I||(I=[]),I.push({prefix:_,value:a})}else{const _=g.indexOf(":");if(_===-1)f[g]=a;else{let y=f[n.$nsAttributes];y||(y=f[n.$nsAttributes]=Object.create(null));const[O,N]=[g.slice(0,_),g.slice(_+1)],X=y[O]||(y[O]=Object.create(null));X[N]=a}}return[B,I,f]}_getNameAndPrefix(V,J){const B=V.indexOf(":");return B===-1?[V,null]:[V.substring(B+1),J?"":V.substring(0,B)]}onBeginElement(V,J,B){const[I,f,g]=this._mkAttributes(J,V),[a,_]=this._getNameAndPrefix(V,this._builder.isNsAgnostic()),y=this._builder.build({nsPrefix:_,name:a,attributes:g,namespace:I,prefixes:f});if(y[n.$globalData]=this._globalData,B){y[n.$finalize](),this._current[n.$onChild](y)&&y[n.$setId](this._ids),y[n.$clean](this._builder);return}this._stack.push(this._current),this._current=y}onEndElement(V){const J=this._current;if(J[n.$isCDATAXml]()&&typeof J[n.$content]=="string"){const B=new t;B._globalData=this._globalData;const I=B.parse(J[n.$content]);J[n.$content]=null,J[n.$onChild](I)}J[n.$finalize](),this._current=this._stack.pop(),this._current[n.$onChild](J)&&J[n.$setId](this._ids),J[n.$clean](this._builder)}onError(V){this._errorCode=V}}p.XFAParser=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.Builder=void 0;var n=re(81),P=re(78),j=re(92),e=re(80),t=re(101),l=re(2),V=re(87);class J extends V.XFAObject{constructor(g){super(-1,"root",Object.create(null)),this.element=null,this[P.$ids]=g}[P.$onChild](g){return this.element=g,!0}[P.$finalize](){super[P.$finalize](),this.element.template instanceof e.Template&&(this[P.$ids].set(P.$root,this.element),this.element.template[P.$resolvePrototypes](this[P.$ids]),this.element.template[P.$ids]=this[P.$ids])}}class B extends V.XFAObject{constructor(){super(-1,"",Object.create(null))}[P.$onChild](g){return!1}}class I{constructor(g=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(n.NamespaceIds).map(({id:a})=>a)),this._currentNamespace=g||new t.UnknownNamespace(++this._nextNsId)}buildRoot(g){return new J(g)}build({nsPrefix:g,name:a,attributes:_,namespace:y,prefixes:O}){const N=y!==null;if(N&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(y)),O&&this._addNamespacePrefix(O),_.hasOwnProperty(P.$nsAttributes)){const q=j.NamespaceSetUp.datasets,b=_[P.$nsAttributes];let E=null;for(const[c,u]of Object.entries(b))if(this._getNamespaceToUse(c)===q){E={xfa:u};break}E?_[P.$nsAttributes]=E:delete _[P.$nsAttributes]}const X=this._getNamespaceToUse(g),R=(X==null?void 0:X[n.$buildXFAObject](a,_))||new B;return R[P.$isNsAgnostic]()&&this._nsAgnosticLevel++,(N||O||R[P.$isNsAgnostic]())&&(R[P.$cleanup]={hasNamespace:N,prefixes:O,nsAgnostic:R[P.$isNsAgnostic]()}),R}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(g){let a=this._namespaces.get(g);if(a)return a;for(const[_,{check:y}]of Object.entries(n.NamespaceIds))if(y(g)){if(a=j.NamespaceSetUp[_],a)return this._namespaces.set(g,a),a;break}return a=new t.UnknownNamespace(++this._nextNsId),this._namespaces.set(g,a),a}_addNamespacePrefix(g){for(const{prefix:a,value:_}of g){const y=this._searchNamespace(_);let O=this._namespacePrefixes.get(a);O||(O=[],this._namespacePrefixes.set(a,O)),O.push(y)}}_getNamespaceToUse(g){if(!g)return this._currentNamespace;const a=this._namespacePrefixes.get(g);return(a==null?void 0:a.length)>0?a.at(-1):((0,l.warn)(`Unknown namespace prefix: ${g}.`),null)}clean(g){const{hasNamespace:a,prefixes:_,nsAgnostic:y}=g;a&&(this._currentNamespace=this._namespaceStack.pop()),_&&_.forEach(({prefix:O})=>{this._namespacePrefixes.get(O).pop()}),y&&this._nsAgnosticLevel--}}p.Builder=I},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.NamespaceSetUp=void 0;var n=re(93),P=re(94),j=re(95),e=re(96),t=re(97),l=re(98),V=re(80),J=re(99),B=re(100);const I={config:n.ConfigNamespace,connection:P.ConnectionSetNamespace,datasets:j.DatasetsNamespace,localeSet:e.LocaleSetNamespace,signature:t.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:V.TemplateNamespace,xdp:J.XdpNamespace,xhtml:B.XhtmlNamespace};p.NamespaceSetUp=I},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ConfigNamespace=void 0;var n=re(81),P=re(78),j=re(87),e=re(84),t=re(2);const l=n.NamespaceIds.config.id;class V extends j.XFAObject{constructor(U){super(l,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new j.XFAObjectArray}}class J extends j.XFAObject{constructor(U){super(l,"acrobat7",!0),this.dynamicRender=null}}class B extends j.OptionObject{constructor(U){super(l,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class I extends j.OptionObject{constructor(U){super(l,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class f extends j.Option01{constructor(U){super(l,"addSilentPrint")}}class g extends j.Option01{constructor(U){super(l,"addViewerPreferences")}}class a extends j.Option10{constructor(U){super(l,"adjustData")}}class _ extends j.IntegerObject{constructor(U){super(l,"adobeExtensionLevel",0,be=>be>=1&&be<=8)}}class y extends j.XFAObject{constructor(U){super(l,"agent",!0),this.name=U.name?U.name.trim():"",this.common=new j.XFAObjectArray}}class O extends j.ContentObject{constructor(U){super(l,"alwaysEmbed")}}class N extends j.StringObject{constructor(U){super(l,"amd")}}class X extends j.XFAObject{constructor(U){super(l,"area"),this.level=(0,e.getInteger)({data:U.level,defaultValue:0,validate:be=>be>=1&&be<=3}),this.name=(0,e.getStringOption)(U.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class R extends j.OptionObject{constructor(U){super(l,"attributes",["preserve","delegate","ignore"])}}class q extends j.OptionObject{constructor(U){super(l,"autoSave",["disabled","enabled"])}}class b extends j.StringObject{constructor(U){super(l,"base")}}class E extends j.XFAObject{constructor(U){super(l,"batchOutput"),this.format=(0,e.getStringOption)(U.format,["none","concat","zip","zipCompress"])}}class c extends j.ContentObject{constructor(U){super(l,"behaviorOverride")}[P.$finalize](){this[P.$content]=new Map(this[P.$content].trim().split(/\s+/).filter(U=>U.includes(":")).map(U=>U.split(":",2)))}}class u extends j.XFAObject{constructor(U){super(l,"cache",!0),this.templateCache=null}}class T extends j.Option01{constructor(U){super(l,"change")}}class r extends j.XFAObject{constructor(U){super(l,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl
53=null,this.log=new j.XFAObjectArray}}class s extends j.XFAObject{constructor(U){super(l,"compress"),this.scope=(0,e.getStringOption)(U.scope,["imageOnly","document"])}}class o extends j.Option01{constructor(U){super(l,"compressLogicalStructure")}}class m extends j.Option10{constructor(U){super(l,"compressObjectStream")}}class h extends j.XFAObject{constructor(U){super(l,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class A extends j.XFAObject{constructor(U){super(l,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new j.XFAObjectArray}}class L extends j.OptionObject{constructor(U){super(l,"conformance",["A","B"])}}class H extends j.Option01{constructor(U){super(l,"contentCopy")}}class F extends j.IntegerObject{constructor(U){super(l,"copies",1,be=>be>=1)}}class M extends j.StringObject{constructor(U){super(l,"creator")}}class k extends j.IntegerObject{constructor(U){super(l,"currentPage",0,be=>be>=0)}}class x extends j.XFAObject{constructor(U){super(l,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new j.XFAObjectArray,this.transform=new j.XFAObjectArray}}class C extends j.XFAObject{constructor(U){super(l,"debug",!0),this.uri=null}}class G extends j.ContentObject{constructor(U){super(l,"defaultTypeface"),this.writingScript=(0,e.getStringOption)(U.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class Z extends j.OptionObject{constructor(U){super(l,"destination",["pdf","pcl","ps","webClient","zpl"])}}class ae extends j.Option01{constructor(U){super(l,"documentAssembly")}}class oe extends j.XFAObject{constructor(U){super(l,"driver",!0),this.name=U.name?U.name.trim():"",this.fontInfo=null,this.xdc=null}}class te extends j.OptionObject{constructor(U){super(l,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class K extends j.OptionObject{constructor(U){super(l,"dynamicRender",["forbidden","required"])}}class v extends j.Option01{constructor(U){super(l,"embed")}}class $ extends j.Option01{constructor(U){super(l,"encrypt")}}class d extends j.XFAObject{constructor(U){super(l,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class w extends j.OptionObject{constructor(U){super(l,"encryptionLevel",["40bit","128bit"])}}class S extends j.StringObject{constructor(U){super(l,"enforce")}}class z extends j.XFAObject{constructor(U){super(l,"equate"),this.force=(0,e.getInteger)({data:U.force,defaultValue:1,validate:be=>be===0}),this.from=U.from||"",this.to=U.to||""}}class W extends j.XFAObject{constructor(U){super(l,"equateRange"),this.from=U.from||"",this.to=U.to||"",this._unicodeRange=U.unicodeRange||""}get unicodeRange(){const U=[],be=/U\+([0-9a-fA-F]+)/,Ce=this._unicodeRange;for(let Oe of Ce.split(",").map(je=>je.trim()).filter(je=>!!je))Oe=Oe.split("-",2).map(je=>{const Ke=je.match(be);return Ke?parseInt(Ke[1],16):0}),Oe.length===1&&Oe.push(Oe[0]),U.push(Oe);return(0,t.shadow)(this,"unicodeRange",U)}}class ne extends j.ContentObject{constructor(U){super(l,"exclude")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s+/).filter(U=>U&&["calculate","close","enter","exit","initialize","ready","validate"].includes(U))}}class Q extends j.StringObject{constructor(U){super(l,"excludeNS")}}class D extends j.OptionObject{constructor(U){super(l,"flipLabel",["usePrinterSetting","on","off"])}}class Y extends j.XFAObject{constructor(U){super(l,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new j.XFAObjectArray,this.defaultTypeface=new j.XFAObjectArray,this.neverEmbed=new j.XFAObjectArray}}class ie extends j.Option01{constructor(U){super(l,"formFieldFilling")}}class ee extends j.StringObject{constructor(U){super(l,"groupParent")}}class se extends j.OptionObject{constructor(U){super(l,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class ce extends j.StringObject{constructor(U){super(l,"includeXDPContent")}}class le extends j.OptionObject{constructor(U){super(l,"incrementalLoad",["none","forwardOnly"])}}class de extends j.Option01{constructor(U){super(l,"incrementalMerge")}}class he extends j.Option01{constructor(U){super(l,"interactive")}}class me extends j.OptionObject{constructor(U){super(l,"jog",["usePrinterSetting","none","pageSet"])}}class Se extends j.XFAObject{constructor(U){super(l,"labelPrinter",!0),this.name=(0,e.getStringOption)(U.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class pe extends j.OptionObject{constructor(U){super(l,"layout",["paginate","panel"])}}class ge extends j.IntegerObject{constructor(U){super(l,"level",0,be=>be>0)}}class Ae extends j.Option01{constructor(U){super(l,"linearized")}}class Me extends j.StringObject{constructor(U){super(l,"locale")}}class xe extends j.StringObject{constructor(U){super(l,"localeSet")}}class ue extends j.XFAObject{constructor(U){super(l,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class fe extends j.XFAObject{constructor(U){super(l,"map",!0),this.equate=new j.XFAObjectArray,this.equateRange=new j.XFAObjectArray}}class ke extends j.XFAObject{constructor(U){super(l,"mediumInfo",!0),this.map=null}}class ye extends j.XFAObject{constructor(U){super(l,"message",!0),this.msgId=null,this.severity=null}}class $e extends j.XFAObject{constructor(U){super(l,"messaging",!0),this.message=new j.XFAObjectArray}}class Xe extends j.OptionObject{constructor(U){super(l,"mode",["append","overwrite"])}}class Ze extends j.Option01{constructor(U){super(l,"modifyAnnots")}}class Fe extends j.IntegerObject{constructor(U){super(l,"msgId",1,be=>be>=1)}}class nt extends j.StringObject{constructor(U){super(l,"nameAttr")}}class We extends j.ContentObject{constructor(U){super(l,"neverEmbed")}}class Ee extends j.IntegerObject{constructor(U){super(l,"numberOfCopies",null,be=>be>=2&&be<=5)}}
53class Ve extends j.XFAObject{constructor(U){super(l,"openAction",!0),this.destination=null}}class tt extends j.XFAObject{constructor(U){super(l,"output",!0),this.to=null,this.type=null,this.uri=null}}class Ne extends j.StringObject{constructor(U){super(l,"outputBin")}}class wt extends j.XFAObject{constructor(U){super(l,"outputXSL",!0),this.uri=null}}class dt extends j.OptionObject{constructor(U){super(l,"overprint",["none","both","draw","field"])}}class pt extends j.StringObject{constructor(U){super(l,"packets")}[P.$finalize](){this[P.$content]!=="*"&&(this[P.$content]=this[P.$content].trim().split(/\s+/).filter(U=>["config","datasets","template","xfdf","xslt"].includes(U)))}}class Ot extends j.XFAObject{constructor(U){super(l,"pageOffset"),this.x=(0,e.getInteger)({data:U.x,defaultValue:"useXDCSetting",validate:be=>!0}),this.y=(0,e.getInteger)({data:U.y,defaultValue:"useXDCSetting",validate:be=>!0})}}class ze extends j.StringObject{constructor(U){super(l,"pageRange")}[P.$finalize](){const U=this[P.$content].trim().split(/\s+/).map(Ce=>parseInt(Ce,10)),be=[];for(let Ce=0,Oe=U.length;Ce<Oe;Ce+=2)be.push(U.slice(Ce,Ce+2));this[P.$content]=be}}class Ge extends j.OptionObject{constructor(U){super(l,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class Ue extends j.OptionObject{constructor(U){super(l,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class bt extends j.IntegerObject{constructor(U){super(l,"part",1,be=>!1)}}class vt extends j.XFAObject{constructor(U){super(l,"pcl",!0),this.name=U.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class At extends j.XFAObject{constructor(U){super(l,"pdf",!0),this.name=U.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class lt extends j.XFAObject{constructor(U){super(l,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class Nt extends j.XFAObject{constructor(U){super(l,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class Ut extends j.Option01{constructor(U){super(l,"pickTrayByPDFSize")}}class Ie extends j.StringObject{constructor(U){super(l,"picture")}}class ve extends j.Option01{constructor(U){super(l,"plaintextMetadata")}}class Te extends j.OptionObject{constructor(U){super(l,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class De extends j.XFAObject{constructor(U){super(l,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new j.XFAObjectArray,this.labelPrinter=new j.XFAObjectArray,this.pcl=new j.XFAObjectArray,this.pdf=new j.XFAObjectArray,this.ps=new j.XFAObjectArray,this.submitUrl=new j.XFAObjectArray,this.webClient=new j.XFAObjectArray,this.zpl=new j.XFAObjectArray}}class Le extends j.Option01{constructor(U){super(l,"print")}}class Qe extends j.Option01{constructor(U){super(l,"printHighQuality")}}class Be extends j.OptionObject{constructor(U){super(l,"printScaling",["appdefault","noScaling"])}}class Pe extends j.StringObject{constructor(U){super(l,"printerName")}}class He extends j.StringObject{constructor(U){super(l,"producer")}}class st extends j.XFAObject{constructor(U){super(l,"ps",!0),this.name=U.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class xt extends j.ContentObject{constructor(U){super(l,"range")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s*,\s*/,2).map(U=>U.split("-").map(be=>parseInt(be.trim(),10))).filter(U=>U.every(be=>!isNaN(be))).map(U=>(U.length===1&&U.push(U[0]),U))}}class et extends j.ContentObject{constructor(U){super(l,"record")}[P.$finalize](){this[P.$content]=this[P.$content].trim();const U=parseInt(this[P.$content],10);!isNaN(U)&&U>=0&&(this[P.$content]=U)}}class at extends j.ContentObject{constructor(U){super(l,"relevant")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s+/)}}class ut extends j.ContentObject{constructor(U){super(l,"rename")}[P.$finalize](){this[P.$content]=this[P.$content].trim(),(this[P.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[P.$content]))&&(0,t.warn)("XFA - Rename: invalid XFA name")}}class qe extends j.OptionObject{constructor(U){super(l,"renderPolicy",["server","client"])}}class rt extends j.OptionObject{constructor(U){super(l,"runScripts",["both","client","none","server"])}}class _e extends j.XFAObject{constructor(U){super(l,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class ht extends j.OptionObject{constructor(U){super(l,"scriptModel",["XFA","none"])}}class mt extends j.OptionObject{constructor(U){super(l,"severity",["ignore","error","information","trace","warning"])}}class $t extends j.XFAObject{constructor(U){super(l,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class ot extends j.XFAObject{constructor(U){super(l,"staple"),this.mode=(0,e.getStringOption)(U.mode,["usePrinterSetting","on","off"])}}class ct extends j.StringObject{constructor(U){super(l,"startNode")}}class kt extends j.IntegerObject{constructor(U){super(l,"startPage",0,be=>!0)}}class Pt extends j.OptionObject{constructor(U){super(l,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class zt extends j.StringObject{constructor(U){super(l,"submitUrl")}}class Zt extends j.IntegerObject{constructor(U){super(l,"subsetBelow",100,be=>be>=0&&be<=100)}}class Sn extends j.Option01{constructor(U){super(l,"suppressBanner")}}class An extends j.Option01{constructor(U){super(l,"tagged")}}class kn extends j.XFAObject{constructor(U){super(l,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class Cn extends j.OptionObject{constructor(U){super(l,"threshold",["trace","error","information","warning"])}}class vn extends j.OptionObject{constructor(U){super(l,"to",["null","memory","stderr","stdout","system","uri"])}}class un extends j.XFAObject{constructor(U){super(l,"templateCache"),this.maxEntries=(0,e.getInteger)({data:U.maxEntries,defaultValue:5,validate:be=>be>=0})}}class on extends j.XFAObject{constructor(U){super(l,"trace",!0),this.area=new j.XFAObjectArray}}class Fn extends j.XFAObject{constructor(U){super(l,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class In extends j.OptionObject{constructor(U){super(l,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class On extends j.StringObject{constructor(U){super(l,"uri")}}class cn extends j.OptionObject{constructor(U){super(l,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class fn extends j.ContentObject{constructor(U){super(l,"validateApprovalSignatures")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s+/).filter(U=>["docReady","postSign"].includes(U))}}class dn extends j.OptionObject{constructor(U){super(l,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}
53class Tn extends j.OptionObject{constructor(U){super(l,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Mn extends j.XFAObject{constructor(U){super(l,"VersionControl"),this.outputBelow=(0,e.getStringOption)(U.outputBelow,["warn","error","update"]),this.sourceAbove=(0,e.getStringOption)(U.sourceAbove,["warn","error"]),this.sourceBelow=(0,e.getStringOption)(U.sourceBelow,["update","maintain"])}}class Pn extends j.XFAObject{constructor(U){super(l,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class En extends j.XFAObject{constructor(U){super(l,"webClient",!0),this.name=U.name?U.name.trim():"",this.fontInfo=null,this.xdc=null}}class Nn extends j.OptionObject{constructor(U){super(l,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class ln extends j.ContentObject{constructor(U){super(l,"window")}[P.$finalize](){const U=this[P.$content].trim().split(/\s*,\s*/,2).map(be=>parseInt(be,10));if(U.some(be=>isNaN(be))){this[P.$content]=[0,0];return}U.length===1&&U.push(U[0]),this[P.$content]=U}}class Dn extends j.XFAObject{constructor(U){super(l,"xdc",!0),this.uri=new j.XFAObjectArray,this.xsl=new j.XFAObjectArray}}class en extends j.XFAObject{constructor(U){super(l,"xdp",!0),this.packets=null}}class Rn extends j.XFAObject{constructor(U){super(l,"xsl",!0),this.debug=null,this.uri=null}}class tn extends j.XFAObject{constructor(U){super(l,"zpl",!0),this.name=U.name?U.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class we{static[n.$buildXFAObject](U,be){if(we.hasOwnProperty(U))return we[U](be)}static acrobat(U){return new V(U)}static acrobat7(U){return new J(U)}static ADBE_JSConsole(U){return new B(U)}static ADBE_JSDebugger(U){return new I(U)}static addSilentPrint(U){return new f(U)}static addViewerPreferences(U){return new g(U)}static adjustData(U){return new a(U)}static adobeExtensionLevel(U){return new _(U)}static agent(U){return new y(U)}static alwaysEmbed(U){return new O(U)}static amd(U){return new N(U)}static area(U){return new X(U)}static attributes(U){return new R(U)}static autoSave(U){return new q(U)}static base(U){return new b(U)}static batchOutput(U){return new E(U)}static behaviorOverride(U){return new c(U)}static cache(U){return new u(U)}static change(U){return new T(U)}static common(U){return new r(U)}static compress(U){return new s(U)}static compressLogicalStructure(U){return new o(U)}static compressObjectStream(U){return new m(U)}static compression(U){return new h(U)}static config(U){return new A(U)}static conformance(U){return new L(U)}static contentCopy(U){return new H(U)}static copies(U){return new F(U)}static creator(U){return new M(U)}static currentPage(U){return new k(U)}static data(U){return new x(U)}static debug(U){return new C(U)}static defaultTypeface(U){return new G(U)}static destination(U){return new Z(U)}static documentAssembly(U){return new ae(U)}static driver(U){return new oe(U)}static duplexOption(U){return new te(U)}static dynamicRender(U){return new K(U)}static embed(U){return new v(U)}static encrypt(U){return new $(U)}static encryption(U){return new d(U)}static encryptionLevel(U){return new w(U)}static enforce(U){return new S(U)}static equate(U){return new z(U)}static equateRange(U){return new W(U)}static exclude(U){return new ne(U)}static excludeNS(U){return new Q(U)}static flipLabel(U){return new D(U)}static fontInfo(U){return new Y(U)}static formFieldFilling(U){return new ie(U)}static groupParent(U){return new ee(U)}static ifEmpty(U){return new se(U)}static includeXDPContent(U){return new ce(U)}static incrementalLoad(U){return new le(U)}static incrementalMerge(U){return new de(U)}static interactive(U){return new he(U)}static jog(U){return new me(U)}static labelPrinter(U){return new Se(U)}static layout(U){return new pe(U)}static level(U){return new ge(U)}static linearized(U){return new Ae(U)}static locale(U){return new Me(U)}static localeSet(U){return new xe(U)}static log(U){return new ue(U)}static map(U){return new fe(U)}static mediumInfo(U){return new ke(U)}static message(U){return new ye(U)}static messaging(U){return new $e(U)}static mode(U){return new Xe(U)}static modifyAnnots(U){return new Ze(U)}static msgId(U){return new Fe(U)}static nameAttr(U){return new nt(U)}static neverEmbed(U){return new We(U)}static numberOfCopies(U){return new Ee(U)}static openAction(U){return new Ve(U)}static output(U){return new tt(U)}static outputBin(U){return new Ne(U)}static outputXSL(U){return new wt(U)}static overprint(U){return new dt(U)}static packets(U){return new pt(U)}static pageOffset(U){return new Ot(U)}static pageRange(U){return new ze(U)}static pagination(U){return new Ge(U)}static paginationOverride(U){return new Ue(U)}static part(U){return new bt(U)}static pcl(U){return new vt(U)}static pdf(U){return new At(U)}static pdfa(U){return new lt(U)}static permissions(U){return new Nt(U)}static pickTrayByPDFSize(U){return new Ut(U)}static picture(U){return new Ie(U)}static plaintextMetadata(U){return new ve(U)}static presence(U){return new Te(U)}static present(U){return new De(U)}static print(U){return new Le(U)}static printHighQuality(U){return new Qe(U)}static printScaling(U){return new Be(U)}static printerName(U){return new Pe(U)}static producer(U){return new He(U)}static ps(U){return new st(U)}static range(U){return new xt(U)}static record(U){return new et(U)}static relevant(U){return new at(U)}static rename(U){return new ut(U)}static renderPolicy(U){return new qe(U)}static runScripts(U){return new rt(U)}static script(U){return new _e(U)}static scriptModel(U){return new ht(U)}static severity(U){return new mt(U)}static silentPrint(U){return new $t(U)}static staple(U){return new ot(U)}static startNode(U){return new ct(U)}static startPage(U){return new kt(U)}static submitFormat(U){return new Pt(U)}static submitUrl(U){return new zt(U)}static subsetBelow(U){return new Zt(U)}static suppressBanner(U){return new Sn(U)}static tagged(U){return new An(U)}static template(U){return new kn(U)}static templateCache(U){return new un(U)}static threshold(U){return new Cn(U)}static to(U){return new vn(U)}static trace(U){return new on(U)}static transform(U){return new Fn(U)}static type(U){return new In(U)}static uri(U){return new On(U)}static validate(U){return new cn(U)}static validateApprovalSignatures(U){return new fn(U)}static validationMessaging(U){return new dn(U)}static version(U){return new Tn(U)}static versionControl(U){return new Mn(U)}static viewerPreferences(U){return new Pn(U)}static webClient(U){return new En(U)}static whitespace(U){return new Nn(U)}static window(U){return new ln(U)}static xdc(U){return new Dn(U)}static xdp(U){return new en(U)}static xsl(U){return new Rn(U)}static zpl(U){return new tn(U)}}p.ConfigNamespace=we},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ConnectionSetNamespace=void 0;var n=re(81),P=re(87);const j=n.NamespaceIds.connectionSet.id;class e extends P.XFAObject{constructor(X){super(j,"connectionSet",!0),this.wsdlConnection=new P.XFAObjectArray,this.xmlConnection=new P.XFAObjectArray,this.xsdConnection=new P.XFAObjectArray}}class t extends P.XFAObject{constructor(X){super(j,"effectiveInputPolicy"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class l extends P.XFAObject{constructor(X){super(j,"effectiveOutputPolicy"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class V extends P.StringObject{constructor(X){super(j,"operation"),this.id=X.id||"",this.input=X.input||"",this.name=X.name||"",this.output=X.output||"",this.use=X.use||"",this.usehref=X.usehref||""}}class J extends P.StringObject{constructor(X){super(j,"rootElement"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class B extends P.StringObject{constructor(X){super(j,"soapAction"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class I extends P.StringObject{constructor(X){super(j,"soapAddress"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class f extends P.StringObject{constructor(X){super(j,"uri"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class g extends P.StringObject{constructor(X){super(j,"wsdlAddress"),this.id=X.id||"",this.name=X.name||"",this.use=X.use||"",this.usehref=X.usehref||""}}class a extends P.XFAObject{constructor(X){super(j,"wsdlConnection",!0),this.dataDescription=X.dataDescription||"",this.name=X.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class _ extends P.XFAObject{constructor(X){super(j,"xmlConnection",!0),this.dataDescription=X.dataDescription||"",this.name=X.name||"",this.uri=null}}class y extends P.XFAObject{constructor(X){super(j,"xsdConnection",!0),this.dataDescription=X.dataDescription||"",this.name=X.name||"",this.rootElement=null,this.uri=null}}class O{static[n.$buildXFAObject](X,R){if(O.hasOwnProperty(X))return O[X](R)}static connectionSet(X){return new e(X)}static effectiveInputPolicy(X){return new t(X)}static effectiveOutputPolicy(X){return new l(X)}static operation(X){return new V(X)}
53static rootElement(X){return new J(X)}static soapAction(X){return new B(X)}static soapAddress(X){return new I(X)}static uri(X){return new f(X)}static wsdlAddress(X){return new g(X)}static wsdlConnection(X){return new a(X)}static xmlConnection(X){return new _(X)}static xsdConnection(X){return new y(X)}}p.ConnectionSetNamespace=O},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.DatasetsNamespace=void 0;var n=re(78),P=re(81),j=re(87);const e=P.NamespaceIds.datasets.id;class t extends j.XmlObject{constructor(B){super(e,"data",B)}[n.$isNsAgnostic](){return!0}}class l extends j.XFAObject{constructor(B){super(e,"datasets",!0),this.data=null,this.Signature=null}[n.$onChild](B){const I=B[n.$nodeName];(I==="data"&&B[n.$namespaceId]===e||I==="Signature"&&B[n.$namespaceId]===P.NamespaceIds.signature.id)&&(this[I]=B),this[n.$appendChild](B)}}class V{static[P.$buildXFAObject](B,I){if(V.hasOwnProperty(B))return V[B](I)}static datasets(B){return new l(B)}static data(B){return new t(B)}}p.DatasetsNamespace=V},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.LocaleSetNamespace=void 0;var n=re(81),P=re(87),j=re(84);const e=n.NamespaceIds.localeSet.id;class t extends P.XFAObject{constructor(A){super(e,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new P.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new P.XFAObjectArray(2)}}class l extends P.StringObject{constructor(A){super(e,"currencySymbol"),this.name=(0,j.getStringOption)(A.name,["symbol","isoname","decimal"])}}class V extends P.XFAObject{constructor(A){super(e,"currencySymbols",!0),this.currencySymbol=new P.XFAObjectArray(3)}}class J extends P.StringObject{constructor(A){super(e,"datePattern"),this.name=(0,j.getStringOption)(A.name,["full","long","med","short"])}}class B extends P.XFAObject{constructor(A){super(e,"datePatterns",!0),this.datePattern=new P.XFAObjectArray(4)}}class I extends P.ContentObject{constructor(A){super(e,"dateTimeSymbols")}}class f extends P.StringObject{constructor(A){super(e,"day")}}class g extends P.XFAObject{constructor(A){super(e,"dayNames",!0),this.abbr=(0,j.getInteger)({data:A.abbr,defaultValue:0,validate:L=>L===1}),this.day=new P.XFAObjectArray(7)}}class a extends P.StringObject{constructor(A){super(e,"era")}}class _ extends P.XFAObject{constructor(A){super(e,"eraNames",!0),this.era=new P.XFAObjectArray(2)}}class y extends P.XFAObject{constructor(A){super(e,"locale",!0),this.desc=A.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class O extends P.XFAObject{constructor(A){super(e,"localeSet",!0),this.locale=new P.XFAObjectArray}}class N extends P.StringObject{constructor(A){super(e,"meridiem")}}class X extends P.XFAObject{constructor(A){super(e,"meridiemNames",!0),this.meridiem=new P.XFAObjectArray(2)}}class R extends P.StringObject{constructor(A){super(e,"month")}}class q extends P.XFAObject{constructor(A){super(e,"monthNames",!0),this.abbr=(0,j.getInteger)({data:A.abbr,defaultValue:0,validate:L=>L===1}),this.month=new P.XFAObjectArray(12)}}class b extends P.StringObject{constructor(A){super(e,"numberPattern"),this.name=(0,j.getStringOption)(A.name,["full","long","med","short"])}}class E extends P.XFAObject{constructor(A){super(e,"numberPatterns",!0),this.numberPattern=new P.XFAObjectArray(4)}}class c extends P.StringObject{constructor(A){super(e,"numberSymbol"),this.name=(0,j.getStringOption)(A.name,["decimal","grouping","percent","minus","zero"])}}class u extends P.XFAObject{constructor(A){super(e,"numberSymbols",!0),this.numberSymbol=new P.XFAObjectArray(5)}}class T extends P.StringObject{constructor(A){super(e,"timePattern"),this.name=(0,j.getStringOption)(A.name,["full","long","med","short"])}}class r extends P.XFAObject{constructor(A){super(e,"timePatterns",!0),this.timePattern=new P.XFAObjectArray(4)}}class s extends P.XFAObject{constructor(A){super(e,"typeFace",!0),this.name=A.name|""}}class o extends P.XFAObject{constructor(A){super(e,"typeFaces",!0),this.typeFace=new P.XFAObjectArray}}
53class m{static[n.$buildXFAObject](A,L){if(m.hasOwnProperty(A))return m[A](L)}static calendarSymbols(A){return new t(A)}static currencySymbol(A){return new l(A)}static currencySymbols(A){return new V(A)}static datePattern(A){return new J(A)}static datePatterns(A){return new B(A)}static dateTimeSymbols(A){return new I(A)}static day(A){return new f(A)}static dayNames(A){return new g(A)}static era(A){return new a(A)}static eraNames(A){return new _(A)}static locale(A){return new y(A)}static localeSet(A){return new O(A)}static meridiem(A){return new N(A)}static meridiemNames(A){return new X(A)}static month(A){return new R(A)}static monthNames(A){return new q(A)}static numberPattern(A){return new b(A)}static numberPatterns(A){return new E(A)}static numberSymbol(A){return new c(A)}static numberSymbols(A){return new u(A)}static timePattern(A){return new T(A)}static timePatterns(A){return new r(A)}static typeFace(A){return new s(A)}static typeFaces(A){return new o(A)}}p.LocaleSetNamespace=m},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.SignatureNamespace=void 0;var n=re(81),P=re(87);const j=n.NamespaceIds.signature.id;class e extends P.XFAObject{constructor(V){super(j,"signature",!0)}}class t{static[n.$buildXFAObject](V,J){if(t.hasOwnProperty(V))return t[V](J)}static signature(V){return new e(V)}}p.SignatureNamespace=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StylesheetNamespace=void 0;var n=re(81),P=re(87);const j=n.NamespaceIds.stylesheet.id;class e extends P.XFAObject{constructor(V){super(j,"stylesheet",!0)}}class t{static[n.$buildXFAObject](V,J){if(t.hasOwnProperty(V))return t[V](J)}static stylesheet(V){return new e(V)}}p.StylesheetNamespace=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XdpNamespace=void 0;var n=re(81),P=re(78),j=re(87);const e=n.NamespaceIds.xdp.id;class t extends j.XFAObject{constructor(J){super(e,"xdp",!0),this.uuid=J.uuid||"",this.timeStamp=J.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new j.XFAObjectArray,this.template=null}[P.$onChildCheck](J){const B=n.NamespaceIds[J[P.$nodeName]];return B&&J[P.$namespaceId]===B.id}}class l{static[n.$buildXFAObject](J,B){if(l.hasOwnProperty(J))return l[J](B)}static xdp(J){return new t(J)}}p.XdpNamespace=l},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.XhtmlNamespace=void 0;var n=re(78),P=re(81),j=re(83),e=re(84),t=re(87);const l=P.NamespaceIds.xhtml.id,V=Symbol(),J=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),B=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",A=>A==="none"?"none":"normal"],["xfa-font-horizontal-scale",A=>`scaleX(${Math.max(0,Math.min(parseInt(A)/100)).toFixed(2)})`],["xfa-font-vertical-scale",A=>`scaleY(${Math.max(0,Math.min(parseInt(A)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(A,L)=>(A=L.fontSize=(0,e.getMeasurement)(A),(0,j.measureToString)(.99*A))],["letter-spacing",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["line-height",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["margin",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["margin-bottom",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["margin-left",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["margin-right",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["margin-top",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["text-indent",A=>(0,j.measureToString)((0,e.getMeasurement)(A))],["font-family",A=>A],["vertical-align",A=>(0,j.measureToString)((0,e.getMeasurement)(A))]]),I=/\s+/g,f=/[\r\n]+/g,g=/\r\n?/g;function a(A,L,H){const F=Object.create(null);if(!A)return F;const M=Object.create(null);for(const[k,x]of A.split(";").map(C=>C.split(":",2))){const C=B.get(k);if(C==="")continue;let G=x;C&&(G=typeof C=="string"?C:C(x,M)),k.endsWith("scale")?F.transform=F.transform?`${F[k]} ${G}`:G:F[k.replaceAll(/-([a-zA-Z])/g,(Z,ae)=>ae.toUpperCase())]=G}
53if(F.fontFamily&&(0,j.setFontFamily)({typeface:F.fontFamily,weight:F.fontWeight||"normal",posture:F.fontStyle||"normal",size:M.fontSize||0},L,L[n.$globalData].fontFinder,F),H&&F.verticalAlign&&F.verticalAlign!=="0px"&&F.fontSize){const C=(0,e.getMeasurement)(F.fontSize);F.fontSize=(0,j.measureToString)(C*.583),F.verticalAlign=(0,j.measureToString)(Math.sign((0,e.getMeasurement)(F.verticalAlign))*C*.333)}return H&&F.fontSize&&(F.fontSize=`calc(${F.fontSize} * var(--scale-factor))`),(0,j.fixTextIndent)(F),F}function _(A){return A.style?A.style.trim().split(/\s*;\s*/).filter(L=>!!L).map(L=>L.split(/\s*:\s*/,2)).filter(([L,H])=>(L==="font-family"&&A[n.$globalData].usedTypefaces.add(H),J.has(L))).map(L=>L.join(":")).join(";"):""}const y=new Set(["body","html"]);class O extends t.XmlObject{constructor(L,H){super(l,H),this[V]=!1,this.style=L.style||""}[n.$clean](L){super[n.$clean](L),this.style=_(this)}[n.$acceptWhitespace](){return!y.has(this[n.$nodeName])}[n.$onText](L,H=!1){H?this[V]=!0:(L=L.replaceAll(f,""),this.style.includes("xfa-spacerun:yes")||(L=L.replaceAll(I," "))),L&&(this[n.$content]+=L)}[n.$pushGlyphs](L,H=!0){const F=Object.create(null),M={top:NaN,bottom:NaN,left:NaN,right:NaN};let k=null;for(const[x,C]of this.style.split(";").map(G=>G.split(":",2)))switch(x){case"font-family":F.typeface=(0,e.stripQuotes)(C);break;case"font-size":F.size=(0,e.getMeasurement)(C);break;case"font-weight":F.weight=C;break;case"font-style":F.posture=C;break;case"letter-spacing":F.letterSpacing=(0,e.getMeasurement)(C);break;case"margin":const G=C.split(/ \t/).map(Z=>(0,e.getMeasurement)(Z));switch(G.length){case 1:M.top=M.bottom=M.left=M.right=G[0];break;case 2:M.top=M.bottom=G[0],M.left=M.right=G[1];break;case 3:M.top=G[0],M.bottom=G[2],M.left=M.right=G[1];break;case 4:M.top=G[0],M.left=G[1],M.bottom=G[2],M.right=G[3];break}break;case"margin-top":M.top=(0,e.getMeasurement)(C);break;case"margin-bottom":M.bottom=(0,e.getMeasurement)(C);break;case"margin-left":M.left=(0,e.getMeasurement)(C);break;case"margin-right":M.right=(0,e.getMeasurement)(C);break;case"line-height":k=(0,e.getMeasurement)(C);break}if(L.pushData(F,M,k),this[n.$content])L.addString(this[n.$content]);else for(const x of this[n.$getChildren]()){if(x[n.$nodeName]==="#text"){L.addString(x[n.$content]);continue}x[n.$pushGlyphs](L)}H&&L.popFont()}[n.$toHTML](L){const H=[];if(this[n.$extra]={children:H},this[n.$childrenToHTML]({}),H.length===0&&!this[n.$content])return e.HTMLResult.EMPTY;let F;return this[V]?F=this[n.$content]?this[n.$content].replaceAll(g,` 54`):void 0:F=this[n.$content]||void 0,e.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:a(this.style,this,this[V])},children:H,value:F})}}class N extends O{constructor(L){super(L,"a"),this.href=(0,j.fixURL)(L.href)||""}}class X extends O{constructor(L){super(L,"b")}[n.$pushGlyphs](L){L.pushFont({weight:"bold"}),super[n.$pushGlyphs](L),L.popFont()}}class R extends O{constructor(L){super(L,"body")}[n.$toHTML](L){const H=super[n.$toHTML](L),{html:F}=H;return F?(F.name="div",F.attributes.class=["xfaRich"],H):e.HTMLResult.EMPTY}}class q extends O{constructor(L){super(L,"br")}[n.$text](){return` 55`}[n.$pushGlyphs](L){L.addString(` 56`)}[n.$toHTML](L){return e.HTMLResult.success({name:"br"})}}class b extends O{constructor(L){super(L,"html")}[n.$toHTML](L){var F;const H=[];if(this[n.$extra]={children:H},this[n.$childrenToHTML]({}),H.length===0)return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""});if(H.length===1){const M=H[0];if((F=M.attributes)!=null&&F.class.includes("xfaRich"))return e.HTMLResult.success(M)}return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:H})}}class E extends O{constructor(L){super(L,"i")}[n.$pushGlyphs](L){L.pushFont({posture:"italic"}),super[n.$pushGlyphs](L),L.popFont()}}class c extends O{constructor(L){super(L,"li")}}class u extends O{constructor(L){super(L,"ol")}}class T extends O{constructor(L){super(L,"p")}[n.$pushGlyphs](L){super[n.$pushGlyphs](L,!1),L.addString(` 57`),L.addPara(),L.popFont()}[n.$text](){return this[n.$getParent]()[n.$getChildren]().at(-1)===this?super[n.$text]():super[n.$text]()+` 58`}}class r extends O{constructor(L){super(L,"span")}}class s extends O{constructor(L){super(L,"sub")}}class o extends O{constructor(L){super(L,"sup")}}class m extends O{constructor(L){super(L,"ul")}}class h{static[P.$buildXFAObject](L,H){if(h.hasOwnProperty(L))return h[L](H)}static a(L){return new N(L)}static b(L){return new X(L)}static body(L){return new R(L)}static br(L){return new q(L)}static html(L){return new b(L)}static i(L){return new E(L)}static li(L){return new c(L)}static ol(L){return new u(L)}static p(L){return new T(L)}static span(L){return new r(L)}static sub(L){return new s(L)}static sup(L){return new o(L)}static ul(L){return new m(L)}}p.XhtmlNamespace=h},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.UnknownNamespace=void 0;var n=re(81),P=re(87);
58class j{constructor(t){this.namespaceId=t}[n.$buildXFAObject](t,l){return new P.XmlObject(this.namespaceId,t,l)}}p.UnknownNamespace=j},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.DatasetReader=void 0;var n=re(2),P=re(3),j=re(71);function e(V){try{return(0,n.stringToUTF8String)(V)}catch(J){return(0,n.warn)(`UTF-8 decoding failed: "${J}".`),V}}class t extends j.SimpleXMLParser{constructor(J){super(J),this.node=null}onEndElement(J){const B=super.onEndElement(J);if(B&&J==="xfa:datasets")throw this.node=B,new Error("Aborting DatasetXMLParser.")}}class l{constructor(J){if(J.datasets)this.node=new j.SimpleXMLParser({hasAttributes:!0}).parseFromString(J.datasets).documentElement;else{const B=new t({hasAttributes:!0});try{B.parseFromString(J["xdp:xdp"])}catch{}this.node=B.node}}getValue(J){if(!this.node||!J)return"";const B=this.node.searchNode((0,P.parseXFAPath)(J),0);if(!B)return"";const I=B.firstChild;return(I==null?void 0:I.nodeName)==="value"?B.children.map(f=>e(f.textContent)):e(B.textContent)}}p.DatasetReader=l},(Re,p,re)=>{var J;Object.defineProperty(p,"__esModule",{value:!0}),p.XRef=void 0;var n=re(2),P=re(4),j=re(16),e=re(3),t=re(5),l=re(74);class V{constructor(I,f){Lt(this,J,null);this.stream=I,this.pdfManager=f,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new P.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(I){this._newPersistentRefNum===null&&(this._newPersistentRefNum=this.entries.length||1);const f=this._newPersistentRefNum++;return this._cacheMap.set(f,I),P.Ref.get(f,0)}getNewTemporaryRef(){return this._newTemporaryRefNum===null&&(this._newTemporaryRefNum=this.entries.length||1),P.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(I){this.startXRefQueue=[I]}parse(I=!1){let f;I?((0,n.warn)("Indexing all PDF objects"),f=this.indexObjects()):f=this.readXRef(),f.assignXref(this),this.trailer=f;let g;try{g=f.get("Encrypt")}catch(_){if(_ instanceof e.MissingDataException)throw _;(0,n.warn)(`XRef.parse - Invalid "Encrypt" reference: "${_}".`)}if(g instanceof P.Dict){const _=f.get("ID"),y=_!=null&&_.length?_[0]:"";g.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(g,y,this.pdfManager.password)}let a;try{a=f.get("Root")}catch(_){if(_ instanceof e.MissingDataException)throw _;(0,n.warn)(`XRef.parse - Invalid "Root" reference: "${_}".`)}if(a instanceof P.Dict)try{if(a.get("Pages")instanceof P.Dict){this.root=a;return}}catch(_){if(_ instanceof e.MissingDataException)throw _;(0,n.warn)(`XRef.parse - Invalid "Pages" reference: "${_}".`)}throw I?new n.InvalidPDFException("Invalid Root reference."):new e.XRefParseException}processXRefTable(I){"tableState"in this||(this.tableState={entryNum:0,streamPos:I.lexer.stream.pos,parserBuf1:I.buf1,parserBuf2:I.buf2});const f=this.readXRefTable(I);if(!(0,P.isCmd)(f,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");let g=I.getObj();if(!(g instanceof P.Dict)&&g.dict&&(g=g.dict),!(g instanceof P.Dict))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,g}readXRefTable(I){const f=I.lexer.stream,g=this.tableState;f.pos=g.streamPos,I.buf1=g.parserBuf1,I.buf2=g.parserBuf2;let a;for(;;){if(!("firstEntryNum"in g)||!("entryCount"in g)){if((0,P.isCmd)(a=I.getObj(),"trailer"))break;g.firstEntryNum=a,g.entryCount=I.getObj()}let _=g.firstEntryNum;const y=g.entryCount;if(!Number.isInteger(_)||!Number.isInteger(y))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(let O=g.entryNum;O<y;O++){g.streamPos=f.pos,g.entryNum=O,g.parserBuf1=I.buf1,g.parserBuf2=I.buf2;const N={};N.offset=I.getObj(),N.gen=I.getObj();const X=I.getObj();if(X instanceof P.Cmd)switch(X.cmd){case"f":N.free=!0;break;case"n":N.uncompressed=!0;break}if(!Number.isInteger(N.offset)||!Number.isInteger(N.gen)||!(N.free||N.uncompressed))throw new n.FormatError(`Invalid entry in XRef subsection: ${_}, ${y}`);O===0&&N.free&&_===1&&(_=0),this.entries[O+_]||(this.entries[O+_]=N)}g.entryNum=0,g.streamPos=f.pos,g.parserBuf1=I.buf1,g.parserBuf2=I.buf2,delete g.firstEntryNum,delete g.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new n.FormatError("Invalid XRef table: unexpected first object");return a}processXRefStream(I){if(!("streamState"in this)){const f=I.dict,g=f.get("W");let a=f.get("Index");a||(a=[0,f.get("Size")]),this.streamState={entryRanges:a,byteWidths:g,entryNum:0,streamPos:I.pos}}return this.readXRefStream(I),delete this.streamState,I.dict}readXRefStream(I){const f=this.streamState;I.pos=f.streamPos;const[g,a,_]=f.byteWidths,y=f.entryRanges;for(;y.length>0;){const[O,N]=y;if(!Number.isInteger(O)||!Number.isInteger(N))throw new n.FormatError(`Invalid XRef range fields: ${O}, ${N}`);if(!Number.isInteger(g)||!Number.isInteger(a)||!Number.isInteger(_))throw new n.FormatError(`Invalid XRef entry fields length: ${O}, ${N}`);for(let X=f.entryNum;X<N;++X){f.entryNum=X,f.streamPos=I.pos;let R=0,q=0,b=0;for(let c=0;c<g;++c){const u=I.getByte();if(u===-1)throw new n.FormatError("Invalid XRef byteWidths 'type'.");R=R<<8|u}g===0&&(R=1);for(let c=0;c<a;++c){const u=I.getByte();if(u===-1)throw new n.FormatError("Invalid XRef byteWidths 'offset'.");q=q<<8|u}for(let c=0;c<_;++c){const u=I.getByte();if(u===-1)throw new n.FormatError("Invalid XRef byteWidths 'generation'.");b=b<<8|u}const E={};switch(E.offset=q,E.gen=b,R){case 0:E.free=!0;break;case 1:E.uncompressed=!0;break;case 2:break;default:throw new n.FormatError(`Invalid XRef entry type: ${R}`)}
58this.entries[O+X]||(this.entries[O+X]=E)}f.entryNum=0,f.streamPos=I.pos,y.splice(0,2)}}indexObjects(){function O(M,k){let x="",C=M[k];for(;C!==10&&C!==13&&C!==60&&!(++k>=M.length);)x+=String.fromCharCode(C),C=M[k];return x}function N(M,k,x){const C=x.length,G=M.length;let Z=0;for(;k<G;){let ae=0;for(;ae<C&&M[k+ae]===x[ae];)++ae;if(ae>=C)break;k++,Z++}return Z}const X=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,R=/\b(startxref|\d+\s+\d+\s+obj)\b/g,q=/^(\d+)\s+(\d+)\s+obj\b/,b=new Uint8Array([116,114,97,105,108,101,114]),E=new Uint8Array([115,116,97,114,116,120,114,101,102]),c=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const u=this.stream;u.pos=0;const T=u.getBytes(),r=(0,n.bytesToString)(T),s=T.length;let o=u.start;const m=[],h=[];for(;o<s;){let M=T[o];if(M===9||M===10||M===13||M===32){++o;continue}if(M===37){do{if(++o,o>=s)break;M=T[o]}while(M!==10&&M!==13);continue}const k=O(T,o);let x;if(k.startsWith("xref")&&(k.length===4||/\s/.test(k[4])))o+=N(T,o,b),m.push(o),o+=N(T,o,E);else if(x=q.exec(k)){const C=x[1]|0,G=x[2]|0,Z=o+k.length;let ae,oe=!1;if(!this.entries[C])oe=!0;else if(this.entries[C].gen===G)try{new j.Parser({lexer:new j.Lexer(u.makeSubStream(Z))}).getObj(),oe=!0}catch($){$ instanceof e.ParserEOFException?(0,n.warn)(`indexObjects -- checking object (${k}): "${$}".`):oe=!0}oe&&(this.entries[C]={offset:o-u.start,gen:G,uncompressed:!0}),X.lastIndex=Z;const te=X.exec(r);te?(ae=X.lastIndex+1-o,te[1]!=="endobj"&&((0,n.warn)(`indexObjects: Found "${te[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),ae-=te[1].length+1)):ae=s-o;const K=T.subarray(o,o+ae),v=N(K,0,c);v<ae&&K[v+5]<64&&(h.push(o-u.start),this._xrefStms.add(o-u.start)),o+=ae}else if(k.startsWith("trailer")&&(k.length===7||/\s/.test(k[7]))){m.push(o);const C=o+k.length;let G;R.lastIndex=C;const Z=R.exec(r);Z?(G=R.lastIndex+1-o,Z[1]!=="startxref"&&((0,n.warn)(`indexObjects: Found "${Z[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),G-=Z[1].length+1)):G=s-o,o+=G}else o+=k.length+1}for(const M of h)this.startXRefQueue.push(M),this.readXRef(!0);const A=[];let L=!1;for(const M of m){u.pos=M;const k=new j.Parser({lexer:new j.Lexer(u),xref:this,allowStreams:!0,recoveryMode:!0}),x=k.getObj();if(!(0,P.isCmd)(x,"trailer"))continue;const C=k.getObj();C instanceof P.Dict&&(A.push(C),C.has("Encrypt")&&(L=!0))}let H,F;for(const M of[...A,"genFallback",...A]){if(M==="genFallback"){if(!F)break;this._generationFallback=!0;continue}let k=!1;try{const x=M.get("Root");if(!(x instanceof P.Dict))continue;const C=x.get("Pages");if(!(C instanceof P.Dict))continue;const G=C.get("Count");Number.isInteger(G)&&(k=!0)}catch(x){F=x;continue}if(k&&(!L||M.has("Encrypt"))&&M.has("ID"))return M;H=M}if(H)return H;if(this.topDict)return this.topDict;throw new n.InvalidPDFException("Invalid PDF structure.")}readXRef(I=!1){const f=this.stream,g=new Set;for(;this.startXRefQueue.length;){try{const a=this.startXRefQueue[0];if(g.has(a)){(0,n.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}g.add(a),f.pos=a+f.start;const _=new j.Parser({lexer:new j.Lexer(f),xref:this,allowStreams:!0});let y=_.getObj(),O;if((0,P.isCmd)(y,"xref"))O=this.processXRefTable(_),this.topDict||(this.topDict=O),y=O.get("XRefStm"),Number.isInteger(y)&&!this._xrefStms.has(y)&&(this._xrefStms.add(y),this.startXRefQueue.push(y),Bt(this,J)??xn(this,J,y));else if(Number.isInteger(y)){if(!Number.isInteger(_.getObj())||!(0,P.isCmd)(_.getObj(),"obj")||!((y=_.getObj())instanceof t.BaseStream))throw new n.FormatError("Invalid XRef stream");if(O=this.processXRefStream(y),this.topDict||(this.topDict=O),!O)throw new n.FormatError("Failed to read XRef stream")}else throw new n.FormatError("Invalid XRef stream header");y=O.get("Prev"),Number.isInteger(y)?this.startXRefQueue.push(y):y instanceof P.Ref&&this.startXRefQueue.push(y.num)}catch(a){if(a instanceof e.MissingDataException)throw a;(0,n.info)("(while reading XRef): "+a)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!I)throw new e.XRefParseException}get lastXRefStreamPos(){return Bt(this,J)??(this._xrefStms.size>0?Math.max(...this._xrefStms):null)}getEntry(I){const f=this.entries[I];return f&&!f.free&&f.offset?f:null}fetchIfRef(I,f=!1){return I instanceof P.Ref?this.fetch(I,f):I}fetch(I,f=!1){if(!(I instanceof P.Ref))throw new Error("ref object is not a reference");const g=I.num,a=this._cacheMap.get(g);if(a!==void 0)return a instanceof P.Dict&&!a.objId&&(a.objId=I.toString()),a;let _=this.getEntry(g);if(_===null)return this._cacheMap.set(g,_),_;
58if(this._pendingRefs.has(I))return this._pendingRefs.remove(I),(0,n.warn)(`Ignoring circular reference: ${I}.`),P.CIRCULAR_REF;this._pendingRefs.put(I);try{_=_.uncompressed?this.fetchUncompressed(I,_,f):this.fetchCompressed(I,_,f),this._pendingRefs.remove(I)}catch(y){throw this._pendingRefs.remove(I),y}return _ instanceof P.Dict?_.objId=I.toString():_ instanceof t.BaseStream&&(_.dict.objId=I.toString()),_}fetchUncompressed(I,f,g=!1){const a=I.gen;let _=I.num;if(f.gen!==a){const q=`Inconsistent generation in XRef: ${I}`;if(this._generationFallback&&f.gen<a)return(0,n.warn)(q),this.fetchUncompressed(P.Ref.get(_,f.gen),f,g);throw new e.XRefEntryException(q)}const y=this.stream.makeSubStream(f.offset+this.stream.start),O=new j.Parser({lexer:new j.Lexer(y),xref:this,allowStreams:!0}),N=O.getObj(),X=O.getObj(),R=O.getObj();if(N!==_||X!==a||!(R instanceof P.Cmd))throw new e.XRefEntryException(`Bad (uncompressed) XRef entry: ${I}`);if(R.cmd!=="obj"){if(R.cmd.startsWith("obj")&&(_=parseInt(R.cmd.substring(3),10),!Number.isNaN(_)))return _;throw new e.XRefEntryException(`Bad (uncompressed) XRef entry: ${I}`)}return f=this.encrypt&&!g?O.getObj(this.encrypt.createCipherTransform(_,a)):O.getObj(),f instanceof t.BaseStream||this._cacheMap.set(_,f),f}fetchCompressed(I,f,g=!1){const a=f.offset,_=this.fetch(P.Ref.get(a,0));if(!(_ instanceof t.BaseStream))throw new n.FormatError("bad ObjStm stream");const y=_.dict.get("First"),O=_.dict.get("N");if(!Number.isInteger(y)||!Number.isInteger(O))throw new n.FormatError("invalid first and n parameters for ObjStm stream");let N=new j.Parser({lexer:new j.Lexer(_),xref:this,allowStreams:!0});const X=new Array(O),R=new Array(O);for(let E=0;E<O;++E){const c=N.getObj();if(!Number.isInteger(c))throw new n.FormatError(`invalid object number in the ObjStm stream: ${c}`);const u=N.getObj();if(!Number.isInteger(u))throw new n.FormatError(`invalid object offset in the ObjStm stream: ${u}`);X[E]=c,R[E]=u}const q=(_.start||0)+y,b=new Array(O);for(let E=0;E<O;++E){const c=E<O-1?R[E+1]-R[E]:void 0;if(c<0)throw new n.FormatError("Invalid offset in the ObjStm stream.");N=new j.Parser({lexer:new j.Lexer(_.makeSubStream(q+R[E],c,_.dict)),xref:this,allowStreams:!0});const u=N.getObj();if(b[E]=u,u instanceof t.BaseStream)continue;const T=X[E],r=this.entries[T];r&&r.offset===a&&r.gen===E&&this._cacheMap.set(T,u)}if(f=b[f.gen],f===void 0)throw new e.XRefEntryException(`Bad (compressed) XRef entry: ${I}`);return f}async fetchIfRefAsync(I,f){return I instanceof P.Ref?this.fetchAsync(I,f):I}async fetchAsync(I,f){try{return this.fetch(I,f)}catch(g){if(!(g instanceof e.MissingDataException))throw g;return await this.pdfManager.requestRange(g.begin,g.end),this.fetchAsync(I,f)}}getCatalogObj(){return this.root}}J=new WeakMap,p.XRef=V},(Re,p,re)=>{var l,sa,ra,wn;Object.defineProperty(p,"__esModule",{value:!0}),p.MessageHandler=void 0;var n=re(2);const P={UNKNOWN:0,DATA:1,ERROR:2},j={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function e(I){switch(I instanceof Error||typeof I=="object"&&I!==null||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),I.name){case"AbortException":return new n.AbortException(I.message);case"MissingPDFException":return new n.MissingPDFException(I.message);case"PasswordException":return new n.PasswordException(I.message,I.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(I.message,I.status);case"UnknownErrorException":return new n.UnknownErrorException(I.message,I.details);default:return new n.UnknownErrorException(I.message,I.toString())}}class t{constructor(f,g,a){Lt(this,l);this.sourceName=f,this.targetName=g,this.comObj=a,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=_=>{const y=_.data;if(y.targetName!==this.sourceName)return;if(y.stream){it(this,l,ra).call(this,y);return}if(y.callback){const N=y.callbackId,X=this.callbackCapabilities[N];if(!X)throw new Error(`Cannot resolve callback ${N}`);if(delete this.callbackCapabilities[N],y.callback===P.DATA)X.resolve(y.data);else if(y.callback===P.ERROR)X.reject(e(y.reason));else throw new Error("Unexpected callback case");return}const O=this.actionHandler[y.action];if(!O)throw new Error(`Unknown action from worker: ${y.action}`);if(y.callbackId){const N=this.sourceName,X=y.sourceName;new Promise(function(R){R(O(y.data))}).then(function(R){a.postMessage({sourceName:N,targetName:X,callback:P.DATA,callbackId:y.callbackId,data:R})},function(R){a.postMessage({sourceName:N,targetName:X,callback:P.ERROR,callbackId:y.callbackId,reason:e(R)})});return}
58if(y.streamId){it(this,l,sa).call(this,y);return}O(y.data)},a.addEventListener("message",this._onComObjOnMessage)}on(f,g){const a=this.actionHandler;if(a[f])throw new Error(`There is already an actionName called "${f}"`);a[f]=g}send(f,g,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:f,data:g},a)}sendWithPromise(f,g,a){const _=this.callbackId++,y=new n.PromiseCapability;this.callbackCapabilities[_]=y;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:f,callbackId:_,data:g},a)}catch(O){y.reject(O)}return y.promise}sendWithStream(f,g,a,_){const y=this.streamId++,O=this.sourceName,N=this.targetName,X=this.comObj;return new ReadableStream({start:R=>{const q=new n.PromiseCapability;return this.streamControllers[y]={controller:R,startCall:q,pullCall:null,cancelCall:null,isClosed:!1},X.postMessage({sourceName:O,targetName:N,action:f,streamId:y,data:g,desiredSize:R.desiredSize},_),q.promise},pull:R=>{const q=new n.PromiseCapability;return this.streamControllers[y].pullCall=q,X.postMessage({sourceName:O,targetName:N,stream:j.PULL,streamId:y,desiredSize:R.desiredSize}),q.promise},cancel:R=>{(0,n.assert)(R instanceof Error,"cancel must have a valid reason");const q=new n.PromiseCapability;return this.streamControllers[y].cancelCall=q,this.streamControllers[y].isClosed=!0,X.postMessage({sourceName:O,targetName:N,stream:j.CANCEL,streamId:y,reason:e(R)}),q.promise}},a)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}l=new WeakSet,sa=function(f){const g=f.streamId,a=this.sourceName,_=f.sourceName,y=this.comObj,O=this,N=this.actionHandler[f.action],X={enqueue(R,q=1,b){if(this.isCancelled)return;const E=this.desiredSize;this.desiredSize-=q,E>0&&this.desiredSize<=0&&(this.sinkCapability=new n.PromiseCapability,this.ready=this.sinkCapability.promise),y.postMessage({sourceName:a,targetName:_,stream:j.ENQUEUE,streamId:g,chunk:R},b)},close(){this.isCancelled||(this.isCancelled=!0,y.postMessage({sourceName:a,targetName:_,stream:j.CLOSE,streamId:g}),delete O.streamSinks[g])},error(R){(0,n.assert)(R instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,y.postMessage({sourceName:a,targetName:_,stream:j.ERROR,streamId:g,reason:e(R)}))},sinkCapability:new n.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:f.desiredSize,ready:null};X.sinkCapability.resolve(),X.ready=X.sinkCapability.promise,this.streamSinks[g]=X,new Promise(function(R){R(N(f.data,X))}).then(function(){y.postMessage({sourceName:a,targetName:_,stream:j.START_COMPLETE,streamId:g,success:!0})},function(R){y.postMessage({sourceName:a,targetName:_,stream:j.START_COMPLETE,streamId:g,reason:e(R)})})},ra=function(f){const g=f.streamId,a=this.sourceName,_=f.sourceName,y=this.comObj,O=this.streamControllers[g],N=this.streamSinks[g];switch(f.stream){case j.START_COMPLETE:f.success?O.startCall.resolve():O.startCall.reject(e(f.reason));break;case j.PULL_COMPLETE:f.success?O.pullCall.resolve():O.pullCall.reject(e(f.reason));break;case j.PULL:if(!N){y.postMessage({sourceName:a,targetName:_,stream:j.PULL_COMPLETE,streamId:g,success:!0});break}N.desiredSize<=0&&f.desiredSize>0&&N.sinkCapability.resolve(),N.desiredSize=f.desiredSize,new Promise(function(X){var R;X((R=N.onPull)==null?void 0:R.call(N))}).then(function(){y.postMessage({sourceName:a,targetName:_,stream:j.PULL_COMPLETE,streamId:g,success:!0})},function(X){y.postMessage({sourceName:a,targetName:_,stream:j.PULL_COMPLETE,streamId:g,reason:e(X)})});break;case j.ENQUEUE:if((0,n.assert)(O,"enqueue should have stream controller"),O.isClosed)break;O.controller.enqueue(f.chunk);break;case j.CLOSE:if((0,n.assert)(O,"close should have stream controller"),O.isClosed)break;O.isClosed=!0,O.controller.close(),it(this,l,wn).call(this,O,g);break;case j.ERROR:(0,n.assert)(O,"error should have stream controller"),O.controller.error(e(f.reason)),it(this,l,wn).call(this,O,g);break;case j.CANCEL_COMPLETE:f.success?O.cancelCall.resolve():O.cancelCall.reject(e(f.reason)),it(this,l,wn).call(this,O,g);break;case j.CANCEL:if(!N)break;new Promise(function(X){var R;X((R=N.onCancel)==null?void 0:R.call(N,e(f.reason)))}).then(function(){y.postMessage({sourceName:a,targetName:_,stream:j.CANCEL_COMPLETE,streamId:g,success:!0})},function(X){y.postMessage({sourceName:a,targetName:_,stream:j.CANCEL_COMPLETE,streamId:g,reason:e(X)})}),N.sinkCapability.reject(e(f.reason)),N.isCancelled=!0,delete this.streamSinks[g];break;default:throw new Error("Unexpected stream case")}},wn=async function(f,g){var a,_,y;await Promise.allSettled([(a=f.startCall)==null?void 0:a.promise,(_=f.pullCall)==null?void 0:_.promise,(y=f.cancelCall)==null?void 0:y.promise]),delete this.streamControllers[g]},p.MessageHandler=t},(Re,p,re)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.PDFWorkerStream=void 0;var n=re(2);class P{constructor(l){this._msgHandler=l,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new j(this._msgHandler),this._fullRequestReader}getRangeReader(l,V){const J=new e(l,V,this._msgHandler);return this._rangeRequestReaders.push(J),J}cancelAllRequests(l){var V;(V=this._fullRequestReader)==null||V.cancel(l);for(const J of this._rangeRequestReaders.slice(0))J.cancel(l)}}p.PDFWorkerStream=P;class j{constructor(l){this._msgHandler=l,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const V=this._msgHandler.sendWithStream("GetReader");this._reader=V.getReader(),this._headersReady=this._msgHandler.sendWithProm
58ise("ReaderHeadersReady").then(J=>{this._isStreamingSupported=J.isStreamingSupported,this._isRangeSupported=J.isRangeSupported,this._contentLength=J.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:l,done:V}=await this._reader.read();return V?{value:void 0,done:!0}:{value:l.buffer,done:!1}}cancel(l){this._reader.cancel(l)}}class e{constructor(l,V,J){this._msgHandler=J,this.onProgress=null;const B=this._msgHandler.sendWithStream("GetRangeReader",{begin:l,end:V});this._reader=B.getReader()}get isStreamingSupported(){return!1}async read(){const{value:l,done:V}=await this._reader.read();return V?{value:void 0,done:!0}:{value:l.buffer,done:!1}}cancel(l){this._reader.cancel(l)}}}],Gt={};function Kt(Re){var p=Gt[Re];if(p!==void 0)return p.exports;var re=Gt[Re]={exports:{}};return Dt[Re](re,re.exports,Kt),re.exports}var Qt={};return(()=>{var Re=Qt;Object.defineProperty(Re,"__esModule",{value:!0}),Object.defineProperty(Re,"WorkerMessageHandler",{enumerable:!0,get:function(){return p.WorkerMessageHandler}});var p=Kt(1)})(),Qt})())})(Vn);var ua=Vn.exports;(typeof window<"u"?window:{}).pdfjsWorker=ua;const da=ha({__proto__:null,default:Wn},[Wn]);export{da as p};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.