/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2022 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()}(globalThis,()=>{return a=[,(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var v=a(2),w=a(134),x=a(135),S=a(137),g=a(200),A=a(194),k=a(4),C=a(231),O=a(232);class F{constructor(e){this.name=e,this.terminated=!1,this._capability=(0,v.createPromiseCapability)()}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")}}t.WorkerTask=F;class i{static setup(t,a){let r=!1;t.on("test",function(e){r||(r=!0,t.send("test",e instanceof Uint8Array))}),t.on("configure",function(e){(0,v.setVerbosityLevel)(e.verbosity)}),t.on("GetDocRequest",function(e){return i.createDocumentHandler(e,a)})}static createDocumentHandler(n,e){let s,o=!1,p=null;const i=[],l=(0,v.getVerbosityLevel)(),{docId:m,apiVersion:t}=n;var a="3.0.279";if(t!==a)throw new Error(`The API version "${t}" does not match `+`the Worker version "${a}".`);var r=[];for(const f in[])r.push(f);if(r.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+r.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof ReadableStream){a="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(k.isNodeJS)throw new Error(a+"please use a `legacy`-build instead.");throw new Error(a+"please update to a supported browser.")}a=m+"_worker";let b=new C.MessageHandler(a,m,e);function y(){if(o)throw new Error("Worker was terminated")}function c(e){i.push(e)}function h(e){e.finish();e=i.indexOf(e);i.splice(e,1)}async function u(e){await s.ensureDoc("checkHeader"),await s.ensureDoc("parseStartXRef"),await s.ensureDoc("parse",[e]),await s.ensureDoc("checkFirstPage",[e]),await s.ensureDoc("checkLastPage",[e]);e=await s.ensureDoc("isPureXfa");if(e){const r=new F("loadXfaFonts");c(r),await Promise.all([s.loadXfaFonts(b,r).catch(e=>{}).then(()=>h(r)),s.loadXfaImages()])}var[t,a]=await Promise.all([s.ensureDoc("numPages"),s.ensureDoc("fingerprints")]);return{numPages:t,fingerprints:a,htmlForXfa:e?await s.ensureDoc("htmlForXfa"):null}}function d(e){let{data:t,password:o,disableAutoFetch:a,rangeChunkSize:r,length:l,docBaseUrl:c,enableXfa:h,evaluatorOptions:u}=e;const d=(0,v.createPromiseCapability)();let f;if(t)try{f=new S.LocalPdfManager(m,t,o,b,u,h,c),d.resolve(f)}catch(e){d.reject(e)}else{let t,n=[];try{t=new O.PDFWorkerStream(b)}catch(e){return d.reject(e),d.promise}const g=t.getFullReader();g.headersReady.then(function(){if(g.isRangeSupported){a=a||g.isStreamingSupported,f=new S.NetworkPdfManager(m,t,{msgHandler:b,password:o,length:g.contentLength,disableAutoFetch:a,rangeChunkSize:r},u,h,c);for(const e of n)f.sendProgressiveData(e);n=[],d.resolve(f),p=null}}).catch(function(e){d.reject(e),p=null});let s=0;new Promise(function(e,r){const i=function(e){var{value:e,done:t}=e;try{if(y(),t){if(!f){var a=(0,v.arraysToBytes)(n);l&&a.length!==l&&(0,v.warn)("reported HTTP length is different from actual");try{f=new S.LocalPdfManager(m,a,o,b,u,h,c),d.resolve(f)}catch(e){d.reject(e)}n=[]}p=null}else s+=(0,v.arrayByteLength)(e),g.isStreamingSupported||b.send("DocProgress",{loaded:s,total:Math.max(s,g.contentLength||0)}),f?f.sendProgressiveData(e):n.push(e),g.read().then(i,r)}catch(e){r(e)}};g.read().then(i,r)}).catch(function(e){d.reject(e),p=null}),p=function(e){t.cancelAllRequests(e)}}return d.promise}return b.on("GetPage",function(e){return s.getPage(e.pageIndex).then(function(e){return Promise.all([s.ensure(e,"rotate"),s.ensure(e,"ref"),s.ensure(e,"userUnit"),s.ensure(e,"view")]).then(function(e){var[e,t,a,r]=e;return{rotate:e,ref:t,userUnit:a,view:r}})})}),b.on("GetPageIndex",function(e){e=w.Ref.get(e.num,e.gen);return s.ensureCatalog("getPageIndex",[e])}),b.on("GetDestinations",function(e){return s.ensureCatalog("destinations")}),b.on("GetDestination",function(e){return s.ensureCatalog("getDestination",[e.id])}),b.on("GetPageLabels",function(e){return s.ensureCatalog("pageLabels")}),b.on("GetPageLayout",function(e){return s.ensureCatalog("pageLayout")}),b.on("GetPageMode",function(e){return s.ensureCatalog("pageMode")}),b.on("GetViewerPreferences",function(e){return s.ensureCatalog("viewerPreferences")}),b.on("GetOpenAction",function(e){return s.ensureCatalog("openAction")}),b.on("GetAttachments",function(e){return s.ensureCatalog("attachments")}),b.on("GetJavaScript",function(e){return s.ensureCatalog("javaScript")}),b.on("GetDocJSActions",function(e){return s.ensureCatalog("jsActions")}),b.on("GetPageJSActions",function(e){e=e.pageIndex;return s.getPage(e).then(function(e){return s.ensure(e,"jsActions")})}),b.on("GetOutline",function(e){return s.ensureCatalog("documentOutline")}),b.on("GetOptionalContentConfig",function(e){return s.ensureCatalog("optionalContentConfig")}),b.on("GetPermissions",function(e){return s.ensureCatalog("permissions")}),b.on("GetMetadata",function(e){return Promise.all([s.ensureDoc("documentInfo"),s.ensureCatalog("metadata")])}),b.on("GetMarkInfo",function(e){return s.ensureCatalog("markInfo")}),b.on("GetData",function(e){return s.requestLoadedStream().then(function(e){return e.bytes})}),b.on("GetAnnotations",function(e){let{pageIndex:a,intent:r}=e;return s.getPage(a).then(function(e){const t=new F("GetAnnotations: page "+a);return c(t),e.getAnnotationsData(b,t,r).then(e=>(h(t),e),e=>{h(t)})})}),b.on("GetFieldObjects",function(e){return s.ensureDoc("fieldObjects")}),b.on("HasJSActions",function(e){return s.ensureDoc("hasJSActions")}),b.on("GetCalculationOrderIds",function(e){return s.ensureDoc("calculationOrderIds")}),b.on("SaveDocument",function(e){let{isPureXfa:g,numPages:t,annotationStorage:r,filename:p}=e;var i=[s.requestLoadedStream(),s.ensureCatalog("acroForm"),s.ensureCatalog("acroFormRef"),s.ensureDoc("xref"),s.ensureDoc("startXRef")],e=g?null:(0,x.getNewAnnotationsMap)(r);if(e)for(const[a,n]of e)i.push(s.getPage(a).then(e=>{const t=new F("Save (editor): page "+a);return e.saveNewAnnotations(b,t,n).finally(function(){h(t)})}));if(g)i.push(s.serializeXfaData(r));else for(let a=0;a<t;a++)i.push(s.getPage(a).then(function(e){const t=new F("Save: page "+a);return e.save(b,t,r).finally(function(){h(t)})}));return Promise.all(i).then(function(e){let[t,a,r,i,n,...s]=e,o=[],l=null;if(g){if(!(l=s[0]))return t.bytes}else if(0===(o=s.flat(2)).length)return t.bytes;var c=a instanceof w.Dict&&a.get("XFA")||null;let h=null,u=!1;if(Array.isArray(c)){for(let e=0,t=c.length;e<t;e+=2)"datasets"===c[e]&&(h=c[e+1],r=null,u=!0);null===h&&(h=i.getNewRef())}else c&&(r=null,v.warn)("Unsupported XFA type.");let d=Object.create(null);if(i.trailer){const f=Object.create(null);e=i.trailer.get("Info")||null;e instanceof w.Dict&&e.forEach((e,t)=>{"string"==typeof t&&(f[e]=(0,v.stringToPDFString)(t))}),d={rootRef:i.trailer.getRaw("Root")||null,encryptRef:i.trailer.getRaw("Encrypt")||null,newRef:i.getNewRef(),infoRef:i.trailer.getRaw("Info")||null,info:f,fileIds:i.trailer.get("ID")||null,startXRef:n,filename:p}}return i.resetNewRef(),(0,A.incrementalUpdate)({originalData:t.bytes,xrefInfo:d,newRefs:o,xref:i,hasXfa:!!c,xfaDatasetsRef:h,hasXfaDatasetsEntry:u,acroFormRef:r,acroForm:a,xfaData:l})})}),b.on("GetOperatorList",function(r,i){const n=r.pageIndex;s.getPage(n).then(function(e){const t=new F("GetOperatorList: page "+n),a=(c(t),l>=v.VerbosityLevel.INFOS?Date.now():0);e.getOperatorList({handler:b,sink:i,task:t,intent:r.intent,cacheKey:r.cacheKey,annotationStorage:r.annotationStorage}).then(function(e){h(t),a&&(0,v.info)(`page=${n+1} - getOperatorList: time=`+(Date.now()-a)+"ms, len="+e.length),i.close()},function(e){h(t),t.terminated||i.error(e)})})}),b.on("GetTextContent",function(r,i){const n=r.pageIndex;s.getPage(n).then(function(e){const t=new F("GetTextContent: page "+n),a=(c(t),l>=v.VerbosityLevel.INFOS?Date.now():0);e.extractTextContent({handler:b,task:t,sink:i,includeMarkedContent:r.includeMarkedContent,combineTextItems:r.combineTextItems}).then(function(){h(t),a&&(0,v.info)(`page=${n+1} - getTextContent: time=`+(Date.now()-a)+"ms"),i.close()},function(e){h(t),t.terminated||i.error(e)})})}),b.on("GetStructTree",function(e){return s.getPage(e.pageIndex).then(function(e){return s.ensure(e,"getStructTree")})}),b.on("FontFallback",function(e){return s.fontFallback(e.id,b)}),b.on("Cleanup",function(e){return s.cleanup(!0)}),b.on("Terminate",function(e){o=!0;var t,a=[];s?(s.terminate(new v.AbortException("Worker was terminated.")),t=s.cleanup(),a.push(t),s=null):(0,g.clearGlobalCaches)(),p&&p(new v.AbortException("Worker was terminated."));for(const r of i)a.push(r.finished),r.terminate();return Promise.all(a).then(function(){b.destroy(),b=null})}),b.on("Ready",function(e){function t(e){y(),b.send("GetDoc",{pdfInfo:e})}function a(e){if(y(),e instanceof v.PasswordException){const t=new F("PasswordException: response "+e.code);c(t),b.sendWithPromise("PasswordRequest",e).then(function(e){e=e.password;h(t),s.updatePassword(e),r()}).catch(function(){h(t),b.send("DocException",e)})}else e instanceof v.InvalidPDFException||e instanceof v.MissingPDFException||e instanceof v.UnexpectedResponseException||e instanceof v.UnknownErrorException?b.send("DocException",e):b.send("DocException",new v.UnknownErrorException(e.message,e.toString()))}function r(){y(),u(!1).then(t,function(e){y(),e instanceof x.XRefParseException?s.requestLoadedStream().then(function(){y(),u(!0).then(t,a)}):a(e)})}var i;i=n,y(),d(i).then(function(e){if(o)throw e.terminate(new v.AbortException("Worker was terminated.")),new Error("Worker was terminated");(s=e).requestLoadedStream(!0).then(e=>{b.send("DataLoaded",{length:e.bytes.byteLength})})}).then(r,a),n=null}),a}static initializeFromPort(e){var t=new C.MessageHandler("worker","main",e);i.setup(t,e),t.send("ready",null)}}t.WorkerMessageHandler=i,"undefined"==typeof window&&!k.isNodeJS&&"undefined"!=typeof self&&"function"==typeof(a=self).postMessage&&"onmessage"in a&&i.initializeFromPort(self)},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=b,t.arraysToBytes=function(a){var r=a.length;if(1===r&&a[0]instanceof Uint8Array)return a[0];let t=0;for(let e=0;e<r;e++)t+=b(a[e]);let i=0;var n=new Uint8Array(t);for(let t=0;t<r;t++){let e=a[t];var s=(e=e instanceof Uint8Array?e:"string"==typeof e?m(e):new Uint8Array(e)).byteLength;n.set(e,i),i+=s}return n},t.assert=function(e,t){e||n(t)},t.bytesToString=function(t){"object"==typeof t&&null!==t&&void 0!==t.length||n("Invalid argument for bytesToString");var a=t.length;if(a<8192)return String.fromCharCode.apply(null,t);var r=[];for(let e=0;e<a;e+=8192){var i=Math.min(e+8192,a),i=t.subarray(e,i);r.push(String.fromCharCode.apply(null,i))}return r.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let r=!1;return Object.defineProperty(e,"settled",{get(){return r}}),e.promise=new Promise(function(t,a){e.resolve=function(e){r=!0,t(e)},e.reject=function(e){r=!0,a(e)}}),e},t.createValidAbsoluteUrl=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(e)try{var r;if(a&&"string"==typeof e)if(a.addDefaultProtocol&&e.startsWith("www.")&&(r=e.match(/\./g))&&2<=r.length&&(e="http://"+e),a.tryConvertEncoding)try{e=x(e)}catch(e){}var i=t?new URL(e,t):new URL(e);if(function(e){if(!e)return;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return 1;default:return}}(i))return i}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,e=>"\n"===e?"\\n":"\r"===e?"\\r":"\\"+e)},t.getModificationDate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new Date;e=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return e.join("")},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log("Info: "+e)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(a,r){if(a.length!==r.length)return!1;for(let e=0,t=a.length;e<t;e++)if(a[e]!==r[e])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.objectFromMap=function(e){var t=Object.create(null);for(var[a,r]of e)t[a]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=o,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=m,t.stringToPDFString=function(a){if("ï"<=a[0]){let e;if("þ"===a[0]&&"ÿ"===a[1]?e="utf-16be":"ÿ"===a[0]&&"þ"===a[1]?e="utf-16le":"ï"===a[0]&&"»"===a[1]&&"¿"===a[2]&&(e="utf-8"),e)try{var t=new TextDecoder(e,{fatal:!0}),r=m(a);return t.decode(r)}catch(e){s(`stringToPDFString: "${e}".`)}}var i=[];for(let e=0,t=a.length;e<t;e++){var n=w[a.charCodeAt(e)];i.push(n?String.fromCharCode(n):a.charAt(e))}return i.join("")},t.stringToUTF16BEString=function(a){var r=["þÿ"];for(let e=0,t=a.length;e<t;e++){var i=a.charCodeAt(e);r.push(String.fromCharCode(i>>8&255),String.fromCharCode(255&i))}return r.join("")},t.stringToUTF8String=x,t.unreachable=n,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=s,globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,a(3));t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={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},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={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"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r;t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={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},t.UNSUPPORTED_FEATURES={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function s(e){i>=r.WARNINGS&&console.log("Warning: "+e)}function n(e){throw new Error(e)}function o(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!1}),a}l.prototype=new Error;a=l.constructor=l;function l(e,t){this.constructor===l&&n("Cannot initialize BaseException."),this.message=e,this.name=t}class c extends(t.BaseException=a){constructor(e,t){super(e,"PasswordException"),this.code=t}}t.PasswordException=c;class h extends a{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}t.UnknownErrorException=h;class u extends a{constructor(e){super(e,"InvalidPDFException")}}t.InvalidPDFException=u;class d extends a{constructor(e){super(e,"MissingPDFException")}}t.MissingPDFException=d;class f extends a{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}}t.UnexpectedResponseException=f;class g extends a{constructor(e){super(e,"FormatError")}}t.FormatError=g;class p extends a{constructor(e){super(e,"AbortException")}}function m(t){"string"!=typeof t&&n("Invalid argument for stringToBytes");var a=t.length,r=new Uint8Array(a);for(let e=0;e<a;++e)r[e]=255&t.charCodeAt(e);return r}function b(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void n("Invalid argument for arrayByteLength")}t.AbortException=p;t.FeatureTest=class{static get isLittleEndian(){return o(this,"isLittleEndian",((e=new Uint8Array(4))[0]=1)===(e=new Uint32Array(e.buffer,0,1))[0]);var e}static get isEvalSupported(){return o(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return o(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const y=[...Array(256).keys()].map(e=>e.toString(16).padStart(2,"0"));class v{static makeHexColor(e,t,a){return"#"+y[e]+y[t]+y[a]}static scaleMinMax(e,t){let a;e[0]?(e[0]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[3],t[3]*=e[3]):(a=t[0],t[0]=t[2],t[2]=a,a=t[1],t[1]=t[3],t[3]=a,e[1]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){var a=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a]}static getAxialAlignedBoundingBox(e,t){var a=v.applyTransform(e,t),r=v.applyTransform(e.slice(2,4),t),i=v.applyTransform([e[0],e[3]],t),e=v.applyTransform([e[2],e[1]],t);return[Math.min(a[0],r[0],i[0],e[0]),Math.min(a[1],r[1],i[1],e[1]),Math.max(a[0],r[0],i[0],e[0]),Math.max(a[1],r[1],i[1],e[1])]}static inverseTransform(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){var t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],e=e[2]*t[1]+e[3]*t[3],t=(a+e)/2,a=Math.sqrt((a+e)**2-4*(a*e-i*r))/2,e=t-a||1;return[Math.sqrt(t+a||1),Math.sqrt(e)]}static normalizeRect(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){var a,r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));return i<r||(a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),(e=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3])))<a)?null:[r,a,i,e]}static bezierBoundingBox(t,a,r,i,n,s,o,l){var c=[],e=[[],[]];let h,u,d,f,g,p,m,b;for(let e=0;e<2;++e)d=0===e?(u=6*t-12*r+6*n,h=-3*t+9*r-9*n+3*o,3*r-3*t):(u=6*a-12*i+6*s,h=-3*a+9*i-9*s+3*l,3*i-3*a),Math.abs(h)<1e-12?Math.abs(u)<1e-12||0<(f=-d/u)&&f<1&&c.push(f):(m=u*u-4*d*h,b=Math.sqrt(m),m<0||(0<(g=(-u+b)/(2*h))&&g<1&&c.push(g),0<(p=(-u-b)/(2*h))&&p<1&&c.push(p)));let y=c.length,v;for(var w=y;y--;)v=1-(f=c[y]),e[0][y]=v*v*v*t+3*v*v*f*r+3*v*f*f*n+f*f*f*o,e[1][y]=v*v*v*a+3*v*v*f*i+3*v*f*f*s+f*f*f*l;return e[0][w]=t,e[1][w]=a,e[0][w+1]=o,e[1][w+1]=l,e[0].length=e[1].length=w+2,[Math.min(...e[0]),Math.min(...e[1]),Math.max(...e[0]),Math.max(...e[1])]}}t.Util=v;const w=[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 x(e){return decodeURIComponent(escape(e))}},(e,t,a)=>{"use strict";var r=a(4);!globalThis.btoa&&r.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&r.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),!globalThis.DOMMatrix&&r.isNodeJS&&(globalThis.DOMMatrix=require("canvas").DOMMatrix),!globalThis.ReadableStream&&r.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream),Array.prototype.at||a(5),Uint8Array.prototype.at||a(80),globalThis.structuredClone||a(90)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var a=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=a},(e,t,a)=>{a(6);a=a(79);e.exports=a("Array","at")},(e,t,a)=>{"use strict";var r=a(7),i=a(45),n=a(69),s=a(67),a=a(74);r({target:"Array",proto:!0},{at:function(e){var t=i(this),a=n(t),e=s(e),e=0<=e?e:a+e;return e<0||a<=e?void 0:t[e]}}),a("at")},(e,t,a)=>{var c=a(8),h=a(9).f,u=a(49),d=a(53),f=a(43),g=a(61),p=a(73);e.exports=function(e,t){var a,r,i,n=e.target,s=e.global,o=e.stat,l=s?c:o?c[n]||f(n,{}):(c[n]||{}).prototype;if(l)for(a in t){if(r=t[a],i=e.dontCallGetSet?(i=h(l,a))&&i.value:l[a],!p(s?a:n+(o?".":"#")+a,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;g(r,i)}(e.sham||i&&i.sham)&&u(r,"sham",!0),d(l,a,r,e)}}},e=>{function t(e){return e&&e.Math==Math&&e}e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(e,t,a)=>{var r=a(10),i=a(12),n=a(14),s=a(15),o=a(16),l=a(23),c=a(44),h=a(47),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=l(t),h)try{return u(e,t)}catch(e){}if(c(e,t))return s(!i(n.f,e,t),e[t])}},(e,t,a)=>{a=a(11);e.exports=!a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,a)=>{var a=a(13),r=Function.prototype.call;e.exports=a?r.bind(r):function(){return r.apply(r,arguments)}},(e,t,a)=>{a=a(11);e.exports=!a(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},(e,t)=>{"use strict";var a={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!a.call({1:2},1);t.f=i?function(e){e=r(this,e);return!!e&&e.enumerable}:a},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,a)=>{var r=a(17),i=a(21);e.exports=function(e){return r(i(e))}},(e,t,a)=>{var r=a(18),i=a(11),n=a(19),s=Object,o=r("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"==n(e)?o(e,""):s(e)}:s},(e,t,a)=>{var r=a(19),i=a(20);e.exports=function(e){if("Function"===r(e))return i(e)}},(e,t,a)=>{var a=a(20),r=a({}.toString),i=a("".slice);e.exports=function(e){return i(r(e),8,-1)}},(e,t,a)=>{var a=a(13),r=Function.prototype,i=r.call,r=a&&r.bind.bind(i,i);e.exports=a?r:function(e){return function(){return i.apply(e,arguments)}}},(e,t,a)=>{var r=a(22),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},e=>{e.exports=function(e){return null==e}},(e,t,a)=>{var r=a(24),i=a(28);e.exports=function(e){e=r(e,"string");return i(e)?e:e+""}},(e,t,a)=>{var r=a(12),i=a(25),n=a(28),s=a(35),o=a(38),a=a(39),l=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!i(e)||n(e))return e;var a=s(e,c);if(a){if(a=r(a,e,t=void 0===t?"default":t),!i(a)||n(a))return a;throw l("Can't convert object to primitive value")}return o(e,t=void 0===t?"number":t)}},(e,t,a)=>{var r=a(26),a=a(27),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},(e,t,a)=>{var a=a(27),r=a.all;e.exports=a.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},e=>{var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},(e,t,a)=>{var r=a(29),i=a(26),n=a(30),a=a(31),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&n(t.prototype,s(e))}},(e,t,a)=>{var r=a(8),i=a(26);e.exports=function(e,t){return arguments.length<2?(a=r[e],i(a)?a:void 0):r[e]&&r[e][t];var a}},(e,t,a)=>{a=a(18);e.exports=a({}.isPrototypeOf)},(e,t,a)=>{a=a(32);e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,a)=>{var r=a(33),a=a(11);e.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},(e,t,a)=>{var r,i,n=a(8),a=a(34),s=n.process,n=n.Deno,s=s&&s.versions||n&&n.version,n=s&&s.v8;!(i=n?0<(r=n.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):i)&&a&&(!(r=a.match(/Edge\/(\d+)/))||74<=r[1])&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},(e,t,a)=>{a=a(29);e.exports=a("navigator","userAgent")||""},(e,t,a)=>{var r=a(36),i=a(22);e.exports=function(e,t){e=e[t];return i(e)?void 0:r(e)}},(e,t,a)=>{var r=a(26),i=a(37),n=TypeError;e.exports=function(e){if(r(e))return e;throw n(i(e)+" is not a function")}},e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,a)=>{var i=a(12),n=a(26),s=a(25),o=TypeError;e.exports=function(e,t){var a,r;if("string"===t&&n(a=e.toString)&&!s(r=i(a,e)))return r;if(n(a=e.valueOf)&&!s(r=i(a,e)))return r;if("string"!==t&&n(a=e.toString)&&!s(r=i(a,e)))return r;throw o("Can't convert object to primitive value")}},(e,t,a)=>{var r=a(8),i=a(40),n=a(44),s=a(46),o=a(32),l=a(31),c=i("wks"),h=r.Symbol,u=h&&h.for,d=l?h:h&&h.withoutSetter||s;e.exports=function(e){var t;return n(c,e)&&(o||"string"==typeof c[e])||(t="Symbol."+e,o&&n(h,e)?c[e]=h[e]:c[e]=(l&&u?u:d)(t)),c[e]}},(e,t,a)=>{var r=a(41),i=a(42);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,a)=>{var r=a(8),a=a(43),i="__core-js_shared__",r=r[i]||a(i,{});e.exports=r},(e,t,a)=>{var r=a(8),i=Object.defineProperty;e.exports=function(t,a){try{i(r,t,{value:a,configurable:!0,writable:!0})}catch(e){r[t]=a}return a}},(e,t,a)=>{var r=a(18),i=a(45),n=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return n(i(e),t)}},(e,t,a)=>{var r=a(21),i=Object;e.exports=function(e){return i(r(e))}},(e,t,a)=>{var a=a(18),r=0,i=Math.random(),n=a(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++r+i,36)}},(e,t,a)=>{var r=a(10),i=a(11),n=a(48);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},(e,t,a)=>{var r=a(8),a=a(25),i=r.document,n=a(i)&&a(i.createElement);e.exports=function(e){return n?i.createElement(e):{}}},(e,t,a)=>{var r=a(10),i=a(50),n=a(15);e.exports=r?function(e,t,a){return i.f(e,t,n(1,a))}:function(e,t,a){return e[t]=a,e}},(e,t,a)=>{var r=a(10),i=a(47),n=a(51),s=a(52),o=a(23),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",f="writable";t.f=r?n?function(e,t,a){var r;return s(e),t=o(t),s(a),"function"==typeof e&&"prototype"===t&&"value"in a&&f in a&&!a[f]&&(r=h(e,t))&&r[f]&&(e[t]=a.value,a={configurable:(d in a?a:r)[d],enumerable:(u in a?a:r)[u],writable:!1}),c(e,t,a)}:c:function(e,t,a){if(s(e),t=o(t),s(a),i)try{return c(e,t,a)}catch(e){}if("get"in a||"set"in a)throw l("Accessors not supported");return"value"in a&&(e[t]=a.value),e}},(e,t,a)=>{var r=a(10),a=a(11);e.exports=r&&a(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,a)=>{var r=a(25),i=String,n=TypeError;e.exports=function(e){if(r(e))return e;throw n(i(e)+" is not an object")}},(e,t,a)=>{var s=a(26),o=a(50),l=a(54),c=a(43);e.exports=function(e,t,a,r){var i=(r=r||{}).enumerable,n=void 0!==r.name?r.name:t;if(s(a)&&l(a,n,r),r.global)i?e[t]=a:c(t,a);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=a:o.f(e,t,{value:a,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}},(e,t,a)=>{var r=a(11),i=a(26),n=a(44),s=a(10),o=a(55).CONFIGURABLE,l=a(56),a=a(57),c=a.enforce,h=a.get,u=Object.defineProperty,d=s&&!r(function(){return 8!==u(function(){},"length",{value:8}).length}),f=String(String).split("String"),a=e.exports=function(e,t,a){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(t="get "+t),a&&a.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(s?u(e,"name",{value:t,configurable:!0}):e.name=t),d&&a&&n(a,"arity")&&e.length!==a.arity&&u(e,"length",{value:a.arity});try{a&&n(a,"constructor")&&a.constructor?s&&u(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}a=c(e);return n(a,"source")||(a.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=a(function(){return i(this)&&h(this).source||l(this)},"toString")},(e,t,a)=>{var r=a(10),a=a(44),i=Function.prototype,n=r&&Object.getOwnPropertyDescriptor,a=a(i,"name"),s=a&&"something"===function(){}.name,r=a&&(!r||n(i,"name").configurable);e.exports={EXISTS:a,PROPER:s,CONFIGURABLE:r}},(e,t,a)=>{var r=a(18),i=a(26),a=a(42),n=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return n(e)}),e.exports=a.inspectSource},(e,t,a)=>{var r,i,n,s,o=a(58),l=a(8),c=a(25),h=a(49),u=a(44),d=a(42),f=a(59),a=a(60),g="Object already initialized",p=l.TypeError,l=l.WeakMap,m=o||d.state?((n=d.state||(d.state=new l)).get=n.get,n.has=n.has,n.set=n.set,r=function(e,t){if(n.has(e))throw p(g);return t.facade=e,n.set(e,t),t},i=function(e){return n.get(e)||{}},function(e){return n.has(e)}):(a[s=f("state")]=!0,r=function(e,t){if(u(e,s))throw p(g);return t.facade=e,h(e,s,t),t},i=function(e){return u(e,s)?e[s]:{}},function(e){return u(e,s)});e.exports={set:r,get:i,has:m,enforce:function(e){return m(e)?i(e):r(e,{})},getterFor:function(t){return function(e){if(c(e)&&(e=i(e)).type===t)return e;throw p("Incompatible receiver, "+t+" required")}}}},(e,t,a)=>{var r=a(8),a=a(26),r=r.WeakMap;e.exports=a(r)&&/native code/.test(String(r))},(e,t,a)=>{var r=a(40),i=a(46),n=r("keys");e.exports=function(e){return n[e]||(n[e]=i(e))}},e=>{e.exports={}},(e,t,a)=>{var l=a(44),c=a(62),h=a(9),u=a(50);e.exports=function(e,t,a){for(var r=c(t),i=u.f,n=h.f,s=0;s<r.length;s++){var o=r[s];l(e,o)||a&&l(a,o)||i(e,o,n(t,o))}}},(e,t,a)=>{var r=a(29),i=a(18),n=a(63),s=a(72),o=a(52),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=s.f;return a?l(t,a(e)):t}},(e,t,a)=>{var r=a(64),i=a(71).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},(e,t,a)=>{var r=a(18),s=a(44),o=a(16),l=a(65).indexOf,c=a(60),h=r([].push);e.exports=function(e,t){var a,r=o(e),i=0,n=[];for(a in r)!s(c,a)&&s(r,a)&&h(n,a);for(;t.length>i;)!s(r,a=t[i++])||~l(n,a)||h(n,a);return n}},(e,t,a)=>{function r(o){return function(e,t,a){var r,i=l(e),n=h(i),s=c(a,n);if(o&&t!=t){for(;s<n;)if((r=i[s++])!=r)return!0}else for(;s<n;s++)if((o||s in i)&&i[s]===t)return o||s||0;return!o&&-1}}var l=a(16),c=a(66),h=a(69);e.exports={includes:r(!0),indexOf:r(!1)}},(e,t,a)=>{var r=a(67),i=Math.max,n=Math.min;e.exports=function(e,t){e=r(e);return e<0?i(e+t,0):n(e,t)}},(e,t,a)=>{var r=a(68);e.exports=function(e){e=+e;return e!=e||0==e?0:r(e)}},e=>{var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){e=+e;return(0<e?a:t)(e)}},(e,t,a)=>{var r=a(70);e.exports=function(e){return r(e.length)}},(e,t,a)=>{var r=a(67),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,a)=>{function r(e,t){return(e=l[o(e)])==h||e!=c&&(n(t)?i(t):!!t)}var i=a(11),n=a(26),s=/#|\.prototype\./,o=r.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",h=r.POLYFILL="P";e.exports=r},(e,t,a)=>{var r=a(39),i=a(75),a=a(50).f,n=r("unscopables"),s=Array.prototype;null==s[n]&&a(s,n,{configurable:!0,value:i(null)}),e.exports=function(e){s[n][e]=!0}},(e,t,a)=>{function r(){}function i(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}var n,s=a(52),o=a(76),l=a(71),c=a(60),h=a(78),u=a(48),a=a(59),d="prototype",f="script",g=a("IE_PROTO"),p=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}m="undefined"==typeof document||document.domain&&n?i(n):(e=u("iframe"),t="java"+f+":",e.style.display="none",h.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var e,t,a=l.length;a--;)delete m[d][l[a]];return m()};c[g]=!0,e.exports=Object.create||function(e,t){var a;return null!==e?(r[d]=s(e),a=new r,r[d]=null,a[g]=e):a=m(),void 0===t?a:o.f(a,t)}},(e,t,a)=>{var r=a(10),i=a(51),o=a(50),l=a(52),c=a(16),h=a(77);t.f=r&&!i?Object.defineProperties:function(e,t){l(e);for(var a,r=c(t),i=h(t),n=i.length,s=0;s<n;)o.f(e,a=i[s++],r[a]);return e}},(e,t,a)=>{var r=a(64),i=a(71);e.exports=Object.keys||function(e){return r(e,i)}},(e,t,a)=>{a=a(29);e.exports=a("document","documentElement")},(e,t,a)=>{var r=a(8),i=a(18);e.exports=function(e,t){return i(r[e].prototype[t])}},(e,t,a)=>{a(81)},(e,t,a)=>{"use strict";var r=a(82),i=a(69),n=a(67),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",function(e){var t=s(this),a=i(t),e=n(e),e=0<=e?e:a+e;return e<0||a<=e?void 0:t[e]})},(e,t,a)=>{"use strict";function r(e){var t,e=w(e);if(d(e))return(t=C(e))&&f(t,E)?t[E]:r(e)}function i(e){return!!d(e)&&(e=g(e),f(D,e)||f(B,e))}var n,s,o,l=a(83),c=a(10),h=a(8),u=a(26),d=a(25),f=a(44),g=a(84),p=a(37),m=a(49),b=a(53),y=a(50).f,v=a(30),w=a(86),x=a(88),S=a(39),A=a(46),a=a(57),k=a.enforce,C=a.get,a=h.Int8Array,O=a&&a.prototype,F=h.Uint8ClampedArray,F=F&&F.prototype,I=a&&w(a),T=O&&w(O),a=Object.prototype,M=h.TypeError,S=S("toStringTag"),P=A("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",N=l&&!!x&&"Opera"!==g(h.opera),A=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8};for(n in D)(o=(s=h[n])&&s.prototype)?k(o)[E]=s:N=!1;for(n in B)(o=(s=h[n])&&s.prototype)&&(k(o)[E]=s);if((!N||!u(I)||I===Function.prototype)&&(I=function(){throw M("Incorrect invocation")},N))for(n in D)h[n]&&x(h[n],I);if((!N||!T||T===a)&&(T=I.prototype,N))for(n in D)h[n]&&x(h[n].prototype,T);if(N&&w(F)!==T&&x(F,T),c&&!f(T,S))for(n in A=!0,y(T,S,{get:function(){return d(this)?this[P]:void 0}}),D)h[n]&&m(h[n],P,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:A&&P,aTypedArray:function(e){if(i(e))return e;throw M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!u(e)||x&&!v(I,e))throw M(p(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(t,a,e,r){if(c){if(e)for(var i in D){i=h[i];if(i&&f(i.prototype,t))try{delete i.prototype[t]}catch(e){try{i.prototype[t]=a}catch(e){}}}T[t]&&!e||b(T,t,!e&&N&&O[t]||a,r)}},exportTypedArrayStaticMethod:function(e,t,a){var r,i;if(c){if(x){if(a)for(r in D)if((i=h[r])&&f(i,e))try{delete i[e]}catch(e){}if(I[e]&&!a)return;try{return b(I,e,!a&&N&&I[e]||t)}catch(e){}}for(r in D)!(i=h[r])||i[e]&&!a||b(i,e,t)}},getTypedArrayConstructor:r,isView:function(e){return!!d(e)&&("DataView"===(e=g(e))||f(D,e)||f(B,e))},isTypedArray:i,TypedArray:I,TypedArrayPrototype:T}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,a)=>{var r=a(85),i=a(26),n=a(19),s=a(39)("toStringTag"),o=Object,l="Arguments"==n(function(){return arguments}());e.exports=r?n:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=o(e),s))?t:l?n(e):"Object"==(t=n(e))&&i(e.callee)?"Arguments":t}},(e,t,a)=>{var r={};r[a(39)("toStringTag")]="z",e.exports="[object z]"===String(r)},(e,t,a)=>{var r=a(44),i=a(26),n=a(45),s=a(59),a=a(87),o=s("IE_PROTO"),l=Object,c=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t,e=n(e);return r(e,o)?e[o]:(t=e.constructor,i(t)&&e instanceof t?t.prototype:e instanceof l?c:null)}},(e,t,a)=>{a=a(11);e.exports=!a(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},(e,t,a)=>{var i=a(18),n=a(52),s=a(89);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,r=!1,e={};try{(a=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return n(e),s(t),r?a(e,t):e.__proto__=t,e}}():void 0)},(e,t,a)=>{var r=a(26),i=String,n=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw n("Can't set "+i(e)+" as a prototype")}},(e,t,a)=>{a(91),a(98),a(100),a(122),a(124);a=a(133);e.exports=a.structuredClone},(e,t,a)=>{"use strict";var r=a(16),i=a(74),n=a(92),s=a(57),o=a(50).f,l=a(93),c=a(97),h=a(41),a=a(10),u="Array Iterator",d=s.set,f=s.getterFor(u),s=(e.exports=l(Array,"Array",function(e,t){d(this,{type:u,target:r(e),index:0,kind:t})},function(){var e=f(this),t=e.target,a=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==a?r:"values"==a?t[r]:[r,t[r]],!1)},"values"),n.Arguments=n.Array);if(i("keys"),i("values"),i("entries"),!h&&a&&"values"!==s.name)try{o(s,"name",{value:"values"})}catch(e){}},e=>{e.exports={}},(e,t,a)=>{"use strict";function p(){return this}var m=a(7),b=a(12),y=a(41),r=a(55),v=a(26),w=a(94),x=a(86),S=a(88),A=a(96),k=a(49),C=a(53),i=a(39),O=a(92),a=a(95),F=r.PROPER,I=r.CONFIGURABLE,T=a.IteratorPrototype,M=a.BUGGY_SAFARI_ITERATORS,P=i("iterator"),E="values",N="entries";e.exports=function(e,t,a,r,i,n,s){w(a,t,r);function o(e){if(e===i&&f)return f;if(!M&&e in u)return u[e];switch(e){case"keys":case E:case N:return function(){return new a(this,e)}}return function(){return new a(this)}}var l,c,r=t+" Iterator",h=!1,u=e.prototype,d=u[P]||u["@@iterator"]||i&&u[i],f=!M&&d||o(i),g="Array"==t&&u.entries||d;if(g&&(g=x(g.call(new e)))!==Object.prototype&&g.next&&(y||x(g)===T||(S?S(g,T):v(g[P])||C(g,P,p)),A(g,r,!0,!0),y)&&(O[r]=p),F&&i==E&&d&&d.name!==E&&(!y&&I?k(u,"name",E):(h=!0,f=function(){return b(d,this)})),i)if(l={values:o(E),keys:n?f:o("keys"),entries:o(N)},s)for(c in l)!M&&!h&&c in u||C(u,c,l[c]);else m({target:t,proto:!0,forced:M||h},l);return y&&!s||u[P]===f||C(u,P,f,{name:i}),O[t]=f,l}},(e,t,a)=>{"use strict";function i(){return this}var n=a(95).IteratorPrototype,s=a(75),o=a(15),l=a(96),c=a(92);e.exports=function(e,t,a,r){t+=" Iterator";return e.prototype=s(n,{next:o(+!r,a)}),l(e,t,!1,!0),c[t]=i,e}},(e,t,a)=>{"use strict";var r,i,n=a(11),s=a(26),o=a(25),l=a(75),c=a(86),h=a(53),u=a(39),a=a(41),d=u("iterator"),u=!1;[].keys&&("next"in(i=[].keys())?(c=c(c(i)))!==Object.prototype&&(r=c):u=!0),!o(r)||n(function(){var e={};return r[d].call(e)!==e})?r={}:a&&(r=l(r)),s(r[d])||h(r,d,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:u}},(e,t,a)=>{var r=a(50).f,i=a(44),n=a(39)("toStringTag");e.exports=function(e,t,a){(e=e&&!a?e.prototype:e)&&!i(e,n)&&r(e,n,{configurable:!0,value:t})}},e=>{e.exports=function(e,t){return{value:e,done:t}}},(e,t,a)=>{var r=a(85),i=a(53),a=a(99);r||i(Object.prototype,"toString",a,{unsafe:!0})},(e,t,a)=>{"use strict";var r=a(85),i=a(84);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},(e,t,a)=>{a(101)},(e,t,a)=>{"use strict";a(102)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a(119))},(e,t,a)=>{"use strict";var m=a(7),b=a(8),y=a(18),v=a(73),w=a(53),x=a(103),S=a(110),A=a(116),k=a(26),C=a(22),O=a(25),F=a(11),I=a(117),T=a(96),M=a(118);e.exports=function(e,t,a){function r(e){var a=y(f[e]);w(f,e,"add"==e?function(e){return a(this,0===e?0:e),this}:"delete"==e?function(e){return!(h&&!O(e))&&a(this,0===e?0:e)}:"get"==e?function(e){return h&&!O(e)?void 0:a(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!O(e))&&a(this,0===e?0:e)}:function(e,t){return a(this,0===e?0:e,t),this})}var i,n,s,o,l,c=-1!==e.indexOf("Map"),h=-1!==e.indexOf("Weak"),u=c?"set":"add",d=b[e],f=d&&d.prototype,g=d,p={};return v(e,!k(d)||!(h||f.forEach&&!F(function(){(new d).entries().next()})))?(g=a.getConstructor(t,e,c,u),x.enable()):v(e,!0)&&(n=(i=new g)[u](h?{}:-0,1)!=i,s=F(function(){i.has(1)}),o=I(function(e){new d(e)}),l=!h&&F(function(){for(var e=new d,t=5;t--;)e[u](t,t);return!e.has(-0)}),o||(((g=t(function(e,t){A(e,f);e=M(new d,e,g);return C(t)||S(t,e[u],{that:e,AS_ENTRIES:c}),e})).prototype=f).constructor=g),(s||l)&&(r("delete"),r("has"),c)&&r("get"),(l||n)&&r(u),h)&&f.clear&&delete f.clear,m({global:!0,constructor:!0,forced:(p[e]=g)!=d},p),T(g,e),h||a.setStrong(g,e,c),g}},(e,t,a)=>{function r(e){c(e,m,{value:{objectID:"O"+b++,weakData:{}}})}var s=a(7),o=a(18),i=a(60),n=a(25),l=a(44),c=a(50).f,h=a(63),u=a(104),d=a(107),f=a(46),g=a(109),p=!1,m=f("meta"),b=0,y=e.exports={enable:function(){y.enable=function(){},p=!0;var i=h.f,n=o([].splice),e={};e[m]=1,i(e).length&&(h.f=function(e){for(var t=i(e),a=0,r=t.length;a<r;a++)if(t[a]===m){n(t,a,1);break}return t},s({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,m)){if(!d(e))return"F";if(!t)return"E";r(e)}return e[m].objectID},getWeakData:function(e,t){if(!l(e,m)){if(!d(e))return!0;if(!t)return!1;r(e)}return e[m].weakData},onFreeze:function(e){return g&&p&&d(e)&&!l(e,m)&&r(e),e}};i[m]=!0},(e,t,a)=>{var r=a(19),i=a(16),n=a(63).f,s=a(105),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!o||"Window"!=r(e))return n(i(e));try{return n(e)}catch(e){return s(o)}}},(e,t,a)=>{var l=a(66),c=a(69),h=a(106),u=Array,d=Math.max;e.exports=function(e,t,a){for(var r=c(e),i=l(t,r),n=l(void 0===a?r:a,r),s=u(d(n-i,0)),o=0;i<n;i++,o++)h(s,o,e[i]);return s.length=o,s}},(e,t,a)=>{"use strict";var r=a(23),i=a(50),n=a(15);e.exports=function(e,t,a){t=r(t);t in e?i.f(e,t,n(0,a)):e[t]=a}},(e,t,a)=>{var r=a(11),i=a(25),n=a(19),s=a(108),o=Object.isExtensible,a=r(function(){o(1)});e.exports=a||s?function(e){return!(!i(e)||s&&"ArrayBuffer"==n(e))&&(!o||o(e))}:o},(e,t,a)=>{a=a(11);e.exports=a(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})})},(e,t,a)=>{a=a(11);e.exports=!a(function(){return Object.isExtensible(Object.preventExtensions({}))})},(e,t,a)=>{function b(e,t){this.stopped=e,this.result=t}var y=a(111),v=a(12),w=a(52),x=a(37),S=a(112),A=a(69),k=a(30),C=a(113),O=a(114),F=a(115),I=TypeError,T=b.prototype;e.exports=function(e,t,a){function r(e){return n&&F(n,"normal",e),new b(!0,e)}function i(e){return d?(w(e),p?m(e[0],e[1],r):m(e[0],e[1])):p?m(e,r):m(e)}var n,s,o,l,c,h,u=a&&a.that,d=!(!a||!a.AS_ENTRIES),f=!(!a||!a.IS_RECORD),g=!(!a||!a.IS_ITERATOR),p=!(!a||!a.INTERRUPTED),m=y(t,u);if(f)n=e.iterator;else if(g)n=e;else{if(!(a=O(e)))throw I(x(e)+" is not iterable");if(S(a)){for(s=0,o=A(e);s<o;s++)if((l=i(e[s]))&&k(T,l))return l;return new b(!1)}n=C(e,a)}for(c=(f?e:n).next;!(h=v(c,n)).done;){try{l=i(h.value)}catch(e){F(n,"throw",e)}if("object"==typeof l&&l&&k(T,l))return l}return new b(!1)}},(e,t,a)=>{var r=a(18),i=a(36),n=a(13),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:n?s(e,t):function(){return e.apply(t,arguments)}}},(e,t,a)=>{var r=a(39),i=a(92),n=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[n]===e)}},(e,t,a)=>{var r=a(12),i=a(36),n=a(52),s=a(37),o=a(114),l=TypeError;e.exports=function(e,t){var a=arguments.length<2?o(e):t;if(i(a))return n(r(a,e));throw l(s(e)+" is not iterable")}},(e,t,a)=>{var r=a(84),i=a(35),n=a(22),s=a(92),o=a(39)("iterator");e.exports=function(e){if(!n(e))return i(e,o)||i(e,"@@iterator")||s[r(e)]}},(e,t,a)=>{var n=a(12),s=a(52),o=a(35);e.exports=function(e,t,a){var r,i;s(e);try{if(!(r=o(e,"return"))){if("throw"===t)throw a;return a}r=n(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw a;if(i)throw r;return s(r),a}},(e,t,a)=>{var r=a(30),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},(e,t,a)=>{var i=a(39)("iterator"),n=!1;try{var r=0,s={next:function(){return{done:!!r++}},return:function(){n=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var a=!1;try{var r={};r[i]=function(){return{next:function(){return{done:a=!0}}}},e(r)}catch(e){}return a}},(e,t,a)=>{var r=a(26),i=a(25),n=a(88);e.exports=function(e,t,a){return n&&r(t=t.constructor)&&t!==a&&i(t=t.prototype)&&t!==a.prototype&&n(e,t),e}},(e,t,a)=>{"use strict";var c=a(50).f,h=a(75),u=a(120),d=a(111),f=a(116),g=a(22),p=a(110),s=a(93),o=a(97),l=a(121),m=a(10),b=a(103).fastKey,a=a(57),y=a.set,v=a.getterFor;e.exports={getConstructor:function(e,a,r,i){function n(e,t,a){var r,i=l(e),n=s(e,t);return n?n.value=a:(i.last=n={index:r=b(t,!0),key:t,value:a,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=n),t&&(t.next=n),m?i.size++:e.size++,"F"!==r&&(i.index[r]=n)),e}function s(e,t){var a,e=l(e),r=b(t);if("F"!==r)return e.index[r];for(a=e.first;a;a=a.next)if(a.key==t)return a}var e=e(function(e,t){f(e,o),y(e,{type:a,index:h(null),first:void 0,last:void 0,size:0}),m||(e.size=0),g(t)||p(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,l=v(a);return u(o,{clear:function(){for(var e=l(this),t=e.index,a=e.first;a;)a.removed=!0,a.previous&&(a.previous=a.previous.next=void 0),delete t[a.index],a=a.next;e.first=e.last=void 0,m?e.size=0:this.size=0},delete:function(e){var t,a,r=l(this),e=s(this,e);return e&&(t=e.next,a=e.previous,delete r.index[e.index],e.removed=!0,a&&(a.next=t),t&&(t.previous=a),r.first==e&&(r.first=t),r.last==e&&(r.last=a),m?r.size--:this.size--),!!e},forEach:function(e){for(var t,a=l(this),r=d(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:a.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),u(o,r?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return n(this,0===e?0:e,t)}}:{add:function(e){return n(this,e=0===e?0:e,e)}}),m&&c(o,"size",{get:function(){return l(this).size}}),e},setStrong:function(e,t,a){var r=t+" Iterator",i=v(t),n=v(r);s(e,t,function(e,t){y(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=n(this),t=e.kind,a=e.last;a&&a.removed;)a=a.previous;return e.target&&(e.last=a=a?a.next:e.state.first)?o("keys"==t?a.key:"values"==t?a.value:[a.key,a.value],!1):(e.target=void 0,o(void 0,!0))},a?"entries":"values",!a,!0),l(t)}}},(e,t,a)=>{var i=a(53);e.exports=function(e,t,a){for(var r in t)i(e,r,t[r],a);return e}},(e,t,a)=>{"use strict";var r=a(29),i=a(50),n=a(39),s=a(10),o=n("species");e.exports=function(e){var e=r(e),t=i.f;s&&e&&!e[o]&&t(e,o,{configurable:!0,get:function(){return this}})}},(e,t,a)=>{a(123)},(e,t,a)=>{"use strict";a(102)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a(119))},(u,d,e)=>{function t(r){return!o(function(){var e=new b.Set([7]),t=r(e),a=r(k(7));return t==e||!t.has(7)||"object"!=typeof a||7!=a})&&r}function a(a,r){return!o(function(){var e=new r,t=a({a:e,b:e});return!(t&&t.a===t.b&&t.a instanceof r&&t.a.stack===e.stack)})}function g(e){throw new I("Uncloneable type: "+e,N)}function p(e,t){throw new I((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",N)}function m(t,a){if($(t)&&g("Symbol"),!w(t))return t;if(a){if(P(a,t))return ne(a,t)}else a=new M;var e,r,i,n,s,o,l,c,h,u,d=x(t),f=!1;switch(d){case"Array":i=[],f=!0;break;case"Object":i={},f=!0;break;case"Map":i=new M,f=!0;break;case"Set":i=new T,f=!0;break;case"RegExp":i=new RegExp(t.source,z(t));break;case"Error":switch(r=t.name){case"AggregateError":i=y("AggregateError")([]);break;case"EvalError":i=Y();break;case"RangeError":i=J();break;case"ReferenceError":i=Z();break;case"SyntaxError":i=Q();break;case"TypeError":i=F();break;case"URIError":i=ee();break;case"CompileError":i=ae();break;case"LinkError":i=re();break;case"RuntimeError":i=ie();break;default:i=O()}f=!0;break;case"DOMException":i=new I(t.message,t.name),f=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":e=b[d],w(e)||p(d),i=new e(m(t.buffer,a),t.byteOffset,"DataView"===d?t.byteLength:t.length);break;case"DOMQuad":try{i=new DOMQuad(m(t.p1,a),m(t.p2,a),m(t.p3,a),m(t.p4,a))}catch(e){R?i=R(t):p(d)}break;case"FileList":if(n=function(){var t;try{t=new b.DataTransfer}catch(e){try{t=new b.ClipboardEvent("").clipboardData}catch(e){}}return t&&t.items&&t.files?t:null}()){for(s=0,o=A(t);s<o;s++)n.items.add(m(t[s],a));i=n.files}else R?i=R(t):p(d);break;case"ImageData":try{i=new ImageData(m(t.data,a),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){R?i=R(t):p(d)}break;default:if(R)i=R(t);else switch(d){case"BigInt":i=k(t.valueOf());break;case"Boolean":i=k(ce(t));break;case"Number":i=k(he(t));break;case"String":i=k(ue(t));break;case"Date":i=new C(de(t));break;case"ArrayBuffer":(e=b.DataView)||"function"==typeof t.slice||p(d);try{if("function"==typeof t.slice)i=t.slice(0);else for(o=t.byteLength,i=new ArrayBuffer(o),h=new e(t),u=new e(i),s=0;s<o;s++)u.setUint8(s,h.getUint8(s))}catch(e){throw new I("ArrayBuffer is detached",N)}break;case"SharedArrayBuffer":i=t;break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(e){p(d)}break;case"DOMPoint":case"DOMPointReadOnly":e=b[d];try{i=e.fromPoint?e.fromPoint(t):new e(t.x,t.y,t.z,t.w)}catch(e){p(d)}break;case"DOMRect":case"DOMRectReadOnly":e=b[d];try{i=e.fromRect?e.fromRect(t):new e(t.x,t.y,t.width,t.height)}catch(e){p(d)}break;case"DOMMatrix":case"DOMMatrixReadOnly":e=b[d];try{i=e.fromMatrix?e.fromMatrix(t):new e(t)}catch(e){p(d)}break;case"AudioData":case"VideoFrame":v(t.clone)||p(d);try{i=t.clone()}catch(e){g(d)}break;case"File":try{i=new File([t],t.name,t)}catch(e){p(d)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":p(d);default:g(d)}}if(E(a,t,i),f)switch(d){case"Array":case"Object":for(l=oe(t),s=0,o=A(l);s<o;s++)c=l[s],H(i,c,m(t[c],a));break;case"Map":t.forEach(function(e,t){E(i,m(t,a),m(e,a))});break;case"Set":t.forEach(function(e){se(i,m(e,a))});break;case"Error":S(i,"message",m(t.message,a)),X(t,"cause")&&S(i,"cause",m(t.cause,a)),"AggregateError"==r&&(i.errors=m(t.errors,a));case"DOMException":G&&S(i,"stack",m(t.stack,a))}return i}var r,i=e(41),n=e(7),b=e(8),y=e(29),s=e(18),o=e(11),l=e(46),v=e(26),j=e(125),_=e(22),w=e(25),$=e(28),U=e(110),f=e(52),x=e(84),X=e(44),H=e(106),S=e(49),A=e(69),q=e(126),z=e(127),G=e(129),c=e(33),W=e(130),V=e(131),K=e(132),k=b.Object,C=b.Date,O=b.Error,Y=b.EvalError,J=b.RangeError,Z=b.ReferenceError,Q=b.SyntaxError,F=b.TypeError,ee=b.URIError,te=b.PerformanceMark,e=b.WebAssembly,ae=e&&e.CompileError||O,re=e&&e.LinkError||O,ie=e&&e.RuntimeError||O,I=y("DOMException"),T=y("Set"),M=y("Map"),e=M.prototype,P=s(e.has),ne=s(e.get),E=s(e.set),se=s(T.prototype.add),oe=y("Object","keys"),le=s([].push),ce=s((!0).valueOf),he=s(1..valueOf),ue=s("".valueOf),de=s(C.prototype.getTime),h=l("structuredClone"),N="DataCloneError",D="Transferring",B=b.structuredClone,e=i||!a(B,O)||!a(B,I)||(r=B,!!o(function(){var e=r(new b.AggregateError([1],h,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=h||3!=e.cause})),s=!B&&t(function(e){return new te(h,{detail:e}).detail}),R=t(B)||s,L=B&&!o(function(){var e,t;return!(V&&92<c||K&&94<c||W&&97<c)&&(e=new ArrayBuffer(8),t=B(e,{transfer:[e]}),0!=e.byteLength||8!=t.byteLength)});n({global:!0,enumerable:!0,sham:!L,forced:e},{structuredClone:function(e){var t=1<q(arguments.length,1)&&!_(arguments[1])?f(arguments[1]):void 0,t=t?t.transfer:void 0;if(void 0!==t){var a=new M,r=a;if(!w(t))throw F("Transfer option cannot be converted to a sequence");var i,n,s,o,l,c,h=[],u=(U(t,function(e){le(h,f(e))}),0),d=A(h);if(L)for(o=B(h,{transfer:h});u<d;)E(r,h[u],o[u++]);else for(;u<d;){if(i=h[u++],P(r,i))throw new I("Duplicate transferable",N);switch(n=x(i)){case"ImageBitmap":s=b.OffscreenCanvas,j(s)||p(n,D);try{(c=new s(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),l=c.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":v(i.clone)&&v(i.close)||p(n,D);try{l=i.clone(),i.close()}catch(e){}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":p(n,D)}if(void 0===l)throw new I("This object cannot be transferred: "+n,N);E(r,i,l)}}return m(e,a)}})},(e,t,a)=>{function r(){}function i(e){if(!l(e))return!1;try{return f(r,d,e),!0}catch(e){return!1}}function n(e){if(!l(e))return!1;switch(c(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!p(g,u(e))}catch(e){return!0}}var s=a(18),o=a(11),l=a(26),c=a(84),h=a(29),u=a(56),d=[],f=h("Reflect","construct"),g=/^\s*(?:class|function)\b/,p=s(g.exec),m=!g.exec(r);n.sham=!0,e.exports=!f||o(function(){var e;return i(i.call)||!i(Object)||!i(function(){e=!0})||e})?n:i},e=>{var a=TypeError;e.exports=function(e,t){if(e<t)throw a("Not enough arguments");return e}},(e,t,a)=>{var r=a(12),i=a(44),n=a(30),s=a(128),o=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in o||i(e,"flags")||!n(o,e)?t:r(s,e)}},(e,t,a)=>{"use strict";var r=a(52);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},(e,t,a)=>{var r=a(11),i=a(15);e.exports=!r(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)})},(e,t,a)=>{var r=a(131),a=a(132);e.exports=!r&&!a&&"object"==typeof window&&"object"==typeof document},e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},(e,t,a)=>{var r=a(19),a=a(8);e.exports="process"==r(a.process)},(e,t,a)=>{a=a(8);e.exports=a},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){s._clearCache(),n._clearCache(),o._clearCache()},t.isCmd=function(e,t){return e instanceof s&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof g&&(void 0===t||h(e.get("Type"),t))},t.isName=h,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen};var r=a(2),a=Symbol("CIRCULAR_REF"),a=(t.CIRCULAR_REF=a,Symbol("EOF"));t.EOF=a;function i(){return i}const n=function(){let t=Object.create(null);return class a{constructor(e){this.name=e}static get(e){return t[e]||(t[e]=new a(e))}static _clearCache(){t=Object.create(null)}}}(),s=(t.Name=n,function(){let t=Object.create(null);return class a{constructor(e){this.cmd=e}static get(e){return t[e]||(t[e]=new a(e))}static _clearCache(){t=Object.create(null)}}}());t.Cmd=s;class g{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=i}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,a){let r=this._map[e];return(r=void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==a?this._map[a]:r)instanceof o&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,a){let r=this._map[e];return(r=void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==a?this._map[a]:r)instanceof o&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,a){let r=this._map[e];if((r=void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==a?this._map[a]:r)instanceof o&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption)),Array.isArray(r))for(let e=0,t=(r=r.slice()).length;e<t;e++)r[e]instanceof o&&this.xref&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption));return r}getRaw(e){return this._map[e]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(e,t){this._map[e]=t}has(e){return void 0!==this._map[e]}forEach(e){for(const t in this._map)e(t,this.get(t))}static get empty(){var e=new g(null);return e.set=(e,t)=>{(0,r.unreachable)("Should not call `set` on the empty dictionary.")},(0,r.shadow)(this,"empty",e)}static merge(e){var t,a,{xref:r,dictArray:e,mergeSubDicts:i=!1}=e,n=new g(r),s=new Map;for(const d of e)if(d instanceof g)for(var[o,l]of Object.entries(d._map)){let e=s.get(o);if(void 0===e)e=[],s.set(o,e);else if(!(i&&l instanceof g))continue;e.push(l)}for([t,a]of s)if(1!==a.length&&a[0]instanceof g){var c=new g(r);for(const f of a)for(var[h,u]of Object.entries(f._map))void 0===c._map[h]&&(c._map[h]=u);0<c.size&&(n._map[t]=c)}else n._map[t]=a[0];return s.clear(),0<n.size?n:g.empty}}t.Dict=g;const o=function(){let r=Object.create(null);return class i{constructor(e,t){this.num=e,this.gen=t}toString(){return 0===this.gen?this.num+"R":this.num+"R"+this.gen}static get(e,t){var a=0===t?e+"R":e+"R"+t;return r[a]||(r[a]=new i(e,t))}static _clearCache(){r=Object.create(null)}}}();t.Ref=o;class l{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;this._set=new Set(e&&e._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=l;class c{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}function h(e,t){return e instanceof n&&(void 0===t||e.name===t)}t.RefSetCache=c},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.PDF_VERSION_REGEXP=t.MissingDataException=t.DocStats=void 0,t.collectActions=function(t,e,a){var r=Object.create(null),i=f({dict:e,key:"AA",stopWhenFound:!1});if(i)for(let e=i.length-1;0<=e;e--){var n=i[e];if(n instanceof d.Dict)for(const h of n.getKeys()){var s,o,l=a[h];l&&(o=n.getRaw(h),s=new d.RefSet,g(o,t,o=[],s),0<o.length)&&(r[l]=o)}}{var c;e.has("A")&&(e=e.get("A"),c=new d.RefSet,g(e,t,e=[],c),0<e.length)&&(r.Action=e)}return 0<(0,u.objectSize)(r)?r:null},t.encodeToXmlString=function(a){var r=[];let i=0;for(let e=0,t=a.length;e<t;e++){var n,s=a.codePointAt(e);32<=s&&s<=126?(n=c[s])&&(i<e&&r.push(a.substring(i,e)),r.push(n),i=e+1):(i<e&&r.push(a.substring(i,e)),r.push(`&#x${s.toString(16).toUpperCase()};`),55295<s&&(s<57344||65533<s)&&e++,i=e+1)}if(0===r.length)return a;i<a.length&&r.push(a.substring(i,a.length));return r.join("")},t.escapePDFName=function(a){var r=[];let i=0;for(let e=0,t=a.length;e<t;e++){var n=a.charCodeAt(e);(n<33||126<n||35===n||40===n||41===n||60===n||62===n||91===n||93===n||123===n||125===n||47===n||37===n)&&(i<e&&r.push(a.substring(i,e)),r.push("#"+n.toString(16)),i=e+1)}if(0===r.length)return a;i<a.length&&r.push(a.substring(i,a.length));return r.join("")},t.getArrayLookupTableFactory=function(e){let r;return function(){if(e){let a=e();e=null,r=Object.create(null);for(let e=0,t=a.length;e<t;e+=2)r[a[e]]=a[e+1];a=null}return r}},t.getInheritableProperty=f,t.getLookupTableFactory=function(e){let t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getNewAnnotationsMap=function(e){if(!e)return null;var t=new Map;for(var[a,r]of e)if(a.startsWith(u.AnnotationEditorPrefix)){let e=t.get(r.pageIndex);e||(e=[],t.set(r.pageIndex,e)),e.push(r)}return 0<t.size?t:null},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){if(e<=0)return 0;return Math.ceil(Math.log2(e))},t.numberToString=function(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100!=0?t%10!=0?e.toFixed(2):e.toFixed(1):(t/100).toString()},t.parseXFAPath=function(e){const a=/(.+)\[(\d+)\]$/;return e.split(".").map(e=>{var t=e.match(a);return t?{name:t[1],pos:parseInt(t[2],10)}:{name:e,pos:0}})},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(t){var a=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),a=a.exec(t);if(a&&a[2]){t=a[2];let e=!1;return"true"===a[3]&&"app.launchURL"===a[1]&&(e=!0),{url:t,newWindow:e}}return null},t.toRomanNumerals=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];(0,u.assert)(Number.isInteger(e)&&0<e,"The number should be a positive integer.");var a=[];for(;1e3<=e;)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(l[r]),r=e/10|0,e%=10,a.push(l[10+r]),a.push(l[20+e]);var r=a.join("");return t?r.toLowerCase():r},t.validateCSSFont=function(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:a,fontWeight:r,italicAngle:i}=e;if(/^".*"$/.test(a)){if(/[^\\]"/.test(a.slice(1,a.length-1)))return(0,u.warn)(`XFA - FontFamily contains some unescaped ": ${a}.`),!1}else if(/^'.*'$/.test(a)){if(/[^\\]'/.test(a.slice(1,a.length-1)))return(0,u.warn)(`XFA - FontFamily contains some unescaped ': ${a}.`),!1}else for(const n of a.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(n)||!/^[\w-\\]+$/.test(n))return(0,u.warn)(`XFA - FontFamily contains some invalid <custom-ident>: ${a}.`),!1;r=r?r.toString():"",e.fontWeight=t.has(r)?r:"400",t=parseFloat(i);return e.italicAngle=isNaN(t)||t<-90||90<t?"14":i.toString(),!0};var u=a(2),d=a(134),o=a(136);t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;class r extends u.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException"),this.begin=e,this.end=t}}t.MissingDataException=r;class i extends u.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=i;class n extends u.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=n;class s extends u.BaseException{constructor(e){super(e,"XRefParseException")}}t.XRefParseException=s;function f(e){let{dict:t,key:a,getArray:r=!1,stopWhenFound:i=!0}=e,n;for(var s=new d.RefSet;t instanceof d.Dict&&(!t.objId||!s.has(t.objId));){t.objId&&s.put(t.objId);var o=r?t.getArray(a):t.get(a);if(void 0!==o){if(i)return o;(n=n||[]).push(o)}t=t.get("Parent")}return n}t.DocStats=class{constructor(e){this._handler=e,this._streamTypes=new Set,this._fontTypes=new Set}_send(){var e=Object.create(null),t=Object.create(null);for(const a of this._streamTypes)e[a]=!0;for(const r of this._fontTypes)t[r]=!0;this._handler.send("DocStats",{streamTypes:e,fontTypes:t})}addStreamType(e){this._streamTypes.has(e)||(this._streamTypes.add(e),this._send())}addFontType(e){this._fontTypes.has(e)||(this._fontTypes.add(e),this._send())}};const l=["","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 g(t,a,r,i){if(t){let e=null;if(t instanceof d.Ref){if(i.has(t))return;e=t,i.put(e),t=a.fetch(t)}if(Array.isArray(t))for(const s of t)g(s,a,r,i);else if(t instanceof d.Dict){if((0,d.isName)(t.get("S"),"JavaScript")){var n=t.get("JS");let e;n instanceof o.BaseStream?e=n.getString():"string"==typeof n&&(e=n),(e=e&&(0,u.stringToPDFString)(e).replace(/\u0000/g,""))&&r.push(e)}g(t.getRaw("Next"),a,r,i)}e&&i.remove(e)}}const c={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var r=a(2);t.BaseStream=class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseStream.")}get length(){(0,r.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,r.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,r.shadow)(this,"isDataLoaded",!0)}getByte(){(0,r.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,r.unreachable)("Abstract method `getBytes` called")}peekByte(){var e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e){return e=this.getBytes(e),this.pos-=e.length,e}getUint16(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,r.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,r.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,r.unreachable)("Abstract method `reset` called")}moveStart(){(0,r.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t){(0,r.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=a(2),s=a(138),i=a(135),o=a(140),l=a(139);function c(e){if(e){var t=(0,r.createValidAbsoluteUrl)(e);if(t)return t.href;(0,r.warn)(`Invalid absolute docBaseUrl: "${e}".`)}return null}class n{constructor(){this.constructor===n&&(0,r.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){var e=this.pdfDocument.catalog;return(0,r.shadow)(this,"docBaseUrl",e.baseUrl||this._docBaseUrl)}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(){return this.pdfDocument.cleanup(0<arguments.length&&void 0!==arguments[0]&&arguments[0])}async ensure(e,t,a){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}n;t.LocalPdfManager=class extends n{constructor(e,t,a,r,i,n,s){super(),this._docId=e,this._password=a,this._docBaseUrl=c(s),this.msgHandler=r,this.evaluatorOptions=i,this.enableXfa=n;e=new l.Stream(t);this.pdfDocument=new o.PDFDocument(this,e),this._loadedStreamPromise=Promise.resolve(e)}async ensure(e,t,a){t=e[t];return"function"==typeof t?t.apply(e,a):t}requestRange(e,t){return Promise.resolve()}requestLoadedStream(){return this._loadedStreamPromise}terminate(e){}};n;t.NetworkPdfManager=class extends n{constructor(e,t,a,r,i,n){super(),this._docId=e,this._password=a.password,this._docBaseUrl=c(n),this.msgHandler=a.msgHandler,this.evaluatorOptions=r,this.enableXfa=i,this.streamManager=new s.ChunkedStreamManager(t,{msgHandler:a.msgHandler,length:a.length,disableAutoFetch:a.disableAutoFetch,rangeChunkSize:a.rangeChunkSize}),this.pdfDocument=new o.PDFDocument(this,this.streamManager.getStream())}async ensure(t,a,r){try{var e=t[a];return"function"==typeof e?e.apply(t,r):e}catch(e){if(e instanceof i.MissingDataException)return await this.requestRange(e.begin,e.end),this.ensure(t,a,r);throw e}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(){return this.streamManager.requestAllChunks(0<arguments.length&&void 0!==arguments[0]&&arguments[0])}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var h=a(2),n=a(135);class r extends a(139).Stream{constructor(e,t,a){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=a,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){var a=[];for(let e=0,t=this.numChunks;e<t;++e)this._loadedChunks.has(e)||a.push(e);return a}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){var a=this.chunkSize;if(e%a!=0)throw new Error("Bad begin offset: "+e);var r=e+t.byteLength;if(r%a!=0&&r!==this.bytes.length)throw new Error("Bad end offset: "+r);this.bytes.set(new Uint8Array(t),e);var t=Math.floor(e/a),i=Math.floor((r-1)/a)+1;for(let e=t;e<i;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){var t=this.progressiveDataLength,a=Math.floor(t/this.chunkSize),r=(this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,(this.progressiveDataLength=t)>=this.end?this.numChunks:Math.floor(t/this.chunkSize));for(let e=a;e<r;++e)this._loadedChunks.add(e)}ensureByte(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new n.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}ensureRange(t,a){if(!(a<=t||a<=this.progressiveDataLength)){var r=Math.floor(t/this.chunkSize);if(!(r>this.numChunks)){var i=Math.min(Math.floor((a-1)/this.chunkSize)+1,this.numChunks);for(let e=r;e<i;++e)if(!this._loadedChunks.has(e))throw new n.MissingDataException(t,a)}}}nextEmptyChunk(t){var a=this.numChunks;for(let e=0;e<a;++e){var r=(t+e)%a;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){var t=this.bytes,a=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(a,r),t.subarray(a,r);let i=a+e;return(i=i>r?r:i)>this.progressiveDataLength&&this.ensureRange(a,i),this.pos=i,t.subarray(a,i)}getByteRange(e,t){return e<0&&(e=0),(t=t>this.end?this.end:t)>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),(r.prototype=Object.create(this)).getMissingChunks=function(){var e=this.chunkSize,t=Math.floor(this.start/e),a=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<a;++e)this._loadedChunks.has(e)||r.push(e);return r},Object.defineProperty(r.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=a,i}getBaseStreams(){return[this]}}t.ChunkedStream=r;t.ChunkedStreamManager=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new r(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,h.createPromiseCapability)()}sendRequest(t,e){const s=this.pdfNetworkStream.getRangeReader(t,e);s.isStreamingSupported||(s.onProgress=this.onProgress.bind(this));let o=[],l=0;return new Promise((r,i)=>{const n=e=>{try{var t,a;e.done?(a=(0,h.arraysToBytes)(o),o=null,r(a)):(t=e.value,o.push(t),l+=(0,h.arrayByteLength)(t),s.isStreamingSupported&&this.onProgress({loaded:l}),s.read().then(n,i))}catch(e){i(e)}};s.read().then(n,i)}).then(e=>{this.aborted||this.onReceiveData({chunk:e,begin:t})})}requestAllChunks(){var e;return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]||(e=this.stream.getMissingChunks(),this._requestChunks(e)),this._loadedStreamCapability.promise}_requestChunks(e){var t=this.currRequestId++,a=new Set;this._chunksNeededByRequest.set(t,a);for(const o of e)this.stream.hasChunk(o)||a.add(o);if(0===a.size)return Promise.resolve();var r=(0,h.createPromiseCapability)(),i=(this._promisesByRequest.set(t,r),[]);for(const l of a){let e=this._requestsByChunk.get(l);e||(e=[],this._requestsByChunk.set(l,e),i.push(l)),e.push(t)}if(0<i.length)for(const c of this.groupChunks(i)){var n=c.beginChunk*this.chunkSize,s=Math.min(c.endChunk*this.chunkSize,this.length);this.sendRequest(n,s).catch(r.reject)}return r.promise.catch(e=>{if(!this.aborted)throw e})}getStream(){return this.stream}requestRange(t,e){e=Math.min(e,this.length);var t=this.getBeginChunk(t),a=this.getEndChunk(e),r=[];for(let e=t;e<a;++e)r.push(e);return this._requestChunks(r)}requestRanges(){var t=[];for(const e of 0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]){var a=this.getBeginChunk(e.begin),r=this.getEndChunk(e.end);for(let e=a;e<r;++e)t.includes(e)||t.push(e)}return t.sort(function(e,t){return e-t}),this._requestChunks(t)}groupChunks(a){var r=[];let i=-1,n=-1;for(let e=0,t=a.length;e<t;++e){var s=a[e];i<0&&(i=s),0<=n&&n+1!==s&&(r.push({beginChunk:i,endChunk:n+1}),i=s),e+1===a.length&&r.push({beginChunk:i,endChunk:s+1}),n=s}return r}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){var t=e.chunk,a=void 0===e.begin,e=a?this.progressiveDataLength:e.begin,r=e+t.byteLength,i=Math.floor(e/this.chunkSize),n=r<this.length?Math.floor(r/this.chunkSize):Math.ceil(r/this.chunkSize),s=(a?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=r):this.stream.onReceiveData(e,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream),[]);for(let e=i;e<n;++e){var o=this._requestsByChunk.get(e);if(o){this._requestsByChunk.delete(e);for(const h of o){var l=this._chunksNeededByRequest.get(h);l.has(e)&&l.delete(e),0<l.size||s.push(h)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;1===this.stream.numChunksLoaded?(a=this.stream.numChunks-1,this.stream.hasChunk(a)||(e=a)):e=this.stream.nextEmptyChunk(n),Number.isInteger(e)&&this._requestChunks([e])}for(const u of s){var c=this._promisesByRequest.get(u);this._promisesByRequest.delete(u),c.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var r=a(136),i=a(2);class n extends r.BaseStream{constructor(e,t,a,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+a||this.bytes.length,this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){var t=this.bytes,a=this.pos,r=this.end;if(!e)return t.subarray(a,r);let i=a+e;return i>r&&(i=r),this.pos=i,t.subarray(a,i)}getByteRange(e,t){return t>this.end&&(t=this.end),this.bytes.subarray(e=e<0?0:e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return new n(this.bytes.buffer,e,t,a)}}t.Stream=n;n;t.StringStream=class extends n{constructor(e){super((0,i.stringToBytes)(e))}};n;t.NullStream=class extends n{constructor(){super(new Uint8Array(0))}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0;var o=a(141),x=a(2),S=a(135),A=a(134),k=a(180),l=a(136),n=a(196),r=a(198),i=a(200),s=a(229),c=a(146),h=a(139),C=a(204),O=a(191),F=a(144),u=a(148),d=a(203),f=a(194),g=a(205),p=a(230);const m=[0,0,612,792];class b{constructor(e){let{pdfManager:t,xref:a,pageIndex:r,pageDict:i,ref:n,globalIdFactory:s,fontCache:o,builtInCMapCache:l,standardFontDataCache:c,globalImageCache:h,nonBlendModesSet:u,xfaFactory:d}=e;this.pdfManager=t,this.pageIndex=r,this.pageDict=i,this.xref=a,this.ref=n,this.fontCache=o,this.builtInCMapCache=l,this.standardFontDataCache=c,this.globalImageCache=h,this.nonBlendModesSet=u,this.evaluatorOptions=t.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=d;const f={obj:0};this._localIdFactory=class extends s{static createObjId(){return`p${r}_`+ ++f.obj}static getPageObjId(){return"page"+n.toString()}}}_getInheritableProperty(e){e=(0,S.getInheritableProperty)({dict:this.pageDict,key:e,getArray:1<arguments.length&&void 0!==arguments[1]&&arguments[1],stopWhenFound:!1});return Array.isArray(e)?1!==e.length&&e[0]instanceof A.Dict?A.Dict.merge({xref:this.xref,dictArray:e}):e[0]:e}get content(){return this.pageDict.getArray("Contents")}get resources(){var e=this._getInheritableProperty("Resources");return(0,x.shadow)(this,"resources",e instanceof A.Dict?e:A.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!=0&&t[3]-t[1]!=0)return t;(0,x.warn)(`Empty /${e} entry.`)}return null}get mediaBox(){return(0,x.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||m)}get cropBox(){return(0,x.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return("number"!=typeof e||e<=0)&&(e=1),(0,x.shadow)(this,"userUnit",e)}get view(){var{cropBox:e,mediaBox:t}=this;let a;return e===t||(0,x.isArrayEqual)(e,t)?a=t:(e=x.Util.intersect(e,t))&&e[2]-e[0]!=0&&e[3]-e[1]!=0?a=e:(0,x.warn)("Empty /CropBox and /MediaBox intersection."),(0,x.shadow)(this,"view",a||t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:360<=e?e%=360:e<0&&(e=(e%360+360)%360),(0,x.shadow)(this,"rotate",e)}_onSubStreamError(e,t,a){if(!this.evaluatorOptions.ignoreErrors)throw t;e.send("UnsupportedFeature",{featureId:x.UNSUPPORTED_FEATURES.errorContentSubStream}),(0,x.warn)(`getContentStream - ignoring sub-stream (${a}): "${t}".`)}getContentStream(t){return this.pdfManager.ensure(this,"content").then(e=>e instanceof l.BaseStream?e:Array.isArray(e)?new u.StreamsSequenceStream(e,this._onSubStreamError.bind(this,t)):new h.NullStream)}get xfaData(){return(0,x.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(e,t,a){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");var r,e=new F.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),i=this.pageDict,n=this.annotations.slice(),e=await o.AnnotationFactory.saveNewAnnotations(e,t,a);for({ref:r}of e.annotations)n.push(r);t=i.get("Annots"),i.set("Annots",n),a=[];let s=null;this.xref.encrypt&&(s=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,f.writeObject)(this.ref,i,a,s),t&&i.set("Annots",t);i=e.dependencies;return i.push({ref:this.ref,data:a.join("")},...e.annotations),i}save(e,r,i){const n=new F.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function(e){var t=[];for(const a of e)a.mustBePrinted(i)&&t.push(a.save(n,r,i).catch(function(e){return(0,x.warn)("save - ignoring annotation data during "+`"${r.name}" task: "${e}".`),null}));return Promise.all(t).then(function(e){return e.filter(e=>!!e)})})}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>{return new C.ObjectLoader(this.resources,e,this.xref).load()})}getOperatorList(e){let{handler:a,sink:r,task:h,intent:u,cacheKey:i,annotationStorage:d=null}=e;var e=this.getContentStream(a),t=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]);const f=new F.PartialEvaluator({xref:this.xref,handler:a,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});var n=this.xfaFactory?null:(0,S.getNewAnnotationsMap)(d);let s=Promise.resolve(null);n&&(n=n.get(this.pageIndex))&&(s=o.AnnotationFactory.printNewAnnotations(f,h,n));n=Promise.all([e,t]).then(e=>{var[e]=e;const t=new O.OperatorList(u,r);return a.send("StartRenderPage",{transparency:f.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:i}),f.getOperatorList({stream:e,task:h,resources:this.resources,operatorList:t}).then(function(){return t})});return Promise.all([n,this._parsedAnnotations,s]).then(function(e){let[s,t,a]=e;if(0===(t=a?t.concat(a):t).length||u&x.RenderingIntentFlag.ANNOTATIONS_DISABLE)return s.flush(!0),{length:s.totalLength};var r=!!(u&x.RenderingIntentFlag.ANNOTATIONS_FORMS),i=!!(u&x.RenderingIntentFlag.ANY),n=!!(u&x.RenderingIntentFlag.DISPLAY),o=!!(u&x.RenderingIntentFlag.PRINT),l=[];for(const c of t)(i||n&&c.mustBeViewed(d)||o&&c.mustBePrinted(d))&&l.push(c.getOperatorList(f,h,u,r,d).catch(function(e){return(0,x.warn)("getOperatorList - ignoring annotation data during "+`"${h.name}" task: "${e}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));return Promise.all(l).then(function(e){let t=!1,a=!1;for(var{opList:r,separateForm:i,separateCanvas:n}of e)s.addOpList(r),i&&(t=i),n&&(a=n);return s.flush(!0,{form:t,canvas:a}),{length:s.totalLength}})})}extractTextContent(e){let{handler:t,task:a,includeMarkedContent:r,sink:i,combineTextItems:n}=e;var e=this.getContentStream(t),s=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([e,s]).then(e=>{var[e]=e;return new F.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:e,task:a,resources:this.resources,includeMarkedContent:r,combineTextItems:n,sink:i,viewBox:this.view})})}async getStructTree(){var e=await this.pdfManager.ensureCatalog("structTreeRoot");return e?(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable:null}_parseStructTree(e){e=new d.StructTreePage(e,this.pageDict);return e.parse(),e}async getAnnotationsData(e,t,a){var r=await this._parsedAnnotations;if(0===r.length)return[];var i=[],n=[];let s;var o=!!(a&x.RenderingIntentFlag.ANY),l=!!(a&x.RenderingIntentFlag.DISPLAY),c=!!(a&x.RenderingIntentFlag.PRINT);for(const u of r){var h=o||l&&u.viewable;(h||c&&u.printable)&&n.push(u.data),u.hasTextContent&&h&&(s=s||new F.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),i.push(u.extractTextContent(s,t,this.view).catch(function(e){(0,x.warn)(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)})))}return await Promise.all(i),n}get annotations(){var e=this._getInheritableProperty("Annots");return(0,x.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){var e=this.pdfManager.ensure(this,"annotations").then(()=>{var e=[];for(const t of this.annotations)e.push(o.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!1).catch(function(e){return(0,x.warn)(`_parsedAnnotations: "${e}".`),null}));return Promise.all(e).then(function(e){if(0===e.length)return e;var t=[];let a;for(const r of e)r&&(r instanceof o.PopupAnnotation?a=a||[]:t).push(r);return a&&t.push(...a),t})});return(0,x.shadow)(this,"_parsedAnnotations",e)}get jsActions(){var e=(0,S.collectActions)(this.xref,this.pageDict,x.PageActionEventType);return(0,x.shadow)(this,"jsActions",e)}}t.Page=b;const y=new Uint8Array([37,80,68,70,45]),v=new Uint8Array([115,116,97,114,116,120,114,101,102]),w=new Uint8Array([101,110,100,111,98,106]);function I(a,r,e,t){var e=2<arguments.length&&void 0!==e?e:1024,t=3<arguments.length&&void 0!==t&&t,i=r.length,n=a.peekBytes(e),s=n.length-i;if(!(s<=0))if(t){var o=i-1;let t=n.length-1;for(;t>=o;){let e=0;for(;e<i&&n[t-e]===r[o-e];)e++;if(e>=i)return a.pos+=t-o,!0;t--}}else{let t=0;for(;t<=s;){let e=0;for(;e<i&&n[t+e]===r[e];)e++;if(e>=i)return a.pos+=t,!0;t++}}return!1}t.PDFDocument=class{constructor(e,t){if(t.length<=0)throw new x.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=t,this.xref=new p.XRef(t,e),this._pagePromises=new Map,this._version=null;const a={font:0};this._globalIdFactory=class{static getDocId(){return"g_"+e.docId}static createFontId(){return"f"+ ++a.font}static createObjId(){(0,x.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,x.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new r.Catalog(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=c.Linearization.create(this.stream)}catch(e){if(e instanceof S.MissingDataException)throw e;(0,x.info)(e)}return(0,x.shadow)(this,"linearization",e)}get startXRef(){var a=this.stream;let r=0;if(this.linearization)a.reset(),I(a,w)&&(r=a.pos+6-a.start);else{var i=v.length;let e=!1,t=a.end;for(;!e&&0<t;)(t-=1024-i)<0&&(t=0),a.pos=t,e=I(a,v,1024,!0);if(e){a.skip(9);let e;for(;e=a.getByte(),(0,S.isWhiteSpace)(e););let t="";for(;32<=e&&e<=57;)t+=String.fromCharCode(e),e=a.getByte();r=parseInt(t,10),isNaN(r)&&(r=0)}}return(0,x.shadow)(this,"startXRef",r)}checkHeader(){var a=this.stream;if(a.reset(),I(a,y)){a.moveStart(),a.skip(y.length);let e="",t;for(;32<(t=a.getByte())&&e.length<7;)e+=String.fromCharCode(t);S.PDF_VERSION_REGEXP.test(e)?this._version=e:(0,x.warn)("Invalid PDF header version: "+e)}}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():(this.linearization||this.catalog).numPages,(0,x.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e){let a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every(e=>{var t;return(e=this.xref.fetchIfRef(e))instanceof A.Dict&&(e.has("Kids")?10<++a?((0,x.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(e.get("Kids"),a):(t=(0,A.isName)(e.get("FT"),"Sig"),e=e.get("Rect"),e=Array.isArray(e)&&e.every(e=>0===e),t&&e))})}get _xfaStreams(){var e=this.catalog.acroForm;if(!e)return null;var r,i=e.get("XFA"),n={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(i instanceof l.BaseStream&&!i.isEmpty)n["xdp:xdp"]=i;else{if(!Array.isArray(i)||0===i.length)return null;for(let t=0,a=i.length;t<a;t+=2){let e;e=0===t?"xdp:xdp":t===a-2?"/xdp:xdp":i[t],n.hasOwnProperty(e)&&(r=this.xref.fetchIfRef(i[t+1]))instanceof l.BaseStream&&!r.isEmpty&&(n[e]=r)}}return n}get xfaDatasets(){var e=this._xfaStreams;if(e)for(const i of["datasets","xdp:xdp"]){var t=e[i];if(t)try{var a=(0,x.stringToUTF8String)(t.getString()),r={[i]:a};return(0,x.shadow)(this,"xfaDatasets",new s.DatasetReader(r))}catch(e){(0,x.warn)("XFA - Invalid utf-8 string.");break}}return(0,x.shadow)(this,"xfaDatasets",null)}get xfaData(){var e=this._xfaStreams;if(!e)return null;var t,a,r=Object.create(null);for([t,a]of Object.entries(e))if(a)try{r[t]=(0,x.stringToUTF8String)(a.getString())}catch(e){return(0,x.warn)("XFA - Invalid utf-8 string."),null}return r}get xfaFactory(){let e;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),(0,x.shadow)(this,"xfaFactory",e?new g.XFAFactory(e):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){var e=await this.pdfManager.ensureCatalog("xfaImages");if(e){var t=e.getKeys(),a=(await new C.ObjectLoader(e,t,this.xref).load(),new Map);for(const i of t){var r=e.get(i);r instanceof l.BaseStream&&a.set(i,r.getBytes())}this.xfaFactory.setImages(a)}}async loadXfaFonts(e,t){var a=await this.pdfManager.ensureCatalog("acroForm");if(a){var r=await a.getAsync("DR");if(r instanceof A.Dict){await new C.ObjectLoader(r,["Font"],this.xref).load();a=r.get("Font");if(a instanceof A.Dict){var i=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions),n=(i.useSystemFonts=!1,new F.PartialEvaluator({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:i})),s=new O.OperatorList;const m=[];var o={get font(){return m.at(-1)},set font(e){m.push(e)},clone(){return this}};const b=new Map;a.forEach((e,t)=>{b.set(e,t)});var l,c,h=[];for([l,c]of b){var u=c.get("FontDescriptor");if(u instanceof A.Dict){let e=u.get("FontFamily");e=e.replace(/[ ]+(\d)/g,"$1");var d=u.get("FontWeight"),u=-u.get("ItalicAngle"),d={fontFamily:e,fontWeight:d,italicAngle:u};(0,S.validateCSSFont)(d)&&h.push(n.handleSetFont(r,[A.Name.get(l),1],null,s,t,o,null,d).catch(function(e){return(0,x.warn)(`loadXfaFonts: "${e}".`),null}))}}await Promise.all(h);e=this.xfaFactory.setFonts(m);if(e){i.ignoreErrors=!0,h.length=0,m.length=0;var f=new Set;for(const y of e)(0,k.getXfaFontName)(y+"-Regular")||f.add(y);f.size&&e.push("PdfJS-Fallback");for(const v of e)if(!f.has(v))for(const w 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}]){var g=v+"-"+w.name,p=(0,k.getXfaFontDict)(g);h.push(n.handleSetFont(r,[A.Name.get(g),1],null,s,t,o,p,{fontFamily:v,fontWeight:w.fontWeight,italicAngle:w.italicAngle}).catch(function(e){return(0,x.warn)(`loadXfaFonts: "${e}".`),null}))}await Promise.all(h),this.xfaFactory.appendFonts(m,f)}}}}}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this._version}get formInfo(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(t)try{var a=t.get("Fields"),r=Array.isArray(a)&&0<a.length,i=(e.hasFields=r,t.get("XFA")),n=(e.hasXfa=Array.isArray(i)&&0<i.length||i instanceof l.BaseStream&&!i.isEmpty,t.get("SigFlags")),s=!!(1&n),o=s&&this._hasOnlyDocumentSignatures(a);e.hasAcroForm=r&&!o,e.hasSignatures=s}catch(e){if(e instanceof S.MissingDataException)throw e;(0,x.warn)(`Cannot fetch form information: "${e}".`)}return(0,x.shadow)(this,"formInfo",e)}get documentInfo(){var t={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 e;try{e=this.xref.trailer.get("Info")}catch(e){if(e instanceof S.MissingDataException)throw e;(0,x.info)("The document information dictionary is invalid.")}if(e instanceof A.Dict)for(const r of e.getKeys()){var a=e.get(r);switch(r){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"!=typeof a)break;t[r]=(0,x.stringToPDFString)(a);continue;case"Trapped":if(a instanceof A.Name){t[r]=a;continue}break;default:let e;switch(typeof a){case"string":e=(0,x.stringToPDFString)(a);break;case"number":case"boolean":e=a;break;default:a instanceof A.Name&&(e=a)}if(void 0===e){(0,x.warn)(`Bad value, for custom key "${r}", in Info: ${a}.`);continue}t.Custom||(t.Custom=Object.create(null)),t.Custom[r]=e;continue}(0,x.warn)(`Bad value, for key "${r}", in Info: ${a}.`)}return(0,x.shadow)(this,"documentInfo",t)}get fingerprints(){function e(e){return"string"==typeof e&&0<e.length&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){var t=[];for(const r of e){var a=r.toString(16);t.push(a.padStart(2,"0"))}return t.join("")}var a=this.xref.trailer.get("ID");let r,i;return Array.isArray(a)&&e(a[0])?(r=(0,x.stringToBytes)(a[0]),a[1]!==a[0]&&e(a[1])&&(i=(0,x.stringToBytes)(a[1]))):r=(0,n.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,x.shadow)(this,"fingerprints",[t(r),i?t(i):null])}async _getLinearizationPage(t){var{catalog:a,linearization:r,xref:i}=this,r=A.Ref.get(r.objectNumberFirst,0);try{var n=await i.fetchAsync(r);if(n instanceof A.Dict){let e=n.getRaw("Type");if(e instanceof A.Ref&&(e=await i.fetchAsync(e)),(0,A.isName)(e,"Page")||!n.has("Type")&&!n.has("Kids"))return a.pageKidsCountCache.has(r)||a.pageKidsCountCache.put(r,1),a.pageIndexCache.has(r)||a.pageIndexCache.put(r,0),[n,r]}throw new x.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(e){return(0,x.warn)(`_getLinearizationPage: "${e.message}".`),a.getPageDict(t)}}getPage(a){var e=this._pagePromises.get(a);if(e)return e;const{catalog:r,linearization:t,xfaFactory:i}=this;let n;return n=(n=i?Promise.resolve([A.Dict.empty,null]):t&&t.pageFirst===a?this._getLinearizationPage(a):r.getPageDict(a)).then(e=>{var[e,t]=e;return new b({pdfManager:this.pdfManager,xref:this.xref,pageIndex:a,pageDict:e,ref:t,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:i})}),this._pagePromises.set(a,n),n}async checkFirstPage(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(!e)try{await this.getPage(0)}catch(e){if(e instanceof S.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new S.XRefParseException}}async checkLastPage(){var a=0<arguments.length&&void 0!==arguments[0]&&arguments[0],{catalog:r,pdfManager:i}=this;r.setActualNumPages();let n;try{if(await Promise.all([i.ensureDoc("xfaFactory"),i.ensureDoc("linearization"),i.ensureCatalog("numPages")]),!this.xfaFactory){if(n=(this.linearization||r).numPages,!Number.isInteger(n))throw new x.FormatError("Page count is not an integer.");n<=1||await this.getPage(n-1)}}catch(e){if(this._pagePromises.delete(n-1),await this.cleanup(),e instanceof S.XRefEntryException&&!a)throw new S.XRefParseException;(0,x.warn)(`checkLastPage - invalid /Pages tree /Count: ${n}.`);let t;try{t=await r.getAllPageDicts(a)}catch(e){if(e instanceof S.XRefEntryException&&!a)throw new S.XRefParseException;return void r.setActualNumPages(1)}for(var[s,[o,l]]of t){let e;o instanceof Error?(e=Promise.reject(o)).catch(()=>{}):e=Promise.resolve(new b({pdfManager:i,xref:this.xref,pageIndex:s,pageDict:o,ref:l,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(s,e)}r.setActualNumPages(t.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(){return this.catalog?this.catalog.cleanup(0<arguments.length&&void 0!==arguments[0]&&arguments[0]):(0,i.clearGlobalCaches)()}_collectFieldObjects(e,t,a){var r,i=this.xref.fetchIfRef(t);if(i.has("T")&&(r=(0,x.stringToPDFString)(i.get("T")),e=""===e?r:e+"."+r),a.has(e)||a.set(e,[]),a.get(e).push(o.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then(e=>e&&e.getFieldObject()).catch(function(e){return(0,x.warn)(`_collectFieldObjects: "${e}".`),null})),i.has("Kids"))for(const n of i.get("Kids"))this._collectFieldObjects(e,n,a)}get fieldObjects(){if(!this.formInfo.hasFields)return(0,x.shadow)(this,"fieldObjects",Promise.resolve(null));const t=Object.create(null);var e=new Map;for(const r of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",r,e);var a=[];for(const[i,n]of e)a.push(Promise.all(n).then(e=>{0<(e=e.filter(e=>!!e)).length&&(t[i]=e)}));return(0,x.shadow)(this,"fieldObjects",Promise.all(a).then(()=>t))}get hasJSActions(){var e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,x.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){var[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t&&Object.values(t).some(e=>e.some(e=>null!==e.actions))}get calculationOrderIds(){var e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,x.shadow)(this,"calculationOrderIds",null);e=e.get("CO");if(!Array.isArray(e)||0===e.length)return(0,x.shadow)(this,"calculationOrderIds",null);var t=[];for(const a of e)a instanceof A.Ref&&t.push(a.toString());return 0===t.length?(0,x.shadow)(this,"calculationOrderIds",null):(0,x.shadow)(this,"calculationOrderIds",t)}}},(R,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupAnnotation=e.MarkupAnnotation=e.AnnotationFactory=e.AnnotationBorderStyle=e.Annotation=void 0,e.getQuadPoints=c;var k=t(2),C=t(135),O=t(142),F=t(134),f=t(194),a=t(136),r=t(189),i=t(198),n=t(143),s=t(201),o=t(204),d=t(191),I=t(139),l=t(205);function g(e,t){var a=1<arguments.length&&void 0!==t?t:new Uint8ClampedArray(3);if(!Array.isArray(e))return a;var r=a||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return n.ColorSpace.singletons.gray.getRgbItem(e,0,r,0),r;case 3:return n.ColorSpace.singletons.rgb.getRgbItem(e,0,r,0),r;case 4:return n.ColorSpace.singletons.cmyk.getRgbItem(e,0,r,0),r;default:return a}}function c(e,r){if(!e.has("QuadPoints"))return null;var i=e.getArray("QuadPoints");if(!Array.isArray(i)||0===i.length||0<i.length%8)return null;var n=[];for(let a=0,e=i.length/8;a<e;a++){n.push([]);for(let e=8*a,t=8*a+8;e<t;e+=2){var s=i[e],o=i[e+1];if(null!==r&&(s<r[0]||s>r[2]||o<r[1]||o>r[3]))return null;n[a].push({x:s,y:o})}}return n.map(e=>{var[e,t,a,r]=e.reduce((e,t)=>{var[e,a,r,i]=e;return[Math.min(e,t.x),Math.max(a,t.x),Math.min(r,t.y),Math.max(i,t.y)]},[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]);return[{x:e,y:r},{x:t,y:r},{x:e,y:a},{x:t,y:a}]})}function p(e,t,a){var[t,a,r,i]=k.Util.getAxialAlignedBoundingBox(t,a);return t===r||a===i?[1,0,0,1,e[0],e[1]]:[r=(e[2]-e[0])/(r-t),0,0,i=(e[3]-e[1])/(i-a),e[0]-t*r,e[1]-a*i]}e.AnnotationFactory=class{static create(i,n,s,o,l){return Promise.all([s.ensureCatalog("acroForm"),s.ensureCatalog("baseUrl"),s.ensureCatalog("attachments"),s.ensureDoc("xfaDatasets"),l?this._getPageIndex(i,n,s):-1]).then(e=>{var[e,,t,a,r]=e;return s.ensure(this,"_create",[i,n,s,o,e,t,a,l,r])})}static _create(e,t,a,r,i){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,s=6<arguments.length?arguments[6]:void 0,o=7<arguments.length?arguments[7]:void 0,l=8<arguments.length&&void 0!==arguments[8]?arguments[8]:-1,c=e.fetchIfRef(t);if(c instanceof F.Dict){var r=t instanceof F.Ref?t.toString():"annot_"+r.createObjId(),h=c.get("Subtype"),u={xref:e,ref:t,dict:c,subtype:h=h instanceof F.Name?h.name:null,id:r,pdfManager:a,acroForm:i instanceof F.Dict?i:F.Dict.empty,attachments:n,xfaDatasets:s,collectFields:o,pageIndex:l};switch(h){case"Link":return new S(u);case"Text":return new x(u);case"Widget":var d=(0,C.getInheritableProperty)({dict:c,key:"FT"});switch(d=d instanceof F.Name?d.name:null){case"Tx":return new b(u);case"Btn":return new y(u);case"Ch":return new v(u);case"Sig":return new w(u)}return(0,k.warn)(`Unimplemented widget field type "${d}", `+"falling back to base field type."),new T(u);case"Popup":return new A(u);case"FreeText":return new M(u);case"Line":return new P(u);case"Square":return new E(u);case"Circle":return new L(u);case"PolyLine":return new N(u);case"Polygon":return new D(u);case"Caret":return new j(u);case"Ink":return new B(u);case"Highlight":return new _(u);case"Underline":return new $(u);case"Squiggly":return new U(u);case"StrikeOut":return new X(u);case"Stamp":return new H(u);case"FileAttachment":return new q(u);default:return o||(h?(0,k.warn)(`Unimplemented annotation type "${h}", `+"falling back to base annotation."):(0,k.warn)("Annotation is missing the required /Subtype.")),new m(u)}}}static async _getPageIndex(e,t,a){try{var r,i=await e.fetchIfRefAsync(t);return i instanceof F.Dict?(r=i.getRaw("P"))instanceof F.Ref?await a.ensureCatalog("getPageIndex",[r]):-1:-1}catch(e){return(0,k.warn)(`_getPageIndex: "${e}".`),-1}}static async saveNewAnnotations(e,t,a){var r=e.xref;let i;var n,s,o=[],l=[];for(const c of a)switch(c.annotationType){case k.AnnotationEditorType.FREETEXT:i||((n=new F.Dict(r)).set("BaseFont",F.Name.get("Helvetica")),n.set("Type",F.Name.get("Font")),n.set("Subtype",F.Name.get("Type1")),n.set("Encoding",F.Name.get("WinAnsiEncoding")),s=[],i=r.getNewRef(),(0,f.writeObject)(i,n,s,null),o.push({ref:i,data:s.join("")})),l.push(M.createNewAnnotation(r,c,o,{evaluator:e,task:t,baseFontRef:i}));break;case k.AnnotationEditorType.INK:l.push(B.createNewAnnotation(r,c,o))}return{annotations:await Promise.all(l),dependencies:o}}static async printNewAnnotations(e,t,a){if(!a)return null;var r=e.xref,i=[];for(const n of a)switch(n.annotationType){case k.AnnotationEditorType.FREETEXT:i.push(M.createNewPrintAnnotation(r,n,{evaluator:e,task:t}));break;case k.AnnotationEditorType.INK:i.push(B.createNewPrintAnnotation(r,n))}return Promise.all(i)}};class m{constructor(e){var t=e.dict,a=(this.setTitle(t.get("T")),this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.setOptionalContent(t),t.get("MK"));if(this.setBorderAndBackgroundColors(a),this.setRotation(a),this._streams=[],this.appearance&&this._streams.push(this.appearance),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:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1},e.collectFields){a=t.get("Kids");if(Array.isArray(a)){var r=[];for(const i of a)i instanceof F.Ref&&r.push(i.toString());0!==r.length&&(this.data.kidIds=r)}this.data.actions=(0,C.collectActions)(e.xref,t,k.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(t),this.data.pageIndex=e.pageIndex}this._fallbackFontDict=null}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,k.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,k.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,k.AnnotationFlag.PRINT)&&!this._hasFlag(e,k.AnnotationFlag.INVISIBLE)}mustBeViewed(e){e=e&&e.get(this.data.id);return e&&void 0!==e.hidden?!e.hidden:this.viewable&&!this._hasFlag(this.flags,k.AnnotationFlag.HIDDEN)}mustBePrinted(e){e=e&&e.get(this.data.id);return e&&void 0!==e.print?e.print:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(e){e="string"==typeof e?(0,k.stringToPDFString)(e):"";return{str:e,dir:e&&"rtl"===(0,r.bidi)(e).dir?"rtl":"ltr"}}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"==typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&0<e?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=k.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}setColor(e){this.color=g(e)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&2===t.length)for(let e=0;e<2;e++){var a=t[e];if(a instanceof F.Name)switch(a.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[e]=a.name;continue}(0,k.warn)("Ignoring invalid lineEnding: "+a)}}setRotation(t){if(this.rotation=0,t instanceof F.Dict){let e=t.get("R")||0;Number.isInteger(e)&&0!==e&&((e%=360)<0&&(e+=360),e%90==0)&&(this.rotation=e)}}setBorderAndBackgroundColors(e){e instanceof F.Dict?(this.borderColor=g(e.getArray("BC"),null),this.backgroundColor=g(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){var t,a;this.borderStyle=new h,e instanceof F.Dict&&(e.has("BS")?(a=(t=e.get("BS")).get("Type"))&&!(0,F.isName)(a,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D"))):e.has("Border")?(a=e.getArray("Border"),Array.isArray(a)&&3<=a.length&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2],this.rectangle),4===a.length)&&this.borderStyle.setDashArray(a[3],!0)):this.borderStyle.setWidth(0))}setAppearance(e){this.appearance=null;var t=e.get("AP");t instanceof F.Dict&&((t=t.get("N"))instanceof a.BaseStream?this.appearance=t:t instanceof F.Dict&&(e=e.get("AS"))instanceof F.Name&&t.has(e.name)&&(this.appearance=t.get(e.name)))}setOptionalContent(e){this.oc=null;e=e.get("OC");e instanceof F.Name?(0,k.warn)("setOptionalContent: Support for /Name-entry is not implemented."):e instanceof F.Dict&&(this.oc=e)}loadResources(t,e){return e.dict.getAsync("Resources").then(e=>{if(e)return new o.ObjectLoader(e,t,e.xref).load().then(function(){return e})})}async getOperatorList(e,t,a,r,i){var n=this.data;let s=this.appearance;a=!!(this.data.hasOwnCanvas&&a&k.RenderingIntentFlag.DISPLAY);if(!s){if(!a)return{opList:new d.OperatorList,separateForm:!1,separateCanvas:!1};(s=new I.StringStream("")).dict=new F.Dict}var o=s.dict,l=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],s),c=o.getArray("BBox")||[0,0,1,1],o=o.getArray("Matrix")||[1,0,0,1,0,0],c=p(n.rect,c,o),h=new d.OperatorList;let u;return void 0!==(u=this.oc?await e.parseMarkedContentProps(this.oc,null):u)&&h.addOp(k.OPS.beginMarkedContentProps,["OC",u]),h.addOp(k.OPS.beginAnnotation,[n.id,n.rect,c,o,a]),await e.getOperatorList({stream:s,task:t,resources:l,operatorList:h,fallbackFontDict:this._fallbackFontDict}),h.addOp(k.OPS.endAnnotation,[]),void 0!==u&&h.addOp(k.OPS.endMarkedContent,[]),this.reset(),{opList:h,separateForm:!1,separateCanvas:a}}async save(e,t,a){return null}get hasTextContent(){return!1}async extractTextContent(e,t,a){if(this.appearance){var r=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);const n=[],s=[];var i={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const a of e.items)s.push(a.str),a.hasEOL&&(n.push(s.join("")),s.length=0)}};await e.getTextContent({stream:this.appearance,task:t,resources:r,includeMarkedContent:!0,combineTextItems:!0,sink:i,viewBox:a}),this.reset(),s.length&&n.push(s.join("")),0<n.length&&(this.data.textContent=n)}}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,k.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,k.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,k.stringToPDFString)(e.get("T")));let a=e;var r=new F.RefSet;for(e.objId&&r.put(e.objId);a.has("Parent")&&(a=a.get("Parent"))instanceof F.Dict&&(!a.objId||!r.has(a.objId));)a.objId&&r.put(a.objId),a.has("T")&&t.unshift((0,k.stringToPDFString)(a.get("T")));return t.join(".")}}e.Annotation=m;class h{constructor(){this.width=1,this.style=k.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e){var t,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];e instanceof F.Name?this.width=0:"number"==typeof e&&(0<e&&(t=(a[2]-a[0])/2,a=(a[3]-a[1])/2,0<t)&&0<a&&(t<e||a<e)&&((0,k.warn)("AnnotationBorderStyle.setWidth - ignoring width: "+e),e=1),this.width=e)}setStyle(e){if(e instanceof F.Name)switch(e.name){case"S":this.style=k.AnnotationBorderStyleType.SOLID;break;case"D":this.style=k.AnnotationBorderStyleType.DASHED;break;case"B":this.style=k.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=k.AnnotationBorderStyleType.INSET;break;case"U":this.style=k.AnnotationBorderStyleType.UNDERLINE}}setDashArray(a){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(a)&&0<a.length){let e=!0,t=!0;for(const i of a){if(!(0<=+i)){e=!1;break}0<i&&(t=!1)}e&&!t?(this.dashArray=a,r&&this.setStyle(F.Name.get("D"))):this.width=0}else a&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}e.AnnotationBorderStyle=h;class u extends m{constructor(e){super(e);var t,e=e.dict;e.has("IRT")&&(t=e.getRaw("IRT"),this.data.inReplyTo=t instanceof F.Ref?t.toString():null,t=e.get("RT"),this.data.replyType=t instanceof F.Name?t.name:k.AnnotationReplyType.REPLY),this.data.replyType===k.AnnotationReplyType.GROUP?(t=e.get("IRT"),this.setTitle(t.get("T")),this.data.titleObj=this._title,this.setContents(t.get("Contents")),this.data.contentsObj=this._contents,t.has("CreationDate")?(this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,t.has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=t.has("Popup"),t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null):(this.data.titleObj=this._title,this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=e.has("Popup"),e.has("C")||(this.data.color=null)),e.has("RC")&&(this.data.richText=l.XFAFactory.getRichTextAsHtml(e.get("RC")))}setCreationDate(e){this.creationDate="string"==typeof e?e:null}_setDefaultAppearance(e){var{xref:e,extra:t,strokeColor:a,fillColor:r,blendMode:i,strokeAlpha:n,fillAlpha:s,pointsCallback:o}=e;let l=Number.MAX_VALUE,c=Number.MAX_VALUE,h=Number.MIN_VALUE,u=Number.MIN_VALUE;var d=["q"];t&&d.push(t),a&&d.push(`${a[0]} ${a[1]} ${a[2]} RG`),r&&d.push(`${r[0]} ${r[1]} ${r[2]} rg`);let f=this.data.quadPoints;for(const y of f=f||[[{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]}]]){var[g,p,m,b]=o(d,y);l=Math.min(l,g),h=Math.max(h,p),c=Math.min(c,m),u=Math.max(u,b)}d.push("Q");t=new F.Dict(e),a=new F.Dict(e),a.set("Subtype",F.Name.get("Form")),r=new I.StringStream(d.join(" ")),r.dict=a,t.set("Fm0",r),a=new F.Dict(e),i&&a.set("BM",F.Name.get(i)),"number"==typeof n&&a.set("CA",n),"number"==typeof s&&a.set("ca",s),i=new F.Dict(e),i.set("GS0",a),n=new F.Dict(e),n.set("ExtGState",i),n.set("XObject",t),s=new F.Dict(e),s.set("Resources",n),a=this.data.rect=[l,c,h,u];s.set("BBox",a),this.appearance=new I.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=s,this._streams.push(this.appearance,r)}static async createNewAnnotation(e,t,a,r){var i=e.getNewRef(),n=e.getNewRef(),s=this.createNewDict(t,e,{apRef:n}),t=await this.createNewAppearanceStream(t,e,r),r=[],o=e.encrypt?e.encrypt.createCipherTransform(n.num,n.gen):null;return(0,f.writeObject)(n,t,r,o),a.push({ref:n,data:r.join("")}),r.length=0,o=e.encrypt?e.encrypt.createCipherTransform(i.num,i.gen):null,(0,f.writeObject)(i,s,r,o),{ref:i,data:r.join("")}}static async createNewPrintAnnotation(e,t,a){a=await this.createNewAppearanceStream(t,e,a),t=this.createNewDict(t,e,{ap:a});return new this.prototype.constructor({dict:t,xref:e})}}e.MarkupAnnotation=u;class T extends m{constructor(e){super(e);var t=e.dict,a=this.data;this.ref=e.ref,a.annotationType=k.AnnotationType.WIDGET,void 0===a.fieldName&&(a.fieldName=this._constructFieldName(t)),void 0===a.actions&&(a.actions=(0,C.collectActions)(e.xref,t,k.AnnotationActionEventType));let r=(0,C.getInheritableProperty)({dict:t,key:"V",getArray:!0});a.fieldValue=this._decodeFormValue(r);var i=(0,C.getInheritableProperty)({dict:t,key:"DV",getArray:!0}),i=(a.defaultFieldValue=this._decodeFormValue(i),void 0===r&&e.xfaDatasets&&(i=this._title.str)&&(this._hasValueFromXFA=!0,a.fieldValue=r=e.xfaDatasets.getValue(i)),void 0===r&&null!==a.defaultFieldValue&&(a.fieldValue=a.defaultFieldValue),a.alternativeText=(0,k.stringToPDFString)(t.get("TU")||""),(0,C.getInheritableProperty)({dict:t,key:"DA"})||e.acroForm.get("DA")),i=(this._defaultAppearance="string"==typeof i?i:"",a.defaultAppearanceData=(0,O.parseDefaultAppearance)(this._defaultAppearance),(0,C.getInheritableProperty)({dict:t,key:"FT"})),i=(a.fieldType=i instanceof F.Name?i.name:null,(0,C.getInheritableProperty)({dict:t,key:"DR"})),n=e.acroForm.get("DR"),s=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:i,acroFormResources:n,appearanceResources:s,mergedResources:F.Dict.merge({xref:e.xref,dictArray:[i,s,n],mergeSubDicts:!0})},a.fieldFlags=(0,C.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(a.fieldFlags)||a.fieldFlags<0)&&(a.fieldFlags=0),a.readOnly=this.hasFieldFlag(k.AnnotationFieldFlag.READONLY),a.required=this.hasFieldFlag(k.AnnotationFieldFlag.REQUIRED),a.hidden=this._hasFlag(a.annotationFlags,k.AnnotationFlag.HIDDEN)}_decodeFormValue(e){return Array.isArray(e)?e.filter(e=>"string"==typeof e).map(e=>(0,k.stringToPDFString)(e)):e instanceof F.Name?(0,k.stringToPDFString)(e.name):"string"==typeof e?(0,k.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}static _getRotationMatrix(e,t,a){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,a];case 270:return[0,-1,1,0,0,a];default:throw new Error("Invalid rotation")}}getRotationMatrix(e){var t,e=e?e.get(this.data.id):void 0;let a=e&&e.rotation;return 0===(a=void 0===a?this.rotation:a)?k.IDENTITY_MATRIX:(e=this.data.rect[2]-this.data.rect[0],t=this.data.rect[3]-this.data.rect[1],T._getRotationMatrix(a,e,t))}getBorderAndBackgroundAppearances(e){e=e?e.get(this.data.id):void 0;let t=e&&e.rotation;if(void 0===t&&(t=this.rotation),!this.backgroundColor&&!this.borderColor)return"";var e=this.data.rect[2]-this.data.rect[0],a=this.data.rect[3]-this.data.rect[1],a=0===t||180===t?`0 0 ${e} ${a} re`:`0 0 ${a} ${e} re`;let r="";return this.backgroundColor&&(r=(0,O.getPdfColor)(this.backgroundColor,!0)+` ${a} f `),this.borderColor&&(e=this.borderStyle.width||1,r+=`${e} w ${(0,O.getPdfColor)(this.borderColor,!1)} ${a} S `),r}async getOperatorList(t,a,r,i,n){if(i&&!(this instanceof w))return{opList:new d.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(t,a,r,i,n);var s=await this._getAppearance(t,a,n);if(this.appearance&&null===s)return super.getOperatorList(t,a,r,i,n);r=new d.OperatorList;if(this._defaultAppearance&&null!==s){i=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],i=p(this.data.rect,i,[1,0,0,1,0,0]);let e;void 0!==(e=this.oc?await t.parseMarkedContentProps(this.oc,null):e)&&r.addOp(k.OPS.beginMarkedContentProps,["OC",e]),r.addOp(k.OPS.beginAnnotation,[this.data.id,this.data.rect,i,this.getRotationMatrix(n),!1]);i=new I.StringStream(s);await t.getOperatorList({stream:i,task:a,resources:this._fieldResources.mergedResources,operatorList:r}),r.addOp(k.OPS.endAnnotation,[]),void 0!==e&&r.addOp(k.OPS.endMarkedContent,[])}return{opList:r,separateForm:!1,separateCanvas:!1}}_getMKDict(e){var t=new F.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",Array.from(this.borderColor,e=>e/255)),this.backgroundColor&&t.set("BG",Array.from(this.backgroundColor,e=>e/255)),0<t.size?t:null}async save(e,t,a){var r=a?a.get(this.data.id):void 0;let i=r&&r.value,n=r&&r.rotation;if(i===this.data.fieldValue||void 0===i){if(!this._hasValueFromXFA&&void 0===n)return null;i=i||this.data.fieldValue}if(void 0===n&&!this._hasValueFromXFA&&Array.isArray(i)&&Array.isArray(this.data.fieldValue)&&i.length===this.data.fieldValue.length&&i.every((e,t)=>e===this.data.fieldValue[t]))return null;void 0===n&&(n=this.rotation);let s=await this._getAppearance(e,t,a);if(null===s)return null;r=e.xref,t=r.fetchIfRef(this.ref);if(!(t instanceof F.Dict))return null;var e=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],o={path:(0,k.stringToPDFString)(t.get("T")||""),value:i},l=r.getNewRef(),c=new F.Dict(r),h=(c.set("N",l),r.encrypt);let u=null,d=null;h&&(u=h.createCipherTransform(this.ref.num,this.ref.gen),d=h.createCipherTransform(l.num,l.gen),s=d.encryptString(s));h=e=>(0,k.isAscii)(e)?e:(0,k.stringToUTF16BEString)(e),t.set("V",Array.isArray(i)?i.map(h):h(i)),t.set("AP",c),t.set("M","D:"+(0,k.getModificationDate)()),h=this._getMKDict(n),h&&t.set("MK",h),c=new F.Dict(r),c.set("Length",s.length),c.set("Subtype",F.Name.get("Form")),c.set("Resources",this._getSaveFieldResources(r)),c.set("BBox",e),h=this.getRotationMatrix(a),h!==k.IDENTITY_MATRIX&&c.set("Matrix",h),r=[`${this.ref.num} ${this.ref.gen} obj\n`],(0,f.writeDict)(t,r,u),r.push("\nendobj\n"),e=[`${l.num} ${l.gen} obj\n`];return(0,f.writeDict)(c,e,d),e.push(" stream\n",s,"\nendstream\nendobj\n"),[{ref:this.ref,data:r.join(""),xfa:o},{ref:l,data:e.join(""),xfa:null}]}async _getAppearance(e,t,a){if(this.hasFieldFlag(k.AnnotationFieldFlag.PASSWORD))return null;var r=a?a.get(this.data.id):void 0;let i,n;if(r&&(i=r.formattedValue||r.value,n=r.rotation),void 0===n&&void 0===i&&(!this._hasValueFromXFA||this.appearance))return null;if(void 0===i&&!(i=this.data.fieldValue))return"";if(Array.isArray(i)&&1===i.length&&(i=i[0]),(0,k.assert)("string"==typeof i,"Expected `value` to be a string."),""===(i=i.trim()))return"";void 0===n&&(n=this.rotation);let s=-1;this.data.multiLine&&(s=i.split(/\r\n|\r|\n/).length);let o=this.data.rect[3]-this.data.rect[1],l=this.data.rect[2]-this.data.rect[0];90!==n&&270!==n||([l,o]=[o,l]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,O.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));var r=await T._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources),[e,t]=this._computeFontSize(o-2,l-4,i,r,s);let c=r.descent;isNaN(c)&&(c=0);var h,u=Math.min(Math.floor((o-t)/2),2)+Math.abs(c)*t,d=this.data.textAlignment;return this.data.multiLine?this._getMultilineAppearance(e,i,r,t,l,o,d,2,u,a):(h=r.encodeString(i).join(""),this.data.comb?this._getCombAppearance(e,r,h,l,2,u,a):(a=this.getBorderAndBackgroundAppearances(a),0===d||2<d?`/Tx BMC q ${a}BT `+e+` 1 0 0 1 2 ${u} Tm (${(0,k.escapeString)(h)}) Tj`+" ET Q EMC":`/Tx BMC q ${a}BT `+e+" 1 0 0 1 0 0 Tm "+this._renderText(h,r,t,l,d,2,u)+" ET Q EMC"))}static async _getFontData(e,t,a,r){var i=new d.OperatorList,n={font:null,clone(){return this}},{fontName:a,fontSize:s}=a;return await e.handleSetFont(r,[a&&F.Name.get(a),s],null,i,t,n,null),n.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce((e,t)=>e+t.width,0)/1e3}_computeFontSize(i,n,t,s,a){let r=this.data.defaultAppearanceData["fontSize"];if(!r){var o=e=>Math.floor(100*e)/100;if(-1===a){var l=this._getTextWidth(t,s);r=o(Math.min(i/k.LINE_FACTOR,n/l))}else{l=t.split(/\r\n?|\n/);const g=[];for(const p of l){var c=s.encodeString(p).join(""),h=s.charsToGlyphs(c),u=s.getCharPositions(c);g.push({line:c,glyphs:h,positions:u})}var d=e=>{let t=0;for(const r of g){var a=this._splitLine(null,s,e,n,r);if((t+=a.length*e)>i)return!0}return!1},f=(r=12)*k.LINE_FACTOR;let e=Math.round(i/f);for(e=Math.max(e,a);;){if(f=i/e,!d(r=o(f/k.LINE_FACTOR)))break;e++}}var{fontName:t,fontColor:l}=this.data.defaultAppearanceData;this._defaultAppearance=(0,O.createDefaultAppearance)({fontSize:r,fontName:t,fontColor:l})}return[this._defaultAppearance,r]}_renderText(e,t,a,r,i,n,s){let o;return o=1===i?(r-this._getTextWidth(e,t)*a)/2:2===i?r-this._getTextWidth(e,t)*a-n:n,o=(0,C.numberToString)(o),s=(0,C.numberToString)(s),`${o} ${s} Td (${(0,k.escapeString)(e)}) Tj`}_getSaveFieldResources(e){var{localResources:t,appearanceResources:a,acroFormResources:r}=this._fieldResources,i=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(i){for(const s of[t,a])if(s instanceof F.Dict){var n=s.get("Font");if(n instanceof F.Dict&&n.has(i))return s}if(r instanceof F.Dict){var a=r.get("Font");if(a instanceof F.Dict&&a.has(i))return(r=new F.Dict(e)).set(i,a.getRaw(i)),(a=new F.Dict(e)).set("Font",r),F.Dict.merge({xref:e,dictArray:[a,t],mergeSubDicts:!0})}}return t||F.Dict.empty}getFieldObject(){return null}}class b extends T{constructor(e){super(e),this._hasText=!0;e=e.dict;"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");let t=(0,C.getInheritableProperty)({dict:e,key:"Q"}),a=((!Number.isInteger(t)||t<0||2<t)&&(t=null),this.data.textAlignment=t,(0,C.getInheritableProperty)({dict:e,key:"MaxLen"}));(!Number.isInteger(a)||a<0)&&(a=0),this.data.maxLen=a,this.data.multiLine=this.hasFieldFlag(k.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(k.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(k.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(k.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(k.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(k.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(e,t,a,r,i,n,s){var o,l,r=(0,C.numberToString)(r/this.data.maxLen),c=[];for([o,l]of t.getCharPositions(a))c.push(`(${(0,k.escapeString)(a.substring(o,l))}) Tj`);return`/Tx BMC q ${this.getBorderAndBackgroundAppearances(s)}BT `+e+` 1 0 0 1 ${i} ${n} Tm `+c.join(` ${r} 0 Td `)+" ET Q EMC"}_getMultilineAppearance(e,t,a,r,i,n,s,o,l,c){var h=[],u=i-2*o;for(const d of t.split(/\r\n?|\n/))for(const f of this._splitLine(d,a,r,u))h.push(this._renderText(f,a,r,i,s,0===h.length?o:0,-r));t=h.join("\n");return`/Tx BMC q ${this.getBorderAndBackgroundAppearances(c)}BT `+e+` 1 0 0 1 0 ${n} Tm `+t+" ET Q EMC"}_splitLine(a,e,t,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},n=(a=i.line||e.encodeString(a).join(""),i.glyphs||e.charsToGlyphs(a));if(n.length<=1)return[a];var s=i.positions||e.getCharPositions(a),o=t/1e3,l=[];let c=-1,h=-1,u=-1,d=0,f=0;for(let e=0,t=n.length;e<t;e++){var[g,p]=s[e],m=n[e],b=m.width*o;" "===m.unicode?u=f+b>r?(l.push(a.substring(d,g)),d=g,f=b,c=-1):(f+=b,c=g,h=p,e):f+b>r?f=-1!==c?(l.push(a.substring(d,h)),d=h,e=u+1,c=-1,0):(l.push(a.substring(d,g)),d=g,b):f+=b}return d<a.length&&l.push(a.substring(d,a.length)),l}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(k.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,type:"text"}}}class y extends T{constructor(e){super(e),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(k.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(k.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(k.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(k.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(k.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(e)):(0,k.warn)("Invalid field flags for button widget annotation")}async getOperatorList(e,t,a,r,i){if(this.data.pushButton)return super.getOperatorList(e,t,a,!1,i);let n=null,s=null;var o,l,c;return i&&(o=i.get(this.data.id),n=o?o.value:null,s=o?o.rotation:null),null===n&&this.appearance?super.getOperatorList(e,t,a,r,i):(o=(n=null!==n&&void 0!==n?n:this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue)?this.checkedAppearance:this.uncheckedAppearance)?(l=this.appearance,c=o.dict.getArray("Matrix")||k.IDENTITY_MATRIX,s&&o.dict.set("Matrix",this.getRotationMatrix(i)),this.appearance=o,e=super.getOperatorList(e,t,a,r,i),this.appearance=l,o.dict.set("Matrix",c),e):{opList:new d.OperatorList,separateForm:!1,separateCanvas:!1}}async save(e,t,a){return this.data.checkBox?this._saveCheckbox(e,t,a):this.data.radioButton?this._saveRadioButton(e,t,a):null}async _saveCheckbox(e,t,a){if(!a)return null;a=a.get(this.data.id);let r=a&&a.rotation,i=a&&a.value;if(void 0===r){if(void 0===i)return null;if(this.data.fieldValue===this.data.exportValue===i)return null}a=e.xref.fetchIfRef(this.ref);if(!(a instanceof F.Dict))return null;void 0===r&&(r=this.rotation),void 0===i&&(i=this.data.fieldValue===this.data.exportValue);var n={path:(0,k.stringToPDFString)(a.get("T")||""),value:i?this.data.exportValue:""},s=F.Name.get(i?this.data.exportValue:"Off"),s=(a.set("V",s),a.set("AS",s),a.set("M","D:"+(0,k.getModificationDate)()),this._getMKDict(r)),s=(s&&a.set("MK",s),e.xref.encrypt);let o=null;s&&(o=s.createCipherTransform(this.ref.num,this.ref.gen));e=[`${this.ref.num} ${this.ref.gen} obj\n`];return(0,f.writeDict)(a,e,o),e.push("\nendobj\n"),[{ref:this.ref,data:e.join(""),xfa:n}]}async _saveRadioButton(t,e,a){if(!a)return null;a=a.get(this.data.id);let r=a&&a.rotation,i=a&&a.value;if(void 0===r){if(void 0===i)return null;if(this.data.fieldValue===this.data.buttonValue===i)return null}a=t.xref.fetchIfRef(this.ref);if(!(a instanceof F.Dict))return null;void 0===i&&(i=this.data.fieldValue===this.data.buttonValue),void 0===r&&(r=this.rotation);var n={path:(0,k.stringToPDFString)(a.get("T")||""),value:i?this.data.buttonValue:""},s=F.Name.get(i?this.data.buttonValue:"Off");let o=null;var l=t.xref.encrypt;if(i)if(this.parent instanceof F.Ref){t=t.xref.fetch(this.parent);let e=null;l&&(e=l.createCipherTransform(this.parent.num,this.parent.gen)),t.set("V",s),o=[`${this.parent.num} ${this.parent.gen} obj\n`],(0,f.writeDict)(t,o,e),o.push("\nendobj\n")}else this.parent instanceof F.Dict&&this.parent.set("V",s);a.set("AS",s),a.set("M","D:"+(0,k.getModificationDate)());t=this._getMKDict(r);t&&a.set("MK",t);let c=null;l&&(c=l.createCipherTransform(this.ref.num,this.ref.gen));s=[`${this.ref.num} ${this.ref.gen} obj\n`],(0,f.writeDict)(a,s,c),s.push("\nendobj\n"),t=[{ref:this.ref,data:s.join(""),xfa:n}];return null!==o&&t.push({ref:this.parent,data:o.join(""),xfa:null}),t}_getDefaultCheckedAppearance(e,t){var a=this.data.rect[2]-this.data.rect[0],r=this.data.rect[3]-this.data.rect[1],i=[0,0,a,r],n=.8*Math.min(a,r);let s,o;"check"===t?(s={width:.755*n,height:.705*n},o="3"):"disc"===t?(s={width:.791*n,height:.705*n},o="l"):(0,k.unreachable)("_getDefaultCheckedAppearance - unsupported type: "+t);t=`q BT /PdfJsZaDb ${n} Tf 0 g ${(0,C.numberToString)((a-s.width)/2)} ${(0,C.numberToString)((r-s.height)/2)} Td (${o}) Tj ET Q`,n=new F.Dict(e.xref),n.set("FormType",1),n.set("Subtype",F.Name.get("Form")),n.set("Type",F.Name.get("XObject")),n.set("BBox",i),n.set("Matrix",[1,0,0,1,0,0]),n.set("Length",t.length),a=new F.Dict(e.xref),r=new F.Dict(e.xref);r.set("PdfJsZaDb",this.fallbackFontDict),a.set("Font",r),n.set("Resources",a),this.checkedAppearance=new I.StringStream(t),this.checkedAppearance.dict=n,this._streams.push(this.checkedAppearance)}_processCheckBox(e){var t,a,r=e.dict.get("AP");r instanceof F.Dict&&(r=r.get("N"))instanceof F.Dict&&("string"==typeof(a=this._decodeFormValue(e.dict.get("AS")))&&(this.data.fieldValue=a),a=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",0===(t=r.getKeys()).length?t.push("Off",a):1===t.length?"Off"===t[0]?t.push(a):t.unshift("Off"):t.includes(a)?(t.length=0,t.push("Off",a)):(a=t.find(e=>"Off"!==e),t.length=0,t.push("Off",a)),t.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=t[1],this.checkedAppearance=r.get(this.data.exportValue)||null,this.uncheckedAppearance=r.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict)}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent"),t=(t instanceof F.Dict&&(this.parent=e.dict.getRaw("Parent"),(t=t.get("V"))instanceof F.Name)&&(this.data.fieldValue=this._decodeFormValue(t)),e.dict.get("AP"));if(t instanceof F.Dict){t=t.get("N");if(t instanceof F.Dict){for(const a of t.getKeys())if("Off"!==a){this.data.buttonValue=this._decodeFormValue(a);break}this.checkedAppearance=t.get(this.data.buttonValue)||null,this.uncheckedAppearance=t.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}}_processPushButton(e){e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA"),i.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl,docAttachments:e.attachments})):(0,k.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e="button",t;return this.data.checkBox?(e="checkbox",t=this.data.exportValue):this.data.radioButton&&(e="radiobutton",t=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}get fallbackFontDict(){var e=new F.Dict;return e.set("BaseFont",F.Name.get("ZapfDingbats")),e.set("Type",F.Name.get("FallbackType")),e.set("Subtype",F.Name.get("FallbackType")),e.set("Encoding",F.Name.get("ZapfDingbatsEncoding")),(0,k.shadow)(this,"fallbackFontDict",e)}}class v extends T{constructor(e){super(e),this.data.options=[];var a=(0,C.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(a)){var r=e.xref;for(let e=0,t=a.length;e<t;e++){var i=r.fetchIfRef(a[e]),n=Array.isArray(i);this.data.options[e]={exportValue:this._decodeFormValue(n?r.fetchIfRef(i[0]):i),displayValue:this._decodeFormValue(n?r.fetchIfRef(i[1]):i)}}}"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]),this.data.combo=this.hasFieldFlag(k.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(k.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){var e=this.data.combo?"combobox":"listbox",t=0<this.data.fieldValue.length?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}async _getAppearance(e,t,a){if(this.data.combo)return super._getAppearance(e,t,a);if(!a)return null;a=a.get(this.data.id);if(!a)return null;var r=a.rotation;let i=a.value;if(void 0===r&&void 0===i)return null;void 0===i?i=this.data.fieldValue:Array.isArray(i)||(i=[i]);let n=this.data.rect[3]-this.data.rect[1],s=this.data.rect[2]-this.data.rect[0];90!==r&&270!==r||([s,n]=[n,s]);var o=this.data.options.length,l=[];for(let e=0;e<o;e++){var c=this.data.options[e]["exportValue"];i.includes(c)&&l.push(e)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,O.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));var h=await T._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let u,d=this.data.defaultAppearanceData["fontSize"];if(d)u=this._defaultAppearance;else{const p=(n-2)/o;let e=-1,t;for(var{displayValue:f}of this.data.options){var g=this._getTextWidth(f,h);g>e&&(e=g,t=f)}[u,d]=this._computeFontSize(p,s-4,t,h,-1)}const p=d*k.LINE_FACTOR;var m=(p-d)/2,a=Math.floor(n/p);let b;b=1===l.length?(r=l[0])-r%a:l.length?l[0]:0;var y=Math.min(b+a+1,o),v=["/Tx BMC q",`1 1 ${s} ${n} re W n`];if(l.length){v.push("0.600006 0.756866 0.854904 rg");for(const A of l)b<=A&&A<y&&v.push(`1 ${n-(A-b+1)*p} ${s} ${p} re f`)}v.push("BT",u,`1 0 0 1 0 ${n} Tm`);for(let e=b;e<y;e++){var w=this.data.options[e]["displayValue"],x=e===b?2:0,S=e===b?m:0;v.push(this._renderText(w,h,d,s,0,x,-p+S))}return v.push("ET Q EMC"),v.join("\n")}}class w extends T{constructor(e){super(e),this.data.fieldValue=null}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class x extends u{constructor(e){super(e);e=e.dict;this.data.annotationType=k.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=e.has("Name")?e.get("Name").name:"Note"),e.has("State")?(this.data.state=e.get("State")||null,this.data.stateModel=e.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class S extends m{constructor(e){super(e),this.data.annotationType=k.AnnotationType.LINK;var t=c(e.dict,this.rectangle);t&&(this.data.quadPoints=t),this.data.borderColor=this.data.borderColor||this.data.color,i.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl,docAttachments:e.attachments})}}class A extends m{constructor(e){super(e),this.data.annotationType=k.AnnotationType.POPUP;let t=e.dict.get("Parent");var a;t?(a=t.get("Subtype"),this.data.parentType=a instanceof F.Name?a.name:null,a=e.dict.getRaw("Parent"),this.data.parentId=a instanceof F.Ref?a.toString():null,e=t.getArray("Rect"),Array.isArray(e)&&4===e.length?this.data.parentRect=k.Util.normalizeRect(e):this.data.parentRect=[0,0,0,0],a=t.get("RT"),(t=(0,F.isName)(a,k.AnnotationReplyType.GROUP)?t.get("IRT"):t).has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null,this.viewable||(e=t.get("F"),this._isViewable(e)&&this.setFlags(e)),this.setTitle(t.get("T")),this.data.titleObj=this._title,this.setContents(t.get("Contents")),this.data.contentsObj=this._contents,t.has("RC")&&(this.data.richText=l.XFAFactory.getRichTextAsHtml(t.get("RC")))):(0,k.warn)("Popup annotation has a missing or invalid parent annotation.")}}e.PopupAnnotation=A;class M extends u{constructor(e){super(e),this.data.annotationType=k.AnnotationType.FREETEXT}get hasTextContent(){return!!this.appearance}static createNewDict(e,t,a){var{apRef:a,ap:r}=a,{color:e,fontSize:i,rect:n,rotation:s,user:o,value:l}=e,c=new F.Dict(t),n=(c.set("Type",F.Name.get("Annot")),c.set("Subtype",F.Name.get("FreeText")),c.set("CreationDate","D:"+(0,k.getModificationDate)()),c.set("Rect",n),`/Helv ${i} Tf `+(0,O.getPdfColor)(e,!0)),i=(c.set("DA",n),c.set("Contents",l),c.set("F",4),c.set("Border",[0,0,0]),c.set("Rotate",s),o&&c.set("T",(0,k.stringToUTF8String)(o)),new F.Dict(t));return c.set("AP",i),a?i.set("N",a):i.set("N",r),c}static async createNewAppearanceStream(e,t,a){var{baseFontRef:a,evaluator:r,task:i}=a,{color:e,fontSize:n,rect:s,rotation:o,value:l}=e,c=new F.Dict(t),h=new F.Dict(t),u=(a?h.set("Helv",a):((a=new F.Dict(t)).set("BaseFont",F.Name.get("Helvetica")),a.set("Type",F.Name.get("Font")),a.set("Subtype",F.Name.get("Type1")),a.set("Encoding",F.Name.get("WinAnsiEncoding")),h.set("Helv",a)),c.set("Font",h),await T._getFontData(r,i,{fontName:"Helvetica",fontSize:n},c)),[a,h,r,i]=s;let d=r-a,f=i-h;o%180!=0&&([d,f]=[f,d]);var s=l.split("\n"),g=n/1e3;let p=-1/0;var m,b=[];for(m of s){m=u.encodeString(m).join(""),b.push(m);let e=0;for(const S of u.charsToGlyphs(m))e+=S.width*g;p=Math.max(p,e)}let y=1,v=(p>d&&(y=d/p),1);var r=k.LINE_FACTOR*n,a=k.LINE_DESCENT_FACTOR*n,i=r*s.length,h=(i>f&&(v=f/i),Math.min(y,v)),l=n*h,w=["q",`0 0 ${(0,C.numberToString)(d)} ${(0,C.numberToString)(f)} re W n`,"BT",`1 0 0 1 0 ${(0,C.numberToString)(f+a)} Tm 0 Tc `+(0,O.getPdfColor)(e,!0),`/Helv ${(0,C.numberToString)(l)} Tf`],x=(0,C.numberToString)(r);for(const A of b)w.push(`0 -${x} Td (${(0,k.escapeString)(A)}) Tj`);w.push("ET","Q");s=w.join("\n"),i=new F.Dict(t),i.set("FormType",1),i.set("Subtype",F.Name.get("Form")),i.set("Type",F.Name.get("XObject")),i.set("BBox",[0,0,d,f]),i.set("Length",s.length),i.set("Resources",c),o&&(n=T._getRotationMatrix(o,d,f),i.set("Matrix",n)),h=new I.StringStream(s);return h.dict=i,h}}class P extends u{constructor(a){super(a);var r=a["dict"];this.data.annotationType=k.AnnotationType.LINE;const i=r.getArray("L");if(this.data.lineCoordinates=k.Util.normalizeRect(i),this.setLineEndings(r.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){var n=this.color?Array.from(this.color,e=>e/255):[0,0,0],s=r.get("CA");let e=null,t=r.getArray("IC");t&&(t=g(t,null),e=t?Array.from(t,e=>e/255):null);r=e?s:null;const l=this.borderStyle.width||1,c=2*l;var o=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];k.Util.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:a.xref,extra:l+" w",strokeColor:n,fillColor:e,strokeAlpha:s,fillAlpha:r,pointsCallback:(e,t)=>(e.push(`${i[0]} ${i[1]} m`,`${i[2]} ${i[3]} l`,"S"),[t[0].x-l,t[1].x+l,t[3].y-l,t[1].y+l])})}}}class E extends u{constructor(t){if(super(t),this.data.annotationType=k.AnnotationType.SQUARE,!this.appearance){var a=this.color?Array.from(this.color,e=>e/255):[0,0,0],r=t.dict.get("CA");let s=null,e=t.dict.getArray("IC");e&&(e=g(e,null),s=e?Array.from(e,e=>e/255):null);var i=s?r:null;0===this.borderStyle.width&&!s||this._setDefaultAppearance({xref:t.xref,extra:this.borderStyle.width+" w",strokeColor:a,fillColor:s,strokeAlpha:r,fillAlpha:i,pointsCallback:(e,t)=>{var a=t[2].x+this.borderStyle.width/2,r=t[2].y+this.borderStyle.width/2,i=t[3].x-t[2].x-this.borderStyle.width,n=t[1].y-t[3].y-this.borderStyle.width;return e.push(a+` ${r} ${i} ${n} re`),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class L extends u{constructor(e){if(super(e),this.data.annotationType=k.AnnotationType.CIRCLE,!this.appearance){var t=this.color?Array.from(this.color,e=>e/255):[0,0,0],a=e.dict.get("CA");let h=null;var r=e.dict.getArray("IC"),r=(r&&(r=g(r,null),h=r?Array.from(r,e=>e/255):null),h?a:null);if(0!==this.borderStyle.width||h){const u=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:e.xref,extra:this.borderStyle.width+" w",strokeColor:t,fillColor:h,strokeAlpha:a,fillAlpha:r,pointsCallback:(e,t)=>{var a=t[0].x+this.borderStyle.width/2,r=t[0].y-this.borderStyle.width/2,i=t[3].x-this.borderStyle.width/2,n=t[3].y+this.borderStyle.width/2,s=a+(i-a)/2,o=r+(n-r)/2,l=(i-a)/2*u,c=(n-r)/2*u;return e.push(s+` ${n} m`,s+l+` ${n} ${i} ${o+c} ${i} ${o} c`,i+` ${o-c} ${s+l} ${r} ${s} ${r} c`,s-l+` ${r} ${a} ${o-c} ${a} ${o} c`,a+` ${o+c} ${s-l} ${n} ${s} ${n} c`,"h"),h?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}}class N extends u{constructor(e){super(e);var t=e["dict"],a=(this.data.annotationType=k.AnnotationType.POLYLINE,this.data.vertices=[],this instanceof D||(this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings),t.getArray("Vertices"));if(Array.isArray(a)){for(let e=0,t=a.length;e<t;e+=2)this.data.vertices.push({x:a[e],y:a[e+1]});if(!this.appearance){var r=this.color?Array.from(this.color,e=>e/255):[0,0,0],t=t.get("CA"),i=this.borderStyle.width||1,n=2*i,s=[1/0,1/0,-1/0,-1/0];for(const o of this.data.vertices)s[0]=Math.min(s[0],o.x-n),s[1]=Math.min(s[1],o.y-n),s[2]=Math.max(s[2],o.x+n),s[3]=Math.max(s[3],o.y+n);k.Util.intersect(this.rectangle,s)||(this.rectangle=s),this._setDefaultAppearance({xref:e.xref,extra:i+" w",strokeColor:r,strokeAlpha:t,pointsCallback:(a,e)=>{var r=this.data.vertices;for(let e=0,t=r.length;e<t;e++)a.push(`${r[e].x} ${r[e].y} `+(0===e?"m":"l"));return a.push("S"),[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}}class D extends N{constructor(e){super(e),this.data.annotationType=k.AnnotationType.POLYGON}}class j extends u{constructor(e){super(e),this.data.annotationType=k.AnnotationType.CARET}}class B extends u{constructor(e){super(e),this.data.annotationType=k.AnnotationType.INK,this.data.inkLists=[];var r=e.dict.getArray("InkList");if(Array.isArray(r)){var i=e.xref;for(let a=0,e=r.length;a<e;++a){this.data.inkLists.push([]);for(let e=0,t=r[a].length;e<t;e+=2)this.data.inkLists[a].push({x:i.fetchIfRef(r[a][e]),y:i.fetchIfRef(r[a][e+1])})}if(!this.appearance){var t=this.color?Array.from(this.color,e=>e/255):[0,0,0],a=e.dict.get("CA"),n=this.borderStyle.width||1,s=2*n,o=[1/0,1/0,-1/0,-1/0];for(const l of this.data.inkLists)for(const c of l)o[0]=Math.min(o[0],c.x-s),o[1]=Math.min(o[1],c.y-s),o[2]=Math.max(o[2],c.x+s),o[3]=Math.max(o[3],c.y+s);k.Util.intersect(this.rectangle,o)||(this.rectangle=o),this._setDefaultAppearance({xref:e.xref,extra:n+" w",strokeColor:t,strokeAlpha:a,pointsCallback:(a,e)=>{for(const r of this.data.inkLists){for(let e=0,t=r.length;e<t;e++)a.push(`${r[e].x} ${r[e].y} `+(0===e?"m":"l"));a.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}static createNewDict(e,t,a){var{apRef:a,ap:r}=a,{paths:e,rect:i,rotation:n}=e,s=new F.Dict(t),i=(s.set("Type",F.Name.get("Annot")),s.set("Subtype",F.Name.get("Ink")),s.set("CreationDate","D:"+(0,k.getModificationDate)()),s.set("Rect",i),s.set("InkList",e.map(e=>e.points)),s.set("F",4),s.set("Border",[0,0,0]),s.set("Rotate",n),new F.Dict(t));return s.set("AP",i),a?i.set("N",a):i.set("N",r),s}static async createNewAppearanceStream(e,t,a){var{color:e,rect:r,rotation:i,paths:n,thickness:s,opacity:o}=e,[r,l,c,h]=r;let u=c-r,d=h-l;i%180!=0&&([u,d]=[d,u]);var f,g=[s+" w 1 J 1 j",""+(0,O.getPdfColor)(e,!1)],p=(1!==o&&g.push("/R0 gs"),[]);for({bezier:f}of n){p.length=0,p.push(`${(0,C.numberToString)(f[0])} ${(0,C.numberToString)(f[1])} m`);for(let e=2,t=f.length;e<t;e+=6){var m=f.slice(e,e+6).map(C.numberToString).join(" ");p.push(m+" c")}p.push("S"),g.push(p.join("\n"))}c=g.join("\n"),r=new F.Dict(t),r.set("FormType",1),r.set("Subtype",F.Name.get("Form")),r.set("Type",F.Name.get("XObject")),r.set("BBox",[0,0,u,d]),r.set("Length",c.length),i&&(h=T._getRotationMatrix(i,u,d),r.set("Matrix",h)),1!==o&&(l=new F.Dict(t),s=new F.Dict(t),(e=new F.Dict(t)).set("CA",o),e.set("Type",F.Name.get("ExtGState")),s.set("R0",e),l.set("ExtGState",s),r.set("Resources",l)),n=new I.StringStream(c);return n.dict=r,n}}class _ extends u{constructor(e){var t,a;super(e),this.data.annotationType=k.AnnotationType.HIGHLIGHT,(this.data.quadPoints=c(e.dict,null))?(t=this.appearance&&this.appearance.dict.get("Resources"),this.appearance&&t&&t.has("ExtGState")||(this.appearance&&(0,k.warn)("HighlightAnnotation - ignoring built-in appearance stream."),t=this.color?Array.from(this.color,e=>e/255):[1,1,0],a=e.dict.get("CA"),this._setDefaultAppearance({xref:e.xref,fillColor:t,blendMode:"Multiply",fillAlpha:a,pointsCallback:(e,t)=>(e.push(`${t[0].x} ${t[0].y} m`,`${t[1].x} ${t[1].y} l`,`${t[3].x} ${t[3].y} l`,`${t[2].x} ${t[2].y} l`,"f"),[t[0].x,t[1].x,t[3].y,t[1].y])}))):this.data.hasPopup=!1}}class $ extends u{constructor(e){var t,a;super(e),this.data.annotationType=k.AnnotationType.UNDERLINE,(this.data.quadPoints=c(e.dict,null))?this.appearance||(t=this.color?Array.from(this.color,e=>e/255):[0,0,0],a=e.dict.get("CA"),this._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:a,pointsCallback:(e,t)=>(e.push(`${t[2].x} ${t[2].y} m`,`${t[3].x} ${t[3].y} l`,"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})):this.data.hasPopup=!1}}class U extends u{constructor(e){var t,a;super(e),this.data.annotationType=k.AnnotationType.SQUIGGLY,(this.data.quadPoints=c(e.dict,null))?this.appearance||(t=this.color?Array.from(this.color,e=>e/255):[0,0,0],a=e.dict.get("CA"),this._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:a,pointsCallback:(e,t)=>{var a=(t[0].y-t[2].y)/6;let r=a,i=t[2].x;var n=t[2].y,s=t[3].x;for(e.push(`${i} ${n+r} m`);i+=2,r=0===r?a:0,e.push(`${i} ${n+r} l`),i<s;);return e.push("S"),[t[2].x,s,n-2*a,n+2*a]}})):this.data.hasPopup=!1}}class X extends u{constructor(e){var t,a;super(e),this.data.annotationType=k.AnnotationType.STRIKEOUT,(this.data.quadPoints=c(e.dict,null))?this.appearance||(t=this.color?Array.from(this.color,e=>e/255):[0,0,0],a=e.dict.get("CA"),this._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:a,pointsCallback:(e,t)=>(e.push((t[0].x+t[2].x)/2+" "+(t[0].y+t[2].y)/2+" m",(t[1].x+t[3].x)/2+" "+(t[1].y+t[3].y)/2+" l","S"),[t[0].x,t[1].x,t[3].y,t[1].y])})):this.data.hasPopup=!1}}class H extends u{constructor(e){super(e),this.data.annotationType=k.AnnotationType.STAMP}}class q extends u{constructor(e){super(e);e=new s.FileSpec(e.dict.get("FS"),e.xref);this.data.annotationType=k.AnnotationType.FILEATTACHMENT,this.data.file=e.serializable}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultAppearance=function(e){var{fontSize:e,fontName:t,fontColor:a}=e;return`/${(0,r.escapePDFName)(t)} ${e} Tf `+c(a,!0)},t.getPdfColor=c,t.parseDefaultAppearance=function(e){return new n(e).parse()};var r=a(135),s=a(2),o=a(143),t=a(144),l=a(134),i=a(139);class n extends t.EvaluatorPreprocessor{constructor(e){super(new i.StringStream(e))}parse(){var e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){if(e.args.length=0,!this.read(e))break;if(0===this.savedStatesDepth){var{fn:a,args:r}=e;switch(0|a){case s.OPS.setFont:var[i,n]=r;i instanceof l.Name&&(t.fontName=i.name),"number"==typeof n&&0<n&&(t.fontSize=n);break;case s.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(r,0,t.fontColor,0);break;case s.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(r,0,t.fontColor,0);break;case s.OPS.setFillColorSpace:o.ColorSpace.singletons.cmyk.getRgbItem(r,0,t.fontColor,0)}}}}catch(e){(0,s.warn)(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}}function c(e,t){var a;return e[0]===e[1]&&e[1]===e[2]?(a=e[0]/255,(0,r.numberToString)(a)+" "+(t?"g":"G")):Array.from(e,e=>(0,r.numberToString)(e/255)).join(" ")+" "+(t?"rg":"RG")}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var x=a(2),f=a(134),i=a(136),n=a(135);class r{constructor(e,t){this.constructor===r&&(0,x.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){var a=new Uint8ClampedArray(3);return this.getRgbItem(e,t,a,0),a}getRgbItem(e,t,a,r){(0,x.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,a,r,i,n,s){(0,x.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,x.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return r.isDefaultDecode(e,this.numComps)}fillRgb(i,e,r,n,s,o,l,a,c){var h=e*r;let u=null;var t=1<<l,d=r!==s||e!==n;if(this.isPassthrough(l))u=a;else if(1===this.numComps&&t<h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){var f=new(l<=8?Uint8Array:Uint16Array)(t);for(let e=0;e<t;e++)f[e]=e;var g=new Uint8ClampedArray(3*t);if(this.getRgbBuffer(f,0,t,g,0,l,0),d){u=new Uint8Array(3*h);let t=0;for(let e=0;e<h;++e){var p=3*a[e];u[t++]=g[p],u[t++]=g[1+p],u[t++]=g[2+p]}}else{let t=0;for(let e=0;e<h;++e){var m=3*a[e];i[t++]=g[m],i[t++]=g[1+m],i[t++]=g[2+m],t+=c}}}else d?(u=new Uint8ClampedArray(3*h),this.getRgbBuffer(a,0,h,u,0,l,0)):this.getRgbBuffer(a,0,n*o,i,0,l,c);if(u)if(d){var b=u;var y=i;l=e;d=r;var v=n;var w=s;var x=c;x=1!==x?0:x;var S=l/v,A=d/w;let t=0,a;var k=new Uint16Array(v),C=3*l;for(let e=0;e<v;e++)k[e]=3*Math.floor(e*S);for(let e=0;e<w;e++){var O=Math.floor(e*A)*C;for(let e=0;e<v;e++)a=O+k[e],y[t++]=b[a++],y[t++]=b[a++],y[t++]=b[+a],t+=x}}else{let a=0,r=0;for(let e=0,t=n*o;e<t;e++)i[a++]=u[r++],i[a++]=u[r++],i[a++]=u[r++],a+=c}}get usesZeroToOneRange(){return(0,x.shadow)(this,"usesZeroToOneRange",!0)}static _cache(e,t,a,r){if(!a)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!r)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let i,n;e instanceof f.Ref&&(n=e,e=t.fetch(e)),((i=e instanceof f.Name?e.name:i)||n)&&a.set(i,n,r)}static getCached(e,t,a){if(!a)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(e instanceof f.Ref){var r=a.getByRef(e);if(r)return r;try{e=t.fetch(e)}catch(e){if(e instanceof n.MissingDataException)throw e}}if(e instanceof f.Name){r=a.getByName(e.name);if(r)return r}return null}static async parseAsync(e){var{cs:e,xref:t,resources:a=null,pdfFunctionFactory:r,localColorSpaceCache:i}=e,a=this._parse(e,t,a,r);return this._cache(e,t,i,a),a}static parse(e){var{cs:e,xref:t,resources:a=null,pdfFunctionFactory:r,localColorSpaceCache:i}=e,n=this.getCached(e,t,i);return n||(n=this._parse(e,t,a,r),this._cache(e,t,i,n),n)}static _parse(s,o){var l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,c=3<arguments.length?arguments[3]:void 0;if((s=o.fetchIfRef(s))instanceof f.Name)switch(s.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 p(null);default:if(l instanceof f.Dict){var e=l.get("ColorSpace");if(e instanceof f.Dict){e=e.get(s.name);if(e){if(e instanceof f.Name)return this._parse(e,o,l,c);s=e;break}}}throw new x.FormatError("Unrecognized ColorSpace: "+s.name)}if(Array.isArray(s)){var h=o.fetchIfRef(s[0]).name;let e,t,a,r,i,n;switch(h){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 e=o.fetchIfRef(s[1]),r=e.getArray("WhitePoint"),i=e.getArray("BlackPoint"),n=e.get("Gamma"),new b(r,i,n);case"CalRGB":e=o.fetchIfRef(s[1]),r=e.getArray("WhitePoint"),i=e.getArray("BlackPoint"),n=e.getArray("Gamma");var u=e.getArray("Matrix");return new y(r,i,n,u);case"ICCBased":u=o.fetchIfRef(s[1]).dict,u=(t=u.get("N"),u.get("Alternate"));if(u){u=this._parse(u,o,l,c);if(u.numComps===t)return u;(0,x.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===t)return this.singletons.gray;if(3===t)return this.singletons.rgb;if(4===t)return this.singletons.cmyk;break;case"Pattern":return a=(a=s[1]||null)&&this._parse(a,o,l,c),new p(a);case"I":case"Indexed":a=this._parse(s[1],o,l,c);var u=o.fetchIfRef(s[2])+1,d=o.fetchIfRef(s[3]);return new m(a,u,d);case"Separation":case"DeviceN":u=o.fetchIfRef(s[1]),d=(t=Array.isArray(u)?u.length:1,a=this._parse(s[2],o,l,c),c.create(s[3]));return new g(t,a,d);case"Lab":e=o.fetchIfRef(s[1]),r=e.getArray("WhitePoint"),i=e.getArray("BlackPoint");u=e.getArray("Range");return new v(r,i,u);default:throw new x.FormatError("Unimplemented ColorSpace object: "+h)}}throw new x.FormatError("Unrecognized ColorSpace object: "+s)}static isDefaultDecode(a,e){if(Array.isArray(a))if(2*e!==a.length)(0,x.warn)("The decode map is not the correct length");else for(let e=0,t=a.length;e<t;e+=2)if(0!==a[e]||1!==a[e+1])return!1;return!0}static get singletons(){return(0,x.shadow)(this,"singletons",{get gray(){return(0,x.shadow)(this,"gray",new s)},get rgb(){return(0,x.shadow)(this,"rgb",new o)},get cmyk(){return(0,x.shadow)(this,"cmyk",new l)}})}}class g extends(t.ColorSpace=r){constructor(e,t,a){super("Alternate",e),this.base=t,this.tintFn=a,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,a,r){var i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,a,r)}getRgbBuffer(e,t,a,r,i,n,s){var o=this.tintFn,l=this.base,c=1/((1<<n)-1),h=l.numComps,u=l.usesZeroToOneRange,n=(l.isPassthrough(8)||!u)&&0===s;let d=n?i:0;var f=n?r:new Uint8ClampedArray(h*a),g=this.numComps,p=new Float32Array(g),m=new Float32Array(h);let b,y;for(b=0;b<a;b++){for(y=0;y<g;y++)p[y]=e[t++]*c;if(o(p,0,m,0),u)for(y=0;y<h;y++)f[d++]=255*m[y];else l.getRgbItem(m,0,f,d),d+=h}n||l.getRgbBuffer(f,0,a,r,i,8,s)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class p extends r{constructor(e){super("Pattern",null),this.base=e}isDefaultDecode(e,t){(0,x.unreachable)("Should not call PatternCS.isDefaultDecode")}}class m extends r{constructor(e,t,a){super("Indexed",1),this.base=e,this.highVal=t;var r=e.numComps*t;if(this.lookup=new Uint8Array(r),a instanceof i.BaseStream){e=a.getBytes(r);this.lookup.set(e)}else{if("string"!=typeof a)throw new x.FormatError("IndexedCS - unrecognized lookup table: "+a);for(let e=0;e<r;++e)this.lookup[e]=255&a.charCodeAt(e)}}getRgbItem(e,t,a,r){var i=this.base.numComps,e=e[t]*i;this.base.getRgbBuffer(this.lookup,e,1,a,r,8,0)}getRgbBuffer(t,a,r,i,n,e,s){var o=this.base,l=o.numComps,c=o.getOutputLength(l,s),h=this.lookup;for(let e=0;e<r;++e){var u=t[a++]*l;o.getRgbBuffer(h,u,1,i,n,8,s),n+=c}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(2!==e.length?((0,x.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,x.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}class s extends r{constructor(){super("DeviceGray",1)}getRgbItem(e,t,a,r){e=255*e[t];a[r]=a[r+1]=a[r+2]=e}getRgbBuffer(t,e,a,r,i,n,s){var o=255/((1<<n)-1);let l=e,c=i;for(let e=0;e<a;++e){var h=o*t[l++];r[c++]=h,r[c++]=h,r[c++]=h,c+=s}}getOutputLength(e,t){return e*(3+t)}}class o extends r{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,a,r){a[r]=255*e[t],a[r+1]=255*e[t+1],a[r+2]=255*e[t+2]}getRgbBuffer(r,e,i,n,s,o,l){if(8===o&&0===l)n.set(r.subarray(e,e+3*i),s);else{var c=255/((1<<o)-1);let t=e,a=s;for(let e=0;e<i;++e)n[a++]=c*r[t++],n[a++]=c*r[t++],n[a++]=c*r[t++],a+=l}}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}const l=function(){function l(e,t,a,r,i){var n=e[t]*a,s=e[t+1]*a,o=e[t+2]*a,e=e[t+3]*a;r[i]=255+n*(-4.387332384609988*n+54.48615194189176*s+18.82290502165302*o+212.25662451639585*e-285.2331026137004)+s*(1.7149763477362134*s-5.6096736904047315*o+-17.873870861415444*e-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*e+17.5119270841813)+e*(-21.86122147463605*e-189.48180835922747),r[i+1]=255+n*(8.841041422036149*n+60.118027045597366*s+6.871425592049007*o+31.159100130055922*e-79.2970844816548)+s*(-15.310361306967817*s+17.575251261109482*o+131.35250912493976*e-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*e-24.86741582555878)+e*(-20.737325471181034*e-187.80453709719578),r[i+2]=255+n*(.8842522430003296*n+8.078677503112928*s+30.89978309703729*o-.23883238689178934*e-14.183576799673286)+s*(10.49593273432072*s+63.02378494754052*o+50.606957656360734*e-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*e-193.58209356861505)+e*(-22.33816807309886*e-180.12613974708367)}class e extends r{constructor(){super("DeviceCMYK",4)}getRgbItem(e,t,a,r){l(e,t,1,a,r)}getRgbBuffer(t,a,r,i,n,e,s){var o=1/((1<<e)-1);for(let e=0;e<r;e++)l(t,a,o,i,n),a+=4,n+=3+s}getOutputLength(e,t){return e/4*(3+t)|0}}return e}(),b=function(){function l(e,t,a,r,i,n){t=(t[a]*n)**e.G,a=e.YW*t,n=Math.max(295.8*a**.3333333333333333-40.8,0);r[i]=n,r[i+1]=n,r[i+2]=n}class e extends r{constructor(e,t,a){if(super("CalGray",1),!e)throw new x.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],a=a||1,this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.G=a,this.XW<0||this.ZW<0||1!==this.YW)throw new x.FormatError("Invalid WhitePoint components for "+this.name+", no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,x.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,x.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, `+`ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,x.info)(`Invalid Gamma: ${this.G} for ${this.name}, `+"falling back to default."),this.G=1)}getRgbItem(e,t,a,r){l(this,e,t,a,r,1)}getRgbBuffer(t,a,r,i,n,e,s){var o=1/((1<<e)-1);for(let e=0;e<r;++e)l(this,t,a,i,n,o),a+=1,n+=3+s}getOutputLength(e,t){return e*(3+t)}}return e}(),y=function(){const h=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),u=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),d=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),f=new Float32Array([1,1,1]),g=new Float32Array(3),p=new Float32Array(3),m=new Float32Array(3),t=(24/116)**3/8;function b(e,t,a){a[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],a[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],a[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function y(e){return e<=.0031308?v(0,1,12.92*e):.99554525<=e?1:v(0,1,1.055*e**(1/2.4)-.055)}function v(e,t,a){return Math.max(e,Math.min(t,a))}function w(e){return e<0?-w(-e):8<e?((e+16)/116)**3:e*t}function l(e,t,a,r,i,n){var s,o=v(0,1,t[a]*n),l=v(0,1,t[a+1]*n),t=v(0,1,t[a+2]*n),a=1===o?1:o**e.GR,n=1===l?1:l**e.GG,o=1===t?1:t**e.GB,l=e.MXA*a+e.MXB*n+e.MXC*o,t=e.MYA*a+e.MYB*n+e.MYC*o,a=e.MZA*a+e.MZB*n+e.MZC*o,n=p,o=(n[0]=l,n[1]=t,n[2]=a,m),c=(l=e.whitePoint,t=n,a=o,1===l[0]&&1===l[2]?(a[0]=t[0],a[1]=t[1],a[2]=t[2]):(n=a,b(h,t,n),t=g,l=l,n=n,(c=t)[0]=+n[0]/l[0],c[1]=+n[1]/l[1],c[2]=+n[2]/l[2],b(u,t,a)),p),e=(n=e.blackPoint,l=o,t=c,0===n[0]&&0===n[1]&&0===n[2]?(t[0]=l[0],t[1]=l[1],t[2]=l[2]):(e=(1-(a=w(0)))/(1-w(n[0])),s=1-(o=(1-a)/(1-w(n[1]))),n=1-(a=(1-a)/(1-w(n[2]))),t[0]=l[0]*e+(1-e),t[1]=l[1]*o+s,t[2]=l[2]*a+n),m),n=(o=f,s=c,l=t=e,b(h,s,l),s=g,o=o,l=l,(a=s)[0]=.95047*l[0]/o[0],a[1]=+l[1]/o[1],a[2]=1.08883*l[2]/o[2],b(u,s,t),p);b(d,e,n),r[i]=255*y(n[0]),r[i+1]=255*y(n[1]),r[i+2]=255*y(n[2])}class e extends r{constructor(e,t,a,r){if(super("CalRGB",3),!e)throw new x.FormatError("WhitePoint missing - required for color space CalRGB");t=t||new Float32Array(3),a=a||new Float32Array([1,1,1]),r=r||new Float32Array([1,0,0,0,1,0,0,0,1]);var i=e[0],n=e[1],s=e[2],e=(this.whitePoint=e,t[0]),o=t[1],l=t[2];if(this.blackPoint=t,this.GR=a[0],this.GG=a[1],this.GB=a[2],this.MXA=r[0],this.MYA=r[1],this.MZA=r[2],this.MXB=r[3],this.MYB=r[4],this.MZB=r[5],this.MXC=r[6],this.MYC=r[7],this.MZC=r[8],i<0||s<0||1!==n)throw new x.FormatError("Invalid WhitePoint components for "+this.name+", no fallback available");(e<0||o<0||l<0)&&((0,x.info)(`Invalid BlackPoint for ${this.name} [${e}, ${o}, ${l}], `+"falling back to default."),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,x.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for `+this.name+", falling back to default."),this.GR=this.GG=this.GB=1)}getRgbItem(e,t,a,r){l(this,e,t,a,r,1)}getRgbBuffer(t,a,r,i,n,e,s){var o=1/((1<<e)-1);for(let e=0;e<r;++e)l(this,t,a,i,n,o),a+=3,n+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}}return e}(),v=function(){function d(e){let t;return t=6/29<=e?e**3:108/841*(e-4/29)}function f(e,t,a,r){return a+e*(r-a)/t}function l(e,t,a,r,i,n){let s=t[a],o=t[a+1],l=t[a+2];!1!==r&&(s=f(s,r,0,100),o=f(o,r,e.amin,e.amax),l=f(l,r,e.bmin,e.bmax)),o>e.amax?o=e.amax:o<e.amin&&(o=e.amin),l>e.bmax?l=e.bmax:l<e.bmin&&(l=e.bmin);t=(s+16)/116,a=t+o/500,r=t-l/200,a=e.XW*d(a),t=e.YW*d(t),r=e.ZW*d(r);let c,h,u;u=e.ZW<1?(c=3.1339*a+-1.617*t+-.4906*r,h=-.9785*a+1.916*t+.0333*r,.072*a+-.229*t+1.4057*r):(c=3.2406*a+-1.5372*t+-.4986*r,h=-.9689*a+1.8758*t+.0415*r,.0557*a+-.204*t+1.057*r),i[n]=255*Math.sqrt(c),i[n+1]=255*Math.sqrt(h),i[n+2]=255*Math.sqrt(u)}class e extends r{constructor(e,t,a){if(super("Lab",3),!e)throw new x.FormatError("WhitePoint missing - required for color space Lab");if(t=t||[0,0,0],a=a||[-100,100,-100,100],this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.amin=a[0],this.amax=a[1],this.bmin=a[2],this.bmax=a[3],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.XW<0||this.ZW<0||1!==this.YW)throw new x.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,x.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,x.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(e,t,a,r){l(this,e,t,!1,a,r)}getRgbBuffer(t,a,r,i,n,e,s){var o=(1<<e)-1;for(let e=0;e<r;e++)l(this,t,a,o,i,n),a+=3,n+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,x.shadow)(this,"usesZeroToOneRange",!1)}}return e}()},(x,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartialEvaluator=e.EvaluatorPreprocessor=void 0;var W=t(2),C=t(145),V=t(134),O=t(163),F=t(167),f=t(166),I=t(170),K=t(169),g=t(179),T=t(180),s=t(171),u=t(186),r=t(146),n=t(188),M=t(139),Y=t(136),a=t(189),L=t(143),y=t(148),p=t(168),i=t(135),o=t(174),S=t(190),d=t(191),v=t(192);const c=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),m={TILING:1,SHADING:2},J=Promise.resolve();function j(e){e.fn===W.OPS.paintImageMaskXObject&&e.args[0]&&0<e.args[0].count&&e.args[0].count++}class l{static get TIME_SLOT_DURATION_MS(){return(0,W.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,W.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){return!(++this.checked<l.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+l.TIME_SLOT_DURATION_MS,this.checked=0}}class b{constructor(e){var{xref:e,handler:t,pageIndex:a,idFactory:r,fontCache:i,builtInCMapCache:n,standardFontDataCache:s,globalImageCache:o,options:l=null}=e;this.xref=e,this.handler=t,this.pageIndex=a,this.idFactory=r,this.fontCache=i,this.builtInCMapCache=n,this.standardFontDataCache=s,this.globalImageCache=o,this.options=l||c,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){var e=new u.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,W.shadow)(this,"_pdfFunctionFactory",e)}clone(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(e instanceof V.Dict&&(!e.objId||!t.has(e.objId))){for(var a=new V.RefSet(t),r=(e.objId&&a.put(e.objId),[e]),i=this.xref;r.length;){var n=r.shift(),s=n.get("ExtGState");if(s instanceof V.Dict)for(var o of s.getRawValues()){if(o instanceof V.Ref){if(a.has(o))continue;try{o=i.fetch(o)}catch(e){a.put(o),(0,W.info)(`hasBlendModes - ignoring ExtGState: "${e}".`);continue}}if(o instanceof V.Dict){o.objId&&a.put(o.objId);o=o.get("BM");if(o instanceof V.Name){if("Normal"!==o.name)return!0}else if(void 0!==o&&Array.isArray(o))for(const c of o)if(c instanceof V.Name&&"Normal"!==c.name)return!0}}s=n.get("XObject");if(s instanceof V.Dict)for(var l of s.getRawValues()){if(l instanceof V.Ref){if(a.has(l))continue;try{l=i.fetch(l)}catch(e){a.put(l),(0,W.info)(`hasBlendModes - ignoring XObject: "${e}".`);continue}}l instanceof Y.BaseStream&&(l.dict.objId&&a.put(l.dict.objId),(l=l.dict.get("Resources"))instanceof V.Dict)&&(l.objId&&a.has(l.objId)||(r.push(l),l.objId&&a.put(l.objId)))}}for(const h of a)t.put(h)}return!1}async fetchBuiltInCMap(e){var t=this.builtInCMapCache.get(e);if(t)return t;let a;if(null!==this.options.cMapUrl){var t=""+this.options.cMapUrl+e+".bcmap",r=await fetch(t);if(!r.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${t}" with "${r.statusText}".`);a={cMapData:new Uint8Array(await r.arrayBuffer()),compressionType:W.CMapCompressionType.BINARY}}else a=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:e});return a.compressionType!==W.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,a),a}async fetchStandardFontData(e){var t=this.standardFontDataCache.get(e);if(t)return new M.Stream(t);if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null;t=(0,I.getFontNameToFileMap)()[e];let a;if(null!==this.options.standardFontDataUrl){var r=""+this.options.standardFontDataUrl+t,i=await fetch(r);i.ok?a=await i.arrayBuffer():(0,W.warn)(`fetchStandardFontData: failed to fetch file "${r}" with "${i.statusText}".`)}else try{a=await this.handler.sendWithPromise("FetchStandardFontData",{filename:t})}catch(e){(0,W.warn)(`fetchStandardFontData: failed to fetch file "${t}" with "${e}".`)}return a?(this.standardFontDataCache.set(e,a),new M.Stream(a)):null}async buildFormXObject(t,e,a,r,i,n,s){var o=e.dict,l=o.getArray("Matrix");let c=o.getArray("BBox");c=Array.isArray(c)&&4===c.length?W.Util.normalizeRect(c):null;let h,u;void 0!==(h=o.has("OC")?await this.parseMarkedContentProps(o.get("OC"),t):h)&&r.addOp(W.OPS.beginMarkedContentProps,["OC",h]);const d=o.get("Group");if(d){u={matrix:l,bbox:c,smask:a,isolated:!1,knockout:!1};var f=d.get("S");let e=null;(0,V.isName)(f,"Transparency")&&(u.isolated=d.get("I")||!1,u.knockout=d.get("K")||!1,d.has("CS"))&&(f=d.getRaw("CS"),g=L.ColorSpace.getCached(f,this.xref,s),e=g||await this.parseColorSpace({cs:f,resources:t,localColorSpaceCache:s})),a&&a.backdrop&&(e=e||L.ColorSpace.singletons.rgb,a.backdrop=e.getRgb(a.backdrop,0)),r.addOp(W.OPS.beginGroup,[u])}var g=d?[l,null]:[l,c];return r.addOp(W.OPS.paintFormXObjectBegin,g),this.getOperatorList({stream:e,task:i,resources:o.get("Resources")||t,operatorList:r,initialState:n}).then(function(){r.addOp(W.OPS.paintFormXObjectEnd,[]),d&&r.addOp(W.OPS.endGroup,[u]),void 0!==h&&r.addOp(W.OPS.endMarkedContent,[])})}_sendImgData(e,t){var a=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||2<arguments.length&&void 0!==arguments[2]&&arguments[2]?this.handler.send("commonobj",[e,"Image",t],a):this.handler.send("obj",[e,this.pageIndex,"Image",t],a)}async buildPaintImageXObject(t){let{resources:n,image:s,isInline:o=!1,operatorList:l,cacheKey:c,localImageCache:h,localColorSpaceCache:u}=t;t=s.dict;const d=t.objId;var f=t.get("W","Width"),g=t.get("H","Height");if(f&&"number"==typeof f&&g&&"number"==typeof g){var a=this.options.maxImageSize;if(-1!==a&&a<f*g){a="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors)return void(0,W.warn)(a);throw new Error(a)}let e;t.has("OC")&&(e=await this.parseMarkedContentProps(t.get("OC"),n));a=t.get("IM","ImageMask")||!1;let r,i;if(a){var a=t.get("I","Interpolate"),p=s.getBytes((f+7>>3)*g),m=t.getArray("D","Decode");if(this.parsingType3Font)(r=v.PDFImage.createRawMask({imgArray:p,width:f,height:g,imageIsFromDecodeStream:s instanceof y.DecodeStream,inverseDecode:!!m&&0<m[0],interpolate:a})).cached=!!c,i=[r];else{if((r=v.PDFImage.createMask({imgArray:p,width:f,height:g,imageIsFromDecodeStream:s instanceof y.DecodeStream,inverseDecode:!!m&&0<m[0],interpolate:a,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported})).isSingleOpaquePixel)return l.addImageOps(W.OPS.paintSolidColorImageMask,[],e),void(c&&h.set(c,d,{fn:W.OPS.paintSolidColorImageMask,args:[],optionalContent:e}));const b="mask_"+this.idFactory.createObjId();l.addDependency(b),this._sendImgData(b,r),i=[{data:b,width:r.width,height:r.height,interpolate:r.interpolate,count:1}]}l.addImageOps(W.OPS.paintImageMaskXObject,i,e),c&&h.set(c,d,{fn:W.OPS.paintImageMaskXObject,args:i,optionalContent:e})}else{p=t.get("SM","SMask")||!1,m=t.get("Mask")||!1;if(o&&!p&&!m&&f+g<200)a=new v.PDFImage({xref:this.xref,res:n,image:s,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}),r=a.createImageData(!0),l.addImageOps(W.OPS.paintInlineImageXObject,[r],e);else{let t="img_"+this.idFactory.createObjId(),a=!1;this.parsingType3Font?t=this.idFactory.getDocId()+"_type3_"+t:d&&(a=this.globalImageCache.shouldCache(d,this.pageIndex))&&(t=this.idFactory.getDocId()+"_"+t),l.addDependency(t),i=[t,f,g],v.PDFImage.buildImage({xref:this.xref,res:n,image:s,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).then(e=>(r=e.createImageData(!1),c&&d&&a&&this.globalImageCache.addByteSize(d,r.data.length),this._sendImgData(t,r,a))).catch(e=>((0,W.warn)(`Unable to decode image "${t}": "${e}".`),this._sendImgData(t,null,a))),l.addImageOps(W.OPS.paintImageXObject,i,e),c&&(h.set(c,d,{fn:W.OPS.paintImageXObject,args:i,optionalContent:e}),d)&&((0,W.assert)(!o,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(d,this.pageIndex),a)&&this.globalImageCache.setData(d,{objId:t,fn:W.OPS.paintImageXObject,args:i,optionalContent:e,byteSize:0})}}}else(0,W.warn)("Image dimensions are missing, or not numbers.")}handleSMask(e,t,a,r,i,n){var s=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},e=e.get("TR");if((0,u.isPDFFunction)(e)){var l=this._pdfFunctionFactory.create(e),c=new Uint8Array(256),h=new Float32Array(1);for(let e=0;e<256;e++)h[0]=e/255,l(h,0,h,0),c[e]=255*h[0]|0;o.transferMap=c}return this.buildFormXObject(t,s,o,a,r,i.state.clone(),n)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!(0,u.isPDFFunction)(e))return null;t=[e]}var a=[];let r=0,i=0;for(const c of t){var n=this.xref.fetchIfRef(c);if(r++,(0,V.isName)(n,"Identity"))a.push(null);else{if(!(0,u.isPDFFunction)(n))return null;var s=this._pdfFunctionFactory.create(n),o=new Uint8Array(256),l=new Float32Array(1);for(let e=0;e<256;e++)l[0]=e/255,s(l,0,l,0),o[e]=255*l[0]|0;a.push(o),i++}}return 1!==r&&4!==r||0===i?null:a}handleTilingType(a,r,e,t,i,n,s,o){const l=new d.OperatorList;e=V.Dict.merge({xref:this.xref,dictArray:[i.get("Resources"),e]});return this.getOperatorList({stream:t,task:s,resources:e,operatorList:l}).then(function(){var e=l.getIR(),t=(0,g.getTilingPatternIR)(e,i,r);n.addDependencies(l.dependencies),n.addOp(a,t),i.objId&&o.set(null,i.objId,{operatorListIR:e,dict:i})}).catch(e=>{if(!(e instanceof W.AbortException)){if(!this.options.ignoreErrors)throw e;this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorTilingPattern}),(0,W.warn)(`handleTilingType - ignoring pattern: "${e}".`)}})}handleSetFont(e,t,a,r,i,n){var s=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,o=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,t=t&&t[0]instanceof V.Name?t[0].name:null;return this.loadFont(t,a,e,s,o).then(t=>t.font.isType3Font?t.loadType3Data(this,e,i).then(function(){return r.addDependencies(t.type3Dependencies),t}).catch(e=>(this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorFontLoadType3}),new w({loadedName:"g_font_error",font:new O.ErrorFont("Type3 font load error: "+e),dict:t.font,evaluatorOptions:this.options}))):t).then(e=>(n.font=e.font,e.send(this.handler),e.loadedName))}handleText(e,t){var a=t.font,e=a.charsToGlyphs(e);return a.data&&(!!(t.textRenderingMode&W.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===t.fillColorSpace.name||a.disableFontFace||this.options.disableFontFace)&&b.buildFontPaths(a,e,this.handler,this.options),e}ensureStateFont(e){if(!e.font){e=new W.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw e;this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorFontState}),(0,W.warn)(`ensureStateFont: "${e}".`)}}async setGState(e){let{resources:t,gState:a,operatorList:r,cacheKey:i,task:n,stateManager:s,localGStateCache:o,localColorSpaceCache:l}=e;const c=a.objId;let h=!0;const u=[];let d=Promise.resolve();for(const g of a.getKeys()){const p=a.get(g);switch(g){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":u.push([g,p]);break;case"Font":h=!1,d=d.then(()=>this.handleSetFont(t,null,p[0],r,n,s.state).then(function(e){r.addDependency(e),u.push([g,[e,p[1]]])}));break;case"BM":u.push([g,function e(t,a){a=1<arguments.length&&void 0!==a&&a;if(Array.isArray(t)){for(const i of t){var r=e(i,!0);if(r)return r}(0,W.warn)("Unsupported blend mode Array: "+t)}else{if(!(t instanceof V.Name))return a?null:"source-over";switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(a)return null;(0,W.warn)("Unsupported blend mode: "+t.name)}return"source-over"}(p)]);break;case"SMask":(0,V.isName)(p,"None")?u.push([g,!1]):p instanceof V.Dict?(h=!1,d=d.then(()=>this.handleSMask(p,t,r,n,s,l)),u.push([g,!0])):(0,W.warn)("Unsupported SMask type");break;case"TR":var f=this.handleTransferFunction(p);u.push([g,f]);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,W.info)("graphic state operator "+g);break;default:(0,W.info)("Unknown graphic state operator "+g)}}return d.then(function(){0<u.length&&r.addOp(W.OPS.setGState,[u]),h&&o.set(i,c,u)})}loadFont(e,i,t){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null,n=async()=>new w({loadedName:"g_font_error",font:new O.ErrorFont(`Font "${e}" is not available.`),dict:i,evaluatorOptions:this.options});const s=this.xref;let o;if(i?i instanceof V.Ref&&(o=i):(t=t.get("Font"))&&(o=t.getRaw(e)),!o){t=`Font "${e||i&&i.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,W.warn)(t+"."),n();this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorFontMissing}),(0,W.warn)(t+" -- attempting to fallback to a default font."),o=a||b.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(o))return n();if(this.fontCache.has(o))return this.fontCache.get(o);if(!((i=s.fetchIfRef(o))instanceof V.Dict))return n();if(i.cacheKey&&this.fontCache.has(i.cacheKey))return this.fontCache.get(i.cacheKey);const l=(0,W.createPromiseCapability)();let c;try{(c=this.preEvaluateFont(i)).cssFontInfo=r}catch(e){return(0,W.warn)(`loadFont - preEvaluateFont failed: "${e}".`),n()}const{descriptor:h,hash:u}=c;t=o instanceof V.Ref;let d;if(t&&(d="f"+o.toString()),u&&h instanceof V.Dict){h.fontAliases||(h.fontAliases=Object.create(null));a=h.fontAliases;if(a[u]){r=a[u].aliasRef;if(t&&r&&this.fontCache.has(r))return this.fontCache.putAlias(o,r),this.fontCache.get(o)}else a[u]={fontID:this.idFactory.createFontId()};t&&(a[u].aliasRef=o),d=a[u].fontID}return t?this.fontCache.put(o,l.promise):(d=d||this.idFactory.createFontId(),i.cacheKey="cacheKey_"+d,this.fontCache.put(i.cacheKey,l.promise)),(0,W.assert)(d&&d.startsWith("f"),'The "fontID" must be (correctly) defined.'),i.loadedName=this.idFactory.getDocId()+"_"+d,this.translateFont(c).then(e=>{void 0!==e.fontType&&s.stats.addFontType(e.fontType),l.resolve(new w({loadedName:i.loadedName,font:e,dict:i,evaluatorOptions:this.options}))}).catch(e=>{this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,W.warn)(`loadFont - translateFont failed: "${e}".`);try{var t=h&&h.get("FontFile3"),a=t&&t.get("Subtype"),r=(0,F.getFontType)(c.type,a&&a.name);void 0!==r&&s.stats.addFontType(r)}catch(e){}l.resolve(new w({loadedName:i.loadedName,font:new O.ErrorFont(e instanceof Error?e.message:e),dict:i,evaluatorOptions:this.options}))}),l.promise}buildPath(t,a,r){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],e=t.length-1;if(r=r||[],e<0||t.fnArray[e]!==W.OPS.constructPath){i&&((0,W.warn)(`Encountered path operator "${a}" inside of a text object.`),t.addOp(W.OPS.save,null));let e;switch(a){case W.OPS.rectangle:var n=r[0]+r[2],s=r[1]+r[3];e=[Math.min(r[0],n),Math.max(r[0],n),Math.min(r[1],s),Math.max(r[1],s)];break;case W.OPS.moveTo:case W.OPS.lineTo:e=[r[0],r[0],r[1],r[1]];break;default:e=[1/0,-1/0,1/0,-1/0]}t.addOp(W.OPS.constructPath,[[a],r,e]),i&&t.addOp(W.OPS.restore,null)}else{var i=t.argsArray[e],o=(i[0].push(a),i[1].push(...r),i[2]);switch(a){case W.OPS.rectangle:var l=r[0]+r[2],c=r[1]+r[3];o[0]=Math.min(o[0],r[0],l),o[1]=Math.max(o[1],r[0],l),o[2]=Math.min(o[2],r[1],c),o[3]=Math.max(o[3],r[1],c);break;case W.OPS.moveTo:case W.OPS.lineTo:o[0]=Math.min(o[0],r[0]),o[1]=Math.max(o[1],r[0]),o[2]=Math.min(o[2],r[1]),o[3]=Math.max(o[3],r[1])}}}parseColorSpace(e){var{cs:e,resources:t,localColorSpaceCache:a}=e;return L.ColorSpace.parseAsync({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).catch(e=>{if(e instanceof W.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorColorSpace}),(0,W.warn)(`parseColorSpace - ignoring ColorSpace: "${e}".`),null;throw e})}parseShading(e){var{shading:e,resources:t,localColorSpaceCache:a,localShadingPatternCache:r}=e;let i=r.get(e);return i||(t=g.Pattern.parseShading(e,this.xref,t,this.handler,this._pdfFunctionFactory,a).getIR(),i="pattern_"+this.idFactory.createObjId(),r.set(e,i),this.handler.send("obj",[i,this.pageIndex,"Pattern",t])),i}handleColorN(e,t,a,r,i,n,s,o,l,c){var h=a.pop();if(h instanceof V.Name){var i=i.getRaw(h.name),u=i instanceof V.Ref&&l.getByRef(i);if(u)try{var d=r.base?r.base.getRgb(a,0):null,f=(0,g.getTilingPatternIR)(u.operatorListIR,u.dict,d);return void e.addOp(t,f)}catch(e){}u=this.xref.fetchIfRef(i);if(u){d=u instanceof Y.BaseStream?u.dict:u,f=d.get("PatternType");if(f===m.TILING)return i=r.base?r.base.getRgb(a,0):null,this.handleTilingType(t,i,n,u,d,e,s,l);if(f===m.SHADING)return r=d.get("Shading"),a=d.getArray("Matrix"),i=this.parseShading({shading:r,resources:n,localColorSpaceCache:o,localShadingPatternCache:c}),void e.addOp(t,["Shading",i,a]);throw new W.FormatError("Unknown PatternType: "+f)}}throw new W.FormatError("Unknown PatternName: "+h)}_parseVisibilityExpression(t,a,r){if(10<++a)(0,W.warn)("Visibility expression is too deeply nested");else{var i=t.length,e=this.xref.fetchIfRef(t[0]);if(i<2||!(e instanceof V.Name))(0,W.warn)("Invalid visibility expression");else{switch(e.name){case"And":case"Or":case"Not":r.push(e.name);break;default:return void(0,W.warn)(`Invalid operator ${e.name} in visibility expression`)}for(let e=1;e<i;e++){var n,s=t[e],o=this.xref.fetchIfRef(s);Array.isArray(o)?(r.push(n=[]),this._parseVisibilityExpression(o,a,n)):s instanceof V.Ref&&r.push(s.toString())}}}}async parseMarkedContentProps(e,t){let a;if(e instanceof V.Name){t=t.get("Properties");a=t.get(e.name)}else{if(!(e instanceof V.Dict))throw new W.FormatError("Optional content properties malformed.");a=e}t=a.get("Type").name;if("OCG"===t)return{type:t,id:a.objId};if("OCMD"===t){e=a.get("VE");if(Array.isArray(e)){var r=[];if(this._parseVisibilityExpression(e,0,r),0<r.length)return{type:"OCMD",expression:r}}e=a.get("OCGs");if(Array.isArray(e)||e instanceof V.Dict){var i=[];if(Array.isArray(e))for(const n of e)i.push(n.toString());else i.push(e.objId);return{type:t,ids:i,policy:a.get("P")instanceof V.Name?a.get("P").name:null,expression:null}}if(e instanceof V.Ref)return{type:t,id:e.toString()}}return null}getOperatorList(e){let{stream:t,task:v,resources:w,operatorList:x,initialState:a=null,fallbackFontDict:S=null}=e;if(w=w||V.Dict.empty,a=a||new h,!x)throw new Error('getOperatorList: missing "operatorList" parameter');const A=this,k=this.xref;let C=!1;const O=new n.LocalImageCache,F=new n.LocalColorSpaceCache,I=new n.LocalGStateCache,T=new n.LocalTilingPatternCache,M=new Map,P=w.get("XObject")||V.Dict.empty,E=w.get("Pattern")||V.Dict.empty,N=new Z(a),D=new Q(t,k,N),B=new l;function R(){for(let e=0,t=D.savedStatesDepth;e<t;e++)x.addOp(W.OPS.restore,[])}return new Promise(function t(a,r){function i(e){Promise.all([e,x.ready]).then(function(){try{t(a,r)}catch(e){r(e)}},r)}v.ensureNotTerminated(),B.reset();var n={};let e,s,o,l,c,h;for(;!(e=B.check())&&(n.args=null,D.read(n));){let e=n.args,t=n.fn;switch(0|t){case W.OPS.paintXObject:if(h=e[0]instanceof V.Name,c=e[0].name,h){var u=O.getByName(c);if(u){x.addImageOps(u.fn,u.args,u.optionalContent),j(u),e=null;continue}}return void i(new Promise(function(e,t){if(!h)throw new W.FormatError("XObject must be referred to by name.");let a=P.getRaw(c);if(a instanceof V.Ref){var r=O.getByRef(a);if(r)return x.addImageOps(r.fn,r.args,r.optionalContent),j(r),void e();r=A.globalImageCache.getData(a,A.pageIndex);if(r)return x.addDependency(r.objId),x.addImageOps(r.fn,r.args,r.optionalContent),void e();a=k.fetch(a)}if(!(a instanceof Y.BaseStream))throw new W.FormatError("XObject should be a stream");r=a.dict.get("Subtype");if(!(r instanceof V.Name))throw new W.FormatError("XObject should have a Name subtype");if("Form"===r.name)N.save(),A.buildFormXObject(w,a,null,x,v,N.state.clone(),F).then(function(){N.restore(),e()},t);else if("Image"===r.name)A.buildPaintImageXObject({resources:w,image:a,operatorList:x,cacheKey:c,localImageCache:O,localColorSpaceCache:F}).then(e,t);else{if("PS"!==r.name)throw new W.FormatError("Unhandled XObject subtype "+r.name);(0,W.info)("Ignored XObject subtype PS"),e()}}).catch(function(e){if(!(e instanceof W.AbortException)){if(!A.options.ignoreErrors)throw e;A.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorXObject}),(0,W.warn)(`getOperatorList - ignoring XObject: "${e}".`)}}));case W.OPS.setFont:var d=e[1];return void i(A.handleSetFont(w,e,null,x,v,N.state,S).then(function(e){x.addDependency(e),x.addOp(W.OPS.setFont,[e,d])}));case W.OPS.beginText:C=!0;break;case W.OPS.endText:C=!1;break;case W.OPS.endInlineImage:u=e[0].cacheKey;if(u){var f=O.getByName(u);if(f){x.addImageOps(f.fn,f.args,f.optionalContent),j(f),e=null;continue}}return void i(A.buildPaintImageXObject({resources:w,image:e[0],isInline:!0,operatorList:x,cacheKey:u,localImageCache:O,localColorSpaceCache:F}));case W.OPS.showText:if(!N.state.font){A.ensureStateFont(N.state);continue}e[0]=A.handleText(e[0],N.state);break;case W.OPS.showSpacedText:if(!N.state.font){A.ensureStateFont(N.state);continue}var g=[],p=N.state;for(const y of e[0])"string"==typeof y?g.push(...A.handleText(y,p)):"number"==typeof y&&g.push(y);e[0]=g,t=W.OPS.showText;break;case W.OPS.nextLineShowText:if(!N.state.font){A.ensureStateFont(N.state);continue}x.addOp(W.OPS.nextLine),e[0]=A.handleText(e[0],N.state),t=W.OPS.showText;break;case W.OPS.nextLineSetSpacingShowText:if(!N.state.font){A.ensureStateFont(N.state);continue}x.addOp(W.OPS.nextLine),x.addOp(W.OPS.setWordSpacing,[e.shift()]),x.addOp(W.OPS.setCharSpacing,[e.shift()]),e[0]=A.handleText(e[0],N.state),t=W.OPS.showText;break;case W.OPS.setTextRenderingMode:N.state.textRenderingMode=e[0];break;case W.OPS.setFillColorSpace:f=L.ColorSpace.getCached(e[0],k,F);if(f){N.state.fillColorSpace=f;continue}return void i(A.parseColorSpace({cs:e[0],resources:w,localColorSpaceCache:F}).then(function(e){e&&(N.state.fillColorSpace=e)}));case W.OPS.setStrokeColorSpace:var m=L.ColorSpace.getCached(e[0],k,F);if(m){N.state.strokeColorSpace=m;continue}return void i(A.parseColorSpace({cs:e[0],resources:w,localColorSpaceCache:F}).then(function(e){e&&(N.state.strokeColorSpace=e)}));case W.OPS.setFillColor:l=N.state.fillColorSpace,e=l.getRgb(e,0),t=W.OPS.setFillRGBColor;break;case W.OPS.setStrokeColor:l=N.state.strokeColorSpace,e=l.getRgb(e,0),t=W.OPS.setStrokeRGBColor;break;case W.OPS.setFillGray:N.state.fillColorSpace=L.ColorSpace.singletons.gray,e=L.ColorSpace.singletons.gray.getRgb(e,0),t=W.OPS.setFillRGBColor;break;case W.OPS.setStrokeGray:N.state.strokeColorSpace=L.ColorSpace.singletons.gray,e=L.ColorSpace.singletons.gray.getRgb(e,0),t=W.OPS.setStrokeRGBColor;break;case W.OPS.setFillCMYKColor:N.state.fillColorSpace=L.ColorSpace.singletons.cmyk,e=L.ColorSpace.singletons.cmyk.getRgb(e,0),t=W.OPS.setFillRGBColor;break;case W.OPS.setStrokeCMYKColor:N.state.strokeColorSpace=L.ColorSpace.singletons.cmyk,e=L.ColorSpace.singletons.cmyk.getRgb(e,0),t=W.OPS.setStrokeRGBColor;break;case W.OPS.setFillRGBColor:N.state.fillColorSpace=L.ColorSpace.singletons.rgb,e=L.ColorSpace.singletons.rgb.getRgb(e,0);break;case W.OPS.setStrokeRGBColor:N.state.strokeColorSpace=L.ColorSpace.singletons.rgb,e=L.ColorSpace.singletons.rgb.getRgb(e,0);break;case W.OPS.setFillColorN:if("Pattern"===(l=N.state.fillColorSpace).name)return void i(A.handleColorN(x,W.OPS.setFillColorN,e,l,E,w,v,F,T,M));e=l.getRgb(e,0),t=W.OPS.setFillRGBColor;break;case W.OPS.setStrokeColorN:if("Pattern"===(l=N.state.strokeColorSpace).name)return void i(A.handleColorN(x,W.OPS.setStrokeColorN,e,l,E,w,v,F,T,M));e=l.getRgb(e,0),t=W.OPS.setStrokeRGBColor;break;case W.OPS.shadingFill:m=w.get("Shading");if(!m)throw new W.FormatError("No shading resource found");var b=m.get(e[0].name);if(!b)throw new W.FormatError("No shading object found");b=A.parseShading({shading:b,resources:w,localColorSpaceCache:F,localShadingPatternCache:M});e=[b],t=W.OPS.shadingFill;break;case W.OPS.setGState:if(h=e[0]instanceof V.Name,c=e[0].name,h){b=I.getByName(c);if(b){0<b.length&&x.addOp(W.OPS.setGState,[b]),e=null;continue}}return void i(new Promise(function(e,t){if(!h)throw new W.FormatError("GState must be referred to by name.");var a=w.get("ExtGState");if(!(a instanceof V.Dict))throw new W.FormatError("ExtGState should be a dictionary.");a=a.get(c);if(!(a instanceof V.Dict))throw new W.FormatError("GState should be a dictionary.");A.setGState({resources:w,gState:a,operatorList:x,cacheKey:c,task:v,stateManager:N,localGStateCache:I,localColorSpaceCache:F}).then(e,t)}).catch(function(e){if(!(e instanceof W.AbortException)){if(!A.options.ignoreErrors)throw e;A.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorExtGState}),(0,W.warn)(`getOperatorList - ignoring ExtGState: "${e}".`)}}));case W.OPS.moveTo:case W.OPS.lineTo:case W.OPS.curveTo:case W.OPS.curveTo2:case W.OPS.curveTo3:case W.OPS.closePath:case W.OPS.rectangle:A.buildPath(x,t,e,C);continue;case W.OPS.markPoint:case W.OPS.markPointProps:case W.OPS.beginCompat:case W.OPS.endCompat:continue;case W.OPS.beginMarkedContentProps:if(!(e[0]instanceof V.Name)){(0,W.warn)("Expected name for beginMarkedContentProps arg0="+e[0]);continue}if("OC"===e[0].name)return void i(A.parseMarkedContentProps(e[1],w).then(e=>{x.addOp(W.OPS.beginMarkedContentProps,["OC",e])}).catch(e=>{if(!(e instanceof W.AbortException)){if(!A.options.ignoreErrors)throw e;A.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorMarkedContent}),(0,W.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`)}}));e=[e[0].name,e[1]instanceof V.Dict?e[1].get("MCID"):null];break;case W.OPS.beginMarkedContent:case W.OPS.endMarkedContent:default:if(null!==e){for(s=0,o=e.length;s<o&&!(e[s]instanceof V.Dict);s++);if(s<o){(0,W.warn)("getOperatorList - ignoring operator: "+t);continue}}}x.addOp(t,e)}e?i(J):(R(),a())}).catch(e=>{if(!(e instanceof W.AbortException)){if(!this.options.ignoreErrors)throw e;this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorOperatorList}),(0,W.warn)(`getOperatorList - ignoring errors during "${v.name}" `+`task: "${e}".`),R()}})}getTextContent(e){let{stream:t,task:p,resources:m,stateManager:b=null,combineTextItems:y=!1,includeMarkedContent:v=!1,sink:w,seenStyles:x=new Set,viewBox:S,markedContentData:A=null}=e;m=m||V.Dict.empty,b=b||new Z(new ee),v&&(A=A||{level:0});const u=(0,K.getNormalizedUnicodes)(),k={items:[],styles:Object.create(null)},C={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},r=[" "," "];let i=0;function d(e){var t=(i+1)%2,a=" "!==r[i]&&" "===r[t];return r[i]=e,i=t,a}function f(){r[0]=r[1]=" ",i=0}const g=.1,O=.03,H=-.2,q=.1,z=.6,F=this,I=this.xref,T=[];let M=null;const P=new n.LocalImageCache,E=new n.LocalGStateCache,G=new Q(t,I,b);let N;function D(){var e=N.font,t=[N.fontSize*N.textHScale,0,0,N.fontSize,0,N.textRise];return e.isType3Font&&(N.fontSize<=1||e.isCharBBox)&&!(0,W.isArrayEqual)(N.fontMatrix,W.FONT_IDENTITY_MATRIX)&&0<(e=e.bbox[3]-e.bbox[1])&&(t[3]*=e*N.fontMatrix[3]),W.Util.transform(N.ctm,W.Util.transform(N.textMatrix,t))}function B(e,t){return F.loadFont(e,t,m).then(function(e){return e.font.isType3Font?e.loadType3Data(F,m,p).catch(function(){}).then(function(){return e}):e}).then(function(e){N.font=e.font,N.fontMatrix=e.font.fontMatrix||W.FONT_IDENTITY_MATRIX})}function R(e,t,a){var r=Math.hypot(a[0],a[1]);return[(a[0]*e+a[1]*t)/r,(a[2]*e+a[3]*t)/r]}function L(e){var{chars:e,extraSpacing:n}=e,s=N.font;if(e){var t=s.charsToGlyphs(e),o=N.fontMatrix[0]*N.fontSize;for(let r=0,i=t.length;r<i;r++){var l,c,h=t[r];if(!h.isInvisibleFormatMark){let e=N.charSpacing+(r+1===i?n:0),t=h.width,a=(t=s.vertical?h.vmetric?h.vmetric[0]:-t:t)*o;h.isWhitespace?(s.vertical?(e+=-a+N.wordSpacing,N.translateTextMatrix(0,-e)):(e+=a+N.wordSpacing,N.translateTextMatrix(e*N.textHScale,0)),d(" ")):function(){var r=D();let i=r[4],n=r[5];var e=i-S[0],t=n-S[1];if(!(e<0||e>S[2]||t<0||t>S[3])){if(y&&N.font&&C.prevTransform){let t=C.prevTransform[4],a=C.prevTransform[5];if(t!==i||a!==n){let e=-1;switch(r[0]&&0===r[1]&&0===r[2]?e=0<r[0]?0:180:r[1]&&0===r[0]&&0===r[3]&&(e=0<r[1]?90:270),e){case 0:break;case 90:[i,n]=[n,i],[t,a]=[a,t];break;case 180:[i,n,t,a]=[-i,-n,-t,-a];break;case 270:[i,n]=[-n,-i],[t,a]=[-a,-t];break;default:[i,n]=R(i,n,r),[t,a]=R(t,a,C.prevTransform)}if(N.font.vertical){const s=(a-n)/C.textAdvanceScale,o=i-t,l=Math.sign(C.height);s<l*C.negativeSpaceMax?(Math.abs(o)>.5*C.width?j:(f(),$))():Math.abs(o)>C.width?j():(s<=l*C.notASpace&&f(),s<=l*C.trackingSpaceMin?C.height+=s:_(s,C.prevTransform,l)||(0===C.str.length?(f(),k.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(s),transform:C.prevTransform,fontName:C.fontName,hasEOL:!1})):C.height+=s))}else{const o=(i-t)/C.textAdvanceScale,s=n-a,l=Math.sign(C.width);o<l*C.negativeSpaceMax?(Math.abs(s)>.5*C.height?j:(f(),$))():Math.abs(s)>C.height?j():(o<=l*C.notASpace&&f(),o<=l*C.trackingSpaceMin?C.width+=o:_(o,C.prevTransform,l)||(0===C.str.length?(f(),k.items.push({str:" ",dir:"ltr",width:Math.abs(o),height:0,transform:C.prevTransform,fontName:C.fontName,hasEOL:!1})):C.width+=o))}}}return 1}}()&&(l=c=void 0,C.initialized||(l=(c=N.font).loadedName,x.has(l)||(x.add(l),k.styles[l]={fontFamily:c.fallbackName,ascent:c.ascent,descent:c.descent,vertical:c.vertical}),C.fontName=l,l=C.transform=D(),c.vertical?(C.width=C.totalWidth=Math.hypot(l[0],l[1]),C.height=C.totalHeight=0,C.vertical=!0):(C.width=C.totalWidth=0,C.height=C.totalHeight=Math.hypot(l[2],l[3]),C.vertical=!1),c=Math.hypot(N.textLineMatrix[0],N.textLineMatrix[1]),l=Math.hypot(N.ctm[0],N.ctm[1]),C.textAdvanceScale=l*c,C.trackingSpaceMin=N.fontSize*g,C.notASpace=N.fontSize*O,C.negativeSpaceMax=N.fontSize*H,C.spaceInFlowMin=N.fontSize*q,C.spaceInFlowMax=N.fontSize*z,C.hasEOL=!1,C.initialized=!0),l=C,h.isZeroWidthDiacritic&&(a=0),s.vertical?(N.translateTextMatrix(0,a),a=Math.abs(a),l.height+=a):(a*=N.textHScale,N.translateTextMatrix(a,0),l.width+=a),a&&(l.prevTransform=D()),c=h.unicode,c=u[c]||c,d(c=(0,K.reverseIfRtl)(c))&&l.str.push(" "),l.str.push(c),e)&&(s.vertical?N.translateTextMatrix(0,-e):N.translateTextMatrix(e*N.textHScale,0))}}}else(e=N.charSpacing+n)&&(s.vertical?N.translateTextMatrix(0,-e):N.translateTextMatrix(e*N.textHScale,0))}function j(){f(),C.initialized?(C.hasEOL=!0,$()):k.items.push({str:"",dir:"ltr",width:0,height:0,transform:D(),fontName:N.font.loadedName,hasEOL:!0})}function _(t,a,r){if(!(r*C.spaceInFlowMin<=t&&t<=r*C.spaceInFlowMax)){r=C.fontName;let e=0;return C.vertical&&(e=t,t=0),$(),f(),k.items.push({str:" ",dir:"ltr",width:Math.abs(t),height:Math.abs(e),transform:a||D(),fontName:r,hasEOL:!1}),1}C.initialized&&(f(),C.str.push(" "))}function $(){var e,t;C.initialized&&C.str&&(C.vertical?C.totalHeight+=C.height*C.textAdvanceScale:C.totalWidth+=C.width*C.textAdvanceScale,k.items.push((e=C,t=e.str.join(""),{str:(t=(0,a.bidi)(t,-1,e.vertical)).str,dir:t.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL})),C.initialized=!1,C.str.length=0)}function U(e){var e=0<arguments.length&&void 0!==e&&e,t=k.items.length;0===t||e&&t<10||(w.enqueue(k,t),k.items=[],k.styles=Object.create(null))}const X=new l;return new Promise(function t(a,r){function e(e){U(!0),Promise.all([e,w.ready]).then(function(){try{t(a,r)}catch(e){r(e)}},r)}p.ensureNotTerminated(),X.reset();var i={};let n,s=[];for(;!(n=X.check())&&(s.length=0,i.args=s,G.read(i));){switch(N=b.state,s=i.args,0|i.fn){case W.OPS.setFont:var o=s[0].name,l=s[1];if(N.font&&o===N.fontName&&l===N.fontSize)break;return $(),N.fontName=o,N.fontSize=l,void e(B(o,null));case W.OPS.setTextRise:N.textRise=s[0];break;case W.OPS.setHScale:N.textHScale=s[0]/100;break;case W.OPS.setLeading:N.leading=s[0];break;case W.OPS.moveText:N.translateTextLineMatrix(s[0],s[1]),N.textMatrix=N.textLineMatrix.slice();break;case W.OPS.setLeadingMoveText:N.leading=-s[1],N.translateTextLineMatrix(s[0],s[1]),N.textMatrix=N.textLineMatrix.slice();break;case W.OPS.nextLine:N.carriageReturn();break;case W.OPS.setTextMatrix:N.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]),N.setTextLineMatrix(s[0],s[1],s[2],s[3],s[4],s[5]),l=void 0,C.initialized&&(l=Math.hypot(N.textLineMatrix[0],N.textLineMatrix[1]),(l=Math.hypot(N.ctm[0],N.ctm[1])*l)!==C.textAdvanceScale)&&(C.vertical?(C.totalHeight+=C.height*C.textAdvanceScale,C.height=0):(C.totalWidth+=C.width*C.textAdvanceScale,C.width=0),C.textAdvanceScale=l);break;case W.OPS.setCharSpacing:N.charSpacing=s[0];break;case W.OPS.setWordSpacing:N.wordSpacing=s[0];break;case W.OPS.beginText:N.textMatrix=W.IDENTITY_MATRIX.slice(),N.textLineMatrix=W.IDENTITY_MATRIX.slice();break;case W.OPS.showSpacedText:if(!b.state.font){F.ensureStateFont(b.state);continue}var c=(N.font.vertical?1:-1)*N.fontSize/1e3,h=s[0];for(let e=0,t=h.length;e<t-1;e++){var u,d=h[e];"string"==typeof d?T.push(d):"number"==typeof d&&0!==d&&(u=T.join(""),T.length=0,L({chars:u,extraSpacing:d*c}))}o=h.at(-1);"string"==typeof o&&T.push(o),0<T.length&&L({chars:T.join(""),extraSpacing:T.length=0});break;case W.OPS.showText:if(!b.state.font){F.ensureStateFont(b.state);continue}L({chars:s[0],extraSpacing:0});break;case W.OPS.nextLineShowText:if(!b.state.font){F.ensureStateFont(b.state);continue}N.carriageReturn(),L({chars:s[0],extraSpacing:0});break;case W.OPS.nextLineSetSpacingShowText:if(!b.state.font){F.ensureStateFont(b.state);continue}N.wordSpacing=s[0],N.charSpacing=s[1],N.carriageReturn(),L({chars:s[2],extraSpacing:0});break;case W.OPS.paintXObject:$(),M=M||m.get("XObject")||V.Dict.empty;var f=s[0]instanceof V.Name,g=s[0].name;if(f&&P.getByName(g))break;return void e(new Promise(function(e,t){if(!f)throw new W.FormatError("XObject must be referred to by name.");let a=M.getRaw(g);if(a instanceof V.Ref){if(P.getByRef(a))return void e();if(F.globalImageCache.getData(a,F.pageIndex))return void e();a=I.fetch(a)}if(!(a instanceof Y.BaseStream))throw new W.FormatError("XObject should be a stream");var r=a.dict.get("Subtype");if(!(r instanceof V.Name))throw new W.FormatError("XObject should have a Name subtype");if("Form"!==r.name)P.set(g,a.dict.objId,!0),e();else{var r=b.state.clone(),r=new Z(r),i=a.dict.getArray("Matrix");Array.isArray(i)&&6===i.length&&r.transform(i),U();const n={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,w.enqueue(e,t)},get desiredSize(){return w.desiredSize},get ready(){return w.ready}};F.getTextContent({stream:a,task:p,resources:a.dict.get("Resources")||m,stateManager:r,combineTextItems:y,includeMarkedContent:v,sink:n,seenStyles:x,viewBox:S,markedContentData:A}).then(function(){n.enqueueInvoked||P.set(g,a.dict.objId,!0),e()},t)}}).catch(function(e){if(!(e instanceof W.AbortException)){if(!F.options.ignoreErrors)throw e;(0,W.warn)(`getTextContent - ignoring XObject: "${e}".`)}}));case W.OPS.setGState:if(f=s[0]instanceof V.Name,g=s[0].name,f&&E.getByName(g))break;return void e(new Promise(function(e,t){if(!f)throw new W.FormatError("GState must be referred to by name.");var a=m.get("ExtGState");if(!(a instanceof V.Dict))throw new W.FormatError("ExtGState should be a dictionary.");a=a.get(g);if(!(a instanceof V.Dict))throw new W.FormatError("GState should be a dictionary.");var r=a.get("Font");r?($(),N.fontName=null,N.fontSize=r[1],B(null,r[0]).then(e,t)):(E.set(g,a.objId,!0),e())}).catch(function(e){if(!(e instanceof W.AbortException)){if(!F.options.ignoreErrors)throw e;(0,W.warn)(`getTextContent - ignoring ExtGState: "${e}".`)}}));case W.OPS.beginMarkedContent:$(),v&&(A.level++,k.items.push({type:"beginMarkedContent",tag:s[0]instanceof V.Name?s[0].name:null}));break;case W.OPS.beginMarkedContentProps:if($(),v){A.level++;let e=null;s[1]instanceof V.Dict&&(e=s[1].get("MCID")),k.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?F.idFactory.getPageObjId()+"_mcid"+e:null,tag:s[0]instanceof V.Name?s[0].name:null})}break;case W.OPS.endMarkedContent:if($(),v){if(0===A.level)break;A.level--,k.items.push({type:"endMarkedContent"})}}if(k.items.length>=w.desiredSize){n=!0;break}}n?e(J):($(),U(),a())}).catch(e=>{if(!(e instanceof W.AbortException)){if(!this.options.ignoreErrors)throw e;(0,W.warn)(`getTextContent - ignoring errors during "${p.name}" `+`task: "${e}".`),$(),U()}})}extractDataStructures(e,t,a){var r=this.xref;let i;t=this.readToUnicode(a.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(a.composite){var n=e.get("CIDSystemInfo");n instanceof V.Dict&&(a.cidSystemInfo={registry:(0,W.stringToPDFString)(n.get("Registry")),ordering:(0,W.stringToPDFString)(n.get("Ordering")),supplement:n.get("Supplement")});try{var s=e.get("CIDToGIDMap");s instanceof Y.BaseStream&&(i=s.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;(0,W.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${e}".`)}}var o=[];let l=null,c;if(e.has("Encoding")){if((c=e.get("Encoding"))instanceof V.Dict){if(l=(l=c.get("BaseEncoding"))instanceof V.Name?l.name:null,c.has("Differences")){let e=0;for(const u of c.get("Differences")){var h=r.fetchIfRef(u);if("number"==typeof h)e=h;else{if(!(h instanceof V.Name))throw new W.FormatError("Invalid entry in 'Differences' array: "+h);o[e++]=h.name}}}}else if(c instanceof V.Name)l=c.name;else{var n="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new W.FormatError(n);(0,W.warn)(n)}"MacRomanEncoding"!==l&&"MacExpertEncoding"!==l&&"WinAnsiEncoding"!==l&&(l=null)}return l?a.defaultEncoding=(0,f.getEncoding)(l):(s=!!(a.flags&F.FontFlags.Symbolic),n=!!(a.flags&F.FontFlags.Nonsymbolic),c=f.StandardEncoding,"TrueType"!==a.type||n||(c=f.WinAnsiEncoding),s&&(c=f.MacRomanEncoding,a.file&&!a.isInternalFont||(/Symbol/i.test(a.name)?c=f.SymbolSetEncoding:/Dingbats|Wingdings/i.test(a.name)&&(c=f.ZapfDingbatsEncoding))),a.defaultEncoding=c),a.differences=o,a.baseEncodingName=l,a.hasEncoding=!!l||0<o.length,a.dict=e,t.then(e=>(a.toUnicode=e,this.buildToUnicode(a))).then(e=>(a.toUnicode=e,i&&(a.cidToGidMap=this.readCidToGidMap(i,e)),a))}_simpleFontToUnicode(a){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=((0,W.assert)(!a.composite,"Must be a simple font."),[]),e=a.defaultEncoding.slice(),n=a.baseEncodingName,t=a.differences;for(const u in t){var s=t[u];".notdef"!==s&&(e[u]=s)}var o=(0,p.getGlyphsUnicode)();for(const d in e){let t=e[d];if(""!==t){var l=o[t];if(void 0!==l)i[d]=String.fromCharCode(l);else{let e=0;switch(t[0]){case"G":3===t.length&&(e=parseInt(t.substring(1),16));break;case"g":5===t.length&&(e=parseInt(t.substring(1),16));break;case"C":case"c":if(3<=t.length&&t.length<=4){var c=t.substring(1);if(r){e=parseInt(c,16);break}if(e=+c,Number.isNaN(e)&&Number.isInteger(parseInt(c,16)))return this._simpleFontToUnicode(a,!0)}break;case"u":-1!==(l=(0,K.getUnicodeForGlyph)(t,o))&&(e=l)}if(0<e&&e<=1114111&&Number.isInteger(e)){if(n&&e===+d){var h=(0,f.getEncoding)(n);if(h&&(t=h[d])){i[d]=String.fromCharCode(o[t]);continue}}i[d]=String.fromCodePoint(e)}}}}return i}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&0<e.toUnicode.length,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new s.ToUnicodeMap(this._simpleFontToUnicode(e));if(!e.composite||(!e.cMap.builtInCMap||e.cMap instanceof C.IdentityCMap)&&("Adobe"!==e.cidSystemInfo.registry||"GB1"!==e.cidSystemInfo.ordering&&"CNS1"!==e.cidSystemInfo.ordering&&"Japan1"!==e.cidSystemInfo.ordering&&"Korea1"!==e.cidSystemInfo.ordering))return new s.IdentityToUnicodeMap(e.firstChar,e.lastChar);{var{registry:t,ordering:a}=e.cidSystemInfo,t=V.Name.get(t+`-${a}-UCS2`);const r=await C.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),i=[];return e.cMap.forEach(function(e,t){if(65535<t)throw new W.FormatError("Max size of CID is 65,535");t=r.lookup(t);t&&(i[e]=String.fromCharCode((t.charCodeAt(0)<<8)+t.charCodeAt(1)))}),new s.ToUnicodeMap(i)}}readToUnicode(e){return e?e instanceof V.Name?C.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(e){return e instanceof C.IdentityCMap?new s.IdentityToUnicodeMap(0,65535):new s.ToUnicodeMap(e.getMap())}):e instanceof Y.BaseStream?C.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(e){if(e instanceof C.IdentityCMap)return new s.IdentityToUnicodeMap(0,65535);const n=new Array(e.length);return e.forEach(function(e,t){if("number"==typeof t)n[e]=String.fromCodePoint(t);else{var a=[];for(let e=0;e<t.length;e+=2){var r,i=t.charCodeAt(e)<<8|t.charCodeAt(e+1);55296!=(63488&i)?a.push(i):(e+=2,r=t.charCodeAt(e)<<8|t.charCodeAt(e+1),a.push(((1023&i)<<10)+(1023&r)+65536))}n[e]=String.fromCodePoint(...a)}}),new s.ToUnicodeMap(n)},e=>{if(e instanceof W.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,W.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(a,r){var i=[];for(let e=0,t=a.length;e<t;e++){var n=a[e++]<<8|a[e],s=e>>1;0==n&&!r.has(s)||(i[s]=n)}return i}extractWidths(e,t,a){var r=this.xref;let i=[],n=0;var s=[];let o,l,c,h,u,d,f,g;if(a.composite){if(n=e.has("DW")?e.get("DW"):1e3,g=e.get("W"))for(l=0,c=g.length;l<c;l++)if(d=r.fetchIfRef(g[l++]),f=r.fetchIfRef(g[l]),Array.isArray(f))for(h=0,u=f.length;h<u;h++)i[d++]=r.fetchIfRef(f[h]);else{var p=r.fetchIfRef(g[++l]);for(h=d;h<=f;h++)i[h]=p}if(a.vertical){var m=e.getArray("DW2")||[880,-1e3];if(o=[m[1],.5*n,m[0]],m=e.get("W2"))for(l=0,c=m.length;l<c;l++)if(d=r.fetchIfRef(m[l++]),f=r.fetchIfRef(m[l]),Array.isArray(f))for(h=0,u=f.length;h<u;h++)s[d++]=[r.fetchIfRef(f[h++]),r.fetchIfRef(f[h++]),r.fetchIfRef(f[h])];else{var b=[r.fetchIfRef(m[++l]),r.fetchIfRef(m[++l]),r.fetchIfRef(m[++l])];for(h=d;h<=f;h++)s[h]=b}}}else{var y=a.firstChar;if(g=e.get("Widths")){for(h=y,l=0,c=g.length;l<c;l++)i[h++]=r.fetchIfRef(g[l]);n=parseFloat(t.get("MissingWidth"))||0}else{y=e.get("BaseFont");y instanceof V.Name&&(t=this.getBaseFontMetrics(y.name),i=this.buildCharCodeToWidth(t.widths,a),n=t.defaultWidth)}}let v=!0,w=n;for(const S in i){var x=i[S];if(x)if(w){if(w!==x){v=!1;break}}else w=x}v&&(a.flags|=F.FontFlags.FixedPitch),a.defaultWidth=n,a.widths=i,a.defaultVMetrics=o,a.vmetrics=s}isSerifFont(e){e=e.split("-")[0];return e in(0,I.getSerifFonts)()||/serif/gi.test(e)}getBaseFontMetrics(e){let t=0,a=Object.create(null),r=!1;let i=(0,I.getStdFontMap)()[e]||e;var n=(0,o.getMetrics)(),n=n[i=i in n?i:this.isSerifFont(e)?"Times-Roman":"Helvetica"];return"number"==typeof n?(t=n,r=!0):a=n(),{defaultWidth:t,monospace:r,widths:a}}buildCharCodeToWidth(t,e){var a=Object.create(null),r=e.differences,i=e.defaultEncoding;for(let e=0;e<256;e++)e in r&&t[r[e]]?a[e]=t[r[e]]:e in i&&t[i[e]]&&(a[e]=t[i[e]]);return a}preEvaluateFont(e){var t=e;let a=e.get("Subtype");if(!(a instanceof V.Name))throw new W.FormatError("invalid font Subtype");let r=!1,i,n;if("Type0"===a.name){var s=e.get("DescendantFonts");if(!s)throw new W.FormatError("Descendant fonts are not specified");if(!((e=Array.isArray(s)?this.xref.fetchIfRef(s[0]):s)instanceof V.Dict))throw new W.FormatError("Descendant font is not a dictionary.");if(!((a=e.get("Subtype"))instanceof V.Name))throw new W.FormatError("invalid font Subtype");r=!0}var s=e.get("FirstChar")||0,o=e.get("LastChar")||(r?65535:255),l=e.get("FontDescriptor");if(l){i=new S.MurmurHash3_64;var c=t.getRaw("Encoding");if(c instanceof V.Name)i.update(c.name);else if(c instanceof V.Ref)i.update(c.toString());else if(c instanceof V.Dict)for(const m of c.getRawValues())if(m instanceof V.Name)i.update(m.name);else if(m instanceof V.Ref)i.update(m.toString());else if(Array.isArray(m)){var h=m.length,u=new Array(h);for(let e=0;e<h;e++){var d=m[e];d instanceof V.Name?u[e]=d.name:("number"==typeof d||d instanceof V.Ref)&&(u[e]=d.toString())}i.update(u.join())}i.update(s+"-"+o),(n=e.get("ToUnicode")||t.get("ToUnicode"))instanceof Y.BaseStream?(c=(c=n.str||n).buffer?new Uint8Array(c.buffer.buffer,0,c.bufferLength):new Uint8Array(c.bytes.buffer,c.start,c.end-c.start),i.update(c)):n instanceof V.Name&&i.update(n.name);c=e.get("Widths")||t.get("Widths");if(Array.isArray(c)){var f=[];for(const b of c)("number"==typeof b||b instanceof V.Ref)&&f.push(b.toString());i.update(f.join())}if(r){i.update("compositeFont");c=e.get("W")||t.get("W");if(Array.isArray(c)){var g=[];for(const y of c)if("number"==typeof y||y instanceof V.Ref)g.push(y.toString());else if(Array.isArray(y)){var p=[];for(const v of y)("number"==typeof v||v instanceof V.Ref)&&p.push(v.toString());g.push(`[${p.join()}]`)}i.update(g.join())}c=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap");c instanceof V.Name?i.update(c.name):c instanceof V.Ref?i.update(c.toString()):c instanceof Y.BaseStream&&i.update(c.peekBytes())}}return{descriptor:l,dict:e,baseDict:t,composite:r,type:a.name,firstChar:s,lastChar:o,toUnicode:n,hash:i?i.hexdigest():""}}async translateFont(t){let{descriptor:a,dict:r,baseDict:n,composite:e,type:s,firstChar:o,lastChar:l,toUnicode:c,cssFontInfo:i}=t;var h,t="Type3"===s;let u;if(!a){if(!t){let e=r.get("BaseFont");if(!(e instanceof V.Name))throw new W.FormatError("Base font is not specified");e=e.name.replace(/[,_]/g,"-");const A=this.getBaseFontMetrics(e);var d=e.split("-")[0],d=(this.isSerifFont(d)?F.FontFlags.Serif:0)|(A.monospace?F.FontFlags.FixedPitch:0)|((0,I.getSymbolsFonts)()[d]?F.FontFlags.Symbolic:F.FontFlags.Nonsymbolic);u={type:s,name:e,loadedName:n.loadedName,widths:A.widths,defaultWidth:A.defaultWidth,isSimulatedFlags:!0,flags:d,firstChar:o,lastChar:l,toUnicode:c,xHeight:0,capHeight:0,italicAngle:0,isType3Font:t};const k=r.get("Widths");var d=(0,I.getStandardFontName)(e);let i=null;return d&&(u.isStandardFont=!0,i=await this.fetchStandardFontData(d),u.isInternalFont=!!i),this.extractDataStructures(r,r,u).then(t=>{if(k){var a=[];let e=o;for(const r of k)a[e++]=this.xref.fetchIfRef(r);t.widths=a}else t.widths=this.buildCharCodeToWidth(A.widths,t);return new O.Font(e,i,t)})}(a=new V.Dict(null)).set("FontName",V.Name.get(s)),a.set("FontBBox",r.getArray("FontBBox")||[0,0,0,0])}let f=a.get("FontName"),g=r.get("BaseFont");if("string"==typeof f&&(f=V.Name.get(f)),"string"==typeof g&&(g=V.Name.get(g)),t||(d=f&&f.name)!==(h=g&&g.name)&&((0,W.info)(`The FontDescriptor's FontName is "${d}" but `+`should be the same as the Font's BaseFont "${h}".`),d)&&h&&h.startsWith(d)&&(f=g),!((f=f||g)instanceof V.Name))throw new W.FormatError("invalid font name");let p,m,b,y,v;try{p=a.get("FontFile","FontFile2","FontFile3")}catch(e){if(!this.options.ignoreErrors)throw e;(0,W.warn)(`translateFont - fetching "${f.name}" font file: "${e}".`),p=new M.NullStream}let w=!1,x=!1,S=null;return p?p.dict&&((h=p.dict.get("Subtype"))instanceof V.Name&&(m=h.name),b=p.dict.get("Length1"),y=p.dict.get("Length2"),v=p.dict.get("Length3")):i?(d=(0,T.getXfaFontName)(f.name))&&(i.fontFamily=i.fontFamily+"-PdfJS-XFA",i.metrics=d.metrics||null,S=d.factors||null,p=await this.fetchStandardFontData(d.name),x=!!p,n=r=(0,T.getXfaFontDict)(f.name),e=!0):t||(h=(0,I.getStandardFontName)(f.name))&&(w=!0,p=await this.fetchStandardFontData(h),x=!!p),u={type:s,name:f.name,subtype:m,file:p,length1:b,length2:y,length3:v,isStandardFont:w,isInternalFont:x,loadedName:n.loadedName,composite:e,fixedPitch:!1,fontMatrix:r.getArray("FontMatrix")||W.FONT_IDENTITY_MATRIX,firstChar:o,lastChar:l,toUnicode:c,bbox:a.getArray("FontBBox")||r.getArray("FontBBox"),ascent:a.get("Ascent"),descent:a.get("Descent"),xHeight:a.get("XHeight")||0,capHeight:a.get("CapHeight")||0,flags:a.get("Flags"),italicAngle:a.get("ItalicAngle")||0,isType3Font:t,cssFontInfo:i,scaleFactors:S},e&&((d=n.get("Encoding"))instanceof V.Name&&(u.cidEncoding=d.name),h=await C.CMapFactory.create({encoding:d,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),u.cMap=h,u.vertical=u.cMap.vertical),this.extractDataStructures(r,n,u).then(e=>(this.extractWidths(r,a,e),new O.Font(f.name,p,e)))}static buildFontPaths(a,e,r,i){function t(e){var t=a.loadedName+"_path_"+e;try{a.renderer.hasBuiltPath(e)||r.send("commonobj",[t,"FontPath",a.renderer.getPathJs(e)])}catch(e){if(!i.ignoreErrors)throw e;r.send("UnsupportedFeature",{featureId:W.UNSUPPORTED_FEATURES.errorFontBuildPath}),(0,W.warn)(`buildFontPaths - ignoring ${t} glyph: "${e}".`)}}for(const s of e){t(s.fontChar);var n=s.accent;n&&n.fontChar&&t(n.fontChar)}}static get fallbackFontDict(){var e=new V.Dict;return e.set("BaseFont",V.Name.get("PDFJS-FallbackFont")),e.set("Type",V.Name.get("FallbackType")),e.set("Subtype",V.Name.get("FallbackType")),e.set("Encoding",V.Name.get("WinAnsiEncoding")),(0,W.shadow)(this,"fallbackFontDict",e)}}e.PartialEvaluator=b;class w{constructor(e){var{loadedName:e,font:t,dict:a,evaluatorOptions:r}=e;this.loadedName=e,this.font=t,this.dict=a,this._evaluatorOptions=r||c,this.type3Loaded=null,this.type3Dependencies=t.isType3Font?new Set:null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(e){this.font.data&&(this.font.disableFontFace=!0,b.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}loadType3Data(t,a,r){if(!this.type3Loaded){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const i=t.clone({ignoreErrors:!1});i.parsingType3Font=!0;t=new V.RefSet(t.type3FontRefs);this.dict.objId&&!t.has(this.dict.objId)&&t.put(this.dict.objId),i.type3FontRefs=t;const n=this.font,s=this.type3Dependencies;let e=Promise.resolve();const o=this.dict.get("CharProcs"),l=this.dict.get("Resources")||a,c=Object.create(null);t=W.Util.normalizeRect(n.bbox||[0,0,0,0]),a=t[2]-t[0],t=t[3]-t[1];const h=Math.hypot(a,t);for(const u of o.getKeys())e=e.then(()=>{var e=o.get(u);const t=new d.OperatorList;return i.getOperatorList({stream:e,task:r,resources:l,operatorList:t}).then(()=>{t.fnArray[0]===W.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(t,h),c[u]=t.getIR();for(const e of t.dependencies)s.add(e)}).catch(function(e){(0,W.warn)(`Type3 font resource "${u}" is not available.`);var t=new d.OperatorList;c[u]=t.getIR()})});this.type3Loaded=e.then(()=>{n.charProcOperatorList=c,this._bbox&&(n.isCharBBox=!0,n.bbox=this._bbox)})}return this.type3Loaded}_removeType3ColorOperators(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:NaN,t=W.Util.normalizeRect(a.argsArray[0].slice(2)),r=t[2]-t[0],i=t[3]-t[1],n=Math.hypot(r,i);0==r||0==i?(a.fnArray.splice(0,1),a.argsArray.splice(0,1)):(0===e||10<=Math.round(n/e))&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[2]),this._bbox[3]=Math.max(this._bbox[3],t[3]));let s=0,o=a.length;for(;s<o;){switch(a.fnArray[s]){case W.OPS.setCharWidthAndBounds:break;case W.OPS.setStrokeColorSpace:case W.OPS.setFillColorSpace:case W.OPS.setStrokeColor:case W.OPS.setStrokeColorN:case W.OPS.setFillColor:case W.OPS.setFillColorN:case W.OPS.setStrokeGray:case W.OPS.setFillGray:case W.OPS.setStrokeRGBColor:case W.OPS.setFillRGBColor:case W.OPS.setStrokeCMYKColor:case W.OPS.setFillCMYKColor:case W.OPS.shadingFill:case W.OPS.setRenderingIntent:a.fnArray.splice(s,1),a.argsArray.splice(s,1),o--;continue;case W.OPS.setGState:var[l]=a.argsArray[s];let e=0,t=l.length;for(;e<t;){var[c]=l[e];switch(c){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":l.splice(e,1),t--;continue}e++}}s++}}}class Z{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new h;this.state=e,this.stateStack=[]}save(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){var e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=W.Util.transform(this.state.ctm,e)}}class ee{constructor(){this.ctm=new Float32Array(W.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=W.FONT_IDENTITY_MATRIX,this.textMatrix=W.IDENTITY_MATRIX.slice(),this.textLineMatrix=W.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(e,t,a,r,i,n){var s=this.textMatrix;s[0]=e,s[1]=t,s[2]=a,s[3]=r,s[4]=i,s[5]=n}setTextLineMatrix(e,t,a,r,i,n){var s=this.textLineMatrix;s[0]=e,s[1]=t,s[2]=a,s[3]=r,s[4]=i,s[5]=n}translateTextMatrix(e,t){var a=this.textMatrix;a[4]=a[0]*e+a[2]*t+a[4],a[5]=a[1]*e+a[3]*t+a[5]}translateTextLineMatrix(e,t){var a=this.textLineMatrix;a[4]=a[0]*e+a[2]*t+a[4],a[5]=a[1]*e+a[3]*t+a[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}class h{constructor(){this.ctm=new Float32Array(W.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=W.TextRenderingMode.FILL,this.fillColorSpace=L.ColorSpace.singletons.gray,this.strokeColorSpace=L.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class Q{static get opMap(){var e=(0,i.getLookupTableFactory)(function(e){e.w={id:W.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:W.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:W.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:W.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:W.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:W.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:W.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:W.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:W.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:W.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:W.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:W.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:W.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:W.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:W.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:W.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:W.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:W.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:W.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:W.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:W.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:W.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:W.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:W.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:W.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:W.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:W.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:W.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:W.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:W.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:W.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:W.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:W.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:W.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:W.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:W.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:W.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:W.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:W.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:W.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:W.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:W.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:W.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:W.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:W.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:W.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:W.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:W.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:W.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:W.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:W.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:W.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:W.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:W.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:W.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:W.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:W.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:W.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:W.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:W.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:W.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:W.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:W.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:W.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:W.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:W.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:W.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:W.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:W.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:W.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:W.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:W.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:W.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null});return(0,W.shadow)(this,"opMap",e())}static get MAX_INVALID_PATH_OPS(){return(0,W.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(e,t){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new Z;this.parser=new r.Parser({lexer:new r.Lexer(e,Q.opMap),xref:t}),this.stateManager=a,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let a=t.args;for(;;){var r=this.parser.getObj();if(r instanceof V.Cmd){var i=r.cmd,n=Q.opMap[i];if(!n){(0,W.warn)(`Unknown command "${i}".`);continue}var s=n.id,o=n.numArgs;let e=null!==a?a.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=s>=W.OPS.moveTo&&s<=W.OPS.endPath,n.variableArgs)e>o&&(0,W.info)(`Command ${i}: expected [0, ${o}] args, `+`but received ${e} args.`);else{if(e!==o){for(var l=this.nonProcessedArgs;e>o;)l.push(a.shift()),e--;for(;e<o&&0!==l.length;)(a=null===a?[]:a).unshift(l.pop()),e++}if(e<o){n=`command ${i}: expected ${o} args, `+`but received ${e} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>Q.MAX_INVALID_PATH_OPS)throw new W.FormatError("Invalid "+n);(0,W.warn)("Skipping "+n),null!==a&&(a.length=0);continue}}return this.preprocessCommand(s,a),t.fn=s,t.args=a,!0}if(r===V.EOF)return!1;if(null!==r&&((a=null===a?[]:a).push(r),33<a.length))throw new W.FormatError("Too many arguments")}}preprocessCommand(e,t){switch(0|e){case W.OPS.save:this.stateManager.save();break;case W.OPS.restore:this.stateManager.restore();break;case W.OPS.transform:this.stateManager.transform(t)}}}e.EvaluatorPreprocessor=Q},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var u=a(2),d=a(134),r=a(136),i=a(146),f=a(135),n=a(139);const s=["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"];class o{constructor(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,a){this.codespaceRanges[e-1].push(t,a),this.numCodespaceRanges++}mapCidRange(e,t,a){if(2**24-1<t-e)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=a++}mapBfRange(e,t,a){if(2**24-1<t-e)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var r=a.length-1;e<=t;){var i=(this._map[e++]=a).charCodeAt(r)+1;255<i?a=a.substring(0,r-1)+String.fromCharCode(a.charCodeAt(r-1)+1)+"\0":a=a.substring(0,r)+String.fromCharCode(i)}}mapBfRangeToArray(e,t,a){if(2**24-1<t-e)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");var r=a.length;let i=0;for(;e<=t&&i<r;)this._map[e]=a[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(t){var a=this._map,r=a.length;if(r<=65536)for(let e=0;e<r;e++)void 0!==a[e]&&t(e,a[e]);else for(const e in a)t(e,a[e])}charCodeOf(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}getMap(){return this._map}readCharCode(t,r,i){let n=0;var s=this.codespaceRanges;for(let a=0,e=s.length;a<e;a++){n=(n<<8|t.charCodeAt(r+a))>>>0;var o=s[a];for(let e=0,t=o.length;e<t;){var l=o[e++],c=o[e++];if(n>=l&&n<=c)return i.charcode=n,void(i.length=a+1)}}i.charcode=0,i.length=1}getCharCodeLength(r){var t=this.codespaceRanges;for(let a=0,e=t.length;a<e;a++){var i=t[a];for(let e=0,t=i.length;e<t;){var n=i[e++],s=i[e++];if(n<=r&&r<=s)return a+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}class l extends(t.CMap=o){constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,a){(0,u.unreachable)("should not call mapCidRange")}mapBfRange(e,t,a){(0,u.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,a){(0,u.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,u.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(t){for(let e=0;e<=65535;e++)t(e,e)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){var t=new Array(65536);for(let e=0;e<=65535;e++)t[e]=e;return t}get length(){return 65536}get isIdentityCMap(){(0,u.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=l;const c=function(){function m(t,a){let r=0;for(let e=0;e<=a;e++)r=r<<8|t[e];return r>>>0}function b(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function y(t,a,r){let i=0;for(let e=r;0<=e;e--)i+=t[e]+a[e],t[e]=255&i,i>>=8}function v(t,a){let r=1;for(let e=a;0<=e&&0<r;e--)r+=t[e],t[e]=255&r,r>>=8}class w{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e=0;var t;do{var a=this.readByte();if(a<0)throw new u.FormatError("unexpected EOF in bcmap");t=!(128&a),e=e<<7|127&a}while(!t);return e}readSigned(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){var a,r=this.tmpBuf;let i=0;do{var n=this.readByte();if(n<0)throw new u.FormatError("unexpected EOF in bcmap");a=!(128&n),r[i++]=127&n}while(!a);let s=t,o=0,l=0;for(;0<=s;){for(;l<8&&0<r.length;)o|=r[--i]<<l,l+=7;e[s]=255&o,s--,o>>=8,l-=8}}readHexSigned(t,a){this.readHexNumber(t,a);var r=1&t[a]?255:0;let i=0;for(let e=0;e<=a;e++)i=(1&i)<<8|t[e],t[e]=i>>1^r}readString(){var t=this.readNumber();let a="";for(let e=0;e<t;e++)a+=String.fromCharCode(this.readNumber());return a}}return class{async process(e,t,a){var r=new w(e),e=r.readByte();t.vertical=!!(1&e);let i=null;var n,s=new Uint8Array(16),o=new Uint8Array(16),l=new Uint8Array(16),c=new Uint8Array(16),h=new Uint8Array(16);let u;for(;0<=(n=r.readByte());){var d=n>>5;if(7==d)switch(31&n){case 0:r.readString();break;case 1:i=r.readString()}else{var f=!!(16&n),g=15&n;if(16<1+g)throw new Error("BinaryCMapReader.process: Invalid dataSize.");var p=r.readNumber();switch(d){case 0:r.readHex(s,g),r.readHexNumber(o,g),y(o,s,g),t.addCodespaceRange(1+g,m(s,g),m(o,g));for(let e=1;e<p;e++)v(o,g),r.readHexNumber(s,g),y(s,o,g),r.readHexNumber(o,g),y(o,s,g),t.addCodespaceRange(1+g,m(s,g),m(o,g));break;case 1:r.readHex(s,g),r.readHexNumber(o,g),y(o,s,g),r.readNumber();for(let e=1;e<p;e++)v(o,g),r.readHexNumber(s,g),y(s,o,g),r.readHexNumber(o,g),y(o,s,g),r.readNumber();break;case 2:r.readHex(l,g),u=r.readNumber(),t.mapOne(m(l,g),u);for(let e=1;e<p;e++)v(l,g),f||(r.readHexNumber(h,g),y(l,h,g)),u=r.readSigned()+(u+1),t.mapOne(m(l,g),u);break;case 3:r.readHex(s,g),r.readHexNumber(o,g),y(o,s,g),u=r.readNumber(),t.mapCidRange(m(s,g),m(o,g),u);for(let e=1;e<p;e++)v(o,g),f?s.set(o):(r.readHexNumber(s,g),y(s,o,g)),r.readHexNumber(o,g),y(o,s,g),u=r.readNumber(),t.mapCidRange(m(s,g),m(o,g),u);break;case 4:r.readHex(l,1),r.readHex(c,g),t.mapOne(m(l,1),b(c,g));for(let e=1;e<p;e++)v(l,1),f||(r.readHexNumber(h,1),y(l,h,1)),v(c,g),r.readHexSigned(h,g),y(c,h,g),t.mapOne(m(l,1),b(c,g));break;case 5:r.readHex(s,1),r.readHexNumber(o,1),y(o,s,1),r.readHex(c,g),t.mapBfRange(m(s,1),m(o,1),b(c,g));for(let e=1;e<p;e++)v(o,1),f?s.set(o):(r.readHexNumber(s,1),y(s,o,1)),r.readHexNumber(o,1),y(o,s,1),r.readHex(c,g),t.mapBfRange(m(s,1),m(o,1),b(c,g));break;default:throw new Error("BinaryCMapReader.process - unknown type: "+d)}}}return i?a(i):t}}}();function g(t){let a=0;for(let e=0;e<t.length;e++)a=a<<8|t.charCodeAt(e);return a>>>0}function p(e){if("string"!=typeof e)throw new u.FormatError("Malformed CMap: expected string.")}function m(e){if(!Number.isInteger(e))throw new u.FormatError("Malformed CMap: expected int.")}async function h(e,t,a,r){let i,n;e:for(;;)try{var s=t.getObj();if(s===d.EOF)break;if(s instanceof d.Name)"WMode"===s.name?(c=e,h=(h=t).getObj(),Number.isInteger(h)&&(c.vertical=!!h)):"CMapName"===s.name&&(o=e,(l=(l=t).getObj())instanceof d.Name)&&(o.name=l.name),i=s;else if(s instanceof d.Cmd)switch(s.cmd){case"endcmap":break e;case"usecmap":i instanceof d.Name&&(n=i.name);break;case"begincodespacerange":!function(e,t){for(;;){var a=t.getObj();if(a===d.EOF)break;if((0,d.isCmd)(a,"endcodespacerange"))return;if("string"!=typeof a)break;var r=g(a);if("string"!=typeof(a=t.getObj()))break;var i=g(a);e.addCodespaceRange(a.length,r,i)}throw new u.FormatError("Invalid codespace range.")}(e,t);break;case"beginbfchar":!function(e,t){for(;;){var a=t.getObj();if(a===d.EOF)break;if((0,d.isCmd)(a,"endbfchar"))return;p(a);var r=g(a);p(a=t.getObj()),e.mapOne(r,a)}}(e,t);break;case"begincidchar":!function(e,t){for(;;){var a=t.getObj();if(a===d.EOF)break;if((0,d.isCmd)(a,"endcidchar"))return;p(a);var r=g(a);m(a=t.getObj()),e.mapOne(r,a)}}(e,t);break;case"beginbfrange":!function(t,a){for(;;){let e=a.getObj();if(e===d.EOF)break;if((0,d.isCmd)(e,"endbfrange"))return;p(e);var r=g(e),i=(p(e=a.getObj()),g(e));if(e=a.getObj(),Number.isInteger(e)||"string"==typeof e){var n=Number.isInteger(e)?String.fromCharCode(e):e;t.mapBfRange(r,i,n)}else{if(!(0,d.isCmd)(e,"["))break;e=a.getObj();for(var s=[];!(0,d.isCmd)(e,"]")&&e!==d.EOF;)s.push(e),e=a.getObj();t.mapBfRangeToArray(r,i,s)}}throw new u.FormatError("Invalid bf range.")}(e,t);break;case"begincidrange":!function(e,t){for(;;){var a=t.getObj();if(a===d.EOF)break;if((0,d.isCmd)(a,"endcidrange"))return;p(a);var r=g(a),i=(p(a=t.getObj()),g(a));m(a=t.getObj());e.mapCidRange(r,i,a)}}(e,t)}}catch(e){if(e instanceof f.MissingDataException)throw e;(0,u.warn)("Invalid cMap data: "+e);continue}var o,l,c,h;return(r=!r&&n?n:r)?b(e,a,r):e}async function b(a,e,t){if(a.useCMap=await y(t,e),0===a.numCodespaceRanges){var r=a.useCMap.codespaceRanges;for(let e=0;e<r.length;e++)a.codespaceRanges[e]=r[e].slice();a.numCodespaceRanges=a.useCMap.numCodespaceRanges}return a.useCMap.forEach(function(e,t){a.contains(e)||a.mapOne(e,a.useCMap.lookup(e))}),a}async function y(e,t){if("Identity-H"===e)return new l(!1,2);if("Identity-V"===e)return new l(!0,2);if(!s.includes(e))throw new Error("Unknown CMap name: "+e);if(!t)throw new Error("Built-in CMap parameters are not provided.");var{cMapData:e,compressionType:a}=await t(e);const r=new o(!0);if(a===u.CMapCompressionType.BINARY)return(new c).process(e,r,e=>b(r,t,e));if(a===u.CMapCompressionType.NONE)return e=new i.Lexer(new n.Stream(e)),h(r,e,t,null);throw new Error('Invalid CMap "compressionType" value: '+a)}t.CMapFactory={async create(e){var t=e.encoding,a=e.fetchBuiltInCMap,e=e.useCMap;if(t instanceof d.Name)return y(t.name,a);if(t instanceof r.BaseStream)return(t=await h(new o,new i.Lexer(t),a,e)).isIdentityCMap?y(t.name,a):t;throw new Error("Encoding required.")}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var d=a(2),f=a(134),h=a(135),s=a(147),o=a(149),l=a(150),c=a(152),u=a(153),g=a(156),p=a(158),m=a(160),b=a(139),y=a(161),v=a(162);function w(t){var a=t.length;let r=1,i=0;for(let e=0;e<a;++e)r+=255&t[e],i+=r;return i%65521<<16|r%65521}class x{constructor(e){var{lexer:e,xref:t,allowStreams:a=!1,recoveryMode:r=!1}=e;this.lexer=e,this.xref=t,this.allowStreams=a,this.recoveryMode=r,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof f.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof h.MissingDataException)throw e;return!1}}getObj(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,a=this.buf1;if(this.shift(),a instanceof f.Cmd)switch(a.cmd){case"BI":return this.makeInlineImage(t);case"[":for(var r=[];!(0,f.isCmd)(this.buf1,"]")&&this.buf1!==f.EOF;)r.push(this.getObj(t));if(this.buf1!==f.EOF)return this.shift(),r;if(this.recoveryMode)return r;throw new h.ParserEOFException("End of file inside array.");case"<<":for(var i=new f.Dict(this.xref);!(0,f.isCmd)(this.buf1,">>")&&this.buf1!==f.EOF;)if(this.buf1 instanceof f.Name){var n=this.buf1.name;if(this.shift(),this.buf1===f.EOF)break;i.set(n,this.getObj(t))}else(0,d.info)("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1!==f.EOF)return(0,f.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(i,t):i:(this.shift(),i);if(this.recoveryMode)return i;throw new h.ParserEOFException("End of file inside dictionary.");default:return a}return Number.isInteger(a)?Number.isInteger(this.buf1)&&(0,f.isCmd)(this.buf2,"R")?(e=f.Ref.get(a,this.buf1),this.shift(),this.shift(),e):a:"string"==typeof a&&t?t.decryptString(a):a}findDefaultInlineStreamEnd(e){var t=this.lexer,a=e.pos;let r=0,i,n;for(;-1!==(i=e.getByte());)if(0===r)r=69===i?1:0;else if(1===r)r=73===i?2:0;else if((0,d.assert)(2===r,"findDefaultInlineStreamEnd - invalid state."),32===i||10===i||13===i){n=e.pos;var s,o=e.peekBytes(10);for(let e=0,t=o.length;e<t;e++)if((0!==(i=o[e])||0===o[e+1])&&10!==i&&13!==i&&(i<32||127<i)){r=0;break}if(2===r)if(t.knownCommands?(s=t.peekObj())instanceof f.Cmd&&!t.knownCommands[s.cmd]&&(r=0):(0,d.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined."),2===r)break}else r=0;-1===i&&((0,d.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),n)&&((0,d.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-n)));let l=4;return e.skip(-l),i=e.peekByte(),e.skip(l),(0,h.isWhiteSpace)(i)||l--,e.pos-l-a}findDCTDecodeInlineStreamEnd(e){var t=e.pos;let a=!1,r,i;for(;-1!==(r=e.getByte());)if(255===r){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:a=!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:2<(i=e.getUint16())?e.skip(i-2):e.skip(-2)}if(a)break}t=e.pos-t;return-1===r?((0,d.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-t),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),t)}findASCII85DecodeInlineStreamEnd(e){var t=e.pos;let a;for(;-1!==(a=e.getByte());)if(126===a){var r=e.pos;for(a=e.peekByte();(0,h.isWhiteSpace)(a);)e.skip(),a=e.peekByte();if(62===a){e.skip();break}if(e.pos>r){r=e.peekBytes(2);if(69===r[0]&&73===r[1])break}}t=e.pos-t;return-1===a?((0,d.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-t),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),t)}findASCIIHexDecodeInlineStreamEnd(e){var t=e.pos;let a;for(;-1!==(a=e.getByte())&&62!==a;);t=e.pos-t;return-1===a?((0,d.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-t),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),t)}inlineStreamSkipEI(e){let t=0,a;for(;-1!==(a=e.getByte());)if(0===t)t=69===a?1:0;else if(1===t)t=73===a?2:0;else if(2===t)break}makeInlineImage(e){var t=this.lexer,a=t.stream,r=new f.Dict(this.xref);let i;for(;!(0,f.isCmd)(this.buf1,"ID")&&this.buf1!==f.EOF;){if(!(this.buf1 instanceof f.Name))throw new d.FormatError("Dictionary key must be a name object");var n=this.buf1.name;if(this.shift(),this.buf1===f.EOF)break;r.set(n,this.getObj(e))}-1!==t.beginInlineImagePos&&(i=a.pos-t.beginInlineImagePos);var s=r.get("F","Filter");let o;s instanceof f.Name?o=s.name:Array.isArray(s)&&(s=this.xref.fetchIfRef(s[0]))instanceof f.Name&&(o=s.name);s=a.pos;let l;switch(o){case"DCT":case"DCTDecode":l=this.findDCTDecodeInlineStreamEnd(a);break;case"A85":case"ASCII85Decode":l=this.findASCII85DecodeInlineStreamEnd(a);break;case"AHx":case"ASCIIHexDecode":l=this.findASCIIHexDecodeInlineStreamEnd(a);break;default:l=this.findDefaultInlineStreamEnd(a)}let c=a.makeSubStream(s,l,r),h;if(l<1e3&&i<5552){var s=c.getBytes(),u=(c.reset(),a.pos),t=(a.pos=t.beginInlineImagePos,a.getBytes(i)),u=(a.pos=u,h=w(s)+"_"+w(t),this.imageCache[h]);if(void 0!==u)return this.buf2=f.Cmd.get("EI"),this.shift(),u.reset(),u}return e&&(c=e.createStream(c,l)),(c=this.filter(c,r,l)).dict=r,void 0!==h&&(c.cacheKey=`inline_${l}_`+h,this.imageCache[h]=c),this.buf2=f.Cmd.get("EI"),this.shift(),c}_findStreamLength(a,r){for(var i=this.lexer["stream"],n=(i.pos=a,r.length);i.pos<i.end;){var s=i.peekBytes(2048),e=s.length-n;if(e<=0)break;let t=0;for(;t<e;){let e=0;for(;e<n&&s[t+e]===r[e];)e++;if(e>=n)return i.pos+=t,i.pos-a;t++}i.pos+=e}return-1}makeStream(e,t){var a=this.lexer;let r=a.stream;a.skipToNextLine();var i=r.pos-1;let n=e.get("Length");if(Number.isInteger(n)||((0,d.info)(`Bad length "${n&&n.toString()}" in stream.`),n=0),r.pos=i+n,a.nextChar(),!this.tryShift()||!(0,f.isCmd)(this.buf2,"endstream")){var s=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(i,s);if(t<0){for(let e=1;e<=1;e++){var o=s.length-e,l=s.slice(0,o),c=this._findStreamLength(i,l);if(0<=c){o=r.peekBytes(1+o)[o];if(!(0,h.isWhiteSpace)(o))break;(0,d.info)(`Found "${(0,d.bytesToString)(l)}" when `+"searching for endstream command."),t=c;break}}if(t<0)throw new d.FormatError("Missing endstream command.")}n=t,a.nextChar(),this.shift()}return this.shift(),this.shift(),r=r.makeSubStream(i,n,e),t&&(r=t.createStream(r,n)),(r=this.filter(r,e,n)).dict=e,r}filter(a,e,t){let r=e.get("F","Filter"),i=e.get("DP","DecodeParms");if(r instanceof f.Name)return Array.isArray(i)&&(0,d.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(a,r.name,t,i);let n=t;if(Array.isArray(r)){var s=r,o=i;for(let e=0,t=s.length;e<t;++e){if(!((r=this.xref.fetchIfRef(s[e]))instanceof f.Name))throw new d.FormatError(`Bad filter name "${r}"`);i=null,Array.isArray(o)&&e in o&&(i=this.xref.fetchIfRef(o[e])),a=this.makeFilter(a,r.name,n,i),n=null}}return a}makeFilter(t,a,r,i){if(0===r)return(0,d.warn)(`Empty "${a}" stream.`),new b.NullStream;var n=this.xref.stats;try{switch(a){case"Fl":case"FlateDecode":return n.addStreamType(d.StreamType.FLATE),i?new y.PredictorStream(new c.FlateStream(t,r),r,i):new c.FlateStream(t,r);case"LZW":case"LZWDecode":n.addStreamType(d.StreamType.LZW);let e=1;return i?(i.has("EarlyChange")&&(e=i.get("EarlyChange")),new y.PredictorStream(new m.LZWStream(t,r,e),r,i)):new m.LZWStream(t,r,e);case"DCT":case"DCTDecode":return n.addStreamType(d.StreamType.DCT),new g.JpegStream(t,r,i);case"JPX":case"JPXDecode":return n.addStreamType(d.StreamType.JPX),new p.JpxStream(t,r,i);case"A85":case"ASCII85Decode":return n.addStreamType(d.StreamType.A85),new s.Ascii85Stream(t,r);case"AHx":case"ASCIIHexDecode":return n.addStreamType(d.StreamType.AHX),new o.AsciiHexStream(t,r);case"CCF":case"CCITTFaxDecode":return n.addStreamType(d.StreamType.CCF),new l.CCITTFaxStream(t,r,i);case"RL":case"RunLengthDecode":return n.addStreamType(d.StreamType.RLX),new v.RunLengthStream(t,r);case"JBIG2Decode":return n.addStreamType(d.StreamType.JBIG),new u.Jbig2Stream(t,r,i)}return(0,d.warn)(`Filter "${a}" is not supported.`),t}catch(e){if(e instanceof h.MissingDataException)throw e;return(0,d.warn)(`Invalid stream: "${e}"`),new b.NullStream}}}t.Parser=x;const S=[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 n(e){return 48<=e&&e<=57?15&e:65<=e&&e<=70||97<=e&&e<=102?9+(15&e):-1}class A{constructor(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,a=0,r=0;if(45===e?(r=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(r=1,e=this.nextChar()),10===e||13===e)for(;10===(e=this.nextChar())||13===e;);if(46===e&&(a=10,e=this.nextChar()),e<48||57<e){var i=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if((0,h.isWhiteSpace)(e)||-1===e)return(0,d.info)(`Lexer.getNumber - "${i}".`),0;throw new d.FormatError(i)}r=r||1;let n=e-48,s=0,o=1;for(;0<=(e=this.nextChar());)if(48<=e&&e<=57){var l=e-48;t?s=10*s+l:(0!==a&&(a*=10),n=10*n+l)}else if(46===e){if(0!==a)break;a=1}else if(45===e)(0,d.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)o=45===e?-1:1,this.nextChar();else if(e<48||57<e)break;t=!0}return 0!==a&&(n/=a),t&&(n*=10**(o*s)),r*n}getString(){let e=1,a=!1;var r=this.strBuf;r.length=0;let i=this.nextChar();for(;;){let t=!1;switch(0|i){case-1:(0,d.warn)("Unterminated string"),a=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),a=!0):r.push(")");break;case 92:switch(i=this.nextChar()){case-1:(0,d.warn)("Unterminated string"),a=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&i;i=this.nextChar(),t=!0,48<=i&&i<=55&&(e=(e<<3)+(15&i),48<=(i=this.nextChar()))&&i<=55&&(t=!1,e=(e<<3)+(15&i)),r.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(i))}break;default:r.push(String.fromCharCode(i))}if(a)break;t||(i=this.nextChar())}return r.join("")}getName(){let e,t;var a=this.strBuf;for(a.length=0;0<=(e=this.nextChar())&&!S[e];)if(35===e){if(e=this.nextChar(),S[e]){(0,d.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),a.push("#");break}var r=n(e);if(-1!==r){t=e;var i=n(e=this.nextChar());if(-1===i){if((0,d.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) `+"in hexadecimal number."),a.push("#",String.fromCharCode(t)),S[e])break;a.push(String.fromCharCode(e))}else a.push(String.fromCharCode(r<<4|i))}else a.push("#",String.fromCharCode(e))}else a.push(String.fromCharCode(e));return 127<a.length&&(0,d.warn)("Name token is longer than allowed by the spec: "+a.length),f.Name.get(a.join(""))}_hexStringWarn(e){5==this._hexStringNumWarn++?(0,d.warn)("getHexString - ignoring additional invalid characters."):5<this._hexStringNumWarn||(0,d.warn)("getHexString - ignoring invalid character: "+e)}getHexString(){var e=this.strBuf;e.length=0;let t=this.currentChar,a=!0,r,i;for(this._hexStringNumWarn=0;;){if(t<0){(0,d.warn)("Unterminated hex string");break}if(62===t){this.nextChar();break}if(1!==S[t]){if(a){if(-1===(r=n(t))){this._hexStringWarn(t),t=this.nextChar();continue}}else{if(-1===(i=n(t))){this._hexStringWarn(t),t=this.nextChar();continue}e.push(String.fromCharCode(r<<4|i))}a=!a}t=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return f.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==S[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),f.Cmd.get("[");case 93:return this.nextChar(),f.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),f.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),f.Cmd.get(">>")):f.Cmd.get(">");case 123:return this.nextChar(),f.Cmd.get("{");case 125:return this.nextChar(),f.Cmd.get("}");case 41:throw this.nextChar(),new d.FormatError("Illegal character: "+t)}let a=String.fromCharCode(t);if(t<32||127<t){var r=this.peekChar();if(32<=r&&r<=127)return this.nextChar(),f.Cmd.get(a)}var i=this.knownCommands;let n=i&&void 0!==i[a];for(;0<=(t=this.nextChar())&&!S[t];){var s=a+String.fromCharCode(t);if(n&&void 0===i[s])break;if(128===a.length)throw new d.FormatError("Command token too long: "+a.length);a=s,n=i&&void 0!==i[a]}return"true"===a||"false"!==a&&("null"===a?null:("BI"===a&&(this.beginInlineImagePos=this.stream.pos),f.Cmd.get(a)))}peekObj(){var e=this.stream.pos,t=this.currentChar,a=this.beginInlineImagePos;let r;try{r=this.getObj()}catch(e){if(e instanceof h.MissingDataException)throw e;(0,d.warn)("peekObj: "+e)}return this.stream.pos=e,this.currentChar=t,this.beginInlineImagePos=a,r}skipToNextLine(){let e=this.currentChar;for(;0<=e;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=A;t.Linearization=class{static create(e){function t(e,t,a){a=2<arguments.length&&void 0!==a&&a,e=e.get(t);if(Number.isInteger(e)&&(a?0<=e:0<e))return e;throw new Error(`The "${t}" parameter in the linearization `+"dictionary is invalid.")}var a=new x({lexer:new A(e),xref:null}),r=a.getObj(),i=a.getObj(),n=a.getObj(),a=a.getObj();let s,o;if(!(Number.isInteger(r)&&Number.isInteger(i)&&(0,f.isCmd)(n,"obj")&&a instanceof f.Dict&&"number"==typeof(s=a.get("Linearized"))&&0<s))return null;if((o=t(a,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:o,hints:function(e){var t=e.get("H");let a;if(!Array.isArray(t)||2!==(a=t.length)&&4!==a)throw new Error("Hint array in the linearization dictionary is invalid.");for(let e=0;e<a;e++){var r=t[e];if(!(Number.isInteger(r)&&0<r))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}(a),objectNumberFirst:t(a,"O"),endFirst:t(a,"E"),numPages:t(a,"N"),mainXRefEntriesOffset:t(a,"T"),pageFirst:a.has("P")?t(a,"P",!0):0}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var r=a(148),o=a(135);class i extends r.DecodeStream{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){var r=this.str;let i=r.getByte();for(;(0,o.isWhiteSpace)(i);)i=r.getByte();if(-1===i||126===i)this.eof=!0;else{var n=this.bufferLength;let t,a;if(122===i){for(t=this.ensureBuffer(n+4),a=0;a<4;++a)t[n+a]=0;this.bufferLength+=4}else{var s=this.input;for(s[0]=i,a=1;a<5;++a){for(i=r.getByte();(0,o.isWhiteSpace)(i);)i=r.getByte();if(-1===(s[a]=i)||126===i)break}if(t=this.ensureBuffer(n+a-1),this.bufferLength+=a-1,a<5){for(;a<5;++a)s[a]=117;this.eof=!0}let e=0;for(a=0;a<5;++a)e=85*e+(s[a]-33);for(a=3;0<=a;--a)t[n+a]=255&e,e>>=8}}}}t.Ascii85Stream=i},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var r=a(136),i=a(139);const n=new Uint8Array(0);class s extends r.BaseStream{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=n,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(e){var t=this.buffer;if(e<=t.byteLength)return t;let a=this.minBufferLength;for(;a<e;)a*=2;var r=new Uint8Array(a);return r.set(t),this.buffer=r}getByte(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e){var t=this.pos;let a;if(e){for(this.ensureBuffer(t+e),a=t+e;!this.eof&&this.bufferLength<a;)this.readBlock();e=this.bufferLength;a>e&&(a=e)}else{for(;!this.eof;)this.readBlock();a=this.bufferLength}return this.pos=a,this.buffer.subarray(t,a)}reset(){this.pos=0}makeSubStream(e,t){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else for(var r=e+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new i.Stream(this.buffer,e,t,a)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=s;s;t.StreamsSequenceStream=class extends s{constructor(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;let a=0;for(const r of e)a+=r instanceof s?r._rawMinBufferLength:r.length;super(a),this.streams=e,this._onError=t}readBlock(){var t=this.streams;if(0===t.length)this.eof=!0;else{t=t.shift();let e;try{e=t.getBytes()}catch(e){if(this._onError)return void this._onError(e,t.dict&&t.dict.objId);throw e}var t=this.bufferLength,a=t+e.length;this.ensureBuffer(a).set(e,t),this.bufferLength=a}}getBaseStreams(){var e=[];for(const a of this.streams){var t=a.getBaseStreams();t&&e.push(...t)}return 0<e.length?e:null}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;class r extends a(148).DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){var e=this.str.getBytes(8e3);if(e.length){var r=e.length+1>>1,i=this.ensureBuffer(this.bufferLength+r);let t=this.bufferLength,a=this.firstDigit;for(const n of e){let e;if(48<=n&&n<=57)e=15&n;else{if(!(65<=n&&n<=70||97<=n&&n<=102)){if(62!==n)continue;this.eof=!0;break}e=9+(15&n)}a=a<0?e:(i[t++]=a<<4|e,-1)}0<=a&&this.eof&&(i[t++]=a<<4,a=-1),this.firstDigit=a,this.bufferLength=t}else this.eof=!0}}t.AsciiHexStream=r},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=a(151),i=a(148),n=a(134);class s extends i.DecodeStream{constructor(e,t,a){super(t),this.str=e,this.dict=e.dict,a instanceof n.Dict||(a=n.Dict.empty),this.ccittFaxDecoder=new r.CCITTFaxDecoder({next(){return e.getByte()}},{K:a.get("K"),EndOfLine:a.get("EndOfLine"),EncodedByteAlign:a.get("EncodedByteAlign"),Columns:a.get("Columns"),Rows:a.get("Rows"),EndOfBlock:a.get("EndOfBlock"),BlackIs1:a.get("BlackIs1")})}readBlock(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=s},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var h=a(2);const r=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],i=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],n=[[-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]],s=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],o=[[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]],l=[[-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]];t.CCITTFaxDecoder=class{constructor(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;let a=t.EndOfBlock;null!==a&&void 0!==a||(a=!0),this.eoblock=a,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let r;for(;0===(r=this._lookBits(12));)this._eatBits(1);1===r&&this._eatBits(12),0<this.encoding&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;var i=this.refLine,n=this.codingLine,s=this.columns;let o,l,e,c;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let e,t,a;if(this.nextLine2D){for(c=0;n[c]<s;++c)i[c]=n[c];for(i[c++]=s,i[c]=s,n[0]=0,this.codingPos=0,o=0,l=0;n[this.codingPos]<s;)switch(e=this._getTwoDimCode()){case 0:this._addPixels(i[o+1],l),i[o+1]<s&&(o+=2);break;case 1:if(e=t=0,l){for(;e+=a=this._getBlackCode(),64<=a;);for(;t+=a=this._getWhiteCode(),64<=a;);}else{for(;e+=a=this._getWhiteCode(),64<=a;);for(;t+=a=this._getBlackCode(),64<=a;);}for(this._addPixels(n[this.codingPos]+e,l),n[this.codingPos]<s&&this._addPixels(n[this.codingPos]+t,1^l);i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 7:if(this._addPixels(i[o]+3,l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 5:if(this._addPixels(i[o]+2,l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 3:if(this._addPixels(i[o]+1,l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 2:if(this._addPixels(i[o],l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 8:if(this._addPixelsNeg(i[o]-3,l),l^=1,n[this.codingPos]<s)for(0<o?--o:++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 6:if(this._addPixelsNeg(i[o]-2,l),l^=1,n[this.codingPos]<s)for(0<o?--o:++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 4:if(this._addPixelsNeg(i[o]-1,l),l^=1,n[this.codingPos]<s)for(0<o?--o:++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case-1:this._addPixels(s,0),this.eof=!0;break;default:(0,h.info)("bad 2d code"),this._addPixels(s,0),this.err=!0}}else for(n[0]=0,this.codingPos=0,l=0;n[this.codingPos]<s;){if(e=0,l)for(;e+=a=this._getBlackCode(),64<=a;);else for(;e+=a=this._getWhiteCode(),64<=a;);this._addPixels(n[this.codingPos]+e,l),l^=1}let r=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(e=this._lookBits(12),this.eoline)for(;-1!==e&&1!==e;)this._eatBits(1),e=this._lookBits(12);else for(;0===e;)this._eatBits(1),e=this._lookBits(12);1===e?(this._eatBits(12),r=!0):-1===e&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&0<this.encoding&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&r&&this.byteAlign){if(1===(e=this._lookBits(12))){if(this._eatBits(12),0<this.encoding&&(this._lookBits(1),this._eatBits(1)),0<=this.encoding)for(c=0;c<4;++c)1!==(e=this._lookBits(12))&&(0,h.info)("bad rtc code: "+e),this._eatBits(12),0<this.encoding&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(e=this._lookBits(13)))return this.eof=!0,-1;if(e>>1==1)break;this._eatBits(1)}this._eatBits(12),0<this.encoding&&(this._eatBits(1),this.nextLine2D=!(1&e))}0<n[0]?this.outputBits=n[this.codingPos=0]:this.outputBits=n[this.codingPos=1],this.row++}let t;if(8<=this.outputBits)t=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&n[this.codingPos]<s&&(this.codingPos++,this.outputBits=n[this.codingPos]-n[this.codingPos-1]);else{e=8,t=0;do{if("number"!=typeof this.outputBits)throw new h.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.')}while(this.outputBits>e?(t<<=e,1&this.codingPos||(t|=255>>8-e),this.outputBits-=e,e=0):(t<<=this.outputBits,1&this.codingPos||(t|=255>>8-this.outputBits),e-=this.outputBits,this.outputBits=0,n[this.codingPos]<s?(this.codingPos++,this.outputBits=n[this.codingPos]-n[this.codingPos-1]):0<e&&(t<<=e,e=0)),e)}return this.black&&(t^=255),t}_addPixels(e,t){var a=this.codingLine;let r=this.codingPos;e>a[r]&&(e>this.columns&&((0,h.info)("row is wrong length"),this.err=!0,e=this.columns),1&r^t&&++r,a[r]=e),this.codingPos=r}_addPixelsNeg(e,t){var a=this.codingLine;let r=this.codingPos;if(e>a[r])e>this.columns&&((0,h.info)("row is wrong length"),this.err=!0,e=this.columns),1&r^t&&++r,a[r]=e;else if(e<a[r]){for(e<0&&((0,h.info)("invalid code"),this.err=!0,e=0);0<r&&e<a[r-1];)--r;a[r]=e}this.codingPos=r}_findTableCode(e,a,r,t){var i=t||0;for(let t=e;t<=a;++t){let e=this._lookBits(t);if(-1===e)return[!0,1,!1];if(t<a&&(e<<=a-t),!i||e>=i){var n=r[e-i];if(n[0]===t)return this._eatBits(t),[!0,n[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){if(this.eoblock){if(e=this._lookBits(7),(e=r[e])&&0<e[0])return this._eatBits(e[0]),e[1]}else{var e=this._findTableCode(1,7,r);if(e[0]&&e[2])return e[1]}return(0,h.info)("Bad two dim code"),-1}_getWhiteCode(){let e;if(this.eoblock){if(-1===(t=this._lookBits(12)))return 1;if(0<(e=t>>5==0?i[t]:n[t>>3])[0])return this._eatBits(e[0]),e[1]}else{var t=this._findTableCode(1,9,n);if(t[0])return t[1];if((t=this._findTableCode(11,12,i))[0])return t[1]}return(0,h.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let e,t;if(this.eoblock){if(-1===(e=this._lookBits(13)))return 1;if(0<(t=e>>7==0?s[e]:e>>9==0&&e>>7!=0?o[(e>>1)-64]:l[e>>7])[0])return this._eatBits(t[0]),t[1]}else{var a=this._findTableCode(2,6,l);if(a[0])return a[1];if((a=this._findTableCode(7,12,o,64))[0])return a[1];if((a=this._findTableCode(10,13,s))[0])return a[1]}return(0,h.info)("bad black code"),this._eatBits(1),1}_lookBits(e){for(var t;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var r=a(148),b=a(2);const y=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=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]),w=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]),x=[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],S=[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 i extends r.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict;t=e.getByte(),e=e.getByte();if(-1===t||-1===e)throw new b.FormatError(`Invalid header in flate stream: ${t}, `+e);if(8!=(15&t))throw new b.FormatError(`Unknown compression method in flate stream: ${t}, `+e);if(((t<<8)+e)%31!=0)throw new b.FormatError(`Bad FCHECK in flate stream: ${t}, `+e);if(32&e)throw new b.FormatError(`FDICT bit set in flate stream: ${t}, `+e);this.codeSize=0,this.codeBuf=0}getBits(e){var t=this.str;let a=this.codeSize,r=this.codeBuf,i;for(;a<e;){if(-1===(i=t.getByte()))throw new b.FormatError("Bad encoding in flate stream");r|=i<<a,a+=8}return i=r&(1<<e)-1,this.codeBuf=r>>e,this.codeSize=a-=e,i}getCode(e){var t,a=this.str,r=e[0],i=e[1];let n=this.codeSize,s=this.codeBuf;for(;n<i&&-1!==(t=a.getByte());)s|=t<<n,n+=8;e=r[s&(1<<i)-1],r=e>>16,e&=65535;if(r<1||n<r)throw new b.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>r,this.codeSize=n-r,e}generateHuffmanTable(e){var t=e.length;let a=0,s;for(s=0;s<t;++s)e[s]>a&&(a=e[s]);var o=1<<a,l=new Int32Array(o);for(let r=1,i=0,n=2;r<=a;++r,i<<=1,n<<=1)for(let a=0;a<t;++a)if(e[a]===r){let e=0,t=i;for(s=0;s<r;++s)e=e<<1|1&t,t>>=1;for(s=e;s<o;s+=n)l[s]=r<<16|a;++i}return[l,a]}readBlock(){let r,s;var o=this.str,i=this.getBits(3);if(1&i&&(this.eof=!0),0==(i>>=1)){if(-1===(l=o.getByte()))throw new b.FormatError("Bad block header in flate stream");var e=l;if(-1===(l=o.getByte()))throw new b.FormatError("Bad block header in flate stream");if(e|=l<<8,-1===(l=o.getByte()))throw new b.FormatError("Bad block header in flate stream");var t=l;if(-1===(l=o.getByte()))throw new b.FormatError("Bad block header in flate stream");if((t|=l<<8)!=(65535&~e)&&(0!=e||0!=t))throw new b.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var l=this.bufferLength,t=l+e;r=this.ensureBuffer(t),this.bufferLength=t,0==e?-1===o.peekByte()&&(this.eof=!0):(t=o.getBytes(e),r.set(t,l),t.length<e&&(this.eof=!0))}else{let e,n;if(1==i)e=x,n=S;else{if(2!=i)throw new b.FormatError("Unknown block type in flate stream");{var o=this.getBits(5)+257,l=this.getBits(5)+1,c=this.getBits(4)+4,h=new Uint8Array(y.length);let t;for(t=0;t<c;++t)h[y[t]]=this.getBits(3);var u=this.generateHuffmanTable(h),d=(s=0,t=0,o+l),f=new Uint8Array(d);let a,r,i;for(;t<d;){var g=this.getCode(u);if(16===g)a=2,r=3,i=s;else{if(17===g)a=3,r=3;else{if(18!==g){f[t++]=s=g;continue}a=7,r=11}i=s=0}let e=this.getBits(a)+r;for(;0<e--;)f[t++]=i}e=this.generateHuffmanTable(f.subarray(0,o)),n=this.generateHuffmanTable(f.subarray(o,d))}}let t=(r=this.buffer)?r.length:0,a=this.bufferLength;for(;;)if((p=this.getCode(e))<256)a+1>=t&&(r=this.ensureBuffer(a+1),t=r.length),r[a++]=p;else{if(256===p)return void(this.bufferLength=a);p-=257;let e=(p=v[p])>>16;0<e&&(e=this.getBits(e)),s=(65535&p)+e;var p=this.getCode(n),m=(65535&(p=w[p]))+(e=0<(e=p>>16)?this.getBits(e):e);a+s>=t&&(r=this.ensureBuffer(a+s),t=r.length);for(let e=0;e<s;++e,++a)r[a]=r[a-m]}}}}t.FlateStream=i},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var n=a(136),r=a(148),s=a(134),o=a(154),i=a(2);class l extends r.DecodeStream{constructor(e,t,a){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=a}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(!this.eof){var e,t=new o.Jbig2Image,a=[],r=(this.params instanceof s.Dict&&(e=this.params.get("JBIG2Globals"))instanceof n.BaseStream&&(e=e.getBytes(),a.push({data:e,start:0,end:e.length})),a.push({data:this.bytes,start:0,end:this.bytes.length}),t.parseChunks(a)),i=r.length;for(let e=0;e<i;e++)r[e]^=255;this.buffer=r,this.bufferLength=i,this.eof=!0}}}t.Jbig2Stream=l},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=a(2),L=a(135),i=a(155),c=a(151);class j extends r.BaseException{constructor(e){super("JBIG2 error: "+e,"Jbig2Error")}}class n{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class f{constructor(e,t,a){this.data=e,this.start=t,this.end=a}get decoder(){var e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)}get contextCache(){var e=new n;return(0,r.shadow)(this,"contextCache",e)}}function _(e,t,i){const n=e.getContexts(t);let s=1;function a(t){let a=0;for(let e=0;e<t;e++){var r=i.readBit(n,s);s=s<256?s<<1|r:511&(s<<1|r)|256,a=a<<1|r}return a>>>0}e=a(1),t=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);return 0===e?t:0<t?-t:null}function $(e,t,a){var r=e.getContexts("IAID");let i=1;for(let e=0;e<a;e++){var n=t.readBit(r,i);i=i<<1|n}return a<31?i&(1<<a)-1:2147483647&i}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"],U=[[{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}]],I=[{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}]}],X=[39717,1941,229,405],T=[32,8];function H(o,g,p,m,b,y,v,w){if(o)return G(new z(w.data,w.start,w.end),g,p,!1);if(0!==m||y||b||4!==v.length||3!==v[0].x||-1!==v[0].y||-3!==v[1].x||-1!==v[1].y||2!==v[2].x||-2!==v[2].y||-2!==v[3].x||-2!==v[3].y){var x=!!y,S=U[m].concat(v),A=(S.sort(function(e,t){return e.y-t.y||e.x-t.x}),S.length),k=new Int8Array(A),C=new Int8Array(A),O=[];let t=0,e=0,a=0,r=0,i,n;for(n=0;n<A;n++)k[n]=S[n].x,C[n]=S[n].y,e=Math.min(e,S[n].x),a=Math.max(a,S[n].x),r=Math.min(r,S[n].y),n<A-1&&S[n].y===S[n+1].y&&S[n].x===S[n+1].x-1?t|=1<<A-1-n:O.push(n);var F=O.length,I=new Int8Array(F),T=new Int8Array(F),M=new Uint16Array(F);for(i=0;i<F;i++)n=O[i],I[i]=S[n].x,T[i]=S[n].y,M[i]=1<<A-1-n;var P=-e,E=-r,N=g-a,D=X[m];let s=new Uint8Array(g);var B=[],R=w.decoder,L=w.contextCache.getContexts("GB");let o=0,l,c,h,u=0,d,f;for(let e=0;e<p;e++){if(b){var j=R.readBit(L,D);if(o^=j){B.push(s);continue}}for(s=new Uint8Array(s),B.push(s),l=0;l<g;l++)if(x&&y[e][l])s[l]=0;else{if(l>=P&&l<N&&e>=E)for(u=u<<1&t,n=0;n<F;n++)c=e+T[n],h=l+I[n],(d=B[c][h])&&(d=M[n],u|=d);else for(u=0,f=A-1,n=0;n<A;n++,f--)0<=(h=l+k[n])&&h<g&&0<=(c=e+C[n])&&(d=B[c][h])&&(u|=d<<f);var _=R.readBit(L,u);s[l]=_}}return B}{var l=g;var c=p;o=w;var h=o.decoder,u=o.contextCache.getContexts("GB"),d=[];let e,t,a,r,i,n,s;for(t=0;t<c;t++)for(i=d[t]=new Uint8Array(l),n=t<1?i:d[t-1],s=t<2?i:d[t-2],e=s[0]<<13|s[1]<<12|s[2]<<11|n[0]<<7|n[1]<<6|n[2]<<5|n[3]<<4,a=0;a<l;a++)i[a]=r=h.readBit(u,e),e=(31735&e)<<1|(a+3<l?s[a+3]<<11:0)|(a+4<l?n[a+4]<<4:0)|r;return d}}function q(n,e,t,s,o,l,a,r,i){let c=I[t].coding;var h=(c=0===t?c.concat([r[0]]):c).length,u=new Int32Array(h),d=new Int32Array(h);let f;for(f=0;f<h;f++)u[f]=c[f].x,d[f]=c[f].y;let g=I[t].reference;var p=(g=0===t?g.concat([r[1]]):g).length,m=new Int32Array(p),b=new Int32Array(p);for(f=0;f<p;f++)m[f]=g[f].x,b[f]=g[f].y;var y=s[0].length,v=s.length,w=T[t],x=[],S=i.decoder,A=i.contextCache.getContexts("GR");let k=0;for(let i=0;i<e;i++){if(a){var C=S.readBit(A,w);if(k^=C)throw new j("prediction is not supported")}var O=new Uint8Array(n);x.push(O);for(let r=0;r<n;r++){let e,t,a=0;for(f=0;f<h;f++)e=i+d[f],t=r+u[f],e<0||t<0||t>=n?a<<=1:a=a<<1|x[e][t];for(f=0;f<p;f++)e=i+b[f]-l,t=r+m[f]-o,e<0||e>=v||t<0||t>=y?a<<=1:a=a<<1|s[e][t];var F=S.readBit(A,a);O[r]=F}}return x}function d(r,i,n,t,e,o,s,l,c,h,u,d){if(r&&i)throw new j("symbol refinement with Huffman is not supported");var f=[];let g=0,p=(0,L.log2)(n.length+t);var m=u.decoder,b=u.contextCache;let a,y;for(r&&(a=N(1),y=[],p=Math.max(p,1));f.length<t;){var v=r?o.tableDeltaHeight.decode(d):_(b,"IADH",m);g+=v;let t=0,a=0;for(v=r?y.length:0;;){var w,x,S=r?o.tableDeltaWidth.decode(d):_(b,"IADW",m);if(null===S)break;t+=S,a+=t;let e;i?(S=_(b,"IAAI",m),e=1<S?E(r,i,t,g,0,S,1,n.concat(f),p,0,0,1,0,o,c,h,u,0,d):(S=$(b,m,p),w=_(b,"IARDX",m),x=_(b,"IARDY",m),S=S<n.length?n[S]:f[S-n.length],q(t,g,c,S,w,x,!1,h,u)),f.push(e)):r?y.push(t):(e=H(!1,t,g,s,!1,null,l,u),f.push(e))}if(r&&!i){var A,k=o.tableBitmapSize.decode(d);d.byteAlign();let s;0===k?s=function(t,a,r){var i=[];for(let e=0;e<r;e++){var n=new Uint8Array(a);i.push(n);for(let e=0;e<a;e++)n[e]=t.readBit();t.byteAlign()}return i}(d,a,g):(A=d.end,k=d.position+k,d.end=k,s=G(d,a,g,!1),d.end=A,d.position=k);var C=y.length;if(v===C-1)f.push(s);else{let e,t,a=0,r,i,n;for(e=v;e<C;e++){for(i=y[e],r=a+i,n=[],t=0;t<g;t++)n.push(s[t].subarray(a,r));f.push(n),a=r}}}}var O=[],F=[];let I=!1,T,M;for(var P=n.length+t;F.length<P;){let e=r?a.decode(d):_(b,"IAEX",m);for(;e--;)F.push(I);I=!I}for(T=0,M=n.length;T<M;T++)F[T]&&O.push(n[T]);for(let e=0;e<t;T++,e++)F[T]&&O.push(f[e]);return O}function E(l,c,h,e,t,a,u,d,f,g,p,m,b,y,v,w,x,S,A){if(l&&c)throw new j("refinement with Huffman is not supported");var k=[];let C,O;for(C=0;C<e;C++){if(O=new Uint8Array(h),t)for(let e=0;e<h;e++)O[e]=t;k.push(O)}var F=x.decoder,I=x.contextCache;let T=l?-y.tableDeltaT.decode(A):-_(I,"IADT",F),r=0;for(C=0;C<a;){var i=l?y.tableDeltaT.decode(A):_(I,"IADT",F),i=(T+=i,l?y.tableFirstS.decode(A):_(I,"IAFS",F));let o=r+=i;for(;;){let e=0;1<u&&(e=l?A.readBits(S):_(I,"IAIT",F));var M,P,E=u*T+e,N=l?y.symbolIDTable.decode(A):$(I,F,f),D=c&&(l?A.readBit():_(I,"IARI",F));let t=d[N],a=t[0].length,r=t.length;D&&(N=_(I,"IARDW",F),D=_(I,"IARDH",F),M=_(I,"IARDX",F),P=_(I,"IARDY",F),a+=N,r+=D,t=q(a,r,v,t,(N>>1)+M,(D>>1)+P,!1,w,x));var B=E-(1&m?0:r-1),R=o-(2&m?a-1:0);let i,n,s;if(g){for(i=0;i<r;i++)if(O=k[R+i]){s=t[i];var L=Math.min(h-B,a);switch(b){case 0:for(n=0;n<L;n++)O[B+n]|=s[n];break;case 2:for(n=0;n<L;n++)O[B+n]^=s[n];break;default:throw new j(`operator ${b} is not supported`)}}o+=r-1}else{for(n=0;n<r;n++)if(O=k[B+n])switch(s=t[n],b){case 0:for(i=0;i<a;i++)O[R+i]|=s[i];break;case 2:for(i=0;i<a;i++)O[R+i]^=s[i];break;default:throw new j(`operator ${b} is not supported`)}o+=a-1}C++;N=l?y.tableDeltaS.decode(A):_(I,"IADS",F);if(null===N)break;o+=N+p}}return k}function s(e,t,a,r){var i=[];let n=a;for(;n<r;){var s=function(t,e){var a={};a.number=(0,L.readUint32)(t,e);var r=63&(i=t[e+4]);if(!g[r])throw new j("invalid segment type: "+r);a.type=r,a.typeName=g[r],a.deferredNonRetain=!!(128&i);var i=!!(64&i);let n=(d=t[e+5])>>5&7;var s=[31&d];let o=e+6;if(7===d){n=536870911&(0,L.readUint32)(t,o-1),o+=3;let e=n+7>>3;for(s[0]=t[o++];0<--e;)s.push(t[o++])}else if(5===d||6===d)throw new j("invalid referred-to flags");a.retainBits=s;let l=4;a.number<=256?l=1:a.number<=65536&&(l=2);var c=[];let h,u;for(h=0;h<n;h++){let e;e=1===l?t[o]:(2===l?(0,L.readUint16):(0,L.readUint32))(t,o),c.push(e),o+=l}if(a.referredTo=c,i?(a.pageAssociation=(0,L.readUint32)(t,o),o+=4):a.pageAssociation=t[o++],a.length=(0,L.readUint32)(t,o),o+=4,4294967295===a.length){if(38!=r)throw new j("invalid unknown segment length");var e=p(t,o),d=!!(1&t[o+m]),f=new Uint8Array(6);for(d||(f[0]=255,f[1]=172),f[2]=e.height>>>24&255,f[3]=e.height>>16&255,f[4]=e.height>>8&255,f[5]=255&e.height,h=o,u=t.length;h<u;h++){let e=0;for(;e<6&&f[e]===t[h+e];)e++;if(6===e){a.length=h+6;break}}if(4294967295===a.length)throw new j("segment end was not found")}return a.headerEnd=o,a}(t,n),o=(n=s.headerEnd,{header:s,data:t});if(e.randomAccess||(o.start=n,n+=s.length,o.end=n),i.push(o),51===s.type)break}if(e.randomAccess)for(let e=0,t=i.length;e<t;e++)i[e].start=n,n+=i[e].header.length,i[e].end=n;return i}function p(e,t){return{width:(0,L.readUint32)(e,t),height:(0,L.readUint32)(e,t+4),x:(0,L.readUint32)(e,t+8),y:(0,L.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}const m=17;function o(s,o){for(let n=0,e=s.length;n<e;n++){l=void 0;c=void 0;h=void 0;u=void 0;d=void 0;f=void 0;g=void 0;var l=s[n];var c=o;var h=l.header,u=l.data,d=l.end;let e=l.start,t,a,r,i;switch(h.type){case 0:var f={},g=(0,L.readUint16)(u,e);if(f.huffman=!!(1&g),f.refinement=!!(2&g),f.huffmanDHSelector=g>>2&3,f.huffmanDWSelector=g>>4&3,f.bitmapSizeSelector=g>>6&1,f.aggregationInstancesSelector=g>>7&1,f.bitmapCodingContextUsed=!!(256&g),f.bitmapCodingContextRetained=!!(512&g),f.template=g>>10&3,f.refinementTemplate=g>>12&1,e+=2,!f.huffman){for(i=0===f.template?4:1,a=[],r=0;r<i;r++)a.push({x:(0,L.readInt8)(u,e),y:(0,L.readInt8)(u,e+1)}),e+=2;f.at=a}if(f.refinement&&!f.refinementTemplate){for(a=[],r=0;r<2;r++)a.push({x:(0,L.readInt8)(u,e),y:(0,L.readInt8)(u,e+1)}),e+=2;f.refinementAt=a}f.numberOfExportedSymbols=(0,L.readUint32)(u,e),e+=4,f.numberOfNewSymbols=(0,L.readUint32)(u,e),e+=4,t=[f,h.number,h.referredTo,u,e,d];break;case 6:case 7:var g={},f=(g.info=p(u,e),e+=m,(0,L.readUint16)(u,e));if(e+=2,g.huffman=!!(1&f),g.refinement=!!(2&f),g.logStripSize=f>>2&3,g.stripSize=1<<g.logStripSize,g.referenceCorner=f>>4&3,g.transposed=!!(64&f),g.combinationOperator=f>>7&3,g.defaultPixelValue=f>>9&1,g.dsOffset=f<<17>>27,g.refinementTemplate=f>>15&1,g.huffman&&(f=(0,L.readUint16)(u,e),e+=2,g.huffmanFS=3&f,g.huffmanDS=f>>2&3,g.huffmanDT=f>>4&3,g.huffmanRefinementDW=f>>6&3,g.huffmanRefinementDH=f>>8&3,g.huffmanRefinementDX=f>>10&3,g.huffmanRefinementDY=f>>12&3,g.huffmanRefinementSizeSelector=!!(16384&f)),g.refinement&&!g.refinementTemplate){for(a=[],r=0;r<2;r++)a.push({x:(0,L.readInt8)(u,e),y:(0,L.readInt8)(u,e+1)}),e+=2;g.refinementAt=a}g.numberOfSymbolInstances=(0,L.readUint32)(u,e),e+=4,t=[g,h.referredTo,u,e,d];break;case 16:f={},g=u[e++];f.mmr=!!(1&g),f.template=g>>1&3,f.patternWidth=u[e++],f.patternHeight=u[e++],f.maxPatternIndex=(0,L.readUint32)(u,e),e+=4,t=[f,h.number,u,e,d];break;case 22:case 23:g={},f=(g.info=p(u,e),e+=m,u[e++]);g.mmr=!!(1&f),g.template=f>>1&3,g.enableSkip=!!(8&f),g.combinationOperator=f>>4&7,g.defaultPixelValue=f>>7&1,g.gridWidth=(0,L.readUint32)(u,e),e+=4,g.gridHeight=(0,L.readUint32)(u,e),e+=4,g.gridOffsetX=4294967295&(0,L.readUint32)(u,e),e+=4,g.gridOffsetY=4294967295&(0,L.readUint32)(u,e),e+=4,g.gridVectorX=(0,L.readUint16)(u,e),e+=2,g.gridVectorY=(0,L.readUint16)(u,e),e+=2,t=[g,h.referredTo,u,e,d];break;case 38:case 39:f={},g=(f.info=p(u,e),e+=m,u[e++]);if(f.mmr=!!(1&g),f.template=g>>1&3,f.prediction=!!(8&g),!f.mmr){for(i=0===f.template?4:1,a=[],r=0;r<i;r++)a.push({x:(0,L.readInt8)(u,e),y:(0,L.readInt8)(u,e+1)}),e+=2;f.at=a}t=[f,u,e,d];break;case 48:g={width:(0,L.readUint32)(u,e),height:(0,L.readUint32)(u,e+4),resolutionX:(0,L.readUint32)(u,e+8),resolutionY:(0,L.readUint32)(u,e+12)},f=(4294967295===g.height&&delete g.height,u[e+16]);(0,L.readUint16)(u,e+17),g.lossless=!!(1&f),g.refinement=!!(2&f),g.defaultPixelValue=f>>2&1,g.combinationOperator=f>>3&3,g.requiresBuffer=!!(32&f),g.combinationOperatorOverride=!!(64&f),t=[g];break;case 49:case 50:case 51:break;case 53:t=[h.number,u,e,d];break;case 62:break;default:throw new j(`segment type ${h.typeName}(${h.type}) is not implemented`)}(l="on"+h.typeName)in c&&c[l].apply(c,t)}}class l{onPageInformation(e){var t=(this.currentPageInfo=e).width+7>>3,t=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&t.fill(255),this.buffer=t}drawBitmap(e,t){var a=this.currentPageInfo,r=e.width,i=e.height,n=a.width+7>>3,s=(a.combinationOperatorOverride?e:a).combinationOperator,o=this.buffer,l=128>>(7&e.x);let c=e.y*n+(e.x>>3),h,u,d,f;switch(s){case 0:for(h=0;h<i;h++){for(d=l,f=c,u=0;u<r;u++)t[h][u]&&(o[f]|=d),(d>>=1)||(d=128,f++);c+=n}break;case 2:for(h=0;h<i;h++){for(d=l,f=c,u=0;u<r;u++)t[h][u]&&(o[f]^=d),(d>>=1)||(d=128,f++);c+=n}break;default:throw new j(`operator ${s} is not supported`)}}onImmediateGenericRegion(e,t,a,r){var i=e.info,t=new f(t,a,r),a=H(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,t);this.drawBitmap(i,a)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,a,r,i,n){let s,o,l=(e.huffman&&(s=function(e,t,a){let r=0,i,n;switch(e.huffmanDHSelector){case 0:case 1:i=N(e.huffmanDHSelector+4);break;case 3:i=v(r,t,a),r++;break;default:throw new j("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:n=N(e.huffmanDWSelector+2);break;case 3:n=v(r,t,a),r++;break;default:throw new j("invalid Huffman DW selector")}let s,o;e.bitmapSizeSelector?(s=v(r,t,a),r++):s=N(1);o=e.aggregationInstancesSelector?v(r,t,a):N(1);return{tableDeltaHeight:i,tableDeltaWidth:n,tableBitmapSize:s,tableAggregateInstances:o}}(e,a,this.customTables),o=new z(r,i,n)),this.symbols);l||(this.symbols=l={});var c=[];for(const u of a){var h=l[u];h&&c.push(...h)}a=new f(r,i,n);l[t]=d(e.huffman,e.refinement,c,e.numberOfNewSymbols,e.numberOfExportedSymbols,s,e.template,e.at,e.refinementTemplate,e.refinementAt,a,o)}onImmediateTextRegion(e,t,a,r,i){var n=e.info;let s,o;var l=this.symbols,c=[];for(const d of t){var h=l[d];h&&c.push(...h)}var u=(0,L.log2)(c.length),t=(e.huffman&&(o=new z(a,r,i),s=function(e,t,a,i,n){var s=[];for(let e=0;e<=34;e++){var r=n.readBits(4);s.push(new b([e,r,0,0]))}var o=new y(s,!1);for(let r=s.length=0;r<i;){var l=o.decode(n);if(32<=l){let e,t,a;switch(l){case 32:if(0===r)throw new j("no previous value in symbol ID table");t=n.readBits(2)+3,e=s[r-1].prefixLength;break;case 33:t=n.readBits(3)+3,e=0;break;case 34:t=n.readBits(7)+11,e=0;break;default:throw new j("invalid code length in symbol ID table")}for(a=0;a<t;a++)s.push(new b([r,e,0,0])),r++}else s.push(new b([r,l,0,0])),r++}n.byteAlign();var c=new y(s,!1);let h=0,u,d,f;switch(e.huffmanFS){case 0:case 1:u=N(e.huffmanFS+6);break;case 3:u=v(h,t,a),h++;break;default:throw new j("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:d=N(e.huffmanDS+8);break;case 3:d=v(h,t,a),h++;break;default:throw new j("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:f=N(e.huffmanDT+11);break;case 3:f=v(h,t,a),h++;break;default:throw new j("invalid Huffman DT selector")}if(e.refinement)throw new j("refinement with Huffman is not supported");return{symbolIDTable:c,tableFirstS:u,tableDeltaS:d,tableDeltaT:f}}(e,t,this.customTables,c.length,o)),new f(a,r,i)),a=E(e.huffman,e.refinement,n.width,n.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,c,u,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,s,e.refinementTemplate,e.refinementAt,t,e.logStripSize,o);this.drawBitmap(n,a)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,a,r,i){let n=this.patterns;n||(this.patterns=n={});a=new f(a,r,i);n[t]=function(e,t,a,r,i,n){var s=[],o=(e||(s.push({x:-t,y:0}),0===i&&s.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})),(r+1)*t),l=H(e,o,a,i,!1,null,s,n),c=[];for(let e=0;e<=r;e++){var h=[],u=t*e,d=u+t;for(let e=0;e<a;e++)h.push(l[e].subarray(u,d));c.push(h)}return c}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,a)}onImmediateHalftoneRegion(e,t,a,r,i){var t=this.patterns[t[0]],n=e.info,a=new f(a,r,i),r=function(e,t,a,r,i,n,s,o,l,c,h,R,u,d,f){if(s)throw new j("skip is not supported");if(0!==o)throw new j(`operator "${o}" is not supported in halftone region`);var g=[];let p,m,b;for(p=0;p<i;p++){if(b=new Uint8Array(r),n)for(m=0;m<r;m++)b[m]=n;g.push(b)}var y,v,s=t.length,w=(o=t[0])[0].length,x=o.length,S=(0,L.log2)(s),A=[],k=(e||(A.push({x:a<=1?3:2,y:-1}),0===a&&A.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})),[]);let C,O;for(e&&(C=new z(f.data,f.start,f.end)),p=S-1;0<=p;p--)O=e?G(C,l,c,!0):H(!1,l,c,a,!1,null,A,f),k[p]=O;let F,I,T,M,P,E,N,D,B;for(F=0;F<c;F++)for(I=0;I<l;I++){for(T=0,M=0,m=S-1;0<=m;m--)T^=k[m][F][I],M|=T<<m;if(P=t[M],E=h+F*d+I*u>>8,N=R+F*u-I*d>>8,0<=E&&E+w<=r&&0<=N&&N+x<=i)for(p=0;p<x;p++)for(B=g[N+p],D=P[p],m=0;m<w;m++)B[E+m]|=D[m];else for(p=0;p<x;p++)if(!((v=N+p)<0||i<=v))for(B=g[v],D=P[p],m=0;m<w;m++)0<=(y=E+m)&&y<r&&(B[y]|=D[m])}return g}(e.mmr,t,e.template,n.width,n.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,a);this.drawBitmap(n,r)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,a,r){let i=this.customTables;i||(this.customTables=i={}),i[e]=function(e,t,a){var r=e[t],i=4294967295&(0,L.readUint32)(e,t+1),n=4294967295&(0,L.readUint32)(e,t+5),s=new z(e,t+9,a),o=1+(r>>1&7),l=1+(r>>4&7),c=[];let h,u,d=i;for(;h=s.readBits(o),u=s.readBits(l),c.push(new b([d,h,u,0])),d+=1<<u,d<n;);h=s.readBits(o),c.push(new b([i-1,h,32,0,"lower"])),h=s.readBits(o),c.push(new b([n,h,32,0])),1&r&&(h=s.readBits(o),c.push(new b([h,0])));return new y(c,!1)}(t,a,r)}}class b{constructor(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}}class h{constructor(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}buildTree(t,a){var r=t.prefixCode>>a&1;if(a<=0)this.children[r]=new h(t);else{let e=this.children[r];e||(this.children[r]=e=new h(null)),e.buildTree(t,a-1)}}decodeNode(e){if(this.isLeaf)return this.isOOB?null:(t=e.readBits(this.rangeLength),this.rangeLow+(this.isLowerRange?-t:t));var t=this.children[e.readBit()];if(t)return t.decodeNode(e);throw new j("invalid Huffman data")}}class y{constructor(a,e){e||this.assignPrefixCodes(a),this.rootNode=new h(null);for(let e=0,t=a.length;e<t;e++){var r=a[e];0<r.prefixLength&&this.rootNode.buildTree(r,r.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(t){var a=t.length;let r=0;for(let e=0;e<a;e++)r=Math.max(r,t[e].prefixLength);var i=new Uint32Array(r+1);for(let e=0;e<a;e++)i[t[e].prefixLength]++;let e=1,n=0,s,o,l;for(i[0]=0;e<=r;){for(n=n+i[e-1]<<1,s=n,o=0;o<a;)(l=t[o]).prefixLength===e&&(l.prefixCode=s,s++),o++;e++}}}const u={};function N(e){var t=u[e];if(!t){let a;switch(e){case 1:a=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:a=[[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:a=[[-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:a=[[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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[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:a=[[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:a=[[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:a=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:a=[[-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 j(`standard table B.${e} does not exist`)}for(let e=0,t=a.length;e<t;e++)a[e]=new b(a[e]);t=new y(a,!0),u[e]=t}return t}class z{constructor(e,t,a){this.data=e,this.start=t,this.end=a,this.position=t,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new j("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t=0,a;for(a=e-1;0<=a;a--)t|=this.readBit()<<a;return t}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function v(a,r,i){let n=0;for(let e=0,t=r.length;e<t;e++){var s=i[r[e]];if(s){if(a===n)return s;n++}}throw new j("can't find custom Huffman table")}function G(e,a,t,r){var i=new c.CCITTFaxDecoder(e,{K:-1,Columns:a,Rows:t,BlackIs1:!0,EndOfBlock:r}),n=[];let s,o=!1;for(let e=0;e<t;e++){var l=new Uint8Array(a);n.push(l);let t=-1;for(let e=0;e<a;e++)t<0&&(-1===(s=i.readNextChar())&&(s=0,o=!0),t=7),l[e]=s>>t&1,t--}if(r&&!o)for(let e=0;e<5&&-1!==i.readNextChar();e++);return n}t.Jbig2Image=class{parseChunks(e){var a=e,r=new l;for(let e=0,t=a.length;e<t;e++){var i=a[e];o(s({},i.data,i.start,i.end),r)}return r.buffer}parse(e){throw new Error("Not implemented: Jbig2Image.parse")}}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const l=[{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}];t.ArithmeticDecoder=class{constructor(e,t,a){this.data=e,this.bp=t,this.dataEnd=a,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){var e=this.data;let t=this.bp;255===e[t]?143<e[t+1]?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),65535<this.clow&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let a=e[t]>>1,r=1&e[t];var i=l[a],n=i.qe;let s,o=this.a-n;if(this.chigh<n)a=o<n?(o=n,s=r,i.nmps):(o=n,s=1^r,1===i.switchFlag&&(r=s),i.nlps);else{if(this.chigh-=n,0!=(32768&o))return this.a=o,r;a=o<n?(s=1^r,1===i.switchFlag&&(r=s),i.nlps):(s=r,i.nmps)}for(;0===this.ct&&this.byteIn(),o<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--,0==(32768&o););return this.a=o,e[t]=a<<1|r,s}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=a(148),o=a(134),l=a(157),i=a(2);class n extends r.DecodeStream{constructor(e,t,a){for(var r;-1!==(r=e.getByte());)if(255===r){e.skip(-1);break}super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=a}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},a=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(a)){var r=this.dict.get("BPC","BitsPerComponent")||8,i=a.length,n=new Int32Array(i);let t=!1;var s=(1<<r)-1;for(let e=0;e<i;e+=2)n[e]=256*(a[e+1]-a[e])|0,n[e+1]=a[e]*s|0,256===n[e]&&0===n[e+1]||(t=!0);t&&(e.decodeTransform=n)}this.params instanceof o.Dict&&(r=this.params.get("ColorTransform"),Number.isInteger(r))&&(e.colorTransform=r);r=new l.JpegImage(e),e=(r.parse(this.bytes),r.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0}));this.buffer=e,this.bufferLength=e.length,this.eof=!0}}}t.JpegStream=n},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var V=a(2),K=a(135);class Y extends V.BaseException{constructor(e){super("JPEG error: "+e,"JpegError")}}class J extends V.BaseException{constructor(e,t){super(e,"DNLMarkerError"),this.scanLines=t}}class Z extends V.BaseException{constructor(e){super(e,"EOIMarkerError")}}const Q=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]),O=4017,F=799,I=3406,T=2276,M=1567,P=3784,E=5793,N=2896;function z(e,t,a){return 64*((e.blocksPerLine+1)*t+a)}function ee(a,r,i,e,t,c,h,n,u,s){let R=9<arguments.length&&void 0!==s&&s;const o=i.mcusPerLine;var s=i.progressive,L=r;let l=0,d=0;function f(){if(0<d)return d--,l>>d&1;if(255===(l=a[r++])){var e=a[r++];if(e){if(220===e&&R){r+=2;var t=(0,K.readUint16)(a,r);if(r+=2,0<t&&t!==i.scanLines)throw new J("Found DNL marker (0xFFDC) while parsing scan data",t)}else if(217===e){if(R){t=v*(8===i.precision?8:0);if(0<t&&5<=Math.round(i.scanLines/t))throw new J("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",t)}throw new Z("Found EOI marker (0xFFD9) while parsing scan data")}throw new Y("unexpected marker "+(l<<8|e).toString(16))}}return d=7,l>>>7}function g(e){let t=e;for(;;){switch(typeof(t=t[f()])){case"number":return t;case"object":continue}throw new Y("invalid huffman sequence")}}function p(e){let t=0;for(;0<e;)t=t<<1|f(),e--;return t}function m(e){var t;return 1===e?1===f()?1:-1:1<<e-1<=(t=p(e))?t:t+(-1<<e)+1}let b=0;let y=0,j;let v=0;var _,$,w,U,x,X,H,S,A,q,k,C=e.length;let O,F,I,T,M,P,E=(P=s?0===c?0===n?function(e,t){var a=0===(a=g(e.huffmanTableDC))?0:m(a)<<u;e.blockData[t]=e.pred+=a}:function(e,t){e.blockData[t]|=f()<<u}:0===n?function(t,a){if(0<b)b--;else{let e=c;for(var r=h;e<=r;){var i=g(t.huffmanTableAC),n=15&i,i=i>>4;if(0==n){if(i<15){b=p(i)+(1<<i)-1;break}e+=16}else{e+=i;i=Q[e];t.blockData[a+i]=m(n)*(1<<u),e++}}}}:function(e,t){let a=c;var r,i,n=h;let s=0;for(;a<=n;){var o=t+Q[a],l=e.blockData[o]<0?-1:1;switch(y){case 0:if(r=15&(i=g(e.huffmanTableAC)),s=i>>4,0==r)y=s<15?(b=p(s)+(1<<s),4):(s=16,1);else{if(1!=r)throw new Y("invalid ACn encoding");j=m(r),y=s?2:3}continue;case 1:case 2:e.blockData[o]?e.blockData[o]+=l*(f()<<u):0===--s&&(y=2===y?3:0);break;case 3:e.blockData[o]?e.blockData[o]+=l*(f()<<u):(e.blockData[o]=j<<u,y=0);break;case 4:e.blockData[o]&&(e.blockData[o]+=l*(f()<<u))}a++}4===y&&0===--b&&(y=0)}:function(e,t){var a=0===(a=g(e.huffmanTableDC))?0:m(a);e.blockData[t]=e.pred+=a;let r=1;for(;r<64;){var i=g(e.huffmanTableAC),n=15&i,i=i>>4;if(0==n){if(i<15)break;r+=16}else{r+=i;i=Q[r];e.blockData[t+i]=m(n),r++}}},0),N,D;for(D=1===C?e[0].blocksPerLine*e[0].blocksPerColumn:o*i.mcusPerColumn;E<=D;){var B=t?Math.min(D-E,t):D;if(0<B){for(F=0;F<C;F++)e[F].pred=0;if(b=0,1===C)for(O=e[0],M=0;M<B;M++)A=O,q=P,k=E,v=k/A.blocksPerLine|0,k%=A.blocksPerLine,q(A,z(A,v,k)),E++;else for(M=0;M<B;M++){for(F=0;F<C;F++)for(_=(O=e[F]).h,$=O.v,I=0;I<$;I++)for(T=0;T<_;T++)w=O,U=P,x=E,X=I,H=T,S=void 0,S=x/o|0,x%=o,v=S*w.v+X,S=x*w.h+H,U(w,z(w,v,S));E++}}if(d=0,!(N=te(a,r)))break;if(N.invalid&&((0,V.warn)(`decodeScan - ${0<B?"unexpected":"excessive"} MCU data, current marker is: `+N.invalid),r=N.offset),!(65488<=N.marker&&N.marker<=65495))break;r+=2}return r-L}function r(e,y){var a=y.blocksPerLine,r=y.blocksPerColumn,v=new Int16Array(64);for(let t=0;t<r;t++)for(let e=0;e<a;e++){var w=z(y,t,e);{x=void 0;S=void 0;A=void 0;k=void 0;C=void 0;var x=y;var S=w;var A=v;var k=x.quantizationTable,C=x.blockData;let t,a,r,i,n,s,o,l,c,h,u,d,f,g,p,m,b;if(!k)throw new Y("missing required Quantization Table.");for(let e=0;e<64;e+=8)c=C[S+e],h=C[S+e+1],u=C[S+e+2],d=C[S+e+3],f=C[S+e+4],g=C[S+e+5],p=C[S+e+6],m=C[S+e+7],c*=k[e],0==(h|u|d|f|g|p|m)?(b=E*c+512>>10,A[e]=b,A[e+1]=b,A[e+2]=b,A[e+3]=b,A[e+4]=b,A[e+5]=b,A[e+6]=b,A[e+7]=b):(h*=k[e+1],u*=k[e+2],d*=k[e+3],f*=k[e+4],g*=k[e+5],p*=k[e+6],m*=k[e+7],t=E*c+128>>8,a=E*f+128>>8,r=u,i=p,n=N*(h-m)+128>>8,l=N*(h+m)+128>>8,s=d<<4,o=g<<4,t=t+a+1>>1,a=t-a,b=r*P+i*M+128>>8,r=r*M-i*P+128>>8,i=b,n=n+o+1>>1,o=n-o,l=l+s+1>>1,s=l-s,t=t+i+1>>1,i=t-i,a=a+r+1>>1,r=a-r,b=n*T+l*I+2048>>12,n=n*I-l*T+2048>>12,l=b,b=s*F+o*O+2048>>12,s=s*O-o*F+2048>>12,o=b,A[e]=t+l,A[e+7]=t-l,A[e+1]=a+o,A[e+6]=a-o,A[e+2]=r+s,A[e+5]=r-s,A[e+3]=i+n,A[e+4]=i-n);for(let e=0;e<8;++e)c=A[e],h=A[e+8],u=A[e+16],d=A[e+24],f=A[e+32],g=A[e+40],p=A[e+48],m=A[e+56],0==(h|u|d|f|g|p|m)?(b=(b=E*c+8192>>14)<-2040?0:2024<=b?255:b+2056>>4,C[S+e]=b,C[S+e+8]=b,C[S+e+16]=b,C[S+e+24]=b,C[S+e+32]=b,C[S+e+40]=b,C[S+e+48]=b,C[S+e+56]=b):(t=E*c+2048>>12,a=E*f+2048>>12,r=u,i=p,n=N*(h-m)+2048>>12,l=N*(h+m)+2048>>12,s=d,o=g,t=4112+(t+a+1>>1),a=t-a,b=r*P+i*M+2048>>12,r=r*M-i*P+2048>>12,i=b,n=n+o+1>>1,o=n-o,l=l+s+1>>1,s=l-s,t=t+i+1>>1,i=t-i,a=a+r+1>>1,r=a-r,b=n*T+l*I+2048>>12,n=n*I-l*T+2048>>12,l=b,b=s*F+o*O+2048>>12,s=s*O-o*F+2048>>12,o=b,c=t+l,m=t-l,h=a+o,p=a-o,u=r+s,g=r-s,d=i+n,f=i-n,c<16?c=0:4080<=c?c=255:c>>=4,h<16?h=0:4080<=h?h=255:h>>=4,u<16?u=0:4080<=u?u=255:u>>=4,d<16?d=0:4080<=d?d=255:d>>=4,f<16?f=0:4080<=f?f=255:f>>=4,g<16?g=0:4080<=g?g=255:g>>=4,p<16?p=0:4080<=p?p=255:p>>=4,m<16?m=0:4080<=m?m=255:m>>=4,C[S+e]=c,C[S+e+8]=h,C[S+e+16]=u,C[S+e+24]=d,C[S+e+32]=f,C[S+e+40]=g,C[S+e+48]=p,C[S+e+56]=m)}}return y.blockData}function te(e,t,a){var a=2<arguments.length&&void 0!==a?a:t,r=e.length-1;let i=a<t?a:t;if(r<=t)return null;a=(0,K.readUint16)(e,t);if(65472<=a&&a<=65534)return{invalid:null,marker:a,offset:t};let n=(0,K.readUint16)(e,i);for(;!(65472<=n&&n<=65534);){if(++i>=r)return null;n=(0,K.readUint16)(e,i)}return{invalid:a.toString(16),marker:n,offset:i}}t.JpegImage=class{constructor(){var{decodeTransform:e=null,colorTransform:t=-1}=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._decodeTransform=e,this._colorTransform=t}parse(s){var{dnlScanLines:o=null}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};let l=0,c=null,h=null,u,d,f=0;var g=[],p=[],m=[];let b=(0,K.readUint16)(s,l);if(l+=2,65496!==b)throw new Y("SOI not found");b=(0,K.readUint16)(s,l),l+=2;e:for(;65497!==b;){let r,i,n;switch(b){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:var y=function(){var e=(0,K.readUint16)(s,l);let t=(l+=2)+e-2;return(e=te(s,t,l))&&e.invalid&&((0,V.warn)("readDataBlock - incorrect length, current marker is: "+e.invalid),t=e.offset),e=s.subarray(l,t),l+=e.length,e}();65504===b&&74===y[0]&&70===y[1]&&73===y[2]&&70===y[3]&&0===y[4]&&(c={version:{major:y[5],minor:y[6]},densityUnits:y[7],xDensity:y[8]<<8|y[9],yDensity:y[10]<<8|y[11],thumbWidth:y[12],thumbHeight:y[13],thumbData:y.subarray(14,14+3*y[12]*y[13])}),65518===b&&65===y[0]&&100===y[1]&&111===y[2]&&98===y[3]&&101===y[4]&&(h={version:y[5]<<8|y[6],flags0:y[7]<<8|y[8],flags1:y[9]<<8|y[10],transformCode:y[11]});break;case 65499:var _=(0,K.readUint16)(s,l)+(l+=2)-2;let e;for(;l<_;){var v=s[l++],w=new Uint16Array(64);if(v>>4==0)for(i=0;i<64;i++)w[e=Q[i]]=s[l++];else{if(v>>4!=1)throw new Y("DQT - invalid table spec");for(i=0;i<64;i++)w[e=Q[i]]=(0,K.readUint16)(s,l),l+=2}g[15&v]=w}break;case 65472:case 65473:case 65474:if(u)throw new Y("Only single frame JPEGs supported");l+=2,(u={}).extended=65473===b,u.progressive=65474===b,u.precision=s[l++];var y=(0,K.readUint16)(s,l),$=(l+=2,u.scanLines=o||y,u.samplesPerLine=(0,K.readUint16)(s,l),l+=2,u.components=[],u.componentIds={},s[l++]);let t=0,a=0;for(r=0;r<$;r++){var U=s[l],x=s[l+1]>>4,S=15&s[l+1],X=(t<x&&(t=x),a<S&&(a=S),s[l+2]);n=u.components.push({h:x,v:S,quantizationId:X,quantizationTable:null}),u.componentIds[U]=n-1,l+=3}u.maxH=t,u.maxV=a,T=I=F=O=C=k=A=void 0;var A=u,k=Math.ceil(A.samplesPerLine/8/A.maxH),C=Math.ceil(A.scanLines/8/A.maxV);for(const j of A.components){var O=Math.ceil(Math.ceil(A.samplesPerLine/8)*j.h/A.maxH),F=Math.ceil(Math.ceil(A.scanLines/8)*j.v/A.maxV),I=k*j.h,T=C*j.v;j.blockData=new Int16Array(64*T*(1+I)),j.blocksPerLine=O,j.blocksPerColumn=F}A.mcusPerLine=k,A.mcusPerColumn=C;break;case 65476:var H=(0,K.readUint16)(s,l);for(l+=2,r=2;r<H;){var M=s[l++],P=new Uint8Array(16);let e=0;for(i=0;i<16;i++,l++)e+=P[i]=s[l];var E=new Uint8Array(e);for(i=0;i<e;i++,l++)E[i]=s[l];r+=17+e,(M>>4==0?m:p)[15&M]=function(e,t){let a=0,r,i,n=16;for(;0<n&&!e[n-1];)n--;var s=[{children:[],index:0}];let o=s[0],l;for(r=0;r<n;r++){for(i=0;i<e[r];i++){for((o=s.pop()).children[o.index]=t[a];0<o.index;)o=s.pop();for(o.index++,s.push(o);s.length<=r;)s.push(l={children:[],index:0}),o.children[o.index]=l.children,o=l;a++}r+1<n&&(s.push(l={children:[],index:0}),o.children[o.index]=l.children,o=l)}return s[0].children}(P,E)}break;case 65501:l+=2,d=(0,K.readUint16)(s,l),l+=2;break;case 65498:var q=1==++f&&!o,z=(l+=2,s[l++]),N=[];for(r=0;r<z;r++){var D=s[l++],B=u.componentIds[D],B=u.components[B],D=(B.index=D,s[l++]);B.huffmanTableDC=m[D>>4],B.huffmanTableAC=p[15&D],N.push(B)}var R=s[l++],G=s[l++],L=s[l++];try{var W=ee(s,l,u,N,d,R,G,L>>4,15&L,q);l+=W}catch(e){if(e instanceof J)return(0,V.warn)(e.message+" -- attempting to re-parse the JPEG image."),this.parse(s,{dnlScanLines:e.scanLines});if(e instanceof Z){(0,V.warn)(e.message+" -- ignoring the rest of the image data.");break e}throw e}break;case 65500:l+=4;break;case 65535:255!==s[l]&&l--;break;default:R=te(s,l-2,l-3);if(R&&R.invalid){(0,V.warn)("JpegImage.parse - unexpected data, current marker is: "+R.invalid),l=R.offset;break}if(!R||l>=s.length-1){(0,V.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new Y("JpegImage.parse - unknown marker: "+b.toString(16))}b=(0,K.readUint16)(s,l),l+=2}this.width=u.samplesPerLine,this.height=u.scanLines,this.jfif=c,this.adobe=h,this.components=[];for(const t of u.components){var e=g[t.quantizationId];e&&(t.quantizationTable=e),this.components.push({index:t.index,output:r(u,t),scaleX:t.h/u.maxH,scaleY:t.v/u.maxV,blocksPerLine:t.blocksPerLine,blocksPerColumn:t.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t){var a,r,i,n,s,o,l=2<arguments.length&&void 0!==arguments[2]&&arguments[2],c=this.width/e,h=this.height/t;let u,d,f,g,p,m=0;var b=this.components.length,y=e*t*b,v=new Uint8ClampedArray(y),w=new Uint32Array(e);let x;for(f=0;f<b;f++){if(r=(a=this.components[f]).scaleX*c,i=a.scaleY*h,m=f,o=a.output,n=a.blocksPerLine+1<<3,r!==x){for(u=0;u<e;u++)g=0|u*r,w[u]=(4294967288&g)<<3|7&g;x=r}for(d=0;d<t;d++)for(s=n*(4294967288&(g=0|d*i))|(7&g)<<3,u=0;u<e;u++)v[m]=o[s+w[u]],m+=b}let S=this._decodeTransform;if(S=l||4!==b?S:S||new Int32Array([-256,255,-256,255,-256,255,-256,255]))for(f=0;f<y;)for(g=0,p=0;g<b;g++,f++,p+=2)v[f]=(v[f]*S[p]>>8)+S[p+1];return v}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(a){var r,i,n;for(let e=0,t=a.length;e<t;e+=3)r=a[e],i=a[e+1],n=a[e+2],a[e]=r-179.456+1.402*n,a[e+1]=r+135.459-.344*i-.714*n,a[e+2]=r-226.816+1.772*i;return a}_convertYcckToRgb(a){var r,i,n,s;let o=0;for(let e=0,t=a.length;e<t;e+=4)r=a[e],i=a[e+1],n=a[e+2],s=a[e+3],a[o++]=i*(-660635669420364e-19*i+.000437130475926232*n-54080610064599e-18*r+.00048449797120281*s-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*r-.00477271405408747*s+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*s+.48357088451265)+s*(-.000336197177618394*s+.484791561490776),a[o++]=107.268039397724+i*(219927104525741e-19*i-.000640992018297945*n+.000659397001245577*r+.000426105652938837*s-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*r+.000770482631801132*s-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*s+.25802910206845)+s*(-.000318913117588328*s-.213742400323665),a[o++]=i*(-.000570115196973677*i-263409051004589e-19*n+.0020741088115012*r-.00288260236853442*s+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*r+.000560833691242812*s-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*s+.116935020465145)+s*(-.000343531996510555*s+.24165260232407);return a.subarray(0,o)}_convertYcckToCmyk(a){var r,i,n;for(let e=0,t=a.length;e<t;e+=4)r=a[e],i=a[e+1],n=a[e+2],a[e]=434.456-r-1.402*n,a[e+1]=119.541-r+.344*i+.714*n,a[e+2]=481.816-r-1.772*i;return a}_convertCmykToRgb(a){var r,i,n,s;let o=0;for(let e=0,t=a.length;e<t;e+=4)r=a[e],i=a[e+1],n=a[e+2],s=a[e+3],a[o++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*i+.0002894718188643294*n+.003264231057537806*s-1.1185611867203937)+i*(26374107616089405e-21*i-8626949158638572e-20*n-.0002748769067499491*s-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*s+.0686742238595345)-s*(.0003361971776183937*s+.7430659151342254),a[o++]=255+r*(.00013596372813588848*r+.000924537132573585*i+.00010567359618683593*n+.0004791864687436512*s-.3109689587515875)+i*(-.00023545346108370344*i+.0002702845253534714*n+.0020200308977307156*s-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*s-.09751927774728933)-s*(.0003189131175883281*s+.7364883807733168),a[o++]=255+r*(13598650411385307e-21*r+.00012423956175490851*i+.0004751985097583589*n-36729317476630422e-22*s-.05562186980264034)+i*(.00016141380598724676*i+.0009692239130725186*n+.0007782692450036253*s-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*s-.7591454649749609)-s*(.0003435319965105553*s+.7063770186160144);return a.subarray(0,o)}getData(t){var{width:t,height:e,forceRGB:a=!1,isSourcePDF:r=!1}=t;if(4<this.numComponents)throw new Y("Unsupported color mode");t=this._getLinearizedBlockData(t,e,r);if(1===this.numComponents&&a){var i=new Uint8ClampedArray(3*t.length);let e=0;for(const n of t)i[e++]=n,i[e++]=n,i[e++]=n;return i}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(t);if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgb(t):this._convertYcckToCmyk(t);if(a)return this._convertCmykToRgb(t)}return t}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=a(148),m=a(159),i=a(2);class n extends r.DecodeStream{constructor(e,t,a){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=a}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(!this.eof){var r=new m.JpxImage,i=(r.parse(this.bytes),r.width),e=r.height,n=r.componentsCount,t=r.tiles.length;if(1===t)this.buffer=r.tiles[0].items;else{var s=new Uint8ClampedArray(i*e*n);for(let e=0;e<t;e++){var o=r.tiles[e],l=o.width,c=o.height,h=o.left,u=o.top,d=o.items;let t=0,a=(i*u+h)*n;var f=i*n,g=l*n;for(let e=0;e<c;e++){var p=d.subarray(t,t+g);s.set(p,a),t+=g,a+=f}}this.buffer=s}this.bufferLength=this.buffer.length,this.eof=!0}}}t.JpxStream=n},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var ie=a(2),ne=a(135),se=a(155);class oe extends ie.BaseException{constructor(e){super("JPX error: "+e,"JpxError")}}const le={LL:0,LH:1,HL:1,HH:2};function ce(e,t,a){var r=a.xcb_,a=a.ycb_,i=1<<r,n=1<<a,s=t.tbx0>>r,o=t.tby0>>a,l=t.tbx1+i-1>>r,c=t.tby1+n-1>>a,h=t.resolution.precinctParameters,u=[],d=[];let f,g,p,m;for(g=o;g<c;g++)for(f=s;f<l;f++){(p={cbx:f,cby:g,tbx0:i*f,tby0:n*g,tbx1:i*(f+1),tby1:n*(g+1)}).tbx0_=Math.max(t.tbx0,p.tbx0),p.tby0_=Math.max(t.tby0,p.tby0),p.tbx1_=Math.min(t.tbx1,p.tbx1),p.tby1_=Math.min(t.tby1,p.tby1);var b=Math.floor((p.tbx0_-t.tbx0)/h.precinctWidthInSubband),y=Math.floor((p.tby0_-t.tby0)/h.precinctHeightInSubband);if(m=b+y*h.numprecinctswide,p.precinctNumber=m,p.subbandType=t.type,p.Lblock=3,!(p.tbx1_<=p.tbx0_||p.tby1_<=p.tby0_)){u.push(p);let e=d[m];void 0!==e?(f<e.cbxMin?e.cbxMin=f:f>e.cbxMax&&(e.cbxMax=f),g<e.cbyMin?e.cbxMin=g:g>e.cbyMax&&(e.cbyMax=g)):d[m]=e={cbxMin:f,cbyMin:g,cbxMax:f,cbyMax:g},p.precinct=e}}t.codeblockParameters={codeblockWidth:r,codeblockHeight:a,numcodeblockwide:l-s+1,numcodeblockhigh:c-o+1},t.codeblocks=u,t.precincts=d}function m(e,a,t){var r=[],i=e.subbands;for(let e=0,t=i.length;e<t;e++){var n=i[e].codeblocks;for(let e=0,t=n.length;e<t;e++){var s=n[e];s.precinctNumber===a&&r.push(s)}}return{layerNumber:t,codeblocks:r}}function he(e){var t=e.SIZ,a=e.currentTile.index;const i=e.tiles[a],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz;let o=0;for(let e=0;e<s;e++)o=Math.max(o,i.components[e].codingStyleParameters.decompositionLevelsCount);let l=0,c=0,h=0,u=0;this.nextPacket=function(){for(;l<n;l++){for(;c<=o;c++){for(;h<s;h++){var e=i.components[h];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],a=t.precinctParameters.numprecincts;u<a;){var r=m(t,u,l);return u++,r}u=0}}h=0}c=0}throw new oe("Out of packets")}}function ue(e){var t=e.SIZ,a=e.currentTile.index;const i=e.tiles[a],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz;let o=0;for(let e=0;e<s;e++)o=Math.max(o,i.components[e].codingStyleParameters.decompositionLevelsCount);let l=0,c=0,h=0,u=0;this.nextPacket=function(){for(;l<=o;l++){for(;c<n;c++){for(;h<s;h++){var e=i.components[h];if(!(l>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[l],a=t.precinctParameters.numprecincts;u<a;){var r=m(t,u,c);return u++,r}u=0}}h=0}c=0}throw new oe("Out of packets")}}function de(e){var t=e.SIZ,a=e.currentTile.index;const r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz;let s,o,l,c,h=0;for(l=0;l<n;l++){var u=r.components[l];h=Math.max(h,u.codingStyleParameters.decompositionLevelsCount)}const d=new Int32Array(h+1);for(o=0;o<=h;++o){let e=0;for(l=0;l<n;++l){var f=r.components[l].resolutions;o<f.length&&(e=Math.max(e,f[o].precinctParameters.numprecincts))}d[o]=e}s=0,o=0,l=0,c=0,this.nextPacket=function(){for(;o<=h;o++){for(;c<d[o];c++){for(;l<n;l++){var e=r.components[l];if(!(o>e.codingStyleParameters.decompositionLevelsCount)){var t=e.resolutions[o],e=t.precinctParameters.numprecincts;if(!(c>=e)){for(;s<i;){var a=m(t,c,s);return s++,a}s=0}}}l=0}c=0}throw new oe("Out of packets")}}function fe(e){var t=e.SIZ,a=e.currentTile.index;const s=e.tiles[a],o=s.codingStyleDefaultParameters.layersCount,l=t.Csiz,c=r(s),h=c;let u=0,d=0,f=0,g=0,p=0;this.nextPacket=function(){for(;p<h.maxNumHigh;p++){for(;g<h.maxNumWide;g++){for(;f<l;f++){for(var e=s.components[f],t=e.codingStyleParameters.decompositionLevelsCount;d<=t;d++){var a=e.resolutions[d],r=c.components[f].resolutions[d],i=b(g,p,r,h,a);if(null!==i){for(;u<o;){var n=m(a,i,u);return u++,n}u=0}}d=0}f=0}g=0}throw new oe("Out of packets")}}function ge(e){var t=e.SIZ,a=e.currentTile.index;const o=e.tiles[a],l=o.codingStyleDefaultParameters.layersCount,c=t.Csiz,h=r(o);let u=0,d=0,f=0,g=0,p=0;this.nextPacket=function(){for(;f<c;++f){for(var e=o.components[f],t=h.components[f],a=e.codingStyleParameters.decompositionLevelsCount;p<t.maxNumHigh;p++){for(;g<t.maxNumWide;g++){for(;d<=a;d++){var r=e.resolutions[d],i=t.resolutions[d],n=b(g,p,i,t,r);if(null!==n){for(;u<l;){var s=m(r,n,u);return u++,s}u=0}}d=0}g=0}p=0}throw new oe("Out of packets")}}function b(e,t,a,r,i){e*=r.minWidth,t*=r.minHeight;return e%a.width!=0||t%a.height!=0?null:(r=t/a.width*i.precinctParameters.numprecinctswide,e/a.height+r)}function r(s){var t=s.components.length;let o=Number.MAX_VALUE,l=Number.MAX_VALUE,c=0,h=0;var u=new Array(t);for(let e=0;e<t;e++){var d=s.components[e],f=d.codingStyleParameters.decompositionLevelsCount,g=new Array(f+1);let t=Number.MAX_VALUE,a=Number.MAX_VALUE,r=0,i=0,n=1;for(let e=f;0<=e;--e){var p=d.resolutions[e],m=n*p.precinctParameters.precinctWidth,b=n*p.precinctParameters.precinctHeight;t=Math.min(t,m),a=Math.min(a,b),r=Math.max(r,p.precinctParameters.numprecinctswide),i=Math.max(i,p.precinctParameters.numprecinctshigh),g[e]={width:m,height:b},n<<=1}o=Math.min(o,t),l=Math.min(l,a),c=Math.max(c,r),h=Math.max(h,i),u[e]={resolutions:g,minWidth:t,minHeight:a,maxNumWide:r,maxNumHigh:i}}return{components:u,minWidth:o,minHeight:l,maxNumWide:c,maxNumHigh:h}}t.JpxImage=class{constructor(){this.failOnCorruptedImage=!1}parse(i){if(65359===(0,ne.readUint16)(i,0))this.parseCodestream(i,0,i.length);else{var n=i.length;let r=0;for(;r<n;){let e=8,t=(0,ne.readUint32)(i,r);var s=(0,ne.readUint32)(i,r+4);if(r+=e,1===t&&(t=4294967296*(0,ne.readUint32)(i,r)+(0,ne.readUint32)(i,r+4),r+=8,e+=8),(t=0===t?n-r+e:t)<e)throw new oe("Invalid box field size");var o=t-e;let a=!0;switch(s){case 1785737832:a=!1;break;case 1668246642:var l=i[r];if(1===l){var c=(0,ne.readUint32)(i,r+3);switch(c){case 16:case 17:case 18:break;default:(0,ie.warn)("Unknown colorspace "+c)}}else 2===l&&(0,ie.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(i,r,r+o);break;case 1783636e3:218793738!==(0,ne.readUint32)(i,r)&&(0,ie.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:l=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,255&s);(0,ie.warn)(`Unsupported header type ${s} (${l}).`)}a&&(r+=o)}}}parseImageProperties(e){let t=e.getByte();for(;0<=t;){var a,r,i,n,s;if(65361==(t<<8|(t=e.getByte())))return e.skip(4),a=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.getInt32()>>>0,e.skip(16),s=e.getUint16(),this.width=a-i,this.height=r-n,this.componentsCount=s,void(this.bitsPerComponent=8)}throw new oe("No size marker found in JPX stream")}parseCodestream(c,e,t){var h,u,d={};let f=!1;try{let l=e;for(;l+1<t;){var g=(0,ne.readUint16)(c,l);l+=2;let t=0,a,r,i,n,s,o;switch(g){case 65359:d.mainHeader=!0;break;case 65497:break;case 65361:t=(0,ne.readUint16)(c,l);var p={},z=(p.Xsiz=(0,ne.readUint32)(c,l+4),p.Ysiz=(0,ne.readUint32)(c,l+8),p.XOsiz=(0,ne.readUint32)(c,l+12),p.YOsiz=(0,ne.readUint32)(c,l+16),p.XTsiz=(0,ne.readUint32)(c,l+20),p.YTsiz=(0,ne.readUint32)(c,l+24),p.XTOsiz=(0,ne.readUint32)(c,l+28),p.YTOsiz=(0,ne.readUint32)(c,l+32),(0,ne.readUint16)(c,l+36)),m=(p.Csiz=z,[]);a=l+38;for(let e=0;e<z;e++){var G={precision:1+(127&c[a]),isSigned:!!(128&c[a]),XRsiz:c[a+1],YRsiz:c[a+2]};a+=3,u=p,(h=G).x0=Math.ceil(u.XOsiz/h.XRsiz),h.x1=Math.ceil(u.Xsiz/h.XRsiz),h.y0=Math.ceil(u.YOsiz/h.YRsiz),h.y1=Math.ceil(u.Ysiz/h.YRsiz),h.width=h.x1-h.x0,h.height=h.y1-h.y0,m.push(G)}d.SIZ=p,d.components=m;{b=void 0;W=void 0;y=void 0;v=void 0;V=void 0;K=void 0;w=void 0;x=void 0;var b=d;var W=m;var y=b.SIZ,v=[];let r;var V=Math.ceil((y.Xsiz-y.XTOsiz)/y.XTsiz),K=Math.ceil((y.Ysiz-y.YTOsiz)/y.YTsiz);for(let t=0;t<K;t++)for(let e=0;e<V;e++)(r={}).tx0=Math.max(y.XTOsiz+e*y.XTsiz,y.XOsiz),r.ty0=Math.max(y.YTOsiz+t*y.YTsiz,y.YOsiz),r.tx1=Math.min(y.XTOsiz+(e+1)*y.XTsiz,y.Xsiz),r.ty1=Math.min(y.YTOsiz+(t+1)*y.YTsiz,y.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],v.push(r);b.tiles=v;b=y.Csiz;for(let a=0,e=b;a<e;a++){var w=W[a];for(let e=0,t=v.length;e<t;e++){var x={};r=v[e],x.tcx0=Math.ceil(r.tx0/w.XRsiz),x.tcy0=Math.ceil(r.ty0/w.YRsiz),x.tcx1=Math.ceil(r.tx1/w.XRsiz),x.tcy1=Math.ceil(r.ty1/w.YRsiz),x.width=x.tcx1-x.tcx0,x.height=x.tcy1-x.tcy0,r.components[a]=x}}}d.QCC=[],d.COC=[];break;case 65372:t=(0,ne.readUint16)(c,l);var S={};switch(a=l+2,31&(r=c[a++])){case 0:n=8,s=!0;break;case 1:n=16,s=!1;break;case 2:n=16,s=!0;break;default:throw new Error("Invalid SQcd value "+r)}for(S.noQuantization=8===n,S.scalarExpounded=s,S.guardBits=r>>5,i=[];a<t+l;){var A={};8===n?(A.epsilon=c[a++]>>3,A.mu=0):(A.epsilon=c[a]>>3,A.mu=(7&c[a])<<8|c[a+1],a+=2),i.push(A)}S.SPqcds=i,d.mainHeader?d.QCD=S:(d.currentTile.QCD=S,d.currentTile.QCC=[]);break;case 65373:t=(0,ne.readUint16)(c,l);var k={};a=l+2;let e;switch(d.SIZ.Csiz<257?e=c[a++]:(e=(0,ne.readUint16)(c,a),a+=2),31&(r=c[a++])){case 0:n=8,s=!0;break;case 1:n=16,s=!1;break;case 2:n=16,s=!0;break;default:throw new Error("Invalid SQcd value "+r)}for(k.noQuantization=8===n,k.scalarExpounded=s,k.guardBits=r>>5,i=[];a<t+l;){var C={};8===n?(C.epsilon=c[a++]>>3,C.mu=0):(C.epsilon=c[a]>>3,C.mu=(7&c[a])<<8|c[a+1],a+=2),i.push(C)}k.SPqcds=i,d.mainHeader?d.QCC[e]=k:d.currentTile.QCC[e]=k;break;case 65362:t=(0,ne.readUint16)(c,l);var O={},F=(a=l+2,c[a++]),I=(O.entropyCoderWithCustomPrecincts=!!(1&F),O.sopMarkerUsed=!!(2&F),O.ephMarkerUsed=!!(4&F),O.progressionOrder=c[a++],O.layersCount=(0,ne.readUint16)(c,a),a+=2,O.multipleComponentTransform=c[a++],O.decompositionLevelsCount=c[a++],O.xcb=2+(15&c[a++]),O.ycb=2+(15&c[a++]),c[a++]);if(O.selectiveArithmeticCodingBypass=!!(1&I),O.resetContextProbabilities=!!(2&I),O.terminationOnEachCodingPass=!!(4&I),O.verticallyStripe=!!(8&I),O.predictableTermination=!!(16&I),O.segmentationSymbolUsed=!!(32&I),O.reversibleTransformation=c[a++],O.entropyCoderWithCustomPrecincts){for(var Y=[];a<t+l;){var J=c[a++];Y.push({PPx:15&J,PPy:J>>4})}O.precinctsSizes=Y}var T=[];O.selectiveArithmeticCodingBypass&&T.push("selectiveArithmeticCodingBypass"),O.terminationOnEachCodingPass&&T.push("terminationOnEachCodingPass"),O.verticallyStripe&&T.push("verticallyStripe"),O.predictableTermination&&T.push("predictableTermination"),0<T.length&&(f=!0,(0,ie.warn)(`JPX: Unsupported COD options (${T.join(", ")}).`)),d.mainHeader?d.COD=O:(d.currentTile.COD=O,d.currentTile.COC=[]);break;case 65424:t=(0,ne.readUint16)(c,l),(o={}).index=(0,ne.readUint16)(c,l+2),o.length=(0,ne.readUint32)(c,l+4),o.dataEnd=o.length+l-2,o.partIndex=c[l+8],o.partsCount=c[l+9],d.mainHeader=!1,0===o.partIndex&&(o.COD=d.COD,o.COC=d.COC.slice(0),o.QCD=d.QCD,o.QCC=d.QCC.slice(0)),d.currentTile=o;break;case 65427:if(0===(o=d.currentTile).partIndex){N=E=P=ee=Q=Z=M=void 0;var M=d,Z=o.index,Q=M.SIZ,ee=Q.Csiz,P=M.tiles[Z];for(let e=0;e<ee;e++){var E=P.components[e],N=void 0!==M.currentTile.QCC[e]?M.currentTile.QCC[e]:M.currentTile.QCD,N=(E.quantizationParameters=N,void 0!==M.currentTile.COC[e]?M.currentTile.COC[e]:M.currentTile.COD);E.codingStyleParameters=N}P.codingStyleDefaultParameters=M.currentTile.COD,$=H=X=U=_=j=L=R=q=re=B=ae=te=D=void 0;var D=d,te=D.SIZ,ae=D.currentTile.index,B=D.tiles[ae],re=te.Csiz;for(let e=0;e<re;e++){var R=B.components[e],L=R.codingStyleParameters.decompositionLevelsCount,j=[],_=[];for(let t=0;t<=L;t++){var $,U=function(e,t){var e=e.codingStyleParameters,a={};e.entropyCoderWithCustomPrecincts?(a.PPx=e.precinctsSizes[t].PPx,a.PPy=e.precinctsSizes[t].PPy):(a.PPx=15,a.PPy=15);return a.xcb_=0<t?Math.min(e.xcb,a.PPx-1):Math.min(e.xcb,a.PPx),a.ycb_=0<t?Math.min(e.ycb,a.PPy-1):Math.min(e.ycb,a.PPy),a}(R,t),X={},H=1<<L-t;X.trx0=Math.ceil(R.tcx0/H),X.try0=Math.ceil(R.tcy0/H),X.trx1=Math.ceil(R.tcx1/H),X.try1=Math.ceil(R.tcy1/H),X.resLevel=t,!function(e,t){var a=1<<t.PPx,r=1<<t.PPy,i=0===e.resLevel,n=1<<t.PPx+(i?0:-1),t=1<<t.PPy+(i?0:-1),i=e.trx1>e.trx0?Math.ceil(e.trx1/a)-Math.floor(e.trx0/a):0,s=e.try1>e.try0?Math.ceil(e.try1/r)-Math.floor(e.try0/r):0,o=i*s;e.precinctParameters={precinctWidth:a,precinctHeight:r,numprecinctswide:i,numprecinctshigh:s,numprecincts:o,precinctWidthInSubband:n,precinctHeightInSubband:t}}(X,U),j.push(X);let e;0===t?((e={type:"LL"}).tbx0=Math.ceil(R.tcx0/H),e.tby0=Math.ceil(R.tcy0/H),e.tbx1=Math.ceil(R.tcx1/H),e.tby1=Math.ceil(R.tcy1/H),e.resolution=X,ce(0,e,U),_.push(e),X.subbands=[e]):(H=1<<L-t+1,$=[],(e={type:"HL"}).tbx0=Math.ceil(R.tcx0/H-.5),e.tby0=Math.ceil(R.tcy0/H),e.tbx1=Math.ceil(R.tcx1/H-.5),e.tby1=Math.ceil(R.tcy1/H),e.resolution=X,ce(0,e,U),_.push(e),$.push(e),(e={type:"LH"}).tbx0=Math.ceil(R.tcx0/H),e.tby0=Math.ceil(R.tcy0/H-.5),e.tbx1=Math.ceil(R.tcx1/H),e.tby1=Math.ceil(R.tcy1/H-.5),e.resolution=X,ce(0,e,U),_.push(e),$.push(e),(e={type:"HH"}).tbx0=Math.ceil(R.tcx0/H-.5),e.tby0=Math.ceil(R.tcy0/H-.5),e.tbx1=Math.ceil(R.tcx1/H-.5),e.tby1=Math.ceil(R.tcy1/H-.5),e.resolution=X,ce(0,e,U),_.push(e),$.push(e),X.subbands=$)}R.resolutions=j,R.subbands=_}var q=B.codingStyleDefaultParameters.progressionOrder;switch(q){case 0:B.packetsIterator=new he(D);break;case 1:B.packetsIterator=new ue(D);break;case 2:B.packetsIterator=new de(D);break;case 3:B.packetsIterator=new fe(D);break;case 4:B.packetsIterator=new ge(D);break;default:throw new oe("Unsupported progression order "+q)}}t=o.dataEnd-l,!function(e,a,r,t){let i=0,n,s=0,o=!1;function l(e){for(;s<e;){var t=a[r+i];i++,o?(n=n<<7|t,s+=7,o=!1):(n=n<<8|t,s+=8),255===t&&(o=!0)}return s-=e,n>>>s&(1<<e)-1}function c(e){return 255===a[r+i-1]&&a[r+i]===e?(h(1),1):255===a[r+i]&&a[r+i+1]===e&&(h(2),1)}function h(e){i+=e}function u(){s=0,o&&(i++,o=!1)}var d=e.currentTile.index,d=e.tiles[d],f=e.COD.sopMarkerUsed,g=e.COD.ephMarkerUsed,p=d.packetsIterator;for(;i<t;){u(),f&&c(145)&&h(4);var m=p.nextPacket();if(l(1)){var b=m.layerNumber,y=[];let s;for(let e=0,t=m.codeblocks.length;e<t;e++){let t=(s=m.codeblocks[e]).precinct;var v=s.cbx-t.cbxMin,w=s.cby-t.cbyMin;let a=!1,r=!1,i,n;if(void 0!==s.included)a=!!l(1);else{t=s.precinct;let e;if(void 0!==t.inclusionTree)e=t.inclusionTree;else{var x=t.cbxMax-t.cbxMin+1,S=t.cbyMax-t.cbyMin+1;e=new me(x,S,b),n=new pe(x,S),t.inclusionTree=e,t.zeroBitPlanesTree=n;for(let e=0;e<b;e++)if(0!==l(1))throw new oe("Invalid tag tree")}if(e.reset(v,w,b))for(;;){if(!l(1)){e.incrementValue(b);break}if(i=!e.nextLevel()){s.included=!0,a=r=!0;break}}}if(a){if(r){for((n=t.zeroBitPlanesTree).reset(v,w);;)if(l(1)){if(i=!n.nextLevel())break}else n.incrementValue();s.zeroBitPlanes=n.value}for(x=function(){var e;return 0===l(1)?1:0===l(1)?2:(e=l(2))<3?e+3:(e=l(5))<31?e+6:(e=l(7))+37}();l(1);)s.Lblock++;S=(0,ne.log2)(x),v=l((x<1<<S?S-1:S)+s.Lblock);y.push({codeblock:s,codingpasses:x,dataLength:v})}}for(u(),g&&c(146);0<y.length;){var A=y.shift();void 0===(s=A.codeblock).data&&(s.data=[]),s.data.push({data:a,start:r+i,end:r+i+A.dataLength,codingpasses:A.codingpasses}),i+=A.dataLength}}}i}(d,c,l,t);break;case 65363:(0,ie.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:t=(0,ne.readUint16)(c,l);break;default:throw new Error("Unknown codestream code: "+g.toString(16))}l+=t}}catch(e){if(f||this.failOnCorruptedImage)throw new oe(e.message);(0,ie.warn)(`JPX: Trying to recover from: "${e.message}".`)}this.tiles=function(c){var e=c.SIZ,h=c.components,u=e.Csiz,d=[];for(let l=0,e=c.tiles.length;l<e;l++){var f=c.tiles[l],g=[];for(let e=0;e<u;e++)g[e]=function(e,t,a){var i=t.components[a],t=i.codingStyleParameters,r=i.quantizationParameters,n=t.decompositionLevelsCount,s=r.SPqcds,o=r.scalarExpounded,l=r.guardBits,c=t.segmentationSymbolUsed,h=t.resetContextProbabilities,u=e.components[a].precision,d=t.reversibleTransformation,r=new(d?ve:ye),f=[];let g=0;for(let r=0;r<=n;r++){var p=i.resolutions[r],m=p.trx1-p.trx0,b=p.try1-p.try0,y=new Float32Array(m*b);for(let a=0,e=p.subbands.length;a<e;a++){let e,t;o?(e=s[g].mu,t=s[g].epsilon,g++):(e=s[0].mu,t=s[0].epsilon+(0<r?1-r:0));var v=p.subbands[a],w=le[v.type],w=d?1:2**(u+w-t)*(1+e/2048),x=l+t-1;!function(u,d,f,g,p,m,b,y){var v=f.tbx0,w=f.tby0,x=f.tbx1-f.tbx0,a=f.codeblocks,S="H"===f.type.charAt(0)?1:0,A="H"===f.type.charAt(1)?d:0;for(let e=0,t=a.length;e<t;++e){var k=a[e],C=k.tbx1_-k.tbx0_,O=k.tby1_-k.tby0_;if(0!=C&&0!=O&&void 0!==k.data){var F=new be(C,O,k.subbandType,k.zeroBitPlanes,p);let e=2;var I=k.data;let t=0,a=0,r,i,n;for(r=0,i=I.length;r<i;r++)n=I[r],t+=n.end-n.start,a+=n.codingpasses;var T=new Uint8Array(t);let s=0;for(r=0,i=I.length;r<i;r++){var M=(n=I[r]).data.subarray(n.start,n.end);T.set(M,s),s+=M.length}var P=new se.ArithmeticDecoder(T,0,t);for(F.setDecoder(P),r=0;r<a;r++){switch(e){case 0:F.runSignificancePropagationPass();break;case 1:F.runMagnitudeRefinementPass();break;case 2:F.runCleanupPass(),b&&F.checkSegmentationSymbol()}y&&F.reset(),e=(e+1)%3}let o=k.tbx0_-v+(k.tby0_-w)*x;var E=F.coefficentsSign,N=F.coefficentsMagnitude,D=F.bitsDecoded,B=m?0:.5;let l,c,h;s=0;var R="LL"!==f.type;for(r=0;r<O;r++){var L,j=2*(o/x|0)*(d-x)+S+A;for(l=0;l<C;l++)0!==(c=N[s])&&(c=(c+B)*g,0!==E[s]&&(c=-c),h=D[s],L=R?j+(o<<1):o,u[L]=m&&p<=h?c:c*(1<<p-h)),o++,s++;o+=x-C}}}}(y,m,v,w,x,d,c,h)}f.push({width:m,height:b,items:y})}e=r.calculate(f,i.tcx0,i.tcy0);return{left:i.tcx0,top:i.tcy0,width:e.width,height:e.height,items:e.items}}(c,f,e);var p=g[0],m=new Uint8ClampedArray(p.items.length*u),p={left:p.left,top:p.top,width:p.width,height:p.height,items:m};let t,a,r=0,i,n,e,s,o;if(f.codingStyleDefaultParameters.multipleComponentTransform){var b=4===u,y=g[0].items,v=g[1].items,w=g[2].items,x=b?g[3].items:null,S=(t=h[0].precision-8,a=.5+(128<<t),f.components[0]),A=u-3;if(n=y.length,S.codingStyleParameters.reversibleTransformation)for(i=0;i<n;i++,r+=A){e=y[i]+a,s=v[i],o=w[i];var k=e-(o+s>>2);m[r++]=k+o>>t,m[r++]=k>>t,m[r++]=k+s>>t}else for(i=0;i<n;i++,r+=A)e=y[i]+a,s=v[i],o=w[i],m[r++]=e+1.402*o>>t,m[r++]=e-.34413*s-.71414*o>>t,m[r++]=e+1.772*s>>t;if(b)for(i=0,r=3;i<n;i++,r+=4)m[r]=x[i]+a>>t}else for(let e=0;e<u;e++){var C=g[e].items;for(t=h[e].precision-8,a=.5+(128<<t),r=e,i=0,n=C.length;i<n;i++)m[r]=C[i]+a>>t,r+=u}d.push(p)}return d}(d),this.width=d.SIZ.Xsiz-d.SIZ.XOsiz,this.height=d.SIZ.Ysiz-d.SIZ.YOsiz,this.componentsCount=d.SIZ.Csiz}};class pe{constructor(t,a){var r=(0,ne.log2)(Math.max(t,a))+1;this.levels=[];for(let e=0;e<r;e++)this.levels.push({width:t,height:a,items:[]}),t=Math.ceil(t/2),a=Math.ceil(a/2)}reset(e,t){let a=0,r=0,i;for(;a<this.levels.length;){var n=e+t*(i=this.levels[a]).width;if(void 0!==i.items[n]){r=i.items[n];break}i.index=n,e>>=1,t>>=1,a++}a--,(i=this.levels[a]).items[i.index]=r,this.currentLevel=a,delete this.value}incrementValue(){var e=this.levels[this.currentLevel];e.items[e.index]++}nextLevel(){var e=this.currentLevel,t=this.levels[e],a=t.items[t.index];return--e<0?(this.value=a,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=a,!0)}}class me{constructor(t,a,r){var i=(0,ne.log2)(Math.max(t,a))+1;this.levels=[];for(let e=0;e<i;e++){var n=new Uint8Array(t*a);for(let e=0,t=n.length;e<t;e++)n[e]=r;this.levels.push({width:t,height:a,items:n}),t=Math.ceil(t/2),a=Math.ceil(a/2)}}reset(e,t,a){let r=0;for(;r<this.levels.length;){var i=this.levels[r],n=e+t*i.width,i=(i.index=n,i.items[n]);if(255===i)break;if(a<i)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0}incrementValue(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}propagateValues(){let e=this.currentLevel;for(var t=this.levels[e],a=t.items[t.index];0<=--e;)(t=this.levels[e]).items[t.index]=a}nextLevel(){var e=this.currentLevel;let t=this.levels[e];var a=t.items[t.index];return t.items[t.index]=255,!(--e<0||(this.currentLevel=e,(t=this.levels[e]).items[t.index]=a,0))}}const be=function(){const c=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]),h=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]),u=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]);return class{constructor(e,t,a,r,i){this.width=e,this.height=t;let n;n="HH"===a?u:"HL"===a?h:c,this.contextLabelTable=n;var s=e*t;this.neighborsSignificance=new Uint8Array(s),this.coefficentsSign=new Uint8Array(s);let o;o=new(14<i?Uint32Array:6<i?Uint16Array:Uint8Array)(s),this.coefficentsMagnitude=o,this.processingFlags=new Uint8Array(s);var l=new Uint8Array(s);if(0!==r)for(let e=0;e<s;e++)l[e]=r;this.bitsDecoded=l,this.reset()}setDecoder(e){this.decoder=e}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6}setNeighborsSignificance(e,t,a){var r=this.neighborsSignificance,i=this.width,n=this.height,s=0<t,t=t+1<i;let o;0<e&&(o=a-i,s&&(r[o-1]+=16),t&&(r[o+1]+=16),r[o]+=4),e+1<n&&(o=a+i,s&&(r[o-1]+=16),t&&(r[o+1]+=16),r[o]+=4),s&&(r[a-1]+=1),t&&(r[a+1]+=1),r[a]|=128}runSignificancePropagationPass(){var i=this.decoder,n=this.width,s=this.height,o=this.coefficentsMagnitude,l=this.coefficentsSign,c=this.neighborsSignificance,h=this.processingFlags,u=this.contexts,d=this.contextLabelTable,f=this.bitsDecoded;for(let r=0;r<s;r+=4)for(let a=0;a<n;a++){let t=r*n+a;for(let e=0;e<4;e++,t+=n){var g,p=r+e;if(s<=p)break;h[t]&=-2,!o[t]&&c[t]&&(g=d[c[t]],i.readBit(u,g)&&(g=this.decodeSignBit(p,a,t),l[t]=g,o[t]=1,this.setNeighborsSignificance(p,a,t),h[t]|=2),f[t]++,h[t]|=1)}}}decodeSignBit(e,t,a){var r=this.width,i=this.height,n=this.coefficentsMagnitude,s=this.coefficentsSign;let o,l,c,h,u,d;h=0<t&&0!==n[a-1];t=3*(o=t+1<r&&0!==n[a+1]?(c=s[a+1],h?(l=s[a-1],1-c-l):1-c-c):h?1-(l=s[a-1])-l:0);return h=0<e&&0!==n[a-r],o=e+1<i&&0!==n[a+r]?(c=s[a+r],h?(l=s[a-r],1-c-l+t):1-c-c+t):h?1-(l=s[a-r])-l+t:t,d=0<=o?(u=9+o,this.decoder.readBit(this.contexts,u)):(u=9-o,1^this.decoder.readBit(this.contexts,u))}runMagnitudeRefinementPass(){var i=this.decoder,n=this.width,e=this.height,s=this.coefficentsMagnitude,o=this.neighborsSignificance,l=this.contexts,c=this.bitsDecoded,h=this.processingFlags,t=n*e,u=4*n;for(let a=0,r;a<t;a=r){r=Math.min(t,a+u);for(let e=0;e<n;e++)for(let t=a+e;t<r;t+=n)if(s[t]&&0==(1&h[t])){let e=16;0!=(2&h[t])&&(h[t]^=2,d=127&o[t],e=0==d?15:14);var d=i.readBit(l,e);s[t]=s[t]<<1|d,c[t]++,h[t]|=1}}}runCleanupPass(){var s=this.decoder,o=this.width,e=this.height,l=this.neighborsSignificance,c=this.coefficentsMagnitude,h=this.coefficentsSign,u=this.contexts,d=this.contextLabelTable,f=this.bitsDecoded,g=this.processingFlags,p=o,m=2*o,b=3*o;for(let n=0;n<e;n=y){var y=Math.min(n+4,e),v=n*o,w=n+3<e;for(let i=0;i<o;i++){var x,S=v+i,A=w&&0===g[S]&&0===g[S+p]&&0===g[S+m]&&0===g[S+b]&&0===l[S]&&0===l[S+p]&&0===l[S+m]&&0===l[S+b];let e=0,t=S,a=n,r;if(A){if(!s.readBit(u,18)){f[S]++,f[S+p]++,f[S+m]++,f[S+b]++;continue}0!==(e=s.readBit(u,17)<<1|s.readBit(u,17))&&(a=n+e,t+=e*o),r=this.decodeSignBit(a,i,t),h[t]=r,c[t]=1,this.setNeighborsSignificance(a,i,t),g[t]|=2,t=S;for(let e=n;e<=a;e++,t+=o)f[t]++;e++}for(a=n+e;a<y;a++,t+=o)c[t]||0!=(1&g[t])||(x=d[l[t]],1===s.readBit(u,x)&&(r=this.decodeSignBit(a,i,t),h[t]=r,c[t]=1,this.setNeighborsSignificance(a,i,t),g[t]|=2),f[t]++)}}}checkSegmentationSymbol(){var e=this.decoder,t=this.contexts;if(10!=(e.readBit(t,17)<<3|e.readBit(t,17)<<2|e.readBit(t,17)<<1|e.readBit(t,17)))throw new oe("Invalid segmentation symbol")}}}();class i{constructor(){this.constructor===i&&(0,ie.unreachable)("Cannot initialize Transform.")}calculate(a,r,i){let n=a[0];for(let e=1,t=a.length;e<t;e++)n=this.iterate(n,a[e],r,i);return n}extend(e,t,a){var r=t-1,i=t+1,n=t+a-2,t=t+a;e[r--]=e[i++],e[t++]=e[n--],e[r--]=e[i++],e[t++]=e[n--],e[r--]=e[i++],e[t++]=e[n--],e[r]=e[i],e[t]=e[n]}filter(e,t,a){(0,ie.unreachable)("Abstract method `filter` called")}iterate(e,t,a,r){var i=e.width,n=e.height;let s=e.items;var o=t.width,l=t.height,c=t.items;let h,u,d,f,g,p;for(d=0,h=0;h<n;h++)for(f=2*h*o,u=0;u<i;u++,d++,f+=2)c[f]=s[d];s=e.items=null;var m=new Float32Array(o+8);if(1===o){if(0!=(1&a))for(p=0,d=0;p<l;p++,d+=o)c[d]*=.5}else for(p=0,d=0;p<l;p++,d+=o)m.set(c.subarray(d,d+o),4),this.extend(m,4,o),this.filter(m,4,o),c.set(m.subarray(4,4+o),d);let b=16;var y=[];for(h=0;h<b;h++)y.push(new Float32Array(l+8));let v,w=0;if(e=4+l,1===l){if(0!=(1&r))for(g=0;g<o;g++)c[g]*=.5}else for(g=0;g<o;g++){if(0===w){for(b=Math.min(o-g,b),d=g,f=4;f<e;d+=o,f++)for(v=0;v<b;v++)y[v][f]=c[d+v];w=b}var x=y[--w];if(this.extend(x,4,l),this.filter(x,4,l),0===w)for(d=g-b+1,f=4;f<e;d+=o,f++)for(v=0;v<b;v++)c[d+v]=y[v][f]}return{width:o,height:l,items:c}}}class ye extends i{filter(e,t,a){a>>=1;t|=0;let r,i,n,s;var o=-1.586134342059924,l=-.052980118572961,c=.882911075530934,h=.443506852043971,u=1.230174104914001;for(r=t-3,i=4+a;i--;r+=2)e[r]*=.8128930661159609;for(r=t-2,n=h*e[r-1],i=3+a;i--&&(s=h*e[r+1],e[r]=u*e[r]-n-s,i--);r+=2)r+=2,n=h*e[r+1],e[r]=u*e[r]-n-s;for(r=t-1,n=c*e[r-1],i=2+a;i--&&(s=c*e[r+1],e[r]-=n+s,i--);r+=2)r+=2,n=c*e[r+1],e[r]-=n+s;for(r=t,n=l*e[r-1],i=1+a;i--&&(s=l*e[r+1],e[r]-=n+s,i--);r+=2)r+=2,n=l*e[r+1],e[r]-=n+s;if(0!=a)for(r=t+1,n=o*e[r-1],i=a;i--&&(s=o*e[r+1],e[r]-=n+s,i--);r+=2)r+=2,n=o*e[r+1],e[r]-=n+s}}class ve extends i{filter(e,t,a){a>>=1;t|=0;let r,i;for(r=t,i=1+a;i--;r+=2)e[r]-=e[r-1]+e[r+1]+2>>2;for(r=t+1,i=a;i--;r+=2)e[r]+=e[r-1]+e[r+1]>>1}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;class r extends a(148).DecodeStream{constructor(e,t,a){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;var r={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0};for(let e=0;e<256;++e)r.dictionaryValues[e]=e,r.dictionaryLengths[e]=1;this.lzwState=r}readBits(e){let t=this.bitsCached,a=this.cachedData;for(;t<e;){var r=this.str.getByte();if(-1===r)return this.eof=!0,null;a=a<<8|r,t+=8}return this.bitsCached=t-=e,this.cachedData=a,this.lastCode=null,a>>>t&(1<<e)-1}readBlock(){let o=1024,l,c,h;var u=this.lzwState;if(u){var d=u.earlyChange;let e=u.nextCode;var f=u.dictionaryValues,g=u.dictionaryLengths,p=u.dictionaryPrevCodes;let t=u.codeLength,a=u.prevCode;var m=u.currentSequence;let r=u.currentSequenceLength,i=0,n=this.bufferLength,s=this.ensureBuffer(this.bufferLength+o);for(l=0;l<512;l++){var b=this.readBits(t),y=0<r;if(b<256)m[0]=b,r=1;else{if(!(258<=b)){if(256===b){t=9,e=258,r=0;continue}this.eof=!0,delete this.lzwState;break}if(b<e)for(r=g[b],c=r-1,h=b;0<=c;c--)m[c]=f[h],h=p[h];else m[r++]=m[0]}if(y&&(p[e]=a,g[e]=g[a]+1,f[e]=m[0],e++,t=e+d&e+d-1?t:0|Math.min(Math.log(e+d)/.6931471805599453+1,12)),a=b,i+=r,o<i){for(;(o+=512)<i;);s=this.ensureBuffer(this.bufferLength+o)}for(c=0;c<r;c++)s[n++]=m[c]}u.nextCode=e,u.codeLength=t,u.prevCode=a,u.currentSequenceLength=r,this.bufferLength=n}}}t.LZWStream=r},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var r=a(148),i=a(134),g=a(2);class n extends r.DecodeStream{constructor(e,t,a){if(super(t),!(a instanceof i.Dict))return e;t=this.predictor=a.get("Predictor")||1;if(t<=1)return e;if(2!==t&&(t<10||15<t))throw new g.FormatError("Unsupported predictor: "+t);this.readBlock=2===t?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;t=this.colors=a.get("Colors")||1,e=this.bits=a.get("BPC","BitsPerComponent")||8,a=this.columns=a.get("Columns")||1;return this.pixBytes=t*e+7>>3,this.rowBytes=a*t*e+7>>3,this}readBlockTiff(){var t=this.rowBytes,l=this.bufferLength,c=this.ensureBuffer(l+t),h=this.bits,u=this.colors,d=this.str.getBytes(t);if(this.eof=!d.length,!this.eof){let r=0,i=0,n=0,s=0,e=l,o;if(1===h&&1===u)for(o=0;o<t;++o){var a=d[o]^r,a=(a=(a^=a>>1)^a>>2)^a>>4;r=(1&a)<<7,c[e++]=a}else if(8===h){for(o=0;o<u;++o)c[e++]=d[o];for(;o<t;++o)c[e]=c[e-u]+d[o],e++}else if(16===h){var f=2*u;for(o=0;o<f;++o)c[e++]=d[o];for(;o<t;o+=2){var g=((255&d[o])<<8)+(255&d[o+1])+((255&c[e-f])<<8)+(255&c[e-f+1]);c[e++]=g>>8&255,c[e++]=255&g}}else{var p=new Uint8Array(u+1),m=(1<<h)-1;let t=0,a=l;var b=this.columns;for(o=0;o<b;++o)for(let e=0;e<u;++e)n<h&&(r=r<<8|255&d[t++],n+=8),p[e]=p[e]+(r>>n-h)&m,n-=h,i=i<<h|p[e],8<=(s+=h)&&(c[a++]=i>>s-8&255,s-=8);0<s&&(c[a++]=(i<<8-s)+(r&(1<<8-s)-1))}this.bufferLength+=t}}readBlockPng(){var e=this.rowBytes,l=this.pixBytes,t=this.str.getByte(),c=this.str.getBytes(e);if(this.eof=!c.length,!this.eof){var a=this.bufferLength,h=this.ensureBuffer(a+e);let r=h.subarray(a-e,a);0===r.length&&(r=new Uint8Array(e));let i,n=a,s,o;switch(t){case 0:for(i=0;i<e;++i)h[n++]=c[i];break;case 1:for(i=0;i<l;++i)h[n++]=c[i];for(;i<e;++i)h[n]=h[n-l]+c[i]&255,n++;break;case 2:for(i=0;i<e;++i)h[n++]=r[i]+c[i]&255;break;case 3:for(i=0;i<l;++i)h[n++]=(r[i]>>1)+c[i];for(;i<e;++i)h[n]=(r[i]+h[n-l]>>1)+c[i]&255,n++;break;case 4:for(i=0;i<l;++i)s=r[i],o=c[i],h[n++]=s+o;for(;i<e;++i){s=r[i];var u=r[i-l],d=h[n-l],f=d+s-u;let e=f-d,t=(e<0&&(e=-e),f-s),a=(t<0&&(t=-t),f-u);a<0&&(a=-a),o=c[i],e<=t&&e<=a?h[n++]=d+o:t<=a?h[n++]=s+o:h[n++]=u+o}break;default:throw new g.FormatError("Unsupported predictor: "+t)}this.bufferLength+=e}}}t.PredictorStream=n},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;class r extends a(148).DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){var e,r=this.str.getBytes(2);if(!r||r.length<2||128===r[0])this.eof=!0;else{let t,a=this.bufferLength;if((i=r[0])<128)(t=this.ensureBuffer(a+i+1))[a++]=r[1],0<i&&(e=this.str.getBytes(i),t.set(e,a),a+=i);else{var i=257-i,n=r[1];t=this.ensureBuffer(a+i+1);for(let e=0;e<i;e++)t[a++]=n}this.bufferLength=a}}}t.RunLengthStream=r},(r,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Font=e.ErrorFont=void 0;var ge=t(2),pe=t(164),me=t(167),E=t(169),be=t(168),ye=t(166),m=t(170),ve=t(171),we=t(172),a=t(173),b=t(174),xe=t(175),Se=t(145),Ae=t(176),o=t(135),ke=t(139),u=t(177);const p=[[57344,63743],[1048576,1114109]],i=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],n=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function Ce(e){if(e.fontMatrix&&e.fontMatrix[0]!==ge.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],a=e.widths;for(const r in a)a[r]*=t;e.defaultWidth*=t}}function y(e){if(e.fallbackToUnicode&&!(e.toUnicode instanceof ve.IdentityToUnicodeMap)){var t=[];for(const a in e.fallbackToUnicode)e.toUnicode.has(a)||(t[a]=e.fallbackToUnicode[a]);0<t.length&&e.toUnicode.amend(t)}}class f{constructor(e,t,a,r,i,n,s,o,l){this.originalCharCode=e,this.fontChar=t,this.unicode=a,this.accent=r,this.width=i,this.vmetric=n,this.operatorListId=s,this.isSpace=o,this.isInFont=l;e=(0,E.getCharUnicodeCategory)(a);this.isWhitespace=e.isWhitespace,this.isZeroWidthDiacritic=e.isZeroWidthDiacritic,this.isInvisibleFormatMark=e.isInvisibleFormatMark}}function Oe(e,t,a){e[t+1]=a,e[t]=a>>>8}function Fe(e,t){e=(e<<8)+t;return 32768&e?e-65536:e}function N(e){return String.fromCharCode(e>>8&255,255&e)}function D(e){return 32767<e?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function Ie(e){e=e.peekBytes(4);return"ttcf"===(0,ge.bytesToString)(e)}function d(e,t){var a,{type:t,subtype:r,composite:i}=t;let n,s;return a=(a=e).peekBytes(4),65536===(0,o.readUint32)(a,0)||"true"===(0,ge.bytesToString)(a)||Ie(e)?n=i?"CIDFontType2":"TrueType":(a=(a=e).peekBytes(4),"OTTO"===(0,ge.bytesToString)(a)?n=i?"CIDFontType2":"OpenType":37===(a=(a=e).peekBytes(2))[0]&&33===a[1]||128===a[0]&&1===a[1]?n=i?"CIDFontType0":"MMType1"===t?"MMType1":"Type1":s=1<=(a=(a=e).peekBytes(4))[0]&&1<=a[3]&&a[3]<=4?i?(n="CIDFontType0","CIDFontType0C"):(n="MMType1"===t?"MMType1":"Type1","Type1C"):((0,ge.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),n=t,r)),[n,s]}function v(e,t){for(const a in t)e[+a]=t[a]}function w(a,r,e){var i=[];let n;for(let e=0,t=a.length;e<t;e++)-1!==(n=(0,E.getUnicodeForGlyph)(a[e],r))&&(i[e]=n);for(const t in e)-1!==(n=(0,E.getUnicodeForGlyph)(e[t],r))&&(i[+t]=n);return i}function Te(e,t,a){a=2<arguments.length&&void 0!==a&&a;switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}e=`Unsupported CID string (charCode ${e}): "${t}".`;if(a)throw new ge.FormatError(e);return(0,ge.warn)(e),t}function Me(e,a,r,i){var n=Object.create(null),s=new Map,o=[],l=new Set;let c=0;var h,u=p[c][0];let d=u,f=p[c][1];for(h in e){let t=e[h|=0];if(a(t)){if(d>f){if(++c>=p.length){(0,ge.warn)("Ran out of space in font private use area.");break}d=p[c][0],f=p[c][1]}var g=d++;0===t&&(t=r);let e=i.get(h);(e="string"==typeof e?e.codePointAt(0):e)&&e<u&&!l.has(t)&&(s.set(e,t),l.add(t)),n[g]=t,o[h]=g}}return{toFontChar:o,charCodeToGlyphId:n,toUnicodeExtraMap:s,nextAvailableFontCharCode:d}}function Pe(e,t,a){var r=function(e,t,a){var r=[];for(const h in e)e[h]>=a||r.push({fontCharCode:0|h,glyphId:e[h]});if(t)for(var[i,n]of t)n>=a||r.push({fontCharCode:i,glyphId:n});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort(function(e,t){return e.fontCharCode-t.fontCharCode});var s=[],o=r.length;for(let t=0;t<o;){var l=r[t].fontCharCode,c=[r[t].glyphId];++t;let e=l;for(;t<o&&e+1===r[t].fontCharCode&&(c.push(r[t].glyphId),++e,++t,65535!==e););s.push([l,e,c])}return s}(e,t,a),e=65535<r.at(-1)[1]?2:1;let i="\0\0"+N(e)+"\0\0"+(0,ge.string32)(4+8*e),n,s,o,l;for(n=r.length-1;0<=n&&!(r[n][0]<=65535);--n);var t=n+1,a=(r[n][0]<65535&&65535===r[n][1]&&(r[n][1]=65534),r[n][1]<65535?1:0),c=t+a,h=Ae.OpenTypeFileBuilder.getSearchParams(c,2);let u="",d="",f="",g="",p="",m=0,b,y,v,w;for(n=0,s=t;n<s;n++){b=r[n],y=b[0],v=b[1],u+=N(y),d+=N(v),w=b[2];let e=!0;for(o=1,l=w.length;o<l;++o)if(w[o]!==w[o-1]+1){e=!1;break}if(e){var x=w[0];f+=N(x-y&65535),g+=N(0)}else{x=2*(c-n)+2*m;for(m+=v-y+1,f+=N(0),g+=N(x),o=0,l=w.length;o<l;++o)p+=N(w[o])}}0<a&&(d+="ÿÿ",u+="ÿÿ",f+="\0",g+="\0\0");t="\0\0"+N(2*c)+N(h.range)+N(h.entry)+N(h.rangeShift)+d+"\0\0"+u+f+g+p;let S="",A="";if(1<e){for(i+="\0\0\n"+(0,ge.string32)(4+8*e+4+t.length),S="",n=0,s=r.length;n<s;n++){b=r[n],y=b[0];let e=(w=b[2])[0];for(o=1,l=w.length;o<l;++o)w[o]!==w[o-1]+1&&(v=b[0]+o-1,S+=(0,ge.string32)(y)+(0,ge.string32)(v)+(0,ge.string32)(e),y=v+1,e=w[o]);S+=(0,ge.string32)(y)+(0,ge.string32)(b[1])+(0,ge.string32)(e)}A="\0\f\0\0"+(0,ge.string32)(S.length+16)+"\0\0\0\0"+(0,ge.string32)(S.length/12)}return i+"\0"+N(t.length+4)+t+A+S}function Ee(e,t,a){a=a||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let r=0,i=0,n=0,s=0,o=null,l=0;if(t){for(var c in t){c|=0,(o>c||!o)&&(o=c),l<c&&(l=c);c=(0,E.getUnicodeRangeFor)(c);if(c<32)r|=1<<c;else if(c<64)i|=1<<c-32;else if(c<96)n|=1<<c-64;else{if(!(c<123))throw new ge.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<c-96}}65535<l&&(l=65535)}else o=0,l=255;var t=e.bbox||[0,0,0,0],h=a.unitsPerEm||1/(e.fontMatrix||ge.FONT_IDENTITY_MATRIX)[0],h=e.ascentScaled?1:h/1e3,u=a.ascent||Math.round(h*(e.ascent||t[3]));let d=a.descent||Math.round(h*(e.descent||t[1]));0<d&&0<e.descent&&t[1]<0&&(d=-d);h=a.yMax||u,t=-a.yMin||-d;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,ge.string32)(r)+(0,ge.string32)(i)+(0,ge.string32)(n)+(0,ge.string32)(s)+"*21*"+N(e.italicAngle?1:0)+N(o||e.firstChar)+N(l||e.lastChar)+N(u)+N(d)+"\0d"+N(h)+N(t)+"\0\0\0\0\0\0\0\0"+N(e.xHeight)+N(e.capHeight)+N(0)+N(o||e.firstChar)+"\0"}function Ne(e){var t=Math.floor(65536*e.italicAngle);return"\0\0\0"+(0,ge.string32)(t)+"\0\0\0\0"+(0,ge.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function De(e,t){var a=[(t=t||[[],[]])[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||e.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],r=[];let i,n,s,o,l;for(i=0,n=a.length;i<n;i++){l=t[1][i]||a[i];var c=[];for(s=0,o=l.length;s<o;s++)c.push(N(l.charCodeAt(s)));r.push(c.join(""))}var h=[a,r],u=["\0","\0"],d=["\0\0","\0"],f=["\0\0","\t"],e=a.length*u.length;let g="\0\0"+N(e)+N(12*e+6),p=0;for(i=0,n=u.length;i<n;i++){var m=h[i];for(s=0,o=m.length;s<o;s++){l=m[s];var b=u[i]+d[i]+f[i]+N(s)+N(l.length)+N(p);g+=b,p+=l.length}}return g+=a.join("")+r.join("")}e.Font=class{constructor(t,a,r){this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.missingFile=!1,this.cssFontInfo=r.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let e=!!(r.flags&me.FontFlags.Serif);if(!e&&!r.isSimulatedFlags){var i=t.replace(/[,_]/g,"-").split("-")[0],n=(0,m.getSerifFonts)();for(const h of i.split("+"))if(n[h]){e=!0;break}}this.isSerifFont=e,this.isSymbolicFont=!!(r.flags&me.FontFlags.Symbolic),this.isMonospace=!!(r.flags&me.FontFlags.FixedPitch);let s=r.type;var o=r.subtype;this.type=s,this.subtype=o;let l="sans-serif";if(this.isMonospace?l="monospace":this.isSerifFont&&(l="serif"),this.fallbackName=l,this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.cMap=r.cMap,this.capHeight=r.capHeight/1e3,this.ascent=r.ascent/1e3,this.descent=r.descent/1e3,this.lineHeight=this.ascent-this.descent,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.toFontChar=[],"Type3"===r.type){for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||r.defaultEncoding[e];this.fontType=ge.FontType.TYPE3}else if(this.cidEncoding=r.cidEncoding||"",this.vertical=!!r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!a||a.isEmpty)a&&(0,ge.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")"),this.fallbackToSystemFont(r);else{[s,o]=d(a,r),s===this.type&&o===this.subtype||(0,ge.info)("Inconsistent font file Type/SubType, expected: "+`${this.type}/${this.subtype} but found: ${s}/${o}.`);let e;try{switch(s){case"MMType1":(0,ge.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var c="Type1C"===o||"CIDFontType0C"===o?new we.CFFFont(a,r):new u.Type1Font(t,a,r);Ce(r),e=this.convert(t,c,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",e=this.checkAndRepair(t,a,r),this.isOpenType&&(Ce(r),s="OpenType");break;default:throw new ge.FormatError(`Font ${s} is not supported`)}}catch(e){return(0,ge.warn)(e),void this.fallbackToSystemFont(r)}y(r),this.data=e,this.fontType=(0,me.getFontType)(s,o,r.isStandardFont),this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.seacMap=r.seacMap}}get renderer(){var e=a.FontRendererFactory.create(this,me.SEAC_ANALYSIS_ENABLED);return(0,ge.shadow)(this,"renderer",e)}exportData(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?[...i,...n]:i,t=Object.create(null);let a,r;for(a of e)void 0!==(r=this[a])&&(t[a]=r);return t}fallbackToSystemFont(e){this.missingFile=!0;var t=this.name,a=this.type,r=this.subtype,i=(0,me.normalizeFontName)(t),n=(0,m.getStdFontMap)(),s=(0,m.getNonStdFontMap)(),o=!!n[i],l=!(!s[i]||!n[s[i]]),i=n[i]||s[i]||i,n=(0,b.getFontBasicMetrics)()[i],s=(n&&(isNaN(this.ascent)&&(this.ascent=n.ascent/1e3),isNaN(this.descent)&&(this.descent=n.descent/1e3),isNaN(this.capHeight))&&(this.capHeight=n.capHeight/1e3),this.bold=/bold/gi.test(i),this.italic=/oblique|italic/gi.test(i),this.black=/Black/g.test(t),/Narrow/g.test(t));if(this.remeasure=(!o||s)&&0<Object.keys(this.widths).length,(o||l)&&"CIDFontType2"===a&&this.cidEncoding.startsWith("Identity-")){const h=e.cidToGidMap,u=[];if(v(u,(0,m.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(t)?v(u,(0,m.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&v(u,(0,m.getSupplementalGlyphMapForCalibri)()),h){for(const d in u){var c=u[d];void 0!==h[c]&&(u[+d]=h[c])}h.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof ve.IdentityToUnicodeMap&&this.toUnicode.forEach(function(e,t){var a=u[e];void 0===h[a]&&(u[+e]=t)})}this.toUnicode instanceof ve.IdentityToUnicodeMap||this.toUnicode.forEach(function(e,t){u[+e]=t}),this.toFontChar=u,this.toUnicode=new ve.ToUnicodeMap(u)}else if(/Symbol/i.test(i))this.toFontChar=w(ye.SymbolSetEncoding,(0,be.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(i))/Wingdings/i.test(t)&&(0,ge.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=w(ye.ZapfDingbatsEncoding,(0,be.getDingbatsGlyphsUnicode)(),this.differences);else if(o){const f=w(this.defaultEncoding,(0,be.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==a||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof ve.IdentityToUnicodeMap||this.toUnicode.forEach(function(e,t){f[+e]=t}),this.toFontChar=f}else{const g=(0,be.getGlyphsUnicode)(),p=[];this.toUnicode.forEach((e,t)=>{var a;this.composite||(a=this.differences[e]||this.defaultEncoding[e],-1!==(a=(0,E.getUnicodeForGlyph)(a,g))&&(t=a)),p[+e]=t}),this.composite&&this.toUnicode instanceof ve.IdentityToUnicodeMap&&/Verdana/i.test(t)&&v(p,(0,m.getGlyphMapForStandardFonts)()),this.toFontChar=p}y(e),this.loadedName=i.split("-")[0],this.fontType=(0,me.getFontType)(a,r,e.isStandardFont)}checkAndRepair(R,u,i){const L=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function j(t,a){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(let e=0;e<a;e++){var i=function(e){var t=e.getString(4),a=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.pos,s=(e.pos=e.start||0,e.skip(r),e.getBytes(i));e.pos=n,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32);return{tag:t,checksum:a,length:i,offset:r,data:s}}(t);L.includes(i.tag)&&0!==i.length&&(r[i.tag]=i)}return r}function _(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function $(t,r){var{numFonts:a,offsetTable:i}=function(t){var e=t.getString(4),a=((0,ge.assert)("ttcf"===e,"Must be a TrueType Collection font."),t.getUint16()),r=t.getUint16(),i=t.getInt32()>>>0,n=[];for(let e=0;e<i;e++)n.push(t.getInt32()>>>0);var s={ttcTag:e,majorVersion:a,minorVersion:r,numFonts:i,offsetTable:n};switch(a){case 1:return s;case 2:return s.dsigTag=t.getInt32()>>>0,s.dsigLength=t.getInt32()>>>0,s.dsigOffset=t.getInt32()>>>0,s}throw new ge.FormatError(`Invalid TrueType Collection majorVersion: ${a}.`)}(t),n=r.split("+");let s;for(let e=0;e<a;e++){t.pos=(t.start||0)+i[e];var o=_(t),l=j(t,o.numTables);if(!l.name)throw new ge.FormatError('TrueType Collection font must contain a "name" table.');var c=X(l.name);for(let a=0,e=c.length;a<e;a++)for(let e=0,t=c[a].length;e<t;e++){var h=c[a][e]&&c[a][e].replace(/\s/g,"");if(h){if(h===r)return{header:o,tables:l};if(!(n.length<2))for(const u of n)h===u&&(s={name:u,header:o,tables:l})}}}if(s)return(0,ge.warn)(`TrueType Collection does not contain "${r}" font, `+`falling back to "${s.name}" font instead.`),{header:s.header,tables:s.tables};throw new ge.FormatError(`TrueType Collection does not contain "${r}" font.`)}function U(e,t,a,r,i,n,s){let o,l,c;c=r?(o=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},function(e,t,a){e[t]=a>>>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=255&a}):(o=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},function(e,t,a){e[t]=a>>9&255,e[t+1]=a>>1&255});var h=n?a+1:a,r=o*(1+h),u=new Uint8Array(r),d=(u.set(e.data.subarray(0,r)),e.data=u,t.data),f=d.length,g=new Uint8Array(f);let p,m;var b=[];for(p=0,m=0;p<a+1;p++,m+=o){let e=l(u,m);e>f&&(e=f),b.push({index:p,offset:e,endOffset:0})}for(b.sort((e,t)=>e.offset-t.offset),p=0;p<a;p++)b[p].endOffset=b[p+1].offset;for(b.sort((e,t)=>e.index-t.index),p=0;p<a;p++){var{offset:y,endOffset:v}=b[p];if(0!==y||0!==v)break;y=b[p+1].offset;if(0!==y){b[p].endOffset=y;break}}var w=Object.create(null);let x=0;for(c(u,0,x),p=0,m=o;p<a;p++,m+=o){var S=function(n,s,o,l,c,h){var u={length:0,sizeOfInstructions:0};if(!(o-s<=12)){var d=n.subarray(s,o);let t=Fe(d[0],d[1]);if(t<0)Oe(d,0,t=-1),l.set(d,c),u.length=d.length;else{let a,r=10,e=0;for(a=0;a<t;a++){var f=d[r]<<8|d[r+1];e=1+f,r+=2}n=r,s=d[r]<<8|d[r+1],o=(u.sizeOfInstructions=s,r+=2+s);let i=0;for(a=0;a<e;a++){var g=d[r++];192&g&&(d[r-1]=63&g);let e=2,t=(2&g?e=1:16&g&&(e=0),2);4&g?t=1:32&g&&(t=0);var p=e+t;i+=p,8&g&&(g=d[r++],a+=g,i+=g*p)}if(0!==i){let e=r+i;e>d.length||(!h&&0<s?(l.set(d.subarray(0,n),c),l.set([0,0],c+n),l.set(d.subarray(o,e),c+n+2),e-=s,3<d.length-e&&(e=e+3&-4),u.length=e):3<d.length-e?(e=e+3&-4,l.set(d.subarray(0,e),c),u.length=e):(l.set(d,c),u.length=d.length))}}}return u}(d,b[p].offset,b[p].endOffset,g,x,i),A=S.length;0===A&&(w[p]=!0),S.sizeOfInstructions>s&&(s=S.sizeOfInstructions),x+=A,c(u,m,x)}if(0===x){var k=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(p=0,m=o;p<h;p++,m+=o)c(u,m,k.length);t.data=k}else n?(r=l(u,o),g.length>r+x?t.data=g.subarray(0,r+x):(t.data=new Uint8Array(r+x),t.data.set(g.subarray(0,x))),t.data.set(g.subarray(0,r),x),c(e.data,u.length-o,x+r)):t.data=g.subarray(0,x);return{missingGlyphs:w,maxSizeOfInstructions:s}}function X(e){var a=(u.start||0)+e.offset,r=(u.pos=a,[[],[]]),e=e.length,i=a+e,t=u.getUint16();if(!(0!==t||e<6)){var n=u.getUint16(),s=u.getUint16(),o=[];let e,t;for(e=0;e<n&&u.pos+12<=i;e++){var l={platform:u.getUint16(),encoding:u.getUint16(),language:u.getUint16(),name:u.getUint16(),length:u.getUint16(),offset:u.getUint16()};(1===l.platform&&0===l.encoding&&0===l.language||3===l.platform&&1===l.encoding&&1033===l.language)&&o.push(l)}for(e=0,t=o.length;e<t;e++){var c=o[e];if(!(c.length<=0)){var h=a+s+c.offset;if(!(h+c.length>i)){u.pos=h;h=c.name;if(c.encoding){let a="";for(let e=0,t=c.length;e<t;e+=2)a+=String.fromCharCode(u.getUint16());r[1][h]=a}else r[0][h]=u.getString(c.length)}}}}return r}const H=[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 q(i,e){let t=i.data,a=0,r,n,s,o,l,c=0,h=0;var u=[],d=[],f=[];let g=e.tooComplexToFollowFunctions,p=!1,m=0,b=0;for(var y=t.length;a<y;){var v=t[a++];if(64===v)if(n=t[a++],p||b)a+=n;else for(r=0;r<n;r++)u.push(t[a++]);else if(65===v)if(n=t[a++],p||b)a+=2*n;else for(r=0;r<n;r++)s=t[a++],u.push(s<<8|t[a++]);else if(176==(248&v))if(n=v-176+1,p||b)a+=n;else for(r=0;r<n;r++)u.push(t[a++]);else if(184==(248&v))if(n=v-184+1,p||b)a+=2*n;else for(r=0;r<n;r++)s=t[a++],u.push(s<<8|t[a++]);else if(43!==v||g)if(44!==v||g)if(45===v)if(p)p=!1,c=a;else{if(!(l=d.pop()))return(0,ge.warn)("TT: ENDF bad stack"),void(e.hintsValid=!1);o=f.pop(),t=l.data,a=l.i,e.functionsStackDeltas[o]=u.length-l.stackTop}else 137===v?((p||b)&&((0,ge.warn)("TT: nested IDEFs not allowed"),g=!0),p=!0,h=a):88===v?++m:27===v?b=m:89===v?(b===m&&(b=0),--m):28!==v||p||b||0<(w=u.at(-1))&&(a+=w-1);else(p||b)&&((0,ge.warn)("TT: nested FDEFs not allowed"),g=!0),p=!0,h=a,o=u.pop(),e.functionsDefined[o]={data:t,i:a};else if(!p&&!b)if(o=u.at(-1),isNaN(o))(0,ge.info)("TT: CALL empty stack (or invalid entry).");else if(e.functionsUsed[o]=!0,o in e.functionsStackDeltas){var w=u.length+e.functionsStackDeltas[o];if(w<0)return(0,ge.warn)("TT: CALL invalid functions stack delta."),void(e.hintsValid=!1);u.length=w}else if(o in e.functionsDefined&&!f.includes(o)){if(d.push({data:t,i:a,stackTop:u.length-1}),f.push(o),!(l=e.functionsDefined[o]))return(0,ge.warn)("TT: CALL non-existent function"),void(e.hintsValid=!1);t=l.data,a=l.i}if(!p&&!b){let e=0;for(v<=142?e=H[v]:192<=v&&v<=223?e=-1:224<=v&&(e=-2),113<=v&&v<=117&&(n=u.pop(),isNaN(n)||(e=2*-n));e<0&&0<u.length;)u.pop(),e++;for(;0<e;)u.push(NaN),e--}}e.tooComplexToFollowFunctions=g;var x=[t],S=(a>t.length&&x.push(new Uint8Array(a-t.length)),h>c&&((0,ge.warn)("TT: complementing a missing function tail"),x.push(new Uint8Array([34,45]))),x);if(1<S.length){let e=0,t,a;for(t=0,a=S.length;t<a;t++)e+=S[t].length;e=e+3&-4;var A=new Uint8Array(e);let r=0;for(t=0,a=S.length;t<a;t++)A.set(S[t],r),r+=S[t].length;i.data=A,i.length=e}}u=new ke.Stream(new Uint8Array(u.getBytes()));let e,n;let t,a;var r=!(n=Ie(u)?(r=$(u,this.name),e=r.header,r.tables):(e=_(u),j(u,e.numTables)))["CFF "];if(r){if(!n.loca)throw new ge.FormatError('Required "loca" table is not found');n.glyf||((0,ge.warn)('Required "glyf" table is not found -- trying to recover.'),n.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var s=i.composite&&(0<(i.cidToGidMap||[]).length||!(i.cMap instanceof Se.IdentityCMap));if("OTTO"===e.version&&!s||!n.head||!n.hhea||!n.maxp||!n.post)return a=new ke.Stream(n["CFF "].data),t=new we.CFFFont(a,i),Ce(i),this.convert(R,t,i);delete n.glyf,delete n.loca,delete n.fpgm,delete n.prep,delete n["cvt "],this.isOpenType=!0}if(!n.maxp)throw new ge.FormatError('Required "maxp" table is not found');u.pos=(u.start||0)+n.maxp.offset;s=u.getInt32();const o=u.getUint16();if(i.scaleFactors&&i.scaleFactors.length===o&&r){var l=i["scaleFactors"],c=(n.head.data[50]<<8)+n.head.data[51],h=new xe.GlyfTable({glyfTable:n.glyf.data,isGlyphLocationsLong:c,locaTable:n.loca.data,numGlyphs:o}),{glyf:h,loca:d,isLocationLong:f}=(h.scale(l),h.write()),g=(n.glyf.data=h,n.loca.data=d,f!==!!c&&(n.head.data[50]=0,n.head.data[51]=f?1:0),n.hmtx.data);for(let e=0;e<o;e++){var p=4*e,m=Math.round(l[e]*((g[p]<<8)+g[1+p])),m=(g[p]=m>>8&255,g[1+p]=255&m,Math.round(l[e]*Fe(g[2+p],g[3+p])));Oe(g,2+p,m)}}let b=o+1,y=!0,z=(65535<b&&(y=!1,b=o,(0,ge.warn)("Not enough space in glyfs to duplicate first glyph.")),0),G=0;65536<=s&&22<=n.maxp.length&&(u.pos+=8,2<u.getUint16()&&(n.maxp.data[14]=0,n.maxp.data[15]=2),u.pos+=4,z=u.getUint16(),u.pos+=4,G=u.getUint16()),n.maxp.data[4]=b>>8,n.maxp.data[5]=255&b;h=n.fpgm,d=n.prep,c=n["cvt "],f=z,v={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0},h&&q(h,v),d&&q(d,v),h&&function(a,r){if(!a.tooComplexToFollowFunctions)if(a.functionsDefined.length>r)(0,ge.warn)("TT: more functions defined than expected"),a.hintsValid=!1;else for(let e=0,t=a.functionsUsed.length;e<t;e++){if(e>r)return(0,ge.warn)("TT: invalid function id: "+e),a.hintsValid=!1;if(a.functionsUsed[e]&&!a.functionsDefined[e])return(0,ge.warn)("TT: undefined function: "+e),a.hintsValid=!1}}(v,f),c&&1&c.length&&((d=new Uint8Array(c.length+1)).set(c.data),c.data=d);var v=v.hintsValid,w=(v||(delete n.fpgm,delete n.prep,delete n["cvt "]),u),x=n.hhea,S=n.hmtx,A=n.head,k=b,C=y;if(x){w.pos=(w.start||0)+x.offset,w.pos+=4,w.pos+=2,w.pos+=2,w.pos+=2,w.pos+=2,w.pos+=2,w.pos+=2,w.pos+=2,w.pos+=2,w.pos+=2;var O=w.getUint16();w.pos+=8,w.pos+=2;let e=w.getUint16();0===O||2&(A.data[44]<<8)+A.data[45]||(x.data[22]=0,x.data[23]=0),e>k&&((0,ge.info)(`The numOfMetrics (${e}) should not be `+`greater than the numGlyphs (${k}).`),e=k,x.data[34]=(65280&e)>>8,x.data[35]=255&e);w=k-e-(S.length-4*e>>1);0<w&&((O=new Uint8Array(S.length+2*w)).set(S.data),C&&(O[S.length]=S.data[2],O[S.length+1]=S.data[3]),S.data=O)}else S&&(S.data=null);if(!n.head)throw new ge.FormatError('Required "head" table is not found');A=n.head,x=o,k=r?n.loca.length:0,w=((A=A.data)[0]<<24)+(A[1]<<16)+(A[2]<<8)+A[3];if(w>>16!=1&&((0,ge.info)("Attempting to fix invalid version in head table: "+w),A[0]=0,A[1]=1,A[2]=0,A[3]=0),(w=(A[50]<<8)+A[51])<0||1<w){(0,ge.info)("Attempting to fix invalid indexToLocFormat in head table: "+w);x=x+1;if(k===x<<1)A[50]=0,A[51]=0;else{if(k!==x<<2)throw new ge.FormatError("Could not fix indexToLocFormat: "+w);A[50]=0,A[51]=1}}let W=Object.create(null);if(r&&(C=(n.head.data[50]<<8)+n.head.data[51],O=U(n.loca,n.glyf,o,C,v,y,G),W=O.missingGlyphs,65536<=s)&&22<=n.maxp.length&&(n.maxp.data[26]=O.maxSizeOfInstructions>>8,n.maxp.data[27]=255&O.maxSizeOfInstructions),!n.hhea)throw new ge.FormatError('Required "hhea" table is not found');0===n.hhea.data[10]&&0===n.hhea.data[11]&&(n.hhea.data[10]=255,n.hhea.data[11]=255);S={unitsPerEm:(n.head.data[18]<<8)+n.head.data[19],yMax:(n.head.data[42]<<8)+n.head.data[43],yMin:Fe(n.head.data[38],n.head.data[39]),ascent:Fe(n.hhea.data[4],n.hhea.data[5]),descent:Fe(n.hhea.data[6],n.hhea.data[7]),lineGap:Fe(n.hhea.data[8],n.hhea.data[9])};if(this.ascent=S.ascent/S.unitsPerEm,this.descent=S.descent/S.unitsPerEm,this.lineGap=S.lineGap/S.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,n.post){k=n.post;var F=i;var V=o;var x=(u.start||0)+k.offset,k=(u.pos=x,k.length),K=x+k,Y=u.getInt32();u.skip(28);let e,t=!0,a;switch(Y){case 65536:e=me.MacStandardGlyphOrdering;break;case 131072:var I=u.getUint16();if(I!==V)t=!1;else{var J=[];for(a=0;a<I;++a){var Z=u.getUint16();if(32768<=Z){t=!1;break}J.push(Z)}if(t){for(var Q=[],T=[];u.pos<K;){var ee=u.getByte();for(T.length=ee,a=0;a<ee;++a)T[a]=String.fromCharCode(u.getByte());Q.push(T.join(""))}for(e=[],a=0;a<I;++a){var te=J[a];te<258?e.push(me.MacStandardGlyphOrdering[te]):e.push(Q[te-258])}}}break;case 196608:break;default:(0,ge.warn)("Unknown/unsupported post table version "+Y),t=!1,F.defaultEncoding&&(e=F.defaultEncoding)}F.glyphNames=e,t}n.post={tag:"post",data:Ne(i)};const M=[];function ae(e){return!W[e]}if(i.composite){const B=i.cidToGidMap||[],ce=0===B.length;i.cMap.forEach(function(e,t){if(65535<(t="string"==typeof t?Te(e,t,!0):t))throw new ge.FormatError("Max size of CID is 65,535");let a=-1;ce?a=t:void 0!==B[t]&&(a=B[t]),0<=a&&a<o&&ae(a)&&(M[e]=a)})}else{var P,w=function(e,r,i,n){if(!e)return(0,ge.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let s,o=(r.start||0)+e.offset;r.pos=o,r.skip(2);var l=r.getUint16();let c,h=!1;for(let a=0;a<l;a++){var u,d=r.getUint16(),f=r.getUint16(),g=r.getInt32()>>>0;let t=!1;if(!c||c.platformId!==d||c.encodingId!==f){if(0!==d||0!==f&&1!==f&&3!==f)if(1===d&&0===f)t=!0;else if(3!==d||1!==f||!n&&c){if(i&&3===d&&0===f){let e=t=!0;(e=a<l-1&&((u=r.peekBytes(2))[0]<<8)+u[1]<d?!1:e)&&(h=!0)}}else t=!0,i||(h=!0);else t=!0;if(t&&(c={platformId:d,encodingId:f,offset:g}),h)break}}if(c&&(r.pos=o+c.offset),!c||-1===r.peekByte())return(0,ge.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};e=r.getUint16();let t=!1;var p=[];let m,b;if(0===e){for(r.skip(4),m=0;m<256;m++){var a=r.getByte();a&&p.push({charCode:m,glyphId:a})}t=!0}else if(2===e){r.skip(4);var y=[];let t=0;for(let e=0;e<256;e++){var v=r.getUint16()>>3;y.push(v),t=Math.max(v,t)}var w=[];for(let e=0;e<=t;e++)w.push({firstCode:r.getUint16(),entryCount:r.getUint16(),idDelta:Fe(r.getByte(),r.getByte()),idRangePos:r.pos+r.getUint16()});for(let e=0;e<256;e++)if(0===y[e])r.pos=w[0].idRangePos+2*e,b=r.getUint16(),p.push({charCode:e,glyphId:b});else{var x=w[y[e]];for(m=0;m<x.entryCount;m++){var S=(e<<8)+m+x.firstCode;r.pos=x.idRangePos+2*m,0!==(b=r.getUint16())&&(b=(b+x.idDelta)%65536),p.push({charCode:S,glyphId:b})}}}else if(4===e){r.skip(4);var A=r.getUint16()>>1,k=(r.skip(6),[]);let e;for(e=0;e<A;e++)k.push({end:r.getUint16()});for(r.skip(2),e=0;e<A;e++)k[e].start=r.getUint16();for(e=0;e<A;e++)k[e].delta=r.getUint16();let t=0,a;for(e=0;e<A;e++){s=k[e];var C=r.getUint16();C?(a=(C>>1)-(A-e),s.offsetIndex=a,t=Math.max(t,a+s.end-s.start+1)):s.offsetIndex=-1}var O=[];for(m=0;m<t;m++)O.push(r.getUint16());for(e=0;e<A;e++){s=k[e],o=s.start;var F=s.end,I=s.delta;for(a=s.offsetIndex,m=o;m<=F;m++)65535!==m&&(b=(b=a<0?m:O[a+m-o])+I&65535,p.push({charCode:m,glyphId:b}))}}else if(6===e){r.skip(4);var T=r.getUint16(),M=r.getUint16();for(m=0;m<M;m++){b=r.getUint16();var P=T+m;p.push({charCode:P,glyphId:b})}}else{if(12!==e)return(0,ge.warn)("cmap table has unsupported format: "+e),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};r.skip(10);var E=r.getInt32()>>>0;for(m=0;m<E;m++){var N=r.getInt32()>>>0,D=r.getInt32()>>>0;let t=r.getInt32()>>>0;for(let e=N;e<=D;e++)p.push({charCode:e,glyphId:t++})}}p.sort(function(e,t){return e.charCode-t.charCode});for(let e=1;e<p.length;e++)p[e-1].charCode===p[e].charCode&&(p.splice(e,1),e--);return{platformId:c.platformId,encodingId:c.encodingId,mappings:p,hasShortCmap:t}}(n.cmap,u,this.isSymbolicFont,i.hasEncoding),E=w.platformId,N=w.encodingId,re=w.mappings;let r=[],t=!1;if(!i.hasEncoding||"MacRomanEncoding"!==i.baseEncodingName&&"WinAnsiEncoding"!==i.baseEncodingName||(r=(0,ye.getEncoding)(i.baseEncodingName)),i.hasEncoding&&!this.isSymbolicFont&&(3===E&&1===N||1===E&&0===N)){var ie=(0,be.getGlyphsUnicode)();for(let a=0;a<256;a++){let t;if(t=(void 0!==this.differences[a]?this.differences:r.length&&""!==r[a]?r:ye.StandardEncoding)[a]){var D=(0,me.recoverGlyphName)(t,ie);let e;if(3===E&&1===N?e=ie[D]:1===E&&0===N&&(e=ye.MacRomanEncoding.indexOf(D)),void 0===e)if(i.glyphNames||!i.hasIncludedToUnicodeMap||this.toUnicode instanceof ve.IdentityToUnicodeMap||(D=this.toUnicode.get(a))&&(e=D.codePointAt(0)),void 0===e)continue;for(const he of re)if(he.charCode===e){M[a]=he.glyphId;break}}}}else if(0===E){for(const ue of re)M[ue.charCode]=ue.glyphId;t=!0}else for(const de of re){let e=de.charCode;3===E&&61440<=e&&e<=61695&&(e&=255),M[e]=de.glyphId}if(i.glyphNames&&(r.length||this.differences.length))for(let e=0;e<256;++e)(t||void 0===M[e])&&(P=this.differences[e]||r[e])&&0<(P=i.glyphNames.indexOf(P))&&ae(P)&&(M[e]=P)}0===M.length&&(M[0]=0);let ne=b-1;if(y||(ne=0),i.cssFontInfo||(A=Me(M,ae,ne,this.toUnicode),this.toFontChar=A.toFontChar,n.cmap={tag:"cmap",data:Pe(A.charCodeToGlyphId,A.toUnicodeExtraMap,b)},n["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var a=t.getUint16(),r=(t.skip(60),t.getUint16());if(!(a<4&&768&r))return a=t.getUint16(),!(t.getUint16()<a)&&(t.skip(6),0!==t.getUint16())&&(e.data[8]=e.data[9]=0,1)}(n["OS/2"],u))||(n["OS/2"]={tag:"OS/2",data:Ee(i,A.charCodeToGlyphId,S)}),!r)try{a=new ke.Stream(n["CFF "].data);var se=new pe.CFFParser(a,i,me.SEAC_ANALYSIS_ENABLED),oe=((t=se.parse()).duplicateFirstGlyph(),new pe.CFFCompiler(t));n["CFF "].data=oe.compile()}catch(e){(0,ge.warn)("Failed to compile font "+i.loadedName)}n.name?(C=X(n.name),n.name.data=De(R,C),this.psName=C[0][6]||null):n.name={tag:"name",data:De(this.name)};var le=new Ae.OpenTypeFileBuilder(e.version);for(const fe in n)le.addTable(fe,n[fe].data);return le.toArray()}convert(e,t,a){if(a.fixedPitch=!1,a.builtInEncoding){var r=a,i=a.builtInEncoding;if(!r.isInternalFont&&!(r.hasIncludedToUnicodeMap||i===r.defaultEncoding||r.toUnicode instanceof ve.IdentityToUnicodeMap)){var n,s=[],o=(0,be.getGlyphsUnicode)();for(const M in i)r.hasEncoding&&(0===r.differences.length||void 0!==r.differences[M])||(n=i[M],-1===(n=(0,E.getUnicodeForGlyph)(n,o)))||(s[M]=String.fromCharCode(n));0<s.length&&r.toUnicode.amend(s)}}let l=1;t instanceof we.CFFFont&&(l=t.numGlyphs-1);var c=t.getGlyphMapping(a);let h=null,u=c,d=null;a.cssFontInfo||(h=Me(c,t.hasGlyphId.bind(t),l,this.toUnicode),this.toFontChar=h.toFontChar,u=h.charCodeToGlyphId,d=h.toUnicodeExtraMap);const f=t.numGlyphs;function g(e,t){for(const a in e)if(t===e[a])return 0|a;return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}var p=t.seacs;if(h&&me.SEAC_ANALYSIS_ENABLED&&p&&p.length){var m,b=a.fontMatrix||ge.FONT_IDENTITY_MATRIX,y=t.getCharset(),v=Object.create(null);for(m in p){var w=p[m|=0],x=ye.StandardEncoding[w[2]],S=ye.StandardEncoding[w[3]],A=y.indexOf(x),k=y.indexOf(S);if(!(A<0||k<0)){var C={x:w[0]*b[0]+w[1]*b[2]+b[4],y:w[0]*b[1]+w[1]*b[3]+b[5]},x=function(e,t){let a=null;for(const r in e)t===e[r]&&(a=a||[]).push(0|r);return a}(c,m);if(x)for(const P of x){var O=h.charCodeToGlyphId,F=g(O,A),O=g(O,k);v[P]={baseFontCharCode:F,accentFontCharCode:O,accentOffset:C}}}}a.seacMap=v}var I=1/(a.fontMatrix||ge.FONT_IDENTITY_MATRIX)[0],T=new Ae.OpenTypeFileBuilder("OTTO");return T.addTable("CFF ",t.data),T.addTable("OS/2",Ee(a,u)),T.addTable("cmap",Pe(u,d,f)),T.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+D(I)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+D(a.descent)+"ÿ"+D(a.ascent)+N(a.italicAngle?2:0)+"\0\0\0\0\0\0\0"),T.addTable("hhea","\0\0\0"+D(a.ascent)+D(a.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+D(a.capHeight)+D(Math.tan(a.italicAngle)*a.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+N(f)),T.addTable("hmtx",function(){var a,r=t.charstrings,i=t.cff?t.cff.widths:null;let n="\0\0\0\0";for(let t=1,e=f;t<e;t++){let e=0;r?(a=r[t-1],e="width"in a?a.width:0):i&&(e=Math.ceil(i[t]||0)),n+=N(e)+N(0)}return n}()),T.addTable("maxp","\0\0P\0"+N(f)),T.addTable("name",De(e)),T.addTable("post",Ne(a)),T.toArray()}get spaceWidth(){let t;for(const r of["space","minus","one","i","I"]){if(r in this.widths){t=this.widths[r];break}var a=(0,be.getGlyphsUnicode)()[r];let e=0;if((e=!(e=this.composite&&this.cMap.contains(a)&&"string"==typeof(e=this.cMap.lookup(a))?Te(a,e):e)&&this.toUnicode?this.toUnicode.charCodeOf(a):e)<=0&&(e=a),t=this.widths[e])break}return t=t||this.defaultWidth,(0,ge.shadow)(this,"spaceWidth",t)}_charToGlyph(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=this._glyphCache[e];if(a&&a.isSpace===t)return a;let r,i,n,s=e;this.cMap&&this.cMap.contains(e)&&"string"==typeof(s=this.cMap.lookup(e))&&(s=Te(e,s)),"number"!=typeof(i=this.widths[s])&&(i=this.defaultWidth);var o,l=this.vmetrics&&this.vmetrics[s];let c=this.toUnicode.get(e)||e,h=("number"==typeof c&&(c=String.fromCharCode(c)),void 0!==this.toFontChar[e]),u=(r=this.toFontChar[e]||e,this.missingFile&&(".notdef"!==(o=this.differences[e]||this.defaultEncoding[e])&&""!==o||"Type1"!==this.type||(r=32),r=(0,E.mapSpecialUnicodeValues)(r)),this.isType3Font&&(n=r),null),d=(this.seacMap&&this.seacMap[e]&&(h=!0,o=this.seacMap[e],r=o.baseFontCharCode,u={fontChar:String.fromCodePoint(o.accentFontCharCode),offset:o.accentOffset}),"");return"number"==typeof r&&(r<=1114111?d=String.fromCodePoint(r):(0,ge.warn)("charToGlyph - invalid fontCharCode: "+r)),a=new f(e,d,c,u,i,l,n,t,h),this._glyphCache[e]=a}charsToGlyphs(a){var r=this._charsCache[a];if(r)return r;if(r=[],this.cMap){var t=Object.create(null),i=a.length;let e=0;for(;e<i;){this.cMap.readCharCode(a,e,t);var{charcode:n,length:s}=t,n=(e+=s,this._charToGlyph(n,1===s&&32===a.charCodeAt(e-1)));r.push(n)}}else for(let e=0,t=a.length;e<t;++e){var o=a.charCodeAt(e),o=this._charToGlyph(o,32===o);r.push(o)}return this._charsCache[a]=r}getCharPositions(a){var r=[];if(this.cMap){var t=Object.create(null);let e=0;for(;e<a.length;){this.cMap.readCharCode(a,e,t);var i=t.length;r.push([e,e+i]),e+=i}}else for(let e=0,t=a.length;e<t;++e)r.push([e,e+1]);return r}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(a){const r=[];var i=[],n=()=>r.length%2==1,s=this.toUnicode instanceof ve.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let e=0,t=a.length;e<t;e++){var o=a.codePointAt(e);if(55295<o&&(o<57344||65533<o)&&e++,this.toUnicode){var l=s(o);if(-1!==l){n()&&(r.push(i.join("")),i.length=0);for(let e=(this.cMap?this.cMap.getCharCodeLength(l):1)-1;0<=e;e--)i.push(String.fromCharCode(l>>8*e&255));continue}}n()||(r.push(i.join("")),i.length=0),i.push(String.fromCodePoint(o))}return r.push(i.join("")),r}};e.ErrorFont=class{constructor(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var S=a(2),d=a(165),A=a(166);const r=[".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"],h=(t.CFFStandardStrings=r,[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}]),u=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];t.CFFParser=class{constructor(e,t,a){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!a}parse(){var e=this.properties,a=new f,t=(this.cff=a,this.parseHeader()),r=this.parseIndex(t.endPos),i=this.parseIndex(r.endPos),n=this.parseIndex(i.endPos),s=this.parseIndex(n.endPos),i=this.parseDict(i.obj.get(0)),i=this.createDict(p,i,a.strings),t=(a.header=t.obj,a.names=this.parseNameIndex(r.obj),a.strings=this.parseStringIndex(n.obj),a.topDict=i,a.globalSubrIndex=s.obj,this.parsePrivateDict(a.topDict),a.isCIDFont=i.hasName("ROS"),i.getByName("CharStrings")),r=this.parseIndex(t).obj,n=i.getByName("FontMatrix"),t=(n&&(e.fontMatrix=n),i.getByName("FontBBox"));t&&(e.ascent=Math.max(t[3],t[1]),e.descent=Math.min(t[1],t[3]),e.ascentScaled=!0);let o,l;if(a.isCIDFont){var c=this.parseIndex(i.getByName("FDArray")).obj;for(let e=0,t=c.count;e<t;++e){var h=c.get(e),h=this.createDict(p,this.parseDict(h),a.strings);this.parsePrivateDict(h),a.fdArray.push(h)}l=null,o=this.parseCharsets(i.getByName("charset"),r.count,a.strings,!0),a.fdSelect=this.parseFDSelect(i.getByName("FDSelect"),r.count)}else o=this.parseCharsets(i.getByName("charset"),r.count,a.strings,!1),l=this.parseEncoding(i.getByName("Encoding"),e,a.strings,o.charset);a.charset=o,a.encoding=l;n=this.parseCharStrings({charStrings:r,localSubrIndex:i.privateDict.subrsIndex,globalSubrIndex:s.obj,fdSelect:a.fdSelect,fdArray:a.fdArray,privateDict:i.privateDict});return a.charStrings=n.charStrings,a.seacs=n.seacs,a.widths=n.widths,a}parseHeader(){let e=this.bytes;var t=e.length;let a=0;for(;a<t&&1!==e[a];)++a;if(a>=t)throw new S.FormatError("Invalid CFF header");0!==a&&((0,S.info)("cff data is shifted"),e=e.subarray(a),this.bytes=e);var r=e[0],i=e[1],n=e[2],s=e[3];return{obj:new o(r,i,n,s),endPos:n}}parseDict(n){let s=0;function t(){let e=n[s++];if(30!==e)return 28===e?e=((e=n[s++])<<24|n[s++]<<16)>>16:29===e?e=(e=(e=(e=n[s++])<<8|n[s++])<<8|n[s++])<<8|n[s++]:32<=e&&e<=246?e-139:247<=e&&e<=250?256*(e-247)+n[s++]+108:251<=e&&e<=254?-256*(e-251)-n[s++]-108:((0,S.warn)('CFFParser_parseDict: "'+e+'" is a reserved command.'),NaN);{let e="";var t=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],a=n.length;for(;s<a;){var r=n[s++],i=r>>4,r=15&r;if(15==i)break;if(e+=t[i],15==r)break;e+=t[r]}return parseFloat(e)}}let a=[];for(var r=[],e=(s=0,n.length);s<e;){let e=n[s];e<=21?(12===e&&(e=e<<8|n[++s]),r.push([e,a]),a=[],++s):a.push(t())}return r}parseIndex(a){var e=new g,r=this.bytes,t=r[a++]<<8|r[a++],i=[];let n=a,s,o;if(0!=t){var l=r[a++],c=a+(1+t)*l-1;for(s=0,o=1+t;s<o;++s){let t=0;for(let e=0;e<l;++e)t=(t<<=8)+r[a++];i.push(c+t)}n=i[t]}for(s=0,o=i.length-1;s<o;++s){var h=i[s],u=i[s+1];e.add(r.subarray(h,u))}return{obj:e,endPos:n}}parseNameIndex(a){var r=[];for(let e=0,t=a.count;e<t;++e){var i=a.get(e);r.push((0,S.bytesToString)(i))}return r}parseStringIndex(a){var r=new n;for(let e=0,t=a.count;e<t;++e){var i=a.get(e);r.add((0,S.bytesToString)(i))}return r}createDict(e,t,a){var r,i,n=new e(a);for([r,i]of t)n.setByKey(r,i);return n}parseCharString(r,t,i,n){if(!t||10<r.callDepth)return!1;let s=r.stackSize;var o=r.stack,a=t.length;for(let e=0;e<a;){var l=t[e++];let a=null;if(12===l){var c=t[e++];0===c?(t[e-2]=139,t[e-1]=22,s=0):a=u[c]}else if(28===l)o[s]=(t[e]<<24|t[e+1]<<16)>>16,e+=2,s++;else if(14===l){if(4<=s&&(s-=4,this.seacAnalysisEnabled))return r.seac=o.slice(s,s+4),!1;a=h[l]}else if(32<=l&&l<=246)o[s]=l-139,s++;else if(247<=l&&l<=254)o[s]=l<251?(l-247<<8)+t[e]+108:-(l-251<<8)-t[e]-108,e++,s++;else if(255===l)o[s]=(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])/65536,e+=4,s++;else if(19===l||20===l)r.hints+=s>>1,e+=r.hints+7>>3,s%=2,a=h[l];else{if(10===l||29===l){let e;if(!(e=10===l?i:n))return a=h[l],(0,S.warn)("Missing subrsIndex for "+a.id),!1;let t=32768;e.count<1240?t=107:e.count<33900&&(t=1131);c=o[--s]+t;if(c<0||c>=e.count||isNaN(c))return a=h[l],(0,S.warn)("Out of bounds subrIndex for "+a.id),!1;if(r.stackSize=s,r.callDepth++,!this.parseCharString(r,e.get(c),i,n))return!1;r.callDepth--,s=r.stackSize;continue}if(11===l)return r.stackSize=s,!0;a=0===l&&e===t.length?(t[e-1]=14,h[14]):h[l]}if(a){if(a.stem&&(r.hints+=s>>1,3===l||23===l?r.hasVStems=!0:!r.hasVStems||1!==l&&18!==l||((0,S.warn)("CFF stem hints are in wrong order"),t[e-1]=1===l?3:23)),"min"in a&&!r.undefStack&&s<a.min)return(0,S.warn)("Not enough parameters for "+a.id+"; actual: "+s+", expected: "+a.min),0===s&&(t[e-1]=14,!0);r.firstStackClearing&&a.stackClearing&&(r.firstStackClearing=!1,2<=(s-=a.min)&&a.stem?s%=2:1<s&&(0,S.warn)("Found too many parameters for stack-clearing command"),0<s)&&(r.width=o[s-1]),"stackDelta"in a?("stackFn"in a&&a.stackFn(o,s),s+=a.stackDelta):a.stackClearing?s=0:a.resetStack?(s=0,r.undefStack=!1):a.undefStack&&(s=0,r.undefStack=!0,r.firstStackClearing=!1)}}return r.stackSize=s,!0}parseCharStrings(e){var{charStrings:i,localSubrIndex:n,globalSubrIndex:s,fdSelect:o,fdArray:l,privateDict:c}=e,h=[],u=[],t=i.count;for(let r=0;r<t;r++){var d,f=i.get(r),g={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let e=!0,t=null,a=c;o&&l.length?(-1===(d=o.getFDIndex(r))&&((0,S.warn)("Glyph index is not in fd select."),e=!1),d>=l.length&&((0,S.warn)("Invalid fd index for glyph index."),e=!1),e&&(a=l[d].privateDict,t=a.subrsIndex)):n&&(t=n),e=e&&this.parseCharString(g,f,t,s),null!==g.width?(d=a.getByName("nominalWidthX"),u[r]=d+g.width):(f=a.getByName("defaultWidthX"),u[r]=f),null!==g.seac&&(h[r]=g.seac),e||i.set(r,new Uint8Array([14]))}return{charStrings:i,seacs:h,widths:u}}emptyPrivateDictionary(e){var t=this.createDict(c,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){var t,a,r;e.hasName("Private")?(r=e.getByName("Private"),Array.isArray(r)&&2===r.length?(t=r[0],r=r[1],0===t||r>=this.bytes.length?this.emptyPrivateDictionary(e):(t=this.bytes.subarray(r,r+t),t=this.parseDict(t),t=this.createDict(c,t,e.strings),(e.privateDict=t).getByName("Subrs")&&(a=r+(r=t.getByName("Subrs")),0===r||a>=this.bytes.length?this.emptyPrivateDictionary(e):(r=this.parseIndex(a),t.subrsIndex=r.obj)))):e.removeByName("Private")):this.emptyPrivateDictionary(e)}parseCharsets(e,t,a,r){if(0===e)return new b(!0,m.ISO_ADOBE,d.ISOAdobeCharset);if(1===e)return new b(!0,m.EXPERT,d.ExpertCharset);if(2===e)return new b(!0,m.EXPERT_SUBSET,d.ExpertSubsetCharset);var i=this.bytes,n=e,s=i[e++],o=[r?0:".notdef"];let l,c,h;switch(--t,s){case 0:for(h=0;h<t;h++)l=i[e++]<<8|i[e++],o.push(r?l:a.get(l));break;case 1:for(;o.length<=t;)for(l=i[e++]<<8|i[e++],c=i[e++],h=0;h<=c;h++)o.push(r?l++:a.get(l++));break;case 2:for(;o.length<=t;)for(l=i[e++]<<8|i[e++],c=i[e++]<<8|i[e++],h=0;h<=c;h++)o.push(r?l++:a.get(l++));break;default:throw new S.FormatError("Unknown charset format")}var u=e,n=i.subarray(n,u);return new b(!1,s,o,n)}parseEncoding(e,t,a,r){const i=Object.create(null),n=this.bytes;let s=!1,o,l,c,h=null;if(0===e||1===e){s=!0;var u=(o=e)?A.ExpertEncoding:A.StandardEncoding;for(l=0,c=r.length;l<c;l++){var d=u.indexOf(r[l]);-1!==d&&(i[d]=l)}}else{var f=e;switch(127&(o=n[e++])){case 0:var g=n[e++];for(l=1;l<=g;l++)i[n[e++]]=l;break;case 1:var p=n[e++];let t=1;for(l=0;l<p;l++){var m=n[e++],b=n[e++];for(let e=m;e<=m+b;e++)i[e]=t++}break;default:throw new S.FormatError(`Unknown encoding format: ${o} in CFF`)}var y=e;if(128&o){n[f]&=127;var v=n[e++];for(l=0;l<v;l++){var w=n[e++],x=(n[e++]<<8)+(255&n[e++]);i[w]=r.indexOf(a.get(x))}}h=n.subarray(f,y)}return o&=127,new k(s,o,i,h)}parseFDSelect(e,t){var a=this.bytes,r=a[e++],i=[];let n;switch(r){case 0:for(n=0;n<t;++n){var s=a[e++];i.push(s)}break;case 3:var o=a[e++]<<8|a[e++];for(n=0;n<o;++n){let t=a[e++]<<8|a[e++];0===n&&0!==t&&((0,S.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),t=0);var l=a[e++],c=a[e]<<8|a[e+1];for(let e=t;e<c;++e)i.push(l)}e+=2;break;default:throw new S.FormatError(`parseFDSelect: Unknown format "${r}".`)}if(i.length!==t)throw new S.FormatError("parseFDSelect: Invalid font data.");return new y(r,i)}};class f{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new n,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){var e;65535<=this.charStrings.count?(0,S.warn)("Not enough space in charstrings to duplicate first glyph."):(e=this.charStrings.get(0),this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0]))}hasGlyphId(e){return!(e<0||e>=this.charStrings.count)&&0<this.charStrings.get(e).length}}t.CFF=f;class o{constructor(e,t,a,r){this.major=e,this.minor=t,this.hdrSize=a,this.offSize=r}}t.CFFHeader=o;class n{constructor(){this.strings=[]}get(e){return 0<=e&&e<=390?r[e]:e-391<=this.strings.length?this.strings[e-391]:r[0]}getSID(e){var t=r.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=n;class g{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=g;class i{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(0!==t.length){for(const r of t)if(isNaN(r))return(0,S.warn)(`Invalid CFFDict value: "${t}" for key "${e}".`),!0;var a=this.types[e];"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]),this.values[e]=t}return!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new S.FormatError(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){var t;if(e in this.nameToKeyMap)return((t=this.nameToKeyMap[e])in this.values?this.values:this.defaults)[t];throw new S.FormatError(`Invalid dictionary name ${e}"`)}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const r of e){var a=Array.isArray(r[0])?(r[0][0]<<8)+r[0][1]:r[0];t.keyToNameMap[a]=r[1],t.nameToKeyMap[r[1]]=a,t.types[a]=r[2],t.defaults[a]=r[3],t.opcodes[a]=Array.isArray(r[0])?r[0]:[r[0]],t.order.push(a)}return t}}const s=[[[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 p extends i{static get tables(){return(0,S.shadow)(this,"tables",this.createTables(s))}constructor(e){super(p.tables,e),this.privateDict=null}}t.CFFTopDict=p;const l=[[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 c extends i{static get tables(){return(0,S.shadow)(this,"tables",this.createTables(l))}constructor(e){super(c.tables,e),this.subrsIndex=null}}t.CFFPrivateDict=c;const m={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class b{constructor(e,t,a,r){this.predefined=e,this.format=t,this.charset=a,this.raw=r}}t.CFFCharset=b;class k{constructor(e,t,a,r){this.predefined=e,this.format=t,this.encoding=a,this.raw=r}}class y{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=y;class v{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new S.FormatError("Already tracking location of "+e);this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,a,t){if(!(e in this.offsets))throw new S.FormatError("Not tracking location of "+e);var r=t.data,i=this.offsets[e];for(let e=0,t=a.length;e<t;++e){var n=5*e+i,s=n+1,o=n+2,l=n+3,c=n+4;if(29!==r[n]||0!==r[s]||0!==r[o]||0!==r[l]||0!==r[c])throw new S.FormatError("writing to an offset that is not empty");var h=a[e];r[n]=29,r[s]=h>>24&255,r[o]=h>>16&255,r[l]=h>>8&255,r[c]=255&h}}}class w{constructor(e){this.cff=e}compile(){var e=this.cff,t={data:[],length:0,add(e){this.data=this.data.concat(e),this.length=this.data.length}},a=this.compileHeader(e.header),a=(t.add(a),this.compileNameIndex(e.names));if(t.add(a),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var r=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(const s of e.fdArray){let e=r.slice(0);s.hasName("FontMatrix")&&(e=S.Util.transform(e,s.getByName("FontMatrix"))),s.setByName("FontMatrix",e)}}var a=e.topDict.getByName("XUID"),a=(a&&16<a.length&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0),this.compileTopDicts([e.topDict],t.length,e.isCIDFont)),i=(t.add(a.output),a.trackers[0]),n=this.compileStringIndex(e.strings.strings),n=(t.add(n),this.compileIndex(e.globalSubrIndex)),n=(t.add(n),e.encoding&&e.topDict.hasName("Encoding")&&(e.encoding.predefined?i.setEntryLocation("Encoding",[e.encoding.format],t):(n=this.compileEncoding(e.encoding),i.setEntryLocation("Encoding",[t.length],t),t.add(n))),this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont)),n=(i.setEntryLocation("charset",[t.length],t),t.add(n),this.compileCharStrings(e.charStrings));return i.setEntryLocation("CharStrings",[t.length],t),t.add(n),e.isCIDFont&&(i.setEntryLocation("FDSelect",[t.length],t),n=this.compileFDSelect(e.fdSelect),t.add(n),a=this.compileTopDicts(e.fdArray,t.length,!0),i.setEntryLocation("FDArray",[t.length],t),t.add(a.output),n=a.trackers,this.compilePrivateDicts(e.fdArray,n,t)),this.compilePrivateDicts([e.topDict],[i],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,S.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();var a=w.EncodeFloatRegExp.exec(t);a&&(a=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length)),t=(Math.round(e*a)/a).toString());let r="",i,n;for(i=0,n=t.length;i<n;++i){var s=t[i];r+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}r+=1&r.length?"f":"ff";var o=[30];for(i=0,n=r.length;i<n;i+=2)o.push(parseInt(r.substring(i,i+2),16));return o}encodeInteger(e){let t;return t=-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){var t=new g;for(const i of e){var r=Math.min(i.length,127);let a=new Array(r);for(let t=0;t<r;t++){let e=i[t];(e<"!"||"~"<e||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_"),a[t]=e}""===(a=a.join(""))&&(a="Bad_Font_Name"),t.add((0,S.stringToBytes)(a))}return this.compileIndex(t)}compileTopDicts(e,t,a){var r=[];let i=new g;for(const o of e){a&&(o.removeByName("CIDFontVersion"),o.removeByName("CIDFontRevision"),o.removeByName("CIDFontType"),o.removeByName("CIDCount"),o.removeByName("UIDBase"));var n=new v,s=this.compileDict(o,n);r.push(n),i.add(s),n.offset(t)}return{trackers:r,output:i=this.compileIndex(i,r)}}compilePrivateDicts(a,r,i){for(let t=0,e=a.length;t<e;++t){var n=a[t],s=n.privateDict;if(!s||!n.hasName("Private"))throw new S.FormatError("There must be a private dictionary.");var n=new v,o=this.compileDict(s,n);let e=i.length;n.offset(e),o.length||(e=0),r[t].setEntryLocation("Private",[o.length,e],i),i.add(o),s.subrsIndex&&s.hasName("Subrs")&&(s=this.compileIndex(s.subrsIndex),n.setEntryLocation("Subrs",[o.length],i),i.add(s))}}compileDict(i,n){var s=[];for(const h of i.order)if(h in i.values){let a=i.values[h],r=i.types[h];if(Array.isArray(r)||(r=[r]),0!==(a=Array.isArray(a)?a:[a]).length){for(let e=0,t=r.length;e<t;++e){var o=r[e],l=a[e];switch(o){case"num":case"sid":s.push(...this.encodeNumber(l));break;case"offset":var c=i.keyToNameMap[h];n.isTracking(c)||n.track(c,s.length),s.push(29,0,0,0,0);break;case"array":case"delta":s.push(...this.encodeNumber(l));for(let e=1,t=a.length;e<t;++e)s.push(...this.encodeNumber(a[e]));break;default:throw new S.FormatError("Unknown data type of "+o)}}s.push(...i.opcodes[h])}}return s}compileStringIndex(e){var t=new g;for(const a of e)t.add((0,S.stringToBytes)(a));return this.compileIndex(t)}compileGlobalSubrIndex(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))}compileCharStrings(t){var a=new g;for(let e=0;e<t.count;e++){var r=t.get(e);0===r.length?a.add(new Uint8Array([139,14])):a.add(r)}return this.compileIndex(a)}compileCharset(i,e,n,t){let s;e-=1;if(t)s=new Uint8Array([2,0,0,e>>8&255,255&e]);else{let a=(s=new Uint8Array(1+2*e))[0]=0;var o,l=i.charset.length;let r=!1;for(let t=1;t<s.length;t+=2){let e=0;a<l&&(o=i.charset[a++],-1===(e=n.getSID(o)))&&(e=0,r||(r=!0,(0,S.warn)(`Couldn't find ${o} in CFF strings`))),s[t]=e>>8&255,s[t+1]=255&e}}return this.compileTypedArray(s)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(t){var a=t.format;let r,i;switch(a){case 0:for((r=new Uint8Array(1+t.fdSelect.length))[0]=a,i=0;i<t.fdSelect.length;i++)r[i+1]=t.fdSelect[i];break;case 3:let e=t.fdSelect[0];var n=[a,0,0,0,0,e];for(i=1;i<t.fdSelect.length;i++){var s=t.fdSelect[i];s!==e&&(n.push(i>>8&255,255&i,s),e=s)}var o=(n.length-3)/3;n[1]=o>>8&255,n[2]=255&o,n.push(i>>8&255,255&i),r=new Uint8Array(n)}return this.compileTypedArray(r)}compileTypedArray(a){var r=[];for(let e=0,t=a.length;e<t;++e)r[e]=a[e];return r}compileIndex(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=e.objects,r=a.length;if(0===r)return[0,0];var i=[r>>8&255,255&r];let n=1,s;for(s=0;s<r;++s)n+=a[s].length;let o,l=(o=n<256?1:n<65536?2:n<16777216?3:4,i.push(o),1);for(s=0;s<r+1;s++)1===o?i.push(255&l):2===o?i.push(l>>8&255,255&l):3===o?i.push(l>>16&255,l>>8&255,255&l):i.push(l>>>24&255,l>>16&255,l>>8&255,255&l),a[s]&&(l+=a[s].length);for(s=0;s<r;s++)t[s]&&t[s].offset(i.length),i.push(...a[s]);return i}}t.CFFCompiler=w},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0;t.ISOAdobeCharset=[".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"],t.ExpertCharset=[".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"];t.ExpertSubsetCharset=[".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"]},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return n;case"MacRomanEncoding":return i;case"SymbolSetEncoding":return o;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return a;case"MacExpertEncoding":return r;default:return null}};const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],r=(t.ExpertEncoding=a,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""]),i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],n=(t.MacRomanEncoding=i,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""]),s=(t.StandardEncoding=n,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"]),o=(t.WinAnsiEncoding=s,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""]),l=(t.SymbolSetEncoding=o,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""]);t.ZapfDingbatsEncoding=l},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.getFontType=function(e,t){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2];switch(e){case"Type1":return a?i.FontType.TYPE1STANDARD:"Type1C"===t?i.FontType.TYPE1C:i.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?i.FontType.CIDFONTTYPE0C:i.FontType.CIDFONTTYPE0;case"OpenType":return i.FontType.OPENTYPE;case"TrueType":return i.FontType.TRUETYPE;case"CIDFontType2":return i.FontType.CIDFONTTYPE2;case"MMType1":return i.FontType.MMTYPE1;case"Type0":return i.FontType.TYPE0;default:return i.FontType.UNKNOWN}},t.normalizeFontName=function(e){return e.replace(/[,_]/g,"-").replace(/\s/g,"")},t.recoverGlyphName=p,t.type1FontGlyphMapping=function(e,t,a){var r=Object.create(null);let i,n,s;var o=!!(e.flags&g.Symbolic);if(e.isInternalFont)for(s=t,n=0;n<s.length;n++)0<=(i=a.indexOf(s[n]))?r[n]=i:r[n]=0;else if(e.baseEncodingName)for(s=(0,d.getEncoding)(e.baseEncodingName),n=0;n<s.length;n++)0<=(i=a.indexOf(s[n]))?r[n]=i:r[n]=0;else if(o)for(n in t)r[n]=t[n];else for(s=d.StandardEncoding,n=0;n<s.length;n++)0<=(i=a.indexOf(s[n]))?r[n]=i:r[n]=0;var l=e.differences;let c;if(l)for(n in l){var h,u=l[n];0<=(i=-1===(i=a.indexOf(u))&&(c=c||(0,f.getGlyphsUnicode)(),(h=p(u,c))!==u)?a.indexOf(h):i)?r[n]=i:r[n]=0}return r};var i=a(2),d=a(166),f=a(168),n=a(169);t.SEAC_ANALYSIS_ENABLED=!0;const g={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=g;function p(e,t){if(void 0===t[e]){var a=(0,n.getUnicodeForGlyph)(e,t);if(-1!==a)for(const r in t)if(t[r]===a)return r;(0,i.info)("Unable to recover a standard glyph name for: "+e)}return e}t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},(e,t,a)=>{"use strict";a.r(t),a.d(t,{getDingbatsGlyphsUnicode:()=>i,getGlyphsUnicode:()=>r});t=a(135);const r=(0,t.getArrayLookupTableFactory)(function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"f_f_i",64259,"ffl",64260,"f_f_l",64260,"fi",64257,"f_i",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"f_l",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]}),i=(0,t.getArrayLookupTableFactory)(function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]})},(e,t,a)=>{"use strict";a.r(t),a.d(t,{clearUnicodeCaches:()=>function(){o.clear()},getCharUnicodeCategory:()=>function(e){var t=o.get(e);if(t)return t;t=e.match(s),t={isWhitespace:!(!t||!t[1]),isZeroWidthDiacritic:!(!t||!t[2]),isInvisibleFormatMark:!(!t||!t[3])};return o.set(e,t),t},getNormalizedUnicodes:()=>n,getUnicodeForGlyph:()=>function(t,a){a=a[t];if(void 0!==a)return a;if(t&&"u"===t[0]){var r=t.length;let e;if(7===r&&"n"===t[1]&&"i"===t[2])e=t.substring(3);else{if(!(5<=r&&r<=7))return-1;e=t.substring(1)}if(e===e.toUpperCase()&&0<=(a=parseInt(e,16)))return a}return-1},getUnicodeRangeFor:()=>function(a){for(let e=0,t=i.length;e<t;e++){var r=i[e];if(a>=r.begin&&a<r.end)return e}return-1},mapSpecialUnicodeValues:()=>function(e){{if(65520<=e&&e<=65535)return 0;if(62976<=e&&e<=63743)return r()[e]||e;if(173===e)return 45}return e},reverseIfRtl:()=>function(t){var a=t.length;if(a<=1||!function(e){var t=i[13];if(e>=t.begin&&e<t.end)return 1;if(t=i[11],e>=t.begin&&e<t.end)return 1;return}(t.charCodeAt(0)))return t;var r=[];for(let e=a-1;0<=e;e--)r.push(t[e]);return r.join("")}});t=a(135);const r=(0,t.getLookupTableFactory)(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120});const i=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];const n=(0,t.getArrayLookupTableFactory)(function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","Ĳ","IJ","ĳ","ij","Ŀ","L·","ŀ","l·","ŉ","ʼn","ſ","s","Ǆ","DŽ","ǅ","Dž","ǆ","dž","Ǉ","LJ","ǈ","Lj","ǉ","lj","Ǌ","NJ","ǋ","Nj","ǌ","nj","Ǳ","DZ","ǲ","Dz","ǳ","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ","᾽"," ̓","᾿"," ̓","῀"," ͂","῾"," ̔"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","‗"," ̳","․",".","‥","..","…","...","″","′′","‴","′′′","‶","‵‵","‷","‵‵‵","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","′′′′"," "," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","Ⅰ","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","Ⅴ","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","Ⅹ","X","Ⅺ","XI","Ⅻ","XII","Ⅼ","L","Ⅽ","C","Ⅾ","D","Ⅿ","M","ⅰ","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","ⅴ","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","ⅹ","x","ⅺ","xi","ⅻ","xii","ⅼ","l","ⅽ","c","ⅾ","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(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)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","⼂","丶","⼃","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","ㅤ","ᅠ","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ﬀ","ff","ﬁ","fi","ﬂ","fl","ﬃ","ffi","ﬄ","ffl","ﬅ","ſt","ﬆ","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","ﮦ","ہ","ﮧ","ہ","ﮨ","ہ","ﮩ","ہ","ﮪ","ھ","ﮫ","ھ","ﮬ","ھ","ﮭ","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","﹍","_","﹎","_","﹏","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","ﺍ","ا","ﺎ","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","ﻩ","ه","ﻪ","ه","ﻫ","ه","ﻬ","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]});const s=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),o=new Map},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){var e=(0,i.normalizeFontName)(e),t=n();return t[e]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0;var r=a(135),i=a(167);const n=(0,r.getLookupTableFactory)(function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"});t.getStdFontMap=n;a=(0,r.getLookupTableFactory)(function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="FoxitSans.pfb",e["Helvetica-Bold"]="FoxitSansBold.pfb",e["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",e["Helvetica-Oblique"]="FoxitSansItalic.pfb",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}),t.getFontNameToFileMap=a,a=(0,r.getLookupTableFactory)(function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}),t.getNonStdFontMap=a,a=(0,r.getLookupTableFactory)(function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}),t.getSerifFonts=a,a=(0,r.getLookupTableFactory)(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}),t.getSymbolsFonts=a,a=(0,r.getLookupTableFactory)(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}),t.getGlyphMapForStandardFonts=a,a=(0,r.getLookupTableFactory)(function(e){e[227]=322,e[264]=261,e[291]=346}),t.getSupplementalGlyphMapForArialBlack=a,a=(0,r.getLookupTableFactory)(function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});t.getSupplementalGlyphMapForCalibri=a},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var r=a(2);t.ToUnicodeMap=class{constructor(){this._map=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}amend(e){for(const t in e)this._map[t]=e[t]}};t.IdentityToUnicodeMap=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(a){for(let e=this.firstChar,t=this.lastChar;e<=t;e++)a(e,e)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,r.unreachable)("Should not call amend()")}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var r=a(164),h=a(167),i=a(2);t.CFFFont=class{constructor(t,a){this.properties=a;var e=new r.CFFParser(t,a,h.SEAC_ANALYSIS_ENABLED),e=(this.cff=e.parse(),this.cff.duplicateFirstGlyph(),new r.CFFCompiler(this.cff));this.seacs=this.cff.seacs;try{this.data=e.compile()}catch(e){(0,i.warn)("Failed to compile font "+a.loadedName),this.data=t}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){var t=this.cff,a=this.properties,{cidToGidMap:r,cMap:i}=a,n=t.charset.charset;let s,o;if(a.composite){let a;if(r&&0<r.length){a=Object.create(null);for(let e=0,t=r.length;e<t;e++){var l=r[e];void 0!==l&&(a[l]=e)}}s=Object.create(null);let e;if(t.isCIDFont)for(o=0;o<n.length;o++){var c=n[o];e=i.charCodeOf(c),a&&void 0!==a[e]&&(e=a[e]),s[e]=o}else for(o=0;o<t.charStrings.count;o++)e=i.charCodeOf(o),s[e]=o}else{let e=t.encoding?t.encoding.encoding:null;a.isInternalFont&&(e=a.defaultEncoding),s=(0,h.type1FontGlyphMapping)(a,e,n)}return s}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){var{charset:e,encoding:t}=this.cff;if(e&&t){var a=e.charset,r=t.encoding,i=[];for(const s in r){var n=r[s];0<=n&&(n=a[n])&&(i[s]=n)}0<i.length&&(this.properties.builtInEncoding=i)}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var T=a(2),b=a(164),i=a(168),M=a(166),y=a(139);function v(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function A(e,t){return e[t]<<8|e[t+1]}function k(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function C(e,t){return e[t]<<24>>24}function O(e,t){return k(e,t)/16384}function P(e){e=e.length;let t=32768;return e<1240?t=107:e<33900&&(t=1131),t}function E(e,t){var a=t.codePointAt(0);let r=0,i=0,n=e.length-1;for(;i<n;){var s=i+n+1>>1;a<e[s].start?n=s-1:i=s}return{charCode:a,glyphId:r=e[i].start<=a&&a<=e[i].end?e[i].idDelta+(e[i].ids?e[i].ids[a-e[i].start]:a)&65535:r}}function F(s,o,l){function r(e,t,a,r){o.push({cmd:"quadraticCurveTo",args:[e,t,a,r]})}let c=0;var i,n,h,u=k(s,c);let d,f=0,g=0;if(c+=10,u<0)do{d=A(s,c);var p=A(s,c+2);c+=4;let e,t,a=(1&d?(t=(2&d?(e=k(s,c),k):(e=A(s,c),A))(s,c+2),c+=4):t=2&d?(e=C(s,c++),C(s,c++)):(e=s[c++],s[c++]),g=2&d?(f=e,t):f=0,1),r=1,i=0,n=0;8&d?(a=r=O(s,c),c+=2):64&d?(a=O(s,c),r=O(s,c+2),c+=4):128&d&&(a=O(s,c),i=O(s,c+2),n=O(s,c+4),r=O(s,c+6),c+=8);p=l.glyphs[p];p&&(o.push({cmd:"save"},{cmd:"transform",args:[a,i,n,r,f,g]}),d,F(p,o,l),o.push({cmd:"restore"}))}while(32&d);else{var m=[];let e,t;for(e=0;e<u;e++)m.push(A(s,c)),c+=2;for(var b=A(s,c),y=(c+=2+b,m.at(-1)+1),v=[];v.length<y;){let e=1;for(8&(d=s[c++])&&(e+=s[c++]);0<e--;)v.push({flags:d})}for(e=0;e<y;e++){switch(18&v[e].flags){case 0:f+=k(s,c),c+=2;break;case 2:f-=s[c++];break;case 18:f+=s[c++]}v[e].x=f}for(e=0;e<y;e++){switch(36&v[e].flags){case 0:g+=k(s,c),c+=2;break;case 4:g-=s[c++];break;case 36:g+=s[c++]}v[e].y=g}let a=0;for(c=0;c<u;c++){var w,x=m[c],S=v.slice(a,x+1);for(1&S[0].flags?S.push(S[0]):1&S.at(-1).flags?S.unshift(S.at(-1)):(w={flags:1,x:(S[0].x+S.at(-1).x)/2,y:(S[0].y+S.at(-1).y)/2},S.unshift(w),S.push(w)),w=S[0].x,h=S[0].y,o.push({cmd:"moveTo",args:[w,h]}),e=1,t=S.length;e<t;e++)1&S[e].flags?(i=S[e].x,n=S[e].y,o.push({cmd:"lineTo",args:[i,n]})):1&S[e+1].flags?(r(S[e].x,S[e].y,S[e+1].x,S[e+1].y),e++):r(S[e].x,S[e].y,(S[e].x+S[e+1].x)/2,(S[e].y+S[e+1].y)/2);a=x+1}}}function N(e,v,w,x){function S(e,t){v.push({cmd:"moveTo",args:[e,t]})}function A(e,t){v.push({cmd:"lineTo",args:[e,t]})}function k(e,t,a,r,i,n){v.push({cmd:"bezierCurveTo",args:[e,t,a,r,i,n]})}const C=[];let O=0,F=0,I=0;!function u(d){let f=0;for(;f<d.length;){let e=!1,t=d[f++],a,r,i,n,s,o,l,c,h;switch(t){case 1:case 3:I+=C.length>>1,e=!0;break;case 4:F+=C.pop(),S(O,F),e=!0;break;case 5:for(;0<C.length;)O+=C.shift(),F+=C.shift(),A(O,F);break;case 6:for(;0<C.length&&(A(O+=C.shift(),F),0!==C.length);)F+=C.shift(),A(O,F);break;case 7:for(;0<C.length&&(F+=C.shift(),A(O,F),0!==C.length);)A(O+=C.shift(),F);break;case 8:for(;0<C.length;)a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+C.shift(),k(a,i,r,n,O,F);break;case 10:if(c=C.pop(),h=null,w.isCFFCIDFont){var g=w.fdSelect.getFDIndex(x);if(0<=g&&g<w.fdArray.length){g=w.fdArray[g];let e;(e=g.privateDict&&g.privateDict.subrsIndex?g.privateDict.subrsIndex.objects:e)&&(c+=P(e),h=e[c])}else(0,T.warn)("Invalid fd index for glyph index.")}else h=w.subrs[c+w.subrsBias];h&&u(h);break;case 11:return;case 12:switch(t=d[f++]){case 34:a=O+C.shift(),r=a+C.shift(),s=F+C.shift(),O=r+C.shift(),k(a,F,r,s,O,s),a=O+C.shift(),r=a+C.shift(),O=r+C.shift(),k(a,s,r,F,O,F);break;case 35:a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+C.shift(),k(a,i,r,n,O,F),a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+C.shift(),k(a,i,r,n,O,F),C.pop();break;case 36:a=O+C.shift(),s=F+C.shift(),r=a+C.shift(),o=s+C.shift(),O=r+C.shift(),k(a,s,r,o,O,o),a=O+C.shift(),r=a+C.shift(),l=o+C.shift(),O=r+C.shift(),k(a,o,r,l,O,F);break;case 37:var p=O,m=F;a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+C.shift(),k(a,i,r,n,O,F),a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r,F=n,Math.abs(O-p)>Math.abs(F-m)?O+=C.shift():F+=C.shift(),k(a,i,r,n,O,F);break;default:throw new T.FormatError("unknown operator: 12 "+t)}break;case 14:var b,y;return void(4<=C.length&&(g=C.pop(),b=C.pop(),F=C.pop(),O=C.pop(),v.push({cmd:"save"},{cmd:"translate",args:[O,F]}),y=E(w.cmap,String.fromCharCode(w.glyphNameMap[M.StandardEncoding[g]])),N(w.glyphs[y.glyphId],v,w,y.glyphId),v.push({cmd:"restore"}),y=E(w.cmap,String.fromCharCode(w.glyphNameMap[M.StandardEncoding[b]])),N(w.glyphs[y.glyphId],v,w,y.glyphId)));case 18:I+=C.length>>1,e=!0;break;case 19:case 20:I+=C.length>>1,f+=I+7>>3,e=!0;break;case 21:F+=C.pop(),S(O+=C.pop(),F),e=!0;break;case 22:S(O+=C.pop(),F),e=!0;break;case 23:I+=C.length>>1,e=!0;break;case 24:for(;2<C.length;)a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+C.shift(),k(a,i,r,n,O,F);O+=C.shift(),F+=C.shift(),A(O,F);break;case 25:for(;6<C.length;)O+=C.shift(),F+=C.shift(),A(O,F);a=O+C.shift(),i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+C.shift(),k(a,i,r,n,O,F);break;case 26:for(C.length%2&&(O+=C.shift());0<C.length;)a=O,i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r,F=n+C.shift(),k(a,i,r,n,O,F);break;case 27:for(C.length%2&&(F+=C.shift());0<C.length;)a=O+C.shift(),i=F,r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n,k(a,i,r,n,O,F);break;case 28:C.push((d[f]<<24|d[f+1]<<16)>>16),f+=2;break;case 29:c=C.pop()+w.gsubrsBias,(h=w.gsubrs[c])&&u(h);break;case 30:for(;0<C.length&&(a=O,i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+(1===C.length?C.shift():0),k(a,i,r,n,O,F),0!==C.length);)a=O+C.shift(),i=F,r=a+C.shift(),n=i+C.shift(),F=n+C.shift(),O=r+(1===C.length?C.shift():0),k(a,i,r,n,O,F);break;case 31:for(;0<C.length&&(a=O+C.shift(),i=F,r=a+C.shift(),n=i+C.shift(),F=n+C.shift(),O=r+(1===C.length?C.shift():0),k(a,i,r,n,O,F),0!==C.length);)a=O,i=F+C.shift(),r=a+C.shift(),n=i+C.shift(),O=r+C.shift(),F=n+(1===C.length?C.shift():0),k(a,i,r,n,O,F);break;default:if(t<32)throw new T.FormatError("unknown operator: "+t);t<247?C.push(t-139):t<251?C.push(256*(t-247)+d[f++]+108):t<255?C.push(256*-(t-251)-d[f++]-108):(C.push((d[f]<<24|d[f+1]<<16|d[f+2]<<8|d[f+3])/65536),f+=4)}e&&(C.length=0)}}(e)}const n=[];class r{constructor(e){this.constructor===r&&(0,T.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(t){var{charCode:t,glyphId:a}=E(this.cmap,t);let e=this.compiledGlyphs[a];if(!e)try{e=this.compileGlyph(this.glyphs[a],a),this.compiledGlyphs[a]=e}catch(e){throw this.compiledGlyphs[a]=n,void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=a),e}return void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=a),e}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return n;let a=this.fontMatrix;this.isCFFCIDFont&&(0<=(r=this.fdSelect.getFDIndex(t))&&r<this.fdArray.length?(r=this.fdArray[r],a=r.getByName("FontMatrix")||T.FONT_IDENTITY_MATRIX):(0,T.warn)("Invalid fd index for glyph index."));var r=[{cmd:"save"},{cmd:"transform",args:a.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(e,r,t),r.push({cmd:"restore"}),r}compileGlyphImpl(){(0,T.unreachable)("Children classes should implement this.")}hasBuiltPath(e){var{charCode:e,glyphId:t}=E(this.cmap,e);return void 0!==this.compiledGlyphs[t]&&void 0!==this.compiledCharCodeToGlyphId[e]}}class w extends r{constructor(e,t,a){super(a||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){F(e,t,this)}}class x extends r{constructor(e,t,a,r){super(a||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=r||(0,i.getGlyphsUnicode)(),this.gsubrsBias=P(this.gsubrs),this.subrsBias=P(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,a){N(e,t,this,a)}}t.FontRendererFactory=class{static create(e,a){var r=new Uint8Array(e.data);let i,n,s,o,l,c;var h,u,d,t,f=A(r,4);for(let e=0,t=12;e<f;e++,t+=16){var g=(0,T.bytesToString)(r.subarray(t,t+4)),p=v(r,t+8),m=v(r,t+12);switch(g){case"cmap":i=function(r,e){var t=1===A(r,e+2)?v(r,e+8):v(r,e+16),a=A(r,e+t);let i,n,s;if(4===a){A(r,e+t+2);var o=A(r,e+t+6)>>1;for(n=e+t+14,i=[],s=0;s<o;s++,n+=2)i[s]={end:A(r,n)};for(n+=2,s=0;s<o;s++,n+=2)i[s].start=A(r,n);for(s=0;s<o;s++,n+=2)i[s].idDelta=A(r,n);for(s=0;s<o;s++,n+=2){let a=A(r,n);if(0!==a){i[s].ids=[];for(let e=0,t=i[s].end-i[s].start+1;e<t;e++)i[s].ids[e]=A(r,n+a),a+=2}}}else{if(12!==a)throw new T.FormatError("unsupported cmap: "+a);var l=v(r,e+t+12);for(n=e+t+16,i=[],s=0;s<l;s++)e=v(r,n),i.push({start:e,end:v(r,n+4),idDelta:v(r,n+8)-e}),n+=12}return i}(r,p);break;case"glyf":n=r.subarray(p,p+m);break;case"loca":s=r.subarray(p,p+m);break;case"head":c=A(r,p+18),l=A(r,p+50);break;case"CFF ":o=(h=r,u=p+m,d=a,{glyphs:(h=new b.CFFParser(new y.Stream(h,p,u-p),{},d).parse()).charStrings.objects,subrs:h.topDict.privateDict&&h.topDict.privateDict.subrsIndex&&h.topDict.privateDict.subrsIndex.objects,gsubrs:h.globalSubrIndex&&h.globalSubrIndex.objects,isCFFCIDFont:h.isCIDFont,fdSelect:h.fdSelect,fdArray:h.fdArray})}}return n?(t=c?[1/c,0,0,1/c,0,0]:e.fontMatrix,new w(function(t,a,e){let r,i;var n=[];let s=(i=e?(r=4,v):(r=2,(e,t)=>2*A(e,t)))(a,0);for(let e=r;e<a.length;e+=r){var o=i(a,e);n.push(t.subarray(s,o)),s=o}return n}(n,s,l),i,t)):new x(o,i,e.fontMatrix,e.glyphNameMap)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0;var r=a(135),a=(0,r.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e["Times-Roman"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-BoldItalic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e.ZapfDingbats=(0,r.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})}),a=(t.getMetrics=a,(0,r.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}}));t.getFontBasicMetrics=a},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0;t.GlyfTable=class{constructor(e){var{glyfTable:e,isGlyphLocationsLong:t,locaTable:a,numGlyphs:r}=e,i=(this.glyphs=[],new DataView(a.buffer,a.byteOffset,a.byteLength)),n=new DataView(e.buffer,e.byteOffset,e.byteLength),s=t?4:2;let o=t?i.getUint32(0):2*i.getUint16(0),l=0;for(let e=0;e<r;e++){l+=s;var c,h=t?i.getUint32(l):2*i.getUint16(l);h===o?this.glyphs.push(new u({})):(c=u.parse(o,n),this.glyphs.push(c),o=h)}}getSize(){return this.glyphs.reduce((e,t)=>{return e+(t.getSize()+3&-4)},0)}write(){var e=this.getSize(),t=new DataView(new ArrayBuffer(e)),a=131070<e,r=a?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));a?i.setUint32(0,0):i.setUint16(0,0);let n=0,s=0;for(const o of this.glyphs)n=(n+=o.write(n,t))+3&-4,s+=r,a?i.setUint32(s,n):i.setUint16(s,n>>1);return{isLocationLong:a,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(a){for(let e=0,t=this.glyphs.length;e<t;e++)this.glyphs[e].scale(a[e])}};class u{constructor(e){var{header:e=null,simple:t=null,composites:a=null}=e;this.header=e,this.simple=t,this.composites=a}static parse(e,t){var[a,r]=o.parse(e,t);if(e+=a,r.numberOfContours<0){for(var i=[];;){var[n,s]=h.parse(e,t);if(e+=n,i.push(s),!(32&s.flags))break}return new u({header:r,composites:i})}a=A.parse(e,t,r.numberOfContours);return new u({header:r,simple:a})}getSize(){var e;return this.header?(e=this.simple?this.simple.getSize():this.composites.reduce((e,t)=>e+t.getSize(),0),this.header.getSize()+e):0}write(e,t){if(!this.header)return 0;var a=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(const r of this.composites)e+=r.write(e,t);return e-a}scale(e){if(this.header){var t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(const a of this.composites)a.scale(t,e)}}}class o{constructor(e){var{numberOfContours:e,xMin:t,yMin:a,xMax:r,yMax:i}=e;this.numberOfContours=e,this.xMin=t,this.yMin=a,this.xMax=r,this.yMax=i}static parse(e,t){return[10,new o({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}class S{constructor(e){var{flags:e,xCoordinates:t,yCoordinates:a}=e;this.xCoordinates=t,this.yCoordinates=a,this.flags=e}}class A{constructor(e){var{contours:e,instructions:t}=e;this.contours=e,this.instructions=t}static parse(t,a,r){var i=[];for(let e=0;e<r;e++){var n=a.getUint16(t);t+=2,i.push(n)}var s=i[r-1]+1,e=a.getUint16(t),o=(t+=2,new Uint8Array(a).slice(t,t+e)),l=(t+=e,[]);for(let e=0;e<s;t++,e++){var c=a.getUint8(t);if(l.push(c),8&c){var h=a.getUint8(++t);c^=8;for(let e=0;e<h;e++)l.push(c);e+=h}}var u=[];let d=[],f=[],g=[];var p=[];let m=0,b=0;for(let e=0;e<s;e++){var y,v=l[e];2&v?(y=a.getUint8(t++),b+=16&v?y:-y):16&v||(b+=a.getInt16(t),t+=2),d.push(b),i[m]===e&&(m++,u.push(d),d=[])}b=0;for(let e=m=0;e<s;e++){var w,x=l[e];4&x?(w=a.getUint8(t++),b+=32&x?w:-w):32&x||(b+=a.getInt16(t),t+=2),f.push(b),g.push(1&x|64&x),i[m]===e&&(d=u[m],m++,p.push(new S({flags:g,xCoordinates:d,yCoordinates:f})),f=[],g=[])}return new A({contours:p,instructions:o})}getSize(){let a=2*this.contours.length+2+this.instructions.length,r=0,i=0;for(const l of this.contours){a+=l.flags.length;for(let e=0,t=l.xCoordinates.length;e<t;e++){var n=l.xCoordinates[e],s=l.yCoordinates[e],o=Math.abs(n-r);255<o?a+=2:0<o&&(a+=1),r=n,255<(o=Math.abs(s-i))?a+=2:0<o&&(a+=1),i=s}}return a}write(a,r){var e=a,i=[],n=[],s=[];let o=0,l=0;for(const m of this.contours){for(let t=0,e=m.xCoordinates.length;t<e;t++){let e=m.flags[t];var c=m.xCoordinates[t],h=c-o,u=(0==h?(e|=16,i.push(0)):(u=Math.abs(h))<=255?(e|=0<=h?18:2,i.push(u)):i.push(h),o=c,m.yCoordinates[t]);0==(h=u-l)?(e|=32,n.push(0)):(c=Math.abs(h))<=255?(e|=0<=h?36:4,n.push(c)):n.push(h),l=u,s.push(e)}r.setUint16(a,i.length-1),a+=2}r.setUint16(a,this.instructions.length),a+=2,this.instructions.length&&(new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,a),a+=this.instructions.length);for(const t of s)r.setUint8(a++,t);for(let e=0,t=i.length;e<t;e++){var d=i[e],f=s[e];2&f?r.setUint8(a++,d):16&f||(r.setInt16(a,d),a+=2)}for(let e=0,t=n.length;e<t;e++){var g=n[e],p=s[e];4&p?r.setUint8(a++,g):32&p||(r.setInt16(a,g),a+=2)}return a-e}scale(a,r){for(const i of this.contours)if(0!==i.xCoordinates.length)for(let e=0,t=i.xCoordinates.length;e<t;e++)i.xCoordinates[e]=Math.round(a+(i.xCoordinates[e]-a)*r)}}class h{constructor(e){var{flags:e,glyphIndex:t,argument1:a,argument2:r,transf:i,instructions:n}=e;this.flags=e,this.glyphIndex=t,this.argument1=a,this.argument2=r,this.transf=i,this.instructions=n}static parse(e,t){var a=e,r=[];let i=t.getUint16(e);var n,s=t.getUint16(e+2);e+=4;let o,l,c=(1&i?(l=2&i?(o=t.getInt16(e),t.getInt16(e+2)):(o=t.getUint16(e),t.getUint16(e+2)),e+=4,i^=1):(l=2&i?(o=t.getInt8(e),t.getInt8(e+1)):(o=t.getUint8(e),t.getUint8(e+1)),e+=2),8&i?(r.push(t.getUint16(e)),e+=2):64&i?(r.push(t.getUint16(e),t.getUint16(e+2)),e+=4):128&i&&(r.push(t.getUint16(e),t.getUint16(e+2),t.getUint16(e+4),t.getUint16(e+6)),e+=8),null);return 256&i&&(n=t.getUint16(e),e+=2,c=new Uint8Array(t).slice(e,e+n),e+=n),[e-a,new h({flags:i,glyphIndex:s,argument1:o,argument2:l,transf:r,instructions:c})]}getSize(){let e=4+2*this.transf.length;return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?-128<=this.argument1&&this.argument1<=127&&-128<=this.argument2&&this.argument2<=127||(e+=2):0<=this.argument1&&this.argument1<=255&&0<=this.argument2&&this.argument2<=255||(e+=2),e}write(e,t){var a=e;return 2&this.flags?-128<=this.argument1&&this.argument1<=127&&-128<=this.argument2&&this.argument2<=127||(this.flags|=1):0<=this.argument1&&this.argument1<=255&&0<=this.argument2&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length)&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length),e-a}scale(e,t){}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var v=a(135),w=a(2);function x(e,t,a){e[t]=a>>8&255,e[t+1]=255&a}function S(e,t,a){e[t]=a>>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=255&a}class A{constructor(e){this.sfnt=e,this.tables=Object.create(null)}static getSearchParams(e,t){let a=1,r=0;for(;(a^e)>a;)a<<=1,r++;var i=a*t;return{range:i,entry:r,rangeShift:t*e-i}}toArray(){let e=this.sfnt;var t=this.tables,a=Object.keys(t),r=(a.sort(),a.length);let i,n,s,o,l,c=12+16*r;var h=[c];for(i=0;i<r;i++){var u=((o=t[a[i]]).length+3&-4)>>>0;c+=u,h.push(c)}var d=new Uint8Array(c);for(i=0;i<r;i++){o=t[a[i]],p=g=f=void 0;var f=d,g=h[i],p=o;if(p instanceof Uint8Array)f.set(p,g);else if("string"==typeof p)for(let e=0,t=p.length;e<t;e++)f[g++]=255&p.charCodeAt(e);else for(const y of p)f[g++]=255&y}"true"===e&&(e=(0,w.string32)(65536)),d[0]=255&e.charCodeAt(0),d[1]=255&e.charCodeAt(1),d[2]=255&e.charCodeAt(2),d[3]=255&e.charCodeAt(3),x(d,4,r);var m=A.getSearchParams(r,16);for(x(d,6,m.range),x(d,8,m.entry),x(d,10,m.rangeShift),c=12,i=0;i<r;i++){l=a[i],d[c]=255&l.charCodeAt(0),d[c+1]=255&l.charCodeAt(1),d[c+2]=255&l.charCodeAt(2),d[c+3]=255&l.charCodeAt(3);let e=0;for(n=h[i],s=h[i+1];n<s;n+=4){var b=(0,v.readUint32)(d,n);e=e+b>>>0}S(d,c+4,e),S(d,c+8,h[i]),S(d,c+12,t[l].length),c+=16}return d}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}t.OpenTypeFileBuilder=A},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var v=a(164),h=a(2),u=a(167),l=a(135),d=a(139),f=a(178);function g(t,a,e){var r=t.length,i=a.length,n=r-i;let s=e,o=!1;for(;s<n;){let e=0;for(;e<i&&t[s+e]===a[e];)e++;if(e>=i){for(s+=e;s<r&&(0,l.isWhiteSpace)(t[s]);)s++;o=!0;break}s++}return{found:o,length:s}}t.Type1Font=class{constructor(e,t,a){let r=a.length1,i=a.length2;var n=t.peekBytes(6),s=128===n[0]&&1===n[1],o=(s&&(t.skip(6),r=n[5]<<24|n[4]<<16|n[3]<<8|n[2]),function(e,t){var a=[101,101,120,101,99],r=e.pos;let i,n,s;try{i=e.getBytes(t),n=i.length}catch(e){}if(n===t&&(s=g(i,a,t-2*a.length)).found&&s.length===t)return{stream:new d.Stream(i),length:t};(0,h.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=r;let o;for(;;){var l=e.peekBytes(2048);if(0===(s=g(l,a,0)).length)break;if(e.pos+=s.length,s.found){o=e.pos-r;break}}return e.pos=r,o?{stream:new d.Stream(e.getBytes(o)),length:o}:((0,h.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new d.Stream(e.getBytes(t)),length:t})}(t,r)),o=(new f.Type1Parser(o.stream,!1,u.SEAC_ANALYSIS_ENABLED).extractFontHeader(a),s&&(n=t.getBytes(6),i=n[5]<<24|n[4]<<16|n[3]<<8|n[2]),function(e){if(0===(e=e.getBytes()).length)throw new h.FormatError("getEexecBlock - no font program found.");return{stream:new d.Stream(e),length:e.length}}(t,i)),l=new f.Type1Parser(o.stream,!0,u.SEAC_ANALYSIS_ENABLED).extractFontProgram(a);for(const c in l.properties)a[c]=l.properties[c];s=l.charstrings,n=this.getType2Charstrings(s),t=this.getType2Subrs(l.subrs);this.charstrings=s,this.data=this.wrap(e,n,this.charstrings,t,a),this.seacs=this.getSeacs(l.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){var e,t=[".notdef"];for({glyphName:e}of this.charstrings)t.push(e);return t}getGlyphMapping(a){var r=this.charstrings;if(a.composite){var i=Object.create(null);for(let e=0,t=r.length;e<t;e++)i[a.cMap.charCodeOf(e)]=e+1;return i}var e=[".notdef"];let t,n;for(n=0;n<r.length;n++)e.push(r[n].glyphName);var s=a.builtInEncoding;if(s){t=Object.create(null);for(const o in s)0<=(n=e.indexOf(s[o]))&&(t[o]=n)}return(0,u.type1FontGlyphMapping)(a,t,e)}hasGlyphId(e){return!(e<0||e>=this.numGlyphs)&&(0===e||0<this.charstrings[e-1].charstring.length)}getSeacs(a){var r=[];for(let e=0,t=a.length;e<t;e++){var i=a[e];i.seac&&(r[e+1]=i.seac)}return r}getType2Charstrings(e){var t=[];for(const a of e)t.push(a.charstring);return t}getType2Subrs(e){let t=0;var a=e.length,r=(t=a<1133?107:a<33769?1131:32768,[]);let i;for(i=0;i<t;i++)r.push([11]);for(i=0;i<a;i++)r.push(e[i]);return r}wrap(e,t,a,r,i){var n=new v.CFF,s=(n.header=new v.CFFHeader(1,0,4,4),n.names=[e],new v.CFFTopDict),o=(s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",i.fontMatrix),s.setByName("FontBBox",i.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),n.topDict=s,new v.CFFStrings),l=(o.add("Version 0.11"),o.add("See original notice"),o.add(e),o.add(e),o.add("Medium"),n.strings=o,n.globalSubrIndex=new v.CFFIndex,t.length),c=[".notdef"];let h,u;for(h=0;h<l;h++){var d=a[h].glyphName;-1===v.CFFStandardStrings.indexOf(d)&&o.add(d),c.push(d)}n.charset=new v.CFFCharset(!1,0,c);var f=new v.CFFIndex;for(f.add([139,14]),h=0;h<l;h++)f.add(t[h]);n.charStrings=f;var g=new v.CFFPrivateDict,p=(g.setByName("Subrs",null),["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"]);for(h=0,u=p.length;h<u;h++){var m=p[h];if(m in i.privateData){var b=i.privateData[m];if(Array.isArray(b))for(let e=b.length-1;0<e;e--)b[e]-=b[e-1];g.setByName(m,b)}}n.topDict.privateDict=g;var y=new v.CFFIndex;for(h=0,u=r.length;h<u;h++)y.add(r[h]);return g.subrsIndex=y,new v.CFFCompiler(n).compile()}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var l=a(166),i=a(135),n=a(139),f=a(2);const g={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(a,r,i){var n,s,o,e=a.length;let l=!1,c,h,u;for(let t=0;t<e;t++){let e=a[t];if(e<32){switch(e=12===e?(e<<8)+a[++t]:e){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){l=!0;break}var d=this.stack.pop();this.stack.push(0,d)}else l=this.executeCommand(1,g.vmoveto);break;case 5:l=this.executeCommand(2,g.rlineto);break;case 6:l=this.executeCommand(1,g.hlineto);break;case 7:l=this.executeCommand(1,g.vlineto);break;case 8:l=this.executeCommand(6,g.rrcurveto);break;case 9:this.stack=[];break;case 10:this.stack.length<1?l=!0:(u=this.stack.pop(),l=!r[u]||this.convert(r[u],r,i));break;case 11:return l;case 13:this.stack.length<2?l=!0:(c=this.stack.pop(),h=this.stack.pop(),this.lsb=h,this.width=c,this.stack.push(c,h),l=this.executeCommand(2,g.hmoveto));break;case 14:this.output.push(g.endchar[0]);break;case 21:this.flexing||(l=this.executeCommand(2,g.rmoveto));break;case 22:this.flexing?this.stack.push(0):l=this.executeCommand(1,g.hmoveto);break;case 30:l=this.executeCommand(4,g.vhcurveto);break;case 31:l=this.executeCommand(4,g.hvcurveto);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:l=i?(d=this.stack.at(-5),this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-d,this.executeCommand(0,g.endchar)):this.executeCommand(4,g.endchar);break;case 3079:this.stack.length<4?l=!0:(this.stack.pop(),c=this.stack.pop(),n=this.stack.pop(),h=this.stack.pop(),this.lsb=h,this.width=c,this.stack.push(c,h,n),l=this.executeCommand(3,g.rmoveto));break;case 3084:this.stack.length<2?l=!0:(n=this.stack.pop(),s=this.stack.pop(),this.stack.push(s/n));break;case 3088:this.stack.length<2?l=!0:(u=this.stack.pop(),s=this.stack.pop(),0===u&&3===s?(o=this.stack.splice(this.stack.length-17,17),this.stack.push(o[2]+o[0],o[3]+o[1],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14]),l=this.executeCommand(13,g.flex,!0),this.flexing=!1,this.stack.push(o[15],o[16])):1===u&&0===s&&(this.flexing=!0));break;case 3089:break;case 3105:this.stack=[];break;default:(0,f.warn)('Unknown type 1 charstring command of "'+e+'"')}if(l)break}else e<=246?e-=139:e=e<=250?256*(e-247)+a[++t]+108:e<=254?-256*(e-251)-a[++t]-108:(255&a[++t])<<24|(255&a[++t])<<16|(255&a[++t])<<8|(255&a[++t])<<0,this.stack.push(e)}return l}executeCommand(e,t,a){var r=this.stack.length;if(r<e)return!0;var i=r-e;for(let e=i;e<r;e++){var n=this.stack[e];Number.isInteger(n)?this.output.push(28,n>>8&255,255&n):this.output.push(255,(n=65536*n|0)>>24&255,n>>16&255,n>>8&255,255&n)}return this.output.push(...t),a?this.stack.splice(i,e):this.stack.length=0,!1}}function c(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function s(e,t,a){if(a>=e.length)return new Uint8Array(0);let r=0|t,i,n;for(i=0;i<a;i++)r=52845*(e[i]+r)+22719&65535;var s=e.length-a,o=new Uint8Array(s);for(i=a,n=0;n<s;i++,n++){var l=e[i];o[n]=l^r>>8,r=52845*(l+r)+22719&65535}return o}function r(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class{constructor(e,t,a){var r;t&&(r=!((c((t=e.getBytes())[0])||(0,i.isWhiteSpace)(t[0]))&&c(t[1])&&c(t[2])&&c(t[3])&&c(t[4])&&c(t[5])&&c(t[6])&&c(t[7])),e=new n.Stream((r?s:function(t,e,a){let r=0|e;var i=t.length,n=new Uint8Array(i>>>1);let s,o;for(s=0,o=0;s<i;s++){var l=t[s];if(c(l)){s++;let e;for(;s<i&&!c(e=t[s]);)s++;s<i&&(l=parseInt(String.fromCharCode(l,e),16),n[o++]=l^r>>8,r=52845*(l+r)+22719&65535)}}return n.slice(a,o)})(t,55665,4))),this.seacAnalysisEnabled=!!a,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){var e=this.getToken();return parseFloat(e||0)}readInt(){var e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}if(r(t))return this.nextChar(),String.fromCharCode(t);let a="";for(;a+=String.fromCharCode(t),0<=(t=this.nextChar())&&!(0,i.isWhiteSpace)(t)&&!r(t););return a}readCharStrings(e,t){return-1===t?e:s(e,4330,t)}extractFontProgram(t){var e,a,r,i,n=this.stream,s=[],o=[],l=Object.create(null),c=(l.lenIV=4,{subrs:[],charstrings:[],properties:{privateData:l}});let h,u,d,f;for(;null!==(h=this.getToken());)if("/"===h)switch(h=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();;){if(null===(h=this.getToken())||"end"===h)break;"/"===h&&(e=this.getToken(),u=this.readInt(),this.getToken(),d=0<u?n.getBytes(u):new Uint8Array(0),f=c.properties.privateData.lenIV,a=this.readCharStrings(d,f),this.nextChar(),"noaccess"===(h=this.getToken())?this.getToken():"/"===h&&this.prevChar(),o.push({glyph:e,encoded:a}))}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var g=this.readInt(),p=(u=this.readInt(),this.getToken(),d=0<u?n.getBytes(u):new Uint8Array(0),f=c.properties.privateData.lenIV,this.readCharStrings(d,f));this.nextChar(),"noaccess"===(h=this.getToken())&&this.getToken(),s[g]=p}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var m=this.readNumberArray();0<m.length&&m.length;break;case"StemSnapH":case"StemSnapV":c.properties.privateData[h]=this.readNumberArray();break;case"StdHW":case"StdVW":c.properties.privateData[h]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":c.properties.privateData[h]=this.readNumber();break;case"ForceBold":c.properties.privateData[h]=this.readBoolean()}for({encoded:r,glyph:i}of o){var b=new v,y=b.convert(r,s,this.seacAnalysisEnabled);let e=b.output;y&&(e=[14]);var y={glyphName:i,charstring:e,width:b.width,lsb:b.lsb,seac:b.seac};".notdef"===i?c.charstrings.unshift(y):c.charstrings.push(y),t.builtInEncoding&&-1<(y=t.builtInEncoding.indexOf(i))&&void 0===t.widths[y]&&y>=t.firstChar&&y<=t.lastChar&&(t.widths[y]=b.width)}return c}extractFontHeader(e){let a;for(;null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":r=this.getToken();let t;if(/^\d+$/.test(r)){t=[];var i=0|parseInt(r,10);this.getToken();for(let e=0;e<i;e++){for(a=this.getToken();"dup"!==a&&"def"!==a;)if(null===(a=this.getToken()))return;if("def"===a)break;var n=this.readInt(),s=(this.getToken(),this.getToken());t[n]=s,this.getToken()}}else t=(0,l.getEncoding)(r);e.builtInEncoding=t;break;case"FontBBox":var o=this.readNumberArray();e.ascent=Math.max(o[3],o[1]),e.descent=Math.min(o[1],o[3]),e.ascentScaled=!0}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.getTilingPatternIR=function(e,t,a){var r=t.getArray("Matrix"),i=C.Util.normalizeRect(t.getArray("BBox")),n=t.get("XStep"),s=t.get("YStep"),o=t.get("PaintType"),t=t.get("TilingType");if(i[2]-i[0]!=0&&i[3]-i[1]!=0)return["TilingPattern",a,e,r,i,n,s,o,t];throw new C.FormatError(`Invalid getTilingPatternIR /BBox array: [${i}].`)};var C=a(2),h=a(136),v=a(143),l=a(135);const w={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};t.Pattern=class{constructor(){(0,C.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,a,r,i,n){var s=e instanceof h.BaseStream?e.dict:e,o=s.get("ShadingType");try{switch(o){case w.AXIAL:case w.RADIAL:return new c(s,t,a,i,n);case w.FREE_FORM_MESH:case w.LATTICE_FORM_MESH:case w.COONS_PATCH_MESH:case w.TENSOR_PATCH_MESH:return new O(e,t,a,i,n);default:throw new C.FormatError("Unsupported ShadingType: "+o)}}catch(e){if(e instanceof l.MissingDataException)throw e;return r.send("UnsupportedFeature",{featureId:C.UNSUPPORTED_FEATURES.shadingPattern}),(0,C.warn)(e),new d}}};class x{static get SMALL_NUMBER(){return(0,C.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===x&&(0,C.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,C.unreachable)("Abstract method `getIR` called.")}}class c extends x{constructor(a,e,t,r,i){super(),this.coordsArr=a.getArray("Coords"),this.shadingType=a.get("ShadingType");var n,s,o=v.ColorSpace.parse({cs:a.getRaw("CS")||a.getRaw("ColorSpace"),xref:e,resources:t,pdfFunctionFactory:r,localColorSpaceCache:i}),e=a.getArray("BBox");Array.isArray(e)&&4===e.length?this.bbox=C.Util.normalizeRect(e):this.bbox=null;let l=0,c=1,h=(a.has("Domain")&&(t=a.getArray("Domain"),l=t[0],c=t[1]),!1),u=!1;a.has("Extend")&&(i=a.getArray("Extend"),h=i[0],u=i[1]),this.shadingType!==w.RADIAL||h&&u||([e,t,i,d,n,s]=this.coordsArr,i<=s+(e=Math.hypot(e-d,t-n))&&s<=i+e&&(0,C.warn)("Unsupported radial gradient.")),this.extendStart=h,this.extendEnd=u;var d=a.getRaw("Function"),f=r.createFromArray(d),g=(c-l)/10,p=this.colorStops=[];if(l>=c||g<=0)(0,C.info)("Bad shading domain.");else{var m=new Float32Array(o.numComps),b=new Float32Array(1);let t;for(let e=0;e<=10;e++){b[0]=l+e*g,f(b,0,m,0),t=o.getRgb(m,0);var y=C.Util.makeHexColor(t[0],t[1],t[2]);p.push([e/10,y])}let e="transparent";a.has("Background")&&(t=o.getRgb(a.get("Background"),0),e=C.Util.makeHexColor(t[0],t[1],t[2])),h||(p.unshift([0,e]),p[1][0]+=x.SMALL_NUMBER),u||(p.at(-1)[0]-=x.SMALL_NUMBER,p.push([1,e])),this.colorStops=p}}getIR(){var e=this.coordsArr,t=this.shadingType;let a,r,i,n,s;return t===w.AXIAL?(r=[e[0],e[1]],i=[e[2],e[3]],n=null,s=null,a="axial"):t===w.RADIAL?(r=[e[0],e[1]],i=[e[3],e[4]],n=e[2],s=e[5],a="radial"):(0,C.unreachable)("getPattern type unknown: "+t),["RadialAxial",a,this.bbox,this.colorStops,r,i,n,s]}}class u{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;e=t.numComps,this.tmpCompsBuf=new Float32Array(e),e=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(e):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(!(0<this.bufferLength)){var e=this.stream.getByte();if(e<0)return!1;this.buffer=e,this.bufferLength=8}return!0}readBits(e){let t=this.buffer,a=this.bufferLength;if(32===e){if(0===a)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var r=this.stream.getByte();return this.buffer=r&(1<<a)-1,(t<<8-a|(255&r)>>a)>>>0}if(8===e&&0===a)return this.stream.getByte();for(;a<e;)t=t<<8|this.stream.getByte(),a+=8;return a-=e,this.bufferLength=a,this.buffer=t&(1<<a)-1,t>>a}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),a=this.readBits(e),r=this.context.decode,e=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*e*(r[1]-r[0])+r[0],a*e*(r[3]-r[2])+r[2]]}readComponents(){var a=this.context.numComps,r=this.context.bitsPerComponent,i=r<32?1/((1<<r)-1):2.3283064365386963e-10,n=this.context.decode,s=this.tmpCompsBuf;for(let e=0,t=4;e<a;e++,t+=2){var o=this.readBits(r);s[e]=o*i*(n[t+1]-n[t])+n[t]}var e=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(s,0,e,0),this.context.colorSpace.getRgb(e,0)}}const s=function(){const t=[];return function(e){return t[e]||(t[e]=function(t){var a=[];for(let e=0;e<=t;e++){var r=e/t,i=1-r;a.push(new Float32Array([i*i*i,3*r*i*i,3*r*r*i,r*r*r]))}return a}(e)),t[e]}}();class O extends x{static get MIN_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,C.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}static get MAX_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,C.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}static get TRIANGLE_DENSITY(){return(0,C.shadow)(this,"TRIANGLE_DENSITY",20)}constructor(e,t,a,r,i){if(super(),!(e instanceof h.BaseStream))throw new C.FormatError("Mesh data is not a stream");var n=e.dict,s=(this.shadingType=n.get("ShadingType"),n.getArray("BBox")),s=(Array.isArray(s)&&4===s.length?this.bbox=C.Util.normalizeRect(s):this.bbox=null,v.ColorSpace.parse({cs:n.getRaw("CS")||n.getRaw("ColorSpace"),xref:t,resources:a,pdfFunctionFactory:r,localColorSpaceCache:i})),t=(this.background=n.has("Background")?s.getRgb(n.get("Background"),0):null,n.getRaw("Function")),a=t?r.createFromArray(t):null,i=(this.coords=[],this.colors=[],this.figures=[],{bitsPerCoordinate:n.get("BitsPerCoordinate"),bitsPerComponent:n.get("BitsPerComponent"),bitsPerFlag:n.get("BitsPerFlag"),decode:n.getArray("Decode"),colorFn:a,colorSpace:s,numComps:a?1:s.numComps}),o=new u(e,i);let l=!1;switch(this.shadingType){case w.FREE_FORM_MESH:this._decodeType4Shading(o);break;case w.LATTICE_FORM_MESH:var c=0|n.get("VerticesPerRow");if(c<2)throw new C.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(o,c);break;case w.COONS_PATCH_MESH:this._decodeType6Shading(o),l=!0;break;case w.TENSOR_PATCH_MESH:this._decodeType7Shading(o),l=!0;break;default:(0,C.unreachable)("Unsupported mesh type.")}if(l){this._updateBounds();for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds(),this._packData()}_decodeType4Shading(e){var t=this.coords,a=this.colors,r=[],i=[];let n=0;for(;e.hasData;){var s=e.readFlag(),o=e.readCoordinate(),l=e.readComponents();if(0===n){if(!(0<=s&&s<=2))throw new C.FormatError("Unknown type4 flag");switch(s){case 0:n=3;break;case 1:i.push(i.at(-2),i.at(-1)),n=1;break;case 2:i.push(i.at(-3),i.at(-1)),n=1}r.push(s)}i.push(t.length),t.push(o),a.push(l),n--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(i),colors:new Int32Array(i)})}_decodeType5Shading(e,t){for(var a=this.coords,r=this.colors,i=[];e.hasData;){var n=e.readCoordinate(),s=e.readComponents();i.push(a.length),a.push(n),r.push(s)}this.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:t})}_decodeType6Shading(i){for(var n=this.coords,s=this.colors,o=new Int32Array(16),l=new Int32Array(4);i.hasData;){var c=i.readFlag();if(!(0<=c&&c<=3))throw new C.FormatError("Unknown type6 flag");var h=n.length;for(let e=0,t=0!==c?8:12;e<t;e++)n.push(i.readCoordinate());var u=s.length;for(let e=0,t=0!==c?2:4;e<t;e++)s.push(i.readComponents());let e,t,a,r;switch(c){case 0:o[12]=h+3,o[13]=h+4,o[14]=h+5,o[15]=h+6,o[8]=h+2,o[11]=h+7,o[4]=h+1,o[7]=h+8,o[0]=h,o[1]=h+11,o[2]=h+10,o[3]=h+9,l[2]=u+1,l[3]=u+2,l[0]=u,l[1]=u+3;break;case 1:e=o[12],t=o[13],a=o[14],r=o[15],o[12]=r,o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=a,o[11]=h+3,o[4]=t,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[2],t=l[3],l[2]=t,l[3]=u,l[0]=e,l[1]=u+1;break;case 2:e=o[15],t=o[11],o[12]=o[3],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[7],o[11]=h+3,o[4]=t,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[3],l[2]=l[1],l[3]=u,l[0]=e,l[1]=u+1;break;case 3:o[12]=o[0],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[1],o[11]=h+3,o[4]=o[2],o[7]=h+4,o[0]=o[3],o[1]=h+7,o[2]=h+6,o[3]=h+5,l[2]=l[0],l[3]=u,l[0]=l[1],l[1]=u+1}o[5]=n.length,n.push([(-4*n[o[0]][0]-n[o[15]][0]+6*(n[o[4]][0]+n[o[1]][0])-2*(n[o[12]][0]+n[o[3]][0])+3*(n[o[13]][0]+n[o[7]][0]))/9,(-4*n[o[0]][1]-n[o[15]][1]+6*(n[o[4]][1]+n[o[1]][1])-2*(n[o[12]][1]+n[o[3]][1])+3*(n[o[13]][1]+n[o[7]][1]))/9]),o[6]=n.length,n.push([(-4*n[o[3]][0]-n[o[12]][0]+6*(n[o[2]][0]+n[o[7]][0])-2*(n[o[0]][0]+n[o[15]][0])+3*(n[o[4]][0]+n[o[14]][0]))/9,(-4*n[o[3]][1]-n[o[12]][1]+6*(n[o[2]][1]+n[o[7]][1])-2*(n[o[0]][1]+n[o[15]][1])+3*(n[o[4]][1]+n[o[14]][1]))/9]),o[9]=n.length,n.push([(-4*n[o[12]][0]-n[o[3]][0]+6*(n[o[8]][0]+n[o[13]][0])-2*(n[o[0]][0]+n[o[15]][0])+3*(n[o[11]][0]+n[o[1]][0]))/9,(-4*n[o[12]][1]-n[o[3]][1]+6*(n[o[8]][1]+n[o[13]][1])-2*(n[o[0]][1]+n[o[15]][1])+3*(n[o[11]][1]+n[o[1]][1]))/9]),o[10]=n.length,n.push([(-4*n[o[15]][0]-n[o[0]][0]+6*(n[o[11]][0]+n[o[14]][0])-2*(n[o[12]][0]+n[o[3]][0])+3*(n[o[2]][0]+n[o[8]][0]))/9,(-4*n[o[15]][1]-n[o[0]][1]+6*(n[o[11]][1]+n[o[14]][1])-2*(n[o[12]][1]+n[o[3]][1])+3*(n[o[2]][1]+n[o[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(o),colors:new Int32Array(l)})}}_decodeType7Shading(i){for(var n=this.coords,s=this.colors,o=new Int32Array(16),l=new Int32Array(4);i.hasData;){var c=i.readFlag();if(!(0<=c&&c<=3))throw new C.FormatError("Unknown type7 flag");var h=n.length;for(let e=0,t=0!==c?12:16;e<t;e++)n.push(i.readCoordinate());var u=s.length;for(let e=0,t=0!==c?2:4;e<t;e++)s.push(i.readComponents());let e,t,a,r;switch(c){case 0:o[12]=h+3,o[13]=h+4,o[14]=h+5,o[15]=h+6,o[8]=h+2,o[9]=h+13,o[10]=h+14,o[11]=h+7,o[4]=h+1,o[5]=h+12,o[6]=h+15,o[7]=h+8,o[0]=h,o[1]=h+11,o[2]=h+10,o[3]=h+9,l[2]=u+1,l[3]=u+2,l[0]=u,l[1]=u+3;break;case 1:e=o[12],t=o[13],a=o[14],r=o[15],o[12]=r,o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=a,o[9]=h+9,o[10]=h+10,o[11]=h+3,o[4]=t,o[5]=h+8,o[6]=h+11,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[2],t=l[3],l[2]=t,l[3]=u,l[0]=e,l[1]=u+1;break;case 2:e=o[15],t=o[11],o[12]=o[3],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[7],o[9]=h+9,o[10]=h+10,o[11]=h+3,o[4]=t,o[5]=h+8,o[6]=h+11,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[3],l[2]=l[1],l[3]=u,l[0]=e,l[1]=u+1;break;case 3:o[12]=o[0],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[1],o[9]=h+9,o[10]=h+10,o[11]=h+3,o[4]=o[2],o[5]=h+8,o[6]=h+11,o[7]=h+4,o[0]=o[3],o[1]=h+7,o[2]=h+6,o[3]=h+5,l[2]=l[0],l[3]=u,l[0]=l[1],l[1]=u+1}this.figures.push({type:"patch",coords:new Int32Array(o),colors:new Int32Array(l)})}}_buildFigureFromPatch(e){var t=this.figures[e],o=((0,C.assert)("patch"===t.type,"Unexpected patch mesh figure"),this.coords),l=this.colors,c=t.coords,t=t.colors,a=Math.min(o[c[0]][0],o[c[3]][0],o[c[12]][0],o[c[15]][0]),r=Math.min(o[c[0]][1],o[c[3]][1],o[c[12]][1],o[c[15]][1]),i=Math.max(o[c[0]][0],o[c[3]][0],o[c[12]][0],o[c[15]][0]),n=Math.max(o[c[0]][1],o[c[3]][1],o[c[12]][1],o[c[15]][1]),h=Math.ceil((i-a)*O.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0])),h=Math.max(O.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(O.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,h)),u=Math.ceil((n-r)*O.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1])),u=Math.max(O.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(O.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,u)),i=h+1,d=new Int32Array((u+1)*i),f=new Int32Array((u+1)*i);let g=0;var p=new Uint8Array(3),m=new Uint8Array(3),b=l[t[0]],y=l[t[1]],v=l[t[2]],w=l[t[3]],x=s(u),S=s(h);for(let s=0;s<=u;s++){p[0]=(b[0]*(u-s)+v[0]*s)/u|0,p[1]=(b[1]*(u-s)+v[1]*s)/u|0,p[2]=(b[2]*(u-s)+v[2]*s)/u|0,m[0]=(y[0]*(u-s)+w[0]*s)/u|0,m[1]=(y[1]*(u-s)+w[1]*s)/u|0,m[2]=(y[2]*(u-s)+w[2]*s)/u|0;for(let n=0;n<=h;n++,g++)if(0!==s&&s!==u||0!==n&&n!==h){let a=0,r=0,i=0;for(let t=0;t<=3;t++)for(let e=0;e<=3;e++,i++){var A=x[s][t]*S[n][e];a+=o[c[i]][0]*A,r+=o[c[i]][1]*A}d[g]=o.length,o.push([a,r]),f[g]=l.length;var k=new Uint8Array(3);k[0]=(p[0]*(h-n)+m[0]*n)/h|0,k[1]=(p[1]*(h-n)+m[1]*n)/h|0,k[2]=(p[2]*(h-n)+m[2]*n)/h|0,l.push(k)}}d[0]=c[0],f[0]=t[0],d[h]=c[3],f[h]=t[1],d[i*u]=c[12],f[i*u]=t[2],d[i*u+h]=c[15],f[i*u+h]=t[3],this.figures[e]={type:"lattice",coords:d,colors:f,verticesPerRow:i}}_updateBounds(){let a=this.coords[0][0],r=this.coords[0][1],i=a,n=r;for(let e=1,t=this.coords.length;e<t;e++){var s=this.coords[e][0],o=this.coords[e][1];a=a>s?s:a,r=r>o?o:r,i=i<s?s:i,n=n<o?o:n}this.bounds=[a,r,i,n]}_packData(){let e,t,a,r;var i=this.coords,n=new Float32Array(2*i.length);for(e=0,a=0,t=i.length;e<t;e++){var s=i[e];n[a++]=s[0],n[a++]=s[1]}this.coords=n;var o=this.colors,l=new Uint8Array(3*o.length);for(e=0,a=0,t=o.length;e<t;e++){var c=o[e];l[a++]=c[0],l[a++]=c[1],l[a++]=c[2]}this.colors=l;var h=this.figures;for(e=0,t=h.length;e<t;e++){var u=h[e],d=u.coords,f=u.colors;for(a=0,r=d.length;a<r;a++)d[a]*=2,f[a]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class d extends x{getIR(){return["Dummy"]}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){var t=function(e){e=u(e);if(!e)return null;const{baseWidths:t,baseMapping:a,factors:r}=e;let i;i=r?t.map((e,t)=>e*r[t]):t;let n=-2,s;var o=[];for(var[l,c]of a.map((e,t)=>[e,t]).sort((e,t)=>{var[e]=e,[t]=t;return e-t}))-1!==l&&(l===n+1?(s.push(i[c]),n+=1):(n=l,s=[i[c]],o.push(l,s)));return o}(e),a=new i.Dict(null),e=(a.set("BaseFont",i.Name.get(e)),a.set("Type",i.Name.get("Font")),a.set("Subtype",i.Name.get("CIDFontType2")),a.set("Encoding",i.Name.get("Identity-H")),a.set("CIDToGIDMap",i.Name.get("Identity")),a.set("W",t),a.set("FirstChar",t[0]),a.set("LastChar",t.at(-2)+t.at(-1).length-1),new i.Dict(null)),t=(a.set("FontDescriptor",e),new i.Dict(null));return t.set("Ordering","Identity"),t.set("Registry","Adobe"),t.set("Supplement",0),a.set("CIDSystemInfo",t),a},t.getXfaFontName=u;var r=a(181),i=a(134),n=a(182),s=a(183),o=a(184),l=a(185),t=a(135),c=a(167);const h=(0,t.getLookupTableFactory)(function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:o.MyriadProRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:o.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:o.MyriadProBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:o.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:o.MyriadProItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:o.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:o.MyriadProBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:o.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:r.CalibriRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:r.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:r.CalibriBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:r.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:r.CalibriItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:r.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.CalibriBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:r.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:n.HelveticaRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:n.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:n.HelveticaBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:n.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:n.HelveticaItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:n.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.HelveticaBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:n.HelveticaBoldItalicMetrics}});function u(e){e=(0,c.normalizeFontName)(e);return h()[e]}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0;t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriBoldItalicFactors=[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],t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0;t.HelveticaBoldFactors=[.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],t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},t.HelveticaBoldItalicFactors=[.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],t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaItalicFactors=[.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],t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaRegularFactors=[.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];t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0;t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldMapping=[-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],t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldItalicMapping=[-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],t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansItalicMapping=[-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],t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];t.LiberationSansRegularMapping=[-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]},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0;t.MyriadProBoldFactors=[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],t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProRegularFactors=[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];t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0;t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiRegularFactors=[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];t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=function(e){let t;{if("object"!=typeof e)return!1;if(e instanceof r.Dict)t=e;else{if(!(e instanceof n.BaseStream))return!1;t=e.dict}}return t.has("FunctionType")};var r=a(134),l=a(2),i=a(187),n=a(136),s=a(188);function c(t){if(!Array.isArray(t))return null;var a=t.length;for(let e=0;e<a;e++)if("number"!=typeof t[e]){var r=new Array(a);for(let e=0;e<a;e++)r[e]=+t[e];return r}return t}t.PDFFunctionFactory=class{constructor(e){var{xref:e,isEvalSupported:t=!0}=e;this.xref=e,this.isEvalSupported=!1!==t}create(e){var t=this.getCached(e);return t||(t=o.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof r.Ref?this.xref.fetch(e):e}),this._cache(e,t),t)}createFromArray(e){var t=this.getCached(e);return t||(t=o.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof r.Ref?this.xref.fetch(e):e}),this._cache(e,t),t)}getCached(e){let t;if(e instanceof r.Ref?t=e:e instanceof r.Dict?t=e.objId:e instanceof n.BaseStream&&(t=e.dict&&e.dict.objId),t){e=this._localFunctionCache.getByRef(t);if(e)return e}return null}_cache(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let a;e instanceof r.Ref?a=e:e instanceof r.Dict?a=e.objId:e instanceof n.BaseStream&&(a=e.dict&&e.dict.objId),a&&this._localFunctionCache.set(null,a,t)}get _localFunctionCache(){return(0,l.shadow)(this,"_localFunctionCache",new s.LocalFunctionCache)}};class o{static getSampleArray(e,t,a,r){let i,n,s=1;for(i=0,n=e.length;i<n;i++)s*=e[i];s*=t;var o=new Array(s);let l=0,c=0;var h=1/(2**a-1),u=r.getBytes((s*a+7)/8);let d=0;for(i=0;i<s;i++){for(;l<a;)c=(c<<=8)|u[d++],l+=8;l-=a,o[i]=(c>>l)*h,c&=(1<<l)-1}return o}static parse(e){var{xref:t,isEvalSupported:a,fn:r}=e,i=r.dict||r;switch(i.get("FunctionType")){case 0:return this.constructSampled({xref:t,isEvalSupported:a,fn:r,dict:i});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:a,dict:i});case 3:return this.constructStiched({xref:t,isEvalSupported:a,dict:i});case 4:return this.constructPostScript({xref:t,isEvalSupported:a,fn:r,dict:i})}throw new l.FormatError("Unknown type of function")}static parseArray(e){var{xref:t,isEvalSupported:a,fnObj:e}=e;if(!Array.isArray(e))return this.parse({xref:t,isEvalSupported:a,fn:e});const s=[];for(const r of e)s.push(this.parse({xref:t,isEvalSupported:a,fn:t.fetchIfRef(r)}));return function(a,r,i,n){for(let e=0,t=s.length;e<t;e++)s[e](a,r,i,n+e)}}static constructSampled(e){var{fn:e,dict:t}=e;function a(t){var a=t.length,r=[];let i=0;for(let e=0;e<a;e+=2)r[i++]=[t[e],t[e+1]];return r}function y(e,t,a,r,i){return r+(i-r)/(a-t)*(e-t)}let v=c(t.getArray("Domain")),w=c(t.getArray("Range"));if(!v||!w)throw new l.FormatError("No domain or range");const x=v.length/2,S=w.length/2,A=(v=a(v),w=a(w),c(t.getArray("Size")));var r=t.get("BitsPerSample"),i=t.get("Order")||1;1!==i&&(0,l.info)("No support for cubic spline interpolation: "+i);let k=c(t.getArray("Encode"));if(k)k=a(k);else{k=[];for(let e=0;e<x;++e)k.push([0,A[e]-1])}let C=c(t.getArray("Decode"));C=C?a(C):w;const O=this.getSampleArray(A,S,r,e);return function(e,t,a,r){var i=1<<x,n=new Float64Array(i),s=new Uint32Array(i);let o,l;for(l=0;l<i;l++)n[l]=1;let c=S,h=1;for(o=0;o<x;++o){var u=v[o][0],d=v[o][1],u=y(Math.min(Math.max(e[t+o],u),d),u,d,k[o][0],k[o][1]),d=A[o],f=(u=Math.min(Math.max(u,0),d-1))<d-1?Math.floor(u):u-1,g=f+1-u,p=u-f,m=f*c,b=m+c;for(l=0;l<i;l++)l&h?(n[l]*=p,s[l]+=b):(n[l]*=g,s[l]+=m);c*=d,h<<=1}for(l=0;l<S;++l){let e=0;for(o=0;o<i;o++)e+=O[s[o]+l]*n[o];e=y(e,0,1,C[l][0],C[l][1]),a[r+l]=Math.min(Math.max(e,w[l][0]),w[l][1])}}}static constructInterpolated(e){e=e.dict;const n=c(e.getArray("C0"))||[0];var a=c(e.getArray("C1"))||[1];const s=e.get("N"),o=[];for(let e=0,t=n.length;e<t;++e)o.push(a[e]-n[e]);const l=o.length;return function(e,t,a,r){var i=1===s?e[t]:e[t]**s;for(let e=0;e<l;++e)a[r+e]=n[e]+i*o[e]}}static constructStiched(e){var{xref:t,isEvalSupported:a,dict:e}=e;const h=c(e.getArray("Domain"));if(!h)throw new l.FormatError("No domain");if(1!=h.length/2)throw new l.FormatError("Bad domain for stiched function");const u=[];for(const r of e.get("Functions"))u.push(this.parse({xref:t,isEvalSupported:a,fn:t.fetchIfRef(r)}));const d=c(e.getArray("Bounds")),f=c(e.getArray("Encode")),g=new Float32Array(1);return function(e,t,a,r){e=e[t],t=h[0],(c=h[1])<e?e=c:e<t&&(e=t);var i=e,n=d.length;let s;for(s=0;s<n&&!(i<d[s]);++s);let o=h[0],l=(0<s&&(o=d[s-1]),h[1]);s<d.length&&(l=d[s]);var c=f[2*s],t=f[2*s+1];g[0]=o===l?c:c+(i-o)*(t-c)/(l-o),u[s](g,0,a,r)}}static constructPostScript(e){var{isEvalSupported:e,fn:t,dict:a}=e,r=c(a.getArray("Domain"));const f=c(a.getArray("Range"));if(!r)throw new l.FormatError("No domain.");if(!f)throw new l.FormatError("No range.");a=new i.PostScriptLexer(t),t=new i.PostScriptParser(a).parse();if(e&&l.FeatureTest.isEvalSupported){a=(new w).compile(t,r,f);if(a)return new Function("src","srcOffset","dest","destOffset",a)}(0,l.info)("Unable to compile PS function");const g=f.length>>1,p=r.length>>1,m=new u(t),b=Object.create(null);let y=8192;const v=new Float32Array(p);return function(e,t,a,r){let i,n,s="";var o=v;for(i=0;i<p;i++)n=e[t+i],o[i]=n,s+=n+"_";var l=b[s];if(void 0!==l)a.set(l,r);else{var c=new Float32Array(g),h=m.execute(o),u=h.length-g;for(i=0;i<g;i++){n=h[u+i];var d=f[2*i];(n<d||(d=f[2*i+1],n>d))&&(n=d),c[i]=n}0<y&&(y--,b[s]=c),a.set(c,r)}}}}class h{static get MAX_STACK_SIZE(){return(0,l.shadow)(this,"MAX_STACK_SIZE",100)}constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=h.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(a){if(this.stack.length+a>=h.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");var r=this.stack;for(let e=r.length-a,t=a-1;0<=t;t--,e++)r.push(r[e])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,a){var r=this.stack,i=r.length-e,n=r.length-1,a=i+(a-Math.floor(a/e)*e);for(let e=i,t=n;e<t;e++,t--){var s=r[e];r[e]=r[t],r[t]=s}for(let e=i,t=a-1;e<t;e++,t--){var o=r[e];r[e]=r[t],r[t]=o}for(let e=a,t=n;e<t;e++,t--){var l=r[e];r[e]=r[t],r[t]=l}}}class u{constructor(e){this.operators=e}execute(e){var t=new h(e);let a=0;var r=this.operators,i=r.length;let n,s,o;for(;a<i;)if("number"==typeof(n=r[a++]))t.push(n);else switch(n){case"jz":o=t.pop(),(s=t.pop())||(a=o);break;case"j":s=t.pop(),a=s;break;case"abs":s=t.pop(),t.push(Math.abs(s));break;case"add":o=t.pop(),s=t.pop(),t.push(s+o);break;case"and":o=t.pop(),"boolean"==typeof(s=t.pop())&&"boolean"==typeof o?t.push(s&&o):t.push(s&o);break;case"atan":s=t.pop(),t.push(Math.atan(s));break;case"bitshift":o=t.pop(),0<(s=t.pop())?t.push(s<<o):t.push(s>>o);break;case"ceiling":s=t.pop(),t.push(Math.ceil(s));break;case"copy":s=t.pop(),t.copy(s);break;case"cos":s=t.pop(),t.push(Math.cos(s));break;case"cvi":s=0|t.pop(),t.push(s);break;case"cvr":break;case"div":o=t.pop(),s=t.pop(),t.push(s/o);break;case"dup":t.copy(1);break;case"eq":o=t.pop(),s=t.pop(),t.push(s===o);break;case"exch":t.roll(2,1);break;case"exp":o=t.pop(),s=t.pop(),t.push(s**o);break;case"false":t.push(!1);break;case"floor":s=t.pop(),t.push(Math.floor(s));break;case"ge":o=t.pop(),s=t.pop(),t.push(s>=o);break;case"gt":o=t.pop(),s=t.pop(),t.push(s>o);break;case"idiv":o=t.pop(),s=t.pop(),t.push(s/o|0);break;case"index":s=t.pop(),t.index(s);break;case"le":o=t.pop(),s=t.pop(),t.push(s<=o);break;case"ln":s=t.pop(),t.push(Math.log(s));break;case"log":s=t.pop(),t.push(Math.log(s)/Math.LN10);break;case"lt":o=t.pop(),s=t.pop(),t.push(s<o);break;case"mod":o=t.pop(),s=t.pop(),t.push(s%o);break;case"mul":o=t.pop(),s=t.pop(),t.push(s*o);break;case"ne":o=t.pop(),s=t.pop(),t.push(s!==o);break;case"neg":s=t.pop(),t.push(-s);break;case"not":"boolean"==typeof(s=t.pop())?t.push(!s):t.push(~s);break;case"or":o=t.pop(),"boolean"==typeof(s=t.pop())&&"boolean"==typeof o?t.push(s||o):t.push(s|o);break;case"pop":t.pop();break;case"roll":o=t.pop(),s=t.pop(),t.roll(s,o);break;case"round":s=t.pop(),t.push(Math.round(s));break;case"sin":s=t.pop(),t.push(Math.sin(s));break;case"sqrt":s=t.pop(),t.push(Math.sqrt(s));break;case"sub":o=t.pop(),s=t.pop(),t.push(s-o);break;case"true":t.push(!0);break;case"truncate":s=(s=t.pop())<0?Math.ceil(s):Math.floor(s),t.push(s);break;case"xor":o=t.pop(),"boolean"==typeof(s=t.pop())&&"boolean"==typeof o?t.push(s!==o):t.push(s^o);break;default:throw new l.FormatError("Unknown operator "+n)}return t.stack}}t.PostScriptEvaluator=u;class d{constructor(e){this.type=e}visit(e){(0,l.unreachable)("abstract method")}}class C extends d{constructor(e,t,a){super("args"),this.index=e,this.min=t,this.max=a}visit(e){e.visitArgument(this)}}class O extends d{constructor(e){super("literal"),this.number=e,this.min=e,this.max=e}visit(e){e.visitLiteral(this)}}class F extends d{constructor(e,t,a,r,i){super("binary"),this.op=e,this.arg1=t,this.arg2=a,this.min=r,this.max=i}visit(e){e.visitBinaryOperation(this)}}class I extends d{constructor(e,t){super("max"),this.arg=e,this.min=e.min,this.max=t}visit(e){e.visitMin(this)}}class T extends d{constructor(e,t,a){super("var"),this.index=e,this.min=t,this.max=a}visit(e){e.visitVariable(this)}}class M extends d{constructor(e,t){super("definition"),this.variable=e,this.arg=t}visit(e){e.visitVariableDefinition(this)}}class P{constructor(){this.parts=[]}visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}visitVariable(e){this.parts.push("v",e.index)}visitLiteral(e){this.parts.push(e.number)}visitBinaryOperation(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}visitMin(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}toString(){return this.parts.join("")}}class w{compile(a,t,r){var i,n,s=[],o=[],l=t.length>>1,e=r.length>>1;let c=0,h,u,d,f,g,p,m,b;for(let e=0;e<l;e++)s.push(new C(e,t[2*e],t[2*e+1]));for(let e=0,t=a.length;e<t;e++)if("number"==typeof(b=a[e]))s.push(new O(b));else switch(b){case"add":if(s.length<2)return null;f=s.pop(),d=s.pop(),s.push((i=d,"literal"===(n=f).type&&0===n.number?i:"literal"===i.type&&0===i.number?n:"literal"===n.type&&"literal"===i.type?new O(i.number+n.number):new F("+",i,n,i.min+n.min,i.max+n.max)));break;case"cvr":if(s.length<1)return null;break;case"mul":if(s.length<2)return null;f=s.pop(),d=s.pop(),s.push(function(e,t){if("literal"===t.type){if(0===t.number)return new O(0);if(1===t.number)return e;if("literal"===e.type)return new O(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new O(0);if(1===e.number)return t}var a=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),r=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new F("*",e,t,a,r)}(d,f));break;case"sub":if(s.length<2)return null;f=s.pop(),d=s.pop(),s.push(function(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new O(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new F("-",e,t,e.min-t.max,e.max-t.min)}(d,f));break;case"exch":if(s.length<2)return null;g=s.pop(),p=s.pop(),s.push(g,p);break;case"pop":if(s.length<1)return null;s.pop();break;case"index":if(s.length<1)return null;if("literal"!==(d=s.pop()).type)return null;if((h=d.number)<0||!Number.isInteger(h)||s.length<h)return null;"literal"===(g=s[s.length-h-1]).type||"var"===g.type?s.push(g):(m=new T(c++,g.min,g.max),s[s.length-h-1]=m,s.push(m),o.push(new M(m,g)));break;case"dup":if(s.length<1)return null;"number"==typeof a[e+1]&&"gt"===a[e+2]&&a[e+3]===e+7&&"jz"===a[e+4]&&"pop"===a[e+5]&&a[e+6]===a[e+1]?(d=s.pop(),s.push((i=d,n=a[e+1],i.min>=n?new O(n):i.max<=n?i:new I(i,n))),e+=6):"literal"===(g=s.at(-1)).type||"var"===g.type?s.push(g):(m=new T(c++,g.min,g.max),s[s.length-1]=m,s.push(m),o.push(new M(m,g)));break;case"roll":if(s.length<2)return null;if(f=s.pop(),d=s.pop(),"literal"!==f.type||"literal"!==d.type)return null;if(u=f.number,(h=d.number)<=0||!Number.isInteger(h)||!Number.isInteger(u)||s.length<h)return null;0!=(u=(u%h+h)%h)&&s.push(...s.splice(s.length-h,h-u));break;default:return null}if(s.length!==e)return null;var y=[];for(const k of o){var v=new P;k.visit(v),y.push(v.toString())}for(let e=0,t=s.length;e<t;e++){var w=s[e],x=new P,S=(w.visit(x),r[2*e]),A=r[2*e+1],x=[x.toString()];S>w.min&&(x.unshift("Math.max(",S,", "),x.push(")")),A<w.max&&(x.unshift("Math.min(",A,", "),x.push(")")),x.unshift("dest[destOffset + ",e,"] = "),x.push(";"),y.push(x.join(""))}return y.join("\n")}}t.PostScriptCompiler=w},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=a(2),i=a(134),n=a(135);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(s.LBRACE),this.parseBlock(),this.expect(s.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition()}}parseCondition(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(s.RBRACE),this.accept(s.IF))this.operators[e]=this.operators.length;else{if(!this.accept(s.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");var t=this.operators.length,a=(this.operators.push(null,null),this.operators.length);this.parseBlock(),this.expect(s.RBRACE),this.expect(s.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=a}this.operators[e+1]="jz"}};const s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class o{static get opCache(){return(0,r.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(e){var t=o.opCache[e];return t||(o.opCache[e]=new o(s.OPERATOR,e))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new o(s.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new o(s.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new o(s.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new o(s.IFELSE,"IFELSE"))}}t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,n.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new o(s.NUMBER,this.getNumber());case 123:return this.nextChar(),o.LBRACE;case 125:return this.nextChar(),o.RBRACE}var a=this.strBuf;for(a.length=0,a[0]=String.fromCharCode(t);0<=(t=this.nextChar())&&(65<=t&&t<=90||97<=t&&t<=122);)a.push(String.fromCharCode(t));var r=a.join("");switch(r.toLowerCase()){case"if":return o.IF;case"ifelse":return o.IFELSE;default:return o.getOperator(r)}}getNumber(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);0<=(e=this.nextChar())&&(48<=e&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var a=parseFloat(t.join(""));if(isNaN(a))throw new r.FormatError("Invalid floating point number: "+a);return a}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var r=a(2),i=a(134);class n{constructor(e){this.constructor===n&&(0,r.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(e&&e.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}getByName(e){this._onlyRefs&&(0,r.unreachable)("Should not call `getByName` method.");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,a){(0,r.unreachable)("Abstract method `set` called.")}}n;t.LocalImageCache=class extends n{set(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t)return this._imageCache.has(t)?void 0:(this._nameRefMap.set(e,t),void this._imageCache.put(t,a));this._imageMap.has(e)||this._imageMap.set(e,a)}};n;t.LocalColorSpaceCache=class extends n{set(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length?arguments[2]:void 0;if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t)return this._imageCache.has(t)?void 0:(null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,a));this._imageMap.has(e)||this._imageMap.set(e,a)}};n;t.LocalFunctionCache=class extends n{constructor(e){super({onlyRefs:!0})}set(){var e=1<arguments.length?arguments[1]:void 0,t=2<arguments.length?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}};n;t.LocalGStateCache=class extends n{set(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t)return this._imageCache.has(t)?void 0:(this._nameRefMap.set(e,t),void this._imageCache.put(t,a));this._imageMap.has(e)||this._imageMap.set(e,a)}};n;t.LocalTilingPatternCache=class extends n{constructor(e){super({onlyRefs:!0})}set(){var e=1<arguments.length?arguments[1]:void 0,t=2<arguments.length?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}};t.GlobalImageCache=class s{static get NUM_PAGES_THRESHOLD(){return(0,r.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,r.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,r.shadow)(this,"MAX_BYTE_SIZE",4e7)}constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}get _byteSize(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get _cacheLimitReached(){return!(this._imageCache.size<s.MIN_IMAGES_TO_CACHE||this._byteSize<s.MAX_BYTE_SIZE)}shouldCache(e,t){var a=this._refCache.get(e);return!((a?a.size+(a.has(t)?0:1):1)<s.NUM_PAGES_THRESHOLD||!this._imageCache.has(e)&&this._cacheLimitReached)}addPageIndex(e,t){let a=this._refCache.get(e);a||(a=new Set,this._refCache.put(e,a)),a.add(t)}addByteSize(e,t){(e=this._imageCache.get(e))&&!e.byteSize&&(e.byteSize=t)}getData(e,t){var a=this._refCache.get(e);return!a||a.size<s.NUM_PAGES_THRESHOLD||!(e=this._imageCache.get(e))?null:(a.add(t),e)}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,r.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}clear(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear(),this._imageCache.clear()}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(t){let e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1,a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=!0;var i=t.length;if(0===i||a)return C(t,r,a);O.length=i,F.length=i;let n=0,s,o;for(s=0;s<i;++s){O[s]=t.charAt(s);var l=t.charCodeAt(s);let e="L";l<=255?e=x[l]:1424<=l&&l<=1524?e="R":1536<=l&&l<=1791?(e=S[255&l])||(0,w.warn)("Bidi: invalid Unicode character "+l.toString(16)):1792<=l&&l<=2220&&(e="AL"),"R"!==e&&"AL"!==e&&"AN"!==e||n++,F[s]=e}if(0===n)return r=!0,C(t,r);-1===e&&(e=n/i<.3&&4<i?(r=!0,0):(r=!1,1));var c=[];for(s=0;s<i;++s)c[s]=e;var h=A(e)?"R":"L",u=h,d=u;let f=u;for(s=0;s<i;++s)"NSM"===F[s]?F[s]=f:f=F[s];f=u;let g;for(s=0;s<i;++s)"EN"===(g=F[s])?F[s]="AL"===f?"AN":"EN":"R"!==g&&"L"!==g&&"AL"!==g||(f=g);for(s=0;s<i;++s)"AL"===(g=F[s])&&(F[s]="R");for(s=1;s<i-1;++s)"ES"===F[s]&&"EN"===F[s-1]&&"EN"===F[s+1]&&(F[s]="EN"),"CS"!==F[s]||"EN"!==F[s-1]&&"AN"!==F[s-1]||F[s+1]!==F[s-1]||(F[s]=F[s-1]);for(s=0;s<i;++s)if("EN"===F[s]){for(let e=s-1;0<=e&&"ET"===F[e];--e)F[e]="EN";for(let e=s+1;e<i&&"ET"===F[e];++e)F[e]="EN"}for(s=0;s<i;++s)"WS"!==(g=F[s])&&"ES"!==g&&"ET"!==g&&"CS"!==g||(F[s]="ON");for(f=u,s=0;s<i;++s)"EN"===(g=F[s])?F[s]="L"===f?"L":"EN":"R"!==g&&"L"!==g||(f=g);for(s=0;s<i;++s)if("ON"===F[s]){var p=function(e,t,a){let r,i;for(r=t,i=e.length;r<i;++r)if(e[r]!==a)return r;return r}(F,s+1,"ON");let e=u,t=(0<s&&(e=F[s-1]),d);p+1<i&&(t=F[p+1]),"L"!==e&&(e="R"),"L"!==t&&(t="R"),e===t&&!function(t,a,r,i){for(let e=a;e<r;++e)t[e]=i}(F,s,p,e),s=p-1}for(s=0;s<i;++s)"ON"===F[s]&&(F[s]=h);for(s=0;s<i;++s)g=F[s],0==(1&c[s])?"R"===g?c[s]+=1:"AN"!==g&&"EN"!==g||(c[s]+=2):"L"!==g&&"AN"!==g&&"EN"!==g||(c[s]+=1);let m=-1,b=99,y;for(s=0,o=c.length;s<o;++s)y=c[s],m<y&&(m=y),b>y&&A(y)&&(b=y);for(y=m;y>=b;--y){let e=-1;for(s=0,o=c.length;s<o;++s)c[s]<y?0<=e&&(k(O,e,s),e=-1):e<0&&(e=s);0<=e&&k(O,e,c.length)}for(s=0,o=O.length;s<o;++s){var v=O[s];"<"!==v&&">"!==v||(O[s]="")}return C(O.join(""),r)};var w=a(2);const x=["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"],S=["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 A(e){return 0!=(1&e)}function k(a,r,i){for(let e=r,t=i-1;e<t;++e,--t){var n=a[e];a[e]=a[t],a[t]=n}}function C(e,t,a){let r="ltr";return 2<arguments.length&&void 0!==a&&a?r="ttb":t||(r="rtl"),{str:e,dir:r}}const O=[],F=[]},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var f=a(2);const g=4294901760,p=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:3285377520,this.h2=e?4294967295&e:3285377520}update(a){let r,i;if("string"==typeof a){r=new Uint8Array(2*a.length);for(let e=i=0,t=a.length;e<t;e++){var n=a.charCodeAt(e);n<=255?r[i++]=n:(r[i++]=n>>>8,r[i++]=255&n)}}else{if(!(0,f.isArrayBuffer)(a))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=a.slice(),i=r.byteLength}var t=i>>2,e=i-4*t,s=new Uint32Array(r.buffer,0,t);let o=0,l,c=this.h1,h=this.h2;var u=3432918353,d=461845907;for(let e=0;e<t;e++)1&e?(o=(o=(o=(o=s[e])*u&g|11601*o&p)<<15|o>>>17)*d&g|13715*o&p,c=5*(c=(c^=o)<<13|c>>>19)+3864292196):(l=(l=(l=(l=s[e])*u&g|11601*l&p)<<15|l>>>17)*d&g|13715*l&p,h=5*(h=(h^=l)<<13|h>>>19)+3864292196);switch(o=0,e){case 3:o^=r[4*t+2]<<16;case 2:o^=r[4*t+1]<<8;case 1:o=(o=(o=(o^=r[4*t])*u&g|11601*o&p)<<15|o>>>17)*d&g|13715*o&p,1&t?c^=o:h^=o}this.h1=c,this.h2=h}hexdigest(){var e=this.h1,t=this.h2,e=(e=3981806797*(e^=t>>>1)&g|36045*e&p,e=444984403*(e^=(t=4283543511*t&g|(2950163797*(t<<16|e>>>16)&g)>>>16)>>>1)&g|60499*e&p,((e^=(t=3301882366*t&g|(3120437893*(t<<16|e>>>16)&g)>>>16)>>>1)>>>0).toString(16)),t=(t>>>0).toString(16);return e.padStart(8,"0")+t.padStart(8,"0")}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var w=a(2);function r(e,a,t,r,i){let n=e;for(let e=0,t=a.length-1;e<t;e++){var s=a[e];n=n[s]||(n[s]=[])}n[a.at(-1)]={checkFn:t,iterateFn:r,processFn:i}}const s=[];r(s,[w.OPS.save,w.OPS.transform,w.OPS.paintInlineImageXObject,w.OPS.restore],null,function(e,t){var a=e.fnArray,e=(t-(e.iCurr-3))%4;switch(e){case 0:return a[t]===w.OPS.save;case 1:return a[t]===w.OPS.transform;case 2:return a[t]===w.OPS.paintInlineImageXObject;case 3:return a[t]===w.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: "+e)},function(e,t){var a=e.fnArray,n=e.argsArray,e=e.iCurr,r=e-3,i=e-2,s=e-1,o=Math.min(Math.floor((t-r)/4),200);if(o<10)return t-(t-r)%4;let l=0;var c=[];let h=0,u=1,d=1;for(let e=0;e<o;e++){var f=n[i+(e<<2)],g=n[s+(e<<2)][0];1e3<u+g.width&&(l=Math.max(l,u),d+=h+2,u=0,h=0),c.push({transform:f,x:u,y:d,w:g.width,h:g.height}),u+=g.width+2,h=Math.max(h,g.height)}var p=Math.max(l,u)+1,e=d+h+1,m=new Uint8Array(p*e*4),b=p<<2;for(let i=0;i<o;i++){var y=n[s+(i<<2)][0].data,v=c[i].w<<2;let a=0,r=c[i].x+c[i].y*p<<2;m.set(y.subarray(0,v),r-b);for(let e=0,t=c[i].h;e<t;e++)m.set(y.subarray(a,a+v),r),a+=v,r+=b;for(m.set(y.subarray(a-v,a),r);0<=r;)y[r-4]=y[r],y[r-3]=y[r+1],y[r-2]=y[r+2],y[r-1]=y[r+3],y[r+v]=y[r+v-4],y[r+v+1]=y[r+v-3],y[r+v+2]=y[r+v-2],y[r+v+3]=y[r+v-1],r-=b}return a.splice(r,4*o,w.OPS.paintInlineImageXObjectGroup),n.splice(r,4*o,[{width:p,height:e,kind:w.ImageKind.RGBA_32BPP,data:m},c]),1+r}),r(s,[w.OPS.save,w.OPS.transform,w.OPS.paintImageMaskXObject,w.OPS.restore],null,function(e,t){var a=e.fnArray,e=(t-(e.iCurr-3))%4;switch(e){case 0:return a[t]===w.OPS.save;case 1:return a[t]===w.OPS.transform;case 2:return a[t]===w.OPS.paintImageMaskXObject;case 3:return a[t]===w.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: "+e)},function(e,t){var a=e.fnArray,r=e.argsArray,e=e.iCurr,i=e-3,n=e-2,s=e-1;let o=Math.floor((t-i)/4);if(o<10)return t-(t-i)%4;let l=!1,c,h;var u=r[s][0],d=r[n][0],f=r[n][1],g=r[n][2],p=r[n][3];if(f===g){l=!0,c=4+n;let t=4+s;for(let e=1;e<o;e++,c+=4,t+=4)if(h=r[c],r[t][0]!==u||h[0]!==d||h[1]!==f||h[2]!==g||h[3]!==p){e<10?l=!1:o=e;break}}if(l){o=Math.min(o,1e3);var m=new Float32Array(2*o);c=n;for(let e=0;e<o;e++,c+=4)h=r[c],m[e<<1]=h[4],m[1+(e<<1)]=h[5];a.splice(i,4*o,w.OPS.paintImageMaskXObjectRepeat),r.splice(i,4*o,[u,d,f,g,p,m])}else{o=Math.min(o,100);var b=[];for(let e=0;e<o;e++){h=r[n+(e<<2)];var y=r[s+(e<<2)][0];b.push({data:y.data,width:y.width,height:y.height,interpolate:y.interpolate,count:y.count,transform:h})}a.splice(i,4*o,w.OPS.paintImageMaskXObjectGroup),r.splice(i,4*o,[b])}return 1+i}),r(s,[w.OPS.save,w.OPS.transform,w.OPS.paintImageXObject,w.OPS.restore],function(e){var t=e.argsArray,e=e.iCurr-2;return 0===t[e][1]&&0===t[e][2]},function(e,t){var a,r,i=e.fnArray,n=e.argsArray,s=(t-(e.iCurr-3))%4;switch(s){case 0:return i[t]===w.OPS.save;case 1:return i[t]!==w.OPS.transform?!1:(r=n[a=e.iCurr-2][0],a=n[a][3],n[t][0]===r&&0===n[t][1]&&0===n[t][2]&&n[t][3]===a);case 2:return i[t]!==w.OPS.paintImageXObject?!1:(r=n[e.iCurr-1][0],n[t][0]===r);case 3:return i[t]===w.OPS.restore}throw new Error("iterateImageGroup - invalid pos: "+s)},function(e,t){var a=e.fnArray,r=e.argsArray,e=e.iCurr,i=e-3,n=e-2,e=r[e-1][0],s=r[n][0],o=r[n][3],l=Math.min(Math.floor((t-i)/4),1e3);if(l<3)return t-(t-i)%4;var c=new Float32Array(2*l);let h=n;for(let e=0;e<l;e++,h+=4){var u=r[h];c[e<<1]=u[4],c[1+(e<<1)]=u[5]}t=[e,s,o,c];return a.splice(i,4*l,w.OPS.paintImageXObjectRepeat),r.splice(i,4*l,t),1+i}),r(s,[w.OPS.beginText,w.OPS.setFont,w.OPS.setTextMatrix,w.OPS.showText,w.OPS.endText],null,function(e,t){var a,r,i=e.fnArray,n=e.argsArray,s=(t-(e.iCurr-4))%5;switch(s){case 0:return i[t]===w.OPS.beginText;case 1:return i[t]===w.OPS.setFont;case 2:return i[t]===w.OPS.setTextMatrix;case 3:return i[t]!==w.OPS.showText?!1:(a=n[r=e.iCurr-3][0],r=n[r][1],n[t][0]===a&&n[t][1]===r);case 4:return i[t]===w.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: "+s)},function(e,t){var a=e.fnArray,r=e.argsArray,e=e.iCurr,i=e-4,n=e-3,s=e-2,o=e-1,l=r[n][0],c=r[n][1];let h=Math.min(Math.floor((t-i)/5),1e3);if(h<3)return t-(t-i)%5;let u=i,d=(4<=i&&a[i-4]===a[n]&&a[i-3]===a[s]&&a[i-2]===a[o]&&a[i-1]===a[e]&&r[i-4][0]===l&&r[i-4][1]===c&&(h++,u-=5),u+4);for(let e=1;e<h;e++)a.splice(d,3),r.splice(d,3),d+=2;return d+1});class i{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}}class n extends i{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},this.match=null,this.lastProcessed=0}_optimize(){var e=this.queue.fnArray;let t=this.lastProcessed,a=e.length,r=this.state,i=this.match;if(r||i||t+1!==a||s[e[t]]){for(var n=this.context;t<a;){if(i){if((0,i.iterateFn)(n,t)){t++;continue}if(t=(0,i.processFn)(n,t+1),a=e.length,i=null,r=null,t>=a)break}!(r=(r||s)[e[t]])||Array.isArray(r)?t++:(n.iCurr=t,t++,r=(r.checkFn&&!(0,r.checkFn)(n)||(i=r),null))}this.state=r,this.match=i,this.lastProcessed=t}else this.lastProcessed=a}flush(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}t.OperatorList=class o{static get CHUNK_SIZE(){return(0,w.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,w.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length?arguments[1]:void 0;this._streamSink=t,this.fnArray=[],this.argsArray=[],!t||e&w.RenderingIntentFlag.OPLIST?this.optimizer=new i(this):this.optimizer=new n(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=o.CHUNK_SIZE||this.weight>=o.CHUNK_SIZE_ABOUT&&(e===w.OPS.restore||e===w.OPS.endText))&&this.flush()}addImageOps(e,t,a){void 0!==a&&this.addOp(w.OPS.beginMarkedContentProps,["OC",a]),this.addOp(e,t),void 0!==a&&this.addOp(w.OPS.endMarkedContent,[])}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(w.OPS.dependency,[e]))}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(a){if(a instanceof o){for(const e of a.dependencies)this.dependencies.add(e);for(let e=0,t=a.length;e<t;e++)this.addOp(a.fnArray[e],a.argsArray[e])}else(0,w.warn)('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){var t=[],{fnArray:a,argsArray:r,length:i}=this;for(let e=0;e<i;e++)switch(a[e]){case w.OPS.paintInlineImageXObject:case w.OPS.paintInlineImageXObjectGroup:case w.OPS.paintImageMaskXObject:var n=r[e][0];!n.cached&&n.data&&n.data.buffer instanceof ArrayBuffer&&t.push(n.data.buffer)}return t}flush(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=(this.optimizer.flush(),this.length);this._totalLength+=a,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:a},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var w=a(2),c=a(193),x=a(136),S=a(143),n=a(148),d=a(156),A=a(159),k=a(134);function b(e,t,a,r,i,n){var s=i*n;let o;o=new(t<=8?Uint8Array:t<=16?Uint16Array:Uint32Array)(s);var l=a/i,c=r/n;let h,u,d,f=0,g;var p=new Uint16Array(i),m=a;for(h=0;h<i;h++)p[h]=Math.floor(h*l);for(h=0;h<n;h++)for(d=Math.floor(h*c)*m,u=0;u<i;u++)g=d+p[u],o[f++]=e[g];return o}t.PDFImage=class C{constructor(t){var{xref:t,res:a,image:r,isInline:i=!1,smask:e=null,mask:n=null,isMask:s=!1,pdfFunctionFactory:o,localColorSpaceCache:l}=t,c=(this.image=r).dict,h=c.get("F","Filter");let u;switch(u=h instanceof k.Name||Array.isArray(h)&&(h=t.fetchIfRef(h[0]))instanceof k.Name?h.name:u){case"JPXDecode":var d=new A.JpxImage;d.parseImageProperties(r.stream),r.stream.reset(),r.width=d.width,r.height=d.height,r.bitsPerComponent=d.bitsPerComponent,r.numComps=d.componentsCount;break;case"JBIG2Decode":r.bitsPerComponent=1,r.numComps=1}let f=c.get("W","Width"),g=c.get("H","Height");if(Number.isInteger(r.width)&&0<r.width&&Number.isInteger(r.height)&&0<r.height&&(r.width!==f||r.height!==g)&&((0,w.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),f=r.width,g=r.height),f<1||g<1)throw new w.FormatError(`Invalid image width: ${f} or height: `+g);this.width=f,this.height=g,this.interpolate=c.get("I","Interpolate"),this.imageMask=c.get("IM","ImageMask")||!1,this.matte=c.get("Matte")||!1;let p=r.bitsPerComponent;if(!p&&!(p=c.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new w.FormatError("Bits per component missing in image: "+this.imageMask);p=1}if(this.bpc=p,!this.imageMask){let e=c.getRaw("CS")||c.getRaw("ColorSpace");if(!e)switch((0,w.info)("JPX images (which do not require color spaces)"),r.numComps){case 1:e=k.Name.get("DeviceGray");break;case 3:e=k.Name.get("DeviceRGB");break;case 4:e=k.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${r.numComps} color components not supported.`)}this.colorSpace=S.ColorSpace.parse({cs:e,xref:t,resources:i?a:null,pdfFunctionFactory:o,localColorSpaceCache:l}),this.numComps=this.colorSpace.numComps}if(this.decode=c.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,p)||s&&!S.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var m=(1<<p)-1,b=(this.decodeCoefficients=[],this.decodeAddends=[],this.colorSpace&&"Indexed"===this.colorSpace.name);for(let e=0,t=0;e<this.decode.length;e+=2,++t){var y=this.decode[e],v=this.decode[e+1];this.decodeCoefficients[t]=b?(v-y)/m:v-y,this.decodeAddends[t]=b?y:m*y}}e?this.smask=new C({xref:t,res:a,image:e,isInline:i,pdfFunctionFactory:o,localColorSpaceCache:l}):n&&(n instanceof x.BaseStream?n.dict.get("IM","ImageMask")?this.mask=new C({xref:t,res:a,image:n,isInline:i,isMask:!0,pdfFunctionFactory:o,localColorSpaceCache:l}):(0,w.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=n)}static async buildImage(e){var{xref:e,res:t,image:a,isInline:r=!1,pdfFunctionFactory:i,localColorSpaceCache:n}=e,s=a;let o=null,l=null;var c=a.dict.get("SMask"),a=a.dict.get("Mask");return c?c instanceof x.BaseStream?o=c:(0,w.warn)("Unsupported /SMask format."):a&&(a instanceof x.BaseStream||Array.isArray(a)?l=a:(0,w.warn)("Unsupported /Mask format.")),new C({xref:e,res:t,image:s,isInline:r,smask:o,mask:l,pdfFunctionFactory:i,localColorSpaceCache:n})}static createRawMask(e){var{imgArray:e,width:t,height:a,imageIsFromDecodeStream:r,inverseDecode:i,interpolate:n}=e,s=(t+7>>3)*a,o=e.byteLength;let l,c;if(!r||i&&s!==o?i?((l=new Uint8Array(s)).set(e),l.fill(255,o)):l=new Uint8Array(e):l=e,i)for(c=0;c<o;c++)l[c]^=255;return{data:l,width:t,height:a,interpolate:n}}static createMask(e){var t,{imgArray:e,width:a,height:r,imageIsFromDecodeStream:i,inverseDecode:n,interpolate:s,isOffscreenCanvasSupported:o=!0}=e,l=1===a&&1===r&&n===(0===e.length||!!(128&e[0]));return l?{isSingleOpaquePixel:l}:o&&w.FeatureTest.isOffscreenCanvasSupported?(t=(o=(l=new OffscreenCanvas(a,r)).getContext("2d")).createImageData(a,r),(0,c.applyMaskImageData)({src:e,dest:t.data,width:a,height:r,inverseDecode:n}),o.putImageData(t,0,0),{data:null,width:a,height:r,interpolate:s,bitmap:l.transferToImageBitmap()}):this.createRawMask({imgArray:e,width:a,height:r,inverseDecode:n,imageIsFromDecodeStream:i,interpolate:s})}get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}decodeBuffer(a){var r,i,n,s,e=this.bpc,o=this.numComps,l=this.decodeAddends,c=this.decodeCoefficients,h=(1<<e)-1;let u,d;if(1===e)for(u=0,d=a.length;u<d;u++)a[u]=+!a[u];else{let t=0;for(u=0,d=this.width*this.height;u<d;u++)for(let e=0;e<o;e++)a[t]=(r=a[t],i=l[e],n=c[e],s=h,(r=i+r*n)<0?r=0:s<r&&(r=s),r),t++}}getComponents(i){var a=this.bpc;if(8===a)return i;var e=this.width,n=this.height,t=this.numComps,r=e*n*t;let s=0,o;o=new(a<=8?Uint8Array:a<=16?Uint16Array:Uint32Array)(r);var l=e*t,c=(1<<a)-1;let h=0,u,d;if(1===a){let t,a,r;for(let e=0;e<n;e++){for(a=h+(-8&l),r=h+l;h<a;)d=i[s++],o[h]=d>>7&1,o[h+1]=d>>6&1,o[h+2]=d>>5&1,o[h+3]=d>>4&1,o[h+4]=d>>3&1,o[h+5]=d>>2&1,o[h+6]=d>>1&1,o[h+7]=1&d,h+=8;if(h<r)for(d=i[s++],t=128;h<r;)o[h++]=+!!(d&t),t>>=1}}else{let t=0;for(d=0,h=0,u=r;h<u;++h){for(h%l==0&&(d=0,t=0);t<a;)d=d<<8|i[s++],t+=8;var f=t-a;let e=d>>f;e<0?e=0:e>c&&(e=c),o[h]=e,d&=(1<<f)-1,t=f}}return o}fillOpacity(e,t,a,r,i){var n=this.smask,s=this.mask;let o,l,c,h,u,d;if(n)l=n.width,c=n.height,o=new Uint8ClampedArray(l*c),n.fillGrayBuffer(o),l===t&&c===a||(o=b(o,n.bpc,l,c,t,a));else if(s)if(s instanceof C){for(l=s.width,c=s.height,o=new Uint8ClampedArray(l*c),s.numComps=1,s.fillGrayBuffer(o),h=0,u=l*c;h<u;++h)o[h]=255-o[h];l===t&&c===a||(o=b(o,s.bpc,l,c,t,a))}else{if(!Array.isArray(s))throw new w.FormatError("Unknown mask format.");o=new Uint8ClampedArray(t*a);var f=this.numComps;for(h=0,u=t*a;h<u;++h){let e=0;var g=h*f;for(d=0;d<f;++d){var p=i[g+d],m=2*d;if(p<s[m]||p>s[1+m]){e=255;break}}o[h]=e}}if(o)for(h=0,d=3,u=t*r;h<u;++h,d+=4)e[d]=o[h];else for(h=0,d=3,u=t*r;h<u;++h,d+=4)e[d]=255}undoPreblend(t,e,a){if(r=this.smask&&this.smask.matte){var r,i=(r=this.colorSpace.getRgb(r,0))[0],n=r[1],s=r[2],o=e*a*4;for(let e=0;e<o;e+=4){var l=t[e+3];0===l?(t[e]=255,t[e+1]=255,t[e+2]=255):(l=255/l,t[e]=(t[e]-i)*l+i,t[e+1]=(t[e+1]-n)*l+n,t[e+2]=(t[e+2]-s)*l+s)}}}createImageData(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.drawWidth,a=this.drawHeight,r={width:t,height:a,interpolate:this.interpolate,kind:0,data:null},i=this.numComps,n=this.width,s=this.height,o=this.bpc,i=n*i*o+7>>3;if(!e){let e;if("DeviceGray"===this.colorSpace.name&&1===o?e=w.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==o||this.needsDecode||(e=w.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&t===n&&a===s){if(r.kind=e,r.data=this.getImageBytes(s*i,{}),this.needsDecode){(0,w.assert)(e===w.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");var l=r.data;for(let e=0,t=l.length;e<t;e++)l[e]^=255}return r}if(this.image instanceof d.JpegStream&&!this.smask&&!this.mask){let e=s*i;switch(this.colorSpace.name){case"DeviceGray":e*=3;case"DeviceRGB":case"DeviceCMYK":return r.kind=w.ImageKind.RGB_24BPP,r.data=this.getImageBytes(e,{drawWidth:t,drawHeight:a,forceRGB:!0}),r}}}var i=0|(c=this.getImageBytes(s*i,{internal:!0})).length/i*a/s,c=this.getComponents(c);let h,u;return e||this.smask||this.mask?(r.kind=w.ImageKind.RGBA_32BPP,r.data=new Uint8ClampedArray(t*a*4),h=1,u=!0,this.fillOpacity(r.data,t,a,i,c)):(r.kind=w.ImageKind.RGB_24BPP,r.data=new Uint8ClampedArray(t*a*3),h=0,u=!1),this.needsDecode&&this.decodeBuffer(c),this.colorSpace.fillRgb(r.data,n,s,t,a,i,o,c,h),u&&this.undoPreblend(r.data,t,i),r}fillGrayBuffer(e){if(1!==(i=this.numComps))throw new w.FormatError("Reading gray scale from a color image: "+i);var t=this.width,a=this.height,r=this.bpc,i=this.getImageBytes(a*(t*i*r+7>>3),{internal:!0}),n=this.getComponents(i);let s,o;if(1===r)if(o=t*a,this.needsDecode)for(s=0;s<o;++s)e[s]=n[s]-1&255;else for(s=0;s<o;++s)e[s]=255&-n[s];else{this.needsDecode&&this.decodeBuffer(n),o=t*a;var l=255/((1<<r)-1);for(s=0;s<o;++s)e[s]=l*n[s]}}getImageBytes(e,t){var{drawWidth:t,drawHeight:a,forceRGB:r=!1,internal:i=!1}=t,t=(this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=a||this.height,this.image.forceRGB=!!r,this.image.getBytes(e));return i||this.image instanceof n.DecodeStream?t:((0,w.assert)(t instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(t))}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function(e){let{src:t,srcPos:a=0,dest:r,destPos:i=0,width:n,height:s,inverseDecode:o=!1}=e;var e=m.FeatureTest.isLittleEndian?4278190080:255,[l,c]=o?[0,e]:[e,0],h=n>>3,u=7&n,d=t.length;r=new Uint32Array(r.buffer);for(let e=0;e<s;e++){for(var f=a+h;a<f;a++){var g=a<d?t[a]:255;r[i++]=128&g?c:l,r[i++]=64&g?c:l,r[i++]=32&g?c:l,r[i++]=16&g?c:l,r[i++]=8&g?c:l,r[i++]=4&g?c:l,r[i++]=2&g?c:l,r[i++]=1&g?c:l}if(0!=u){var p=a<d?t[a++]:255;for(let e=0;e<u;e++)r[i++]=p&1<<7-e?c:l}}return{srcPos:a,destPos:i}};var m=a(2)},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=function(e){let{originalData:t,xrefInfo:a,newRefs:r,xref:i=null,hasXfa:n=!1,xfaDatasetsRef:s=null,hasXfaDatasetsEntry:o=!1,acroFormRef:l=null,acroForm:c=null,xfaData:h=null}=e;n&&!function(t){let{xfaData:e,xfaDatasetsRef:a,hasXfaDatasetsEntry:r,acroFormRef:i,acroForm:n,newRefs:s,xref:o}=t;if(null!==o){if(!r){if(!i)return(0,F.warn)("XFA - Cannot save it");var t=n.get("XFA"),l=t.slice();l.splice(2,0,"datasets"),l.splice(3,0,a),n.set("XFA",l);const c=o.encrypt;let e=null;c&&(e=c.createCipherTransform(i.num,i.gen));l=[`${i.num} ${i.gen} obj\n`];E(n,l,e),l.push("\n"),n.set("XFA",t),s.push({ref:i,data:l.join("")})}null===e&&(t=o.fetchIfRef(a),e=function(e,t){var a=new M.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(var{xfa:r}of t){var i,n;r&&({path:r,value:i}=r,r)&&((n=a.documentElement.searchNode((0,T.parseXFAPath)(r),0))?Array.isArray(i)?n.childNodes=i.map(e=>new M.SimpleDOMNode("value",e)):n.childNodes=[new M.SimpleDOMNode("#text",i)]:(0,F.warn)("Node not found for path: "+r))}e=[];return a.documentElement.dump(e),e.join("")}(t.getString(),s));const c=o.encrypt;c&&(l=c.createCipherTransform(a.num,a.gen),e=l.encryptString(e));t=`${a.num} ${a.gen} obj\n`+`<< /Type /EmbeddedFile /Length ${e.length}>>
stream
`+e+"\nendstream\nendobj\n";s.push({ref:a,data:t})}}({xfaData:h,xfaDatasetsRef:s,hasXfaDatasetsEntry:o,acroFormRef:l,acroForm:c,newRefs:r,xref:i,xrefInfo:a});var e=new I.Dict(null),u=a.newRef;let d,f;var g=t.at(-1);f=10===g||13===g?(d=[],t.length):(d=["\n"],t.length+1);e.set("Size",u.num+1),e.set("Prev",a.startXRef),e.set("Type",I.Name.get("XRef")),null!==a.rootRef&&e.set("Root",a.rootRef);null!==a.infoRef&&e.set("Info",a.infoRef);null!==a.encryptRef&&e.set("Encrypt",a.encryptRef);r.push({ref:u,data:""}),r=r.sort((e,t)=>e.ref.num-t.ref.num);var p=[[0,1,65535]],m=[0,1];let b=0;for(var{ref:y,data:v}of r)b=Math.max(b,f),p.push([1,f,Math.min(y.gen,65535)]),f+=v.length,m.push(y.num,1),d.push(v);e.set("Index",m),Array.isArray(a.fileIds)&&0<a.fileIds.length&&(g=function(e,t){var a=Math.floor(Date.now()/1e3),r=t.filename||"",i=[a.toString(),r,e.toString()];let n=i.reduce((e,t)=>e+t.length,0);for(const l of Object.values(t.info))i.push(l),n+=l.length;var s=new Uint8Array(n);let o=0;for(const c of i)D(c,o,s),o+=c.length;return(0,F.bytesToString)((0,P.calculateMD5)(s))}(f,a),e.set("ID",[a.fileIds[0],g]));var g=Math.ceil(Math.log2(b)/8),w=[1,g,2],g=w[0]+w[1]+w[2],g=g*p.length,u=(e.set("W",w),e.set("Length",g),d.push(`${u.num} ${u.gen} obj\n`),E(e,d,null),d.push(" stream\n"),d.reduce((e,t)=>e+t.length,0)),e=`
endstream
endobj
startxref
${f}
%%EOF
`,x=new Uint8Array(t.length+u+g+e.length);x.set(t);let S=t.length;for(const O of d)D(O,S,x),S+=O.length;for(var[A,k,C]of p)S=N(A,w[0],S,x),S=N(k,w[1],S,x),S=N(C,w[2],S,x);return D(e,S,x),x},t.writeDict=E,t.writeObject=function(e,t,a,r){a.push(`${e.num} ${e.gen} obj\n`),t instanceof I.Dict?E(t,a,r):t instanceof l.BaseStream&&c(t,a,r);a.push("\nendobj\n")};var F=a(2),I=a(134),T=a(135),M=a(195),l=a(136),P=a(196);function E(e,t,a){t.push("<<");for(const r of e.getKeys())t.push(` /${(0,T.escapePDFName)(r)} `),h(e.getRaw(r),t,a);t.push(">>")}function c(e,t,a){E(e.dict,t,a),t.push(" stream\n");let r=e.getString();null!==a&&(r=a.encryptString(r)),t.push(r,"\nendstream\n")}function h(t,a,r){if(t instanceof I.Name)a.push("/"+(0,T.escapePDFName)(t.name));else if(t instanceof I.Ref)a.push(`${t.num} ${t.gen} R`);else if(Array.isArray(t)){var i=t;var n=a;var s=r;n.push("[");let e=!0;for(const o of i)e?e=!1:n.push(" "),h(o,n,s);n.push("]")}else"string"==typeof t?(null!==r&&(t=r.encryptString(t)),a.push(`(${(0,F.escapeString)(t)})`)):"number"==typeof t?a.push((0,T.numberToString)(t)):"boolean"==typeof t?a.push(t.toString()):t instanceof I.Dict?E(t,a,r):t instanceof l.BaseStream?c(t,a,r):null===t?a.push("null"):(0,F.warn)(`Unhandled value in writer: ${typeof t}, please file a bug.`)}function N(t,a,r,i){for(let e=a+r-1;e>r-1;e--)i[e]=255&t,t>>=8;return r+a}function D(a,r,i){for(let e=0,t=a.length;e<t;e++)i[r+e]=255&a.charCodeAt(e)}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var r=a(135);const s={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function o(e,t){e=e[t];return" "===e||"\n"===e||"\r"===e||"\t"===e}t.XMLParserErrorCode=s;class i{_resolveEntities(e){return e.replace(/&([^;]+);/g,(e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(t)})}_parseContent(a,e){var r=[];let i=e;function n(){for(;i<a.length&&o(a,i);)++i}for(;i<a.length&&!o(a,i)&&">"!==a[i]&&"/"!==a[i];)++i;var t=a.substring(e,i);for(n();i<a.length&&">"!==a[i]&&"/"!==a[i]&&"?"!==a[i];){n();let e="",t;for(;i<a.length&&!o(a,i)&&"="!==a[i];)e+=a[i],++i;if(n(),"="!==a[i])return null;++i,n();var s=a[i];if('"'!==s&&"'"!==s)return null;s=a.indexOf(s,++i);if(s<0)return null;t=a.substring(i,s),r.push({name:e,value:this._resolveEntities(t)}),i=s+1,n()}return{name:t,attributes:r,parsed:i-e}}_parseProcessingInstruction(e,t){let a=t;for(;a<e.length&&!o(e,a)&&">"!==e[a]&&"?"!==e[a]&&"/"!==e[a];)++a;for(var r=e.substring(t,a);a<e.length&&o(e,a);)++a;for(var i=a;a<e.length&&("?"!==e[a]||">"!==e[a+1]);)++a;return{name:r,value:e.substring(i,a),parsed:a-t}}parseXml(r){let e=0;for(;e<r.length;){var t=r[e];let a=e;if("<"===t){let t;switch(r[++a]){case"/":if(++a,(t=r.indexOf(">",a))<0)return void this.onError(s.UnterminatedElement);this.onEndElement(r.substring(a,t)),a=t+1;break;case"?":++a;var i=this._parseProcessingInstruction(r,a);if("?>"!==r.substring(a+i.parsed,a+i.parsed+2))return void this.onError(s.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),a+=i.parsed+2;break;case"!":if("--"===r.substring(a+1,a+3)){if((t=r.indexOf("--\x3e",a+3))<0)return void this.onError(s.UnterminatedComment);this.onComment(r.substring(a+3,t)),a=t+3}else if("[CDATA["===r.substring(a+1,a+8)){if((t=r.indexOf("]]>",a+8))<0)return void this.onError(s.UnterminatedCdat);this.onCdata(r.substring(a+8,t)),a=t+3}else{if("DOCTYPE"!==r.substring(a+1,a+8))return void this.onError(s.MalformedElement);{i=r.indexOf("[",a+8);let e=!1;if((t=r.indexOf(">",a+8))<0)return void this.onError(s.UnterminatedDoctypeDeclaration);if(0<i&&t>i){if((t=r.indexOf("]>",a+8))<0)return void this.onError(s.UnterminatedDoctypeDeclaration);e=!0}var n=r.substring(a+8,t+(e?1:0));this.onDoctype(n),a=t+(e?2:1)}}break;default:n=this._parseContent(r,a);if(null===n)return void this.onError(s.MalformedElement);let e=!1;if("/>"===r.substring(a+n.parsed,a+n.parsed+2))e=!0;else if(">"!==r.substring(a+n.parsed,a+n.parsed+1))return void this.onError(s.UnterminatedElement);this.onBeginElement(n.name,n.attributes,e),a+=n.parsed+(e?2:1)}}else{for(;a<r.length&&"<"!==r[a];)a++;t=r.substring(e,a);this.onText(this._resolveEntities(t))}e=a}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,a){}onEndElement(e){}onError(e){}}t.XMLParserBase=i;class n{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}get textContent(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes&&0<this.childNodes.length}searchNode(t,a){if(a>=t.length)return this;var r=t[a],i=[];let n=this;for(;;){if(r.name===n.nodeName){if(0!==r.pos){if(0===i.length)return null;{var[s]=i.pop();let e=0;for(const l of s.childNodes)if(r.name===l.nodeName){if(e===r.pos)return l.searchNode(t,a+1);e++}return n.searchNode(t,a+1)}}s=n.searchNode(t,a+1);if(null!==s)return s}if(n.childNodes&&0!==n.childNodes.length)i.push([n,0]),n=n.childNodes[0];else{if(0===i.length)return null;for(;0!==i.length;){var[e,o]=i.pop(),o=o+1;if(o<e.childNodes.length){i.push([e,o]),n=e.childNodes[o];break}}if(0===i.length)return null}}}dump(e){if("#text"===this.nodeName)e.push((0,r.encodeToXmlString)(this.nodeValue));else{if(e.push("<"+this.nodeName),this.attributes)for(const t of this.attributes)e.push(` ${t.name}="${(0,r.encodeToXmlString)(t.value)}"`);if(this.hasChildNodes()){e.push(">");for(const a of this.childNodes)a.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${(0,r.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):e.push("/>")}}}t.SimpleDOMNode=n;t.SimpleXMLParser=class extends i{constructor(e){var{hasAttributes:e=!1,lowerCaseName:t=!1}=e;super(),this._currentFragment=null,this._stack=null,this._errorCode=s.NoError,this._hasAttributes=e,this._lowerCaseName=t}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=s.NoError,this.parseXml(e),this._errorCode===s.NoError){var[e]=this._currentFragment;if(e)return{documentElement:e}}}onText(e){!function(a){for(let e=0,t=a.length;e<t;e++)if(!o(a,e))return;return 1}(e)&&(e=new n("#text",e),this._currentFragment.push(e))}onCdata(e){e=new n("#text",e);this._currentFragment.push(e)}onBeginElement(e,t,a){this._lowerCaseName&&(e=e.toLowerCase());e=new n(e);e.childNodes=[],this._hasAttributes&&(e.attributes=t),this._currentFragment.push(e),a||(this._stack.push(this._currentFragment),this._currentFragment=e.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment.at(-1);if(!t)return null;for(const a of t.childNodes)a.parentNode=t;return t}onError(e){this._errorCode=e}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=d,t.calculateSHA512=void 0;var S=a(2),A=a(134),r=a(197);class k{constructor(a){this.a=0,this.b=0;var r=new Uint8Array(256),i=a.length;for(let e=0;e<256;++e)r[e]=e;for(let e=0,t=0;e<256;++e){var n=r[e];t=t+n+a[e%i]&255,r[e]=r[t],r[t]=n}this.s=r}encryptBlock(t){let a=this.a,r=this.b;var i=this.s,n=t.length,s=new Uint8Array(n);for(let e=0;e<n;++e){var o=i[a=a+1&255],l=i[r=r+o&255];i[a]=l,i[r]=o,s[e]=t[e]^i[o+l&255]}return this.a=a,this.b=r,s}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}t.ARCFourCipher=k;const C=function(){const b=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]),y=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]);return function(e,t,a){let s=1732584193,o=-271733879,l=-1732584194,c=271733878;var r=a+72&-64,h=new Uint8Array(r);let u,d;for(u=0;u<a;++u)h[u]=e[t++];h[u++]=128;for(var i=r-8;u<i;)h[u++]=0;h[u++]=a<<3&255,h[u++]=a>>5&255,h[u++]=a>>13&255,h[u++]=a>>21&255,h[u++]=a>>>29&255,h[u++]=0,h[u++]=0,h[u++]=0;var f=new Int32Array(16);for(u=0;u<r;){for(d=0;d<16;++d,u+=4)f[d]=h[u]|h[u+1]<<8|h[u+2]<<16|h[u+3]<<24;let e=s,t=o,a=l,r=c,i,n;for(d=0;d<64;++d){n=d<16?(i=t&a|~t&r,d):d<32?(i=r&t|~r&a,5*d+1&15):d<48?(i=t^a^r,3*d+5&15):(i=a^(t|~r),7*d&15);var g=r,p=e+i+y[d]+f[n]|0,m=b[d];r=a,t=(a=t)+(p<<m|p>>>32-m)|0,e=g}s=s+e|0,o=o+t|0,l=l+a|0,c=c+r|0}return new Uint8Array([255&s,s>>8&255,s>>16&255,s>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}}();t.calculateMD5=C;class U{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){32<=e?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){32<=e?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,a;32&e?(a=this.low,t=this.high):(t=this.low,a=this.high),e&=31,this.low=t>>>e|a<<32-e,this.high=a>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){var t=(this.low>>>0)+(e.low>>>0);let a=(this.high>>>0)+(e.high>>>0);4294967295<t&&(a+=1),this.low=0|t,this.high=0|a}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const h=function(){function O(e,t){return e>>>t|e<<32-t}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];return function(e,t,a){let h=1779033703,u=3144134277,d=1013904242,f=2773480762,g=1359893119,p=2600822924,m=528734635,b=1541459225;var r=64*Math.ceil((a+9)/64),y=new Uint8Array(r);let v,w;for(v=0;v<a;++v)y[v]=e[t++];y[v++]=128;for(var i=r-8;v<i;)y[v++]=0;y[v++]=0,y[v++]=0,y[v++]=0,y[v++]=a>>>29&255,y[v++]=a>>21&255,y[v++]=a>>13&255,y[v++]=a>>5&255,y[v++]=a<<3&255;var x,S,A,k,C=new Uint32Array(64);for(v=0;v<r;){for(w=0;w<16;++w)C[w]=y[v]<<24|y[v+1]<<16|y[v+2]<<8|y[v+3],v+=4;for(w=16;w<64;++w)C[w]=0|(O(k=C[w-2],17)^O(k,19)^k>>>10)+C[w-7]+(O(k=C[w-15],7)^O(k,18)^k>>>3)+C[w-16];let e=h,t=u,a=d,r=f,i=g,n=p,s=m,o=b,l,c;for(w=0;w<64;++w)l=o+(O(A=i,6)^O(A,11)^O(A,25))+(A=i,x=n,S=s,A&x^~A&S)+F[w]+C[w],c=(O(x=e,2)^O(x,13)^O(x,22))+(A=e,S=t,x=a,A&S^A&x^S&x),o=s,s=n,n=i,i=r+l|0,r=a,a=t,t=e,e=l+c|0;h=h+e|0,u=u+t|0,d=d+a|0,f=f+r|0,g=g+i|0,p=p+n|0,m=m+s|0,b=b+o|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,g>>24&255,g>>16&255,g>>8&255,255&g,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b])}}(),u=(t.calculateSHA256=h,function(){const $=[new U(1116352408,3609767458),new U(1899447441,602891725),new U(3049323471,3964484399),new U(3921009573,2173295548),new U(961987163,4081628472),new U(1508970993,3053834265),new U(2453635748,2937671579),new U(2870763221,3664609560),new U(3624381080,2734883394),new U(310598401,1164996542),new U(607225278,1323610764),new U(1426881987,3590304994),new U(1925078388,4068182383),new U(2162078206,991336113),new U(2614888103,633803317),new U(3248222580,3479774868),new U(3835390401,2666613458),new U(4022224774,944711139),new U(264347078,2341262773),new U(604807628,2007800933),new U(770255983,1495990901),new U(1249150122,1856431235),new U(1555081692,3175218132),new U(1996064986,2198950837),new U(2554220882,3999719339),new U(2821834349,766784016),new U(2952996808,2566594879),new U(3210313671,3203337956),new U(3336571891,1034457026),new U(3584528711,2466948901),new U(113926993,3758326383),new U(338241895,168717936),new U(666307205,1188179964),new U(773529912,1546045734),new U(1294757372,1522805485),new U(1396182291,2643833823),new U(1695183700,2343527390),new U(1986661051,1014477480),new U(2177026350,1206759142),new U(2456956037,344077627),new U(2730485921,1290863460),new U(2820302411,3158454273),new U(3259730800,3505952657),new U(3345764771,106217008),new U(3516065817,3606008344),new U(3600352804,1432725776),new U(4094571909,1467031594),new U(275423344,851169720),new U(430227734,3100823752),new U(506948616,1363258195),new U(659060556,3750685593),new U(883997877,3785050280),new U(958139571,3318307427),new U(1322822218,3812723403),new U(1537002063,2003034995),new U(1747873779,3602036899),new U(1955562222,1575990012),new U(2024104815,1125592928),new U(2227730452,2716904306),new U(2361852424,442776044),new U(2428436474,593698344),new U(2756734187,3733110249),new U(3204031479,2999351573),new U(3329325298,3815920427),new U(3391569614,3928383900),new U(3515267271,566280711),new U(3940187606,3454069534),new U(4118630271,4000239992),new U(116418474,1914138554),new U(174292421,2731055270),new U(289380356,3203993006),new U(460393269,320620315),new U(685471733,587496836),new U(852142971,1086792851),new U(1017036298,365543100),new U(1126000580,2618297676),new U(1288033470,3409855158),new U(1501505948,4234509866),new U(1607167915,987167468),new U(1816402316,1246189591)];return function(B,R,e){var L=3<arguments.length&&void 0!==arguments[3]&&arguments[3];let t,a,r,i,n,s,o,l;l=L?(t=new U(3418070365,3238371032),a=new U(1654270250,914150663),r=new U(2438529370,812702999),i=new U(355462360,4144912697),n=new U(1731405415,4290775857),s=new U(2394180231,1750603025),o=new U(3675008525,1694076839),new U(1203062813,3204075428)):(t=new U(1779033703,4089235720),a=new U(3144134277,2227873595),r=new U(1013904242,4271175723),i=new U(2773480762,1595750129),n=new U(1359893119,2917565137),s=new U(2600822924,725511199),o=new U(528734635,4215389547),new U(1541459225,327033209));var c=128*Math.ceil((e+17)/128),h=new Uint8Array(c);let u,d;for(u=0;u<e;++u)h[u]=B[R++];h[u++]=128;for(var j=c-16;u<j;)h[u++]=0;h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=e>>>29&255,h[u++]=e>>21&255,h[u++]=e>>13&255,h[u++]=e>>5&255,h[u++]=e<<3&255;var f=new Array(80);for(u=0;u<80;u++)f[u]=new U(0,0);let g=new U(0,0),p=new U(0,0),m=new U(0,0),b=new U(0,0),y=new U(0,0),v=new U(0,0),w=new U(0,0),x=new U(0,0);var S,A,k,C,O,F,I,T,M=new U(0,0),_=new U(0,0),P=new U(0,0),E=new U(0,0);let N;for(u=0;u<c;){for(d=0;d<16;++d)f[d].high=h[u]<<24|h[u+1]<<16|h[u+2]<<8|h[u+3],f[d].low=h[u+4]<<24|h[u+5]<<16|h[u+6]<<8|h[u+7],u+=8;for(d=16;d<80;++d)N=f[d],F=N,I=f[d-2],T=E,F.assign(I),F.rotateRight(19),T.assign(I),T.rotateRight(61),F.xor(T),T.assign(I),T.shiftRight(6),F.xor(T),N.add(f[d-7]),I=P,F=f[d-15],T=E,I.assign(F),I.rotateRight(1),T.assign(F),T.rotateRight(8),I.xor(T),T.assign(F),T.shiftRight(7),I.xor(T),N.add(P),N.add(f[d-16]);for(g.assign(t),p.assign(a),m.assign(r),b.assign(i),y.assign(n),v.assign(s),w.assign(o),x.assign(l),d=0;d<80;++d)M.assign(x),k=P,C=y,O=E,k.assign(C),k.rotateRight(14),O.assign(C),O.rotateRight(18),k.xor(O),O.assign(C),O.rotateRight(41),k.xor(O),M.add(P),C=P,k=y,O=v,S=w,A=E,C.assign(k),C.and(O),A.assign(k),A.not(),A.and(S),C.xor(A),M.add(P),M.add($[d]),M.add(f[d]),O=_,k=g,S=E,O.assign(k),O.rotateRight(28),S.assign(k),S.rotateRight(34),O.xor(S),S.assign(k),S.rotateRight(39),O.xor(S),C=P,A=g,k=p,O=m,S=E,C.assign(A),C.and(k),S.assign(A),S.and(O),C.xor(S),S.assign(k),S.and(O),C.xor(S),_.add(P),N=x,x=w,w=v,v=y,b.add(M),y=b,b=m,m=p,p=g,N.assign(M),N.add(_),g=N;t.add(g),a.add(p),r.add(m),i.add(b),n.add(y),s.add(v),o.add(w),l.add(x)}let D;return L?(D=new Uint8Array(48),t.copyTo(D,0),a.copyTo(D,8),r.copyTo(D,16),i.copyTo(D,24),n.copyTo(D,32),s.copyTo(D,40)):(D=new Uint8Array(64),t.copyTo(D,0),a.copyTo(D,8),r.copyTo(D,16),i.copyTo(D,24),n.copyTo(D,32),s.copyTo(D,40),o.copyTo(D,48),l.copyTo(D,56)),D}}());function d(e,t,a){return u(e,t,a,!0)}t.calculateSHA512=u;class o{decryptBlock(e){return e}encrypt(e){return e}}class n{constructor(){this.constructor===n&&(0,S.unreachable)("Cannot initialize AESBaseCipher."),this._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);for(let e=0;e<256;e++)e<128?this._mixCol[e]=e<<1:this._mixCol[e]=e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,S.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,r){let t,i,n;var s=new Uint8Array(16);s.set(e);for(let e=0,t=this._keySize;e<16;++e,++t)s[e]^=r[t];for(let a=this._cyclesOfRepetition-1;1<=a;--a){t=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=t,t=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=t,s[2]=i,t=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=t,s[7]=i,s[3]=n;for(let e=0;e<16;++e)s[e]=this._inv_s[s[e]];for(let e=0,t=16*a;e<16;++e,++t)s[e]^=r[t];for(let e=0;e<16;e+=4){var o=this._mix[s[e]],l=this._mix[s[e+1]],c=this._mix[s[e+2]],h=this._mix[s[e+3]];t=o^l>>>8^l<<24^c>>>16^c<<16^h>>>24^h<<8,s[e]=t>>>24&255,s[e+1]=t>>16&255,s[e+2]=t>>8&255,s[e+3]=255&t}}t=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=t,t=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=t,s[2]=i,t=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=t,s[7]=i,s[3]=n;for(let e=0;e<16;++e)s[e]=this._inv_s[s[e]],s[e]^=r[e];return s}_encrypt(e,r){var t=this._s;let i,n,s;var o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=r[e];for(let a=1;a<this._cyclesOfRepetition;a++){for(let e=0;e<16;++e)o[e]=t[o[e]];s=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=s,s=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=s,o[14]=n,s=o[3],n=o[7],i=o[11],o[3]=o[15],o[7]=s,o[11]=n,o[15]=i;for(let e=0;e<16;e+=4){var l=o[e+0],c=o[e+1],h=o[e+2],u=o[e+3];i=l^c^h^u,o[e+0]^=i^this._mixCol[l^c],o[e+1]^=i^this._mixCol[c^h],o[e+2]^=i^this._mixCol[h^u],o[e+3]^=i^this._mixCol[u^l]}for(let e=0,t=16*a;e<16;++e,++t)o[e]^=r[t]}for(let e=0;e<16;++e)o[e]=t[o[e]];s=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=s,s=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=s,o[14]=n,s=o[3],n=o[7],i=o[11],o[3]=o[15],o[7]=s,o[11]=n,o[15]=i;for(let e=0,t=this._keySize;e<16;++e,++t)o[e]^=r[t];return o}_decryptBlock2(t,e){var a=t.length;let r=this.buffer,i=this.bufferPosition;var n=[];let s=this.iv;for(let e=0;e<a;++e)if(r[i]=t[e],!(++i<16)){var o=this._decrypt(r,this._key);for(let e=0;e<16;++e)o[e]^=s[e];s=r,n.push(o),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=s,0===n.length)return new Uint8Array(0);let l=16*n.length;if(e){var c=n.at(-1);let a=c[15];if(a<=16){for(let e=15,t=16-a;e>=t;--e)if(c[e]!==a){a=0;break}l-=a,n[n.length-1]=c.subarray(0,16-a)}}var h=new Uint8Array(l);for(let e=0,t=0,a=n.length;e<a;++e,t+=16)h.set(n[e],t);return h}decryptBlock(t,e){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=t.length,i=this.buffer;let n=this.bufferPosition;if(a)this.iv=a;else{for(let e=0;n<16&&e<r;++e,++n)i[n]=t[e];if(n<16)return this.bufferLength=n,new Uint8Array(0);this.iv=i,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,e)}encrypt(t,a){var r=t.length;let i=this.buffer,n=this.bufferPosition;var s=[];a=a||new Uint8Array(16);for(let e=0;e<r;++e)if(i[n]=t[e],!(++n<16)){for(let e=0;e<16;++e)i[e]^=a[e];var o=this._encrypt(i,this._key);s.push(a=o),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=a,0===s.length)return new Uint8Array(0);var l=new Uint8Array(16*s.length);for(let e=0,t=0,a=s.length;e<a;++e,t+=16)l.set(s[e],t);return l}}class f extends n{constructor(e){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(e)}_expandKey(e){var s=this._s,o=this._rcon,l=new Uint8Array(176);l.set(e);for(let n=16,e=1;n<176;++e){let t=l[n-3],a=l[n-2],r=l[n-1],i=l[n-4];t=s[t],a=s[a],r=s[r],i=s[i],t^=o[e];for(let e=0;e<4;++e)l[n]=t^=l[n-16],l[++n]=a^=l[n-16],l[++n]=r^=l[n-16],l[++n]=i^=l[n-16],n++}return l}}t.AES128Cipher=f;class l extends n{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){var a=this._s,r=new Uint8Array(240);r.set(e);let i=1,n,s,o,l;for(let t=32,e=1;t<240;++e){t%32==16?(n=a[n],s=a[s],o=a[o],l=a[l]):t%32==0&&(n=r[t-3],s=r[t-2],o=r[t-1],l=r[t-4],n=a[n],s=a[s],o=a[o],l=a[l],n^=i,256<=(i<<=1))&&(i=255&(27^i));for(let e=0;e<4;++e)r[t]=n^=r[t-32],r[++t]=s^=r[t-32],r[++t]=o^=r[t-32],r[++t]=l^=r[t-32],t++}return r}}t.AES256Cipher=l;class O{checkOwnerPassword(e,t,a,r){var i=new Uint8Array(e.length+56),a=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),h(i,0,i.length));return(0,S.isArrayEqual)(a,r)}checkUserPassword(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),h(r,0,r.length));return(0,S.isArrayEqual)(t,a)}getOwnerKey(e,t,a,r){var i=new Uint8Array(e.length+56),a=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),h(i,0,i.length));return new l(a).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),h(r,0,r.length));return new l(t).decryptBlock(a,!1,new Uint8Array(16))}}t.PDF17=O;const F=class{hash(e,t,a){return s(e,t,a)}checkOwnerPassword(e,t,a,r){var i=new Uint8Array(e.length+56),t=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),s(e,i,a));return(0,S.isArrayEqual)(t,r)}checkUserPassword(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),s(e,r,[]));return(0,S.isArrayEqual)(t,a)}getOwnerKey(e,t,a,r){var i=new Uint8Array(e.length+56),t=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),s(e,i,a));return new l(t).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),s(e,r,[]));return new l(t).decryptBlock(a,!1,new Uint8Array(16))}};function s(e,t,a){let r=h(t,0,t.length).subarray(0,32),i=[0],n=0;for(;n<64||i.at(-1)>n-32;){var s=e.length+r.length+a.length,o=new Uint8Array(s),l=0,c=(o.set(e,0),l+=e.length,o.set(r,l),l+=r.length,o.set(a,l),new Uint8Array(64*s));for(let e=0,t=0;e<64;e++,t+=s)c.set(o,t);l=new f(r.subarray(0,16)),l=(i=l.encrypt(c,r.subarray(16,32))).slice(0,16).reduce((e,t)=>e+t,0)%3;0==l?r=h(i,0,i.length):1==l?r=d(i,0,i.length):2==l&&(r=u(i,0,i.length)),n++}return r.subarray(0,32)}t.PDF20=F;class c{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const a=new this.StreamCipherConstructor;return new r.DecryptStream(e,t,function(e,t){return a.decryptBlock(e,t)})}decryptString(e){var t=new this.StringCipherConstructor,e=(0,S.stringToBytes)(e),e=t.decryptBlock(e,!0);return(0,S.bytesToString)(e)}encryptString(e){var t=new this.StringCipherConstructor;if(t instanceof n){var a=16-e.length%16,r=(e+=String.fromCharCode(a).repeat(a),new Uint8Array(16));if("undefined"!=typeof crypto)crypto.getRandomValues(r);else for(let e=0;e<16;e++)r[e]=Math.floor(256*Math.random());var a=(0,S.stringToBytes)(e),a=t.encrypt(a,r),i=new Uint8Array(16+a.length);return i.set(r),i.set(a,16),(0,S.bytesToString)(i)}a=(0,S.stringToBytes)(e),a=t.encrypt(a);return(0,S.bytesToString)(a)}}a=function(){const v=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]);function w(e,t,a,r,i,n,s,o){var l=40+a.length+e.length,c=new Uint8Array(l);let h=0,u,d;if(t)for(d=Math.min(32,t.length);h<d;++h)c[h]=t[h];for(u=0;h<32;)c[h++]=v[u++];for(u=0,d=a.length;u<d;++u)c[h++]=a[u];for(c[h++]=255&i,c[h++]=i>>8&255,c[h++]=i>>16&255,c[h++]=i>>>24&255,u=0,d=e.length;u<d;++u)c[h++]=e[u];4<=n&&!o&&(c[h++]=255,c[h++]=255,c[h++]=255,c[h++]=255);let f=C(c,0,h);var g=s>>3;if(3<=n)for(u=0;u<50;++u)f=C(f,0,g);var p=f.subarray(0,g);let m,b;if(3<=n){for(h=0;h<32;++h)c[h]=v[h];for(u=0,d=e.length;u<d;++u)c[h++]=e[u];m=new k(p),b=m.encryptBlock(C(c,0,h)),d=p.length;var y=new Uint8Array(d);for(u=1;u<=19;++u){for(let e=0;e<d;++e)y[e]=p[e]^u;m=new k(y),b=m.encryptBlock(b)}for(u=0,d=b.length;u<d;++u)if(r[u]!==b[u])return null}else for(m=new k(p),b=m.encryptBlock(v),u=0,d=b.length;u<d;++u)if(r[u]!==b[u])return null;return p}const x=A.Name.get("Identity");function s(e,t,a,r){var r=3<arguments.length&&void 0!==r&&r,i=new Uint8Array(a.length+9),n=a.length;let s;for(s=0;s<n;++s)i[s]=a[s];return i[s++]=255&e,i[s++]=e>>8&255,i[s++]=e>>16&255,i[s++]=255&t,i[s++]=t>>8&255,r&&(i[s++]=115,i[s++]=65,i[s++]=108,i[s++]=84),C(i,0,s).subarray(0,Math.min(a.length+5,16))}function i(e,t,a,r,i){if(!(t instanceof A.Name))throw new S.FormatError("Invalid crypt filter name.");e=e.get(t.name);let n;if(!(n=null!=e?e.get("CFM"):n)||"None"===n.name)return function(){return new o};if("V2"===n.name)return function(){return new k(s(a,r,i,!1))};if("AESV2"===n.name)return function(){return new f(s(a,r,i,!0))};if("AESV3"===n.name)return function(){return new l(i)};throw new S.FormatError("Unknown crypto method")}return class{constructor(e,t,a){var r=e.get("Filter");if(!(0,A.isName)(r,"Standard"))throw new S.FormatError("unknown encryption method");this.filterName=r.name;r=(this.dict=e).get("V");if(!Number.isInteger(r)||1!==r&&2!==r&&4!==r&&5!==r)throw new S.FormatError("unsupported encryption algorithm");this.algorithm=r;let i=e.get("Length");if(i||(r<=3?i=40:(f=e.get("CF"),d=e.get("StmF"),f instanceof A.Dict&&d instanceof A.Name&&(f.suppressEncryption=!0,f=f.get(d.name),(i=f&&f.get("Length")||128)<40)&&(i<<=3))),!Number.isInteger(i)||i<40||i%8!=0)throw new S.FormatError("invalid key length");var n,s,o,l,c,h,u,d=(0,S.stringToBytes)(e.get("O")).subarray(0,32),f=(0,S.stringToBytes)(e.get("U")).subarray(0,32),g=e.get("P"),p=e.get("R"),m=(4===r||5===r)&&!1!==e.get("EncryptMetadata"),t=(this.encryptMetadata=m,(0,S.stringToBytes)(t));let b;if(a){if(6===p)try{a=(0,S.utf8StringToString)(a)}catch(e){(0,S.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}b=(0,S.stringToBytes)(a)}let y;if(!(y=5!==r?w(t,b,d,f,g,p,i,m):(h=(0,S.stringToBytes)(e.get("O")).subarray(32,40),u=(0,S.stringToBytes)(e.get("O")).subarray(40,48),n=(0,S.stringToBytes)(e.get("U")).subarray(0,48),s=(0,S.stringToBytes)(e.get("U")).subarray(32,40),o=(0,S.stringToBytes)(e.get("U")).subarray(40,48),l=(0,S.stringToBytes)(e.get("OE")),c=(0,S.stringToBytes)(e.get("UE")),(0,S.stringToBytes)(e.get("Perms")),function(e,t,a,r,i,n,s,o,l,c,h){var u;t=t?(u=Math.min(127,t.length),t.subarray(0,u)):[];let d;return(d=new(6===e?F:O)).checkUserPassword(t,o,s)?d.getUserKey(t,l,h):t.length&&d.checkOwnerPassword(t,r,n,a)?d.getOwnerKey(t,i,n,c):null}(p,b,d,h,u,n,f,s,o,l,c)))&&!a)throw new S.PasswordException("No password given",S.PasswordResponses.NEED_PASSWORD);if(!y&&a&&(h=function(e,t,a,r){var i=new Uint8Array(32);let n=0;for(var s=Math.min(32,e.length);n<s;++n)i[n]=e[n];let o=0;for(;n<32;)i[n++]=v[o++];let l=C(i,0,n);var c=r>>3;if(3<=a)for(o=0;o<50;++o)l=C(l,0,l.length);let h,u;if(3<=a){u=t;var d=new Uint8Array(c);for(o=19;0<=o;o--){for(let e=0;e<c;++e)d[e]=l[e]^o;h=new k(d),u=h.encryptBlock(u)}}else h=new k(l.subarray(0,c)),u=h.encryptBlock(t);return u}(b,d,p,i),y=w(t,h,d,f,g,p,i,m)),!y)throw new S.PasswordException("Incorrect Password",S.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=y,4<=r&&((u=e.get("CF"))instanceof A.Dict&&(u.suppressEncryption=!0),this.cf=u,this.stmf=e.get("StmF")||x,this.strf=e.get("StrF")||x,this.eff=e.get("EFF")||this.stmf)}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new c(i(this.cf,this.strf,e,t,this.encryptionKey),i(this.cf,this.stmf,e,t,this.encryptionKey));const a=s(e,t,this.encryptionKey,!1);function r(){return new k(a)}return new c(r,r)}}}();t.CipherTransformFactory=a},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;a=a(148);class r extends a.DecodeStream{constructor(e,t,a){super(t),this.str=e,this.dict=e.dict,this.decrypt=a,this.nextChunk=null,this.initialized=!1}readBlock(){let e;var t,a;this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length?(this.nextChunk=this.str.getBytes(512),a=this.nextChunk&&0<this.nextChunk.length,t=this.decrypt,e=t(e,!a),a=(t=this.bufferLength)+e.length,this.ensureBuffer(a).set(e,t),this.bufferLength=a):this.eof=!0}}t.DecryptStream=r},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var m=a(135),b=a(2),y=a(134),d=a(199),v=a(136),r=a(200),f=a(143),n=a(201),i=a(188),o=a(202),s=a(203);function l(e){return e instanceof y.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}class g{constructor(e,t){if(this.pdfManager=e,this.xref=t,this._catDict=t.getCatalogObj(),!(this._catDict instanceof y.Dict))throw new b.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new y.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new i.GlobalImageCache,this.pageKidsCountCache=new y.RefSetCache,this.pageIndexCache=new y.RefSetCache,this.nonBlendModesSet=new y.RefSet}get version(){var e=this._catDict.get("Version");if(e instanceof y.Name){if(m.PDF_VERSION_REGEXP.test(e.name))return(0,b.shadow)(this,"version",e.name);(0,b.warn)("Invalid PDF catalog version: "+e.name)}return(0,b.shadow)(this,"version",null)}get lang(){var e=this._catDict.get("Lang");return(0,b.shadow)(this,"lang","string"==typeof e?(0,b.stringToPDFString)(e):null)}get needsRendering(){var e=this._catDict.get("NeedsRendering");return(0,b.shadow)(this,"needsRendering","boolean"==typeof e&&e)}get collection(){let e=null;try{var t=this._catDict.get("Collection");t instanceof y.Dict&&0<t.size&&(e=t)}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,b.shadow)(this,"collection",e)}get acroForm(){let e=null;try{var t=this._catDict.get("AcroForm");t instanceof y.Dict&&0<t.size&&(e=t)}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,b.shadow)(this,"acroForm",e)}get acroFormRef(){var e=this._catDict.getRaw("AcroForm");return(0,b.shadow)(this,"acroFormRef",e instanceof y.Ref?e:null)}get metadata(){var e=this._catDict.getRaw("Metadata");if(!(e instanceof y.Ref))return(0,b.shadow)(this,"metadata",null);let t=null;try{var a,r,i,n=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),s=this.xref.fetch(e,n);s instanceof v.BaseStream&&s.dict instanceof y.Dict&&(a=s.dict.get("Type"),r=s.dict.get("Subtype"),(0,y.isName)(a,"Metadata"))&&(0,y.isName)(r,"XML")&&(i=(0,b.stringToUTF8String)(s.getString()))&&(t=new o.MetadataParser(i).serializable)}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.info)(`Skipping invalid Metadata: "${e}".`)}return(0,b.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read mark info.")}return(0,b.shadow)(this,"markInfo",e)}_readMarkInfo(){var e=this._catDict.get("MarkInfo");if(!(e instanceof y.Dict))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(const r in t){var a=e.get(r);"boolean"==typeof a&&(t[r]=a)}return t}get structTreeRoot(){let e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable read to structTreeRoot info.")}return(0,b.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){var e=this._catDict.get("StructTreeRoot");return e instanceof y.Dict?((e=new s.StructTreeRoot(e)).init(),e):null}get toplevelPagesDict(){var e=this._catDict.get("Pages");if(e instanceof y.Dict)return(0,b.shadow)(this,"toplevelPagesDict",e);throw new b.FormatError("Invalid top-level pages dictionary.")}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read document outline.")}return(0,b.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let t=this._catDict.get("Outlines");if(!(t instanceof y.Dict))return null;if(!((t=t.getRaw("First"))instanceof y.Ref))return null;for(var e={items:[]},a=[{obj:t,parent:e}],r=new y.RefSet,i=(r.put(t),this.xref),n=new Uint8ClampedArray(3);0<a.length;){var s=a.shift(),o=i.fetchIfRef(s.obj);if(null!==o){if(!o.has("Title"))throw new b.FormatError("Invalid outline item encountered.");var l={url:null,dest:null,action:null},c=(g.parseDestDictionary({destDict:o,resultObj:l,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments}),o.get("Title")),h=o.get("F")||0,u=o.getArray("C"),d=o.get("Count");let e=n;!Array.isArray(u)||3!==u.length||0===u[0]&&0===u[1]&&0===u[2]||(e=f.ColorSpace.singletons.rgb.getRgb(u,0));u={action:l.action,attachment:l.attachment,dest:l.dest,url:l.url,unsafeUrl:l.unsafeUrl,newWindow:l.newWindow,setOCGState:l.setOCGState,title:(0,b.stringToPDFString)(c),color:e,count:Number.isInteger(d)?d:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};s.parent.items.push(u),(t=o.getRaw("First"))instanceof y.Ref&&!r.has(t)&&(a.push({obj:t,parent:u}),r.put(t)),(t=o.getRaw("Next"))instanceof y.Ref&&!r.has(t)&&(a.push({obj:t,parent:s.parent}),r.put(t))}}return 0<e.items.length?e.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read permissions.")}return(0,b.shadow)(this,"permissions",e)}_readPermissions(){var e=this.xref.trailer.get("Encrypt");if(!(e instanceof y.Dict))return null;var t=e.get("P");if("number"!=typeof t)return null;t+=2**32;var a=[];for(const i in b.PermissionFlag){var r=b.PermissionFlag[i];t&r&&a.push(r)}return a}get optionalContentConfig(){let e=null;try{var t=this._catDict.get("OCProperties");if(!t)return(0,b.shadow)(this,"optionalContentConfig",null);var a=t.get("D");if(!a)return(0,b.shadow)(this,"optionalContentConfig",null);var r=t.get("OCGs");if(!Array.isArray(r))return(0,b.shadow)(this,"optionalContentConfig",null);var i,n=[],s=[];for(const o of r)o instanceof y.Ref&&(s.push(o),i=this.xref.fetchIfRef(o),n.push({id:o.toString(),name:"string"==typeof i.get("Name")?(0,b.stringToPDFString)(i.get("Name")):null,intent:"string"==typeof i.get("Intent")?(0,b.stringToPDFString)(i.get("Intent")):null}));(e=this._readOptionalContentConfig(a,s)).groups=n}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read optional content config: "+e)}return(0,b.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,l){function t(e){var t=[];if(Array.isArray(e))for(const a of e)a instanceof y.Ref&&l.includes(a)&&t.push(a.toString());return t}function c(e,t){var a=1<arguments.length&&void 0!==t?t:0;if(!Array.isArray(e))return null;var r,i=[];for(const s of e)s instanceof y.Ref&&l.includes(s)?(u.put(s),i.push(s.toString())):(r=function(e,t){if(++t>d)return(0,b.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;e=h.fetchIfRef(e);if(!Array.isArray(e))return null;var a=h.fetchIfRef(e[0]);if("string"!=typeof a)return null;e=c(e.slice(1),t);return e&&e.length?{name:(0,b.stringToPDFString)(a),order:e}:null}(s,a))&&i.push(r);if(!(0<a)){var n=[];for(const o of l)u.has(o)||n.push(o.toString());n.length&&i.push({name:null,order:n})}return i}const h=this.xref,u=new y.RefSet,d=10;return{name:"string"==typeof e.get("Name")?(0,b.stringToPDFString)(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?(0,b.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof y.Name?e.get("BaseState").name:null,on:t(e.get("ON")),off:t(e.get("OFF")),order:c(e.get("Order")),groups:null}}setActualNumPages(){this._actualNumPages=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){var e=this.toplevelPagesDict.get("Count");if(Number.isInteger(e))return(0,b.shadow)(this,"_pagesCount",e);throw new b.FormatError("Page count in top-level pages dictionary is not an integer.")}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),a=Object.create(null);if(e instanceof d.NameTree)for(var[t,r]of e.getAll()){r=l(r);r&&(a[(0,b.stringToPDFString)(t)]=r)}else e instanceof y.Dict&&e.forEach(function(e,t){t=l(t);t&&(a[e]=t)});return(0,b.shadow)(this,"destinations",a)}getDestination(e){var t=this._readDests();if(t instanceof d.NameTree){var a=l(t.get(e));if(a)return a;a=this.destinations[e];if(a)return(0,b.warn)(`Found "${e}" at an incorrect position in the NameTree.`),a}else if(t instanceof y.Dict){a=l(t.get(e));if(a)return a}return null}_readDests(){var e=this._catDict.get("Names");return e&&e.has("Dests")?new d.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read page labels.")}return(0,b.shadow)(this,"pageLabels",e)}_readPageLabels(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;var a=new Array(this.numPages);let r=null,i="";var n=new d.NumberTree(e,this.xref).getAll();let s="",o=1;for(let e=0,t=this.numPages;e<t;e++){var l=n.get(e);if(void 0!==l){if(!(l instanceof y.Dict))throw new b.FormatError("PageLabel is not a dictionary.");if(l.has("Type")&&!(0,y.isName)(l.get("Type"),"PageLabel"))throw new b.FormatError("Invalid type in PageLabel dictionary.");if(l.has("S")){var c=l.get("S");if(!(c instanceof y.Name))throw new b.FormatError("Invalid style in PageLabel dictionary.");r=c.name}else r=null;if(l.has("P")){c=l.get("P");if("string"!=typeof c)throw new b.FormatError("Invalid prefix in PageLabel dictionary.");i=(0,b.stringToPDFString)(c)}else i="";if(l.has("St")){l=l.get("St");if(!(Number.isInteger(l)&&1<=l))throw new b.FormatError("Invalid start in PageLabel dictionary.");o=l}else o=1}switch(r){case"D":s=o;break;case"R":case"r":s=(0,m.toRomanNumerals)(o,"r"===r);break;case"A":case"a":var h="a"===r?97:65,u=o-1,h=String.fromCharCode(h+u%26);s=h.repeat(Math.floor(u/26)+1);break;default:if(r)throw new b.FormatError(`Invalid style "${r}" in PageLabel dictionary.`);s=""}a[e]=i+s,o++}return a}get pageLayout(){var e=this._catDict.get("PageLayout");let t="";if(e instanceof y.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,b.shadow)(this,"pageLayout",t)}get pageMode(){var e=this._catDict.get("PageMode");let t="UseNone";if(e instanceof y.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,b.shadow)(this,"pageMode",t)}get viewerPreferences(){var t=this._catDict.get("ViewerPreferences");if(!(t instanceof y.Dict))return(0,b.shadow)(this,"viewerPreferences",null);let a=null;for(const i of t.getKeys()){var r=t.get(i);let e;switch(i){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof r&&(e=r);break;case"NonFullScreenPageMode":if(r instanceof y.Name)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":e=r.name;break;default:e="UseNone"}break;case"Direction":if(r instanceof y.Name)switch(r.name){case"L2R":case"R2L":e=r.name;break;default:e="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof y.Name)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":e=r.name;break;default:e="CropBox"}break;case"PrintScaling":if(r instanceof y.Name)switch(r.name){case"None":case"AppDefault":e=r.name;break;default:e="AppDefault"}break;case"Duplex":if(r instanceof y.Name)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":e=r.name;break;default:e="None"}break;case"PrintPageRange":Array.isArray(r)&&r.length%2==0&&r.every((e,t,a)=>Number.isInteger(e)&&0<e&&(0===t||e>=a[t-1])&&e<=this.numPages)&&(e=r);break;case"NumCopies":Number.isInteger(r)&&0<r&&(e=r);break;default:(0,b.warn)(`Ignoring non-standard key in ViewerPreferences: ${i}.`);continue}void 0===e?(0,b.warn)(`Bad value, for key "${i}", in ViewerPreferences: ${r}.`):(a=a||Object.create(null))[i]=e}return(0,b.shadow)(this,"viewerPreferences",a)}get openAction(){var e,t,a=this._catDict.get("OpenAction"),r=Object.create(null);return a instanceof y.Dict?((e=new y.Dict(this.xref)).set("A",a),t={url:null,dest:null,action:null},g.parseDestDictionary({destDict:e,resultObj:t}),Array.isArray(t.dest)?r.dest=t.dest:t.action&&(r.action=t.action)):Array.isArray(a)&&(r.dest=a),(0,b.shadow)(this,"openAction",0<(0,b.objectSize)(r)?r:null)}get attachments(){var e,t,a=this._catDict.get("Names");let r=null;if(a instanceof y.Dict&&a.has("EmbeddedFiles"))for([e,t]of new d.NameTree(a.getRaw("EmbeddedFiles"),this.xref).getAll()){var i=new n.FileSpec(t,this.xref);(r=r||Object.create(null))[(0,b.stringToPDFString)(e)]=i.serializable}return(0,b.shadow)(this,"attachments",r)}get xfaImages(){var e,t,a=this._catDict.get("Names");let r=null;if(a instanceof y.Dict&&a.has("XFAImages"))for([e,t]of new d.NameTree(a.getRaw("XFAImages"),this.xref).getAll())(r=r||new y.Dict(this.xref)).set((0,b.stringToPDFString)(e),t);return(0,b.shadow)(this,"xfaImages",r)}_collectJavaScript(){var e,t,a=this._catDict.get("Names");let r=null;function i(t,a){if(a instanceof y.Dict&&(0,y.isName)(a.get("S"),"JavaScript")){let e=a.get("JS");if(e instanceof v.BaseStream)e=e.getString();else if("string"!=typeof e)return;null===r&&(r=new Map),e=(0,b.stringToPDFString)(e).replace(/\u0000/g,""),r.set(t,e)}}if(a instanceof y.Dict&&a.has("JavaScript"))for([e,t]of new d.NameTree(a.getRaw("JavaScript"),this.xref).getAll())i((0,b.stringToPDFString)(e),t);a=this._catDict.get("OpenAction");return a&&i("OpenAction",a),r}get javaScript(){var e=this._collectJavaScript();return(0,b.shadow)(this,"javaScript",e?[...e.values()]:null)}get jsActions(){var e=this._collectJavaScript();let t=(0,m.collectActions)(this.xref,this._catDict,b.DocumentActionEventType);if(e){t=t||Object.create(null);for(var[a,r]of e)a in t?t[a].push(r):t[a]=[r]}return(0,b.shadow)(this,"jsActions",t)}async fontFallback(e,t){for(const a of await Promise.all(this.fontCache))if(a.loadedName===e)return void a.fallback(t)}async cleanup(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=((0,r.clearGlobalCaches)(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear(),await Promise.all(this.fontCache));for({dict:e}of t)delete e.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear()}async getPageDict(a){var r=[this.toplevelPagesDict],e=new y.RefSet,t=this._catDict.getRaw("Pages"),i=(t instanceof y.Ref&&e.put(t),this.xref),n=this.pageKidsCountCache,s=this.pageIndexCache;let o=0;for(;r.length;){var l=r.pop();if(l instanceof y.Ref){var c=n.get(l);if(0<=c&&o+c<=a)o+=c;else{if(e.has(l))throw new b.FormatError("Pages tree contains circular reference.");e.put(l);c=await i.fetchAsync(l);if(c instanceof y.Dict){let e=c.getRaw("Type");if(e instanceof y.Ref&&(e=await i.fetchAsync(e)),(0,y.isName)(e,"Page")||!c.has("Kids")){if(n.has(l)||n.put(l,1),s.has(l)||s.put(l,o),o===a)return[c,l];o++;continue}}r.push(c)}}else{if(!(l instanceof y.Dict))throw new b.FormatError("Page dictionary kid reference points to wrong type of object.");c=l["objId"];let e=l.getRaw("Count");if(e instanceof y.Ref&&(e=await i.fetchAsync(e)),Number.isInteger(e)&&0<=e&&(c&&!n.has(c)&&n.put(c,e),o+e<=a))o+=e;else{let t=l.getRaw("Kids");if(t instanceof y.Ref&&(t=await i.fetchAsync(t)),Array.isArray(t))for(let e=t.length-1;0<=e;e--)r.push(t[e]);else{let e=l.getRaw("Type");if(e instanceof y.Ref&&(e=await i.fetchAsync(e)),!(0,y.isName)(e,"Page")&&l.has("Kids"))throw new b.FormatError("Page dictionary kids object is not an array.");if(o===a)return[l,null];o++}}}}throw new Error(`Page index ${a} not found.`)}async getAllPageDicts(){let t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];var r=[{currentNode:this.toplevelPagesDict,posInKids:0}],i=new y.RefSet,e=this._catDict.getRaw("Pages");e instanceof y.Ref&&i.put(e);const n=new Map,s=this.xref,o=this.pageIndexCache;let l=0;function c(e){if(e instanceof m.XRefEntryException&&!t)throw e;n.set(l++,[e,null])}for(;0<r.length;){var h=r.at(-1),{currentNode:u,posInKids:d}=h;let a=u.getRaw("Kids");if(a instanceof y.Ref)try{a=await s.fetchAsync(a)}catch(e){c(e);break}if(!Array.isArray(a)){c(new b.FormatError("Page dictionary kids object is not an array."));break}if(d>=a.length)r.pop();else{var u=a[d];let e;if(u instanceof y.Ref){if(i.has(u)){c(new b.FormatError("Pages tree contains circular reference."));break}i.put(u);try{e=await s.fetchAsync(u)}catch(e){c(e);break}}else e=u;if(!(e instanceof y.Dict)){c(new b.FormatError("Page dictionary kid reference points to wrong type of object."));break}let t=e.getRaw("Type");if(t instanceof y.Ref)try{t=await s.fetchAsync(t)}catch(e){c(e);break}(0,y.isName)(t,"Page")||!e.has("Kids")?(d=e,(u=u instanceof y.Ref?u:null)&&!o.has(u)&&o.put(u,l),n.set(l++,[d,u])):r.push({currentNode:e,posInKids:0}),h.posInKids++}}return n}getPageIndex(a){var e=this.pageIndexCache.get(a);if(void 0!==e)return Promise.resolve(e);const o=this.xref;let r=0;const i=e=>function(i){let n=0,s;return o.fetchAsync(i).then(function(e){if((0,y.isRefsEqual)(i,a)&&!(0,y.isDict)(e,"Page")&&!(e instanceof y.Dict&&!e.has("Type")&&e.has("Contents")))throw new b.FormatError("The reference does not point to a /Page dictionary.");if(!e)return null;if(e instanceof y.Dict)return s=e.getRaw("Parent"),e.getAsync("Parent");throw new b.FormatError("Node must be a dictionary.")}).then(function(e){if(!e)return null;if(e instanceof y.Dict)return e.getAsync("Kids");throw new b.FormatError("Parent must be a dictionary.")}).then(function(e){if(!e)return null;var t=[];let a=!1;for(const r of e){if(!(r instanceof y.Ref))throw new b.FormatError("Kid must be a reference.");if((0,y.isRefsEqual)(r,i)){a=!0;break}t.push(o.fetchAsync(r).then(function(e){if(!(e instanceof y.Dict))throw new b.FormatError("Kid node must be a dictionary.");e.has("Count")?n+=e.get("Count"):n++}))}if(a)return Promise.all(t).then(function(){return[n,s]});throw new b.FormatError("Kid reference not found in parent's kids.")})}(e).then(e=>{var t;return e?([e,t]=e,r+=e,i(t)):(this.pageIndexCache.put(a,r),r)});return i(a)}get baseUrl(){var e=this._catDict.get("URI");if(e instanceof y.Dict){e=e.get("Base");if("string"==typeof e){e=(0,b.createValidAbsoluteUrl)(e,null,{tryConvertEncoding:!0});if(e)return(0,b.shadow)(this,"baseUrl",e.href)}}return(0,b.shadow)(this,"baseUrl",null)}static parseDestDictionary(e){var t=e.destDict;if(t instanceof y.Dict){var s=e.resultObj;if("object"!=typeof s)(0,b.warn)("parseDestDictionary: `resultObj` must be an object.");else{var a=e.docBaseUrl||null,o=e.docAttachments||null;let r=t.get("A"),i,n;if(r instanceof y.Dict||(t.has("Dest")?r=t.get("Dest"):(r=t.get("AA"))instanceof y.Dict&&(r.has("D")?r=r.get("D"):r.has("U")&&(r=r.get("U")))),r instanceof y.Dict){var e=r.get("S");if(!(e instanceof y.Name))return void(0,b.warn)("parseDestDictionary: Invalid type in Action dictionary.");var l=e.name;switch(l){case"ResetForm":var c=r.get("Flags"),c=0==(1&("number"==typeof c?c:0)),h=[],u=[];for(const g of r.get("Fields")||[])g instanceof y.Ref?u.push(g.toString()):"string"==typeof g&&h.push((0,b.stringToPDFString)(g));s.resetForm={fields:h,refs:u,include:c};break;case"URI":(i=r.get("URI"))instanceof y.Name&&(i="/"+i.name);break;case"GoTo":n=r.get("D");break;case"Launch":case"GoToR":c=r.get("F");c instanceof y.Dict?i=c.get("F")||null:"string"==typeof c&&(i=c);let e=r.get("D");e&&(e instanceof y.Name&&(e=e.name),"string"==typeof i)&&(c=i.split("#")[0],"string"==typeof e?i=c+"#"+e:Array.isArray(e)&&(i=c+"#"+JSON.stringify(e)));c=r.get("NewWindow");"boolean"==typeof c&&(s.newWindow=c);break;case"GoToE":c=r.get("T");let t;(t=o&&c instanceof y.Dict&&(d=c.get("R"),c=c.get("N"),(0,y.isName)(d,"C"))&&"string"==typeof c?o[(0,b.stringToPDFString)(c)]:t)?s.attachment=t:(0,b.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":var d=r.get("N");d instanceof y.Name&&(s.action=d.name);break;case"SetOCGState":c=r.get("State"),d=r.get("PreserveRB");if(Array.isArray(c)&&0!==c.length){var f=[];for(const p of c)if(p instanceof y.Name)switch(p.name){case"ON":case"OFF":case"Toggle":f.push(p.name)}else p instanceof y.Ref&&f.push(p.toString());f.length===c.length&&(s.setOCGState={state:f,preserveRB:"boolean"!=typeof d||d})}break;case"JavaScript":c=r.get("JS");let a;c instanceof v.BaseStream?a=c.getString():"string"==typeof c&&(a=c);d=a&&(0,m.recoverJsURL)((0,b.stringToPDFString)(a));if(d){i=d.url,s.newWindow=d.newWindow;break}default:"JavaScript"!==l&&"SubmitForm"!==l&&(0,b.warn)(`parseDestDictionary - unsupported action: "${l}".`)}}else t.has("Dest")&&(n=t.get("Dest"));"string"==typeof i&&((e=(0,b.createValidAbsoluteUrl)(i,a,{addDefaultProtocol:!0,tryConvertEncoding:!0}))&&(s.url=e.href),s.unsafeUrl=i),n&&("string"==typeof(n=n instanceof y.Name?n.name:n)?s.dest=(0,b.stringToPDFString)(n):Array.isArray(n)&&(s.dest=n))}}else(0,b.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}t.Catalog=g},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var l=a(134),f=a(2);class r{constructor(e,t,a){this.constructor===r&&(0,f.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=a}getAll(){var a=new Map;if(this.root)for(var r=this.xref,e=new l.RefSet,t=(e.put(this.root),[this.root]);0<t.length;){var i=r.fetchIfRef(t.shift());if(i instanceof l.Dict)if(i.has("Kids")){var n=i.get("Kids");if(Array.isArray(n))for(const o of n){if(e.has(o))throw new f.FormatError(`Duplicate entry in "${this._type}" tree.`);t.push(o),e.put(o)}}else{var s=i.get(this._type);if(Array.isArray(s))for(let e=0,t=s.length;e<t;e+=2)a.set(r.fetchIfRef(s[e]),r.fetchIfRef(s[e+1]))}}return a}get(i){if(this.root){var n=this.xref;let a=n.fetchIfRef(this.root),r=0;for(;a.has("Kids");){if(10<++r)return(0,f.warn)(`Search depth limit reached for "${this._type}" tree.`),null;var s=a.get("Kids");if(!Array.isArray(s))return null;let e=0,t=s.length-1;for(;e<=t;){var o=e+t>>1,l=n.fetchIfRef(s[o]),c=l.get("Limits");if(i<n.fetchIfRef(c[0]))t=o-1;else{if(!(i>n.fetchIfRef(c[1]))){a=l;break}e=1+o}}if(e>t)return null}var h=a.get(this._type);if(Array.isArray(h)){let e=0,t=h.length-2;for(;e<=t;){var u=e+t>>1,u=u+(1&u),d=n.fetchIfRef(h[u]);if(i<d)t=u-2;else{if(!(d<i))return n.fetchIfRef(h[1+u]);e=2+u}}}}return null}}r;t.NameTree=class extends r{constructor(e,t){super(e,t,"Names")}};r;t.NumberTree=class extends r{constructor(e,t){super(e,t,"Nums")}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,r.clearPrimitiveCaches)(),(0,i.clearUnicodeCaches)()};var r=a(134),i=a(169)},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var r=a(2),i=a(136),n=a(134);function s(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class{constructor(e,t){e instanceof n.Dict&&(this.xref=t,(this.root=e).has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,r.warn)("Non-embedded file specifications are not supported"))}get filename(){var e;return!this._filename&&this.root&&(e=s(this.root)||"unnamed",this._filename=(0,r.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")),this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=s(this.root.get("EF")));let e=null;var t;return this.contentRef?(t=this.xref.fetchIfRef(this.contentRef))instanceof i.BaseStream?e=t.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content"):(0,r.warn)("Embedded file specification does not have a content"),e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var r=a(195);t.MetadataParser=class{constructor(e){e=this._repair(e);var t=new r.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){var a=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,a,r){return String.fromCharCode(64*t+8*a+ +r)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)}),r=[];for(let e=0,t=a.length;e<t;e+=2){var i=256*a.charCodeAt(e)+a.charCodeAt(e+1);r.push(32<=i&&i<127&&60!==i&&62!==i&&38!==i?String.fromCharCode(i):"&#x"+(65536+i).toString(16).substring(1)+";")}return">"+r.join("")})}_getSequence(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter(e=>"rdf:li"===e.nodeName)}_parseArray(e){var t;e.hasChildNodes()&&([t]=e.childNodes,t=this._getSequence(t)||[],this._metadataMap.set(e.nodeName,t.map(e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const r of t.childNodes)if("rdf:description"===r.nodeName)for(const i of r.childNodes){var a=i.nodeName;switch(a){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(i);continue}this._metadataMap.set(a,i.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var s=a(134),l=a(2),i=a(199);const c={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"};t.StructTreeRoot=class{constructor(e){this.dict=e,this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){var e=this.dict.get("RoleMap");e instanceof s.Dict&&e.forEach((e,t)=>{t instanceof s.Name&&this.roleMap.set(e,t.name)})}};class o{constructor(e,t){this.tree=e,this.dict=t,this.kids=[],this.parseKids()}get role(){var e=this.dict.get("S"),e=e instanceof s.Name?e.name:"",t=this.tree["root"];return t.roleMap.has(e)?t.roleMap.get(e):e}parseKids(){let e=null;var t=this.dict.getRaw("Pg"),t=(t instanceof s.Ref&&(e=t.toString()),this.dict.get("K"));if(Array.isArray(t))for(const r of t){var a=this.parseKid(e,r);a&&this.kids.push(a)}else{t=this.parseKid(e,t);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new r({type:c.PAGE_CONTENT,mcid:t,pageObjId:e});let a=null;return t instanceof s.Ref?a=this.dict.xref.fetch(t):t instanceof s.Dict&&(a=t),a?((t=a.getRaw("Pg"))instanceof s.Ref&&(e=t.toString()),"MCR"===(t=a.get("Type")instanceof s.Name?a.get("Type").name:null)?this.tree.pageDict.objId!==e?null:new r({type:c.STREAM_CONTENT,refObjId:a.getRaw("Stm")instanceof s.Ref?a.getRaw("Stm").toString():null,pageObjId:e,mcid:a.get("MCID")}):"OBJR"===t?this.tree.pageDict.objId!==e?null:new r({type:c.OBJECT,refObjId:a.getRaw("Obj")instanceof s.Ref?a.getRaw("Obj").toString():null,pageObjId:e}):new r({type:c.ELEMENT,dict:a})):null}}class r{constructor(e){var{type:e,dict:t=null,mcid:a=null,pageObjId:r=null,refObjId:i=null}=e;this.type=e,this.dict=t,this.mcid=a,this.pageObjId=r,this.refObjId=i,this.parentNode=null}}t.StructTreePage=class{constructor(e,t){this.root=e,this.rootDict=e?e.dict:null,this.pageDict=t,this.nodes=[]}parse(){if(this.root&&this.rootDict){var e=this.rootDict.get("ParentTree");if(e){var t=this.pageDict.get("StructParents");if(Number.isInteger(t)){e=new i.NumberTree(e,this.rootDict.xref).get(t);if(Array.isArray(e)){var a=new Map;for(const r of e)r instanceof s.Ref&&this.addNode(this.rootDict.xref.fetch(r),a)}}}}}addNode(t,a){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(40<e)return(0,l.warn)("StructTree MAX_DEPTH reached."),null;if(a.has(t))return a.get(t);var r=new o(this,t),i=(a.set(t,r),t.get("P"));if(!i||(0,s.isName)(i.get("Type"),"StructTreeRoot"))this.addTopLevelNode(t,r)||a.delete(t);else{i=this.addNode(i,a,e+1);if(i){let e=!1;for(const n of i.kids)n.type===c.ELEMENT&&n.dict===t&&(n.parentNode=r,e=!0);e||a.delete(t)}}return r}addTopLevelNode(t,a){var r=this.rootDict.get("K");if(!r)return!1;if(r instanceof s.Dict)return r.objId===t.objId&&(this.nodes[0]=a,!0);if(!Array.isArray(r))return!0;let i=!1;for(let e=0;e<r.length;e++){var n=r[e];n&&n.toString()===t.objId&&(this.nodes[e]=a,i=!0)}return i}get serializable(){var e=Object.create(null);e.children=[],e.role="Root";for(const t of this.nodes)t&&!function e(t,a,r){var i=2<arguments.length&&void 0!==r?r:0;if(40<i)(0,l.warn)("StructTree too deep to be fully serialized.");else{var n=Object.create(null),r=(n.role=t.role,n.children=[],a.children.push(n),t.dict.get("Alt")),a=("string"==typeof r&&(n.alt=(0,l.stringToPDFString)(r)),t.dict.get("Lang"));"string"==typeof a&&(n.lang=(0,l.stringToPDFString)(a));for(const o of t.kids){var s=o.type===c.ELEMENT?o.parentNode:null;s?e(s,n,i+1):o.type===c.PAGE_CONTENT||o.type===c.STREAM_CONTENT?n.children.push({type:"content",id:`page${o.pageObjId}_mcid`+o.mcid}):o.type===c.OBJECT&&n.children.push({type:"object",id:o.refObjId})}}}(t,e);return e}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var s=a(134),o=a(136),l=a(135),c=a(2);function h(e,t){if(e instanceof s.Dict)e=e.getRawValues();else if(e instanceof o.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const r of e)((a=r)instanceof s.Ref||a instanceof s.Dict||a instanceof o.BaseStream||Array.isArray(a))&&t.push(r);var a}t.ObjectLoader=class{constructor(e,t,a){this.dict=e,this.keys=t,this.xref=a,this.refSet=null}async load(){if(!this.xref.stream.isDataLoaded){var{keys:e,dict:t}=this,a=(this.refSet=new s.RefSet,[]);for(const i of e){var r=t.getRaw(i);void 0!==r&&a.push(r)}return this._walk(a)}}async _walk(e){for(var a=[],r=[];e.length;){let t=e.pop();if(t instanceof s.Ref){if(this.refSet.has(t))continue;try{this.refSet.put(t),t=this.xref.fetch(t)}catch(e){if(!(e instanceof l.MissingDataException))return(0,c.warn)(`ObjectLoader._walk - requesting all data: "${e}".`),this.refSet=null,i=this.xref.stream["manager"],i.requestAllChunks();a.push(t),r.push({begin:e.begin,end:e.end})}}if(t instanceof o.BaseStream){var i=t.getBaseStreams();if(i){let e=!1;for(const n of i)n.isDataLoaded||(e=!0,r.push({begin:n.start,end:n.end}));e&&a.push(t)}}h(t,e)}if(r.length){await this.xref.stream.manager.requestRanges(r);for(const t of a)t instanceof s.Ref&&this.refSet.remove(t);return this._walk(a)}this.refSet=null}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var s=a(206),r=a(210),i=a(216),n=a(214),o=a(207),l=a(2),c=a(217),h=a(227);class u{constructor(e){try{this.root=(new c.XFAParser).parse(u._createDocument(e));var t=new r.Binder(this.root);this.form=t.bind(),this.dataHandler=new i.DataHandler(this.root,t.getData()),this.form[s.$globalData].template=this.form}catch(e){(0,l.warn)("XFA - an error occurred during parsing and binding: "+e)}}isValid(){return this.root&&this.form}_createPagesHelper(){const i=this.form[s.$toPages]();return new Promise((t,a)=>{const r=()=>{try{var e=i.next();e.done?t(e.value):setTimeout(r,0)}catch(e){a(e)}};setTimeout(r,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(e=>{var{width:e,height:t}=e.attributes.style;return[0,0,parseInt(e),parseInt(t)]})}catch(e){(0,l.warn)("XFA - an error occurred during layout: "+e)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[s.$globalData].images=e}setFonts(e){this.form[s.$globalData].fontFinder=new n.FontFinder(e);var t,a=[];for(t of this.form[s.$globalData].usedTypefaces)t=(0,o.stripQuotes)(t),this.form[s.$globalData].fontFinder.find(t)||a.push(t);return 0<a.length?a:null}appendFonts(e,t){this.form[s.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();var e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(t){if(t&&"string"==typeof t)try{let e=new c.XFAParser(h.XhtmlNamespace,!0).parse(t);["body","xhtml"].includes(e[s.$nodeName])||((a=h.XhtmlNamespace.body({}))[s.$appendChild](e),e=a);var a,r,i,n=e[s.$toHTML]();return n.success?(r=n["html"],i=r["attributes"],i&&(i.class&&(i.class=i.class.filter(e=>!e.startsWith("xfa"))),i.dir="auto"),{html:r,str:e[s.$text]()}):null}catch(e){(0,l.warn)("XFA - an error occurred during parsing of rich text: "+e)}return null}}t.XFAFactory=u},(R,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XmlObject=e.XFAObjectArray=e.XFAObject=e.XFAAttribute=e.StringObject=e.OptionObject=e.Option10=e.Option01=e.IntegerObject=e.ContentObject=e.$uid=e.$toStyle=e.$toString=e.$toPages=e.$toHTML=e.$text=e.$tabIndex=e.$setValue=e.$setSetAttributes=e.$setId=e.$searchNode=e.$root=e.$resolvePrototypes=e.$removeChild=e.$pushPara=e.$pushGlyphs=e.$popPara=e.$onText=e.$onChildCheck=e.$onChild=e.$nsAttributes=e.$nodeName=e.$namespaceId=e.$isUsable=e.$isTransparent=e.$isThereMoreWidth=e.$isSplittable=e.$isNsAgnostic=e.$isDescendent=e.$isDataValue=e.$isCDATAXml=e.$isBindable=e.$insertAt=e.$indexOf=e.$ids=e.$hasSettableValue=e.$globalData=e.$getTemplateRoot=e.$getSubformParent=e.$getRealChildrenByNameIt=e.$getParent=e.$getNextPage=e.$getExtra=e.$getDataValue=e.$getContainedChildren=e.$getChildrenByNameIt=e.$getChildrenByName=e.$getChildrenByClass=e.$getChildren=e.$getAvailableSpace=e.$getAttributes=e.$getAttributeIt=e.$flushHTML=e.$finalize=e.$extra=e.$dump=e.$data=e.$content=e.$consumed=e.$clone=e.$cleanup=e.$cleanPage=e.$clean=e.$childrenToHTML=e.$appendChild=e.$addHTML=e.$acceptWhitespace=void 0;var i=t(207),c=t(2),L=t(135),a=t(208),j=t(209),t=Symbol();e.$acceptWhitespace=t;const n=Symbol(),s=(e.$addHTML=n,Symbol());e.$appendChild=s;var _=Symbol();e.$childrenToHTML=_;const r=Symbol();e.$clean=r;var o=Symbol();e.$cleanPage=o;const l=Symbol(),h=(e.$cleanup=l,Symbol()),u=(e.$clone=h,Symbol()),d=(e.$consumed=u,Symbol("content"));e.$content=d;o=Symbol("data");e.$data=o;const f=Symbol(),g=(e.$dump=f,Symbol("extra"));e.$extra=g;var o=Symbol(),$=(e.$finalize=o,Symbol());e.$flushHTML=$;const U=Symbol();e.$getAttributeIt=U;var X=Symbol();e.$getAttributes=X;const H=Symbol();e.$getAvailableSpace=H;var q=Symbol(),z=(e.$getChildrenByClass=q,Symbol());e.$getChildrenByName=z;const p=Symbol();e.$getChildrenByNameIt=p;var G=Symbol(),m=(e.$getDataValue=G,Symbol());e.$getExtra=m;const W=Symbol(),b=(e.$getRealChildrenByNameIt=W,Symbol()),V=(e.$getChildren=b,Symbol());e.$getContainedChildren=V;m=Symbol(),e.$getNextPage=m,m=Symbol();e.$getSubformParent=m;const y=Symbol(),K=(e.$getParent=y,Symbol()),v=(e.$getTemplateRoot=K,Symbol());e.$globalData=v;var Y=Symbol(),J=(e.$hasSettableValue=Y,Symbol()),J=(e.$ids=J,Symbol()),Z=(e.$indexOf=J,Symbol()),Q=(e.$insertAt=Z,Symbol()),ee=(e.$isCDATAXml=Q,Symbol()),te=(e.$isBindable=ee,Symbol());e.$isDataValue=te;const ae=Symbol();e.$isDescendent=ae;var re=Symbol(),ie=(e.$isNsAgnostic=re,Symbol()),ne=(e.$isSplittable=ie,Symbol());e.$isThereMoreWidth=ne;const se=Symbol();e.$isTransparent=se;var oe=Symbol(),oe=(e.$isUsable=oe,Symbol());const w=Symbol("namespaceId"),x=(e.$namespaceId=w,Symbol("nodeName")),le=(e.$nodeName=x,Symbol());e.$nsAttributes=le;var ce=Symbol();e.$onChild=ce;const he=Symbol();e.$onChildCheck=he;var ue=Symbol(),de=(e.$onText=ue,Symbol()),de=(e.$pushGlyphs=de,Symbol()),fe=(e.$popPara=de,Symbol());e.$pushPara=fe;const ge=Symbol(),pe=(e.$removeChild=ge,Symbol("root")),S=(e.$root=pe,Symbol());e.$resolvePrototypes=S;var me=Symbol(),me=(e.$searchNode=me,Symbol()),be=(e.$setId=me,Symbol()),ye=(e.$setSetAttributes=be,Symbol()),A=(e.$setValue=ye,Symbol());e.$tabIndex=A;const k=Symbol();e.$text=k;A=Symbol();e.$toPages=A;const C=Symbol(),ve=(e.$toHTML=C,Symbol());e.$toString=ve;A=Symbol();e.$toStyle=A;const we=Symbol("uid"),xe=(e.$uid=we,Symbol()),O=Symbol(),F=Symbol(),I=Symbol("_children"),Se=Symbol(),T=Symbol(),Ae=Symbol(),ke=Symbol(),Ce=Symbol(),Oe=Symbol(),Fe=Symbol(),M=Symbol(),Ie=Symbol(),P=Symbol("parent"),E=Symbol(),N=Symbol(),Te=Symbol();let Me=0;const Pe=a.NamespaceIds.datasets.id;class D{constructor(e,t){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2];this[w]=e,this[x]=t,this[Fe]=a,this[P]=null,this[I]=[],this[we]=""+t+Me++,this[v]=null}[ce](t){if(this[Fe]&&this[he](t)){var a=t[x],r=this[a];if(!(r instanceof B))return null!==r&&this[ge](r),this[a]=t,this[s](t),!0;if(r.push(t))return this[s](t),!0;let e="";this.id?e=` (id: ${this.id})`:this.name&&(e=` (name: ${this.name} ${this.h.value})`),(0,c.warn)(`XFA - node "${this[x]}"${e} has already enough "${a}"!`)}return!1}[he](e){return this.hasOwnProperty(e[x])&&e[w]===this[w]}[re](){return!1}[t](){return!1}[Q](){return!1}[ee](){return!1}[de](){this.para&&this[K]()[g].paraStack.pop()}[fe](){this[K]()[g].paraStack.push(this.para)}[me](e){this.id&&this[w]===a.NamespaceIds.template.id&&e.set(this.id,this)}[K](){return this[v].template}[ie](){return!1}[ne](){return!1}[s](e){(e[P]=this)[I].push(e),!e[v]&&this[v]&&(e[v]=this[v])}[ge](e){e=this[I].indexOf(e);this[I].splice(e,1)}[Y](){return this.hasOwnProperty("value")}[ye](e){}[ue](e){}[o](){}[r](e){delete this[Fe],this[l]&&(e.clean(this[l]),delete this[l])}[J](e){return this[I].indexOf(e)}[Z](e,t){(t[P]=this)[I].splice(e,0,t),!t[v]&&this[v]&&(t[v]=this[v])}[se](){return!this.name}[oe](){return""}[k](){return 0===this[I].length?this[d]:this[I].map(e=>e[k]()).join("")}get[F](){var e=Object.getPrototypeOf(this);if(!e._attributes){var t=e._attributes=new Set;for(const a of Object.getOwnPropertyNames(this)){if(null===this[a]||this[a]instanceof D||this[a]instanceof B)break;t.add(a)}}return(0,c.shadow)(this,F,e._attributes)}[ae](e){let t=this;for(;t;){if(t===e)return!0;t=t[y]()}return!1}[y](){return this[P]}[m](){return this[y]()}[b](){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[I]}[f](){var e=Object.create(null);this[d]&&(e.$content=this[d]);for(const a of Object.getOwnPropertyNames(this)){var t=this[a];null!==t&&(t instanceof D?e[a]=t[f]():t instanceof B?t.isEmpty()||(e[a]=t.dump()):e[a]=t)}return e}[A](){return null}[C](){return i.HTMLResult.EMPTY}*[V](){for(const e of this[b]())yield e}*[ke](e,t){for(const r of this[V]()){var a;e&&t!==e.has(r[x])||(a=this[H](),(a=r[C](a)).success||(this[g].failingNode=r),yield a)}}[$](){return null}[n](e,t){this[g].children.push(e)}[H](){}[_](e){var{filter:e=null,include:t=!0}=e;if(this[g].generator){var a=this[H](),a=this[g].failingNode[C](a);if(!a.success)return a;a.html&&this[n](a.html,a.bbox),delete this[g].failingNode}else this[g].generator=this[ke](e,t);for(;;){var r=this[g].generator.next();if(r.done)break;r=r.value;if(!r.success)return r;r.html&&this[n](r.html,r.bbox)}return this[g].generator=null,i.HTMLResult.EMPTY}[be](e){this[N]=new Set(Object.keys(e))}[Oe](e){const t=this[F],a=this[N];return[...e].filter(e=>t.has(e)&&!a.has(e))}[S](e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new Set;for(const a of this[I])a[E](e,t)}[E](e,t){var a=this[Ce](e,t);a?this[xe](a,e,t):this[S](e,t)}[Ce](e,t){var{use:a,usehref:r}=this;if(!a&&!r)return null;let i=null,n=null,s=null,o=a;if(r?(o=r).startsWith("#som(")&&r.endsWith(")")?n=r.slice("#som(".length,r.length-1):r.startsWith(".#som(")&&r.endsWith(")")?n=r.slice(".#som(".length,r.length-1):r.startsWith("#")?s=r.slice(1):r.startsWith(".#")&&(s=r.slice(2)):a.startsWith("#")?s=a.slice(1):n=a,this.use=this.usehref="",!(i=s?e.get(s):(i=(0,j.searchNode)(e.get(pe),this,n,!0,!1))&&i[0]))return(0,c.warn)(`XFA - Invalid prototype reference: ${o}.`),null;if(i[x]!==this[x])return(0,c.warn)(`XFA - Incompatible prototype: ${i[x]} !== ${this[x]}.`),null;if(t.has(i))return(0,c.warn)("XFA - Cycle detected in prototypes use."),null;t.add(i);r=i[Ce](e,t);return r&&i[xe](r,e,t),i[S](e,t),t.delete(i),i}[xe](a,r,i){if(i.has(a))(0,c.warn)("XFA - Cycle detected in prototypes use.");else{!this[d]&&a[d]&&(this[d]=a[d]),new Set(i).add(a);for(const e of this[Oe](a[N]))this[e]=a[e],this[N]&&this[N].add(e);for(const t of Object.getOwnPropertyNames(this))if(!this[F].has(t)){var n=this[t],s=a[t];if(n instanceof B){for(const l of n[I])l[E](r,i);for(let e=n[I].length,t=s[I].length;e<t;e++){var o=a[I][e][h]();if(!n.push(o))break;(o[P]=this)[I].push(o),o[E](r,i)}}else null!==n?(n[S](r,i),s&&n[xe](s,r,i)):null!==s&&(((s=s[h]())[P]=this)[t]=s,this[I].push(s),s[E](r,i))}}}static[Se](e){return Array.isArray(e)?e.map(e=>D[Se](e)):"object"==typeof e&&null!==e?Object.assign({},e):e}[h](){var e,t=Object.create(Object.getPrototypeOf(this));for(const i of Object.getOwnPropertySymbols(this))try{t[i]=this[i]}catch(e){(0,c.shadow)(t,i,this[i])}t[we]=""+t[x]+Me++,t[I]=[];for(const n of Object.getOwnPropertyNames(this))this[F].has(n)?t[n]=D[Se](this[n]):(e=this[n])instanceof B?t[n]=new B(e[M]):t[n]=null;for(const s of this[I]){var a=s[x],r=s[h]();t[I].push(r),null===(r[P]=t)[a]?t[a]=r:t[a][I].push(r)}return t}[b](){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return t?this[I].filter(e=>e[x]===t):this[I]}[q](e){return this[e]}[z](e,t){var a=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return Array.from(this[p](e,t,a))}*[p](e,t){var a=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if("parent"===e)yield this[P];else{for(const r of this[I])r[x]===e&&(yield r),r.name===e&&(yield r),(t||r[se]())&&(yield*r[p](e,t,!1));a&&this[F].has(e)&&(yield new Ee(this,e,this[e]))}}}e.XFAObject=D;class B{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1/0;this[M]=e,this[I]=[]}push(e){return this[I].length<=this[M]?(this[I].push(e),!0):((0,c.warn)(`XFA - node "${e[x]}" accepts no more than ${this[M]} children`),!1)}isEmpty(){return 0===this[I].length}dump(){return 1===this[I].length?this[I][0][f]():this[I].map(e=>e[f]())}[h](){var e=new B(this[M]);return e[I]=this[I].map(e=>e[h]()),e}get children(){return this[I]}clear(){this[I].length=0}}e.XFAObjectArray=B;class Ee{constructor(e,t,a){this[P]=e,this[x]=t,this[d]=a,this[u]=!1,this[we]="attribute"+Me++}[y](){return this[P]}[te](){return!0}[G](){return this[d].trim()}[ye](e){e=e.value||"",this[d]=e.toString()}[k](){return this[d]}[ae](e){return this[P]===e||this[P][ae](e)}}e.XFAAttribute=Ee;class Ne extends D{constructor(e,t){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(super(e,t),this[d]="",this[T]=null,"#text"!==t){var r,i,n=new Map;this[O]=n;for([r,i]of Object.entries(a))n.set(r,new Ee(this,r,i));a.hasOwnProperty(le)&&void 0!==(e=a[le].xfa.dataNode)&&("dataGroup"===e?this[T]=!1:"dataValue"===e&&(this[T]=!0))}this[u]=!1}[ve](e){var t=this[x];if("#text"===t)e.push((0,L.encodeToXmlString)(this[d]));else{var a,r,t=(0,c.utf8StringToString)(t),i=this[w]===Pe?"xfa:":"";e.push("<"+i+t);for([a,r]of this[O].entries()){var n=(0,c.utf8StringToString)(a);e.push(` ${n}="${(0,L.encodeToXmlString)(r[d])}"`)}if(null!==this[T]&&(this[T]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[d]||0!==this[I].length){if(e.push(">"),this[d])"string"==typeof this[d]?e.push((0,L.encodeToXmlString)(this[d])):this[d][ve](e);else for(const s of this[I])s[ve](e);e.push(`</${i}${t}>`)}else e.push("/>")}}[ce](e){var t;return this[d]&&(t=new Ne(this[w],"#text"),this[s](t),t[d]=this[d],this[d]=""),this[s](e),!0}[ue](e){this[d]+=e}[o](){var e;this[d]&&0<this[I].length&&(e=new Ne(this[w],"#text"),this[s](e),e[d]=this[d],delete this[d])}[C](){return"#text"===this[x]?i.HTMLResult.success({name:"#text",value:this[d]}):i.HTMLResult.EMPTY}[b](){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return t?this[I].filter(e=>e[x]===t):this[I]}[X](){return this[O]}[q](e){var t=this[O].get(e);return void 0!==t?t:this[b](e)}*[p](e,t){var a=this[O].get(e);a&&(yield a);for(const r of this[I])r[x]===e&&(yield r),t&&(yield*r[p](e,t))}*[U](e,t){var a=this[O].get(e);!a||t&&a[u]||(yield a);for(const r of this[I])yield*r[U](e,t)}*[W](e,t,a){for(const r of this[I])r[x]!==e||a&&r[u]||(yield r),t&&(yield*r[W](e,t,a))}[te](){return null===this[T]?0===this[I].length||this[I][0][w]===a.NamespaceIds.xhtml.id:this[T]}[G](){return null!==this[T]||0===this[I].length?this[d].trim():this[I][0][w]===a.NamespaceIds.xhtml.id?this[I][0][k]().trim():null}[ye](e){e=e.value||"",this[d]=e.toString()}[f](){var e,t,a=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=Object.create(null);a&&(r.$ns=this[w]),this[d]&&(r.$content=this[d]),r.$name=this[x],r.children=[];for(const i of this[I])r.children.push(i[f](a));r.attributes=Object.create(null);for([e,t]of this[O])r.attributes[e]=t[d];return r}}e.XmlObject=Ne;class De extends D{constructor(e,t){super(e,t),this[d]=""}[ue](e){this[d]+=e}[o](){}}class Be extends(e.ContentObject=De){constructor(e,t,a){super(e,t),this[Ie]=a}[o](){this[d]=(0,i.getKeyword)({data:this[d],defaultValue:this[Ie][0],validate:e=>this[Ie].includes(e)})}[r](e){super[r](e),delete this[Ie]}}e.OptionObject=Be;e.StringObject=class extends De{[o](){this[d]=this[d].trim()}};class Re extends De{constructor(e,t,a,r){super(e,t),this[Ae]=a,this[Te]=r}[o](){this[d]=(0,i.getInteger)({data:this[d],defaultValue:this[Ae],validate:this[Te]})}[r](e){super[r](e),delete this[Ae],delete this[Te]}}e.IntegerObject=Re;e.Option01=class extends Re{constructor(e,t){super(e,t,0,e=>1===e)}};e.Option10=class extends Re{constructor(e,t){super(e,t,1,e=>0===e)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){if(!e)return{x:-1,y:-1,width:-1,height:-1};e=e.trim().split(/\s*,\s*/).map(e=>o(e,"-1"));if(e.length<4||e[2]<0||e[3]<0)return{x:-1,y:-1,width:-1,height:-1};var[e,t,a,r]=e;return{x:e,y:t,width:a,height:r}},t.getColor=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0,0,0],[t,a,r]=t;return!e||(e=e.trim().split(/\s*,\s*/).map(e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255)).map(e=>isNaN(e)?0:e)).length<3||([t,a,r]=e),{r:t,g:a,b:r}},t.getFloat=function(e){let{data:t,defaultValue:a,validate:r}=e;if(!t)return a;t=t.trim();e=parseFloat(t);return isNaN(e)||!r(e)?a:e},t.getInteger=function(e){let{data:t,defaultValue:a,validate:r}=e;if(!t)return a;t=t.trim();e=parseInt(t,10);return isNaN(e)||!r(e)?a:e},t.getKeyword=s,t.getMeasurement=o,t.getRatio=function(e){if(!e)return{num:1,den:1};e=e.trim().split(/\s*:\s*/).map(e=>parseFloat(e)).filter(e=>!isNaN(e));1===e.length&&e.push(1);if(0===e.length)return{num:1,den:1};var[e,t]=e;return{num:e,den:t}},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map(e=>({excluded:"-"===e[0],viewname:e.substring(1)})):[]},t.getStringOption=function(e,t){return s({data:e,defaultValue:t[0],validate:e=>t.includes(e)})},t.stripQuotes=function(e){if(e.startsWith("'")||e.startsWith('"'))return e.slice(1,e.length-1);return e};var r=a(2);const i={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},n=/([+-]?\d+\.?\d*)(.*)/;function s(e){let{data:t,defaultValue:a,validate:r}=e;return t&&(t=t.trim(),r(t))?t:a}function o(e){var t,a=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"0")||"0";return!e||!(e=e.trim().match(n))||([,e,t]=e,e=parseFloat(e),isNaN(e))?o(a):0===e?0:(t=i[t])?t(e):e}t.HTMLResult=class l{static get FAILURE(){return(0,r.shadow)(this,"FAILURE",new l(!1,null,null,null))}static get EMPTY(){return(0,r.shadow)(this,"EMPTY",new l(!0,null,null,null))}constructor(e,t,a,r){this.success=e,this.html=t,this.bbox=a,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(e){return new l(!1,null,null,e)}static success(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return new l(!0,e,t,null)}}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;var a=Symbol();t.$buildXFAObject=a;t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(a,e,r){var i=v(r);if(i&&!i.some(e=>e.operator===m.dotDot)){r=b.get(i[0].name);let t=0;r?(a=r(a,e),t=1):a=e||a;for(var n=i.length;t<n;t++){var{name:s,operator:o,index:l}=i[t];if(!isFinite(l))return i[t].index=0,c(a,i.slice(t));let e;switch(o){case m.dot:e=a[p.$getChildrenByName](s,!1);break;case m.dotDot:e=a[p.$getChildrenByName](s,!0);break;case m.dotHash:e=(e=a[p.$getChildrenByClass](s))instanceof p.XFAObjectArray?e.children:[e]}if(0===e.length)return c(a,i.slice(t));if(!(l<e.length))return i[t].index=l-e.length,c(a,i.slice(t));o=e[l];if(!(o instanceof p.XFAObject))return(0,h.warn)("XFA - Cannot create a node."),null;a=o}}return null},t.searchNode=function(e,t,a){var r=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],i=!(4<arguments.length&&void 0!==arguments[4])||arguments[4];var n=v(a,r);if(!n)return null;a=b.get(n[0].name);let s=0,o;a?(o=!0,e=[a(e,t)],s=1):(o=null===t,e=[t||e]);for(var l=n.length;s<l;s++){const{name:h,cacheName:u,operator:d,index:f}=n[s];var c=[];for(const g of e)if(g instanceof p.XFAObject){let e,t;if(i&&((t=y.get(g))||(t=new Map,y.set(g,t)),e=t.get(u)),!e){switch(d){case m.dot:e=g[p.$getChildrenByName](h,!1);break;case m.dotDot:e=g[p.$getChildrenByName](h,!0);break;case m.dotHash:e=(e=g[p.$getChildrenByClass](h))instanceof p.XFAObjectArray?e.children:[e]}i&&t.set(u,e)}0<e.length&&c.push(e)}if(0!==c.length||o||0!==s)e=isFinite(f)?c.filter(e=>f<e.length).map(e=>e[f]):c.flat();else{if(!(t=t[p.$getParent]()))return null;s=-1,e=[t]}}return 0!==e.length?e:null};var p=a(206),t=a(208),h=a(2);const u=/^[^.[]+/,d=/^[^\]]+/,m={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},b=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[p.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),y=new WeakMap,o=t.NamespaceIds.datasets.id;function v(t,a,e){var r=!(2<arguments.length&&void 0!==e)||e;let i=t.match(u);if(!i)return null;var n,[s]=i,o=[{name:s,cacheName:"."+s,index:0,js:null,formCalc:null,operator:m.dot}];let l=s.length;for(;l<t.length;){var c=l;if("["===t.charAt(l++)){if(!(i=t.slice(l).match(d)))return(0,h.warn)("XFA - Invalid index in SOM expression"),null;o.at(-1).index="*"===(n=(n=i[0]).trim())?1/0:parseInt(n,10)||0,l+=i[0].length+1}else{let e;switch(t.charAt(l)){case".":if(!a)return null;l++,e=m.dotDot;break;case"#":l++,e=m.dotHash;break;case"[":if(r)return(0,h.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;e=m.dotBracket;break;case"(":if(r)return(0,h.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;e=m.dotParen;break;default:e=m.dot}if(!(i=t.slice(l).match(u)))break;[s]=i,l+=s.length,o.push({name:s,cacheName:t.slice(c,l),operator:e,index:0,js:null,formCalc:null})}}return o}function c(a,e){let r=null;for(var{name:i,index:n}of e){for(let e=0,t=isFinite(n)?n:0;e<=t;e++){var s=a[p.$namespaceId]===o?-1:a[p.$namespaceId];r=new p.XmlObject(s,i),a[p.$appendChild](r)}a=r}return r}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var f=a(206),g=a(211),p=a(209),s=a(208),m=a(2);const d=s.NamespaceIds.datasets.id;function b(e){var t=new g.Text({});return t[f.$content]=e,t}t.Binder=class{constructor(e){this.root=e,this.datasets=e.datasets,e.datasets&&e.datasets.data?this.data=e.datasets.data:this.data=new f.XmlObject(s.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[f.$getChildren]().length,this.root.form=this.form=e.template[f.$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(e,t,a){var r;e[f.$data]=t,e[f.$hasSettableValue]()?t[f.$isDataValue]()?(r=t[f.$getDataValue](),e[f.$setValue](b(r))):e instanceof g.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open?(r=t[f.$getChildren]().map(e=>e[f.$content].trim()).join("\n"),e[f.$setValue](b(r))):this._isConsumeData()&&(0,m.warn)("XFA - Nodes haven't the same type."):!t[f.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,m.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(t,a,r,e){if(!t)return null;let i,n;for(let e=0;e<3;e++){for(i=r[f.$getRealChildrenByNameIt](t,!1,!0);;){if(!(n=i.next().value))break;if(a===n[f.$isDataValue]())return n}if(r[f.$namespaceId]===s.NamespaceIds.datasets.id&&"data"===r[f.$nodeName])break;r=r[f.$getParent]()}return e?(i=this.data[f.$getRealChildrenByNameIt](t,!0,!1),(n=i.next().value)||(i=this.data[f.$getAttributeIt](t,!0),(n=i.next().value)&&n[f.$isDataValue]()?n:null)):null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(var{ref:a,target:r,connection:i}of e.setProperty.children){var n,s,o,l,c;i||a&&((i=(0,p.searchNode)(this.root,t,a,!1,!1))?([i]=i,i[f.$isDescendent](this.data)?(n=(0,p.searchNode)(this.root,e,r,!1,!1))?([n]=n,n[f.$isDescendent](e)?(s=n[f.$getParent](),n instanceof g.SetProperty||s instanceof g.SetProperty?(0,m.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties."):n instanceof g.BindItems||s instanceof g.BindItems?(0,m.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties."):(o=i[f.$text](),l=n[f.$nodeName],n instanceof f.XFAAttribute?((c=Object.create(null))[l]=o,c=Reflect.construct(Object.getPrototypeOf(s).constructor,[c]),s[l]=c[l]):n.hasOwnProperty(f.$content)?(n[f.$data]=i,n[f.$content]=o,n[f.$finalize]()):(0,m.warn)("XFA - Invalid node to use in setProperty"))):(0,m.warn)("XFA - Invalid target: must be a property or subproperty.")):(0,m.warn)(`XFA - Invalid target: ${r}.`):(0,m.warn)("XFA - Invalid node: must be a data node.")):(0,m.warn)(`XFA - Invalid reference: ${a}.`))}}_bindItems(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){for(const u of e.items.children)e[f.$removeChild](u);e.items.clear();var a,r,i,n,s=new g.Items({}),o=new g.Items({});e[f.$appendChild](s),e.items.push(s),e[f.$appendChild](o),e.items.push(o);for({ref:a,labelRef:r,valueRef:i,connection:n}of e.bindItems.children)if(!n&&a){var l,c,h=(0,p.searchNode)(this.root,t,a,!1,!1);if(h)for(const d of h)d[f.$isDescendent](this.datasets)?(l=(0,p.searchNode)(this.root,d,r,!0,!1))?([l]=l,l[f.$isDescendent](this.datasets)?(c=(0,p.searchNode)(this.root,d,i,!0,!1))?([c]=c,c[f.$isDescendent](this.datasets)?(l=b(l[f.$text]()),c=b(c[f.$text]()),s[f.$appendChild](l),s.text.push(l),o[f.$appendChild](c),o.text.push(c)):(0,m.warn)("XFA - Invalid value: must be a datasets child.")):(0,m.warn)(`XFA - Invalid value: ${i}.`):(0,m.warn)("XFA - Invalid label: must be a datasets child.")):(0,m.warn)(`XFA - Invalid label: ${r}.`):(0,m.warn)(`XFA - Invalid ref (${a}): must be a datasets child.`);else(0,m.warn)(`XFA - Invalid reference: ${a}.`)}}}_bindOccurrences(e,a,r){let i;if(1<a.length&&((i=e[f.$clone]())[f.$removeChild](i.occur),i.occur=null),this._bindValue(e,a[0],r),this._setProperties(e,a[0]),this._bindItems(e,a[0]),1!==a.length){var n=e[f.$getParent](),s=e[f.$nodeName],o=n[f.$indexOf](e);for(let e=1,t=a.length;e<t;e++){var l=a[e],c=i[f.$clone]();n[s].push(c),n[f.$insertAt](o+e,c),this._bindValue(c,l,r),this._setProperties(c,l),this._bindItems(c,l)}}}_createOccurrences(t){if(this.emptyMerge){var a=t["occur"];if(a&&!(a.initial<=1)){var r=t[f.$getParent](),i=t[f.$nodeName];if(r[i]instanceof f.XFAObjectArray){let e;e=(t.name?r[i].children.filter(e=>e.name===t.name):r[i].children).length;var n=r[f.$indexOf](t)+1,s=a.initial-e;if(s){var o=t[f.$clone]();o[f.$removeChild](o.occur),o.occur=null,r[i].push(o),r[f.$insertAt](n,o);for(let e=1;e<s;e++){var l=o[f.$clone]();r[i].push(l),r[f.$insertAt](n+e,l)}}}}}}_getOccurInfo(e){var{name:e,occur:t}=e;return t&&e?(e=-1===t.max?1/0:t.max,[t.min,e]):[1,1]}_setAndBind(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}_bindElement(e,i){var n=[];this._createOccurrences(e);for(const u of e[f.$getChildren]())if(!u[f.$data])if(void 0===this._mergeMode&&"subform"===u[f.$nodeName]){this._mergeMode="consumeData"===u.mergeMode;var s=i[f.$getChildren]();0<s.length?this._bindOccurrences(u,[s[0]],null):this.emptyMerge&&(s=i[f.$namespaceId]===d?-1:i[f.$namespaceId],s=u[f.$data]=new f.XmlObject(s,u.name||"root"),i[f.$appendChild](s),this._bindElement(u,s))}else if(u[f.$isBindable]()){let e=!1,t=null,a=null,r=null;if(u.bind){switch(u.bind.match){case"none":this._setAndBind(u,i);continue;case"global":e=!0;break;case"dataRef":if(!u.bind.ref){(0,m.warn)(`XFA - ref is empty in node ${u[f.$nodeName]}.`),this._setAndBind(u,i);continue}a=u.bind.ref}u.bind.picture&&(t=u.bind.picture[f.$content])}var[s,o]=this._getOccurInfo(u);if(a){if(null===(r=(0,p.searchNode)(this.root,i,a,!0,!1))){if(!(r=(0,p.createDataNode)(this.data,i,a)))continue;this._isConsumeData()&&(r[f.$consumed]=!0),this._setAndBind(u,r);continue}(r=this._isConsumeData()?r.filter(e=>!e[f.$consumed]):r).length>o?r=r.slice(0,o):0===r.length&&(r=null),r&&this._isConsumeData()&&r.forEach(e=>{e[f.$consumed]=!0})}else{if(!u.name){this._setAndBind(u,i);continue}if(this._isConsumeData()){for(var l=[];l.length<o;){var c=this._findDataByNameToConsume(u.name,u[f.$hasSettableValue](),i,e);if(!c)break;c[f.$consumed]=!0,l.push(c)}r=0<l.length?l:null}else{if(!(r=i[f.$getRealChildrenByNameIt](u.name,!1,this.emptyMerge).next().value)){if(0===s){n.push(u);continue}var h=i[f.$namespaceId]===d?-1:i[f.$namespaceId];r=u[f.$data]=new f.XmlObject(h,u.name),this.emptyMerge&&(r[f.$consumed]=!0),i[f.$appendChild](r),this._setAndBind(u,r);continue}this.emptyMerge&&(r[f.$consumed]=!0),r=[r]}}r?this._bindOccurrences(u,r,t):0<s?this._setAndBind(u,i):n.push(u)}n.forEach(e=>e[f.$getParent]()[f.$removeChild](e))}}},(R,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Value=e.Text=e.TemplateNamespace=e.Template=e.SetProperty=e.Items=e.Field=e.BindItems=void 0;var w=t(206),a=t(208),p=t(212),m=t(213),x=t(207),S=t(2),L=t(214),j=t(135),_=t(209);const r=a.NamespaceIds.template.id,h="http://www.w3.org/2000/svg",$=/^H(\d+)$/,U=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 g(e){return e&&e.border&&(e=e.border[w.$getExtra]())?{w:e.widths[0]+e.widths[2]+e.insets[0]+e.insets[2],h:e.widths[1]+e.widths[3]+e.insets[1]+e.insets[3]}:{w:0,h:0}}function u(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function i(e,t){var a;e.value||(a=new D({}),e[w.$appendChild](a),e.value=a),e.value[w.$setValue](t)}function*n(e){for(const t of e[w.$getChildren]())t instanceof P?yield*t[w.$getContainedChildren]():yield t}function d(e){return e.validate&&"error"===e.validate.nullTest}function b(t){for(;t;){if(!t.traversal)return void(t[w.$tabIndex]=t[w.$getParent]()[w.$tabIndex]);if(t[w.$tabIndex])return;let e=null;for(const r of t.traversal[w.$getChildren]())if("next"===r.operation){e=r;break}if(!e||!e.ref)return void(t[w.$tabIndex]=t[w.$getParent]()[w.$tabIndex]);var a=t[w.$getTemplateRoot](),a=(t[w.$tabIndex]=++a[w.$tabIndex],a[w.$searchNode](e.ref,t));if(!a)return;t=a[0]}}function y(e,t){var a,r=e.assist;r&&((a=r[w.$toHTML]())&&(t.title=a),a=r.role.match($))&&(r=a[1],t.role="heading",t["aria-level"]=r),"table"===e.layout?t.role="table":"row"===e.layout?t.role="row":"row"===(a=e[w.$getParent]()).layout&&(a.assist&&"TH"===a.assist.role?t.role="columnheader":t.role="cell")}function f(e){return e.assist?(e=e.assist).speak&&""!==e.speak[w.$content]?e.speak[w.$content]:e.toolTip?e.toolTip[w.$content]:null:null}function s(e){return x.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function v(e){var t=e[w.$getTemplateRoot]();null===t[w.$extra].firstUnsplittable&&(t[w.$extra].firstUnsplittable=e,t[w.$extra].noLayoutFailure=!0)}function A(e){var t=e[w.$getTemplateRoot]();t[w.$extra].firstUnsplittable===e&&(t[w.$extra].noLayoutFailure=!1)}function k(r){if(!r[w.$extra]&&(r[w.$extra]=Object.create(null),"auto"!==r.targetType)){var i=r[w.$getTemplateRoot]();let e=null;if(r.target){if(!(e=i[w.$searchNode](r.target,r[w.$getParent]())))return;e=e[0]}var{currentPageArea:i,currentContentArea:n}=i[w.$extra];if("pageArea"===r.targetType)return e instanceof T||(e=null),r.startNew?(r[w.$extra].target=e||i,1):e&&e!==i&&(r[w.$extra].target=e,1);var s,o=(e=e instanceof O?e:null)&&e[w.$getParent]();let t,a=o;if(r.startNew)t=e?(l=(s=o.contentArea.children).indexOf(n),s=s.indexOf(e),-1!==l&&l<s&&(a=null),s-1):i.contentArea.children.indexOf(n);else{if(!e||e===n)return;var l=o.contentArea.children;t=l.indexOf(e)-1,a=o===i?null:o}return r[w.$extra].target=a,r[w.$extra].index=t,1}}function C(e,t,a){var r=e[w.$getTemplateRoot](),i=r[w.$extra].noLayoutFailure,n=t[w.$getSubformParent],a=(t[w.$getSubformParent]=()=>e,r[w.$extra].noLayoutFailure=!0,t[w.$toHTML](a));e[w.$addHTML](a.html,a.bbox),r[w.$extra].noLayoutFailure=i,t[w.$getSubformParent]=n}class H extends w.StringObject{constructor(e){super(r,"appearanceFilter"),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class o extends w.XFAObject{constructor(e){super(r,"arc",!0),this.circular=(0,x.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e}),this.hand=(0,x.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.startAngle=(0,x.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=(0,x.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null,this.fill=null}[w.$toHTML](){var e=this.edge||new F({}),t=e[w.$toStyle](),a=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(a,this.fill[w.$toStyle]()):a.fill="transparent",a.strokeWidth=(0,m.measureToString)("visible"===e.presence?e.thickness:0),a.stroke=t.color;let r;var i,n,s,o,e={xmlns:h,style:{width:"100%",height:"100%",overflow:"visible"}},t=(360===this.sweepAngle?r={name:"ellipse",attributes:{xmlns:h,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:a}}:(t=this.startAngle*Math.PI/180,n=this.sweepAngle*Math.PI/180,i=180<this.sweepAngle?1:0,[t,n,s,o]=[50*(1+Math.cos(t)),50*(1-Math.sin(t)),50*(1+Math.cos(t+n)),50*(1-Math.sin(t+n))],r={name:"path",attributes:{xmlns:h,d:`M ${t} ${n} A 50 50 0 ${i} 0 ${s} `+o,vectorEffect:"non-scaling-stroke",style:a}},Object.assign(e,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})),{name:"svg",children:[r],attributes:e});return u(this[w.$getParent]()[w.$getParent]())?x.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[t]}):(t.attributes.style.position="absolute",x.HTMLResult.success(t))}}class q extends w.XFAObject{constructor(e){super(r,"area",!0),this.colSpan=(0,x.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.x=(0,x.getMeasurement)(e.x,"0pt"),this.y=(0,x.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null,this.area=new w.XFAObjectArray,this.draw=new w.XFAObjectArray,this.exObject=new w.XFAObjectArray,this.exclGroup=new w.XFAObjectArray,this.field=new w.XFAObjectArray,this.subform=new w.XFAObjectArray,this.subformSet=new w.XFAObjectArray}*[w.$getContainedChildren](){yield*n(this)}[w.$isTransparent](){return!0}[w.$isBindable](){return!0}[w.$addHTML](e,t){var[t,a,r,i]=t;this[w.$extra].width=Math.max(this[w.$extra].width,t+r),this[w.$extra].height=Math.max(this[w.$extra].height,a+i),this[w.$extra].children.push(e)}[w.$getAvailableSpace](){return this[w.$extra].availableSpace}[w.$toHTML](e){var t=(0,m.toStyle)(this,"position"),a={style:t,id:this[w.$uid],class:["xfaArea"]},r=((0,m.isPrintOnly)(this)&&a.class.push("xfaPrintOnly"),this.name&&(a.xfaName=this.name),[]),e=(this[w.$extra]={children:r,width:0,height:0,availableSpace:e},this[w.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0}));if(!e.success)return e.isBreak()?e:(delete this[w.$extra],x.HTMLResult.FAILURE);t.width=(0,m.measureToString)(this[w.$extra].width),t.height=(0,m.measureToString)(this[w.$extra].height);e={name:"div",attributes:a,children:r},t=[this.x,this.y,this[w.$extra].width,this[w.$extra].height];return delete this[w.$extra],x.HTMLResult.success(e,t)}}class z extends w.XFAObject{constructor(e){super(r,"assist",!0),this.id=e.id||"",this.role=e.role||"",this.use=e.use||"",this.usehref=e.usehref||"",this.speak=null,this.toolTip=null}[w.$toHTML](){return this.toolTip&&this.toolTip[w.$content]?this.toolTip[w.$content]:null}}class G extends w.XFAObject{constructor(e){super(r,"barcode",!0),this.charEncoding=(0,x.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.checksum=(0,x.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,x.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>0<=e}),this.dataLength=(0,x.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>0<=e}),this.dataPrep=(0,x.getStringOption)(e.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,x.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>0<=e}),this.endChar=e.endChar||"",this.errorCorrectionLevel=(0,x.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>0<=e&&e<=8}),this.id=e.id||"",this.moduleHeight=(0,x.getMeasurement)(e.moduleHeight,"5mm"),this.moduleWidth=(0,x.getMeasurement)(e.moduleWidth,"0.25mm"),this.printCheckDigit=(0,x.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e}),this.rowColumnRatio=(0,x.getRatio)(e.rowColumnRatio),this.startChar=e.startChar||"",this.textLocation=(0,x.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,x.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e}),this.type=(0,x.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,x.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=e.use||"",this.usehref=e.usehref||"",this.wideNarrowRatio=(0,x.getRatio)(e.wideNarrowRatio),this.encrypt=null,this.extras=null}}class W extends w.XFAObject{constructor(e){super(r,"bind",!0),this.match=(0,x.getStringOption)(e.match,["once","dataRef","global","none"]),this.ref=e.ref||"",this.picture=null}}class l extends w.XFAObject{constructor(e){super(r,"bindItems"),this.connection=e.connection||"",this.labelRef=e.labelRef||"",this.ref=e.ref||"",this.valueRef=e.valueRef||""}}e.BindItems=l;class V extends w.XFAObject{constructor(e){super(r,"bookend"),this.id=e.id||"",this.leader=e.leader||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}}class K extends w.Option01{constructor(e){super(r,"boolean"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$toHTML](e){return s(1===this[w.$content]?"1":"0")}}class c extends w.XFAObject{constructor(e){super(r,"border",!0),this.break=(0,x.getStringOption)(e.break,["close","open"]),this.hand=(0,x.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new w.XFAObjectArray(4),this.edge=new w.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[w.$getExtra](){if(!this[w.$extra]){var t=this.edge.children.slice();if(t.length<4){var a=t.at(-1)||new F({});for(let e=t.length;e<4;e++)t.push(a)}var e=t.map(e=>e.thickness),r=[0,0,0,0];this.margin&&(r[0]=this.margin.topInset,r[1]=this.margin.rightInset,r[2]=this.margin.bottomInset,r[3]=this.margin.leftInset),this[w.$extra]={widths:e,insets:r,edges:t}}return this[w.$extra]}[w.$toStyle](){var e=this[w.$getExtra]()["edges"],t=e.map(e=>{e=e[w.$toStyle]();return e.color=e.color||"#000000",e}),a=Object.create(null);if(this.margin&&Object.assign(a,this.margin[w.$toStyle]()),this.fill&&"visible"===this.fill.presence&&Object.assign(a,this.fill[w.$toStyle]()),this.corner.children.some(e=>0!==e.radius)){var r=this.corner.children.map(e=>e[w.$toStyle]());if(2===r.length||3===r.length){var i=r.at(-1);for(let e=r.length;e<4;e++)r.push(i)}a.borderRadius=r.map(e=>e.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":a.borderStyle="";break;case"inactive":a.borderStyle="none";break;default:a.borderStyle=t.map(e=>e.style).join(" ")}return a.borderWidth=t.map(e=>e.width).join(" "),a.borderColor=t.map(e=>e.color).join(" "),a}}class Y extends w.XFAObject{constructor(e){super(r,"break",!0),this.after=(0,x.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=e.afterTarget||"",this.before=(0,x.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=e.beforeTarget||"",this.bookendLeader=e.bookendLeader||"",this.bookendTrailer=e.bookendTrailer||"",this.id=e.id||"",this.overflowLeader=e.overflowLeader||"",this.overflowTarget=e.overflowTarget||"",this.overflowTrailer=e.overflowTrailer||"",this.startNew=(0,x.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class J extends w.XFAObject{constructor(e){super(r,"breakAfter",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,x.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,x.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}}class Z extends w.XFAObject{constructor(e){super(r,"breakBefore",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,x.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,x.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}[w.$toHTML](e){return this[w.$extra]={},x.HTMLResult.FAILURE}}class Q extends w.XFAObject{constructor(e){super(r,"button",!0),this.highlight=(0,x.getStringOption)(e.highlight,["inverted","none","outline","push"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[w.$toHTML](e){var t,a,r=this[w.$getParent]()[w.$getParent](),i={name:"button",attributes:{id:this[w.$uid],class:["xfaButton"],style:{}},children:[]};for(const n of r.event.children)"click"===n.activity&&n.script&&(t=(0,j.recoverJsURL)(n.script[w.$content]))&&(a=(0,m.fixURL)(t.url))&&i.children.push({name:"a",attributes:{id:"link"+this[w.$uid],href:a,newWindow:t.newWindow,class:["xfaLink"],style:{}},children:[]});return x.HTMLResult.success(i)}}class ee extends w.XFAObject{constructor(e){super(r,"calculate",!0),this.id=e.id||"",this.override=(0,x.getStringOption)(e.override,["disabled","error","ignore","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.script=null}}class te extends w.XFAObject{constructor(e){super(r,"caption",!0),this.id=e.id||"",this.placement=(0,x.getStringOption)(e.placement,["left","bottom","inline","right","top"]),this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,x.getMeasurement)(e.reserve)),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[w.$setValue](e){i(this,e)}[w.$getExtra](a){if(!this[w.$extra]){let{width:e,height:t}=a;switch(this.placement){case"left":case"right":case"inline":e=this.reserve<=0?e:this.reserve;break;case"top":case"bottom":t=this.reserve<=0?t:this.reserve}this[w.$extra]=(0,m.layoutNode)(this,{width:e,height:t})}return this[w.$extra]}[w.$toHTML](e){if(!this.value)return x.HTMLResult.EMPTY;this[w.$pushPara]();var t=this.value[w.$toHTML](e).html;if(!t)return this[w.$popPara](),x.HTMLResult.EMPTY;var a=this.reserve;if(this.reserve<=0){var{w:r,h:i}=this[w.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=r;break;case"top":case"bottom":this.reserve=i}}var e=[],n=(e.push("string"==typeof t?{name:"#text",value:t}:t),(0,m.toStyle)(this,"font","margin","visibility"));switch(this.placement){case"left":case"right":0<this.reserve&&(n.width=(0,m.measureToString)(this.reserve));break;case"top":case"bottom":0<this.reserve&&(n.height=(0,m.measureToString)(this.reserve))}return(0,m.setPara)(this,null,t),this[w.$popPara](),this.reserve=a,x.HTMLResult.success({name:"div",attributes:{style:n,class:["xfaCaption"]},children:e})}}class ae extends w.StringObject{constructor(e){super(r,"certificate"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class re extends w.XFAObject{constructor(e){super(r,"certificates",!0),this.credentialServerPolicy=(0,x.getStringOption)(e.credentialServerPolicy,["optional","required"]),this.id=e.id||"",this.url=e.url||"",this.urlPolicy=e.urlPolicy||"",this.use=e.use||"",this.usehref=e.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class ie extends w.XFAObject{constructor(e){super(r,"checkButton",!0),this.id=e.id||"",this.mark=(0,x.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,x.getStringOption)(e.shape,["square","round"]),this.size=(0,x.getMeasurement)(e.size,"10pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[w.$toHTML](e){var t=(0,m.toStyle)("margin"),a=(0,m.measureToString)(this.size);t.width=t.height=a;let r,i,n;var a=this[w.$getParent]()[w.$getParent](),s=a.items.children.length&&a.items.children[0][w.$toHTML]().html||[],s={on:(void 0!==s[0]?s[0]:"on").toString(),off:(void 0!==s[1]?s[1]:"off").toString()},o=(a.value&&a.value[w.$text]()||"off")===s.on||void 0,l=a[w.$getSubformParent](),c=a[w.$uid];let h;h=l instanceof Te?(n=l[w.$uid],r="radio",i="xfaRadio",l[w.$data]&&l[w.$data][w.$uid]||l[w.$uid]):(r="checkbox",i="xfaCheckbox",a[w.$data]&&a[w.$data][w.$uid]||a[w.$uid]);l={name:"input",attributes:{class:[i],style:t,fieldId:c,dataId:h,type:r,checked:o,xfaOn:s.on,xfaOff:s.off,"aria-label":f(a),"aria-required":!1}};return n&&(l.attributes.name=n),d(a)&&(l.attributes["aria-required"]=!0,l.attributes.required=!0),x.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[l]})}}class ne extends w.XFAObject{constructor(e){super(r,"choiceList",!0),this.commitOn=(0,x.getStringOption)(e.commitOn,["select","exit"]),this.id=e.id||"",this.open=(0,x.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,x.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[w.$toHTML](e){var t=(0,m.toStyle)(this,"border","margin"),r=this[w.$getParent]()[w.$getParent](),i={fontSize:`calc(${r.font&&r.font.size||10}px * var(--scale-factor))`},n=[];if(0<r.items.children.length){var s=r.items;let e=0,t=0;2===s.children.length&&(e=s.children[0].save,t=1-e);var o=s.children[e][w.$toHTML]().html,l=s.children[t][w.$toHTML]().html;let a=!1;var c=r.value&&r.value[w.$text]()||"";for(let e=0,t=o.length;e<t;e++){var h={name:"option",attributes:{value:l[e]||o[e],style:i},value:o[e]};l[e]===c&&(h.attributes.selected=a=!0),n.push(h)}a||n.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}s={class:["xfaSelect"],fieldId:r[w.$uid],dataId:r[w.$data]&&r[w.$data][w.$uid]||r[w.$uid],style:t,"aria-label":f(r),"aria-required":!1};return d(r)&&(s["aria-required"]=!0,s.required=!0),"multiSelect"===this.open&&(s.multiple=!0),x.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:n,attributes:s}]})}}class se extends w.XFAObject{constructor(e){super(r,"color",!0),this.cSpace=(0,x.getStringOption)(e.cSpace,["SRGB"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.value=e.value?(0,x.getColor)(e.value):"",this.extras=null}[w.$hasSettableValue](){return!1}[w.$toStyle](){return this.value?S.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class oe extends w.XFAObject{constructor(e){super(r,"comb"),this.id=e.id||"",this.numberOfCells=(0,x.getInteger)({data:e.numberOfCells,defaultValue:0,validate:e=>0<=e}),this.use=e.use||"",this.usehref=e.usehref||""}}class le extends w.XFAObject{constructor(e){super(r,"connect",!0),this.connection=e.connection||"",this.id=e.id||"",this.ref=e.ref||"",this.usage=(0,x.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),this.use=e.use||"",this.usehref=e.usehref||"",this.picture=null}}class O extends w.XFAObject{constructor(e){super(r,"contentArea",!0),this.h=(0,x.getMeasurement)(e.h),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=(0,x.getMeasurement)(e.w),this.x=(0,x.getMeasurement)(e.x,"0pt"),this.y=(0,x.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null}[w.$toHTML](e){var t={left:(0,m.measureToString)(this.x),top:(0,m.measureToString)(this.y),width:(0,m.measureToString)(this.w),height:(0,m.measureToString)(this.h)},a=["xfaContentarea"];return(0,m.isPrintOnly)(this)&&a.push("xfaPrintOnly"),x.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:a,id:this[w.$uid]}})}}class ce extends w.XFAObject{constructor(e){super(r,"corner",!0),this.id=e.id||"",this.inverted=(0,x.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e}),this.join=(0,x.getStringOption)(e.join,["square","round"]),this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,x.getMeasurement)(e.radius),this.stroke=(0,x.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,x.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[w.$toStyle](){var e=(0,m.toStyle)(this,"visibility");return e.radius=(0,m.measureToString)("square"===this.join?0:this.radius),e}}class he extends w.ContentObject{constructor(e){super(r,"date"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){var e=this[w.$content].trim();this[w.$content]=e?new Date(e):null}[w.$toHTML](e){return s(this[w.$content]?this[w.$content].toString():"")}}class ue extends w.ContentObject{constructor(e){super(r,"dateTime"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){var e=this[w.$content].trim();this[w.$content]=e?new Date(e):null}[w.$toHTML](e){return s(this[w.$content]?this[w.$content].toString():"")}}class de extends w.XFAObject{constructor(e){super(r,"dateTimeEdit",!0),this.hScrollPolicy=(0,x.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.picker=(0,x.getStringOption)(e.picker,["host","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[w.$toHTML](e){var t=(0,m.toStyle)(this,"border","font","margin"),a=this[w.$getParent]()[w.$getParent](),t={name:"input",attributes:{type:"text",fieldId:a[w.$uid],dataId:a[w.$data]&&a[w.$data][w.$uid]||a[w.$uid],class:["xfaTextfield"],style:t,"aria-label":f(a),"aria-required":!1}};return d(a)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),x.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}class fe extends w.ContentObject{constructor(e){super(r,"decimal"),this.fracDigits=(0,x.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||"",this.leadDigits=(0,x.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){var e=parseFloat(this[w.$content].trim());this[w.$content]=isNaN(e)?null:e}[w.$toHTML](e){return s(null!==this[w.$content]?this[w.$content].toString():"")}}class ge extends w.XFAObject{constructor(e){super(r,"defaultUi",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class pe extends w.XFAObject{constructor(e){super(r,"desc",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new w.XFAObjectArray,this.date=new w.XFAObjectArray,this.dateTime=new w.XFAObjectArray,this.decimal=new w.XFAObjectArray,this.exData=new w.XFAObjectArray,this.float=new w.XFAObjectArray,this.image=new w.XFAObjectArray,this.integer=new w.XFAObjectArray,this.text=new w.XFAObjectArray,this.time=new w.XFAObjectArray}}class me extends w.OptionObject{constructor(e){super(r,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class be extends w.XFAObject{constructor(e){super(r,"digestMethods",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.digestMethod=new w.XFAObjectArray}}class ye extends w.XFAObject{constructor(e){super(r,"draw",!0),this.anchorType=(0,x.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,x.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.h=e.h?(0,x.getMeasurement)(e.h):"",this.hAlign=(0,x.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,x.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,x.getMeasurement)(e.maxW,"0pt"),this.minH=(0,x.getMeasurement)(e.minH,"0pt"),this.minW=(0,x.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,x.getRelevant)(e.relevant),this.rotate=(0,x.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,x.getMeasurement)(e.w):"",this.x=(0,x.getMeasurement)(e.x,"0pt"),this.y=(0,x.getMeasurement)(e.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new w.XFAObjectArray}[w.$setValue](e){i(this,e)}[w.$toHTML](e){if(b(this),"hidden"===this.presence||"inactive"===this.presence)return x.HTMLResult.EMPTY;(0,m.fixDimensions)(this),this[w.$pushPara]();var t=this.w,a=this.h,{w:r,h:i,isBroken:n}=(0,m.layoutNode)(this,e);if(r&&""===this.w){if(n&&this[w.$getSubformParent]()[w.$isThereMoreWidth]())return this[w.$popPara](),x.HTMLResult.FAILURE;this.w=r}if(i&&""===this.h&&(this.h=i),v(this),!(0,p.checkDimensions)(this,e))return this.w=t,this.h=a,this[w.$popPara](),x.HTMLResult.FAILURE;A(this);n=(0,m.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin"),(0,m.setMinMaxDimensions)(this,n),n.margin&&(n.padding=n.margin,delete n.margin),r=["xfaDraw"],this.font&&r.push("xfaFont"),(0,m.isPrintOnly)(this)&&r.push("xfaPrintOnly"),i={style:n,id:this[w.$uid],class:r},this.name&&(i.xfaName=this.name),r={name:"div",attributes:i,children:[]},y(this,i),i=(0,m.computeBbox)(this,r,e),e=this.value?this.value[w.$toHTML](e).html:null;return null===e?(this.w=t,this.h=a,this[w.$popPara]()):(r.children.push(e),(0,m.setPara)(this,n,e),this.w=t,this.h=a,this[w.$popPara]()),x.HTMLResult.success((0,m.createWrapper)(this,r),i)}}class F extends w.XFAObject{constructor(e){super(r,"edge",!0),this.cap=(0,x.getStringOption)(e.cap,["square","butt","round"]),this.id=e.id||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,x.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,x.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[w.$toStyle](){var e=(0,m.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,m.measureToString)(this.thickness),color:this.color?this.color[w.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class ve extends w.OptionObject{constructor(e){super(r,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class we extends w.XFAObject{constructor(e){super(r,"encodings",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encoding=new w.XFAObjectArray}}class xe extends w.XFAObject{constructor(e){super(r,"encrypt",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=null}}class Se extends w.XFAObject{constructor(e){super(r,"encryptData",!0),this.id=e.id||"",this.operation=(0,x.getStringOption)(e.operation,["encrypt","decrypt"]),this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class Ae extends w.XFAObject{constructor(e){super(r,"encryption",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new w.XFAObjectArray}}class ke extends w.OptionObject{constructor(e){super(r,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Ce extends w.XFAObject{constructor(e){super(r,"encryptionMethods",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encryptionMethod=new w.XFAObjectArray}}class Oe extends w.XFAObject{constructor(e){super(r,"event",!0),this.activity=(0,x.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=e.id||"",this.listen=(0,x.getStringOption)(e.listen,["refOnly","refAndDescendents"]),this.name=e.name||"",this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Fe extends w.ContentObject{constructor(e){super(r,"exData"),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.maxLength=(0,x.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>-1<=e}),this.name=e.name||"",this.rid=e.rid||"",this.transferEncoding=(0,x.getStringOption)(e.transferEncoding,["none","base64","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[w.$isCDATAXml](){return"text/html"===this.contentType}[w.$onChild](e){return("text/html"===this.contentType&&e[w.$namespaceId]===a.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[w.$content]=e,!0)}[w.$toHTML](e){return"text/html"===this.contentType&&this[w.$content]?this[w.$content][w.$toHTML](e):x.HTMLResult.EMPTY}}class Ie extends w.XFAObject{constructor(e){super(r,"exObject",!0),this.archive=e.archive||"",this.classId=e.classId||"",this.codeBase=e.codeBase||"",this.codeType=e.codeType||"",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.boolean=new w.XFAObjectArray,this.date=new w.XFAObjectArray,this.dateTime=new w.XFAObjectArray,this.decimal=new w.XFAObjectArray,this.exData=new w.XFAObjectArray,this.exObject=new w.XFAObjectArray,this.float=new w.XFAObjectArray,this.image=new w.XFAObjectArray,this.integer=new w.XFAObjectArray,this.text=new w.XFAObjectArray,this.time=new w.XFAObjectArray}}class Te extends w.XFAObject{constructor(e){super(r,"exclGroup",!0),this.access=(0,x.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,x.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,x.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.h=e.h?(0,x.getMeasurement)(e.h):"",this.hAlign=(0,x.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,x.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,x.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,x.getMeasurement)(e.maxW,"0pt"),this.minH=(0,x.getMeasurement)(e.minH,"0pt"),this.minW=(0,x.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,x.getMeasurement)(e.w):"",this.x=(0,x.getMeasurement)(e.x,"0pt"),this.y=(0,x.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new w.XFAObjectArray,this.event=new w.XFAObjectArray,this.field=new w.XFAObjectArray,this.setProperty=new w.XFAObjectArray}[w.$isBindable](){return!0}[w.$hasSettableValue](){return!0}[w.$setValue](e){for(const a of this.field.children){var t;a.value||(t=new D({}),a[w.$appendChild](t),a.value=t),a.value[w.$setValue](e)}}[w.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[w.$extra].attempt&&0<this[w.$extra].numberInLine||this[w.$getParent]()[w.$isThereMoreWidth]()}[w.$isSplittable](){var e=this[w.$getSubformParent]();return!!e[w.$isSplittable]()&&(void 0!==this[w.$extra]._isSplittable?this[w.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?this[w.$extra]._isSplittable=!1:(!e.layout||!e.layout.endsWith("-tb")||0===e[w.$extra].numberInLine)&&(this[w.$extra]._isSplittable=!0))}[w.$flushHTML](){return(0,p.flushHTML)(this)}[w.$addHTML](e,t){(0,p.addHTML)(this,e,t)}[w.$getAvailableSpace](){return(0,p.getAvailableSpace)(this)}[w.$toHTML](e){if(b(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return x.HTMLResult.EMPTY;(0,m.fixDimensions)(this);var t=[],a={id:this[w.$uid],class:[]},r=((0,m.setAccess)(this,a.class),this[w.$extra]||(this[w.$extra]=Object.create(null)),Object.assign(this[w.$extra],{children:t,attributes:a,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0}),this[w.$isSplittable]());if(r||v(this),!(0,p.checkDimensions)(this,e))return x.HTMLResult.FAILURE;for(var i=new Set(["field"]),e=(this.layout.includes("row")&&(e=this[w.$getSubformParent]().columnWidths,Array.isArray(e))&&0<e.length&&(this[w.$extra].columnWidths=e,this[w.$extra].currentColumn=0),(0,m.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign")),n=["xfaExclgroup"],s=(0,m.layoutClass)(this),o=(s&&n.push(s),(0,m.isPrintOnly)(this)&&n.push("xfaPrintOnly"),a.style=e,a.class=n,this.name&&(a.xfaName=this.name),this[w.$pushPara](),"lr-tb"===this.layout||"rl-tb"===this.layout),l=o?2:1;this[w.$extra].attempt<l;this[w.$extra].attempt++){o&&1===this[w.$extra].attempt&&(this[w.$extra].numberInLine=0);var c=this[w.$childrenToHTML]({filter:i,include:!0});if(c.success)break;if(c.isBreak())return this[w.$popPara](),c;if(o&&0===this[w.$extra].attempt&&0===this[w.$extra].numberInLine&&!this[w.$getTemplateRoot]()[w.$extra].noLayoutFailure){this[w.$extra].attempt=l;break}}if(this[w.$popPara](),r||A(this),this[w.$extra].attempt===l)return r||delete this[w.$extra],x.HTMLResult.FAILURE;let h=0,u=0;this.margin&&(h=this.margin.leftInset+this.margin.rightInset,u=this.margin.topInset+this.margin.bottomInset);s=Math.max(this[w.$extra].width+h,this.w||0),n=Math.max(this[w.$extra].height+u,this.h||0),r=[this.x,this.y,s,n],""===this.w&&(e.width=(0,m.measureToString)(s)),""===this.h&&(e.height=(0,m.measureToString)(n)),s={name:"div",attributes:a,children:t};return y(this,a),delete this[w.$extra],x.HTMLResult.success((0,m.createWrapper)(this,s),r)}}class Me extends w.XFAObject{constructor(e){super(r,"execute"),this.connection=e.connection||"",this.executeType=(0,x.getStringOption)(e.executeType,["import","remerge"]),this.id=e.id||"",this.runAt=(0,x.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Pe extends w.XFAObject{constructor(e){super(r,"extras",!0),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new w.XFAObjectArray,this.date=new w.XFAObjectArray,this.dateTime=new w.XFAObjectArray,this.decimal=new w.XFAObjectArray,this.exData=new w.XFAObjectArray,this.extras=new w.XFAObjectArray,this.float=new w.XFAObjectArray,this.image=new w.XFAObjectArray,this.integer=new w.XFAObjectArray,this.text=new w.XFAObjectArray,this.time=new w.XFAObjectArray}}class I extends w.XFAObject{constructor(e){super(r,"field",!0),this.access=(0,x.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,x.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,x.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.h=e.h?(0,x.getMeasurement)(e.h):"",this.hAlign=(0,x.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,x.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,x.getMeasurement)(e.maxW,"0pt"),this.minH=(0,x.getMeasurement)(e.minH,"0pt"),this.minW=(0,x.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,x.getRelevant)(e.relevant),this.rotate=(0,x.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,x.getMeasurement)(e.w):"",this.x=(0,x.getMeasurement)(e.x,"0pt"),this.y=(0,x.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new w.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 w.XFAObjectArray,this.connect=new w.XFAObjectArray,this.event=new w.XFAObjectArray,this.setProperty=new w.XFAObjectArray}[w.$isBindable](){return!0}[w.$setValue](e){i(this,e)}[w.$toHTML](i){if(b(this),!this.ui){this.ui=new N({}),this.ui[w.$globalData]=this[w.$globalData],this[w.$appendChild](this.ui);let e;switch(this.items.children.length){case 0:e=new It({}),this.ui.textEdit=e;break;case 1:e=new ie({}),this.ui.checkButton=e;break;case 2:e=new ne({}),this.ui.choiceList=e}this.ui[w.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return x.HTMLResult.EMPTY;this.caption&&delete this.caption[w.$extra],this[w.$pushPara]();var t=this.caption?this.caption[w.$toHTML](i).html:null,a=this.w,r=this.h;let n=0,s=0,o=(this.margin&&(n=this.margin.leftInset+this.margin.rightInset,s=this.margin.topInset+this.margin.bottomInset),null);if(""===this.w||""===this.h){let e=null,t=null,a=0,r=0;if(this.ui.checkButton?a=r=this.ui.checkButton.size:({w:l,h:c}=(0,m.layoutNode)(this,i),r=null!==l?(a=l,c):(0,L.getMetrics)(this.font,!0).lineNoGap),o=g(this.ui[w.$getExtra]()),a+=o.w,r+=o.h,this.caption){var{w:l,h:c,isBroken:h}=this.caption[w.$getExtra](i);if(h&&this[w.$getSubformParent]()[w.$isThereMoreWidth]())return this[w.$popPara](),x.HTMLResult.FAILURE;switch(e=l,t=c,this.caption.placement){case"left":case"right":case"inline":e+=a;break;case"top":case"bottom":t+=r}}else e=a,t=r;e&&""===this.w&&(e+=n,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<e?e:this.minW)),t&&""===this.h&&(t+=s,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<t?t:this.minH))}if(this[w.$popPara](),(0,m.fixDimensions)(this),v(this),!(0,p.checkDimensions)(this,i))return this.w=a,this.h=r,this[w.$popPara](),x.HTMLResult.FAILURE;A(this);var h=(0,m.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign"),l=((0,m.setMinMaxDimensions)(this,h),["xfaField"]),c=(this.font&&l.push("xfaFont"),(0,m.isPrintOnly)(this)&&l.push("xfaPrintOnly"),{style:h,id:this[w.$uid],class:l}),l=(h.margin&&(h.padding=h.margin,delete h.margin),(0,m.setAccess)(this,l),this.name&&(c.xfaName=this.name),[]),u={name:"div",attributes:c,children:l},c=(y(this,c),this.border?this.border[w.$toStyle]():null),d=(0,m.computeBbox)(this,u,i),f=this.ui[w.$toHTML]().html;if(f){this[w.$tabIndex]&&(f.children&&f.children[0]?f.children[0].attributes.tabindex=this[w.$tabIndex]:f.attributes.tabindex=this[w.$tabIndex]),f.attributes.style||(f.attributes.style=Object.create(null));let e=null;if(this.ui.button?(1===f.children.length&&([e]=f.children.splice(0,1)),Object.assign(f.attributes.style,c)):Object.assign(h,c),l.push(f),this.value)if(this.ui.imageEdit)f.children.push(this.value[w.$toHTML]().html);else if(!this.ui.button){let e="";this.value.exData?e=this.value.exData[w.$text]():this.value.text?e=this.value.text[w.$getExtra]():null!==(l=this.value[w.$toHTML]().html)&&(e=l.children[0].value),this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(f.children[0].attributes.maxLength=this.value.text.maxChars),e&&(this.ui.numericEdit&&(e=parseFloat(e),e=isNaN(e)?"":e.toString()),"textarea"===f.children[0].name?f.children[0].attributes.textContent=e:f.children[0].attributes.value=e)}if(!this.ui.imageEdit&&f.children&&f.children[0]&&this.h){o=o||g(this.ui[w.$getExtra]());let e=0;this.caption&&["top","bottom"].includes(this.caption.placement)?((e=this.caption.reserve)<=0&&(e=this.caption[w.$getExtra](i).h),l=this.h-e-s-o.h,f.children[0].attributes.style.height=(0,m.measureToString)(l)):f.children[0].attributes.style.height="100%"}if(e&&f.children.push(e),t){if(this.ui.button)return h.padding&&delete h.padding,"div"===t.name&&(t.name="span"),f.children.push(t),x.HTMLResult.success(u,d);switch(this.ui.checkButton&&(t.attributes.class[0]="xfaCaptionForCheckButton"),f.attributes.class||(f.attributes.class=[]),f.children.splice(0,0,t),this.caption.placement){case"left":f.attributes.class.push("xfaLeft");break;case"right":f.attributes.class.push("xfaRight");break;case"top":f.attributes.class.push("xfaTop");break;case"bottom":f.attributes.class.push("xfaBottom");break;case"inline":f.attributes.class.push("xfaLeft")}}else f.attributes.class&&f.attributes.class.push("xfaLeft");this.w=a,this.h=r}else Object.assign(h,c);return x.HTMLResult.success((0,m.createWrapper)(this,u),d)}}e.Field=I;class Ee extends w.XFAObject{constructor(e){super(r,"fill",!0),this.id=e.id||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[w.$toStyle](){var e=this[w.$getParent](),t=e[w.$getParent]()[w.$getParent](),a=Object.create(null);let r="color",i=r;e instanceof c&&(r="background-color",i="background",t instanceof N)&&(a.backgroundColor="white"),(e instanceof ft||e instanceof o)&&(r=i="fill",a.fill="white");for(const s of Object.getOwnPropertyNames(this))if("extras"!==s&&"color"!==s){var n=this[s];if(n instanceof w.XFAObject)return(n=n[w.$toStyle](this.color))&&(a[n.startsWith("#")?r:i]=n),a}return this.color&&this.color.value&&(a[(t=this.color[w.$toStyle]()).startsWith("#")?r:i]=t),a}}class Ne extends w.XFAObject{constructor(e){super(r,"filter",!0),this.addRevocationInfo=(0,x.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.version=(0,x.getInteger)({data:this.version,defaultValue:5,validate:e=>1<=e&&e<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class De extends w.ContentObject{constructor(e){super(r,"float"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){var e=parseFloat(this[w.$content].trim());this[w.$content]=isNaN(e)?null:e}[w.$toHTML](e){return s(null!==this[w.$content]?this[w.$content].toString():"")}}class Be extends w.XFAObject{constructor(e){super(r,"font",!0),this.baselineShift=(0,x.getMeasurement)(e.baselineShift),this.fontHorizontalScale=(0,x.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>0<=e}),this.fontVerticalScale=(0,x.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>0<=e}),this.id=e.id||"",this.kerningMode=(0,x.getStringOption)(e.kerningMode,["none","pair"]),this.letterSpacing=(0,x.getMeasurement)(e.letterSpacing,"0"),this.lineThrough=(0,x.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e}),this.lineThroughPeriod=(0,x.getStringOption)(e.lineThroughPeriod,["all","word"]),this.overline=(0,x.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e}),this.overlinePeriod=(0,x.getStringOption)(e.overlinePeriod,["all","word"]),this.posture=(0,x.getStringOption)(e.posture,["normal","italic"]),this.size=(0,x.getMeasurement)(e.size,"10pt"),this.typeface=e.typeface||"Courier",this.underline=(0,x.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e}),this.underlinePeriod=(0,x.getStringOption)(e.underlinePeriod,["all","word"]),this.use=e.use||"",this.usehref=e.usehref||"",this.weight=(0,x.getStringOption)(e.weight,["normal","bold"]),this.extras=null,this.fill=null}[w.$clean](e){super[w.$clean](e),this[w.$globalData].usedTypefaces.add(this.typeface)}[w.$toStyle](){var e=(0,m.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,m.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,m.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough)&&(e.textDecorationStyle="double"),0!==this.overline&&(e.textDecoration="overline",2===this.overline)&&(e.textDecorationStyle="double"),e.fontStyle=this.posture,e.fontSize=(0,m.measureToString)(.99*this.size),(0,m.setFontFamily)(this,this,this[w.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline)&&(e.textDecorationStyle="double"),e.fontWeight=this.weight,e}}class Re extends w.XFAObject{constructor(e){super(r,"format",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null}}class Le extends w.StringObject{constructor(e){super(r,"handler"),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class je extends w.XFAObject{constructor(e){super(r,"hyphenation"),this.excludeAllCaps=(0,x.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e}),this.excludeInitialCap=(0,x.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e}),this.hyphenate=(0,x.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.pushCharacterCount=(0,x.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>0<=e}),this.remainCharacterCount=(0,x.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>0<=e}),this.use=e.use||"",this.usehref=e.usehref||"",this.wordCharacterCount=(0,x.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>0<=e})}}class _e extends w.StringObject{constructor(e){super(r,"image"),this.aspect=(0,x.getStringOption)(e.aspect,["fit","actual","height","none","width"]),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.name=e.name||"",this.transferEncoding=(0,x.getStringOption)(e.transferEncoding,["base64","none","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[w.$toHTML](){if(this.contentType&&!U.has(this.contentType.toLowerCase()))return x.HTMLResult.EMPTY;let a=this[w.$globalData].images&&this[w.$globalData].images.get(this.href);if(!a&&(this.href||!this[w.$content]))return x.HTMLResult.EMPTY;if(!(a=a||"base64"!==this.transferEncoding?a:(0,S.stringToBytes)(atob(this[w.$content]))))return x.HTMLResult.EMPTY;if(!this.contentType){for(var[e,t]of X)if(a.length>e.length&&e.every((e,t)=>e===a[t])){this.contentType=t;break}if(!this.contentType)return x.HTMLResult.EMPTY}var r=new Blob([a],{type:this.contentType});let i;switch(this.aspect){case"fit":case"actual":break;case"height":i={height:"100%",objectFit:"fill"};break;case"none":i={width:"100%",height:"100%",objectFit:"fill"};break;case"width":i={width:"100%",objectFit:"fill"}}var n=this[w.$getParent]();return x.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:i,src:URL.createObjectURL(r),alt:n?f(n[w.$getParent]()):null}})}}class $e extends w.XFAObject{constructor(e){super(r,"imageEdit",!0),this.data=(0,x.getStringOption)(e.data,["link","embed"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[w.$toHTML](e){return"embed"===this.data?x.HTMLResult.success({name:"div",children:[],attributes:{}}):x.HTMLResult.EMPTY}}class Ue extends w.ContentObject{constructor(e){super(r,"integer"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){var e=parseInt(this[w.$content].trim(),10);this[w.$content]=isNaN(e)?null:e}[w.$toHTML](e){return s(null!==this[w.$content]?this[w.$content].toString():"")}}class Xe extends w.XFAObject{constructor(e){super(r,"issuers",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new w.XFAObjectArray}}class He extends w.XFAObject{constructor(e){super(r,"items",!0),this.id=e.id||"",this.name=e.name||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.ref=e.ref||"",this.save=(0,x.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new w.XFAObjectArray,this.date=new w.XFAObjectArray,this.dateTime=new w.XFAObjectArray,this.decimal=new w.XFAObjectArray,this.exData=new w.XFAObjectArray,this.float=new w.XFAObjectArray,this.image=new w.XFAObjectArray,this.integer=new w.XFAObjectArray,this.text=new w.XFAObjectArray,this.time=new w.XFAObjectArray}[w.$toHTML](){var e=[];for(const t of this[w.$getChildren]())e.push(t[w.$text]());return x.HTMLResult.success(e)}}e.Items=He;class qe extends w.XFAObject{constructor(e){super(r,"keep",!0),this.id=e.id||"";var t=["none","contentArea","pageArea"];this.intact=(0,x.getStringOption)(e.intact,t),this.next=(0,x.getStringOption)(e.next,t),this.previous=(0,x.getStringOption)(e.previous,t),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class ze extends w.XFAObject{constructor(e){super(r,"keyUsage");var t=["","yes","no"];this.crlSign=(0,x.getStringOption)(e.crlSign,t),this.dataEncipherment=(0,x.getStringOption)(e.dataEncipherment,t),this.decipherOnly=(0,x.getStringOption)(e.decipherOnly,t),this.digitalSignature=(0,x.getStringOption)(e.digitalSignature,t),this.encipherOnly=(0,x.getStringOption)(e.encipherOnly,t),this.id=e.id||"",this.keyAgreement=(0,x.getStringOption)(e.keyAgreement,t),this.keyCertSign=(0,x.getStringOption)(e.keyCertSign,t),this.keyEncipherment=(0,x.getStringOption)(e.keyEncipherment,t),this.nonRepudiation=(0,x.getStringOption)(e.nonRepudiation,t),this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ge extends w.XFAObject{constructor(e){super(r,"line",!0),this.hand=(0,x.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.slope=(0,x.getStringOption)(e.slope,["\\","/"]),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null}[w.$toHTML](){var e=this[w.$getParent]()[w.$getParent](),t=this.edge||new F({}),a=t[w.$toStyle](),r=Object.create(null),t="visible"===t.presence?t.thickness:0;r.strokeWidth=(0,m.measureToString)(t),r.stroke=a.color;let i,n,s,o,l="100%",c="100%";e.w<=t?([i,n,s,o]=["50%",0,"50%","100%"],l=r.strokeWidth):e.h<=t?([i,n,s,o]=[0,"50%","100%","50%"],c=r.strokeWidth):"\\"===this.slope?[i,n,s,o]=[0,0,"100%","100%"]:[i,n,s,o]=[0,"100%","100%",0];a={name:"svg",children:[{name:"line",attributes:{xmlns:h,x1:i,y1:n,x2:s,y2:o,style:r}}],attributes:{xmlns:h,width:l,height:c,style:{overflow:"visible"}}};return u(e)?x.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[a]}):(a.attributes.style.position="absolute",x.HTMLResult.success(a))}}class We extends w.XFAObject{constructor(e){super(r,"linear",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[w.$toStyle](e){return e=e?e[w.$toStyle]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[w.$toStyle]():"#000000"})`}}class Ve extends w.ContentObject{constructor(e){super(r,"lockDocument"),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){this[w.$content]=(0,x.getStringOption)(this[w.$content],["auto","0","1"])}}class Ke extends w.XFAObject{constructor(e){super(r,"manifest",!0),this.action=(0,x.getStringOption)(e.action,["include","all","exclude"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.ref=new w.XFAObjectArray}}class Ye extends w.XFAObject{constructor(e){super(r,"margin",!0),this.bottomInset=(0,x.getMeasurement)(e.bottomInset,"0"),this.id=e.id||"",this.leftInset=(0,x.getMeasurement)(e.leftInset,"0"),this.rightInset=(0,x.getMeasurement)(e.rightInset,"0"),this.topInset=(0,x.getMeasurement)(e.topInset,"0"),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[w.$toStyle](){return{margin:(0,m.measureToString)(this.topInset)+" "+(0,m.measureToString)(this.rightInset)+" "+(0,m.measureToString)(this.bottomInset)+" "+(0,m.measureToString)(this.leftInset)}}}class Je extends w.XFAObject{constructor(e){super(r,"mdp"),this.id=e.id||"",this.permissions=(0,x.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e}),this.signatureType=(0,x.getStringOption)(e.signatureType,["filler","author"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ze extends w.XFAObject{constructor(e){super(r,"medium"),this.id=e.id||"",this.imagingBBox=(0,x.getBBox)(e.imagingBBox),this.long=(0,x.getMeasurement)(e.long),this.orientation=(0,x.getStringOption)(e.orientation,["portrait","landscape"]),this.short=(0,x.getMeasurement)(e.short),this.stock=e.stock||"",this.trayIn=(0,x.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,x.getStringOption)(e.trayOut,["auto","delegate"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Qe extends w.XFAObject{constructor(e){super(r,"message",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.text=new w.XFAObjectArray}}class et extends w.XFAObject{constructor(e){super(r,"numericEdit",!0),this.hScrollPolicy=(0,x.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[w.$toHTML](e){var t=(0,m.toStyle)(this,"border","font","margin"),a=this[w.$getParent]()[w.$getParent](),t={name:"input",attributes:{type:"text",fieldId:a[w.$uid],dataId:a[w.$data]&&a[w.$data][w.$uid]||a[w.$uid],class:["xfaTextfield"],style:t,"aria-label":f(a),"aria-required":!1}};return d(a)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),x.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}class tt extends w.XFAObject{constructor(e){super(r,"occur",!0),this.id=e.id||"",this.initial=""!==e.initial?(0,x.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"",this.max=""!==e.max?(0,x.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"",this.min=""!==e.min?(0,x.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[w.$clean](){var e=this[w.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof T||e instanceof M?0:1),""===this.max&&(this.max=""===t?e instanceof T||e instanceof M?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof E?1:this.min)}}class at extends w.StringObject{constructor(e){super(r,"oid"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class rt extends w.XFAObject{constructor(e){super(r,"oids",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.oid=new w.XFAObjectArray}}class it extends w.XFAObject{constructor(e){super(r,"overflow"),this.id=e.id||"",this.leader=e.leader||"",this.target=e.target||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$getExtra](){var e,t,a,r;return this[w.$extra]||(e=this[w.$getParent](),t=(r=this[w.$getTemplateRoot]())[w.$searchNode](this.target,e),a=r[w.$searchNode](this.leader,e),r=r[w.$searchNode](this.trailer,e),this[w.$extra]={target:t&&t[0]||null,leader:a&&a[0]||null,trailer:r&&r[0]||null,addLeader:!1,addTrailer:!1}),this[w.$extra]}}class T extends w.XFAObject{constructor(e){super(r,"pageArea",!0),this.blankOrNotBlank=(0,x.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),this.id=e.id||"",this.initialNumber=(0,x.getInteger)({data:e.initialNumber,defaultValue:1,validate:e=>!0}),this.name=e.name||"",this.numbered=(0,x.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=(0,x.getStringOption)(e.oddOrEven,["any","even","odd"]),this.pagePosition=(0,x.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new w.XFAObjectArray,this.contentArea=new w.XFAObjectArray,this.draw=new w.XFAObjectArray,this.exclGroup=new w.XFAObjectArray,this.field=new w.XFAObjectArray,this.subform=new w.XFAObjectArray}[w.$isUsable](){return this[w.$extra]?!this.occur||-1===this.occur.max||this[w.$extra].numberOfUse<this.occur.max:(this[w.$extra]={numberOfUse:0},!0)}[w.$cleanPage](){delete this[w.$extra]}[w.$getNextPage](){this[w.$extra]||(this[w.$extra]={numberOfUse:0});var e=this[w.$getParent]();return"orderedOccurrence"===e.relation&&this[w.$isUsable]()?(this[w.$extra].numberOfUse+=1,this):e[w.$getNextPage]()}[w.$getAvailableSpace](){return this[w.$extra].space||{width:0,height:0}}[w.$toHTML](){this[w.$extra]||(this[w.$extra]={numberOfUse:1});var e,t=[],a=(this[w.$extra].children=t,Object.create(null));return this.medium&&this.medium.short&&this.medium.long?(a.width=(0,m.measureToString)(this.medium.short),a.height=(0,m.measureToString)(this.medium.long),this[w.$extra].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation&&(e=a.width,a.width=a.height,a.height=e,this[w.$extra].space={width:this.medium.long,height:this.medium.short})):(0,S.warn)("XFA - No medium specified in pageArea: please file a bug."),this[w.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[w.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),x.HTMLResult.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[w.$uid],style:a,xfaName:this.name}})}}class M extends w.XFAObject{constructor(e){super(r,"pageSet",!0),this.duplexImposition=(0,x.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),this.id=e.id||"",this.name=e.name||"",this.relation=(0,x.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.occur=null,this.pageArea=new w.XFAObjectArray,this.pageSet=new w.XFAObjectArray}[w.$cleanPage](){for(const e of this.pageArea.children)e[w.$cleanPage]();for(const t of this.pageSet.children)t[w.$cleanPage]()}[w.$isUsable](){return!this.occur||-1===this.occur.max||this[w.$extra].numberOfUse<this.occur.max}[w.$getNextPage](){if(this[w.$extra]||(this[w.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[w.$extra].pageIndex+1<this.pageArea.children.length)return this[w.$extra].pageIndex+=1,this.pageArea.children[this[w.$extra].pageIndex][w.$getNextPage]();if(this[w.$extra].pageSetIndex+1<this.pageSet.children.length)return this[w.$extra].pageSetIndex+=1,this.pageSet.children[this[w.$extra].pageSetIndex][w.$getNextPage]();if(this[w.$isUsable]())this[w.$extra].numberOfUse+=1,this[w.$extra].pageIndex=-1,this[w.$extra].pageSetIndex=-1;else{var e=this[w.$getParent]();if(e instanceof M)return e[w.$getNextPage]();this[w.$cleanPage]()}return this[w.$getNextPage]()}e=this[w.$getTemplateRoot]()[w.$extra].pageNumber;const t=e%2==0?"even":"odd",a=0===e?"first":"rest";e=this.pageArea.children.find(e=>e.oddOrEven===t&&e.pagePosition===a);return e||this.pageArea.children.find(e=>"any"===e.oddOrEven&&e.pagePosition===a)||this.pageArea.children.find(e=>"any"===e.oddOrEven&&"any"===e.pagePosition)||this.pageArea.children[0]}}class nt extends w.XFAObject{constructor(e){super(r,"para",!0),this.hAlign=(0,x.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.lineHeight=e.lineHeight?(0,x.getMeasurement)(e.lineHeight,"0pt"):"",this.marginLeft=e.marginLeft?(0,x.getMeasurement)(e.marginLeft,"0pt"):"",this.marginRight=e.marginRight?(0,x.getMeasurement)(e.marginRight,"0pt"):"",this.orphans=(0,x.getInteger)({data:e.orphans,defaultValue:0,validate:e=>0<=e}),this.preserve=e.preserve||"",this.radixOffset=e.radixOffset?(0,x.getMeasurement)(e.radixOffset,"0pt"):"",this.spaceAbove=e.spaceAbove?(0,x.getMeasurement)(e.spaceAbove,"0pt"):"",this.spaceBelow=e.spaceBelow?(0,x.getMeasurement)(e.spaceBelow,"0pt"):"",this.tabDefault=e.tabDefault?(0,x.getMeasurement)(this.tabDefault):"",this.tabStops=(e.tabStops||"").trim().split(/\s+/).map((e,t)=>t%2==1?(0,x.getMeasurement)(e):e),this.textIndent=e.textIndent?(0,x.getMeasurement)(e.textIndent,"0pt"):"",this.use=e.use||"",this.usehref=e.usehref||"",this.vAlign=(0,x.getStringOption)(e.vAlign,["top","bottom","middle"]),this.widows=(0,x.getInteger)({data:e.widows,defaultValue:0,validate:e=>0<=e}),this.hyphenation=null}[w.$toStyle](){var e=(0,m.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,m.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,m.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,m.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,m.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,m.measureToString)(this.textIndent),(0,m.fixTextIndent)(e)),0<this.lineHeight&&(e.lineHeight=(0,m.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,m.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[w.$toStyle]()),e}}class st extends w.XFAObject{constructor(e){super(r,"passwordEdit",!0),this.hScrollPolicy=(0,x.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.passwordChar=e.passwordChar||"*",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}}class ot extends w.XFAObject{constructor(e){super(r,"pattern",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[w.$toStyle](e){e=e?e[w.$toStyle]():"#FFFFFF";var t=this.color?this.color[w.$toStyle]():"#000000",a="repeating-linear-gradient",r=e+`,${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case"crossHatch":return a+`(to top,${r}) ${a}(to right,${r})`;case"crossDiagonal":return a+`(45deg,${r}) ${a}(-45deg,${r})`;case"diagonalLeft":return a+`(45deg,${r})`;case"diagonalRight":return a+`(-45deg,${r})`;case"horizontal":return a+`(to top,${r})`;case"vertical":return a+`(to right,${r})`}return""}}class lt extends w.StringObject{constructor(e){super(r,"picture"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ct extends w.XFAObject{constructor(e){super(r,"proto",!0),this.appearanceFilter=new w.XFAObjectArray,this.arc=new w.XFAObjectArray,this.area=new w.XFAObjectArray,this.assist=new w.XFAObjectArray,this.barcode=new w.XFAObjectArray,this.bindItems=new w.XFAObjectArray,this.bookend=new w.XFAObjectArray,this.boolean=new w.XFAObjectArray,this.border=new w.XFAObjectArray,this.break=new w.XFAObjectArray,this.breakAfter=new w.XFAObjectArray,this.breakBefore=new w.XFAObjectArray,this.button=new w.XFAObjectArray,this.calculate=new w.XFAObjectArray,this.caption=new w.XFAObjectArray,this.certificate=new w.XFAObjectArray,this.certificates=new w.XFAObjectArray,this.checkButton=new w.XFAObjectArray,this.choiceList=new w.XFAObjectArray,this.color=new w.XFAObjectArray,this.comb=new w.XFAObjectArray,this.connect=new w.XFAObjectArray,this.contentArea=new w.XFAObjectArray,this.corner=new w.XFAObjectArray,this.date=new w.XFAObjectArray,this.dateTime=new w.XFAObjectArray,this.dateTimeEdit=new w.XFAObjectArray,this.decimal=new w.XFAObjectArray,this.defaultUi=new w.XFAObjectArray,this.desc=new w.XFAObjectArray,this.digestMethod=new w.XFAObjectArray,this.digestMethods=new w.XFAObjectArray,this.draw=new w.XFAObjectArray,this.edge=new w.XFAObjectArray,this.encoding=new w.XFAObjectArray,this.encodings=new w.XFAObjectArray,this.encrypt=new w.XFAObjectArray,this.encryptData=new w.XFAObjectArray,this.encryption=new w.XFAObjectArray,this.encryptionMethod=new w.XFAObjectArray,this.encryptionMethods=new w.XFAObjectArray,this.event=new w.XFAObjectArray,this.exData=new w.XFAObjectArray,this.exObject=new w.XFAObjectArray,this.exclGroup=new w.XFAObjectArray,this.execute=new w.XFAObjectArray,this.extras=new w.XFAObjectArray,this.field=new w.XFAObjectArray,this.fill=new w.XFAObjectArray,this.filter=new w.XFAObjectArray,this.float=new w.XFAObjectArray,this.font=new w.XFAObjectArray,this.format=new w.XFAObjectArray,this.handler=new w.XFAObjectArray,this.hyphenation=new w.XFAObjectArray,this.image=new w.XFAObjectArray,this.imageEdit=new w.XFAObjectArray,this.integer=new w.XFAObjectArray,this.issuers=new w.XFAObjectArray,this.items=new w.XFAObjectArray,this.keep=new w.XFAObjectArray,this.keyUsage=new w.XFAObjectArray,this.line=new w.XFAObjectArray,this.linear=new w.XFAObjectArray,this.lockDocument=new w.XFAObjectArray,this.manifest=new w.XFAObjectArray,this.margin=new w.XFAObjectArray,this.mdp=new w.XFAObjectArray,this.medium=new w.XFAObjectArray,this.message=new w.XFAObjectArray,this.numericEdit=new w.XFAObjectArray,this.occur=new w.XFAObjectArray,this.oid=new w.XFAObjectArray,this.oids=new w.XFAObjectArray,this.overflow=new w.XFAObjectArray,this.pageArea=new w.XFAObjectArray,this.pageSet=new w.XFAObjectArray,this.para=new w.XFAObjectArray,this.passwordEdit=new w.XFAObjectArray,this.pattern=new w.XFAObjectArray,this.picture=new w.XFAObjectArray,this.radial=new w.XFAObjectArray,this.reason=new w.XFAObjectArray,this.reasons=new w.XFAObjectArray,this.rectangle=new w.XFAObjectArray,this.ref=new w.XFAObjectArray,this.script=new w.XFAObjectArray,this.setProperty=new w.XFAObjectArray,this.signData=new w.XFAObjectArray,this.signature=new w.XFAObjectArray,this.signing=new w.XFAObjectArray,this.solid=new w.XFAObjectArray,this.speak=new w.XFAObjectArray,this.stipple=new w.XFAObjectArray,this.subform=new w.XFAObjectArray,this.subformSet=new w.XFAObjectArray,this.subjectDN=new w.XFAObjectArray,this.subjectDNs=new w.XFAObjectArray,this.submit=new w.XFAObjectArray,this.text=new w.XFAObjectArray,this.textEdit=new w.XFAObjectArray,this.time=new w.XFAObjectArray,this.timeStamp=new w.XFAObjectArray,this.toolTip=new w.XFAObjectArray,this.traversal=new w.XFAObjectArray,this.traverse=new w.XFAObjectArray,this.ui=new w.XFAObjectArray,this.validate=new w.XFAObjectArray,this.value=new w.XFAObjectArray,this.variables=new w.XFAObjectArray}}class ht extends w.XFAObject{constructor(e){super(r,"radial",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["toEdge","toCenter"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[w.$toStyle](e){e=e?e[w.$toStyle]():"#FFFFFF";var t=this.color?this.color[w.$toStyle]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?e+","+t:t+","+e})`}}class ut extends w.StringObject{constructor(e){super(r,"reason"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class dt extends w.XFAObject{constructor(e){super(r,"reasons",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.reason=new w.XFAObjectArray}}class ft extends w.XFAObject{constructor(e){super(r,"rectangle",!0),this.hand=(0,x.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new w.XFAObjectArray(4),this.edge=new w.XFAObjectArray(4),this.fill=null}[w.$toHTML](){var e=this.edge.children.length?this.edge.children[0]:new F({}),t=e[w.$toStyle](),a=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(a,this.fill[w.$toStyle]()):a.fill="transparent",a.strokeWidth=(0,m.measureToString)("visible"===e.presence?e.thickness:0),a.stroke=t.color;e=(this.corner.children.length?this.corner.children[0]:new ce({}))[w.$toStyle](),t={name:"svg",children:[{name:"rect",attributes:{xmlns:h,width:"100%",height:"100%",x:0,y:0,rx:e.radius,ry:e.radius,style:a}}],attributes:{xmlns:h,style:{overflow:"visible"},width:"100%",height:"100%"}};return u(this[w.$getParent]()[w.$getParent]())?x.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[t]}):(t.attributes.style.position="absolute",x.HTMLResult.success(t))}}class gt extends w.StringObject{constructor(e){super(r,"ref"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class pt extends w.StringObject{constructor(e){super(r,"script"),this.binding=e.binding||"",this.contentType=e.contentType||"",this.id=e.id||"",this.name=e.name||"",this.runAt=(0,x.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class mt extends w.XFAObject{constructor(e){super(r,"setProperty"),this.connection=e.connection||"",this.ref=e.ref||"",this.target=e.target||""}}e.SetProperty=mt;class bt extends w.XFAObject{constructor(e){super(r,"signData",!0),this.id=e.id||"",this.operation=(0,x.getStringOption)(e.operation,["sign","clear","verify"]),this.ref=e.ref||"",this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class yt extends w.XFAObject{constructor(e){super(r,"signature",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["PDF1.3","PDF1.6"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class vt extends w.XFAObject{constructor(e){super(r,"signing",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new w.XFAObjectArray}}class wt extends w.XFAObject{constructor(e){super(r,"solid",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[w.$toStyle](e){return e?e[w.$toStyle]():"#FFFFFF"}}class xt extends w.StringObject{constructor(e){super(r,"speak"),this.disable=(0,x.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.priority=(0,x.getStringOption)(e.priority,["custom","caption","name","toolTip"]),this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class St extends w.XFAObject{constructor(e){super(r,"stipple",!0),this.id=e.id||"",this.rate=(0,x.getInteger)({data:e.rate,defaultValue:50,validate:e=>0<=e&&e<=100}),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[w.$toStyle](e){var t=this.rate/100;return S.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class At extends w.XFAObject{constructor(e){super(r,"subform",!0),this.access=(0,x.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,x.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e}),this.anchorType=(0,x.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,x.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map(e=>"-1"===e?-1:(0,x.getMeasurement)(e)),this.h=e.h?(0,x.getMeasurement)(e.h):"",this.hAlign=(0,x.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,x.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=e.locale||"",this.maxH=(0,x.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,x.getMeasurement)(e.maxW,"0pt"),this.mergeMode=(0,x.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,x.getMeasurement)(e.minH,"0pt"),this.minW=(0,x.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,x.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,x.getRelevant)(e.relevant),this.restoreState=(0,x.getStringOption)(e.restoreState,["manual","auto"]),this.scope=(0,x.getStringOption)(e.scope,["name","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,x.getMeasurement)(e.w):"",this.x=(0,x.getMeasurement)(e.x,"0pt"),this.y=(0,x.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new w.XFAObjectArray,this.breakAfter=new w.XFAObjectArray,this.breakBefore=new w.XFAObjectArray,this.connect=new w.XFAObjectArray,this.draw=new w.XFAObjectArray,this.event=new w.XFAObjectArray,this.exObject=new w.XFAObjectArray,this.exclGroup=new w.XFAObjectArray,this.field=new w.XFAObjectArray,this.proto=new w.XFAObjectArray,this.setProperty=new w.XFAObjectArray,this.subform=new w.XFAObjectArray,this.subformSet=new w.XFAObjectArray}[w.$getSubformParent](){var e=this[w.$getParent]();return e instanceof P?e[w.$getSubformParent]():e}[w.$isBindable](){return!0}[w.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[w.$extra].attempt&&0<this[w.$extra].numberInLine||this[w.$getParent]()[w.$isThereMoreWidth]()}*[w.$getContainedChildren](){yield*n(this)}[w.$flushHTML](){return(0,p.flushHTML)(this)}[w.$addHTML](e,t){(0,p.addHTML)(this,e,t)}[w.$getAvailableSpace](){return(0,p.getAvailableSpace)(this)}[w.$isSplittable](){var e=this[w.$getSubformParent]();return!!e[w.$isSplittable]()&&(void 0!==this[w.$extra]._isSplittable?this[w.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?this[w.$extra]._isSplittable=!1:(!e.layout||!e.layout.endsWith("-tb")||0===e[w.$extra].numberInLine)&&(this[w.$extra]._isSplittable=!0))}[w.$toHTML](e){if(b(this),this.break&&("auto"===this.break.after&&""===this.break.afterTarget||((t=new J({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()}))[w.$globalData]=this[w.$globalData],this[w.$appendChild](t),this.breakAfter.push(t)),"auto"===this.break.before&&""===this.break.beforeTarget||((t=new Z({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()}))[w.$globalData]=this[w.$globalData],this[w.$appendChild](t),this.breakBefore.push(t)),""!==this.break.overflowTarget&&((t=new it({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer}))[w.$globalData]=this[w.$globalData],this[w.$appendChild](t),this.overflow.push(t)),this[w.$removeChild](this.break),this.break=null),"hidden"===this.presence||"inactive"===this.presence)return x.HTMLResult.EMPTY;if((1<this.breakBefore.children.length||1<this.breakAfter.children.length)&&(0,S.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),1<=this.breakBefore.children.length){var t=this.breakBefore.children[0];if(k(t))return x.HTMLResult.breakNode(t)}if(this[w.$extra]&&this[w.$extra].afterBreakAfter)return x.HTMLResult.EMPTY;(0,m.fixDimensions)(this);var t=[],a={id:this[w.$uid],class:[]},r=((0,m.setAccess)(this,a.class),this[w.$extra]||(this[w.$extra]=Object.create(null)),Object.assign(this[w.$extra],{children:t,line:null,attributes:a,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0}),this[w.$getTemplateRoot]()),i=r[w.$extra].noLayoutFailure,n=this[w.$isSplittable]();if(n||v(this),!(0,p.checkDimensions)(this,e))return x.HTMLResult.FAILURE;for(var s=new Set(["area","draw","exclGroup","field","subform","subformSet"]),o=(this.layout.includes("row")&&(o=this[w.$getSubformParent]().columnWidths,Array.isArray(o))&&0<o.length&&(this[w.$extra].columnWidths=o,this[w.$extra].currentColumn=0),(0,m.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign")),l=["xfaSubform"],c=(0,m.layoutClass)(this),h=(c&&l.push(c),a.style=o,a.class=l,this.name&&(a.xfaName=this.name),this.overflow&&(c=this.overflow[w.$getExtra]()).addLeader&&(c.addLeader=!1,C(this,c.leader,e)),this[w.$pushPara](),"lr-tb"===this.layout||"rl-tb"===this.layout),u=h?2:1;this[w.$extra].attempt<u;this[w.$extra].attempt++){h&&1===this[w.$extra].attempt&&(this[w.$extra].numberInLine=0);const g=this[w.$childrenToHTML]({filter:s,include:!0});if(g.success)break;if(g.isBreak())return this[w.$popPara](),g;if(h&&0===this[w.$extra].attempt&&0===this[w.$extra].numberInLine&&!r[w.$extra].noLayoutFailure){this[w.$extra].attempt=u;break}}if(this[w.$popPara](),n||A(this),r[w.$extra].noLayoutFailure=i,this[w.$extra].attempt===u)return this.overflow&&(this[w.$getTemplateRoot]()[w.$extra].overflowNode=this.overflow),n||delete this[w.$extra],x.HTMLResult.FAILURE;this.overflow&&(l=this.overflow[w.$getExtra]()).addTrailer&&(l.addTrailer=!1,C(this,l.trailer,e));let d=0,f=0;this.margin&&(d=this.margin.leftInset+this.margin.rightInset,f=this.margin.topInset+this.margin.bottomInset);c=Math.max(this[w.$extra].width+d,this.w||0),i=Math.max(this[w.$extra].height+f,this.h||0),n=[this.x,this.y,c,i];if(""===this.w&&(o.width=(0,m.measureToString)(c)),""===this.h&&(o.height=(0,m.measureToString)(i)),("0px"===o.width||"0px"===o.height)&&0===t.length)return x.HTMLResult.EMPTY;l={name:"div",attributes:a,children:t};y(this,a);const g=x.HTMLResult.success((0,m.createWrapper)(this,l),n);if(1<=this.breakAfter.children.length){e=this.breakAfter.children[0];if(k(e))return this[w.$extra].afterBreakAfter=g,x.HTMLResult.breakNode(e)}return delete this[w.$extra],g}}class P extends w.XFAObject{constructor(e){super(r,"subformSet",!0),this.id=e.id||"",this.name=e.name||"",this.relation=(0,x.getStringOption)(e.relation,["ordered","choice","unordered"]),this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new w.XFAObjectArray,this.breakBefore=new w.XFAObjectArray,this.subform=new w.XFAObjectArray,this.subformSet=new w.XFAObjectArray}*[w.$getContainedChildren](){yield*n(this)}[w.$getSubformParent](){let e=this[w.$getParent]();for(;!(e instanceof At);)e=e[w.$getParent]();return e}[w.$isBindable](){return!0}}class kt extends w.ContentObject{constructor(e){super(r,"subjectDN"),this.delimiter=e.delimiter||",",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){this[w.$content]=new Map(this[w.$content].split(this.delimiter).map(e=>((e=e.split("=",2))[0]=e[0].trim(),e)))}}class Ct extends w.XFAObject{constructor(e){super(r,"subjectDNs",!0),this.id=e.id||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.subjectDN=new w.XFAObjectArray}}class Ot extends w.XFAObject{constructor(e){super(r,"submit",!0),this.embedPDF=(0,x.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e}),this.format=(0,x.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=e.id||"",this.target=e.target||"",this.textEncoding=(0,x.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.use=e.use||"",this.usehref=e.usehref||"",this.xdpContent=e.xdpContent||"",this.encrypt=null,this.encryptData=new w.XFAObjectArray,this.signData=new w.XFAObjectArray}}class E extends w.XFAObject{constructor(e){super(r,"template",!0),this.baseProfile=(0,x.getStringOption)(e.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new w.XFAObjectArray}[w.$finalize](){0===this.subform.children.length&&(0,S.warn)("XFA - No subforms in template node."),2<=this.subform.children.length&&(0,S.warn)("XFA - Several subforms in template node: please file a bug."),this[w.$tabIndex]=5e3}[w.$isSplittable](){return!0}[w.$searchNode](e,t){return e.startsWith("#")?[this[w.$ids].get(e.slice(1))]:(0,_.searchNode)(this,t,e,!0,!0)}*[w.$toPages](){if(!this.subform.children.length)return x.HTMLResult.success({name:"div",children:[]});this[w.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const a=this.subform.children[0];a.pageSet[w.$cleanPage]();var e=a.pageSet.pageArea.children,r={name:"div",children:[]};let t=null,i=null,n=null;1<=a.breakBefore.children.length?(i=a.breakBefore.children[0],n=i.target):1<=a.subform.children.length&&1<=a.subform.children[0].breakBefore.children.length?(i=a.subform.children[0].breakBefore.children[0],n=i.target):a.break&&a.break.beforeTarget?(i=a.break,n=i.beforeTarget):1<=a.subform.children.length&&a.subform.children[0].break&&a.subform.children[0].break.beforeTarget&&(i=a.subform.children[0].break,n=i.beforeTarget),i&&(s=this[w.$searchNode](n,i[w.$getParent]()))instanceof T&&(t=s,i[w.$extra]={}),(t=t||e[0])[w.$extra]={numberOfUse:1};var s=t[w.$getParent]();s[w.$extra]={numberOfUse:1,pageIndex:s.pageArea.children.indexOf(t),pageSetIndex:0};let o,l=null,c=null,h=!0,u=0,d=0;for(;;){if(h)u=0;else if(r.children.pop(),3==++u)return(0,S.warn)("XFA - Something goes wrong: please file a bug."),r;o=null;var f=(this[w.$extra].currentPageArea=t)[w.$toHTML]().html,g=(r.children.push(f),l&&(this[w.$extra].noLayoutFailure=!0,f.children.push(l[w.$toHTML](t[w.$extra].space).html),l=null),c&&(this[w.$extra].noLayoutFailure=!0,f.children.push(c[w.$toHTML](t[w.$extra].space).html),c=null),t.contentArea.children);const v=f.children.filter(e=>e.attributes.class.includes("xfaContentarea"));h=!1,this[w.$extra].firstUnsplittable=null,this[w.$extra].noLayoutFailure=!1;var p=e=>{var t=a[w.$flushHTML]();t&&(h=h||t.children&&0!==t.children.length,v[e].children.push(t))};for(let e=d,t=g.length;e<t;e++){var m,b,y=this[w.$extra].currentContentArea=g[e],y={width:y.w,height:y.h},y=(d=0,l&&(v[e].children.push(l[w.$toHTML](y).html),l=null),c&&(v[e].children.push(c[w.$toHTML](y).html),c=null),a[w.$toHTML](y));if(y.success)return y.html?(h=h||y.html.children&&0!==y.html.children.length,v[e].children.push(y.html)):!h&&1<r.children.length&&r.children.pop(),r;y.isBreak()?(y=y.breakNode,p(e),"auto"!==y.targetType&&(y.leader&&(l=(l=this[w.$searchNode](y.leader,y[w.$getParent]()))?l[0]:null),y.trailer&&(c=(c=this[w.$searchNode](y.trailer,y[w.$getParent]()))?c[0]:null),e="pageArea"===y.targetType?(o=y[w.$extra].target,1/0):y[w.$extra].target?(o=y[w.$extra].target,d=y[w.$extra].index+1,1/0):y[w.$extra].index)):this[w.$extra].overflowNode?(y=this[w.$extra].overflowNode,this[w.$extra].overflowNode=null,m=(y=y[w.$getExtra]()).target,y.addLeader=null!==y.leader,y.addTrailer=null!==y.trailer,p(e),y=e,e=1/0,m instanceof T?o=m:m instanceof O&&(-1!==(b=g.indexOf(m))?y<b?e=b-1:d=b:(o=m[w.$getParent](),d=o.contentArea.children.indexOf(m)))):p(e)}this[w.$extra].pageNumber+=1,o&&(o[w.$isUsable]()?o[w.$extra].numberOfUse+=1:o=null),t=o||t[w.$getNextPage](),yield null}}}e.Template=E;class Ft extends w.ContentObject{constructor(e){super(r,"text"),this.id=e.id||"",this.maxChars=(0,x.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>0<=e}),this.name=e.name||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$acceptWhitespace](){return!0}[w.$onChild](e){return e[w.$namespaceId]===a.NamespaceIds.xhtml.id?(this[w.$content]=e,!0):((0,S.warn)(`XFA - Invalid content in Text: ${e[w.$nodeName]}.`),!1)}[w.$onText](e){this[w.$content]instanceof w.XFAObject||super[w.$onText](e)}[w.$finalize](){"string"==typeof this[w.$content]&&(this[w.$content]=this[w.$content].replace(/\r\n/g,"\n"))}[w.$getExtra](){return"string"==typeof this[w.$content]?this[w.$content].split(/[\u2029\u2028\n]/).reduce((e,t)=>(t&&e.push(t),e),[]).join("\n"):this[w.$content][w.$text]()}[w.$toHTML](e){if("string"!=typeof this[w.$content])return this[w.$content][w.$toHTML](e);{const t=s(this[w.$content]).html;return this[w.$content].includes("\u2029")?(t.name="div",t.children=[],this[w.$content].split("\u2029").map(e=>e.split(/[\u2028\n]/).reduce((e,t)=>(e.push({name:"span",value:t},{name:"br"}),e),[])).forEach(e=>{t.children.push({name:"p",children:e})})):/[\u2028\n]/.test(this[w.$content])&&(t.name="div",t.children=[],this[w.$content].split(/[\u2028\n]/).forEach(e=>{t.children.push({name:"span",value:e},{name:"br"})})),x.HTMLResult.success(t)}}}e.Text=Ft;class It extends w.XFAObject{constructor(e){super(r,"textEdit",!0),this.allowRichText=(0,x.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e}),this.hScrollPolicy=(0,x.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.multiLine=(0,x.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.vScrollPolicy=(0,x.getStringOption)(e.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[w.$toHTML](e){var t=(0,m.toStyle)(this,"border","font","margin");let a;var r=this[w.$getParent]()[w.$getParent]();return""===this.multiLine&&(this.multiLine=r instanceof ye?1:0),a=1===this.multiLine?{name:"textarea",attributes:{dataId:r[w.$data]&&r[w.$data][w.$uid]||r[w.$uid],fieldId:r[w.$uid],class:["xfaTextfield"],style:t,"aria-label":f(r),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:r[w.$data]&&r[w.$data][w.$uid]||r[w.$uid],fieldId:r[w.$uid],class:["xfaTextfield"],style:t,"aria-label":f(r),"aria-required":!1}},d(r)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),x.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class Tt extends w.StringObject{constructor(e){super(r,"time"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[w.$finalize](){var e=this[w.$content].trim();this[w.$content]=e?new Date(e):null}[w.$toHTML](e){return s(this[w.$content]?this[w.$content].toString():"")}}class Mt extends w.XFAObject{constructor(e){super(r,"timeStamp"),this.id=e.id||"",this.server=e.server||"",this.type=(0,x.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Pt extends w.StringObject{constructor(e){super(r,"toolTip"),this.id=e.id||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Et extends w.XFAObject{constructor(e){super(r,"traversal",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.traverse=new w.XFAObjectArray}}class Nt extends w.XFAObject{constructor(e){super(r,"traverse",!0),this.id=e.id||"",this.operation=(0,x.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[w.$isTransparent](){return!1}}class N extends w.XFAObject{constructor(e){super(r,"ui",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.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}[w.$getExtra](){if(void 0===this[w.$extra]){for(const t of Object.getOwnPropertyNames(this))if("extras"!==t&&"picture"!==t){var e=this[t];if(e instanceof w.XFAObject)return this[w.$extra]=e}this[w.$extra]=null}return this[w.$extra]}[w.$toHTML](e){var t=this[w.$getExtra]();return t?t[w.$toHTML](e):x.HTMLResult.EMPTY}}class Dt extends w.XFAObject{constructor(e){super(r,"validate",!0),this.formatTest=(0,x.getStringOption)(e.formatTest,["warning","disabled","error"]),this.id=e.id||"",this.nullTest=(0,x.getStringOption)(e.nullTest,["disabled","error","warning"]),this.scriptTest=(0,x.getStringOption)(e.scriptTest,["error","disabled","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class D extends w.XFAObject{constructor(e){super(r,"value",!0),this.id=e.id||"",this.override=(0,x.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e}),this.relevant=(0,x.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.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}[w.$setValue](e){var t=this[w.$getParent]();if(t instanceof I&&t.ui&&t.ui.imageEdit)this.image||(this.image=new _e({}),this[w.$appendChild](this.image)),this.image[w.$content]=e[w.$content];else{t=e[w.$nodeName];if(null!==this[t])this[t][w.$content]=e[w.$content];else{for(const r of Object.getOwnPropertyNames(this)){var a=this[r];a instanceof w.XFAObject&&(this[r]=null,this[w.$removeChild](a))}this[e[w.$nodeName]]=e,this[w.$appendChild](e)}}}[w.$text](){if(this.exData)return("string"==typeof this.exData[w.$content]?this.exData[w.$content]:this.exData[w.$content][w.$text]()).trim();for(const t of Object.getOwnPropertyNames(this))if("image"!==t){var e=this[t];if(e instanceof w.XFAObject)return(e[w.$content]||"").toString().trim()}return null}[w.$toHTML](e){for(const a of Object.getOwnPropertyNames(this)){var t=this[a];if(t instanceof w.XFAObject)return t[w.$toHTML](e)}return x.HTMLResult.EMPTY}}e.Value=D;class Bt extends w.XFAObject{constructor(e){super(r,"variables",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new w.XFAObjectArray,this.date=new w.XFAObjectArray,this.dateTime=new w.XFAObjectArray,this.decimal=new w.XFAObjectArray,this.exData=new w.XFAObjectArray,this.float=new w.XFAObjectArray,this.image=new w.XFAObjectArray,this.integer=new w.XFAObjectArray,this.manifest=new w.XFAObjectArray,this.script=new w.XFAObjectArray,this.text=new w.XFAObjectArray,this.time=new w.XFAObjectArray}[w.$isTransparent](){return!0}}class B{static[a.$buildXFAObject](e,t){if(B.hasOwnProperty(e))return(e=B[e](t))[w.$setSetAttributes](t),e}static appearanceFilter(e){return new H(e)}static arc(e){return new o(e)}static area(e){return new q(e)}static assist(e){return new z(e)}static barcode(e){return new G(e)}static bind(e){return new W(e)}static bindItems(e){return new l(e)}static bookend(e){return new V(e)}static boolean(e){return new K(e)}static border(e){return new c(e)}static break(e){return new Y(e)}static breakAfter(e){return new J(e)}static breakBefore(e){return new Z(e)}static button(e){return new Q(e)}static calculate(e){return new ee(e)}static caption(e){return new te(e)}static certificate(e){return new ae(e)}static certificates(e){return new re(e)}static checkButton(e){return new ie(e)}static choiceList(e){return new ne(e)}static color(e){return new se(e)}static comb(e){return new oe(e)}static connect(e){return new le(e)}static contentArea(e){return new O(e)}static corner(e){return new ce(e)}static date(e){return new he(e)}static dateTime(e){return new ue(e)}static dateTimeEdit(e){return new de(e)}static decimal(e){return new fe(e)}static defaultUi(e){return new ge(e)}static desc(e){return new pe(e)}static digestMethod(e){return new me(e)}static digestMethods(e){return new be(e)}static draw(e){return new ye(e)}static edge(e){return new F(e)}static encoding(e){return new ve(e)}static encodings(e){return new we(e)}static encrypt(e){return new xe(e)}static encryptData(e){return new Se(e)}static encryption(e){return new Ae(e)}static encryptionMethod(e){return new ke(e)}static encryptionMethods(e){return new Ce(e)}static event(e){return new Oe(e)}static exData(e){return new Fe(e)}static exObject(e){return new Ie(e)}static exclGroup(e){return new Te(e)}static execute(e){return new Me(e)}static extras(e){return new Pe(e)}static field(e){return new I(e)}static fill(e){return new Ee(e)}static filter(e){return new Ne(e)}static float(e){return new De(e)}static font(e){return new Be(e)}static format(e){return new Re(e)}static handler(e){return new Le(e)}static hyphenation(e){return new je(e)}static image(e){return new _e(e)}static imageEdit(e){return new $e(e)}static integer(e){return new Ue(e)}static issuers(e){return new Xe(e)}static items(e){return new He(e)}static keep(e){return new qe(e)}static keyUsage(e){return new ze(e)}static line(e){return new Ge(e)}static linear(e){return new We(e)}static lockDocument(e){return new Ve(e)}static manifest(e){return new Ke(e)}static margin(e){return new Ye(e)}static mdp(e){return new Je(e)}static medium(e){return new Ze(e)}static message(e){return new Qe(e)}static numericEdit(e){return new et(e)}static occur(e){return new tt(e)}static oid(e){return new at(e)}static oids(e){return new rt(e)}static overflow(e){return new it(e)}static pageArea(e){return new T(e)}static pageSet(e){return new M(e)}static para(e){return new nt(e)}static passwordEdit(e){return new st(e)}static pattern(e){return new ot(e)}static picture(e){return new lt(e)}static proto(e){return new ct(e)}static radial(e){return new ht(e)}static reason(e){return new ut(e)}static reasons(e){return new dt(e)}static rectangle(e){return new ft(e)}static ref(e){return new gt(e)}static script(e){return new pt(e)}static setProperty(e){return new mt(e)}static signData(e){return new bt(e)}static signature(e){return new yt(e)}static signing(e){return new vt(e)}static solid(e){return new wt(e)}static speak(e){return new xt(e)}static stipple(e){return new St(e)}static subform(e){return new At(e)}static subformSet(e){return new P(e)}static subjectDN(e){return new kt(e)}static subjectDNs(e){return new Ct(e)}static submit(e){return new Ot(e)}static template(e){return new E(e)}static text(e){return new Ft(e)}static textEdit(e){return new It(e)}static time(e){return new Tt(e)}static timeStamp(e){return new Mt(e)}static toolTip(e){return new Pt(e)}static traversal(e){return new Et(e)}static traverse(e){return new Nt(e)}static ui(e){return new N(e)}static validate(e){return new Dt(e)}static value(e){return new D(e)}static variables(e){return new Bt(e)}}e.TemplateNamespace=B},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,a){var r=e[u.$extra],i=r.availableSpace,[n,s,o,l]=a;switch(e.layout){case"position":r.width=Math.max(r.width,n+o),r.height=Math.max(r.height,s+l),r.children.push(t);break;case"lr-tb":case"rl-tb":r.line&&1!==r.attempt||(r.line=f(e,[]),r.children.push(r.line),r.numberInLine=0),r.numberInLine+=1,r.line.children.push(t),0===r.attempt?(r.currentWidth+=o,r.height=Math.max(r.height,r.prevHeight+l)):(r.currentWidth=o,r.prevHeight=r.height,r.height+=l,r.attempt=0),r.width=Math.max(r.width,r.currentWidth);break;case"rl-row":case"row":r.children.push(t),r.width+=o,r.height=Math.max(r.height,l);var c=(0,d.measureToString)(r.height);for(const h of r.children)h.attributes.style.height=c;break;case"table":case"tb":r.width=Math.min(i.width,Math.max(r.width,o)),r.height+=l,r.children.push(t)}},t.checkDimensions=function(e,t){if(null===e[u.$getTemplateRoot]()[u.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var a=e[u.$getSubformParent](),r=a[u.$extra]&&a[u.$extra].attempt||0,[,i,n,s]=function(e){let t=""===e.w?NaN:e.w,a=""===e.h?NaN:e.h,[r,i]=[0,0];switch(e.anchorType||""){case"bottomCenter":[r,i]=[t/2,a];break;case"bottomLeft":[r,i]=[0,a];break;case"bottomRight":[r,i]=[t,a];break;case"middleCenter":[r,i]=[t/2,a/2];break;case"middleLeft":[r,i]=[0,a/2];break;case"middleRight":[r,i]=[t,a/2];break;case"topCenter":[r,i]=[t/2,0];break;case"topRight":[r,i]=[t,0]}let n,s;switch(e.rotate||0){case 0:[n,s]=[-r,-i];break;case 90:[n,s]=[-i,r],[t,a]=[a,-t];break;case 180:[n,s]=[r,i],[t,a]=[-t,-a];break;case 270:[n,s]=[i,-r],[t,a]=[-a,t]}return[e.x+n+Math.min(0,t),e.y+s+Math.min(0,a),Math.abs(t),Math.abs(a)]}(e);switch(a.layout){case"lr-tb":case"rl-tb":return 0===r?e[u.$getTemplateRoot]()[u.$extra].noLayoutFailure?""!==e.w?Math.round(n-t.width)<=2:2<t.width:!(""!==e.h&&2<Math.round(s-t.height))&&(""!==e.w?Math.round(n-t.width)<=2||0===a[u.$extra].numberInLine&&2<t.height:2<t.width):!!e[u.$getTemplateRoot]()[u.$extra].noLayoutFailure||!(""!==e.h&&2<Math.round(s-t.height))&&(""===e.w||Math.round(n-t.width)<=2||!a[u.$isThereMoreWidth]())&&2<t.height;case"table":case"tb":return e[u.$getTemplateRoot]()[u.$extra].noLayoutFailure?!0:""===e.h||e[u.$isSplittable]()?(""===e.w||Math.round(n-t.width)<=2||!a[u.$isThereMoreWidth]())&&2<t.height:Math.round(s-t.height)<=2;case"position":var o;return e[u.$getTemplateRoot]()[u.$extra].noLayoutFailure?!0:""===e.h||Math.round(s+i-t.height)<=2||(o=e[u.$getTemplateRoot]()[u.$extra].currentContentArea,s+i>o.h);case"rl-row":case"row":return e[u.$getTemplateRoot]()[u.$extra].noLayoutFailure?!0:""===e.h||Math.round(s-t.height)<=2;default:return!0}},t.flushHTML=function(e){if(!e[u.$extra])return null;var t=e[u.$extra].attributes,t={name:"div",attributes:t,children:e[u.$extra].children};{var a;e[u.$extra].failingNode&&(a=e[u.$extra].failingNode[u.$flushHTML]())&&(e.layout.endsWith("-tb")?t.children.push(f(e,[a])):t.children.push(a))}return 0!==t.children.length?t:null},t.getAvailableSpace=function(e){var t=e[u.$extra].availableSpace,a=e.margin?e.margin.topInset+e.margin.bottomInset:0,r=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[u.$extra].attempt?{width:t.width-r-e[u.$extra].currentWidth,height:t.height-a-e[u.$extra].prevHeight}:{width:t.width-r,height:t.height-a-e[u.$extra].height};case"rl-row":case"row":return{width:e[u.$extra].columnWidths.slice(e[u.$extra].currentColumn).reduce((e,t)=>e+t),height:t.height-r};case"table":case"tb":return{width:t.width-r,height:t.height-a-e[u.$extra].height};default:return t}};var u=a(206),d=a(213);function f(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(a,r,i){let n;if(""!==a.w&&""!==a.h)n=[a.x,a.y,a.w,a.h];else{if(!i)return null;let e=a.w;var s;""===e&&(e=0===a.maxW?"position"===(s=a[g.$getSubformParent]()).layout&&""!==s.w?0:a.minW:Math.min(a.maxW,i.width),r.attributes.style.width=h(e));let t=a.h;""===t&&(t=0===a.maxH?"position"===(s=a[g.$getSubformParent]()).layout&&""!==s.h?0:a.minH:Math.min(a.maxH,i.height),r.attributes.style.height=h(t)),n=[a.x,a.y,e,t]}return n},t.createWrapper=function(i,n){var s=n["attributes"],o=s["style"],l={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(s.class.push("xfaWrapped"),i.border){var{widths:c,insets:s}=i.border[g.$extra];let e,t,a=s[0],r=s[3];var h=s[0]+s[2],u=s[1]+s[3];switch(i.border.hand){case"even":a-=c[0]/2,r-=c[3]/2,e=`calc(100% + ${(c[1]+c[3])/2-u}px)`,t=`calc(100% + ${(c[0]+c[2])/2-h}px)`;break;case"left":a-=c[0],r-=c[3],e=`calc(100% + ${c[1]+c[3]-u}px)`,t=`calc(100% + ${c[0]+c[2]-h}px)`;break;case"right":e=u?`calc(100% - ${u}px)`:"100%",t=h?`calc(100% - ${h}px)`:"100%"}var s=["xfaBorder"],d=(p(i.border)&&s.push("xfaPrintOnly"),{name:"div",attributes:{class:s,style:{top:a+"px",left:r+"px",width:e,height:t}},children:[]});for(const f of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==o[f]&&(d.attributes.style[f]=o[f],delete o[f]);l.children.push(d,n)}else l.children.push(n);for(const e of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==o[e]&&(l.attributes.style[e]=o[e],delete o[e]);"absolute"===o.position?l.attributes.style.position="absolute":l.attributes.style.position="relative";delete o.position,o.alignSelf&&(l.attributes.style.alignSelf=o.alignSelf,delete o.alignSelf);return l},t.fixDimensions=function(t){var a=t[g.$getSubformParent]();if(a.layout&&a.layout.includes("row")){var r=a[g.$extra],i=t.colSpan;let e;e=-1===i?r.columnWidths.slice(r.currentColumn).reduce((e,t)=>e+t,0):r.columnWidths.slice(r.currentColumn,r.currentColumn+i).reduce((e,t)=>e+t,0),isNaN(e)||(t.w=e)}a.layout&&"position"!==a.layout&&(t.x=t.y=0);"table"===t.layout&&""===t.w&&Array.isArray(t.columnWidths)&&(t.w=t.columnWidths.reduce((e,t)=>e+t,0))},t.fixTextIndent=function(e){var t=(0,s.getMeasurement)(e.textIndent,"0px");var a,r;0<=t||(a="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),r=(0,s.getMeasurement)(e[a],"0px"),e[a]=r-t+"px")},t.fixURL=function(e){e=(0,o.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return e?e.href:null},t.isPrintOnly=p,t.layoutClass=function(e){switch(e.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"}},t.layoutNode=function(n,s){let o=null,l=null,c=!1;if((!n.w||!n.h)&&n.value){let e=0,t=0,a=(n.margin&&(e=n.margin.leftInset+n.margin.rightInset,t=n.margin.topInset+n.margin.bottomInset),null),r=null,i=(n.para&&(r=Object.create(null),a=""===n.para.lineHeight?null:n.para.lineHeight,r.top=""===n.para.spaceAbove?0:n.para.spaceAbove,r.bottom=""===n.para.spaceBelow?0:n.para.spaceBelow,r.left=""===n.para.marginLeft?0:n.para.marginLeft,r.right=""===n.para.marginRight?0:n.para.marginRight),n.font);if(!i){var h=n[g.$getTemplateRoot]();let e=n[g.$getParent]();for(;e&&e!==h;){if(e.font){i=e.font;break}e=e[g.$getParent]()}}var u,s=(n.w||s.width)-e,d=n[g.$globalData].fontFinder;n.value.exData&&n.value.exData[g.$content]&&"text/html"===n.value.exData.contentType?(u=f(n.value.exData[g.$content],i,r,a,d,s),l=u.width,o=u.height,c=u.isBroken):(u=n.value[g.$text]())&&(d=f(u,i,r,a,d,s),l=d.width,o=d.height,c=d.isBroken),null===l||n.w||(l+=e),null===o||n.h||(o+=t)}return{w:l,h:o,isBroken:c}},t.measureToString=h,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,a,r){var i,n;a?(i=(0,s.stripQuotes)(e.typeface),r.fontFamily=`"${i}"`,(a=a.find(i))&&(n=a.regular.cssFontInfo["fontFamily"],n!==i&&(r.fontFamily=`"${n}"`),(i=d(t))&&""!==i.lineHeight||r.lineHeight||(n=(0,l.selectFont)(e,a))&&(r.lineHeight=Math.max(1.2,n.lineHeight)))):delete r.fontFamily},t.setMinMaxDimensions=function(e,t){var a=e[g.$getSubformParent]();"position"===a.layout&&(0<e.minW&&(t.minWidth=h(e.minW)),0<e.maxW&&(t.maxWidth=h(e.maxW)),0<e.minH&&(t.minHeight=h(e.minH)),0<e.maxH)&&(t.maxHeight=h(e.maxH))},t.setPara=function(e,t,a){if(a.attributes.class&&a.attributes.class.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w)&&(t.width="auto");t=d(e);if(t){var r=a.attributes.style;switch(r.display="flex",r.flexDirection="column",t.vAlign){case"top":r.justifyContent="start";break;case"bottom":r.justifyContent="end";break;case"middle":r.justifyContent="center"}var i,n,e=t[g.$toStyle]();for([i,n]of Object.entries(e))i in r||(r[i]=n)}}},t.toStyle=function(e){var t=Object.create(null);for(var a=arguments.length,r=new Array(1<a?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];for(const s of r){var n=e[s];null!==n&&(u.hasOwnProperty(s)?u[s](e,t):n instanceof g.XFAObject&&((n=n[g.$toStyle]())?Object.assign(t,n):(0,o.warn)(`(DEBUG) - XFA - style for ${s} not implemented yet`)))}return t};var g=a(206),o=a(2),s=a(207),l=a(214),c=a(215);function h(e){return"string"==typeof e?"0px":Number.isInteger(e)?e+"px":e.toFixed(2)+"px"}const u={anchorType(e,t){var a=e[g.$getSubformParent]();if(a&&(!a.layout||"position"===a.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions(t,e){var a=t[g.$getSubformParent]();let r=t.w;var i=t.h;if(a.layout&&a.layout.includes("row")){var a=a[g.$extra],n=t.colSpan;let e;-1===n?(e=a.columnWidths.slice(a.currentColumn).reduce((e,t)=>e+t,0),a.currentColumn=0):(e=a.columnWidths.slice(a.currentColumn,a.currentColumn+n).reduce((e,t)=>e+t,0),a.currentColumn=(a.currentColumn+t.colSpan)%a.columnWidths.length),isNaN(e)||(r=t.w=e)}""!==r?e.width=h(r):e.width="auto",e.height=""!==i?h(i):"auto"},position(e,t){var a=e[g.$getSubformParent]();a&&a.layout&&"position"!==a.layout||(t.position="absolute",t.left=h(e.x),t.top=h(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[g.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[g.$toStyle]().margin)}};function f(e,t,a,r,i,n){t=new c.TextMeasure(t,a,r,i);return"string"==typeof e?t.addString(e):e[g.$pushGlyphs](t),t.compute(n)}function p(e){return 0<e.relevant.length&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function d(e){e=e[g.$getTemplateRoot]()[g.$extra].paraStack;return e.length?e.at(-1):null}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e){let t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=null;e&&(r=(0,s.stripQuotes)(e.typeface),r=e[n.$globalData].fontFinder.find(r),a=o(e,r));if(!a)return{lineHeight:12,lineGap:2,lineNoGap:10};var r=e.size||10,e=a.lineHeight?Math.max(t?0:1.2,a.lineHeight):1.2,i=void 0===a.lineGap?.2:a.lineGap;return{lineHeight:e*r,lineGap:i*r,lineNoGap:Math.max(1,e-i)*r}},t.selectFont=o;var n=a(206),s=a(207),d=a(2);function o(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;for(const r of e)this.addPdfFont(r);for(const i of this.fonts.values())i.regular||(i.regular=i.italic||i.bold||i.bolditalic);if(t&&0!==t.size){var a=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const n of t)this.fonts.set(n,a)}}addPdfFont(e){var t=e.cssFontInfo,a=t.fontFamily;let r=this.fonts.get(a),i=(r||(r=Object.create(null),this.fonts.set(a,r),this.defaultFont)||(this.defaultFont=r),"");a=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?i=700<=a?"bolditalic":"italic":700<=a&&(i="bold"),!i&&((e.name.includes("Bold")||e.psName&&e.psName.includes("Bold"))&&(i="bold"),e.name.includes("Italic")||e.name.endsWith("It")||e.psName&&(e.psName.includes("Italic")||e.psName.endsWith("It")))&&(i+="italic"),i=i||"regular",r[i]=e}getDefault(){return this.defaultFont}find(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=this.fonts.get(e)||this.cache.get(e);if(a)return a;var r=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let i=e.replace(r,"");if(a=this.fonts.get(i))return this.cache.set(e,a),a;i=i.toLowerCase();var n,s,o=[];for([n,s]of this.fonts.entries())n.replace(r,"").toLowerCase().startsWith(i)&&o.push(s);if(0===o.length)for(var[,l]of this.fonts.entries())l.regular.name&&l.regular.name.replace(r,"").toLowerCase().startsWith(i)&&o.push(l);if(0===o.length){i=i.replace(/psmt|mt/gi,"");for(var[c,h]of this.fonts.entries())c.replace(r,"").toLowerCase().startsWith(i)&&o.push(h)}if(0===o.length)for(const u of this.fonts.values())u.regular.name&&u.regular.name.replace(r,"").toLowerCase().startsWith(i)&&o.push(u);return 1<=o.length?(1!==o.length&&t&&(0,d.warn)("XFA - Too many choices to guess the correct font: "+e),this.cache.set(e,o[0]),o[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,d.warn)("XFA - Cannot find the font: "+e)),null)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var i=a(214);class s{constructor(e,t,a,r){this.lineHeight=a,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},e&&(this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing},a=r.find(e.typeface))&&(this.pdfFont=(0,i.selectFont)(e,a),this.pdfFont)||([this.pdfFont,this.xfaFont]=this.defaultFont(r))}defaultFont(e){e=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(e&&e.regular){e=e.regular;const t={typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[e,t]}const t={typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0};return[null,t]}}class n{constructor(e,t,a,r){this.fontFinder=r,this.stack=[new s(e,t,a,r)]}pushData(e,t,a){var r=this.stack.at(-1);for(const i of["typeface","posture","weight","size","letterSpacing"])e[i]||(e[i]=r.xfaFont[i]);for(const n of["top","bottom","left","right"])isNaN(t[n])&&(t[n]=r.paraMargin[n]);a=new s(e,t,a||r.lineHeight,this.fontFinder);a.pdfFont||(a.pdfFont=r.pdfFont),this.stack.push(a)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class{constructor(e,t,a,r){this.glyphs=[],this.fontSelector=new n(e,t,a,r),this.extraHeight=0}pushData(e,t,a){this.fontSelector.pushData(e,t,a)}popFont(e){return this.fontSelector.popFont()}addPara(){var e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(e){var t=this.fontSelector.topFont(),a=t.xfaFont.size;if(t.pdfFont){var r=t.xfaFont.letterSpacing,i=t.pdfFont,n=i.lineHeight||1.2,s=t.lineHeight||Math.max(1.2,n)*a,t=void 0===i.lineGap?.2:i.lineGap,o=Math.max(1,n-t)*a,l=a/1e3,c=i.defaultWidth||i.charsToGlyphs(" ")[0].width;for(const d of e.split(/[\u2029\n]/)){var h=i.encodeString(d).join("");for(const f of i.charsToGlyphs(h)){var u=f.width||c;this.glyphs.push([u*l+r,s,o,f.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}}else for(const g of e.split(/[\u2029\n]/)){for(const p of g.split(""))this.glyphs.push([a,1.2*a,a,p,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(a){let r=-1,i=0,n=0,s=0,o=0,l=0,c=!1,h=!0;for(let e=0,t=this.glyphs.length;e<t;e++){var[u,d,f,g,p]=this.glyphs[e],g=" "===g,f=h?f:d;p?(n=Math.max(n,o),o=0,s+=l,l=f,r=-1,i=0,h=!1):g?o+u>a?(n=Math.max(n,o),o=0,s+=l,l=f,r=-1,i=0,c=!0,h=!1):(l=Math.max(f,l),i=o,o+=u,r=e):o+u>a?(s+=l,l=f,-1!==r?(e=r,n=Math.max(n,i),o=0,r=-1,i=0):(n=Math.max(n,o),o=u),c=!0,h=!1):(o+=u,l=Math.max(f,l))}return n=Math.max(n,o),s+=l+this.extraHeight,{width:1.02*n,height:s,isBroken:c}}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var c=a(206);t.DataHandler=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){for(var t=[[-1,this.data[c.$getChildren]()]];0<t.length;){var a=t.at(-1),[r,i]=a;if(r+1===i.length)t.pop();else{r=i[++a[0]],i=e.get(r[c.$uid]);if(i)r[c.$setValue](i);else for(const o of r[c.$getAttributes]().values()){var n=e.get(o[c.$uid]);if(n){o[c.$setValue](n);break}}a=r[c.$getChildren]();0<a.length&&t.push([-1,a])}}var s=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const l of this.dataset[c.$getChildren]())"data"!==l[c.$nodeName]&&l[c.$toString](s);return this.data[c.$toString](s),s.push("</xfa:datasets>"),s.join("")}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var h=a(206),r=a(195),i=a(218),u=a(2);class n extends r.XMLParserBase{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];super(),this._builder=new i.Builder(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=r.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===r.XMLParserErrorCode.NoError)return this._current[h.$finalize](),this._current.element}onText(e){e=e.replace(this._nbsps,e=>e.slice(1)+" "),this._richText||this._current[h.$acceptWhitespace]()?this._current[h.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[h.$onText](e.trim())}onCdata(e){this._current[h.$onText](e)}_mkAttributes(e,t){let a=null,r=null;var i,n,s=Object.create({});for({name:i,value:n}of e)if("xmlns"===i)a?(0,u.warn)(`XFA - multiple namespace definition in <${t}>`):a=n;else if(i.startsWith("xmlns:")){var o=i.substring("xmlns:".length);(r=r||[]).push({prefix:o,value:n})}else{o=i.indexOf(":");if(-1===o)s[i]=n;else{let e=s[h.$nsAttributes];e=e||(s[h.$nsAttributes]=Object.create(null));var[l,c]=[i.slice(0,o),i.slice(o+1)];let t=e[l];(t=t||(e[l]=Object.create(null)))[c]=n}}return[a,r,s]}_getNameAndPrefix(e,t){var a=e.indexOf(":");return-1===a?[e,null]:[e.substring(a+1),t?"":e.substring(0,a)]}onBeginElement(e,t,a){var[t,r,i]=this._mkAttributes(t,e),[e,n]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),n=this._builder.build({nsPrefix:n,name:e,attributes:i,namespace:t,prefixes:r});n[h.$globalData]=this._globalData,a?(n[h.$finalize](),this._current[h.$onChild](n)&&n[h.$setId](this._ids),n[h.$clean](this._builder)):(this._stack.push(this._current),this._current=n)}onEndElement(e){var t,a=this._current;a[h.$isCDATAXml]()&&"string"==typeof a[h.$content]&&((t=new n)._globalData=this._globalData,t=t.parse(a[h.$content]),a[h.$content]=null,a[h.$onChild](t)),a[h.$finalize](),this._current=this._stack.pop(),this._current[h.$onChild](a)&&a[h.$setId](this._ids),a[h.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=n},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var c=a(208),h=a(206),u=a(219),r=a(211),i=a(228),n=a(2);class s extends h.XFAObject{constructor(e){super(-1,"root",Object.create(null)),this.element=null,this[h.$ids]=e}[h.$onChild](e){return this.element=e,!0}[h.$finalize](){super[h.$finalize](),this.element.template instanceof r.Template&&(this[h.$ids].set(h.$root,this.element),this.element.template[h.$resolvePrototypes](this[h.$ids]),this.element.template[h.$ids]=this[h.$ids])}}class d extends h.XFAObject{constructor(){super(-1,"",Object.create(null))}[h.$onChild](e){return!1}}t.Builder=class{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(c.NamespaceIds).map(e=>{e=e.id;return e})),this._currentNamespace=e||new i.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new s(e)}build(e){var{nsPrefix:e,name:t,attributes:a,namespace:r,prefixes:i}=e,n=null!==r;if(n&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(r)),i&&this._addNamespacePrefix(i),a.hasOwnProperty(h.$nsAttributes)){var s,o,l=u.NamespaceSetUp.datasets,r=a[h.$nsAttributes];let e=null;for([s,o]of Object.entries(r))if(this._getNamespaceToUse(s)===l){e={xfa:o};break}e?a[h.$nsAttributes]=e:delete a[h.$nsAttributes]}r=this._getNamespaceToUse(e),e=r&&r[c.$buildXFAObject](t,a)||new d;return e[h.$isNsAgnostic]()&&this._nsAgnosticLevel++,(n||i||e[h.$isNsAgnostic]())&&(e[h.$cleanup]={hasNamespace:n,prefixes:i,nsAgnostic:e[h.$isNsAgnostic]()}),e}isNsAgnostic(){return 0<this._nsAgnosticLevel}_searchNamespace(e){let t=this._namespaces.get(e);if(!t){for(var[a,{check:r}]of Object.entries(c.NamespaceIds))if(r(e)){if(t=u.NamespaceSetUp[a])return this._namespaces.set(e,t),t;break}t=new i.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t)}return t}_addNamespacePrefix(e){for(var{prefix:t,value:a}of e){a=this._searchNamespace(a);let e=this._namespacePrefixes.get(t);e||(e=[],this._namespacePrefixes.set(t,e)),e.push(a)}}_getNamespaceToUse(e){var t;return e?(t=this._namespacePrefixes.get(e))&&0<t.length?t.at(-1):((0,n.warn)(`Unknown namespace prefix: ${e}.`),null):this._currentNamespace}clean(e){var{hasNamespace:e,prefixes:t,nsAgnostic:a}=e;e&&(this._currentNamespace=this._namespaceStack.pop()),t&&t.forEach(e=>{e=e.prefix;this._namespacePrefixes.get(e).pop()}),a&&this._nsAgnosticLevel--}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var r=a(220),i=a(221),n=a(222),s=a(223),o=a(224),l=a(225),c=a(211),h=a(226),a=a(227),r={config:r.ConfigNamespace,connection:i.ConnectionSetNamespace,datasets:n.DatasetsNamespace,localeSet:s.LocaleSetNamespace,signature:o.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:h.XdpNamespace,xhtml:a.XhtmlNamespace};t.NamespaceSetUp=r},(R,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigNamespace=void 0;var a=t(208),i=t(206),r=t(207),n=t(2);const s=a.NamespaceIds.config.id;class o extends i.XFAObject{constructor(e){super(s,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new i.XFAObjectArray}}class l extends i.XFAObject{constructor(e){super(s,"acrobat7",!0),this.dynamicRender=null}}class c extends i.OptionObject{constructor(e){super(s,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class h extends i.OptionObject{constructor(e){super(s,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class u extends i.Option01{constructor(e){super(s,"addSilentPrint")}}class d extends i.Option01{constructor(e){super(s,"addViewerPreferences")}}class f extends i.Option10{constructor(e){super(s,"adjustData")}}class g extends i.IntegerObject{constructor(e){super(s,"adobeExtensionLevel",0,e=>1<=e&&e<=8)}}class p extends i.XFAObject{constructor(e){super(s,"agent",!0),this.name=e.name?e.name.trim():"",this.common=new i.XFAObjectArray}}class m extends i.ContentObject{constructor(e){super(s,"alwaysEmbed")}}class b extends i.StringObject{constructor(e){super(s,"amd")}}class y extends i.XFAObject{constructor(e){super(s,"area"),this.level=(0,r.getInteger)({data:e.level,defaultValue:0,validate:e=>1<=e&&e<=3}),this.name=(0,r.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class v extends i.OptionObject{constructor(e){super(s,"attributes",["preserve","delegate","ignore"])}}class w extends i.OptionObject{constructor(e){super(s,"autoSave",["disabled","enabled"])}}class x extends i.StringObject{constructor(e){super(s,"base")}}class S extends i.XFAObject{constructor(e){super(s,"batchOutput"),this.format=(0,r.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class A extends i.ContentObject{constructor(e){super(s,"behaviorOverride")}[i.$finalize](){this[i.$content]=new Map(this[i.$content].trim().split(/\s+/).filter(e=>e.includes(":")).map(e=>e.split(":",2)))}}class k extends i.XFAObject{constructor(e){super(s,"cache",!0),this.templateCache=null}}class C extends i.Option01{constructor(e){super(s,"change")}}class O extends i.XFAObject{constructor(e){super(s,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new i.XFAObjectArray}}class F extends i.XFAObject{constructor(e){super(s,"compress"),this.scope=(0,r.getStringOption)(e.scope,["imageOnly","document"])}}class I extends i.Option01{constructor(e){super(s,"compressLogicalStructure")}}class T extends i.Option10{constructor(e){super(s,"compressObjectStream")}}class M extends i.XFAObject{constructor(e){super(s,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class P extends i.XFAObject{constructor(e){super(s,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new i.XFAObjectArray}}class E extends i.OptionObject{constructor(e){super(s,"conformance",["A","B"])}}class N extends i.Option01{constructor(e){super(s,"contentCopy")}}class D extends i.IntegerObject{constructor(e){super(s,"copies",1,e=>1<=e)}}class L extends i.StringObject{constructor(e){super(s,"creator")}}class j extends i.IntegerObject{constructor(e){super(s,"currentPage",0,e=>0<=e)}}class _ extends i.XFAObject{constructor(e){super(s,"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 i.XFAObjectArray,this.transform=new i.XFAObjectArray}}class $ extends i.XFAObject{constructor(e){super(s,"debug",!0),this.uri=null}}class U extends i.ContentObject{constructor(e){super(s,"defaultTypeface"),this.writingScript=(0,r.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class X extends i.OptionObject{constructor(e){super(s,"destination",["pdf","pcl","ps","webClient","zpl"])}}class H extends i.Option01{constructor(e){super(s,"documentAssembly")}}class q extends i.XFAObject{constructor(e){super(s,"driver",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class z extends i.OptionObject{constructor(e){super(s,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class G extends i.OptionObject{constructor(e){super(s,"dynamicRender",["forbidden","required"])}}class W extends i.Option01{constructor(e){super(s,"embed")}}class V extends i.Option01{constructor(e){super(s,"encrypt")}}class K extends i.XFAObject{constructor(e){super(s,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class Y extends i.OptionObject{constructor(e){super(s,"encryptionLevel",["40bit","128bit"])}}class J extends i.StringObject{constructor(e){super(s,"enforce")}}class Z extends i.XFAObject{constructor(e){super(s,"equate"),this.force=(0,r.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e}),this.from=e.from||"",this.to=e.to||""}}class Q extends i.XFAObject{constructor(e){super(s,"equateRange"),this.from=e.from||"",this.to=e.to||"",this._unicodeRange=e.unicodeRange||""}get unicodeRange(){var e,t=[];const a=/U\+([0-9a-fA-F]+)/;for(e of this._unicodeRange.split(",").map(e=>e.trim()).filter(e=>!!e))1===(e=e.split("-",2).map(e=>{e=e.match(a);return e?parseInt(e[1],16):0})).length&&e.push(e[0]),t.push(e);return(0,n.shadow)(this,"unicodeRange",t)}}class ee extends i.ContentObject{constructor(e){super(s,"exclude")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter(e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e))}}class te extends i.StringObject{constructor(e){super(s,"excludeNS")}}class ae extends i.OptionObject{constructor(e){super(s,"flipLabel",["usePrinterSetting","on","off"])}}class re extends i.XFAObject{constructor(e){super(s,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new i.XFAObjectArray,this.defaultTypeface=new i.XFAObjectArray,this.neverEmbed=new i.XFAObjectArray}}class ie extends i.Option01{constructor(e){super(s,"formFieldFilling")}}class ne extends i.StringObject{constructor(e){super(s,"groupParent")}}class se extends i.OptionObject{constructor(e){super(s,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class oe extends i.StringObject{constructor(e){super(s,"includeXDPContent")}}class le extends i.OptionObject{constructor(e){super(s,"incrementalLoad",["none","forwardOnly"])}}class ce extends i.Option01{constructor(e){super(s,"incrementalMerge")}}class he extends i.Option01{constructor(e){super(s,"interactive")}}class ue extends i.OptionObject{constructor(e){super(s,"jog",["usePrinterSetting","none","pageSet"])}}class de extends i.XFAObject{constructor(e){super(s,"labelPrinter",!0),this.name=(0,r.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class fe extends i.OptionObject{constructor(e){super(s,"layout",["paginate","panel"])}}class ge extends i.IntegerObject{constructor(e){super(s,"level",0,e=>0<e)}}class pe extends i.Option01{constructor(e){super(s,"linearized")}}class me extends i.StringObject{constructor(e){super(s,"locale")}}class be extends i.StringObject{constructor(e){super(s,"localeSet")}}class ye extends i.XFAObject{constructor(e){super(s,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class ve extends i.XFAObject{constructor(e){super(s,"map",!0),this.equate=new i.XFAObjectArray,this.equateRange=new i.XFAObjectArray}}class we extends i.XFAObject{constructor(e){super(s,"mediumInfo",!0),this.map=null}}class xe extends i.XFAObject{constructor(e){super(s,"message",!0),this.msgId=null,this.severity=null}}class Se extends i.XFAObject{constructor(e){super(s,"messaging",!0),this.message=new i.XFAObjectArray}}class Ae extends i.OptionObject{constructor(e){super(s,"mode",["append","overwrite"])}}class ke extends i.Option01{constructor(e){super(s,"modifyAnnots")}}class Ce extends i.IntegerObject{constructor(e){super(s,"msgId",1,e=>1<=e)}}class Oe extends i.StringObject{constructor(e){super(s,"nameAttr")}}class Fe extends i.ContentObject{constructor(e){super(s,"neverEmbed")}}class Ie extends i.IntegerObject{constructor(e){super(s,"numberOfCopies",null,e=>2<=e&&e<=5)}}class Te extends i.XFAObject{constructor(e){super(s,"openAction",!0),this.destination=null}}class Me extends i.XFAObject{constructor(e){super(s,"output",!0),this.to=null,this.type=null,this.uri=null}}class Pe extends i.StringObject{constructor(e){super(s,"outputBin")}}class Ee extends i.XFAObject{constructor(e){super(s,"outputXSL",!0),this.uri=null}}class Ne extends i.OptionObject{constructor(e){super(s,"overprint",["none","both","draw","field"])}}class De extends i.StringObject{constructor(e){super(s,"packets")}[i.$finalize](){"*"!==this[i.$content]&&(this[i.$content]=this[i.$content].trim().split(/\s+/).filter(e=>["config","datasets","template","xfdf","xslt"].includes(e)))}}class Be extends i.XFAObject{constructor(e){super(s,"pageOffset"),this.x=(0,r.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0}),this.y=(0,r.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class Re extends i.StringObject{constructor(e){super(s,"pageRange")}[i.$finalize](){var a=this[i.$content].trim().split(/\s+/).map(e=>parseInt(e,10)),r=[];for(let e=0,t=a.length;e<t;e+=2)r.push(a.slice(e,e+2));this[i.$content]=r}}class Le extends i.OptionObject{constructor(e){super(s,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class je extends i.OptionObject{constructor(e){super(s,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class _e extends i.IntegerObject{constructor(e){super(s,"part",1,e=>!1)}}class $e extends i.XFAObject{constructor(e){super(s,"pcl",!0),this.name=e.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 Ue extends i.XFAObject{constructor(e){super(s,"pdf",!0),this.name=e.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 Xe extends i.XFAObject{constructor(e){super(s,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class He extends i.XFAObject{constructor(e){super(s,"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 qe extends i.Option01{constructor(e){super(s,"pickTrayByPDFSize")}}class ze extends i.StringObject{constructor(e){super(s,"picture")}}class Ge extends i.Option01{constructor(e){super(s,"plaintextMetadata")}}class We extends i.OptionObject{constructor(e){super(s,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Ve extends i.XFAObject{constructor(e){super(s,"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 i.XFAObjectArray,this.labelPrinter=new i.XFAObjectArray,this.pcl=new i.XFAObjectArray,this.pdf=new i.XFAObjectArray,this.ps=new i.XFAObjectArray,this.submitUrl=new i.XFAObjectArray,this.webClient=new i.XFAObjectArray,this.zpl=new i.XFAObjectArray}}class Ke extends i.Option01{constructor(e){super(s,"print")}}class Ye extends i.Option01{constructor(e){super(s,"printHighQuality")}}class Je extends i.OptionObject{constructor(e){super(s,"printScaling",["appdefault","noScaling"])}}class Ze extends i.StringObject{constructor(e){super(s,"printerName")}}class Qe extends i.StringObject{constructor(e){super(s,"producer")}}class et extends i.XFAObject{constructor(e){super(s,"ps",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class tt extends i.ContentObject{constructor(e){super(s,"range")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s*,\s*/,2).map(e=>e.split("-").map(e=>parseInt(e.trim(),10))).filter(e=>e.every(e=>!isNaN(e))).map(e=>(1===e.length&&e.push(e[0]),e))}}class at extends i.ContentObject{constructor(e){super(s,"record")}[i.$finalize](){this[i.$content]=this[i.$content].trim();var e=parseInt(this[i.$content],10);!isNaN(e)&&0<=e&&(this[i.$content]=e)}}class rt extends i.ContentObject{constructor(e){super(s,"relevant")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/)}}class it extends i.ContentObject{constructor(e){super(s,"rename")}[i.$finalize](){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[i.$content]))&&(0,n.warn)("XFA - Rename: invalid XFA name")}}class nt extends i.OptionObject{constructor(e){super(s,"renderPolicy",["server","client"])}}class st extends i.OptionObject{constructor(e){super(s,"runScripts",["both","client","none","server"])}}class ot extends i.XFAObject{constructor(e){super(s,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class lt extends i.OptionObject{constructor(e){super(s,"scriptModel",["XFA","none"])}}class ct extends i.OptionObject{constructor(e){super(s,"severity",["ignore","error","information","trace","warning"])}}class ht extends i.XFAObject{constructor(e){super(s,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class ut extends i.XFAObject{constructor(e){super(s,"staple"),this.mode=(0,r.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class dt extends i.StringObject{constructor(e){super(s,"startNode")}}class ft extends i.IntegerObject{constructor(e){super(s,"startPage",0,e=>!0)}}class gt extends i.OptionObject{constructor(e){super(s,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class pt extends i.StringObject{constructor(e){super(s,"submitUrl")}}class mt extends i.IntegerObject{constructor(e){super(s,"subsetBelow",100,e=>0<=e&&e<=100)}}class bt extends i.Option01{constructor(e){super(s,"suppressBanner")}}class yt extends i.Option01{constructor(e){super(s,"tagged")}}class vt extends i.XFAObject{constructor(e){super(s,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class wt extends i.OptionObject{constructor(e){super(s,"threshold",["trace","error","information","warning"])}}class xt extends i.OptionObject{constructor(e){super(s,"to",["null","memory","stderr","stdout","system","uri"])}}class St extends i.XFAObject{constructor(e){super(s,"templateCache"),this.maxEntries=(0,r.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>0<=e})}}class At extends i.XFAObject{constructor(e){super(s,"trace",!0),this.area=new i.XFAObjectArray}}class kt extends i.XFAObject{constructor(e){super(s,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class Ct extends i.OptionObject{constructor(e){super(s,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Ot extends i.StringObject{constructor(e){super(s,"uri")}}class Ft extends i.OptionObject{constructor(e){super(s,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class It extends i.ContentObject{constructor(e){super(s,"validateApprovalSignatures")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter(e=>["docReady","postSign"].includes(e))}}class Tt extends i.OptionObject{constructor(e){super(s,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Mt extends i.OptionObject{constructor(e){super(s,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Pt extends i.XFAObject{constructor(e){super(s,"VersionControl"),this.outputBelow=(0,r.getStringOption)(e.outputBelow,["warn","error","update"]),this.sourceAbove=(0,r.getStringOption)(e.sourceAbove,["warn","error"]),this.sourceBelow=(0,r.getStringOption)(e.sourceBelow,["update","maintain"])}}class Et extends i.XFAObject{constructor(e){super(s,"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 Nt extends i.XFAObject{constructor(e){super(s,"webClient",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class Dt extends i.OptionObject{constructor(e){super(s,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Bt extends i.ContentObject{constructor(e){super(s,"window")}[i.$finalize](){var e=this[i.$content].trim().split(/\s*,\s*/,2).map(e=>parseInt(e,10));e.some(e=>isNaN(e))?this[i.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[i.$content]=e)}}class Rt extends i.XFAObject{constructor(e){super(s,"xdc",!0),this.uri=new i.XFAObjectArray,this.xsl=new i.XFAObjectArray}}class Lt extends i.XFAObject{constructor(e){super(s,"xdp",!0),this.packets=null}}class jt extends i.XFAObject{constructor(e){super(s,"xsl",!0),this.debug=null,this.uri=null}}class _t extends i.XFAObject{constructor(e){super(s,"zpl",!0),this.name=e.name?e.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class B{static[a.$buildXFAObject](e,t){if(B.hasOwnProperty(e))return B[e](t)}static acrobat(e){return new o(e)}static acrobat7(e){return new l(e)}static ADBE_JSConsole(e){return new c(e)}static ADBE_JSDebugger(e){return new h(e)}static addSilentPrint(e){return new u(e)}static addViewerPreferences(e){return new d(e)}static adjustData(e){return new f(e)}static adobeExtensionLevel(e){return new g(e)}static agent(e){return new p(e)}static alwaysEmbed(e){return new m(e)}static amd(e){return new b(e)}static area(e){return new y(e)}static attributes(e){return new v(e)}static autoSave(e){return new w(e)}static base(e){return new x(e)}static batchOutput(e){return new S(e)}static behaviorOverride(e){return new A(e)}static cache(e){return new k(e)}static change(e){return new C(e)}static common(e){return new O(e)}static compress(e){return new F(e)}static compressLogicalStructure(e){return new I(e)}static compressObjectStream(e){return new T(e)}static compression(e){return new M(e)}static config(e){return new P(e)}static conformance(e){return new E(e)}static contentCopy(e){return new N(e)}static copies(e){return new D(e)}static creator(e){return new L(e)}static currentPage(e){return new j(e)}static data(e){return new _(e)}static debug(e){return new $(e)}static defaultTypeface(e){return new U(e)}static destination(e){return new X(e)}static documentAssembly(e){return new H(e)}static driver(e){return new q(e)}static duplexOption(e){return new z(e)}static dynamicRender(e){return new G(e)}static embed(e){return new W(e)}static encrypt(e){return new V(e)}static encryption(e){return new K(e)}static encryptionLevel(e){return new Y(e)}static enforce(e){return new J(e)}static equate(e){return new Z(e)}static equateRange(e){return new Q(e)}static exclude(e){return new ee(e)}static excludeNS(e){return new te(e)}static flipLabel(e){return new ae(e)}static fontInfo(e){return new re(e)}static formFieldFilling(e){return new ie(e)}static groupParent(e){return new ne(e)}static ifEmpty(e){return new se(e)}static includeXDPContent(e){return new oe(e)}static incrementalLoad(e){return new le(e)}static incrementalMerge(e){return new ce(e)}static interactive(e){return new he(e)}static jog(e){return new ue(e)}static labelPrinter(e){return new de(e)}static layout(e){return new fe(e)}static level(e){return new ge(e)}static linearized(e){return new pe(e)}static locale(e){return new me(e)}static localeSet(e){return new be(e)}static log(e){return new ye(e)}static map(e){return new ve(e)}static mediumInfo(e){return new we(e)}static message(e){return new xe(e)}static messaging(e){return new Se(e)}static mode(e){return new Ae(e)}static modifyAnnots(e){return new ke(e)}static msgId(e){return new Ce(e)}static nameAttr(e){return new Oe(e)}static neverEmbed(e){return new Fe(e)}static numberOfCopies(e){return new Ie(e)}static openAction(e){return new Te(e)}static output(e){return new Me(e)}static outputBin(e){return new Pe(e)}static outputXSL(e){return new Ee(e)}static overprint(e){return new Ne(e)}static packets(e){return new De(e)}static pageOffset(e){return new Be(e)}static pageRange(e){return new Re(e)}static pagination(e){return new Le(e)}static paginationOverride(e){return new je(e)}static part(e){return new _e(e)}static pcl(e){return new $e(e)}static pdf(e){return new Ue(e)}static pdfa(e){return new Xe(e)}static permissions(e){return new He(e)}static pickTrayByPDFSize(e){return new qe(e)}static picture(e){return new ze(e)}static plaintextMetadata(e){return new Ge(e)}static presence(e){return new We(e)}static present(e){return new Ve(e)}static print(e){return new Ke(e)}static printHighQuality(e){return new Ye(e)}static printScaling(e){return new Je(e)}static printerName(e){return new Ze(e)}static producer(e){return new Qe(e)}static ps(e){return new et(e)}static range(e){return new tt(e)}static record(e){return new at(e)}static relevant(e){return new rt(e)}static rename(e){return new it(e)}static renderPolicy(e){return new nt(e)}static runScripts(e){return new st(e)}static script(e){return new ot(e)}static scriptModel(e){return new lt(e)}static severity(e){return new ct(e)}static silentPrint(e){return new ht(e)}static staple(e){return new ut(e)}static startNode(e){return new dt(e)}static startPage(e){return new ft(e)}static submitFormat(e){return new gt(e)}static submitUrl(e){return new pt(e)}static subsetBelow(e){return new mt(e)}static suppressBanner(e){return new bt(e)}static tagged(e){return new yt(e)}static template(e){return new vt(e)}static templateCache(e){return new St(e)}static threshold(e){return new wt(e)}static to(e){return new xt(e)}static trace(e){return new At(e)}static transform(e){return new kt(e)}static type(e){return new Ct(e)}static uri(e){return new Ot(e)}static validate(e){return new Ft(e)}static validateApprovalSignatures(e){return new It(e)}static validationMessaging(e){return new Tt(e)}static version(e){return new Mt(e)}static versionControl(e){return new Pt(e)}static viewerPreferences(e){return new Et(e)}static webClient(e){return new Nt(e)}static whitespace(e){return new Dt(e)}static window(e){return new Bt(e)}static xdc(e){return new Rt(e)}static xdp(e){return new Lt(e)}static xsl(e){return new jt(e)}static zpl(e){return new _t(e)}}e.ConfigNamespace=B},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var r=a(208),i=a(206);const n=r.NamespaceIds.connectionSet.id;class s extends i.XFAObject{constructor(e){super(n,"connectionSet",!0),this.wsdlConnection=new i.XFAObjectArray,this.xmlConnection=new i.XFAObjectArray,this.xsdConnection=new i.XFAObjectArray}}class o extends i.XFAObject{constructor(e){super(n,"effectiveInputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class l extends i.XFAObject{constructor(e){super(n,"effectiveOutputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class c extends i.StringObject{constructor(e){super(n,"operation"),this.id=e.id||"",this.input=e.input||"",this.name=e.name||"",this.output=e.output||"",this.use=e.use||"",this.usehref=e.usehref||""}}class h extends i.StringObject{constructor(e){super(n,"rootElement"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class u extends i.StringObject{constructor(e){super(n,"soapAction"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class d extends i.StringObject{constructor(e){super(n,"soapAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class f extends i.StringObject{constructor(e){super(n,"uri"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class g extends i.StringObject{constructor(e){super(n,"wsdlAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class p extends i.XFAObject{constructor(e){super(n,"wsdlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class m extends i.XFAObject{constructor(e){super(n,"xmlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.uri=null}}class b extends i.XFAObject{constructor(e){super(n,"xsdConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.rootElement=null,this.uri=null}}class y{static[r.$buildXFAObject](e,t){if(y.hasOwnProperty(e))return y[e](t)}static connectionSet(e){return new s(e)}static effectiveInputPolicy(e){return new o(e)}static effectiveOutputPolicy(e){return new l(e)}static operation(e){return new c(e)}static rootElement(e){return new h(e)}static soapAction(e){return new u(e)}static soapAddress(e){return new d(e)}static uri(e){return new f(e)}static wsdlAddress(e){return new g(e)}static wsdlConnection(e){return new p(e)}static xmlConnection(e){return new m(e)}static xsdConnection(e){return new b(e)}}t.ConnectionSetNamespace=y},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var r=a(206),i=a(208);const n=i.NamespaceIds.datasets.id;class s extends r.XmlObject{constructor(e){super(n,"data",e)}[r.$isNsAgnostic](){return!0}}class o extends r.XFAObject{constructor(e){super(n,"datasets",!0),this.data=null,this.Signature=null}[r.$onChild](e){var t=e[r.$nodeName];("data"===t&&e[r.$namespaceId]===n||"Signature"===t&&e[r.$namespaceId]===i.NamespaceIds.signature.id)&&(this[t]=e),this[r.$appendChild](e)}}class l{static[i.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static datasets(e){return new o(e)}static data(e){return new s(e)}}t.DatasetsNamespace=l},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var r=a(208),i=a(206),n=a(207);const s=r.NamespaceIds.localeSet.id;class o extends i.XFAObject{constructor(e){super(s,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new i.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new i.XFAObjectArray(2)}}class l extends i.StringObject{constructor(e){super(s,"currencySymbol"),this.name=(0,n.getStringOption)(e.name,["symbol","isoname","decimal"])}}class c extends i.XFAObject{constructor(e){super(s,"currencySymbols",!0),this.currencySymbol=new i.XFAObjectArray(3)}}class h extends i.StringObject{constructor(e){super(s,"datePattern"),this.name=(0,n.getStringOption)(e.name,["full","long","med","short"])}}class u extends i.XFAObject{constructor(e){super(s,"datePatterns",!0),this.datePattern=new i.XFAObjectArray(4)}}class d extends i.ContentObject{constructor(e){super(s,"dateTimeSymbols")}}class f extends i.StringObject{constructor(e){super(s,"day")}}class g extends i.XFAObject{constructor(e){super(s,"dayNames",!0),this.abbr=(0,n.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.day=new i.XFAObjectArray(7)}}class p extends i.StringObject{constructor(e){super(s,"era")}}class m extends i.XFAObject{constructor(e){super(s,"eraNames",!0),this.era=new i.XFAObjectArray(2)}}class b extends i.XFAObject{constructor(e){super(s,"locale",!0),this.desc=e.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 y extends i.XFAObject{constructor(e){super(s,"localeSet",!0),this.locale=new i.XFAObjectArray}}class v extends i.StringObject{constructor(e){super(s,"meridiem")}}class w extends i.XFAObject{constructor(e){super(s,"meridiemNames",!0),this.meridiem=new i.XFAObjectArray(2)}}class x extends i.StringObject{constructor(e){super(s,"month")}}class S extends i.XFAObject{constructor(e){super(s,"monthNames",!0),this.abbr=(0,n.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.month=new i.XFAObjectArray(12)}}class A extends i.StringObject{constructor(e){super(s,"numberPattern"),this.name=(0,n.getStringOption)(e.name,["full","long","med","short"])}}class k extends i.XFAObject{constructor(e){super(s,"numberPatterns",!0),this.numberPattern=new i.XFAObjectArray(4)}}class C extends i.StringObject{constructor(e){super(s,"numberSymbol"),this.name=(0,n.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class O extends i.XFAObject{constructor(e){super(s,"numberSymbols",!0),this.numberSymbol=new i.XFAObjectArray(5)}}class F extends i.StringObject{constructor(e){super(s,"timePattern"),this.name=(0,n.getStringOption)(e.name,["full","long","med","short"])}}class I extends i.XFAObject{constructor(e){super(s,"timePatterns",!0),this.timePattern=new i.XFAObjectArray(4)}}class T extends i.XFAObject{constructor(e){super(s,"typeFace",!0),this.name=""|e.name}}class M extends i.XFAObject{constructor(e){super(s,"typeFaces",!0),this.typeFace=new i.XFAObjectArray}}class P{static[r.$buildXFAObject](e,t){if(P.hasOwnProperty(e))return P[e](t)}static calendarSymbols(e){return new o(e)}static currencySymbol(e){return new l(e)}static currencySymbols(e){return new c(e)}static datePattern(e){return new h(e)}static datePatterns(e){return new u(e)}static dateTimeSymbols(e){return new d(e)}static day(e){return new f(e)}static dayNames(e){return new g(e)}static era(e){return new p(e)}static eraNames(e){return new m(e)}static locale(e){return new b(e)}static localeSet(e){return new y(e)}static meridiem(e){return new v(e)}static meridiemNames(e){return new w(e)}static month(e){return new x(e)}static monthNames(e){return new S(e)}static numberPattern(e){return new A(e)}static numberPatterns(e){return new k(e)}static numberSymbol(e){return new C(e)}static numberSymbols(e){return new O(e)}static timePattern(e){return new F(e)}static timePatterns(e){return new I(e)}static typeFace(e){return new T(e)}static typeFaces(e){return new M(e)}}t.LocaleSetNamespace=P},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var r=a(208),a=a(206);const i=r.NamespaceIds.signature.id;class n extends a.XFAObject{constructor(e){super(i,"signature",!0)}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static signature(e){return new n(e)}}t.SignatureNamespace=s},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var r=a(208),a=a(206);const i=r.NamespaceIds.stylesheet.id;class n extends a.XFAObject{constructor(e){super(i,"stylesheet",!0)}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static stylesheet(e){return new n(e)}}t.StylesheetNamespace=s},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var r=a(208),i=a(206);const n=r.NamespaceIds.xdp.id;class s extends i.XFAObject{constructor(e){super(n,"xdp",!0),this.uuid=e.uuid||"",this.timeStamp=e.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new i.XFAObjectArray,this.template=null}[i.$onChildCheck](e){var t=r.NamespaceIds[e[i.$nodeName]];return t&&e[i.$namespaceId]===t.id}}class o{static[r.$buildXFAObject](e,t){if(o.hasOwnProperty(e))return o[e](t)}static xdp(e){return new s(e)}}t.XdpNamespace=o},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var c=a(206),r=a(208),l=a(213),h=a(207);const i=r.NamespaceIds.xhtml.id,n=Symbol(),s=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"]),u=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>(e=t.fontSize=(0,h.getMeasurement)(e),(0,l.measureToString)(.99*e))],["letter-spacing",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["line-height",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["margin",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["margin-bottom",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["margin-left",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["margin-right",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["margin-top",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["text-indent",e=>(0,l.measureToString)((0,h.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,l.measureToString)((0,h.getMeasurement)(e))]]),o=/\s+/g,d=/[\r\n]+/g,f=/\r\n?/g;const g=new Set(["body","html"]);class p extends c.XmlObject{constructor(e,t){super(i,t),this[n]=!1,this.style=e.style||""}[c.$clean](e){var a;super[c.$clean](e),this.style=(a=this).style?a.style.trim().split(/\s*;\s*/).filter(e=>!!e).map(e=>e.split(/\s*:\s*/,2)).filter(e=>{var[e,t]=e;return"font-family"===e&&a[c.$globalData].usedTypefaces.add(t),s.has(e)}).map(e=>e.join(":")).join(";"):""}[c.$acceptWhitespace](){return!g.has(this[c.$nodeName])}[c.$onText](e){1<arguments.length&&void 0!==arguments[1]&&arguments[1]?this[n]=!0:(e=e.replace(d,""),this.style.includes("xfa-spacerun:yes")||(e=e.replace(o," "))),e&&(this[c.$content]+=e)}[c.$pushGlyphs](e){var t,a,r=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=Object.create(null),n={top:NaN,bottom:NaN,left:NaN,right:NaN};let s=null;for([t,a]of this.style.split(";").map(e=>e.split(":",2)))switch(t){case"font-family":i.typeface=(0,h.stripQuotes)(a);break;case"font-size":i.size=(0,h.getMeasurement)(a);break;case"font-weight":i.weight=a;break;case"font-style":i.posture=a;break;case"letter-spacing":i.letterSpacing=(0,h.getMeasurement)(a);break;case"margin":var o=a.split(/ \t/).map(e=>(0,h.getMeasurement)(e));switch(o.length){case 1:n.top=n.bottom=n.left=n.right=o[0];break;case 2:n.top=n.bottom=o[0],n.left=n.right=o[1];break;case 3:n.top=o[0],n.bottom=o[2],n.left=n.right=o[1];break;case 4:n.top=o[0],n.left=o[1],n.bottom=o[2],n.right=o[3]}break;case"margin-top":n.top=(0,h.getMeasurement)(a);break;case"margin-bottom":n.bottom=(0,h.getMeasurement)(a);break;case"margin-left":n.left=(0,h.getMeasurement)(a);break;case"margin-right":n.right=(0,h.getMeasurement)(a);break;case"line-height":s=(0,h.getMeasurement)(a)}if(e.pushData(i,n,s),this[c.$content])e.addString(this[c.$content]);else for(const l of this[c.$getChildren]())"#text"===l[c.$nodeName]?e.addString(l[c.$content]):l[c.$pushGlyphs](e);r&&e.popFont()}[c.$toHTML](e){var t=[];if(this[c.$extra]={children:t},this[c.$childrenToHTML]({}),0===t.length&&!this[c.$content])return h.HTMLResult.EMPTY;let a;return a=this[n]?this[c.$content]?this[c.$content].replace(f,"\n"):void 0:this[c.$content]||void 0,h.HTMLResult.success({name:this[c.$nodeName],attributes:{href:this.href,style:function(e,t,a){var r=Object.create(null);if(e){var i,n,s=Object.create(null);for([i,n]of e.split(";").map(e=>e.split(":",2))){var o=u.get(i);if(""!==o){let e=n;o&&(e="string"==typeof o?o:o(n,s)),i.endsWith("scale")?r.transform?r.transform=r[i]+" "+e:r.transform=e:r[i.replaceAll(/-([a-zA-Z])/g,(e,t)=>t.toUpperCase())]=e}}r.fontFamily&&(0,l.setFontFamily)({typeface:r.fontFamily,weight:r.fontWeight||"normal",posture:r.fontStyle||"normal",size:s.fontSize||0},t,t[c.$globalData].fontFinder,r),a&&r.verticalAlign&&"0px"!==r.verticalAlign&&r.fontSize&&(e=(0,h.getMeasurement)(r.fontSize),r.fontSize=(0,l.measureToString)(.583*e),r.verticalAlign=(0,l.measureToString)(Math.sign((0,h.getMeasurement)(r.verticalAlign))*e*.333)),a&&r.fontSize&&(r.fontSize=`calc(${r.fontSize} * var(--scale-factor))`),(0,l.fixTextIndent)(r)}return r}(this.style,this,this[n])},children:t,value:a})}}class m extends p{constructor(e){super(e,"a"),this.href=(0,l.fixURL)(e.href)||""}}class b extends p{constructor(e){super(e,"b")}[c.$pushGlyphs](e){e.pushFont({weight:"bold"}),super[c.$pushGlyphs](e),e.popFont()}}class y extends p{constructor(e){super(e,"body")}[c.$toHTML](e){var e=super[c.$toHTML](e),t=e["html"];return t?(t.name="div",t.attributes.class=["xfaRich"],e):h.HTMLResult.EMPTY}}class v extends p{constructor(e){super(e,"br")}[c.$text](){return"\n"}[c.$pushGlyphs](e){e.addString("\n")}[c.$toHTML](e){return h.HTMLResult.success({name:"br"})}}class w extends p{constructor(e){super(e,"html")}[c.$toHTML](e){var t=[];if(this[c.$extra]={children:t},this[c.$childrenToHTML]({}),0===t.length)return h.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[c.$content]||""});if(1===t.length){var a=t[0];if(a.attributes&&a.attributes.class.includes("xfaRich"))return h.HTMLResult.success(a)}return h.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class x extends p{constructor(e){super(e,"i")}[c.$pushGlyphs](e){e.pushFont({posture:"italic"}),super[c.$pushGlyphs](e),e.popFont()}}class S extends p{constructor(e){super(e,"li")}}class A extends p{constructor(e){super(e,"ol")}}class k extends p{constructor(e){super(e,"p")}[c.$pushGlyphs](e){super[c.$pushGlyphs](e,!1),e.addString("\n"),e.addPara(),e.popFont()}[c.$text](){return this[c.$getParent]()[c.$getChildren]().at(-1)===this?super[c.$text]():super[c.$text]()+"\n"}}class C extends p{constructor(e){super(e,"span")}}class O extends p{constructor(e){super(e,"sub")}}class F extends p{constructor(e){super(e,"sup")}}class I extends p{constructor(e){super(e,"ul")}}class T{static[r.$buildXFAObject](e,t){if(T.hasOwnProperty(e))return T[e](t)}static a(e){return new m(e)}static b(e){return new b(e)}static body(e){return new y(e)}static br(e){return new v(e)}static html(e){return new w(e)}static i(e){return new x(e)}static li(e){return new S(e)}static ol(e){return new A(e)}static p(e){return new k(e)}static span(e){return new C(e)}static sub(e){return new O(e)}static sup(e){return new F(e)}static ul(e){return new I(e)}}t.XhtmlNamespace=T},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var r=a(208),i=a(206);class n{constructor(e){this.namespaceId=e}[r.$buildXFAObject](e,t){return new i.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=n},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0;var r=a(2),i=a(135),n=a(195);function s(t){try{return(0,r.stringToUTF8String)(t)}catch(e){return(0,r.warn)(`UTF-8 decoding failed: "${e}".`),t}}class o extends n.SimpleXMLParser{constructor(e){super(e),this.node=null}onEndElement(e){var t=super.onEndElement(e);if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}t.DatasetReader=class{constructor(e){if(e.datasets)this.node=new n.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{var t=new o({hasAttributes:!0});try{t.parseFromString(e["xdp:xdp"])}catch(e){}this.node=t.node}}getValue(e){var t;return this.node&&(e=e&&this.node.searchNode((0,i.parseXFAPath)(e),0))?(t=e.firstChild)&&"value"===t.nodeName?e.children.map(e=>s(e.textContent)):s(e.textContent):""}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var P=a(2),E=a(134),N=a(135),D=a(146),m=a(136),n=a(196);t.XRef=class{constructor(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new E.RefSet,this.stats=new N.DocStats(t.msgHandler),this._newRefNum=null}getNewRef(){return null===this._newRefNum&&(this._newRefNum=this.entries.length||1),E.Ref.get(this._newRefNum++,0)}resetNewRef(){this._newRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];let a;(a=t?((0,P.warn)("Indexing all PDF objects"),this.indexObjects()):this.readXRef()).assignXref(this),this.trailer=a;let r;try{r=a.get("Encrypt")}catch(e){if(e instanceof N.MissingDataException)throw e;(0,P.warn)(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}r instanceof E.Dict&&(e=(e=a.get("ID"))&&e.length?e[0]:"",r.suppressEncryption=!0,this.encrypt=new n.CipherTransformFactory(r,e,this.pdfManager.password));let i;try{i=a.get("Root")}catch(e){if(e instanceof N.MissingDataException)throw e;(0,P.warn)(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(i instanceof E.Dict)try{if(i.get("Pages")instanceof E.Dict)return void(this.root=i)}catch(e){if(e instanceof N.MissingDataException)throw e;(0,P.warn)(`XRef.parse - Invalid "Pages" reference: "${e}".`)}if(t)throw new P.InvalidPDFException("Invalid Root reference.");throw new N.XRefParseException}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,E.isCmd)(t,"trailer"))throw new P.FormatError("Invalid XRef table: could not find trailer dictionary");let a=e.getObj();if((a=a instanceof E.Dict||!a.dict?a:a.dict)instanceof E.Dict)return delete this.tableState,a;throw new P.FormatError("Invalid XRef table: could not parse trailer dictionary")}readXRefTable(a){var r=a.lexer.stream,i=this.tableState;r.pos=i.streamPos,a.buf1=i.parserBuf1,a.buf2=i.parserBuf2;let e;for(;;){if(!("firstEntryNum"in i&&"entryCount"in i)){if((0,E.isCmd)(e=a.getObj(),"trailer"))break;i.firstEntryNum=e,i.entryCount=a.getObj()}let t=i.firstEntryNum;var n=i.entryCount;if(!Number.isInteger(t)||!Number.isInteger(n))throw new P.FormatError("Invalid XRef table: wrong types in subsection header");for(let e=i.entryNum;e<n;e++){i.streamPos=r.pos,i.entryNum=e,i.parserBuf1=a.buf1,i.parserBuf2=a.buf2;var s={},o=(s.offset=a.getObj(),s.gen=a.getObj(),a.getObj());if(o instanceof E.Cmd)switch(o.cmd){case"f":s.free=!0;break;case"n":s.uncompressed=!0}if(!Number.isInteger(s.offset)||!Number.isInteger(s.gen)||!s.free&&!s.uncompressed)throw new P.FormatError(`Invalid entry in XRef subsection: ${t}, `+n);0===e&&s.free&&1===t&&(t=0),this.entries[e+t]||(this.entries[e+t]=s)}i.entryNum=0,i.streamPos=r.pos,i.parserBuf1=a.buf1,i.parserBuf2=a.buf2,delete i.firstEntryNum,delete i.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new P.FormatError("Invalid XRef table: unexpected first object");return e}processXRefStream(t){if(!("streamState"in this)){var a=t.dict,r=a.get("W");let e=a.get("Index");e=e||[0,a.get("Size")],this.streamState={entryRanges:e,byteWidths:r,entryNum:0,streamPos:t.pos}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(i){for(var n=this.streamState,[s,o,l]=(i.pos=n.streamPos,n.byteWidths),e=n.entryRanges;0<e.length;){var[c,t]=e;if(!Number.isInteger(c)||!Number.isInteger(t))throw new P.FormatError(`Invalid XRef range fields: ${c}, `+t);if(!Number.isInteger(s)||!Number.isInteger(o)||!Number.isInteger(l))throw new P.FormatError(`Invalid XRef entry fields length: ${c}, `+t);for(let e=n.entryNum;e<t;++e){n.entryNum=e,n.streamPos=i.pos;let t=0,a=0,r=0;for(let e=0;e<s;++e){var h=i.getByte();if(-1===h)throw new P.FormatError("Invalid XRef byteWidths 'type'.");t=t<<8|h}0===s&&(t=1);for(let e=0;e<o;++e){var u=i.getByte();if(-1===u)throw new P.FormatError("Invalid XRef byteWidths 'offset'.");a=a<<8|u}for(let e=0;e<l;++e){var d=i.getByte();if(-1===d)throw new P.FormatError("Invalid XRef byteWidths 'generation'.");r=r<<8|d}var f={};switch(f.offset=a,f.gen=r,t){case 0:f.free=!0;break;case 1:f.uncompressed=!0;break;case 2:break;default:throw new P.FormatError("Invalid XRef entry type: "+t)}this.entries[c+e]||(this.entries[c+e]=f)}n.entryNum=0,n.streamPos=i.pos,e.splice(0,2)}}indexObjects(){const i=10,n=13,s=60;function r(t,a,r){var i=r.length,e=t.length;let n=0;for(;a<e;){let e=0;for(;e<i&&t[a+e]===r[e];)++e;if(e>=i)break;a++,n++}return n}var t=/^(\d+)\s+(\d+)\s+obj\b/,o=/\bendobj[\b\s]$/,l=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,a=new Uint8Array([116,114,97,105,108,101,114]),c=new Uint8Array([115,116,97,114,116,120,114,101,102]),h=new Uint8Array([111,98,106]),u=new Uint8Array([47,88,82,101,102]),d=(this.entries.length=0,this._cacheMap.clear(),this.stream),f=(d.pos=0,d.getBytes()),g=f.length;let p=d.start;for(var m=[],b=[];p<g;){let e=f[p];if(9===e||e===i||e===n||32===e)++p;else if(37===e)for(;!(++p>=g)&&(e=f[p])!==i&&e!==n;);else{var y=function(e,t){let a="",r=e[t];for(;r!==i&&r!==n&&r!==s&&!(++t>=e.length);)a+=String.fromCharCode(r),r=e[t];return a}(f,p);if(y.startsWith("xref")&&(4===y.length||/\s/.test(y[4])))p+=r(f,p,a),m.push(p),p+=r(f,p,c);else if(w=t.exec(y)){var v=0|w[1],w=0|w[2];let e,t=p+y.length,a=!1;if(this.entries[v]){if(this.entries[v].gen===w)try{new D.Parser({lexer:new D.Lexer(d.makeSubStream(t))}).getObj(),a=!0}catch(e){e instanceof N.ParserEOFException?(0,P.warn)(`indexObjects -- checking object (${y}): "${e}".`):a=!0}}else a=!0;for(a&&(this.entries[v]={offset:p-d.start,gen:w,uncompressed:!0});t<f.length;){var x=t+r(f,t,h)+4,S=(e=x-p,Math.max(x-25,t)),S=(0,P.bytesToString)(f.subarray(S,x));if(o.test(S))break;S=l.exec(S);if(S&&S[1]){(0,P.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),e-=S[1].length;break}t=x}v=f.subarray(p,p+e),w=r(v,0,u);w<e&&v[w+5]<64&&(b.push(p-d.start),this.xrefstms[p-d.start]=1),p+=e}else y.startsWith("trailer")&&(7===y.length||/\s/.test(y[7]))?(m.push(p),p+=r(f,p,c)):p+=y.length+1}}for(const T of b)this.startXRefQueue.push(T),this.readXRef(!0);let A,k;for(const M of[...m,"generationFallback",...m])if("generationFallback"===M){if(!k)break;this._generationFallback=!0}else{d.pos=M;var e=new D.Parser({lexer:new D.Lexer(d),xref:this,allowStreams:!0,recoveryMode:!0}),C=e.getObj();if((0,E.isCmd)(C,"trailer")){C=e.getObj();if(C instanceof E.Dict){let e=!1;try{var O=C.get("Root");if(!(O instanceof E.Dict))continue;var F=O.get("Pages");if(!(F instanceof E.Dict))continue;var I=F.get("Count");Number.isInteger(I)&&(e=!0)}catch(e){k=e;continue}if(e&&C.has("ID"))return C;A=C}}}if(A)return A;if(this.topDict)return this.topDict;throw new P.InvalidPDFException("Invalid PDF structure.")}readXRef(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=this.stream,r=new Set;try{for(;this.startXRefQueue.length;){var i=this.startXRefQueue[0];if(r.has(i))(0,P.warn)("readXRef - skipping XRef table since it was already parsed.");else{r.add(i),a.pos=i+a.start;var n,s=new D.Parser({lexer:new D.Lexer(a),xref:this,allowStreams:!0});let e=s.getObj(),t;if((0,E.isCmd)(e,"xref"))t=this.processXRefTable(s),this.topDict||(this.topDict=t),e=t.get("XRefStm"),!Number.isInteger(e)||(n=e)in this.xrefstms||(this.xrefstms[n]=1,this.startXRefQueue.push(n));else{if(!Number.isInteger(e))throw new P.FormatError("Invalid XRef stream header");if(!(Number.isInteger(s.getObj())&&(0,E.isCmd)(s.getObj(),"obj")&&(e=s.getObj())instanceof m.BaseStream))throw new P.FormatError("Invalid XRef stream");if(t=this.processXRefStream(e),this.topDict||(this.topDict=t),!t)throw new P.FormatError("Failed to read XRef stream")}e=t.get("Prev"),Number.isInteger(e)?this.startXRefQueue.push(e):e instanceof E.Ref&&this.startXRefQueue.push(e.num)}this.startXRefQueue.shift()}return this.topDict}catch(e){if(e instanceof N.MissingDataException)throw e;(0,P.info)("(while reading XRef): "+e),this.startXRefQueue.shift()}if(!e)throw new N.XRefParseException}getEntry(e){e=this.entries[e];return e&&!e.free&&e.offset?e:null}fetchIfRef(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e instanceof E.Ref?this.fetch(e,t):e}fetch(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!(t instanceof E.Ref))throw new Error("ref object is not a reference");var a=t.num,r=this._cacheMap.get(a);if(void 0!==r)return r instanceof E.Dict&&!r.objId&&(r.objId=t.toString()),r;let i=this.getEntry(a);if(null===i)this._cacheMap.set(a,i);else{if(this._pendingRefs.has(t))return this._pendingRefs.remove(t),(0,P.warn)(`Ignoring circular reference: ${t}.`),E.CIRCULAR_REF;this._pendingRefs.put(t);try{i=i.uncompressed?this.fetchUncompressed(t,i,e):this.fetchCompressed(t,i,e),this._pendingRefs.remove(t)}catch(e){throw this._pendingRefs.remove(t),e}i instanceof E.Dict?i.objId=t.toString():i instanceof m.BaseStream&&(i.dict.objId=t.toString())}return i}fetchUncompressed(e,t){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=e.gen;let i=e.num;if(t.gen!==r){var n="Inconsistent generation in XRef: "+e;if(this._generationFallback&&t.gen<r)return(0,P.warn)(n),this.fetchUncompressed(E.Ref.get(i,t.gen),t,a);throw new N.XRefEntryException(n)}var n=this.stream.makeSubStream(t.offset+this.stream.start),n=new D.Parser({lexer:new D.Lexer(n),xref:this,allowStreams:!0}),s=n.getObj(),o=n.getObj(),l=n.getObj();if(s===i&&o===r&&l instanceof E.Cmd){if("obj"===l.cmd)return(t=this.encrypt&&!a?n.getObj(this.encrypt.createCipherTransform(i,r)):n.getObj())instanceof m.BaseStream||this._cacheMap.set(i,t),t;if(l.cmd.startsWith("obj")&&(i=parseInt(l.cmd.substring(3),10),!Number.isNaN(i)))return i}throw new N.XRefEntryException("Bad (uncompressed) XRef entry: "+e)}fetchCompressed(e,t){var a=t.offset,r=this.fetch(E.Ref.get(a,0));if(!(r instanceof m.BaseStream))throw new P.FormatError("bad ObjStm stream");var i=r.dict.get("First"),n=r.dict.get("N");if(!Number.isInteger(i)||!Number.isInteger(n))throw new P.FormatError("invalid first and n parameters for ObjStm stream");let s=new D.Parser({lexer:new D.Lexer(r),xref:this,allowStreams:!0});var o=new Array(n),l=new Array(n);for(let e=0;e<n;++e){var c=s.getObj();if(!Number.isInteger(c))throw new P.FormatError("invalid object number in the ObjStm stream: "+c);var h=s.getObj();if(!Number.isInteger(h))throw new P.FormatError("invalid object offset in the ObjStm stream: "+h);o[e]=c,l[e]=h}var u=(r.start||0)+i,d=new Array(n);for(let e=0;e<n;++e){var f=e<n-1?l[e+1]-l[e]:void 0;if(f<0)throw new P.FormatError("Invalid offset in the ObjStm stream.");var g,p,f=(s=new D.Parser({lexer:new D.Lexer(r.makeSubStream(u+l[e],f,r.dict)),xref:this,allowStreams:!0})).getObj();(d[e]=f)instanceof m.BaseStream||(g=o[e],(p=this.entries[g])&&p.offset===a&&p.gen===e&&this._cacheMap.set(g,f))}if(void 0===(t=d[t.gen]))throw new N.XRefEntryException("Bad (compressed) XRef entry: "+e);return t}async fetchIfRefAsync(e,t){return e instanceof E.Ref?this.fetchAsync(e,t):e}async fetchAsync(t,a){try{return this.fetch(t,a)}catch(e){if(e instanceof N.MissingDataException)return await this.pdfManager.requestRange(e.begin,e.end),this.fetchAsync(t,a);throw e}}getCatalogObj(){return this.root}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var c=a(2);const o={UNKNOWN:0,DATA:1,ERROR:2},h={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function u(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,c.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new c.AbortException(e.message);case"MissingPDFException":return new c.MissingPDFException(e.message);case"PasswordException":return new c.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new c.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new c.UnknownErrorException(e.message,e.details);default:return new c.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,s){this.sourceName=e,this.targetName=t,this.comObj=s,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=e=>{const t=e.data;if(t.targetName===this.sourceName)if(t.stream)this._processStreamMessage(t);else if(t.callback){var e=t.callbackId,a=this.callbackCapabilities[e];if(!a)throw new Error("Cannot resolve callback "+e);if(delete this.callbackCapabilities[e],t.callback===o.DATA)a.resolve(t.data);else{if(t.callback!==o.ERROR)throw new Error("Unexpected callback case");a.reject(u(t.reason))}}else{const r=this.actionHandler[t.action];if(!r)throw new Error("Unknown action from worker: "+t.action);if(t.callbackId){const i=this.sourceName,n=t.sourceName;void new Promise(function(e){e(r(t.data))}).then(function(e){s.postMessage({sourceName:i,targetName:n,callback:o.DATA,callbackId:t.callbackId,data:e})},function(e){s.postMessage({sourceName:i,targetName:n,callback:o.ERROR,callbackId:t.callbackId,reason:u(e)})})}else t.streamId?this._createStreamSink(t):r(t.data)}},s.addEventListener("message",this._onComObjOnMessage)}on(e,t){var a=this.actionHandler;if(a[e])throw new Error(`There is already an actionName called "${e}"`);a[e]=t}send(e,t,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},a)}sendWithPromise(e,t,a){var r=this.callbackId++,i=(0,c.createPromiseCapability)();this.callbackCapabilities[r]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},a)}catch(e){i.reject(e)}return i.promise}sendWithStream(a,r,e,i){const n=this.streamId++,s=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:e=>{var t=(0,c.createPromiseCapability)();return this.streamControllers[n]={controller:e,startCall:t,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:s,targetName:o,action:a,streamId:n,data:r,desiredSize:e.desiredSize},i),t.promise},pull:e=>{var t=(0,c.createPromiseCapability)();return this.streamControllers[n].pullCall=t,l.postMessage({sourceName:s,targetName:o,stream:h.PULL,streamId:n,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,c.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,c.createPromiseCapability)();return this.streamControllers[n].cancelCall=t,this.streamControllers[n].isClosed=!0,l.postMessage({sourceName:s,targetName:o,stream:h.CANCEL,streamId:n,reason:u(e)}),t.promise}},e)}_createStreamSink(t){const i=t.streamId,n=this.sourceName,s=t.sourceName,o=this.comObj,e=this,a=this.actionHandler[t.action],r={enqueue(e){var t,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=2<arguments.length?arguments[2]:void 0;this.isCancelled||(t=this.desiredSize,this.desiredSize-=a,0<t&&this.desiredSize<=0&&(this.sinkCapability=(0,c.createPromiseCapability)(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:s,stream:h.ENQUEUE,streamId:i,chunk:e},r))},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:s,stream:h.CLOSE,streamId:i}),delete e.streamSinks[i])},error(e){(0,c.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:s,stream:h.ERROR,streamId:i,reason:u(e)}))},sinkCapability:(0,c.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};r.sinkCapability.resolve(),r.ready=r.sinkCapability.promise,this.streamSinks[i]=r,new Promise(function(e){e(a(t.data,r))}).then(function(){o.postMessage({sourceName:n,targetName:s,stream:h.START_COMPLETE,streamId:i,success:!0})},function(e){o.postMessage({sourceName:n,targetName:s,stream:h.START_COMPLETE,streamId:i,reason:u(e)})})}_processStreamMessage(t){const a=t.streamId,r=this.sourceName,i=t.sourceName,n=this.comObj,e=this.streamControllers[a],s=this.streamSinks[a];switch(t.stream){case h.START_COMPLETE:t.success?e.startCall.resolve():e.startCall.reject(u(t.reason));break;case h.PULL_COMPLETE:t.success?e.pullCall.resolve():e.pullCall.reject(u(t.reason));break;case h.PULL:s?(s.desiredSize<=0&&0<t.desiredSize&&s.sinkCapability.resolve(),s.desiredSize=t.desiredSize,new Promise(function(e){e(s.onPull&&s.onPull())}).then(function(){n.postMessage({sourceName:r,targetName:i,stream:h.PULL_COMPLETE,streamId:a,success:!0})},function(e){n.postMessage({sourceName:r,targetName:i,stream:h.PULL_COMPLETE,streamId:a,reason:u(e)})})):n.postMessage({sourceName:r,targetName:i,stream:h.PULL_COMPLETE,streamId:a,success:!0});break;case h.ENQUEUE:(0,c.assert)(e,"enqueue should have stream controller"),e.isClosed||e.controller.enqueue(t.chunk);break;case h.CLOSE:(0,c.assert)(e,"close should have stream controller"),e.isClosed||(e.isClosed=!0,e.controller.close(),this._deleteStreamController(e,a));break;case h.ERROR:(0,c.assert)(e,"error should have stream controller"),e.controller.error(u(t.reason)),this._deleteStreamController(e,a);break;case h.CANCEL_COMPLETE:t.success?e.cancelCall.resolve():e.cancelCall.reject(u(t.reason)),this._deleteStreamController(e,a);break;case h.CANCEL:s&&(new Promise(function(e){e(s.onCancel&&s.onCancel(u(t.reason)))}).then(function(){n.postMessage({sourceName:r,targetName:i,stream:h.CANCEL_COMPLETE,streamId:a,success:!0})},function(e){n.postMessage({sourceName:r,targetName:i,stream:h.CANCEL_COMPLETE,streamId:a,reason:u(e)})}),s.sinkCapability.reject(u(t.reason)),s.isCancelled=!0,delete this.streamSinks[a]);break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=a(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){e=new n(e,t,this._msgHandler);return this._rangeRequestReaders.push(e),e}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class i{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;e=this._msgHandler.sendWithStream("GetReader");this._reader=e.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){var{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class n{constructor(e,t,a){this._msgHandler=a,this.onProgress=null;a=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=a.getReader()}get isStreamingSupported(){return!1}async read(){var{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],i={},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n={},(()=>{"use strict";var e=n,t=(Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}}),r(1))})(),n;function r(e){var t=i[e];return void 0!==t||(t=i[e]={exports:{}},a[e](t,t.exports,r)),t.exports}var a,i,n});